Documentation ¶
Index ¶
- Variables
- func IsBlockParamsReprEmpty(goor BlockParams) (empty bool)
- func IsConsensusParamsReprEmpty(goor ConsensusParams) (empty bool)
- func IsEventStringReprEmpty(goor EventString) (empty bool)
- func IsLastCommitInfoReprEmpty(goor LastCommitInfo) (empty bool)
- func IsMockHeaderReprEmpty(goor MockHeader) (empty bool)
- func IsRequestBaseReprEmpty(goor RequestBase) (empty bool)
- func IsRequestBeginBlockReprEmpty(goor RequestBeginBlock) (empty bool)
- func IsRequestCheckTxReprEmpty(goor RequestCheckTx) (empty bool)
- func IsRequestCommitReprEmpty(goor RequestCommit) (empty bool)
- func IsRequestDeliverTxReprEmpty(goor RequestDeliverTx) (empty bool)
- func IsRequestEchoReprEmpty(goor RequestEcho) (empty bool)
- func IsRequestEndBlockReprEmpty(goor RequestEndBlock) (empty bool)
- func IsRequestFlushReprEmpty(goor RequestFlush) (empty bool)
- func IsRequestInfoReprEmpty(goor RequestInfo) (empty bool)
- func IsRequestInitChainReprEmpty(goor RequestInitChain) (empty bool)
- func IsRequestQueryReprEmpty(goor RequestQuery) (empty bool)
- func IsRequestSetOptionReprEmpty(goor RequestSetOption) (empty bool)
- func IsResponseBaseReprEmpty(goor ResponseBase) (empty bool)
- func IsResponseBeginBlockReprEmpty(goor ResponseBeginBlock) (empty bool)
- func IsResponseCheckTxReprEmpty(goor ResponseCheckTx) (empty bool)
- func IsResponseCommitReprEmpty(goor ResponseCommit) (empty bool)
- func IsResponseDeliverTxReprEmpty(goor ResponseDeliverTx) (empty bool)
- func IsResponseEchoReprEmpty(goor ResponseEcho) (empty bool)
- func IsResponseEndBlockReprEmpty(goor ResponseEndBlock) (empty bool)
- func IsResponseExceptionReprEmpty(goor ResponseException) (empty bool)
- func IsResponseFlushReprEmpty(goor ResponseFlush) (empty bool)
- func IsResponseInfoReprEmpty(goor ResponseInfo) (empty bool)
- func IsResponseInitChainReprEmpty(goor ResponseInitChain) (empty bool)
- func IsResponseQueryReprEmpty(goor ResponseQuery) (empty bool)
- func IsResponseSetOptionReprEmpty(goor ResponseSetOption) (empty bool)
- func IsStringErrorReprEmpty(goor StringError) (empty bool)
- func IsValidatorParamsReprEmpty(goor ValidatorParams) (empty bool)
- func IsValidatorUpdateReprEmpty(goor ValidatorUpdate) (empty bool)
- func IsVoteInfoReprEmpty(goor VoteInfo) (empty bool)
- type Application
- type BaseApplication
- func (BaseApplication) BeginBlock(req RequestBeginBlock) ResponseBeginBlock
- func (BaseApplication) CheckTx(req RequestCheckTx) ResponseCheckTx
- func (BaseApplication) Close() error
- func (BaseApplication) Commit() ResponseCommit
- func (BaseApplication) DeliverTx(req RequestDeliverTx) ResponseDeliverTx
- func (BaseApplication) EndBlock(req RequestEndBlock) ResponseEndBlock
- func (BaseApplication) Info(req RequestInfo) ResponseInfo
- func (BaseApplication) InitChain(req RequestInitChain) ResponseInitChain
- func (BaseApplication) Query(req RequestQuery) ResponseQuery
- func (BaseApplication) SetOption(req RequestSetOption) ResponseSetOption
- type BlockParams
- type CheckTxType
- type ConsensusParams
- func (goo ConsensusParams) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ConsensusParams) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ConsensusParams) GetTypeURL() (typeURL string)
- func (params ConsensusParams) Hash() []byte
- func (goo ConsensusParams) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- func (params ConsensusParams) Update(params2 ConsensusParams) ConsensusParams
- type Error
- type Event
- type EventString
- func (_ EventString) AssertABCIEvent()
- func (goo EventString) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (err EventString) Event() string
- func (goo *EventString) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ EventString) GetTypeURL() (typeURL string)
- func (goo EventString) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type Header
- type LastCommitInfo
- func (goo LastCommitInfo) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *LastCommitInfo) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ LastCommitInfo) GetTypeURL() (typeURL string)
- func (goo LastCommitInfo) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type MockHeader
- func (_ MockHeader) AssertABCIHeader()
- func (goo MockHeader) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *MockHeader) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ MockHeader) GetTypeURL() (typeURL string)
- func (goo MockHeader) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type Request
- type RequestBase
- func (_ RequestBase) AssertRequest()
- func (goo RequestBase) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *RequestBase) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ RequestBase) GetTypeURL() (typeURL string)
- func (goo RequestBase) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type RequestBeginBlock
- func (goo RequestBeginBlock) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *RequestBeginBlock) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ RequestBeginBlock) GetTypeURL() (typeURL string)
- func (goo RequestBeginBlock) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type RequestCheckTx
- func (goo RequestCheckTx) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *RequestCheckTx) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ RequestCheckTx) GetTypeURL() (typeURL string)
- func (goo RequestCheckTx) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type RequestCommit
- func (goo RequestCommit) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *RequestCommit) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ RequestCommit) GetTypeURL() (typeURL string)
- func (goo RequestCommit) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type RequestDeliverTx
- func (goo RequestDeliverTx) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *RequestDeliverTx) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ RequestDeliverTx) GetTypeURL() (typeURL string)
- func (goo RequestDeliverTx) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type RequestEcho
- type RequestEndBlock
- func (goo RequestEndBlock) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *RequestEndBlock) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ RequestEndBlock) GetTypeURL() (typeURL string)
- func (goo RequestEndBlock) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type RequestFlush
- func (goo RequestFlush) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *RequestFlush) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ RequestFlush) GetTypeURL() (typeURL string)
- func (goo RequestFlush) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type RequestInfo
- type RequestInitChain
- func (goo RequestInitChain) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *RequestInitChain) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ RequestInitChain) GetTypeURL() (typeURL string)
- func (goo RequestInitChain) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type RequestQuery
- func (goo RequestQuery) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *RequestQuery) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ RequestQuery) GetTypeURL() (typeURL string)
- func (goo RequestQuery) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type RequestSetOption
- func (goo RequestSetOption) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *RequestSetOption) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ RequestSetOption) GetTypeURL() (typeURL string)
- func (goo RequestSetOption) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type Response
- type ResponseBase
- func (_ ResponseBase) AssertResponse()
- func (goo ResponseBase) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ResponseBase) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ResponseBase) GetTypeURL() (typeURL string)
- func (r ResponseBase) IsErr() bool
- func (r ResponseBase) IsOK() bool
- func (goo ResponseBase) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type ResponseBeginBlock
- func (goo ResponseBeginBlock) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ResponseBeginBlock) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ResponseBeginBlock) GetTypeURL() (typeURL string)
- func (goo ResponseBeginBlock) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type ResponseCheckTx
- func (goo ResponseCheckTx) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ResponseCheckTx) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ResponseCheckTx) GetTypeURL() (typeURL string)
- func (goo ResponseCheckTx) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type ResponseCommit
- func (goo ResponseCommit) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ResponseCommit) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ResponseCommit) GetTypeURL() (typeURL string)
- func (goo ResponseCommit) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type ResponseDeliverTx
- func (goo ResponseDeliverTx) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ResponseDeliverTx) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ResponseDeliverTx) GetTypeURL() (typeURL string)
- func (goo ResponseDeliverTx) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type ResponseEcho
- func (goo ResponseEcho) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ResponseEcho) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ResponseEcho) GetTypeURL() (typeURL string)
- func (goo ResponseEcho) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type ResponseEndBlock
- func (goo ResponseEndBlock) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ResponseEndBlock) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ResponseEndBlock) GetTypeURL() (typeURL string)
- func (goo ResponseEndBlock) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type ResponseException
- func (goo ResponseException) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ResponseException) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ResponseException) GetTypeURL() (typeURL string)
- func (goo ResponseException) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type ResponseFlush
- func (goo ResponseFlush) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ResponseFlush) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ResponseFlush) GetTypeURL() (typeURL string)
- func (goo ResponseFlush) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type ResponseInfo
- func (goo ResponseInfo) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ResponseInfo) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ResponseInfo) GetTypeURL() (typeURL string)
- func (goo ResponseInfo) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type ResponseInitChain
- func (goo ResponseInitChain) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ResponseInitChain) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ResponseInitChain) GetTypeURL() (typeURL string)
- func (goo ResponseInitChain) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type ResponseQuery
- func (goo ResponseQuery) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ResponseQuery) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ResponseQuery) GetTypeURL() (typeURL string)
- func (goo ResponseQuery) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type ResponseSetOption
- func (goo ResponseSetOption) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ResponseSetOption) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ResponseSetOption) GetTypeURL() (typeURL string)
- func (goo ResponseSetOption) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type StringError
- func (_ StringError) AssertABCIError()
- func (goo StringError) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (err StringError) Error() string
- func (goo *StringError) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ StringError) GetTypeURL() (typeURL string)
- func (goo StringError) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type ValidatorParams
- func (goo ValidatorParams) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ValidatorParams) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ValidatorParams) GetTypeURL() (typeURL string)
- func (params ValidatorParams) IsValidPubKeyTypeURL(pubKeyTypeURL string) bool
- func (goo ValidatorParams) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type ValidatorUpdate
- func (goo ValidatorUpdate) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ValidatorUpdate) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ValidatorUpdate) GetTypeURL() (typeURL string)
- func (goo ValidatorUpdate) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type ValidatorUpdates
- type VoteInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var Package = amino.RegisterPackage(amino.NewPackage( "github.com/tendermint/classic/abci/types", "abci", amino.GetCallersDirname(), ). WithGoPkgName("abci"). WithDependencies( merkle.Package, ). WithTypes( RequestBase{}, RequestEcho{}, RequestFlush{}, RequestInfo{}, RequestSetOption{}, RequestInitChain{}, RequestQuery{}, RequestBeginBlock{}, RequestCheckTx{}, RequestDeliverTx{}, RequestEndBlock{}, RequestCommit{}, ResponseBase{}, ResponseException{}, ResponseEcho{}, ResponseFlush{}, ResponseInfo{}, ResponseSetOption{}, ResponseInitChain{}, ResponseQuery{}, ResponseBeginBlock{}, ResponseCheckTx{}, ResponseDeliverTx{}, ResponseEndBlock{}, ResponseCommit{}, StringError(""), ConsensusParams{}, BlockParams{}, ValidatorParams{}, ValidatorUpdate{}, LastCommitInfo{}, VoteInfo{}, EventString(""), MockHeader{}, ))
Functions ¶
func IsBlockParamsReprEmpty ¶
func IsBlockParamsReprEmpty(goor BlockParams) (empty bool)
func IsConsensusParamsReprEmpty ¶
func IsConsensusParamsReprEmpty(goor ConsensusParams) (empty bool)
func IsEventStringReprEmpty ¶
func IsEventStringReprEmpty(goor EventString) (empty bool)
func IsLastCommitInfoReprEmpty ¶
func IsLastCommitInfoReprEmpty(goor LastCommitInfo) (empty bool)
func IsMockHeaderReprEmpty ¶
func IsMockHeaderReprEmpty(goor MockHeader) (empty bool)
func IsRequestBaseReprEmpty ¶
func IsRequestBaseReprEmpty(goor RequestBase) (empty bool)
func IsRequestBeginBlockReprEmpty ¶
func IsRequestBeginBlockReprEmpty(goor RequestBeginBlock) (empty bool)
func IsRequestCheckTxReprEmpty ¶
func IsRequestCheckTxReprEmpty(goor RequestCheckTx) (empty bool)
func IsRequestCommitReprEmpty ¶
func IsRequestCommitReprEmpty(goor RequestCommit) (empty bool)
func IsRequestDeliverTxReprEmpty ¶
func IsRequestDeliverTxReprEmpty(goor RequestDeliverTx) (empty bool)
func IsRequestEchoReprEmpty ¶
func IsRequestEchoReprEmpty(goor RequestEcho) (empty bool)
func IsRequestEndBlockReprEmpty ¶
func IsRequestEndBlockReprEmpty(goor RequestEndBlock) (empty bool)
func IsRequestFlushReprEmpty ¶
func IsRequestFlushReprEmpty(goor RequestFlush) (empty bool)
func IsRequestInfoReprEmpty ¶
func IsRequestInfoReprEmpty(goor RequestInfo) (empty bool)
func IsRequestInitChainReprEmpty ¶
func IsRequestInitChainReprEmpty(goor RequestInitChain) (empty bool)
func IsRequestQueryReprEmpty ¶
func IsRequestQueryReprEmpty(goor RequestQuery) (empty bool)
func IsRequestSetOptionReprEmpty ¶
func IsRequestSetOptionReprEmpty(goor RequestSetOption) (empty bool)
func IsResponseBaseReprEmpty ¶
func IsResponseBaseReprEmpty(goor ResponseBase) (empty bool)
func IsResponseBeginBlockReprEmpty ¶
func IsResponseBeginBlockReprEmpty(goor ResponseBeginBlock) (empty bool)
func IsResponseCheckTxReprEmpty ¶
func IsResponseCheckTxReprEmpty(goor ResponseCheckTx) (empty bool)
func IsResponseCommitReprEmpty ¶
func IsResponseCommitReprEmpty(goor ResponseCommit) (empty bool)
func IsResponseDeliverTxReprEmpty ¶
func IsResponseDeliverTxReprEmpty(goor ResponseDeliverTx) (empty bool)
func IsResponseEchoReprEmpty ¶
func IsResponseEchoReprEmpty(goor ResponseEcho) (empty bool)
func IsResponseEndBlockReprEmpty ¶
func IsResponseEndBlockReprEmpty(goor ResponseEndBlock) (empty bool)
func IsResponseExceptionReprEmpty ¶
func IsResponseExceptionReprEmpty(goor ResponseException) (empty bool)
func IsResponseFlushReprEmpty ¶
func IsResponseFlushReprEmpty(goor ResponseFlush) (empty bool)
func IsResponseInfoReprEmpty ¶
func IsResponseInfoReprEmpty(goor ResponseInfo) (empty bool)
func IsResponseInitChainReprEmpty ¶
func IsResponseInitChainReprEmpty(goor ResponseInitChain) (empty bool)
func IsResponseQueryReprEmpty ¶
func IsResponseQueryReprEmpty(goor ResponseQuery) (empty bool)
func IsResponseSetOptionReprEmpty ¶
func IsResponseSetOptionReprEmpty(goor ResponseSetOption) (empty bool)
func IsStringErrorReprEmpty ¶
func IsStringErrorReprEmpty(goor StringError) (empty bool)
func IsValidatorParamsReprEmpty ¶
func IsValidatorParamsReprEmpty(goor ValidatorParams) (empty bool)
func IsValidatorUpdateReprEmpty ¶
func IsValidatorUpdateReprEmpty(goor ValidatorUpdate) (empty bool)
func IsVoteInfoReprEmpty ¶
Types ¶
type Application ¶
type Application interface { // Info/Query Connection Info(RequestInfo) ResponseInfo // Return application info SetOption(RequestSetOption) ResponseSetOption // Set application option Query(RequestQuery) ResponseQuery // Query for state // Mempool Connection CheckTx(RequestCheckTx) ResponseCheckTx // Validate a tx for the mempool // Consensus Connection InitChain(RequestInitChain) ResponseInitChain // Initialize blockchain with validators and other info from TendermintCore BeginBlock(RequestBeginBlock) ResponseBeginBlock // Signals the beginning of a block DeliverTx(RequestDeliverTx) ResponseDeliverTx // Deliver a tx for full processing EndBlock(RequestEndBlock) ResponseEndBlock // Signals the end of a block, returns changes to the validator set Commit() ResponseCommit // Commit the state and return the application Merkle root hash // Cleanup Close() error }
Application is an interface that enables any finite, deterministic state machine to be driven by a blockchain-based replication engine via the ABCI. All methods take a RequestXxx argument and return a ResponseXxx argument, except CheckTx/DeliverTx, which take `tx []byte`, and `Commit`, which takes nothing.
type BaseApplication ¶
type BaseApplication struct { }
func NewBaseApplication ¶
func NewBaseApplication() *BaseApplication
func (BaseApplication) BeginBlock ¶
func (BaseApplication) BeginBlock(req RequestBeginBlock) ResponseBeginBlock
func (BaseApplication) CheckTx ¶
func (BaseApplication) CheckTx(req RequestCheckTx) ResponseCheckTx
func (BaseApplication) Close ¶
func (BaseApplication) Close() error
func (BaseApplication) Commit ¶
func (BaseApplication) Commit() ResponseCommit
func (BaseApplication) DeliverTx ¶
func (BaseApplication) DeliverTx(req RequestDeliverTx) ResponseDeliverTx
func (BaseApplication) EndBlock ¶
func (BaseApplication) EndBlock(req RequestEndBlock) ResponseEndBlock
func (BaseApplication) Info ¶
func (BaseApplication) Info(req RequestInfo) ResponseInfo
func (BaseApplication) InitChain ¶
func (BaseApplication) InitChain(req RequestInitChain) ResponseInitChain
func (BaseApplication) Query ¶
func (BaseApplication) Query(req RequestQuery) ResponseQuery
func (BaseApplication) SetOption ¶
func (BaseApplication) SetOption(req RequestSetOption) ResponseSetOption
type BlockParams ¶
type BlockParams struct { MaxTxBytes int64 // must be > 0 MaxDataBytes int64 // must be > 0 MaxBlockBytes int64 // must be > 0 MaxGas int64 // must be >= -1 TimeIotaMS int64 // must be > 0 }
func (BlockParams) EmptyPBMessage ¶
func (goo BlockParams) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*BlockParams) FromPBMessage ¶
func (BlockParams) GetTypeURL ¶
func (_ BlockParams) GetTypeURL() (typeURL string)
func (BlockParams) ToPBMessage ¶
type CheckTxType ¶
type CheckTxType int
const ( CheckTxTypeNew CheckTxType = 0 CheckTxTypeRecheck = iota )
type ConsensusParams ¶
type ConsensusParams struct { Block *BlockParams Validator *ValidatorParams }
Parameters that need to be negotiated between the app and consensus.
func (ConsensusParams) EmptyPBMessage ¶
func (goo ConsensusParams) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*ConsensusParams) FromPBMessage ¶
func (ConsensusParams) GetTypeURL ¶
func (_ ConsensusParams) GetTypeURL() (typeURL string)
func (ConsensusParams) Hash ¶
func (params ConsensusParams) Hash() []byte
func (ConsensusParams) ToPBMessage ¶
func (ConsensusParams) Update ¶
func (params ConsensusParams) Update(params2 ConsensusParams) ConsensusParams
type EventString ¶
type EventString string
func (EventString) AssertABCIEvent ¶
func (_ EventString) AssertABCIEvent()
func (EventString) EmptyPBMessage ¶
func (goo EventString) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (EventString) Event ¶
func (err EventString) Event() string
func (*EventString) FromPBMessage ¶
func (EventString) GetTypeURL ¶
func (_ EventString) GetTypeURL() (typeURL string)
func (EventString) ToPBMessage ¶
type LastCommitInfo ¶
func (LastCommitInfo) EmptyPBMessage ¶
func (goo LastCommitInfo) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*LastCommitInfo) FromPBMessage ¶
func (LastCommitInfo) GetTypeURL ¶
func (_ LastCommitInfo) GetTypeURL() (typeURL string)
func (LastCommitInfo) ToPBMessage ¶
type MockHeader ¶
type MockHeader struct { Version string `json:"version"` ChainID string `json:"chain_id"` Height int64 `json:"height"` Time time.Time `json:"time"` NumTxs int64 `json:"num_txs"` TotalTxs int64 `json:"total_txs"` }
Only used for tests.
func (MockHeader) AssertABCIHeader ¶
func (_ MockHeader) AssertABCIHeader()
func (MockHeader) EmptyPBMessage ¶
func (goo MockHeader) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*MockHeader) FromPBMessage ¶
func (MockHeader) GetTypeURL ¶
func (_ MockHeader) GetTypeURL() (typeURL string)
func (MockHeader) ToPBMessage ¶
type RequestBase ¶
type RequestBase struct { }
func (RequestBase) AssertRequest ¶
func (_ RequestBase) AssertRequest()
func (RequestBase) EmptyPBMessage ¶
func (goo RequestBase) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*RequestBase) FromPBMessage ¶
func (RequestBase) GetTypeURL ¶
func (_ RequestBase) GetTypeURL() (typeURL string)
func (RequestBase) ToPBMessage ¶
type RequestBeginBlock ¶
type RequestBeginBlock struct { RequestBase Hash []byte Header Header LastCommitInfo *LastCommitInfo }
func (RequestBeginBlock) EmptyPBMessage ¶
func (goo RequestBeginBlock) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*RequestBeginBlock) FromPBMessage ¶
func (RequestBeginBlock) GetTypeURL ¶
func (_ RequestBeginBlock) GetTypeURL() (typeURL string)
func (RequestBeginBlock) ToPBMessage ¶
type RequestCheckTx ¶
type RequestCheckTx struct { RequestBase Tx []byte Type CheckTxType }
func (RequestCheckTx) EmptyPBMessage ¶
func (goo RequestCheckTx) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*RequestCheckTx) FromPBMessage ¶
func (RequestCheckTx) GetTypeURL ¶
func (_ RequestCheckTx) GetTypeURL() (typeURL string)
func (RequestCheckTx) ToPBMessage ¶
type RequestCommit ¶
type RequestCommit struct {
RequestBase
}
func (RequestCommit) EmptyPBMessage ¶
func (goo RequestCommit) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*RequestCommit) FromPBMessage ¶
func (RequestCommit) GetTypeURL ¶
func (_ RequestCommit) GetTypeURL() (typeURL string)
func (RequestCommit) ToPBMessage ¶
type RequestDeliverTx ¶
type RequestDeliverTx struct { RequestBase Tx []byte }
func (RequestDeliverTx) EmptyPBMessage ¶
func (goo RequestDeliverTx) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*RequestDeliverTx) FromPBMessage ¶
func (RequestDeliverTx) GetTypeURL ¶
func (_ RequestDeliverTx) GetTypeURL() (typeURL string)
func (RequestDeliverTx) ToPBMessage ¶
type RequestEcho ¶
type RequestEcho struct { RequestBase Message string }
func (RequestEcho) EmptyPBMessage ¶
func (goo RequestEcho) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*RequestEcho) FromPBMessage ¶
func (RequestEcho) GetTypeURL ¶
func (_ RequestEcho) GetTypeURL() (typeURL string)
func (RequestEcho) ToPBMessage ¶
type RequestEndBlock ¶
type RequestEndBlock struct { RequestBase Height int64 }
func (RequestEndBlock) EmptyPBMessage ¶
func (goo RequestEndBlock) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*RequestEndBlock) FromPBMessage ¶
func (RequestEndBlock) GetTypeURL ¶
func (_ RequestEndBlock) GetTypeURL() (typeURL string)
func (RequestEndBlock) ToPBMessage ¶
type RequestFlush ¶
type RequestFlush struct {
RequestBase
}
func (RequestFlush) EmptyPBMessage ¶
func (goo RequestFlush) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*RequestFlush) FromPBMessage ¶
func (RequestFlush) GetTypeURL ¶
func (_ RequestFlush) GetTypeURL() (typeURL string)
func (RequestFlush) ToPBMessage ¶
type RequestInfo ¶
type RequestInfo struct {
RequestBase
}
func (RequestInfo) EmptyPBMessage ¶
func (goo RequestInfo) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*RequestInfo) FromPBMessage ¶
func (RequestInfo) GetTypeURL ¶
func (_ RequestInfo) GetTypeURL() (typeURL string)
func (RequestInfo) ToPBMessage ¶
type RequestInitChain ¶
type RequestInitChain struct { RequestBase Time time.Time ChainID string ConsensusParams *ConsensusParams Validators []ValidatorUpdate AppStateBytes []byte }
func (RequestInitChain) EmptyPBMessage ¶
func (goo RequestInitChain) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*RequestInitChain) FromPBMessage ¶
func (RequestInitChain) GetTypeURL ¶
func (_ RequestInitChain) GetTypeURL() (typeURL string)
func (RequestInitChain) ToPBMessage ¶
type RequestQuery ¶
type RequestQuery struct { RequestBase Data []byte Path string Height int64 Prove bool }
func (RequestQuery) EmptyPBMessage ¶
func (goo RequestQuery) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*RequestQuery) FromPBMessage ¶
func (RequestQuery) GetTypeURL ¶
func (_ RequestQuery) GetTypeURL() (typeURL string)
func (RequestQuery) ToPBMessage ¶
type RequestSetOption ¶
type RequestSetOption struct { RequestBase Key string Value string }
nondeterministic
func (RequestSetOption) EmptyPBMessage ¶
func (goo RequestSetOption) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*RequestSetOption) FromPBMessage ¶
func (RequestSetOption) GetTypeURL ¶
func (_ RequestSetOption) GetTypeURL() (typeURL string)
func (RequestSetOption) ToPBMessage ¶
type ResponseBase ¶
type ResponseBase struct { Error Error Data []byte Events []Event Log string // nondeterministic Info string // nondeterministic }
func (ResponseBase) AssertResponse ¶
func (_ ResponseBase) AssertResponse()
func (ResponseBase) EmptyPBMessage ¶
func (goo ResponseBase) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*ResponseBase) FromPBMessage ¶
func (ResponseBase) GetTypeURL ¶
func (_ ResponseBase) GetTypeURL() (typeURL string)
func (ResponseBase) IsErr ¶
func (r ResponseBase) IsErr() bool
func (ResponseBase) IsOK ¶
func (r ResponseBase) IsOK() bool
func (ResponseBase) ToPBMessage ¶
type ResponseBeginBlock ¶
type ResponseBeginBlock struct {
ResponseBase
}
func (ResponseBeginBlock) EmptyPBMessage ¶
func (goo ResponseBeginBlock) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*ResponseBeginBlock) FromPBMessage ¶
func (ResponseBeginBlock) GetTypeURL ¶
func (_ ResponseBeginBlock) GetTypeURL() (typeURL string)
func (ResponseBeginBlock) ToPBMessage ¶
type ResponseCheckTx ¶
type ResponseCheckTx struct { ResponseBase GasWanted int64 // nondeterministic GasUsed int64 }
func (ResponseCheckTx) EmptyPBMessage ¶
func (goo ResponseCheckTx) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*ResponseCheckTx) FromPBMessage ¶
func (ResponseCheckTx) GetTypeURL ¶
func (_ ResponseCheckTx) GetTypeURL() (typeURL string)
func (ResponseCheckTx) ToPBMessage ¶
type ResponseCommit ¶
type ResponseCommit struct {
ResponseBase
}
func (ResponseCommit) EmptyPBMessage ¶
func (goo ResponseCommit) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*ResponseCommit) FromPBMessage ¶
func (ResponseCommit) GetTypeURL ¶
func (_ ResponseCommit) GetTypeURL() (typeURL string)
func (ResponseCommit) ToPBMessage ¶
type ResponseDeliverTx ¶
type ResponseDeliverTx struct { ResponseBase GasWanted int64 GasUsed int64 }
func (ResponseDeliverTx) EmptyPBMessage ¶
func (goo ResponseDeliverTx) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*ResponseDeliverTx) FromPBMessage ¶
func (ResponseDeliverTx) GetTypeURL ¶
func (_ ResponseDeliverTx) GetTypeURL() (typeURL string)
func (ResponseDeliverTx) ToPBMessage ¶
type ResponseEcho ¶
type ResponseEcho struct { ResponseBase Message string }
func (ResponseEcho) EmptyPBMessage ¶
func (goo ResponseEcho) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*ResponseEcho) FromPBMessage ¶
func (ResponseEcho) GetTypeURL ¶
func (_ ResponseEcho) GetTypeURL() (typeURL string)
func (ResponseEcho) ToPBMessage ¶
type ResponseEndBlock ¶
type ResponseEndBlock struct { ResponseBase ValidatorUpdates []ValidatorUpdate ConsensusParams *ConsensusParams Events []Event }
func (ResponseEndBlock) EmptyPBMessage ¶
func (goo ResponseEndBlock) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*ResponseEndBlock) FromPBMessage ¶
func (ResponseEndBlock) GetTypeURL ¶
func (_ ResponseEndBlock) GetTypeURL() (typeURL string)
func (ResponseEndBlock) ToPBMessage ¶
type ResponseException ¶
type ResponseException struct {
ResponseBase
}
nondeterministic
func (ResponseException) EmptyPBMessage ¶
func (goo ResponseException) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*ResponseException) FromPBMessage ¶
func (ResponseException) GetTypeURL ¶
func (_ ResponseException) GetTypeURL() (typeURL string)
func (ResponseException) ToPBMessage ¶
type ResponseFlush ¶
type ResponseFlush struct {
ResponseBase
}
func (ResponseFlush) EmptyPBMessage ¶
func (goo ResponseFlush) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*ResponseFlush) FromPBMessage ¶
func (ResponseFlush) GetTypeURL ¶
func (_ ResponseFlush) GetTypeURL() (typeURL string)
func (ResponseFlush) ToPBMessage ¶
type ResponseInfo ¶
type ResponseInfo struct { ResponseBase ABCIVersion string AppVersion string LastBlockHeight int64 LastBlockAppHash []byte }
func (ResponseInfo) EmptyPBMessage ¶
func (goo ResponseInfo) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*ResponseInfo) FromPBMessage ¶
func (ResponseInfo) GetTypeURL ¶
func (_ ResponseInfo) GetTypeURL() (typeURL string)
func (ResponseInfo) ToPBMessage ¶
type ResponseInitChain ¶
type ResponseInitChain struct { ResponseBase ConsensusParams *ConsensusParams Validators []ValidatorUpdate }
func (ResponseInitChain) EmptyPBMessage ¶
func (goo ResponseInitChain) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*ResponseInitChain) FromPBMessage ¶
func (ResponseInitChain) GetTypeURL ¶
func (_ ResponseInitChain) GetTypeURL() (typeURL string)
func (ResponseInitChain) ToPBMessage ¶
type ResponseQuery ¶
func (ResponseQuery) EmptyPBMessage ¶
func (goo ResponseQuery) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*ResponseQuery) FromPBMessage ¶
func (ResponseQuery) GetTypeURL ¶
func (_ ResponseQuery) GetTypeURL() (typeURL string)
func (ResponseQuery) ToPBMessage ¶
type ResponseSetOption ¶
type ResponseSetOption struct {
ResponseBase
}
nondeterministic
func (ResponseSetOption) EmptyPBMessage ¶
func (goo ResponseSetOption) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*ResponseSetOption) FromPBMessage ¶
func (ResponseSetOption) GetTypeURL ¶
func (_ ResponseSetOption) GetTypeURL() (typeURL string)
func (ResponseSetOption) ToPBMessage ¶
type StringError ¶
type StringError string
func (StringError) AssertABCIError ¶
func (_ StringError) AssertABCIError()
func (StringError) EmptyPBMessage ¶
func (goo StringError) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (StringError) Error ¶
func (err StringError) Error() string
func (*StringError) FromPBMessage ¶
func (StringError) GetTypeURL ¶
func (_ StringError) GetTypeURL() (typeURL string)
func (StringError) ToPBMessage ¶
type ValidatorParams ¶
type ValidatorParams struct {
PubKeyTypeURLs []string
}
func (ValidatorParams) EmptyPBMessage ¶
func (goo ValidatorParams) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*ValidatorParams) FromPBMessage ¶
func (ValidatorParams) GetTypeURL ¶
func (_ ValidatorParams) GetTypeURL() (typeURL string)
func (ValidatorParams) IsValidPubKeyTypeURL ¶
func (params ValidatorParams) IsValidPubKeyTypeURL(pubKeyTypeURL string) bool
func (ValidatorParams) ToPBMessage ¶
type ValidatorUpdate ¶
func (ValidatorUpdate) EmptyPBMessage ¶
func (goo ValidatorUpdate) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*ValidatorUpdate) FromPBMessage ¶
func (ValidatorUpdate) GetTypeURL ¶
func (_ ValidatorUpdate) GetTypeURL() (typeURL string)
func (ValidatorUpdate) ToPBMessage ¶
type ValidatorUpdates ¶
type ValidatorUpdates []ValidatorUpdate
ValidatorUpdates is a list of validators that implements the Sort interface
func (ValidatorUpdates) Len ¶
func (v ValidatorUpdates) Len() int
func (ValidatorUpdates) Less ¶
func (v ValidatorUpdates) Less(i, j int) bool
func (ValidatorUpdates) Swap ¶
func (v ValidatorUpdates) Swap(i, j int)
type VoteInfo ¶
unstable
func (VoteInfo) EmptyPBMessage ¶
func (*VoteInfo) FromPBMessage ¶
func (VoteInfo) GetTypeURL ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.