Documentation
¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Variables
- type ClientState
- func (*ClientState) Descriptor() ([]byte, []int)deprecated
- func (x *ClientState) GetAllowUpdateAfterExpiry() booldeprecated
- func (x *ClientState) GetAllowUpdateAfterMisbehaviour() booldeprecated
- func (x *ClientState) GetChainId() string
- func (x *ClientState) GetFrozenHeight() *v1.Height
- func (x *ClientState) GetLatestHeight() *v1.Height
- func (x *ClientState) GetMaxClockDrift() *durationpb.Duration
- func (x *ClientState) GetProofSpecs() []*api.ProofSpec
- func (x *ClientState) GetTrustLevel() *Fraction
- func (x *ClientState) GetTrustingPeriod() *durationpb.Duration
- func (x *ClientState) GetUnbondingPeriod() *durationpb.Duration
- func (x *ClientState) GetUpgradePath() []string
- func (*ClientState) ProtoMessage()
- func (x *ClientState) ProtoReflect() protoreflect.Message
- func (x *ClientState) Reset()
- func (x *ClientState) String() string
- type ConsensusState
- func (*ConsensusState) Descriptor() ([]byte, []int)deprecated
- func (x *ConsensusState) GetNextValidatorsHash() []byte
- func (x *ConsensusState) GetRoot() *v11.MerkleRoot
- func (x *ConsensusState) GetTimestamp() *timestamppb.Timestamp
- func (*ConsensusState) ProtoMessage()
- func (x *ConsensusState) ProtoReflect() protoreflect.Message
- func (x *ConsensusState) Reset()
- func (x *ConsensusState) String() string
- type Fraction
- type Header
- func (*Header) Descriptor() ([]byte, []int)deprecated
- func (x *Header) GetSignedHeader() *types.SignedHeader
- func (x *Header) GetTrustedHeight() *v1.Height
- func (x *Header) GetTrustedValidators() *types.ValidatorSet
- func (x *Header) GetValidatorSet() *types.ValidatorSet
- func (*Header) ProtoMessage()
- func (x *Header) ProtoReflect() protoreflect.Message
- func (x *Header) Reset()
- func (x *Header) String() string
- type Misbehaviour
- func (*Misbehaviour) Descriptor() ([]byte, []int)deprecated
- func (x *Misbehaviour) GetClientId() stringdeprecated
- func (x *Misbehaviour) GetHeader_1() *Header
- func (x *Misbehaviour) GetHeader_2() *Header
- func (*Misbehaviour) ProtoMessage()
- func (x *Misbehaviour) ProtoReflect() protoreflect.Message
- func (x *Misbehaviour) Reset()
- func (x *Misbehaviour) String() string
Constants ¶
This section is empty.
Variables ¶
var File_ibc_lightclients_tendermint_v1_tendermint_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ClientState ¶
type ClientState struct { ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` TrustLevel *Fraction `protobuf:"bytes,2,opt,name=trust_level,json=trustLevel,proto3" json:"trust_level,omitempty"` // duration of the period since the LatestTimestamp during which the // submitted headers are valid for upgrade TrustingPeriod *durationpb.Duration `protobuf:"bytes,3,opt,name=trusting_period,json=trustingPeriod,proto3" json:"trusting_period,omitempty"` // duration of the staking unbonding period UnbondingPeriod *durationpb.Duration `protobuf:"bytes,4,opt,name=unbonding_period,json=unbondingPeriod,proto3" json:"unbonding_period,omitempty"` // defines how much new (untrusted) header's Time can drift into the future. MaxClockDrift *durationpb.Duration `protobuf:"bytes,5,opt,name=max_clock_drift,json=maxClockDrift,proto3" json:"max_clock_drift,omitempty"` // Block height when the client was frozen due to a misbehaviour FrozenHeight *v1.Height `protobuf:"bytes,6,opt,name=frozen_height,json=frozenHeight,proto3" json:"frozen_height,omitempty"` // Latest height the client was updated to LatestHeight *v1.Height `protobuf:"bytes,7,opt,name=latest_height,json=latestHeight,proto3" json:"latest_height,omitempty"` // Proof specifications used in verifying counterparty state ProofSpecs []*api.ProofSpec `protobuf:"bytes,8,rep,name=proof_specs,json=proofSpecs,proto3" json:"proof_specs,omitempty"` // Path at which next upgraded client will be committed. // Each element corresponds to the key for a single CommitmentProof in the // chained proof. NOTE: ClientState must stored under // `{upgradePath}/{upgradeHeight}/clientState` ConsensusState must be stored // under `{upgradepath}/{upgradeHeight}/consensusState` For SDK chains using // the default upgrade module, upgrade_path should be []string{"upgrade", // "upgradedIBCState"}` UpgradePath []string `protobuf:"bytes,9,rep,name=upgrade_path,json=upgradePath,proto3" json:"upgrade_path,omitempty"` // allow_update_after_expiry is deprecated // // Deprecated: Do not use. AllowUpdateAfterExpiry bool `` /* 133-byte string literal not displayed */ // allow_update_after_misbehaviour is deprecated // // Deprecated: Do not use. AllowUpdateAfterMisbehaviour bool `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
ClientState from Tendermint tracks the current validator set, latest height, and a possible frozen height.
func (*ClientState) Descriptor
deprecated
func (*ClientState) Descriptor() ([]byte, []int)
Deprecated: Use ClientState.ProtoReflect.Descriptor instead.
func (*ClientState) GetAllowUpdateAfterExpiry
deprecated
func (x *ClientState) GetAllowUpdateAfterExpiry() bool
Deprecated: Do not use.
func (*ClientState) GetAllowUpdateAfterMisbehaviour
deprecated
func (x *ClientState) GetAllowUpdateAfterMisbehaviour() bool
Deprecated: Do not use.
func (*ClientState) GetChainId ¶
func (x *ClientState) GetChainId() string
func (*ClientState) GetFrozenHeight ¶
func (x *ClientState) GetFrozenHeight() *v1.Height
func (*ClientState) GetLatestHeight ¶
func (x *ClientState) GetLatestHeight() *v1.Height
func (*ClientState) GetMaxClockDrift ¶
func (x *ClientState) GetMaxClockDrift() *durationpb.Duration
func (*ClientState) GetProofSpecs ¶
func (x *ClientState) GetProofSpecs() []*api.ProofSpec
func (*ClientState) GetTrustLevel ¶
func (x *ClientState) GetTrustLevel() *Fraction
func (*ClientState) GetTrustingPeriod ¶
func (x *ClientState) GetTrustingPeriod() *durationpb.Duration
func (*ClientState) GetUnbondingPeriod ¶
func (x *ClientState) GetUnbondingPeriod() *durationpb.Duration
func (*ClientState) GetUpgradePath ¶
func (x *ClientState) GetUpgradePath() []string
func (*ClientState) ProtoMessage ¶
func (*ClientState) ProtoMessage()
func (*ClientState) ProtoReflect ¶
func (x *ClientState) ProtoReflect() protoreflect.Message
func (*ClientState) Reset ¶
func (x *ClientState) Reset()
func (*ClientState) String ¶
func (x *ClientState) String() string
type ConsensusState ¶
type ConsensusState struct { // timestamp that corresponds to the block height in which the ConsensusState // was stored. Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // commitment root (i.e app hash) Root *v11.MerkleRoot `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"` NextValidatorsHash []byte `protobuf:"bytes,3,opt,name=next_validators_hash,json=nextValidatorsHash,proto3" json:"next_validators_hash,omitempty"` // contains filtered or unexported fields }
ConsensusState defines the consensus state from Tendermint.
func (*ConsensusState) Descriptor
deprecated
func (*ConsensusState) Descriptor() ([]byte, []int)
Deprecated: Use ConsensusState.ProtoReflect.Descriptor instead.
func (*ConsensusState) GetNextValidatorsHash ¶
func (x *ConsensusState) GetNextValidatorsHash() []byte
func (*ConsensusState) GetRoot ¶
func (x *ConsensusState) GetRoot() *v11.MerkleRoot
func (*ConsensusState) GetTimestamp ¶
func (x *ConsensusState) GetTimestamp() *timestamppb.Timestamp
func (*ConsensusState) ProtoMessage ¶
func (*ConsensusState) ProtoMessage()
func (*ConsensusState) ProtoReflect ¶
func (x *ConsensusState) ProtoReflect() protoreflect.Message
func (*ConsensusState) Reset ¶
func (x *ConsensusState) Reset()
func (*ConsensusState) String ¶
func (x *ConsensusState) String() string
type Fraction ¶
type Fraction struct { Numerator uint64 `protobuf:"varint,1,opt,name=numerator,proto3" json:"numerator,omitempty"` Denominator uint64 `protobuf:"varint,2,opt,name=denominator,proto3" json:"denominator,omitempty"` // contains filtered or unexported fields }
Fraction defines the protobuf message type for tmmath.Fraction that only supports positive values.
func (*Fraction) Descriptor
deprecated
func (*Fraction) GetDenominator ¶
func (*Fraction) GetNumerator ¶
func (*Fraction) ProtoMessage ¶
func (*Fraction) ProtoMessage()
func (*Fraction) ProtoReflect ¶
func (x *Fraction) ProtoReflect() protoreflect.Message
type Header ¶
type Header struct { SignedHeader *types.SignedHeader `protobuf:"bytes,1,opt,name=signed_header,json=signedHeader,proto3" json:"signed_header,omitempty"` ValidatorSet *types.ValidatorSet `protobuf:"bytes,2,opt,name=validator_set,json=validatorSet,proto3" json:"validator_set,omitempty"` TrustedHeight *v1.Height `protobuf:"bytes,3,opt,name=trusted_height,json=trustedHeight,proto3" json:"trusted_height,omitempty"` TrustedValidators *types.ValidatorSet `protobuf:"bytes,4,opt,name=trusted_validators,json=trustedValidators,proto3" json:"trusted_validators,omitempty"` // contains filtered or unexported fields }
Header defines the Tendermint client consensus Header. It encapsulates all the information necessary to update from a trusted Tendermint ConsensusState. The inclusion of TrustedHeight and TrustedValidators allows this update to process correctly, so long as the ConsensusState for the TrustedHeight exists, this removes race conditions among relayers The SignedHeader and ValidatorSet are the new untrusted update fields for the client. The TrustedHeight is the height of a stored ConsensusState on the client that will be used to verify the new untrusted header. The Trusted ConsensusState must be within the unbonding period of current time in order to correctly verify, and the TrustedValidators must hash to TrustedConsensusState.NextValidatorsHash since that is the last trusted validator set at the TrustedHeight.
func (*Header) Descriptor
deprecated
func (*Header) GetSignedHeader ¶
func (x *Header) GetSignedHeader() *types.SignedHeader
func (*Header) GetTrustedHeight ¶
func (*Header) GetTrustedValidators ¶
func (x *Header) GetTrustedValidators() *types.ValidatorSet
func (*Header) GetValidatorSet ¶
func (x *Header) GetValidatorSet() *types.ValidatorSet
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) ProtoReflect ¶
func (x *Header) ProtoReflect() protoreflect.Message
type Misbehaviour ¶
type Misbehaviour struct { // ClientID is deprecated // // Deprecated: Do not use. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` Header_1 *Header `protobuf:"bytes,2,opt,name=header_1,json=header1,proto3" json:"header_1,omitempty"` Header_2 *Header `protobuf:"bytes,3,opt,name=header_2,json=header2,proto3" json:"header_2,omitempty"` // contains filtered or unexported fields }
Misbehaviour is a wrapper over two conflicting Headers that implements Misbehaviour interface expected by ICS-02
func (*Misbehaviour) Descriptor
deprecated
func (*Misbehaviour) Descriptor() ([]byte, []int)
Deprecated: Use Misbehaviour.ProtoReflect.Descriptor instead.
func (*Misbehaviour) GetClientId
deprecated
func (x *Misbehaviour) GetClientId() string
Deprecated: Do not use.
func (*Misbehaviour) GetHeader_1 ¶
func (x *Misbehaviour) GetHeader_1() *Header
func (*Misbehaviour) GetHeader_2 ¶
func (x *Misbehaviour) GetHeader_2() *Header
func (*Misbehaviour) ProtoMessage ¶
func (*Misbehaviour) ProtoMessage()
func (*Misbehaviour) ProtoReflect ¶
func (x *Misbehaviour) ProtoReflect() protoreflect.Message
func (*Misbehaviour) Reset ¶
func (x *Misbehaviour) Reset()
func (*Misbehaviour) String ¶
func (x *Misbehaviour) String() string