Documentation ¶
Index ¶
- Constants
- func NewHandler(k types.MsgServer) sdk.Handler
- func ValidateTransferChannelParams(ctx sdk.Context, keeper keeper.Keeper, order channeltypes.Order, portID string, ...) error
- type AppModule
- func (am AppModule) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock)
- func (am AppModule) Committer(ctx sdk.Context)
- func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (am AppModule) OnAcknowledgementPacket(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte) (*sdk.Result, error)
- func (am AppModule) OnChanOpenAck(ctx sdk.Context, portID, channelID string, counterpartyVersion string) error
- func (am AppModule) OnChanOpenConfirm(ctx sdk.Context, portID, channelID string) error
- func (am AppModule) OnChanOpenInit(ctx sdk.Context, order channeltypes.Order, connectionHops []string, ...) error
- func (am AppModule) OnChanOpenTry(ctx sdk.Context, order channeltypes.Order, connectionHops []string, ...) error
- func (am AppModule) OnRecvPacket(ctx sdk.Context, packet channeltypes.Packet) (*sdk.Result, []byte, error)
- func (am AppModule) OnTimeoutPacket(ctx sdk.Context, packet channeltypes.Packet) (*sdk.Result, error)
- func (am AppModule) RegisterServices(cfg module.Configurator)
- type AppModuleBasic
- func (am AppModuleBasic) DefaultGenesis(validators []tmtypes.GenesisValidator) json.RawMessage
- func (am AppModuleBasic) Name() string
- func (am AppModuleBasic) RegisterCodec(codec *codec.Codec)
- func (am AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)
- func (am AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)
Constants ¶
View Source
const ModuleName = types.ModuleName
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler returns sdk.Handler for IBC token transfer module messages
func ValidateTransferChannelParams ¶
func ValidateTransferChannelParams( ctx sdk.Context, keeper keeper.Keeper, order channeltypes.Order, portID string, channelID string, version string, ) error
ValidateTransferChannelParams does validation of a newly created transfer channel. A transfer channel must be UNORDERED, use the correct port (by default 'transfer'), and use the current supported version. Only 2^32 channels are allowed to be created.
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule represents the AppModule for this module
func NewAppModule ¶
NewAppModule creates a new 20-transfer module
func (AppModule) BeginBlocker ¶
func (am AppModule) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock)
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate
func (AppModule) ExportGenesis ¶ added in v1.5.23
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
func (AppModule) OnAcknowledgementPacket ¶
func (am AppModule) OnAcknowledgementPacket( ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, ) (*sdk.Result, error)
OnAcknowledgementPacket implements the IBCModule interface
func (AppModule) OnChanOpenAck ¶
func (AppModule) OnChanOpenConfirm ¶
func (AppModule) OnChanOpenInit ¶
func (am AppModule) OnChanOpenInit(ctx sdk.Context, order channeltypes.Order, connectionHops []string, portID string, channelID string, channelCap *capabilitytypes.Capability, counterparty channeltypes.Counterparty, version string) error
func (AppModule) OnChanOpenTry ¶
func (am AppModule) OnChanOpenTry(ctx sdk.Context, order channeltypes.Order, connectionHops []string, portID, channelID string, channelCap *capabilitytypes.Capability, counterparty channeltypes.Counterparty, version, counterpartyVersion string) error
func (AppModule) OnRecvPacket ¶
func (am AppModule) OnRecvPacket( ctx sdk.Context, packet channeltypes.Packet, ) (*sdk.Result, []byte, error)
OnRecvPacket implements the IBCModule interface
func (AppModule) OnTimeoutPacket ¶
func (AppModule) RegisterServices ¶
func (am AppModule) RegisterServices(cfg module.Configurator)
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic is the IBC Transfer AppModuleBasic
func (AppModuleBasic) DefaultGenesis ¶
func (am AppModuleBasic) DefaultGenesis(validators []tmtypes.GenesisValidator) json.RawMessage
func (AppModuleBasic) Name ¶
func (am AppModuleBasic) Name() string
func (AppModuleBasic) RegisterCodec ¶
func (am AppModuleBasic) RegisterCodec(codec *codec.Codec)
func (AppModuleBasic) RegisterGRPCGatewayRoutes ¶
func (am AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)
func (AppModuleBasic) RegisterInterfaces ¶
func (am AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)
Click to show internal directories.
Click to hide internal directories.