keeper

package
v0.9.14 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 IncreasePrecision

func IncreasePrecision(dec sdk.Dec, po int64) sdk.Dec

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.

func ReducePrecision

func ReducePrecision(dec sdk.Dec, po int64) sdk.Dec

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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