Polymesh Chain Changelog - v8.1.3 to v8.2.1
This is the entry point for the Polymesh v8.1.3 → v8.2.1 runtime changelog. spec_version moves from 8_001_030 to 8_002_010, and transaction_version stays at 8.
Mainnet's first v8.2.x runtime is v8.2.1. v8.2.0 (spec_version 8_002_000) was a Testnet and Develop release only. This changelog describes the whole v8.1.3 → v8.2.1 change, with the v8.2.1 changes folded into each topic page. If you already run v8.2.0, What Changed in v8.2.1 is the delta.
v8.2 has three themes:
- Confidential Assets reach Mainnet. The pallet moves to DART v1.0.1 and gains role gating, shared encryption keys, key rotation, an asset-level freeze, account-bound batch proofs and events that describe every account-state update.
- Worker protocol modules move on chain. A new
WorkerModulespallet lets governance upgrade proof-verification modules without a node release. - Per-NFT freezes complete ERC-7943 on both asset precompiles. An agent can now freeze individual NFTs. The fungible precompile now advertises ERC-7943 through ERC-165 and emits the events the standard requires.
A further set of smaller fixes tightens validation in MultiSig, settlement, external agents, authorizations and governance, and makes several weights more accurate.
Who this is for
- Confidential Assets integrators, provers and relayers. Read Confidential Assets first. On Testnet, this release breaks proof formats, error indices and some call arguments. On Mainnet, the pallet is new, and every role stays closed until governance configures it. On Testnet, governance opened the roles after the upgrade.
- Node and infrastructure operators. Read Worker Modules and Node Changes. Upgrade the node binary along with the runtime, so that confidential-asset proofs are verified by the native worker rather than in the runtime. Validator operators should also note the change to removing a permissioned validator.
- NFT issuers and their agents. NFT Freezing is new: you can now freeze individual NFTs for a holder, not just a whole holder or collection.
- Smart contract developers and EVM indexers. Precompile Changes covers
supportsInterfaceon the fungible precompile, the new NFT freeze methods, and the changed event order offorcedTransferon both precompiles. - Testnet integrators already on v8.2.0. Read What Changed in v8.2.1. Confidential Assets clients need the DART v1.0.1 prover, and non-relayer batched proofs must be bound to the signing account.
- Exchanges, custodians, indexers. The pallet API changes. Two pallets are new on Mainnet, along with a new call, events, errors and storage, and a new transaction extension. See the Full Pallet API Reference and the migration checklist below.
- MultiSig, agent and governance tooling. Other Runtime Changes lists the validation fixes that can turn a previously accepted call into an error.
Key themes
Confidential Assets on Mainnet, and DART v1.0.1
The ConfidentialAssets pallet (index 70) was Testnet-only in v8.0 and v8.1. v8.2 adds it to the Mainnet runtime and moves every network to DART v1.0.1, the version of the protocol intended for production. Along with the protocol upgrade it adds:
- Role gating. Governance can require a claim before an identity may create a confidential asset, act as an auditor or act as a mediator.
- Shared encryption keys. One auditor or mediator encryption key can be shared with up to 5 recipient keys.
- Key rotation. An issuer can replace an asset's auditor and mediator keys.
- An asset-level freeze. The issuer or governance can stop new settlements of an asset.
- Bound batch proofs. Relayer batches are bound to their fee payment, and other batched submissions to the account that signs them. Fee-account roots now expire after 4 hours instead of 2 days.
- Account-state events.
AccountStateUpdatedandFeeAccountStateUpdateddescribe every account and fee-account leaf insert, so indexers can follow account state without decoding proofs. - Zero-amount affirmations. A party can affirm a leg that moves no funds, to refresh its account commitment.
On Mainnet the roles start closed: no one can create a confidential asset, or be named as an auditor or mediator, until governance sets the required claims. On Testnet, governance opened all three roles after the upgrade so anyone can experiment. See Confidential Assets.
Worker protocol modules on chain
Proofs are verified by the Polymesh Worker, which runs protocol modules natively, in PolkaVM or in WASM. Before v8.2.0 those modules shipped inside the node binary, so upgrading them needed a node release. The new WorkerModules pallet (index 60) stores module code, context and configuration on chain under Root control. The worker loads them from chain state, so governance can upgrade a protocol without a node release. See Worker Modules and Node Changes.
Per-NFT freezes
v8.1 added freezes for a whole holder and, for fungible assets, for part of a balance. v8.2.0 adds the NFT equivalent of a partial freeze. An agent can freeze individual NFTs for a holder with the new Nft::set_nfts_frozen call. A frozen NFT cannot be transferred, settled, moved between portfolios, locked into an instruction or redeemed. A controller transfer still takes it, and unfreezes it. See NFT Freezing.
ERC-7943 on both asset precompiles
With per-NFT freezes in place, the NFT precompile implements ERC-7943's setFrozenTokens, getFrozenTokens and Frozen, and advertises IERC7943NonFungible through ERC-165. The fungible precompile gains supportsInterface, and its forcedTransfer now emits the ERC-20 Transfer event. Every call that changes a frozen balance now emits both the ERC-3643 and the ERC-7943 event. On both precompiles, forcedTransfer now emits Transfer before ForcedTransfer. See Precompile Changes.
Validation and weight fixes
Among the smaller changes, each of which can reject a call that v8.1.3 accepted:
- MultiSig signer lists must not contain duplicates.
- Settlement instructions must have at least one leg.
- An agent removed from an asset cannot be re-added through an authorization issued before the removal.
- A committee motion needs at least one vote to pass or fail.
- Removing a permissioned validator now chills its validating stashes.
Migration checklist
- Re-generate metadata-derived code.
WorkerModulesis new on every network, andConfidentialAssetsis new on Mainnet. Calls, events, errors and storage are added toMultiSig,Validators,Portfolio,Settlement,ExternalAgentsandNft.transaction_versionis unchanged at8. See the Full Pallet API Reference. - Register the new transaction extension if your signer hard-codes the extension list.
CheckRelayerSubmitBatchedProofsis added to every runtime's transaction extensions, betweenCheckMetadataHashandSetOrigin. It encodes no bytes in the extrinsic or the signed payload, so metadata-driven signers need no change. Signers that check the list against a fixed set must accept it. See Other Runtime Changes. - Upgrade nodes with the runtime. v8.2.1 runtimes verify confidential-asset proofs in the native worker only when the node's worker is version 2 or later, and the v8.2.1 node embeds the DART v1.0.1 modules. Older nodes stay in consensus but fall back to slower in-runtime verification. See Worker Modules and Node Changes.
- Build confidential-asset proofs with the DART v1.0.1 prover. For
batched_settlement,submit_batched_proofsandexecute_instant_settlement, bind every proof to the signing account. See Proof submission contexts. - On Testnet, clients built for DART v0.1 must be rebuilt. Proofs, four call argument types and the error list changed at v8.2.0. See Confidential Assets.
- If you plan to use Confidential Assets on Mainnet, expect asset creation and auditor and mediator registration to fail with
MissingRequiredClaimuntil governance configures the required claims. - If you index Confidential Assets, decode
AccountStateUpdatedandFeeAccountStateUpdated.AccountStateLeafInsertedandFeeAccountStateLeafInsertedare deprecated but still emitted. See Account-state update events. - If you index EVM logs from
forcedTransfer, update for the new event order on both precompiles, and for theTransferevent the fungible precompile now emits. See Precompile Changes. - If you index NFT events or pre-check NFT transfers, handle
Nft::NFTsFrozenStatusUpdatedand the new frozen-NFT errors. NFT transfer reports now return every applicable ownership error, not only the first. See NFT Freezing. - If you create MultiSigs or add signers, de-duplicate the signer list, or handle
MultiSig::DuplicateSigners. - If you create settlement instructions programmatically, never send an empty leg list. It now fails with
Settlement::InstructionHasNoLegs. - If you manage asset agents, a
BecomeAgentauthorization issued before an agent's removal can no longer re-add them. Issue a new one. See Other Runtime Changes. - If you read
Settlement::InstructionMemosfor old instructions, note that a memo is now removed when its instruction is pruned. - Re-estimate fees. NFT, portfolio and settlement weights are regenerated, and external agents, MultiSig, PIPs, STO, validators and confidential assets weights are updated.
Asset::redeem,Asset::controller_transfer,Asset::controller_transfer_to,CapitalDistribution::claimandCapitalDistribution::push_benefitnow declare a worst-case weight and refund the unused part. See Other Runtime Changes.
Storage migrations
What runs at the upgrade depends on the network's path:
pallet-validators1 → 2, on every network, fills the newIdentityValidatorStashesmap from the current validator set.pallet-confidential-assets- Mainnet (v8.1.3 → v8.2.1): the pallet is new. Its upgrade hook initializes the curve trees and closes all three confidential-asset roles. There is no older pallet data to convert.
- Testnet and Develop: the storage version 0 → 1 migration ran at the v8.2.0 upgrade. It closed the roles (unless a spec was already present), converted stored asset keys to the v1 format and rejected settlements still pending. v8.2.1 removes that migration, and the storage version stays at 1.
At the upgrade, and at any later upgrade that changes the DART protocol version, the confidential-assets pallet regenerates its cached DART parameters if they were generated by an older protocol version. At v8.2.1 this replaces the DART v1.0.0 parameters on Testnet and Develop. No other pallet's storage version changes.