Skip to content

feat: list a wallet's royalty claims, one page at a time; 0.7.0 - #1

Merged
tamashi095 merged 1 commit into
mainfrom
feat/royalty-claims
Sep 9, 2026
Merged

feat: list a wallet's royalty claims, one page at a time; 0.7.0#1
tamashi095 merged 1 commit into
mainfrom
feat/royalty-claims

Conversation

@tamashi095

Copy link
Copy Markdown
Contributor

What

listWalletRoyaltyClaims(address, { before, limit })GET /wallets/{address}/royalty-claims: the wallet's royalty claim transactions newest first, each with the pools it swept (poolId, stakeId, shareType, currency, amount as a u64 string). nextCursor pages older; availableFromMs reports how far back the event index behind the read reaches. Cache class private.

Schemas royaltyClaimEntrySchema, royaltyClaimSchema, royaltyClaimsPageSchema and the matching types are exported. Version 0.6.0 → 0.7.0.

Served by misofm/api (read service) on top of listRoyaltyClaims in misofm/sdks (platform 0.27.0). Consumed by the app's /royalties/history page.

Verification

bun run typecheck and bun test (68 pass, 2 new) pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_0117boNS2uJCQr7L2n94xx53

`listWalletRoyaltyClaims(address, { before, limit })` reads
`/wallets/{address}/royalty-claims`: the wallet's royalty claim
transactions newest first, each with the pools it swept and the amount
paid from each. `nextCursor` pages older; `availableFromMs` says how far
back the event index behind the read still reaches, so a caller can tell
"no older claims" from "no older index".

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0117boNS2uJCQr7L2n94xx53
@tamashi095
tamashi095 merged commit c8a8c10 into main Sep 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant