ethutils

package
v0.0.0-...-2c9d471 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupCreationByteCode

func CleanupCreationByteCode(bytecode string) string

func GetByteCodeHash

func GetByteCodeHash(byteCode []byte) (*string, error)

func GetGoBindings

func GetGoBindings(
	abi string,
	pkgName string,
	creationHexByteCode string,
) (*string, error)

func PullAndStoreSmartContractImmutableData

func PullAndStoreSmartContractImmutableData(
	hexAddress string,
	ethNetwork types.ETHNetwork,
	name string,
	dir string,
	ethClient *ethclient.Client,
	etherscanClient *etherscan.EtherscanClient,
) error

Types

type SmartContractImmutableData

type SmartContractImmutableData struct {
	SourceCode          map[string]string
	Name                string
	ByteCode            []byte
	ByteCodeHash        string
	CreationHexByteCode string
	ABI                 string
	GoBindings          string
	DownloadURL         string
}

func PullSmartContractImmutableData

func PullSmartContractImmutableData(
	ethClient *ethclient.Client,
	etherscanClient *etherscan.EtherscanClient,
	name string,
	hexAddress string,
) (*SmartContractImmutableData, error)

Jump to

Keyboard shortcuts

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