ibc

package
v6.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaximumReceiverLength = 2048  // maximum length of the receiver address in bytes (value chosen arbitrarily)
	MaximumMemoLength     = 32768 // maximum length of the memo in bytes (value chosen arbitrarily)
)

Variables

This section is empty.

Functions

func GetFundsFromPacket

func GetFundsFromPacket(data []byte) (sdkmath.Int, string, error)

GetFundsFromPacket returns transfer amount and denom

func GetLocalDenom

func GetLocalDenom(denom string) string

GetLocalDenom retruns ibc denom Expected denoms in the following cases:

send non-native: transfer/channel-0/denom -> ibc/xxx send native: denom -> denom recv (B)non-native: denom recv (B)native: transfer/channel-0/denom

func ValidateMemo added in v6.5.0

func ValidateMemo(memo string) error

func ValidateRecvAddr added in v6.5.0

func ValidateRecvAddr(receiver string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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