erc20

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ERC20Call

type ERC20Call interface {
	TotalSupply(ctx context.Context, bc *bind.BoundContract, blockNumber uint64) (ts big.Int, err error)
	BalanceOf(ctx context.Context, bc *bind.BoundContract, blockNumber uint64, tokenHolder common.Address) (balance big.Int, err error)
	Transfer(ctx context.Context, bc *bind.BoundContract, blockNumber uint64, recipient common.Address, amount *big.Int) (successful bool, err error)
	Allowance(ctx context.Context, bc *bind.BoundContract, blockNumber uint64, owner, spender common.Address) (res big.Int, err error)
	Approve(ctx context.Context, bc *bind.BoundContract, blockNumber uint64, spender common.Address, amount *big.Int) (successful bool, err error)
	TransferFrom(ctx context.Context, bc *bind.BoundContract, blockNumber uint64, sender, recipient common.Address, amount *big.Int) (successful bool, err error)
}

type ERC20Caller

type ERC20Caller struct {
	NodeType EthereumNodeType
}

func (*ERC20Caller) Allowance

func (c *ERC20Caller) Allowance(ctx context.Context, bc *bind.BoundContract, blockNumber uint64, owner, spender common.Address) (res big.Int, err error)

func (*ERC20Caller) Approve

func (c *ERC20Caller) Approve(ctx context.Context, bc *bind.BoundContract, blockNumber uint64, spender common.Address, amount *big.Int) (successful bool, err error)

func (*ERC20Caller) BalanceOf

func (c *ERC20Caller) BalanceOf(ctx context.Context, bc *bind.BoundContract, blockNumber uint64, tokenHolder common.Address) (balance big.Int, err error)

func (*ERC20Caller) TotalSupply

func (c *ERC20Caller) TotalSupply(ctx context.Context, bc *bind.BoundContract, blockNumber uint64) (ts big.Int, err error)

func (*ERC20Caller) Transfer

func (c *ERC20Caller) Transfer(ctx context.Context, bc *bind.BoundContract, blockNumber uint64, recipient common.Address, amount *big.Int) (successful bool, err error)

func (*ERC20Caller) TransferFrom

func (c *ERC20Caller) TransferFrom(ctx context.Context, bc *bind.BoundContract, blockNumber uint64, sender, recipient common.Address, amount *big.Int) (successful bool, err error)

type EthereumNodeType

type EthereumNodeType uint8
const (
	ENTArchive EthereumNodeType = iota
	ENTRecent
)

Jump to

Keyboard shortcuts

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