governance

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 5 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"
)

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