Solidbyte Session Store¶
Very simple module we can use to store session-level data. This saves certain things from having to be passed through dozens of functions or objects.
This is not fully implemented project wide yet. Currently experimental.
-
class
solidbyte.common.store.
Keys
[source]¶ Enum defining storage keys
-
DECRYPT_PASSPHRASE
= 'decrypt'¶ The account decrypt passphrase that should be session-wide.
-
KEYSTORE_DIR
= 'keystore'¶ The directory with the Ethereum secret store files
-
NETWORK_NAME
= 'network_name'¶ The name of the network being used as defined in networks.yml
-
PROJECT_DIR
= 'project_dir'¶ The project directory. Probably pwd.
-
-
solidbyte.common.store.
defined
(key: solidbyte.common.store.Keys) → bool[source]¶ Check if the key is defined and in STORAGE
Parameters: key – ( Keys
) The key to look forReturns: ( bool
) If the key is defined in storage