Versions in this module Expand all Collapse all v0 v0.1.2 Jan 9, 2020 v0.1.1 Sep 3, 2019 Changes in this version + const ExchangeDepositAddress + const ExchangeFeeBucket + const ExchangeInfo + const ExchangeMinDepositBucket + const ExchangeNotifications + const ExchangeStatus + const ExchangeTokenPairs + const PendingTokenRequest + const TokenBucketByAddress + const TokenBucketByID + type BoltSettingStorage struct + func NewBoltSettingStorage(dbPath string) (*BoltSettingStorage, error) + func (boltSettingStorage *BoltSettingStorage) AddTokenByAddress(t common.Token, timestamp uint64) error + func (boltSettingStorage *BoltSettingStorage) AddTokenByID(t common.Token, timestamp uint64) error + func (boltSettingStorage *BoltSettingStorage) GetActiveTokenByAddress(addr ethereum.Address) (common.Token, error) + func (boltSettingStorage *BoltSettingStorage) GetActiveTokenByID(id string) (common.Token, error) + func (boltSettingStorage *BoltSettingStorage) GetActiveTokens() (result []common.Token, err error) + func (boltSettingStorage *BoltSettingStorage) GetAllTokens() (result []common.Token, err error) + func (boltSettingStorage *BoltSettingStorage) GetDepositAddresses(ex settings.ExchangeName) (common.ExchangeAddresses, error) + func (boltSettingStorage *BoltSettingStorage) GetExchangeInfo(ex settings.ExchangeName) (common.ExchangeInfo, error) + func (boltSettingStorage *BoltSettingStorage) GetExchangeNotifications() (common.ExchangeNotifications, error) + func (boltSettingStorage *BoltSettingStorage) GetExchangeStatus() (common.ExchangesStatus, error) + func (boltSettingStorage *BoltSettingStorage) GetExchangeVersion() (uint64, error) + func (boltSettingStorage *BoltSettingStorage) GetExternalTokenByAddress(addr ethereum.Address) (common.Token, error) + func (boltSettingStorage *BoltSettingStorage) GetExternalTokenByID(id string) (common.Token, error) + func (boltSettingStorage *BoltSettingStorage) GetExternalTokens() (result []common.Token, err error) + func (boltSettingStorage *BoltSettingStorage) GetFee(ex settings.ExchangeName) (common.ExchangeFees, error) + func (boltSettingStorage *BoltSettingStorage) GetInternalTokenByAddress(addr ethereum.Address) (common.Token, error) + func (boltSettingStorage *BoltSettingStorage) GetInternalTokenByID(id string) (common.Token, error) + func (boltSettingStorage *BoltSettingStorage) GetInternalTokens() (result []common.Token, err error) + func (boltSettingStorage *BoltSettingStorage) GetMinDeposit(ex settings.ExchangeName) (common.ExchangesMinDeposit, error) + func (boltSettingStorage *BoltSettingStorage) GetPendingTokenUpdates() (map[string]common.TokenUpdate, error) + func (boltSettingStorage *BoltSettingStorage) GetTokenByAddress(addr ethereum.Address) (common.Token, error) + func (boltSettingStorage *BoltSettingStorage) GetTokenByID(id string) (common.Token, error) + func (boltSettingStorage *BoltSettingStorage) GetTokenPairs(ex settings.ExchangeName) ([]common.TokenPair, error) + func (boltSettingStorage *BoltSettingStorage) GetTokenVersion() (uint64, error) + func (boltSettingStorage *BoltSettingStorage) RemovePendingTokenUpdates() error + func (boltSettingStorage *BoltSettingStorage) StoreDepositAddress(ex settings.ExchangeName, addrs common.ExchangeAddresses, timestamp uint64) error + func (boltSettingStorage *BoltSettingStorage) StoreExchangeInfo(ex settings.ExchangeName, exInfo common.ExchangeInfo, timestamp uint64) error + func (boltSettingStorage *BoltSettingStorage) StoreExchangeNotification(exchange, action, token string, fromTime, toTime uint64, isWarning bool, ...) error + func (boltSettingStorage *BoltSettingStorage) StoreExchangeStatus(data common.ExchangesStatus) error + func (boltSettingStorage *BoltSettingStorage) StoreFee(ex settings.ExchangeName, data common.ExchangeFees, timestamp uint64) error + func (boltSettingStorage *BoltSettingStorage) StoreMinDeposit(ex settings.ExchangeName, data common.ExchangesMinDeposit, timestamp uint64) error + func (boltSettingStorage *BoltSettingStorage) StorePendingTokenUpdates(trs map[string]common.TokenUpdate) error + func (boltSettingStorage *BoltSettingStorage) StoreTokenPairs(ex settings.ExchangeName, data []common.TokenPair, timestamp uint64) error + func (boltSettingStorage *BoltSettingStorage) UpdateToken(t common.Token, timestamp uint64) error + func (boltSettingStorage *BoltSettingStorage) UpdateTokenWithExchangeSetting(tokens []common.Token, ...) error + type FilterFunction func(common.Token) bool