ibctransfer

package
v0.11.0-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

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) ConsensusVersion() uint64

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

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

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) Name

func (am AppModule) Name() string

Name returns the dispensation module's name.

func (AppModule) NegotiateAppVersion added in v0.10.1

func (am AppModule) NegotiateAppVersion(ctx sdk.Context, order types.Order, connectionID string, portID string, counterparty types.Counterparty, proposedVersion string) (version string, err error)

func (AppModule) OnAcknowledgementPacket

func (am AppModule) OnAcknowledgementPacket(ctx sdk.Context, packet types.Packet, acknowledgement []byte, relayer sdk.AccAddress) error

func (AppModule) OnChanCloseConfirm

func (am AppModule) OnChanCloseConfirm(ctx sdk.Context, portID, channelID string) error

func (AppModule) OnChanCloseInit

func (am AppModule) OnChanCloseInit(ctx sdk.Context, portID, channelID string) error

func (AppModule) OnChanOpenAck

func (am AppModule) OnChanOpenAck(ctx sdk.Context, portID, channelID string, counterpartyVersion string) error

func (AppModule) OnChanOpenConfirm

func (am AppModule) OnChanOpenConfirm(ctx sdk.Context, portID, channelID string) error

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 (am AppModule) OnTimeoutPacket(ctx sdk.Context, packet types.Packet, relayer sdk.AccAddress) error

func (AppModule) QuerierRoute

func (am AppModule) QuerierRoute() string

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)

func (AppModule) Route

func (am AppModule) Route() sdk.Route

Route returns the message routing key for the dispensation module.

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.

Directories

Path Synopsis
mocks
Package scibctransfermocks is a generated GoMock package.
Package scibctransfermocks is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL