Documentation ¶
Overview ¶
Package client implements the ICS 02 - Client Semantics specification https://github.com/cosmos/ics/tree/master/spec/ics-002-client-semantics. This concrete implementations defines types and method to store and update light clients which tracks on other chain's state.
The main type is `Client`, which provides `commitment.Root` to verify state proofs and `ConsensusState` to verify header proofs.
Index ¶
- func BeginBlocker(ctx sdk.Context, k keeper.Keeper)
- func ExportGenesis(ctx sdk.Context, k keeper.Keeper) types.GenesisState
- func GetQueryCmd() *cobra.Command
- func HandleMsgCreateClient(ctx sdk.Context, k keeper.Keeper, msg *types.MsgCreateClient) (*sdk.Result, error)
- func HandleMsgSubmitMisbehaviour(ctx sdk.Context, k keeper.Keeper, msg *types.MsgSubmitMisbehaviour) (*sdk.Result, error)
- func HandleMsgUpdateClient(ctx sdk.Context, k keeper.Keeper, msg *types.MsgUpdateClient) (*sdk.Result, error)
- func HandleMsgUpgradeClient(ctx sdk.Context, k keeper.Keeper, msg *types.MsgUpgradeClient) (*sdk.Result, error)
- func InitGenesis(ctx sdk.Context, k keeper.Keeper, gs types.GenesisState)
- func Name() string
- func NewClientUpdateProposalHandler(k keeper.Keeper) govtypes.Handler
- func RegisterQueryService(server grpc.Server, queryServer types.QueryServer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeginBlocker ¶
BeginBlocker updates an existing localhost client with the latest block height.
func ExportGenesis ¶
ExportGenesis returns the ibc client submodule's exported genesis. NOTE: CreateLocalhost should always be false on export since a created localhost will be included in the exported clients.
func GetQueryCmd ¶
GetQueryCmd returns no root query command for the IBC client
func HandleMsgCreateClient ¶
func HandleMsgCreateClient(ctx sdk.Context, k keeper.Keeper, msg *types.MsgCreateClient) (*sdk.Result, error)
HandleMsgCreateClient defines the sdk.Handler for MsgCreateClient
func HandleMsgSubmitMisbehaviour ¶
func HandleMsgSubmitMisbehaviour(ctx sdk.Context, k keeper.Keeper, msg *types.MsgSubmitMisbehaviour) (*sdk.Result, error)
HandleMsgSubmitMisbehaviour defines the Evidence module handler for submitting a light client misbehaviour.
func HandleMsgUpdateClient ¶
func HandleMsgUpdateClient(ctx sdk.Context, k keeper.Keeper, msg *types.MsgUpdateClient) (*sdk.Result, error)
HandleMsgUpdateClient defines the sdk.Handler for MsgUpdateClient
func HandleMsgUpgradeClient ¶
func HandleMsgUpgradeClient(ctx sdk.Context, k keeper.Keeper, msg *types.MsgUpgradeClient) (*sdk.Result, error)
HandleMsgUpgradeClient defines the sdk.Handler for MsgUpgradeClient
func InitGenesis ¶
InitGenesis initializes the ibc client submodule's state from a provided genesis state.
func NewClientUpdateProposalHandler ¶
NewClientUpdateProposalHandler defines the client update proposal handler
func RegisterQueryService ¶
func RegisterQueryService(server grpc.Server, queryServer types.QueryServer)
RegisterQueryService registers the gRPC query service for IBC client.
Types ¶
This section is empty.