types

package
v0.0.0-...-891b8cb Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	BlockIDFlag_name = map[int32]string{
		0: "BLOCK_ID_FLAG_UNKNOWN",
		1: "BLOCK_ID_FLAG_ABSENT",
		2: "BLOCK_ID_FLAG_COMMIT",
		3: "BLOCK_ID_FLAG_NIL",
	}
	BlockIDFlag_value = map[string]int32{
		"BLOCK_ID_FLAG_UNKNOWN": 0,
		"BLOCK_ID_FLAG_ABSENT":  1,
		"BLOCK_ID_FLAG_COMMIT":  2,
		"BLOCK_ID_FLAG_NIL":     3,
	}
)

Enum value maps for BlockIDFlag.

View Source
var (
	SignedMsgType_name = map[int32]string{
		0:  "SIGNED_MSG_TYPE_UNKNOWN",
		1:  "SIGNED_MSG_TYPE_PREVOTE",
		2:  "SIGNED_MSG_TYPE_PRECOMMIT",
		32: "SIGNED_MSG_TYPE_PROPOSAL",
	}
	SignedMsgType_value = map[string]int32{
		"SIGNED_MSG_TYPE_UNKNOWN":   0,
		"SIGNED_MSG_TYPE_PREVOTE":   1,
		"SIGNED_MSG_TYPE_PRECOMMIT": 2,
		"SIGNED_MSG_TYPE_PROPOSAL":  32,
	}
)

Enum value maps for SignedMsgType.

View Source
var File_tendermint_types_block_proto protoreflect.FileDescriptor
View Source
var File_tendermint_types_evidence_proto protoreflect.FileDescriptor
View Source
var File_tendermint_types_params_proto protoreflect.FileDescriptor
View Source
var File_tendermint_types_types_proto protoreflect.FileDescriptor
View Source
var File_tendermint_types_validator_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Block

type Block struct {
	Header     *Header       `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Data       *Data         `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Evidence   *EvidenceList `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence,omitempty"`
	LastCommit *Commit       `protobuf:"bytes,4,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"`
	// contains filtered or unexported fields
}

func (*Block) Descriptor deprecated

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

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetData

func (x *Block) GetData() *Data

func (*Block) GetEvidence

func (x *Block) GetEvidence() *EvidenceList

func (*Block) GetHeader

func (x *Block) GetHeader() *Header

func (*Block) GetLastCommit

func (x *Block) GetLastCommit() *Commit

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

func (x *Block) ProtoReflect() protoreflect.Message

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

type BlockID

type BlockID struct {
	Hash          []byte         `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	PartSetHeader *PartSetHeader `protobuf:"bytes,2,opt,name=part_set_header,json=partSetHeader,proto3" json:"part_set_header,omitempty"`
	// contains filtered or unexported fields
}

BlockID

func (*BlockID) Descriptor deprecated

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

Deprecated: Use BlockID.ProtoReflect.Descriptor instead.

func (*BlockID) GetHash

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

func (*BlockID) GetPartSetHeader

func (x *BlockID) GetPartSetHeader() *PartSetHeader

func (*BlockID) ProtoMessage

func (*BlockID) ProtoMessage()

func (*BlockID) ProtoReflect

func (x *BlockID) ProtoReflect() protoreflect.Message

func (*BlockID) Reset

func (x *BlockID) Reset()

func (*BlockID) String

func (x *BlockID) String() string

type BlockIDFlag

type BlockIDFlag int32

BlockIdFlag indicates which BlcokID the signature is for

const (
	BlockIDFlag_BLOCK_ID_FLAG_UNKNOWN BlockIDFlag = 0
	BlockIDFlag_BLOCK_ID_FLAG_ABSENT  BlockIDFlag = 1
	BlockIDFlag_BLOCK_ID_FLAG_COMMIT  BlockIDFlag = 2
	BlockIDFlag_BLOCK_ID_FLAG_NIL     BlockIDFlag = 3
)

func (BlockIDFlag) Descriptor

func (BlockIDFlag) Enum

func (x BlockIDFlag) Enum() *BlockIDFlag

func (BlockIDFlag) EnumDescriptor deprecated

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

Deprecated: Use BlockIDFlag.Descriptor instead.

func (BlockIDFlag) Number

func (x BlockIDFlag) Number() protoreflect.EnumNumber

func (BlockIDFlag) String

func (x BlockIDFlag) String() string

func (BlockIDFlag) Type

type BlockMeta

type BlockMeta struct {
	BlockId   *BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	BlockSize int64    `protobuf:"varint,2,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"`
	Header    *Header  `protobuf:"bytes,3,opt,name=header,proto3" json:"header,omitempty"`
	NumTxs    int64    `protobuf:"varint,4,opt,name=num_txs,json=numTxs,proto3" json:"num_txs,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockMeta) Descriptor deprecated

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

Deprecated: Use BlockMeta.ProtoReflect.Descriptor instead.

func (*BlockMeta) GetBlockId

func (x *BlockMeta) GetBlockId() *BlockID

func (*BlockMeta) GetBlockSize

func (x *BlockMeta) GetBlockSize() int64

func (*BlockMeta) GetHeader

func (x *BlockMeta) GetHeader() *Header

func (*BlockMeta) GetNumTxs

func (x *BlockMeta) GetNumTxs() int64

func (*BlockMeta) ProtoMessage

func (*BlockMeta) ProtoMessage()

func (*BlockMeta) ProtoReflect

func (x *BlockMeta) ProtoReflect() protoreflect.Message

func (*BlockMeta) Reset

func (x *BlockMeta) Reset()

func (*BlockMeta) String

func (x *BlockMeta) String() string

type BlockParams

type BlockParams struct {

	// Max block size, in bytes.
	// Note: must be greater than 0
	MaxBytes int64 `protobuf:"varint,1,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"`
	// Max gas per block.
	// Note: must be greater or equal to -1
	MaxGas int64 `protobuf:"varint,2,opt,name=max_gas,json=maxGas,proto3" json:"max_gas,omitempty"`
	// Minimum time increment between consecutive blocks (in milliseconds) If the
	// block header timestamp is ahead of the system clock, decrease this value.
	//
	// Not exposed to the application.
	TimeIotaMs int64 `protobuf:"varint,3,opt,name=time_iota_ms,json=timeIotaMs,proto3" json:"time_iota_ms,omitempty"`
	// contains filtered or unexported fields
}

BlockParams contains limits on the block size.

func (*BlockParams) Descriptor deprecated

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

Deprecated: Use BlockParams.ProtoReflect.Descriptor instead.

func (*BlockParams) GetMaxBytes

func (x *BlockParams) GetMaxBytes() int64

func (*BlockParams) GetMaxGas

func (x *BlockParams) GetMaxGas() int64

func (*BlockParams) GetTimeIotaMs

func (x *BlockParams) GetTimeIotaMs() int64

func (*BlockParams) ProtoMessage

func (*BlockParams) ProtoMessage()

func (*BlockParams) ProtoReflect

func (x *BlockParams) ProtoReflect() protoreflect.Message

func (*BlockParams) Reset

func (x *BlockParams) Reset()

func (*BlockParams) String

func (x *BlockParams) String() string

type Commit

type Commit struct {
	Height     int64        `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Round      int32        `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	BlockId    *BlockID     `protobuf:"bytes,3,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	Signatures []*CommitSig `protobuf:"bytes,4,rep,name=signatures,proto3" json:"signatures,omitempty"`
	// contains filtered or unexported fields
}

Commit contains the evidence that a block was committed by a set of validators.

func (*Commit) Descriptor deprecated

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

Deprecated: Use Commit.ProtoReflect.Descriptor instead.

func (*Commit) GetBlockId

func (x *Commit) GetBlockId() *BlockID

func (*Commit) GetHeight

func (x *Commit) GetHeight() int64

func (*Commit) GetRound

func (x *Commit) GetRound() int32

func (*Commit) GetSignatures

func (x *Commit) GetSignatures() []*CommitSig

func (*Commit) ProtoMessage

func (*Commit) ProtoMessage()

func (*Commit) ProtoReflect

func (x *Commit) ProtoReflect() protoreflect.Message

func (*Commit) Reset

func (x *Commit) Reset()

func (*Commit) String

func (x *Commit) String() string

type CommitSig

type CommitSig struct {
	BlockIdFlag      BlockIDFlag            `` /* 131-byte string literal not displayed */
	ValidatorAddress []byte                 `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	Timestamp        *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Signature        []byte                 `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

CommitSig is a part of the Vote included in a Commit.

func (*CommitSig) Descriptor deprecated

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

Deprecated: Use CommitSig.ProtoReflect.Descriptor instead.

func (*CommitSig) GetBlockIdFlag

func (x *CommitSig) GetBlockIdFlag() BlockIDFlag

func (*CommitSig) GetSignature

func (x *CommitSig) GetSignature() []byte

func (*CommitSig) GetTimestamp

func (x *CommitSig) GetTimestamp() *timestamppb.Timestamp

func (*CommitSig) GetValidatorAddress

func (x *CommitSig) GetValidatorAddress() []byte

func (*CommitSig) ProtoMessage

func (*CommitSig) ProtoMessage()

func (*CommitSig) ProtoReflect

func (x *CommitSig) ProtoReflect() protoreflect.Message

func (*CommitSig) Reset

func (x *CommitSig) Reset()

func (*CommitSig) String

func (x *CommitSig) String() string

type ConsensusParams

type ConsensusParams struct {
	Block     *BlockParams     `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	Evidence  *EvidenceParams  `protobuf:"bytes,2,opt,name=evidence,proto3" json:"evidence,omitempty"`
	Validator *ValidatorParams `protobuf:"bytes,3,opt,name=validator,proto3" json:"validator,omitempty"`
	Version   *VersionParams   `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

ConsensusParams contains consensus critical parameters that determine the validity of blocks.

func (*ConsensusParams) Descriptor deprecated

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

Deprecated: Use ConsensusParams.ProtoReflect.Descriptor instead.

func (*ConsensusParams) GetBlock

func (x *ConsensusParams) GetBlock() *BlockParams

func (*ConsensusParams) GetEvidence

func (x *ConsensusParams) GetEvidence() *EvidenceParams

func (*ConsensusParams) GetValidator

func (x *ConsensusParams) GetValidator() *ValidatorParams

func (*ConsensusParams) GetVersion

func (x *ConsensusParams) GetVersion() *VersionParams

func (*ConsensusParams) ProtoMessage

func (*ConsensusParams) ProtoMessage()

func (*ConsensusParams) ProtoReflect

func (x *ConsensusParams) ProtoReflect() protoreflect.Message

func (*ConsensusParams) Reset

func (x *ConsensusParams) Reset()

func (*ConsensusParams) String

func (x *ConsensusParams) String() string

type Data

type Data struct {

	// Txs that will be applied by state @ block.Height+1.
	// NOTE: not all txs here are valid.  We're just agreeing on the order first.
	// This means that block.AppHash does not include these txs.
	Txs [][]byte `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	// contains filtered or unexported fields
}

Data contains the set of transactions included in the block

func (*Data) Descriptor deprecated

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

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetTxs

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

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

func (x *Data) ProtoReflect() protoreflect.Message

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

type DuplicateVoteEvidence

type DuplicateVoteEvidence struct {
	VoteA            *Vote                  `protobuf:"bytes,1,opt,name=vote_a,json=voteA,proto3" json:"vote_a,omitempty"`
	VoteB            *Vote                  `protobuf:"bytes,2,opt,name=vote_b,json=voteB,proto3" json:"vote_b,omitempty"`
	TotalVotingPower int64                  `protobuf:"varint,3,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"`
	ValidatorPower   int64                  `protobuf:"varint,4,opt,name=validator_power,json=validatorPower,proto3" json:"validator_power,omitempty"`
	Timestamp        *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes.

func (*DuplicateVoteEvidence) Descriptor deprecated

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

Deprecated: Use DuplicateVoteEvidence.ProtoReflect.Descriptor instead.

func (*DuplicateVoteEvidence) GetTimestamp

func (x *DuplicateVoteEvidence) GetTimestamp() *timestamppb.Timestamp

func (*DuplicateVoteEvidence) GetTotalVotingPower

func (x *DuplicateVoteEvidence) GetTotalVotingPower() int64

func (*DuplicateVoteEvidence) GetValidatorPower

func (x *DuplicateVoteEvidence) GetValidatorPower() int64

func (*DuplicateVoteEvidence) GetVoteA

func (x *DuplicateVoteEvidence) GetVoteA() *Vote

func (*DuplicateVoteEvidence) GetVoteB

func (x *DuplicateVoteEvidence) GetVoteB() *Vote

func (*DuplicateVoteEvidence) ProtoMessage

func (*DuplicateVoteEvidence) ProtoMessage()

func (*DuplicateVoteEvidence) ProtoReflect

func (x *DuplicateVoteEvidence) ProtoReflect() protoreflect.Message

func (*DuplicateVoteEvidence) Reset

func (x *DuplicateVoteEvidence) Reset()

func (*DuplicateVoteEvidence) String

func (x *DuplicateVoteEvidence) String() string

type Evidence

type Evidence struct {

	// Types that are assignable to Sum:
	//	*Evidence_DuplicateVoteEvidence
	//	*Evidence_LightClientAttackEvidence
	Sum isEvidence_Sum `protobuf_oneof:"sum"`
	// contains filtered or unexported fields
}

func (*Evidence) Descriptor deprecated

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

Deprecated: Use Evidence.ProtoReflect.Descriptor instead.

func (*Evidence) GetDuplicateVoteEvidence

func (x *Evidence) GetDuplicateVoteEvidence() *DuplicateVoteEvidence

func (*Evidence) GetLightClientAttackEvidence

func (x *Evidence) GetLightClientAttackEvidence() *LightClientAttackEvidence

func (*Evidence) GetSum

func (x *Evidence) GetSum() isEvidence_Sum

func (*Evidence) ProtoMessage

func (*Evidence) ProtoMessage()

func (*Evidence) ProtoReflect

func (x *Evidence) ProtoReflect() protoreflect.Message

func (*Evidence) Reset

func (x *Evidence) Reset()

func (*Evidence) String

func (x *Evidence) String() string

type EvidenceList

type EvidenceList struct {
	Evidence []*Evidence `protobuf:"bytes,1,rep,name=evidence,proto3" json:"evidence,omitempty"`
	// contains filtered or unexported fields
}

func (*EvidenceList) Descriptor deprecated

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

Deprecated: Use EvidenceList.ProtoReflect.Descriptor instead.

func (*EvidenceList) GetEvidence

func (x *EvidenceList) GetEvidence() []*Evidence

func (*EvidenceList) ProtoMessage

func (*EvidenceList) ProtoMessage()

func (*EvidenceList) ProtoReflect

func (x *EvidenceList) ProtoReflect() protoreflect.Message

func (*EvidenceList) Reset

func (x *EvidenceList) Reset()

func (*EvidenceList) String

func (x *EvidenceList) String() string

type EvidenceParams

type EvidenceParams struct {

	// Max age of evidence, in blocks.
	//
	// The basic formula for calculating this is: MaxAgeDuration / {average block
	// time}.
	MaxAgeNumBlocks int64 `protobuf:"varint,1,opt,name=max_age_num_blocks,json=maxAgeNumBlocks,proto3" json:"max_age_num_blocks,omitempty"`
	// Max age of evidence, in time.
	//
	// It should correspond with an app's "unbonding period" or other similar
	// mechanism for handling [Nothing-At-Stake
	// attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
	MaxAgeDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=max_age_duration,json=maxAgeDuration,proto3" json:"max_age_duration,omitempty"`
	// This sets the maximum size of total evidence in bytes that can be committed in a single block.
	// and should fall comfortably under the max block bytes.
	// Default is 1048576 or 1MB
	MaxBytes int64 `protobuf:"varint,3,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"`
	// contains filtered or unexported fields
}

EvidenceParams determine how we handle evidence of malfeasance.

func (*EvidenceParams) Descriptor deprecated

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

Deprecated: Use EvidenceParams.ProtoReflect.Descriptor instead.

func (*EvidenceParams) GetMaxAgeDuration

func (x *EvidenceParams) GetMaxAgeDuration() *durationpb.Duration

func (*EvidenceParams) GetMaxAgeNumBlocks

func (x *EvidenceParams) GetMaxAgeNumBlocks() int64

func (*EvidenceParams) GetMaxBytes

func (x *EvidenceParams) GetMaxBytes() int64

func (*EvidenceParams) ProtoMessage

func (*EvidenceParams) ProtoMessage()

func (*EvidenceParams) ProtoReflect

func (x *EvidenceParams) ProtoReflect() protoreflect.Message

func (*EvidenceParams) Reset

func (x *EvidenceParams) Reset()

func (*EvidenceParams) String

func (x *EvidenceParams) String() string

type Evidence_DuplicateVoteEvidence

type Evidence_DuplicateVoteEvidence struct {
	DuplicateVoteEvidence *DuplicateVoteEvidence `protobuf:"bytes,1,opt,name=duplicate_vote_evidence,json=duplicateVoteEvidence,proto3,oneof"`
}

type Evidence_LightClientAttackEvidence

type Evidence_LightClientAttackEvidence struct {
	LightClientAttackEvidence *LightClientAttackEvidence `protobuf:"bytes,2,opt,name=light_client_attack_evidence,json=lightClientAttackEvidence,proto3,oneof"`
}

type HashedParams

type HashedParams struct {
	BlockMaxBytes int64 `protobuf:"varint,1,opt,name=block_max_bytes,json=blockMaxBytes,proto3" json:"block_max_bytes,omitempty"`
	BlockMaxGas   int64 `protobuf:"varint,2,opt,name=block_max_gas,json=blockMaxGas,proto3" json:"block_max_gas,omitempty"`
	// contains filtered or unexported fields
}

HashedParams is a subset of ConsensusParams.

It is hashed into the Header.ConsensusHash.

func (*HashedParams) Descriptor deprecated

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

Deprecated: Use HashedParams.ProtoReflect.Descriptor instead.

func (*HashedParams) GetBlockMaxBytes

func (x *HashedParams) GetBlockMaxBytes() int64

func (*HashedParams) GetBlockMaxGas

func (x *HashedParams) GetBlockMaxGas() int64

func (*HashedParams) ProtoMessage

func (*HashedParams) ProtoMessage()

func (*HashedParams) ProtoReflect

func (x *HashedParams) ProtoReflect() protoreflect.Message

func (*HashedParams) Reset

func (x *HashedParams) Reset()

func (*HashedParams) String

func (x *HashedParams) String() string
type Header struct {

	// basic block info
	Version *version.Consensus     `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	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    *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"`
	// prev block info
	LastBlockId *BlockID `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id,omitempty"`
	// hashes of block data
	LastCommitHash []byte `protobuf:"bytes,6,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"` // commit from validators from the last block
	DataHash       []byte `protobuf:"bytes,7,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"`                     // transactions
	// 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"`               // validators for the current block
	NextValidatorsHash []byte `protobuf:"bytes,9,opt,name=next_validators_hash,json=nextValidatorsHash,proto3" json:"next_validators_hash,omitempty"` // validators for the next block
	ConsensusHash      []byte `protobuf:"bytes,10,opt,name=consensus_hash,json=consensusHash,proto3" json:"consensus_hash,omitempty"`                 // consensus params for current block
	AppHash            []byte `protobuf:"bytes,11,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`                                   // state after txs from the previous block
	LastResultsHash    []byte `protobuf:"bytes,12,opt,name=last_results_hash,json=lastResultsHash,proto3" json:"last_results_hash,omitempty"`         // root hash of all results from the txs from the previous block
	// consensus info
	EvidenceHash    []byte `protobuf:"bytes,13,opt,name=evidence_hash,json=evidenceHash,proto3" json:"evidence_hash,omitempty"`          // evidence included in the block
	ProposerAddress []byte `protobuf:"bytes,14,opt,name=proposer_address,json=proposerAddress,proto3" json:"proposer_address,omitempty"` // original proposer of the block
	// contains filtered or unexported fields
}

Header defines the structure of a Tendermint block header.

func (*Header) Descriptor deprecated

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

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetAppHash

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

func (*Header) GetChainId

func (x *Header) GetChainId() string

func (*Header) GetConsensusHash

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

func (*Header) GetDataHash

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

func (*Header) GetEvidenceHash

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

func (*Header) GetHeight

func (x *Header) GetHeight() int64

func (*Header) GetLastBlockId

func (x *Header) GetLastBlockId() *BlockID

func (*Header) GetLastCommitHash

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

func (*Header) GetLastResultsHash

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

func (*Header) GetNextValidatorsHash

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

func (*Header) GetProposerAddress

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

func (*Header) GetTime

func (x *Header) GetTime() *timestamppb.Timestamp

func (*Header) GetValidatorsHash

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

func (*Header) GetVersion

func (x *Header) GetVersion() *version.Consensus

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

func (x *Header) ProtoReflect() protoreflect.Message

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

type LightBlock

type LightBlock struct {
	SignedHeader *SignedHeader `protobuf:"bytes,1,opt,name=signed_header,json=signedHeader,proto3" json:"signed_header,omitempty"`
	ValidatorSet *ValidatorSet `protobuf:"bytes,2,opt,name=validator_set,json=validatorSet,proto3" json:"validator_set,omitempty"`
	// contains filtered or unexported fields
}

func (*LightBlock) Descriptor deprecated

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

Deprecated: Use LightBlock.ProtoReflect.Descriptor instead.

func (*LightBlock) GetSignedHeader

func (x *LightBlock) GetSignedHeader() *SignedHeader

func (*LightBlock) GetValidatorSet

func (x *LightBlock) GetValidatorSet() *ValidatorSet

func (*LightBlock) ProtoMessage

func (*LightBlock) ProtoMessage()

func (*LightBlock) ProtoReflect

func (x *LightBlock) ProtoReflect() protoreflect.Message

func (*LightBlock) Reset

func (x *LightBlock) Reset()

func (*LightBlock) String

func (x *LightBlock) String() string

type LightClientAttackEvidence

type LightClientAttackEvidence struct {
	ConflictingBlock    *LightBlock            `protobuf:"bytes,1,opt,name=conflicting_block,json=conflictingBlock,proto3" json:"conflicting_block,omitempty"`
	CommonHeight        int64                  `protobuf:"varint,2,opt,name=common_height,json=commonHeight,proto3" json:"common_height,omitempty"`
	ByzantineValidators []*Validator           `protobuf:"bytes,3,rep,name=byzantine_validators,json=byzantineValidators,proto3" json:"byzantine_validators,omitempty"`
	TotalVotingPower    int64                  `protobuf:"varint,4,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"`
	Timestamp           *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client.

func (*LightClientAttackEvidence) Descriptor deprecated

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

Deprecated: Use LightClientAttackEvidence.ProtoReflect.Descriptor instead.

func (*LightClientAttackEvidence) GetByzantineValidators

func (x *LightClientAttackEvidence) GetByzantineValidators() []*Validator

func (*LightClientAttackEvidence) GetCommonHeight

func (x *LightClientAttackEvidence) GetCommonHeight() int64

func (*LightClientAttackEvidence) GetConflictingBlock

func (x *LightClientAttackEvidence) GetConflictingBlock() *LightBlock

func (*LightClientAttackEvidence) GetTimestamp

func (x *LightClientAttackEvidence) GetTimestamp() *timestamppb.Timestamp

func (*LightClientAttackEvidence) GetTotalVotingPower

func (x *LightClientAttackEvidence) GetTotalVotingPower() int64

func (*LightClientAttackEvidence) ProtoMessage

func (*LightClientAttackEvidence) ProtoMessage()

func (*LightClientAttackEvidence) ProtoReflect

func (*LightClientAttackEvidence) Reset

func (x *LightClientAttackEvidence) Reset()

func (*LightClientAttackEvidence) String

func (x *LightClientAttackEvidence) String() string

type Part

type Part struct {
	Index uint32        `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Bytes []byte        `protobuf:"bytes,2,opt,name=bytes,proto3" json:"bytes,omitempty"`
	Proof *crypto.Proof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"`
	// contains filtered or unexported fields
}

func (*Part) Descriptor deprecated

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

Deprecated: Use Part.ProtoReflect.Descriptor instead.

func (*Part) GetBytes

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

func (*Part) GetIndex

func (x *Part) GetIndex() uint32

func (*Part) GetProof

func (x *Part) GetProof() *crypto.Proof

func (*Part) ProtoMessage

func (*Part) ProtoMessage()

func (*Part) ProtoReflect

func (x *Part) ProtoReflect() protoreflect.Message

func (*Part) Reset

func (x *Part) Reset()

func (*Part) String

func (x *Part) String() string

type PartSetHeader

type PartSetHeader struct {
	Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Hash  []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

PartsetHeader

func (*PartSetHeader) Descriptor deprecated

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

Deprecated: Use PartSetHeader.ProtoReflect.Descriptor instead.

func (*PartSetHeader) GetHash

func (x *PartSetHeader) GetHash() []byte

func (*PartSetHeader) GetTotal

func (x *PartSetHeader) GetTotal() uint32

func (*PartSetHeader) ProtoMessage

func (*PartSetHeader) ProtoMessage()

func (*PartSetHeader) ProtoReflect

func (x *PartSetHeader) ProtoReflect() protoreflect.Message

func (*PartSetHeader) Reset

func (x *PartSetHeader) Reset()

func (*PartSetHeader) String

func (x *PartSetHeader) String() string

type Proposal

type Proposal struct {
	Type_     SignedMsgType          `protobuf:"varint,1,opt,name=type,proto3,enum=tendermint.types.SignedMsgType" json:"type,omitempty"`
	Height    int64                  `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Round     int32                  `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"`
	PolRound  int32                  `protobuf:"varint,4,opt,name=pol_round,json=polRound,proto3" json:"pol_round,omitempty"`
	BlockId   *BlockID               `protobuf:"bytes,5,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Signature []byte                 `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*Proposal) Descriptor deprecated

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

Deprecated: Use Proposal.ProtoReflect.Descriptor instead.

func (*Proposal) GetBlockId

func (x *Proposal) GetBlockId() *BlockID

func (*Proposal) GetHeight

func (x *Proposal) GetHeight() int64

func (*Proposal) GetPolRound

func (x *Proposal) GetPolRound() int32

func (*Proposal) GetRound

func (x *Proposal) GetRound() int32

func (*Proposal) GetSignature

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

func (*Proposal) GetTimestamp

func (x *Proposal) GetTimestamp() *timestamppb.Timestamp

func (*Proposal) GetType_

func (x *Proposal) GetType_() SignedMsgType

func (*Proposal) ProtoMessage

func (*Proposal) ProtoMessage()

func (*Proposal) ProtoReflect

func (x *Proposal) ProtoReflect() protoreflect.Message

func (*Proposal) Reset

func (x *Proposal) Reset()

func (*Proposal) String

func (x *Proposal) String() string

type SignedHeader

type SignedHeader struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Commit *Commit `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"`
	// contains filtered or unexported fields
}

func (*SignedHeader) Descriptor deprecated

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

Deprecated: Use SignedHeader.ProtoReflect.Descriptor instead.

func (*SignedHeader) GetCommit

func (x *SignedHeader) GetCommit() *Commit

func (*SignedHeader) GetHeader

func (x *SignedHeader) GetHeader() *Header

func (*SignedHeader) ProtoMessage

func (*SignedHeader) ProtoMessage()

func (*SignedHeader) ProtoReflect

func (x *SignedHeader) ProtoReflect() protoreflect.Message

func (*SignedHeader) Reset

func (x *SignedHeader) Reset()

func (*SignedHeader) String

func (x *SignedHeader) String() string

type SignedMsgType

type SignedMsgType int32

SignedMsgType is a type of signed message in the consensus.

const (
	SignedMsgType_SIGNED_MSG_TYPE_UNKNOWN SignedMsgType = 0
	// Votes
	SignedMsgType_SIGNED_MSG_TYPE_PREVOTE   SignedMsgType = 1
	SignedMsgType_SIGNED_MSG_TYPE_PRECOMMIT SignedMsgType = 2
	// Proposals
	SignedMsgType_SIGNED_MSG_TYPE_PROPOSAL SignedMsgType = 32
)

func (SignedMsgType) Descriptor

func (SignedMsgType) Enum

func (x SignedMsgType) Enum() *SignedMsgType

func (SignedMsgType) EnumDescriptor deprecated

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

Deprecated: Use SignedMsgType.Descriptor instead.

func (SignedMsgType) Number

func (SignedMsgType) String

func (x SignedMsgType) String() string

func (SignedMsgType) Type

type SimpleValidator

type SimpleValidator struct {
	PubKey      *crypto.PublicKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
	VotingPower int64             `protobuf:"varint,2,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"`
	// contains filtered or unexported fields
}

func (*SimpleValidator) Descriptor deprecated

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

Deprecated: Use SimpleValidator.ProtoReflect.Descriptor instead.

func (*SimpleValidator) GetPubKey

func (x *SimpleValidator) GetPubKey() *crypto.PublicKey

func (*SimpleValidator) GetVotingPower

func (x *SimpleValidator) GetVotingPower() int64

func (*SimpleValidator) ProtoMessage

func (*SimpleValidator) ProtoMessage()

func (*SimpleValidator) ProtoReflect

func (x *SimpleValidator) ProtoReflect() protoreflect.Message

func (*SimpleValidator) Reset

func (x *SimpleValidator) Reset()

func (*SimpleValidator) String

func (x *SimpleValidator) String() string

type TxProof

type TxProof struct {
	RootHash []byte        `protobuf:"bytes,1,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"`
	Data     []byte        `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Proof    *crypto.Proof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"`
	// contains filtered or unexported fields
}

TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree.

func (*TxProof) Descriptor deprecated

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

Deprecated: Use TxProof.ProtoReflect.Descriptor instead.

func (*TxProof) GetData

func (x *TxProof) GetData() []byte

func (*TxProof) GetProof

func (x *TxProof) GetProof() *crypto.Proof

func (*TxProof) GetRootHash

func (x *TxProof) GetRootHash() []byte

func (*TxProof) ProtoMessage

func (*TxProof) ProtoMessage()

func (*TxProof) ProtoReflect

func (x *TxProof) ProtoReflect() protoreflect.Message

func (*TxProof) Reset

func (x *TxProof) Reset()

func (*TxProof) String

func (x *TxProof) String() string

type Validator

type Validator struct {
	Address          []byte            `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	PubKey           *crypto.PublicKey `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"`
	// contains filtered or unexported fields
}

func (*Validator) Descriptor deprecated

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

Deprecated: Use Validator.ProtoReflect.Descriptor instead.

func (*Validator) GetAddress

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

func (*Validator) GetProposerPriority

func (x *Validator) GetProposerPriority() int64

func (*Validator) GetPubKey

func (x *Validator) GetPubKey() *crypto.PublicKey

func (*Validator) GetVotingPower

func (x *Validator) GetVotingPower() int64

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) ProtoReflect

func (x *Validator) ProtoReflect() protoreflect.Message

func (*Validator) Reset

func (x *Validator) Reset()

func (*Validator) String

func (x *Validator) String() string

type ValidatorParams

type ValidatorParams struct {
	PubKeyTypes []string `protobuf:"bytes,1,rep,name=pub_key_types,json=pubKeyTypes,proto3" json:"pub_key_types,omitempty"`
	// contains filtered or unexported fields
}

ValidatorParams restrict the public key types validators can use. NOTE: uses ABCI pubkey naming, not Amino names.

func (*ValidatorParams) Descriptor deprecated

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

Deprecated: Use ValidatorParams.ProtoReflect.Descriptor instead.

func (*ValidatorParams) GetPubKeyTypes

func (x *ValidatorParams) GetPubKeyTypes() []string

func (*ValidatorParams) ProtoMessage

func (*ValidatorParams) ProtoMessage()

func (*ValidatorParams) ProtoReflect

func (x *ValidatorParams) ProtoReflect() protoreflect.Message

func (*ValidatorParams) Reset

func (x *ValidatorParams) Reset()

func (*ValidatorParams) String

func (x *ValidatorParams) String() string

type ValidatorSet

type ValidatorSet struct {
	Validators       []*Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"`
	Proposer         *Validator   `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"`
	TotalVotingPower int64        `protobuf:"varint,3,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidatorSet) Descriptor deprecated

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

Deprecated: Use ValidatorSet.ProtoReflect.Descriptor instead.

func (*ValidatorSet) GetProposer

func (x *ValidatorSet) GetProposer() *Validator

func (*ValidatorSet) GetTotalVotingPower

func (x *ValidatorSet) GetTotalVotingPower() int64

func (*ValidatorSet) GetValidators

func (x *ValidatorSet) GetValidators() []*Validator

func (*ValidatorSet) ProtoMessage

func (*ValidatorSet) ProtoMessage()

func (*ValidatorSet) ProtoReflect

func (x *ValidatorSet) ProtoReflect() protoreflect.Message

func (*ValidatorSet) Reset

func (x *ValidatorSet) Reset()

func (*ValidatorSet) String

func (x *ValidatorSet) String() string

type VersionParams

type VersionParams struct {
	AppVersion uint64 `protobuf:"varint,1,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"`
	// contains filtered or unexported fields
}

VersionParams contains the ABCI application version.

func (*VersionParams) Descriptor deprecated

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

Deprecated: Use VersionParams.ProtoReflect.Descriptor instead.

func (*VersionParams) GetAppVersion

func (x *VersionParams) GetAppVersion() uint64

func (*VersionParams) ProtoMessage

func (*VersionParams) ProtoMessage()

func (*VersionParams) ProtoReflect

func (x *VersionParams) ProtoReflect() protoreflect.Message

func (*VersionParams) Reset

func (x *VersionParams) Reset()

func (*VersionParams) String

func (x *VersionParams) String() string

type Vote

type Vote struct {
	Type_            SignedMsgType          `protobuf:"varint,1,opt,name=type,proto3,enum=tendermint.types.SignedMsgType" json:"type,omitempty"`
	Height           int64                  `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Round            int32                  `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"`
	BlockId          *BlockID               `protobuf:"bytes,4,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` // zero if vote is nil.
	Timestamp        *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	ValidatorAddress []byte                 `protobuf:"bytes,6,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	ValidatorIndex   int32                  `protobuf:"varint,7,opt,name=validator_index,json=validatorIndex,proto3" json:"validator_index,omitempty"`
	Signature        []byte                 `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

Vote represents a prevote, precommit, or commit vote from validators for consensus.

func (*Vote) Descriptor deprecated

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

Deprecated: Use Vote.ProtoReflect.Descriptor instead.

func (*Vote) GetBlockId

func (x *Vote) GetBlockId() *BlockID

func (*Vote) GetHeight

func (x *Vote) GetHeight() int64

func (*Vote) GetRound

func (x *Vote) GetRound() int32

func (*Vote) GetSignature

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

func (*Vote) GetTimestamp

func (x *Vote) GetTimestamp() *timestamppb.Timestamp

func (*Vote) GetType_

func (x *Vote) GetType_() SignedMsgType

func (*Vote) GetValidatorAddress

func (x *Vote) GetValidatorAddress() []byte

func (*Vote) GetValidatorIndex

func (x *Vote) GetValidatorIndex() int32

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) ProtoReflect

func (x *Vote) ProtoReflect() protoreflect.Message

func (*Vote) Reset

func (x *Vote) Reset()

func (*Vote) String

func (x *Vote) String() string

Jump to

Keyboard shortcuts

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