util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Contract string

Contract is contract address in HEX format.

URL is the CFX URL to create connection.

Functions

func CreateUsageCommand

func CreateUsageCommand(use, short string) *cobra.Command

CreateUsageCommand creates a command to display help.

func DecodeAddress

func DecodeAddress(encoded string) string

DecodeAddress decodes data as address.

func DisplayValueWithUnit

func DisplayValueWithUnit(drip *big.Int) string

DisplayValueWithUnit returns the display format for given drip value.

func MustCall

func MustCall(data string) string

MustCall calls contract with specified ABI encoded data.

func MustDecodeUint256

func MustDecodeUint256(encoded string) *big.Int

MustDecodeUint256 decodes data as uint256.

func MustGetClient

func MustGetClient() *sdk.Client

MustGetClient creates an connection to full node.

Types

This section is empty.

Jump to

Keyboard shortcuts

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