[SDK] Statics registry for wrapper↔underlying pairs - #9467
Draft
0xPrabh wants to merge 1 commit into
Draft
Conversation
Contributor
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>
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
@bitgo/staticsERC-7984 wrapper↔underlying registry (wrapperAddress,underlyingErc20Address,rate,requiresApprovalReset,isVetted) with lookup helpershteth:cusdt,hteth:ctest1) and Sepolia (sepeth:cusdt) test pairs, plus mainnet pairs aligned with existingerc7984Tokens(on-chain verifiedrate()/underlying())Issue Number
CHALO-1156
Type of change
How Has This Been Tested?
yarn workspace @bitgo/statics unit-test --grep "ERC-7984 wrapper registry"(8 passing)yarn workspace @bitgo/statics buildChecklist
Made with Cursor