utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToUint64

func BytesToUint64(b []byte) uint64

BytesToTime convert BigEndian unix time from bytes to time.Time

func GetHash added in v0.5.2

func GetHash(v interface{}) []byte

func InitialTokenBalance added in v0.5.0

func InitialTokenBalance() sdk.Int

func TokenToFloat64

func TokenToFloat64(token sdk.Int) float64

TokenToFloat64 converts token to its float64 representation

func Uint64ToBytes

func Uint64ToBytes(i uint64) []byte

Uint64ToBytes converts uint64 to bytes using BigEndian endianness

Types

This section is empty.

Jump to

Keyboard shortcuts

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