Documentation
¶
Index ¶
- func ConvertCoinsForTransfer(goCtx context.Context, msg *sdktransfertypes.MsgTransfer, ...) (sdk.Coin, sdk.Coin)
- func IncreasePrecision(dec sdk.Dec, po int64) sdk.Dec
- func NewMsgServerImpl(sdkMsgServer types.MsgServer, bankKeeper types.BankKeeper, ...) sdktransfertypes.MsgServer
- func PrepareToSendConvertedCoins(goCtx context.Context, msg *sdktransfertypes.MsgTransfer, token sdk.Coin, ...) error
- func ReducePrecision(dec sdk.Dec, po int64) sdk.Dec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertCoinsForTransfer ¶
func ConvertCoinsForTransfer(goCtx context.Context, msg *sdktransfertypes.MsgTransfer, sendRegistryEntry tokenregistrytypes.RegistryEntry, sendAsRegistryEntry tokenregistrytypes.RegistryEntry) (sdk.Coin, sdk.Coin)
Converts the coins requested for transfer into an amount that should be deducted from requested denom, and the Coins that should be minted in the new denom.
func NewMsgServerImpl ¶
func NewMsgServerImpl(sdkMsgServer types.MsgServer, bankKeeper types.BankKeeper, tokenRegistryKeeper tokenregistrytypes.Keeper) sdktransfertypes.MsgServer
NewMsgServerImpl returns an implementation of the bank MsgServer interface for the provided Keeper.
func PrepareToSendConvertedCoins ¶
func PrepareToSendConvertedCoins(goCtx context.Context, msg *sdktransfertypes.MsgTransfer, token sdk.Coin, convToken sdk.Coin, bankKeeper types.BankKeeper) error
PrepareToSendConvertedCoins moves outgoing tokens into the denom that will be sent via IBC. The requested tokens will be escrowed, and the new denom to send over IBC will be minted in the senders account.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.