Documentation ¶
Index ¶
- func ConvertCoinsForTransfer(msg *sdktransfertypes.MsgTransfer, ...) (sdk.Coin, sdk.Coin)
- func ConvertIncomingCoins(amount string, diff uint64) (sdk.Int, error)
- func ExecConvForIncomingCoins(ctx sdk.Context, bankKeeper sdktransfertypes.BankKeeper, ...) error
- func GetMintedDenomFromPacket(packet channeltypes.Packet, data sdktransfertypes.FungibleTokenPacketData) string
- func IncreasePrecision(dec sdk.Dec, po uint64) sdk.Dec
- func IsRecvPacketAllowed(ctx sdk.Context, whitelistKeeper tokenregistrytypes.Keeper, ...) bool
- func PrepareToSendConvertedCoins(goCtx context.Context, msg *sdktransfertypes.MsgTransfer, token sdk.Coin, ...) error
- func ReducePrecision(dec sdk.Dec, po uint64) sdk.Dec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertCoinsForTransfer ¶
func ConvertCoinsForTransfer(msg *sdktransfertypes.MsgTransfer, sendRegistryEntry *tokenregistrytypes.RegistryEntry, sendAsRegistryEntry *tokenregistrytypes.RegistryEntry) (sdk.Coin, sdk.Coin)
TODO only used in tests , remove this function completely
func ExecConvForIncomingCoins ¶
func ExecConvForIncomingCoins( ctx sdk.Context, bankKeeper sdktransfertypes.BankKeeper, mintedDenomEntry *tokenregistrytypes.RegistryEntry, convertToDenomEntry *tokenregistrytypes.RegistryEntry, packet channeltypes.Packet, data sdktransfertypes.FungibleTokenPacketData, ) error
func GetMintedDenomFromPacket ¶
func GetMintedDenomFromPacket(packet channeltypes.Packet, data sdktransfertypes.FungibleTokenPacketData) string
func IsRecvPacketAllowed ¶
func IsRecvPacketAllowed(ctx sdk.Context, whitelistKeeper tokenregistrytypes.Keeper, packet channeltypes.Packet, data sdktransfertypes.FungibleTokenPacketData, mintedDenomEntry *tokenregistrytypes.RegistryEntry) bool
func PrepareToSendConvertedCoins ¶
func PrepareToSendConvertedCoins(goCtx context.Context, msg *sdktransfertypes.MsgTransfer, token sdk.Coin, convToken sdk.Coin, bankKeeper sctransfertypes.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.