Source code for bitshares.storage
# -*- coding: utf-8 -*-
from graphenestorage import (
InRamConfigurationStore,
InRamEncryptedKeyStore,
InRamPlainKeyStore,
SqliteConfigurationStore,
SqliteEncryptedKeyStore,
SQLiteFile,
SqlitePlainKeyStore,
)
url = "wss://api.bts.mobi"
SqliteConfigurationStore.setdefault("node", url)
SqliteConfigurationStore.setdefault("order-expiration", 356 * 24 * 60 * 60)
[docs]def get_default_config_store(*args, **kwargs):
if "appname" not in kwargs:
kwargs["appname"] = "bitshares"
return SqliteConfigurationStore(*args, **kwargs)
[docs]def get_default_key_store(config, *args, **kwargs):
if "appname" not in kwargs:
kwargs["appname"] = "bitshares"
return SqliteEncryptedKeyStore(config=config, **kwargs)