governance

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore(prefix string, state *storage.State) *Store

func (*Store) Exists

func (st *Store) Exists(key []byte) bool

func (*Store) Get

func (st *Store) Get(key []byte) ([]byte, 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) GetEpoch added in v0.13.0

func (st *Store) GetEpoch() (int64, error)

func (*Store) GetFeeOption

func (st *Store) GetFeeOption() (*fees.FeeOption, error)

func (*Store) InitialChain

func (st *Store) InitialChain() bool

func (*Store) Initiated

func (st *Store) Initiated() bool

func (*Store) Set

func (st *Store) Set(key []byte, value []byte) 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) SetEpoch added in v0.13.0

func (st *Store) SetEpoch(epoch int64) error

func (*Store) SetFeeOption

func (st *Store) SetFeeOption(feeOpt fees.FeeOption) error

func (*Store) WithState

func (st *Store) WithState(state *storage.State) *Store

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL