Documentation ¶
Index ¶
- Variables
- func CreateAliasedL1TeleporterCommand() *cobra.Command
- func CreateCallForwarderCommand() *cobra.Command
- func CreateCreateL2ForwarderCommand() *cobra.Command
- func CreateL2ForwarderAddressCommand() *cobra.Command
- func CreateL2ForwarderFactoryCommand() *cobra.Command
- func CreateL2ForwarderFactoryCommand2() *cobra.Command
- func CreateL2ForwarderFactoryDeploymentCommand() *cobra.Command
- func CreateL2ForwarderImplementationCommand() *cobra.Command
- func KeyFromFile(keystoreFile string, password string) (*keystore.Key, error)
- func NewChainContext(timeout uint) (context.Context, context.CancelFunc)
- func NewClient(rpcURL string) (*ethclient.Client, error)
- func SetCallParametersFromArgs(opts *bind.CallOpts, pending bool, fromAddress, blockNumber string)
- func SetTransactionParametersFromArgs(opts *bind.TransactOpts, ...)
- func UnlockKeystore(keystoreData []byte, password string) (*keystore.Key, error)
- type IL2ForwarderL2ForwarderParams
- type L2ForwarderFactory
- type L2ForwarderFactoryCalledL2Forwarder
- type L2ForwarderFactoryCalledL2ForwarderIterator
- type L2ForwarderFactoryCaller
- func (_L2ForwarderFactory *L2ForwarderFactoryCaller) AliasedL1Teleporter(opts *bind.CallOpts) (common.Address, error)
- func (_L2ForwarderFactory *L2ForwarderFactoryCaller) L2ForwarderAddress(opts *bind.CallOpts, owner common.Address, routerOrInbox common.Address, ...) (common.Address, error)
- func (_L2ForwarderFactory *L2ForwarderFactoryCaller) L2ForwarderFactory(opts *bind.CallOpts) (common.Address, error)
- func (_L2ForwarderFactory *L2ForwarderFactoryCaller) L2ForwarderImplementation(opts *bind.CallOpts) (common.Address, error)
- type L2ForwarderFactoryCallerRaw
- type L2ForwarderFactoryCallerSession
- func (_L2ForwarderFactory *L2ForwarderFactoryCallerSession) AliasedL1Teleporter() (common.Address, error)
- func (_L2ForwarderFactory *L2ForwarderFactoryCallerSession) L2ForwarderAddress(owner common.Address, routerOrInbox common.Address, to common.Address) (common.Address, error)
- func (_L2ForwarderFactory *L2ForwarderFactoryCallerSession) L2ForwarderFactory() (common.Address, error)
- func (_L2ForwarderFactory *L2ForwarderFactoryCallerSession) L2ForwarderImplementation() (common.Address, error)
- type L2ForwarderFactoryCreatedL2Forwarder
- type L2ForwarderFactoryCreatedL2ForwarderIterator
- type L2ForwarderFactoryFilterer
- func (_L2ForwarderFactory *L2ForwarderFactoryFilterer) FilterCalledL2Forwarder(opts *bind.FilterOpts, l2Forwarder []common.Address) (*L2ForwarderFactoryCalledL2ForwarderIterator, error)
- func (_L2ForwarderFactory *L2ForwarderFactoryFilterer) FilterCreatedL2Forwarder(opts *bind.FilterOpts, l2Forwarder []common.Address, owner []common.Address) (*L2ForwarderFactoryCreatedL2ForwarderIterator, error)
- func (_L2ForwarderFactory *L2ForwarderFactoryFilterer) ParseCalledL2Forwarder(log types.Log) (*L2ForwarderFactoryCalledL2Forwarder, error)
- func (_L2ForwarderFactory *L2ForwarderFactoryFilterer) ParseCreatedL2Forwarder(log types.Log) (*L2ForwarderFactoryCreatedL2Forwarder, error)
- func (_L2ForwarderFactory *L2ForwarderFactoryFilterer) WatchCalledL2Forwarder(opts *bind.WatchOpts, sink chan<- *L2ForwarderFactoryCalledL2Forwarder, ...) (event.Subscription, error)
- func (_L2ForwarderFactory *L2ForwarderFactoryFilterer) WatchCreatedL2Forwarder(opts *bind.WatchOpts, sink chan<- *L2ForwarderFactoryCreatedL2Forwarder, ...) (event.Subscription, error)
- type L2ForwarderFactoryRaw
- func (_L2ForwarderFactory *L2ForwarderFactoryRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_L2ForwarderFactory *L2ForwarderFactoryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_L2ForwarderFactory *L2ForwarderFactoryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type L2ForwarderFactorySession
- func (_L2ForwarderFactory *L2ForwarderFactorySession) AliasedL1Teleporter() (common.Address, error)
- func (_L2ForwarderFactory *L2ForwarderFactorySession) CallForwarder(params IL2ForwarderL2ForwarderParams) (*types.Transaction, error)
- func (_L2ForwarderFactory *L2ForwarderFactorySession) CreateL2Forwarder(owner common.Address, routerOrInbox common.Address, to common.Address) (*types.Transaction, error)
- func (_L2ForwarderFactory *L2ForwarderFactorySession) L2ForwarderAddress(owner common.Address, routerOrInbox common.Address, to common.Address) (common.Address, error)
- func (_L2ForwarderFactory *L2ForwarderFactorySession) L2ForwarderFactory() (common.Address, error)
- func (_L2ForwarderFactory *L2ForwarderFactorySession) L2ForwarderImplementation() (common.Address, error)
- type L2ForwarderFactoryTransactor
- func (_L2ForwarderFactory *L2ForwarderFactoryTransactor) CallForwarder(opts *bind.TransactOpts, params IL2ForwarderL2ForwarderParams) (*types.Transaction, error)
- func (_L2ForwarderFactory *L2ForwarderFactoryTransactor) CreateL2Forwarder(opts *bind.TransactOpts, owner common.Address, routerOrInbox common.Address, ...) (*types.Transaction, error)
- type L2ForwarderFactoryTransactorRaw
- type L2ForwarderFactoryTransactorSession
- func (_L2ForwarderFactory *L2ForwarderFactoryTransactorSession) CallForwarder(params IL2ForwarderL2ForwarderParams) (*types.Transaction, error)
- func (_L2ForwarderFactory *L2ForwarderFactoryTransactorSession) CreateL2Forwarder(owner common.Address, routerOrInbox common.Address, to common.Address) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var ErrNoRPCURL error = errors.New("no RPC URL provided -- please pass an RPC URL from the command line or set the L_2_FORWARDER_FACTORY_RPC_URL environment variable")
var L2ForwarderFactoryABI = L2ForwarderFactoryMetaData.ABI
L2ForwarderFactoryABI is the input ABI used to generate the binding from. Deprecated: Use L2ForwarderFactoryMetaData.ABI instead.
var L2ForwarderFactoryBin = L2ForwarderFactoryMetaData.Bin
L2ForwarderFactoryBin is the compiled bytecode used for deploying new contracts. Deprecated: Use L2ForwarderFactoryMetaData.Bin instead.
var L2ForwarderFactoryMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_impl\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_aliasedL1Teleporter\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"OnlyL1Teleporter\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"l2Forwarder\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"l2Token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"l3FeeTokenL2Addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"routerOrInbox\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPriceBid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSubmissionCost\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"l3CallData\",\"type\":\"bytes\"}],\"indexed\":false,\"internalType\":\"structIL2Forwarder.L2ForwarderParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"CalledL2Forwarder\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"l2Forwarder\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"routerOrInbox\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"CreatedL2Forwarder\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"aliasedL1Teleporter\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"l2Token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"l3FeeTokenL2Addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"routerOrInbox\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPriceBid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSubmissionCost\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"l3CallData\",\"type\":\"bytes\"}],\"internalType\":\"structIL2Forwarder.L2ForwarderParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"callForwarder\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"routerOrInbox\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"createL2Forwarder\",\"outputs\":[{\"internalType\":\"contractIL2Forwarder\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"routerOrInbox\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"l2ForwarderAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"l2ForwarderFactory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"l2ForwarderImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
Bin: "0x60e060405234801561001057600080fd5b50604051610b01380380610b0183398101604081905261002f91610066565b306080526001600160a01b0391821660a0521660c052610099565b80516001600160a01b038116811461006157600080fd5b919050565b6000806040838503121561007957600080fd5b6100828361004a565b91506100906020840161004a565b90509250929050565b60805160a05160c051610a1e6100e36000396000818161010e0152610302015260008181610142015281816101de01526104bf01526000818160c501526104830152610a1e6000f3fe6080604052600436106100655760003560e01c8063e261911b11610043578063e261911b146100fc578063ec7d4abd14610130578063fbabf0841461016457600080fd5b806302e8e7831461006a578063377f017a146100b35780635b65a6a4146100e7575b600080fd5b34801561007657600080fd5b5061008a610085366004610662565b610184565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100bf57600080fd5b5061008a7f000000000000000000000000000000000000000000000000000000000000000081565b6100fa6100f53660046107a9565b6102ea565b005b34801561010857600080fd5b5061008a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561013c57600080fd5b5061008a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561017057600080fd5b5061008a61017f366004610662565b610432565b6040805173ffffffffffffffffffffffffffffffffffffffff8086166020808401919091528186168385015290841660608084019190915283518084039091018152608090920190925280519101206000908190610203907f000000000000000000000000000000000000000000000000000000000000000090610523565b6040517fc4d66de800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff87811660048301529192509082169063c4d66de890602401600060405180830381600087803b15801561027057600080fd5b505af1158015610284573d6000803e3d6000fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff88811682528781166020830152808a169450851692507f99f6b41137c463e01337801d2b5ee9d1b5d057e4266739a17a3d50d2149ef9be910160405180910390a390505b9392505050565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610359576040517fbf801ce900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006103728260000151836060015184608001516105f1565b90508073ffffffffffffffffffffffffffffffffffffffff1663cc617cd434846040518363ffffffff1660e01b81526004016103ae91906108f2565b6000604051808303818588803b1580156103c757600080fd5b505af11580156103db573d6000803e3d6000fd5b50505050508073ffffffffffffffffffffffffffffffffffffffff167fe7574670f76df54487060ea7a633529efd85f268c9bdf4b3142153c2330577128360405161042691906108f2565b60405180910390a25050565b6040805173ffffffffffffffffffffffffffffffffffffffff8581166020808401919091528582168385015290841660608084019190915283518084039091018152608083019384905280519101207f000000000000000000000000000000000000000000000000000000000000000060b88301526f5af43d82803e903d91602b57fd5bf3ff60a48301527f00000000000000000000000000000000000000000000000000000000000000006094830152733d602d80600a3d3981f3363d3d373d3d3d363d7390925260d88101919091526037608c82012060f8820152605560c3909101206000905b949350505050565b6000763d602d80600a3d3981f3363d3d373d3d3d363d730000008360601b60e81c176000526e5af43d82803e903d91602b57fd5bf38360781b1760205281603760096000f5905073ffffffffffffffffffffffffffffffffffffffff81166105eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f455243313136373a2063726561746532206661696c6564000000000000000000604482015260640160405180910390fd5b92915050565b6000806105ff858585610432565b905073ffffffffffffffffffffffffffffffffffffffff81163b156106255790506102e3565b610630858585610184565b95945050505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461065d57600080fd5b919050565b60008060006060848603121561067757600080fd5b61068084610639565b925061068e60208501610639565b915061069c60408501610639565b90509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051610120810167ffffffffffffffff811182821017156106f8576106f86106a5565b60405290565b600082601f83011261070f57600080fd5b813567ffffffffffffffff8082111561072a5761072a6106a5565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715610770576107706106a5565b8160405283815286602085880101111561078957600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000602082840312156107bb57600080fd5b813567ffffffffffffffff808211156107d357600080fd5b9083019061012082860312156107e857600080fd5b6107f06106d4565b6107f983610639565b815261080760208401610639565b602082015261081860408401610639565b604082015261082960608401610639565b606082015261083a60808401610639565b608082015260a083013560a082015260c083013560c082015260e083013560e0820152610100808401358381111561087157600080fd5b61087d888287016106fe565b918301919091525095945050505050565b6000815180845260005b818110156108b457602081850181015186830182015201610898565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b6020815261091960208201835173ffffffffffffffffffffffffffffffffffffffff169052565b60006020830151610942604084018273ffffffffffffffffffffffffffffffffffffffff169052565b50604083015173ffffffffffffffffffffffffffffffffffffffff8116606084015250606083015173ffffffffffffffffffffffffffffffffffffffff8116608084015250608083015173ffffffffffffffffffffffffffffffffffffffff811660a08401525060a083015160c083015260c083015160e083015260e083015161010081818501528085015191505061012080818501525061051b61014084018261088e56fea2646970667358221220ad0c58a910e71e1087a175dd2573e033f6996c3fd70caf754bbe437cb6835ce964736f6c63430008170033",
}
L2ForwarderFactoryMetaData contains all meta data concerning the L2ForwarderFactory contract.
Functions ¶
func KeyFromFile ¶
Loads a key from file, prompting the user for the password if it is not provided as a function argument.
func NewChainContext ¶
func NewChainContext(timeout uint) (context.Context, context.CancelFunc)
Creates a new context to be used when interacting with the chain client.
func NewClient ¶
Generates an Ethereum client to the JSONRPC API at the given URL. If rpcURL is empty, then it attempts to read the RPC URL from the L_2_FORWARDER_FACTORY_RPC_URL environment variable. If that is empty, too, then it returns an error.
func SetCallParametersFromArgs ¶
This method is used to set the parameters on a view call from command line arguments (represented mostly as strings).
func SetTransactionParametersFromArgs ¶
func SetTransactionParametersFromArgs(opts *bind.TransactOpts, nonce, value, gasPrice, maxFeePerGas, maxPriorityFeePerGas string, gasLimit uint64, noSend bool)
This method is used to set the parameters on a transaction from command line arguments (represented mostly as strings).
Types ¶
type IL2ForwarderL2ForwarderParams ¶
type IL2ForwarderL2ForwarderParams struct { Owner common.Address L2Token common.Address L3FeeTokenL2Addr common.Address RouterOrInbox common.Address To common.Address GasLimit *big.Int GasPriceBid *big.Int MaxSubmissionCost *big.Int L3CallData []byte }
IL2ForwarderL2ForwarderParams is an auto generated low-level Go binding around an user-defined struct.
type L2ForwarderFactory ¶
type L2ForwarderFactory struct { L2ForwarderFactoryCaller // Read-only binding to the contract L2ForwarderFactoryTransactor // Write-only binding to the contract L2ForwarderFactoryFilterer // Log filterer for contract events }
L2ForwarderFactory is an auto generated Go binding around an Ethereum contract.
func DeployL2ForwarderFactory ¶
func DeployL2ForwarderFactory(auth *bind.TransactOpts, backend bind.ContractBackend, _impl common.Address, _aliasedL1Teleporter common.Address) (common.Address, *types.Transaction, *L2ForwarderFactory, error)
DeployL2ForwarderFactory deploys a new Ethereum contract, binding an instance of L2ForwarderFactory to it.
func NewL2ForwarderFactory ¶
func NewL2ForwarderFactory(address common.Address, backend bind.ContractBackend) (*L2ForwarderFactory, error)
NewL2ForwarderFactory creates a new instance of L2ForwarderFactory, bound to a specific deployed contract.
type L2ForwarderFactoryCalledL2Forwarder ¶
type L2ForwarderFactoryCalledL2Forwarder struct { L2Forwarder common.Address Params IL2ForwarderL2ForwarderParams Raw types.Log // Blockchain specific contextual infos }
L2ForwarderFactoryCalledL2Forwarder represents a CalledL2Forwarder event raised by the L2ForwarderFactory contract.
type L2ForwarderFactoryCalledL2ForwarderIterator ¶
type L2ForwarderFactoryCalledL2ForwarderIterator struct { Event *L2ForwarderFactoryCalledL2Forwarder // Event containing the contract specifics and raw log // contains filtered or unexported fields }
L2ForwarderFactoryCalledL2ForwarderIterator is returned from FilterCalledL2Forwarder and is used to iterate over the raw logs and unpacked data for CalledL2Forwarder events raised by the L2ForwarderFactory contract.
func (*L2ForwarderFactoryCalledL2ForwarderIterator) Close ¶
func (it *L2ForwarderFactoryCalledL2ForwarderIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*L2ForwarderFactoryCalledL2ForwarderIterator) Error ¶
func (it *L2ForwarderFactoryCalledL2ForwarderIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*L2ForwarderFactoryCalledL2ForwarderIterator) Next ¶
func (it *L2ForwarderFactoryCalledL2ForwarderIterator) 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 L2ForwarderFactoryCaller ¶
type L2ForwarderFactoryCaller struct {
// contains filtered or unexported fields
}
L2ForwarderFactoryCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewL2ForwarderFactoryCaller ¶
func NewL2ForwarderFactoryCaller(address common.Address, caller bind.ContractCaller) (*L2ForwarderFactoryCaller, error)
NewL2ForwarderFactoryCaller creates a new read-only instance of L2ForwarderFactory, bound to a specific deployed contract.
func (*L2ForwarderFactoryCaller) AliasedL1Teleporter ¶
func (_L2ForwarderFactory *L2ForwarderFactoryCaller) AliasedL1Teleporter(opts *bind.CallOpts) (common.Address, error)
AliasedL1Teleporter is a free data retrieval call binding the contract method 0xe261911b.
Solidity: function aliasedL1Teleporter() view returns(address)
func (*L2ForwarderFactoryCaller) L2ForwarderAddress ¶
func (_L2ForwarderFactory *L2ForwarderFactoryCaller) L2ForwarderAddress(opts *bind.CallOpts, owner common.Address, routerOrInbox common.Address, to common.Address) (common.Address, error)
L2ForwarderAddress is a free data retrieval call binding the contract method 0xfbabf084.
Solidity: function l2ForwarderAddress(address owner, address routerOrInbox, address to) view returns(address)
func (*L2ForwarderFactoryCaller) L2ForwarderFactory ¶
func (_L2ForwarderFactory *L2ForwarderFactoryCaller) L2ForwarderFactory(opts *bind.CallOpts) (common.Address, error)
L2ForwarderFactory is a free data retrieval call binding the contract method 0x377f017a.
Solidity: function l2ForwarderFactory() view returns(address)
func (*L2ForwarderFactoryCaller) L2ForwarderImplementation ¶
func (_L2ForwarderFactory *L2ForwarderFactoryCaller) L2ForwarderImplementation(opts *bind.CallOpts) (common.Address, error)
L2ForwarderImplementation is a free data retrieval call binding the contract method 0xec7d4abd.
Solidity: function l2ForwarderImplementation() view returns(address)
type L2ForwarderFactoryCallerRaw ¶
type L2ForwarderFactoryCallerRaw struct {
Contract *L2ForwarderFactoryCaller // Generic read-only contract binding to access the raw methods on
}
L2ForwarderFactoryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*L2ForwarderFactoryCallerRaw) Call ¶
func (_L2ForwarderFactory *L2ForwarderFactoryCallerRaw) 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 L2ForwarderFactoryCallerSession ¶
type L2ForwarderFactoryCallerSession struct { Contract *L2ForwarderFactoryCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
L2ForwarderFactoryCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*L2ForwarderFactoryCallerSession) AliasedL1Teleporter ¶
func (_L2ForwarderFactory *L2ForwarderFactoryCallerSession) AliasedL1Teleporter() (common.Address, error)
AliasedL1Teleporter is a free data retrieval call binding the contract method 0xe261911b.
Solidity: function aliasedL1Teleporter() view returns(address)
func (*L2ForwarderFactoryCallerSession) L2ForwarderAddress ¶
func (_L2ForwarderFactory *L2ForwarderFactoryCallerSession) L2ForwarderAddress(owner common.Address, routerOrInbox common.Address, to common.Address) (common.Address, error)
L2ForwarderAddress is a free data retrieval call binding the contract method 0xfbabf084.
Solidity: function l2ForwarderAddress(address owner, address routerOrInbox, address to) view returns(address)
func (*L2ForwarderFactoryCallerSession) L2ForwarderFactory ¶
func (_L2ForwarderFactory *L2ForwarderFactoryCallerSession) L2ForwarderFactory() (common.Address, error)
L2ForwarderFactory is a free data retrieval call binding the contract method 0x377f017a.
Solidity: function l2ForwarderFactory() view returns(address)
func (*L2ForwarderFactoryCallerSession) L2ForwarderImplementation ¶
func (_L2ForwarderFactory *L2ForwarderFactoryCallerSession) L2ForwarderImplementation() (common.Address, error)
L2ForwarderImplementation is a free data retrieval call binding the contract method 0xec7d4abd.
Solidity: function l2ForwarderImplementation() view returns(address)
type L2ForwarderFactoryCreatedL2Forwarder ¶
type L2ForwarderFactoryCreatedL2Forwarder struct { L2Forwarder common.Address Owner common.Address RouterOrInbox common.Address To common.Address Raw types.Log // Blockchain specific contextual infos }
L2ForwarderFactoryCreatedL2Forwarder represents a CreatedL2Forwarder event raised by the L2ForwarderFactory contract.
type L2ForwarderFactoryCreatedL2ForwarderIterator ¶
type L2ForwarderFactoryCreatedL2ForwarderIterator struct { Event *L2ForwarderFactoryCreatedL2Forwarder // Event containing the contract specifics and raw log // contains filtered or unexported fields }
L2ForwarderFactoryCreatedL2ForwarderIterator is returned from FilterCreatedL2Forwarder and is used to iterate over the raw logs and unpacked data for CreatedL2Forwarder events raised by the L2ForwarderFactory contract.
func (*L2ForwarderFactoryCreatedL2ForwarderIterator) Close ¶
func (it *L2ForwarderFactoryCreatedL2ForwarderIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*L2ForwarderFactoryCreatedL2ForwarderIterator) Error ¶
func (it *L2ForwarderFactoryCreatedL2ForwarderIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*L2ForwarderFactoryCreatedL2ForwarderIterator) Next ¶
func (it *L2ForwarderFactoryCreatedL2ForwarderIterator) 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 L2ForwarderFactoryFilterer ¶
type L2ForwarderFactoryFilterer struct {
// contains filtered or unexported fields
}
L2ForwarderFactoryFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewL2ForwarderFactoryFilterer ¶
func NewL2ForwarderFactoryFilterer(address common.Address, filterer bind.ContractFilterer) (*L2ForwarderFactoryFilterer, error)
NewL2ForwarderFactoryFilterer creates a new log filterer instance of L2ForwarderFactory, bound to a specific deployed contract.
func (*L2ForwarderFactoryFilterer) FilterCalledL2Forwarder ¶
func (_L2ForwarderFactory *L2ForwarderFactoryFilterer) FilterCalledL2Forwarder(opts *bind.FilterOpts, l2Forwarder []common.Address) (*L2ForwarderFactoryCalledL2ForwarderIterator, error)
FilterCalledL2Forwarder is a free log retrieval operation binding the contract event 0xe7574670f76df54487060ea7a633529efd85f268c9bdf4b3142153c233057712.
Solidity: event CalledL2Forwarder(address indexed l2Forwarder, (address,address,address,address,address,uint256,uint256,uint256,bytes) params)
func (*L2ForwarderFactoryFilterer) FilterCreatedL2Forwarder ¶
func (_L2ForwarderFactory *L2ForwarderFactoryFilterer) FilterCreatedL2Forwarder(opts *bind.FilterOpts, l2Forwarder []common.Address, owner []common.Address) (*L2ForwarderFactoryCreatedL2ForwarderIterator, error)
FilterCreatedL2Forwarder is a free log retrieval operation binding the contract event 0x99f6b41137c463e01337801d2b5ee9d1b5d057e4266739a17a3d50d2149ef9be.
Solidity: event CreatedL2Forwarder(address indexed l2Forwarder, address indexed owner, address routerOrInbox, address to)
func (*L2ForwarderFactoryFilterer) ParseCalledL2Forwarder ¶
func (_L2ForwarderFactory *L2ForwarderFactoryFilterer) ParseCalledL2Forwarder(log types.Log) (*L2ForwarderFactoryCalledL2Forwarder, error)
ParseCalledL2Forwarder is a log parse operation binding the contract event 0xe7574670f76df54487060ea7a633529efd85f268c9bdf4b3142153c233057712.
Solidity: event CalledL2Forwarder(address indexed l2Forwarder, (address,address,address,address,address,uint256,uint256,uint256,bytes) params)
func (*L2ForwarderFactoryFilterer) ParseCreatedL2Forwarder ¶
func (_L2ForwarderFactory *L2ForwarderFactoryFilterer) ParseCreatedL2Forwarder(log types.Log) (*L2ForwarderFactoryCreatedL2Forwarder, error)
ParseCreatedL2Forwarder is a log parse operation binding the contract event 0x99f6b41137c463e01337801d2b5ee9d1b5d057e4266739a17a3d50d2149ef9be.
Solidity: event CreatedL2Forwarder(address indexed l2Forwarder, address indexed owner, address routerOrInbox, address to)
func (*L2ForwarderFactoryFilterer) WatchCalledL2Forwarder ¶
func (_L2ForwarderFactory *L2ForwarderFactoryFilterer) WatchCalledL2Forwarder(opts *bind.WatchOpts, sink chan<- *L2ForwarderFactoryCalledL2Forwarder, l2Forwarder []common.Address) (event.Subscription, error)
WatchCalledL2Forwarder is a free log subscription operation binding the contract event 0xe7574670f76df54487060ea7a633529efd85f268c9bdf4b3142153c233057712.
Solidity: event CalledL2Forwarder(address indexed l2Forwarder, (address,address,address,address,address,uint256,uint256,uint256,bytes) params)
func (*L2ForwarderFactoryFilterer) WatchCreatedL2Forwarder ¶
func (_L2ForwarderFactory *L2ForwarderFactoryFilterer) WatchCreatedL2Forwarder(opts *bind.WatchOpts, sink chan<- *L2ForwarderFactoryCreatedL2Forwarder, l2Forwarder []common.Address, owner []common.Address) (event.Subscription, error)
WatchCreatedL2Forwarder is a free log subscription operation binding the contract event 0x99f6b41137c463e01337801d2b5ee9d1b5d057e4266739a17a3d50d2149ef9be.
Solidity: event CreatedL2Forwarder(address indexed l2Forwarder, address indexed owner, address routerOrInbox, address to)
type L2ForwarderFactoryRaw ¶
type L2ForwarderFactoryRaw struct {
Contract *L2ForwarderFactory // Generic contract binding to access the raw methods on
}
L2ForwarderFactoryRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*L2ForwarderFactoryRaw) Call ¶
func (_L2ForwarderFactory *L2ForwarderFactoryRaw) 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 (*L2ForwarderFactoryRaw) Transact ¶
func (_L2ForwarderFactory *L2ForwarderFactoryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*L2ForwarderFactoryRaw) Transfer ¶
func (_L2ForwarderFactory *L2ForwarderFactoryRaw) 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 L2ForwarderFactorySession ¶
type L2ForwarderFactorySession struct { Contract *L2ForwarderFactory // 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 }
L2ForwarderFactorySession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*L2ForwarderFactorySession) AliasedL1Teleporter ¶
func (_L2ForwarderFactory *L2ForwarderFactorySession) AliasedL1Teleporter() (common.Address, error)
AliasedL1Teleporter is a free data retrieval call binding the contract method 0xe261911b.
Solidity: function aliasedL1Teleporter() view returns(address)
func (*L2ForwarderFactorySession) CallForwarder ¶
func (_L2ForwarderFactory *L2ForwarderFactorySession) CallForwarder(params IL2ForwarderL2ForwarderParams) (*types.Transaction, error)
CallForwarder is a paid mutator transaction binding the contract method 0x5b65a6a4.
Solidity: function callForwarder((address,address,address,address,address,uint256,uint256,uint256,bytes) params) payable returns()
func (*L2ForwarderFactorySession) CreateL2Forwarder ¶
func (_L2ForwarderFactory *L2ForwarderFactorySession) CreateL2Forwarder(owner common.Address, routerOrInbox common.Address, to common.Address) (*types.Transaction, error)
CreateL2Forwarder is a paid mutator transaction binding the contract method 0x02e8e783.
Solidity: function createL2Forwarder(address owner, address routerOrInbox, address to) returns(address)
func (*L2ForwarderFactorySession) L2ForwarderAddress ¶
func (_L2ForwarderFactory *L2ForwarderFactorySession) L2ForwarderAddress(owner common.Address, routerOrInbox common.Address, to common.Address) (common.Address, error)
L2ForwarderAddress is a free data retrieval call binding the contract method 0xfbabf084.
Solidity: function l2ForwarderAddress(address owner, address routerOrInbox, address to) view returns(address)
func (*L2ForwarderFactorySession) L2ForwarderFactory ¶
func (_L2ForwarderFactory *L2ForwarderFactorySession) L2ForwarderFactory() (common.Address, error)
L2ForwarderFactory is a free data retrieval call binding the contract method 0x377f017a.
Solidity: function l2ForwarderFactory() view returns(address)
func (*L2ForwarderFactorySession) L2ForwarderImplementation ¶
func (_L2ForwarderFactory *L2ForwarderFactorySession) L2ForwarderImplementation() (common.Address, error)
L2ForwarderImplementation is a free data retrieval call binding the contract method 0xec7d4abd.
Solidity: function l2ForwarderImplementation() view returns(address)
type L2ForwarderFactoryTransactor ¶
type L2ForwarderFactoryTransactor struct {
// contains filtered or unexported fields
}
L2ForwarderFactoryTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewL2ForwarderFactoryTransactor ¶
func NewL2ForwarderFactoryTransactor(address common.Address, transactor bind.ContractTransactor) (*L2ForwarderFactoryTransactor, error)
NewL2ForwarderFactoryTransactor creates a new write-only instance of L2ForwarderFactory, bound to a specific deployed contract.
func (*L2ForwarderFactoryTransactor) CallForwarder ¶
func (_L2ForwarderFactory *L2ForwarderFactoryTransactor) CallForwarder(opts *bind.TransactOpts, params IL2ForwarderL2ForwarderParams) (*types.Transaction, error)
CallForwarder is a paid mutator transaction binding the contract method 0x5b65a6a4.
Solidity: function callForwarder((address,address,address,address,address,uint256,uint256,uint256,bytes) params) payable returns()
func (*L2ForwarderFactoryTransactor) CreateL2Forwarder ¶
func (_L2ForwarderFactory *L2ForwarderFactoryTransactor) CreateL2Forwarder(opts *bind.TransactOpts, owner common.Address, routerOrInbox common.Address, to common.Address) (*types.Transaction, error)
CreateL2Forwarder is a paid mutator transaction binding the contract method 0x02e8e783.
Solidity: function createL2Forwarder(address owner, address routerOrInbox, address to) returns(address)
type L2ForwarderFactoryTransactorRaw ¶
type L2ForwarderFactoryTransactorRaw struct {
Contract *L2ForwarderFactoryTransactor // Generic write-only contract binding to access the raw methods on
}
L2ForwarderFactoryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*L2ForwarderFactoryTransactorRaw) Transact ¶
func (_L2ForwarderFactory *L2ForwarderFactoryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*L2ForwarderFactoryTransactorRaw) Transfer ¶
func (_L2ForwarderFactory *L2ForwarderFactoryTransactorRaw) 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 L2ForwarderFactoryTransactorSession ¶
type L2ForwarderFactoryTransactorSession struct { Contract *L2ForwarderFactoryTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
L2ForwarderFactoryTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*L2ForwarderFactoryTransactorSession) CallForwarder ¶
func (_L2ForwarderFactory *L2ForwarderFactoryTransactorSession) CallForwarder(params IL2ForwarderL2ForwarderParams) (*types.Transaction, error)
CallForwarder is a paid mutator transaction binding the contract method 0x5b65a6a4.
Solidity: function callForwarder((address,address,address,address,address,uint256,uint256,uint256,bytes) params) payable returns()
func (*L2ForwarderFactoryTransactorSession) CreateL2Forwarder ¶
func (_L2ForwarderFactory *L2ForwarderFactoryTransactorSession) CreateL2Forwarder(owner common.Address, routerOrInbox common.Address, to common.Address) (*types.Transaction, error)
CreateL2Forwarder is a paid mutator transaction binding the contract method 0x02e8e783.
Solidity: function createL2Forwarder(address owner, address routerOrInbox, address to) returns(address)