erc20

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Ierc20ABI = "" /* 2898-byte string literal not displayed */

Ierc20ABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ierc20

type Ierc20 struct {
	Ierc20Caller     // Read-only binding to the contract
	Ierc20Transactor // Write-only binding to the contract
	Ierc20Filterer   // Log filterer for contract events
}

Ierc20 is an auto generated Go binding around an Ethereum contract.

func NewIerc20

func NewIerc20(address common.Address, backend bind.ContractBackend) (*Ierc20, error)

NewIerc20 creates a new instance of Ierc20, bound to a specific deployed contract.

type Ierc20Approval

type Ierc20Approval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

Ierc20Approval represents a Approval event raised by the Ierc20 contract.

type Ierc20ApprovalIterator

type Ierc20ApprovalIterator struct {
	Event *Ierc20Approval // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

Ierc20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Ierc20 contract.

func (*Ierc20ApprovalIterator) Close

func (it *Ierc20ApprovalIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*Ierc20ApprovalIterator) Error

func (it *Ierc20ApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Ierc20ApprovalIterator) Next

func (it *Ierc20ApprovalIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type Ierc20Caller

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

Ierc20Caller is an auto generated read-only Go binding around an Ethereum contract.

func NewIerc20Caller

func NewIerc20Caller(address common.Address, caller bind.ContractCaller) (*Ierc20Caller, error)

NewIerc20Caller creates a new read-only instance of Ierc20, bound to a specific deployed contract.

func (*Ierc20Caller) Allowance

func (_Ierc20 *Ierc20Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*Ierc20Caller) BalanceOf

func (_Ierc20 *Ierc20Caller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address owner) view returns(uint256)

func (*Ierc20Caller) Decimals

func (_Ierc20 *Ierc20Caller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*Ierc20Caller) Name

func (_Ierc20 *Ierc20Caller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*Ierc20Caller) Symbol

func (_Ierc20 *Ierc20Caller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*Ierc20Caller) TotalSupply

func (_Ierc20 *Ierc20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type Ierc20CallerRaw

type Ierc20CallerRaw struct {
	Contract *Ierc20Caller // Generic read-only contract binding to access the raw methods on
}

Ierc20CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*Ierc20CallerRaw) Call

func (_Ierc20 *Ierc20CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type Ierc20CallerSession

type Ierc20CallerSession struct {
	Contract *Ierc20Caller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts // Call options to use throughout this session
}

Ierc20CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*Ierc20CallerSession) Allowance

func (_Ierc20 *Ierc20CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*Ierc20CallerSession) BalanceOf

func (_Ierc20 *Ierc20CallerSession) BalanceOf(owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address owner) view returns(uint256)

func (*Ierc20CallerSession) Decimals

func (_Ierc20 *Ierc20CallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*Ierc20CallerSession) Name

func (_Ierc20 *Ierc20CallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*Ierc20CallerSession) Symbol

func (_Ierc20 *Ierc20CallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*Ierc20CallerSession) TotalSupply

func (_Ierc20 *Ierc20CallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type Ierc20Filterer

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

Ierc20Filterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewIerc20Filterer

func NewIerc20Filterer(address common.Address, filterer bind.ContractFilterer) (*Ierc20Filterer, error)

NewIerc20Filterer creates a new log filterer instance of Ierc20, bound to a specific deployed contract.

func (*Ierc20Filterer) FilterApproval

func (_Ierc20 *Ierc20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*Ierc20ApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*Ierc20Filterer) FilterTransfer

func (_Ierc20 *Ierc20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*Ierc20TransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*Ierc20Filterer) ParseApproval

func (_Ierc20 *Ierc20Filterer) ParseApproval(log types.Log) (*Ierc20Approval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*Ierc20Filterer) ParseTransfer

func (_Ierc20 *Ierc20Filterer) ParseTransfer(log types.Log) (*Ierc20Transfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*Ierc20Filterer) WatchApproval

func (_Ierc20 *Ierc20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Ierc20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*Ierc20Filterer) WatchTransfer

func (_Ierc20 *Ierc20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *Ierc20Transfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

type Ierc20Raw

type Ierc20Raw struct {
	Contract *Ierc20 // Generic contract binding to access the raw methods on
}

Ierc20Raw is an auto generated low-level Go binding around an Ethereum contract.

func (*Ierc20Raw) Call

func (_Ierc20 *Ierc20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*Ierc20Raw) Transact

func (_Ierc20 *Ierc20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*Ierc20Raw) Transfer

func (_Ierc20 *Ierc20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type Ierc20Session

type Ierc20Session struct {
	Contract     *Ierc20           // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

Ierc20Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*Ierc20Session) Allowance

func (_Ierc20 *Ierc20Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*Ierc20Session) Approve

func (_Ierc20 *Ierc20Session) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*Ierc20Session) BalanceOf

func (_Ierc20 *Ierc20Session) BalanceOf(owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address owner) view returns(uint256)

func (*Ierc20Session) Decimals

func (_Ierc20 *Ierc20Session) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*Ierc20Session) Name

func (_Ierc20 *Ierc20Session) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*Ierc20Session) Symbol

func (_Ierc20 *Ierc20Session) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*Ierc20Session) TotalSupply

func (_Ierc20 *Ierc20Session) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*Ierc20Session) Transfer

func (_Ierc20 *Ierc20Session) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*Ierc20Session) TransferFrom

func (_Ierc20 *Ierc20Session) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

type Ierc20Transactor

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

Ierc20Transactor is an auto generated write-only Go binding around an Ethereum contract.

func NewIerc20Transactor

func NewIerc20Transactor(address common.Address, transactor bind.ContractTransactor) (*Ierc20Transactor, error)

NewIerc20Transactor creates a new write-only instance of Ierc20, bound to a specific deployed contract.

func (*Ierc20Transactor) Approve

func (_Ierc20 *Ierc20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*Ierc20Transactor) Transfer

func (_Ierc20 *Ierc20Transactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*Ierc20Transactor) TransferFrom

func (_Ierc20 *Ierc20Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

type Ierc20TransactorRaw

type Ierc20TransactorRaw struct {
	Contract *Ierc20Transactor // Generic write-only contract binding to access the raw methods on
}

Ierc20TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*Ierc20TransactorRaw) Transact

func (_Ierc20 *Ierc20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*Ierc20TransactorRaw) Transfer

func (_Ierc20 *Ierc20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type Ierc20TransactorSession

type Ierc20TransactorSession struct {
	Contract     *Ierc20Transactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

Ierc20TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*Ierc20TransactorSession) Approve

func (_Ierc20 *Ierc20TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*Ierc20TransactorSession) Transfer

func (_Ierc20 *Ierc20TransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*Ierc20TransactorSession) TransferFrom

func (_Ierc20 *Ierc20TransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

type Ierc20Transfer

type Ierc20Transfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

Ierc20Transfer represents a Transfer event raised by the Ierc20 contract.

type Ierc20TransferIterator

type Ierc20TransferIterator struct {
	Event *Ierc20Transfer // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

Ierc20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Ierc20 contract.

func (*Ierc20TransferIterator) Close

func (it *Ierc20TransferIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*Ierc20TransferIterator) Error

func (it *Ierc20TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Ierc20TransferIterator) Next

func (it *Ierc20TransferIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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