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 exported.MsgCreateClient) (*sdk.Result, error)
- func HandleMsgUpdateClient(ctx sdk.Context, k keeper.Keeper, msg exported.MsgUpdateClient) (*sdk.Result, error)
- func HandlerClientMisbehaviour(k keeper.Keeper) evidencetypes.Handler
- func InitGenesis(ctx sdk.Context, k keeper.Keeper, gs types.GenesisState)
- func Name() string
- func RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Router)
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.
func GetQueryCmd ¶
GetQueryCmd returns no root query command for the IBC client
func HandleMsgCreateClient ¶
func HandleMsgCreateClient(ctx sdk.Context, k keeper.Keeper, msg exported.MsgCreateClient) (*sdk.Result, error)
HandleMsgCreateClient defines the sdk.Handler for MsgCreateClient
func HandleMsgUpdateClient ¶
func HandleMsgUpdateClient(ctx sdk.Context, k keeper.Keeper, msg exported.MsgUpdateClient) (*sdk.Result, error)
HandleMsgUpdateClient defines the sdk.Handler for MsgUpdateClient
func HandlerClientMisbehaviour ¶
func HandlerClientMisbehaviour(k keeper.Keeper) evidencetypes.Handler
HandlerClientMisbehaviour defines the Evidence module handler for submitting a light client misbehaviour.
func InitGenesis ¶
InitGenesis initializes the ibc client submodule's state from a provided genesis state.
Types ¶
This section is empty.