Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
Keeper defines the modified IBC transfer keeper that embeds the original one. It also contains the bank keeper and the erc20 keeper to support ERC20 tokens to be sent via IBC.
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeService corestore.KVStoreService, paramSpace paramtypes.Subspace, ics4Wrapper porttypes.ICS4Wrapper, channelKeeper transfertypes.ChannelKeeper, msgRouter transfertypes.MessageRouter, authKeeper types.AccountKeeper, bankKeeper types.BankKeeper, erc20Keeper types.ERC20Keeper, authority string, ) Keeper
NewKeeper creates a new IBC transfer Keeper instance
func (Keeper) Transfer ¶
func (k Keeper) Transfer(goCtx context.Context, msg *types.MsgTransfer) (*types.MsgTransferResponse, error)
Transfer defines a gRPC msg server method for the MsgTransfer message. This implementation overrides the default ICS20 transfer by converting the ERC20 tokens to their Cosmos representation if the token pair has been registered through governance. If user doesn't have enough balance of coin, it will attempt to convert ERC20 tokens to the coin denomination, and continue with a regular transfer.
Click to show internal directories.
Click to hide internal directories.