Documentation
¶
Overview ¶
Package tmservice is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func GetProtoBlock(ctx context.Context, clientCtx client.Context, height *int64) (tmproto.BlockID, *tmproto.Block, error)
- func RegisterGRPCGatewayRoutes(clientConn gogogrpc.ClientConn, mux *runtime.ServeMux)
- func RegisterServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServiceClient) error
- func RegisterServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServiceServer) error
- func RegisterServiceServer(s grpc1.Server, srv ServiceServer)
- func RegisterTendermintService(clientCtx client.Context, server gogogrpc.Server, ...)
- type ABCIQueryRequest
- func (*ABCIQueryRequest) Descriptor() ([]byte, []int)
- func (m *ABCIQueryRequest) GetData() []byte
- func (m *ABCIQueryRequest) GetHeight() int64
- func (m *ABCIQueryRequest) GetPath() string
- func (m *ABCIQueryRequest) GetProve() bool
- func (m *ABCIQueryRequest) Marshal() (dAtA []byte, err error)
- func (m *ABCIQueryRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ABCIQueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ABCIQueryRequest) ProtoMessage()
- func (m *ABCIQueryRequest) Reset()
- func (m *ABCIQueryRequest) Size() (n int)
- func (m *ABCIQueryRequest) String() string
- func (req *ABCIQueryRequest) ToABCIRequestQuery() abci.RequestQuery
- func (m *ABCIQueryRequest) Unmarshal(dAtA []byte) error
- func (m *ABCIQueryRequest) XXX_DiscardUnknown()
- func (m *ABCIQueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ABCIQueryRequest) XXX_Merge(src proto.Message)
- func (m *ABCIQueryRequest) XXX_Size() int
- func (m *ABCIQueryRequest) XXX_Unmarshal(b []byte) error
- type ABCIQueryResponse
- func (*ABCIQueryResponse) Descriptor() ([]byte, []int)
- func (m *ABCIQueryResponse) GetCode() uint32
- func (m *ABCIQueryResponse) GetCodespace() string
- func (m *ABCIQueryResponse) GetHeight() int64
- func (m *ABCIQueryResponse) GetIndex() int64
- func (m *ABCIQueryResponse) GetInfo() string
- func (m *ABCIQueryResponse) GetKey() []byte
- func (m *ABCIQueryResponse) GetLog() string
- func (m *ABCIQueryResponse) GetProofOps() *ProofOps
- func (m *ABCIQueryResponse) GetValue() []byte
- func (m *ABCIQueryResponse) Marshal() (dAtA []byte, err error)
- func (m *ABCIQueryResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ABCIQueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ABCIQueryResponse) ProtoMessage()
- func (m *ABCIQueryResponse) Reset()
- func (m *ABCIQueryResponse) Size() (n int)
- func (m *ABCIQueryResponse) String() string
- func (m *ABCIQueryResponse) Unmarshal(dAtA []byte) error
- func (m *ABCIQueryResponse) XXX_DiscardUnknown()
- func (m *ABCIQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ABCIQueryResponse) XXX_Merge(src proto.Message)
- func (m *ABCIQueryResponse) XXX_Size() int
- func (m *ABCIQueryResponse) XXX_Unmarshal(b []byte) error
- type Block
- func (*Block) Descriptor() ([]byte, []int)
- func (m *Block) GetData() types.Data
- func (m *Block) GetEvidence() types.EvidenceList
- func (m *Block) GetHeader() Header
- func (m *Block) GetLastCommit() *types.Commit
- func (m *Block) Marshal() (dAtA []byte, err error)
- func (m *Block) MarshalTo(dAtA []byte) (int, error)
- func (m *Block) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Block) ProtoMessage()
- func (m *Block) Reset()
- func (m *Block) Size() (n int)
- func (m *Block) String() string
- func (m *Block) Unmarshal(dAtA []byte) error
- func (m *Block) XXX_DiscardUnknown()
- func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Block) XXX_Merge(src proto.Message)
- func (m *Block) XXX_Size() int
- func (m *Block) XXX_Unmarshal(b []byte) error
- type GetBlockByHeightRequest
- func (*GetBlockByHeightRequest) Descriptor() ([]byte, []int)
- func (m *GetBlockByHeightRequest) GetHeight() int64
- func (m *GetBlockByHeightRequest) Marshal() (dAtA []byte, err error)
- func (m *GetBlockByHeightRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetBlockByHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetBlockByHeightRequest) ProtoMessage()
- func (m *GetBlockByHeightRequest) Reset()
- func (m *GetBlockByHeightRequest) Size() (n int)
- func (m *GetBlockByHeightRequest) String() string
- func (m *GetBlockByHeightRequest) Unmarshal(dAtA []byte) error
- func (m *GetBlockByHeightRequest) XXX_DiscardUnknown()
- func (m *GetBlockByHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBlockByHeightRequest) XXX_Merge(src proto.Message)
- func (m *GetBlockByHeightRequest) XXX_Size() int
- func (m *GetBlockByHeightRequest) XXX_Unmarshal(b []byte) error
- type GetBlockByHeightResponse
- func (*GetBlockByHeightResponse) Descriptor() ([]byte, []int)
- func (m *GetBlockByHeightResponse) GetBlock() *types1.Block
- func (m *GetBlockByHeightResponse) GetBlockId() *types1.BlockID
- func (m *GetBlockByHeightResponse) GetSdkBlock() *Block
- func (m *GetBlockByHeightResponse) Marshal() (dAtA []byte, err error)
- func (m *GetBlockByHeightResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetBlockByHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetBlockByHeightResponse) ProtoMessage()
- func (m *GetBlockByHeightResponse) Reset()
- func (m *GetBlockByHeightResponse) Size() (n int)
- func (m *GetBlockByHeightResponse) String() string
- func (m *GetBlockByHeightResponse) Unmarshal(dAtA []byte) error
- func (m *GetBlockByHeightResponse) XXX_DiscardUnknown()
- func (m *GetBlockByHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBlockByHeightResponse) XXX_Merge(src proto.Message)
- func (m *GetBlockByHeightResponse) XXX_Size() int
- func (m *GetBlockByHeightResponse) XXX_Unmarshal(b []byte) error
- type GetLatestBlockRequest
- func (*GetLatestBlockRequest) Descriptor() ([]byte, []int)
- func (m *GetLatestBlockRequest) Marshal() (dAtA []byte, err error)
- func (m *GetLatestBlockRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetLatestBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetLatestBlockRequest) ProtoMessage()
- func (m *GetLatestBlockRequest) Reset()
- func (m *GetLatestBlockRequest) Size() (n int)
- func (m *GetLatestBlockRequest) String() string
- func (m *GetLatestBlockRequest) Unmarshal(dAtA []byte) error
- func (m *GetLatestBlockRequest) XXX_DiscardUnknown()
- func (m *GetLatestBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetLatestBlockRequest) XXX_Merge(src proto.Message)
- func (m *GetLatestBlockRequest) XXX_Size() int
- func (m *GetLatestBlockRequest) XXX_Unmarshal(b []byte) error
- type GetLatestBlockResponse
- func (*GetLatestBlockResponse) Descriptor() ([]byte, []int)
- func (m *GetLatestBlockResponse) GetBlock() *types1.Block
- func (m *GetLatestBlockResponse) GetBlockId() *types1.BlockID
- func (m *GetLatestBlockResponse) GetSdkBlock() *Block
- func (m *GetLatestBlockResponse) Marshal() (dAtA []byte, err error)
- func (m *GetLatestBlockResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetLatestBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetLatestBlockResponse) ProtoMessage()
- func (m *GetLatestBlockResponse) Reset()
- func (m *GetLatestBlockResponse) Size() (n int)
- func (m *GetLatestBlockResponse) String() string
- func (m *GetLatestBlockResponse) Unmarshal(dAtA []byte) error
- func (m *GetLatestBlockResponse) XXX_DiscardUnknown()
- func (m *GetLatestBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetLatestBlockResponse) XXX_Merge(src proto.Message)
- func (m *GetLatestBlockResponse) XXX_Size() int
- func (m *GetLatestBlockResponse) XXX_Unmarshal(b []byte) error
- type GetLatestValidatorSetRequest
- func (*GetLatestValidatorSetRequest) Descriptor() ([]byte, []int)
- func (m *GetLatestValidatorSetRequest) GetPagination() *query.PageRequest
- func (m *GetLatestValidatorSetRequest) Marshal() (dAtA []byte, err error)
- func (m *GetLatestValidatorSetRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetLatestValidatorSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetLatestValidatorSetRequest) ProtoMessage()
- func (m *GetLatestValidatorSetRequest) Reset()
- func (m *GetLatestValidatorSetRequest) Size() (n int)
- func (m *GetLatestValidatorSetRequest) String() string
- func (m *GetLatestValidatorSetRequest) Unmarshal(dAtA []byte) error
- func (m *GetLatestValidatorSetRequest) XXX_DiscardUnknown()
- func (m *GetLatestValidatorSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetLatestValidatorSetRequest) XXX_Merge(src proto.Message)
- func (m *GetLatestValidatorSetRequest) XXX_Size() int
- func (m *GetLatestValidatorSetRequest) XXX_Unmarshal(b []byte) error
- type GetLatestValidatorSetResponse
- func (*GetLatestValidatorSetResponse) Descriptor() ([]byte, []int)
- func (m *GetLatestValidatorSetResponse) GetBlockHeight() int64
- func (m *GetLatestValidatorSetResponse) GetPagination() *query.PageResponse
- func (m *GetLatestValidatorSetResponse) GetValidators() []*Validator
- func (m *GetLatestValidatorSetResponse) Marshal() (dAtA []byte, err error)
- func (m *GetLatestValidatorSetResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetLatestValidatorSetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetLatestValidatorSetResponse) ProtoMessage()
- func (m *GetLatestValidatorSetResponse) Reset()
- func (m *GetLatestValidatorSetResponse) Size() (n int)
- func (m *GetLatestValidatorSetResponse) String() string
- func (m *GetLatestValidatorSetResponse) Unmarshal(dAtA []byte) error
- func (m *GetLatestValidatorSetResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *GetLatestValidatorSetResponse) XXX_DiscardUnknown()
- func (m *GetLatestValidatorSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetLatestValidatorSetResponse) XXX_Merge(src proto.Message)
- func (m *GetLatestValidatorSetResponse) XXX_Size() int
- func (m *GetLatestValidatorSetResponse) XXX_Unmarshal(b []byte) error
- type GetNodeInfoRequest
- func (*GetNodeInfoRequest) Descriptor() ([]byte, []int)
- func (m *GetNodeInfoRequest) Marshal() (dAtA []byte, err error)
- func (m *GetNodeInfoRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetNodeInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetNodeInfoRequest) ProtoMessage()
- func (m *GetNodeInfoRequest) Reset()
- func (m *GetNodeInfoRequest) Size() (n int)
- func (m *GetNodeInfoRequest) String() string
- func (m *GetNodeInfoRequest) Unmarshal(dAtA []byte) error
- func (m *GetNodeInfoRequest) XXX_DiscardUnknown()
- func (m *GetNodeInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetNodeInfoRequest) XXX_Merge(src proto.Message)
- func (m *GetNodeInfoRequest) XXX_Size() int
- func (m *GetNodeInfoRequest) XXX_Unmarshal(b []byte) error
- type GetNodeInfoResponse
- func (*GetNodeInfoResponse) Descriptor() ([]byte, []int)
- func (m *GetNodeInfoResponse) GetApplicationVersion() *VersionInfo
- func (m *GetNodeInfoResponse) GetDefaultNodeInfo() *p2p.DefaultNodeInfo
- func (m *GetNodeInfoResponse) Marshal() (dAtA []byte, err error)
- func (m *GetNodeInfoResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetNodeInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetNodeInfoResponse) ProtoMessage()
- func (m *GetNodeInfoResponse) Reset()
- func (m *GetNodeInfoResponse) Size() (n int)
- func (m *GetNodeInfoResponse) String() string
- func (m *GetNodeInfoResponse) Unmarshal(dAtA []byte) error
- func (m *GetNodeInfoResponse) XXX_DiscardUnknown()
- func (m *GetNodeInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetNodeInfoResponse) XXX_Merge(src proto.Message)
- func (m *GetNodeInfoResponse) XXX_Size() int
- func (m *GetNodeInfoResponse) XXX_Unmarshal(b []byte) error
- type GetSyncingRequest
- func (*GetSyncingRequest) Descriptor() ([]byte, []int)
- func (m *GetSyncingRequest) Marshal() (dAtA []byte, err error)
- func (m *GetSyncingRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetSyncingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetSyncingRequest) ProtoMessage()
- func (m *GetSyncingRequest) Reset()
- func (m *GetSyncingRequest) Size() (n int)
- func (m *GetSyncingRequest) String() string
- func (m *GetSyncingRequest) Unmarshal(dAtA []byte) error
- func (m *GetSyncingRequest) XXX_DiscardUnknown()
- func (m *GetSyncingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetSyncingRequest) XXX_Merge(src proto.Message)
- func (m *GetSyncingRequest) XXX_Size() int
- func (m *GetSyncingRequest) XXX_Unmarshal(b []byte) error
- type GetSyncingResponse
- func (*GetSyncingResponse) Descriptor() ([]byte, []int)
- func (m *GetSyncingResponse) GetSyncing() bool
- func (m *GetSyncingResponse) Marshal() (dAtA []byte, err error)
- func (m *GetSyncingResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetSyncingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetSyncingResponse) ProtoMessage()
- func (m *GetSyncingResponse) Reset()
- func (m *GetSyncingResponse) Size() (n int)
- func (m *GetSyncingResponse) String() string
- func (m *GetSyncingResponse) Unmarshal(dAtA []byte) error
- func (m *GetSyncingResponse) XXX_DiscardUnknown()
- func (m *GetSyncingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetSyncingResponse) XXX_Merge(src proto.Message)
- func (m *GetSyncingResponse) XXX_Size() int
- func (m *GetSyncingResponse) XXX_Unmarshal(b []byte) error
- type GetValidatorSetByHeightRequest
- func (*GetValidatorSetByHeightRequest) Descriptor() ([]byte, []int)
- func (m *GetValidatorSetByHeightRequest) GetHeight() int64
- func (m *GetValidatorSetByHeightRequest) GetPagination() *query.PageRequest
- func (m *GetValidatorSetByHeightRequest) Marshal() (dAtA []byte, err error)
- func (m *GetValidatorSetByHeightRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetValidatorSetByHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetValidatorSetByHeightRequest) ProtoMessage()
- func (m *GetValidatorSetByHeightRequest) Reset()
- func (m *GetValidatorSetByHeightRequest) Size() (n int)
- func (m *GetValidatorSetByHeightRequest) String() string
- func (m *GetValidatorSetByHeightRequest) Unmarshal(dAtA []byte) error
- func (m *GetValidatorSetByHeightRequest) XXX_DiscardUnknown()
- func (m *GetValidatorSetByHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetValidatorSetByHeightRequest) XXX_Merge(src proto.Message)
- func (m *GetValidatorSetByHeightRequest) XXX_Size() int
- func (m *GetValidatorSetByHeightRequest) XXX_Unmarshal(b []byte) error
- type GetValidatorSetByHeightResponse
- func (*GetValidatorSetByHeightResponse) Descriptor() ([]byte, []int)
- func (m *GetValidatorSetByHeightResponse) GetBlockHeight() int64
- func (m *GetValidatorSetByHeightResponse) GetPagination() *query.PageResponse
- func (m *GetValidatorSetByHeightResponse) GetValidators() []*Validator
- func (m *GetValidatorSetByHeightResponse) Marshal() (dAtA []byte, err error)
- func (m *GetValidatorSetByHeightResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetValidatorSetByHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetValidatorSetByHeightResponse) ProtoMessage()
- func (m *GetValidatorSetByHeightResponse) Reset()
- func (m *GetValidatorSetByHeightResponse) Size() (n int)
- func (m *GetValidatorSetByHeightResponse) String() string
- func (m *GetValidatorSetByHeightResponse) Unmarshal(dAtA []byte) error
- func (m *GetValidatorSetByHeightResponse) XXX_DiscardUnknown()
- func (m *GetValidatorSetByHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetValidatorSetByHeightResponse) XXX_Merge(src proto.Message)
- func (m *GetValidatorSetByHeightResponse) XXX_Size() int
- func (m *GetValidatorSetByHeightResponse) XXX_Unmarshal(b []byte) error
- type Header
- func (*Header) Descriptor() ([]byte, []int)
- func (m *Header) GetAppHash() []byte
- func (m *Header) GetChainID() string
- func (m *Header) GetConsensusHash() []byte
- func (m *Header) GetDataHash() []byte
- func (m *Header) GetEvidenceHash() []byte
- func (m *Header) GetHeight() int64
- func (m *Header) GetLastBlockId() types.BlockID
- func (m *Header) GetLastCommitHash() []byte
- func (m *Header) GetLastResultsHash() []byte
- func (m *Header) GetNextValidatorsHash() []byte
- func (m *Header) GetProposerAddress() string
- func (m *Header) GetTime() time.Time
- func (m *Header) GetValidatorsHash() []byte
- func (m *Header) GetVersion() version.Consensus
- func (m *Header) Marshal() (dAtA []byte, err error)
- func (m *Header) MarshalTo(dAtA []byte) (int, error)
- func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (m *Header) Size() (n int)
- func (m *Header) String() string
- func (m *Header) Unmarshal(dAtA []byte) error
- func (m *Header) XXX_DiscardUnknown()
- func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Header) XXX_Merge(src proto.Message)
- func (m *Header) XXX_Size() int
- func (m *Header) XXX_Unmarshal(b []byte) error
- type Module
- func (*Module) Descriptor() ([]byte, []int)
- func (m *Module) GetPath() string
- func (m *Module) GetSum() string
- func (m *Module) GetVersion() string
- func (m *Module) Marshal() (dAtA []byte, err error)
- func (m *Module) MarshalTo(dAtA []byte) (int, error)
- func (m *Module) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Module) ProtoMessage()
- func (m *Module) Reset()
- func (m *Module) Size() (n int)
- func (m *Module) String() string
- func (m *Module) Unmarshal(dAtA []byte) error
- func (m *Module) XXX_DiscardUnknown()
- func (m *Module) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Module) XXX_Merge(src proto.Message)
- func (m *Module) XXX_Size() int
- func (m *Module) XXX_Unmarshal(b []byte) error
- type ProofOp
- func (*ProofOp) Descriptor() ([]byte, []int)
- func (m *ProofOp) GetData() []byte
- func (m *ProofOp) GetKey() []byte
- func (m *ProofOp) GetType() string
- func (m *ProofOp) Marshal() (dAtA []byte, err error)
- func (m *ProofOp) MarshalTo(dAtA []byte) (int, error)
- func (m *ProofOp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProofOp) ProtoMessage()
- func (m *ProofOp) Reset()
- func (m *ProofOp) Size() (n int)
- func (m *ProofOp) String() string
- func (m *ProofOp) Unmarshal(dAtA []byte) error
- func (m *ProofOp) XXX_DiscardUnknown()
- func (m *ProofOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProofOp) XXX_Merge(src proto.Message)
- func (m *ProofOp) XXX_Size() int
- func (m *ProofOp) XXX_Unmarshal(b []byte) error
- type ProofOps
- func (*ProofOps) Descriptor() ([]byte, []int)
- func (m *ProofOps) GetOps() []ProofOp
- func (m *ProofOps) Marshal() (dAtA []byte, err error)
- func (m *ProofOps) MarshalTo(dAtA []byte) (int, error)
- func (m *ProofOps) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProofOps) ProtoMessage()
- func (m *ProofOps) Reset()
- func (m *ProofOps) Size() (n int)
- func (m *ProofOps) String() string
- func (m *ProofOps) Unmarshal(dAtA []byte) error
- func (m *ProofOps) XXX_DiscardUnknown()
- func (m *ProofOps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProofOps) XXX_Merge(src proto.Message)
- func (m *ProofOps) XXX_Size() int
- func (m *ProofOps) XXX_Unmarshal(b []byte) error
- type ServiceClient
- type ServiceServer
- type UnimplementedServiceServer
- func (*UnimplementedServiceServer) ABCIQuery(ctx context.Context, req *ABCIQueryRequest) (*ABCIQueryResponse, error)
- func (*UnimplementedServiceServer) GetBlockByHeight(ctx context.Context, req *GetBlockByHeightRequest) (*GetBlockByHeightResponse, error)
- func (*UnimplementedServiceServer) GetLatestBlock(ctx context.Context, req *GetLatestBlockRequest) (*GetLatestBlockResponse, error)
- func (*UnimplementedServiceServer) GetLatestValidatorSet(ctx context.Context, req *GetLatestValidatorSetRequest) (*GetLatestValidatorSetResponse, error)
- func (*UnimplementedServiceServer) GetNodeInfo(ctx context.Context, req *GetNodeInfoRequest) (*GetNodeInfoResponse, error)
- func (*UnimplementedServiceServer) GetSyncing(ctx context.Context, req *GetSyncingRequest) (*GetSyncingResponse, error)
- func (*UnimplementedServiceServer) GetValidatorSetByHeight(ctx context.Context, req *GetValidatorSetByHeightRequest) (*GetValidatorSetByHeightResponse, error)
- type Validator
- func (*Validator) Descriptor() ([]byte, []int)
- func (m *Validator) GetAddress() string
- func (m *Validator) GetProposerPriority() int64
- func (m *Validator) GetPubKey() *types.Any
- func (m *Validator) GetVotingPower() int64
- func (m *Validator) Marshal() (dAtA []byte, err error)
- func (m *Validator) MarshalTo(dAtA []byte) (int, error)
- func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Validator) ProtoMessage()
- func (m *Validator) Reset()
- func (m *Validator) Size() (n int)
- func (m *Validator) String() string
- func (m *Validator) Unmarshal(dAtA []byte) error
- func (m *Validator) XXX_DiscardUnknown()
- func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Validator) XXX_Merge(src proto.Message)
- func (m *Validator) XXX_Size() int
- func (m *Validator) XXX_Unmarshal(b []byte) error
- type VersionInfo
- func (*VersionInfo) Descriptor() ([]byte, []int)
- func (m *VersionInfo) GetAppName() string
- func (m *VersionInfo) GetBuildDeps() []*Module
- func (m *VersionInfo) GetBuildTags() string
- func (m *VersionInfo) GetCosmosSdkVersion() string
- func (m *VersionInfo) GetGitCommit() string
- func (m *VersionInfo) GetGoVersion() string
- func (m *VersionInfo) GetName() string
- func (m *VersionInfo) GetVersion() string
- func (m *VersionInfo) Marshal() (dAtA []byte, err error)
- func (m *VersionInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *VersionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VersionInfo) ProtoMessage()
- func (m *VersionInfo) Reset()
- func (m *VersionInfo) Size() (n int)
- func (m *VersionInfo) String() string
- func (m *VersionInfo) Unmarshal(dAtA []byte) error
- func (m *VersionInfo) XXX_DiscardUnknown()
- func (m *VersionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VersionInfo) XXX_Merge(src proto.Message)
- func (m *VersionInfo) XXX_Size() int
- func (m *VersionInfo) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetProtoBlock ¶
func RegisterGRPCGatewayRoutes ¶
func RegisterGRPCGatewayRoutes(clientConn gogogrpc.ClientConn, mux *runtime.ServeMux)
RegisterGRPCGatewayRoutes mounts the tendermint service's GRPC-gateway routes on the given Mux.
func RegisterServiceHandler ¶
func RegisterServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterServiceHandler registers the http handlers for service Service to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterServiceHandlerClient ¶
func RegisterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServiceClient) error
RegisterServiceHandlerClient registers the http handlers for service Service to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ServiceClient" to call the correct interceptors.
func RegisterServiceHandlerFromEndpoint ¶
func RegisterServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterServiceHandlerFromEndpoint is same as RegisterServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterServiceHandlerServer ¶
func RegisterServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServiceServer) error
RegisterServiceHandlerServer registers the http handlers for service Service to "mux". UnaryRPC :call ServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterServiceHandlerFromEndpoint instead.
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc1.Server, srv ServiceServer)
func RegisterTendermintService ¶
func RegisterTendermintService( clientCtx client.Context, server gogogrpc.Server, iRegistry codectypes.InterfaceRegistry, queryFn abciQueryFn, )
RegisterTendermintService registers the tendermint queries on the gRPC router.
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"`
}
ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query.
func (*ABCIQueryRequest) Descriptor ¶
func (*ABCIQueryRequest) Descriptor() ([]byte, []int)
func (*ABCIQueryRequest) GetData ¶
func (m *ABCIQueryRequest) GetData() []byte
func (*ABCIQueryRequest) GetHeight ¶
func (m *ABCIQueryRequest) GetHeight() int64
func (*ABCIQueryRequest) GetPath ¶
func (m *ABCIQueryRequest) GetPath() string
func (*ABCIQueryRequest) GetProve ¶
func (m *ABCIQueryRequest) GetProve() bool
func (*ABCIQueryRequest) Marshal ¶
func (m *ABCIQueryRequest) Marshal() (dAtA []byte, err error)
func (*ABCIQueryRequest) MarshalToSizedBuffer ¶
func (m *ABCIQueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ABCIQueryRequest) ProtoMessage ¶
func (*ABCIQueryRequest) ProtoMessage()
func (*ABCIQueryRequest) Reset ¶
func (m *ABCIQueryRequest) Reset()
func (*ABCIQueryRequest) Size ¶
func (m *ABCIQueryRequest) Size() (n int)
func (*ABCIQueryRequest) String ¶
func (m *ABCIQueryRequest) String() string
func (*ABCIQueryRequest) ToABCIRequestQuery ¶
func (req *ABCIQueryRequest) ToABCIRequestQuery() abci.RequestQuery
ToABCIRequestQuery converts a gRPC ABCIQueryRequest type to an ABCI RequestQuery type.
func (*ABCIQueryRequest) Unmarshal ¶
func (m *ABCIQueryRequest) Unmarshal(dAtA []byte) error
func (*ABCIQueryRequest) XXX_DiscardUnknown ¶
func (m *ABCIQueryRequest) XXX_DiscardUnknown()
func (*ABCIQueryRequest) XXX_Marshal ¶
func (m *ABCIQueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ABCIQueryRequest) XXX_Merge ¶
func (m *ABCIQueryRequest) XXX_Merge(src proto.Message)
func (*ABCIQueryRequest) XXX_Size ¶
func (m *ABCIQueryRequest) XXX_Size() int
func (*ABCIQueryRequest) XXX_Unmarshal ¶
func (m *ABCIQueryRequest) XXX_Unmarshal(b []byte) error
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"`
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"`
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"`
}
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 FromABCIResponseQuery ¶
func FromABCIResponseQuery(res abci.ResponseQuery) *ABCIQueryResponse
FromABCIResponseQuery converts an ABCI ResponseQuery type to a gRPC ABCIQueryResponse type.
func (*ABCIQueryResponse) Descriptor ¶
func (*ABCIQueryResponse) Descriptor() ([]byte, []int)
func (*ABCIQueryResponse) GetCode ¶
func (m *ABCIQueryResponse) GetCode() uint32
func (*ABCIQueryResponse) GetCodespace ¶
func (m *ABCIQueryResponse) GetCodespace() string
func (*ABCIQueryResponse) GetHeight ¶
func (m *ABCIQueryResponse) GetHeight() int64
func (*ABCIQueryResponse) GetIndex ¶
func (m *ABCIQueryResponse) GetIndex() int64
func (*ABCIQueryResponse) GetInfo ¶
func (m *ABCIQueryResponse) GetInfo() string
func (*ABCIQueryResponse) GetKey ¶
func (m *ABCIQueryResponse) GetKey() []byte
func (*ABCIQueryResponse) GetLog ¶
func (m *ABCIQueryResponse) GetLog() string
func (*ABCIQueryResponse) GetProofOps ¶
func (m *ABCIQueryResponse) GetProofOps() *ProofOps
func (*ABCIQueryResponse) GetValue ¶
func (m *ABCIQueryResponse) GetValue() []byte
func (*ABCIQueryResponse) Marshal ¶
func (m *ABCIQueryResponse) Marshal() (dAtA []byte, err error)
func (*ABCIQueryResponse) MarshalTo ¶
func (m *ABCIQueryResponse) MarshalTo(dAtA []byte) (int, error)
func (*ABCIQueryResponse) MarshalToSizedBuffer ¶
func (m *ABCIQueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ABCIQueryResponse) ProtoMessage ¶
func (*ABCIQueryResponse) ProtoMessage()
func (*ABCIQueryResponse) Reset ¶
func (m *ABCIQueryResponse) Reset()
func (*ABCIQueryResponse) Size ¶
func (m *ABCIQueryResponse) Size() (n int)
func (*ABCIQueryResponse) String ¶
func (m *ABCIQueryResponse) String() string
func (*ABCIQueryResponse) Unmarshal ¶
func (m *ABCIQueryResponse) Unmarshal(dAtA []byte) error
func (*ABCIQueryResponse) XXX_DiscardUnknown ¶
func (m *ABCIQueryResponse) XXX_DiscardUnknown()
func (*ABCIQueryResponse) XXX_Marshal ¶
func (m *ABCIQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ABCIQueryResponse) XXX_Merge ¶
func (m *ABCIQueryResponse) XXX_Merge(src proto.Message)
func (*ABCIQueryResponse) XXX_Size ¶
func (m *ABCIQueryResponse) XXX_Size() int
func (*ABCIQueryResponse) XXX_Unmarshal ¶
func (m *ABCIQueryResponse) XXX_Unmarshal(b []byte) error
type Block ¶
type Block struct {
Header Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header"`
Data types.Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data"`
Evidence types.EvidenceList `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence"`
LastCommit *types.Commit `protobuf:"bytes,4,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"`
}
Block is tendermint type Block, with the Header proposer address field converted to bech32 string.
func (*Block) Descriptor ¶
func (*Block) GetEvidence ¶
func (m *Block) GetEvidence() types.EvidenceList
func (*Block) GetLastCommit ¶
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) XXX_DiscardUnknown ¶
func (m *Block) XXX_DiscardUnknown()
func (*Block) XXX_Marshal ¶
func (*Block) XXX_Unmarshal ¶
type GetBlockByHeightRequest ¶
type GetBlockByHeightRequest struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
}
GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method.
func (*GetBlockByHeightRequest) Descriptor ¶
func (*GetBlockByHeightRequest) Descriptor() ([]byte, []int)
func (*GetBlockByHeightRequest) GetHeight ¶
func (m *GetBlockByHeightRequest) GetHeight() int64
func (*GetBlockByHeightRequest) Marshal ¶
func (m *GetBlockByHeightRequest) Marshal() (dAtA []byte, err error)
func (*GetBlockByHeightRequest) MarshalTo ¶
func (m *GetBlockByHeightRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetBlockByHeightRequest) MarshalToSizedBuffer ¶
func (m *GetBlockByHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetBlockByHeightRequest) ProtoMessage ¶
func (*GetBlockByHeightRequest) ProtoMessage()
func (*GetBlockByHeightRequest) Reset ¶
func (m *GetBlockByHeightRequest) Reset()
func (*GetBlockByHeightRequest) Size ¶
func (m *GetBlockByHeightRequest) Size() (n int)
func (*GetBlockByHeightRequest) String ¶
func (m *GetBlockByHeightRequest) String() string
func (*GetBlockByHeightRequest) Unmarshal ¶
func (m *GetBlockByHeightRequest) Unmarshal(dAtA []byte) error
func (*GetBlockByHeightRequest) XXX_DiscardUnknown ¶
func (m *GetBlockByHeightRequest) XXX_DiscardUnknown()
func (*GetBlockByHeightRequest) XXX_Marshal ¶
func (m *GetBlockByHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlockByHeightRequest) XXX_Merge ¶
func (m *GetBlockByHeightRequest) XXX_Merge(src proto.Message)
func (*GetBlockByHeightRequest) XXX_Size ¶
func (m *GetBlockByHeightRequest) XXX_Size() int
func (*GetBlockByHeightRequest) XXX_Unmarshal ¶
func (m *GetBlockByHeightRequest) XXX_Unmarshal(b []byte) error
type GetBlockByHeightResponse ¶
type GetBlockByHeightResponse struct {
BlockId *types1.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
// Deprecated: please use `sdk_block` instead
Block *types1.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"`
}
GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method.
func (*GetBlockByHeightResponse) Descriptor ¶
func (*GetBlockByHeightResponse) Descriptor() ([]byte, []int)
func (*GetBlockByHeightResponse) GetBlock ¶
func (m *GetBlockByHeightResponse) GetBlock() *types1.Block
func (*GetBlockByHeightResponse) GetBlockId ¶
func (m *GetBlockByHeightResponse) GetBlockId() *types1.BlockID
func (*GetBlockByHeightResponse) GetSdkBlock ¶
func (m *GetBlockByHeightResponse) GetSdkBlock() *Block
func (*GetBlockByHeightResponse) Marshal ¶
func (m *GetBlockByHeightResponse) Marshal() (dAtA []byte, err error)
func (*GetBlockByHeightResponse) MarshalTo ¶
func (m *GetBlockByHeightResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetBlockByHeightResponse) MarshalToSizedBuffer ¶
func (m *GetBlockByHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetBlockByHeightResponse) ProtoMessage ¶
func (*GetBlockByHeightResponse) ProtoMessage()
func (*GetBlockByHeightResponse) Reset ¶
func (m *GetBlockByHeightResponse) Reset()
func (*GetBlockByHeightResponse) Size ¶
func (m *GetBlockByHeightResponse) Size() (n int)
func (*GetBlockByHeightResponse) String ¶
func (m *GetBlockByHeightResponse) String() string
func (*GetBlockByHeightResponse) Unmarshal ¶
func (m *GetBlockByHeightResponse) Unmarshal(dAtA []byte) error
func (*GetBlockByHeightResponse) XXX_DiscardUnknown ¶
func (m *GetBlockByHeightResponse) XXX_DiscardUnknown()
func (*GetBlockByHeightResponse) XXX_Marshal ¶
func (m *GetBlockByHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlockByHeightResponse) XXX_Merge ¶
func (m *GetBlockByHeightResponse) XXX_Merge(src proto.Message)
func (*GetBlockByHeightResponse) XXX_Size ¶
func (m *GetBlockByHeightResponse) XXX_Size() int
func (*GetBlockByHeightResponse) XXX_Unmarshal ¶
func (m *GetBlockByHeightResponse) XXX_Unmarshal(b []byte) error
type GetLatestBlockRequest ¶
type GetLatestBlockRequest struct {
}
GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method.
func (*GetLatestBlockRequest) Descriptor ¶
func (*GetLatestBlockRequest) Descriptor() ([]byte, []int)
func (*GetLatestBlockRequest) Marshal ¶
func (m *GetLatestBlockRequest) Marshal() (dAtA []byte, err error)
func (*GetLatestBlockRequest) MarshalTo ¶
func (m *GetLatestBlockRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetLatestBlockRequest) MarshalToSizedBuffer ¶
func (m *GetLatestBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetLatestBlockRequest) ProtoMessage ¶
func (*GetLatestBlockRequest) ProtoMessage()
func (*GetLatestBlockRequest) Reset ¶
func (m *GetLatestBlockRequest) Reset()
func (*GetLatestBlockRequest) Size ¶
func (m *GetLatestBlockRequest) Size() (n int)
func (*GetLatestBlockRequest) String ¶
func (m *GetLatestBlockRequest) String() string
func (*GetLatestBlockRequest) Unmarshal ¶
func (m *GetLatestBlockRequest) Unmarshal(dAtA []byte) error
func (*GetLatestBlockRequest) XXX_DiscardUnknown ¶
func (m *GetLatestBlockRequest) XXX_DiscardUnknown()
func (*GetLatestBlockRequest) XXX_Marshal ¶
func (m *GetLatestBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetLatestBlockRequest) XXX_Merge ¶
func (m *GetLatestBlockRequest) XXX_Merge(src proto.Message)
func (*GetLatestBlockRequest) XXX_Size ¶
func (m *GetLatestBlockRequest) XXX_Size() int
func (*GetLatestBlockRequest) XXX_Unmarshal ¶
func (m *GetLatestBlockRequest) XXX_Unmarshal(b []byte) error
type GetLatestBlockResponse ¶
type GetLatestBlockResponse struct {
BlockId *types1.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
// Deprecated: please use `sdk_block` instead
Block *types1.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"`
}
GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method.
func (*GetLatestBlockResponse) Descriptor ¶
func (*GetLatestBlockResponse) Descriptor() ([]byte, []int)
func (*GetLatestBlockResponse) GetBlock ¶
func (m *GetLatestBlockResponse) GetBlock() *types1.Block
func (*GetLatestBlockResponse) GetBlockId ¶
func (m *GetLatestBlockResponse) GetBlockId() *types1.BlockID
func (*GetLatestBlockResponse) GetSdkBlock ¶
func (m *GetLatestBlockResponse) GetSdkBlock() *Block
func (*GetLatestBlockResponse) Marshal ¶
func (m *GetLatestBlockResponse) Marshal() (dAtA []byte, err error)
func (*GetLatestBlockResponse) MarshalTo ¶
func (m *GetLatestBlockResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetLatestBlockResponse) MarshalToSizedBuffer ¶
func (m *GetLatestBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetLatestBlockResponse) ProtoMessage ¶
func (*GetLatestBlockResponse) ProtoMessage()
func (*GetLatestBlockResponse) Reset ¶
func (m *GetLatestBlockResponse) Reset()
func (*GetLatestBlockResponse) Size ¶
func (m *GetLatestBlockResponse) Size() (n int)
func (*GetLatestBlockResponse) String ¶
func (m *GetLatestBlockResponse) String() string
func (*GetLatestBlockResponse) Unmarshal ¶
func (m *GetLatestBlockResponse) Unmarshal(dAtA []byte) error
func (*GetLatestBlockResponse) XXX_DiscardUnknown ¶
func (m *GetLatestBlockResponse) XXX_DiscardUnknown()
func (*GetLatestBlockResponse) XXX_Marshal ¶
func (m *GetLatestBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetLatestBlockResponse) XXX_Merge ¶
func (m *GetLatestBlockResponse) XXX_Merge(src proto.Message)
func (*GetLatestBlockResponse) XXX_Size ¶
func (m *GetLatestBlockResponse) XXX_Size() int
func (*GetLatestBlockResponse) XXX_Unmarshal ¶
func (m *GetLatestBlockResponse) XXX_Unmarshal(b []byte) error
type GetLatestValidatorSetRequest ¶
type GetLatestValidatorSetRequest struct {
// pagination defines an pagination for the request.
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
func (*GetLatestValidatorSetRequest) Descriptor ¶
func (*GetLatestValidatorSetRequest) Descriptor() ([]byte, []int)
func (*GetLatestValidatorSetRequest) GetPagination ¶
func (m *GetLatestValidatorSetRequest) GetPagination() *query.PageRequest
func (*GetLatestValidatorSetRequest) Marshal ¶
func (m *GetLatestValidatorSetRequest) Marshal() (dAtA []byte, err error)
func (*GetLatestValidatorSetRequest) MarshalTo ¶
func (m *GetLatestValidatorSetRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetLatestValidatorSetRequest) MarshalToSizedBuffer ¶
func (m *GetLatestValidatorSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetLatestValidatorSetRequest) ProtoMessage ¶
func (*GetLatestValidatorSetRequest) ProtoMessage()
func (*GetLatestValidatorSetRequest) Reset ¶
func (m *GetLatestValidatorSetRequest) Reset()
func (*GetLatestValidatorSetRequest) Size ¶
func (m *GetLatestValidatorSetRequest) Size() (n int)
func (*GetLatestValidatorSetRequest) String ¶
func (m *GetLatestValidatorSetRequest) String() string
func (*GetLatestValidatorSetRequest) Unmarshal ¶
func (m *GetLatestValidatorSetRequest) Unmarshal(dAtA []byte) error
func (*GetLatestValidatorSetRequest) XXX_DiscardUnknown ¶
func (m *GetLatestValidatorSetRequest) XXX_DiscardUnknown()
func (*GetLatestValidatorSetRequest) XXX_Marshal ¶
func (m *GetLatestValidatorSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetLatestValidatorSetRequest) XXX_Merge ¶
func (m *GetLatestValidatorSetRequest) XXX_Merge(src proto.Message)
func (*GetLatestValidatorSetRequest) XXX_Size ¶
func (m *GetLatestValidatorSetRequest) XXX_Size() int
func (*GetLatestValidatorSetRequest) XXX_Unmarshal ¶
func (m *GetLatestValidatorSetRequest) XXX_Unmarshal(b []byte) error
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 *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
func (*GetLatestValidatorSetResponse) Descriptor ¶
func (*GetLatestValidatorSetResponse) Descriptor() ([]byte, []int)
func (*GetLatestValidatorSetResponse) GetBlockHeight ¶
func (m *GetLatestValidatorSetResponse) GetBlockHeight() int64
func (*GetLatestValidatorSetResponse) GetPagination ¶
func (m *GetLatestValidatorSetResponse) GetPagination() *query.PageResponse
func (*GetLatestValidatorSetResponse) GetValidators ¶
func (m *GetLatestValidatorSetResponse) GetValidators() []*Validator
func (*GetLatestValidatorSetResponse) Marshal ¶
func (m *GetLatestValidatorSetResponse) Marshal() (dAtA []byte, err error)
func (*GetLatestValidatorSetResponse) MarshalTo ¶
func (m *GetLatestValidatorSetResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetLatestValidatorSetResponse) MarshalToSizedBuffer ¶
func (m *GetLatestValidatorSetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetLatestValidatorSetResponse) ProtoMessage ¶
func (*GetLatestValidatorSetResponse) ProtoMessage()
func (*GetLatestValidatorSetResponse) Reset ¶
func (m *GetLatestValidatorSetResponse) Reset()
func (*GetLatestValidatorSetResponse) Size ¶
func (m *GetLatestValidatorSetResponse) Size() (n int)
func (*GetLatestValidatorSetResponse) String ¶
func (m *GetLatestValidatorSetResponse) String() string
func (*GetLatestValidatorSetResponse) Unmarshal ¶
func (m *GetLatestValidatorSetResponse) Unmarshal(dAtA []byte) error
func (*GetLatestValidatorSetResponse) UnpackInterfaces ¶
func (m *GetLatestValidatorSetResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
func (*GetLatestValidatorSetResponse) XXX_DiscardUnknown ¶
func (m *GetLatestValidatorSetResponse) XXX_DiscardUnknown()
func (*GetLatestValidatorSetResponse) XXX_Marshal ¶
func (m *GetLatestValidatorSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetLatestValidatorSetResponse) XXX_Merge ¶
func (m *GetLatestValidatorSetResponse) XXX_Merge(src proto.Message)
func (*GetLatestValidatorSetResponse) XXX_Size ¶
func (m *GetLatestValidatorSetResponse) XXX_Size() int
func (*GetLatestValidatorSetResponse) XXX_Unmarshal ¶
func (m *GetLatestValidatorSetResponse) XXX_Unmarshal(b []byte) error
type GetNodeInfoRequest ¶
type GetNodeInfoRequest struct {
}
GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method.
func (*GetNodeInfoRequest) Descriptor ¶
func (*GetNodeInfoRequest) Descriptor() ([]byte, []int)
func (*GetNodeInfoRequest) Marshal ¶
func (m *GetNodeInfoRequest) Marshal() (dAtA []byte, err error)
func (*GetNodeInfoRequest) MarshalTo ¶
func (m *GetNodeInfoRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetNodeInfoRequest) MarshalToSizedBuffer ¶
func (m *GetNodeInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetNodeInfoRequest) ProtoMessage ¶
func (*GetNodeInfoRequest) ProtoMessage()
func (*GetNodeInfoRequest) Reset ¶
func (m *GetNodeInfoRequest) Reset()
func (*GetNodeInfoRequest) Size ¶
func (m *GetNodeInfoRequest) Size() (n int)
func (*GetNodeInfoRequest) String ¶
func (m *GetNodeInfoRequest) String() string
func (*GetNodeInfoRequest) Unmarshal ¶
func (m *GetNodeInfoRequest) Unmarshal(dAtA []byte) error
func (*GetNodeInfoRequest) XXX_DiscardUnknown ¶
func (m *GetNodeInfoRequest) XXX_DiscardUnknown()
func (*GetNodeInfoRequest) XXX_Marshal ¶
func (m *GetNodeInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetNodeInfoRequest) XXX_Merge ¶
func (m *GetNodeInfoRequest) XXX_Merge(src proto.Message)
func (*GetNodeInfoRequest) XXX_Size ¶
func (m *GetNodeInfoRequest) XXX_Size() int
func (*GetNodeInfoRequest) XXX_Unmarshal ¶
func (m *GetNodeInfoRequest) XXX_Unmarshal(b []byte) error
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"`
}
GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method.
func (*GetNodeInfoResponse) Descriptor ¶
func (*GetNodeInfoResponse) Descriptor() ([]byte, []int)
func (*GetNodeInfoResponse) GetApplicationVersion ¶
func (m *GetNodeInfoResponse) GetApplicationVersion() *VersionInfo
func (*GetNodeInfoResponse) GetDefaultNodeInfo ¶
func (m *GetNodeInfoResponse) GetDefaultNodeInfo() *p2p.DefaultNodeInfo
func (*GetNodeInfoResponse) Marshal ¶
func (m *GetNodeInfoResponse) Marshal() (dAtA []byte, err error)
func (*GetNodeInfoResponse) MarshalTo ¶
func (m *GetNodeInfoResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetNodeInfoResponse) MarshalToSizedBuffer ¶
func (m *GetNodeInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetNodeInfoResponse) ProtoMessage ¶
func (*GetNodeInfoResponse) ProtoMessage()
func (*GetNodeInfoResponse) Reset ¶
func (m *GetNodeInfoResponse) Reset()
func (*GetNodeInfoResponse) Size ¶
func (m *GetNodeInfoResponse) Size() (n int)
func (*GetNodeInfoResponse) String ¶
func (m *GetNodeInfoResponse) String() string
func (*GetNodeInfoResponse) Unmarshal ¶
func (m *GetNodeInfoResponse) Unmarshal(dAtA []byte) error
func (*GetNodeInfoResponse) XXX_DiscardUnknown ¶
func (m *GetNodeInfoResponse) XXX_DiscardUnknown()
func (*GetNodeInfoResponse) XXX_Marshal ¶
func (m *GetNodeInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetNodeInfoResponse) XXX_Merge ¶
func (m *GetNodeInfoResponse) XXX_Merge(src proto.Message)
func (*GetNodeInfoResponse) XXX_Size ¶
func (m *GetNodeInfoResponse) XXX_Size() int
func (*GetNodeInfoResponse) XXX_Unmarshal ¶
func (m *GetNodeInfoResponse) XXX_Unmarshal(b []byte) error
type GetSyncingRequest ¶
type GetSyncingRequest struct {
}
GetSyncingRequest is the request type for the Query/GetSyncing RPC method.
func (*GetSyncingRequest) Descriptor ¶
func (*GetSyncingRequest) Descriptor() ([]byte, []int)
func (*GetSyncingRequest) Marshal ¶
func (m *GetSyncingRequest) Marshal() (dAtA []byte, err error)
func (*GetSyncingRequest) MarshalTo ¶
func (m *GetSyncingRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetSyncingRequest) MarshalToSizedBuffer ¶
func (m *GetSyncingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetSyncingRequest) ProtoMessage ¶
func (*GetSyncingRequest) ProtoMessage()
func (*GetSyncingRequest) Reset ¶
func (m *GetSyncingRequest) Reset()
func (*GetSyncingRequest) Size ¶
func (m *GetSyncingRequest) Size() (n int)
func (*GetSyncingRequest) String ¶
func (m *GetSyncingRequest) String() string
func (*GetSyncingRequest) Unmarshal ¶
func (m *GetSyncingRequest) Unmarshal(dAtA []byte) error
func (*GetSyncingRequest) XXX_DiscardUnknown ¶
func (m *GetSyncingRequest) XXX_DiscardUnknown()
func (*GetSyncingRequest) XXX_Marshal ¶
func (m *GetSyncingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetSyncingRequest) XXX_Merge ¶
func (m *GetSyncingRequest) XXX_Merge(src proto.Message)
func (*GetSyncingRequest) XXX_Size ¶
func (m *GetSyncingRequest) XXX_Size() int
func (*GetSyncingRequest) XXX_Unmarshal ¶
func (m *GetSyncingRequest) XXX_Unmarshal(b []byte) error
type GetSyncingResponse ¶
type GetSyncingResponse struct {
Syncing bool `protobuf:"varint,1,opt,name=syncing,proto3" json:"syncing,omitempty"`
}
GetSyncingResponse is the response type for the Query/GetSyncing RPC method.
func (*GetSyncingResponse) Descriptor ¶
func (*GetSyncingResponse) Descriptor() ([]byte, []int)
func (*GetSyncingResponse) GetSyncing ¶
func (m *GetSyncingResponse) GetSyncing() bool
func (*GetSyncingResponse) Marshal ¶
func (m *GetSyncingResponse) Marshal() (dAtA []byte, err error)
func (*GetSyncingResponse) MarshalTo ¶
func (m *GetSyncingResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetSyncingResponse) MarshalToSizedBuffer ¶
func (m *GetSyncingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetSyncingResponse) ProtoMessage ¶
func (*GetSyncingResponse) ProtoMessage()
func (*GetSyncingResponse) Reset ¶
func (m *GetSyncingResponse) Reset()
func (*GetSyncingResponse) Size ¶
func (m *GetSyncingResponse) Size() (n int)
func (*GetSyncingResponse) String ¶
func (m *GetSyncingResponse) String() string
func (*GetSyncingResponse) Unmarshal ¶
func (m *GetSyncingResponse) Unmarshal(dAtA []byte) error
func (*GetSyncingResponse) XXX_DiscardUnknown ¶
func (m *GetSyncingResponse) XXX_DiscardUnknown()
func (*GetSyncingResponse) XXX_Marshal ¶
func (m *GetSyncingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetSyncingResponse) XXX_Merge ¶
func (m *GetSyncingResponse) XXX_Merge(src proto.Message)
func (*GetSyncingResponse) XXX_Size ¶
func (m *GetSyncingResponse) XXX_Size() int
func (*GetSyncingResponse) XXX_Unmarshal ¶
func (m *GetSyncingResponse) XXX_Unmarshal(b []byte) error
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 *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
func (*GetValidatorSetByHeightRequest) Descriptor ¶
func (*GetValidatorSetByHeightRequest) Descriptor() ([]byte, []int)
func (*GetValidatorSetByHeightRequest) GetHeight ¶
func (m *GetValidatorSetByHeightRequest) GetHeight() int64
func (*GetValidatorSetByHeightRequest) GetPagination ¶
func (m *GetValidatorSetByHeightRequest) GetPagination() *query.PageRequest
func (*GetValidatorSetByHeightRequest) Marshal ¶
func (m *GetValidatorSetByHeightRequest) Marshal() (dAtA []byte, err error)
func (*GetValidatorSetByHeightRequest) MarshalTo ¶
func (m *GetValidatorSetByHeightRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetValidatorSetByHeightRequest) MarshalToSizedBuffer ¶
func (m *GetValidatorSetByHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetValidatorSetByHeightRequest) ProtoMessage ¶
func (*GetValidatorSetByHeightRequest) ProtoMessage()
func (*GetValidatorSetByHeightRequest) Reset ¶
func (m *GetValidatorSetByHeightRequest) Reset()
func (*GetValidatorSetByHeightRequest) Size ¶
func (m *GetValidatorSetByHeightRequest) Size() (n int)
func (*GetValidatorSetByHeightRequest) String ¶
func (m *GetValidatorSetByHeightRequest) String() string
func (*GetValidatorSetByHeightRequest) Unmarshal ¶
func (m *GetValidatorSetByHeightRequest) Unmarshal(dAtA []byte) error
func (*GetValidatorSetByHeightRequest) XXX_DiscardUnknown ¶
func (m *GetValidatorSetByHeightRequest) XXX_DiscardUnknown()
func (*GetValidatorSetByHeightRequest) XXX_Marshal ¶
func (m *GetValidatorSetByHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetValidatorSetByHeightRequest) XXX_Merge ¶
func (m *GetValidatorSetByHeightRequest) XXX_Merge(src proto.Message)
func (*GetValidatorSetByHeightRequest) XXX_Size ¶
func (m *GetValidatorSetByHeightRequest) XXX_Size() int
func (*GetValidatorSetByHeightRequest) XXX_Unmarshal ¶
func (m *GetValidatorSetByHeightRequest) XXX_Unmarshal(b []byte) error
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 *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
func (*GetValidatorSetByHeightResponse) Descriptor ¶
func (*GetValidatorSetByHeightResponse) Descriptor() ([]byte, []int)
func (*GetValidatorSetByHeightResponse) GetBlockHeight ¶
func (m *GetValidatorSetByHeightResponse) GetBlockHeight() int64
func (*GetValidatorSetByHeightResponse) GetPagination ¶
func (m *GetValidatorSetByHeightResponse) GetPagination() *query.PageResponse
func (*GetValidatorSetByHeightResponse) GetValidators ¶
func (m *GetValidatorSetByHeightResponse) GetValidators() []*Validator
func (*GetValidatorSetByHeightResponse) Marshal ¶
func (m *GetValidatorSetByHeightResponse) Marshal() (dAtA []byte, err error)
func (*GetValidatorSetByHeightResponse) MarshalTo ¶
func (m *GetValidatorSetByHeightResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetValidatorSetByHeightResponse) MarshalToSizedBuffer ¶
func (m *GetValidatorSetByHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetValidatorSetByHeightResponse) ProtoMessage ¶
func (*GetValidatorSetByHeightResponse) ProtoMessage()
func (*GetValidatorSetByHeightResponse) Reset ¶
func (m *GetValidatorSetByHeightResponse) Reset()
func (*GetValidatorSetByHeightResponse) Size ¶
func (m *GetValidatorSetByHeightResponse) Size() (n int)
func (*GetValidatorSetByHeightResponse) String ¶
func (m *GetValidatorSetByHeightResponse) String() string
func (*GetValidatorSetByHeightResponse) Unmarshal ¶
func (m *GetValidatorSetByHeightResponse) Unmarshal(dAtA []byte) error
func (*GetValidatorSetByHeightResponse) XXX_DiscardUnknown ¶
func (m *GetValidatorSetByHeightResponse) XXX_DiscardUnknown()
func (*GetValidatorSetByHeightResponse) XXX_Marshal ¶
func (m *GetValidatorSetByHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetValidatorSetByHeightResponse) XXX_Merge ¶
func (m *GetValidatorSetByHeightResponse) XXX_Merge(src proto.Message)
func (*GetValidatorSetByHeightResponse) XXX_Size ¶
func (m *GetValidatorSetByHeightResponse) XXX_Size() int
func (*GetValidatorSetByHeightResponse) XXX_Unmarshal ¶
func (m *GetValidatorSetByHeightResponse) XXX_Unmarshal(b []byte) error
type Header ¶
type Header struct {
// basic block info
Version version.Consensus `protobuf:"bytes,1,opt,name=version,proto3" json:"version"`
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 time.Time `protobuf:"bytes,4,opt,name=time,proto3,stdtime" json:"time"`
// prev block info
LastBlockId types.BlockID `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id"`
// hashes of block data
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"`
// 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"`
NextValidatorsHash []byte `protobuf:"bytes,9,opt,name=next_validators_hash,json=nextValidatorsHash,proto3" json:"next_validators_hash,omitempty"`
ConsensusHash []byte `protobuf:"bytes,10,opt,name=consensus_hash,json=consensusHash,proto3" json:"consensus_hash,omitempty"`
AppHash []byte `protobuf:"bytes,11,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
LastResultsHash []byte `protobuf:"bytes,12,opt,name=last_results_hash,json=lastResultsHash,proto3" json:"last_results_hash,omitempty"`
// consensus info
EvidenceHash []byte `protobuf:"bytes,13,opt,name=evidence_hash,json=evidenceHash,proto3" json:"evidence_hash,omitempty"`
// 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"`
}
Header defines the structure of a Tendermint block header.
func (*Header) Descriptor ¶
func (*Header) GetAppHash ¶
func (*Header) GetChainID ¶
func (*Header) GetConsensusHash ¶
func (*Header) GetDataHash ¶
func (*Header) GetEvidenceHash ¶
func (*Header) GetLastBlockId ¶
func (*Header) GetLastCommitHash ¶
func (*Header) GetLastResultsHash ¶
func (*Header) GetNextValidatorsHash ¶
func (*Header) GetProposerAddress ¶
func (*Header) GetValidatorsHash ¶
func (*Header) GetVersion ¶
func (*Header) MarshalToSizedBuffer ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) XXX_DiscardUnknown ¶
func (m *Header) XXX_DiscardUnknown()
func (*Header) XXX_Marshal ¶
func (*Header) XXX_Unmarshal ¶
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"`
}
Module is the type for VersionInfo
func (*Module) Descriptor ¶
func (*Module) GetVersion ¶
func (*Module) MarshalToSizedBuffer ¶
func (*Module) ProtoMessage ¶
func (*Module) ProtoMessage()
func (*Module) XXX_DiscardUnknown ¶
func (m *Module) XXX_DiscardUnknown()
func (*Module) XXX_Marshal ¶
func (*Module) XXX_Unmarshal ¶
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"`
}
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 ¶
func (*ProofOp) MarshalToSizedBuffer ¶
func (*ProofOp) ProtoMessage ¶
func (*ProofOp) ProtoMessage()
func (*ProofOp) XXX_DiscardUnknown ¶
func (m *ProofOp) XXX_DiscardUnknown()
func (*ProofOp) XXX_Marshal ¶
func (*ProofOp) XXX_Unmarshal ¶
type ProofOps ¶
type ProofOps struct {
Ops []ProofOp `protobuf:"bytes,1,rep,name=ops,proto3" json:"ops"`
}
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 ¶
func (*ProofOps) MarshalToSizedBuffer ¶
func (*ProofOps) ProtoMessage ¶
func (*ProofOps) ProtoMessage()
func (*ProofOps) XXX_DiscardUnknown ¶
func (m *ProofOps) XXX_DiscardUnknown()
func (*ProofOps) XXX_Marshal ¶
func (*ProofOps) XXX_Unmarshal ¶
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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewServiceClient ¶
func NewServiceClient(cc grpc1.ClientConn) 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)
}
ServiceServer is the server API for Service service.
func NewQueryServer ¶
func NewQueryServer( clientCtx client.Context, interfaceRegistry codectypes.InterfaceRegistry, queryFn abciQueryFn, ) ServiceServer
NewQueryServer creates a new tendermint query server.
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct {
}
UnimplementedServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedServiceServer) ABCIQuery ¶
func (*UnimplementedServiceServer) ABCIQuery(ctx context.Context, req *ABCIQueryRequest) (*ABCIQueryResponse, error)
func (*UnimplementedServiceServer) GetBlockByHeight ¶
func (*UnimplementedServiceServer) GetBlockByHeight(ctx context.Context, req *GetBlockByHeightRequest) (*GetBlockByHeightResponse, error)
func (*UnimplementedServiceServer) GetLatestBlock ¶
func (*UnimplementedServiceServer) GetLatestBlock(ctx context.Context, req *GetLatestBlockRequest) (*GetLatestBlockResponse, error)
func (*UnimplementedServiceServer) GetLatestValidatorSet ¶
func (*UnimplementedServiceServer) GetLatestValidatorSet(ctx context.Context, req *GetLatestValidatorSetRequest) (*GetLatestValidatorSetResponse, error)
func (*UnimplementedServiceServer) GetNodeInfo ¶
func (*UnimplementedServiceServer) GetNodeInfo(ctx context.Context, req *GetNodeInfoRequest) (*GetNodeInfoResponse, error)
func (*UnimplementedServiceServer) GetSyncing ¶
func (*UnimplementedServiceServer) GetSyncing(ctx context.Context, req *GetSyncingRequest) (*GetSyncingResponse, error)
func (*UnimplementedServiceServer) GetValidatorSetByHeight ¶
func (*UnimplementedServiceServer) GetValidatorSetByHeight(ctx context.Context, req *GetValidatorSetByHeightRequest) (*GetValidatorSetByHeightResponse, error)
type Validator ¶
type Validator struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
PubKey *types.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"`
}
Validator is the type for the validator-set.
func (*Validator) Descriptor ¶
func (*Validator) GetAddress ¶
func (*Validator) GetProposerPriority ¶
func (*Validator) GetVotingPower ¶
func (*Validator) MarshalToSizedBuffer ¶
func (*Validator) ProtoMessage ¶
func (*Validator) ProtoMessage()
func (*Validator) XXX_DiscardUnknown ¶
func (m *Validator) XXX_DiscardUnknown()
func (*Validator) XXX_Marshal ¶
func (*Validator) XXX_Unmarshal ¶
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"`
}
VersionInfo is the type for the GetNodeInfoResponse message.
func (*VersionInfo) Descriptor ¶
func (*VersionInfo) Descriptor() ([]byte, []int)
func (*VersionInfo) GetAppName ¶
func (m *VersionInfo) GetAppName() string
func (*VersionInfo) GetBuildDeps ¶
func (m *VersionInfo) GetBuildDeps() []*Module
func (*VersionInfo) GetBuildTags ¶
func (m *VersionInfo) GetBuildTags() string
func (*VersionInfo) GetCosmosSdkVersion ¶
func (m *VersionInfo) GetCosmosSdkVersion() string
func (*VersionInfo) GetGitCommit ¶
func (m *VersionInfo) GetGitCommit() string
func (*VersionInfo) GetGoVersion ¶
func (m *VersionInfo) GetGoVersion() string
func (*VersionInfo) GetName ¶
func (m *VersionInfo) GetName() string
func (*VersionInfo) GetVersion ¶
func (m *VersionInfo) GetVersion() string
func (*VersionInfo) Marshal ¶
func (m *VersionInfo) Marshal() (dAtA []byte, err error)
func (*VersionInfo) MarshalToSizedBuffer ¶
func (m *VersionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VersionInfo) ProtoMessage ¶
func (*VersionInfo) ProtoMessage()
func (*VersionInfo) Reset ¶
func (m *VersionInfo) Reset()
func (*VersionInfo) Size ¶
func (m *VersionInfo) Size() (n int)
func (*VersionInfo) String ¶
func (m *VersionInfo) String() string
func (*VersionInfo) Unmarshal ¶
func (m *VersionInfo) Unmarshal(dAtA []byte) error
func (*VersionInfo) XXX_DiscardUnknown ¶
func (m *VersionInfo) XXX_DiscardUnknown()
func (*VersionInfo) XXX_Marshal ¶
func (m *VersionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VersionInfo) XXX_Merge ¶
func (m *VersionInfo) XXX_Merge(src proto.Message)
func (*VersionInfo) XXX_Size ¶
func (m *VersionInfo) XXX_Size() int
func (*VersionInfo) XXX_Unmarshal ¶
func (m *VersionInfo) XXX_Unmarshal(b []byte) error