Documentation ¶
Index ¶
- Variables
- func ConvertNanoSecToMinutes(nanoSec int64) int64
- func ConvertToCommaSeparated(amt string) string
- func ConvertToMatic(amount string) string
- func ConvertWeiToEth(num *big.Int) string
- func DecodeEthCallResult(resp string) []string
- func Encode(b []byte) string
- func EncodeToHex(b []byte) string
- func FixSelfStakeDecimals(num *big.Int) string
- func GetUserDateFormat(timeToConvert string) string
- func HexToBigInt(hex string) (*big.Int, bool)
- func HexToIntConversion(hex string) (int, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// Denom of matic
MaticDenom = "MATIC"
)
Functions ¶
func ConvertNanoSecToMinutes ¶
ConvertNanoSecToMinutes converts nano seconds into minutes
func ConvertToCommaSeparated ¶
ConvertToCommaSeparated converts value into comma seperated for user friendly
func ConvertToMatic ¶
ConvertToMatic converts amount into matic and returns
func ConvertWeiToEth ¶
ConvertWeiToEth converts wei into eth value
func DecodeEthCallResult ¶
DecodeEthCallResult decodes the eth_call result and resturns the array
func EncodeToHex ¶
EncodeToHex encodes b as a hex string with 0x prefix.
func FixSelfStakeDecimals ¶
ConvertWeiToEth converts wei into eth value
func GetUserDateFormat ¶
GetUserDateFormat to which returns date in a user friendly
func HexToBigInt ¶
HexToBigInt convert hex value into big int
func HexToIntConversion ¶
HexToIntConversion converts hex into int format
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.