Skip to content

feat(rewards): add spot rewards claims endpoint to SDK (BFE-977) - #297

Merged
anushaali-26 merged 2 commits into
mainfrom
anusha/bfe-977-spot-rewards-sdk
Oct 6, 2026
Merged

anushaali-26 merged 2 commits into
mainfrom
anusha/bfe-977-spot-rewards-sdk

Conversation

@anushaali-26

Copy link
Copy Markdown
Contributor

What

Adds the GET /v1/spot-rewards/claims operation to the Bluefin SDK and regenerates the TypeScript, Python, and Rust clients.

This mirrors the rewards-service server contract shipped in pro-mono #1877 (BFE-977), the dashboard read endpoint for the spot-rewards migration (BFE-971).

Changes

  • Specs (hand-edited source of truth):
    • resources/rewards-data-api.yaml — getSpotRewardClaims path + SpotRewardClaimCard / SpotRewardClaimEntry schemas.
    • resources/bluefin-api.yaml — registered the path $ref in the aggregator.
  • Generated clients (ts / python / rust): operation, models, index registrations, docs, FILES manifests.
  • Version bump: rust/python 1.19.0 → 1.20.0; TypeScript 2.2.0 → 2.3.0 (curated 2.x line).

Contract notes

  • userAddress is a required query param; cursor + pageSize (1..1000) drive pagination.
  • rewardedAmount is a decimal string served as stored (no E9 scaling) — FE renders it directly.
  • claimTimestamp / nextCursor are 64-bit.

Validation

  • Rust bluefin_api crate compiles clean.
  • Field names, JSON wire names, types, and model registrations verified across all three clients.

🤖 Generated with Claude Code

Add the GET /v1/spot-rewards/claims operation and its SpotRewardClaimCard /
SpotRewardClaimEntry schemas to the SDK specs, mirroring the rewards-service
server contract, and regenerate the TypeScript, Python, and Rust clients.

rewardedAmount is a decimal string (no E9 scaling); userAddress is a required
query param with cursor/pageSize pagination.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@anushaali-26
anushaali-26 requested a review from NidaKarim October 5, 2026 10:50
@anushaali-26
anushaali-26 marked this pull request as ready for review October 5, 2026 10:50
@anushaali-26
anushaali-26 requested review from a team and lucasfronza as code owners October 5, 2026 10:50
NidaKarim
NidaKarim previously approved these changes Oct 5, 2026
Mirror the rewards-service contract changes: claimTimestamp and nextCursor are
strings (legacy parity; "-1" when there are no rows), and document the pageSize
coercion / boundary-group behavior. Regenerate the TypeScript, Python, and Rust
clients. Version unchanged (same unmerged PR).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@anushaali-26
anushaali-26 merged commit 832b28e into main Oct 6, 2026
5 checks passed
@anushaali-26
anushaali-26 deleted the anusha/bfe-977-spot-rewards-sdk branch October 6, 2026 10:11
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.

3 participants