feat: implement issues #931-#934 (sunset tracking, staking NFTs, delegated governance, multi-currency analytics) - #973
Open
TheHalalHunter wants to merge 6 commits into
Conversation
accesslayerorg#931 Add sunset tracking endpoint for keys approaching inactivity threshold - sunsetFlaggedAt on CreatorProfile + migration - KEY_SUNSET_FLAGGED ActivityType value - key-sunset-watch.service.ts (inactivity + near-threshold logic) - processSunsetFlaggedEvents() indexer handler - GET /keys/sunset-watch (admin-only, sorted by inactivity desc) - KEY_SUNSET_INACTIVITY_THRESHOLD_DAYS env var (default 30) accesslayerorg#932 Build staking NFT position endpoints for tradeable stake receipt tracking - StakingNft + StakingNftTransfer schema + migration - STAKE_NFT_MINTED/TRANSFERRED ActivityType values - staking.service.ts read-model with Redis caching - staking-indexer.service.ts (processStakeNftMintedEvents, processStakeNftTransferredEvents) - GET /staking/nfts (auth), GET /staking/nfts/:id (public), GET /staking/nfts/:id/transfers (public) accesslayerorg#933 Implement delegated governance voting endpoints with delegation tracking - VoteDelegation + VoteDelegationHistory schema + migration - GOVERNANCE_VOTE_CAST/DELEGATION_SET/DELEGATION_REVOKED ActivityType values - governance-delegation.service.ts read-model - governance-delegation-indexer.service.ts (processDelegationSetEvents, processDelegationRevokedEvents) - castKeyProposalVote updated: weight = own balance + sum of active delegators balances - GET /governance/delegation/:wallet, GET /governance/delegation/:wallet/history - GET /governance/delegators/:wallet accesslayerorg#934 Add multi-currency payment support tracking for key purchase analytics - paymentAsset String @default("XLM") on Trade model + migration + indexes - payment_asset threaded through indexer-pipeline.service.ts Activity payload - payment_asset threaded through trade-indexer.service.ts db.trade.create - key-analytics.service.ts (getKeyPaymentAssetAnalytics, getPlatformPaymentAssetDistribution) - GET /keys/:keyId/analytics (public), GET /keys/analytics/payment-assets (admin)
|
@TheHalalHunter Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
TheHalalHunter
force-pushed
the
feat/issues-931-934-key-analytics-and-governance
branch
2 times, most recently
from
September 26, 2026 19:42
bb82022 to
747d311
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements four issues:
#931 — Sunset tracking endpoint
#932 — Staking NFT position endpoints
#933 — Delegated governance voting
#934 — Multi-currency payment analytics
Migrations (run in order)
All TypeScript files have zero diagnostics. Run pnpm prisma generate && pnpm build after merging.
Closes #931, Closes #932, Closes #933, Closes #934