Documentation ¶
Index ¶
- func OnRecvPacketWhitelistConvert(ctx sdk.Context, sdkTransferKeeper sctransfertypes.SDKTransferKeeper, ...) channeltypes.Acknowledgement
- type AppModule
- func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
- func (AppModule) ConsensusVersion() uint64
- func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context, codec codec.JSONCodec) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, codec codec.JSONCodec, data json.RawMessage) []abci.ValidatorUpdate
- func (am AppModule) LegacyQuerierHandler(amino *codec.LegacyAmino) sdk.Querier
- func (am AppModule) Name() string
- func (am AppModule) NegotiateAppVersion(ctx sdk.Context, order types.Order, connectionID string, portID string, ...) (version string, err error)
- func (am AppModule) OnAcknowledgementPacket(ctx sdk.Context, packet types.Packet, acknowledgement []byte, ...) error
- func (am AppModule) OnChanCloseConfirm(ctx sdk.Context, portID, channelID string) error
- func (am AppModule) OnChanCloseInit(ctx sdk.Context, portID, channelID string) 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 types.Order, connectionHops []string, portID string, ...) error
- func (am AppModule) OnChanOpenTry(ctx sdk.Context, order types.Order, connectionHops []string, ...) error
- func (am AppModule) OnRecvPacket(ctx sdk.Context, packet types.Packet, _ sdk.AccAddress) exported.Acknowledgement
- func (am AppModule) OnTimeoutPacket(ctx sdk.Context, packet types.Packet, relayer sdk.AccAddress) error
- func (am AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) RegisterServices(cfg module.Configurator)
- func (am AppModule) Route() sdk.Route
- type AppModuleBasic
- func (am AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
- func (am AppModuleBasic) GetQueryCmd() *cobra.Command
- func (am AppModuleBasic) GetTxCmd() *cobra.Command
- func (am AppModuleBasic) Name() string
- func (am AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)
- func (am AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func (am AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func (am AppModuleBasic) RegisterRESTRoutes(ctx client.Context, rtr *mux.Router)
- func (am AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OnRecvPacketWhitelistConvert ¶ added in v0.10.1
func OnRecvPacketWhitelistConvert( ctx sdk.Context, sdkTransferKeeper sctransfertypes.SDKTransferKeeper, whitelistKeeper tokenregistrytypes.Keeper, bankKeeper transfertypes.BankKeeper, packet channeltypes.Packet, ) channeltypes.Acknowledgement
OnRecvPacketWhitelistConvert receives a transfer, check if the denom is whitelisted, and converts it to match unit_denom decimals if conversion is needed.
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule implements an application module for the ibctransfer module.
func NewAppModule ¶
func NewAppModule(sdkTransferKeeper sdktransferkeeper.Keeper, whitelistKeeper tokenregistrytypes.Keeper, bankKeeper bankkeeper.Keeper, cdc codec.BinaryCodec) AppModule
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
BeginBlock returns the begin blocker for the dispensation module.
func (AppModule) ConsensusVersion ¶ added in v0.10.1
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock returns the end blocker for the dispensation module. It returns no validator updates.
func (AppModule) ExportGenesis ¶
ExportGenesis returns the exported genesis state as raw bytes for the dispensation module.
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, codec codec.JSONCodec, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis performs genesis initialization for the dispensation module. It returns no validator updates
func (AppModule) LegacyQuerierHandler ¶
func (am AppModule) LegacyQuerierHandler(amino *codec.LegacyAmino) sdk.Querier
IBC does not support a legacy querier
func (AppModule) NegotiateAppVersion ¶ added in v0.10.1
func (AppModule) OnAcknowledgementPacket ¶
func (AppModule) OnChanCloseConfirm ¶
func (AppModule) OnChanCloseInit ¶
func (AppModule) OnChanOpenAck ¶
func (AppModule) OnChanOpenConfirm ¶
func (AppModule) OnChanOpenInit ¶
func (am AppModule) OnChanOpenInit(ctx sdk.Context, order types.Order, connectionHops []string, portID string, channelID string, channelCap *capabilitytypes.Capability, counterparty types.Counterparty, version string) error
func (AppModule) OnChanOpenTry ¶
func (am AppModule) OnChanOpenTry(ctx sdk.Context, order types.Order, connectionHops []string, portID, channelID string, channelCap *capabilitytypes.Capability, counterparty types.Counterparty, version, counterpartyVersion string) error
func (AppModule) OnRecvPacket ¶
func (am AppModule) OnRecvPacket(ctx sdk.Context, packet types.Packet, _ sdk.AccAddress) exported.Acknowledgement
func (AppModule) OnTimeoutPacket ¶
func (AppModule) QuerierRoute ¶
QuerierRoute returns the dispensation module's querier route name.
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants registers the dispensation module invariants.
func (AppModule) RegisterServices ¶
func (am AppModule) RegisterServices(cfg module.Configurator)
type AppModuleBasic ¶
type AppModuleBasic struct {
// contains filtered or unexported fields
}
AppModuleBasic defines the basic application module.
func (AppModuleBasic) DefaultGenesis ¶
func (am AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the module.
func (AppModuleBasic) GetQueryCmd ¶
func (am AppModuleBasic) GetQueryCmd() *cobra.Command
GetQueryCmd returns no root query command for the module.
func (AppModuleBasic) GetTxCmd ¶
func (am AppModuleBasic) GetTxCmd() *cobra.Command
GetTxCmd returns the root tx command for the module.
func (AppModuleBasic) Name ¶
func (am AppModuleBasic) Name() string
func (AppModuleBasic) RegisterGRPCGatewayRoutes ¶
func (am AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)
func (AppModuleBasic) RegisterInterfaces ¶
func (am AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers the module's interface types
func (AppModuleBasic) RegisterLegacyAminoCodec ¶
func (am AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func (AppModuleBasic) RegisterRESTRoutes ¶
func (am AppModuleBasic) RegisterRESTRoutes(ctx client.Context, rtr *mux.Router)
RegisterRESTRoutes registers the REST routes for the module.
func (AppModuleBasic) ValidateGenesis ¶
func (am AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the module.