cosmos-sdk: github.com/cosmos/cosmos-sdk/x/ibc/02-client Index | Files | Directories

package client

import "github.com/cosmos/cosmos-sdk/x/ibc/02-client"

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

Package Files

abci.go doc.go genesis.go handler.go module.go

func BeginBlocker Uses

func BeginBlocker(ctx sdk.Context, k keeper.Keeper)

BeginBlocker updates an existing localhost client with the latest block height.

func ExportGenesis Uses

func ExportGenesis(ctx sdk.Context, k keeper.Keeper) types.GenesisState

ExportGenesis returns the ibc client submodule's exported genesis.

func GetQueryCmd Uses

func GetQueryCmd() *cobra.Command

GetQueryCmd returns no root query command for the IBC client

func HandleMsgCreateClient Uses

func HandleMsgCreateClient(ctx sdk.Context, k keeper.Keeper, msg exported.MsgCreateClient) (*sdk.Result, error)

HandleMsgCreateClient defines the sdk.Handler for MsgCreateClient

func HandleMsgUpdateClient Uses

func HandleMsgUpdateClient(ctx sdk.Context, k keeper.Keeper, msg exported.MsgUpdateClient) (*sdk.Result, error)

HandleMsgUpdateClient defines the sdk.Handler for MsgUpdateClient

func HandlerClientMisbehaviour Uses

func HandlerClientMisbehaviour(k keeper.Keeper) evidencetypes.Handler

HandlerClientMisbehaviour defines the Evidence module handler for submitting a light client misbehaviour.

func InitGenesis Uses

func InitGenesis(ctx sdk.Context, k keeper.Keeper, gs types.GenesisState)

InitGenesis initializes the ibc client submodule's state from a provided genesis state.

func Name Uses

func Name() string

Name returns the IBC client name

func RegisterRESTRoutes Uses

func RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Router)

RegisterRESTRoutes registers the REST routes for the IBC client

Directories

PathSynopsis
client/cli
client/rest
client/utils
exported
keeper
simulation
types

Package client imports 15 packages (graph) and is imported by 4 packages. Updated 2020-08-05. Refresh now. Tools for package owners.