tendermintv1beta1

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 22 Imported by: 11

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Service_GetNodeInfo_FullMethodName             = "/cosmos.base.tendermint.v1beta1.Service/GetNodeInfo"
	Service_GetSyncing_FullMethodName              = "/cosmos.base.tendermint.v1beta1.Service/GetSyncing"
	Service_GetLatestBlock_FullMethodName          = "/cosmos.base.tendermint.v1beta1.Service/GetLatestBlock"
	Service_GetBlockByHeight_FullMethodName        = "/cosmos.base.tendermint.v1beta1.Service/GetBlockByHeight"
	Service_GetLatestValidatorSet_FullMethodName   = "/cosmos.base.tendermint.v1beta1.Service/GetLatestValidatorSet"
	Service_GetValidatorSetByHeight_FullMethodName = "/cosmos.base.tendermint.v1beta1.Service/GetValidatorSetByHeight"
	Service_ABCIQuery_FullMethodName               = "/cosmos.base.tendermint.v1beta1.Service/ABCIQuery"
)

Variables

View Source
var File_cosmos_base_tendermint_v1beta1_query_proto protoreflect.FileDescriptor
View Source
var File_cosmos_base_tendermint_v1beta1_types_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.base.tendermint.v1beta1.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetNodeInfo",
			Handler:    _Service_GetNodeInfo_Handler,
		},
		{
			MethodName: "GetSyncing",
			Handler:    _Service_GetSyncing_Handler,
		},
		{
			MethodName: "GetLatestBlock",
			Handler:    _Service_GetLatestBlock_Handler,
		},
		{
			MethodName: "GetBlockByHeight",
			Handler:    _Service_GetBlockByHeight_Handler,
		},
		{
			MethodName: "GetLatestValidatorSet",
			Handler:    _Service_GetLatestValidatorSet_Handler,
		},
		{
			MethodName: "GetValidatorSetByHeight",
			Handler:    _Service_GetValidatorSetByHeight_Handler,
		},
		{
			MethodName: "ABCIQuery",
			Handler:    _Service_ABCIQuery_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/base/tendermint/v1beta1/query.proto",
}

Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterServiceServer

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

Types

type ABCIQueryRequest

type ABCIQueryRequest 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"`
	// contains filtered or unexported fields
}

ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query.

func (*ABCIQueryRequest) Descriptor deprecated

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

Deprecated: Use ABCIQueryRequest.ProtoReflect.Descriptor instead.

func (*ABCIQueryRequest) GetData

func (x *ABCIQueryRequest) GetData() []byte

func (*ABCIQueryRequest) GetHeight

func (x *ABCIQueryRequest) GetHeight() int64

func (*ABCIQueryRequest) GetPath

func (x *ABCIQueryRequest) GetPath() string

func (*ABCIQueryRequest) GetProve

func (x *ABCIQueryRequest) GetProve() bool

func (*ABCIQueryRequest) ProtoMessage

func (*ABCIQueryRequest) ProtoMessage()

func (*ABCIQueryRequest) ProtoReflect

func (x *ABCIQueryRequest) ProtoReflect() protoreflect.Message

func (*ABCIQueryRequest) Reset

func (x *ABCIQueryRequest) Reset()

func (*ABCIQueryRequest) String

func (x *ABCIQueryRequest) String() string

type ABCIQueryResponse

type ABCIQueryResponse struct {
	Code      uint32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Log       string    `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`   // nondeterministic
	Info      string    `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` // nondeterministic
	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"`
	ProofOps  *ProofOps `protobuf:"bytes,8,opt,name=proof_ops,json=proofOps,proto3" json:"proof_ops,omitempty"`
	Height    int64     `protobuf:"varint,9,opt,name=height,proto3" json:"height,omitempty"`
	Codespace string    `protobuf:"bytes,10,opt,name=codespace,proto3" json:"codespace,omitempty"`
	// contains filtered or unexported fields
}

ABCIQueryResponse defines the response structure for the ABCIQuery gRPC query.

Note: This type is a duplicate of the ResponseQuery proto type defined in Tendermint.

func (*ABCIQueryResponse) Descriptor deprecated

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

Deprecated: Use ABCIQueryResponse.ProtoReflect.Descriptor instead.

func (*ABCIQueryResponse) GetCode

func (x *ABCIQueryResponse) GetCode() uint32

func (*ABCIQueryResponse) GetCodespace

func (x *ABCIQueryResponse) GetCodespace() string

func (*ABCIQueryResponse) GetHeight

func (x *ABCIQueryResponse) GetHeight() int64

func (*ABCIQueryResponse) GetIndex

func (x *ABCIQueryResponse) GetIndex() int64

func (*ABCIQueryResponse) GetInfo

func (x *ABCIQueryResponse) GetInfo() string

func (*ABCIQueryResponse) GetKey

func (x *ABCIQueryResponse) GetKey() []byte

func (*ABCIQueryResponse) GetLog

func (x *ABCIQueryResponse) GetLog() string

func (*ABCIQueryResponse) GetProofOps

func (x *ABCIQueryResponse) GetProofOps() *ProofOps

func (*ABCIQueryResponse) GetValue

func (x *ABCIQueryResponse) GetValue() []byte

func (*ABCIQueryResponse) ProtoMessage

func (*ABCIQueryResponse) ProtoMessage()

func (*ABCIQueryResponse) ProtoReflect

func (x *ABCIQueryResponse) ProtoReflect() protoreflect.Message

func (*ABCIQueryResponse) Reset

func (x *ABCIQueryResponse) Reset()

func (*ABCIQueryResponse) String

func (x *ABCIQueryResponse) String() string

type Block

type Block struct {
	Header     *Header             `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Data       *types.Data         `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Evidence   *types.EvidenceList `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence,omitempty"`
	LastCommit *types.Commit       `protobuf:"bytes,4,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"`
	// contains filtered or unexported fields
}

Block is tendermint type Block, with the Header proposer address field converted to bech32 string.

func (*Block) Descriptor deprecated

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

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetData

func (x *Block) GetData() *types.Data

func (*Block) GetEvidence

func (x *Block) GetEvidence() *types.EvidenceList

func (*Block) GetHeader

func (x *Block) GetHeader() *Header

func (*Block) GetLastCommit

func (x *Block) GetLastCommit() *types.Commit

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

func (x *Block) ProtoReflect() protoreflect.Message

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

type GetBlockByHeightRequest

type GetBlockByHeightRequest struct {
	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method.

func (*GetBlockByHeightRequest) Descriptor deprecated

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

Deprecated: Use GetBlockByHeightRequest.ProtoReflect.Descriptor instead.

func (*GetBlockByHeightRequest) GetHeight

func (x *GetBlockByHeightRequest) GetHeight() int64

func (*GetBlockByHeightRequest) ProtoMessage

func (*GetBlockByHeightRequest) ProtoMessage()

func (*GetBlockByHeightRequest) ProtoReflect

func (x *GetBlockByHeightRequest) ProtoReflect() protoreflect.Message

func (*GetBlockByHeightRequest) Reset

func (x *GetBlockByHeightRequest) Reset()

func (*GetBlockByHeightRequest) String

func (x *GetBlockByHeightRequest) String() string

type GetBlockByHeightResponse

type GetBlockByHeightResponse struct {
	BlockId *types.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	// Deprecated: please use `sdk_block` instead
	Block *types.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
	// Since: cosmos-sdk 0.47
	SdkBlock *Block `protobuf:"bytes,3,opt,name=sdk_block,json=sdkBlock,proto3" json:"sdk_block,omitempty"`
	// contains filtered or unexported fields
}

GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method.

func (*GetBlockByHeightResponse) Descriptor deprecated

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

Deprecated: Use GetBlockByHeightResponse.ProtoReflect.Descriptor instead.

func (*GetBlockByHeightResponse) GetBlock

func (x *GetBlockByHeightResponse) GetBlock() *types.Block

func (*GetBlockByHeightResponse) GetBlockId

func (x *GetBlockByHeightResponse) GetBlockId() *types.BlockID

func (*GetBlockByHeightResponse) GetSdkBlock

func (x *GetBlockByHeightResponse) GetSdkBlock() *Block

func (*GetBlockByHeightResponse) ProtoMessage

func (*GetBlockByHeightResponse) ProtoMessage()

func (*GetBlockByHeightResponse) ProtoReflect

func (x *GetBlockByHeightResponse) ProtoReflect() protoreflect.Message

func (*GetBlockByHeightResponse) Reset

func (x *GetBlockByHeightResponse) Reset()

func (*GetBlockByHeightResponse) String

func (x *GetBlockByHeightResponse) String() string

type GetLatestBlockRequest

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

GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method.

func (*GetLatestBlockRequest) Descriptor deprecated

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

Deprecated: Use GetLatestBlockRequest.ProtoReflect.Descriptor instead.

func (*GetLatestBlockRequest) ProtoMessage

func (*GetLatestBlockRequest) ProtoMessage()

func (*GetLatestBlockRequest) ProtoReflect

func (x *GetLatestBlockRequest) ProtoReflect() protoreflect.Message

func (*GetLatestBlockRequest) Reset

func (x *GetLatestBlockRequest) Reset()

func (*GetLatestBlockRequest) String

func (x *GetLatestBlockRequest) String() string

type GetLatestBlockResponse

type GetLatestBlockResponse struct {
	BlockId *types.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	// Deprecated: please use `sdk_block` instead
	Block *types.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
	// Since: cosmos-sdk 0.47
	SdkBlock *Block `protobuf:"bytes,3,opt,name=sdk_block,json=sdkBlock,proto3" json:"sdk_block,omitempty"`
	// contains filtered or unexported fields
}

GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method.

func (*GetLatestBlockResponse) Descriptor deprecated

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

Deprecated: Use GetLatestBlockResponse.ProtoReflect.Descriptor instead.

func (*GetLatestBlockResponse) GetBlock

func (x *GetLatestBlockResponse) GetBlock() *types.Block

func (*GetLatestBlockResponse) GetBlockId

func (x *GetLatestBlockResponse) GetBlockId() *types.BlockID

func (*GetLatestBlockResponse) GetSdkBlock

func (x *GetLatestBlockResponse) GetSdkBlock() *Block

func (*GetLatestBlockResponse) ProtoMessage

func (*GetLatestBlockResponse) ProtoMessage()

func (*GetLatestBlockResponse) ProtoReflect

func (x *GetLatestBlockResponse) ProtoReflect() protoreflect.Message

func (*GetLatestBlockResponse) Reset

func (x *GetLatestBlockResponse) Reset()

func (*GetLatestBlockResponse) String

func (x *GetLatestBlockResponse) String() string

type GetLatestValidatorSetRequest

type GetLatestValidatorSetRequest struct {

	// pagination defines an pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method.

func (*GetLatestValidatorSetRequest) Descriptor deprecated

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

Deprecated: Use GetLatestValidatorSetRequest.ProtoReflect.Descriptor instead.

func (*GetLatestValidatorSetRequest) GetPagination

func (x *GetLatestValidatorSetRequest) GetPagination() *v1beta1.PageRequest

func (*GetLatestValidatorSetRequest) ProtoMessage

func (*GetLatestValidatorSetRequest) ProtoMessage()

func (*GetLatestValidatorSetRequest) ProtoReflect

func (*GetLatestValidatorSetRequest) Reset

func (x *GetLatestValidatorSetRequest) Reset()

func (*GetLatestValidatorSetRequest) String

type GetLatestValidatorSetResponse

type GetLatestValidatorSetResponse struct {
	BlockHeight int64        `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	Validators  []*Validator `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"`
	// pagination defines an pagination for the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method.

func (*GetLatestValidatorSetResponse) Descriptor deprecated

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

Deprecated: Use GetLatestValidatorSetResponse.ProtoReflect.Descriptor instead.

func (*GetLatestValidatorSetResponse) GetBlockHeight

func (x *GetLatestValidatorSetResponse) GetBlockHeight() int64

func (*GetLatestValidatorSetResponse) GetPagination

func (*GetLatestValidatorSetResponse) GetValidators

func (x *GetLatestValidatorSetResponse) GetValidators() []*Validator

func (*GetLatestValidatorSetResponse) ProtoMessage

func (*GetLatestValidatorSetResponse) ProtoMessage()

func (*GetLatestValidatorSetResponse) ProtoReflect

func (*GetLatestValidatorSetResponse) Reset

func (x *GetLatestValidatorSetResponse) Reset()

func (*GetLatestValidatorSetResponse) String

type GetNodeInfoRequest

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

GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method.

func (*GetNodeInfoRequest) Descriptor deprecated

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

Deprecated: Use GetNodeInfoRequest.ProtoReflect.Descriptor instead.

func (*GetNodeInfoRequest) ProtoMessage

func (*GetNodeInfoRequest) ProtoMessage()

func (*GetNodeInfoRequest) ProtoReflect

func (x *GetNodeInfoRequest) ProtoReflect() protoreflect.Message

func (*GetNodeInfoRequest) Reset

func (x *GetNodeInfoRequest) Reset()

func (*GetNodeInfoRequest) String

func (x *GetNodeInfoRequest) String() string

type GetNodeInfoResponse

type GetNodeInfoResponse struct {
	DefaultNodeInfo    *p2p.DefaultNodeInfo `protobuf:"bytes,1,opt,name=default_node_info,json=defaultNodeInfo,proto3" json:"default_node_info,omitempty"`
	ApplicationVersion *VersionInfo         `protobuf:"bytes,2,opt,name=application_version,json=applicationVersion,proto3" json:"application_version,omitempty"`
	// contains filtered or unexported fields
}

GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method.

func (*GetNodeInfoResponse) Descriptor deprecated

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

Deprecated: Use GetNodeInfoResponse.ProtoReflect.Descriptor instead.

func (*GetNodeInfoResponse) GetApplicationVersion

func (x *GetNodeInfoResponse) GetApplicationVersion() *VersionInfo

func (*GetNodeInfoResponse) GetDefaultNodeInfo

func (x *GetNodeInfoResponse) GetDefaultNodeInfo() *p2p.DefaultNodeInfo

func (*GetNodeInfoResponse) ProtoMessage

func (*GetNodeInfoResponse) ProtoMessage()

func (*GetNodeInfoResponse) ProtoReflect

func (x *GetNodeInfoResponse) ProtoReflect() protoreflect.Message

func (*GetNodeInfoResponse) Reset

func (x *GetNodeInfoResponse) Reset()

func (*GetNodeInfoResponse) String

func (x *GetNodeInfoResponse) String() string

type GetSyncingRequest

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

GetSyncingRequest is the request type for the Query/GetSyncing RPC method.

func (*GetSyncingRequest) Descriptor deprecated

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

Deprecated: Use GetSyncingRequest.ProtoReflect.Descriptor instead.

func (*GetSyncingRequest) ProtoMessage

func (*GetSyncingRequest) ProtoMessage()

func (*GetSyncingRequest) ProtoReflect

func (x *GetSyncingRequest) ProtoReflect() protoreflect.Message

func (*GetSyncingRequest) Reset

func (x *GetSyncingRequest) Reset()

func (*GetSyncingRequest) String

func (x *GetSyncingRequest) String() string

type GetSyncingResponse

type GetSyncingResponse struct {
	Syncing bool `protobuf:"varint,1,opt,name=syncing,proto3" json:"syncing,omitempty"`
	// contains filtered or unexported fields
}

GetSyncingResponse is the response type for the Query/GetSyncing RPC method.

func (*GetSyncingResponse) Descriptor deprecated

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

Deprecated: Use GetSyncingResponse.ProtoReflect.Descriptor instead.

func (*GetSyncingResponse) GetSyncing

func (x *GetSyncingResponse) GetSyncing() bool

func (*GetSyncingResponse) ProtoMessage

func (*GetSyncingResponse) ProtoMessage()

func (*GetSyncingResponse) ProtoReflect

func (x *GetSyncingResponse) ProtoReflect() protoreflect.Message

func (*GetSyncingResponse) Reset

func (x *GetSyncingResponse) Reset()

func (*GetSyncingResponse) String

func (x *GetSyncingResponse) String() string

type GetValidatorSetByHeightRequest

type GetValidatorSetByHeightRequest struct {
	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// pagination defines an pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method.

func (*GetValidatorSetByHeightRequest) Descriptor deprecated

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

Deprecated: Use GetValidatorSetByHeightRequest.ProtoReflect.Descriptor instead.

func (*GetValidatorSetByHeightRequest) GetHeight

func (x *GetValidatorSetByHeightRequest) GetHeight() int64

func (*GetValidatorSetByHeightRequest) GetPagination

func (*GetValidatorSetByHeightRequest) ProtoMessage

func (*GetValidatorSetByHeightRequest) ProtoMessage()

func (*GetValidatorSetByHeightRequest) ProtoReflect

func (*GetValidatorSetByHeightRequest) Reset

func (x *GetValidatorSetByHeightRequest) Reset()

func (*GetValidatorSetByHeightRequest) String

type GetValidatorSetByHeightResponse

type GetValidatorSetByHeightResponse struct {
	BlockHeight int64        `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	Validators  []*Validator `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"`
	// pagination defines an pagination for the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method.

func (*GetValidatorSetByHeightResponse) Descriptor deprecated

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

Deprecated: Use GetValidatorSetByHeightResponse.ProtoReflect.Descriptor instead.

func (*GetValidatorSetByHeightResponse) GetBlockHeight

func (x *GetValidatorSetByHeightResponse) GetBlockHeight() int64

func (*GetValidatorSetByHeightResponse) GetPagination

func (*GetValidatorSetByHeightResponse) GetValidators

func (x *GetValidatorSetByHeightResponse) GetValidators() []*Validator

func (*GetValidatorSetByHeightResponse) ProtoMessage

func (*GetValidatorSetByHeightResponse) ProtoMessage()

func (*GetValidatorSetByHeightResponse) ProtoReflect

func (*GetValidatorSetByHeightResponse) Reset

func (*GetValidatorSetByHeightResponse) String

type Header struct {

	// basic block info
	Version *version.Consensus     `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	ChainId string                 `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Height  int64                  `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	Time    *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"`
	// prev block info
	LastBlockId *types.BlockID `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id,omitempty"`
	// hashes of block data
	LastCommitHash []byte `protobuf:"bytes,6,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"` // commit from validators from the last block
	DataHash       []byte `protobuf:"bytes,7,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"`                     // transactions
	// hashes from the app output from the prev block
	ValidatorsHash     []byte `protobuf:"bytes,8,opt,name=validators_hash,json=validatorsHash,proto3" json:"validators_hash,omitempty"`               // validators for the current block
	NextValidatorsHash []byte `protobuf:"bytes,9,opt,name=next_validators_hash,json=nextValidatorsHash,proto3" json:"next_validators_hash,omitempty"` // validators for the next block
	ConsensusHash      []byte `protobuf:"bytes,10,opt,name=consensus_hash,json=consensusHash,proto3" json:"consensus_hash,omitempty"`                 // consensus params for current block
	AppHash            []byte `protobuf:"bytes,11,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`                                   // state after txs from the previous block
	LastResultsHash    []byte `protobuf:"bytes,12,opt,name=last_results_hash,json=lastResultsHash,proto3" json:"last_results_hash,omitempty"`         // root hash of all results from the txs from the previous block
	// consensus info
	EvidenceHash []byte `protobuf:"bytes,13,opt,name=evidence_hash,json=evidenceHash,proto3" json:"evidence_hash,omitempty"` // evidence included in the block
	// proposer_address is the original block proposer address, formatted as a Bech32 string.
	// In Tendermint, this type is `bytes`, but in the SDK, we convert it to a Bech32 string
	// for better UX.
	ProposerAddress string `protobuf:"bytes,14,opt,name=proposer_address,json=proposerAddress,proto3" json:"proposer_address,omitempty"` // original proposer of the block
	// contains filtered or unexported fields
}

Header defines the structure of a Tendermint block header.

func (*Header) Descriptor deprecated

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

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetAppHash

func (x *Header) GetAppHash() []byte

func (*Header) GetChainId

func (x *Header) GetChainId() string

func (*Header) GetConsensusHash

func (x *Header) GetConsensusHash() []byte

func (*Header) GetDataHash

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

func (*Header) GetEvidenceHash

func (x *Header) GetEvidenceHash() []byte

func (*Header) GetHeight

func (x *Header) GetHeight() int64

func (*Header) GetLastBlockId

func (x *Header) GetLastBlockId() *types.BlockID

func (*Header) GetLastCommitHash

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

func (*Header) GetLastResultsHash

func (x *Header) GetLastResultsHash() []byte

func (*Header) GetNextValidatorsHash

func (x *Header) GetNextValidatorsHash() []byte

func (*Header) GetProposerAddress

func (x *Header) GetProposerAddress() string

func (*Header) GetTime

func (x *Header) GetTime() *timestamppb.Timestamp

func (*Header) GetValidatorsHash

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

func (*Header) GetVersion

func (x *Header) GetVersion() *version.Consensus

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

func (x *Header) ProtoReflect() protoreflect.Message

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

type Module

type Module struct {

	// module path
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// module version
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// checksum
	Sum string `protobuf:"bytes,3,opt,name=sum,proto3" json:"sum,omitempty"`
	// contains filtered or unexported fields
}

Module is the type for VersionInfo

func (*Module) Descriptor deprecated

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

Deprecated: Use Module.ProtoReflect.Descriptor instead.

func (*Module) GetPath

func (x *Module) GetPath() string

func (*Module) GetSum

func (x *Module) GetSum() string

func (*Module) GetVersion

func (x *Module) GetVersion() string

func (*Module) ProtoMessage

func (*Module) ProtoMessage()

func (*Module) ProtoReflect

func (x *Module) ProtoReflect() protoreflect.Message

func (*Module) Reset

func (x *Module) Reset()

func (*Module) String

func (x *Module) String() string

type ProofOp

type ProofOp struct {
	Type_ string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Key   []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Data  []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

ProofOp defines an operation used for calculating Merkle root. The data could be arbitrary format, providing necessary data for example neighbouring node hash.

Note: This type is a duplicate of the ProofOp proto type defined in Tendermint.

func (*ProofOp) Descriptor deprecated

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

Deprecated: Use ProofOp.ProtoReflect.Descriptor instead.

func (*ProofOp) GetData

func (x *ProofOp) GetData() []byte

func (*ProofOp) GetKey

func (x *ProofOp) GetKey() []byte

func (*ProofOp) GetType_

func (x *ProofOp) GetType_() string

func (*ProofOp) ProtoMessage

func (*ProofOp) ProtoMessage()

func (*ProofOp) ProtoReflect

func (x *ProofOp) ProtoReflect() protoreflect.Message

func (*ProofOp) Reset

func (x *ProofOp) Reset()

func (*ProofOp) String

func (x *ProofOp) String() string

type ProofOps

type ProofOps struct {
	Ops []*ProofOp `protobuf:"bytes,1,rep,name=ops,proto3" json:"ops,omitempty"`
	// contains filtered or unexported fields
}

ProofOps is Merkle proof defined by the list of ProofOps.

Note: This type is a duplicate of the ProofOps proto type defined in Tendermint.

func (*ProofOps) Descriptor deprecated

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

Deprecated: Use ProofOps.ProtoReflect.Descriptor instead.

func (*ProofOps) GetOps

func (x *ProofOps) GetOps() []*ProofOp

func (*ProofOps) ProtoMessage

func (*ProofOps) ProtoMessage()

func (*ProofOps) ProtoReflect

func (x *ProofOps) ProtoReflect() protoreflect.Message

func (*ProofOps) Reset

func (x *ProofOps) Reset()

func (*ProofOps) String

func (x *ProofOps) String() string

type ServiceClient

type ServiceClient interface {
	// GetNodeInfo queries the current node info.
	GetNodeInfo(ctx context.Context, in *GetNodeInfoRequest, opts ...grpc.CallOption) (*GetNodeInfoResponse, error)
	// GetSyncing queries node syncing.
	GetSyncing(ctx context.Context, in *GetSyncingRequest, opts ...grpc.CallOption) (*GetSyncingResponse, error)
	// GetLatestBlock returns the latest block.
	GetLatestBlock(ctx context.Context, in *GetLatestBlockRequest, opts ...grpc.CallOption) (*GetLatestBlockResponse, error)
	// GetBlockByHeight queries block for given height.
	GetBlockByHeight(ctx context.Context, in *GetBlockByHeightRequest, opts ...grpc.CallOption) (*GetBlockByHeightResponse, error)
	// GetLatestValidatorSet queries latest validator-set.
	GetLatestValidatorSet(ctx context.Context, in *GetLatestValidatorSetRequest, opts ...grpc.CallOption) (*GetLatestValidatorSetResponse, error)
	// GetValidatorSetByHeight queries validator-set at a given height.
	GetValidatorSetByHeight(ctx context.Context, in *GetValidatorSetByHeightRequest, opts ...grpc.CallOption) (*GetValidatorSetByHeightResponse, error)
	// ABCIQuery defines a query handler that supports ABCI queries directly to the
	// application, bypassing Tendermint completely. The ABCI query must contain
	// a valid and supported path, including app, custom, p2p, and store.
	//
	// Since: cosmos-sdk 0.46
	ABCIQuery(ctx context.Context, in *ABCIQueryRequest, opts ...grpc.CallOption) (*ABCIQueryResponse, error)
}

ServiceClient is the client API for Service service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceServer

type ServiceServer interface {
	// GetNodeInfo queries the current node info.
	GetNodeInfo(context.Context, *GetNodeInfoRequest) (*GetNodeInfoResponse, error)
	// GetSyncing queries node syncing.
	GetSyncing(context.Context, *GetSyncingRequest) (*GetSyncingResponse, error)
	// GetLatestBlock returns the latest block.
	GetLatestBlock(context.Context, *GetLatestBlockRequest) (*GetLatestBlockResponse, error)
	// GetBlockByHeight queries block for given height.
	GetBlockByHeight(context.Context, *GetBlockByHeightRequest) (*GetBlockByHeightResponse, error)
	// GetLatestValidatorSet queries latest validator-set.
	GetLatestValidatorSet(context.Context, *GetLatestValidatorSetRequest) (*GetLatestValidatorSetResponse, error)
	// GetValidatorSetByHeight queries validator-set at a given height.
	GetValidatorSetByHeight(context.Context, *GetValidatorSetByHeightRequest) (*GetValidatorSetByHeightResponse, error)
	// ABCIQuery defines a query handler that supports ABCI queries directly to the
	// application, bypassing Tendermint completely. The ABCI query must contain
	// a valid and supported path, including app, custom, p2p, and store.
	//
	// Since: cosmos-sdk 0.46
	ABCIQuery(context.Context, *ABCIQueryRequest) (*ABCIQueryResponse, error)
	// contains filtered or unexported methods
}

ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceServer) ABCIQuery

func (UnimplementedServiceServer) GetBlockByHeight

func (UnimplementedServiceServer) GetLatestBlock

func (UnimplementedServiceServer) GetLatestValidatorSet

func (UnimplementedServiceServer) GetNodeInfo

func (UnimplementedServiceServer) GetSyncing

func (UnimplementedServiceServer) GetValidatorSetByHeight

type UnsafeServiceServer

type UnsafeServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.

type Validator

type Validator struct {
	Address          string     `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	PubKey           *anypb.Any `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
	VotingPower      int64      `protobuf:"varint,3,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"`
	ProposerPriority int64      `protobuf:"varint,4,opt,name=proposer_priority,json=proposerPriority,proto3" json:"proposer_priority,omitempty"`
	// contains filtered or unexported fields
}

Validator is the type for the validator-set.

func (*Validator) Descriptor deprecated

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

Deprecated: Use Validator.ProtoReflect.Descriptor instead.

func (*Validator) GetAddress

func (x *Validator) GetAddress() string

func (*Validator) GetProposerPriority

func (x *Validator) GetProposerPriority() int64

func (*Validator) GetPubKey

func (x *Validator) GetPubKey() *anypb.Any

func (*Validator) GetVotingPower

func (x *Validator) GetVotingPower() int64

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) ProtoReflect

func (x *Validator) ProtoReflect() protoreflect.Message

func (*Validator) Reset

func (x *Validator) Reset()

func (*Validator) String

func (x *Validator) String() string

type VersionInfo

type VersionInfo struct {
	Name      string    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	AppName   string    `protobuf:"bytes,2,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"`
	Version   string    `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	GitCommit string    `protobuf:"bytes,4,opt,name=git_commit,json=gitCommit,proto3" json:"git_commit,omitempty"`
	BuildTags string    `protobuf:"bytes,5,opt,name=build_tags,json=buildTags,proto3" json:"build_tags,omitempty"`
	GoVersion string    `protobuf:"bytes,6,opt,name=go_version,json=goVersion,proto3" json:"go_version,omitempty"`
	BuildDeps []*Module `protobuf:"bytes,7,rep,name=build_deps,json=buildDeps,proto3" json:"build_deps,omitempty"`
	// Since: cosmos-sdk 0.43
	CosmosSdkVersion string `protobuf:"bytes,8,opt,name=cosmos_sdk_version,json=cosmosSdkVersion,proto3" json:"cosmos_sdk_version,omitempty"`
	// contains filtered or unexported fields
}

VersionInfo is the type for the GetNodeInfoResponse message.

func (*VersionInfo) Descriptor deprecated

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

Deprecated: Use VersionInfo.ProtoReflect.Descriptor instead.

func (*VersionInfo) GetAppName

func (x *VersionInfo) GetAppName() string

func (*VersionInfo) GetBuildDeps

func (x *VersionInfo) GetBuildDeps() []*Module

func (*VersionInfo) GetBuildTags

func (x *VersionInfo) GetBuildTags() string

func (*VersionInfo) GetCosmosSdkVersion

func (x *VersionInfo) GetCosmosSdkVersion() string

func (*VersionInfo) GetGitCommit

func (x *VersionInfo) GetGitCommit() string

func (*VersionInfo) GetGoVersion

func (x *VersionInfo) GetGoVersion() string

func (*VersionInfo) GetName

func (x *VersionInfo) GetName() string

func (*VersionInfo) GetVersion

func (x *VersionInfo) GetVersion() string

func (*VersionInfo) ProtoMessage

func (*VersionInfo) ProtoMessage()

func (*VersionInfo) ProtoReflect

func (x *VersionInfo) ProtoReflect() protoreflect.Message

func (*VersionInfo) Reset

func (x *VersionInfo) Reset()

func (*VersionInfo) String

func (x *VersionInfo) String() string

Jump to

Keyboard shortcuts

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