ethtoken

package
v0.0.0-...-f1447cf Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IEthTokenABI = IEthTokenMetaData.ABI

IEthTokenABI is the input ABI used to generate the binding from. Deprecated: Use IEthTokenMetaData.ABI instead.

View Source
var IEthTokenMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Mint\",\"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\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_l2Sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_l1Receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"Withdrawal\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"transferFromTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_l1Receiver\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
}

IEthTokenMetaData contains all meta data concerning the IEthToken contract.

Functions

This section is empty.

Types

type IEthToken

type IEthToken struct {
	IEthTokenCaller     // Read-only binding to the contract
	IEthTokenTransactor // Write-only binding to the contract
	IEthTokenFilterer   // Log filterer for contract events
}

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

func NewIEthToken

func NewIEthToken(address common.Address, backend bind.ContractBackend) (*IEthToken, error)

NewIEthToken creates a new instance of IEthToken, bound to a specific deployed contract.

type IEthTokenCaller

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

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

func NewIEthTokenCaller

func NewIEthTokenCaller(address common.Address, caller bind.ContractCaller) (*IEthTokenCaller, error)

NewIEthTokenCaller creates a new read-only instance of IEthToken, bound to a specific deployed contract.

func (*IEthTokenCaller) BalanceOf

func (_IEthToken *IEthTokenCaller) BalanceOf(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

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

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

func (*IEthTokenCaller) Decimals

func (_IEthToken *IEthTokenCaller) Decimals(opts *bind.CallOpts) (uint8, error)

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

Solidity: function decimals() pure returns(uint8)

func (*IEthTokenCaller) Name

func (_IEthToken *IEthTokenCaller) Name(opts *bind.CallOpts) (string, error)

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

Solidity: function name() pure returns(string)

func (*IEthTokenCaller) Symbol

func (_IEthToken *IEthTokenCaller) Symbol(opts *bind.CallOpts) (string, error)

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

Solidity: function symbol() pure returns(string)

func (*IEthTokenCaller) TotalSupply

func (_IEthToken *IEthTokenCaller) 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 IEthTokenCallerRaw

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

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

func (*IEthTokenCallerRaw) Call

func (_IEthToken *IEthTokenCallerRaw) 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 IEthTokenCallerSession

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

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

func (*IEthTokenCallerSession) BalanceOf

func (_IEthToken *IEthTokenCallerSession) BalanceOf(arg0 *big.Int) (*big.Int, error)

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

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

func (*IEthTokenCallerSession) Decimals

func (_IEthToken *IEthTokenCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() pure returns(uint8)

func (*IEthTokenCallerSession) Name

func (_IEthToken *IEthTokenCallerSession) Name() (string, error)

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

Solidity: function name() pure returns(string)

func (*IEthTokenCallerSession) Symbol

func (_IEthToken *IEthTokenCallerSession) Symbol() (string, error)

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

Solidity: function symbol() pure returns(string)

func (*IEthTokenCallerSession) TotalSupply

func (_IEthToken *IEthTokenCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type IEthTokenFilterer

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

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

func NewIEthTokenFilterer

func NewIEthTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*IEthTokenFilterer, error)

NewIEthTokenFilterer creates a new log filterer instance of IEthToken, bound to a specific deployed contract.

func (*IEthTokenFilterer) FilterMint

func (_IEthToken *IEthTokenFilterer) FilterMint(opts *bind.FilterOpts, account []common.Address) (*IEthTokenMintIterator, error)

FilterMint is a free log retrieval operation binding the contract event 0x0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885.

Solidity: event Mint(address indexed account, uint256 amount)

func (*IEthTokenFilterer) FilterTransfer

func (_IEthToken *IEthTokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*IEthTokenTransferIterator, 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 (*IEthTokenFilterer) FilterWithdrawal

func (_IEthToken *IEthTokenFilterer) FilterWithdrawal(opts *bind.FilterOpts, _l2Sender []common.Address, _l1Receiver []common.Address) (*IEthTokenWithdrawalIterator, error)

FilterWithdrawal is a free log retrieval operation binding the contract event 0x2717ead6b9200dd235aad468c9809ea400fe33ac69b5bfaa6d3e90fc922b6398.

Solidity: event Withdrawal(address indexed _l2Sender, address indexed _l1Receiver, uint256 _amount)

func (*IEthTokenFilterer) ParseMint

func (_IEthToken *IEthTokenFilterer) ParseMint(log types.Log) (*IEthTokenMint, error)

ParseMint is a log parse operation binding the contract event 0x0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885.

Solidity: event Mint(address indexed account, uint256 amount)

func (*IEthTokenFilterer) ParseTransfer

func (_IEthToken *IEthTokenFilterer) ParseTransfer(log types.Log) (*IEthTokenTransfer, error)

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

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

func (*IEthTokenFilterer) ParseWithdrawal

func (_IEthToken *IEthTokenFilterer) ParseWithdrawal(log types.Log) (*IEthTokenWithdrawal, error)

ParseWithdrawal is a log parse operation binding the contract event 0x2717ead6b9200dd235aad468c9809ea400fe33ac69b5bfaa6d3e90fc922b6398.

Solidity: event Withdrawal(address indexed _l2Sender, address indexed _l1Receiver, uint256 _amount)

func (*IEthTokenFilterer) WatchMint

func (_IEthToken *IEthTokenFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *IEthTokenMint, account []common.Address) (event.Subscription, error)

WatchMint is a free log subscription operation binding the contract event 0x0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885.

Solidity: event Mint(address indexed account, uint256 amount)

func (*IEthTokenFilterer) WatchTransfer

func (_IEthToken *IEthTokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *IEthTokenTransfer, 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)

func (*IEthTokenFilterer) WatchWithdrawal

func (_IEthToken *IEthTokenFilterer) WatchWithdrawal(opts *bind.WatchOpts, sink chan<- *IEthTokenWithdrawal, _l2Sender []common.Address, _l1Receiver []common.Address) (event.Subscription, error)

WatchWithdrawal is a free log subscription operation binding the contract event 0x2717ead6b9200dd235aad468c9809ea400fe33ac69b5bfaa6d3e90fc922b6398.

Solidity: event Withdrawal(address indexed _l2Sender, address indexed _l1Receiver, uint256 _amount)

type IEthTokenMint

type IEthTokenMint struct {
	Account common.Address
	Amount  *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

IEthTokenMint represents a Mint event raised by the IEthToken contract.

type IEthTokenMintIterator

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

IEthTokenMintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the IEthToken contract.

func (*IEthTokenMintIterator) Close

func (it *IEthTokenMintIterator) Close() error

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

func (*IEthTokenMintIterator) Error

func (it *IEthTokenMintIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IEthTokenMintIterator) Next

func (it *IEthTokenMintIterator) 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 IEthTokenRaw

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

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

func (*IEthTokenRaw) Call

func (_IEthToken *IEthTokenRaw) 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 (*IEthTokenRaw) Transact

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

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

func (*IEthTokenRaw) Transfer

func (_IEthToken *IEthTokenRaw) 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 IEthTokenSession

type IEthTokenSession struct {
	Contract     *IEthToken        // 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
}

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

func (*IEthTokenSession) BalanceOf

func (_IEthToken *IEthTokenSession) BalanceOf(arg0 *big.Int) (*big.Int, error)

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

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

func (*IEthTokenSession) Decimals

func (_IEthToken *IEthTokenSession) Decimals() (uint8, error)

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

Solidity: function decimals() pure returns(uint8)

func (*IEthTokenSession) Mint

func (_IEthToken *IEthTokenSession) Mint(_account common.Address, _amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address _account, uint256 _amount) returns()

func (*IEthTokenSession) Name

func (_IEthToken *IEthTokenSession) Name() (string, error)

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

Solidity: function name() pure returns(string)

func (*IEthTokenSession) Symbol

func (_IEthToken *IEthTokenSession) Symbol() (string, error)

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

Solidity: function symbol() pure returns(string)

func (*IEthTokenSession) TotalSupply

func (_IEthToken *IEthTokenSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*IEthTokenSession) TransferFromTo

func (_IEthToken *IEthTokenSession) TransferFromTo(_from common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)

TransferFromTo is a paid mutator transaction binding the contract method 0x579952fc.

Solidity: function transferFromTo(address _from, address _to, uint256 _amount) returns()

func (*IEthTokenSession) Withdraw

func (_IEthToken *IEthTokenSession) Withdraw(_l1Receiver common.Address) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x51cff8d9.

Solidity: function withdraw(address _l1Receiver) payable returns()

type IEthTokenTransactor

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

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

func NewIEthTokenTransactor

func NewIEthTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*IEthTokenTransactor, error)

NewIEthTokenTransactor creates a new write-only instance of IEthToken, bound to a specific deployed contract.

func (*IEthTokenTransactor) Mint

func (_IEthToken *IEthTokenTransactor) Mint(opts *bind.TransactOpts, _account common.Address, _amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address _account, uint256 _amount) returns()

func (*IEthTokenTransactor) TransferFromTo

func (_IEthToken *IEthTokenTransactor) TransferFromTo(opts *bind.TransactOpts, _from common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)

TransferFromTo is a paid mutator transaction binding the contract method 0x579952fc.

Solidity: function transferFromTo(address _from, address _to, uint256 _amount) returns()

func (*IEthTokenTransactor) Withdraw

func (_IEthToken *IEthTokenTransactor) Withdraw(opts *bind.TransactOpts, _l1Receiver common.Address) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x51cff8d9.

Solidity: function withdraw(address _l1Receiver) payable returns()

type IEthTokenTransactorRaw

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

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

func (*IEthTokenTransactorRaw) Transact

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

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

func (*IEthTokenTransactorRaw) Transfer

func (_IEthToken *IEthTokenTransactorRaw) 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 IEthTokenTransactorSession

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

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

func (*IEthTokenTransactorSession) Mint

func (_IEthToken *IEthTokenTransactorSession) Mint(_account common.Address, _amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address _account, uint256 _amount) returns()

func (*IEthTokenTransactorSession) TransferFromTo

func (_IEthToken *IEthTokenTransactorSession) TransferFromTo(_from common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)

TransferFromTo is a paid mutator transaction binding the contract method 0x579952fc.

Solidity: function transferFromTo(address _from, address _to, uint256 _amount) returns()

func (*IEthTokenTransactorSession) Withdraw

func (_IEthToken *IEthTokenTransactorSession) Withdraw(_l1Receiver common.Address) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x51cff8d9.

Solidity: function withdraw(address _l1Receiver) payable returns()

type IEthTokenTransfer

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

IEthTokenTransfer represents a Transfer event raised by the IEthToken contract.

type IEthTokenTransferIterator

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

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

func (*IEthTokenTransferIterator) Close

func (it *IEthTokenTransferIterator) Close() error

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

func (*IEthTokenTransferIterator) Error

func (it *IEthTokenTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IEthTokenTransferIterator) Next

func (it *IEthTokenTransferIterator) 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 IEthTokenWithdrawal

type IEthTokenWithdrawal struct {
	L2Sender   common.Address
	L1Receiver common.Address
	Amount     *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

IEthTokenWithdrawal represents a Withdrawal event raised by the IEthToken contract.

type IEthTokenWithdrawalIterator

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

IEthTokenWithdrawalIterator is returned from FilterWithdrawal and is used to iterate over the raw logs and unpacked data for Withdrawal events raised by the IEthToken contract.

func (*IEthTokenWithdrawalIterator) Close

func (it *IEthTokenWithdrawalIterator) Close() error

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

func (*IEthTokenWithdrawalIterator) Error

func (it *IEthTokenWithdrawalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IEthTokenWithdrawalIterator) Next

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