bittensor 11.3.5__tar.gz → 11.3.6__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.
Files changed (411) hide show
  1. {bittensor-11.3.5 → bittensor-11.3.6}/PKG-INFO +1 -1
  2. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_generated/calls.py +80 -4
  3. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_generated/errors.py +9 -2
  4. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_generated/runtime_apis.py +3 -0
  5. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_generated/storage.py +32 -0
  6. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_substrate.py +18 -5
  7. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_transport/interface.py +23 -4
  8. bittensor-11.3.6/bittensor/cli/commands/commitments.py +125 -0
  9. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/misc.py +2 -1
  10. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/root_swap.py +8 -7
  11. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/subnet_emission.py +4 -3
  12. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/weights.py +115 -4
  13. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/help_theme.py +9 -0
  14. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/main.py +3 -0
  15. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/client.py +8 -0
  16. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/emission_weights.py +9 -4
  17. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/commitments.py +17 -0
  18. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/subtensor.py +32 -13
  19. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_map.py +6 -0
  20. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/hyperparams.py +2 -2
  21. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/__init__.py +13 -1
  22. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/_root_claim_fee.py +213 -26
  23. bittensor-11.3.6/bittensor/intents/commitments.py +288 -0
  24. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/emission_weights.py +14 -5
  25. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/governance.py +9 -4
  26. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/registration.py +11 -10
  27. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/staking.py +9 -9
  28. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/weights.py +254 -21
  29. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/namespaces.pyi +27 -3
  30. bittensor-11.3.6/bittensor/reads/identity.py +351 -0
  31. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/reads/root.py +1 -1
  32. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/reads/subnets.py +24 -3
  33. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/snapshot.py +4 -0
  34. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/sync.py +6 -0
  35. {bittensor-11.3.5 → bittensor-11.3.6}/codegen/check.py +5 -2
  36. {bittensor-11.3.5 → bittensor-11.3.6}/pyproject.toml +1 -1
  37. {bittensor-11.3.5 → bittensor-11.3.6}/tests/harness/fake_substrate.py +1 -1
  38. {bittensor-11.3.5 → bittensor-11.3.6}/tests/harness/samples.py +7 -0
  39. bittensor-11.3.6/tests/unit/test_channel_commitments_and_weight_delegates.py +379 -0
  40. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_cli_commands.py +9 -0
  41. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_emission_weights.py +72 -0
  42. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_intents_table.py +33 -0
  43. bittensor-11.3.6/tests/unit/test_null_weights.py +250 -0
  44. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_root_claim_fee.py +271 -14
  45. bittensor-11.3.6/tests/unit/test_runtime_spec_version_at_block.py +63 -0
  46. bittensor-11.3.5/bittensor/reads/identity.py +0 -162
  47. bittensor-11.3.5/tests/unit/test_null_weights.py +0 -115
  48. {bittensor-11.3.5 → bittensor-11.3.6}/.gitignore +0 -0
  49. {bittensor-11.3.5 → bittensor-11.3.6}/README.md +0 -0
  50. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/__init__.py +0 -0
  51. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_generated/__init__.py +0 -0
  52. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_generated/constants.py +0 -0
  53. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_live.py +0 -0
  54. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_pinned.py +0 -0
  55. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_subtensor.py +0 -0
  56. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_transport/__init__.py +0 -0
  57. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_transport/codec.py +0 -0
  58. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_transport/const.py +0 -0
  59. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_transport/contract.py +0 -0
  60. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_transport/errors.py +0 -0
  61. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_transport/extrinsics.py +0 -0
  62. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_transport/lru.py +0 -0
  63. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_transport/protocols.py +0 -0
  64. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_transport/rpc.py +0 -0
  65. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_transport/runtime.py +0 -0
  66. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_transport/runtime_api.py +0 -0
  67. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_transport/storage.py +0 -0
  68. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_transport/utils/__init__.py +0 -0
  69. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/_transport/utils/receipt.py +0 -0
  70. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/account_mode.py +0 -0
  71. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/balance.py +0 -0
  72. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/basket_index.py +0 -0
  73. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/basket_index_data.py +0 -0
  74. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/__init__.py +0 -0
  75. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/call.py +0 -0
  76. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/call_names.py +0 -0
  77. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/__init__.py +0 -0
  78. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/addresses.py +0 -0
  79. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/axon.py +0 -0
  80. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/collateral.py +0 -0
  81. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/config.py +0 -0
  82. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/crowd.py +0 -0
  83. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/evm/__init__.py +0 -0
  84. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/evm/_shared.py +0 -0
  85. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/evm/address.py +0 -0
  86. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/evm/association.py +0 -0
  87. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/evm/contracts_cmd.py +0 -0
  88. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/evm/keys.py +0 -0
  89. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/evm/money.py +0 -0
  90. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/evm/precompiles_cmd.py +0 -0
  91. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/evm/setup.py +0 -0
  92. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/evm/stake.py +0 -0
  93. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/extension.py +0 -0
  94. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/gamma.py +0 -0
  95. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/lock.py +0 -0
  96. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/multisig.py +0 -0
  97. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/proxy.py +0 -0
  98. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/root.py +0 -0
  99. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/root_move.py +0 -0
  100. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/stake.py +0 -0
  101. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/subnets.py +0 -0
  102. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/sudo.py +0 -0
  103. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/timelock.py +0 -0
  104. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/upgrade.py +0 -0
  105. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/commands/wallet.py +0 -0
  106. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/context.py +0 -0
  107. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/globals.py +0 -0
  108. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/helpers.py +0 -0
  109. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/hyperparams_view.py +0 -0
  110. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/intent_prompts.py +0 -0
  111. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/logs.py +0 -0
  112. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/metagraph_view.py +0 -0
  113. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/multisig_helpers.py +0 -0
  114. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/null_pruning.py +0 -0
  115. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/output.py +0 -0
  116. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/prompt.py +0 -0
  117. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/protected.py +0 -0
  118. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/query.py +0 -0
  119. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/registration.py +0 -0
  120. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/root_helpers.py +0 -0
  121. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/secrets.py +0 -0
  122. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/stake_exit.py +0 -0
  123. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/stake_picker.py +0 -0
  124. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/tx.py +0 -0
  125. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/upgrade_helpers.py +0 -0
  126. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/cli/wallet_addresses.py +0 -0
  127. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/config.py +0 -0
  128. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/__init__.py +0 -0
  129. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/admin_utils.py +0 -0
  130. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/balances.py +0 -0
  131. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/contracts.py +0 -0
  132. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/crowdloan.py +0 -0
  133. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/drand.py +0 -0
  134. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/ethereum.py +0 -0
  135. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/evm.py +0 -0
  136. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/grandpa.py +0 -0
  137. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/hashed_accounts.py +0 -0
  138. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/limit_orders.py +0 -0
  139. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/mev_shield.py +0 -0
  140. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/multisig.py +0 -0
  141. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/preimage.py +0 -0
  142. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/proxy.py +0 -0
  143. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/safe_mode.py +0 -0
  144. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/scheduler.py +0 -0
  145. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/sudo.py +0 -0
  146. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/swap.py +0 -0
  147. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/system.py +0 -0
  148. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/error_descriptions/utility.py +0 -0
  149. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/__init__.py +0 -0
  150. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/abi/addressMapping.json +0 -0
  151. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/abi/alpha.json +0 -0
  152. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/abi/balance.json +0 -0
  153. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/abi/balanceTransfer.json +0 -0
  154. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/abi/crowdloan.json +0 -0
  155. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/abi/drand.json +0 -0
  156. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/abi/ed25519Verify.json +0 -0
  157. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/abi/leasing.json +0 -0
  158. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/abi/metagraph.json +0 -0
  159. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/abi/neuron.json +0 -0
  160. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/abi/proxy.json +0 -0
  161. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/abi/registry.json +0 -0
  162. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/abi/runtimeConfiguration.json +0 -0
  163. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/abi/scheduler.json +0 -0
  164. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/abi/sr25519Verify.json +0 -0
  165. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/abi/staking.json +0 -0
  166. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/abi/stakingV2.json +0 -0
  167. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/abi/subnet.json +0 -0
  168. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/abi/timestamp.json +0 -0
  169. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/abi/uidLookup.json +0 -0
  170. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/abi/votingPower.json +0 -0
  171. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/addresses.py +0 -0
  172. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/contracts.py +0 -0
  173. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/keys.py +0 -0
  174. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/networks.py +0 -0
  175. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/precompiles.py +0 -0
  176. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/rpc.py +0 -0
  177. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/evm/transactions.py +0 -0
  178. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/executor.py +0 -0
  179. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/extension/__init__.py +0 -0
  180. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/extension/bridge.py +0 -0
  181. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/extension/browser.py +0 -0
  182. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/extension/client.py +0 -0
  183. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/extension/daemon.py +0 -0
  184. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/extension/picker.py +0 -0
  185. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/extension/session.py +0 -0
  186. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/extension/signer.py +0 -0
  187. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/extension/static/bridge.html +0 -0
  188. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/extension/tokens.py +0 -0
  189. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/fee_filters.py +0 -0
  190. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/hashed.py +0 -0
  191. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/http_auth.py +0 -0
  192. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/_money.py +0 -0
  193. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/association.py +0 -0
  194. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/base.py +0 -0
  195. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/batch.py +0 -0
  196. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/children.py +0 -0
  197. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/coldkey.py +0 -0
  198. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/collateral.py +0 -0
  199. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/crowdloan.py +0 -0
  200. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/evm.py +0 -0
  201. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/gamma.py +0 -0
  202. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/hyperparameters.py +0 -0
  203. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/identity.py +0 -0
  204. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/leasing.py +0 -0
  205. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/limit_orders.py +0 -0
  206. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/lock.py +0 -0
  207. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/multisig.py +0 -0
  208. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/plan.py +0 -0
  209. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/proxy.py +0 -0
  210. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/registry.py +0 -0
  211. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/root.py +0 -0
  212. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/serving.py +0 -0
  213. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/intents/transfer.py +0 -0
  214. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/keyfiles.py +0 -0
  215. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/ledger.py +0 -0
  216. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/limit_orders.py +0 -0
  217. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/macos_password.py +0 -0
  218. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/masked_input.py +0 -0
  219. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/metagraph.py +0 -0
  220. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/mldsa.py +0 -0
  221. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/mldsa_signing.py +0 -0
  222. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/multisig.py +0 -0
  223. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/namespaces.py +0 -0
  224. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/pow_registration.py +0 -0
  225. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/protected_account.py +0 -0
  226. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/protected_funding.py +0 -0
  227. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/proxy_announcements.py +0 -0
  228. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/py.typed +0 -0
  229. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/reads/__init__.py +0 -0
  230. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/reads/accounts.py +0 -0
  231. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/reads/base.py +0 -0
  232. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/reads/chain.py +0 -0
  233. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/reads/collateral.py +0 -0
  234. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/reads/delegation.py +0 -0
  235. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/reads/epochs.py +0 -0
  236. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/reads/gamma.py +0 -0
  237. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/reads/hyperparameters.py +0 -0
  238. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/reads/leasing.py +0 -0
  239. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/reads/locks.py +0 -0
  240. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/reads/neurons.py +0 -0
  241. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/reads/prices.py +0 -0
  242. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/reads/staking.py +0 -0
  243. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/reads/weights.py +0 -0
  244. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/receiving.py +0 -0
  245. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/registration_sponsorship.py +0 -0
  246. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/result.py +0 -0
  247. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/settings.py +0 -0
  248. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/shielding.py +0 -0
  249. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/signing.py +0 -0
  250. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/sp_core.py +0 -0
  251. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/timelock.py +0 -0
  252. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/vault/__init__.py +0 -0
  253. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/vault/qr.py +0 -0
  254. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/vault/scan.py +0 -0
  255. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/vault/server.py +0 -0
  256. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/vault/signer.py +0 -0
  257. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/vault/static/bittensor-chain-specs.png +0 -0
  258. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/vault/static/vault.html +0 -0
  259. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/vault/uos.py +0 -0
  260. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/wallet.py +0 -0
  261. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/wallet_registration.py +0 -0
  262. {bittensor-11.3.5 → bittensor-11.3.6}/bittensor/wallets.py +0 -0
  263. {bittensor-11.3.5 → bittensor-11.3.6}/codegen/__init__.py +0 -0
  264. {bittensor-11.3.5 → bittensor-11.3.6}/codegen/__main__.py +0 -0
  265. {bittensor-11.3.5 → bittensor-11.3.6}/codegen/emit_namespaces.py +0 -0
  266. {bittensor-11.3.5 → bittensor-11.3.6}/codegen/emit_python.py +0 -0
  267. {bittensor-11.3.5 → bittensor-11.3.6}/codegen/metadata.py +0 -0
  268. {bittensor-11.3.5 → bittensor-11.3.6}/completions/_btcli +0 -0
  269. {bittensor-11.3.5 → bittensor-11.3.6}/completions/btcli.bash +0 -0
  270. {bittensor-11.3.5 → bittensor-11.3.6}/completions/btcli.fish +0 -0
  271. {bittensor-11.3.5 → bittensor-11.3.6}/justfile +0 -0
  272. {bittensor-11.3.5 → bittensor-11.3.6}/scripts/bench_neurons.py +0 -0
  273. {bittensor-11.3.5 → bittensor-11.3.6}/scripts/bench_transport.py +0 -0
  274. {bittensor-11.3.5 → bittensor-11.3.6}/scripts/build_basket_index.py +0 -0
  275. {bittensor-11.3.5 → bittensor-11.3.6}/scripts/export_beta_baselines_rs.py +0 -0
  276. {bittensor-11.3.5 → bittensor-11.3.6}/scripts/prepare_clone_for_e2e.py +0 -0
  277. {bittensor-11.3.5 → bittensor-11.3.6}/scripts/record_golden.py +0 -0
  278. {bittensor-11.3.5 → bittensor-11.3.6}/scripts/record_hashed_vectors.py +0 -0
  279. {bittensor-11.3.5 → bittensor-11.3.6}/scripts/record_shape_corpus.py +0 -0
  280. {bittensor-11.3.5 → bittensor-11.3.6}/scripts/test_protected_cli.sh +0 -0
  281. {bittensor-11.3.5 → bittensor-11.3.6}/scripts/verify_finney_evm_association_cap.py +0 -0
  282. {bittensor-11.3.5 → bittensor-11.3.6}/tests/__init__.py +0 -0
  283. {bittensor-11.3.5 → bittensor-11.3.6}/tests/conftest.py +0 -0
  284. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_emission_weights_cli.py +0 -0
  285. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_falcon_fund_safety.py +0 -0
  286. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_falcon_release.py +0 -0
  287. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_hashed_activation.py +0 -0
  288. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_mixed_multisig.py +0 -0
  289. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_mldsa_cli_regressions.py +0 -0
  290. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_mldsa_extended.py +0 -0
  291. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_mldsa_localnet.py +0 -0
  292. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_mldsa_multisig_costs.py +0 -0
  293. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_mldsa_nested_authority.py +0 -0
  294. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_mldsa_operation_families.py +0 -0
  295. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_mldsa_proxy_boundaries.py +0 -0
  296. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_mldsa_release.py +0 -0
  297. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_mldsa_release_costs.py +0 -0
  298. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_mldsa_root_cli.py +0 -0
  299. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_mldsa_sponsorship_live.py +0 -0
  300. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_mldsa_validator_paths.py +0 -0
  301. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_mldsa_validator_proxy.py +0 -0
  302. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_null_consensus.py +0 -0
  303. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_pow_registration.py +0 -0
  304. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_protected_cli.py +0 -0
  305. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_timelock_commitment.py +0 -0
  306. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_wallet_approval_lifecycle.py +0 -0
  307. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_wallet_parity.py +0 -0
  308. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_wallet_shield.py +0 -0
  309. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_wallet_swap_release.py +0 -0
  310. {bittensor-11.3.5 → bittensor-11.3.6}/tests/e2e/test_wallet_types.py +0 -0
  311. {bittensor-11.3.5 → bittensor-11.3.6}/tests/fixtures/golden.json +0 -0
  312. {bittensor-11.3.5 → bittensor-11.3.6}/tests/fixtures/mldsa-zero-next-proof.hex +0 -0
  313. {bittensor-11.3.5 → bittensor-11.3.6}/tests/fixtures/shape_corpus/corpus.json +0 -0
  314. {bittensor-11.3.5 → bittensor-11.3.6}/tests/harness/__init__.py +0 -0
  315. {bittensor-11.3.5 → bittensor-11.3.6}/tests/harness/fake_node.py +0 -0
  316. {bittensor-11.3.5 → bittensor-11.3.6}/tests/harness/receiving.py +0 -0
  317. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/__init__.py +0 -0
  318. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_announced_batch_safety.py +0 -0
  319. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_announced_execution_policy.py +0 -0
  320. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_announcement_cancel.py +0 -0
  321. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_balance_properties.py +0 -0
  322. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_cli.py +0 -0
  323. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_cli_intent_prompts.py +0 -0
  324. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_cli_null_pruning.py +0 -0
  325. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_codec_golden.py +0 -0
  326. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_codec_properties.py +0 -0
  327. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_evm.py +0 -0
  328. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_evm_wallet_types.py +0 -0
  329. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_extension_bridge.py +0 -0
  330. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_extension_signer.py +0 -0
  331. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_facades.py +0 -0
  332. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_falcon_accounts.py +0 -0
  333. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_fee_filters.py +0 -0
  334. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_gamma.py +0 -0
  335. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_hashed_accounts.py +0 -0
  336. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_hashed_children.py +0 -0
  337. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_hashed_evm.py +0 -0
  338. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_hashed_messages.py +0 -0
  339. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_hashed_receiving.py +0 -0
  340. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_hashed_receiving_cli.py +0 -0
  341. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_http_auth.py +0 -0
  342. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_hyperparams_units.py +0 -0
  343. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_keyfile_atomicity.py +0 -0
  344. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_keyfiles_golden.py +0 -0
  345. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_ledger_signer.py +0 -0
  346. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_lock_ownership_gate.py +0 -0
  347. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_metagraph_symbols.py +0 -0
  348. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_mldsa_accounts.py +0 -0
  349. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_mldsa_messages.py +0 -0
  350. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_mldsa_orders.py +0 -0
  351. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_mldsa_signing.py +0 -0
  352. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_multisig_pinned_staking.py +0 -0
  353. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_multisig_safety.py +0 -0
  354. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_multisig_signatories.py +0 -0
  355. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_natural_name_key.py +0 -0
  356. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_normalize_signature.py +0 -0
  357. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_order_subnet_policy.py +0 -0
  358. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_pow_registration.py +0 -0
  359. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_pq_release_adversarial.py +0 -0
  360. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_prepare_attach.py +0 -0
  361. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_protected_account.py +0 -0
  362. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_protected_authority_regressions.py +0 -0
  363. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_protected_dispatch_regressions.py +0 -0
  364. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_protected_funding.py +0 -0
  365. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_protected_pending_lifecycle.py +0 -0
  366. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_protected_preparation.py +0 -0
  367. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_protected_preview_routing.py +0 -0
  368. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_protected_reconciliation_regressions.py +0 -0
  369. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_protected_revocation_ordering.py +0 -0
  370. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_protected_rotation_binding.py +0 -0
  371. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_protected_saved_hash.py +0 -0
  372. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_protected_settings_guards.py +0 -0
  373. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_protected_setup_resume.py +0 -0
  374. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_protected_setup_v2.py +0 -0
  375. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_protected_show_hash_match.py +0 -0
  376. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_protected_store_scoping.py +0 -0
  377. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_protected_timing_regressions.py +0 -0
  378. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_proxy_explicit_origin.py +0 -0
  379. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_reads_table.py +0 -0
  380. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_registration_deposit.py +0 -0
  381. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_registration_shield.py +0 -0
  382. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_registration_sponsorship.py +0 -0
  383. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_registration_sponsorship_cli.py +0 -0
  384. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_rpc.py +0 -0
  385. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_safe_composites.py +0 -0
  386. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_shape_corpus.py +0 -0
  387. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_shield_fee.py +0 -0
  388. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_shield_receipt_fees.py +0 -0
  389. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_slippage_protection.py +0 -0
  390. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_sp_core_backend_compat.py +0 -0
  391. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_sp_core_keypair.py +0 -0
  392. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_sp_core_parity.py +0 -0
  393. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_stateless_mldsa.py +0 -0
  394. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_storage_exists.py +0 -0
  395. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_storage_golden.py +0 -0
  396. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_submission_admission.py +0 -0
  397. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_submission_costs.py +0 -0
  398. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_subnet_convictions.py +0 -0
  399. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_subnet_lifecycle.py +0 -0
  400. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_v446_accounting_and_commitments.py +0 -0
  401. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_vault_signer.py +0 -0
  402. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_wallet_address_output.py +0 -0
  403. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_wallet_address_status.py +0 -0
  404. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_wallet_compat.py +0 -0
  405. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_wallet_creation_registration_cli.py +0 -0
  406. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_wallet_crypto_types.py +0 -0
  407. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_wallet_list_multisig_offline.py +0 -0
  408. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_wallet_pair_atomicity.py +0 -0
  409. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_wallet_registration.py +0 -0
  410. {bittensor-11.3.5 → bittensor-11.3.6}/tests/unit/test_wallet_review_regressions.py +0 -0
  411. {bittensor-11.3.5 → bittensor-11.3.6}/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.5
3
+ Version: 11.3.6
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
@@ -20,6 +20,7 @@ AccountId32 = Any
20
20
  AdjustmentDirection = Any
21
21
  AlphaBalance = Any
22
22
  BTreeSet = Any
23
+ BasketTradePriceReference = Any
23
24
  BeaconConfigurationPayload = Any
24
25
  BoundedVec = Any
25
26
  CommitmentInfo = Any
@@ -270,7 +271,7 @@ class SubtensorModule:
270
271
 
271
272
  @staticmethod
272
273
  def claim_root_with_hotkey(hotkey: 'AccountId32') -> Call:
273
- "Claims the root emissions for a coldkey on one validator hotkey. Redemption is fund-level for that validator: the staker's accrued entitlement is paid as their pro-rata fraction of the basket's full-liquidation NAV and staked on root. The corresponding alpha fraction is sold; any concavity surplus over the NAV-priced entitlement remains in the basket as root TAO for the other holders. Other validators' accrued yield is left untouched. Dust rows are not sold: a fund row worth less than `min(BasketClaimRowDustCapTao, BasketClaimRowDustBps × anchored NAV)`, or one whose slice for this claimant is worth less than `BasketClaimSliceDustTao`, is skipped when that slice is also worth at most `BasketClaimForfeitCapTao` (all at the anchored mark, which decides dust only). The claim burns the full entitlement, so the claimant's slice of a skipped row — never more than the cap at the anchored mark — is left to the remaining holders (`BasketClaimDustSkipped` reports it). A claim that is admitted and then fails is charged the work it did, not the declared envelope; a claim refused at admission keeps the envelope. # Arguments * `origin`: The signature of the caller's coldkey. * `hotkey`: The validator whose basket entitlement to redeem. # Events * `RootClaimed`: On successfully claiming the root emissions for this coldkey+hotkey. * `BasketClaimDustSkipped`: When the claim left dust rows unsold. # Errors * `RootClaimTooHeavy`: The fund has more rows (or queued credits) than one claim may walk."
274
+ "Claims the root emissions for a coldkey on one validator hotkey. Redemption is fund-level for that validator: the staker's accrued entitlement is paid as their pro-rata fraction of the basket's full-liquidation NAV and staked on root. The corresponding alpha fraction is sold; any concavity surplus over the NAV-priced entitlement remains in the basket as root TAO for the other holders. Other validators' accrued yield is left untouched. Dust rows are not sold: a fund row worth less than `min(BasketClaimRowDustCapTao, BasketClaimRowDustBps × anchored NAV)`, or one whose slice for this claimant is worth less than `BasketClaimSliceDustTao`, is skipped when that slice is also worth at most `BasketClaimForfeitCapTao` (all at the anchored mark, which decides dust only). The claim burns the full entitlement, so the claimant's slice of a skipped row — never more than the cap at the anchored mark — is left to the remaining holders (`BasketClaimDustSkipped` reports it). A claim that is admitted and then fails is charged the work it did, not the declared envelope; a claim refused at admission keeps the envelope. The declared weight follows the fund: it is sized from the validator's stored basket rows and queued dividend credits ([`Pallet::root_claim_hotkey_declared_weight_for`]), up to a fund of [`crate::MAX_ROOT_CLAIM_HOTKEY_WORK`] claim units. A batch or proxy computes it before any inner call runs, so a claim is refused when a `swap_basket` buy or a hotkey swap gave the same fund a new row earlier in the same transaction. Send that claim in a later transaction. # Arguments * `origin`: The signature of the caller's coldkey. * `hotkey`: The validator whose basket entitlement to redeem. # Events * `RootClaimed`: On successfully claiming the root emissions for this coldkey+hotkey. * `BasketClaimDustSkipped`: When the claim left dust rows unsold. # Errors * `RootClaimTooHeavy`: The fund has more rows (stored, or to be opened by queued credits) than one claim may walk, or it got a new row from a trade or a hotkey swap earlier in the same transaction."
274
275
  return Call('SubtensorModule', 'claim_root_with_hotkey', {'hotkey': hotkey})
275
276
 
276
277
  @staticmethod
@@ -293,11 +294,21 @@ class SubtensorModule:
293
294
  'Used to commit a hash of your weight values to later be revealed for mechanisms. # Arguments * `origin`: The signature of the committing hotkey. * `netuid`: The u16 network identifier. * `mecid`: The u8 mechanism identifier. * `commit_hash`: The hash representing the committed weights. # Errors * `CommitRevealDisabled`: Attempting to commit when the commit-reveal mechanism is disabled. * `TooManyUnrevealedCommits`: Attempting to commit when the user has more than the allowed limit of unrevealed commits.'
294
295
  return Call('SubtensorModule', 'commit_mechanism_weights', {'netuid': netuid, 'mecid': mecid, 'commit_hash': commit_hash})
295
296
 
297
+ @staticmethod
298
+ def commit_mechanism_weights_for(netuid: 'NetUid', mecid: 'MechId', hotkey: 'AccountId32', commit_hash: 'H256') -> Call:
299
+ 'Commits a weight hash for the validator through its mechanism delegate.'
300
+ return Call('SubtensorModule', 'commit_mechanism_weights_for', {'netuid': netuid, 'mecid': mecid, 'hotkey': hotkey, 'commit_hash': commit_hash})
301
+
296
302
  @staticmethod
297
303
  def commit_timelocked_mechanism_weights(netuid: 'NetUid', mecid: 'MechId', commit: 'BoundedVec', reveal_round: 'u64', commit_reveal_version: 'u16') -> Call:
298
304
  'Used to commit timelock encrypted commit-reveal weight values to later be revealed for a mechanism. # Arguments * `origin`: The committing hotkey. * `netuid`: The u16 network identifier. * `mecid`: The u8 mechanism identifier. * `commit`: The encrypted compressed commit. The steps for this are: 1. Instantiate [`WeightsTlockPayload`] 2. Serialize it using the `parity_scale_codec::Encode` trait 3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336] to produce a [`TLECiphertext<TinyBLS381>`] type. 4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait. * `reveal_round`: The drand reveal round which will be avaliable during epoch `n+1` from the current epoch. * `commit_reveal_version`: The client (bittensor-drand) version.'
299
305
  return Call('SubtensorModule', 'commit_timelocked_mechanism_weights', {'netuid': netuid, 'mecid': mecid, 'commit': commit, 'reveal_round': reveal_round, 'commit_reveal_version': commit_reveal_version})
300
306
 
307
+ @staticmethod
308
+ def commit_timelocked_mechanism_weights_for(netuid: 'NetUid', mecid: 'MechId', hotkey: 'AccountId32', commit: 'BoundedVec', reveal_round: 'u64', commit_reveal_version: 'u16') -> Call:
309
+ 'Commits timelocked weights for a validator through its mechanism delegate.'
310
+ return Call('SubtensorModule', 'commit_timelocked_mechanism_weights_for', {'netuid': netuid, 'mecid': mecid, 'hotkey': hotkey, 'commit': commit, 'reveal_round': reveal_round, 'commit_reveal_version': commit_reveal_version})
311
+
301
312
  @staticmethod
302
313
  def commit_timelocked_weights(netuid: 'NetUid', commit: 'BoundedVec', reveal_round: 'u64', commit_reveal_version: 'u16') -> Call:
303
314
  'Used to commit timelock encrypted commit-reveal weight values to later be revealed. # Arguments * `origin`: The committing hotkey. * `netuid`: The u16 network identifier. * `commit`: The encrypted compressed commit. The steps for this are: 1. Instantiate [`WeightsTlockPayload`] 2. Serialize it using the `parity_scale_codec::Encode` trait 3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336] to produce a [`TLECiphertext<TinyBLS381>`] type. 4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait. * `reveal_round`: The drand reveal round which will be avaliable during epoch `n+1` from the current epoch. * `commit_reveal_version`: The client (bittensor-drand) version.'
@@ -448,6 +459,11 @@ class SubtensorModule:
448
459
  'Used to reveal the weights for a previously committed hash for mechanisms. # Arguments * `origin`: The signature of the revealing hotkey. * `netuid`: The u16 network identifier. * `mecid`: The u8 mechanism identifier. * `uids`: The uids for the weights being revealed. * `values`: The values of the weights being revealed. * `salt`: The salt used to generate the commit hash. * `version_key`: The network version key. # Errors * `CommitRevealDisabled`: Attempting to reveal weights when the commit-reveal mechanism is disabled. * `NoWeightsCommitFound`: Attempting to reveal weights without an existing commit. * `ExpiredWeightCommit`: Attempting to reveal a weight commit that has expired. * `RevealTooEarly`: Attempting to reveal weights outside the valid reveal period. * `InvalidRevealCommitHashNotMatch`: The revealed hash does not match any committed hash.'
449
460
  return Call('SubtensorModule', 'reveal_mechanism_weights', {'netuid': netuid, 'mecid': mecid, 'uids': uids, 'values': values, 'salt': salt, 'version_key': version_key})
450
461
 
462
+ @staticmethod
463
+ def reveal_mechanism_weights_for(netuid: 'NetUid', mecid: 'MechId', hotkey: 'AccountId32', uids: 'Any', values: 'Any', salt: 'Any', version_key: 'u64') -> Call:
464
+ "Reveals a validator's hash commit through its mechanism delegate."
465
+ return Call('SubtensorModule', 'reveal_mechanism_weights_for', {'netuid': netuid, 'mecid': mecid, 'hotkey': hotkey, 'uids': uids, 'values': values, 'salt': salt, 'version_key': version_key})
466
+
451
467
  @staticmethod
452
468
  def reveal_weights(netuid: 'NetUid', uids: 'Any', values: 'Any', salt: 'Any', version_key: 'u64') -> Call:
453
469
  'Used to reveal the weights for a previously committed hash. # Arguments * `origin`: The signature of the revealing hotkey. * `netuid`: The u16 network identifier. * `uids`: The uids for the weights being revealed. * `values`: The values of the weights being revealed. * `salt`: The salt used to generate the commit hash. * `version_key`: The network version key. # Errors * `CommitRevealDisabled`: Attempting to reveal weights when the commit-reveal mechanism is disabled. * `NoWeightsCommitFound`: Attempting to reveal weights without an existing commit. * `ExpiredWeightCommit`: Attempting to reveal a weight commit that has expired. * `RevealTooEarly`: Attempting to reveal weights outside the valid reveal period. * `InvalidRevealCommitHashNotMatch`: The revealed hash does not match any committed hash.'
@@ -518,11 +534,21 @@ class SubtensorModule:
518
534
  'Set prometheus information for the neuron. # Arguments * `origin`: The signature of the calling hotkey. * `netuid`: The u16 network identifier. * `version`: The bittensor version identifier. * `ip`: The prometheus ip information as a u128 encoded integer. * `port`: The prometheus port information as a u16 encoded integer. * `ip_type`: The ip type v4 or v6.'
519
535
  return Call('SubtensorModule', 'set_identity', {'name': name, 'url': url, 'github_repo': github_repo, 'image': image, 'discord': discord, 'description': description, 'additional': additional})
520
536
 
537
+ @staticmethod
538
+ def set_mech_weight_delegate(netuid: 'NetUid', mecid: 'MechId', delegate: 'Any') -> Call:
539
+ 'Authorizes an account to set weights for this registered hotkey on one mechanism.'
540
+ return Call('SubtensorModule', 'set_mech_weight_delegate', {'netuid': netuid, 'mecid': mecid, 'delegate': delegate})
541
+
521
542
  @staticmethod
522
543
  def set_mechanism_weights(netuid: 'NetUid', mecid: 'MechId', dests: 'Any', weights: 'Any', version_key: 'u64') -> Call:
523
544
  'Sets the caller weights for the incentive mechanism for mechanisms. The call can be made from the hotkey account so is potentially insecure, however, the damage of changing weights is minimal if caught early. This function includes all the checks that the passed weights meet the requirements. Stored weights are u16s max-upscaled by the pallet, so the largest non-zero supplied weight is stored as `u16::MAX`. The weights determine how inflation propagates outward from this peer. # Note Input weights are relative. They do not need to sum to a particular value before submission. # Arguments * `origin`: The caller, a hotkey who wishes to set their weights. * `netuid`: The network uid we are setting these weights on. * `mecid`: The u8 mechnism identifier. * `dests`: The edge endpoint for the weight, i.e. j for w_ij. * `weights`: Relative u16-encoded weights, max-upscaled by the pallet before storage. * `version_key`: The network version key to check if the validator is up to date. # Events * `WeightsSet`: On successfully setting the weights on chain. # Errors * `MechanismDoesNotExist`: Attempting to set weights on a non-existent network. * `NotRegistered`: Attempting to set weights from a non registered account. * `WeightVecNotEqualSize`: Attempting to set weights with uids not of same length. * `DuplicateUids`: Attempting to set weights with duplicate uids. * `UidsLengthExceedUidsInSubNet`: Attempting to set weights above the max allowed uids. * `UidVecContainInvalidOne`: Attempting to set weights with invalid uids. * `WeightVecLengthIsLow`: Attempting to set weights with fewer weights than min. * `MaxWeightExceeded`: Attempting to set weights with max value exceeding limit.'
524
545
  return Call('SubtensorModule', 'set_mechanism_weights', {'netuid': netuid, 'mecid': mecid, 'dests': dests, 'weights': weights, 'version_key': version_key})
525
546
 
547
+ @staticmethod
548
+ def set_mechanism_weights_for(netuid: 'NetUid', mecid: 'MechId', hotkey: 'AccountId32', dests: 'Any', weights: 'Any', version_key: 'u64') -> Call:
549
+ "Sets weights as the validator's authorized delegate on this mechanism only."
550
+ return Call('SubtensorModule', 'set_mechanism_weights_for', {'netuid': netuid, 'mecid': mecid, 'hotkey': hotkey, 'dests': dests, 'weights': weights, 'version_key': version_key})
551
+
526
552
  @staticmethod
527
553
  def set_min_collateral(netuid: 'NetUid', hotkey: 'AccountId32', min_locked: 'AlphaBalance') -> Call:
528
554
  "Sets the self-maintaining collateral floor for the signer's hotkey on a subnet. The drain never releases the lock below the floor, and while the lock is under it, earned emission is captured into the lock until the floor is met — so a miner tracking a validator-published collateral requirement does not need to keep re-locking drained funds. Zero clears the floor and restores pure drain behavior. # Arguments * `origin`: Signed by the coldkey that owns `hotkey`. * `netuid`: The subnet the floor applies to. * `hotkey`: The miner hotkey the floor applies to. * `min_locked`: The floor, in alpha; zero clears it. # Errors * `RegistrationNotPermittedOnRootSubnet`: `netuid` is the root network. * `SubnetNotExists`: The subnet does not exist. * `HotKeyAccountNotExists`: The hotkey account does not exist. * `NonAssociatedColdKey`: The signer does not own `hotkey`. # Events Emits `MinCollateralSet` on success."
@@ -610,7 +636,7 @@ class SubtensorModule:
610
636
 
611
637
  @staticmethod
612
638
  def swap_basket(hotkey: 'AccountId32', origin_netuid: 'NetUid', destination_netuid: 'NetUid', amount: 'AlphaBalance', min_amount_out: 'u64') -> Call:
613
- "--- Rebalances a root validator's beta basket: sells `amount` of the fund's `origin_netuid` holding for TAO and buys `destination_netuid` with it. Either side may be root (netuid 0), the fund's TAO cash slot. Fund shares and staker entitlements are unchanged; only the fund's composition moves. Guardrails: each AMM leg must fill fully within 2% of the subnet's moving price; the TAO through the middle is taken from the fund's turnover bucket (`BasketDailyTurnoverCap` of NAV, refilling over 7200 blocks); the destination holding may not end above `BasketLiquidityCap` of the destination pool's alpha reserve, nor above `BasketConcentrationCap` of NAV. Trading must be enabled network-wide and not frozen for the hotkey by governance. On top of the protocol band the caller may set its own floor: the buy leg must credit at least `min_amount_out` or the trade rolls back. # Arguments * `origin`: Signed by the coldkey that owns `hotkey` (or its `BasketTrading` proxy). * `hotkey`: The root-registered validator whose basket to rebalance. * `origin_netuid`: Subnet to sell out of (root = the TAO slot). * `destination_netuid`: Subnet to buy into (root = the TAO slot). * `amount`: Alpha of `origin_netuid` to sell (TAO at 1:1 when origin is root). * `min_amount_out`: Least amount the buy leg must credit to the destination holding, in `destination_netuid` alpha (rao of TAO when the destination is root), after fees. `0` sets no floor; the 2% protocol band still applies. # Events * `BasketSwapped`: On success, with the amounts on both legs. # Errors * `BasketTradingDisabled`, `BasketTradingFrozen`: Gated off. * `BasketSameSubnet`: Origin equals destination. * `NonAssociatedColdKey`: Caller does not own `hotkey`. * `HotKeyNotRegisteredInSubNet`: `hotkey` is not on root. * `NotEnoughStakeToWithdraw`: The fund holds less than `amount` on origin. * `SlippageTooHigh`: A leg could not fill within 2% of the moving price. * `BasketMinOutNotMet`: The buy leg credited less than `min_amount_out`. * `BasketTurnoverBudgetExceeded`: The trade exceeds what the fund's turnover bucket holds. * `BasketLiquidityCapExceeded`: The destination holding would exceed the liquidity cap. * `BasketConcentrationCapExceeded`: The destination would exceed the concentration cap."
639
+ "--- Rebalances a root validator's beta basket: sells `amount` of the fund's `origin_netuid` holding for TAO and buys `destination_netuid` with it. Either side may be root (netuid 0), the fund's TAO cash slot. Fund shares and staker entitlements are unchanged; only the fund's composition moves. Guardrails: each AMM leg must fill fully within the configured `BasketTradeMaxSlippageBps` of its `BasketTradePriceReference` (5% from spot by default; legacy strictest-of-EMAs-and-spot is available); the TAO through the middle is taken from the fund's turnover bucket (`BasketDailyTurnoverCap` of NAV, refilling over `BasketTradeRefillBlocks`); the destination holding may not end above `BasketLiquidityCap` of the destination pool's alpha reserve, nor above `BasketConcentrationCap` of NAV. Trading must be enabled network-wide and not frozen for the hotkey by governance. On top of the protocol band the caller may set its own floor: the buy leg must credit at least `min_amount_out` or the trade rolls back. # Arguments * `origin`: Signed by the coldkey that owns `hotkey` (or its `BasketTrading` proxy). * `hotkey`: The root-registered validator whose basket to rebalance. * `origin_netuid`: Subnet to sell out of (root = the TAO slot). * `destination_netuid`: Subnet to buy into (root = the TAO slot). * `amount`: Alpha of `origin_netuid` to sell (TAO at 1:1 when origin is root). * `min_amount_out`: Least amount the buy leg must credit to the destination holding, in `destination_netuid` alpha (rao of TAO when the destination is root), after fees. `0` sets no floor; the configured protocol band still applies. # Events * `BasketSwapped`: On success, with the amounts on both legs. # Errors * `BasketTradingDisabled`, `BasketTradingFrozen`: Gated off. * `BasketSameSubnet`: Origin equals destination. * `NonAssociatedColdKey`: Caller does not own `hotkey`. * `HotKeyNotRegisteredInSubNet`: `hotkey` is not on root. * `NotEnoughStakeToWithdraw`: The fund holds less than `amount` on origin. * `SlippageTooHigh`: A leg could not fill within the configured price band. * `BasketMinOutNotMet`: The buy leg credited less than `min_amount_out`. * `BasketTurnoverBudgetExceeded`: The trade exceeds what the fund's turnover bucket holds. * `BasketLiquidityCapExceeded`: The destination holding would exceed the liquidity cap. * `BasketConcentrationCapExceeded`: The destination would exceed the concentration cap."
614
640
  return Call('SubtensorModule', 'swap_basket', {'hotkey': hotkey, 'origin_netuid': origin_netuid, 'destination_netuid': destination_netuid, 'amount': amount, 'min_amount_out': min_amount_out})
615
641
 
616
642
  @staticmethod
@@ -996,6 +1022,11 @@ class Commitments:
996
1022
  'Set the commitment for a given netuid'
997
1023
  return Call('Commitments', 'set_commitment', {'netuid': netuid, 'info': info})
998
1024
 
1025
+ @staticmethod
1026
+ def set_commitment_to(netuid: 'NetUid', mecid: 'MechId', channel: 'u8', hotkey: 'AccountId32', info: 'CommitmentInfo', max_burn: 'TaoBalance') -> Call:
1027
+ 'Publish a channel commitment, with the coldkey paying the optional burn.'
1028
+ return Call('Commitments', 'set_commitment_to', {'netuid': netuid, 'mecid': mecid, 'channel': channel, 'hotkey': hotkey, 'info': info, 'max_burn': max_burn})
1029
+
999
1030
  @staticmethod
1000
1031
  def set_max_space(new_limit: 'u32') -> Call:
1001
1032
  'Sudo-set MaxSpace'
@@ -1057,7 +1088,7 @@ class AdminUtils:
1057
1088
 
1058
1089
  @staticmethod
1059
1090
  def sudo_set_basket_daily_turnover_cap(cap: 'u16') -> Call:
1060
- "Sets the basket daily turnover budget ([`pallet_subtensor::BasketDailyTurnoverCap`]): the capacity of each fund's `swap_basket` turnover bucket as a u16-normalized share of fund NAV (`u16::MAX` = 100%). The bucket refills over 7200 blocks, so at most one capacity can be traded at any instant and about one per day sustained. Root-only."
1091
+ "Sets the basket daily turnover budget ([`pallet_subtensor::BasketDailyTurnoverCap`]): the capacity of each fund's `swap_basket` turnover bucket as a u16-normalized share of fund NAV (`u16::MAX` = 100%). The bucket refills over [`pallet_subtensor::BasketTradeRefillBlocks`], so at most one capacity can be traded at any instant. Root-only."
1061
1092
  return Call('AdminUtils', 'sudo_set_basket_daily_turnover_cap', {'cap': cap})
1062
1093
 
1063
1094
  @staticmethod
@@ -1070,6 +1101,21 @@ class AdminUtils:
1070
1101
  'Sets the minimum TAO value through each basket trade leg, in rao. Root-only. Zero disables this additional floor; the general staking minimum still applies.'
1071
1102
  return Call('AdminUtils', 'sudo_set_basket_min_trade_tao', {'min_trade_rao': min_trade_rao})
1072
1103
 
1104
+ @staticmethod
1105
+ def sudo_set_basket_trade_max_slippage_bps(bps: 'u16') -> Call:
1106
+ 'Sets the maximum deviation of a `swap_basket` leg from its configured price reference, in basis points. Must be greater than zero and at most 10_000 (100%). Defaults to 200 (2%). Root-only.'
1107
+ return Call('AdminUtils', 'sudo_set_basket_trade_max_slippage_bps', {'bps': bps})
1108
+
1109
+ @staticmethod
1110
+ def sudo_set_basket_trade_price_reference(reference: 'BasketTradePriceReference') -> Call:
1111
+ 'Selects the price reference for `swap_basket` leg bounds: the legacy strictest of the slow EMA, fast EMA, and spot (default), or current spot only. Root-only.'
1112
+ return Call('AdminUtils', 'sudo_set_basket_trade_price_reference', {'reference': reference})
1113
+
1114
+ @staticmethod
1115
+ def sudo_set_basket_trade_refill_blocks(blocks: 'u64') -> Call:
1116
+ 'Sets the number of blocks over which a `swap_basket` turnover bucket fully refills and destination-pool flow usage decays to zero. Defaults to 7200 blocks; zero is rejected. Root-only.'
1117
+ return Call('AdminUtils', 'sudo_set_basket_trade_refill_blocks', {'blocks': blocks})
1118
+
1073
1119
  @staticmethod
1074
1120
  def sudo_set_basket_trading_enabled(enabled: 'bool') -> Call:
1075
1121
  'Enables or disables validator basket trading (`swap_basket`) network-wide. Defaults OFF. Gates only the trade path: deposits, claims, dividend accrual, and reads are unaffected. Root-only.'
@@ -1130,6 +1176,31 @@ class AdminUtils:
1130
1176
  'Sets the miner collateral lock share (p) for a subnet: the share of the registration price that is staked to the registering hotkey and locked as collateral instead of burned. Normalized so `u16::MAX` = 100%; capped at 95% so the burned share stays positive. 0 disables collateral. Callable by root and subnet owner. Applies only to future registrations; standing collateral is never re-priced.'
1131
1177
  return Call('AdminUtils', 'sudo_set_collateral_lock_share', {'netuid': netuid, 'lock_share': lock_share})
1132
1178
 
1179
+ @staticmethod
1180
+ def sudo_set_commit_burn_enabled(netuid: 'NetUid', mecid: 'MechId', channel: 'u8', enabled: 'bool') -> Call:
1181
+ 'Enable or disable the optional burn for one commitment channel.'
1182
+ return Call('AdminUtils', 'sudo_set_commit_burn_enabled', {'netuid': netuid, 'mecid': mecid, 'channel': channel, 'enabled': enabled})
1183
+
1184
+ @staticmethod
1185
+ def sudo_set_commit_burn_half_life(netuid: 'NetUid', mecid: 'MechId', channel: 'u8', value: 'u16') -> Call:
1186
+ 'Set the commitment burn half-life in blocks.'
1187
+ return Call('AdminUtils', 'sudo_set_commit_burn_half_life', {'netuid': netuid, 'mecid': mecid, 'channel': channel, 'value': value})
1188
+
1189
+ @staticmethod
1190
+ def sudo_set_commit_burn_increase_mult(netuid: 'NetUid', mecid: 'MechId', channel: 'u8', value: 'FixedU128') -> Call:
1191
+ "Set the commitment burn multiplier, using registration's `[1, 3]` bounds."
1192
+ return Call('AdminUtils', 'sudo_set_commit_burn_increase_mult', {'netuid': netuid, 'mecid': mecid, 'channel': channel, 'value': value})
1193
+
1194
+ @staticmethod
1195
+ def sudo_set_commit_burn_max(netuid: 'NetUid', mecid: 'MechId', channel: 'u8', value: 'TaoBalance') -> Call:
1196
+ 'Set the commitment burn ceiling.'
1197
+ return Call('AdminUtils', 'sudo_set_commit_burn_max', {'netuid': netuid, 'mecid': mecid, 'channel': channel, 'value': value})
1198
+
1199
+ @staticmethod
1200
+ def sudo_set_commit_burn_min(netuid: 'NetUid', mecid: 'MechId', channel: 'u8', value: 'TaoBalance') -> Call:
1201
+ 'Set the commitment burn floor.'
1202
+ return Call('AdminUtils', 'sudo_set_commit_burn_min', {'netuid': netuid, 'mecid': mecid, 'channel': channel, 'value': value})
1203
+
1133
1204
  @staticmethod
1134
1205
  def sudo_set_commit_reveal_version(version: 'u16') -> Call:
1135
1206
  'Sets the commit-reveal weights version for all subnets'
@@ -1412,9 +1483,14 @@ class AdminUtils:
1412
1483
 
1413
1484
  @staticmethod
1414
1485
  def sudo_set_subnet_emission_weights(netuid: 'NetUid', uids: 'Any', values: 'Any') -> Call:
1415
- "Sets entries of a subnet's emission weight vector `[burn, recycle, owner, validator, miner]`, each a `u64` share of `u64::MAX`. `uids` names the slots to write and `values` their new shares; slots that are not named keep their current value (burn and recycle are always zero in v1). The merged vector must satisfy every rule, each of which has its own error: burn = 0, recycle = 0, `0 ≤ owner ≤ 33%` (lease-created subnets `≥ 18%`), `validator ≤ 50%`, `miner ≥ 33%`, and the five slots must sum to exactly `u64::MAX`. Root is paid its baseline share of the subnet's emission (what root earns with the default validator share and the global `TaoWeight`) off the top of the validator slot every block, capped at the slot; alpha validators get the rest. The call fails if the new validator share is at or below that baseline right now. Callable by the subnet owner (once per week per subnet; the first call is never rate-limited) or root (no rate limit). Both respect the admin freeze window."
1486
+ "Sets entries of a subnet's emission weight vector `[burn, recycle, owner, validator, miner]`, each a `u64` share of `u64::MAX`. `uids` names the slots to write and `values` their new shares; slots that are not named keep their current value (burn and recycle are always zero in v1). The merged vector must satisfy every rule, each of which has its own error: burn = 0, recycle = 0, `0 ≤ owner ≤ 33%` (lease-created subnets `≥ 18%`), `validator ≤ 50%`, `miner ≥ 33%`, and the five slots must sum to exactly `u64::MAX`. Root is paid its baseline share of the subnet's emission (what root earns with the default validator share and the global `TaoWeight`) off the top of the validator slot every block, capped at the slot; alpha validators get the rest. The call fails if the new validator share is at or below that baseline right now. Callable by the subnet owner under the configured per-subnet rate limit (the first call is never rate-limited) or root (no rate limit). Both respect the admin freeze window."
1416
1487
  return Call('AdminUtils', 'sudo_set_subnet_emission_weights', {'netuid': netuid, 'uids': uids, 'values': values})
1417
1488
 
1489
+ @staticmethod
1490
+ def sudo_set_subnet_emission_weights_rate_limit(rate_limit: 'u64') -> Call:
1491
+ "Sets the global per-subnet rate limit for owner updates to the emission weight vector, in blocks. Defaults to 360 (one default tempo). Zero disables the limit. Root remains exempt and each subnet's first owner call is always allowed."
1492
+ return Call('AdminUtils', 'sudo_set_subnet_emission_weights_rate_limit', {'rate_limit': rate_limit})
1493
+
1418
1494
  @staticmethod
1419
1495
  def sudo_set_subnet_emission_weights_v2(netuid: 'NetUid', split: 'BoundedVec') -> Call:
1420
1496
  "Replaces a subnet's whole emission split: the burn, recycle, owner, validator and miner shares and the shares of whitelisted subnets' gamma, each a `u64` share of `u64::MAX`, slots in strictly ascending order. A slot left out is zero. Every rule of [`Call::sudo_set_subnet_emission_weights`] applies, with the gamma shares counted in the sum. There are at most 16 gamma shares, each at most 10% to a whitelisted subnet with gamma enabled, other than this one. A gamma share that leaves the split moves its unconverted alpha to the subnet's miners. Callable by the subnet owner, under the same rate limit as [`Call::sudo_set_subnet_emission_weights`], or root; both respect the admin freeze window."
@@ -199,7 +199,7 @@ ERRORS: dict[tuple[int, int], ErrorInfo] = {
199
199
  (7, 156): ErrorInfo('SubtensorModule', 'RootStakeLocked', 'Root (netuid 0) stake is still within its `RootStakeUnlockInterval` hold window (measured from the last root stake add/remove/claim for that coldkey/hotkey) and cannot leave root yet. Prevents epoch-boundary just-in-time dividend sniping.'),
200
200
  (7, 157): ErrorInfo('SubtensorModule', 'BetaBasketSeedInProgress', 'The `migrate_seed_beta_basket_v2` seed has not completed. Basket deposits, claims, coldkey / root-touching hotkey swaps, and root stake add/remove/transfer/swap are paused until it finishes so snapshotted conversion cannot desync from live stake (`Σ owed == BasketShares`).'),
201
201
  (7, 158): ErrorInfo('SubtensorModule', 'RootWeightSettingDisabled', 'Retired (kept for SCALE index stability): the `set_root_weights` extrinsic and its network-wide gate were removed. Funds have no target vector; dividends accumulate in place and composition changes only through `swap_basket`.'),
202
- (7, 159): ErrorInfo('SubtensorModule', 'RootClaimTooHeavy', 'A root claim would process more root hotkeys and basket rows than the fixed admission envelope. Use `claim_root_with_hotkey` per validator so admission weight matches the holdings actually walked.'),
202
+ (7, 159): ErrorInfo('SubtensorModule', 'RootClaimTooHeavy', 'A root claim would process more root hotkeys and basket rows than the admission envelope. Use `claim_root_with_hotkey` per validator so admission weight matches the holdings actually walked. A `claim_root_with_hotkey` also fails with this error when a `swap_basket` buy or a hotkey swap gave the same fund a new row earlier in the same transaction; send the claim in a later transaction.'),
203
203
  (7, 160): ErrorInfo('SubtensorModule', 'RootWeightCapExceeded', 'Retired (kept for SCALE index stability on the 463 testnet/devnet runtime): `set_root_weights` concentration cap. The live guard is [`Error::BasketConcentrationCapExceeded`].'),
204
204
  (7, 161): ErrorInfo('SubtensorModule', 'BasketDepositPending', "A queued root-dividend deposit could not be settled. Operations which change the hotkey's root claimant base must retry after the deposit becomes executable."),
205
205
  (7, 162): ErrorInfo('SubtensorModule', 'InvalidBatchLength', 'A per-subnet weight batch is empty or has more items than there are networks.'),
@@ -208,7 +208,7 @@ ERRORS: dict[tuple[int, int], ErrorInfo] = {
208
208
  (7, 165): ErrorInfo('SubtensorModule', 'BasketConcentrationCapExceeded', 'A `swap_basket` buy would leave the destination holding above [`crate::BasketConcentrationCap`] of fund NAV (holdings marked at realizable value). With the cap at 1/16 a traded fund must spread across at least 16 holdings. Not enforced while the chain has fewer subnets than the cap demands.'),
209
209
  (7, 166): ErrorInfo('SubtensorModule', 'BasketTradingDisabled', '`swap_basket` is disabled network-wide ([`crate::BasketTradingEnabled`] is false).'),
210
210
  (7, 167): ErrorInfo('SubtensorModule', 'BasketTradingFrozen', 'Basket trading is frozen for this validator hotkey by governance ([`crate::BasketTradingFrozen`]).'),
211
- (7, 168): ErrorInfo('SubtensorModule', 'BasketTurnoverBudgetExceeded', 'The trade would push more TAO through the fund than its turnover bucket holds ([`crate::BasketDailyTurnoverCap`] of fund NAV, refilling over [`crate::BASKET_TRADE_REFILL_BLOCKS`]). Wait for the bucket to refill or trade a smaller amount.'),
211
+ (7, 168): ErrorInfo('SubtensorModule', 'BasketTurnoverBudgetExceeded', 'The trade would push more TAO through the fund than its turnover bucket holds ([`crate::BasketDailyTurnoverCap`] of fund NAV, refilling over [`crate::BasketTradeRefillBlocks`]). Wait for the bucket to refill or trade a smaller amount.'),
212
212
  (7, 169): ErrorInfo('SubtensorModule', 'BasketSameSubnet', '`swap_basket` origin and destination are the same subnet.'),
213
213
  (7, 170): ErrorInfo('SubtensorModule', 'BasketLiquidityCapExceeded', "The trade would leave the fund holding more of the destination subnet than [`crate::BasketLiquidityCap`] allows as a share of that subnet's alpha reserve. Trade a smaller amount or pick a deeper pool."),
214
214
  (7, 171): ErrorInfo('SubtensorModule', 'BasketMinOutNotMet', "The `swap_basket` buy leg credited less than the caller's `min_amount_out` (destination alpha, or TAO when the destination is root). The trade rolled back. Re-quote and retry, or lower the floor."),
@@ -248,6 +248,8 @@ ERRORS: dict[tuple[int, int], ErrorInfo] = {
248
248
  (7, 205): ErrorInfo('SubtensorModule', 'TooManyGammaShares', '`set_subnet_emission_weights_v2`: a split may have at most 16 gamma shares.'),
249
249
  (7, 206): ErrorInfo('SubtensorModule', 'GammaEmissionNotSettableOnLeasedSubnet', '`set_subnet_emission_weights_v2`: a subnet under a lease may not have gamma shares.'),
250
250
  (7, 207): ErrorInfo('SubtensorModule', 'ServiceDoesNotExist', 'The hotkey has no service on this subnet.'),
251
+ (7, 208): ErrorInfo('SubtensorModule', 'NotMechWeightDelegate', "The signer is not the validator's delegate for this exact mechanism."),
252
+ (7, 209): ErrorInfo('SubtensorModule', 'TooManyWeightsForNullMechanism', 'A Null weight row exceeds the total row budget divided by mechanism count.'),
251
253
  (11, 0): ErrorInfo('Utility', 'TooManyCalls', 'Too many calls batched.'),
252
254
  (11, 1): ErrorInfo('Utility', 'InvalidDerivedAccount', 'Bad input data for derived account ID'),
253
255
  (11, 2): ErrorInfo('Utility', 'SafeDerivationFailed', 'No full-width off-curve account could be derived within the fixed bound.'),
@@ -299,6 +301,11 @@ ERRORS: dict[tuple[int, int], ErrorInfo] = {
299
301
  (18, 2): ErrorInfo('Commitments', 'SpaceLimitExceeded', 'Space Limit Exceeded for the current interval'),
300
302
  (18, 3): ErrorInfo('Commitments', 'UnexpectedUnreserveLeftover', 'Indicates that unreserve returned a leftover, which is unexpected.'),
301
303
  (18, 4): ErrorInfo('Commitments', 'TimelockRevealFailedNotAllowed', '`TimelockRevealFailed` fields may only be created by the runtime.'),
304
+ (18, 5): ErrorInfo('Commitments', 'MechanismDoesNotExist', 'The target mechanism does not exist.'),
305
+ (18, 6): ErrorInfo('Commitments', 'AccountNotAuthorized', 'The signer is not authorized to fund this hotkey commitment.'),
306
+ (18, 7): ErrorInfo('Commitments', 'BurnPriceLimitExceeded', "The current price is above the caller's `max_burn`."),
307
+ (18, 8): ErrorInfo('Commitments', 'FreeCommitmentDisabled', "A free hotkey-signed commit cannot pay this channel's enabled burn."),
308
+ (18, 9): ErrorInfo('Commitments', 'ChannelMigrationPending', "This hotkey's channels are awaiting a bounded hotkey-swap migration."),
302
309
  (19, 0): ErrorInfo('AdminUtils', 'SubnetDoesNotExist', 'The subnet does not exist, check the netuid parameter'),
303
310
  (19, 1): ErrorInfo('AdminUtils', 'MaxValidatorsLargerThanMaxUIds', 'The maximum number of subnet validators must be less than the maximum number of allowed UIDs in the subnet.'),
304
311
  (19, 2): ErrorInfo('AdminUtils', 'MaxAllowedUIdsLessThanCurrentUIds', 'The maximum number of subnet validators must be more than the current number of UIDs already in the subnet.'),
@@ -173,6 +173,9 @@ class SubnetInfoRuntimeApi:
173
173
 
174
174
  class SubnetRegistrationRuntimeApi:
175
175
  get_network_registration_cost = Method('SubnetRegistrationRuntimeApi', 'get_network_registration_cost')
176
+ get_commit_burn = Method('SubnetRegistrationRuntimeApi', 'get_commit_burn')
177
+ get_channel_commitment = Method('SubnetRegistrationRuntimeApi', 'get_channel_commitment')
178
+ get_mech_weight_delegate = Method('SubnetRegistrationRuntimeApi', 'get_mech_weight_delegate')
176
179
 
177
180
  class SwapRuntimeApi:
178
181
  current_alpha_price = Method('SwapRuntimeApi', 'current_alpha_price')
@@ -316,6 +316,9 @@ class SubtensorModule:
316
316
  BasketTradingEnabled = Item('SubtensorModule', 'BasketTradingEnabled', 'bool')
317
317
  BasketTradingFrozen = Item('SubtensorModule', 'BasketTradingFrozen', '()')
318
318
  BasketDailyTurnoverCap = Item('SubtensorModule', 'BasketDailyTurnoverCap', 'u16')
319
+ BasketTradeMaxSlippageBps = Item('SubtensorModule', 'BasketTradeMaxSlippageBps', 'u16')
320
+ BasketTradeRefillBlocks = Item('SubtensorModule', 'BasketTradeRefillBlocks', 'u64')
321
+ BasketTradePriceReferenceMode = Item('SubtensorModule', 'BasketTradePriceReferenceMode', 'BasketTradePriceReference')
319
322
  BasketMinTradeTao = Item('SubtensorModule', 'BasketMinTradeTao', 'u64')
320
323
  BasketLiquidityCap = Item('SubtensorModule', 'BasketLiquidityCap', 'u16')
321
324
  BasketClaimRowDustCapTao = Item('SubtensorModule', 'BasketClaimRowDustCapTao', 'u64')
@@ -323,6 +326,8 @@ class SubtensorModule:
323
326
  BasketClaimSliceDustTao = Item('SubtensorModule', 'BasketClaimSliceDustTao', 'u64')
324
327
  BasketClaimForfeitCapTao = Item('SubtensorModule', 'BasketClaimForfeitCapTao', 'u64')
325
328
  BasketTradeBucket = Item('SubtensorModule', 'BasketTradeBucket', '(u64, u64)')
329
+ BasketRowsOpenedAt = Item('SubtensorModule', 'BasketRowsOpenedAt', '(u64, u32)')
330
+ BasketRowsCountedAt = Item('SubtensorModule', 'BasketRowsCountedAt', '(u64, u32, Option<RootClaimHotkeyWork>)')
326
331
  BasketLiquidityUsed = Item('SubtensorModule', 'BasketLiquidityUsed', '(u64, u64)')
327
332
  BasketConcentrationCap = Item('SubtensorModule', 'BasketConcentrationCap', 'u16')
328
333
  RootClaimableThreshold = Item('SubtensorModule', 'RootClaimableThreshold', 'FixedI128')
@@ -355,6 +360,7 @@ class SubtensorModule:
355
360
  TaoInRefundDeploymentBlock = Item('SubtensorModule', 'TaoInRefundDeploymentBlock', 'u64')
356
361
  MinNonImmuneUids = Item('SubtensorModule', 'MinNonImmuneUids', 'u16')
357
362
  MaxMechanismCount = Item('SubtensorModule', 'MaxMechanismCount', 'MechId')
363
+ SubnetEmissionWeightsRateLimit = Item('SubtensorModule', 'SubnetEmissionWeightsRateLimit', 'u64')
358
364
  MechanismCountCurrent = Item('SubtensorModule', 'MechanismCountCurrent', 'MechId')
359
365
  MechanismEmissionSplit = Item('SubtensorModule', 'MechanismEmissionSplit', 'Vec<u16>')
360
366
  BurnHalfLife = Item('SubtensorModule', 'BurnHalfLife', 'u16')
@@ -364,6 +370,13 @@ class SubtensorModule:
364
370
  MinerCollateral = Item('SubtensorModule', 'MinerCollateral', 'MinerCollateralState')
365
371
  ColdkeyMinerCollateral = Item('SubtensorModule', 'ColdkeyMinerCollateral', 'AlphaBalance')
366
372
  ColdkeyCollateralHotkeys = Item('SubtensorModule', 'ColdkeyCollateralHotkeys', 'BoundedVec')
373
+ MechWeightDelegate = Item('SubtensorModule', 'MechWeightDelegate', 'AccountId32')
374
+ MechWeightDelegateTargets = Item('SubtensorModule', 'MechWeightDelegateTargets', '()')
375
+ MechWeightDelegatePurgeQueue = Item('SubtensorModule', 'MechWeightDelegatePurgeQueue', 'Option<u16>')
376
+ MechWeightDelegateMoveQueue = Item('SubtensorModule', 'MechWeightDelegateMoveQueue', 'PendingMechWeightDelegateMove')
377
+ MechWeightDelegateMoveOrigins = Item('SubtensorModule', 'MechWeightDelegateMoveOrigins', '()')
378
+ MechWeightDelegateMechanismMoves = Item('SubtensorModule', 'MechWeightDelegateMechanismMoves', '()')
379
+ MechWeightDelegateRetirementQueue = Item('SubtensorModule', 'MechWeightDelegateRetirementQueue', '()')
367
380
  GammaEnabled = Item('SubtensorModule', 'GammaEnabled', 'bool')
368
381
  SubnetGammaEnabled = Item('SubtensorModule', 'SubnetGammaEnabled', 'bool')
369
382
  GammaDeposits = Item('SubtensorModule', 'GammaDeposits', 'GammaDeposit')
@@ -407,6 +420,25 @@ class Proxy:
407
420
 
408
421
  class Commitments:
409
422
  TimelockedIndex = Item('Commitments', 'TimelockedIndex', 'BTreeSet')
423
+ ChannelMechanismTargetsOf = Item('Commitments', 'ChannelMechanismTargetsOf', '()')
424
+ ChannelTimelockedIndex = Item('Commitments', 'ChannelTimelockedIndex', '()')
425
+ ChannelTargetsOf = Item('Commitments', 'ChannelTargetsOf', '()')
426
+ ChannelCommitmentOf = Item('Commitments', 'ChannelCommitmentOf', 'Registration')
427
+ ChannelRevealedCommitments = Item('Commitments', 'ChannelRevealedCommitments', 'Vec<(Vec<u8>, u64)>')
428
+ ChannelUsedSpaceOf = Item('Commitments', 'ChannelUsedSpaceOf', 'UsageTracker')
429
+ ChannelLastCommitment = Item('Commitments', 'ChannelLastCommitment', 'u32')
430
+ ChannelReservePayerOf = Item('Commitments', 'ChannelReservePayerOf', 'AccountId32')
431
+ ChannelSwapPendingHotkeys = Item('Commitments', 'ChannelSwapPendingHotkeys', 'AccountId32')
432
+ ChannelSwapOrigins = Item('Commitments', 'ChannelSwapOrigins', '()')
433
+ ChannelTimelockRevealCursor = Item('Commitments', 'ChannelTimelockRevealCursor', 'Vec<u8>')
434
+ CommitBurnConfig = Item('Commitments', 'CommitBurnConfig', 'CommitBurnParameters')
435
+ CommitBurnSequence = Item('Commitments', 'CommitBurnSequence', 'u64')
436
+ ChannelPurgePending = Item('Commitments', 'ChannelPurgePending', 'bool')
437
+ ChannelMechanismPurgeQueue = Item('Commitments', 'ChannelMechanismPurgeQueue', '()')
438
+ ChannelMechanismRowsDrained = Item('Commitments', 'ChannelMechanismRowsDrained', 'bool')
439
+ ChannelMechanismConfigPurgeCursor = Item('Commitments', 'ChannelMechanismConfigPurgeCursor', 'u16')
440
+ ChannelNetuidPurgeMechanism = Item('Commitments', 'ChannelNetuidPurgeMechanism', 'MechId')
441
+ ChannelNeuronPurgeQueue = Item('Commitments', 'ChannelNeuronPurgeQueue', '()')
410
442
  TimelockRevealCursor = Item('Commitments', 'TimelockRevealCursor', '(NetUid, AccountId32)')
411
443
  CommitmentOf = Item('Commitments', 'CommitmentOf', 'Registration')
412
444
  LastCommitment = Item('Commitments', 'LastCommitment', 'u32')
@@ -132,8 +132,9 @@ class Substrate(Protocol):
132
132
  """Seconds per block, detected from the chain."""
133
133
  ...
134
134
 
135
- async def spec_version(self) -> int:
136
- """The connected runtime's ``spec_version`` (at the chain head)."""
135
+ async def spec_version(self, block_hash: Optional[str] = None) -> int:
136
+ """The connected runtime's ``spec_version``: at the chain head, or in the state
137
+ of ``block_hash``."""
137
138
  ...
138
139
 
139
140
  async def get_block(
@@ -204,6 +205,12 @@ class Substrate(Protocol):
204
205
  """Decode SCALE-encoded bytes against the connected runtime's types."""
205
206
  ...
206
207
 
208
+ async def decode_commitment_registration(
209
+ self, data: Any, block_hash: Optional[str] = None
210
+ ) -> Any:
211
+ """Decode a channel commitment using its metadata-declared registration type."""
212
+ ...
213
+
207
214
  def blocks(self, *, finalized: bool = False) -> AsyncIterator[dict]:
208
215
  """Stream decoded block headers as they are produced (or finalized)."""
209
216
  ...
@@ -484,14 +491,15 @@ class RpcSubstrate:
484
491
  self._block_time = int(await self.constant("Aura", "SlotDuration")) / 1000.0
485
492
  return self._block_time
486
493
 
487
- async def spec_version(self) -> int:
494
+ async def spec_version(self, block_hash: Optional[str] = None) -> int:
488
495
  """The connected runtime's ``spec_version``.
489
496
 
490
497
  Read from the transport's head codec (TTL-validated against
491
498
  ``state_getRuntimeVersion``), so a runtime upgrade mid-session is
492
- picked up within about a block.
499
+ picked up within about a block. With ``block_hash`` it is the runtime in the
500
+ state of that block, which executes the next block.
493
501
  """
494
- return await self._read(lambda raw: raw.runtime_spec_version())
502
+ return await self._read(lambda raw: raw.runtime_spec_version(block_hash))
495
503
 
496
504
  async def get_block(
497
505
  self, block_number: Optional[int] = None, block_hash: Optional[str] = None
@@ -599,6 +607,11 @@ class RpcSubstrate:
599
607
  """
600
608
  return await self._read(lambda raw: raw.decode_scale(type_string, data))
601
609
 
610
+ async def decode_commitment_registration(
611
+ self, data: Any, block_hash: Optional[str] = None
612
+ ) -> Any:
613
+ return await self._read(lambda raw: raw.decode_commitment_registration(data, block_hash))
614
+
602
615
  async def blocks(self, *, finalized: bool = False) -> AsyncIterator[dict]:
603
616
  """Stream decoded block headers as they are produced (or finalized).
604
617
 
@@ -221,14 +221,23 @@ class SubstrateConnection:
221
221
  async def genesis_hash(self) -> str:
222
222
  return await self._runtimes.genesis_hash()
223
223
 
224
- async def runtime_spec_version(self) -> int:
225
- """The connected runtime's ``spec_version`` at the chain head.
224
+ async def runtime_spec_version(self, block_hash: Optional[str] = None) -> int:
225
+ """The runtime's ``spec_version`` at the chain head, or in the state of ``block_hash``.
226
226
 
227
- Served from the head codec, which re-validates against
227
+ The chain-head case is served from the head codec, which re-validates against
228
228
  ``state_getRuntimeVersion`` on a short TTL — so a runtime upgrade
229
229
  mid-session is reflected within about a block.
230
+
231
+ With a block hash this is the runtime that the state of that block holds: the
232
+ runtime that executes the next block. Use it when a rule that depends on the
233
+ runtime version must match other state read at the same block.
230
234
  """
231
- return (await self._runtimes.codec_at(None)).spec_version
235
+ if block_hash is None:
236
+ return (await self._runtimes.codec_at(None)).spec_version
237
+ runtime_info = await self._session.request("state_getRuntimeVersion", [block_hash])
238
+ if runtime_info is None:
239
+ raise SubstrateRequestException(f"No runtime information for block '{block_hash}'")
240
+ return int(runtime_info["specVersion"])
232
241
 
233
242
  async def get_chain_head(self) -> str:
234
243
  return await self._session.request("chain_getHead", [])
@@ -562,6 +571,16 @@ class SubstrateConnection:
562
571
  codec = await self._runtimes.codec_at(block_hash)
563
572
  return codec.decode(type_string, bytes(data))
564
573
 
574
+ async def decode_commitment_registration(
575
+ self, data: bytes | str, block_hash: Optional[str] = None
576
+ ) -> Any:
577
+ """Decode the runtime API's opaque channel-commitment registration bytes."""
578
+ if isinstance(data, str):
579
+ data = bytes.fromhex(data.removeprefix("0x"))
580
+ codec = await self._runtimes.codec_at(block_hash)
581
+ entry = codec.storage_entry("Commitments", "ChannelCommitmentOf")
582
+ return codec.decode(entry.value_type, bytes(data))
583
+
565
584
  async def _normalize_era(self, era: Optional[dict | str]) -> tuple[dict | str, str]:
566
585
  """(normalized era, era block hash): immortal anchors at genesis, a
567
586
  mortal era without ``current`` anchors at the finalized head."""
@@ -0,0 +1,125 @@
1
+ """`btcli commitments`: independent hotkey channels and their burn prices."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from dataclasses import asdict, is_dataclass
6
+
7
+ import typer
8
+
9
+ from ...intents import SetChannelCommitment, SetCommitBurn
10
+ from ...settings import guide_docs_url
11
+ from ..context import AppContext, ctx_of
12
+ from ..globals import with_globals, with_tx_globals
13
+ from ..output import STYLE_WARNING
14
+
15
+ app = typer.Typer(
16
+ no_args_is_help=True,
17
+ help="Publish independent channel commitments.\n\n"
18
+ f"Guide: {guide_docs_url('channel-commitments')}",
19
+ )
20
+
21
+
22
+ @app.command("commit")
23
+ @with_tx_globals
24
+ def commit(
25
+ ctx: typer.Context,
26
+ netuid: int = typer.Option(..., "--netuid", help="Subnet containing the target hotkey."),
27
+ data: str = typer.Option(
28
+ ..., "--data", help="UTF-8 text, hex with --hex, or empty text to clear."
29
+ ),
30
+ mechid: int = typer.Option(0, "--mechid", help="Mechanism whose channel to publish on."),
31
+ channel: int = typer.Option(0, "--channel", help="Independent channel index (0..255)."),
32
+ hotkey: str | None = typer.Option(
33
+ None, "--hotkey", help="Hotkey publishing the commitment; defaults to the wallet hotkey."
34
+ ),
35
+ max_burn: str = typer.Option(
36
+ "0", "--max-burn", help="Maximum current TAO burn accepted (exact decimal)."
37
+ ),
38
+ hex_data: bool = typer.Option(
39
+ False, "--hex", help="Interpret --data as hexadecimal instead of UTF-8."
40
+ ),
41
+ reveal_round: int | None = typer.Option(
42
+ None, "--reveal-round", help="Future drand round for a timelocked commitment."
43
+ ),
44
+ ):
45
+ """Publish a channel commitment signed and paid for by the coldkey."""
46
+ app_ctx: AppContext = ctx_of(ctx)
47
+ app_ctx.submit(
48
+ SetChannelCommitment(
49
+ netuid=netuid,
50
+ mechid=mechid,
51
+ channel=channel,
52
+ hotkey_ss58=app_ctx.resolve_address("hotkey_ss58", hotkey),
53
+ data=data,
54
+ encoding="hex" if hex_data else "utf8",
55
+ max_burn_tao=max_burn,
56
+ reveal_round=reveal_round,
57
+ )
58
+ )
59
+
60
+
61
+ @app.command("price")
62
+ @with_globals
63
+ def price(
64
+ ctx: typer.Context,
65
+ netuid: int = typer.Option(..., "--netuid", help="Subnet whose commitment channel to inspect."),
66
+ mechid: int = typer.Option(0, "--mechid", help="Mechanism whose channel to inspect."),
67
+ channel: int = typer.Option(0, "--channel", help="Independent channel index (0..255)."),
68
+ ):
69
+ """Show the live decayed burn price and stored channel configuration."""
70
+ app_ctx: AppContext = ctx_of(ctx)
71
+ result = app_ctx.run(
72
+ lambda client: client.read("commit_burn", netuid=netuid, mechid=mechid, channel=channel)
73
+ )
74
+ app_ctx.output.detail("channel commitment burn", result or {})
75
+ if result is not None and not result["price_is_decayed"]:
76
+ app_ctx.output.message(
77
+ f"[{STYLE_WARNING}]warning:[/] burn is disabled or absent at the runtime quote; "
78
+ "stored parameters are shown. Stored prices can be stale because decay is lazy."
79
+ )
80
+
81
+
82
+ @app.command("show")
83
+ @with_globals
84
+ def show(
85
+ ctx: typer.Context,
86
+ netuid: int = typer.Option(..., "--netuid", help="Subnet containing the target hotkey."),
87
+ hotkey: str | None = typer.Option(
88
+ None, "--hotkey", help="Hotkey whose commitment to show; defaults to the wallet hotkey."
89
+ ),
90
+ mechid: int = typer.Option(0, "--mechid", help="Mechanism whose channel to inspect."),
91
+ channel: int = typer.Option(0, "--channel", help="Independent channel index (0..255)."),
92
+ ):
93
+ """Show a hotkey's independent channel commitment."""
94
+ app_ctx: AppContext = ctx_of(ctx)
95
+ address = app_ctx.resolve_address("hotkey_ss58", hotkey)
96
+ result = app_ctx.run(
97
+ lambda client: client.read(
98
+ "channel_commitment",
99
+ netuid=netuid,
100
+ mechid=mechid,
101
+ channel=channel,
102
+ hotkey_ss58=address,
103
+ )
104
+ )
105
+ app_ctx.output.detail(
106
+ "channel commitment", asdict(result) if is_dataclass(result) else result or {}
107
+ )
108
+
109
+
110
+ @app.command("burn-config")
111
+ @with_tx_globals
112
+ def burn_config(
113
+ ctx: typer.Context,
114
+ netuid: int = typer.Option(..., "--netuid", help="Subnet owned by the signing coldkey."),
115
+ name: str = typer.Option(..., "--name", help=SetCommitBurn.field_help("name")),
116
+ value: str = typer.Option(
117
+ ..., "--value", help="Enabled flag, TAO min/max, half-life in blocks, or decimal in 1..3."
118
+ ),
119
+ mechid: int = typer.Option(0, "--mechid", help="Mechanism whose channel to configure."),
120
+ channel: int = typer.Option(0, "--channel", help="Independent channel index (0..255)."),
121
+ ):
122
+ """Set one owner-controlled commitment burn parameter."""
123
+ ctx_of(ctx).submit(
124
+ SetCommitBurn(netuid=netuid, name=name, value=value, mechid=mechid, channel=channel)
125
+ )
@@ -24,7 +24,7 @@ from ...settings import NETWORKS, resolve_endpoint
24
24
  from ..context import AppContext, ctx_of
25
25
  from ..globals import with_globals
26
26
  from ..output import GLYPH_FAIL, GLYPH_OK, PASTEL_RED, STYLE_SUCCESS
27
- from . import axon, collateral, crowd, extension, timelock, upgrade, weights
27
+ from . import axon, collateral, commitments, crowd, extension, timelock, upgrade, weights
28
28
 
29
29
  app = typer.Typer(
30
30
  no_args_is_help=True,
@@ -43,6 +43,7 @@ app.add_typer(weights.app, name="weights", rich_help_panel=PANEL_OPERATORS)
43
43
  app.add_typer(axon.app, name="axon", rich_help_panel=PANEL_OPERATORS)
44
44
  app.add_typer(collateral.app, name="collateral", rich_help_panel=PANEL_OPERATORS)
45
45
  app.add_typer(timelock.app, name="timelock", rich_help_panel=PANEL_OPERATORS)
46
+ app.add_typer(commitments.app, name="commitments", rich_help_panel=PANEL_OPERATORS)
46
47
 
47
48
  app.add_typer(crowd.app, name="crowd", rich_help_panel=PANEL_STAKING)
48
49