l2bridge

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 IL2BridgeABI = IL2BridgeMetaData.ABI

IL2BridgeABI is the input ABI used to generate the binding from. Deprecated: Use IL2BridgeMetaData.ABI instead.

View Source
var IL2BridgeMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"l1Sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"l2Receiver\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"l2Token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"FinalizeDeposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"l2Sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"l1Receiver\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"l2Token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"WithdrawalInitiated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_l1Sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_l2Receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_l1Token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"finalizeDeposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"l1Bridge\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_l2Token\",\"type\":\"address\"}],\"name\":\"l1TokenAddress\",\"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\":[{\"internalType\":\"address\",\"name\":\"_l1Receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_l2Token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

IL2BridgeMetaData contains all meta data concerning the IL2Bridge contract.

Functions

This section is empty.

Types

type IL2Bridge

type IL2Bridge struct {
	IL2BridgeCaller     // Read-only binding to the contract
	IL2BridgeTransactor // Write-only binding to the contract
	IL2BridgeFilterer   // Log filterer for contract events
}

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

func NewIL2Bridge

func NewIL2Bridge(address common.Address, backend bind.ContractBackend) (*IL2Bridge, error)

NewIL2Bridge creates a new instance of IL2Bridge, bound to a specific deployed contract.

type IL2BridgeCaller

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

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

func NewIL2BridgeCaller

func NewIL2BridgeCaller(address common.Address, caller bind.ContractCaller) (*IL2BridgeCaller, error)

NewIL2BridgeCaller creates a new read-only instance of IL2Bridge, bound to a specific deployed contract.

func (*IL2BridgeCaller) L1Bridge

func (_IL2Bridge *IL2BridgeCaller) L1Bridge(opts *bind.CallOpts) (common.Address, error)

L1Bridge is a free data retrieval call binding the contract method 0x969b53da.

Solidity: function l1Bridge() view returns(address)

func (*IL2BridgeCaller) L1TokenAddress

func (_IL2Bridge *IL2BridgeCaller) L1TokenAddress(opts *bind.CallOpts, _l2Token common.Address) (common.Address, error)

L1TokenAddress is a free data retrieval call binding the contract method 0xf54266a2.

Solidity: function l1TokenAddress(address _l2Token) view returns(address)

func (*IL2BridgeCaller) L2TokenAddress

func (_IL2Bridge *IL2BridgeCaller) 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 IL2BridgeCallerRaw

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

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

func (*IL2BridgeCallerRaw) Call

func (_IL2Bridge *IL2BridgeCallerRaw) 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 IL2BridgeCallerSession

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

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

func (*IL2BridgeCallerSession) L1Bridge

func (_IL2Bridge *IL2BridgeCallerSession) L1Bridge() (common.Address, error)

L1Bridge is a free data retrieval call binding the contract method 0x969b53da.

Solidity: function l1Bridge() view returns(address)

func (*IL2BridgeCallerSession) L1TokenAddress

func (_IL2Bridge *IL2BridgeCallerSession) L1TokenAddress(_l2Token common.Address) (common.Address, error)

L1TokenAddress is a free data retrieval call binding the contract method 0xf54266a2.

Solidity: function l1TokenAddress(address _l2Token) view returns(address)

func (*IL2BridgeCallerSession) L2TokenAddress

func (_IL2Bridge *IL2BridgeCallerSession) 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 IL2BridgeFilterer

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

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

func NewIL2BridgeFilterer

func NewIL2BridgeFilterer(address common.Address, filterer bind.ContractFilterer) (*IL2BridgeFilterer, error)

NewIL2BridgeFilterer creates a new log filterer instance of IL2Bridge, bound to a specific deployed contract.

func (*IL2BridgeFilterer) FilterFinalizeDeposit

func (_IL2Bridge *IL2BridgeFilterer) FilterFinalizeDeposit(opts *bind.FilterOpts, l1Sender []common.Address, l2Receiver []common.Address, l2Token []common.Address) (*IL2BridgeFinalizeDepositIterator, error)

FilterFinalizeDeposit is a free log retrieval operation binding the contract event 0xb84fba9af218da60d299dc177abd5805e7ac541d2673cbee7808c10017874f63.

Solidity: event FinalizeDeposit(address indexed l1Sender, address indexed l2Receiver, address indexed l2Token, uint256 amount)

func (*IL2BridgeFilterer) FilterWithdrawalInitiated

func (_IL2Bridge *IL2BridgeFilterer) FilterWithdrawalInitiated(opts *bind.FilterOpts, l2Sender []common.Address, l1Receiver []common.Address, l2Token []common.Address) (*IL2BridgeWithdrawalInitiatedIterator, error)

FilterWithdrawalInitiated is a free log retrieval operation binding the contract event 0x2fc3848834aac8e883a2d2a17a7514dc4f2d3dd268089df9b9f5d918259ef3b0.

Solidity: event WithdrawalInitiated(address indexed l2Sender, address indexed l1Receiver, address indexed l2Token, uint256 amount)

func (*IL2BridgeFilterer) ParseFinalizeDeposit

func (_IL2Bridge *IL2BridgeFilterer) ParseFinalizeDeposit(log types.Log) (*IL2BridgeFinalizeDeposit, error)

ParseFinalizeDeposit is a log parse operation binding the contract event 0xb84fba9af218da60d299dc177abd5805e7ac541d2673cbee7808c10017874f63.

Solidity: event FinalizeDeposit(address indexed l1Sender, address indexed l2Receiver, address indexed l2Token, uint256 amount)

func (*IL2BridgeFilterer) ParseWithdrawalInitiated

func (_IL2Bridge *IL2BridgeFilterer) ParseWithdrawalInitiated(log types.Log) (*IL2BridgeWithdrawalInitiated, error)

ParseWithdrawalInitiated is a log parse operation binding the contract event 0x2fc3848834aac8e883a2d2a17a7514dc4f2d3dd268089df9b9f5d918259ef3b0.

Solidity: event WithdrawalInitiated(address indexed l2Sender, address indexed l1Receiver, address indexed l2Token, uint256 amount)

func (*IL2BridgeFilterer) WatchFinalizeDeposit

func (_IL2Bridge *IL2BridgeFilterer) WatchFinalizeDeposit(opts *bind.WatchOpts, sink chan<- *IL2BridgeFinalizeDeposit, l1Sender []common.Address, l2Receiver []common.Address, l2Token []common.Address) (event.Subscription, error)

WatchFinalizeDeposit is a free log subscription operation binding the contract event 0xb84fba9af218da60d299dc177abd5805e7ac541d2673cbee7808c10017874f63.

Solidity: event FinalizeDeposit(address indexed l1Sender, address indexed l2Receiver, address indexed l2Token, uint256 amount)

func (*IL2BridgeFilterer) WatchWithdrawalInitiated

func (_IL2Bridge *IL2BridgeFilterer) WatchWithdrawalInitiated(opts *bind.WatchOpts, sink chan<- *IL2BridgeWithdrawalInitiated, l2Sender []common.Address, l1Receiver []common.Address, l2Token []common.Address) (event.Subscription, error)

WatchWithdrawalInitiated is a free log subscription operation binding the contract event 0x2fc3848834aac8e883a2d2a17a7514dc4f2d3dd268089df9b9f5d918259ef3b0.

Solidity: event WithdrawalInitiated(address indexed l2Sender, address indexed l1Receiver, address indexed l2Token, uint256 amount)

type IL2BridgeFinalizeDeposit

type IL2BridgeFinalizeDeposit struct {
	L1Sender   common.Address
	L2Receiver common.Address
	L2Token    common.Address
	Amount     *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

IL2BridgeFinalizeDeposit represents a FinalizeDeposit event raised by the IL2Bridge contract.

type IL2BridgeFinalizeDepositIterator

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

IL2BridgeFinalizeDepositIterator is returned from FilterFinalizeDeposit and is used to iterate over the raw logs and unpacked data for FinalizeDeposit events raised by the IL2Bridge contract.

func (*IL2BridgeFinalizeDepositIterator) Close

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

func (*IL2BridgeFinalizeDepositIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func (*IL2BridgeRaw) Call

func (_IL2Bridge *IL2BridgeRaw) 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 (*IL2BridgeRaw) Transact

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

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

func (*IL2BridgeRaw) Transfer

func (_IL2Bridge *IL2BridgeRaw) 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 IL2BridgeSession

type IL2BridgeSession struct {
	Contract     *IL2Bridge        // 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
}

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

func (*IL2BridgeSession) FinalizeDeposit

func (_IL2Bridge *IL2BridgeSession) FinalizeDeposit(_l1Sender common.Address, _l2Receiver common.Address, _l1Token common.Address, _amount *big.Int, _data []byte) (*types.Transaction, error)

FinalizeDeposit is a paid mutator transaction binding the contract method 0xcfe7af7c.

Solidity: function finalizeDeposit(address _l1Sender, address _l2Receiver, address _l1Token, uint256 _amount, bytes _data) payable returns()

func (*IL2BridgeSession) L1Bridge

func (_IL2Bridge *IL2BridgeSession) L1Bridge() (common.Address, error)

L1Bridge is a free data retrieval call binding the contract method 0x969b53da.

Solidity: function l1Bridge() view returns(address)

func (*IL2BridgeSession) L1TokenAddress

func (_IL2Bridge *IL2BridgeSession) L1TokenAddress(_l2Token common.Address) (common.Address, error)

L1TokenAddress is a free data retrieval call binding the contract method 0xf54266a2.

Solidity: function l1TokenAddress(address _l2Token) view returns(address)

func (*IL2BridgeSession) L2TokenAddress

func (_IL2Bridge *IL2BridgeSession) 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 (*IL2BridgeSession) Withdraw

func (_IL2Bridge *IL2BridgeSession) Withdraw(_l1Receiver common.Address, _l2Token common.Address, _amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(address _l1Receiver, address _l2Token, uint256 _amount) returns()

type IL2BridgeTransactor

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

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

func NewIL2BridgeTransactor

func NewIL2BridgeTransactor(address common.Address, transactor bind.ContractTransactor) (*IL2BridgeTransactor, error)

NewIL2BridgeTransactor creates a new write-only instance of IL2Bridge, bound to a specific deployed contract.

func (*IL2BridgeTransactor) FinalizeDeposit

func (_IL2Bridge *IL2BridgeTransactor) FinalizeDeposit(opts *bind.TransactOpts, _l1Sender common.Address, _l2Receiver common.Address, _l1Token common.Address, _amount *big.Int, _data []byte) (*types.Transaction, error)

FinalizeDeposit is a paid mutator transaction binding the contract method 0xcfe7af7c.

Solidity: function finalizeDeposit(address _l1Sender, address _l2Receiver, address _l1Token, uint256 _amount, bytes _data) payable returns()

func (*IL2BridgeTransactor) Withdraw

func (_IL2Bridge *IL2BridgeTransactor) Withdraw(opts *bind.TransactOpts, _l1Receiver common.Address, _l2Token common.Address, _amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(address _l1Receiver, address _l2Token, uint256 _amount) returns()

type IL2BridgeTransactorRaw

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

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

func (*IL2BridgeTransactorRaw) Transact

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

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

func (*IL2BridgeTransactorRaw) Transfer

func (_IL2Bridge *IL2BridgeTransactorRaw) 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 IL2BridgeTransactorSession

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

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

func (*IL2BridgeTransactorSession) FinalizeDeposit

func (_IL2Bridge *IL2BridgeTransactorSession) FinalizeDeposit(_l1Sender common.Address, _l2Receiver common.Address, _l1Token common.Address, _amount *big.Int, _data []byte) (*types.Transaction, error)

FinalizeDeposit is a paid mutator transaction binding the contract method 0xcfe7af7c.

Solidity: function finalizeDeposit(address _l1Sender, address _l2Receiver, address _l1Token, uint256 _amount, bytes _data) payable returns()

func (*IL2BridgeTransactorSession) Withdraw

func (_IL2Bridge *IL2BridgeTransactorSession) Withdraw(_l1Receiver common.Address, _l2Token common.Address, _amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(address _l1Receiver, address _l2Token, uint256 _amount) returns()

type IL2BridgeWithdrawalInitiated

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

IL2BridgeWithdrawalInitiated represents a WithdrawalInitiated event raised by the IL2Bridge contract.

type IL2BridgeWithdrawalInitiatedIterator

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

IL2BridgeWithdrawalInitiatedIterator is returned from FilterWithdrawalInitiated and is used to iterate over the raw logs and unpacked data for WithdrawalInitiated events raised by the IL2Bridge contract.

func (*IL2BridgeWithdrawalInitiatedIterator) Close

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

func (*IL2BridgeWithdrawalInitiatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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