erc20

package
v0.0.0-...-9fdd194 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0, MIT Imports: 8 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 {
	Address(ctx context.Context) common.Address
	BalanceOf(ctx context.Context, address common.Address) (*big.Int, error)
	Deposit(ctx context.Context, value *big.Int) (common.Hash, error)
	Withdraw(ctx context.Context, value *big.Int) (common.Hash, error)
	Transfer(ctx context.Context, address common.Address, value *big.Int) (common.Hash, error)
	Allowance(ctx context.Context, issuer common.Address, vault common.Address) (*big.Int, error)
	Approve(ctx context.Context, address common.Address, value *big.Int) (common.Hash, error)
	TransferFrom(ctx context.Context, issuer common.Address, vault common.Address, value *big.Int) (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