Skip to content

feat(sdk-coin-polyx): replace placeholder v8 testnet metadata with live RPC#9145

Draft
nvrakesh06 wants to merge 2 commits into
masterfrom
feat/CECHO-1471-real-v8-testnet-metadata
Draft

feat(sdk-coin-polyx): replace placeholder v8 testnet metadata with live RPC#9145
nvrakesh06 wants to merge 2 commits into
masterfrom
feat/CECHO-1471-real-v8-testnet-metadata

Conversation

@nvrakesh06

Copy link
Copy Markdown
Contributor

Summary

  • Regenerate testnetV8.ts from testnet-rpc.polymesh.live (specVersion: 8000000, txVersion: 8) — metadata bytes now differ from v7 (no longer a placeholder copy).
  • Add scripts/regenerateTestnetV8Material.ts for future refreshes.
  • Extend V8TransferBuilder tests: metadata ≠ v7, transferWithMemo encodes call index 0x0528 (HSM method ID 1320).
  • Document that mainnetV8.ts remains placeholder until mainnet v8 fork (mainnet still on spec 7004001).

Why

CECHO-1471 shipped V8 builders with v7-mirroring metadata. Real v8 testnet signing requires actual chain metadata so builders emit correct call indices.

Depends on / pairs with

  • HSM: feat/CECHO-1473-real-v8-hsm-method-ids-and-parsers (registers method IDs 1320 + 1816)
  • WP: feat/CECHO-1471-wp-preserve-v8-builder-material (stops overwriting v8 builder material with IMS v7 metadata)

Follow-ups (not in this PR)

  • V8TokenTransferBuilder still uses v7 portfolios arg shape — needs holderSet / AssetHolder builder update for real v8 settlement txs
  • V8RegisterDidBuilder for identity.registerDid @ 1816 (currently V8RegisterDidWithCDDBuilder)
  • Regenerate mainnetV8.ts after mainnet fork (~July 22, 2026)

Test plan

  • yarn unit-test-minimal -p sdk-coin-polyx --grep V8TransferBuilder
  • Verify testnetV8Material.metadata !== testnetMaterial.metadata
  • Dry-run v8 transfer on testnet with Flipt enabled after HSM + WP PRs land

Made with Cursor

…ve chain RPC

Regenerate testnetV8.ts from testnet-rpc.polymesh.live (specVersion 8000000) so
V8 builders encode real v8 call indices (e.g. transferWithMemo @ 0x0528). Add a
regeneration script and tests asserting metadata differs from v7 and encodes HSM
method ID 1320. Mainnet v8 material stays placeholder until mainnet fork.

Co-authored-by: Cursor <cursoragent@cursor.com>
@linear-code

linear-code Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

CECHO-1471

…aterial

V8 chain material is committed in src/resources/testnetV8.ts the same way as
v7 testnet.ts — no runtime or build-time RPC fetch. Remove the regenerate
script that called testnet-rpc.polymesh.live.

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