Documentation ¶
Index ¶
- func AddressEqual(address1 string, address2 string, nativeAsset xc.NativeAsset) bool
- func Normalize(address string, nativeAsset xc.NativeAsset) string
- func NormalizeAddressString(address string, nativeAsset xc.NativeAsset) string
- func NormalizeMoveAddress(address string) string
- func TransactionHash(hash string, nativeAsset xc.NativeAsset) string
- type NormalizeOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressEqual ¶
func AddressEqual(address1 string, address2 string, nativeAsset xc.NativeAsset) bool
func Normalize ¶
func Normalize(address string, nativeAsset xc.NativeAsset) string
NormalizeAddressString normalizes an address or hash If possible (if it's hex), it will be lowercased. You may specify if you want to remove or ensure the common prefix (if there is one).
func NormalizeAddressString ¶
func NormalizeAddressString(address string, nativeAsset xc.NativeAsset) string
deprecated, use Normalize
func NormalizeMoveAddress ¶
Given an address like coin::Coin<0x11AAbbCCdd::coin::NAME>, we only want to normalize the 0x11AAbbCCdd part, and remove the coin::Coin::<> part.
func TransactionHash ¶
func TransactionHash(hash string, nativeAsset xc.NativeAsset) string
Normalize a transaction hash
Types ¶
type NormalizeOptions ¶
Click to show internal directories.
Click to hide internal directories.