IERC

package
v0.0.0-...-de997ea Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IERCABI = IERCMetaData.ABI

IERCABI is the input ABI used to generate the binding from. Deprecated: Use IERCMetaData.ABI instead.

View Source
var IERCMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"claim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

IERCMetaData contains all meta data concerning the IERC contract.

Functions

This section is empty.

Types

type IERC

type IERC struct {
	IERCCaller     // Read-only binding to the contract
	IERCTransactor // Write-only binding to the contract
	IERCFilterer   // Log filterer for contract events
}

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

func NewIERC

func NewIERC(address common.Address, backend bind.ContractBackend) (*IERC, error)

NewIERC creates a new instance of IERC, bound to a specific deployed contract.

type IERCApproval

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

IERCApproval represents a Approval event raised by the IERC contract.

type IERCApprovalIterator

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

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

func (*IERCApprovalIterator) Close

func (it *IERCApprovalIterator) Close() error

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

func (*IERCApprovalIterator) Error

func (it *IERCApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IERCApprovalIterator) Next

func (it *IERCApprovalIterator) 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 IERCCaller

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

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

func NewIERCCaller

func NewIERCCaller(address common.Address, caller bind.ContractCaller) (*IERCCaller, error)

NewIERCCaller creates a new read-only instance of IERC, bound to a specific deployed contract.

func (*IERCCaller) Allowance

func (_IERC *IERCCaller) 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 (*IERCCaller) BalanceOf

func (_IERC *IERCCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

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

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

func (*IERCCaller) TotalSupply

func (_IERC *IERCCaller) 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 IERCCallerRaw

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

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

func (*IERCCallerRaw) Call

func (_IERC *IERCCallerRaw) 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 IERCCallerSession

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

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

func (*IERCCallerSession) Allowance

func (_IERC *IERCCallerSession) 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 (*IERCCallerSession) BalanceOf

func (_IERC *IERCCallerSession) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*IERCCallerSession) TotalSupply

func (_IERC *IERCCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type IERCFilterer

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

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

func NewIERCFilterer

func NewIERCFilterer(address common.Address, filterer bind.ContractFilterer) (*IERCFilterer, error)

NewIERCFilterer creates a new log filterer instance of IERC, bound to a specific deployed contract.

func (*IERCFilterer) FilterApproval

func (_IERC *IERCFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*IERCApprovalIterator, 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 (*IERCFilterer) FilterTransfer

func (_IERC *IERCFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*IERCTransferIterator, 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 (*IERCFilterer) ParseApproval

func (_IERC *IERCFilterer) ParseApproval(log types.Log) (*IERCApproval, error)

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

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

func (*IERCFilterer) ParseTransfer

func (_IERC *IERCFilterer) ParseTransfer(log types.Log) (*IERCTransfer, error)

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

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

func (*IERCFilterer) WatchApproval

func (_IERC *IERCFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IERCApproval, 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 (*IERCFilterer) WatchTransfer

func (_IERC *IERCFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *IERCTransfer, 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 IERCRaw

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

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

func (*IERCRaw) Call

func (_IERC *IERCRaw) 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 (*IERCRaw) Transact

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

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

func (*IERCRaw) Transfer

func (_IERC *IERCRaw) 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 IERCSession

type IERCSession struct {
	Contract     *IERC             // 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
}

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

func (*IERCSession) Allowance

func (_IERC *IERCSession) 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 (*IERCSession) Approve

func (_IERC *IERCSession) 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 (*IERCSession) BalanceOf

func (_IERC *IERCSession) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*IERCSession) Claim

func (_IERC *IERCSession) Claim(to common.Address, amount *big.Int) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0xaad3ec96.

Solidity: function claim(address to, uint256 amount) returns()

func (*IERCSession) TotalSupply

func (_IERC *IERCSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*IERCSession) Transfer

func (_IERC *IERCSession) 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 (*IERCSession) TransferFrom

func (_IERC *IERCSession) 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 IERCTransactor

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

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

func NewIERCTransactor

func NewIERCTransactor(address common.Address, transactor bind.ContractTransactor) (*IERCTransactor, error)

NewIERCTransactor creates a new write-only instance of IERC, bound to a specific deployed contract.

func (*IERCTransactor) Approve

func (_IERC *IERCTransactor) 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 (*IERCTransactor) Claim

func (_IERC *IERCTransactor) Claim(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0xaad3ec96.

Solidity: function claim(address to, uint256 amount) returns()

func (*IERCTransactor) Transfer

func (_IERC *IERCTransactor) 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 (*IERCTransactor) TransferFrom

func (_IERC *IERCTransactor) 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 IERCTransactorRaw

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

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

func (*IERCTransactorRaw) Transact

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

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

func (*IERCTransactorRaw) Transfer

func (_IERC *IERCTransactorRaw) 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 IERCTransactorSession

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

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

func (*IERCTransactorSession) Approve

func (_IERC *IERCTransactorSession) 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 (*IERCTransactorSession) Claim

func (_IERC *IERCTransactorSession) Claim(to common.Address, amount *big.Int) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0xaad3ec96.

Solidity: function claim(address to, uint256 amount) returns()

func (*IERCTransactorSession) Transfer

func (_IERC *IERCTransactorSession) 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 (*IERCTransactorSession) TransferFrom

func (_IERC *IERCTransactorSession) 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 IERCTransfer

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

IERCTransfer represents a Transfer event raised by the IERC contract.

type IERCTransferIterator

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

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

func (*IERCTransferIterator) Close

func (it *IERCTransferIterator) Close() error

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

func (*IERCTransferIterator) Error

func (it *IERCTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IERCTransferIterator) Next

func (it *IERCTransferIterator) 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.

Jump to

Keyboard shortcuts

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