Documentation ¶
Index ¶
- type ERC20WrapperContractConstruction
- type Erc20WrapperContract
- func (cont *Erc20WrapperContract) Address() common.Address
- func (cont *Erc20WrapperContract) Allowance(cc *types.ContractContext, _owner common.Address, _spender common.Address) (*amount.Amount, error)
- func (cont *Erc20WrapperContract) Approve(cc *types.ContractContext, spender common.Address, Amount *amount.Amount) error
- func (cont *Erc20WrapperContract) BalanceOf(cc *types.ContractContext, from common.Address) (*amount.Amount, error)
- func (cont *Erc20WrapperContract) Burn(cc *types.ContractContext, Amount *amount.Amount) error
- func (cont *Erc20WrapperContract) BurnFrom(cc *types.ContractContext, Addr common.Address, Amount *amount.Amount) error
- func (cont *Erc20WrapperContract) Decimals(cc *types.ContractContext) (*big.Int, error)
- func (cont *Erc20WrapperContract) DecreaseAllowance(cc *types.ContractContext, spender common.Address, ...) error
- func (cont *Erc20WrapperContract) Erc20Token(cc types.ContractLoader) common.Address
- func (cont *Erc20WrapperContract) Front() interface{}
- func (cont *Erc20WrapperContract) IncreaseAllowance(cc *types.ContractContext, spender common.Address, addedValue *amount.Amount) error
- func (cont *Erc20WrapperContract) Init(addr common.Address, master common.Address)
- func (cont *Erc20WrapperContract) IsMinter(cc *types.ContractContext, addr common.Address) (bool, error)
- func (cont *Erc20WrapperContract) Master() common.Address
- func (cont *Erc20WrapperContract) Mint(cc *types.ContractContext, To common.Address, Amount *amount.Amount) error
- func (cont *Erc20WrapperContract) Name(cc *types.ContractContext) (string, error)
- func (cont *Erc20WrapperContract) OnCreate(cc *types.ContractContext, Args []byte) error
- func (cont *Erc20WrapperContract) OnReward(cc *types.ContractContext, b *types.Block, CountMap map[common.Address]uint32) (map[common.Address]*amount.Amount, error)
- func (cont *Erc20WrapperContract) SetMinter(cc *types.ContractContext, To common.Address, Is bool) error
- func (cont *Erc20WrapperContract) Symbol(cc *types.ContractContext) (string, error)
- func (cont *Erc20WrapperContract) TotalSupply(cc *types.ContractContext) (*amount.Amount, error)
- func (cont *Erc20WrapperContract) Transfer(cc *types.ContractContext, To common.Address, Amount *amount.Amount) error
- func (cont *Erc20WrapperContract) TransferFrom(cc *types.ContractContext, From common.Address, To common.Address, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ERC20WrapperContractConstruction ¶
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 ¶
func (cont *Erc20WrapperContract) Erc20Token(cc types.ContractLoader) common.Address
//////////////////////////////////////////////// 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 (cont *Erc20WrapperContract) Mint(cc *types.ContractContext, To common.Address, Amount *amount.Amount) error
func (*Erc20WrapperContract) Name ¶
func (cont *Erc20WrapperContract) Name(cc *types.ContractContext) (string, error)
func (*Erc20WrapperContract) OnCreate ¶
func (cont *Erc20WrapperContract) OnCreate(cc *types.ContractContext, Args []byte) 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
Click to show internal directories.
Click to hide internal directories.