bittensor 11.3.2__tar.gz → 11.3.4rc82__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 (406) hide show
  1. {bittensor-11.3.2 → bittensor-11.3.4rc82}/PKG-INFO +2 -2
  2. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_generated/calls.py +10 -0
  3. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_generated/errors.py +5 -0
  4. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_generated/storage.py +5 -2
  5. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_substrate.py +21 -0
  6. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_transport/extrinsics.py +37 -8
  7. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_transport/interface.py +22 -0
  8. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/proxy.py +200 -23
  9. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/subnet_emission.py +179 -49
  10. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/subnets.py +7 -1
  11. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/wallet.py +11 -1
  12. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/context.py +195 -30
  13. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/globals.py +44 -0
  14. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/main.py +14 -0
  15. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/multisig_helpers.py +130 -13
  16. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/output.py +4 -0
  17. bittensor-11.3.4rc82/bittensor/cli/protected.py +3581 -0
  18. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/root_helpers.py +5 -1
  19. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/stake_exit.py +3 -8
  20. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/stake_picker.py +6 -7
  21. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/tx.py +18 -6
  22. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/emission_weights.py +137 -22
  23. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/subtensor.py +31 -9
  24. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_map.py +5 -0
  25. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/__init__.py +8 -1
  26. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/batch.py +5 -0
  27. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/coldkey.py +3 -2
  28. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/emission_weights.py +122 -36
  29. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/gamma.py +21 -19
  30. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/proxy.py +312 -13
  31. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/root.py +41 -0
  32. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/namespaces.pyi +9 -0
  33. bittensor-11.3.4rc82/bittensor/protected_account.py +704 -0
  34. bittensor-11.3.4rc82/bittensor/protected_funding.py +174 -0
  35. bittensor-11.3.4rc82/bittensor/proxy_announcements.py +466 -0
  36. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/reads/accounts.py +43 -1
  37. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/reads/hyperparameters.py +7 -0
  38. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/reads/locks.py +40 -20
  39. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/reads/subnets.py +46 -2
  40. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/sp_core.py +35 -0
  41. {bittensor-11.3.2 → bittensor-11.3.4rc82}/codegen/check.py +4 -5
  42. {bittensor-11.3.2 → bittensor-11.3.4rc82}/pyproject.toml +4 -2
  43. bittensor-11.3.4rc82/scripts/test_protected_cli.sh +50 -0
  44. bittensor-11.3.4rc82/tests/e2e/test_protected_cli.py +343 -0
  45. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/harness/fake_substrate.py +20 -1
  46. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/harness/samples.py +15 -0
  47. bittensor-11.3.4rc82/tests/unit/test_announced_batch_safety.py +448 -0
  48. bittensor-11.3.4rc82/tests/unit/test_announced_execution_policy.py +207 -0
  49. bittensor-11.3.4rc82/tests/unit/test_announcement_cancel.py +29 -0
  50. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_emission_weights.py +406 -14
  51. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_gamma.py +55 -5
  52. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_hashed_receiving.py +40 -0
  53. bittensor-11.3.4rc82/tests/unit/test_normalize_signature.py +101 -0
  54. bittensor-11.3.4rc82/tests/unit/test_protected_account.py +316 -0
  55. bittensor-11.3.4rc82/tests/unit/test_protected_authority_regressions.py +492 -0
  56. bittensor-11.3.4rc82/tests/unit/test_protected_dispatch_regressions.py +162 -0
  57. bittensor-11.3.4rc82/tests/unit/test_protected_funding.py +149 -0
  58. bittensor-11.3.4rc82/tests/unit/test_protected_pending_lifecycle.py +477 -0
  59. bittensor-11.3.4rc82/tests/unit/test_protected_preparation.py +254 -0
  60. bittensor-11.3.4rc82/tests/unit/test_protected_preview_routing.py +282 -0
  61. bittensor-11.3.4rc82/tests/unit/test_protected_reconciliation_regressions.py +340 -0
  62. bittensor-11.3.4rc82/tests/unit/test_protected_revocation_ordering.py +327 -0
  63. bittensor-11.3.4rc82/tests/unit/test_protected_rotation_binding.py +544 -0
  64. bittensor-11.3.4rc82/tests/unit/test_protected_saved_hash.py +217 -0
  65. bittensor-11.3.4rc82/tests/unit/test_protected_settings_guards.py +130 -0
  66. bittensor-11.3.4rc82/tests/unit/test_protected_setup_resume.py +391 -0
  67. bittensor-11.3.4rc82/tests/unit/test_protected_setup_v2.py +297 -0
  68. bittensor-11.3.4rc82/tests/unit/test_protected_show_hash_match.py +131 -0
  69. bittensor-11.3.4rc82/tests/unit/test_protected_store_scoping.py +289 -0
  70. bittensor-11.3.4rc82/tests/unit/test_protected_timing_regressions.py +322 -0
  71. bittensor-11.3.4rc82/tests/unit/test_proxy_explicit_origin.py +56 -0
  72. bittensor-11.3.4rc82/tests/unit/test_sp_core_backend_compat.py +83 -0
  73. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_sp_core_keypair.py +41 -0
  74. bittensor-11.3.4rc82/tests/unit/test_sp_core_parity.py +76 -0
  75. bittensor-11.3.4rc82/tests/unit/test_storage_exists.py +55 -0
  76. bittensor-11.3.4rc82/tests/unit/test_subnet_convictions.py +53 -0
  77. bittensor-11.3.2/tests/unit/test_sp_core_parity.py +0 -44
  78. {bittensor-11.3.2 → bittensor-11.3.4rc82}/.gitignore +0 -0
  79. {bittensor-11.3.2 → bittensor-11.3.4rc82}/README.md +0 -0
  80. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/__init__.py +0 -0
  81. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_generated/__init__.py +0 -0
  82. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_generated/constants.py +0 -0
  83. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_generated/runtime_apis.py +0 -0
  84. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_live.py +0 -0
  85. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_pinned.py +0 -0
  86. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_subtensor.py +0 -0
  87. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_transport/__init__.py +0 -0
  88. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_transport/codec.py +0 -0
  89. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_transport/const.py +0 -0
  90. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_transport/contract.py +0 -0
  91. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_transport/errors.py +0 -0
  92. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_transport/lru.py +0 -0
  93. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_transport/protocols.py +0 -0
  94. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_transport/rpc.py +0 -0
  95. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_transport/runtime.py +0 -0
  96. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_transport/runtime_api.py +0 -0
  97. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_transport/storage.py +0 -0
  98. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_transport/utils/__init__.py +0 -0
  99. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/_transport/utils/receipt.py +0 -0
  100. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/account_mode.py +0 -0
  101. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/balance.py +0 -0
  102. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/basket_index.py +0 -0
  103. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/basket_index_data.py +0 -0
  104. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/__init__.py +0 -0
  105. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/call.py +0 -0
  106. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/call_names.py +0 -0
  107. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/__init__.py +0 -0
  108. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/addresses.py +0 -0
  109. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/axon.py +0 -0
  110. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/collateral.py +0 -0
  111. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/config.py +0 -0
  112. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/crowd.py +0 -0
  113. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/evm/__init__.py +0 -0
  114. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/evm/_shared.py +0 -0
  115. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/evm/address.py +0 -0
  116. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/evm/association.py +0 -0
  117. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/evm/contracts_cmd.py +0 -0
  118. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/evm/keys.py +0 -0
  119. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/evm/money.py +0 -0
  120. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/evm/precompiles_cmd.py +0 -0
  121. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/evm/setup.py +0 -0
  122. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/evm/stake.py +0 -0
  123. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/extension.py +0 -0
  124. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/gamma.py +0 -0
  125. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/lock.py +0 -0
  126. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/misc.py +0 -0
  127. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/multisig.py +0 -0
  128. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/root.py +0 -0
  129. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/root_move.py +0 -0
  130. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/root_swap.py +0 -0
  131. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/stake.py +0 -0
  132. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/sudo.py +0 -0
  133. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/timelock.py +0 -0
  134. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/upgrade.py +0 -0
  135. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/commands/weights.py +0 -0
  136. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/help_theme.py +0 -0
  137. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/helpers.py +0 -0
  138. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/hyperparams_view.py +0 -0
  139. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/intent_prompts.py +0 -0
  140. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/logs.py +0 -0
  141. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/metagraph_view.py +0 -0
  142. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/null_pruning.py +0 -0
  143. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/prompt.py +0 -0
  144. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/query.py +0 -0
  145. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/registration.py +0 -0
  146. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/secrets.py +0 -0
  147. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/upgrade_helpers.py +0 -0
  148. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/cli/wallet_addresses.py +0 -0
  149. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/client.py +0 -0
  150. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/config.py +0 -0
  151. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/__init__.py +0 -0
  152. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/admin_utils.py +0 -0
  153. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/balances.py +0 -0
  154. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/commitments.py +0 -0
  155. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/contracts.py +0 -0
  156. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/crowdloan.py +0 -0
  157. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/drand.py +0 -0
  158. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/ethereum.py +0 -0
  159. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/evm.py +0 -0
  160. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/grandpa.py +0 -0
  161. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/hashed_accounts.py +0 -0
  162. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/limit_orders.py +0 -0
  163. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/mev_shield.py +0 -0
  164. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/multisig.py +0 -0
  165. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/preimage.py +0 -0
  166. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/proxy.py +0 -0
  167. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/safe_mode.py +0 -0
  168. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/scheduler.py +0 -0
  169. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/sudo.py +0 -0
  170. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/swap.py +0 -0
  171. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/system.py +0 -0
  172. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/error_descriptions/utility.py +0 -0
  173. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/__init__.py +0 -0
  174. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/abi/addressMapping.json +0 -0
  175. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/abi/alpha.json +0 -0
  176. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/abi/balance.json +0 -0
  177. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/abi/balanceTransfer.json +0 -0
  178. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/abi/crowdloan.json +0 -0
  179. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/abi/drand.json +0 -0
  180. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/abi/ed25519Verify.json +0 -0
  181. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/abi/leasing.json +0 -0
  182. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/abi/metagraph.json +0 -0
  183. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/abi/neuron.json +0 -0
  184. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/abi/proxy.json +0 -0
  185. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/abi/registry.json +0 -0
  186. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/abi/runtimeConfiguration.json +0 -0
  187. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/abi/scheduler.json +0 -0
  188. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/abi/sr25519Verify.json +0 -0
  189. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/abi/staking.json +0 -0
  190. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/abi/stakingV2.json +0 -0
  191. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/abi/subnet.json +0 -0
  192. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/abi/timestamp.json +0 -0
  193. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/abi/uidLookup.json +0 -0
  194. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/abi/votingPower.json +0 -0
  195. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/addresses.py +0 -0
  196. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/contracts.py +0 -0
  197. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/keys.py +0 -0
  198. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/networks.py +0 -0
  199. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/precompiles.py +0 -0
  200. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/rpc.py +0 -0
  201. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/evm/transactions.py +0 -0
  202. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/executor.py +0 -0
  203. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/extension/__init__.py +0 -0
  204. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/extension/bridge.py +0 -0
  205. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/extension/browser.py +0 -0
  206. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/extension/client.py +0 -0
  207. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/extension/daemon.py +0 -0
  208. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/extension/picker.py +0 -0
  209. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/extension/session.py +0 -0
  210. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/extension/signer.py +0 -0
  211. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/extension/static/bridge.html +0 -0
  212. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/extension/tokens.py +0 -0
  213. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/fee_filters.py +0 -0
  214. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/hashed.py +0 -0
  215. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/http_auth.py +0 -0
  216. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/hyperparams.py +0 -0
  217. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/_money.py +0 -0
  218. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/_root_claim_fee.py +0 -0
  219. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/association.py +0 -0
  220. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/base.py +0 -0
  221. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/children.py +0 -0
  222. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/collateral.py +0 -0
  223. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/crowdloan.py +0 -0
  224. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/evm.py +0 -0
  225. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/governance.py +0 -0
  226. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/hyperparameters.py +0 -0
  227. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/identity.py +0 -0
  228. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/leasing.py +0 -0
  229. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/limit_orders.py +0 -0
  230. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/lock.py +0 -0
  231. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/multisig.py +0 -0
  232. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/plan.py +0 -0
  233. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/registration.py +0 -0
  234. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/registry.py +0 -0
  235. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/serving.py +0 -0
  236. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/staking.py +0 -0
  237. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/transfer.py +0 -0
  238. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/intents/weights.py +0 -0
  239. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/keyfiles.py +0 -0
  240. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/ledger.py +0 -0
  241. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/limit_orders.py +0 -0
  242. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/macos_password.py +0 -0
  243. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/masked_input.py +0 -0
  244. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/metagraph.py +0 -0
  245. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/mldsa.py +0 -0
  246. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/mldsa_signing.py +0 -0
  247. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/multisig.py +0 -0
  248. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/namespaces.py +0 -0
  249. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/pow_registration.py +0 -0
  250. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/py.typed +0 -0
  251. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/reads/__init__.py +0 -0
  252. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/reads/base.py +0 -0
  253. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/reads/chain.py +0 -0
  254. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/reads/collateral.py +0 -0
  255. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/reads/delegation.py +0 -0
  256. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/reads/epochs.py +0 -0
  257. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/reads/gamma.py +0 -0
  258. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/reads/identity.py +0 -0
  259. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/reads/leasing.py +0 -0
  260. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/reads/neurons.py +0 -0
  261. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/reads/prices.py +0 -0
  262. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/reads/root.py +0 -0
  263. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/reads/staking.py +0 -0
  264. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/reads/weights.py +0 -0
  265. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/receiving.py +0 -0
  266. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/registration_sponsorship.py +0 -0
  267. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/result.py +0 -0
  268. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/settings.py +0 -0
  269. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/shielding.py +0 -0
  270. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/signing.py +0 -0
  271. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/snapshot.py +0 -0
  272. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/sync.py +0 -0
  273. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/timelock.py +0 -0
  274. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/vault/__init__.py +0 -0
  275. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/vault/qr.py +0 -0
  276. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/vault/scan.py +0 -0
  277. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/vault/server.py +0 -0
  278. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/vault/signer.py +0 -0
  279. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/vault/static/bittensor-chain-specs.png +0 -0
  280. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/vault/static/vault.html +0 -0
  281. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/vault/uos.py +0 -0
  282. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/wallet.py +0 -0
  283. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/wallet_registration.py +0 -0
  284. {bittensor-11.3.2 → bittensor-11.3.4rc82}/bittensor/wallets.py +0 -0
  285. {bittensor-11.3.2 → bittensor-11.3.4rc82}/codegen/__init__.py +0 -0
  286. {bittensor-11.3.2 → bittensor-11.3.4rc82}/codegen/__main__.py +0 -0
  287. {bittensor-11.3.2 → bittensor-11.3.4rc82}/codegen/emit_namespaces.py +0 -0
  288. {bittensor-11.3.2 → bittensor-11.3.4rc82}/codegen/emit_python.py +0 -0
  289. {bittensor-11.3.2 → bittensor-11.3.4rc82}/codegen/metadata.py +0 -0
  290. {bittensor-11.3.2 → bittensor-11.3.4rc82}/completions/_btcli +0 -0
  291. {bittensor-11.3.2 → bittensor-11.3.4rc82}/completions/btcli.bash +0 -0
  292. {bittensor-11.3.2 → bittensor-11.3.4rc82}/completions/btcli.fish +0 -0
  293. {bittensor-11.3.2 → bittensor-11.3.4rc82}/justfile +0 -0
  294. {bittensor-11.3.2 → bittensor-11.3.4rc82}/scripts/bench_neurons.py +0 -0
  295. {bittensor-11.3.2 → bittensor-11.3.4rc82}/scripts/bench_transport.py +0 -0
  296. {bittensor-11.3.2 → bittensor-11.3.4rc82}/scripts/build_basket_index.py +0 -0
  297. {bittensor-11.3.2 → bittensor-11.3.4rc82}/scripts/export_beta_baselines_rs.py +0 -0
  298. {bittensor-11.3.2 → bittensor-11.3.4rc82}/scripts/prepare_clone_for_e2e.py +0 -0
  299. {bittensor-11.3.2 → bittensor-11.3.4rc82}/scripts/record_golden.py +0 -0
  300. {bittensor-11.3.2 → bittensor-11.3.4rc82}/scripts/record_hashed_vectors.py +0 -0
  301. {bittensor-11.3.2 → bittensor-11.3.4rc82}/scripts/record_shape_corpus.py +0 -0
  302. {bittensor-11.3.2 → bittensor-11.3.4rc82}/scripts/verify_finney_evm_association_cap.py +0 -0
  303. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/__init__.py +0 -0
  304. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/conftest.py +0 -0
  305. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_emission_weights_cli.py +0 -0
  306. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_falcon_fund_safety.py +0 -0
  307. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_falcon_release.py +0 -0
  308. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_hashed_activation.py +0 -0
  309. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_mixed_multisig.py +0 -0
  310. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_mldsa_cli_regressions.py +0 -0
  311. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_mldsa_extended.py +0 -0
  312. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_mldsa_localnet.py +0 -0
  313. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_mldsa_multisig_costs.py +0 -0
  314. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_mldsa_nested_authority.py +0 -0
  315. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_mldsa_operation_families.py +0 -0
  316. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_mldsa_proxy_boundaries.py +0 -0
  317. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_mldsa_release.py +0 -0
  318. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_mldsa_release_costs.py +0 -0
  319. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_mldsa_root_cli.py +0 -0
  320. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_mldsa_sponsorship_live.py +0 -0
  321. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_mldsa_validator_paths.py +0 -0
  322. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_mldsa_validator_proxy.py +0 -0
  323. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_null_consensus.py +0 -0
  324. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_pow_registration.py +0 -0
  325. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_timelock_commitment.py +0 -0
  326. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_wallet_approval_lifecycle.py +0 -0
  327. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_wallet_parity.py +0 -0
  328. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_wallet_shield.py +0 -0
  329. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_wallet_swap_release.py +0 -0
  330. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/e2e/test_wallet_types.py +0 -0
  331. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/fixtures/golden.json +0 -0
  332. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/fixtures/mldsa-zero-next-proof.hex +0 -0
  333. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/fixtures/shape_corpus/corpus.json +0 -0
  334. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/harness/__init__.py +0 -0
  335. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/harness/fake_node.py +0 -0
  336. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/harness/receiving.py +0 -0
  337. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/__init__.py +0 -0
  338. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_balance_properties.py +0 -0
  339. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_cli.py +0 -0
  340. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_cli_commands.py +0 -0
  341. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_cli_intent_prompts.py +0 -0
  342. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_cli_null_pruning.py +0 -0
  343. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_codec_golden.py +0 -0
  344. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_codec_properties.py +0 -0
  345. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_evm.py +0 -0
  346. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_evm_wallet_types.py +0 -0
  347. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_extension_bridge.py +0 -0
  348. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_extension_signer.py +0 -0
  349. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_facades.py +0 -0
  350. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_falcon_accounts.py +0 -0
  351. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_fee_filters.py +0 -0
  352. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_hashed_accounts.py +0 -0
  353. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_hashed_children.py +0 -0
  354. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_hashed_evm.py +0 -0
  355. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_hashed_messages.py +0 -0
  356. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_hashed_receiving_cli.py +0 -0
  357. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_http_auth.py +0 -0
  358. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_hyperparams_units.py +0 -0
  359. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_intents_table.py +0 -0
  360. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_keyfile_atomicity.py +0 -0
  361. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_keyfiles_golden.py +0 -0
  362. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_ledger_signer.py +0 -0
  363. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_lock_ownership_gate.py +0 -0
  364. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_metagraph_symbols.py +0 -0
  365. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_mldsa_accounts.py +0 -0
  366. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_mldsa_messages.py +0 -0
  367. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_mldsa_orders.py +0 -0
  368. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_mldsa_signing.py +0 -0
  369. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_multisig_pinned_staking.py +0 -0
  370. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_multisig_safety.py +0 -0
  371. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_multisig_signatories.py +0 -0
  372. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_natural_name_key.py +0 -0
  373. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_null_weights.py +0 -0
  374. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_order_subnet_policy.py +0 -0
  375. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_pow_registration.py +0 -0
  376. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_pq_release_adversarial.py +0 -0
  377. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_prepare_attach.py +0 -0
  378. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_reads_table.py +0 -0
  379. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_registration_deposit.py +0 -0
  380. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_registration_shield.py +0 -0
  381. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_registration_sponsorship.py +0 -0
  382. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_registration_sponsorship_cli.py +0 -0
  383. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_root_claim_fee.py +0 -0
  384. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_rpc.py +0 -0
  385. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_safe_composites.py +0 -0
  386. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_shape_corpus.py +0 -0
  387. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_shield_fee.py +0 -0
  388. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_shield_receipt_fees.py +0 -0
  389. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_slippage_protection.py +0 -0
  390. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_stateless_mldsa.py +0 -0
  391. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_storage_golden.py +0 -0
  392. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_submission_admission.py +0 -0
  393. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_submission_costs.py +0 -0
  394. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_subnet_lifecycle.py +0 -0
  395. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_v446_accounting_and_commitments.py +0 -0
  396. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_vault_signer.py +0 -0
  397. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_wallet_address_output.py +0 -0
  398. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_wallet_address_status.py +0 -0
  399. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_wallet_compat.py +0 -0
  400. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_wallet_creation_registration_cli.py +0 -0
  401. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_wallet_crypto_types.py +0 -0
  402. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_wallet_list_multisig_offline.py +0 -0
  403. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_wallet_pair_atomicity.py +0 -0
  404. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_wallet_registration.py +0 -0
  405. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_wallet_review_regressions.py +0 -0
  406. {bittensor-11.3.2 → bittensor-11.3.4rc82}/tests/unit/test_wallet_security_swarm.py +0 -0
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: bittensor
3
- Version: 11.3.2
3
+ Version: 11.3.4rc82
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
7
7
  Author: RaoFoundation
8
8
  License: Apache-2.0
9
9
  Requires-Python: <3.15,>=3.10
10
- Requires-Dist: bittensor-core<0.2.0,>=0.1.9
10
+ Requires-Dist: bittensor-core==0.1.11rc82
11
11
  Requires-Dist: eth-account<0.14,>=0.13
12
12
  Requires-Dist: qrcode<9,>=8.0
13
13
  Requires-Dist: rich>=13.0.0
@@ -1415,6 +1415,16 @@ class AdminUtils:
1415
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."
1416
1416
  return Call('AdminUtils', 'sudo_set_subnet_emission_weights', {'netuid': netuid, 'uids': uids, 'values': values})
1417
1417
 
1418
+ @staticmethod
1419
+ def sudo_set_subnet_emission_weights_v2(netuid: 'NetUid', split: 'BoundedVec') -> Call:
1420
+ "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."
1421
+ return Call('AdminUtils', 'sudo_set_subnet_emission_weights_v2', {'netuid': netuid, 'split': split})
1422
+
1423
+ @staticmethod
1424
+ def sudo_set_subnet_gamma_emission_whitelisted(netuid: 'NetUid', whitelisted: 'bool') -> Call:
1425
+ "Whitelists a subnet for gamma emission, so subnets may give it gamma shares, or removes it, which moves every share of it to its subnet's miner slot. Root-only."
1426
+ return Call('AdminUtils', 'sudo_set_subnet_gamma_emission_whitelisted', {'netuid': netuid, 'whitelisted': whitelisted})
1427
+
1418
1428
  @staticmethod
1419
1429
  def sudo_set_subnet_gamma_enabled(netuid: 'NetUid', enabled: 'bool') -> Call:
1420
1430
  'Enables or disables gamma minting on a subnet. Callable by the subnet owner or root; the root subnet is refused.'
@@ -242,6 +242,11 @@ ERRORS: dict[tuple[int, int], ErrorInfo] = {
242
242
  (7, 199): ErrorInfo('SubtensorModule', 'InsufficientGammaBalance', "The gamma deposit's balance is below the amount."),
243
243
  (7, 200): ErrorInfo('SubtensorModule', 'GammaDepositDailySpendCapExceeded', "The amount is above what the gamma deposit's daily spend cap allows now."),
244
244
  (7, 201): ErrorInfo('SubtensorModule', 'BurnRecycleEmissionAboveMaximum', '`set_subnet_emission_weights`: burn (slot 0) and recycle (slot 1) together may be at most 33% of emission.'),
245
+ (7, 202): ErrorInfo('SubtensorModule', 'EmissionSlotsNotAscending', "`set_subnet_emission_weights_v2`: the split's slots are not in strictly ascending order."),
246
+ (7, 203): ErrorInfo('SubtensorModule', 'GammaEmissionAboveMaximum', '`set_subnet_emission_weights_v2`: a gamma share may be at most 10% of emission.'),
247
+ (7, 204): ErrorInfo('SubtensorModule', 'GammaEmissionTargetNotWhitelisted', '`set_subnet_emission_weights_v2`: a gamma share names a subnet that is not whitelisted for gamma emission.'),
248
+ (7, 205): ErrorInfo('SubtensorModule', 'TooManyGammaShares', '`set_subnet_emission_weights_v2`: a split may have at most 16 gamma shares.'),
249
+ (7, 206): ErrorInfo('SubtensorModule', 'GammaEmissionNotSettableOnLeasedSubnet', '`set_subnet_emission_weights_v2`: a subnet under a lease may not have gamma shares.'),
245
250
  (11, 0): ErrorInfo('Utility', 'TooManyCalls', 'Too many calls batched.'),
246
251
  (11, 1): ErrorInfo('Utility', 'InvalidDerivedAccount', 'Bad input data for derived account ID'),
247
252
  (11, 2): ErrorInfo('Utility', 'SafeDerivationFailed', 'No full-width off-curve account could be derived within the fixed bound.'),
@@ -155,8 +155,6 @@ class SubtensorModule:
155
155
  LockingColdkeys = Item('SubtensorModule', 'LockingColdkeys', '()')
156
156
  HotkeyLock = Item('SubtensorModule', 'HotkeyLock', 'LockState')
157
157
  DecayingHotkeyLock = Item('SubtensorModule', 'DecayingHotkeyLock', 'LockState')
158
- OwnerLock = Item('SubtensorModule', 'OwnerLock', 'LockState')
159
- DecayingOwnerLock = Item('SubtensorModule', 'DecayingOwnerLock', 'LockState')
160
158
  DecayingLock = Item('SubtensorModule', 'DecayingLock', 'bool')
161
159
  OwnerCutAutoLockEnabled = Item('SubtensorModule', 'OwnerCutAutoLockEnabled', 'bool')
162
160
  MaturityRate = Item('SubtensorModule', 'MaturityRate', 'u64')
@@ -345,6 +343,7 @@ class SubtensorModule:
345
343
  AssociatedEvmAddress = Item('SubtensorModule', 'AssociatedEvmAddress', '(H160, u64)')
346
344
  AssociatedUidsByEvmAddress = Item('SubtensorModule', 'AssociatedUidsByEvmAddress', 'BoundedVec')
347
345
  SubnetLeases = Item('SubtensorModule', 'SubnetLeases', 'SubnetLease')
346
+ SubnetLeaseTerminationHotkey = Item('SubtensorModule', 'SubnetLeaseTerminationHotkey', 'AccountId32')
348
347
  SubnetLeaseShares = Item('SubtensorModule', 'SubnetLeaseShares', 'FixedU128')
349
348
  SubnetUidToLeaseId = Item('SubtensorModule', 'SubnetUidToLeaseId', 'u32')
350
349
  NextSubnetLeaseId = Item('SubtensorModule', 'NextSubnetLeaseId', 'u32')
@@ -369,6 +368,10 @@ class SubtensorModule:
369
368
  GammaDeposits = Item('SubtensorModule', 'GammaDeposits', 'GammaDeposit')
370
369
  ColdkeyGammaHotkeys = Item('SubtensorModule', 'ColdkeyGammaHotkeys', 'BoundedVec')
371
370
  SubnetGammaPrice = Item('SubtensorModule', 'SubnetGammaPrice', 'FixedU128')
371
+ SubnetGammaEmission = Item('SubtensorModule', 'SubnetGammaEmission', 'BoundedVec')
372
+ PendingGammaEmission = Item('SubtensorModule', 'PendingGammaEmission', 'AlphaBalance')
373
+ UnconvertedGammaEmission = Item('SubtensorModule', 'UnconvertedGammaEmission', 'AlphaBalance')
374
+ SubnetGammaEmissionWhitelisted = Item('SubtensorModule', 'SubnetGammaEmissionWhitelisted', 'bool')
372
375
  TaoUsdPriceOracle = Item('SubtensorModule', 'TaoUsdPriceOracle', 'AccountId32')
373
376
  TaoUsdPrice = Item('SubtensorModule', 'TaoUsdPrice', 'TaoUsdPriceState')
374
377
  AutoParentDelegationEnabled = Item('SubtensorModule', 'AutoParentDelegationEnabled', 'bool')
@@ -152,6 +152,16 @@ class Substrate(Protocol):
152
152
  """Read one storage item, returning its plain decoded value."""
153
153
  ...
154
154
 
155
+ async def storage_exists(
156
+ self,
157
+ module: str,
158
+ storage_function: str,
159
+ params: Optional[list] = None,
160
+ block_hash: Optional[str] = None,
161
+ ) -> bool:
162
+ """Whether a storage key is present, without applying its default value."""
163
+ ...
164
+
155
165
  async def map_has_entries(
156
166
  self,
157
167
  module: str,
@@ -513,6 +523,17 @@ class RpcSubstrate:
513
523
  lambda raw: raw.query(module, storage_function, params or [], block_hash)
514
524
  )
515
525
 
526
+ async def storage_exists(
527
+ self,
528
+ module: str,
529
+ storage_function: str,
530
+ params: Optional[list] = None,
531
+ block_hash: Optional[str] = None,
532
+ ) -> bool:
533
+ return await self._read(
534
+ lambda raw: raw.storage_exists(module, storage_function, params or [], block_hash)
535
+ )
536
+
516
537
  async def map_has_entries(
517
538
  self,
518
539
  module: str,
@@ -28,7 +28,17 @@ import inspect
28
28
  from hashlib import blake2b
29
29
  from typing import Any, Optional
30
30
 
31
- from ..sp_core import PQ_CRYPTO_TYPES, REGISTERED_CRYPTO_TYPES, pq_lengths
31
+ from ..sp_core import (
32
+ CRYPTO_ECDSA,
33
+ CRYPTO_ED25519,
34
+ CRYPTO_SR25519,
35
+ ECDSA_SIGNATURE_LEN,
36
+ ED25519_SIGNATURE_LEN,
37
+ PQ_CRYPTO_TYPES,
38
+ REGISTERED_CRYPTO_TYPES,
39
+ SR25519_SIGNATURE_LEN,
40
+ pq_lengths,
41
+ )
32
42
  from .codec import RuntimeCodec
33
43
  from .contract import SignedExtrinsic, SigningContext, UnsignedExtrinsic
34
44
  from .errors import SubstrateRequestException
@@ -284,17 +294,36 @@ def prepare_extrinsic(
284
294
  )
285
295
 
286
296
 
287
- def _normalize_signature(signature: bytes | str, default_version: int) -> tuple[bytes, int]:
288
- """(raw 64-byte signature, signature version).
297
+ # MultiSignature variant index -> raw signature length.
298
+ _SIGNATURE_LENGTHS = {
299
+ CRYPTO_ED25519: ED25519_SIGNATURE_LEN,
300
+ CRYPTO_SR25519: SR25519_SIGNATURE_LEN,
301
+ CRYPTO_ECDSA: ECDSA_SIGNATURE_LEN,
302
+ }
289
303
 
290
- A 65-byte signature carries its version in the first byte (the MultiSignature
291
- convention extensions and hardware devices return); a 64-byte one uses the
292
- signer's crypto type.
304
+
305
+ def _normalize_signature(signature: bytes | str, default_version: int) -> tuple[bytes, int]:
306
+ """(raw signature, signature version).
307
+
308
+ Raw signatures are 64 bytes for ed25519/sr25519 and 65 bytes for ecdsa
309
+ (MultiSignature variant 2). A signature one byte longer than its variant's
310
+ raw length carries that variant in its first byte (the MultiSignature
311
+ convention extensions and hardware devices return); otherwise the signer's
312
+ crypto type is used. A 65-byte signature is therefore raw ecdsa when the
313
+ signer is ecdsa, and version-prefixed ed25519/sr25519 otherwise. Any other
314
+ shape is passed through as before; the chain rejects it as invalid.
293
315
  """
294
316
  if isinstance(signature, str):
295
317
  signature = bytes.fromhex(signature.removeprefix("0x"))
296
- if len(signature) == 65:
297
- return signature[1:], signature[0]
318
+ signature = bytes(signature)
319
+ if len(signature) == _SIGNATURE_LENGTHS.get(default_version):
320
+ return signature, default_version
321
+ if signature:
322
+ version = signature[0]
323
+ if len(signature) - 1 == _SIGNATURE_LENGTHS.get(version):
324
+ return signature[1:], version
325
+ # Unrecognized shape: keep the legacy handling; don't raise an error
326
+ # and just return the raw signature unchanged.
298
327
  return signature, default_version
299
328
 
300
329
 
@@ -335,6 +335,28 @@ class SubstrateConnection:
335
335
  raws = [by_key.get(key_hex) for key_hex in key_hexes]
336
336
  return decode_storage_values(codec, entry, raws)
337
337
 
338
+ async def storage_exists(
339
+ self,
340
+ module: str,
341
+ storage_function: str,
342
+ params: Optional[list] = None,
343
+ block_hash: Optional[str] = None,
344
+ ) -> bool:
345
+ """Check an exact storage key, distinguishing absence from a stored default."""
346
+ codec = await self._runtimes.codec_at(block_hash)
347
+ entry = codec.storage_entry(module, storage_function)
348
+ params = params or []
349
+ if len(params) != len(entry.param_types):
350
+ raise ValueError(
351
+ f"Storage function requires {len(entry.param_types)} parameters, "
352
+ f"{len(params)} given"
353
+ )
354
+ key = codec.storage_key(entry, params)
355
+ value_hash = await self._session.request(
356
+ "state_getStorageHash", ["0x" + key.hex(), block_hash]
357
+ )
358
+ return value_hash is not None
359
+
338
360
  async def map_has_entries(
339
361
  self,
340
362
  module: str,
@@ -23,14 +23,36 @@ from ..context import AppContext, address_cli_name, ctx_of, ss58_param_help
23
23
  from ..globals import with_globals, with_tx_globals
24
24
  from ..helpers import list_coldkeys
25
25
  from ..prompt import PromptSpec, fill_missing, interactive
26
+ from ..protected import (
27
+ run_cancel,
28
+ run_execute_protected,
29
+ run_fund,
30
+ run_protect,
31
+ run_rotate,
32
+ run_rotate_finalize,
33
+ run_show,
34
+ )
26
35
  from ..stake_picker import dest_account_spec
27
36
 
28
37
  app = typer.Typer(
29
38
  no_args_is_help=True,
30
- help="On-chain proxy management and the local proxy book."
31
- f"\n\nGuide: {guide_docs_url('proxies')}",
39
+ help="On-chain proxy management, protected accounts, and the local proxy book."
40
+ f"\n\nGuides: {guide_docs_url('proxies')}, {guide_docs_url('protected-accounts')}",
32
41
  )
33
42
 
43
+
44
+ @app.command("fund")
45
+ @with_tx_globals
46
+ def fund_controller(
47
+ ctx: typer.Context,
48
+ from_wallet: str = typer.Option(
49
+ ..., "--from-wallet", help="Separate wallet paying the top-up."
50
+ ),
51
+ ):
52
+ """Fund a protected account's controller after migration, using a separate wallet."""
53
+ run_fund(ctx_of(ctx), from_wallet=from_wallet)
54
+
55
+
34
56
  book_app = typer.Typer(
35
57
  no_args_is_help=True,
36
58
  help="Local proxy address book (named pure/delegate proxies).",
@@ -368,38 +390,193 @@ def list_proxies(
368
390
  out.columns(title, ["delegate", "type", "delay"], rows, records, footer=footer)
369
391
 
370
392
 
393
+ @app.command("protect")
394
+ @with_tx_globals
395
+ def protect_account(
396
+ ctx: typer.Context,
397
+ bind_network: bool = typer.Option(
398
+ False,
399
+ "--bind-network",
400
+ help="Bind an older local protected-account record and queue to the selected "
401
+ "network after verifying its pure account and controller. Does not change grants.",
402
+ ),
403
+ delay: Optional[str] = typer.Option(
404
+ None,
405
+ "--delay",
406
+ help="Announcement delay for the controller proxy. Duration (36h, 2d) or "
407
+ "blocks (10800). Defaults to 36h for a new account; preserves the active "
408
+ "delay when updating an existing account. Must be greater than zero.",
409
+ ),
410
+ allow: Optional[list[str]] = typer.Option(
411
+ None,
412
+ "--allow",
413
+ help="Zero-delay restricted proxy to grant (repeatable). Known items: "
414
+ "staking, childkeys, basket/basket-swaps, gamma, "
415
+ "root-claim, validate, weights, owner, swap-hotkey, subnet-lease. "
416
+ "Each token grants its complete runtime ProxyType, not only the named command. "
417
+ "Use a separate --allow-key and review the warning before accepting. "
418
+ "Refuses transfer/proxy/swap-capable types, Registration, and Lock. "
419
+ "No presets — omit for none.",
420
+ ),
421
+ disallow: Optional[list[str]] = typer.Option(
422
+ None,
423
+ "--disallow",
424
+ help="On an already-protected wallet: queue removal of a zero-delay allow "
425
+ "(same tokens as --allow).",
426
+ ),
427
+ allow_key: Optional[str] = typer.Option(
428
+ None,
429
+ "--allow-key",
430
+ help="Wallet/ss58 that holds the zero-delay --allow proxies "
431
+ "(default: the controller wallet).",
432
+ ),
433
+ ):
434
+ """Create (or update) a coercion-resistant protected account.
435
+
436
+ Spawns a keyless pure proxy controlled by this wallet with a mandatory
437
+ announcement delay, optionally grants zero-delay restricted allows, and
438
+ announces a coldkey swap that moves stake/subnets/identity onto the
439
+ protected account. Re-running with new --delay/--allow/--disallow queues
440
+ the changes as delayed announcements.
441
+ """
442
+ app_ctx: AppContext = ctx_of(ctx)
443
+ run_protect(
444
+ app_ctx,
445
+ delay_raw=delay,
446
+ allow=list(allow or []),
447
+ disallow=list(disallow or []),
448
+ allow_key=allow_key,
449
+ bind_network=bind_network,
450
+ )
451
+
452
+
453
+ @app.command("show")
454
+ @with_globals
455
+ def show_protected(
456
+ ctx: typer.Context,
457
+ index: Optional[int] = typer.Option(
458
+ None, "--index", help="Show full detail for one local announcement."
459
+ ),
460
+ ):
461
+ """List pending protected-account announcements (or one in detail)."""
462
+ app_ctx: AppContext = ctx_of(ctx)
463
+ run_show(app_ctx, index=index)
464
+
465
+
466
+ @app.command("cancel")
467
+ @with_tx_globals
468
+ def cancel_announcement(
469
+ ctx: typer.Context,
470
+ index: Optional[int] = typer.Option(
471
+ None, "--index", help="Cancel one announcement by local index."
472
+ ),
473
+ ):
474
+ """Cancel pending protected-account announcement(s).
475
+
476
+ Without --index, cancels all pending items after a confirm prompt
477
+ (skipped with --yes / -y).
478
+ """
479
+ app_ctx: AppContext = ctx_of(ctx)
480
+ run_cancel(app_ctx, index=index, yes=bool(app_ctx.assume_yes))
481
+
482
+
371
483
  @app.command("execute")
372
484
  @with_tx_globals
373
485
  def execute_announced(
374
486
  ctx: typer.Context,
375
- delegate_ss58: str = typer.Option(
376
- ..., address_cli_name("delegate_ss58"), help=ss58_param_help("delegate_ss58")
487
+ index: Optional[int] = typer.Option(
488
+ None, "--index", help="Execute one local protected-account announcement."
377
489
  ),
378
- real_ss58: str = typer.Option(
379
- ..., address_cli_name("real_ss58"), help=ss58_param_help("real_ss58")
490
+ delegate_ss58: Optional[str] = typer.Option(
491
+ None, address_cli_name("delegate_ss58"), help=ss58_param_help("delegate_ss58")
492
+ ),
493
+ real_ss58: Optional[str] = typer.Option(
494
+ None, address_cli_name("real_ss58"), help=ss58_param_help("real_ss58")
495
+ ),
496
+ inner_op: Optional[str] = typer.Option(
497
+ None, "--inner-op", help="Intent op name for the inner call (low-level form)."
380
498
  ),
381
- inner_op: str = typer.Option(..., "--inner-op", help="Intent op name for the inner call."),
382
499
  inner_args: str = typer.Option("{}", "--inner-args", help="JSON object of inner intent args."),
383
500
  force_proxy_type: Optional[ProxyTypeChoice] = typer.Option(None, "--force-proxy-type"),
501
+ fee_payer: Optional[str] = typer.Option(
502
+ None,
503
+ "--fee-payer",
504
+ help="Local single-key wallet that signs and pays only for permissionless "
505
+ "execution of a protected announcement. It receives no authority over the "
506
+ "protected account.",
507
+ ),
384
508
  ):
385
- """Execute a previously announced proxy call."""
509
+ """Execute announced proxy call(s) after the delay.
510
+
511
+ Protected-account form (requires -w): ``btcli proxy execute --index N`` or
512
+ ``btcli proxy execute`` to run every READY item (not-ready items are listed
513
+ with a countdown and skipped — not an error). Fee payer can be any single
514
+ signer; multisig is not required to execute.
515
+
516
+ Low-level form: pass --delegate, --real, and --inner-op explicitly.
517
+ """
386
518
  app_ctx: AppContext = ctx_of(ctx)
387
- delegate = app_ctx.resolve_address("coldkey_ss58", delegate_ss58)
388
- real = app_ctx.resolve_address("coldkey_ss58", real_ss58)
389
- try:
390
- args = json.loads(inner_args)
391
- except json.JSONDecodeError as error:
392
- app_ctx.output.error(f"invalid --inner-args JSON: {error}")
393
- raise typer.Exit(1)
394
- app_ctx.submit(
395
- ExecuteProxyAnnounced(
396
- delegate_ss58=delegate,
397
- real_ss58=real,
398
- inner_op=inner_op,
399
- inner_args=args,
400
- force_proxy_type=force_proxy_type.value if force_proxy_type else None,
519
+ low_level = any(v is not None for v in (delegate_ss58, real_ss58, inner_op))
520
+ if low_level:
521
+ if fee_payer is not None:
522
+ app_ctx.output.error(
523
+ "--fee-payer is available only for a saved protected-account announcement",
524
+ help="select the saved row with --index, or choose the signing wallet with -w",
525
+ )
526
+ raise typer.Exit(2)
527
+ if not (delegate_ss58 and real_ss58 and inner_op):
528
+ app_ctx.output.error(
529
+ "low-level execute requires --delegate, --real, and --inner-op together"
530
+ )
531
+ raise typer.Exit(2)
532
+ delegate = app_ctx.resolve_address("coldkey_ss58", delegate_ss58)
533
+ real = app_ctx.resolve_address("coldkey_ss58", real_ss58)
534
+ try:
535
+ args = json.loads(inner_args)
536
+ except json.JSONDecodeError as error:
537
+ app_ctx.output.error(f"invalid --inner-args JSON: {error}")
538
+ raise typer.Exit(1)
539
+ app_ctx.submit(
540
+ ExecuteProxyAnnounced(
541
+ delegate_ss58=delegate,
542
+ real_ss58=real,
543
+ inner_op=inner_op,
544
+ inner_args=args,
545
+ force_proxy_type=force_proxy_type.value if force_proxy_type else None,
546
+ ),
547
+ proxy_for="self",
401
548
  )
402
- )
549
+ return
550
+ run_execute_protected(app_ctx, index=index, fee_payer=fee_payer)
551
+
552
+
553
+ @app.command("rotate")
554
+ @with_tx_globals
555
+ def rotate_controller(
556
+ ctx: typer.Context,
557
+ to_wallet: str = typer.Option(
558
+ ...,
559
+ "--to",
560
+ help="New controller wallet (or ss58) to add as the delayed Any proxy.",
561
+ ),
562
+ finalize: bool = typer.Option(
563
+ False,
564
+ "--finalize",
565
+ help="After the rotate announcement has executed: move the local "
566
+ "protected-account record to --to.",
567
+ ),
568
+ ):
569
+ """Rotate the delayed controller of a protected account.
570
+
571
+ Announces a batch that adds --to as the delayed Any controller and removes
572
+ the current wallet. No coldkey swap. After execution, local config is
573
+ rebound automatically; pass --finalize to rebind manually if needed.
574
+ """
575
+ app_ctx: AppContext = ctx_of(ctx)
576
+ if finalize:
577
+ run_rotate_finalize(app_ctx, to_wallet=to_wallet)
578
+ return
579
+ run_rotate(app_ctx, to_wallet=to_wallet)
403
580
 
404
581
 
405
582
  @book_app.command("add")