ethhelper

package
v0.0.0-...-3beb7e2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: GPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFilePath

func ConfigFilePath(filename string) string

func GetAddressesFromFile

func GetAddressesFromFile(filename string) (addresses []string, err error)

GetAddressesFromFile fetches token addresses from a config file available here: https://etherscan.io/exportData?type=open-source-contract-codes

func GetBlockData

func GetBlockData(blockNumber int64, relDB *models.RelDB, client *ethclient.Client) (blockdata dia.BlockData, err error)

GetBlockData returns

func GetBlockDataOnChain

func GetBlockDataOnChain(blockNumber int64, client *ethclient.Client) (dia.BlockData, error)

func NewETHClient

func NewETHClient() (*ethclient.Client, error)

NewETHClient returns an ethclient, using either our node for production or infura for testing

Types

type TokenCaller

type TokenCaller struct {
	Contract *bind.BoundContract // Generic contract wrapper for the low level calls
}

TokenCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewTokenCaller

func NewTokenCaller(address common.Address, caller bind.ContractCaller) (*TokenCaller, error)

NewTokenCaller creates a new read-only instance of token, bound to a specific deployed contract.

Jump to

Keyboard shortcuts

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