Versions in this module Expand all Collapse all v0 v0.1.3 Nov 25, 2021 v0.1.1 Nov 25, 2021 Changes in this version + const SubModuleName + const TypeMsgCreateClient + const TypeMsgSubmitClientMisbehaviour + const TypeMsgUpdateClient + var ErrInvalidHeader = sdkerrors.Register(SubModuleName, 4, "invalid header") + var ErrInvalidMaxClockDrift = sdkerrors.Register(SubModuleName, 5, "invalid max clock drift") + var ErrInvalidTrustingPeriod = sdkerrors.Register(SubModuleName, 2, "invalid trusting period") + var ErrInvalidUnbondingPeriod = sdkerrors.Register(SubModuleName, 3, "invalid unbonding period") + var ErrTrustingPeriodExpired = sdkerrors.Register(SubModuleName, 6, ...) + var ErrUnbondingPeriodExpired = sdkerrors.Register(SubModuleName, 7, ...) + var SubModuleCdc *codec.Codec + func MakeBlockID(hash []byte, partSetSize int, partSetHash []byte) tmtypes.BlockID + func RegisterCodec(cdc *codec.Codec) + func SetSubModuleCodec(cdc *codec.Codec) + func ValidCommit(chainID string, commit *tmtypes.Commit, valSet *tmtypes.ValidatorSet) (err error) + type ClientState struct + FrozenHeight uint64 + ID string + LastHeader Header + MaxClockDrift time.Duration + TrustLevel tmmath.Fraction + TrustingPeriod time.Duration + UnbondingPeriod time.Duration + func Initialize(id string, trustLevel tmmath.Fraction, ...) (ClientState, error) + func InitializeFromMsg(msg MsgCreateClient) (ClientState, error) + func NewClientState(id string, trustLevel tmmath.Fraction, ...) ClientState + func (cs ClientState) ClientType() clientexported.ClientType + func (cs ClientState) GetChainID() string + func (cs ClientState) GetID() string + func (cs ClientState) GetLatestHeight() uint64 + func (cs ClientState) GetLatestTimestamp() time.Time + func (cs ClientState) IsFrozen() bool + func (cs ClientState) Validate() error + func (cs ClientState) VerifyChannelState(_ sdk.KVStore, cdc codec.Marshaler, height uint64, ...) error + func (cs ClientState) VerifyClientConsensusState(_ sdk.KVStore, cdc *codec.Codec, provingRoot commitmentexported.Root, ...) error + func (cs ClientState) VerifyConnectionState(_ sdk.KVStore, cdc codec.Marshaler, height uint64, ...) error + func (cs ClientState) VerifyNextSequenceRecv(_ sdk.KVStore, height uint64, prefix commitmentexported.Prefix, ...) error + func (cs ClientState) VerifyPacketAcknowledgement(_ sdk.KVStore, height uint64, prefix commitmentexported.Prefix, ...) error + func (cs ClientState) VerifyPacketAcknowledgementAbsence(_ sdk.KVStore, height uint64, prefix commitmentexported.Prefix, ...) error + func (cs ClientState) VerifyPacketCommitment(_ sdk.KVStore, height uint64, prefix commitmentexported.Prefix, ...) error + type ConsensusState struct + Height uint64 + Root commitmentexported.Root + Timestamp time.Time + ValidatorSet *tmtypes.ValidatorSet + func NewConsensusState(timestamp time.Time, root commitmentexported.Root, height uint64, ...) ConsensusState + func (ConsensusState) ClientType() clientexported.ClientType + func (cs ConsensusState) GetHeight() uint64 + func (cs ConsensusState) GetRoot() commitmentexported.Root + func (cs ConsensusState) GetTimestamp() uint64 + func (cs ConsensusState) ValidateBasic() error + type Evidence struct + ChainID string + ClientID string + Header1 Header + Header2 Header + func (ev Evidence) ClientType() clientexported.ClientType + func (ev Evidence) GetClientID() string + func (ev Evidence) GetHeight() int64 + func (ev Evidence) Hash() tmbytes.HexBytes + func (ev Evidence) Route() string + func (ev Evidence) String() string + func (ev Evidence) Type() string + func (ev Evidence) ValidateBasic() error + type Header struct + ValidatorSet *tmtypes.ValidatorSet + func CreateTestHeader(chainID string, height int64, timestamp time.Time, ...) Header + func (h Header) ClientType() clientexported.ClientType + func (h Header) ConsensusState() ConsensusState + func (h Header) GetHeight() uint64 + func (h Header) ToABCIHeader() abci.Header + func (h Header) ValidateBasic(chainID string) error + type MsgCreateClient struct + ClientID string + Header Header + MaxClockDrift time.Duration + Signer sdk.AccAddress + TrustLevel tmmath.Fraction + TrustingPeriod time.Duration + UnbondingPeriod time.Duration + func NewMsgCreateClient(id string, header Header, trustLevel tmmath.Fraction, ...) MsgCreateClient + func (msg MsgCreateClient) GetClientID() string + func (msg MsgCreateClient) GetClientType() string + func (msg MsgCreateClient) GetConsensusState() clientexported.ConsensusState + func (msg MsgCreateClient) GetSignBytes() []byte + func (msg MsgCreateClient) GetSigners() []sdk.AccAddress + func (msg MsgCreateClient) Route() string + func (msg MsgCreateClient) Type() string + func (msg MsgCreateClient) ValidateBasic() error + type MsgSubmitClientMisbehaviour struct + Evidence evidenceexported.Evidence + Submitter sdk.AccAddress + func NewMsgSubmitClientMisbehaviour(e evidenceexported.Evidence, s sdk.AccAddress) MsgSubmitClientMisbehaviour + func (msg MsgSubmitClientMisbehaviour) GetEvidence() evidenceexported.Evidence + func (msg MsgSubmitClientMisbehaviour) GetSignBytes() []byte + func (msg MsgSubmitClientMisbehaviour) GetSigners() []sdk.AccAddress + func (msg MsgSubmitClientMisbehaviour) GetSubmitter() sdk.AccAddress + func (msg MsgSubmitClientMisbehaviour) Route() string + func (msg MsgSubmitClientMisbehaviour) Type() string + func (msg MsgSubmitClientMisbehaviour) ValidateBasic() error + type MsgUpdateClient struct + ClientID string + Header Header + Signer sdk.AccAddress + func NewMsgUpdateClient(id string, header Header, signer sdk.AccAddress) MsgUpdateClient + func (msg MsgUpdateClient) GetClientID() string + func (msg MsgUpdateClient) GetHeader() clientexported.Header + func (msg MsgUpdateClient) GetSignBytes() []byte + func (msg MsgUpdateClient) GetSigners() []sdk.AccAddress + func (msg MsgUpdateClient) Route() string + func (msg MsgUpdateClient) Type() string + func (msg MsgUpdateClient) ValidateBasic() error