l1bridge

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 IL1BridgeABI = IL1BridgeMetaData.ABI

IL1BridgeABI is the input ABI used to generate the binding from. Deprecated: Use IL1BridgeMetaData.ABI instead.

View Source
var IL1BridgeMetaData = &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\":[{\"internalType\":\"address\",\"name\":\"_depositSender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_l1Token\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_l2TxHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_l2BlockNumber\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_l2MessageIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"_l2TxNumberInBlock\",\"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\"},{\"internalType\":\"address\",\"name\":\"_refundRecipient\",\"type\":\"address\"}],\"name\":\"deposit\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_l2BlockNumber\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_l2MessageIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"_l2TxNumberInBlock\",\"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\":\"_l2BlockNumber\",\"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\"}]",
}

IL1BridgeMetaData contains all meta data concerning the IL1Bridge contract.

Functions

This section is empty.

Types

type IL1Bridge

type IL1Bridge struct {
	IL1BridgeCaller     // Read-only binding to the contract
	IL1BridgeTransactor // Write-only binding to the contract
	IL1BridgeFilterer   // Log filterer for contract events
}

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

func NewIL1Bridge

func NewIL1Bridge(address common.Address, backend bind.ContractBackend) (*IL1Bridge, error)

NewIL1Bridge creates a new instance of IL1Bridge, bound to a specific deployed contract.

type IL1BridgeCaller

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

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

func NewIL1BridgeCaller

func NewIL1BridgeCaller(address common.Address, caller bind.ContractCaller) (*IL1BridgeCaller, error)

NewIL1BridgeCaller creates a new read-only instance of IL1Bridge, bound to a specific deployed contract.

func (*IL1BridgeCaller) IsWithdrawalFinalized

func (_IL1Bridge *IL1BridgeCaller) IsWithdrawalFinalized(opts *bind.CallOpts, _l2BlockNumber *big.Int, _l2MessageIndex *big.Int) (bool, error)

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

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

func (*IL1BridgeCaller) L2Bridge

func (_IL1Bridge *IL1BridgeCaller) 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 (*IL1BridgeCaller) L2TokenAddress

func (_IL1Bridge *IL1BridgeCaller) 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)

type IL1BridgeCallerRaw

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

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

func (*IL1BridgeCallerRaw) Call

func (_IL1Bridge *IL1BridgeCallerRaw) 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 IL1BridgeCallerSession

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

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

func (*IL1BridgeCallerSession) IsWithdrawalFinalized

func (_IL1Bridge *IL1BridgeCallerSession) IsWithdrawalFinalized(_l2BlockNumber *big.Int, _l2MessageIndex *big.Int) (bool, error)

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

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

func (*IL1BridgeCallerSession) L2Bridge

func (_IL1Bridge *IL1BridgeCallerSession) L2Bridge() (common.Address, error)

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

Solidity: function l2Bridge() view returns(address)

func (*IL1BridgeCallerSession) L2TokenAddress

func (_IL1Bridge *IL1BridgeCallerSession) 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)

type IL1BridgeClaimedFailedDeposit

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

IL1BridgeClaimedFailedDeposit represents a ClaimedFailedDeposit event raised by the IL1Bridge contract.

type IL1BridgeClaimedFailedDepositIterator

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

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

func (*IL1BridgeClaimedFailedDepositIterator) Close

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

func (*IL1BridgeClaimedFailedDepositIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*IL1BridgeClaimedFailedDepositIterator) 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 IL1BridgeDepositInitiated

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

IL1BridgeDepositInitiated represents a DepositInitiated event raised by the IL1Bridge contract.

type IL1BridgeDepositInitiatedIterator

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

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

func (*IL1BridgeDepositInitiatedIterator) Close

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

func (*IL1BridgeDepositInitiatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*IL1BridgeDepositInitiatedIterator) 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 IL1BridgeFilterer

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

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

func NewIL1BridgeFilterer

func NewIL1BridgeFilterer(address common.Address, filterer bind.ContractFilterer) (*IL1BridgeFilterer, error)

NewIL1BridgeFilterer creates a new log filterer instance of IL1Bridge, bound to a specific deployed contract.

func (*IL1BridgeFilterer) FilterClaimedFailedDeposit

func (_IL1Bridge *IL1BridgeFilterer) FilterClaimedFailedDeposit(opts *bind.FilterOpts, to []common.Address, l1Token []common.Address) (*IL1BridgeClaimedFailedDepositIterator, 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 (*IL1BridgeFilterer) FilterDepositInitiated

func (_IL1Bridge *IL1BridgeFilterer) FilterDepositInitiated(opts *bind.FilterOpts, l2DepositTxHash [][32]byte, from []common.Address, to []common.Address) (*IL1BridgeDepositInitiatedIterator, 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 (*IL1BridgeFilterer) FilterWithdrawalFinalized

func (_IL1Bridge *IL1BridgeFilterer) FilterWithdrawalFinalized(opts *bind.FilterOpts, to []common.Address, l1Token []common.Address) (*IL1BridgeWithdrawalFinalizedIterator, 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 (*IL1BridgeFilterer) ParseClaimedFailedDeposit

func (_IL1Bridge *IL1BridgeFilterer) ParseClaimedFailedDeposit(log types.Log) (*IL1BridgeClaimedFailedDeposit, error)

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

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

func (*IL1BridgeFilterer) ParseDepositInitiated

func (_IL1Bridge *IL1BridgeFilterer) ParseDepositInitiated(log types.Log) (*IL1BridgeDepositInitiated, 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 (*IL1BridgeFilterer) ParseWithdrawalFinalized

func (_IL1Bridge *IL1BridgeFilterer) ParseWithdrawalFinalized(log types.Log) (*IL1BridgeWithdrawalFinalized, error)

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

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

func (*IL1BridgeFilterer) WatchClaimedFailedDeposit

func (_IL1Bridge *IL1BridgeFilterer) WatchClaimedFailedDeposit(opts *bind.WatchOpts, sink chan<- *IL1BridgeClaimedFailedDeposit, 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 (*IL1BridgeFilterer) WatchDepositInitiated

func (_IL1Bridge *IL1BridgeFilterer) WatchDepositInitiated(opts *bind.WatchOpts, sink chan<- *IL1BridgeDepositInitiated, 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 (*IL1BridgeFilterer) WatchWithdrawalFinalized

func (_IL1Bridge *IL1BridgeFilterer) WatchWithdrawalFinalized(opts *bind.WatchOpts, sink chan<- *IL1BridgeWithdrawalFinalized, 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 IL1BridgeRaw

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

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

func (*IL1BridgeRaw) Call

func (_IL1Bridge *IL1BridgeRaw) 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 (*IL1BridgeRaw) Transact

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

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

func (*IL1BridgeRaw) Transfer

func (_IL1Bridge *IL1BridgeRaw) 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 IL1BridgeSession

type IL1BridgeSession struct {
	Contract     *IL1Bridge        // 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
}

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

func (*IL1BridgeSession) ClaimFailedDeposit

func (_IL1Bridge *IL1BridgeSession) ClaimFailedDeposit(_depositSender common.Address, _l1Token common.Address, _l2TxHash [32]byte, _l2BlockNumber *big.Int, _l2MessageIndex *big.Int, _l2TxNumberInBlock 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 _l2BlockNumber, uint256 _l2MessageIndex, uint16 _l2TxNumberInBlock, bytes32[] _merkleProof) returns()

func (*IL1BridgeSession) Deposit

func (_IL1Bridge *IL1BridgeSession) Deposit(_l2Receiver common.Address, _l1Token common.Address, _amount *big.Int, _l2TxGasLimit *big.Int, _l2TxGasPerPubdataByte *big.Int, _refundRecipient common.Address) (*types.Transaction, error)

Deposit 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 (*IL1BridgeSession) FinalizeWithdrawal

func (_IL1Bridge *IL1BridgeSession) FinalizeWithdrawal(_l2BlockNumber *big.Int, _l2MessageIndex *big.Int, _l2TxNumberInBlock uint16, _message []byte, _merkleProof [][32]byte) (*types.Transaction, error)

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

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

func (*IL1BridgeSession) IsWithdrawalFinalized

func (_IL1Bridge *IL1BridgeSession) IsWithdrawalFinalized(_l2BlockNumber *big.Int, _l2MessageIndex *big.Int) (bool, error)

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

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

func (*IL1BridgeSession) L2Bridge

func (_IL1Bridge *IL1BridgeSession) L2Bridge() (common.Address, error)

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

Solidity: function l2Bridge() view returns(address)

func (*IL1BridgeSession) L2TokenAddress

func (_IL1Bridge *IL1BridgeSession) 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)

type IL1BridgeTransactor

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

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

func NewIL1BridgeTransactor

func NewIL1BridgeTransactor(address common.Address, transactor bind.ContractTransactor) (*IL1BridgeTransactor, error)

NewIL1BridgeTransactor creates a new write-only instance of IL1Bridge, bound to a specific deployed contract.

func (*IL1BridgeTransactor) ClaimFailedDeposit

func (_IL1Bridge *IL1BridgeTransactor) ClaimFailedDeposit(opts *bind.TransactOpts, _depositSender common.Address, _l1Token common.Address, _l2TxHash [32]byte, _l2BlockNumber *big.Int, _l2MessageIndex *big.Int, _l2TxNumberInBlock 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 _l2BlockNumber, uint256 _l2MessageIndex, uint16 _l2TxNumberInBlock, bytes32[] _merkleProof) returns()

func (*IL1BridgeTransactor) Deposit

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

Deposit 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 (*IL1BridgeTransactor) FinalizeWithdrawal

func (_IL1Bridge *IL1BridgeTransactor) FinalizeWithdrawal(opts *bind.TransactOpts, _l2BlockNumber *big.Int, _l2MessageIndex *big.Int, _l2TxNumberInBlock uint16, _message []byte, _merkleProof [][32]byte) (*types.Transaction, error)

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

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

type IL1BridgeTransactorRaw

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

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

func (*IL1BridgeTransactorRaw) Transact

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

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

func (*IL1BridgeTransactorRaw) Transfer

func (_IL1Bridge *IL1BridgeTransactorRaw) 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 IL1BridgeTransactorSession

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

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

func (*IL1BridgeTransactorSession) ClaimFailedDeposit

func (_IL1Bridge *IL1BridgeTransactorSession) ClaimFailedDeposit(_depositSender common.Address, _l1Token common.Address, _l2TxHash [32]byte, _l2BlockNumber *big.Int, _l2MessageIndex *big.Int, _l2TxNumberInBlock 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 _l2BlockNumber, uint256 _l2MessageIndex, uint16 _l2TxNumberInBlock, bytes32[] _merkleProof) returns()

func (*IL1BridgeTransactorSession) Deposit

func (_IL1Bridge *IL1BridgeTransactorSession) Deposit(_l2Receiver common.Address, _l1Token common.Address, _amount *big.Int, _l2TxGasLimit *big.Int, _l2TxGasPerPubdataByte *big.Int, _refundRecipient common.Address) (*types.Transaction, error)

Deposit 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 (*IL1BridgeTransactorSession) FinalizeWithdrawal

func (_IL1Bridge *IL1BridgeTransactorSession) FinalizeWithdrawal(_l2BlockNumber *big.Int, _l2MessageIndex *big.Int, _l2TxNumberInBlock uint16, _message []byte, _merkleProof [][32]byte) (*types.Transaction, error)

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

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

type IL1BridgeWithdrawalFinalized

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

IL1BridgeWithdrawalFinalized represents a WithdrawalFinalized event raised by the IL1Bridge contract.

type IL1BridgeWithdrawalFinalizedIterator

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

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

func (*IL1BridgeWithdrawalFinalizedIterator) Close

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

func (*IL1BridgeWithdrawalFinalizedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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