l1erc20bridge

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IL1ERC20BridgeABI = IL1ERC20BridgeMetaData.ABI

IL1ERC20BridgeABI is the input ABI used to generate the binding from. Deprecated: Use IL1ERC20BridgeMetaData.ABI instead.

View Source
var IL1ERC20BridgeMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"l1Token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"ClaimedFailedDeposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"l2DepositTxHash\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"l1Token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"DepositInitiated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"l1Token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"WithdrawalFinalized\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"SHARED_BRIDGE\",\"outputs\":[{\"internalType\":\"contractIL1SharedBridge\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_depositSender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_l1Token\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_l2TxHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_l2BatchNumber\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_l2MessageIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"_l2TxNumberInBatch\",\"type\":\"uint16\"},{\"internalType\":\"bytes32[]\",\"name\":\"_merkleProof\",\"type\":\"bytes32[]\"}],\"name\":\"claimFailedDeposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_l2Receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_l1Token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_l2TxGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_l2TxGasPerPubdataByte\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_l2Receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_l1Token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_l2TxGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_l2TxGasPerPubdataByte\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_refundRecipient\",\"type\":\"address\"}],\"name\":\"deposit\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_l1Token\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_depositL2TxHash\",\"type\":\"bytes32\"}],\"name\":\"depositAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_l2BatchNumber\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_l2MessageIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"_l2TxNumberInBatch\",\"type\":\"uint16\"},{\"internalType\":\"bytes\",\"name\":\"_message\",\"type\":\"bytes\"},{\"internalType\":\"bytes32[]\",\"name\":\"_merkleProof\",\"type\":\"bytes32[]\"}],\"name\":\"finalizeWithdrawal\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_l2BatchNumber\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_l2MessageIndex\",\"type\":\"uint256\"}],\"name\":\"isWithdrawalFinalized\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"l2Bridge\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_l1Token\",\"type\":\"address\"}],\"name\":\"l2TokenAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"l2TokenBeacon\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"}],\"name\":\"transferTokenToSharedBridge\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

IL1ERC20BridgeMetaData contains all meta data concerning the IL1ERC20Bridge contract.

Functions

This section is empty.

Types

type IL1ERC20Bridge

type IL1ERC20Bridge struct {
	IL1ERC20BridgeCaller     // Read-only binding to the contract
	IL1ERC20BridgeTransactor // Write-only binding to the contract
	IL1ERC20BridgeFilterer   // Log filterer for contract events
}

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

func NewIL1ERC20Bridge

func NewIL1ERC20Bridge(address common.Address, backend bind.ContractBackend) (*IL1ERC20Bridge, error)

NewIL1ERC20Bridge creates a new instance of IL1ERC20Bridge, bound to a specific deployed contract.

type IL1ERC20BridgeCaller

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

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

func NewIL1ERC20BridgeCaller

func NewIL1ERC20BridgeCaller(address common.Address, caller bind.ContractCaller) (*IL1ERC20BridgeCaller, error)

NewIL1ERC20BridgeCaller creates a new read-only instance of IL1ERC20Bridge, bound to a specific deployed contract.

func (*IL1ERC20BridgeCaller) IsWithdrawalFinalized

func (_IL1ERC20Bridge *IL1ERC20BridgeCaller) IsWithdrawalFinalized(opts *bind.CallOpts, _l2BatchNumber *big.Int, _l2MessageIndex *big.Int) (bool, error)

IsWithdrawalFinalized is a free data retrieval call binding the contract method 0x4bed8212.

Solidity: function isWithdrawalFinalized(uint256 _l2BatchNumber, uint256 _l2MessageIndex) view returns(bool)

func (*IL1ERC20BridgeCaller) L2Bridge

func (_IL1ERC20Bridge *IL1ERC20BridgeCaller) L2Bridge(opts *bind.CallOpts) (common.Address, error)

L2Bridge is a free data retrieval call binding the contract method 0xae1f6aaf.

Solidity: function l2Bridge() view returns(address)

func (*IL1ERC20BridgeCaller) L2TokenAddress

func (_IL1ERC20Bridge *IL1ERC20BridgeCaller) L2TokenAddress(opts *bind.CallOpts, _l1Token common.Address) (common.Address, error)

L2TokenAddress is a free data retrieval call binding the contract method 0xf5f15168.

Solidity: function l2TokenAddress(address _l1Token) view returns(address)

func (*IL1ERC20BridgeCaller) L2TokenBeacon

func (_IL1ERC20Bridge *IL1ERC20BridgeCaller) L2TokenBeacon(opts *bind.CallOpts) (common.Address, error)

L2TokenBeacon is a free data retrieval call binding the contract method 0x6dde7209.

Solidity: function l2TokenBeacon() view returns(address)

func (*IL1ERC20BridgeCaller) SHAREDBRIDGE

func (_IL1ERC20Bridge *IL1ERC20BridgeCaller) SHAREDBRIDGE(opts *bind.CallOpts) (common.Address, error)

SHAREDBRIDGE is a free data retrieval call binding the contract method 0x546b6d2a.

Solidity: function SHARED_BRIDGE() view returns(address)

type IL1ERC20BridgeCallerRaw

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

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

func (*IL1ERC20BridgeCallerRaw) Call

func (_IL1ERC20Bridge *IL1ERC20BridgeCallerRaw) 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 IL1ERC20BridgeCallerSession

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

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

func (*IL1ERC20BridgeCallerSession) IsWithdrawalFinalized

func (_IL1ERC20Bridge *IL1ERC20BridgeCallerSession) IsWithdrawalFinalized(_l2BatchNumber *big.Int, _l2MessageIndex *big.Int) (bool, error)

IsWithdrawalFinalized is a free data retrieval call binding the contract method 0x4bed8212.

Solidity: function isWithdrawalFinalized(uint256 _l2BatchNumber, uint256 _l2MessageIndex) view returns(bool)

func (*IL1ERC20BridgeCallerSession) L2Bridge

func (_IL1ERC20Bridge *IL1ERC20BridgeCallerSession) L2Bridge() (common.Address, error)

L2Bridge is a free data retrieval call binding the contract method 0xae1f6aaf.

Solidity: function l2Bridge() view returns(address)

func (*IL1ERC20BridgeCallerSession) L2TokenAddress

func (_IL1ERC20Bridge *IL1ERC20BridgeCallerSession) L2TokenAddress(_l1Token common.Address) (common.Address, error)

L2TokenAddress is a free data retrieval call binding the contract method 0xf5f15168.

Solidity: function l2TokenAddress(address _l1Token) view returns(address)

func (*IL1ERC20BridgeCallerSession) L2TokenBeacon

func (_IL1ERC20Bridge *IL1ERC20BridgeCallerSession) L2TokenBeacon() (common.Address, error)

L2TokenBeacon is a free data retrieval call binding the contract method 0x6dde7209.

Solidity: function l2TokenBeacon() view returns(address)

func (*IL1ERC20BridgeCallerSession) SHAREDBRIDGE

func (_IL1ERC20Bridge *IL1ERC20BridgeCallerSession) SHAREDBRIDGE() (common.Address, error)

SHAREDBRIDGE is a free data retrieval call binding the contract method 0x546b6d2a.

Solidity: function SHARED_BRIDGE() view returns(address)

type IL1ERC20BridgeClaimedFailedDeposit

type IL1ERC20BridgeClaimedFailedDeposit struct {
	To      common.Address
	L1Token common.Address
	Amount  *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

IL1ERC20BridgeClaimedFailedDeposit represents a ClaimedFailedDeposit event raised by the IL1ERC20Bridge contract.

type IL1ERC20BridgeClaimedFailedDepositIterator

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

IL1ERC20BridgeClaimedFailedDepositIterator is returned from FilterClaimedFailedDeposit and is used to iterate over the raw logs and unpacked data for ClaimedFailedDeposit events raised by the IL1ERC20Bridge contract.

func (*IL1ERC20BridgeClaimedFailedDepositIterator) Close

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

func (*IL1ERC20BridgeClaimedFailedDepositIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*IL1ERC20BridgeClaimedFailedDepositIterator) Next

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 IL1ERC20BridgeDepositInitiated

type IL1ERC20BridgeDepositInitiated struct {
	L2DepositTxHash [32]byte
	From            common.Address
	To              common.Address
	L1Token         common.Address
	Amount          *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

IL1ERC20BridgeDepositInitiated represents a DepositInitiated event raised by the IL1ERC20Bridge contract.

type IL1ERC20BridgeDepositInitiatedIterator

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

IL1ERC20BridgeDepositInitiatedIterator is returned from FilterDepositInitiated and is used to iterate over the raw logs and unpacked data for DepositInitiated events raised by the IL1ERC20Bridge contract.

func (*IL1ERC20BridgeDepositInitiatedIterator) Close

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

func (*IL1ERC20BridgeDepositInitiatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*IL1ERC20BridgeDepositInitiatedIterator) Next

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 IL1ERC20BridgeFilterer

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

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

func NewIL1ERC20BridgeFilterer

func NewIL1ERC20BridgeFilterer(address common.Address, filterer bind.ContractFilterer) (*IL1ERC20BridgeFilterer, error)

NewIL1ERC20BridgeFilterer creates a new log filterer instance of IL1ERC20Bridge, bound to a specific deployed contract.

func (*IL1ERC20BridgeFilterer) FilterClaimedFailedDeposit

func (_IL1ERC20Bridge *IL1ERC20BridgeFilterer) FilterClaimedFailedDeposit(opts *bind.FilterOpts, to []common.Address, l1Token []common.Address) (*IL1ERC20BridgeClaimedFailedDepositIterator, error)

FilterClaimedFailedDeposit is a free log retrieval operation binding the contract event 0xbe066dc591f4a444f75176d387c3e6c775e5706d9ea9a91d11eb49030c66cf60.

Solidity: event ClaimedFailedDeposit(address indexed to, address indexed l1Token, uint256 amount)

func (*IL1ERC20BridgeFilterer) FilterDepositInitiated

func (_IL1ERC20Bridge *IL1ERC20BridgeFilterer) FilterDepositInitiated(opts *bind.FilterOpts, l2DepositTxHash [][32]byte, from []common.Address, to []common.Address) (*IL1ERC20BridgeDepositInitiatedIterator, error)

FilterDepositInitiated is a free log retrieval operation binding the contract event 0xdd341179f4edc78148d894d0213a96d212af2cbaf223d19ef6d483bdd47ab81d.

Solidity: event DepositInitiated(bytes32 indexed l2DepositTxHash, address indexed from, address indexed to, address l1Token, uint256 amount)

func (*IL1ERC20BridgeFilterer) FilterWithdrawalFinalized

func (_IL1ERC20Bridge *IL1ERC20BridgeFilterer) FilterWithdrawalFinalized(opts *bind.FilterOpts, to []common.Address, l1Token []common.Address) (*IL1ERC20BridgeWithdrawalFinalizedIterator, error)

FilterWithdrawalFinalized is a free log retrieval operation binding the contract event 0xac1b18083978656d557d6e91c88203585cfda1031bdb14538327121ef140d383.

Solidity: event WithdrawalFinalized(address indexed to, address indexed l1Token, uint256 amount)

func (*IL1ERC20BridgeFilterer) ParseClaimedFailedDeposit

func (_IL1ERC20Bridge *IL1ERC20BridgeFilterer) ParseClaimedFailedDeposit(log types.Log) (*IL1ERC20BridgeClaimedFailedDeposit, error)

ParseClaimedFailedDeposit is a log parse operation binding the contract event 0xbe066dc591f4a444f75176d387c3e6c775e5706d9ea9a91d11eb49030c66cf60.

Solidity: event ClaimedFailedDeposit(address indexed to, address indexed l1Token, uint256 amount)

func (*IL1ERC20BridgeFilterer) ParseDepositInitiated

func (_IL1ERC20Bridge *IL1ERC20BridgeFilterer) ParseDepositInitiated(log types.Log) (*IL1ERC20BridgeDepositInitiated, error)

ParseDepositInitiated is a log parse operation binding the contract event 0xdd341179f4edc78148d894d0213a96d212af2cbaf223d19ef6d483bdd47ab81d.

Solidity: event DepositInitiated(bytes32 indexed l2DepositTxHash, address indexed from, address indexed to, address l1Token, uint256 amount)

func (*IL1ERC20BridgeFilterer) ParseWithdrawalFinalized

func (_IL1ERC20Bridge *IL1ERC20BridgeFilterer) ParseWithdrawalFinalized(log types.Log) (*IL1ERC20BridgeWithdrawalFinalized, error)

ParseWithdrawalFinalized is a log parse operation binding the contract event 0xac1b18083978656d557d6e91c88203585cfda1031bdb14538327121ef140d383.

Solidity: event WithdrawalFinalized(address indexed to, address indexed l1Token, uint256 amount)

func (*IL1ERC20BridgeFilterer) WatchClaimedFailedDeposit

func (_IL1ERC20Bridge *IL1ERC20BridgeFilterer) WatchClaimedFailedDeposit(opts *bind.WatchOpts, sink chan<- *IL1ERC20BridgeClaimedFailedDeposit, to []common.Address, l1Token []common.Address) (event.Subscription, error)

WatchClaimedFailedDeposit is a free log subscription operation binding the contract event 0xbe066dc591f4a444f75176d387c3e6c775e5706d9ea9a91d11eb49030c66cf60.

Solidity: event ClaimedFailedDeposit(address indexed to, address indexed l1Token, uint256 amount)

func (*IL1ERC20BridgeFilterer) WatchDepositInitiated

func (_IL1ERC20Bridge *IL1ERC20BridgeFilterer) WatchDepositInitiated(opts *bind.WatchOpts, sink chan<- *IL1ERC20BridgeDepositInitiated, l2DepositTxHash [][32]byte, from []common.Address, to []common.Address) (event.Subscription, error)

WatchDepositInitiated is a free log subscription operation binding the contract event 0xdd341179f4edc78148d894d0213a96d212af2cbaf223d19ef6d483bdd47ab81d.

Solidity: event DepositInitiated(bytes32 indexed l2DepositTxHash, address indexed from, address indexed to, address l1Token, uint256 amount)

func (*IL1ERC20BridgeFilterer) WatchWithdrawalFinalized

func (_IL1ERC20Bridge *IL1ERC20BridgeFilterer) WatchWithdrawalFinalized(opts *bind.WatchOpts, sink chan<- *IL1ERC20BridgeWithdrawalFinalized, to []common.Address, l1Token []common.Address) (event.Subscription, error)

WatchWithdrawalFinalized is a free log subscription operation binding the contract event 0xac1b18083978656d557d6e91c88203585cfda1031bdb14538327121ef140d383.

Solidity: event WithdrawalFinalized(address indexed to, address indexed l1Token, uint256 amount)

type IL1ERC20BridgeRaw

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

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

func (*IL1ERC20BridgeRaw) Call

func (_IL1ERC20Bridge *IL1ERC20BridgeRaw) 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 (*IL1ERC20BridgeRaw) Transact

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

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

func (*IL1ERC20BridgeRaw) Transfer

func (_IL1ERC20Bridge *IL1ERC20BridgeRaw) 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 IL1ERC20BridgeSession

type IL1ERC20BridgeSession struct {
	Contract     *IL1ERC20Bridge   // 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
}

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

func (*IL1ERC20BridgeSession) ClaimFailedDeposit

func (_IL1ERC20Bridge *IL1ERC20BridgeSession) ClaimFailedDeposit(_depositSender common.Address, _l1Token common.Address, _l2TxHash [32]byte, _l2BatchNumber *big.Int, _l2MessageIndex *big.Int, _l2TxNumberInBatch uint16, _merkleProof [][32]byte) (*types.Transaction, error)

ClaimFailedDeposit is a paid mutator transaction binding the contract method 0x19fa7f62.

Solidity: function claimFailedDeposit(address _depositSender, address _l1Token, bytes32 _l2TxHash, uint256 _l2BatchNumber, uint256 _l2MessageIndex, uint16 _l2TxNumberInBatch, bytes32[] _merkleProof) returns()

func (*IL1ERC20BridgeSession) Deposit

func (_IL1ERC20Bridge *IL1ERC20BridgeSession) Deposit(_l2Receiver common.Address, _l1Token common.Address, _amount *big.Int, _l2TxGasLimit *big.Int, _l2TxGasPerPubdataByte *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x933999fb.

Solidity: function deposit(address _l2Receiver, address _l1Token, uint256 _amount, uint256 _l2TxGasLimit, uint256 _l2TxGasPerPubdataByte) payable returns(bytes32 txHash)

func (*IL1ERC20BridgeSession) Deposit0

func (_IL1ERC20Bridge *IL1ERC20BridgeSession) Deposit0(_l2Receiver common.Address, _l1Token common.Address, _amount *big.Int, _l2TxGasLimit *big.Int, _l2TxGasPerPubdataByte *big.Int, _refundRecipient common.Address) (*types.Transaction, error)

Deposit0 is a paid mutator transaction binding the contract method 0xe8b99b1b.

Solidity: function deposit(address _l2Receiver, address _l1Token, uint256 _amount, uint256 _l2TxGasLimit, uint256 _l2TxGasPerPubdataByte, address _refundRecipient) payable returns(bytes32 txHash)

func (*IL1ERC20BridgeSession) DepositAmount

func (_IL1ERC20Bridge *IL1ERC20BridgeSession) DepositAmount(_account common.Address, _l1Token common.Address, _depositL2TxHash [32]byte) (*types.Transaction, error)

DepositAmount is a paid mutator transaction binding the contract method 0x01eae183.

Solidity: function depositAmount(address _account, address _l1Token, bytes32 _depositL2TxHash) returns(uint256 amount)

func (*IL1ERC20BridgeSession) FinalizeWithdrawal

func (_IL1ERC20Bridge *IL1ERC20BridgeSession) FinalizeWithdrawal(_l2BatchNumber *big.Int, _l2MessageIndex *big.Int, _l2TxNumberInBatch uint16, _message []byte, _merkleProof [][32]byte) (*types.Transaction, error)

FinalizeWithdrawal is a paid mutator transaction binding the contract method 0x11a2ccc1.

Solidity: function finalizeWithdrawal(uint256 _l2BatchNumber, uint256 _l2MessageIndex, uint16 _l2TxNumberInBatch, bytes _message, bytes32[] _merkleProof) returns()

func (*IL1ERC20BridgeSession) IsWithdrawalFinalized

func (_IL1ERC20Bridge *IL1ERC20BridgeSession) IsWithdrawalFinalized(_l2BatchNumber *big.Int, _l2MessageIndex *big.Int) (bool, error)

IsWithdrawalFinalized is a free data retrieval call binding the contract method 0x4bed8212.

Solidity: function isWithdrawalFinalized(uint256 _l2BatchNumber, uint256 _l2MessageIndex) view returns(bool)

func (*IL1ERC20BridgeSession) L2Bridge

func (_IL1ERC20Bridge *IL1ERC20BridgeSession) L2Bridge() (common.Address, error)

L2Bridge is a free data retrieval call binding the contract method 0xae1f6aaf.

Solidity: function l2Bridge() view returns(address)

func (*IL1ERC20BridgeSession) L2TokenAddress

func (_IL1ERC20Bridge *IL1ERC20BridgeSession) L2TokenAddress(_l1Token common.Address) (common.Address, error)

L2TokenAddress is a free data retrieval call binding the contract method 0xf5f15168.

Solidity: function l2TokenAddress(address _l1Token) view returns(address)

func (*IL1ERC20BridgeSession) L2TokenBeacon

func (_IL1ERC20Bridge *IL1ERC20BridgeSession) L2TokenBeacon() (common.Address, error)

L2TokenBeacon is a free data retrieval call binding the contract method 0x6dde7209.

Solidity: function l2TokenBeacon() view returns(address)

func (*IL1ERC20BridgeSession) SHAREDBRIDGE

func (_IL1ERC20Bridge *IL1ERC20BridgeSession) SHAREDBRIDGE() (common.Address, error)

SHAREDBRIDGE is a free data retrieval call binding the contract method 0x546b6d2a.

Solidity: function SHARED_BRIDGE() view returns(address)

func (*IL1ERC20BridgeSession) TransferTokenToSharedBridge

func (_IL1ERC20Bridge *IL1ERC20BridgeSession) TransferTokenToSharedBridge(_token common.Address) (*types.Transaction, error)

TransferTokenToSharedBridge is a paid mutator transaction binding the contract method 0xb7b080ab.

Solidity: function transferTokenToSharedBridge(address _token) returns()

type IL1ERC20BridgeTransactor

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

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

func NewIL1ERC20BridgeTransactor

func NewIL1ERC20BridgeTransactor(address common.Address, transactor bind.ContractTransactor) (*IL1ERC20BridgeTransactor, error)

NewIL1ERC20BridgeTransactor creates a new write-only instance of IL1ERC20Bridge, bound to a specific deployed contract.

func (*IL1ERC20BridgeTransactor) ClaimFailedDeposit

func (_IL1ERC20Bridge *IL1ERC20BridgeTransactor) ClaimFailedDeposit(opts *bind.TransactOpts, _depositSender common.Address, _l1Token common.Address, _l2TxHash [32]byte, _l2BatchNumber *big.Int, _l2MessageIndex *big.Int, _l2TxNumberInBatch uint16, _merkleProof [][32]byte) (*types.Transaction, error)

ClaimFailedDeposit is a paid mutator transaction binding the contract method 0x19fa7f62.

Solidity: function claimFailedDeposit(address _depositSender, address _l1Token, bytes32 _l2TxHash, uint256 _l2BatchNumber, uint256 _l2MessageIndex, uint16 _l2TxNumberInBatch, bytes32[] _merkleProof) returns()

func (*IL1ERC20BridgeTransactor) Deposit

func (_IL1ERC20Bridge *IL1ERC20BridgeTransactor) Deposit(opts *bind.TransactOpts, _l2Receiver common.Address, _l1Token common.Address, _amount *big.Int, _l2TxGasLimit *big.Int, _l2TxGasPerPubdataByte *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x933999fb.

Solidity: function deposit(address _l2Receiver, address _l1Token, uint256 _amount, uint256 _l2TxGasLimit, uint256 _l2TxGasPerPubdataByte) payable returns(bytes32 txHash)

func (*IL1ERC20BridgeTransactor) Deposit0

func (_IL1ERC20Bridge *IL1ERC20BridgeTransactor) Deposit0(opts *bind.TransactOpts, _l2Receiver common.Address, _l1Token common.Address, _amount *big.Int, _l2TxGasLimit *big.Int, _l2TxGasPerPubdataByte *big.Int, _refundRecipient common.Address) (*types.Transaction, error)

Deposit0 is a paid mutator transaction binding the contract method 0xe8b99b1b.

Solidity: function deposit(address _l2Receiver, address _l1Token, uint256 _amount, uint256 _l2TxGasLimit, uint256 _l2TxGasPerPubdataByte, address _refundRecipient) payable returns(bytes32 txHash)

func (*IL1ERC20BridgeTransactor) DepositAmount

func (_IL1ERC20Bridge *IL1ERC20BridgeTransactor) DepositAmount(opts *bind.TransactOpts, _account common.Address, _l1Token common.Address, _depositL2TxHash [32]byte) (*types.Transaction, error)

DepositAmount is a paid mutator transaction binding the contract method 0x01eae183.

Solidity: function depositAmount(address _account, address _l1Token, bytes32 _depositL2TxHash) returns(uint256 amount)

func (*IL1ERC20BridgeTransactor) FinalizeWithdrawal

func (_IL1ERC20Bridge *IL1ERC20BridgeTransactor) FinalizeWithdrawal(opts *bind.TransactOpts, _l2BatchNumber *big.Int, _l2MessageIndex *big.Int, _l2TxNumberInBatch uint16, _message []byte, _merkleProof [][32]byte) (*types.Transaction, error)

FinalizeWithdrawal is a paid mutator transaction binding the contract method 0x11a2ccc1.

Solidity: function finalizeWithdrawal(uint256 _l2BatchNumber, uint256 _l2MessageIndex, uint16 _l2TxNumberInBatch, bytes _message, bytes32[] _merkleProof) returns()

func (*IL1ERC20BridgeTransactor) TransferTokenToSharedBridge

func (_IL1ERC20Bridge *IL1ERC20BridgeTransactor) TransferTokenToSharedBridge(opts *bind.TransactOpts, _token common.Address) (*types.Transaction, error)

TransferTokenToSharedBridge is a paid mutator transaction binding the contract method 0xb7b080ab.

Solidity: function transferTokenToSharedBridge(address _token) returns()

type IL1ERC20BridgeTransactorRaw

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

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

func (*IL1ERC20BridgeTransactorRaw) Transact

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

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

func (*IL1ERC20BridgeTransactorRaw) Transfer

func (_IL1ERC20Bridge *IL1ERC20BridgeTransactorRaw) 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 IL1ERC20BridgeTransactorSession

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

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

func (*IL1ERC20BridgeTransactorSession) ClaimFailedDeposit

func (_IL1ERC20Bridge *IL1ERC20BridgeTransactorSession) ClaimFailedDeposit(_depositSender common.Address, _l1Token common.Address, _l2TxHash [32]byte, _l2BatchNumber *big.Int, _l2MessageIndex *big.Int, _l2TxNumberInBatch uint16, _merkleProof [][32]byte) (*types.Transaction, error)

ClaimFailedDeposit is a paid mutator transaction binding the contract method 0x19fa7f62.

Solidity: function claimFailedDeposit(address _depositSender, address _l1Token, bytes32 _l2TxHash, uint256 _l2BatchNumber, uint256 _l2MessageIndex, uint16 _l2TxNumberInBatch, bytes32[] _merkleProof) returns()

func (*IL1ERC20BridgeTransactorSession) Deposit

func (_IL1ERC20Bridge *IL1ERC20BridgeTransactorSession) Deposit(_l2Receiver common.Address, _l1Token common.Address, _amount *big.Int, _l2TxGasLimit *big.Int, _l2TxGasPerPubdataByte *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x933999fb.

Solidity: function deposit(address _l2Receiver, address _l1Token, uint256 _amount, uint256 _l2TxGasLimit, uint256 _l2TxGasPerPubdataByte) payable returns(bytes32 txHash)

func (*IL1ERC20BridgeTransactorSession) Deposit0

func (_IL1ERC20Bridge *IL1ERC20BridgeTransactorSession) Deposit0(_l2Receiver common.Address, _l1Token common.Address, _amount *big.Int, _l2TxGasLimit *big.Int, _l2TxGasPerPubdataByte *big.Int, _refundRecipient common.Address) (*types.Transaction, error)

Deposit0 is a paid mutator transaction binding the contract method 0xe8b99b1b.

Solidity: function deposit(address _l2Receiver, address _l1Token, uint256 _amount, uint256 _l2TxGasLimit, uint256 _l2TxGasPerPubdataByte, address _refundRecipient) payable returns(bytes32 txHash)

func (*IL1ERC20BridgeTransactorSession) DepositAmount

func (_IL1ERC20Bridge *IL1ERC20BridgeTransactorSession) DepositAmount(_account common.Address, _l1Token common.Address, _depositL2TxHash [32]byte) (*types.Transaction, error)

DepositAmount is a paid mutator transaction binding the contract method 0x01eae183.

Solidity: function depositAmount(address _account, address _l1Token, bytes32 _depositL2TxHash) returns(uint256 amount)

func (*IL1ERC20BridgeTransactorSession) FinalizeWithdrawal

func (_IL1ERC20Bridge *IL1ERC20BridgeTransactorSession) FinalizeWithdrawal(_l2BatchNumber *big.Int, _l2MessageIndex *big.Int, _l2TxNumberInBatch uint16, _message []byte, _merkleProof [][32]byte) (*types.Transaction, error)

FinalizeWithdrawal is a paid mutator transaction binding the contract method 0x11a2ccc1.

Solidity: function finalizeWithdrawal(uint256 _l2BatchNumber, uint256 _l2MessageIndex, uint16 _l2TxNumberInBatch, bytes _message, bytes32[] _merkleProof) returns()

func (*IL1ERC20BridgeTransactorSession) TransferTokenToSharedBridge

func (_IL1ERC20Bridge *IL1ERC20BridgeTransactorSession) TransferTokenToSharedBridge(_token common.Address) (*types.Transaction, error)

TransferTokenToSharedBridge is a paid mutator transaction binding the contract method 0xb7b080ab.

Solidity: function transferTokenToSharedBridge(address _token) returns()

type IL1ERC20BridgeWithdrawalFinalized

type IL1ERC20BridgeWithdrawalFinalized struct {
	To      common.Address
	L1Token common.Address
	Amount  *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

IL1ERC20BridgeWithdrawalFinalized represents a WithdrawalFinalized event raised by the IL1ERC20Bridge contract.

type IL1ERC20BridgeWithdrawalFinalizedIterator

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

IL1ERC20BridgeWithdrawalFinalizedIterator is returned from FilterWithdrawalFinalized and is used to iterate over the raw logs and unpacked data for WithdrawalFinalized events raised by the IL1ERC20Bridge contract.

func (*IL1ERC20BridgeWithdrawalFinalizedIterator) Close

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

func (*IL1ERC20BridgeWithdrawalFinalizedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*IL1ERC20BridgeWithdrawalFinalizedIterator) Next

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