proto3

package
v0.26.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*BlockID) Descriptor

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

func (*BlockID) GetHash

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

func (*BlockID) GetPartsHeader

func (m *BlockID) GetPartsHeader() *PartSetHeader

func (*BlockID) ProtoMessage

func (*BlockID) ProtoMessage()

func (*BlockID) Reset

func (m *BlockID) Reset()

func (*BlockID) String

func (m *BlockID) String() string

func (*BlockID) XXX_DiscardUnknown added in v0.24.0

func (m *BlockID) XXX_DiscardUnknown()

func (*BlockID) XXX_Marshal added in v0.24.0

func (m *BlockID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockID) XXX_Merge added in v0.24.0

func (dst *BlockID) XXX_Merge(src proto.Message)

func (*BlockID) XXX_Size added in v0.24.0

func (m *BlockID) XXX_Size() int

func (*BlockID) XXX_Unmarshal added in v0.24.0

func (m *BlockID) XXX_Unmarshal(b []byte) error
type Header struct {
	// basic block info
	Version  *Version   `protobuf:"bytes,1,opt,name=Version" json:"Version,omitempty"`
	ChainID  string     `protobuf:"bytes,2,opt,name=ChainID,proto3" json:"ChainID,omitempty"`
	Height   int64      `protobuf:"varint,3,opt,name=Height,proto3" json:"Height,omitempty"`
	Time     *Timestamp `protobuf:"bytes,4,opt,name=Time" json:"Time,omitempty"`
	NumTxs   int64      `protobuf:"varint,5,opt,name=NumTxs,proto3" json:"NumTxs,omitempty"`
	TotalTxs int64      `protobuf:"varint,6,opt,name=TotalTxs,proto3" json:"TotalTxs,omitempty"`
	// prev block info
	LastBlockID *BlockID `protobuf:"bytes,7,opt,name=LastBlockID" json:"LastBlockID,omitempty"`
	// hashes of block data
	LastCommitHash []byte `protobuf:"bytes,8,opt,name=LastCommitHash,proto3" json:"LastCommitHash,omitempty"`
	DataHash       []byte `protobuf:"bytes,9,opt,name=DataHash,proto3" json:"DataHash,omitempty"`
	// hashes from the app output from the prev block
	ValidatorsHash     []byte `protobuf:"bytes,10,opt,name=ValidatorsHash,proto3" json:"ValidatorsHash,omitempty"`
	NextValidatorsHash []byte `protobuf:"bytes,11,opt,name=NextValidatorsHash,proto3" json:"NextValidatorsHash,omitempty"`
	ConsensusHash      []byte `protobuf:"bytes,12,opt,name=ConsensusHash,proto3" json:"ConsensusHash,omitempty"`
	AppHash            []byte `protobuf:"bytes,13,opt,name=AppHash,proto3" json:"AppHash,omitempty"`
	LastResultsHash    []byte `protobuf:"bytes,14,opt,name=LastResultsHash,proto3" json:"LastResultsHash,omitempty"`
	// consensus info
	EvidenceHash         []byte   `protobuf:"bytes,15,opt,name=EvidenceHash,proto3" json:"EvidenceHash,omitempty"`
	ProposerAddress      []byte   `protobuf:"bytes,16,opt,name=ProposerAddress,proto3" json:"ProposerAddress,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Header) Descriptor

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

func (*Header) GetAppHash

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

func (*Header) GetChainID

func (m *Header) GetChainID() string

func (*Header) GetConsensusHash

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

func (*Header) GetDataHash

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

func (*Header) GetEvidenceHash

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

func (*Header) GetHeight

func (m *Header) GetHeight() int64

func (*Header) GetLastBlockID

func (m *Header) GetLastBlockID() *BlockID

func (*Header) GetLastCommitHash

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

func (*Header) GetLastResultsHash

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

func (*Header) GetNextValidatorsHash added in v0.26.0

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

func (*Header) GetNumTxs

func (m *Header) GetNumTxs() int64

func (*Header) GetProposerAddress added in v0.24.0

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

func (*Header) GetTime

func (m *Header) GetTime() *Timestamp

func (*Header) GetTotalTxs

func (m *Header) GetTotalTxs() int64

func (*Header) GetValidatorsHash

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

func (*Header) GetVersion added in v0.26.0

func (m *Header) GetVersion() *Version

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) Reset

func (m *Header) Reset()

func (*Header) String

func (m *Header) String() string

func (*Header) XXX_DiscardUnknown added in v0.24.0

func (m *Header) XXX_DiscardUnknown()

func (*Header) XXX_Marshal added in v0.24.0

func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Header) XXX_Merge added in v0.24.0

func (dst *Header) XXX_Merge(src proto.Message)

func (*Header) XXX_Size added in v0.24.0

func (m *Header) XXX_Size() int

func (*Header) XXX_Unmarshal added in v0.24.0

func (m *Header) XXX_Unmarshal(b []byte) error

type PartSetHeader

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

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

func (*PartSetHeader) XXX_DiscardUnknown added in v0.24.0

func (m *PartSetHeader) XXX_DiscardUnknown()

func (*PartSetHeader) XXX_Marshal added in v0.24.0

func (m *PartSetHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PartSetHeader) XXX_Merge added in v0.24.0

func (dst *PartSetHeader) XXX_Merge(src proto.Message)

func (*PartSetHeader) XXX_Size added in v0.24.0

func (m *PartSetHeader) XXX_Size() int

func (*PartSetHeader) XXX_Unmarshal added in v0.24.0

func (m *PartSetHeader) XXX_Unmarshal(b []byte) error

type Timestamp

type Timestamp struct {
	Seconds              int64    `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
	Nanos                int32    `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Timestamp wraps how amino encodes time. This is the protobuf well-known type protobuf/timestamp.proto See: https://github.com/google/protobuf/blob/d2980062c859649523d5fd51d6b55ab310e47482/src/google/protobuf/timestamp.proto#L123-L135 NOTE/XXX: nanos do not get skipped if they are zero in amino.

func (*Timestamp) Descriptor

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

func (*Timestamp) GetNanos

func (m *Timestamp) GetNanos() int32

func (*Timestamp) GetSeconds

func (m *Timestamp) GetSeconds() int64

func (*Timestamp) ProtoMessage

func (*Timestamp) ProtoMessage()

func (*Timestamp) Reset

func (m *Timestamp) Reset()

func (*Timestamp) String

func (m *Timestamp) String() string

func (*Timestamp) XXX_DiscardUnknown added in v0.24.0

func (m *Timestamp) XXX_DiscardUnknown()

func (*Timestamp) XXX_Marshal added in v0.24.0

func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Timestamp) XXX_Merge added in v0.24.0

func (dst *Timestamp) XXX_Merge(src proto.Message)

func (*Timestamp) XXX_Size added in v0.24.0

func (m *Timestamp) XXX_Size() int

func (*Timestamp) XXX_Unmarshal added in v0.24.0

func (m *Timestamp) XXX_Unmarshal(b []byte) error

type Version added in v0.26.0

type Version struct {
	Block                uint64   `protobuf:"varint,1,opt,name=Block,proto3" json:"Block,omitempty"`
	App                  uint64   `protobuf:"varint,2,opt,name=App,proto3" json:"App,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Version) Descriptor added in v0.26.0

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

func (*Version) GetApp added in v0.26.0

func (m *Version) GetApp() uint64

func (*Version) GetBlock added in v0.26.0

func (m *Version) GetBlock() uint64

func (*Version) ProtoMessage added in v0.26.0

func (*Version) ProtoMessage()

func (*Version) Reset added in v0.26.0

func (m *Version) Reset()

func (*Version) String added in v0.26.0

func (m *Version) String() string

func (*Version) XXX_DiscardUnknown added in v0.26.0

func (m *Version) XXX_DiscardUnknown()

func (*Version) XXX_Marshal added in v0.26.0

func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Version) XXX_Merge added in v0.26.0

func (dst *Version) XXX_Merge(src proto.Message)

func (*Version) XXX_Size added in v0.26.0

func (m *Version) XXX_Size() int

func (*Version) XXX_Unmarshal added in v0.26.0

func (m *Version) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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