Documentation
¶
Overview ¶
Package types is a generated protocol buffer package.
It is generated from these files:
types.proto
It has these top-level messages:
PubKey TxData Transaction PartSetHeader SimpleProof Part BlockID ProposalData Proposal VoteData Vote SignableBase Header Data Commit Block BlockMeta Validator Result
Index ¶
- Constants
- Variables
- func IsVoteTypeValid(type_ VoteType) bool
- type Block
- func (*Block) Descriptor() ([]byte, []int)
- func (m *Block) GetData() *Data
- func (m *Block) GetHeader() *Header
- func (m *Block) GetLastCommit() *Commit
- func (m *Block) Marshal() (dAtA []byte, err error)
- func (m *Block) MarshalTo(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
- type BlockID
- func (blockID *BlockID) CString() string
- func (*BlockID) Descriptor() ([]byte, []int)
- func (blockID *BlockID) Equals(other *BlockID) bool
- func (m *BlockID) GetHash() []byte
- func (m *BlockID) GetPartsHeader() *PartSetHeader
- func (blockID *BlockID) IsZero() bool
- func (blockID *BlockID) Key() string
- func (m *BlockID) Marshal() (dAtA []byte, err error)
- func (m *BlockID) MarshalTo(dAtA []byte) (int, error)
- func (*BlockID) ProtoMessage()
- func (m *BlockID) Reset()
- func (m *BlockID) Size() (n int)
- func (m *BlockID) String() string
- func (m *BlockID) Unmarshal(dAtA []byte) error
- type BlockMeta
- func (*BlockMeta) Descriptor() ([]byte, []int)
- func (m *BlockMeta) GetHash() []byte
- func (m *BlockMeta) GetHeader() *Header
- func (m *BlockMeta) GetPartsHeader() *PartSetHeader
- func (m *BlockMeta) Marshal() (dAtA []byte, err error)
- func (m *BlockMeta) MarshalTo(dAtA []byte) (int, error)
- func (*BlockMeta) ProtoMessage()
- func (m *BlockMeta) Reset()
- func (m *BlockMeta) Size() (n int)
- func (m *BlockMeta) String() string
- func (m *BlockMeta) Unmarshal(dAtA []byte) error
- type CodeType
- type Commit
- func (*Commit) Descriptor() ([]byte, []int)
- func (m *Commit) GetBlockID() *BlockID
- func (m *Commit) GetPrecommits() []*Vote
- func (m *Commit) Marshal() (dAtA []byte, err error)
- func (m *Commit) MarshalTo(dAtA []byte) (int, error)
- func (*Commit) ProtoMessage()
- func (m *Commit) Reset()
- func (m *Commit) Size() (n int)
- func (m *Commit) String() string
- func (m *Commit) Unmarshal(dAtA []byte) error
- type Data
- func (*Data) Descriptor() ([]byte, []int)
- func (m *Data) GetExTxs() [][]byte
- func (m *Data) GetTxs() [][]byte
- func (m *Data) Marshal() (dAtA []byte, err error)
- func (m *Data) MarshalTo(dAtA []byte) (int, error)
- func (*Data) ProtoMessage()
- func (m *Data) Reset()
- func (m *Data) Size() (n int)
- func (m *Data) String() string
- func (m *Data) Unmarshal(dAtA []byte) error
- type Header
- func (*Header) Descriptor() ([]byte, []int)
- func (m *Header) GetAppHash() []byte
- func (m *Header) GetChainID() string
- func (m *Header) GetDataHash() []byte
- func (m *Header) GetHeight() int64
- func (m *Header) GetLastBlockID() *BlockID
- func (m *Header) GetLastCommitHash() []byte
- func (m *Header) GetLastNonEmptyHeight() int64
- func (m *Header) GetMaker() []byte
- func (m *Header) GetNumTxs() int64
- func (m *Header) GetReceiptsHash() []byte
- func (m *Header) GetTime() int64
- func (m *Header) GetValidatorsHash() []byte
- func (h *Header) Hash() []byte
- func (m *Header) Marshal() (dAtA []byte, err error)
- func (m *Header) MarshalTo(dAtA []byte) (int, error)
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (m *Header) Size() (n int)
- func (m *Header) String() string
- func (h *Header) StringIndented(indent string) string
- func (m *Header) Unmarshal(dAtA []byte) error
- type KeyType
- type Part
- func (*Part) Descriptor() ([]byte, []int)
- func (m *Part) GetBytes() []byte
- func (m *Part) GetIndex() int32
- func (m *Part) GetProof() *SimpleProof
- func (m *Part) Marshal() (dAtA []byte, err error)
- func (m *Part) MarshalTo(dAtA []byte) (int, error)
- func (p *Part) MerkleProof() merkle.SimpleProof
- func (*Part) ProtoMessage()
- func (m *Part) Reset()
- func (m *Part) Size() (n int)
- func (m *Part) String() string
- func (m *Part) Unmarshal(dAtA []byte) error
- type PartSetHeader
- func (psh *PartSetHeader) CString() string
- func (*PartSetHeader) Descriptor() ([]byte, []int)
- func (psh *PartSetHeader) Equals(other *PartSetHeader) bool
- func (m *PartSetHeader) GetHash() []byte
- func (m *PartSetHeader) GetTotal() int32
- func (psh *PartSetHeader) IsZero() bool
- func (m *PartSetHeader) Marshal() (dAtA []byte, err error)
- func (m *PartSetHeader) MarshalTo(dAtA []byte) (int, error)
- func (*PartSetHeader) ProtoMessage()
- func (m *PartSetHeader) Reset()
- func (m *PartSetHeader) Size() (n int)
- func (m *PartSetHeader) String() string
- func (m *PartSetHeader) Unmarshal(dAtA []byte) error
- type Proposal
- func (p *Proposal) CString() string
- func (*Proposal) Descriptor() ([]byte, []int)
- func (m *Proposal) GetData() *ProposalData
- func (m *Proposal) GetSignature() []byte
- func (m *Proposal) Marshal() (dAtA []byte, err error)
- func (m *Proposal) MarshalTo(dAtA []byte) (int, error)
- func (*Proposal) ProtoMessage()
- func (m *Proposal) Reset()
- func (m *Proposal) Size() (n int)
- func (m *Proposal) String() string
- func (m *Proposal) Unmarshal(dAtA []byte) error
- type ProposalData
- func (*ProposalData) Descriptor() ([]byte, []int)
- func (m *ProposalData) GetBlockPartsHeader() *PartSetHeader
- func (pdata *ProposalData) GetBytes(chainID string) (bys []byte, err error)
- func (m *ProposalData) GetHeight() int64
- func (m *ProposalData) GetPOLBlockID() *BlockID
- func (m *ProposalData) GetPOLRound() int64
- func (m *ProposalData) GetRound() int64
- func (m *ProposalData) Marshal() (dAtA []byte, err error)
- func (m *ProposalData) MarshalTo(dAtA []byte) (int, error)
- func (*ProposalData) ProtoMessage()
- func (m *ProposalData) Reset()
- func (m *ProposalData) Size() (n int)
- func (m *ProposalData) String() string
- func (m *ProposalData) Unmarshal(dAtA []byte) error
- type PubKey
- func (*PubKey) Descriptor() ([]byte, []int)
- func (m *PubKey) GetBytes() []byte
- func (m *PubKey) GetType() KeyType
- func (m *PubKey) Marshal() (dAtA []byte, err error)
- func (m *PubKey) MarshalTo(dAtA []byte) (int, error)
- func (*PubKey) ProtoMessage()
- func (m *PubKey) Reset()
- func (m *PubKey) Size() (n int)
- func (m *PubKey) String() string
- func (m *PubKey) Unmarshal(dAtA []byte) error
- type Result
- func (*Result) Descriptor() ([]byte, []int)
- func (m *Result) GetCode() CodeType
- func (m *Result) GetData() []byte
- func (m *Result) GetLog() string
- func (m *Result) Marshal() (dAtA []byte, err error)
- func (m *Result) MarshalTo(dAtA []byte) (int, error)
- func (*Result) ProtoMessage()
- func (m *Result) Reset()
- func (m *Result) Size() (n int)
- func (m *Result) String() string
- func (m *Result) Unmarshal(dAtA []byte) error
- type SignableBase
- func (*SignableBase) Descriptor() ([]byte, []int)
- func (m *SignableBase) GetChainID() string
- func (m *SignableBase) GetData() []byte
- func (m *SignableBase) Marshal() (dAtA []byte, err error)
- func (m *SignableBase) MarshalTo(dAtA []byte) (int, error)
- func (*SignableBase) ProtoMessage()
- func (m *SignableBase) Reset()
- func (m *SignableBase) Size() (n int)
- func (m *SignableBase) String() string
- func (m *SignableBase) Unmarshal(dAtA []byte) error
- type SimpleProof
- func (*SimpleProof) Descriptor() ([]byte, []int)
- func (m *SimpleProof) GetBytes() [][]byte
- func (m *SimpleProof) Marshal() (dAtA []byte, err error)
- func (m *SimpleProof) MarshalTo(dAtA []byte) (int, error)
- func (*SimpleProof) ProtoMessage()
- func (m *SimpleProof) Reset()
- func (m *SimpleProof) Size() (n int)
- func (m *SimpleProof) String() string
- func (m *SimpleProof) Unmarshal(dAtA []byte) error
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)
- func (m *Transaction) GetData() *TxData
- func (m *Transaction) GetPubkey() *PubKey
- func (m *Transaction) GetSignature() []byte
- func (m *Transaction) Marshal() (dAtA []byte, err error)
- func (m *Transaction) MarshalTo(dAtA []byte) (int, error)
- func (*Transaction) ProtoMessage()
- func (m *Transaction) Reset()
- func (m *Transaction) Size() (n int)
- func (m *Transaction) String() string
- func (m *Transaction) Unmarshal(dAtA []byte) error
- type TxData
- func (*TxData) Descriptor() ([]byte, []int)
- func (m *TxData) GetAmount() []byte
- func (m *TxData) GetNonce() uint64
- func (m *TxData) GetPayload() []byte
- func (m *TxData) GetRecipient() []byte
- func (m *TxData) Marshal() (dAtA []byte, err error)
- func (m *TxData) MarshalTo(dAtA []byte) (int, error)
- func (*TxData) ProtoMessage()
- func (m *TxData) Reset()
- func (m *TxData) Size() (n int)
- func (m *TxData) String() string
- func (m *TxData) Unmarshal(dAtA []byte) error
- type Validator
- func (*Validator) Descriptor() ([]byte, []int)
- func (m *Validator) GetAccum() int64
- func (m *Validator) GetAddress() []byte
- func (m *Validator) GetIsCA() bool
- func (m *Validator) GetPubkey() *PubKey
- func (m *Validator) GetVotingPower() int64
- func (m *Validator) Marshal() (dAtA []byte, err error)
- func (m *Validator) MarshalTo(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
- type Vote
- func (vote *Vote) CString() string
- func (vote *Vote) Copy() *Vote
- func (*Vote) Descriptor() ([]byte, []int)
- func (vote *Vote) Exist() bool
- func (m *Vote) GetData() *VoteData
- func (m *Vote) GetSignature() []byte
- func (m *Vote) Marshal() (dAtA []byte, err error)
- func (m *Vote) MarshalTo(dAtA []byte) (int, error)
- func (*Vote) ProtoMessage()
- func (m *Vote) Reset()
- func (m *Vote) Size() (n int)
- func (m *Vote) String() string
- func (m *Vote) Unmarshal(dAtA []byte) error
- type VoteData
- func (*VoteData) Descriptor() ([]byte, []int)
- func (m *VoteData) GetBlockID() *BlockID
- func (vdata *VoteData) GetBytes(chainID string) (bys []byte, err error)
- func (m *VoteData) GetHeight() int64
- func (m *VoteData) GetRound() int64
- func (m *VoteData) GetType() VoteType
- func (m *VoteData) GetValidatorAddress() []byte
- func (m *VoteData) GetValidatorIndex() int64
- func (m *VoteData) Marshal() (dAtA []byte, err error)
- func (m *VoteData) MarshalTo(dAtA []byte) (int, error)
- func (*VoteData) ProtoMessage()
- func (m *VoteData) Reset()
- func (m *VoteData) Size() (n int)
- func (m *VoteData) String() string
- func (m *VoteData) Unmarshal(dAtA []byte) error
- type VoteType
Constants ¶
View Source
const ( VoteTypePrevote = byte(0x01) VoteTypePrecommit = byte(0x02) )
Variables ¶
View Source
var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") )
View Source
var CodeType_name = map[int32]string{
0: "OK",
1: "InternalError",
2: "EncodingError",
3: "BadNonce",
4: "Unauthorized",
5: "InsufficientFunds",
6: "UnknownRequest",
7: "InvalidTx",
101: "BaseDuplicateAddress",
102: "BaseEncodingError",
103: "BaseInsufficientFees",
104: "BaseInsufficientFunds",
105: "BaseInsufficientGasPrice",
106: "BaseInvalidInput",
107: "BaseInvalidOutput",
108: "BaseInvalidPubKey",
109: "BaseInvalidSequence",
110: "BaseInvalidSignature",
111: "BaseUnknownAddress",
112: "BaseUnknownPubKey",
113: "BaseUnknownPlugin",
114: "WrongRLP",
115: "SaveFailed",
201: "GovUnknownEntity",
202: "GovUnknownGroup",
203: "GovUnknownProposal",
204: "GovDuplicateGroup",
205: "GovDuplicateMember",
206: "GovDuplicateProposal",
207: "GovDuplicateVote",
208: "GovInvalidMember",
209: "GovInvalidVote",
210: "GovInvalidVotingPower",
}
View Source
var CodeType_value = map[string]int32{
"OK": 0,
"InternalError": 1,
"EncodingError": 2,
"BadNonce": 3,
"Unauthorized": 4,
"InsufficientFunds": 5,
"UnknownRequest": 6,
"InvalidTx": 7,
"BaseDuplicateAddress": 101,
"BaseEncodingError": 102,
"BaseInsufficientFees": 103,
"BaseInsufficientFunds": 104,
"BaseInsufficientGasPrice": 105,
"BaseInvalidInput": 106,
"BaseInvalidOutput": 107,
"BaseInvalidPubKey": 108,
"BaseInvalidSequence": 109,
"BaseInvalidSignature": 110,
"BaseUnknownAddress": 111,
"BaseUnknownPubKey": 112,
"BaseUnknownPlugin": 113,
"WrongRLP": 114,
"SaveFailed": 115,
"GovUnknownEntity": 201,
"GovUnknownGroup": 202,
"GovUnknownProposal": 203,
"GovDuplicateGroup": 204,
"GovDuplicateMember": 205,
"GovDuplicateProposal": 206,
"GovDuplicateVote": 207,
"GovInvalidMember": 208,
"GovInvalidVote": 209,
"GovInvalidVotingPower": 210,
}
View Source
var KeyType_name = map[int32]string{
0: "Ed25519",
1: "Secp256k1",
}
View Source
var KeyType_value = map[string]int32{
"Ed25519": 0,
"Secp256k1": 1,
}
View Source
var VoteType_name = map[int32]string{
0: "None",
1: "Prevote",
2: "Precommit",
}
View Source
var VoteType_value = map[string]int32{
"None": 0,
"Prevote": 1,
"Precommit": 2,
}
Functions ¶
func IsVoteTypeValid ¶
Types ¶
type Block ¶
type Block struct { Header *Header `protobuf:"bytes,1,opt,name=Header" json:"Header,omitempty"` Data *Data `protobuf:"bytes,2,opt,name=Data" json:"Data,omitempty"` LastCommit *Commit `protobuf:"bytes,3,opt,name=LastCommit" json:"LastCommit,omitempty"` }
func (*Block) Descriptor ¶
func (*Block) GetLastCommit ¶
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
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 BlockMeta ¶
type BlockMeta struct { Hash []byte `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"` Header *Header `protobuf:"bytes,2,opt,name=Header" json:"Header,omitempty"` PartsHeader *PartSetHeader `protobuf:"bytes,3,opt,name=PartsHeader" json:"PartsHeader,omitempty"` }
func (*BlockMeta) Descriptor ¶
func (*BlockMeta) GetPartsHeader ¶
func (m *BlockMeta) GetPartsHeader() *PartSetHeader
func (*BlockMeta) ProtoMessage ¶
func (*BlockMeta) ProtoMessage()
type CodeType ¶
type CodeType int32
const ( CodeType_OK CodeType = 0 // General response codes, 0 ~ 99 CodeType_InternalError CodeType = 1 CodeType_EncodingError CodeType = 2 CodeType_BadNonce CodeType = 3 CodeType_InsufficientFunds CodeType = 5 CodeType_UnknownRequest CodeType = 6 CodeType_InvalidTx CodeType = 7 // Reserved for basecoin, 100 ~ 199 CodeType_BaseDuplicateAddress CodeType = 101 CodeType_BaseEncodingError CodeType = 102 CodeType_BaseInsufficientFees CodeType = 103 CodeType_BaseInsufficientFunds CodeType = 104 CodeType_BaseInsufficientGasPrice CodeType = 105 CodeType_BaseInvalidInput CodeType = 106 CodeType_BaseInvalidOutput CodeType = 107 CodeType_BaseInvalidPubKey CodeType = 108 CodeType_BaseInvalidSequence CodeType = 109 CodeType_BaseInvalidSignature CodeType = 110 CodeType_BaseUnknownAddress CodeType = 111 CodeType_BaseUnknownPubKey CodeType = 112 CodeType_BaseUnknownPlugin CodeType = 113 CodeType_WrongRLP CodeType = 114 CodeType_SaveFailed CodeType = 115 // Reserved for governance, 200 ~ 299 CodeType_GovUnknownEntity CodeType = 201 CodeType_GovUnknownGroup CodeType = 202 CodeType_GovUnknownProposal CodeType = 203 CodeType_GovDuplicateGroup CodeType = 204 CodeType_GovDuplicateMember CodeType = 205 CodeType_GovDuplicateProposal CodeType = 206 CodeType_GovDuplicateVote CodeType = 207 CodeType_GovInvalidMember CodeType = 208 CodeType_GovInvalidVote CodeType = 209 CodeType_GovInvalidVotingPower CodeType = 210 )
func (CodeType) EnumDescriptor ¶
type Commit ¶
type Commit struct { BlockID *BlockID `protobuf:"bytes,1,opt,name=BlockID" json:"BlockID,omitempty"` Precommits []*Vote `protobuf:"bytes,2,rep,name=Precommits" json:"Precommits,omitempty"` }
func (*Commit) Descriptor ¶
func (*Commit) GetBlockID ¶
func (*Commit) GetPrecommits ¶
func (*Commit) ProtoMessage ¶
func (*Commit) ProtoMessage()
type Data ¶
type Data struct { Txs [][]byte `protobuf:"bytes,1,rep,name=Txs" json:"Txs,omitempty"` ExTxs [][]byte `protobuf:"bytes,2,rep,name=ExTxs" json:"ExTxs,omitempty"` }
func (*Data) Descriptor ¶
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
type Header ¶
type Header struct { ChainID string `protobuf:"bytes,1,opt,name=ChainID,proto3" json:"ChainID,omitempty"` Height int64 `protobuf:"varint,2,opt,name=Height,proto3" json:"Height,omitempty"` Time int64 `protobuf:"varint,3,opt,name=Time,proto3" json:"Time,omitempty"` NumTxs int64 `protobuf:"varint,4,opt,name=NumTxs,proto3" json:"NumTxs,omitempty"` Maker []byte `protobuf:"bytes,5,opt,name=Maker,proto3" json:"Maker,omitempty"` LastBlockID *BlockID `protobuf:"bytes,6,opt,name=LastBlockID" json:"LastBlockID,omitempty"` LastCommitHash []byte `protobuf:"bytes,7,opt,name=LastCommitHash,proto3" json:"LastCommitHash,omitempty"` DataHash []byte `protobuf:"bytes,8,opt,name=DataHash,proto3" json:"DataHash,omitempty"` ValidatorsHash []byte `protobuf:"bytes,9,opt,name=ValidatorsHash,proto3" json:"ValidatorsHash,omitempty"` AppHash []byte `protobuf:"bytes,10,opt,name=AppHash,proto3" json:"AppHash,omitempty"` ReceiptsHash []byte `protobuf:"bytes,11,opt,name=ReceiptsHash,proto3" json:"ReceiptsHash,omitempty"` LastNonEmptyHeight int64 `protobuf:"varint,12,opt,name=LastNonEmptyHeight,proto3" json:"LastNonEmptyHeight,omitempty"` }
func (*Header) Descriptor ¶
func (*Header) GetAppHash ¶
func (*Header) GetChainID ¶
func (*Header) GetDataHash ¶
func (*Header) GetLastBlockID ¶
func (*Header) GetLastCommitHash ¶
func (*Header) GetLastNonEmptyHeight ¶
func (*Header) GetReceiptsHash ¶
func (*Header) GetValidatorsHash ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) StringIndented ¶
type Part ¶
type Part struct { Index int32 `protobuf:"varint,1,opt,name=Index,proto3" json:"Index,omitempty"` Bytes []byte `protobuf:"bytes,2,opt,name=Bytes,proto3" json:"Bytes,omitempty"` Proof *SimpleProof `protobuf:"bytes,3,opt,name=Proof" json:"Proof,omitempty"` }
func (*Part) Descriptor ¶
func (*Part) GetProof ¶
func (m *Part) GetProof() *SimpleProof
func (*Part) MerkleProof ¶
func (p *Part) MerkleProof() merkle.SimpleProof
func (*Part) ProtoMessage ¶
func (*Part) ProtoMessage()
type PartSetHeader ¶
type PartSetHeader struct { Total int32 `protobuf:"varint,1,opt,name=Total,proto3" json:"Total,omitempty"` Hash []byte `protobuf:"bytes,2,opt,name=Hash,proto3" json:"Hash,omitempty"` }
func (*PartSetHeader) CString ¶
func (psh *PartSetHeader) CString() string
func (*PartSetHeader) Descriptor ¶
func (*PartSetHeader) Descriptor() ([]byte, []int)
func (*PartSetHeader) Equals ¶
func (psh *PartSetHeader) Equals(other *PartSetHeader) bool
func (*PartSetHeader) GetHash ¶
func (m *PartSetHeader) GetHash() []byte
func (*PartSetHeader) GetTotal ¶
func (m *PartSetHeader) GetTotal() int32
func (*PartSetHeader) IsZero ¶
func (psh *PartSetHeader) IsZero() bool
func (*PartSetHeader) Marshal ¶
func (m *PartSetHeader) Marshal() (dAtA []byte, err error)
func (*PartSetHeader) ProtoMessage ¶
func (*PartSetHeader) ProtoMessage()
func (*PartSetHeader) Reset ¶
func (m *PartSetHeader) Reset()
func (*PartSetHeader) Size ¶
func (m *PartSetHeader) Size() (n int)
func (*PartSetHeader) String ¶
func (m *PartSetHeader) String() string
func (*PartSetHeader) Unmarshal ¶
func (m *PartSetHeader) Unmarshal(dAtA []byte) error
type Proposal ¶
type Proposal struct { Data *ProposalData `protobuf:"bytes,1,opt,name=Data" json:"Data,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=Signature,proto3" json:"Signature,omitempty"` }
func (*Proposal) Descriptor ¶
func (*Proposal) GetData ¶
func (m *Proposal) GetData() *ProposalData
func (*Proposal) GetSignature ¶
func (*Proposal) ProtoMessage ¶
func (*Proposal) ProtoMessage()
type ProposalData ¶
type ProposalData struct { Height int64 `protobuf:"varint,1,opt,name=Height,proto3" json:"Height,omitempty"` Round int64 `protobuf:"varint,2,opt,name=Round,proto3" json:"Round,omitempty"` BlockPartsHeader *PartSetHeader `protobuf:"bytes,3,opt,name=BlockPartsHeader" json:"BlockPartsHeader,omitempty"` POLRound int64 `protobuf:"varint,4,opt,name=POLRound,proto3" json:"POLRound,omitempty"` POLBlockID *BlockID `protobuf:"bytes,5,opt,name=POLBlockID" json:"POLBlockID,omitempty"` }
func (*ProposalData) Descriptor ¶
func (*ProposalData) Descriptor() ([]byte, []int)
func (*ProposalData) GetBlockPartsHeader ¶
func (m *ProposalData) GetBlockPartsHeader() *PartSetHeader
func (*ProposalData) GetBytes ¶
func (pdata *ProposalData) GetBytes(chainID string) (bys []byte, err error)
func (*ProposalData) GetHeight ¶
func (m *ProposalData) GetHeight() int64
func (*ProposalData) GetPOLBlockID ¶
func (m *ProposalData) GetPOLBlockID() *BlockID
func (*ProposalData) GetPOLRound ¶
func (m *ProposalData) GetPOLRound() int64
func (*ProposalData) GetRound ¶
func (m *ProposalData) GetRound() int64
func (*ProposalData) Marshal ¶
func (m *ProposalData) Marshal() (dAtA []byte, err error)
func (*ProposalData) ProtoMessage ¶
func (*ProposalData) ProtoMessage()
func (*ProposalData) Reset ¶
func (m *ProposalData) Reset()
func (*ProposalData) Size ¶
func (m *ProposalData) Size() (n int)
func (*ProposalData) String ¶
func (m *ProposalData) String() string
func (*ProposalData) Unmarshal ¶
func (m *ProposalData) Unmarshal(dAtA []byte) error
type PubKey ¶
type PubKey struct { Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"` Type KeyType `protobuf:"varint,2,opt,name=type,proto3,enum=types.KeyType" json:"type,omitempty"` }
func (*PubKey) Descriptor ¶
func (*PubKey) ProtoMessage ¶
func (*PubKey) ProtoMessage()
type Result ¶
type Result struct { Code CodeType `protobuf:"varint,1,opt,name=Code,proto3,enum=types.CodeType" json:"Code,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"` Log string `protobuf:"bytes,3,opt,name=Log,proto3" json:"Log,omitempty"` }
func (*Result) Descriptor ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
type SignableBase ¶
type SignableBase struct { ChainID string `protobuf:"bytes,1,opt,name=ChainID,proto3" json:"ChainID,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"` }
func (*SignableBase) Descriptor ¶
func (*SignableBase) Descriptor() ([]byte, []int)
func (*SignableBase) GetChainID ¶
func (m *SignableBase) GetChainID() string
func (*SignableBase) GetData ¶
func (m *SignableBase) GetData() []byte
func (*SignableBase) Marshal ¶
func (m *SignableBase) Marshal() (dAtA []byte, err error)
func (*SignableBase) ProtoMessage ¶
func (*SignableBase) ProtoMessage()
func (*SignableBase) Reset ¶
func (m *SignableBase) Reset()
func (*SignableBase) Size ¶
func (m *SignableBase) Size() (n int)
func (*SignableBase) String ¶
func (m *SignableBase) String() string
func (*SignableBase) Unmarshal ¶
func (m *SignableBase) Unmarshal(dAtA []byte) error
type SimpleProof ¶
type SimpleProof struct {
Bytes [][]byte `protobuf:"bytes,1,rep,name=bytes" json:"bytes,omitempty"`
}
func (*SimpleProof) Descriptor ¶
func (*SimpleProof) Descriptor() ([]byte, []int)
func (*SimpleProof) GetBytes ¶
func (m *SimpleProof) GetBytes() [][]byte
func (*SimpleProof) Marshal ¶
func (m *SimpleProof) Marshal() (dAtA []byte, err error)
func (*SimpleProof) ProtoMessage ¶
func (*SimpleProof) ProtoMessage()
func (*SimpleProof) Reset ¶
func (m *SimpleProof) Reset()
func (*SimpleProof) Size ¶
func (m *SimpleProof) Size() (n int)
func (*SimpleProof) String ¶
func (m *SimpleProof) String() string
func (*SimpleProof) Unmarshal ¶
func (m *SimpleProof) Unmarshal(dAtA []byte) error
type Transaction ¶
type Transaction struct { Data *TxData `protobuf:"bytes,1,opt,name=Data" json:"Data,omitempty"` Pubkey *PubKey `protobuf:"bytes,2,opt,name=Pubkey" json:"Pubkey,omitempty"` Signature []byte `protobuf:"bytes,3,opt,name=Signature,proto3" json:"Signature,omitempty"` }
func (*Transaction) Descriptor ¶
func (*Transaction) Descriptor() ([]byte, []int)
func (*Transaction) GetData ¶
func (m *Transaction) GetData() *TxData
func (*Transaction) GetPubkey ¶
func (m *Transaction) GetPubkey() *PubKey
func (*Transaction) GetSignature ¶
func (m *Transaction) GetSignature() []byte
func (*Transaction) Marshal ¶
func (m *Transaction) Marshal() (dAtA []byte, err error)
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) Reset ¶
func (m *Transaction) Reset()
func (*Transaction) Size ¶
func (m *Transaction) Size() (n int)
func (*Transaction) String ¶
func (m *Transaction) String() string
func (*Transaction) Unmarshal ¶
func (m *Transaction) Unmarshal(dAtA []byte) error
type TxData ¶
type TxData struct { Nonce uint64 `protobuf:"varint,1,opt,name=Nonce,proto3" json:"Nonce,omitempty"` Recipient []byte `protobuf:"bytes,2,opt,name=Recipient,proto3" json:"Recipient,omitempty"` Amount []byte `protobuf:"bytes,3,opt,name=Amount,proto3" json:"Amount,omitempty"` Payload []byte `protobuf:"bytes,4,opt,name=Payload,proto3" json:"Payload,omitempty"` }
func (*TxData) Descriptor ¶
func (*TxData) GetPayload ¶
func (*TxData) GetRecipient ¶
func (*TxData) ProtoMessage ¶
func (*TxData) ProtoMessage()
type Validator ¶
type Validator struct { Address []byte `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address,omitempty"` Pubkey *PubKey `protobuf:"bytes,2,opt,name=Pubkey" json:"Pubkey,omitempty"` VotingPower int64 `protobuf:"varint,3,opt,name=VotingPower,proto3" json:"VotingPower,omitempty"` Accum int64 `protobuf:"varint,4,opt,name=Accum,proto3" json:"Accum,omitempty"` IsCA bool `protobuf:"varint,5,opt,name=IsCA,proto3" json:"IsCA,omitempty"` }
func (*Validator) Descriptor ¶
func (*Validator) GetAddress ¶
func (*Validator) GetVotingPower ¶
func (*Validator) ProtoMessage ¶
func (*Validator) ProtoMessage()
type Vote ¶
type Vote struct { Data *VoteData `protobuf:"bytes,1,opt,name=Data" json:"Data,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=Signature,proto3" json:"Signature,omitempty"` }
func (*Vote) Descriptor ¶
func (*Vote) GetSignature ¶
func (*Vote) ProtoMessage ¶
func (*Vote) ProtoMessage()
type VoteData ¶
type VoteData struct { ValidatorAddress []byte `protobuf:"bytes,1,opt,name=ValidatorAddress,proto3" json:"ValidatorAddress,omitempty"` ValidatorIndex int64 `protobuf:"varint,2,opt,name=ValidatorIndex,proto3" json:"ValidatorIndex,omitempty"` Height int64 `protobuf:"varint,3,opt,name=Height,proto3" json:"Height,omitempty"` Round int64 `protobuf:"varint,4,opt,name=Round,proto3" json:"Round,omitempty"` Type VoteType `protobuf:"varint,5,opt,name=Type,proto3,enum=types.VoteType" json:"Type,omitempty"` BlockID *BlockID `protobuf:"bytes,6,opt,name=BlockID" json:"BlockID,omitempty"` }
func (*VoteData) Descriptor ¶
func (*VoteData) GetBlockID ¶
func (*VoteData) GetValidatorAddress ¶
func (*VoteData) GetValidatorIndex ¶
func (*VoteData) ProtoMessage ¶
func (*VoteData) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.