v1beta3

package
v1.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type ABCIResponsesInfo

type ABCIResponsesInfo struct {
	// Retains the responses of the legacy ABCI calls during block processing.
	LegacyAbciResponses   *LegacyABCIResponses           `protobuf:"bytes,1,opt,name=legacy_abci_responses,json=legacyAbciResponses,proto3" json:"legacy_abci_responses,omitempty"`
	Height                int64                          `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	ResponseFinalizeBlock *v1beta3.ResponseFinalizeBlock `` /* 126-byte string literal not displayed */
}

ABCIResponsesInfo retains the responses of the ABCI calls during block processing.

func (*ABCIResponsesInfo) Descriptor

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

func (*ABCIResponsesInfo) GetHeight

func (m *ABCIResponsesInfo) GetHeight() int64

func (*ABCIResponsesInfo) GetLegacyAbciResponses

func (m *ABCIResponsesInfo) GetLegacyAbciResponses() *LegacyABCIResponses

func (*ABCIResponsesInfo) GetResponseFinalizeBlock

func (m *ABCIResponsesInfo) GetResponseFinalizeBlock() *v1beta3.ResponseFinalizeBlock

func (*ABCIResponsesInfo) Marshal

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

func (*ABCIResponsesInfo) MarshalTo

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

func (*ABCIResponsesInfo) MarshalToSizedBuffer

func (m *ABCIResponsesInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ABCIResponsesInfo) ProtoMessage

func (*ABCIResponsesInfo) ProtoMessage()

func (*ABCIResponsesInfo) Reset

func (m *ABCIResponsesInfo) Reset()

func (*ABCIResponsesInfo) Size

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

func (*ABCIResponsesInfo) String

func (m *ABCIResponsesInfo) String() string

func (*ABCIResponsesInfo) Unmarshal

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

func (*ABCIResponsesInfo) XXX_DiscardUnknown

func (m *ABCIResponsesInfo) XXX_DiscardUnknown()

func (*ABCIResponsesInfo) XXX_Marshal

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

func (*ABCIResponsesInfo) XXX_Merge

func (m *ABCIResponsesInfo) XXX_Merge(src proto.Message)

func (*ABCIResponsesInfo) XXX_Size

func (m *ABCIResponsesInfo) XXX_Size() int

func (*ABCIResponsesInfo) XXX_Unmarshal

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

type ConsensusParamsInfo

type ConsensusParamsInfo struct {
	ConsensusParams   v1.ConsensusParams `protobuf:"bytes,1,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params"`
	LastHeightChanged int64              `protobuf:"varint,2,opt,name=last_height_changed,json=lastHeightChanged,proto3" json:"last_height_changed,omitempty"`
}

ConsensusParamsInfo represents the latest consensus params, or the last height it changed

func (*ConsensusParamsInfo) Descriptor

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

func (*ConsensusParamsInfo) GetConsensusParams

func (m *ConsensusParamsInfo) GetConsensusParams() v1.ConsensusParams

func (*ConsensusParamsInfo) GetLastHeightChanged

func (m *ConsensusParamsInfo) GetLastHeightChanged() int64

func (*ConsensusParamsInfo) Marshal

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

func (*ConsensusParamsInfo) MarshalTo

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

func (*ConsensusParamsInfo) MarshalToSizedBuffer

func (m *ConsensusParamsInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ConsensusParamsInfo) ProtoMessage

func (*ConsensusParamsInfo) ProtoMessage()

func (*ConsensusParamsInfo) Reset

func (m *ConsensusParamsInfo) Reset()

func (*ConsensusParamsInfo) Size

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

func (*ConsensusParamsInfo) String

func (m *ConsensusParamsInfo) String() string

func (*ConsensusParamsInfo) Unmarshal

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

func (*ConsensusParamsInfo) XXX_DiscardUnknown

func (m *ConsensusParamsInfo) XXX_DiscardUnknown()

func (*ConsensusParamsInfo) XXX_Marshal

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

func (*ConsensusParamsInfo) XXX_Merge

func (m *ConsensusParamsInfo) XXX_Merge(src proto.Message)

func (*ConsensusParamsInfo) XXX_Size

func (m *ConsensusParamsInfo) XXX_Size() int

func (*ConsensusParamsInfo) XXX_Unmarshal

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

type LegacyABCIResponses

type LegacyABCIResponses struct {
	DeliverTxs []*v1beta3.ExecTxResult `protobuf:"bytes,1,rep,name=deliver_txs,json=deliverTxs,proto3" json:"deliver_txs,omitempty"`
	EndBlock   *ResponseEndBlock       `protobuf:"bytes,2,opt,name=end_block,json=endBlock,proto3" json:"end_block,omitempty"`
	BeginBlock *ResponseBeginBlock     `protobuf:"bytes,3,opt,name=begin_block,json=beginBlock,proto3" json:"begin_block,omitempty"`
}

LegacyABCIResponses retains the responses of the legacy ABCI calls during block processing. Note ReponseDeliverTx is renamed to ExecTxResult but they are semantically the same Kept for backwards compatibility for versions prior to v0.38

func (*LegacyABCIResponses) Descriptor

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

func (*LegacyABCIResponses) GetBeginBlock

func (m *LegacyABCIResponses) GetBeginBlock() *ResponseBeginBlock

func (*LegacyABCIResponses) GetDeliverTxs

func (m *LegacyABCIResponses) GetDeliverTxs() []*v1beta3.ExecTxResult

func (*LegacyABCIResponses) GetEndBlock

func (m *LegacyABCIResponses) GetEndBlock() *ResponseEndBlock

func (*LegacyABCIResponses) Marshal

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

func (*LegacyABCIResponses) MarshalTo

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

func (*LegacyABCIResponses) MarshalToSizedBuffer

func (m *LegacyABCIResponses) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LegacyABCIResponses) ProtoMessage

func (*LegacyABCIResponses) ProtoMessage()

func (*LegacyABCIResponses) Reset

func (m *LegacyABCIResponses) Reset()

func (*LegacyABCIResponses) Size

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

func (*LegacyABCIResponses) String

func (m *LegacyABCIResponses) String() string

func (*LegacyABCIResponses) Unmarshal

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

func (*LegacyABCIResponses) XXX_DiscardUnknown

func (m *LegacyABCIResponses) XXX_DiscardUnknown()

func (*LegacyABCIResponses) XXX_Marshal

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

func (*LegacyABCIResponses) XXX_Merge

func (m *LegacyABCIResponses) XXX_Merge(src proto.Message)

func (*LegacyABCIResponses) XXX_Size

func (m *LegacyABCIResponses) XXX_Size() int

func (*LegacyABCIResponses) XXX_Unmarshal

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

type ResponseBeginBlock

type ResponseBeginBlock struct {
	Events []v1beta2.Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
}

ResponseBeginBlock is kept for backward compatibility for versions prior to v0.38, as it was then defined in the cometbft.abci packages.

func (*ResponseBeginBlock) Descriptor

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

func (*ResponseBeginBlock) GetEvents

func (m *ResponseBeginBlock) GetEvents() []v1beta2.Event

func (*ResponseBeginBlock) Marshal

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

func (*ResponseBeginBlock) MarshalTo

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

func (*ResponseBeginBlock) MarshalToSizedBuffer

func (m *ResponseBeginBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResponseBeginBlock) ProtoMessage

func (*ResponseBeginBlock) ProtoMessage()

func (*ResponseBeginBlock) Reset

func (m *ResponseBeginBlock) Reset()

func (*ResponseBeginBlock) Size

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

func (*ResponseBeginBlock) String

func (m *ResponseBeginBlock) String() string

func (*ResponseBeginBlock) Unmarshal

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

func (*ResponseBeginBlock) XXX_DiscardUnknown

func (m *ResponseBeginBlock) XXX_DiscardUnknown()

func (*ResponseBeginBlock) XXX_Marshal

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

func (*ResponseBeginBlock) XXX_Merge

func (m *ResponseBeginBlock) XXX_Merge(src proto.Message)

func (*ResponseBeginBlock) XXX_Size

func (m *ResponseBeginBlock) XXX_Size() int

func (*ResponseBeginBlock) XXX_Unmarshal

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

type ResponseEndBlock

type ResponseEndBlock struct {
	ValidatorUpdates      []v1beta1.ValidatorUpdate `protobuf:"bytes,1,rep,name=validator_updates,json=validatorUpdates,proto3" json:"validator_updates"`
	ConsensusParamUpdates *v1.ConsensusParams       `` /* 126-byte string literal not displayed */
	Events                []v1beta2.Event           `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"`
}

ResponseEndBlock is kept for backward compatibility for versions prior to v0.38, its earlier revisions were defined in the cometbft.abci packages. It uses an updated definition for the consensus_param_updates field to keep the generated data types interoperable with the latest protocol.

func (*ResponseEndBlock) Descriptor

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

func (*ResponseEndBlock) GetConsensusParamUpdates

func (m *ResponseEndBlock) GetConsensusParamUpdates() *v1.ConsensusParams

func (*ResponseEndBlock) GetEvents

func (m *ResponseEndBlock) GetEvents() []v1beta2.Event

func (*ResponseEndBlock) GetValidatorUpdates

func (m *ResponseEndBlock) GetValidatorUpdates() []v1beta1.ValidatorUpdate

func (*ResponseEndBlock) Marshal

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

func (*ResponseEndBlock) MarshalTo

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

func (*ResponseEndBlock) MarshalToSizedBuffer

func (m *ResponseEndBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResponseEndBlock) ProtoMessage

func (*ResponseEndBlock) ProtoMessage()

func (*ResponseEndBlock) Reset

func (m *ResponseEndBlock) Reset()

func (*ResponseEndBlock) Size

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

func (*ResponseEndBlock) String

func (m *ResponseEndBlock) String() string

func (*ResponseEndBlock) Unmarshal

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

func (*ResponseEndBlock) XXX_DiscardUnknown

func (m *ResponseEndBlock) XXX_DiscardUnknown()

func (*ResponseEndBlock) XXX_Marshal

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

func (*ResponseEndBlock) XXX_Merge

func (m *ResponseEndBlock) XXX_Merge(src proto.Message)

func (*ResponseEndBlock) XXX_Size

func (m *ResponseEndBlock) XXX_Size() int

func (*ResponseEndBlock) XXX_Unmarshal

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

type State

type State struct {
	Version v1beta11.Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version"`
	// immutable
	ChainID       string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	InitialHeight int64  `protobuf:"varint,14,opt,name=initial_height,json=initialHeight,proto3" json:"initial_height,omitempty"`
	// LastBlockHeight=0 at genesis (ie. block(H=0) does not exist)
	LastBlockHeight int64            `protobuf:"varint,3,opt,name=last_block_height,json=lastBlockHeight,proto3" json:"last_block_height,omitempty"`
	LastBlockID     v1beta12.BlockID `protobuf:"bytes,4,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id"`
	LastBlockTime   time.Time        `protobuf:"bytes,5,opt,name=last_block_time,json=lastBlockTime,proto3,stdtime" json:"last_block_time"`
	// LastValidators is used to validate block.LastCommit.
	// Validators are persisted to the database separately every time they change,
	// so we can query for historical validator sets.
	// Note that if s.LastBlockHeight causes a valset change,
	// we set s.LastHeightValidatorsChanged = s.LastBlockHeight + 1 + 1
	// Extra +1 due to nextValSet delay.
	NextValidators              *v1beta12.ValidatorSet `protobuf:"bytes,6,opt,name=next_validators,json=nextValidators,proto3" json:"next_validators,omitempty"`
	Validators                  *v1beta12.ValidatorSet `protobuf:"bytes,7,opt,name=validators,proto3" json:"validators,omitempty"`
	LastValidators              *v1beta12.ValidatorSet `protobuf:"bytes,8,opt,name=last_validators,json=lastValidators,proto3" json:"last_validators,omitempty"`
	LastHeightValidatorsChanged int64                  `` /* 147-byte string literal not displayed */
	// Consensus parameters used for validating blocks.
	// Changes returned by EndBlock and updated after Commit.
	ConsensusParams                  v1.ConsensusParams `protobuf:"bytes,10,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params"`
	LastHeightConsensusParamsChanged int64              `` /* 165-byte string literal not displayed */
	// Merkle root of the results from executing prev block
	LastResultsHash []byte `protobuf:"bytes,12,opt,name=last_results_hash,json=lastResultsHash,proto3" json:"last_results_hash,omitempty"`
	// the latest AppHash we've received from calling abci.Commit()
	AppHash []byte `protobuf:"bytes,13,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
}

State represents the state of the blockchain.

func (*State) Descriptor

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

func (*State) GetAppHash

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

func (*State) GetChainID

func (m *State) GetChainID() string

func (*State) GetConsensusParams

func (m *State) GetConsensusParams() v1.ConsensusParams

func (*State) GetInitialHeight

func (m *State) GetInitialHeight() int64

func (*State) GetLastBlockHeight

func (m *State) GetLastBlockHeight() int64

func (*State) GetLastBlockID

func (m *State) GetLastBlockID() v1beta12.BlockID

func (*State) GetLastBlockTime

func (m *State) GetLastBlockTime() time.Time

func (*State) GetLastHeightConsensusParamsChanged

func (m *State) GetLastHeightConsensusParamsChanged() int64

func (*State) GetLastHeightValidatorsChanged

func (m *State) GetLastHeightValidatorsChanged() int64

func (*State) GetLastResultsHash

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

func (*State) GetLastValidators

func (m *State) GetLastValidators() *v1beta12.ValidatorSet

func (*State) GetNextValidators

func (m *State) GetNextValidators() *v1beta12.ValidatorSet

func (*State) GetValidators

func (m *State) GetValidators() *v1beta12.ValidatorSet

func (*State) GetVersion

func (m *State) GetVersion() v1beta11.Version

func (*State) Marshal

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

func (*State) MarshalTo

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

func (*State) MarshalToSizedBuffer

func (m *State) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) Reset

func (m *State) Reset()

func (*State) Size

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

func (*State) String

func (m *State) String() string

func (*State) Unmarshal

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

func (*State) XXX_DiscardUnknown

func (m *State) XXX_DiscardUnknown()

func (*State) XXX_Marshal

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

func (*State) XXX_Merge

func (m *State) XXX_Merge(src proto.Message)

func (*State) XXX_Size

func (m *State) XXX_Size() int

func (*State) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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