abci

package
v0.0.0-...-0a11024 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 12 Imported by: 29

Documentation

Index

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

func IsVoteInfoReprEmpty(goor VoteInfo) (empty bool)

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) CheckTx

func (BaseApplication) Close

func (BaseApplication) Close() error

func (BaseApplication) Commit

func (BaseApplication) DeliverTx

func (BaseApplication) EndBlock

func (BaseApplication) Info

func (BaseApplication) InitChain

func (BaseApplication) Query

func (BaseApplication) SetOption

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 (goo *BlockParams) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (BlockParams) GetTypeURL

func (_ BlockParams) GetTypeURL() (typeURL string)

func (BlockParams) ToPBMessage

func (goo BlockParams) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

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 (goo *ConsensusParams) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ConsensusParams) GetTypeURL

func (_ ConsensusParams) GetTypeURL() (typeURL string)

func (ConsensusParams) Hash

func (params ConsensusParams) Hash() []byte

func (ConsensusParams) ToPBMessage

func (goo ConsensusParams) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

func (ConsensusParams) Update

func (params ConsensusParams) Update(params2 ConsensusParams) ConsensusParams

type Error

type Error interface {
	AssertABCIError()
	Error() string
}

type Event

type Event interface {
	AssertABCIEvent()
}

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 (goo *EventString) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (EventString) GetTypeURL

func (_ EventString) GetTypeURL() (typeURL string)

func (EventString) ToPBMessage

func (goo EventString) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
type Header interface {
	AssertABCIHeader()
}

type LastCommitInfo

type LastCommitInfo struct {
	Round int32
	Votes []VoteInfo
}

func (LastCommitInfo) EmptyPBMessage

func (goo LastCommitInfo) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*LastCommitInfo) FromPBMessage

func (goo *LastCommitInfo) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (LastCommitInfo) GetTypeURL

func (_ LastCommitInfo) GetTypeURL() (typeURL string)

func (LastCommitInfo) ToPBMessage

func (goo LastCommitInfo) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

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 (goo *MockHeader) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (MockHeader) GetTypeURL

func (_ MockHeader) GetTypeURL() (typeURL string)

func (MockHeader) ToPBMessage

func (goo MockHeader) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type Request

type Request interface {
	AssertRequest()
}

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 (goo *RequestBase) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (RequestBase) GetTypeURL

func (_ RequestBase) GetTypeURL() (typeURL string)

func (RequestBase) ToPBMessage

func (goo RequestBase) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

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 (goo *RequestBeginBlock) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (RequestBeginBlock) GetTypeURL

func (_ RequestBeginBlock) GetTypeURL() (typeURL string)

func (RequestBeginBlock) ToPBMessage

func (goo RequestBeginBlock) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

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 (goo *RequestCheckTx) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (RequestCheckTx) GetTypeURL

func (_ RequestCheckTx) GetTypeURL() (typeURL string)

func (RequestCheckTx) ToPBMessage

func (goo RequestCheckTx) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type RequestCommit

type RequestCommit struct {
	RequestBase
}

func (RequestCommit) EmptyPBMessage

func (goo RequestCommit) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*RequestCommit) FromPBMessage

func (goo *RequestCommit) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (RequestCommit) GetTypeURL

func (_ RequestCommit) GetTypeURL() (typeURL string)

func (RequestCommit) ToPBMessage

func (goo RequestCommit) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

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 (goo *RequestDeliverTx) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (RequestDeliverTx) GetTypeURL

func (_ RequestDeliverTx) GetTypeURL() (typeURL string)

func (RequestDeliverTx) ToPBMessage

func (goo RequestDeliverTx) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

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 (goo *RequestEcho) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (RequestEcho) GetTypeURL

func (_ RequestEcho) GetTypeURL() (typeURL string)

func (RequestEcho) ToPBMessage

func (goo RequestEcho) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

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 (goo *RequestEndBlock) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (RequestEndBlock) GetTypeURL

func (_ RequestEndBlock) GetTypeURL() (typeURL string)

func (RequestEndBlock) ToPBMessage

func (goo RequestEndBlock) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type RequestFlush

type RequestFlush struct {
	RequestBase
}

func (RequestFlush) EmptyPBMessage

func (goo RequestFlush) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*RequestFlush) FromPBMessage

func (goo *RequestFlush) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (RequestFlush) GetTypeURL

func (_ RequestFlush) GetTypeURL() (typeURL string)

func (RequestFlush) ToPBMessage

func (goo RequestFlush) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type RequestInfo

type RequestInfo struct {
	RequestBase
}

func (RequestInfo) EmptyPBMessage

func (goo RequestInfo) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*RequestInfo) FromPBMessage

func (goo *RequestInfo) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (RequestInfo) GetTypeURL

func (_ RequestInfo) GetTypeURL() (typeURL string)

func (RequestInfo) ToPBMessage

func (goo RequestInfo) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

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 (goo *RequestInitChain) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (RequestInitChain) GetTypeURL

func (_ RequestInitChain) GetTypeURL() (typeURL string)

func (RequestInitChain) ToPBMessage

func (goo RequestInitChain) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

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 (goo *RequestQuery) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (RequestQuery) GetTypeURL

func (_ RequestQuery) GetTypeURL() (typeURL string)

func (RequestQuery) ToPBMessage

func (goo RequestQuery) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

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 (goo *RequestSetOption) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (RequestSetOption) GetTypeURL

func (_ RequestSetOption) GetTypeURL() (typeURL string)

func (RequestSetOption) ToPBMessage

func (goo RequestSetOption) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type Response

type Response interface {
	AssertResponse()
}

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 (goo *ResponseBase) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

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

func (goo ResponseBase) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type ResponseBeginBlock

type ResponseBeginBlock struct {
	ResponseBase
}

func (ResponseBeginBlock) EmptyPBMessage

func (goo ResponseBeginBlock) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*ResponseBeginBlock) FromPBMessage

func (goo *ResponseBeginBlock) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ResponseBeginBlock) GetTypeURL

func (_ ResponseBeginBlock) GetTypeURL() (typeURL string)

func (ResponseBeginBlock) ToPBMessage

func (goo ResponseBeginBlock) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

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 (goo *ResponseCheckTx) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ResponseCheckTx) GetTypeURL

func (_ ResponseCheckTx) GetTypeURL() (typeURL string)

func (ResponseCheckTx) ToPBMessage

func (goo ResponseCheckTx) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type ResponseCommit

type ResponseCommit struct {
	ResponseBase
}

func (ResponseCommit) EmptyPBMessage

func (goo ResponseCommit) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*ResponseCommit) FromPBMessage

func (goo *ResponseCommit) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ResponseCommit) GetTypeURL

func (_ ResponseCommit) GetTypeURL() (typeURL string)

func (ResponseCommit) ToPBMessage

func (goo ResponseCommit) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

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 (goo *ResponseDeliverTx) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ResponseDeliverTx) GetTypeURL

func (_ ResponseDeliverTx) GetTypeURL() (typeURL string)

func (ResponseDeliverTx) ToPBMessage

func (goo ResponseDeliverTx) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

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 (goo *ResponseEcho) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ResponseEcho) GetTypeURL

func (_ ResponseEcho) GetTypeURL() (typeURL string)

func (ResponseEcho) ToPBMessage

func (goo ResponseEcho) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

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 (goo *ResponseEndBlock) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ResponseEndBlock) GetTypeURL

func (_ ResponseEndBlock) GetTypeURL() (typeURL string)

func (ResponseEndBlock) ToPBMessage

func (goo ResponseEndBlock) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type ResponseException

type ResponseException struct {
	ResponseBase
}

nondeterministic

func (ResponseException) EmptyPBMessage

func (goo ResponseException) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*ResponseException) FromPBMessage

func (goo *ResponseException) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ResponseException) GetTypeURL

func (_ ResponseException) GetTypeURL() (typeURL string)

func (ResponseException) ToPBMessage

func (goo ResponseException) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type ResponseFlush

type ResponseFlush struct {
	ResponseBase
}

func (ResponseFlush) EmptyPBMessage

func (goo ResponseFlush) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*ResponseFlush) FromPBMessage

func (goo *ResponseFlush) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ResponseFlush) GetTypeURL

func (_ ResponseFlush) GetTypeURL() (typeURL string)

func (ResponseFlush) ToPBMessage

func (goo ResponseFlush) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

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 (goo *ResponseInfo) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ResponseInfo) GetTypeURL

func (_ ResponseInfo) GetTypeURL() (typeURL string)

func (ResponseInfo) ToPBMessage

func (goo ResponseInfo) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

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 (goo *ResponseInitChain) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ResponseInitChain) GetTypeURL

func (_ ResponseInitChain) GetTypeURL() (typeURL string)

func (ResponseInitChain) ToPBMessage

func (goo ResponseInitChain) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type ResponseQuery

type ResponseQuery struct {
	ResponseBase
	Key    []byte
	Value  []byte
	Proof  *merkle.Proof
	Height int64
}

func (ResponseQuery) EmptyPBMessage

func (goo ResponseQuery) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*ResponseQuery) FromPBMessage

func (goo *ResponseQuery) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ResponseQuery) GetTypeURL

func (_ ResponseQuery) GetTypeURL() (typeURL string)

func (ResponseQuery) ToPBMessage

func (goo ResponseQuery) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type ResponseSetOption

type ResponseSetOption struct {
	ResponseBase
}

nondeterministic

func (ResponseSetOption) EmptyPBMessage

func (goo ResponseSetOption) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*ResponseSetOption) FromPBMessage

func (goo *ResponseSetOption) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ResponseSetOption) GetTypeURL

func (_ ResponseSetOption) GetTypeURL() (typeURL string)

func (ResponseSetOption) ToPBMessage

func (goo ResponseSetOption) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

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 (goo *StringError) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (StringError) GetTypeURL

func (_ StringError) GetTypeURL() (typeURL string)

func (StringError) ToPBMessage

func (goo StringError) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type ValidatorParams

type ValidatorParams struct {
	PubKeyTypeURLs []string
}

func (ValidatorParams) EmptyPBMessage

func (goo ValidatorParams) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*ValidatorParams) FromPBMessage

func (goo *ValidatorParams) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ValidatorParams) GetTypeURL

func (_ ValidatorParams) GetTypeURL() (typeURL string)

func (ValidatorParams) IsValidPubKeyTypeURL

func (params ValidatorParams) IsValidPubKeyTypeURL(pubKeyTypeURL string) bool

func (ValidatorParams) ToPBMessage

func (goo ValidatorParams) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type ValidatorUpdate

type ValidatorUpdate struct {
	Address crypto.Address
	PubKey  crypto.PubKey
	Power   int64
}

func (ValidatorUpdate) EmptyPBMessage

func (goo ValidatorUpdate) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*ValidatorUpdate) FromPBMessage

func (goo *ValidatorUpdate) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ValidatorUpdate) GetTypeURL

func (_ ValidatorUpdate) GetTypeURL() (typeURL string)

func (ValidatorUpdate) ToPBMessage

func (goo ValidatorUpdate) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

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

type VoteInfo struct {
	Address         crypto.Address
	Power           int64
	SignedLastBlock bool
}

unstable

func (VoteInfo) EmptyPBMessage

func (goo VoteInfo) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*VoteInfo) FromPBMessage

func (goo *VoteInfo) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (VoteInfo) GetTypeURL

func (_ VoteInfo) GetTypeURL() (typeURL string)

func (VoteInfo) ToPBMessage

func (goo VoteInfo) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL