Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTransferAmount ¶
func GetTransferAmount(packet channeltypes.Packet) (string, error)
GetTransferAmount returns the amount from an ICS20 FungibleTokenPacketData.
func GetTransferSenderRecipient ¶
func GetTransferSenderRecipient(packet channeltypes.Packet) ( sender, recipient sdk.AccAddress, senderBech32, recipientBech32 string, err error, )
GetTransferSenderRecipient returns the sender and recipient sdk.AccAddresses from an ICS20 FungibleTokenPacketData as well as the original sender bech32 address from the packet data. This function fails if:
- the packet data is not FungibleTokenPacketData
- sender address is invalid
- recipient address is invalid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.