Skip to content

[SDK] Statics registry for wrapper↔underlying pairs - #9467

Draft
0xPrabh wants to merge 1 commit into
masterfrom
CHALO-1156
Draft

[SDK] Statics registry for wrapper↔underlying pairs#9467
0xPrabh wants to merge 1 commit into
masterfrom
CHALO-1156

Conversation

@0xPrabh

@0xPrabh 0xPrabh commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add @bitgo/statics ERC-7984 wrapper↔underlying registry (wrapperAddress, underlyingErc20Address, rate, requiresApprovalReset, isVetted) with lookup helpers
  • Wire vetted Hoodi (hteth:cusdt, hteth:ctest1) and Sepolia (sepeth:cusdt) test pairs, plus mainnet pairs aligned with existing erc7984Tokens (on-chain verified rate() / underlying())
  • Unit tests covering lookups, network filters, USDT approval-reset flag, and uniqueness

Issue Number

CHALO-1156

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • yarn workspace @bitgo/statics unit-test --grep "ERC-7984 wrapper registry" (8 passing)
  • yarn workspace @bitgo/statics build
  • eslint on touched files

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My commits follow Conventional Commits and reference the ticket
  • I have added tests that prove my feature works
  • New and existing unit tests pass locally with my changes

Made with Cursor

@0xPrabh
0xPrabh requested a review from a team as a code owner August 11, 2026 09:13
@linear-code

linear-code Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

CHALO-1156

@0xPrabh
0xPrabh marked this pull request as draft August 11, 2026 09:14
Carry wrapper pair metadata on Erc7984Coin and the served Erc7984TokenConfig:
underlyingErc20Address, rate, requiresApprovalReset, and isVetted. Follows the
same pattern as Nep141Token.storageDepositAmount and XrpMptCoin.canTransfer
rather than a separate registry, so shield/unshield consumers read it straight
off the coin. Values come from on-chain rate() / underlying() view calls;
Hoodi test pairs are wired alongside the existing mainnet tokens.

Ticket: CHALO-1156
Co-authored-by: Cursor <cursoragent@cursor.com>
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