util

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

View Source
const ETH_ADDR string = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"

Variables

This section is empty.

Functions

func DisplayWaitAnalyze

func DisplayWaitAnalyze(t *types.Transaction, broadcasted bool, err error, network string)

func EthReader

func EthReader(network string) (*reader.EthReader, error)

func GetABI

func GetABI(addr string, network string) (*abi.ABI, error)

func GetERC20Decimal added in v0.0.2

func GetERC20Decimal(addr string, network string) (int64, error)

func IsAddress

func IsAddress(addr string) bool

func IsGnosisMultisig

func IsGnosisMultisig(addr string, network string) (bool, error)

func ParamToBigInt added in v0.0.2

func ParamToBigInt(param string) (*big.Int, error)

func PathToAddress

func PathToAddress(path string) (string, error)

func ScanForAddresses

func ScanForAddresses(para string) []string

func ScanForTxs

func ScanForTxs(para string) []string

func ValueToAmountAndCurrency

func ValueToAmountAndCurrency(value string) (float64, string, error)

Split value by space, parse the first element to float64 as the amount. Join whats left by space and trim by space, if it is empty, interpret it as ETH. Error will not be nil if it fails to proceed all of above steps.

func VerboseAddress

func VerboseAddress(addr string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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