Documentation ¶
Index ¶
- Constants
- type Basecoin
- func (app *Basecoin) BeginBlock(req abci.RequestBeginBlock)
- func (app *Basecoin) CheckTx(txBytes []byte) abci.Result
- func (app *Basecoin) Commit() (res abci.Result)
- func (app *Basecoin) DeliverTx(txBytes []byte) abci.Result
- func (app *Basecoin) EndBlock(height uint64) (res abci.ResponseEndBlock)
- func (app *Basecoin) GetChainID() string
- func (app *Basecoin) GetState() sm.SimpleDB
- func (app *Basecoin) Info(req abci.RequestInfo) abci.ResponseInfo
- func (app *Basecoin) InitChain(req abci.RequestInitChain)
- func (app *Basecoin) InitState(key string, value string) string
- func (app *Basecoin) LoadGenesis(path string) error
- func (app *Basecoin) Query(reqQuery abci.RequestQuery) (resQuery abci.ResponseQuery)
- func (app *Basecoin) SetOption(key string, value string) string
- type FullGenesisDoc
- type GenesisDoc
- type Store
- type Ticker
Constants ¶
const ( ModuleNameBase = "base" ChainKey = "chain_id" )
nolint
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Basecoin ¶
type Basecoin struct {
// contains filtered or unexported fields
}
Basecoin - The ABCI application
func NewBasecoin ¶
NewBasecoin - create a new instance of the basecoin application
func NewBasecoinTick ¶ added in v0.7.0
NewBasecoinTick - create a new instance of the basecoin application with tick functionality
func (*Basecoin) BeginBlock ¶
func (app *Basecoin) BeginBlock(req abci.RequestBeginBlock)
BeginBlock - ABCI
func (*Basecoin) EndBlock ¶
func (app *Basecoin) EndBlock(height uint64) (res abci.ResponseEndBlock)
EndBlock - ABCI Returns a list of all validator changes made in this block
func (*Basecoin) GetChainID ¶ added in v0.7.0
GetChainID returns the currently stored chain
func (*Basecoin) Info ¶
func (app *Basecoin) Info(req abci.RequestInfo) abci.ResponseInfo
Info - ABCI
func (*Basecoin) InitChain ¶
func (app *Basecoin) InitChain(req abci.RequestInitChain)
InitChain - ABCI
func (*Basecoin) InitState ¶ added in v0.7.0
InitState - used to setup state (was SetOption) to be used by InitChain later
func (*Basecoin) LoadGenesis ¶
LoadGenesis - Load the genesis file into memory
func (*Basecoin) Query ¶
func (app *Basecoin) Query(reqQuery abci.RequestQuery) (resQuery abci.ResponseQuery)
Query - ABCI
type FullGenesisDoc ¶
type FullGenesisDoc struct { ChainID string `json:"chain_id"` AppOptions *GenesisDoc `json:"app_options"` }
FullGenesisDoc - includes tendermint (in the json, we ignore here)
type GenesisDoc ¶
type GenesisDoc struct { Accounts []json.RawMessage `json:"accounts"` PluginOptions []json.RawMessage `json:"plugin_options"` // contains filtered or unexported fields }
GenesisDoc - All genesis values
type Store ¶ added in v0.7.0
Store contains the merkle tree, and all info to handle abci requests
func MockStore ¶ added in v0.7.0
func MockStore() *Store
MockStore returns an in-memory store only intended for testing
func NewStore ¶ added in v0.7.0
NewStore initializes an in-memory iavl.VersionedTree, or attempts to load a persistant tree from disk
func (*Store) Info ¶ added in v0.7.0
func (s *Store) Info() abci.ResponseInfo
Info implements abci.Application. It returns the height, hash and size (in the data). The height is the block that holds the transactions, not the apphash itself.
func (*Store) Query ¶ added in v0.7.0
func (s *Store) Query(reqQuery abci.RequestQuery) (resQuery abci.ResponseQuery)
Query implements abci.Application