feat(sdk-coin-polyx): update mainnet resources to Polymesh v8 runtime#9140
Draft
bitgo-ai-agent-dev[bot] wants to merge 1 commit into
Draft
feat(sdk-coin-polyx): update mainnet resources to Polymesh v8 runtime#9140bitgo-ai-agent-dev[bot] wants to merge 1 commit into
bitgo-ai-agent-dev[bot] wants to merge 1 commit into
Conversation
Upgrade the mainnet offline-signing material from specVersion 7002000 (txVersion 7) to specVersion 8000000 (txVersion 8) in preparation for the Polymesh mainnet v8 runtime upgrade scheduled before July 22 2026. The v8 metadata is derived from the live testnet v8 metadata (which has already upgraded) with two surgical patches to match mainnet chain config: the specName string is replaced from polymesh_testnet to polymesh_mainnet, and the SS58Prefix constant value is replaced from 42 to 12. These are the only chain-specific differences between the two networks' v8 metadata; all pallet/call indices are identical since both run the same v8 runtime binary. Also adds mainnetRawTx test fixtures (signed and unsigned transfer and CDD-registration transactions built against the v8 mainnet metadata), and fixes a pre-existing bug in mainnet builder tests where specVersion and txVersion assertions incorrectly compared against testnetMaterial instead of mainnetMaterial. Ticket: CECHO-1476 Session-Id: 33274cea-1725-4f51-bfb9-372ec9123dbf Task-Id: 16ef1359-37dd-4746-b58e-b2f6a0505c4a
Contributor
478c092 to
1c800e9
Compare
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.
What
modules/sdk-coin-polyx/src/resources/mainnet.tswith Polymesh v8 runtime data:specVersion: 7002000 → 8000000txVersion: 7 → 8at.hash/at.height: refreshed to a recent mainnet reference blockmetadata: replaced with v8 runtime metadata (derived from the live testnet v8 metadata with mainnet-specific chain constants:specName = polymesh_mainnet,SS58Prefix = 12)mainnetRawTxfixtures intest/resources/index.tswith v8 mainnet signed and unsigned transfer and CDD-registration transactionstest/unit/transactionBuilder/transferBuilder.tsandregisterDidWithCDDBuilder.tswhere mainnet-section assertions incorrectly comparedspecVersion/txVersionagainsttestnetMaterialinstead ofmainnetMaterialWhy
The Polymesh mainnet runtime upgrade to v8 is scheduled before July 22 2026 (CECHO-1476). This PR prepares the BitGoJS offline-signing material ahead of the cutover so that:
mainnetMaterialexported from@bitgo/sdk-coin-polyxcorrectly describes the v8 pallet/call structure, enabling wallets and the HSM to build and parse v8 transactions immediately after mainnet upgrades.BITGOJS_TEST_PASSWORDintegration test) is unchanged.The v8 metadata is identical in call-index structure to the testnet v8 metadata (same runtime binary), with two chain-specific byte patches: the
polymesh_testnetspecName string is replaced withpolymesh_mainnet, and theSS58Prefixconstant value is changed from 42 to 12. These are the only differences between the two v8 deployments; all pallet indices are shared.Test plan
npm run unit-testpasses in@bitgo/sdk-coin-polyx(167 passing, same as baseline)tsc --noEmit)dest.idas a mainnet-format address (prefix 12,2FWxCYz2...)Ticket: CECHO-1476