You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(sdk-coin-polyx): add v8 metadata and base V8 builders
Add Polymesh v8 chain resources and V8-prefixed transaction builder
classes to support the Polymesh spec-version 8 migration.
What changed:
- src/resources/mainnetV8.ts, testnetV8.ts: new material files with
specVersion 8000000 and txVersion 8 (metadata bytes identical to v7
placeholder, to be replaced once v8 chain launches).
- src/resources/index.ts: re-export mainnetV8 and testnetV8.
- src/lib/utils.ts: add getV8Material() helper, mirrors getMaterial().
- src/lib/v8TransferBuilder.ts: V8TransferBuilder — v8 material.
- src/lib/v8HexTransferBuilder.ts: V8HexTransferBuilder — v8 material.
- src/lib/v8RegisterDidWithCDDBuilder.ts: V8RegisterDidWithCDDBuilder.
- src/lib/v8TokenTransferBuilder.ts: V8TokenTransferBuilder.
- src/lib/v8HexTokenTransferBuilder.ts: V8HexTokenTransferBuilder.
- src/lib/v8PreApproveAssetBuilder.ts: V8PreApproveAssetBuilder.
- src/lib/transactionBuilderFactory.ts: six getV8*Builder() factory
methods exposing the V8 builders through the standard factory.
- src/lib/index.ts: export all six V8 builder classes.
- src/lib/preApproveAssetBuilder.ts: remove stray console.log.
- test/unit/transactionBuilder/v8*.ts: 25 unit tests verifying each
V8 builder uses v8 material (specVersion/txVersion), that factory
methods return the correct subclass, and that signed transactions
encode the correct chain metadata in toJson() output.
Why: Polymesh is upgrading its chain runtime from spec version 7 to
version 8 (CECHO-1471 / Polymesh v8 Migration — BASE-2). Downstream
services (HSM, wallet-platform, indexer) need dedicated V8 builder
classes and factory methods so they can construct and sign v8
transactions independently of the existing v7 builders without
breaking any in-flight v7 traffic.
Ticket: CECHO-1471
Session-Id: d224e5fe-f47a-4f84-9e84-c680f3085842
Task-Id: b5392230-7ea0-47bb-be33-bee96e8ec7bb
0 commit comments