Documentation ¶
Index ¶
- Constants
- func FillGenesisState(s *store.Store, genState *GenAmoAppState) error
- type AMOApp
- func (app *AMOApp) BeginBlock(req abci.RequestBeginBlock) (res abci.ResponseBeginBlock)
- func (app *AMOApp) CheckTx(req abci.RequestCheckTx) abci.ResponseCheckTx
- func (app *AMOApp) Commit() abci.ResponseCommit
- func (app *AMOApp) DeliverTx(req abci.RequestDeliverTx) abci.ResponseDeliverTx
- func (app *AMOApp) DistributeIncentive() error
- func (app *AMOApp) EndBlock(req abci.RequestEndBlock) (res abci.ResponseEndBlock)
- func (app *AMOApp) Info(req abci.RequestInfo) (resInfo abci.ResponseInfo)
- func (app *AMOApp) InitChain(req abci.RequestInitChain) abci.ResponseInitChain
- func (app *AMOApp) Query(reqQuery abci.RequestQuery) (resQuery abci.ResponseQuery)
- type AMOAppConfig
- type GenAccBalance
- type GenAccStake
- type GenAmoAppState
- type State
Constants ¶
View Source
const ( // versions AMOAppVersion = "v1.1.0-dev" AMOProtocolVersion = 0x2 )
Variables ¶
This section is empty.
Functions ¶
func FillGenesisState ¶
func FillGenesisState(s *store.Store, genState *GenAmoAppState) error
Types ¶
type AMOApp ¶
type AMOApp struct { // app scaffold abci.BaseApplication // contains filtered or unexported fields }
func (*AMOApp) BeginBlock ¶
func (app *AMOApp) BeginBlock(req abci.RequestBeginBlock) (res abci.ResponseBeginBlock)
func (*AMOApp) CheckTx ¶
func (app *AMOApp) CheckTx(req abci.RequestCheckTx) abci.ResponseCheckTx
Invariant checks. Do not consider app's store. - check signature - check parameter format
func (*AMOApp) Commit ¶
func (app *AMOApp) Commit() abci.ResponseCommit
func (*AMOApp) DeliverTx ¶
func (app *AMOApp) DeliverTx(req abci.RequestDeliverTx) abci.ResponseDeliverTx
func (*AMOApp) DistributeIncentive ¶ added in v1.2.0
func (*AMOApp) EndBlock ¶
func (app *AMOApp) EndBlock(req abci.RequestEndBlock) (res abci.ResponseEndBlock)
TODO: use req.Height
func (*AMOApp) Info ¶
func (app *AMOApp) Info(req abci.RequestInfo) (resInfo abci.ResponseInfo)
func (*AMOApp) InitChain ¶
func (app *AMOApp) InitChain(req abci.RequestInitChain) abci.ResponseInitChain
func (*AMOApp) Query ¶
func (app *AMOApp) Query(reqQuery abci.RequestQuery) (resQuery abci.ResponseQuery)
TODO: return proof also
type AMOAppConfig ¶ added in v1.2.0
type GenAccBalance ¶
type GenAccStake ¶
type GenAmoAppState ¶
type GenAmoAppState struct { Config AMOAppConfig `json:"config"` Balances []GenAccBalance `json:"balances"` Stakes []GenAccStake `json:"stakes"` }
func ParseGenesisStateBytes ¶
func ParseGenesisStateBytes(data []byte) (*GenAmoAppState, error)
Click to show internal directories.
Click to hide internal directories.