types

package
v0.0.0-...-a4757fd Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: Apache-2.0, Apache-2.0 Imports: 8 Imported by: 0

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
ValidatorSet
Validator
Result

Index

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

func IsVoteTypeValid(type_ VoteType) bool

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"`
	VSet       *ValidatorSet `protobuf:"bytes,4,opt,name=VSet" json:"VSet,omitempty"`
}

func (*Block) Descriptor

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

func (*Block) GetData

func (m *Block) GetData() *Data

func (*Block) GetHeader

func (m *Block) GetHeader() *Header

func (*Block) GetLastCommit

func (m *Block) GetLastCommit() *Commit

func (*Block) GetVSet

func (m *Block) GetVSet() *ValidatorSet

func (*Block) Marshal

func (m *Block) Marshal() (dAtA []byte, err error)

func (*Block) MarshalTo

func (m *Block) MarshalTo(dAtA []byte) (int, error)

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) Reset

func (m *Block) Reset()

func (*Block) Size

func (m *Block) Size() (n int)

func (*Block) String

func (m *Block) String() string

func (*Block) Unmarshal

func (m *Block) Unmarshal(dAtA []byte) error

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) CString

func (blockID *BlockID) CString() string

func (*BlockID) Descriptor

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

func (*BlockID) Equals

func (blockID *BlockID) Equals(other *BlockID) bool

func (*BlockID) GetHash

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

func (*BlockID) GetPartsHeader

func (m *BlockID) GetPartsHeader() *PartSetHeader

func (*BlockID) IsZero

func (blockID *BlockID) IsZero() bool

func (*BlockID) Key

func (blockID *BlockID) Key() string

func (*BlockID) Marshal

func (m *BlockID) Marshal() (dAtA []byte, err error)

func (*BlockID) MarshalTo

func (m *BlockID) MarshalTo(dAtA []byte) (int, error)

func (*BlockID) ProtoMessage

func (*BlockID) ProtoMessage()

func (*BlockID) Reset

func (m *BlockID) Reset()

func (*BlockID) Size

func (m *BlockID) Size() (n int)

func (*BlockID) String

func (m *BlockID) String() string

func (*BlockID) Unmarshal

func (m *BlockID) Unmarshal(dAtA []byte) error

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) Descriptor() ([]byte, []int)

func (*BlockMeta) GetHash

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

func (*BlockMeta) GetHeader

func (m *BlockMeta) GetHeader() *Header

func (*BlockMeta) GetPartsHeader

func (m *BlockMeta) GetPartsHeader() *PartSetHeader

func (*BlockMeta) Marshal

func (m *BlockMeta) Marshal() (dAtA []byte, err error)

func (*BlockMeta) MarshalTo

func (m *BlockMeta) MarshalTo(dAtA []byte) (int, error)

func (*BlockMeta) ProtoMessage

func (*BlockMeta) ProtoMessage()

func (*BlockMeta) Reset

func (m *BlockMeta) Reset()

func (*BlockMeta) Size

func (m *BlockMeta) Size() (n int)

func (*BlockMeta) String

func (m *BlockMeta) String() string

func (*BlockMeta) Unmarshal

func (m *BlockMeta) Unmarshal(dAtA []byte) error

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_Unauthorized      CodeType = 4
	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

func (CodeType) EnumDescriptor() ([]byte, []int)

func (CodeType) String

func (x CodeType) String() string

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) Descriptor() ([]byte, []int)

func (*Commit) GetBlockID

func (m *Commit) GetBlockID() *BlockID

func (*Commit) GetPrecommits

func (m *Commit) GetPrecommits() []*Vote

func (*Commit) Marshal

func (m *Commit) Marshal() (dAtA []byte, err error)

func (*Commit) MarshalTo

func (m *Commit) MarshalTo(dAtA []byte) (int, error)

func (*Commit) ProtoMessage

func (*Commit) ProtoMessage()

func (*Commit) Reset

func (m *Commit) Reset()

func (*Commit) Size

func (m *Commit) Size() (n int)

func (*Commit) String

func (m *Commit) String() string

func (*Commit) Unmarshal

func (m *Commit) Unmarshal(dAtA []byte) error

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) Descriptor() ([]byte, []int)

func (*Data) GetExTxs

func (m *Data) GetExTxs() [][]byte

func (*Data) GetTxs

func (m *Data) GetTxs() [][]byte

func (*Data) Marshal

func (m *Data) Marshal() (dAtA []byte, err error)

func (*Data) MarshalTo

func (m *Data) MarshalTo(dAtA []byte) (int, error)

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) Reset

func (m *Data) Reset()

func (*Data) Size

func (m *Data) Size() (n int)

func (*Data) String

func (m *Data) String() string

func (*Data) Unmarshal

func (m *Data) Unmarshal(dAtA []byte) error
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"`
	CoinBase           []byte   `protobuf:"bytes,13,opt,name=CoinBase,proto3" json:"CoinBase,omitempty"`
}

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) GetCoinBase

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

func (*Header) GetDataHash

func (m *Header) GetDataHash() []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) GetLastNonEmptyHeight

func (m *Header) GetLastNonEmptyHeight() int64

func (*Header) GetMaker

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

func (*Header) GetNumTxs

func (m *Header) GetNumTxs() int64

func (*Header) GetReceiptsHash

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

func (*Header) GetTime

func (m *Header) GetTime() int64

func (*Header) GetValidatorsHash

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

func (*Header) Hash

func (h *Header) Hash() []byte

NOTE: hash is nil if required fields are missing.

func (*Header) Marshal

func (m *Header) Marshal() (dAtA []byte, err error)

func (*Header) MarshalTo

func (m *Header) MarshalTo(dAtA []byte) (int, error)

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) Reset

func (m *Header) Reset()

func (*Header) Size

func (m *Header) Size() (n int)

func (*Header) String

func (m *Header) String() string

func (*Header) StringIndented

func (h *Header) StringIndented(indent string) string

func (*Header) Unmarshal

func (m *Header) Unmarshal(dAtA []byte) error

type KeyType

type KeyType int32
const (
	KeyType_Ed25519   KeyType = 0
	KeyType_Secp256k1 KeyType = 1
)

func (KeyType) EnumDescriptor

func (KeyType) EnumDescriptor() ([]byte, []int)

func (KeyType) String

func (x KeyType) String() string

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) Descriptor() ([]byte, []int)

func (*Part) GetBytes

func (m *Part) GetBytes() []byte

func (*Part) GetIndex

func (m *Part) GetIndex() int32

func (*Part) GetProof

func (m *Part) GetProof() *SimpleProof

func (*Part) Marshal

func (m *Part) Marshal() (dAtA []byte, err error)

func (*Part) MarshalTo

func (m *Part) MarshalTo(dAtA []byte) (int, error)

func (*Part) MerkleProof

func (p *Part) MerkleProof() merkle.SimpleProof

func (*Part) ProtoMessage

func (*Part) ProtoMessage()

func (*Part) Reset

func (m *Part) Reset()

func (*Part) Size

func (m *Part) Size() (n int)

func (*Part) String

func (m *Part) String() string

func (*Part) Unmarshal

func (m *Part) Unmarshal(dAtA []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"`
}

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) MarshalTo

func (m *PartSetHeader) MarshalTo(dAtA []byte) (int, 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) CString

func (p *Proposal) CString() string

func (*Proposal) Descriptor

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

func (*Proposal) GetData

func (m *Proposal) GetData() *ProposalData

func (*Proposal) GetSignature

func (m *Proposal) GetSignature() []byte

func (*Proposal) Marshal

func (m *Proposal) Marshal() (dAtA []byte, err error)

func (*Proposal) MarshalTo

func (m *Proposal) MarshalTo(dAtA []byte) (int, error)

func (*Proposal) ProtoMessage

func (*Proposal) ProtoMessage()

func (*Proposal) Reset

func (m *Proposal) Reset()

func (*Proposal) Size

func (m *Proposal) Size() (n int)

func (*Proposal) String

func (m *Proposal) String() string

func (*Proposal) Unmarshal

func (m *Proposal) Unmarshal(dAtA []byte) error

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) MarshalTo

func (m *ProposalData) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*PubKey) GetBytes

func (m *PubKey) GetBytes() []byte

func (*PubKey) GetType

func (m *PubKey) GetType() KeyType

func (*PubKey) Marshal

func (m *PubKey) Marshal() (dAtA []byte, err error)

func (*PubKey) MarshalTo

func (m *PubKey) MarshalTo(dAtA []byte) (int, error)

func (*PubKey) ProtoMessage

func (*PubKey) ProtoMessage()

func (*PubKey) Reset

func (m *PubKey) Reset()

func (*PubKey) Size

func (m *PubKey) Size() (n int)

func (*PubKey) String

func (m *PubKey) String() string

func (*PubKey) Unmarshal

func (m *PubKey) Unmarshal(dAtA []byte) error

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) Descriptor() ([]byte, []int)

func (*Result) GetCode

func (m *Result) GetCode() CodeType

func (*Result) GetData

func (m *Result) GetData() []byte

func (*Result) GetLog

func (m *Result) GetLog() string

func (*Result) Marshal

func (m *Result) Marshal() (dAtA []byte, err error)

func (*Result) MarshalTo

func (m *Result) MarshalTo(dAtA []byte) (int, error)

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) Reset

func (m *Result) Reset()

func (*Result) Size

func (m *Result) Size() (n int)

func (*Result) String

func (m *Result) String() string

func (*Result) Unmarshal

func (m *Result) Unmarshal(dAtA []byte) error

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) MarshalTo

func (m *SignableBase) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *SimpleProof) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *Transaction) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*TxData) GetAmount

func (m *TxData) GetAmount() []byte

func (*TxData) GetNonce

func (m *TxData) GetNonce() uint64

func (*TxData) GetPayload

func (m *TxData) GetPayload() []byte

func (*TxData) GetRecipient

func (m *TxData) GetRecipient() []byte

func (*TxData) Marshal

func (m *TxData) Marshal() (dAtA []byte, err error)

func (*TxData) MarshalTo

func (m *TxData) MarshalTo(dAtA []byte) (int, error)

func (*TxData) ProtoMessage

func (*TxData) ProtoMessage()

func (*TxData) Reset

func (m *TxData) Reset()

func (*TxData) Size

func (m *TxData) Size() (n int)

func (*TxData) String

func (m *TxData) String() string

func (*TxData) Unmarshal

func (m *TxData) Unmarshal(dAtA []byte) error

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) Descriptor() ([]byte, []int)

func (*Validator) GetAccum

func (m *Validator) GetAccum() int64

func (*Validator) GetAddress

func (m *Validator) GetAddress() []byte

func (*Validator) GetIsCA

func (m *Validator) GetIsCA() bool

func (*Validator) GetPubkey

func (m *Validator) GetPubkey() *PubKey

func (*Validator) GetVotingPower

func (m *Validator) GetVotingPower() int64

func (*Validator) Marshal

func (m *Validator) Marshal() (dAtA []byte, err error)

func (*Validator) MarshalTo

func (m *Validator) MarshalTo(dAtA []byte) (int, error)

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) Reset

func (m *Validator) Reset()

func (*Validator) Size

func (m *Validator) Size() (n int)

func (*Validator) String

func (m *Validator) String() string

func (*Validator) Unmarshal

func (m *Validator) Unmarshal(dAtA []byte) error

type ValidatorSet

type ValidatorSet struct {
	VSet []*Validator `protobuf:"bytes,1,rep,name=VSet" json:"VSet,omitempty"`
}

func (*ValidatorSet) Descriptor

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

func (*ValidatorSet) GetVSet

func (m *ValidatorSet) GetVSet() []*Validator

func (*ValidatorSet) Marshal

func (m *ValidatorSet) Marshal() (dAtA []byte, err error)

func (*ValidatorSet) MarshalTo

func (m *ValidatorSet) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorSet) ProtoMessage

func (*ValidatorSet) ProtoMessage()

func (*ValidatorSet) Reset

func (m *ValidatorSet) Reset()

func (*ValidatorSet) Size

func (m *ValidatorSet) Size() (n int)

func (*ValidatorSet) String

func (m *ValidatorSet) String() string

func (*ValidatorSet) Unmarshal

func (m *ValidatorSet) Unmarshal(dAtA []byte) error

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) CString

func (vote *Vote) CString() string

func (*Vote) Copy

func (vote *Vote) Copy() *Vote

func (*Vote) Descriptor

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

func (*Vote) Exist

func (vote *Vote) Exist() bool

func (*Vote) GetData

func (m *Vote) GetData() *VoteData

func (*Vote) GetSignature

func (m *Vote) GetSignature() []byte

func (*Vote) Marshal

func (m *Vote) Marshal() (dAtA []byte, err error)

func (*Vote) MarshalTo

func (m *Vote) MarshalTo(dAtA []byte) (int, error)

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) Reset

func (m *Vote) Reset()

func (*Vote) Size

func (m *Vote) Size() (n int)

func (*Vote) String

func (m *Vote) String() string

func (*Vote) Unmarshal

func (m *Vote) Unmarshal(dAtA []byte) error

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) Descriptor() ([]byte, []int)

func (*VoteData) GetBlockID

func (m *VoteData) GetBlockID() *BlockID

func (*VoteData) GetBytes

func (vdata *VoteData) GetBytes(chainID string) (bys []byte, err error)

func (*VoteData) GetHeight

func (m *VoteData) GetHeight() int64

func (*VoteData) GetRound

func (m *VoteData) GetRound() int64

func (*VoteData) GetType

func (m *VoteData) GetType() VoteType

func (*VoteData) GetValidatorAddress

func (m *VoteData) GetValidatorAddress() []byte

func (*VoteData) GetValidatorIndex

func (m *VoteData) GetValidatorIndex() int64

func (*VoteData) Marshal

func (m *VoteData) Marshal() (dAtA []byte, err error)

func (*VoteData) MarshalTo

func (m *VoteData) MarshalTo(dAtA []byte) (int, error)

func (*VoteData) ProtoMessage

func (*VoteData) ProtoMessage()

func (*VoteData) Reset

func (m *VoteData) Reset()

func (*VoteData) Size

func (m *VoteData) Size() (n int)

func (*VoteData) String

func (m *VoteData) String() string

func (*VoteData) Unmarshal

func (m *VoteData) Unmarshal(dAtA []byte) error

type VoteType

type VoteType int32
const (
	VoteType_None      VoteType = 0
	VoteType_Prevote   VoteType = 1
	VoteType_Precommit VoteType = 2
)

func (VoteType) EnumDescriptor

func (VoteType) EnumDescriptor() ([]byte, []int)

func (VoteType) String

func (x VoteType) String() string

Jump to

Keyboard shortcuts

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