Documentation ¶
Index ¶
- type Keeper
- func (q Keeper) ClientParams(c context.Context, _ *types.QueryClientParamsRequest) (*types.QueryClientParamsResponse, error)
- func (q Keeper) ClientState(c context.Context, req *types.QueryClientStateRequest) (*types.QueryClientStateResponse, error)
- func (q Keeper) ClientStateRest(ctx sdk.Context, req abci.RequestQuery) ([]byte, error)
- func (q Keeper) ClientStates(c context.Context, req *types.QueryClientStatesRequest) (*types.QueryClientStatesResponse, error)
- func (q Keeper) ClientStatesRest(ctx sdk.Context, req abci.RequestQuery) ([]byte, error)
- func (k Keeper) ClientStore(ctx sdk.Context, clientID string) sdk.KVStore
- func (q Keeper) ConsensusState(c context.Context, req *types.QueryConsensusStateRequest) (*types.QueryConsensusStateResponse, error)
- func (q Keeper) ConsensusStateRest(ctx sdk.Context, req abci.RequestQuery) ([]byte, error)
- func (q Keeper) ConsensusStates(c context.Context, req *types.QueryConsensusStatesRequest) (*types.QueryConsensusStatesResponse, error)
- func (k Keeper) CreateClient(ctx sdk.Context, clientState exported.ClientState, ...) (string, error)
- func (k Keeper) GenerateClientIdentifier(ctx sdk.Context, clientType string) string
- func (k Keeper) GetAllClientsConsensusState(ctx sdk.Context, clientID string, ...)
- func (k Keeper) GetClientConsensusState(ctx sdk.Context, clientID string, height exported.Height) (exported.ConsensusState, bool)
- func (k Keeper) GetClientState(ctx sdk.Context, clientID string) (exported.ClientState, bool)
- func (k Keeper) GetLatestClientConsensusState(ctx sdk.Context, clientID string) (exported.ConsensusState, bool)
- func (k Keeper) GetNextClientSequence(ctx sdk.Context) uint64
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetSelfConsensusState(ctx sdk.Context, height exported.Height) (exported.ConsensusState, bool)
- func (k Keeper) IterateClients(ctx sdk.Context, cb func(string, exported.ClientState) bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MustMarshalClientState(clientState exported.ClientState) []byte
- func (k Keeper) MustMarshalConsensusState(consensusState exported.ConsensusState) []byte
- func (k Keeper) MustUnmarshalClientState(bz []byte) exported.ClientState
- func (k Keeper) MustUnmarshalConsensusState(bz []byte) exported.ConsensusState
- func (k Keeper) SetClientConsensusState(ctx sdk.Context, clientID string, height exported.Height, ...)
- func (k Keeper) SetClientState(ctx sdk.Context, clientID string, clientState exported.ClientState)
- func (k Keeper) SetNextClientSequence(ctx sdk.Context, sequence uint64)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) UnmarshalClientState(bz []byte) (exported.ClientState, error)
- func (k Keeper) UnmarshalConsensusState(bz []byte) (exported.ConsensusState, error)
- func (k Keeper) UpdateClient(ctx sdk.Context, clientID string, header exported.Header) error
- func (k Keeper) ValidateSelfClient(ctx sdk.Context, clientState exported.ClientState) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper represents a types that grants read and write permissions to any client state information
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryMarshaler, key sdk.StoreKey, paramSpace paramtypes.Subspace, sk types.StakingKeeper) Keeper
func (Keeper) ClientParams ¶
func (q Keeper) ClientParams(c context.Context, _ *types.QueryClientParamsRequest) (*types.QueryClientParamsResponse, error)
ClientParams implements the Query/ClientParams gRPC method
func (Keeper) ClientState ¶
func (q Keeper) ClientState(c context.Context, req *types.QueryClientStateRequest) (*types.QueryClientStateResponse, error)
ClientState implements the Query/ClientState gRPC method
func (Keeper) ClientStateRest ¶
func (Keeper) ClientStates ¶
func (q Keeper) ClientStates(c context.Context, req *types.QueryClientStatesRequest) (*types.QueryClientStatesResponse, error)
ClientStates implements the Query/ClientStates gRPC method
func (Keeper) ClientStatesRest ¶
func (Keeper) ClientStore ¶
func (Keeper) ConsensusState ¶
func (q Keeper) ConsensusState(c context.Context, req *types.QueryConsensusStateRequest) (*types.QueryConsensusStateResponse, error)
ConsensusState implements the Query/ConsensusState gRPC method
func (Keeper) ConsensusStateRest ¶
ConsensusState implements the Query/ConsensusState method
func (Keeper) ConsensusStates ¶
func (q Keeper) ConsensusStates(c context.Context, req *types.QueryConsensusStatesRequest) (*types.QueryConsensusStatesResponse, error)
ConsensusStates implements the Query/ConsensusStates gRPC method
func (Keeper) CreateClient ¶
func (k Keeper) CreateClient(ctx sdk.Context, clientState exported.ClientState, consensusState exported.ConsensusState) (string, error)
func (Keeper) GenerateClientIdentifier ¶
GenerateClientIdentifier returns the next client identifier.
func (Keeper) GetAllClientsConsensusState ¶ added in v1.5.25
func (Keeper) GetClientConsensusState ¶
func (Keeper) GetClientState ¶
GetClientState gets a particular client from the store
func (Keeper) GetLatestClientConsensusState ¶
func (k Keeper) GetLatestClientConsensusState(ctx sdk.Context, clientID string) (exported.ConsensusState, bool)
GetLatestClientConsensusState gets the latest ConsensusState stored for a given client
func (Keeper) GetNextClientSequence ¶
GetNextClientSequence gets the next client sequence from the store.
func (Keeper) GetSelfConsensusState ¶
func (Keeper) IterateClients ¶
func (Keeper) MustMarshalClientState ¶
func (k Keeper) MustMarshalClientState(clientState exported.ClientState) []byte
MustMarshalClientState attempts to encode an ClientState object and returns the raw encoded bytes. It panics on error.
func (Keeper) MustMarshalConsensusState ¶
func (k Keeper) MustMarshalConsensusState(consensusState exported.ConsensusState) []byte
func (Keeper) MustUnmarshalClientState ¶
func (k Keeper) MustUnmarshalClientState(bz []byte) exported.ClientState
MustUnmarshalClientState attempts to decode and return an ClientState object from raw encoded bytes. It panics on error.
func (Keeper) MustUnmarshalConsensusState ¶
func (k Keeper) MustUnmarshalConsensusState(bz []byte) exported.ConsensusState
func (Keeper) SetClientConsensusState ¶
func (Keeper) SetClientState ¶
SetClientState sets a particular Client to the store
func (Keeper) SetNextClientSequence ¶
SetNextClientSequence sets the next client sequence to the store.
func (Keeper) UnmarshalClientState ¶
func (k Keeper) UnmarshalClientState(bz []byte) (exported.ClientState, error)
UnmarshalClientState attempts to decode and return an ClientState object from raw encoded bytes.
func (Keeper) UnmarshalConsensusState ¶
func (k Keeper) UnmarshalConsensusState(bz []byte) (exported.ConsensusState, error)
UnmarshalConsensusState attempts to decode and return an ConsensusState object from raw encoded bytes.
func (Keeper) UpdateClient ¶
UpdateClient updates the consensus state and the state root from a provided header.