erc20wrapper

package
v0.0.0-...-24e5678 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ERC20WrapperContractConstruction

type ERC20WrapperContractConstruction struct {
	Erc20Token common.Address
}

func (*ERC20WrapperContractConstruction) ReadFrom

func (*ERC20WrapperContractConstruction) WriteTo

type Erc20WrapperContract

type Erc20WrapperContract struct {
	// contains filtered or unexported fields
}

func (*Erc20WrapperContract) Address

func (cont *Erc20WrapperContract) Address() common.Address

func (*Erc20WrapperContract) Allowance

func (cont *Erc20WrapperContract) Allowance(cc *types.ContractContext, _owner common.Address, _spender common.Address) (*amount.Amount, error)

func (*Erc20WrapperContract) Approve

func (cont *Erc20WrapperContract) Approve(cc *types.ContractContext, spender common.Address, Amount *amount.Amount) error

func (*Erc20WrapperContract) BalanceOf

func (cont *Erc20WrapperContract) BalanceOf(cc *types.ContractContext, from common.Address) (*amount.Amount, error)

func (*Erc20WrapperContract) Burn

func (cont *Erc20WrapperContract) Burn(cc *types.ContractContext, Amount *amount.Amount) error

func (*Erc20WrapperContract) BurnFrom

func (cont *Erc20WrapperContract) BurnFrom(cc *types.ContractContext, Addr common.Address, Amount *amount.Amount) error

func (*Erc20WrapperContract) Decimals

func (cont *Erc20WrapperContract) Decimals(cc *types.ContractContext) (*big.Int, error)

func (*Erc20WrapperContract) DecreaseAllowance

func (cont *Erc20WrapperContract) DecreaseAllowance(cc *types.ContractContext, spender common.Address, subtractedValue *amount.Amount) error

func (*Erc20WrapperContract) Erc20Token

//////////////////////////////////////////////// Public Reader Functions ////////////////////////////////////////////////

func (*Erc20WrapperContract) Front

func (cont *Erc20WrapperContract) Front() interface{}

func (*Erc20WrapperContract) IncreaseAllowance

func (cont *Erc20WrapperContract) IncreaseAllowance(cc *types.ContractContext, spender common.Address, addedValue *amount.Amount) error

func (*Erc20WrapperContract) Init

func (cont *Erc20WrapperContract) Init(addr common.Address, master common.Address)

func (*Erc20WrapperContract) IsMinter

func (cont *Erc20WrapperContract) IsMinter(cc *types.ContractContext, addr common.Address) (bool, error)

func (*Erc20WrapperContract) Master

func (cont *Erc20WrapperContract) Master() common.Address

func (*Erc20WrapperContract) Mint

func (*Erc20WrapperContract) Name

func (*Erc20WrapperContract) OnCreate

func (cont *Erc20WrapperContract) OnCreate(cc *types.ContractContext, Args []byte) error

func (*Erc20WrapperContract) OnReward

func (cont *Erc20WrapperContract) OnReward(cc *types.ContractContext, b *types.Block, CountMap map[common.Address]uint32) (map[common.Address]*amount.Amount, error)

func (*Erc20WrapperContract) SetMinter

func (cont *Erc20WrapperContract) SetMinter(cc *types.ContractContext, To common.Address, Is bool) error

func (*Erc20WrapperContract) Symbol

func (cont *Erc20WrapperContract) Symbol(cc *types.ContractContext) (string, error)

func (*Erc20WrapperContract) TotalSupply

func (cont *Erc20WrapperContract) TotalSupply(cc *types.ContractContext) (*amount.Amount, error)

func (*Erc20WrapperContract) Transfer

func (cont *Erc20WrapperContract) Transfer(cc *types.ContractContext, To common.Address, Amount *amount.Amount) error

func (*Erc20WrapperContract) TransferFrom

func (cont *Erc20WrapperContract) TransferFrom(cc *types.ContractContext, From common.Address, To common.Address, Amount *amount.Amount) error

Jump to

Keyboard shortcuts

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