Documentation ¶
Index ¶
- func GetDenomPrefix(portID, channelID string) string
- func IBCDenom(fullDenomPath string) string
- func MarshalJsonIgnoreErr(v interface{}) string
- func ParseDenomTrace(rawDenom string) types.DenomTrace
- func ReceiverChainIsSource(sourcePort, sourceChannel, denom string) bool
- func UnMarshalJsonIgnoreErr(data string, v interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDenomPrefix ¶
GetDenomPrefix returns the receiving denomination prefix
func MarshalJsonIgnoreErr ¶
func MarshalJsonIgnoreErr(v interface{}) string
func ParseDenomTrace ¶
func ParseDenomTrace(rawDenom string) types.DenomTrace
parseDenomTrace parses a string with the ibc prefix (denom trace) and the base denomination into a DenomTrace type.
Examples:
- "portidone/channelidone/uatom" => DenomTrace{Path: "portidone/channelidone", BaseDenom: "uatom"}
- "uatom" => DenomTrace{Path: "", BaseDenom: "uatom"}
func ReceiverChainIsSource ¶
returns true if the denomination originally came
from the receiving chain and false otherwise.
func UnMarshalJsonIgnoreErr ¶
func UnMarshalJsonIgnoreErr(data string, v interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.