core.testnet¶
-
eosfactory.core.testnet.
JUNGLE
= <eosfactory.core.testnet.Testnet object>¶ Testnet http;//145.239.133.201;8888
-
eosfactory.core.testnet.
KYLIN
= <eosfactory.core.testnet.Testnet object>¶ Testnet http;//145.239.133.201;9999
-
class
eosfactory.core.testnet.
Testnet
(account_name, owner_key, active_key, url=None, name=None, reset=False)[source]¶ Bases:
object
Testing nodeos node.
Parameters: - account_name (str) – If set, the name of the account, otherwise the node is considered local, and its name is eosio.
- owner_key (str) – If set, the public owner key of the account.
- active_key (str) – If set, the public active key of the account.
- url (str) – If set, the URL of a remote nodeos, otherwise a localhost URL.
- name (str) – The name of the testnet. If not set, the name is synthesized from the argument url.
- reset (bool) – If set and if local node, reset the node.
Variables: - account_name (str) – The name of the account.
- owner_key (str) – The public owner key of the account.
- active_key (str) – The public active key of the account.
- url (str) – The URL of the nodeos.
- name (str) – The name of the testnet
-
clear_cache
()[source]¶ Remove all the saved interaction with the testnet.
Remove wallets ascribed to the testnet, its account map and password map.
-
eosfactory.core.testnet.
add_testnet_to_mapping
(testnet, name=None)[source]¶ Save the given
Testnet
object.Parameters: testnet (Testnet) – The object to be saved.
-
eosfactory.core.testnet.
add_to_mapping
(account_name, owner_key, active_key, url, name=None)[source]¶ Save a
Testnet
object.Parameters: - account_name (str) – If set, the account name, otherwise the node is considered local, and the name is eosio.
- owner_key (str) – If set, the public owner key of the account.
- active_key (str) – If set, the public active key of the account.
- url (str) – If set, the URL of a remote nodeos, otherwise a localhost URL.
- name (str) – If set, the name of the testnet.
-
eosfactory.core.testnet.
get_testnet
(name=None, testnet=None, reset=False)[source]¶ Return a testnet.
Parameters: - name (str) – If set, the testnet name, otherwise the local testnet is returned.
- testnet (tuple) – The tuple (<url> <name> <owner key> <active key>)
representing a
Testnet
object, returned if the name argument is not set. - reset (bool) – If both the name and testnet arguments are not set, determine whether the local node is to be reset.
Returns: Testnet
– a testnet
-
eosfactory.core.testnet.
remove_from_mapping
(name)[source]¶ Remove from the record a testnet of the given name.
The name of a testnet is set with the argument name argument of the function
add_to_mapping()
. If the argument is not set, the name is synthesized from the argument url.Parameters: name (str) – The name of the testnet to be removed.