bittensor.extras.dev_framework.calls#
This module serves primarily as a reference and auxiliary resource for developers.
Although any command can be constructed directly within a test without relying on the pre-generated call definitions, the provided command lists (divided into sudo and non-sudo categories), together with the pallet reference, significantly streamline the creation of accurate, maintainable, and well-structured end-to-end tests.
In practice, these definitions act as convenient blueprints for composing extrinsic calls and understanding the structure of available Subtensor operations.
Submodules#
Attributes#
Functions#
|
Fetch the list of pallets and their call and save them to the corresponding modules. |
Package Contents#
- bittensor.extras.dev_framework.calls.HEADER = Multiline-String#
Show Value
"""""" This file is auto-generated. Do not edit manually. For developers: - Use the function `recreate_calls_subpackage()` to regenerate this file. - The command lists are built dynamically from the current Subtensor metadata (`Subtensor.substrate.metadata`). - Each command is represented as a `namedtuple` with fields: * System arguments: wallet, pallet (and `sudo` for sudo calls). * Additional arguments: taken from the extrinsic definition (with type hints for reference). - These namedtuples are intended as convenient templates for building commands in tests and end-to-end scenarios. Note: Any manual changes will be overwritten the next time the generator is run. """
- bittensor.extras.dev_framework.calls.IMPORT_TEXT = Multiline-String#
Show Value
""" """ from collections import namedtuple """
- bittensor.extras.dev_framework.calls.recreate_calls_subpackage(network='local')#
Fetch the list of pallets and their call and save them to the corresponding modules.