bittensor.extras.dev_framework.subnet#
Attributes#
Classes#
Class for managing test subnet operations. |
Module Contents#
- bittensor.extras.dev_framework.subnet.NETUID = 'SN_NETUID'#
- class bittensor.extras.dev_framework.subnet.TestSubnet(subtensor, period=None, raise_error=False, wait_for_inclusion=True, wait_for_finalization=True)#
Class for managing test subnet operations.
- Parameters:
- async async_execute_one(step)#
Executes one step asynchronously.
- Parameters:
step (Union[bittensor.extras.dev_framework.utils.STEPS, tuple])
- Return type:
- async async_execute_steps(steps)#
Executes a multiple steps asynchronously.
- async async_set_hyperparameter(sudo_or_owner_wallet, call_function, call_module, call_params, sudo_call=False, period=None, raise_error=False, wait_for_inclusion=True, wait_for_finalization=True)#
Set hyperparameter for the chain or subnet.
- async async_wait_next_epoch(netuid=None)#
Async wait until the next epoch first block is reached.
- Parameters:
netuid (Optional[int])
- property calls: list[CALL_RECORD]#
- Return type:
- execute_one(step)#
Executes one step synchronously.
- Parameters:
step (Union[bittensor.extras.dev_framework.utils.STEPS, tuple])
- Return type:
- execute_steps(steps)#
Executes a multiple steps synchronously.
- property owner: bittensor_wallet.Wallet#
- Return type:
bittensor_wallet.Wallet
- period = None#
- raise_error = False#
- s: bittensor.extras.SubtensorApi#
- set_hyperparameter(sudo_or_owner_wallet, call_function, call_module, call_params, sudo_call=False, period=None, raise_error=False, wait_for_inclusion=True, wait_for_finalization=True)#
Set hyperparameter for the chain or subnet.
- wait_for_finalization = True#
- wait_for_inclusion = True#