abi

package
v0.0.0-...-73b4c3b Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

ABI to Go

compile example

solc --abi erc20.sol -o ./

generate go code example

abigen --abi=ERC20.abi --pkg=token --out=erc20.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetErc20Metadata

func GetErc20Metadata(contractAddress string) (totalSupply *big.Int, name, symbol string, decimals uint8, err error)

func GetErc20TotalSupply

func GetErc20TotalSupply(contractAddress string) (*big.Int, error)

func ParseErc1155BatchTransferLog

func ParseErc1155BatchTransferLog(data []byte) ([]*big.Int, []*big.Int, error)

func ParseErc1155SignleTransferLog

func ParseErc1155SignleTransferLog(data []byte) (*big.Int, *big.Int, error)

func ParseErc20TransferLog

func ParseErc20TransferLog(data []byte) (*big.Int, error)

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