Versions in this module Expand all Collapse all v3 v3.1.1 Mar 7, 2023 Changes in this version + const KeyIterateConsensusStatePrefix + const SentinelRoot + const SubModuleName + var DefaultTrustLevel = NewFractionFromTm(light.DefaultTrustLevel) + var ErrDelayPeriodNotPassed = sdkerrors.Register(SubModuleName, 10, "packet-specified delay period has not been reached") + var ErrIntOverflowTendermint = fmt.Errorf("proto: integer overflow") + var ErrInvalidChainID = sdkerrors.Register(SubModuleName, 2, "invalid chain-id") + var ErrInvalidHeader = sdkerrors.Register(SubModuleName, 6, "invalid header") + var ErrInvalidHeaderHeight = sdkerrors.Register(SubModuleName, 5, "invalid header height") + var ErrInvalidLengthTendermint = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidMaxClockDrift = sdkerrors.Register(SubModuleName, 7, "invalid max clock drift") + var ErrInvalidProofSpecs = sdkerrors.Register(SubModuleName, 13, "invalid proof specs") + var ErrInvalidTrustingPeriod = sdkerrors.Register(SubModuleName, 3, "invalid trusting period") + var ErrInvalidUnbondingPeriod = sdkerrors.Register(SubModuleName, 4, "invalid unbonding period") + var ErrInvalidValidatorSet = sdkerrors.Register(SubModuleName, 14, "invalid validator set") + var ErrProcessedHeightNotFound = sdkerrors.Register(SubModuleName, 9, "processed height not found") + var ErrProcessedTimeNotFound = sdkerrors.Register(SubModuleName, 8, "processed time not found") + var ErrTrustingPeriodExpired = sdkerrors.Register(SubModuleName, 11, ...) + var ErrUnbondingPeriodExpired = sdkerrors.Register(SubModuleName, 12, ...) + var ErrUnexpectedEndOfGroupTendermint = fmt.Errorf("proto: unexpected end of group") + var FrozenHeight = clienttypes.NewHeight(0, 1) + var KeyIteration = []byte("/iterationKey") + var KeyProcessedHeight = []byte("/processedHeight") + var KeyProcessedTime = []byte("/processedTime") + func GetHeightFromIterationKey(iterKey []byte) exported.Height + func GetIterationKey(clientStore sdk.KVStore, height exported.Height) []byte + func GetProcessedHeight(clientStore sdk.KVStore, height exported.Height) (exported.Height, bool) + func GetProcessedTime(clientStore sdk.KVStore, height exported.Height) (uint64, bool) + func IsMatchingClientState(subject, substitute ClientState) bool + func IterateConsensusMetadata(store sdk.KVStore, cb func(key, val []byte) bool) + func IterateConsensusStateAscending(clientStore sdk.KVStore, cb func(height exported.Height) (stop bool)) error + func IterationKey(height exported.Height) []byte + func ProcessedHeightKey(height exported.Height) []byte + func ProcessedTimeKey(height exported.Height) []byte + func PruneAllExpiredConsensusStates(ctx sdk.Context, clientStore sdk.KVStore, cdc codec.BinaryCodec, ...) (err error) + func RegisterInterfaces(registry codectypes.InterfaceRegistry) + func SetConsensusState(clientStore sdk.KVStore, cdc codec.BinaryCodec, consensusState *ConsensusState, ...) + func SetIterationKey(clientStore sdk.KVStore, height exported.Height) + func SetProcessedHeight(clientStore sdk.KVStore, consHeight, processedHeight exported.Height) + func SetProcessedTime(clientStore sdk.KVStore, height exported.Height, timeNs uint64) + type ClientState struct + AllowUpdateAfterExpiry bool + AllowUpdateAfterMisbehaviour bool + ChainId string + FrozenHeight types.Height + LatestHeight types.Height + MaxClockDrift time.Duration + ProofSpecs []*_go.ProofSpec + TrustLevel Fraction + TrustingPeriod time.Duration + UnbondingPeriod time.Duration + UpgradePath []string + func NewClientState(chainID string, trustLevel Fraction, ...) *ClientState + func (*ClientState) Descriptor() ([]byte, []int) + func (*ClientState) ProtoMessage() + func (cs ClientState) CheckHeaderAndUpdateState(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, ...) (exported.ClientState, exported.ConsensusState, error) + func (cs ClientState) CheckMisbehaviourAndUpdateState(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, ...) (exported.ClientState, error) + func (cs ClientState) CheckSubstituteAndUpdateState(ctx sdk.Context, cdc codec.BinaryCodec, ...) (exported.ClientState, error) + func (cs ClientState) ClientType() string + func (cs ClientState) ExportMetadata(store sdk.KVStore) []exported.GenesisMetadata + func (cs ClientState) GetChainID() string + func (cs ClientState) GetLatestHeight() exported.Height + func (cs ClientState) GetProofSpecs() []*ics23.ProofSpec + func (cs ClientState) Initialize(ctx sdk.Context, _ codec.BinaryCodec, clientStore sdk.KVStore, ...) error + func (cs ClientState) IsExpired(latestTimestamp, now time.Time) bool + func (cs ClientState) Status(ctx sdk.Context, clientStore sdk.KVStore, cdc codec.BinaryCodec) exported.Status + func (cs ClientState) Validate() error + func (cs ClientState) VerifyChannelState(store sdk.KVStore, cdc codec.BinaryCodec, height exported.Height, ...) error + func (cs ClientState) VerifyClientConsensusState(store sdk.KVStore, cdc codec.BinaryCodec, height exported.Height, ...) error + func (cs ClientState) VerifyClientState(store sdk.KVStore, cdc codec.BinaryCodec, height exported.Height, ...) error + func (cs ClientState) VerifyConnectionState(store sdk.KVStore, cdc codec.BinaryCodec, height exported.Height, ...) error + func (cs ClientState) VerifyNextSequenceRecv(ctx sdk.Context, store sdk.KVStore, cdc codec.BinaryCodec, ...) error + func (cs ClientState) VerifyPacketAcknowledgement(ctx sdk.Context, store sdk.KVStore, cdc codec.BinaryCodec, ...) error + func (cs ClientState) VerifyPacketCommitment(ctx sdk.Context, store sdk.KVStore, cdc codec.BinaryCodec, ...) error + func (cs ClientState) VerifyPacketReceiptAbsence(ctx sdk.Context, store sdk.KVStore, cdc codec.BinaryCodec, ...) error + func (cs ClientState) VerifyUpgradeAndUpdateState(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, ...) (exported.ClientState, exported.ConsensusState, error) + func (cs ClientState) ZeroCustomFields() exported.ClientState + func (m *ClientState) Marshal() (dAtA []byte, err error) + func (m *ClientState) MarshalTo(dAtA []byte) (int, error) + func (m *ClientState) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ClientState) Reset() + func (m *ClientState) Size() (n int) + func (m *ClientState) String() string + func (m *ClientState) Unmarshal(dAtA []byte) error + func (m *ClientState) XXX_DiscardUnknown() + func (m *ClientState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ClientState) XXX_Merge(src proto.Message) + func (m *ClientState) XXX_Size() int + func (m *ClientState) XXX_Unmarshal(b []byte) error + type ConsensusState struct + NextValidatorsHash github_com_tendermint_tendermint_libs_bytes.HexBytes + Root types1.MerkleRoot + Timestamp time.Time + func GetConsensusState(store sdk.KVStore, cdc codec.BinaryCodec, height exported.Height) (*ConsensusState, error) + func GetNextConsensusState(clientStore sdk.KVStore, cdc codec.BinaryCodec, height exported.Height) (*ConsensusState, bool) + func GetPreviousConsensusState(clientStore sdk.KVStore, cdc codec.BinaryCodec, height exported.Height) (*ConsensusState, bool) + func NewConsensusState(timestamp time.Time, root commitmenttypes.MerkleRoot, ...) *ConsensusState + func (*ConsensusState) Descriptor() ([]byte, []int) + func (*ConsensusState) ProtoMessage() + func (ConsensusState) ClientType() string + func (cs ConsensusState) GetRoot() exported.Root + func (cs ConsensusState) GetTimestamp() uint64 + func (cs ConsensusState) ValidateBasic() error + func (m *ConsensusState) Marshal() (dAtA []byte, err error) + func (m *ConsensusState) MarshalTo(dAtA []byte) (int, error) + func (m *ConsensusState) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ConsensusState) Reset() + func (m *ConsensusState) Size() (n int) + func (m *ConsensusState) String() string + func (m *ConsensusState) Unmarshal(dAtA []byte) error + func (m *ConsensusState) XXX_DiscardUnknown() + func (m *ConsensusState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ConsensusState) XXX_Merge(src proto.Message) + func (m *ConsensusState) XXX_Size() int + func (m *ConsensusState) XXX_Unmarshal(b []byte) error + type Fraction struct + Denominator uint64 + Numerator uint64 + func NewFractionFromTm(f tmmath.Fraction) Fraction + func (*Fraction) Descriptor() ([]byte, []int) + func (*Fraction) ProtoMessage() + func (f Fraction) ToTendermint() tmmath.Fraction + func (m *Fraction) GetDenominator() uint64 + func (m *Fraction) GetNumerator() uint64 + func (m *Fraction) Marshal() (dAtA []byte, err error) + func (m *Fraction) MarshalTo(dAtA []byte) (int, error) + func (m *Fraction) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Fraction) Reset() + func (m *Fraction) Size() (n int) + func (m *Fraction) String() string + func (m *Fraction) Unmarshal(dAtA []byte) error + func (m *Fraction) XXX_DiscardUnknown() + func (m *Fraction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Fraction) XXX_Merge(src proto.Message) + func (m *Fraction) XXX_Size() int + func (m *Fraction) XXX_Unmarshal(b []byte) error + type Header struct + TrustedHeight types.Height + TrustedValidators *types2.ValidatorSet + ValidatorSet *types2.ValidatorSet + func (*Header) Descriptor() ([]byte, []int) + func (*Header) ProtoMessage() + func (h Header) ClientType() string + func (h Header) ConsensusState() *ConsensusState + func (h Header) GetHeight() exported.Height + func (h Header) GetTime() time.Time + func (h Header) ValidateBasic() error + func (m *Header) GetTrustedHeight() types.Height + func (m *Header) GetTrustedValidators() *types2.ValidatorSet + func (m *Header) GetValidatorSet() *types2.ValidatorSet + func (m *Header) Marshal() (dAtA []byte, err error) + func (m *Header) MarshalTo(dAtA []byte) (int, error) + func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Header) Reset() + func (m *Header) Size() (n int) + func (m *Header) String() string + func (m *Header) Unmarshal(dAtA []byte) error + func (m *Header) XXX_DiscardUnknown() + func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Header) XXX_Merge(src proto.Message) + func (m *Header) XXX_Size() int + func (m *Header) XXX_Unmarshal(b []byte) error + type Misbehaviour struct + ClientId string + Header1 *Header + Header2 *Header + func NewMisbehaviour(clientID string, header1, header2 *Header) *Misbehaviour + func (*Misbehaviour) Descriptor() ([]byte, []int) + func (*Misbehaviour) ProtoMessage() + func (m *Misbehaviour) Marshal() (dAtA []byte, err error) + func (m *Misbehaviour) MarshalTo(dAtA []byte) (int, error) + func (m *Misbehaviour) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Misbehaviour) Reset() + func (m *Misbehaviour) Size() (n int) + func (m *Misbehaviour) String() string + func (m *Misbehaviour) Unmarshal(dAtA []byte) error + func (m *Misbehaviour) XXX_DiscardUnknown() + func (m *Misbehaviour) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Misbehaviour) XXX_Merge(src proto.Message) + func (m *Misbehaviour) XXX_Size() int + func (m *Misbehaviour) XXX_Unmarshal(b []byte) error + func (misbehaviour Misbehaviour) ClientType() string + func (misbehaviour Misbehaviour) GetClientID() string + func (misbehaviour Misbehaviour) GetTime() time.Time + func (misbehaviour Misbehaviour) ValidateBasic() error