Documentation
¶
Index ¶
- func NewIBCModule(k keeper.Keeper) ibcporttypes.IBCModule
- type AppModule
- func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (AppModule) ConsensusVersion() uint64
- func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage) []abci.ValidatorUpdate
- func (am AppModule) InitModule(ctx sdk.Context)
- func (AppModule) LegacyQuerierHandler(*codec.LegacyAmino) sdk.Querier
- func (AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
- func (am AppModule) RegisterServices(cfg module.Configurator)
- func (AppModule) Route() sdk.Route
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
- func (AppModuleBasic) GetQueryCmd() *cobra.Command
- func (AppModuleBasic) GetTxCmd() *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)
- func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino)
- func (AppModuleBasic) RegisterRESTRoutes(_ client.Context, _ *mux.Router)
- func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error
- type IBCModule
- func (im IBCModule) OnAcknowledgementPacket(ctx sdk.Context, packet ibcchanneltypes.Packet, acknowledgement []byte, ...) error
- func (im IBCModule) OnChanCloseConfirm(_ sdk.Context, _, _ string) error
- func (im IBCModule) OnChanCloseInit(_ sdk.Context, _, _ string) error
- func (im IBCModule) OnChanOpenAck(_ sdk.Context, _, _ string, _ string, _ string) error
- func (im IBCModule) OnChanOpenConfirm(_ sdk.Context, _, _ string) error
- func (im IBCModule) OnChanOpenInit(_ sdk.Context, _ ibcchanneltypes.Order, _ []string, _ string, _ string, ...) (string, error)
- func (im IBCModule) OnChanOpenTry(_ sdk.Context, _ ibcchanneltypes.Order, _ []string, _, _ string, ...) (string, error)
- func (im IBCModule) OnRecvPacket(_ sdk.Context, _ ibcchanneltypes.Packet, _ sdk.AccAddress) ibcexported.Acknowledgement
- func (im IBCModule) OnTimeoutPacket(ctx sdk.Context, packet ibcchanneltypes.Packet, _ sdk.AccAddress) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIBCModule ¶
func NewIBCModule(k keeper.Keeper) ibcporttypes.IBCModule
NewIBCModule creates a new IBCModule given the keeper.
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule implements an application module for the envoy module
func NewAppModule ¶
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
func (AppModule) ConsensusVersion ¶
func (AppModule) EndBlock ¶
func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
func (AppModule) ExportGenesis ¶
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage) []abci.ValidatorUpdate
func (AppModule) InitModule ¶
InitModule is similar to InitGenesis, but used during chain upgrades.
func (AppModule) LegacyQuerierHandler ¶
func (AppModule) LegacyQuerierHandler(*codec.LegacyAmino) sdk.Querier
deprecated
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
func (AppModule) RegisterServices ¶
func (am AppModule) RegisterServices(cfg module.Configurator)
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic defines the basic application module used by the module
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd() *cobra.Command
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd() *cobra.Command
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
func (AppModuleBasic) RegisterGRPCGatewayRoutes ¶
func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)
func (AppModuleBasic) RegisterInterfaces ¶
func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)
func (AppModuleBasic) RegisterLegacyAminoCodec ¶
func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino)
deprecated
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(_ client.Context, _ *mux.Router)
deprecated
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error
type IBCModule ¶
type IBCModule struct {
// contains filtered or unexported fields
}
IBCModule implements the ICS26 interface for the envoy module.
func (IBCModule) OnAcknowledgementPacket ¶
func (im IBCModule) OnAcknowledgementPacket( ctx sdk.Context, packet ibcchanneltypes.Packet, acknowledgement []byte, _ sdk.AccAddress, ) error
OnAcknowledgementPacket parses the acknowledgement and prints log messages.
Although the envoy module can send both ICS-20 and ICS-27 packets, only ICS-27 acknowledgements are routed here. ICS-20 packets are handled by the ibctransfer module alone.
This function is mostly copied from interchain-account-demo: https://github.com/cosmos/interchain-accounts-demo/blob/v0.4.3/x/inter-tx/ibc_module.go#L108
func (IBCModule) OnChanCloseConfirm ¶
func (IBCModule) OnChanCloseInit ¶
func (IBCModule) OnChanOpenAck ¶
func (IBCModule) OnChanOpenConfirm ¶
func (IBCModule) OnChanOpenInit ¶
func (im IBCModule) OnChanOpenInit( _ sdk.Context, _ ibcchanneltypes.Order, _ []string, _ string, _ string, _ *capabilitytypes.Capability, _ ibcchanneltypes.Counterparty, version string, ) (string, error)
func (IBCModule) OnChanOpenTry ¶
func (im IBCModule) OnChanOpenTry( _ sdk.Context, _ ibcchanneltypes.Order, _ []string, _, _ string, _ *capabilitytypes.Capability, _ ibcchanneltypes.Counterparty, _ string, ) (string, error)
func (IBCModule) OnRecvPacket ¶
func (im IBCModule) OnRecvPacket( _ sdk.Context, _ ibcchanneltypes.Packet, _ sdk.AccAddress, ) ibcexported.Acknowledgement
func (IBCModule) OnTimeoutPacket ¶
func (im IBCModule) OnTimeoutPacket( ctx sdk.Context, packet ibcchanneltypes.Packet, _ sdk.AccAddress, ) error
OnTimeoutPacket prints a log message indicating the packet has timed out.