nectar.storage module

nectar.storage.generate_config_store(config: MutableMapping[str, Any], blockchain: str = 'hive', node: Any = None, offline: bool = False, **kwargs: Any) MutableMapping[str, Any]

Populate a configuration mapping with sensible defaults for Hive-related settings and return it.

This function mutates the provided mapping in-place by ensuring a set of default configuration keys exist and returns the same mapping. When blockchain is “hive” it fills the “node” entry with a current list of Hive nodes; for other values “node” is set to an empty list. Defaults include client and RPC placeholders, order expiration (7 days), canonical URL, default derivation path, and a Tor toggle.

Parameters:

config (MutableMapping): A dict-like configuration object to populate. It will be modified in place. blockchain (str): Chain identifier; “hive” populates Hive nodes, any other value leaves the node list empty.

Returns:

MutableMapping: The same config mapping after defaults have been set.

nectar.storage.get_default_config_store(*args, **kwargs) MutableMapping[str, Any]
nectar.storage.get_default_key_store(config: MutableMapping[str, Any], *args, **kwargs) SqliteEncryptedKeyStore