Skip to content

feat(statics): add PolyxNetwork interface with v8SpecVersion and v8TxVersion#9134

Merged
nvrakesh06 merged 1 commit into
masterfrom
cecho-1470-polyx-v8-infra-prerequisites
Jun 29, 2026
Merged

feat(statics): add PolyxNetwork interface with v8SpecVersion and v8TxVersion#9134
nvrakesh06 merged 1 commit into
masterfrom
cecho-1470-polyx-v8-infra-prerequisites

Conversation

@bitgo-ai-agent-dev

Copy link
Copy Markdown

What

  • Introduce PolyxNetwork interface in @bitgo/statics that extends AccountNetwork with Polymesh-specific fields: specName, genesisHash, specVersion, chainName, txVersion, v8SpecVersion, and v8TxVersion
  • Update Polymesh (mainnet) and PolymeshTestnet classes to implement PolyxNetwork instead of plain AccountNetwork
  • Set v8SpecVersion = 8000000 and v8TxVersion = 8 on both network classes to reflect the Polymesh v8 runtime version
  • Add unit tests verifying the new v8 fields on both mainnet and testnet network instances

Why

Polymesh v8 runtime is live on testnet. To safely support dual-path v7/v8 transaction building and parsing across the platform (BitGoJS builders, indexer, wallet-platform routing, HSM parsing), every service needs to know the chain's current specVersion and the upcoming v8 specVersion from a single authoritative source in @bitgo/statics.

Adding v8SpecVersion and v8TxVersion as typed fields on PolyxNetwork provides that canonical source. Downstream phases (BASE-2 v8 builders, BASE-3 routing, BASE-4 HSM parsers) all depend on these fields being available before they can gate behavior on the runtime version.

This is the infrastructure prerequisite phase that unblocks all other Polymesh v8 migration work.

Test plan

  • @bitgo/statics unit tests pass (30721 passing, 14 pre-existing unrelated failures)
  • @bitgo/sdk-coin-polyx unit tests pass (179 passing)
  • TypeScript builds cleanly with no new errors
  • New tests verify v8SpecVersion = 8000000 and v8TxVersion = 8 on both mainnet and testnet polyx network objects

Ticket: CECHO-1470

@linear-code

linear-code Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

CECHO-1470

@bitgo-ai-agent-dev bitgo-ai-agent-dev Bot force-pushed the cecho-1470-polyx-v8-infra-prerequisites branch 3 times, most recently from d95dde3 to 39e2ea7 Compare June 29, 2026 14:10
@nvrakesh06 nvrakesh06 requested a review from Copilot June 29, 2026 14:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends @bitgo/statics with Polymesh/POLYX-specific network typing and metadata so downstream services can reason about both the current runtime and an upcoming v8 runtime via statics.

Changes:

  • Added a PolyxNetwork interface extending AccountNetwork with Polymesh runtime fields, including v8SpecVersion and v8TxVersion.
  • Updated Polymesh and PolymeshTestnet network definitions to implement PolyxNetwork and to include the new v8 fields.
  • Added unit tests to assert the presence/values of the new v8 fields on mainnet and testnet POLYX networks.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
modules/statics/src/networks.ts Introduces PolyxNetwork and updates Polymesh network instances with v8 runtime metadata fields.
modules/statics/test/unit/networks.ts Adds unit tests asserting POLYX v8 fields and basic required Polymesh network properties.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread modules/statics/test/unit/networks.ts
Comment thread modules/statics/test/unit/networks.ts
Comment thread modules/statics/src/networks.ts
Comment thread modules/statics/test/unit/networks.ts
…Version

Polymesh runtime v8 is live on testnet. This commit adds the
infrastructure prerequisite fields to support the v8 migration:

- Introduce PolyxNetwork interface extending AccountNetwork with
  Polymesh-specific fields: specName, genesisHash, specVersion,
  chainName, txVersion, v8SpecVersion, and v8TxVersion.
- Update Polymesh (mainnet) and PolymeshTestnet classes to implement
  PolyxNetwork instead of plain AccountNetwork.
- Set v8SpecVersion = 8000000 and v8TxVersion = 8 on both network
  classes to reflect the Polymesh v8 runtime version.
- Add unit tests verifying v8 fields on both mainnet and testnet
  network instances.

These fields are required by BASE-2 (v8 metadata/builders) and
downstream services (indexer, wallet-platform, HSM parsing) that
need to gate logic on the runtime version.

Ticket: CECHO-1470
Session-Id: 45130683-1dd5-4330-af56-4edc9845062a
Task-Id: 64b6fe5d-9398-4f7c-9331-e87d098b8d9e
@bitgo-ai-agent-dev bitgo-ai-agent-dev Bot force-pushed the cecho-1470-polyx-v8-infra-prerequisites branch 2 times, most recently from caf7b5d to e12ee2a Compare June 29, 2026 14:35
@nvrakesh06 nvrakesh06 marked this pull request as ready for review June 29, 2026 15:09
@nvrakesh06 nvrakesh06 requested a review from a team as a code owner June 29, 2026 15:09
@nvrakesh06 nvrakesh06 merged commit e1f178d into master Jun 29, 2026
27 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