Versions in this module Expand all Collapse all v0 v0.1.4 Apr 10, 2023 Changes in this version + const BN256Fork + const EpochSize + const IstanbulExtraBlsSignature + const IstanbulExtraSeal + const IstanbulExtraVanity + const KeyIterateConsensusStatePrefix + const MAPO + const ModuleName + const PublicKeyBytes + var ErrEmptyAggregatedSeal = sdkerrors.Register(ModuleName, 9, "empty aggregated seal") + var ErrInsufficientSeals = sdkerrors.Register(ModuleName, 11, "not enough seals to reach quorum") + var ErrInvalidAggregatedSeal = sdkerrors.Register(ModuleName, 10, "invalid aggregated seal") + var ErrInvalidClientIdentifier = sdkerrors.Register(ModuleName, 1, "invalid client identifier") + var ErrInvalidEpochSize = sdkerrors.Register(ModuleName, 3, "invalid epoch size") + var ErrInvalidHeader = sdkerrors.Register(ModuleName, 7, "invalid header") + var ErrInvalidIstanbulHeaderExtra = sdkerrors.Register(ModuleName, 8, "invalid istanbul header extra-data") + var ErrInvalidLatestEpoch = sdkerrors.Register(ModuleName, 2, "invalid latest epoch") + var ErrInvalidLatestHeight = sdkerrors.Register(ModuleName, 4, "invalid latest height") + var ErrInvalidReceipt = sdkerrors.Register(ModuleName, 5, "invalid receipt") + var ErrInvalidSignature = sdkerrors.Register(ModuleName, 12, "invalid signature") + var ErrNotLastHeaderOfEpoch = sdkerrors.Register(ModuleName, 6, "not the last header of epoch") + 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 IterateConsensusMetadata(store sdk.KVStore, cb func(key, val []byte) bool) + func IterateConsensusStateAscending(clientStore sdk.KVStore, cb func(height exported.Height) (stop bool)) + func IterationKey(height exported.Height) []byte + func ProcessedHeightKey(height exported.Height) []byte + func ProcessedTimeKey(height exported.Height) []byte + func RegisterInterfaces(registry codectypes.InterfaceRegistry) + 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 AppModuleBasic struct + func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage + func (AppModuleBasic) GetQueryCmd() *cobra.Command + func (AppModuleBasic) GetTxCmd() *cobra.Command + 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 + ClientIdentifier string + EpochSize uint64 + Frozen bool + LatestEpoch uint64 + LatestHeight uint64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ClientState) Descriptor() ([]byte, []int) + func (*ClientState) ProtoMessage() + func (cs *ClientState) VerifyClientMessage(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, ...) error + 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(store 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) 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, clientStore sdk.KVStore, ...) error + func (cs ClientState) ZeroCustomFields() exported.ClientState + func (m *ClientState) Reset() + func (m *ClientState) String() string + 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 + CommitmentRoot []byte + Epoch uint64 + Timestamp time.Time + Validators *ValidatorSet + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func GetConsensusState(store sdk.KVStore, cdc codec.BinaryCodec, height exported.Height) (*ConsensusState, bool) + 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 (*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) Reset() + func (m *ConsensusState) String() string + 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 + CommitmentRoot []byte + Identifier string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + 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) Reset() + func (m *Header) String() string + 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 + Header1 *Header + Header2 *Header + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Misbehaviour) Descriptor() ([]byte, []int) + func (*Misbehaviour) ProtoMessage() + func (m *Misbehaviour) Reset() + func (m *Misbehaviour) String() string + 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 (m Misbehaviour) ClientType() string + func (m Misbehaviour) GetTime() time.Time + func (m Misbehaviour) ValidateBasic() error + type PairKey struct + Address string + G2PubKey []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*PairKey) Descriptor() ([]byte, []int) + func (*PairKey) ProtoMessage() + func (m *PairKey) Reset() + func (m *PairKey) String() string + func (m *PairKey) XXX_DiscardUnknown() + func (m *PairKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *PairKey) XXX_Merge(src proto.Message) + func (m *PairKey) XXX_Size() int + func (m *PairKey) XXX_Unmarshal(b []byte) error + type SignedHeader struct + BaseFee uint64 + Bloom []byte + ExtraData []byte + GasLimit uint64 + GasUsed uint64 + MixDigest []byte + Nonce uint64 + Number uint64 + ParentHash []byte + ReceiptRoot []byte + Root []byte + Timestamp uint64 + TxRoot []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*SignedHeader) Descriptor() ([]byte, []int) + func (*SignedHeader) ProtoMessage() + func (m *SignedHeader) Reset() + func (m *SignedHeader) String() string + func (m *SignedHeader) XXX_DiscardUnknown() + func (m *SignedHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SignedHeader) XXX_Merge(src proto.Message) + func (m *SignedHeader) XXX_Size() int + func (m *SignedHeader) XXX_Unmarshal(b []byte) error + type ValidatorSet struct + PairKeys []*PairKey + Weights []uint64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ValidatorSet) Descriptor() ([]byte, []int) + func (*ValidatorSet) ProtoMessage() + func (m *ValidatorSet) Reset() + func (m *ValidatorSet) String() string + func (m *ValidatorSet) XXX_DiscardUnknown() + func (m *ValidatorSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ValidatorSet) XXX_Merge(src proto.Message) + func (m *ValidatorSet) XXX_Size() int + func (m *ValidatorSet) XXX_Unmarshal(b []byte) error