Documentation ¶
Overview ¶
Package proto3 is a generated protocol buffer package.
It is generated from these files:
block.proto
It has these top-level messages:
PartSetHeader BlockID Header Timestamp
Index ¶
- type BlockID
- 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() *BlockID
- func (m *Header) GetLastCommitHash() []byte
- func (m *Header) GetLastResultsHash() []byte
- func (m *Header) GetNumTxs() int64
- func (m *Header) GetTime() *Timestamp
- func (m *Header) GetTotalTxs() int64
- func (m *Header) GetValidatorsHash() []byte
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (m *Header) String() string
- type PartSetHeader
- type Timestamp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockID ¶
type BlockID struct { Hash []byte `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"` PartsHeader *PartSetHeader `protobuf:"bytes,2,opt,name=PartsHeader" json:"PartsHeader,omitempty"` }
func (*BlockID) Descriptor ¶
func (*BlockID) GetPartsHeader ¶
func (m *BlockID) GetPartsHeader() *PartSetHeader
func (*BlockID) ProtoMessage ¶
func (*BlockID) ProtoMessage()
type Header ¶
type Header struct { // basic block info ChainID string `protobuf:"bytes,1,opt,name=ChainID" json:"ChainID,omitempty"` Height int64 `protobuf:"zigzag64,2,opt,name=Height" json:"Height,omitempty"` Time *Timestamp `protobuf:"bytes,3,opt,name=Time" json:"Time,omitempty"` NumTxs int64 `protobuf:"zigzag64,4,opt,name=NumTxs" json:"NumTxs,omitempty"` // prev block info LastBlockID *BlockID `protobuf:"bytes,5,opt,name=LastBlockID" json:"LastBlockID,omitempty"` TotalTxs int64 `protobuf:"zigzag64,6,opt,name=TotalTxs" json:"TotalTxs,omitempty"` // hashes of block data LastCommitHash []byte `protobuf:"bytes,7,opt,name=LastCommitHash,proto3" json:"LastCommitHash,omitempty"` DataHash []byte `protobuf:"bytes,8,opt,name=DataHash,proto3" json:"DataHash,omitempty"` // hashes from the app output from the prev block ValidatorsHash []byte `protobuf:"bytes,9,opt,name=ValidatorsHash,proto3" json:"ValidatorsHash,omitempty"` ConsensusHash []byte `protobuf:"bytes,10,opt,name=ConsensusHash,proto3" json:"ConsensusHash,omitempty"` AppHash []byte `protobuf:"bytes,11,opt,name=AppHash,proto3" json:"AppHash,omitempty"` LastResultsHash []byte `protobuf:"bytes,12,opt,name=LastResultsHash,proto3" json:"LastResultsHash,omitempty"` // consensus info EvidenceHash []byte `protobuf:"bytes,13,opt,name=EvidenceHash,proto3" json:"EvidenceHash,omitempty"` }
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) GetTotalTxs ¶
func (*Header) GetValidatorsHash ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
type PartSetHeader ¶
type PartSetHeader struct { Total int32 `protobuf:"zigzag32,1,opt,name=Total" json:"Total,omitempty"` Hash []byte `protobuf:"bytes,2,opt,name=Hash,proto3" json:"Hash,omitempty"` }
func (*PartSetHeader) Descriptor ¶
func (*PartSetHeader) Descriptor() ([]byte, []int)
func (*PartSetHeader) GetHash ¶
func (m *PartSetHeader) GetHash() []byte
func (*PartSetHeader) GetTotal ¶
func (m *PartSetHeader) GetTotal() int32
func (*PartSetHeader) ProtoMessage ¶
func (*PartSetHeader) ProtoMessage()
func (*PartSetHeader) Reset ¶
func (m *PartSetHeader) Reset()
func (*PartSetHeader) String ¶
func (m *PartSetHeader) String() string
type Timestamp ¶
type Timestamp struct { Seconds int64 `protobuf:"fixed64,1,opt,name=seconds" json:"seconds,omitempty"` Nanos int32 `protobuf:"fixed32,2,opt,name=nanos" json:"nanos,omitempty"` }
Timestamp wraps how amino encodes time. Note that this is different from the protobuf well-known type protobuf/timestamp.proto in the sense that there seconds and nanos are varint encoded. See: https://github.com/google/protobuf/blob/d2980062c859649523d5fd51d6b55ab310e47482/src/google/protobuf/timestamp.proto#L123-L135 Also nanos do not get skipped if they are zero in amino.
func (*Timestamp) Descriptor ¶
func (*Timestamp) GetSeconds ¶
func (*Timestamp) ProtoMessage ¶
func (*Timestamp) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.