Skip to content

feat: restrict currency/currencyToken by chain #701

Merged
yingyangxu2026 merged 2 commits intomainfrom
TSSDK-135
Feb 28, 2026
Merged

feat: restrict currency/currencyToken by chain #701
yingyangxu2026 merged 2 commits intomainfrom
TSSDK-135

Conversation

@yingyangxu2026
Copy link
Collaborator

feat(TSSDK-135): restrict currency/currencyToken by chain (WIP only on Mainnet, WIP or MERC20 on Aeneid)

  • Add currencyValidation.ts with validateCurrencyToken() and per-chain whitelist
  • Enforce in registerValidation (license terms), pilFlavor (when chainId set), and group (collect/claim/currencyToken APIs)
  • Reject zero address in validation; allow zero currency in PIL when no royalty
  • Add currencyValidation unit tests; update license, ipAsset, group, registerValidation, pilFlavor tests to use allowed tokens (WIP_TOKEN_ADDRESS / wrappedIpAddress)

@yingyangxu2026 yingyangxu2026 merged commit bffd534 into main Feb 28, 2026
14 checks 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.

3 participants