Versions in this module Expand all Collapse all v0 v0.2.0 May 13, 2024 v0.1.0 Jan 17, 2024 Changes in this version + const IBFT2ClientType + const IBFT2_CLIENT_TYPE + var ErrIntOverflowConfig = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowIbft2 = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthConfig = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthIbft2 = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupConfig = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupIbft2 = fmt.Errorf("proto: unexpected end of group") + type ClientState struct + ChainId string + IbcStoreAddress []byte + LatestHeight types.Height + func (*ClientState) Descriptor() ([]byte, []int) + func (*ClientState) ProtoMessage() + func (cs *ClientState) CheckForMisbehaviour(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, ...) bool + func (cs *ClientState) CheckSubstituteAndUpdateState(ctx sdk.Context, cdc codec.BinaryCodec, ...) error + func (cs *ClientState) ClientType() string + func (cs *ClientState) ExportMetadata(clientStore sdk.KVStore) []exported.GenesisMetadata + func (cs *ClientState) GetLatestHeight() exported.Height + func (cs *ClientState) GetTimestampAtHeight(ctx sdk.Context, clientStore sdk.KVStore, cdc codec.BinaryCodec, ...) (uint64, error) + func (cs *ClientState) Initialize(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, ...) error + func (cs *ClientState) Status(ctx sdk.Context, clientStore sdk.KVStore, cdc codec.BinaryCodec) exported.Status + func (cs *ClientState) UpdateState(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, ...) []exported.Height + func (cs *ClientState) UpdateStateOnMisbehaviour(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, ...) + func (cs *ClientState) Validate() error + func (cs *ClientState) VerifyClientMessage(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, ...) error + func (cs *ClientState) VerifyMembership(ctx sdk.Context, clientStore sdk.KVStore, cdc codec.BinaryCodec, ...) error + func (cs *ClientState) VerifyNonMembership(ctx sdk.Context, clientStore sdk.KVStore, cdc codec.BinaryCodec, ...) error + func (cs *ClientState) VerifyUpgradeAndUpdateState(ctx sdk.Context, cdc codec.BinaryCodec, store sdk.KVStore, ...) 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 + Root []byte + Timestamp uint64 + Validators [][]byte + func (*ConsensusState) Descriptor() ([]byte, []int) + func (*ConsensusState) ProtoMessage() + func (cs *ConsensusState) ClientType() string + 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 Header struct + AccountStateProof []byte + BesuHeaderRlp []byte + Seals [][]byte + TrustedHeight types.Height + func (*Header) Descriptor() ([]byte, []int) + func (*Header) ProtoMessage() + func (Header) ClientType() string + func (h *Header) GetHeight() exported.Height + func (h *Header) ValidateBasic() error + 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 IBFT2Extra struct + Round [4]byte + Seals [][]byte + Validators []common.Address + Vanity [32]byte + Vote interface{} + type Module struct + func (Module) GetCmd(ctx *config.Context) *cobra.Command + func (Module) Name() string + func (Module) RegisterInterfaces(registry codectypes.InterfaceRegistry) + type Prover struct + func NewProver(chain *ethereum.Chain, config ProverConfig) *Prover + func (pr *Prover) CheckRefreshRequired(counterparty core.ChainInfoICS02Querier) (bool, error) + func (pr *Prover) CreateInitialLightClientState(height exported.Height) (exported.ClientState, exported.ConsensusState, error) + func (pr *Prover) GetLatestFinalizedHeader() (latestFinalizedHeader core.Header, err error) + func (pr *Prover) Init(homePath string, timeout time.Duration, codec codec.ProtoCodecMarshaler, ...) error + func (pr *Prover) ProveHostConsensusState(ctx core.QueryContext, height exported.Height, ...) (proof []byte, err error) + func (pr *Prover) ProveState(ctx core.QueryContext, path string, value []byte) ([]byte, clienttypes.Height, error) + func (pr *Prover) SetRelayInfo(path *core.PathEnd, counterparty *core.ProvableChain, ...) error + func (pr *Prover) SetupForRelay(ctx context.Context) error + func (pr *Prover) SetupHeadersForUpdate(counterparty core.FinalityAwareChain, latestFinalizedHeader core.Header) ([]core.Header, error) + type ProverConfig struct + TrustLevelDenominator uint32 + TrustLevelNumerator uint32 + TrustingPeriod uint64 + func (*ProverConfig) Descriptor() ([]byte, []int) + func (*ProverConfig) ProtoMessage() + func (c ProverConfig) Build(chain core.Chain) (core.Prover, error) + func (c ProverConfig) Validate() error + func (m *ProverConfig) Marshal() (dAtA []byte, err error) + func (m *ProverConfig) MarshalTo(dAtA []byte) (int, error) + func (m *ProverConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ProverConfig) Reset() + func (m *ProverConfig) Size() (n int) + func (m *ProverConfig) String() string + func (m *ProverConfig) Unmarshal(dAtA []byte) error + func (m *ProverConfig) XXX_DiscardUnknown() + func (m *ProverConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ProverConfig) XXX_Merge(src proto.Message) + func (m *ProverConfig) XXX_Size() int + func (m *ProverConfig) XXX_Unmarshal(b []byte) error