Documentation ¶
Index ¶
- Constants
- type Basecoin
- func (app *Basecoin) BeginBlock(hash []byte, header *abci.Header)
- func (app *Basecoin) CheckTx(txBytes []byte) (res abci.Result)
- func (app *Basecoin) Commit() (res abci.Result)
- func (app *Basecoin) DeliverTx(txBytes []byte) (res abci.Result)
- func (app *Basecoin) EndBlock(height uint64) (res abci.ResponseEndBlock)
- func (app *Basecoin) GetState() *sm.State
- func (app *Basecoin) Info() abci.ResponseInfo
- func (app *Basecoin) InitChain(validators []*abci.Validator)
- func (app *Basecoin) LoadGenesis(path string) error
- func (app *Basecoin) Query(reqQuery abci.RequestQuery) (resQuery abci.ResponseQuery)
- func (app *Basecoin) RegisterPlugin(plugin types.Plugin)
- func (app *Basecoin) SetLogger(l log.Logger)
- func (app *Basecoin) SetOption(key string, value string) string
- type FullGenesisDoc
- type GenesisAccount
- type GenesisDoc
Constants ¶
View Source
const (
PluginNameBase = "base"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Basecoin ¶
type Basecoin struct {
// contains filtered or unexported fields
}
func NewBasecoin ¶
func (*Basecoin) BeginBlock ¶
ABCI::BeginBlock
func (*Basecoin) EndBlock ¶
func (app *Basecoin) EndBlock(height uint64) (res abci.ResponseEndBlock)
ABCI::EndBlock
func (*Basecoin) LoadGenesis ¶
func (*Basecoin) Query ¶
func (app *Basecoin) Query(reqQuery abci.RequestQuery) (resQuery abci.ResponseQuery)
ABCI::Query
func (*Basecoin) RegisterPlugin ¶
type FullGenesisDoc ¶
type FullGenesisDoc struct { ChainID string `json:"chain_id"` AppOptions *GenesisDoc `json:"app_options"` }
includes tendermint (in the json, we ignore here)
type GenesisAccount ¶
type GenesisAccount struct { Address data.Bytes `json:"address"` // this from types.Account (don't know how to embed this properly) PubKey crypto.PubKey `json:"pub_key"` // May be nil, if not known. Sequence int `json:"sequence"` Balance types.Coins `json:"coins"` }
func (GenesisAccount) GetAddr ¶
func (g GenesisAccount) GetAddr() ([]byte, error)
func (GenesisAccount) ToAccount ¶
func (g GenesisAccount) ToAccount() *types.Account
type GenesisDoc ¶
type GenesisDoc struct { Accounts []GenesisAccount `json:"accounts"` PluginOptions []json.RawMessage `json:"plugin_options"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.