Documentation
¶
Index ¶
- Constants
- type Store
- func (st *Store) Exists(key []byte) bool
- func (st *Store) Get(key []byte) ([]byte, error)
- func (st *Store) GetBTCChainDriverOption() (*bitcoin.ChainDriverOption, error)
- func (st *Store) GetCurrencies() (balance.Currencies, error)
- func (st *Store) GetETHChainDriverOption() (*ethchain.ChainDriverOption, error)
- func (st *Store) GetEpoch() (int64, error)
- func (st *Store) GetFeeOption() (*fees.FeeOption, error)
- func (st *Store) GetONSOptions() (*ons.Options, error)
- func (st *Store) InitialChain() bool
- func (st *Store) Initiated() bool
- func (st *Store) Set(key []byte, value []byte) error
- func (st *Store) SetBTCChainDriverOption(opt bitcoin.ChainDriverOption) error
- func (st *Store) SetCurrencies(currencies balance.Currencies) error
- func (st *Store) SetETHChainDriverOption(opt ethchain.ChainDriverOption) error
- func (st *Store) SetEpoch(epoch int64) error
- func (st *Store) SetFeeOption(feeOpt fees.FeeOption) error
- func (st *Store) SetONSOptions(onsOpt ons.Options) error
- func (st *Store) WithState(state *storage.State) *Store
Constants ¶
View Source
const ( ADMIN_INITIAL_KEY string = "initial" ADMIN_CURRENCY_KEY string = "currency" ADMIN_FEE_OPTION_KEY string = "feeopt" ADMIN_EPOCH_BLOCK_INTERVAL string = "epoch" ADMIN_ETH_CHAINDRIVER_OPTION string = "ethcdopt" ADMIN_BTC_CHAINDRIVER_OPTION string = "btccdopt" ADMIN_ONS_OPTION string = "onsopt" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) GetBTCChainDriverOption ¶ added in v0.14.0
func (st *Store) GetBTCChainDriverOption() (*bitcoin.ChainDriverOption, error)
func (*Store) GetCurrencies ¶
func (st *Store) GetCurrencies() (balance.Currencies, error)
func (*Store) GetETHChainDriverOption ¶ added in v0.13.0
func (st *Store) GetETHChainDriverOption() (*ethchain.ChainDriverOption, error)
func (*Store) GetONSOptions ¶ added in v0.14.0
func (*Store) InitialChain ¶
func (*Store) SetBTCChainDriverOption ¶ added in v0.14.0
func (st *Store) SetBTCChainDriverOption(opt bitcoin.ChainDriverOption) error
func (*Store) SetCurrencies ¶
func (st *Store) SetCurrencies(currencies balance.Currencies) error
func (*Store) SetETHChainDriverOption ¶ added in v0.13.0
func (st *Store) SetETHChainDriverOption(opt ethchain.ChainDriverOption) error
func (*Store) SetONSOptions ¶ added in v0.14.0
Click to show internal directories.
Click to hide internal directories.