Documentation ¶
Index ¶
- func BytesToMap(jsonBytes []byte) (map[string]string, error)
- func CombineWithSuffix(field []byte, uniqueNum uint64, maxLength int) []byte
- func FormatBalance(bal uint64, decimals uint8) string
- func GenerateIDWithAddress(id ids.ID, addr codec.Address) ids.ID
- func GenerateIDWithIndex(id ids.ID, i uint64) ids.ID
- func GenerateIDWithString(str string) ids.ID
- func GenerateRandomID() (ids.ID, error)
- func GetAssetAddressBySymbol(symbol string) (codec.Address, error)
- func MapToBytes(inputMap map[string]string) ([]byte, error)
- func ParseBalance(bal string, decimals uint8) (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToMap ¶
Function to convert a JSON string to map[string]string
func CombineWithSuffix ¶
func FormatBalance ¶
func GenerateIDWithString ¶
GenerateIDWithString creates a new ID based on the hash of the provided string.
func GenerateRandomID ¶
generateRandomID creates a random ids.ID for use in generating random ids.
func MapToBytes ¶
Function to convert a map[string]string to a JSON string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.