bittensor.mock.wallet_mock#
Classes#
Mocked Version of the bittensor wallet class, meant to be used for testing |
Functions#
|
|
|
Returns a mock keypair from a uid and optional test_name. |
|
|
|
Module Contents#
- class bittensor.mock.wallet_mock.MockWallet(**kwargs)[source]#
Bases:
bittensor.wallet
Mocked Version of the bittensor wallet class, meant to be used for testing
Init bittensor wallet object containing a hot and coldkey. :param _mock: If true creates a mock wallet with random keys. :type _mock: required=True, default=False
- _is_mock = True#
- _mocked_coldkey_keyfile = None#
- _mocked_hotkey_keyfile = None#
- property hotkey_file: bittensor.keyfile#
Property that returns the hotkey file.
- Returns:
The hotkey file.
- Return type:
bittensor.keyfile
- property coldkey_file: bittensor.keyfile#
Property that returns the coldkey file.
- Returns:
The coldkey file.
- Return type:
bittensor.keyfile
- property coldkeypub_file: bittensor.keyfile#
Property that returns the coldkeypub file.
- Returns:
The coldkeypub file.
- Return type:
bittensor.keyfile
- bittensor.mock.wallet_mock.get_mock_wallet(coldkey=None, hotkey=None)[source]#
- Parameters:
coldkey (bittensor.Keypair)
hotkey (bittensor.Keypair)