bittensor 11.3.6__tar.gz → 11.3.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bittensor-11.3.6 → bittensor-11.3.7}/.gitignore +1 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/PKG-INFO +1 -1
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_substrate.py +10 -1
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_transport/interface.py +62 -11
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/call.py +118 -10
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/multisig.py +8 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/snapshot.py +5 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/sync.py +5 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/pyproject.toml +1 -1
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_cli.py +156 -1
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_facades.py +14 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_safe_composites.py +91 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/README.md +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/__init__.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_generated/__init__.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_generated/calls.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_generated/constants.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_generated/errors.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_generated/runtime_apis.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_generated/storage.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_live.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_pinned.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_subtensor.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_transport/__init__.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_transport/codec.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_transport/const.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_transport/contract.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_transport/errors.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_transport/extrinsics.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_transport/lru.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_transport/protocols.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_transport/rpc.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_transport/runtime.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_transport/runtime_api.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_transport/storage.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_transport/utils/__init__.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/_transport/utils/receipt.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/account_mode.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/balance.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/basket_index.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/basket_index_data.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/__init__.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/call_names.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/__init__.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/addresses.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/axon.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/collateral.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/commitments.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/config.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/crowd.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/evm/__init__.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/evm/_shared.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/evm/address.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/evm/association.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/evm/contracts_cmd.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/evm/keys.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/evm/money.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/evm/precompiles_cmd.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/evm/setup.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/evm/stake.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/extension.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/gamma.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/lock.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/misc.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/multisig.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/proxy.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/root.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/root_move.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/root_swap.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/stake.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/subnet_emission.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/subnets.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/sudo.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/timelock.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/upgrade.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/wallet.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/commands/weights.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/context.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/globals.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/help_theme.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/helpers.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/hyperparams_view.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/intent_prompts.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/logs.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/main.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/metagraph_view.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/multisig_helpers.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/null_pruning.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/output.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/prompt.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/protected.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/query.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/registration.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/root_helpers.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/secrets.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/stake_exit.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/stake_picker.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/tx.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/upgrade_helpers.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/cli/wallet_addresses.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/client.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/config.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/emission_weights.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/__init__.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/admin_utils.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/balances.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/commitments.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/contracts.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/crowdloan.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/drand.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/ethereum.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/evm.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/grandpa.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/hashed_accounts.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/limit_orders.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/mev_shield.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/multisig.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/preimage.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/proxy.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/safe_mode.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/scheduler.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/subtensor.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/sudo.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/swap.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/system.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_descriptions/utility.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/error_map.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/__init__.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/abi/addressMapping.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/abi/alpha.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/abi/balance.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/abi/balanceTransfer.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/abi/crowdloan.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/abi/drand.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/abi/ed25519Verify.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/abi/leasing.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/abi/metagraph.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/abi/neuron.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/abi/proxy.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/abi/registry.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/abi/runtimeConfiguration.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/abi/scheduler.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/abi/sr25519Verify.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/abi/staking.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/abi/stakingV2.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/abi/subnet.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/abi/timestamp.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/abi/uidLookup.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/abi/votingPower.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/addresses.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/contracts.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/keys.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/networks.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/precompiles.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/rpc.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/evm/transactions.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/executor.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/extension/__init__.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/extension/bridge.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/extension/browser.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/extension/client.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/extension/daemon.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/extension/picker.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/extension/session.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/extension/signer.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/extension/static/bridge.html +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/extension/tokens.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/fee_filters.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/hashed.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/http_auth.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/hyperparams.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/__init__.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/_money.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/_root_claim_fee.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/association.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/base.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/batch.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/children.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/coldkey.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/collateral.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/commitments.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/crowdloan.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/emission_weights.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/evm.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/gamma.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/governance.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/hyperparameters.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/identity.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/leasing.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/limit_orders.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/lock.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/multisig.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/plan.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/proxy.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/registration.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/registry.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/root.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/serving.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/staking.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/transfer.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/intents/weights.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/keyfiles.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/ledger.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/limit_orders.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/macos_password.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/masked_input.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/metagraph.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/mldsa.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/mldsa_signing.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/namespaces.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/namespaces.pyi +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/pow_registration.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/protected_account.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/protected_funding.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/proxy_announcements.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/py.typed +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/reads/__init__.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/reads/accounts.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/reads/base.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/reads/chain.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/reads/collateral.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/reads/delegation.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/reads/epochs.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/reads/gamma.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/reads/hyperparameters.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/reads/identity.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/reads/leasing.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/reads/locks.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/reads/neurons.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/reads/prices.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/reads/root.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/reads/staking.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/reads/subnets.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/reads/weights.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/receiving.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/registration_sponsorship.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/result.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/settings.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/shielding.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/signing.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/sp_core.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/timelock.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/vault/__init__.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/vault/qr.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/vault/scan.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/vault/server.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/vault/signer.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/vault/static/bittensor-chain-specs.png +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/vault/static/vault.html +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/vault/uos.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/wallet.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/wallet_registration.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/bittensor/wallets.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/codegen/__init__.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/codegen/__main__.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/codegen/check.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/codegen/emit_namespaces.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/codegen/emit_python.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/codegen/metadata.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/completions/_btcli +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/completions/btcli.bash +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/completions/btcli.fish +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/justfile +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/scripts/bench_neurons.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/scripts/bench_transport.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/scripts/build_basket_index.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/scripts/export_beta_baselines_rs.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/scripts/prepare_clone_for_e2e.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/scripts/record_golden.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/scripts/record_hashed_vectors.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/scripts/record_shape_corpus.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/scripts/test_protected_cli.sh +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/scripts/verify_finney_evm_association_cap.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/__init__.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/conftest.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_emission_weights_cli.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_falcon_fund_safety.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_falcon_release.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_hashed_activation.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_mixed_multisig.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_mldsa_cli_regressions.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_mldsa_extended.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_mldsa_localnet.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_mldsa_multisig_costs.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_mldsa_nested_authority.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_mldsa_operation_families.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_mldsa_proxy_boundaries.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_mldsa_release.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_mldsa_release_costs.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_mldsa_root_cli.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_mldsa_sponsorship_live.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_mldsa_validator_paths.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_mldsa_validator_proxy.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_null_consensus.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_pow_registration.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_protected_cli.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_timelock_commitment.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_wallet_approval_lifecycle.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_wallet_parity.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_wallet_shield.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_wallet_swap_release.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/e2e/test_wallet_types.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/fixtures/golden.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/fixtures/mldsa-zero-next-proof.hex +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/fixtures/shape_corpus/corpus.json +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/harness/__init__.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/harness/fake_node.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/harness/fake_substrate.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/harness/receiving.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/harness/samples.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/__init__.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_announced_batch_safety.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_announced_execution_policy.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_announcement_cancel.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_balance_properties.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_channel_commitments_and_weight_delegates.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_cli_commands.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_cli_intent_prompts.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_cli_null_pruning.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_codec_golden.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_codec_properties.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_emission_weights.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_evm.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_evm_wallet_types.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_extension_bridge.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_extension_signer.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_falcon_accounts.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_fee_filters.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_gamma.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_hashed_accounts.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_hashed_children.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_hashed_evm.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_hashed_messages.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_hashed_receiving.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_hashed_receiving_cli.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_http_auth.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_hyperparams_units.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_intents_table.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_keyfile_atomicity.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_keyfiles_golden.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_ledger_signer.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_lock_ownership_gate.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_metagraph_symbols.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_mldsa_accounts.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_mldsa_messages.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_mldsa_orders.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_mldsa_signing.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_multisig_pinned_staking.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_multisig_safety.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_multisig_signatories.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_natural_name_key.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_normalize_signature.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_null_weights.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_order_subnet_policy.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_pow_registration.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_pq_release_adversarial.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_prepare_attach.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_protected_account.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_protected_authority_regressions.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_protected_dispatch_regressions.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_protected_funding.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_protected_pending_lifecycle.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_protected_preparation.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_protected_preview_routing.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_protected_reconciliation_regressions.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_protected_revocation_ordering.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_protected_rotation_binding.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_protected_saved_hash.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_protected_settings_guards.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_protected_setup_resume.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_protected_setup_v2.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_protected_show_hash_match.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_protected_store_scoping.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_protected_timing_regressions.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_proxy_explicit_origin.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_reads_table.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_registration_deposit.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_registration_shield.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_registration_sponsorship.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_registration_sponsorship_cli.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_root_claim_fee.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_rpc.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_runtime_spec_version_at_block.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_shape_corpus.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_shield_fee.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_shield_receipt_fees.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_slippage_protection.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_sp_core_backend_compat.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_sp_core_keypair.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_sp_core_parity.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_stateless_mldsa.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_storage_exists.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_storage_golden.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_submission_admission.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_submission_costs.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_subnet_convictions.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_subnet_lifecycle.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_v446_accounting_and_commitments.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_vault_signer.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_wallet_address_output.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_wallet_address_status.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_wallet_compat.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_wallet_creation_registration_cli.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_wallet_crypto_types.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_wallet_list_multisig_offline.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_wallet_pair_atomicity.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_wallet_registration.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_wallet_review_regressions.py +0 -0
- {bittensor-11.3.6 → bittensor-11.3.7}/tests/unit/test_wallet_security_swarm.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: bittensor
|
|
3
|
-
Version: 11.3.
|
|
3
|
+
Version: 11.3.7
|
|
4
4
|
Summary: A lean Python SDK (import bittensor) and CLI (btcli) for the Bittensor chain.
|
|
5
5
|
Project-URL: Documentation, https://bittensor.com/docs
|
|
6
6
|
Project-URL: Repository, https://github.com/RaoFoundation/subtensor
|
|
@@ -355,6 +355,8 @@ class Substrate(Protocol):
|
|
|
355
355
|
*,
|
|
356
356
|
wait_for_inclusion: bool = True,
|
|
357
357
|
wait_for_finalization: bool = True,
|
|
358
|
+
expected_timepoint=...,
|
|
359
|
+
expected_spec_version: int | None = None,
|
|
358
360
|
) -> ExtrinsicResult:
|
|
359
361
|
"""Record one signatory's approval of ``call`` for a multisig account."""
|
|
360
362
|
...
|
|
@@ -1020,6 +1022,8 @@ class RpcSubstrate:
|
|
|
1020
1022
|
*,
|
|
1021
1023
|
wait_for_inclusion: bool = True,
|
|
1022
1024
|
wait_for_finalization: bool = True,
|
|
1025
|
+
expected_timepoint=...,
|
|
1026
|
+
expected_spec_version: int | None = None,
|
|
1023
1027
|
) -> ExtrinsicResult:
|
|
1024
1028
|
"""Record one signatory's approval of ``call`` for a multisig account.
|
|
1025
1029
|
|
|
@@ -1029,7 +1033,12 @@ class RpcSubstrate:
|
|
|
1029
1033
|
composed call (see :meth:`compose`).
|
|
1030
1034
|
"""
|
|
1031
1035
|
try:
|
|
1032
|
-
|
|
1036
|
+
guard = {} if expected_timepoint is ... else {"expected_timepoint": expected_timepoint}
|
|
1037
|
+
if expected_spec_version is not None:
|
|
1038
|
+
guard["expected_spec_version"] = expected_spec_version
|
|
1039
|
+
extrinsic = await self.raw.create_multisig_extrinsic(
|
|
1040
|
+
call, keypair, multisig_account, **guard
|
|
1041
|
+
)
|
|
1033
1042
|
except SubstrateRequestException as error:
|
|
1034
1043
|
raise _public_request_error(error) from error
|
|
1035
1044
|
return await self.submit_signed(
|
|
@@ -100,6 +100,18 @@ async def _submit_once(
|
|
|
100
100
|
raise
|
|
101
101
|
|
|
102
102
|
|
|
103
|
+
class _SigningRuntimeMismatch(ValueError):
|
|
104
|
+
pass
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def _require_spec_version(codec, expected: Optional[int]) -> None:
|
|
108
|
+
if expected is not None and codec.spec_version != expected:
|
|
109
|
+
raise _SigningRuntimeMismatch(
|
|
110
|
+
f"Signing runtime specVersion {codec.spec_version} differs from reviewed {expected}; "
|
|
111
|
+
"regenerate and review the proposal"
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
|
|
103
115
|
class QueryMapResult:
|
|
104
116
|
"""Decoded (key, value) pairs of a storage map, paginating transparently.
|
|
105
117
|
|
|
@@ -609,6 +621,7 @@ class SubstrateConnection:
|
|
|
609
621
|
signature: Optional[bytes | str] = None,
|
|
610
622
|
hashed_generation_offset: int = 0,
|
|
611
623
|
hashed_signing_snapshot: Optional[HashedSigningSnapshot] = None,
|
|
624
|
+
expected_spec_version: Optional[int] = None,
|
|
612
625
|
) -> SignedExtrinsic:
|
|
613
626
|
"""Sign a composed call at the current runtime, for submission.
|
|
614
627
|
|
|
@@ -626,7 +639,8 @@ class SubstrateConnection:
|
|
|
626
639
|
else await self.get_chain_finalised_head()
|
|
627
640
|
)
|
|
628
641
|
# An unsupported or disabled runtime must not consume a local nonce reservation.
|
|
629
|
-
await self._stateless_mldsa_codec(block_hash, keypair.crypto_type)
|
|
642
|
+
codec = await self._stateless_mldsa_codec(block_hash, keypair.crypto_type)
|
|
643
|
+
_require_spec_version(codec, expected_spec_version)
|
|
630
644
|
if hashed_signing_snapshot is not None:
|
|
631
645
|
expected = hashed_signing_snapshot.nonce + hashed_generation_offset
|
|
632
646
|
if nonce is not None and nonce != expected:
|
|
@@ -648,6 +662,7 @@ class SubstrateConnection:
|
|
|
648
662
|
signature=signature,
|
|
649
663
|
signing_snapshot=hashed_signing_snapshot,
|
|
650
664
|
block_hash=block_hash,
|
|
665
|
+
expected_spec_version=expected_spec_version,
|
|
651
666
|
)
|
|
652
667
|
if keypair.crypto_type in REGISTERED_CRYPTO_TYPES:
|
|
653
668
|
return await self._sign_hashed(
|
|
@@ -660,6 +675,7 @@ class SubstrateConnection:
|
|
|
660
675
|
signature=signature,
|
|
661
676
|
generation_offset=hashed_generation_offset,
|
|
662
677
|
signing_snapshot=hashed_signing_snapshot,
|
|
678
|
+
expected_spec_version=expected_spec_version,
|
|
663
679
|
)
|
|
664
680
|
if hashed_generation_offset or hashed_signing_snapshot is not None:
|
|
665
681
|
raise ValueError("a generation offset or snapshot is only valid for hashed accounts")
|
|
@@ -667,15 +683,21 @@ class SubstrateConnection:
|
|
|
667
683
|
nonce = await self._nonces.next_for(keypair.ss58_address)
|
|
668
684
|
else:
|
|
669
685
|
self._nonces.pin(keypair.ss58_address, nonce)
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
686
|
+
try:
|
|
687
|
+
return await self.sign_without_nonce_tracking(
|
|
688
|
+
call,
|
|
689
|
+
keypair,
|
|
690
|
+
era=era,
|
|
691
|
+
nonce=nonce,
|
|
692
|
+
tip=tip,
|
|
693
|
+
tip_asset_id=tip_asset_id,
|
|
694
|
+
signature=signature,
|
|
695
|
+
expected_spec_version=expected_spec_version,
|
|
696
|
+
)
|
|
697
|
+
except _SigningRuntimeMismatch:
|
|
698
|
+
# No signature was created; don't leave a gap in the local nonce cache.
|
|
699
|
+
self._nonces.release(keypair.ss58_address, nonce, 1)
|
|
700
|
+
raise
|
|
679
701
|
|
|
680
702
|
async def sign_without_nonce_tracking(
|
|
681
703
|
self,
|
|
@@ -687,6 +709,7 @@ class SubstrateConnection:
|
|
|
687
709
|
tip: int = 0,
|
|
688
710
|
tip_asset_id: Optional[int] = None,
|
|
689
711
|
signature: Optional[bytes | str] = None,
|
|
712
|
+
expected_spec_version: Optional[int] = None,
|
|
690
713
|
) -> SignedExtrinsic:
|
|
691
714
|
"""Sign at an explicit nonce without recording it in the nonce cache.
|
|
692
715
|
|
|
@@ -702,6 +725,7 @@ class SubstrateConnection:
|
|
|
702
725
|
tip=tip,
|
|
703
726
|
tip_asset_id=tip_asset_id,
|
|
704
727
|
signature=signature,
|
|
728
|
+
expected_spec_version=expected_spec_version,
|
|
705
729
|
)
|
|
706
730
|
if keypair.crypto_type in REGISTERED_CRYPTO_TYPES:
|
|
707
731
|
return await self._sign_hashed(
|
|
@@ -712,8 +736,10 @@ class SubstrateConnection:
|
|
|
712
736
|
tip=tip,
|
|
713
737
|
tip_asset_id=tip_asset_id,
|
|
714
738
|
signature=signature,
|
|
739
|
+
expected_spec_version=expected_spec_version,
|
|
715
740
|
)
|
|
716
741
|
codec = await self._runtimes.codec_at(None)
|
|
742
|
+
_require_spec_version(codec, expected_spec_version)
|
|
717
743
|
era, era_block_hash = await self._normalize_era(era)
|
|
718
744
|
return await _sign_and_assemble(
|
|
719
745
|
codec,
|
|
@@ -773,6 +799,7 @@ class SubstrateConnection:
|
|
|
773
799
|
signature,
|
|
774
800
|
signing_snapshot=None,
|
|
775
801
|
block_hash=None,
|
|
802
|
+
expected_spec_version: Optional[int] = None,
|
|
776
803
|
):
|
|
777
804
|
if not 0 <= nonce < 2**32 - 1:
|
|
778
805
|
raise ValueError("standard post-quantum nonce is exhausted or invalid")
|
|
@@ -782,6 +809,7 @@ class SubstrateConnection:
|
|
|
782
809
|
else block_hash or await self.get_chain_finalised_head()
|
|
783
810
|
)
|
|
784
811
|
codec = await self._stateless_mldsa_codec(block_hash, keypair.crypto_type)
|
|
812
|
+
_require_spec_version(codec, expected_spec_version)
|
|
785
813
|
if signing_snapshot is not None and (
|
|
786
814
|
signing_snapshot.address != keypair.ss58_address
|
|
787
815
|
or signing_snapshot.crypto_type != keypair.crypto_type
|
|
@@ -929,6 +957,7 @@ class SubstrateConnection:
|
|
|
929
957
|
signature: Optional[bytes | str],
|
|
930
958
|
generation_offset: int = 0,
|
|
931
959
|
signing_snapshot: Optional[HashedSigningSnapshot] = None,
|
|
960
|
+
expected_spec_version: Optional[int] = None,
|
|
932
961
|
) -> SignedExtrinsic:
|
|
933
962
|
"""Recover current authority from chain state, never from local counters.
|
|
934
963
|
|
|
@@ -958,6 +987,7 @@ class SubstrateConnection:
|
|
|
958
987
|
if not 0 <= generation < 2**64 - 1 - generation_offset:
|
|
959
988
|
raise SubstrateRequestException("hashed signing generation is exhausted")
|
|
960
989
|
codec = await self._runtimes.codec_at(block_hash)
|
|
990
|
+
_require_spec_version(codec, expected_spec_version)
|
|
961
991
|
|
|
962
992
|
if signature is None:
|
|
963
993
|
pending_nonce = await self._nonces.next_for(keypair.ss58_address, use_cache=False)
|
|
@@ -1363,6 +1393,8 @@ class SubstrateConnection:
|
|
|
1363
1393
|
max_weight: Optional[dict | int] = None,
|
|
1364
1394
|
era: Optional[dict] = None,
|
|
1365
1395
|
nonce: Optional[int] = None,
|
|
1396
|
+
expected_timepoint=...,
|
|
1397
|
+
expected_spec_version: Optional[int] = None,
|
|
1366
1398
|
) -> SignedExtrinsic:
|
|
1367
1399
|
"""One signatory's approval of ``call`` for a multisig account.
|
|
1368
1400
|
|
|
@@ -1371,6 +1403,9 @@ class SubstrateConnection:
|
|
|
1371
1403
|
timepoint when the operation is already open.
|
|
1372
1404
|
"""
|
|
1373
1405
|
codec = await self._runtimes.codec_at(None)
|
|
1406
|
+
_require_spec_version(codec, expected_spec_version)
|
|
1407
|
+
if expected_spec_version is not None:
|
|
1408
|
+
_require_spec_version(call, expected_spec_version)
|
|
1374
1409
|
if max_weight is None:
|
|
1375
1410
|
payment_info = await self.get_payment_info(call, keypair)
|
|
1376
1411
|
max_weight = payment_info["weight"]
|
|
@@ -1380,6 +1415,13 @@ class SubstrateConnection:
|
|
|
1380
1415
|
[multisig_account.ss58_address, "0x" + codec.call_hash(call).hex()],
|
|
1381
1416
|
)
|
|
1382
1417
|
maybe_timepoint = pending["when"] if pending else None
|
|
1418
|
+
if expected_timepoint is not ... and (
|
|
1419
|
+
multisig_account.threshold < 2 or maybe_timepoint != expected_timepoint
|
|
1420
|
+
):
|
|
1421
|
+
raise ValueError(
|
|
1422
|
+
"Multisig operation no longer matches the requested opening or timepoint; "
|
|
1423
|
+
"refusing to sign"
|
|
1424
|
+
)
|
|
1383
1425
|
signer_address = _ss58_encode(bytes(keypair.public_key), self.ss58_format)
|
|
1384
1426
|
other_signatories = [
|
|
1385
1427
|
address for address in multisig_account.signatories if address != signer_address
|
|
@@ -1399,7 +1441,16 @@ class SubstrateConnection:
|
|
|
1399
1441
|
function,
|
|
1400
1442
|
params,
|
|
1401
1443
|
)
|
|
1402
|
-
|
|
1444
|
+
# Signing may select a different codec than wrapper composition (including
|
|
1445
|
+
# a finalized codec for PQ signers); enforce the same pin on the payload.
|
|
1446
|
+
guard = (
|
|
1447
|
+
{}
|
|
1448
|
+
if expected_spec_version is None
|
|
1449
|
+
else {
|
|
1450
|
+
"expected_spec_version": expected_spec_version,
|
|
1451
|
+
}
|
|
1452
|
+
)
|
|
1453
|
+
return await self.create_signed_extrinsic(as_multi, keypair, era=era, nonce=nonce, **guard)
|
|
1403
1454
|
|
|
1404
1455
|
# -- addresses ---------------------------------------------------------------------------------
|
|
1405
1456
|
|
|
@@ -48,6 +48,7 @@ from __future__ import annotations
|
|
|
48
48
|
|
|
49
49
|
import contextlib
|
|
50
50
|
import json
|
|
51
|
+
import re
|
|
51
52
|
from typing import Any, Optional
|
|
52
53
|
|
|
53
54
|
import typer
|
|
@@ -149,6 +150,29 @@ def _resolve_multisig(app_ctx, **kwargs):
|
|
|
149
150
|
raise typer.BadParameter(str(error), param_hint="--multisig")
|
|
150
151
|
|
|
151
152
|
|
|
153
|
+
def _multisig_timepoint(value: str | None):
|
|
154
|
+
if value is None:
|
|
155
|
+
return ...
|
|
156
|
+
if value == "open":
|
|
157
|
+
return None
|
|
158
|
+
if not re.fullmatch(r"[0-9]{1,10}:[0-9]{1,10}", value):
|
|
159
|
+
raise typer.BadParameter("expected open or HEIGHT:INDEX", param_hint="--multisig-operation")
|
|
160
|
+
height, index = map(int, value.split(":"))
|
|
161
|
+
if max(height, index) >= 2**32:
|
|
162
|
+
raise typer.BadParameter("timepoint out of range", param_hint="--multisig-operation")
|
|
163
|
+
return {"height": height, "index": index}
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
def _checked_hash(composed, expected):
|
|
167
|
+
actual = ms_helpers.hex_bytes(composed.call_hash)
|
|
168
|
+
if expected is not None and actual.lower() != expected.lower():
|
|
169
|
+
raise typer.BadParameter(
|
|
170
|
+
f"composed call hash {actual} does not match the reviewed hash",
|
|
171
|
+
param_hint="--expected-call-hash",
|
|
172
|
+
)
|
|
173
|
+
return actual
|
|
174
|
+
|
|
175
|
+
|
|
152
176
|
@with_tx_globals
|
|
153
177
|
def call(
|
|
154
178
|
ctx: typer.Context,
|
|
@@ -191,6 +215,21 @@ def call(
|
|
|
191
215
|
help="Other signers only: wallet names, address-book names, or ss58 "
|
|
192
216
|
"(comma/space-separated); your -w wallet coldkey is added.",
|
|
193
217
|
),
|
|
218
|
+
expected_call_hash: Optional[str] = typer.Option(
|
|
219
|
+
None,
|
|
220
|
+
"--expected-call-hash",
|
|
221
|
+
help="Refuse to sign unless the composed call matches this hash.",
|
|
222
|
+
),
|
|
223
|
+
expected_spec_version: Optional[int] = typer.Option(
|
|
224
|
+
None,
|
|
225
|
+
"--expected-spec-version",
|
|
226
|
+
min=0,
|
|
227
|
+
max=0xFFFFFFFF,
|
|
228
|
+
help="Pin a reviewed multisig approval to this runtime spec version.",
|
|
229
|
+
),
|
|
230
|
+
multisig_operation: Optional[str] = typer.Option(
|
|
231
|
+
None, "--multisig-operation", help="Pin one clear approval to open or to HEIGHT:INDEX."
|
|
232
|
+
),
|
|
194
233
|
signer: str = typer.Option(
|
|
195
234
|
"coldkey",
|
|
196
235
|
"--signer",
|
|
@@ -252,6 +291,23 @@ def call(
|
|
|
252
291
|
str(getattr(force_proxy_type, "value", force_proxy_type)) if force_proxy_type else None
|
|
253
292
|
)
|
|
254
293
|
via_multisig = threshold is not None
|
|
294
|
+
timepoint = _multisig_timepoint(multisig_operation)
|
|
295
|
+
if expected_call_hash is not None and not re.fullmatch(
|
|
296
|
+
r"0x[0-9a-fA-F]{64}", expected_call_hash
|
|
297
|
+
):
|
|
298
|
+
raise typer.BadParameter("expected a 32-byte hex hash", param_hint="--expected-call-hash")
|
|
299
|
+
if timepoint is not ... and (
|
|
300
|
+
not via_multisig or threshold < 2 or shield or len(app_ctx.signatory_wallets) > 1
|
|
301
|
+
):
|
|
302
|
+
raise typer.BadParameter(
|
|
303
|
+
"requires one unshielded approval of a multisig with threshold at least two",
|
|
304
|
+
param_hint="--multisig-operation",
|
|
305
|
+
)
|
|
306
|
+
if expected_spec_version is not None and (timepoint is ... or expected_call_hash is None):
|
|
307
|
+
raise typer.BadParameter(
|
|
308
|
+
"requires --multisig-operation and --expected-call-hash",
|
|
309
|
+
param_hint="--expected-spec-version",
|
|
310
|
+
)
|
|
255
311
|
if app_ctx.signatory_wallet and not via_multisig:
|
|
256
312
|
# A typo'd or missing multisig name must not degrade into a plain raw
|
|
257
313
|
# call: the user explicitly asked for a multisig member to sign.
|
|
@@ -290,6 +346,7 @@ def call(
|
|
|
290
346
|
raise typer.BadParameter(str(error), param_hint="--signatory") from error
|
|
291
347
|
elif (
|
|
292
348
|
via_multisig
|
|
349
|
+
and timepoint is ...
|
|
293
350
|
and signer == "coldkey"
|
|
294
351
|
and not app_ctx.signatory_wallet
|
|
295
352
|
and not app_ctx.signer_backend
|
|
@@ -321,7 +378,14 @@ def call(
|
|
|
321
378
|
signer_ss58 = app_ctx.wallet().coldkeypub.ss58_address
|
|
322
379
|
except Exception:
|
|
323
380
|
signer_ss58 = None
|
|
324
|
-
|
|
381
|
+
pinned = timepoint is not ...
|
|
382
|
+
explicit_member = pinned and bool(app_ctx.signatory_wallet)
|
|
383
|
+
if explicit_member or signer_ss58 not in sigs:
|
|
384
|
+
if pinned and not explicit_member:
|
|
385
|
+
raise typer.BadParameter(
|
|
386
|
+
"the selected wallet must be a member for a pinned approval",
|
|
387
|
+
param_hint="--wallet",
|
|
388
|
+
)
|
|
325
389
|
try:
|
|
326
390
|
member_name, _ss58 = ms_helpers.pick_local_signatory(
|
|
327
391
|
app_ctx,
|
|
@@ -329,7 +393,8 @@ def call(
|
|
|
329
393
|
signatories=sigs,
|
|
330
394
|
)
|
|
331
395
|
except ValueError as error:
|
|
332
|
-
|
|
396
|
+
hint = "--signatory" if explicit_member else "--wallet"
|
|
397
|
+
raise typer.BadParameter(str(error), param_hint=hint) from error
|
|
333
398
|
app_ctx.multisig_wallet_name = preset or app_ctx.wallet_name
|
|
334
399
|
app_ctx.wallet_name = member_name
|
|
335
400
|
app_ctx.wallet_given = True
|
|
@@ -354,6 +419,16 @@ def call(
|
|
|
354
419
|
proxy_type=proxy_type_value,
|
|
355
420
|
)
|
|
356
421
|
|
|
422
|
+
async def compose_checked(client):
|
|
423
|
+
composed = await _compose_only(client, prepare)
|
|
424
|
+
_checked_hash(composed, expected_call_hash)
|
|
425
|
+
if expected_spec_version is not None and composed.spec_version != expected_spec_version:
|
|
426
|
+
raise ValueError(
|
|
427
|
+
f"Composed runtime specVersion {composed.spec_version} differs from reviewed "
|
|
428
|
+
f"{expected_spec_version}; regenerate and review the proposal"
|
|
429
|
+
)
|
|
430
|
+
return composed
|
|
431
|
+
|
|
357
432
|
if app_ctx.dry_run:
|
|
358
433
|
fields: dict[str, Any] = {
|
|
359
434
|
"target": target,
|
|
@@ -370,7 +445,7 @@ def call(
|
|
|
370
445
|
if via_multisig:
|
|
371
446
|
|
|
372
447
|
async def _dry_run_multisig(client):
|
|
373
|
-
await
|
|
448
|
+
await compose_checked(client)
|
|
374
449
|
return await _multisig_address(client, sigs, threshold, account_mode=account_mode)
|
|
375
450
|
|
|
376
451
|
ms_addr = app_ctx.run(_dry_run_multisig)
|
|
@@ -384,11 +459,18 @@ def call(
|
|
|
384
459
|
f"{name} ({backend})" for name, _ss58, backend in rounds
|
|
385
460
|
)
|
|
386
461
|
else:
|
|
387
|
-
app_ctx.run(
|
|
388
|
-
|
|
462
|
+
app_ctx.run(compose_checked)
|
|
463
|
+
if expected_spec_version is not None:
|
|
464
|
+
fields["expected_spec_version"] = expected_spec_version
|
|
465
|
+
fields["command"] = "Use the reviewed proposal verifier for this pinned approval."
|
|
466
|
+
else:
|
|
467
|
+
fields["command"] = replay_command()
|
|
389
468
|
app_ctx.output.detail("dry run: raw call", fields)
|
|
390
469
|
return
|
|
391
470
|
|
|
471
|
+
if expected_call_hash is not None:
|
|
472
|
+
app_ctx.run(compose_checked)
|
|
473
|
+
|
|
392
474
|
if via_multisig:
|
|
393
475
|
who = preset or f"{threshold}-of-{len(sigs)}"
|
|
394
476
|
if rounds:
|
|
@@ -410,6 +492,12 @@ def call(
|
|
|
410
492
|
if proxy_for:
|
|
411
493
|
context_rows.append(("proxy for", proxy_for))
|
|
412
494
|
context_rows.append(("summary", label))
|
|
495
|
+
if expected_call_hash is not None:
|
|
496
|
+
context_rows.append(("reviewed call hash", expected_call_hash))
|
|
497
|
+
if expected_spec_version is not None:
|
|
498
|
+
context_rows.append(("reviewed runtime spec version", str(expected_spec_version)))
|
|
499
|
+
if multisig_operation is not None:
|
|
500
|
+
context_rows.append(("multisig operation", multisig_operation))
|
|
413
501
|
signer_rows: list[tuple] = [("signer", app_ctx.wallet_name)]
|
|
414
502
|
if via_multisig:
|
|
415
503
|
signer_rows.append(("multisig", who))
|
|
@@ -457,7 +545,12 @@ def call(
|
|
|
457
545
|
)
|
|
458
546
|
if use_shield:
|
|
459
547
|
await app_ctx._prepare_two_stage_signer(signing)
|
|
460
|
-
|
|
548
|
+
guard = {} if timepoint is ... else {"expected_timepoint": timepoint}
|
|
549
|
+
if expected_spec_version is not None:
|
|
550
|
+
guard["expected_spec_version"] = expected_spec_version
|
|
551
|
+
result = await ms.approve(
|
|
552
|
+
call, signing, signer=signer, shielded=use_shield, **guard
|
|
553
|
+
)
|
|
461
554
|
return result
|
|
462
555
|
finally:
|
|
463
556
|
await _release_signer(signing, result)
|
|
@@ -507,9 +600,13 @@ def call(
|
|
|
507
600
|
|
|
508
601
|
async def _submit_multisig(client):
|
|
509
602
|
ms = await client.multisig(sigs, threshold, account_mode=account_mode)
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
603
|
+
if expected_call_hash is not None:
|
|
604
|
+
composed = call = await compose_checked(client)
|
|
605
|
+
call_hash = "0x" + bytes(composed.call_hash).hex()
|
|
606
|
+
else:
|
|
607
|
+
call = await prepare(client)
|
|
608
|
+
composed = await client.compose(call)
|
|
609
|
+
call_hash = _checked_hash(composed, None)
|
|
513
610
|
if rounds:
|
|
514
611
|
result = await _approve_rounds(client, ms, call, call_hash)
|
|
515
612
|
else:
|
|
@@ -534,6 +631,11 @@ def call(
|
|
|
534
631
|
signer_role=signer,
|
|
535
632
|
result=result,
|
|
536
633
|
)
|
|
634
|
+
if timepoint is not ... and followup and followup.get("status") == "pending":
|
|
635
|
+
followup["co_signer_commands"] = []
|
|
636
|
+
followup["commands_available"] = False
|
|
637
|
+
followup["decode_note"] = "pinned operation: use the reviewed proposal verifier"
|
|
638
|
+
followup["decode_hint"] = "subsequent approvals must use the opening timepoint"
|
|
537
639
|
result.data["multisig_followup"] = followup
|
|
538
640
|
return result
|
|
539
641
|
|
|
@@ -549,7 +651,13 @@ def call(
|
|
|
549
651
|
)
|
|
550
652
|
if use_shield:
|
|
551
653
|
await app_ctx._prepare_two_stage_signer(signing)
|
|
552
|
-
|
|
654
|
+
if expected_call_hash is not None:
|
|
655
|
+
composed = await compose_checked(client)
|
|
656
|
+
result = await client.submit_call(
|
|
657
|
+
composed, signing, signer=signer, shielded=use_shield
|
|
658
|
+
)
|
|
659
|
+
else:
|
|
660
|
+
result = await _submit(client, prepare, signing, signer, shielded=use_shield)
|
|
553
661
|
return result
|
|
554
662
|
finally:
|
|
555
663
|
await _release_signer(signing, result)
|
|
@@ -305,6 +305,8 @@ class Multisig:
|
|
|
305
305
|
wait_for_inclusion: bool = True,
|
|
306
306
|
wait_for_finalization: bool = False,
|
|
307
307
|
shielded: bool | None = None,
|
|
308
|
+
expected_timepoint=...,
|
|
309
|
+
expected_spec_version: int | None = None,
|
|
308
310
|
):
|
|
309
311
|
"""Approve ``call`` as one signatory; executes it once the threshold is met.
|
|
310
312
|
|
|
@@ -329,6 +331,11 @@ class Multisig:
|
|
|
329
331
|
from .shielding import registration_shield_default
|
|
330
332
|
|
|
331
333
|
shielded = await registration_shield_default(self._client._substrate, composed)
|
|
334
|
+
if (expected_timepoint is not ... or expected_spec_version is not None) and shielded:
|
|
335
|
+
raise ValueError("Pinned multisig approvals must be submitted unshielded")
|
|
336
|
+
guard = {} if expected_timepoint is ... else {"expected_timepoint": expected_timepoint}
|
|
337
|
+
if expected_spec_version is not None:
|
|
338
|
+
guard["expected_spec_version"] = expected_spec_version
|
|
332
339
|
as_multi = await self._preflight_funds(composed, wallet, signer, shielded=bool(shielded))
|
|
333
340
|
keypair = resolve_signer(wallet, signer)
|
|
334
341
|
if not shielded:
|
|
@@ -338,6 +345,7 @@ class Multisig:
|
|
|
338
345
|
self._account,
|
|
339
346
|
wait_for_inclusion=wait_for_inclusion,
|
|
340
347
|
wait_for_finalization=wait_for_finalization,
|
|
348
|
+
**guard,
|
|
341
349
|
)
|
|
342
350
|
return await self._client._executor._submit_encrypted_call(
|
|
343
351
|
as_multi,
|
|
@@ -84,6 +84,11 @@ class Snapshot:
|
|
|
84
84
|
|
|
85
85
|
# Chain metadata --------------------------------------------------------------
|
|
86
86
|
|
|
87
|
+
async def spec_version(self) -> int:
|
|
88
|
+
"""The runtime spec version in this snapshot's state."""
|
|
89
|
+
block_hash = await self._client._block_hash(self.block)
|
|
90
|
+
return await self._client._substrate.spec_version(block_hash)
|
|
91
|
+
|
|
87
92
|
async def timestamp(self) -> datetime:
|
|
88
93
|
"""UTC timestamp of this snapshot's block."""
|
|
89
94
|
return await self._client.timestamp(block=self.block)
|
|
@@ -159,6 +159,11 @@ class SyncSnapshot:
|
|
|
159
159
|
def constant(self, item):
|
|
160
160
|
return self._call(self._snapshot.constant(item))
|
|
161
161
|
|
|
162
|
+
@property
|
|
163
|
+
def spec_version(self) -> int:
|
|
164
|
+
"""The runtime spec version in this snapshot's state."""
|
|
165
|
+
return self._call(self._snapshot.spec_version())
|
|
166
|
+
|
|
162
167
|
def timestamp(self):
|
|
163
168
|
return self._call(self._snapshot.timestamp())
|
|
164
169
|
|