Documentation ¶
Index ¶
- Constants
- Variables
- func FillGenesisState(st *State, 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) Close()
- func (app *AMOApp) Commit() abci.ResponseCommit
- func (app *AMOApp) DeliverTx(req abci.RequestDeliverTx) abci.ResponseDeliverTx
- 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) MigrateToX()
- func (app *AMOApp) Query(reqQuery abci.RequestQuery) (resQuery abci.ResponseQuery)
- type AMOProtocol
- type AMOProtocolV4
- type AMOProtocolV5
- type AMOProtocolV6
- type GenAccBalance
- type GenAccStake
- type GenAmoAppState
- type State
Constants ¶
View Source
const (
AMOAppVersion = "v1.9.0"
)
View Source
const Migration string = "ProtocolMigration"
Variables ¶
View Source
var AMOProtocolCompatMap = map[uint64]string{ uint64(0x3): "v1.6.x", uint64(0x4): "v1.7.x, v1.8.x, v1.9.x", uint64(0x5): "v1.8.x, v1.9.x", uint64(0x6): "v1.9.x", }
protocol versions and app versions supporting them
View Source
var AMOProtocolVersions = map[uint64]AMOProtocol{ uint64(0x4): &AMOProtocolV4{}, uint64(0x5): &AMOProtocolV5{}, uint64(0x6): &AMOProtocolV6{}, }
protocol versions supported by this app,
View Source
var ( // TODO: remove these variables at protocol v5 release // configs from 'cmd/amod' DataDirPath string = "" )
Functions ¶
func FillGenesisState ¶
func FillGenesisState(st *State, 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 - check availability of binding tx to block - check replay attack of txs which were processed before
func (*AMOApp) Commit ¶
func (app *AMOApp) Commit() abci.ResponseCommit
func (*AMOApp) DeliverTx ¶
func (app *AMOApp) DeliverTx(req abci.RequestDeliverTx) abci.ResponseDeliverTx
func (*AMOApp) EndBlock ¶
func (app *AMOApp) EndBlock(req abci.RequestEndBlock) (res abci.ResponseEndBlock)
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) MigrateToX ¶ added in v1.5.1
func (app *AMOApp) MigrateToX()
func (*AMOApp) Query ¶
func (app *AMOApp) Query(reqQuery abci.RequestQuery) (resQuery abci.ResponseQuery)
TODO: return proof also
type AMOProtocol ¶ added in v1.8.0
type AMOProtocolV4 ¶ added in v1.8.0
type AMOProtocolV4 struct {
// contains filtered or unexported fields
}
func (*AMOProtocolV4) ParseTx ¶ added in v1.8.0
func (proto *AMOProtocolV4) ParseTx(txBytes []byte) (tx.Tx, error)
func (*AMOProtocolV4) Version ¶ added in v1.8.0
func (proto *AMOProtocolV4) Version() uint64
type AMOProtocolV5 ¶ added in v1.8.0
type AMOProtocolV5 struct {
AMOProtocolV4
}
func (*AMOProtocolV5) ParseTx ¶ added in v1.8.0
func (proto *AMOProtocolV5) ParseTx(txBytes []byte) (tx.Tx, error)
func (*AMOProtocolV5) Version ¶ added in v1.8.0
func (proto *AMOProtocolV5) Version() uint64
type AMOProtocolV6 ¶ added in v1.9.0
type AMOProtocolV6 struct {
AMOProtocolV5
}
func (*AMOProtocolV6) ParseTx ¶ added in v1.9.0
func (proto *AMOProtocolV6) ParseTx(txBytes []byte) (tx.Tx, error)
func (*AMOProtocolV6) Version ¶ added in v1.9.0
func (proto *AMOProtocolV6) Version() uint64
type GenAccBalance ¶
type GenAccStake ¶
type GenAmoAppState ¶
type GenAmoAppState struct { State State `json:"state"` Config types.AMOAppConfig `json:"-"` Balances []GenAccBalance `json:"balances"` Stakes []GenAccStake `json:"stakes"` }
func ParseGenesisStateBytes ¶
func ParseGenesisStateBytes(data []byte) (*GenAmoAppState, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.