erc20

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	BalanceOf(ctx context.Context, address common.Address) (*big.Int, error)
	Transfer(ctx context.Context, address common.Address, value *big.Int) (common.Hash, error)
	Allowance(ctx context.Context, owner common.Address, spender common.Address) (*big.Int, error)
	Approve(ctx context.Context, spender common.Address, value *big.Int) (common.Hash, error)
	WaitForApprove(ctx context.Context, hash common.Hash) error
}

func New

func New(backend transaction.Backend, transactionService transaction.Service, address common.Address) Service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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