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

package ibc

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

Index

Package Files

genesis.go handler.go module.go

func ExportGenesis Uses

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

ExportGenesis returns the ibc exported genesis.

func InitGenesis Uses

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

InitGenesis initializes the ibc state from a provided genesis state.

func NewHandler Uses

func NewHandler(k keeper.Keeper) sdk.Handler

NewHandler defines the IBC handler

type AppModule Uses

type AppModule struct {
    AppModuleBasic
    // contains filtered or unexported fields
}

AppModule implements an application module for the ibc module.

func NewAppModule Uses

func NewAppModule(k *keeper.Keeper) AppModule

NewAppModule creates a new AppModule object

func (AppModule) BeginBlock Uses

func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)

BeginBlock returns the begin blocker for the ibc module.

func (AppModule) EndBlock Uses

func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate

EndBlock returns the end blocker for the ibc module. It returns no validator updates.

func (AppModule) ExportGenesis Uses

func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONMarshaler) json.RawMessage

ExportGenesis returns the exported genesis state as raw bytes for the ibc module.

func (AppModule) GenerateGenesisState Uses

func (AppModule) GenerateGenesisState(simState *module.SimulationState)

GenerateGenesisState creates a randomized GenState of the ibc module.

func (AppModule) InitGenesis Uses

func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONMarshaler, bz json.RawMessage) []abci.ValidatorUpdate

InitGenesis performs genesis initialization for the ibc module. It returns no validator updates.

func (AppModule) LegacyQuerierHandler Uses

func (am AppModule) LegacyQuerierHandler(legacyQuerierCdc codec.JSONMarshaler) sdk.Querier

LegacyQuerierHandler returns the ibc module sdk.Querier.

func (AppModule) Name Uses

func (AppModule) Name() string

Name returns the ibc module's name.

func (AppModule) ProposalContents Uses

func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent

ProposalContents doesn't return any content functions for governance proposals.

func (AppModule) QuerierRoute Uses

func (AppModule) QuerierRoute() string

QuerierRoute returns the ibc module's querier route name.

func (AppModule) RandomizedParams Uses

func (AppModule) RandomizedParams(_ *rand.Rand) []simtypes.ParamChange

RandomizedParams returns nil since IBC doesn't register parameter changes.

func (AppModule) RegisterInvariants Uses

func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)

RegisterInvariants registers the ibc module invariants.

func (AppModule) RegisterQueryService Uses

func (am AppModule) RegisterQueryService(server grpc.Server)

RegisterQueryService registers the gRPC query service for the ibc module.

func (AppModule) RegisterStoreDecoder Uses

func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)

RegisterStoreDecoder registers a decoder for ibc module's types

func (AppModule) Route Uses

func (am AppModule) Route() sdk.Route

Route returns the message routing key for the ibc module.

func (AppModule) WeightedOperations Uses

func (am AppModule) WeightedOperations(_ module.SimulationState) []simtypes.WeightedOperation

WeightedOperations returns the all the ibc module operations with their respective weights.

type AppModuleBasic Uses

type AppModuleBasic struct{}

AppModuleBasic defines the basic application module used by the ibc module.

func (AppModuleBasic) DefaultGenesis Uses

func (AppModuleBasic) DefaultGenesis(cdc codec.JSONMarshaler) json.RawMessage

DefaultGenesis returns default genesis state as raw bytes for the ibc module.

func (AppModuleBasic) GetQueryCmd Uses

func (AppModuleBasic) GetQueryCmd() *cobra.Command

GetQueryCmd returns no root query command for the ibc module.

func (AppModuleBasic) GetTxCmd Uses

func (AppModuleBasic) GetTxCmd() *cobra.Command

GetTxCmd returns the root tx command for the ibc module.

func (AppModuleBasic) Name Uses

func (AppModuleBasic) Name() string

Name returns the ibc module's name.

func (AppModuleBasic) RegisterCodec Uses

func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)

RegisterCodec registers the ibc module's types for the given codec.

func (AppModuleBasic) RegisterInterfaces Uses

func (AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry)

RegisterInterfaces registers module concrete types into protobuf Any.

func (AppModuleBasic) RegisterRESTRoutes Uses

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

RegisterRESTRoutes registers the REST routes for the ibc module.

func (AppModuleBasic) ValidateGenesis Uses

func (AppModuleBasic) ValidateGenesis(cdc codec.JSONMarshaler, config client.TxEncodingConfig, bz json.RawMessage) error

ValidateGenesis performs genesis state validation for the ibc module.

Directories

PathSynopsis
02-clientPackage client implements the ICS 02 - Client Semantics specification https://github.com/cosmos/ics/tree/master/spec/ics-002-client-semantics.
02-client/client/cli
02-client/client/rest
02-client/client/utils
02-client/exported
02-client/keeper
02-client/simulation
02-client/types
03-connection
03-connection/client/cli
03-connection/client/rest
03-connection/client/utils
03-connection/exported
03-connection/keeper
03-connection/simulation
03-connection/types
04-channel
04-channel/client/cli
04-channel/client/rest
04-channel/client/utils
04-channel/exported
04-channel/keeper
04-channel/simulation
04-channel/types
05-port/keeper
05-port/types
07-tendermintPackage tendermint implements a concrete `ConsensusState`, `Header`, `Misbehaviour` and `Equivocation` types for the Tendermint consensus light client.
07-tendermint/client/cli
07-tendermint/client/rest
07-tendermint/types
09-localhostPackage localhost implements a concrete `ConsensusState`, `Header`, `Misbehaviour` and `Equivocation` types for the loop-back client.
09-localhost/client/cli
09-localhost/client/rest
09-localhost/types
23-commitment/exported
23-commitment/types
24-host
client/cli
client/rest
keeper
simulation
testing
types

Package ibc imports 27 packages (graph) and is imported by 2 packages. Updated 2020-08-05. Refresh now. Tools for package owners.