Versions in this module Expand all Collapse all v8 v8.8.8 Jul 11, 2024 Changes in this version + const KeyIterateConsensusStatePrefix + const ModuleName + const SentinelRoot + var DefaultTrustLevel = NewFractionFromTm(light.DefaultTrustLevel) + var ErrDelayPeriodNotPassed = errorsmod.Register(ModuleName, 10, "packet-specified delay period has not been reached") + var ErrIntOverflowTendermint = fmt.Errorf("proto: integer overflow") + var ErrInvalidChainID = errorsmod.Register(ModuleName, 2, "invalid chain-id") + var ErrInvalidHeader = errorsmod.Register(ModuleName, 6, "invalid header") + var ErrInvalidHeaderHeight = errorsmod.Register(ModuleName, 5, "invalid header height") + var ErrInvalidLengthTendermint = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidMaxClockDrift = errorsmod.Register(ModuleName, 7, "invalid max clock drift") + var ErrInvalidProofSpecs = errorsmod.Register(ModuleName, 13, "invalid proof specs") + var ErrInvalidTrustLevel = errorsmod.Register(ModuleName, 15, "invalid trust level") + var ErrInvalidTrustingPeriod = errorsmod.Register(ModuleName, 3, "invalid trusting period") + var ErrInvalidUnbondingPeriod = errorsmod.Register(ModuleName, 4, "invalid unbonding period") + var ErrInvalidValidatorSet = errorsmod.Register(ModuleName, 14, "invalid validator set") + var ErrProcessedHeightNotFound = errorsmod.Register(ModuleName, 9, "processed height not found") + var ErrProcessedTimeNotFound = errorsmod.Register(ModuleName, 8, "processed time not found") + var ErrTrustingPeriodExpired = errorsmod.Register(ModuleName, 11, ...) + var ErrUnbondingPeriodExpired = errorsmod.Register(ModuleName, 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 storetypes.KVStore, height exported.Height) []byte + func GetProcessedHeight(clientStore storetypes.KVStore, height exported.Height) (exported.Height, bool) + func GetProcessedTime(clientStore storetypes.KVStore, height exported.Height) (uint64, bool) + func IsMatchingClientState(subject, substitute ClientState) bool + func IterateConsensusStateAscending(clientStore storetypes.KVStore, cb func(height exported.Height) (stop bool)) + func IterationKey(height exported.Height) []byte + func NewConsensusHost(stakingKeeper clienttypes.StakingKeeper) clienttypes.ConsensusHost + func ProcessedHeightKey(height exported.Height) []byte + func ProcessedTimeKey(height exported.Height) []byte + func PruneAllExpiredConsensusStates(ctx sdk.Context, clientStore storetypes.KVStore, cdc codec.BinaryCodec, ...) int + func RegisterInterfaces(registry codectypes.InterfaceRegistry) + func SetIterationKey(clientStore storetypes.KVStore, height exported.Height) + func SetProcessedHeight(clientStore storetypes.KVStore, consHeight, processedHeight exported.Height) + func SetProcessedTime(clientStore storetypes.KVStore, height exported.Height, timeNs uint64) + type AppModule struct + func NewAppModule(lightClientModule LightClientModule) AppModule + func (AppModule) IsAppModule() + func (AppModule) IsOnePerModuleType() + type AppModuleBasic struct + func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage + func (AppModuleBasic) GetQueryCmd() *cobra.Command + func (AppModuleBasic) GetTxCmd() *cobra.Command + func (AppModuleBasic) IsAppModule() + func (AppModuleBasic) IsOnePerModuleType() + func (AppModuleBasic) Name() string + func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) + func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry) + func (AppModuleBasic) RegisterLegacyAminoCodec(*codec.LegacyAmino) + func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error + 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 (ClientState) CheckForMisbehaviour(ctx sdk.Context, cdc codec.BinaryCodec, clientStore storetypes.KVStore, ...) bool + func (ClientState) ClientType() string + func (ClientState) GetTimestampAtHeight(ctx sdk.Context, clientStore storetypes.KVStore, cdc codec.BinaryCodec, ...) (uint64, error) + func (cs *ClientState) VerifyClientMessage(ctx sdk.Context, cdc codec.BinaryCodec, clientStore storetypes.KVStore, ...) error + func (cs ClientState) CheckSubstituteAndUpdateState(ctx sdk.Context, cdc codec.BinaryCodec, ...) error + func (cs ClientState) GetChainID() string + func (cs ClientState) Initialize(ctx sdk.Context, cdc codec.BinaryCodec, clientStore storetypes.KVStore, ...) error + func (cs ClientState) IsExpired(latestTimestamp, now time.Time) bool + func (cs ClientState) Status(ctx sdk.Context, clientStore storetypes.KVStore, cdc codec.BinaryCodec) exported.Status + func (cs ClientState) UpdateState(ctx sdk.Context, cdc codec.BinaryCodec, clientStore storetypes.KVStore, ...) []exported.Height + func (cs ClientState) UpdateStateOnMisbehaviour(ctx sdk.Context, cdc codec.BinaryCodec, clientStore storetypes.KVStore, ...) + func (cs ClientState) Validate() error + func (cs ClientState) VerifyMembership(ctx sdk.Context, clientStore storetypes.KVStore, cdc codec.BinaryCodec, ...) error + func (cs ClientState) VerifyNonMembership(ctx sdk.Context, clientStore storetypes.KVStore, cdc codec.BinaryCodec, ...) error + func (cs ClientState) VerifyUpgradeAndUpdateState(ctx sdk.Context, cdc codec.BinaryCodec, clientStore storetypes.KVStore, ...) error + func (cs ClientState) ZeroCustomFields() *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 ConsensusHost struct + func (c *ConsensusHost) GetSelfConsensusState(ctx sdk.Context, height exported.Height) (exported.ConsensusState, error) + func (c *ConsensusHost) ValidateSelfClient(ctx sdk.Context, clientState exported.ClientState) error + type ConsensusState struct + NextValidatorsHash github_com_cometbft_cometbft_libs_bytes.HexBytes + Root types1.MerkleRoot + Timestamp time.Time + func GetConsensusState(store storetypes.KVStore, cdc codec.BinaryCodec, height exported.Height) (*ConsensusState, bool) + func GetNextConsensusState(clientStore storetypes.KVStore, cdc codec.BinaryCodec, height exported.Height) (*ConsensusState, bool) + func GetPreviousConsensusState(clientStore storetypes.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 cmtmath.Fraction) Fraction + func (*Fraction) Descriptor() ([]byte, []int) + func (*Fraction) ProtoMessage() + func (f Fraction) ToTendermint() cmtmath.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 (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 LightClientModule struct + func NewLightClientModule(cdc codec.BinaryCodec, authority string) LightClientModule + func (l *LightClientModule) RegisterStoreProvider(storeProvider exported.ClientStoreProvider) + func (l LightClientModule) CheckForMisbehaviour(ctx sdk.Context, clientID string, clientMsg exported.ClientMessage) bool + func (l LightClientModule) Initialize(ctx sdk.Context, clientID string, clientStateBz, consensusStateBz []byte) error + func (l LightClientModule) LatestHeight(ctx sdk.Context, clientID string) exported.Height + func (l LightClientModule) RecoverClient(ctx sdk.Context, clientID, substituteClientID string) error + func (l LightClientModule) Status(ctx sdk.Context, clientID string) exported.Status + func (l LightClientModule) TimestampAtHeight(ctx sdk.Context, clientID string, height exported.Height) (uint64, error) + func (l LightClientModule) UpdateState(ctx sdk.Context, clientID string, clientMsg exported.ClientMessage) []exported.Height + func (l LightClientModule) UpdateStateOnMisbehaviour(ctx sdk.Context, clientID string, clientMsg exported.ClientMessage) + func (l LightClientModule) VerifyClientMessage(ctx sdk.Context, clientID string, clientMsg exported.ClientMessage) error + func (l LightClientModule) VerifyMembership(ctx sdk.Context, clientID string, height exported.Height, ...) error + func (l LightClientModule) VerifyNonMembership(ctx sdk.Context, clientID string, height exported.Height, ...) error + func (l LightClientModule) VerifyUpgradeAndUpdateState(ctx sdk.Context, clientID string, newClient []byte, newConsState []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 (Misbehaviour) ClientType() string + 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) GetTime() time.Time + func (misbehaviour Misbehaviour) ValidateBasic() error + type StakingKeeper interface + GetHistoricalInfo func(ctx context.Context, height int64) (stakingtypes.HistoricalInfo, error) + UnbondingTime func(ctx context.Context) (time.Duration, error) Other modules containing this package github.com/h1uf/ibc-go/v9