utils

package
v0.0.0-...-76b2023 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package utils contains internal helper functions for erc20-token-cli commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(client *ethclient.Client, privateKeyAddress string) *bind.TransactOpts

Auth generates a transaction signer from a single private key.

func Client

func Client(url string) *ethclient.Client

Client opens a connection to an Ethereum RPC node and returns an object representing the connection.

func Fatalf

func Fatalf(format string, args ...interface{})

Fatalf formats a message to standard error and exits the program. The message is also printed to standard output if standard error is redirected to a different file.

func TokenDecimals

func TokenDecimals(token *token.Token) uint8

func TokenName

func TokenName(token *token.Token) string

func TokenSymbol

func TokenSymbol(token *token.Token) string

func TokenTotalSupply

func TokenTotalSupply(token *token.Token) *big.Float

Types

This section is empty.

Jump to

Keyboard shortcuts

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