types

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0, Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package types is a generated protocol buffer package.

It is generated from these files:

types/types.proto

It has these top-level messages:

Request
RequestEcho
RequestFlush
RequestInfo
RequestSetOption
RequestInitChain
RequestQuery
RequestBeginBlock
RequestCheckTx
RequestDeliverTx
RequestEndBlock
RequestCommit
Response
ResponseException
ResponseEcho
ResponseFlush
ResponseInfo
ResponseSetOption
ResponseInitChain
ResponseQuery
ResponseBeginBlock
ResponseCheckTx
ResponseDeliverTx
ResponseEndBlock
ResponseCommit
ConsensusParams
BlockSize
TxSize
BlockGossip
Header
BlockID
PartSetHeader
Validator
Evidence

nolint: gas

Index

Constants

View Source
const (
	CodeTypeOK uint32 = 200
)

Variables

This section is empty.

Functions

func AppStateToByte

func AppStateToByte(appstate *AppState) []byte

func ReadMessage

func ReadMessage(r io.Reader, msg proto.Message) error

ReadMessage reads a varint length-delimited protobuf message.

func RegisterABCIApplicationServer

func RegisterABCIApplicationServer(s *grpc.Server, srv ABCIApplicationServer)

func ValidatorsString

func ValidatorsString(vs Validators) string

func WriteMessage

func WriteMessage(msg proto.Message, w io.Writer) error

WriteMessage writes a varint length-delimited protobuf message.

Types

type ABCIApplicationClient

type ABCIApplicationClient interface {
	Echo(ctx context.Context, in *RequestEcho, opts ...grpc.CallOption) (*ResponseEcho, error)
	Flush(ctx context.Context, in *RequestFlush, opts ...grpc.CallOption) (*ResponseFlush, error)
	Info(ctx context.Context, in *RequestInfo, opts ...grpc.CallOption) (*ResponseInfo, error)
	SetOption(ctx context.Context, in *RequestSetOption, opts ...grpc.CallOption) (*ResponseSetOption, error)
	DeliverTx(ctx context.Context, in *RequestDeliverTx, opts ...grpc.CallOption) (*ResponseDeliverTx, error)
	CheckTx(ctx context.Context, in *RequestCheckTx, opts ...grpc.CallOption) (*ResponseCheckTx, error)
	Query(ctx context.Context, in *RequestQuery, opts ...grpc.CallOption) (*ResponseQuery, error)
	QueryEx(ctx context.Context, in *RequestQueryEx, opts ...grpc.CallOption) (*ResponseQueryEx, error)
	Commit(ctx context.Context, in *RequestCommit, opts ...grpc.CallOption) (*ResponseCommit, error)
	InitChain(ctx context.Context, in *RequestInitChain, opts ...grpc.CallOption) (*ResponseInitChain, error)
	BeginBlock(ctx context.Context, in *RequestBeginBlock, opts ...grpc.CallOption) (*ResponseBeginBlock, error)
	EndBlock(ctx context.Context, in *RequestEndBlock, opts ...grpc.CallOption) (*ResponseEndBlock, error)
	CleanData(ctx context.Context, in *RequestCleanData, opts ...grpc.CallOption) (*ResponseCleanData, error)
	GetGenesis(ctx context.Context, in *RequestGetGenesis, opts ...grpc.CallOption) (*ResponseGetGenesis, error)
	Rollback(ctx context.Context, in *RequestRollback, opts ...grpc.CallOption) (*ResponseRollback, error)
}

func NewABCIApplicationClient

func NewABCIApplicationClient(cc *grpc.ClientConn) ABCIApplicationClient

type Allocation

type Allocation struct {
	Addr string `protobuf:"bytes,1,opt,name=addr,json=addr,proto3" json:"addr"`
	Fee  uint64 `protobuf:"varint,2,opt,name=fee,json=fee,proto3" json:"fee"`
}

type AppState

type AppState struct {
	BlockHeight  int64             `json:"block_height,omitempty"`  //最后一个确认的区块高度
	AppHash      crypto.Hash       `json:"app_hash,omitempty"`      //最后一个确认区块的AppHash
	TxsHashList  []crypto.Hash     `json:"txs_hash_list,omitempty"` //最后一个确认区块的交易Hash列表
	Rewards      []common.KVPair   `json:"rewards,omitempty"`       //最后一个确认区块奖励分配
	Fee          uint64            `json:"fee,omitempty"`           //最后一个确认区块的交易费用
	ChainVersion int64             `json:"chain_version,omitempty"` //最后一个确认区块
	BeginBlock   RequestBeginBlock `json:"beginBlock,omitempty"`    // Request Begin Block
}

func ByteToAppState

func ByteToAppState(appstate []byte) *AppState

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
	QueryEx(RequestQueryEx) ResponseQueryEx       // QueryEx for state

	// Mempool Connection
	CheckTx(tx []byte) 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(tx []byte) 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

	// Clear all bcchain data when side chain genesis
	CleanData() ResponseCleanData
	GetGenesis() ResponseGetGenesis
	Rollback() ResponseRollback
}

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) CheckTx(tx []byte) ResponseCheckTx

func (BaseApplication) CleanData

func (BaseApplication) CleanData() ResponseCleanData

func (BaseApplication) Commit

func (BaseApplication) DeliverTx

func (BaseApplication) DeliverTx(tx []byte) ResponseDeliverTx

func (BaseApplication) EndBlock

func (BaseApplication) GetGenesis

func (BaseApplication) GetGenesis() ResponseGetGenesis

func (BaseApplication) Info

func (BaseApplication) InitChain

func (BaseApplication) Query

func (BaseApplication) QueryEx

func (BaseApplication) Rollback

func (BaseApplication) Rollback() ResponseRollback

func (BaseApplication) SetOption

type BlockGossip

type BlockGossip struct {
	// Note: must not be 0
	BlockPartSizeBytes int32 `protobuf:"varint,1,opt,name=block_part_size_bytes,json=blockPartSizeBytes,proto3" json:"block_part_size_bytes,omitempty"`
}

BlockGossip determine consensus critical elements of how blocks are gossiped

func (*BlockGossip) Descriptor

func (*BlockGossip) Descriptor() ([]byte, []int)

func (*BlockGossip) GetBlockPartSizeBytes

func (m *BlockGossip) GetBlockPartSizeBytes() int32

func (*BlockGossip) ProtoMessage

func (*BlockGossip) ProtoMessage()

func (*BlockGossip) Reset

func (m *BlockGossip) Reset()

func (*BlockGossip) String

func (m *BlockGossip) String() string

type BlockID

type BlockID struct {
	Hash  []byte        `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Parts PartSetHeader `protobuf:"bytes,2,opt,name=parts" json:"parts"`
}

func (*BlockID) Descriptor

func (*BlockID) Descriptor() ([]byte, []int)

func (*BlockID) GetHash

func (m *BlockID) GetHash() []byte

func (*BlockID) GetParts

func (m *BlockID) GetParts() PartSetHeader

func (*BlockID) ProtoMessage

func (*BlockID) ProtoMessage()

func (*BlockID) Reset

func (m *BlockID) Reset()

func (*BlockID) String

func (m *BlockID) String() string

type BlockSize

type BlockSize struct {
	MaxBytes int32 `protobuf:"varint,1,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"`
	MaxTxs   int32 `protobuf:"varint,2,opt,name=max_txs,json=maxTxs,proto3" json:"max_txs,omitempty"`
	MaxGas   int64 `protobuf:"varint,3,opt,name=max_gas,json=maxGas,proto3" json:"max_gas,omitempty"`
}

BlockSize contain limits on the block size.

func (*BlockSize) Descriptor

func (*BlockSize) Descriptor() ([]byte, []int)

func (*BlockSize) GetMaxBytes

func (m *BlockSize) GetMaxBytes() int32

func (*BlockSize) GetMaxGas

func (m *BlockSize) GetMaxGas() int64

func (*BlockSize) GetMaxTxs

func (m *BlockSize) GetMaxTxs() int32

func (*BlockSize) ProtoMessage

func (*BlockSize) ProtoMessage()

func (*BlockSize) Reset

func (m *BlockSize) Reset()

func (*BlockSize) String

func (m *BlockSize) String() string

type ConsensusParams

type ConsensusParams struct {
	BlockSize   *BlockSize   `protobuf:"bytes,1,opt,name=block_size,json=blockSize" json:"block_size,omitempty"`
	TxSize      *TxSize      `protobuf:"bytes,2,opt,name=tx_size,json=txSize" json:"tx_size,omitempty"`
	BlockGossip *BlockGossip `protobuf:"bytes,3,opt,name=block_gossip,json=blockGossip" json:"block_gossip,omitempty"`
}

ConsensusParams contains all consensus-relevant parameters that can be adjusted by the abci app

func (*ConsensusParams) Descriptor

func (*ConsensusParams) Descriptor() ([]byte, []int)

func (*ConsensusParams) GetBlockGossip

func (m *ConsensusParams) GetBlockGossip() *BlockGossip

func (*ConsensusParams) GetBlockSize

func (m *ConsensusParams) GetBlockSize() *BlockSize

func (*ConsensusParams) GetTxSize

func (m *ConsensusParams) GetTxSize() *TxSize

func (*ConsensusParams) ProtoMessage

func (*ConsensusParams) ProtoMessage()

func (*ConsensusParams) Reset

func (m *ConsensusParams) Reset()

func (*ConsensusParams) String

func (m *ConsensusParams) String() string

type ContractData

type ContractData struct {
	Name     string `protobuf:"bytes,1,opt,name=name,json=name,proto3" json:"name,omitempty"`
	Version  string `protobuf:"bytes,2,opt,name=version,json=version,proto3" json:"version,omitempty"`
	CodeData []byte `protobuf:"bytes,3,opt,name=code_data,json=codeData,proto3" json:"codeData,omitempty"`
	Owner    string `protobuf:"bytes,4,opt,name=owner,json=owner,proto3" json:"owner,omitempty"`
}

func (*ContractData) Descriptor

func (*ContractData) Descriptor() ([]byte, []int)

func (*ContractData) ProtoMessage

func (*ContractData) ProtoMessage()

func (*ContractData) Reset

func (m *ContractData) Reset()

func (*ContractData) String

func (m *ContractData) String() string

type Evidence

type Evidence struct {
	PubKey string `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
	Height int64  `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
}

func (*Evidence) Descriptor

func (*Evidence) Descriptor() ([]byte, []int)

func (*Evidence) GetHeight

func (m *Evidence) GetHeight() int64

func (*Evidence) GetPubKey

func (m *Evidence) GetPubKey() string

func (*Evidence) ProtoMessage

func (*Evidence) ProtoMessage()

func (*Evidence) Reset

func (m *Evidence) Reset()

func (*Evidence) String

func (m *Evidence) String() string

type GRPCApplication

type GRPCApplication struct {
	// contains filtered or unexported fields
}

GRPCApplication is a GRPC wrapper for Application

func NewGRPCApplication

func NewGRPCApplication(app Application) *GRPCApplication

func (*GRPCApplication) BeginBlock

func (*GRPCApplication) CheckTx

func (app *GRPCApplication) CheckTx(ctx context.Context, req *RequestCheckTx) (*ResponseCheckTx, error)

func (*GRPCApplication) CleanData

func (*GRPCApplication) Commit

func (app *GRPCApplication) Commit(ctx context.Context, req *RequestCommit) (*ResponseCommit, error)

func (*GRPCApplication) DeliverTx

func (*GRPCApplication) Echo

func (app *GRPCApplication) Echo(ctx context.Context, req *RequestEcho) (*ResponseEcho, error)

func (*GRPCApplication) EndBlock

func (*GRPCApplication) Flush

func (app *GRPCApplication) Flush(ctx context.Context, req *RequestFlush) (*ResponseFlush, error)

func (*GRPCApplication) GetGenesis

func (*GRPCApplication) Info

func (app *GRPCApplication) Info(ctx context.Context, req *RequestInfo) (*ResponseInfo, error)

func (*GRPCApplication) InitChain

func (*GRPCApplication) Query

func (app *GRPCApplication) Query(ctx context.Context, req *RequestQuery) (*ResponseQuery, error)

func (*GRPCApplication) QueryEx

func (app *GRPCApplication) QueryEx(ctx context.Context, req *RequestQueryEx) (*ResponseQueryEx, error)

func (*GRPCApplication) Rollback

func (*GRPCApplication) SetOption

type Header struct {
	ChainID         string       `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Height          int64        `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Time            int64        `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"`
	NumTxs          int32        `protobuf:"varint,4,opt,name=num_txs,json=numTxs,proto3" json:"num_txs,omitempty"`
	LastBlockID     BlockID      `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId" json:"last_block_id"`
	LastCommitHash  []byte       `protobuf:"bytes,6,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"`
	DataHash        []byte       `protobuf:"bytes,7,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"`
	ValidatorsHash  []byte       `protobuf:"bytes,8,opt,name=validators_hash,json=validatorsHash,proto3" json:"validators_hash,omitempty"`
	LastAppHash     []byte       `protobuf:"bytes,9,opt,name=last_app_hash,json=lastAppHash,proto3" json:"last_app_hash,omitempty"`
	LastFee         uint64       `protobuf:"varint,10,opt,name=last_fee,json=lastFee,proto3" json:"last_fee,omitempty"`
	LastAllocation  []Allocation `protobuf:"bytes,11,rep,name=last_allocation" json:"last_allocation,omitempty"`
	ProposerAddress string       `protobuf:"bytes,12,opt,name=proposer_address,json=proposerAddress,proto3" json:"proposer_address,omitempty"`
	RewardAddress   string       `protobuf:"bytes,13,opt,name=reward_address,json=rewardAddress,proto3" json:"reward_address,omitempty"`
	RandomeOfBlock  []byte       `protobuf:"bytes,14,opt,name=random_of_block,json=randomOfBlock,proto3" json:"random_of_block,omitempty"`
	LastMining      *int64       `protobuf:"varint,15,opt,name=last_mining,json=lastMining,proto3" json:"last_mining,omitempty"`
	Version         string       `protobuf:"bytes,16,opt,name=version,json=version,proto3" json:"version,omitempty"`
	ChainVersion    int64        `protobuf:"varint,17,opt,name=chain_version,json=chainVersion,proto3" json:"chain_version,omitempty"`
	LastQueueChains *QueueChain  `protobuf:"bytes,18,opt,name=last_queue_chains,json=lastQueueChains,proto3" json:"last_queue_chains,omitempty"`
	Relayer         *Relayer     `protobuf:"bytes,19,opt,name=relayer,json=relayer,proto3" json:"relayer,omitempty"`
	BlockVersion    string       `protobuf:"bytes,20,opt,name=block_version,json=blockVersion,proto3" json:"block_version,omitempty"`
}

func (*Header) Descriptor

func (*Header) Descriptor() ([]byte, []int)

func (*Header) GetChainID

func (m *Header) GetChainID() string

func (*Header) GetDataHash

func (m *Header) GetDataHash() []byte

func (*Header) GetHeight

func (m *Header) GetHeight() int64

func (*Header) GetLastAppHash

func (m *Header) GetLastAppHash() []byte

func (*Header) GetLastBlockID

func (m *Header) GetLastBlockID() BlockID

func (*Header) GetLastCommitHash

func (m *Header) GetLastCommitHash() []byte

func (*Header) GetNumTxs

func (m *Header) GetNumTxs() int32

func (*Header) GetTime

func (m *Header) GetTime() int64

func (*Header) GetValidatorsHash

func (m *Header) GetValidatorsHash() []byte

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) Reset

func (m *Header) Reset()

func (*Header) String

func (m *Header) String() string

type KeyValue

type KeyValue struct {
	Key   []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

type PartSetHeader

type PartSetHeader struct {
	Total int32  `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Hash  []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
}

func (*PartSetHeader) Descriptor

func (*PartSetHeader) Descriptor() ([]byte, []int)

func (*PartSetHeader) GetHash

func (m *PartSetHeader) GetHash() []byte

func (*PartSetHeader) GetTotal

func (m *PartSetHeader) GetTotal() int32

func (*PartSetHeader) ProtoMessage

func (*PartSetHeader) ProtoMessage()

func (*PartSetHeader) Reset

func (m *PartSetHeader) Reset()

func (*PartSetHeader) String

func (m *PartSetHeader) String() string

type QueueBlock

type QueueBlock struct {
	QueueID         string `protobuf:"bytes,1,opt,name=queue_id,json=queueID,proto3" json:"queue_id,omitempty"`
	QueueHash       []byte `protobuf:"bytes,2,opt,name=queue_hash,json=queueHash,proto3" json:"queue_hash,omitempty"`
	LastQueueHash   []byte `protobuf:"bytes,3,opt,name=last_queue_hash,json=lastQueueHash,proto3" json:"last_queue_hash,omitempty"`
	LastQueueHeight int64  `protobuf:"varint,4,opt,name=last_queue_height,json=lastQueueHeight,proto3" json:"last_queue_height,omitempty"`
}

type QueueChain

type QueueChain struct {
	QueueBlocks []QueueBlock `protobuf:"bytes,1,opt,name=ibc_queue_blocks,json=queueBlocks,proto3" json:"ibc_queue_blocks,omitempty"`
}

type Relayer

type Relayer struct {
	Address   string `protobuf:"bytes,1,opt,name=address,json=address,proto3" json:"address,omitempty"`
	StartTime int64  `protobuf:"varint,2,opt,name=start_time,proto3" json:"start_time,omitempty"`
}

type Request

type Request struct {
	// Types that are valid to be assigned to Value:
	//	*Request_Echo
	//	*Request_Flush
	//	*Request_Info
	//	*Request_SetOption
	//	*Request_InitChain
	//	*Request_Query
	//	*Request_BeginBlock
	//	*Request_CheckTx
	//	*Request_DeliverTx
	//	*Request_EndBlock
	//	*Request_Commit
	Value isRequest_Value `protobuf_oneof:"value"`
}

func ToRequestBeginBlock

func ToRequestBeginBlock(req RequestBeginBlock) *Request

func ToRequestCheckTx

func ToRequestCheckTx(tx []byte) *Request

func ToRequestCleanData

func ToRequestCleanData() *Request

func ToRequestCommit

func ToRequestCommit() *Request

func ToRequestDeliverTx

func ToRequestDeliverTx(tx []byte) *Request

func ToRequestEcho

func ToRequestEcho(message string) *Request

func ToRequestEndBlock

func ToRequestEndBlock(req RequestEndBlock) *Request

func ToRequestFlush

func ToRequestFlush() *Request

func ToRequestGetGenesis

func ToRequestGetGenesis() *Request

func ToRequestInfo

func ToRequestInfo(req RequestInfo) *Request

func ToRequestInitChain

func ToRequestInitChain(req RequestInitChain) *Request

func ToRequestQuery

func ToRequestQuery(req RequestQuery) *Request

func ToRequestQueryEx

func ToRequestQueryEx(req RequestQueryEx) *Request

func ToRequestRollback

func ToRequestRollback() *Request

func ToRequestSetOption

func ToRequestSetOption(req RequestSetOption) *Request

func (*Request) Descriptor

func (*Request) Descriptor() ([]byte, []int)

func (*Request) GetBeginBlock

func (m *Request) GetBeginBlock() *RequestBeginBlock

func (*Request) GetCheckTx

func (m *Request) GetCheckTx() *RequestCheckTx

func (*Request) GetCleanData

func (m *Request) GetCleanData() *RequestCleanData

func (*Request) GetCommit

func (m *Request) GetCommit() *RequestCommit

func (*Request) GetDeliverTx

func (m *Request) GetDeliverTx() *RequestDeliverTx

func (*Request) GetEcho

func (m *Request) GetEcho() *RequestEcho

func (*Request) GetEndBlock

func (m *Request) GetEndBlock() *RequestEndBlock

func (*Request) GetFlush

func (m *Request) GetFlush() *RequestFlush

func (*Request) GetGenesis

func (m *Request) GetGenesis() *RequestGetGenesis

func (*Request) GetInfo

func (m *Request) GetInfo() *RequestInfo

func (*Request) GetInitChain

func (m *Request) GetInitChain() *RequestInitChain

func (*Request) GetQuery

func (m *Request) GetQuery() *RequestQuery

func (*Request) GetQueryEx

func (m *Request) GetQueryEx() *RequestQueryEx

func (*Request) GetRollback

func (m *Request) GetRollback() *RequestRollback

func (*Request) GetSetOption

func (m *Request) GetSetOption() *RequestSetOption

func (*Request) GetValue

func (m *Request) GetValue() isRequest_Value

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_OneofFuncs

func (*Request) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type RequestBeginBlock

type RequestBeginBlock struct {
	Hash                []byte     `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Header              Header     `protobuf:"bytes,2,opt,name=header" json:"header"`
	AbsentValidators    []int32    `protobuf:"varint,3,rep,packed,name=absent_validators,json=absentValidators" json:"absent_validators,omitempty"`
	ByzantineValidators []Evidence `protobuf:"bytes,4,rep,name=byzantine_validators,json=byzantineValidators" json:"byzantine_validators"`
}

func (*RequestBeginBlock) Descriptor

func (*RequestBeginBlock) Descriptor() ([]byte, []int)

func (*RequestBeginBlock) GetAbsentValidators

func (m *RequestBeginBlock) GetAbsentValidators() []int32

func (*RequestBeginBlock) GetByzantineValidators

func (m *RequestBeginBlock) GetByzantineValidators() []Evidence

func (*RequestBeginBlock) GetHash

func (m *RequestBeginBlock) GetHash() []byte

func (*RequestBeginBlock) GetHeader

func (m *RequestBeginBlock) GetHeader() Header

func (*RequestBeginBlock) ProtoMessage

func (*RequestBeginBlock) ProtoMessage()

func (*RequestBeginBlock) Reset

func (m *RequestBeginBlock) Reset()

func (*RequestBeginBlock) String

func (m *RequestBeginBlock) String() string

type RequestCheckTx

type RequestCheckTx struct {
	Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
}

func (*RequestCheckTx) Descriptor

func (*RequestCheckTx) Descriptor() ([]byte, []int)

func (*RequestCheckTx) GetTx

func (m *RequestCheckTx) GetTx() []byte

func (*RequestCheckTx) ProtoMessage

func (*RequestCheckTx) ProtoMessage()

func (*RequestCheckTx) Reset

func (m *RequestCheckTx) Reset()

func (*RequestCheckTx) String

func (m *RequestCheckTx) String() string

type RequestCleanData

type RequestCleanData struct {
}

func (*RequestCleanData) Descriptor

func (*RequestCleanData) Descriptor() ([]byte, []int)

func (*RequestCleanData) ProtoMessage

func (*RequestCleanData) ProtoMessage()

func (*RequestCleanData) Reset

func (m *RequestCleanData) Reset()

func (*RequestCleanData) String

func (m *RequestCleanData) String() string

type RequestCommit

type RequestCommit struct {
}

func (*RequestCommit) Descriptor

func (*RequestCommit) Descriptor() ([]byte, []int)

func (*RequestCommit) ProtoMessage

func (*RequestCommit) ProtoMessage()

func (*RequestCommit) Reset

func (m *RequestCommit) Reset()

func (*RequestCommit) String

func (m *RequestCommit) String() string

type RequestDeliverTx

type RequestDeliverTx struct {
	Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
}

func (*RequestDeliverTx) Descriptor

func (*RequestDeliverTx) Descriptor() ([]byte, []int)

func (*RequestDeliverTx) GetTx

func (m *RequestDeliverTx) GetTx() []byte

func (*RequestDeliverTx) ProtoMessage

func (*RequestDeliverTx) ProtoMessage()

func (*RequestDeliverTx) Reset

func (m *RequestDeliverTx) Reset()

func (*RequestDeliverTx) String

func (m *RequestDeliverTx) String() string

type RequestEcho

type RequestEcho struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
}

func (*RequestEcho) Descriptor

func (*RequestEcho) Descriptor() ([]byte, []int)

func (*RequestEcho) GetMessage

func (m *RequestEcho) GetMessage() string

func (*RequestEcho) ProtoMessage

func (*RequestEcho) ProtoMessage()

func (*RequestEcho) Reset

func (m *RequestEcho) Reset()

func (*RequestEcho) String

func (m *RequestEcho) String() string

type RequestEndBlock

type RequestEndBlock struct {
	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
}

func (*RequestEndBlock) Descriptor

func (*RequestEndBlock) Descriptor() ([]byte, []int)

func (*RequestEndBlock) GetHeight

func (m *RequestEndBlock) GetHeight() int64

func (*RequestEndBlock) ProtoMessage

func (*RequestEndBlock) ProtoMessage()

func (*RequestEndBlock) Reset

func (m *RequestEndBlock) Reset()

func (*RequestEndBlock) String

func (m *RequestEndBlock) String() string

type RequestFlush

type RequestFlush struct {
}

func (*RequestFlush) Descriptor

func (*RequestFlush) Descriptor() ([]byte, []int)

func (*RequestFlush) ProtoMessage

func (*RequestFlush) ProtoMessage()

func (*RequestFlush) Reset

func (m *RequestFlush) Reset()

func (*RequestFlush) String

func (m *RequestFlush) String() string

type RequestGetGenesis

type RequestGetGenesis struct {
}

func (*RequestGetGenesis) Descriptor

func (*RequestGetGenesis) Descriptor() ([]byte, []int)

func (*RequestGetGenesis) ProtoMessage

func (*RequestGetGenesis) ProtoMessage()

func (*RequestGetGenesis) Reset

func (m *RequestGetGenesis) Reset()

func (*RequestGetGenesis) String

func (m *RequestGetGenesis) String() string

type RequestInfo

type RequestInfo struct {
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Host    string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	Port    string `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty"`
}

func (*RequestInfo) Descriptor

func (*RequestInfo) Descriptor() ([]byte, []int)

func (*RequestInfo) GetVersion

func (m *RequestInfo) GetVersion() string

func (*RequestInfo) ProtoMessage

func (*RequestInfo) ProtoMessage()

func (*RequestInfo) Reset

func (m *RequestInfo) Reset()

func (*RequestInfo) String

func (m *RequestInfo) String() string

type RequestInitChain

type RequestInitChain struct {
	Validators    []Validator `protobuf:"bytes,1,rep,name=validators" json:"validators"`
	ChainId       string      `protobuf:"bytes,2,rep,name=chain_id" json:"chain_id"`
	ChainVersion  int64       `protobuf:"varint,3,rep,name=chain_version" json:"chain_version"`
	AppStateBytes []byte      `protobuf:"bytes,4,opt,name=app_state_bytes,json=appStateBytes,proto3" json:"app_state_bytes,omitempty"`
}

func (*RequestInitChain) Descriptor

func (*RequestInitChain) Descriptor() ([]byte, []int)

func (*RequestInitChain) GetAppStateBytes

func (m *RequestInitChain) GetAppStateBytes() []byte

func (*RequestInitChain) GetValidators

func (m *RequestInitChain) GetValidators() []Validator

func (*RequestInitChain) ProtoMessage

func (*RequestInitChain) ProtoMessage()

func (*RequestInitChain) Reset

func (m *RequestInitChain) Reset()

func (*RequestInitChain) String

func (m *RequestInitChain) String() string

type RequestQuery

type RequestQuery struct {
	Data   []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Path   string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Height int64  `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	Prove  bool   `protobuf:"varint,4,opt,name=prove,proto3" json:"prove,omitempty"`
}

func (*RequestQuery) Descriptor

func (*RequestQuery) Descriptor() ([]byte, []int)

func (*RequestQuery) GetData

func (m *RequestQuery) GetData() []byte

func (*RequestQuery) GetHeight

func (m *RequestQuery) GetHeight() int64

func (*RequestQuery) GetPath

func (m *RequestQuery) GetPath() string

func (*RequestQuery) GetProve

func (m *RequestQuery) GetProve() bool

func (*RequestQuery) ProtoMessage

func (*RequestQuery) ProtoMessage()

func (*RequestQuery) Reset

func (m *RequestQuery) Reset()

func (*RequestQuery) String

func (m *RequestQuery) String() string

type RequestQueryEx

type RequestQueryEx struct {
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
}

func (*RequestQueryEx) Descriptor

func (*RequestQueryEx) Descriptor() ([]byte, []int)

func (*RequestQueryEx) GetPath

func (m *RequestQueryEx) GetPath() string

func (*RequestQueryEx) ProtoMessage

func (*RequestQueryEx) ProtoMessage()

func (*RequestQueryEx) Reset

func (m *RequestQueryEx) Reset()

func (*RequestQueryEx) String

func (m *RequestQueryEx) String() string

type RequestRollback

type RequestRollback struct {
}

func (*RequestRollback) Descriptor

func (*RequestRollback) Descriptor() ([]byte, []int)

func (*RequestRollback) ProtoMessage

func (*RequestRollback) ProtoMessage()

func (*RequestRollback) Reset

func (m *RequestRollback) Reset()

func (*RequestRollback) String

func (m *RequestRollback) String() string

type RequestSetOption

type RequestSetOption struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

nondeterministic

func (*RequestSetOption) Descriptor

func (*RequestSetOption) Descriptor() ([]byte, []int)

func (*RequestSetOption) GetKey

func (m *RequestSetOption) GetKey() string

func (*RequestSetOption) GetValue

func (m *RequestSetOption) GetValue() string

func (*RequestSetOption) ProtoMessage

func (*RequestSetOption) ProtoMessage()

func (*RequestSetOption) Reset

func (m *RequestSetOption) Reset()

func (*RequestSetOption) String

func (m *RequestSetOption) String() string

type Request_BeginBlock

type Request_BeginBlock struct {
	BeginBlock *RequestBeginBlock `protobuf:"bytes,8,opt,name=begin_block,json=beginBlock,oneof"`
}

type Request_CheckTx

type Request_CheckTx struct {
	CheckTx *RequestCheckTx `protobuf:"bytes,9,opt,name=check_tx,json=checkTx,oneof"`
}

type Request_CleanData

type Request_CleanData struct {
	ClenaData *RequestCleanData `protobuf:"bytes,13,opt,name=commit,oneof"`
}

type Request_Commit

type Request_Commit struct {
	Commit *RequestCommit `protobuf:"bytes,12,opt,name=commit,oneof"`
}

type Request_DeliverTx

type Request_DeliverTx struct {
	DeliverTx *RequestDeliverTx `protobuf:"bytes,19,opt,name=deliver_tx,json=deliverTx,oneof"`
}

type Request_Echo

type Request_Echo struct {
	Echo *RequestEcho `protobuf:"bytes,2,opt,name=echo,oneof"`
}

type Request_EndBlock

type Request_EndBlock struct {
	EndBlock *RequestEndBlock `protobuf:"bytes,11,opt,name=end_block,json=endBlock,oneof"`
}

type Request_Flush

type Request_Flush struct {
	Flush *RequestFlush `protobuf:"bytes,3,opt,name=flush,oneof"`
}

type Request_GetGenesis

type Request_GetGenesis struct {
	GetGenesis *RequestGetGenesis `protobuf:"bytes,15,opt,name=get_genesis,oneof"`
}

type Request_Info

type Request_Info struct {
	Info *RequestInfo `protobuf:"bytes,4,opt,name=info,oneof"`
}

type Request_InitChain

type Request_InitChain struct {
	InitChain *RequestInitChain `protobuf:"bytes,6,opt,name=init_chain,json=initChain,oneof"`
}

type Request_Query

type Request_Query struct {
	Query *RequestQuery `protobuf:"bytes,7,opt,name=query,oneof"`
}

type Request_QueryEx

type Request_QueryEx struct {
	QueryEx *RequestQueryEx `protobuf:"bytes,14,opt,name=queryEx,oneof"`
}

type Request_Rollback

type Request_Rollback struct {
	Rollback *RequestRollback `protobuf:"bytes,16,opt,name=rollback,oneof"`
}

type Request_SetOption

type Request_SetOption struct {
	SetOption *RequestSetOption `protobuf:"bytes,5,opt,name=set_option,json=setOption,oneof"`
}

type Response

type Response struct {
	// Types that are valid to be assigned to Value:
	//	*Response_Exception
	//	*Response_Echo
	//	*Response_Flush
	//	*Response_Info
	//	*Response_SetOption
	//	*Response_InitChain
	//	*Response_Query
	//	*Response_BeginBlock
	//	*Response_CheckTx
	//	*Response_DeliverTx
	//	*Response_EndBlock
	//	*Response_Commit
	Value isResponse_Value `protobuf_oneof:"value"`
}

func ToResponseBeginBlock

func ToResponseBeginBlock(res ResponseBeginBlock) *Response

func ToResponseCheckTx

func ToResponseCheckTx(res ResponseCheckTx) *Response

func ToResponseCleanData

func ToResponseCleanData(res ResponseCleanData) *Response

func ToResponseCommit

func ToResponseCommit(res ResponseCommit) *Response

func ToResponseDeliverTx

func ToResponseDeliverTx(res ResponseDeliverTx) *Response

func ToResponseEcho

func ToResponseEcho(message string) *Response

func ToResponseEndBlock

func ToResponseEndBlock(res ResponseEndBlock) *Response

func ToResponseException

func ToResponseException(errStr string) *Response

func ToResponseFlush

func ToResponseFlush() *Response

func ToResponseGetGenesis

func ToResponseGetGenesis(res ResponseGetGenesis) *Response

func ToResponseInfo

func ToResponseInfo(res ResponseInfo) *Response

func ToResponseInitChain

func ToResponseInitChain(res ResponseInitChain) *Response

func ToResponseQuery

func ToResponseQuery(res ResponseQuery) *Response

func ToResponseQueryEx

func ToResponseQueryEx(res ResponseQueryEx) *Response

func ToResponseRollback

func ToResponseRollback(res ResponseRollback) *Response

func ToResponseSetOption

func ToResponseSetOption(res ResponseSetOption) *Response

func (*Response) Descriptor

func (*Response) Descriptor() ([]byte, []int)

func (*Response) GetBeginBlock

func (m *Response) GetBeginBlock() *ResponseBeginBlock

func (*Response) GetCheckTx

func (m *Response) GetCheckTx() *ResponseCheckTx

func (*Response) GetCleanData

func (m *Response) GetCleanData() *ResponseCleanData

func (*Response) GetCommit

func (m *Response) GetCommit() *ResponseCommit

func (*Response) GetDeliverTx

func (m *Response) GetDeliverTx() *ResponseDeliverTx

func (*Response) GetEcho

func (m *Response) GetEcho() *ResponseEcho

func (*Response) GetEndBlock

func (m *Response) GetEndBlock() *ResponseEndBlock

func (*Response) GetException

func (m *Response) GetException() *ResponseException

func (*Response) GetFlush

func (m *Response) GetFlush() *ResponseFlush

func (*Response) GetGenesis

func (m *Response) GetGenesis() *ResponseGetGenesis

func (*Response) GetInfo

func (m *Response) GetInfo() *ResponseInfo

func (*Response) GetInitChain

func (m *Response) GetInitChain() *ResponseInitChain

func (*Response) GetQuery

func (m *Response) GetQuery() *ResponseQuery

func (*Response) GetQueryEx

func (m *Response) GetQueryEx() *ResponseQueryEx

func (*Response) GetSetOption

func (m *Response) GetSetOption() *ResponseSetOption

func (*Response) GetValue

func (m *Response) GetValue() isResponse_Value

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) Rollback

func (m *Response) Rollback() *ResponseRollback

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_OneofFuncs

func (*Response) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type ResponseBeginBlock

type ResponseBeginBlock struct {
	Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Log  string `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty"`
}

func (*ResponseBeginBlock) Descriptor

func (*ResponseBeginBlock) Descriptor() ([]byte, []int)

func (*ResponseBeginBlock) ProtoMessage

func (*ResponseBeginBlock) ProtoMessage()

func (*ResponseBeginBlock) Reset

func (m *ResponseBeginBlock) Reset()

func (*ResponseBeginBlock) String

func (m *ResponseBeginBlock) String() string

type ResponseCheckTx

type ResponseCheckTx struct {
	Code     uint32          `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Data     string          `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Log      string          `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
	Info     string          `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"`
	GasLimit uint64          `protobuf:"varint,5,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	GasUsed  uint64          `protobuf:"varint,6,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
	Fee      uint64          `protobuf:"varint,7,opt,name=fee,json=fee,proto3" json:"fee,omitempty"`
	Tags     []common.KVPair `protobuf:"bytes,8,rep,name=tags" json:"tags,omitempty"`
	TxHash   common.HexBytes `protobuf:"bytes,9,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	Height   int64           `protobuf:"varint,10,opt,name=height,proto3" json:"height,omitempty"`
}

func (*ResponseCheckTx) Descriptor

func (*ResponseCheckTx) Descriptor() ([]byte, []int)

func (*ResponseCheckTx) GetCode

func (m *ResponseCheckTx) GetCode() uint32

func (*ResponseCheckTx) GetData

func (m *ResponseCheckTx) GetData() string

func (*ResponseCheckTx) GetFee

func (m *ResponseCheckTx) GetFee() uint64

func (*ResponseCheckTx) GetGasUsed

func (m *ResponseCheckTx) GetGasUsed() uint64

func (*ResponseCheckTx) GetGasWanted

func (m *ResponseCheckTx) GetGasWanted() uint64

func (*ResponseCheckTx) GetInfo

func (m *ResponseCheckTx) GetInfo() string

func (*ResponseCheckTx) GetLog

func (m *ResponseCheckTx) GetLog() string

func (*ResponseCheckTx) GetTags

func (m *ResponseCheckTx) GetTags() []common.KVPair

func (ResponseCheckTx) IsErr

func (r ResponseCheckTx) IsErr() bool

IsErr returns true if Code is something other than OK.

func (ResponseCheckTx) IsOK

func (r ResponseCheckTx) IsOK() bool

IsOK returns true if Code is OK.

func (*ResponseCheckTx) ProtoMessage

func (*ResponseCheckTx) ProtoMessage()

func (*ResponseCheckTx) Reset

func (m *ResponseCheckTx) Reset()

func (*ResponseCheckTx) String

func (m *ResponseCheckTx) String() string

func (*ResponseCheckTx) UnmarshalJSON

func (r *ResponseCheckTx) UnmarshalJSON(b []byte) error
func (r *ResponseCheckTx) MarshalJSON() ([]byte, error) {
    s, err := jsonpbMarshaller.MarshalToString(r)
    return []byte(s), err
}

type ResponseCleanData

type ResponseCleanData struct {
	Code int64  `protobuf:"varint,1,opt,name=code,json=code" json:"code"`
	Log  string `protobuf:"bytes,2,rep,name=log,json=log" json:"log"`
}

func (*ResponseCleanData) Descriptor

func (*ResponseCleanData) Descriptor() ([]byte, []int)

func (*ResponseCleanData) ProtoMessage

func (*ResponseCleanData) ProtoMessage()

func (*ResponseCleanData) Reset

func (m *ResponseCleanData) Reset()

func (*ResponseCleanData) String

func (m *ResponseCleanData) String() string

type ResponseCommit

type ResponseCommit struct {
	AppState []byte `protobuf:"bytes,1,opt,name=appstate,proto3" json:"app_state,omitempty"`
}

func (*ResponseCommit) Descriptor

func (*ResponseCommit) Descriptor() ([]byte, []int)

func (*ResponseCommit) GetFee

func (m *ResponseCommit) GetFee() uint64

func (*ResponseCommit) GetHashLists

func (m *ResponseCommit) GetHashLists() []crypto.Hash

func (*ResponseCommit) GetLastAppHash

func (m *ResponseCommit) GetLastAppHash() crypto.Hash

func (*ResponseCommit) GetReward

func (m *ResponseCommit) GetReward() []common.KVPair

func (*ResponseCommit) ProtoMessage

func (*ResponseCommit) ProtoMessage()

func (*ResponseCommit) Reset

func (m *ResponseCommit) Reset()

func (*ResponseCommit) String

func (m *ResponseCommit) String() string

func (*ResponseCommit) UnmarshalJSON

func (r *ResponseCommit) UnmarshalJSON(b []byte) error
func (r *ResponseCommit) MarshalJSON() ([]byte, error) {
    s, err := jsonpbMarshaller.MarshalToString(r)
    return []byte(s), err
}

type ResponseDeliverTx

type ResponseDeliverTx struct {
	Code     uint32          `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Data     string          `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Log      string          `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
	Info     string          `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"`
	GasLimit uint64          `protobuf:"varint,5,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	GasUsed  uint64          `protobuf:"varint,6,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
	Fee      uint64          `protobuf:"varint,7,opt,name=fee,json=fee,proto3" json:"fee,omitempty"`
	Tags     []common.KVPair `protobuf:"bytes,8,rep,name=tags" json:"tags,omitempty"`
	TxHash   common.HexBytes `protobuf:"bytes,9,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	Height   int64           `protobuf:"varint,10,opt,name=height,proto3" json:"height,omitempty"`
}

func (*ResponseDeliverTx) Descriptor

func (*ResponseDeliverTx) Descriptor() ([]byte, []int)

func (*ResponseDeliverTx) GetCode

func (m *ResponseDeliverTx) GetCode() uint32

func (*ResponseDeliverTx) GetData

func (m *ResponseDeliverTx) GetData() string

func (*ResponseDeliverTx) GetFee

func (m *ResponseDeliverTx) GetFee() uint64

func (*ResponseDeliverTx) GetGasLimit

func (m *ResponseDeliverTx) GetGasLimit() uint64

func (*ResponseDeliverTx) GetGasUsed

func (m *ResponseDeliverTx) GetGasUsed() uint64

func (*ResponseDeliverTx) GetInfo

func (m *ResponseDeliverTx) GetInfo() string

func (*ResponseDeliverTx) GetLog

func (m *ResponseDeliverTx) GetLog() string

func (*ResponseDeliverTx) GetTags

func (m *ResponseDeliverTx) GetTags() []common.KVPair

func (ResponseDeliverTx) IsErr

func (r ResponseDeliverTx) IsErr() bool

IsErr returns true if Code is something other than OK.

func (ResponseDeliverTx) IsOK

func (r ResponseDeliverTx) IsOK() bool

IsOK returns true if Code is OK.

func (*ResponseDeliverTx) ProtoMessage

func (*ResponseDeliverTx) ProtoMessage()

func (*ResponseDeliverTx) Reset

func (m *ResponseDeliverTx) Reset()

func (*ResponseDeliverTx) String

func (m *ResponseDeliverTx) String() string

func (*ResponseDeliverTx) UnmarshalJSON

func (r *ResponseDeliverTx) UnmarshalJSON(b []byte) error
func (r *ResponseDeliverTx) MarshalJSON() ([]byte, error) {
    s, err := jsonpbMarshaller.MarshalToString(r)
    return []byte(s), err
}

type ResponseEcho

type ResponseEcho struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
}

func (*ResponseEcho) Descriptor

func (*ResponseEcho) Descriptor() ([]byte, []int)

func (*ResponseEcho) GetMessage

func (m *ResponseEcho) GetMessage() string

func (*ResponseEcho) ProtoMessage

func (*ResponseEcho) ProtoMessage()

func (*ResponseEcho) Reset

func (m *ResponseEcho) Reset()

func (*ResponseEcho) String

func (m *ResponseEcho) String() string

type ResponseEndBlock

type ResponseEndBlock struct {
	ValidatorUpdates      []Validator         `protobuf:"bytes,1,rep,name=validator_updates,json=validatorUpdates" json:"validator_updates"`
	ConsensusParamUpdates *ConsensusParams    `protobuf:"bytes,2,opt,name=consensus_param_updates,json=consensusParamUpdates" json:"consensus_param_updates,omitempty"`
	RewardAmount          int64               `protobuf:"varint,3,opt,name=rewardAmount,json=rewardAmount" json:"rewardAmount,omitempty"`
	ChainVersion          int64               `protobuf:"varint,4,opt,name=chain_version,json=chainVersion" json:"chainVersion,omitempty"`
	SCGenesis             []*SideChainGenesis `protobuf:"bytes,5,rep,name=sc_genesis,json=scGenesis" json:"scGenesis,omitempty`
}

func (*ResponseEndBlock) Descriptor

func (*ResponseEndBlock) Descriptor() ([]byte, []int)

func (*ResponseEndBlock) GetConsensusParamUpdates

func (m *ResponseEndBlock) GetConsensusParamUpdates() *ConsensusParams

func (*ResponseEndBlock) GetValidatorUpdates

func (m *ResponseEndBlock) GetValidatorUpdates() []Validator

func (*ResponseEndBlock) ProtoMessage

func (*ResponseEndBlock) ProtoMessage()

func (*ResponseEndBlock) Reset

func (m *ResponseEndBlock) Reset()

func (*ResponseEndBlock) String

func (m *ResponseEndBlock) String() string

type ResponseException

type ResponseException struct {
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
}

nondeterministic

func (*ResponseException) Descriptor

func (*ResponseException) Descriptor() ([]byte, []int)

func (*ResponseException) GetError

func (m *ResponseException) GetError() string

func (*ResponseException) ProtoMessage

func (*ResponseException) ProtoMessage()

func (*ResponseException) Reset

func (m *ResponseException) Reset()

func (*ResponseException) String

func (m *ResponseException) String() string

type ResponseFlush

type ResponseFlush struct {
}

func (*ResponseFlush) Descriptor

func (*ResponseFlush) Descriptor() ([]byte, []int)

func (*ResponseFlush) ProtoMessage

func (*ResponseFlush) ProtoMessage()

func (*ResponseFlush) Reset

func (m *ResponseFlush) Reset()

func (*ResponseFlush) String

func (m *ResponseFlush) String() string

type ResponseGetGenesis

type ResponseGetGenesis struct {
	Code int64  `protobuf:"varint,1,opt,name=code,json=code" json:"code"`
	Log  string `protobuf:"bytes,2,rep,name=log,json=log" json:"log"`
	Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
}

func (*ResponseGetGenesis) Descriptor

func (*ResponseGetGenesis) Descriptor() ([]byte, []int)

func (*ResponseGetGenesis) ProtoMessage

func (*ResponseGetGenesis) ProtoMessage()

func (*ResponseGetGenesis) Reset

func (m *ResponseGetGenesis) Reset()

func (*ResponseGetGenesis) String

func (m *ResponseGetGenesis) String() string

type ResponseInfo

type ResponseInfo struct {
	Data            string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Version         string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	LastBlockHeight int64  `protobuf:"varint,3,opt,name=last_block_height,json=lastBlockHeight,proto3" json:"last_block_height,omitempty"`
	LastAppState    []byte `protobuf:"bytes,4,opt,name=last_app_state,json=lastAppState,proto3" json:"last_app_state,omitempty"`
}

func (*ResponseInfo) Descriptor

func (*ResponseInfo) Descriptor() ([]byte, []int)

func (*ResponseInfo) GetData

func (m *ResponseInfo) GetData() string

func (*ResponseInfo) GetLastBlockAppHash

func (m *ResponseInfo) GetLastBlockAppHash() []byte

func (*ResponseInfo) GetLastBlockHeight

func (m *ResponseInfo) GetLastBlockHeight() int64

func (*ResponseInfo) GetVersion

func (m *ResponseInfo) GetVersion() string

func (*ResponseInfo) ProtoMessage

func (*ResponseInfo) ProtoMessage()

func (*ResponseInfo) Reset

func (m *ResponseInfo) Reset()

func (*ResponseInfo) String

func (m *ResponseInfo) String() string

type ResponseInitChain

type ResponseInitChain struct {
	Code        uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Log         string `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty"`
	GenAppState []byte `protobuf:"bytes,3,opt,name=gen_app_state" json:"gen_app_state,omitempty"`
}

func (*ResponseInitChain) Descriptor

func (*ResponseInitChain) Descriptor() ([]byte, []int)

func (*ResponseInitChain) ProtoMessage

func (*ResponseInitChain) ProtoMessage()

func (*ResponseInitChain) Reset

func (m *ResponseInitChain) Reset()

func (*ResponseInitChain) String

func (m *ResponseInitChain) String() string

type ResponseQuery

type ResponseQuery struct {
	Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// bytes data = 2; // use "value" instead.
	Log    string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
	Info   string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"`
	Index  int64  `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
	Key    []byte `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"`
	Value  []byte `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"`
	Proof  []byte `protobuf:"bytes,8,opt,name=proof,proto3" json:"proof,omitempty"`
	Height int64  `protobuf:"varint,9,opt,name=height,proto3" json:"height,omitempty"`
}

func (*ResponseQuery) Descriptor

func (*ResponseQuery) Descriptor() ([]byte, []int)

func (*ResponseQuery) GetCode

func (m *ResponseQuery) GetCode() uint32

func (*ResponseQuery) GetHeight

func (m *ResponseQuery) GetHeight() int64

func (*ResponseQuery) GetIndex

func (m *ResponseQuery) GetIndex() int64

func (*ResponseQuery) GetInfo

func (m *ResponseQuery) GetInfo() string

func (*ResponseQuery) GetKey

func (m *ResponseQuery) GetKey() []byte

func (*ResponseQuery) GetLog

func (m *ResponseQuery) GetLog() string

func (*ResponseQuery) GetProof

func (m *ResponseQuery) GetProof() []byte

func (*ResponseQuery) GetValue

func (m *ResponseQuery) GetValue() []byte

func (ResponseQuery) IsErr

func (r ResponseQuery) IsErr() bool

IsErr returns true if Code is something other than OK.

func (ResponseQuery) IsOK

func (r ResponseQuery) IsOK() bool

IsOK returns true if Code is OK.

func (*ResponseQuery) ProtoMessage

func (*ResponseQuery) ProtoMessage()

func (*ResponseQuery) Reset

func (m *ResponseQuery) Reset()

func (*ResponseQuery) String

func (m *ResponseQuery) String() string

func (*ResponseQuery) UnmarshalJSON

func (r *ResponseQuery) UnmarshalJSON(b []byte) error
func (r *ResponseQuery) MarshalJSON() ([]byte, error) {
    s, err := jsonpbMarshaller.MarshalToString(r)
    return []byte(s), err
}

type ResponseQueryEx

type ResponseQueryEx struct {
	Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// bytes data = 2; // use "value" instead.
	Log       string     `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
	Info      string     `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"`
	Index     int64      `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
	KeyValues []KeyValue `protobuf:"bytes,6,rep,name=KeyValues" json:"KeyValues,omitempty"`
	Proof     []byte     `protobuf:"bytes,8,opt,name=proof,proto3" json:"proof,omitempty"`
	Height    int64      `protobuf:"varint,9,opt,name=height,proto3" json:"height,omitempty"`
}

func (*ResponseQueryEx) Descriptor

func (*ResponseQueryEx) Descriptor() ([]byte, []int)

func (*ResponseQueryEx) GetCode

func (m *ResponseQueryEx) GetCode() uint32

func (*ResponseQueryEx) GetHeight

func (m *ResponseQueryEx) GetHeight() int64

func (*ResponseQueryEx) GetIndex

func (m *ResponseQueryEx) GetIndex() int64

func (*ResponseQueryEx) GetInfo

func (m *ResponseQueryEx) GetInfo() string

func (*ResponseQueryEx) GetLog

func (m *ResponseQueryEx) GetLog() string

func (*ResponseQueryEx) GetProof

func (m *ResponseQueryEx) GetProof() []byte

func (ResponseQueryEx) IsErr

func (r ResponseQueryEx) IsErr() bool

IsErr returns true if Code is something other than OK.

func (ResponseQueryEx) IsOK

func (r ResponseQueryEx) IsOK() bool

IsOK returns true if Code is OK.

func (*ResponseQueryEx) ProtoMessage

func (*ResponseQueryEx) ProtoMessage()

func (*ResponseQueryEx) Reset

func (m *ResponseQueryEx) Reset()

func (*ResponseQueryEx) String

func (m *ResponseQueryEx) String() string

func (*ResponseQueryEx) UnmarshalJSON

func (r *ResponseQueryEx) UnmarshalJSON(b []byte) error

type ResponseRollback

type ResponseRollback struct {
	Code int64  `protobuf:"varint,1,opt,name=code,json=code" json:"code"`
	Log  string `protobuf:"bytes,2,rep,name=log,json=log" json:"log"`
}

func (*ResponseRollback) Descriptor

func (*ResponseRollback) Descriptor() ([]byte, []int)

func (*ResponseRollback) ProtoMessage

func (*ResponseRollback) ProtoMessage()

func (*ResponseRollback) Reset

func (m *ResponseRollback) Reset()

func (*ResponseRollback) String

func (m *ResponseRollback) String() string

type ResponseSetOption

type ResponseSetOption struct {
	Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// bytes data = 2;
	Log  string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
	Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"`
}

nondeterministic

func (*ResponseSetOption) Descriptor

func (*ResponseSetOption) Descriptor() ([]byte, []int)

func (*ResponseSetOption) GetCode

func (m *ResponseSetOption) GetCode() uint32

func (*ResponseSetOption) GetInfo

func (m *ResponseSetOption) GetInfo() string

func (*ResponseSetOption) GetLog

func (m *ResponseSetOption) GetLog() string

func (*ResponseSetOption) ProtoMessage

func (*ResponseSetOption) ProtoMessage()

func (*ResponseSetOption) Reset

func (m *ResponseSetOption) Reset()

func (*ResponseSetOption) String

func (m *ResponseSetOption) String() string

func (*ResponseSetOption) UnmarshalJSON

func (r *ResponseSetOption) UnmarshalJSON(b []byte) error
func (r *ResponseSetOption) MarshalJSON() ([]byte, error) {
    s, err := jsonpbMarshaller.MarshalToString(r)
    return []byte(s), err
}

type Response_BeginBlock

type Response_BeginBlock struct {
	BeginBlock *ResponseBeginBlock `protobuf:"bytes,8,opt,name=begin_block,json=beginBlock,oneof"`
}

type Response_CheckTx

type Response_CheckTx struct {
	CheckTx *ResponseCheckTx `protobuf:"bytes,9,opt,name=check_tx,json=checkTx,oneof"`
}

type Response_CleanData

type Response_CleanData struct {
	CleanData *ResponseCleanData `protobuf:"bytes,13,opt,name=clean_data,json=cleanData,oneof"`
}

type Response_Commit

type Response_Commit struct {
	Commit *ResponseCommit `protobuf:"bytes,12,opt,name=commit,oneof"`
}

type Response_DeliverTx

type Response_DeliverTx struct {
	DeliverTx *ResponseDeliverTx `protobuf:"bytes,10,opt,name=deliver_tx,json=deliverTx,oneof"`
}

type Response_Echo

type Response_Echo struct {
	Echo *ResponseEcho `protobuf:"bytes,2,opt,name=echo,oneof"`
}

type Response_EndBlock

type Response_EndBlock struct {
	EndBlock *ResponseEndBlock `protobuf:"bytes,11,opt,name=end_block,json=endBlock,oneof"`
}

type Response_Exception

type Response_Exception struct {
	Exception *ResponseException `protobuf:"bytes,1,opt,name=exception,oneof"`
}

type Response_Flush

type Response_Flush struct {
	Flush *ResponseFlush `protobuf:"bytes,3,opt,name=flush,oneof"`
}

type Response_GetGenesis

type Response_GetGenesis struct {
	Genesis *ResponseGetGenesis `protobuf:"bytes,15,opt,name=get_genesis,json=getGenesis,oneof"`
}

type Response_Info

type Response_Info struct {
	Info *ResponseInfo `protobuf:"bytes,4,opt,name=info,oneof"`
}

type Response_InitChain

type Response_InitChain struct {
	InitChain *ResponseInitChain `protobuf:"bytes,6,opt,name=init_chain,json=initChain,oneof"`
}

type Response_Query

type Response_Query struct {
	Query *ResponseQuery `protobuf:"bytes,7,opt,name=query,oneof"`
}

type Response_QueryEx

type Response_QueryEx struct {
	QueryEx *ResponseQueryEx `protobuf:"bytes,14,opt,name=queryEx,oneof"`
}

type Response_Rollback

type Response_Rollback struct {
	Rollback *ResponseRollback `protobuf:"bytes,16,opt,name=rollback,json=rollback,oneof"`
}

type Response_SetOption

type Response_SetOption struct {
	SetOption *ResponseSetOption `protobuf:"bytes,5,opt,name=set_option,json=setOption,oneof"`
}

type SideChainGenesis

type SideChainGenesis struct {
	SideChainID  string         `protobuf:"bytes,1,opt,name=side_chain_id,json=sideChainID,proto3" json:"sideChainID,omitempty"`
	GenesisInfo  string         `protobuf:"bytes,2,opt,name=genesis_info,json=genesisInfo,proto3" json:"genesisInfo,omitempty"`
	ContractData []ContractData `protobuf:"bytes,3,opt,name=contract_data,json=contractData,proto3" json:"contractData,omitempty"`
	Validators   []Validator    `protobuf:"bytes,4,opt,name=validators,json=validators,proto3" json:"validators,omitempty"`
}

func (*SideChainGenesis) Descriptor

func (*SideChainGenesis) Descriptor() ([]byte, []int)

func (*SideChainGenesis) ProtoMessage

func (*SideChainGenesis) ProtoMessage()

func (*SideChainGenesis) Reset

func (m *SideChainGenesis) Reset()

func (*SideChainGenesis) String

func (m *SideChainGenesis) String() string

type TxSize

type TxSize struct {
	MaxBytes int32 `protobuf:"varint,1,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"`
	MaxGas   int64 `protobuf:"varint,2,opt,name=max_gas,json=maxGas,proto3" json:"max_gas,omitempty"`
}

TxSize contain limits on the tx size.

func (*TxSize) Descriptor

func (*TxSize) Descriptor() ([]byte, []int)

func (*TxSize) GetMaxBytes

func (m *TxSize) GetMaxBytes() int32

func (*TxSize) GetMaxGas

func (m *TxSize) GetMaxGas() int64

func (*TxSize) ProtoMessage

func (*TxSize) ProtoMessage()

func (*TxSize) Reset

func (m *TxSize) Reset()

func (*TxSize) String

func (m *TxSize) String() string

type Validator

type Validator struct {
	PubKey     []byte `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
	Power      uint64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"`
	RewardAddr string `protobuf:"bytes,3,opt,name=reward_addr,json=rewardAddr,proto3" json:"reward_addr"`
	Name       string `protobuf:"bytes,4,opt,name=name,json=name,proto3" json:"name"`
}

func (*Validator) Descriptor

func (*Validator) Descriptor() ([]byte, []int)

func (*Validator) GetPower

func (m *Validator) GetPower() uint64

func (*Validator) GetPubKey

func (m *Validator) GetPubKey() []byte

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) Reset

func (m *Validator) Reset()

func (*Validator) String

func (m *Validator) String() string

type Validators

type Validators []Validator

Validators is a list of validators that implements the Sort interface

func (Validators) Len

func (v Validators) Len() int

func (Validators) Less

func (v Validators) Less(i, j int) bool

XXX: doesn't distinguish same validator with different power

func (Validators) Swap

func (v Validators) Swap(i, j int)

Jump to

Keyboard shortcuts

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