eth

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TransferID          = Encode(signTransfer)
	BalanceOfID         = Encode(signBalanceOf)
	Decimals            = Encode(decimals)
	TransferFromID      = Encode(signTransferFrom)
	ApproveID           = Encode(signApprove)
	TotalSupplyID       = Encode(signTotalSupply)
	AllowanceID         = Encode(signAllowance)
	TransferOwnershipID = Encode(signTransferOwnership)
)

Method/Event id

Functions

func Allowance

func Allowance(from, to string) ([]byte, error)

Allowance .

func Approve

func Approve(to string, value string) ([]byte, error)

Approve .

func BalanceOf

func BalanceOf(address string) string

BalanceOf create erc20 balanceof abi string

func Encode

func Encode(abi string) string

Encode encode method string

func GetDecimals

func GetDecimals() string

GetDecimals .

func GetName

func GetName() string

GetName .

func GetSignSymbol

func GetSignSymbol() string

GetSignSymbol .

func GetTotalSupply

func GetTotalSupply() string

GetTotalSupply .

func PackNumeric

func PackNumeric(value string, bytes int) string

PackNumeric .

func Transfer

func Transfer(to string, value string) ([]byte, error)

Transfer .

func TransferFrom

func TransferFrom(from, to string, value string) ([]byte, error)

TransferFrom .

func TransferOwnership

func TransferOwnership(to string) ([]byte, error)

TransferOwnership .

Types

This section is empty.

Jump to

Keyboard shortcuts

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