L1Teleporter

package
v0.0.0-...-73c85e8 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoRPCURL error = errors.New("no RPC URL provided -- please pass an RPC URL from the command line or set the L_1_TELEPORTER_RPC_URL environment variable")
View Source
var L1TeleporterABI = L1TeleporterMetaData.ABI

L1TeleporterABI is the input ABI used to generate the binding from. Deprecated: Use L1TeleporterMetaData.ABI instead.

View Source
var L1TeleporterBin = L1TeleporterMetaData.Bin

L1TeleporterBin is the compiled bytecode used for deploying new contracts. Deprecated: Use L1TeleporterMetaData.Bin instead.

View Source
var L1TeleporterMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_l2ForwarderFactory\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_l2ForwarderImplementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_admin\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_pauser\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"required\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"provided\",\"type\":\"uint256\"}],\"name\":\"IncorrectValue\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"required\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"provided\",\"type\":\"uint256\"}],\"name\":\"InsufficientFeeToken\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidTeleportation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NonZeroFeeTokenAmount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"l1Token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"l3FeeTokenL1Addr\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"l1l2Router\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"l2l3RouterOrInbox\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Teleported\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PAUSER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SKIP_FEE_TOKEN_MAGIC_ADDRESS\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"l1Token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"l3FeeTokenL1Addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"l1l2Router\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"l2l3RouterOrInbox\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"l2GasPriceBid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l3GasPriceBid\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"l2ForwarderFactoryGasLimit\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"l1l2FeeTokenBridgeGasLimit\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"l1l2TokenBridgeGasLimit\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"l2l3TokenBridgeGasLimit\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"l2ForwarderFactoryMaxSubmissionCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l1l2FeeTokenBridgeMaxSubmissionCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l1l2TokenBridgeMaxSubmissionCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l2l3TokenBridgeMaxSubmissionCost\",\"type\":\"uint256\"}],\"internalType\":\"structIL1Teleporter.RetryableGasParams\",\"name\":\"gasParams\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"l3CallData\",\"type\":\"bytes\"}],\"internalType\":\"structIL1Teleporter.TeleportParams\",\"name\":\"params\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"buildL2ForwarderParams\",\"outputs\":[{\"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\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"l1Token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"l3FeeTokenL1Addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"l1l2Router\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"l2l3RouterOrInbox\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"l2GasPriceBid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l3GasPriceBid\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"l2ForwarderFactoryGasLimit\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"l1l2FeeTokenBridgeGasLimit\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"l1l2TokenBridgeGasLimit\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"l2l3TokenBridgeGasLimit\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"l2ForwarderFactoryMaxSubmissionCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l1l2FeeTokenBridgeMaxSubmissionCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l1l2TokenBridgeMaxSubmissionCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l2l3TokenBridgeMaxSubmissionCost\",\"type\":\"uint256\"}],\"internalType\":\"structIL1Teleporter.RetryableGasParams\",\"name\":\"gasParams\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"l3CallData\",\"type\":\"bytes\"}],\"internalType\":\"structIL1Teleporter.TeleportParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"determineTypeAndFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"ethAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"enumTeleportationType\",\"name\":\"teleportationType\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"l1l2FeeTokenBridgeCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l1l2TokenBridgeCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l2ForwarderFactoryCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l2l3TokenBridgeCost\",\"type\":\"uint256\"}],\"internalType\":\"structIL1Teleporter.RetryableGasCosts\",\"name\":\"costs\",\"type\":\"tuple\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"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\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"l1Token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"l3FeeTokenL1Addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"l1l2Router\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"l2l3RouterOrInbox\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"l2GasPriceBid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l3GasPriceBid\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"l2ForwarderFactoryGasLimit\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"l1l2FeeTokenBridgeGasLimit\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"l1l2TokenBridgeGasLimit\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"l2l3TokenBridgeGasLimit\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"l2ForwarderFactoryMaxSubmissionCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l1l2FeeTokenBridgeMaxSubmissionCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l1l2TokenBridgeMaxSubmissionCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"l2l3TokenBridgeMaxSubmissionCost\",\"type\":\"uint256\"}],\"internalType\":\"structIL1Teleporter.RetryableGasParams\",\"name\":\"gasParams\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"l3CallData\",\"type\":\"bytes\"}],\"internalType\":\"structIL1Teleporter.TeleportParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"teleport\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x60c06040523480156200001157600080fd5b5060405162002b8938038062002b89833981016040819052620000349162000139565b6000805460ff191681556001600160a01b03808616608052841660a0526200005d908362000093565b620000897f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a8262000093565b5050505062000196565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16620001185760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45b5050565b80516001600160a01b03811681146200013457600080fd5b919050565b600080600080608085870312156200015057600080fd5b6200015b856200011c565b93506200016b602086016200011c565b92506200017b604086016200011c565b91506200018b606086016200011c565b905092959194509250565b60805160a0516129b8620001d1600039600081816103e50152610dfe01526000818161023601528181610dc2015261129801526129b86000f3fe6080604052600436106101295760003560e01c80638456cb59116100a5578063c238b3d111610074578063e63ab1e911610059578063e63ab1e91461039f578063ec7d4abd146103d3578063fbabf0841461040757600080fd5b8063c238b3d11461034f578063d547741f1461037f57600080fd5b80638456cb59146102aa5780639045f6d4146102bf57806391d14854146102e7578063a217fddf1461033a57600080fd5b80632f2ff15d116100fc578063377f017a116100e1578063377f017a146102245780633f4ba83a1461027d5780635c975abb1461029257600080fd5b80632f2ff15d146101e457806336568abe1461020457600080fd5b806301ffc9a71461012e5780632478a34b14610163578063248a9ca3146101785780632c4e3f9d146101b7575b600080fd5b34801561013a57600080fd5b5061014e610149366004612183565b610427565b60405190151581526020015b60405180910390f35b6101766101713660046121de565b6104c0565b005b34801561018457600080fd5b506101a9610193366004612213565b6000908152600160208190526040909120015490565b60405190815260200161015a565b3480156101c357600080fd5b506101d76101d236600461224e565b610703565b60405161015a919061230e565b3480156101f057600080fd5b506101766101ff366004612404565b610b0c565b34801561021057600080fd5b5061017661021f366004612404565b610b37565b34801561023057600080fd5b506102587f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161015a565b34801561028957600080fd5b50610176610bea565b34801561029e57600080fd5b5060005460ff1661014e565b3480156102b657600080fd5b50610176610c1f565b3480156102cb57600080fd5b5061025873ca040eea1dc95e969d9dc07af75147987c83089781565b3480156102f357600080fd5b5061014e610302366004612404565b600091825260016020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b34801561034657600080fd5b506101a9600081565b34801561035b57600080fd5b5061036f61036a3660046121de565b610c51565b60405161015a9493929190612458565b34801561038b57600080fd5b5061017661039a366004612404565b610d4b565b3480156103ab57600080fd5b506101a97f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b3480156103df57600080fd5b506102587f000000000000000000000000000000000000000000000000000000000000000081565b34801561041357600080fd5b506102586104223660046124d1565b610d71565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806104ba57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6104c8610e62565b6000806000806104d785610c51565b9350935093509350833414610526576040517fb25102da000000000000000000000000000000000000000000000000000000008152600481018590523460248201526044015b60405180910390fd5b600061055461053433610ed1565b6105446080890160608a0161251c565b61042260a08a0160808b0161251c565b9050600183600281111561056a5761056a612429565b036105bf57838660a0013510156105ba576040517fa0d383da0000000000000000000000000000000000000000000000000000000081526004810185905260a0870135602482015260440161051d565b61062f565b60028360028111156105d3576105d3612429565b0361062f57831561062f5761062f6105f1606088016040890161251c565b6106016040890160208a0161251c565b83876106156101408c016101208d01612539565b67ffffffffffffffff1660c08c01356101a08d0135610f13565b61063a8683836111a5565b337f762fcae5372ec0a8b89250dca23af574afcad1e9db4425b0a2d9e8f9e8a64ad0610669602089018961251c565b61067960408a0160208b0161251c565b61068960608b0160408c0161251c565b61069960808c0160608d0161251c565b6106a960a08d0160808e0161251c565b6040805173ffffffffffffffffffffffffffffffffffffffff96871681529486166020860152928516848401529084166060840152909216608082015260a08a8101359082015290519081900360c00190a2505050505050565b6107c0604051806101200160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600081526020016000815260200160008152602001606081525090565b60006107d2606085016040860161251c565b73ffffffffffffffffffffffffffffffffffffffff1663a7e28d486107fa602087018761251c565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401602060405180830381865afa158015610863573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108879190612563565b9050600080806108b261089d602089018961251c565b6108ad60408a0160208b0161251c565b6113fe565b905060008160028111156108c8576108c8612429565b036108d657600092506109ca565b60018160028111156108ea576108ea612429565b036108f7578392506109ca565b610907606088016040890161251c565b73ffffffffffffffffffffffffffffffffffffffff1663a7e28d4861093260408a0160208b0161251c565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401602060405180830381865afa15801561099b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109bf9190612563565b92506101e087013591505b6040518061012001604052806109df88610ed1565b73ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff168152602001886060016020810190610a45919061251c565b73ffffffffffffffffffffffffffffffffffffffff168152602001610a7060a08a0160808b0161251c565b73ffffffffffffffffffffffffffffffffffffffff168152602001610a9d6101808a016101608b01612539565b67ffffffffffffffff16815260e0890135602082015260408101849052606001610acb6102008a018a612580565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050915250979650505050505050565b60008281526001602081905260409091200154610b28816114b3565b610b3283836114bd565b505050565b73ffffffffffffffffffffffffffffffffffffffff81163314610bdc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161051d565b610be6828261157c565b5050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610c14816114b3565b610c1c611637565b50565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610c49816114b3565b610c1c6116b4565b6000806000610c816040518060800160405280600081526020016000815260200160008152602001600081525090565b610c8a8561170f565b610c968560c0016117fa565b9050610cb8610ca8602087018761251c565b6108ad604088016020890161251c565b915080604001518160200151610cce919061261b565b93506000826002811115610ce457610ce4612429565b03610cff576060810151610cf8908561261b565b9350610d44565b6001826002811115610d1357610d13612429565b03610d245780606001519250610d44565b606081015115610d44578051610d3a908561261b565b9350806060015192505b9193509193565b60008281526001602081905260409091200154610d67816114b3565b610b32838361157c565b6040805173ffffffffffffffffffffffffffffffffffffffff8581166020808401919091528582168385015290841660608084019190915283518084039091018152608083019384905280519101207f000000000000000000000000000000000000000000000000000000000000000060b88301526f5af43d82803e903d91602b57fd5bf3ff60a48301527f00000000000000000000000000000000000000000000000000000000000000006094830152733d602d80600a3d3981f3363d3d373d3d3d363d7390925260d88101919091526037608c82012060f8820152605560c3909101206000905b949350505050565b60005460ff1615610ecf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161051d565b565b6000808273ffffffffffffffffffffffffffffffffffffffff163b11610ef757816104ba565b73111100000000000000000000000000000000111182016104ba565b610f3573ffffffffffffffffffffffffffffffffffffffff8716333087611910565b6040517fbda009fe00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff87811660048301526000919089169063bda009fe90602401602060405180830381865afa158015610fa5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc99190612563565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff80831660248301529192509088169063dd62ed3e90604401602060405180830381865afa15801561103f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611063919061262e565b6000036110ab576110ab73ffffffffffffffffffffffffffffffffffffffff8816827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6119f2565b73ffffffffffffffffffffffffffffffffffffffff8816634fb1a07b836110d28688612647565b6110dc919061261b565b89898a8a8a8a8a6040518060200160405280600081525060405160200161110492919061265e565b6040516020818303038152906040526040518963ffffffff1660e01b81526004016111359796959493929190612677565b60006040518083038185885af1158015611153573d6000803e3d6000fd5b50505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261119a9190810190612706565b505050505050505050565b6111f76111b8606085016040860161251c565b6111c5602086018661251c565b8360a08701356111dd61016089016101408a01612539565b67ffffffffffffffff1660c08901356101c08a0135610f13565b6000611209606085016040860161251c565b73ffffffffffffffffffffffffffffffffffffffff1663fb0e722b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611253573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112779190612563565b90508073ffffffffffffffffffffffffffffffffffffffff1663679b6ded477f00000000000000000000000000000000000000000000000000000000000000008660400151476112c791906127c6565b61018089013587806112e16101208d016101008e01612539565b60c08d01356112f08e33610703565b604051602401611300919061230e565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f5b65a6a400000000000000000000000000000000000000000000000000000000179052517fffffffff0000000000000000000000000000000000000000000000000000000060e08c901b1681526113b49897969594939291906004016127d9565b60206040518083038185885af11580156113d2573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906113f7919061262e565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff831661144d576040517f83fe0edc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216611470575060006104ba565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036114ab575060016104ba565b5060026104ba565b610c1c8133611b74565b600082815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610be657600082815260016020818152604080842073ffffffffffffffffffffffffffffffffffffffff8616808652925280842080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b600082815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615610be657600082815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b61163f611c2e565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b6116bc610e62565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861168a3390565b73ca040eea1dc95e969d9dc07af75147987c830897611734604083016020840161251c565b73ffffffffffffffffffffffffffffffffffffffff161480156117c357506101e08101351515806117805750600061177461018083016101608401612539565b67ffffffffffffffff16115b806117a65750600061179a61014083016101208401612539565b67ffffffffffffffff16115b806117b557506101a081013515155b806117c3575060e081013515155b15610c1c576040517f870e439500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6118256040518060800160405280600081526020016000815260200160008152602001600081525090565b81356118376080840160608501612539565b67ffffffffffffffff1661184b9190612647565b6118599060e084013561261b565b8152813561186d60a0840160808501612539565b67ffffffffffffffff166118819190612647565b6118909061010084013561261b565b602082015281356118a76060840160408501612539565b67ffffffffffffffff166118bb9190612647565b6118c99060c084013561261b565b604082015260208201356118e360c0840160a08501612539565b67ffffffffffffffff166118f79190612647565b6119069061012084013561261b565b6060820152919050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526119ec9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611c9a565b50505050565b801580611a9257506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e90604401602060405180830381865afa158015611a6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a90919061262e565b155b611b1e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606482015260840161051d565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610b329084907f095ea7b3000000000000000000000000000000000000000000000000000000009060640161196a565b600082815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610be657611bb481611da9565b611bbf836020611dc8565b604051602001611bd092919061284c565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a000000000000000000000000000000000000000000000000000000000825261051d916004016128cd565b60005460ff16610ecf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161051d565b6000611cfc826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166120129092919063ffffffff16565b9050805160001480611d1d575080806020019051810190611d1d91906128e0565b610b32576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161051d565b60606104ba73ffffffffffffffffffffffffffffffffffffffff831660145b60606000611dd7836002612647565b611de290600261261b565b67ffffffffffffffff811115611dfa57611dfa6126d7565b6040519080825280601f01601f191660200182016040528015611e24576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611e5b57611e5b612902565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611ebe57611ebe612902565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000611efa846002612647565b611f0590600161261b565b90505b6001811115611fa2577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110611f4657611f46612902565b1a60f81b828281518110611f5c57611f5c612902565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93611f9b81612931565b9050611f08565b50831561200b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161051d565b9392505050565b6060610e5a8484600085856000808673ffffffffffffffffffffffffffffffffffffffff1685876040516120469190612966565b60006040518083038185875af1925050503d8060008114612083576040519150601f19603f3d011682016040523d82523d6000602084013e612088565b606091505b5091509150612099878383876120a4565b979650505050505050565b6060831561213a5782516000036121335773ffffffffffffffffffffffffffffffffffffffff85163b612133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161051d565b5081610e5a565b610e5a838381511561214f5781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161051d91906128cd565b60006020828403121561219557600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461200b57600080fd5b600061022082840312156121d857600080fd5b50919050565b6000602082840312156121f057600080fd5b813567ffffffffffffffff81111561220757600080fd5b610e5a848285016121c5565b60006020828403121561222557600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff81168114610c1c57600080fd5b6000806040838503121561226157600080fd5b823567ffffffffffffffff81111561227857600080fd5b612284858286016121c5565b92505060208301356122958161222c565b809150509250929050565b60005b838110156122bb5781810151838201526020016122a3565b50506000910152565b600081518084526122dc8160208601602086016122a0565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815261233560208201835173ffffffffffffffffffffffffffffffffffffffff169052565b6000602083015161235e604084018273ffffffffffffffffffffffffffffffffffffffff169052565b50604083015173ffffffffffffffffffffffffffffffffffffffff8116606084015250606083015173ffffffffffffffffffffffffffffffffffffffff8116608084015250608083015173ffffffffffffffffffffffffffffffffffffffff811660a08401525060a083015160c083015260c083015160e083015260e0830151610100818185015280850151915050610120808185015250610e5a6101408401826122c4565b6000806040838503121561241757600080fd5b8235915060208301356122958161222c565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8481526020810184905260e081016003841061249d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8360408301528251606083015260208301516080830152604083015160a0830152606083015160c083015295945050505050565b6000806000606084860312156124e657600080fd5b83356124f18161222c565b925060208401356125018161222c565b915060408401356125118161222c565b809150509250925092565b60006020828403121561252e57600080fd5b813561200b8161222c565b60006020828403121561254b57600080fd5b813567ffffffffffffffff8116811461200b57600080fd5b60006020828403121561257557600080fd5b815161200b8161222c565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126125b557600080fd5b83018035915067ffffffffffffffff8211156125d057600080fd5b6020019150368190038213156125e557600080fd5b9250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b808201808211156104ba576104ba6125ec565b60006020828403121561264057600080fd5b5051919050565b80820281158282048414176104ba576104ba6125ec565b828152604060208201526000610e5a60408301846122c4565b600073ffffffffffffffffffffffffffffffffffffffff808a16835280891660208401528088166040840152508560608301528460808301528360a083015260e060c08301526126ca60e08301846122c4565b9998505050505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60006020828403121561271857600080fd5b815167ffffffffffffffff8082111561273057600080fd5b818401915084601f83011261274457600080fd5b815181811115612756576127566126d7565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561279c5761279c6126d7565b816040528281528760208487010111156127b557600080fd5b6120998360208301602088016122a0565b818103818111156104ba576104ba6125ec565b600061010073ffffffffffffffffffffffffffffffffffffffff808c1684528a6020850152896040850152808916606085015280881660808501525067ffffffffffffffff861660a08401528460c08401528060e084015261283d818401856122c4565b9b9a5050505050505050505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516128848160178501602088016122a0565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516128c18160288401602088016122a0565b01602801949350505050565b60208152600061200b60208301846122c4565b6000602082840312156128f257600080fd5b8151801515811461200b57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081612940576129406125ec565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600082516129788184602087016122a0565b919091019291505056fea2646970667358221220bc9abe1eee394c38f986ac2ac45c53b3b7f60abb5238d8b0fc45e9a5b647849c64736f6c63430008170033",
}

L1TeleporterMetaData contains all meta data concerning the L1Teleporter contract.

Functions

func CreateBuildL2ForwarderParamsCommand

func CreateBuildL2ForwarderParamsCommand() *cobra.Command

func CreateDefaultadminroleCommand

func CreateDefaultadminroleCommand() *cobra.Command

func CreateDetermineTypeAndFeesCommand

func CreateDetermineTypeAndFeesCommand() *cobra.Command

func CreateGetRoleAdminCommand

func CreateGetRoleAdminCommand() *cobra.Command

func CreateGrantRoleCommand

func CreateGrantRoleCommand() *cobra.Command

func CreateHasRoleCommand

func CreateHasRoleCommand() *cobra.Command

func CreateL1TeleporterCommand

func CreateL1TeleporterCommand() *cobra.Command

func CreateL1TeleporterDeploymentCommand

func CreateL1TeleporterDeploymentCommand() *cobra.Command

func CreateL2ForwarderAddressCommand

func CreateL2ForwarderAddressCommand() *cobra.Command

func CreateL2ForwarderFactoryCommand

func CreateL2ForwarderFactoryCommand() *cobra.Command

func CreateL2ForwarderImplementationCommand

func CreateL2ForwarderImplementationCommand() *cobra.Command

func CreatePauseCommand

func CreatePauseCommand() *cobra.Command

func CreatePausedCommand

func CreatePausedCommand() *cobra.Command

func CreatePauserroleCommand

func CreatePauserroleCommand() *cobra.Command

func CreateRenounceRoleCommand

func CreateRenounceRoleCommand() *cobra.Command

func CreateRevokeRoleCommand

func CreateRevokeRoleCommand() *cobra.Command

func CreateSkipfeetokenmagicaddressCommand

func CreateSkipfeetokenmagicaddressCommand() *cobra.Command

func CreateSupportsInterfaceCommand

func CreateSupportsInterfaceCommand() *cobra.Command

func CreateTeleportCommand

func CreateTeleportCommand() *cobra.Command

func CreateUnpauseCommand

func CreateUnpauseCommand() *cobra.Command

func KeyFromFile

func KeyFromFile(keystoreFile string, password string) (*keystore.Key, error)

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

func NewClient(rpcURL string) (*ethclient.Client, error)

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_1_TELEPORTER_RPC_URL environment variable. If that is empty, too, then it returns an error.

func SetCallParametersFromArgs

func SetCallParametersFromArgs(opts *bind.CallOpts, pending bool, fromAddress, blockNumber string)

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).

func UnlockKeystore

func UnlockKeystore(keystoreData []byte, password string) (*keystore.Key, error)

Unlocks a key from a keystore (byte contents of a keystore file) with the given password.

Types

type IL1TeleporterRetryableGasCosts

type IL1TeleporterRetryableGasCosts struct {
	L1l2FeeTokenBridgeCost *big.Int
	L1l2TokenBridgeCost    *big.Int
	L2ForwarderFactoryCost *big.Int
	L2l3TokenBridgeCost    *big.Int
}

IL1TeleporterRetryableGasCosts is an auto generated low-level Go binding around an user-defined struct.

type IL1TeleporterRetryableGasParams

type IL1TeleporterRetryableGasParams struct {
	L2GasPriceBid                       *big.Int
	L3GasPriceBid                       *big.Int
	L2ForwarderFactoryGasLimit          uint64
	L1l2FeeTokenBridgeGasLimit          uint64
	L1l2TokenBridgeGasLimit             uint64
	L2l3TokenBridgeGasLimit             uint64
	L2ForwarderFactoryMaxSubmissionCost *big.Int
	L1l2FeeTokenBridgeMaxSubmissionCost *big.Int
	L1l2TokenBridgeMaxSubmissionCost    *big.Int
	L2l3TokenBridgeMaxSubmissionCost    *big.Int
}

IL1TeleporterRetryableGasParams is an auto generated low-level Go binding around an user-defined struct.

type IL1TeleporterTeleportParams

type IL1TeleporterTeleportParams struct {
	L1Token           common.Address
	L3FeeTokenL1Addr  common.Address
	L1l2Router        common.Address
	L2l3RouterOrInbox common.Address
	To                common.Address
	Amount            *big.Int
	GasParams         IL1TeleporterRetryableGasParams
	L3CallData        []byte
}

IL1TeleporterTeleportParams is an auto generated low-level Go binding around an user-defined struct.

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 L1Teleporter

type L1Teleporter struct {
	L1TeleporterCaller     // Read-only binding to the contract
	L1TeleporterTransactor // Write-only binding to the contract
	L1TeleporterFilterer   // Log filterer for contract events
}

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

func DeployL1Teleporter

func DeployL1Teleporter(auth *bind.TransactOpts, backend bind.ContractBackend, _l2ForwarderFactory common.Address, _l2ForwarderImplementation common.Address, _admin common.Address, _pauser common.Address) (common.Address, *types.Transaction, *L1Teleporter, error)

DeployL1Teleporter deploys a new Ethereum contract, binding an instance of L1Teleporter to it.

func NewL1Teleporter

func NewL1Teleporter(address common.Address, backend bind.ContractBackend) (*L1Teleporter, error)

NewL1Teleporter creates a new instance of L1Teleporter, bound to a specific deployed contract.

type L1TeleporterCaller

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

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

func NewL1TeleporterCaller

func NewL1TeleporterCaller(address common.Address, caller bind.ContractCaller) (*L1TeleporterCaller, error)

NewL1TeleporterCaller creates a new read-only instance of L1Teleporter, bound to a specific deployed contract.

func (*L1TeleporterCaller) BuildL2ForwarderParams

func (_L1Teleporter *L1TeleporterCaller) BuildL2ForwarderParams(opts *bind.CallOpts, params IL1TeleporterTeleportParams, caller common.Address) (IL2ForwarderL2ForwarderParams, error)

BuildL2ForwarderParams is a free data retrieval call binding the contract method 0x2c4e3f9d.

Solidity: function buildL2ForwarderParams((address,address,address,address,address,uint256,(uint256,uint256,uint64,uint64,uint64,uint64,uint256,uint256,uint256,uint256),bytes) params, address caller) view returns((address,address,address,address,address,uint256,uint256,uint256,bytes))

func (*L1TeleporterCaller) DEFAULTADMINROLE

func (_L1Teleporter *L1TeleporterCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*L1TeleporterCaller) DetermineTypeAndFees

func (_L1Teleporter *L1TeleporterCaller) DetermineTypeAndFees(opts *bind.CallOpts, params IL1TeleporterTeleportParams) (struct {
	EthAmount         *big.Int
	FeeTokenAmount    *big.Int
	TeleportationType uint8
	Costs             IL1TeleporterRetryableGasCosts
}, error)

DetermineTypeAndFees is a free data retrieval call binding the contract method 0xc238b3d1.

Solidity: function determineTypeAndFees((address,address,address,address,address,uint256,(uint256,uint256,uint64,uint64,uint64,uint64,uint256,uint256,uint256,uint256),bytes) params) pure returns(uint256 ethAmount, uint256 feeTokenAmount, uint8 teleportationType, (uint256,uint256,uint256,uint256) costs)

func (*L1TeleporterCaller) GetRoleAdmin

func (_L1Teleporter *L1TeleporterCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*L1TeleporterCaller) HasRole

func (_L1Teleporter *L1TeleporterCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*L1TeleporterCaller) L2ForwarderAddress

func (_L1Teleporter *L1TeleporterCaller) 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 (*L1TeleporterCaller) L2ForwarderFactory

func (_L1Teleporter *L1TeleporterCaller) 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 (*L1TeleporterCaller) L2ForwarderImplementation

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

func (*L1TeleporterCaller) PAUSERROLE

func (_L1Teleporter *L1TeleporterCaller) PAUSERROLE(opts *bind.CallOpts) ([32]byte, error)

PAUSERROLE is a free data retrieval call binding the contract method 0xe63ab1e9.

Solidity: function PAUSER_ROLE() view returns(bytes32)

func (*L1TeleporterCaller) Paused

func (_L1Teleporter *L1TeleporterCaller) Paused(opts *bind.CallOpts) (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*L1TeleporterCaller) SKIPFEETOKENMAGICADDRESS

func (_L1Teleporter *L1TeleporterCaller) SKIPFEETOKENMAGICADDRESS(opts *bind.CallOpts) (common.Address, error)

SKIPFEETOKENMAGICADDRESS is a free data retrieval call binding the contract method 0x9045f6d4.

Solidity: function SKIP_FEE_TOKEN_MAGIC_ADDRESS() view returns(address)

func (*L1TeleporterCaller) SupportsInterface

func (_L1Teleporter *L1TeleporterCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

type L1TeleporterCallerRaw

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

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

func (*L1TeleporterCallerRaw) Call

func (_L1Teleporter *L1TeleporterCallerRaw) 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 L1TeleporterCallerSession

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

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

func (*L1TeleporterCallerSession) BuildL2ForwarderParams

func (_L1Teleporter *L1TeleporterCallerSession) BuildL2ForwarderParams(params IL1TeleporterTeleportParams, caller common.Address) (IL2ForwarderL2ForwarderParams, error)

BuildL2ForwarderParams is a free data retrieval call binding the contract method 0x2c4e3f9d.

Solidity: function buildL2ForwarderParams((address,address,address,address,address,uint256,(uint256,uint256,uint64,uint64,uint64,uint64,uint256,uint256,uint256,uint256),bytes) params, address caller) view returns((address,address,address,address,address,uint256,uint256,uint256,bytes))

func (*L1TeleporterCallerSession) DEFAULTADMINROLE

func (_L1Teleporter *L1TeleporterCallerSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*L1TeleporterCallerSession) DetermineTypeAndFees

func (_L1Teleporter *L1TeleporterCallerSession) DetermineTypeAndFees(params IL1TeleporterTeleportParams) (struct {
	EthAmount         *big.Int
	FeeTokenAmount    *big.Int
	TeleportationType uint8
	Costs             IL1TeleporterRetryableGasCosts
}, error)

DetermineTypeAndFees is a free data retrieval call binding the contract method 0xc238b3d1.

Solidity: function determineTypeAndFees((address,address,address,address,address,uint256,(uint256,uint256,uint64,uint64,uint64,uint64,uint256,uint256,uint256,uint256),bytes) params) pure returns(uint256 ethAmount, uint256 feeTokenAmount, uint8 teleportationType, (uint256,uint256,uint256,uint256) costs)

func (*L1TeleporterCallerSession) GetRoleAdmin

func (_L1Teleporter *L1TeleporterCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*L1TeleporterCallerSession) HasRole

func (_L1Teleporter *L1TeleporterCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*L1TeleporterCallerSession) L2ForwarderAddress

func (_L1Teleporter *L1TeleporterCallerSession) 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 (*L1TeleporterCallerSession) L2ForwarderFactory

func (_L1Teleporter *L1TeleporterCallerSession) L2ForwarderFactory() (common.Address, error)

L2ForwarderFactory is a free data retrieval call binding the contract method 0x377f017a.

Solidity: function l2ForwarderFactory() view returns(address)

func (*L1TeleporterCallerSession) L2ForwarderImplementation

func (_L1Teleporter *L1TeleporterCallerSession) L2ForwarderImplementation() (common.Address, error)

L2ForwarderImplementation is a free data retrieval call binding the contract method 0xec7d4abd.

Solidity: function l2ForwarderImplementation() view returns(address)

func (*L1TeleporterCallerSession) PAUSERROLE

func (_L1Teleporter *L1TeleporterCallerSession) PAUSERROLE() ([32]byte, error)

PAUSERROLE is a free data retrieval call binding the contract method 0xe63ab1e9.

Solidity: function PAUSER_ROLE() view returns(bytes32)

func (*L1TeleporterCallerSession) Paused

func (_L1Teleporter *L1TeleporterCallerSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*L1TeleporterCallerSession) SKIPFEETOKENMAGICADDRESS

func (_L1Teleporter *L1TeleporterCallerSession) SKIPFEETOKENMAGICADDRESS() (common.Address, error)

SKIPFEETOKENMAGICADDRESS is a free data retrieval call binding the contract method 0x9045f6d4.

Solidity: function SKIP_FEE_TOKEN_MAGIC_ADDRESS() view returns(address)

func (*L1TeleporterCallerSession) SupportsInterface

func (_L1Teleporter *L1TeleporterCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

type L1TeleporterFilterer

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

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

func NewL1TeleporterFilterer

func NewL1TeleporterFilterer(address common.Address, filterer bind.ContractFilterer) (*L1TeleporterFilterer, error)

NewL1TeleporterFilterer creates a new log filterer instance of L1Teleporter, bound to a specific deployed contract.

func (*L1TeleporterFilterer) FilterPaused

func (_L1Teleporter *L1TeleporterFilterer) FilterPaused(opts *bind.FilterOpts) (*L1TeleporterPausedIterator, error)

FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*L1TeleporterFilterer) FilterRoleAdminChanged

func (_L1Teleporter *L1TeleporterFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*L1TeleporterRoleAdminChangedIterator, error)

FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*L1TeleporterFilterer) FilterRoleGranted

func (_L1Teleporter *L1TeleporterFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*L1TeleporterRoleGrantedIterator, error)

FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*L1TeleporterFilterer) FilterRoleRevoked

func (_L1Teleporter *L1TeleporterFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*L1TeleporterRoleRevokedIterator, error)

FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*L1TeleporterFilterer) FilterTeleported

func (_L1Teleporter *L1TeleporterFilterer) FilterTeleported(opts *bind.FilterOpts, sender []common.Address) (*L1TeleporterTeleportedIterator, error)

FilterTeleported is a free log retrieval operation binding the contract event 0x762fcae5372ec0a8b89250dca23af574afcad1e9db4425b0a2d9e8f9e8a64ad0.

Solidity: event Teleported(address indexed sender, address l1Token, address l3FeeTokenL1Addr, address l1l2Router, address l2l3RouterOrInbox, address to, uint256 amount)

func (*L1TeleporterFilterer) FilterUnpaused

func (_L1Teleporter *L1TeleporterFilterer) FilterUnpaused(opts *bind.FilterOpts) (*L1TeleporterUnpausedIterator, error)

FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*L1TeleporterFilterer) ParsePaused

func (_L1Teleporter *L1TeleporterFilterer) ParsePaused(log types.Log) (*L1TeleporterPaused, error)

ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*L1TeleporterFilterer) ParseRoleAdminChanged

func (_L1Teleporter *L1TeleporterFilterer) ParseRoleAdminChanged(log types.Log) (*L1TeleporterRoleAdminChanged, error)

ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*L1TeleporterFilterer) ParseRoleGranted

func (_L1Teleporter *L1TeleporterFilterer) ParseRoleGranted(log types.Log) (*L1TeleporterRoleGranted, error)

ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*L1TeleporterFilterer) ParseRoleRevoked

func (_L1Teleporter *L1TeleporterFilterer) ParseRoleRevoked(log types.Log) (*L1TeleporterRoleRevoked, error)

ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*L1TeleporterFilterer) ParseTeleported

func (_L1Teleporter *L1TeleporterFilterer) ParseTeleported(log types.Log) (*L1TeleporterTeleported, error)

ParseTeleported is a log parse operation binding the contract event 0x762fcae5372ec0a8b89250dca23af574afcad1e9db4425b0a2d9e8f9e8a64ad0.

Solidity: event Teleported(address indexed sender, address l1Token, address l3FeeTokenL1Addr, address l1l2Router, address l2l3RouterOrInbox, address to, uint256 amount)

func (*L1TeleporterFilterer) ParseUnpaused

func (_L1Teleporter *L1TeleporterFilterer) ParseUnpaused(log types.Log) (*L1TeleporterUnpaused, error)

ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*L1TeleporterFilterer) WatchPaused

func (_L1Teleporter *L1TeleporterFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *L1TeleporterPaused) (event.Subscription, error)

WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*L1TeleporterFilterer) WatchRoleAdminChanged

func (_L1Teleporter *L1TeleporterFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *L1TeleporterRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)

WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*L1TeleporterFilterer) WatchRoleGranted

func (_L1Teleporter *L1TeleporterFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *L1TeleporterRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*L1TeleporterFilterer) WatchRoleRevoked

func (_L1Teleporter *L1TeleporterFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *L1TeleporterRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*L1TeleporterFilterer) WatchTeleported

func (_L1Teleporter *L1TeleporterFilterer) WatchTeleported(opts *bind.WatchOpts, sink chan<- *L1TeleporterTeleported, sender []common.Address) (event.Subscription, error)

WatchTeleported is a free log subscription operation binding the contract event 0x762fcae5372ec0a8b89250dca23af574afcad1e9db4425b0a2d9e8f9e8a64ad0.

Solidity: event Teleported(address indexed sender, address l1Token, address l3FeeTokenL1Addr, address l1l2Router, address l2l3RouterOrInbox, address to, uint256 amount)

func (*L1TeleporterFilterer) WatchUnpaused

func (_L1Teleporter *L1TeleporterFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *L1TeleporterUnpaused) (event.Subscription, error)

WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

type L1TeleporterPaused

type L1TeleporterPaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

L1TeleporterPaused represents a Paused event raised by the L1Teleporter contract.

type L1TeleporterPausedIterator

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

L1TeleporterPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the L1Teleporter contract.

func (*L1TeleporterPausedIterator) Close

func (it *L1TeleporterPausedIterator) Close() error

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

func (*L1TeleporterPausedIterator) Error

func (it *L1TeleporterPausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*L1TeleporterPausedIterator) Next

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

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

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

func (*L1TeleporterRaw) Call

func (_L1Teleporter *L1TeleporterRaw) 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 (*L1TeleporterRaw) Transact

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

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

func (*L1TeleporterRaw) Transfer

func (_L1Teleporter *L1TeleporterRaw) 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 L1TeleporterRoleAdminChanged

type L1TeleporterRoleAdminChanged struct {
	Role              [32]byte
	PreviousAdminRole [32]byte
	NewAdminRole      [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

L1TeleporterRoleAdminChanged represents a RoleAdminChanged event raised by the L1Teleporter contract.

type L1TeleporterRoleAdminChangedIterator

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

L1TeleporterRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the L1Teleporter contract.

func (*L1TeleporterRoleAdminChangedIterator) Close

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

func (*L1TeleporterRoleAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type L1TeleporterRoleGranted struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

L1TeleporterRoleGranted represents a RoleGranted event raised by the L1Teleporter contract.

type L1TeleporterRoleGrantedIterator

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

L1TeleporterRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the L1Teleporter contract.

func (*L1TeleporterRoleGrantedIterator) Close

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

func (*L1TeleporterRoleGrantedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type L1TeleporterRoleRevoked struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

L1TeleporterRoleRevoked represents a RoleRevoked event raised by the L1Teleporter contract.

type L1TeleporterRoleRevokedIterator

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

L1TeleporterRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the L1Teleporter contract.

func (*L1TeleporterRoleRevokedIterator) Close

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

func (*L1TeleporterRoleRevokedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type L1TeleporterSession struct {
	Contract     *L1Teleporter     // 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
}

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

func (*L1TeleporterSession) BuildL2ForwarderParams

func (_L1Teleporter *L1TeleporterSession) BuildL2ForwarderParams(params IL1TeleporterTeleportParams, caller common.Address) (IL2ForwarderL2ForwarderParams, error)

BuildL2ForwarderParams is a free data retrieval call binding the contract method 0x2c4e3f9d.

Solidity: function buildL2ForwarderParams((address,address,address,address,address,uint256,(uint256,uint256,uint64,uint64,uint64,uint64,uint256,uint256,uint256,uint256),bytes) params, address caller) view returns((address,address,address,address,address,uint256,uint256,uint256,bytes))

func (*L1TeleporterSession) DEFAULTADMINROLE

func (_L1Teleporter *L1TeleporterSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*L1TeleporterSession) DetermineTypeAndFees

func (_L1Teleporter *L1TeleporterSession) DetermineTypeAndFees(params IL1TeleporterTeleportParams) (struct {
	EthAmount         *big.Int
	FeeTokenAmount    *big.Int
	TeleportationType uint8
	Costs             IL1TeleporterRetryableGasCosts
}, error)

DetermineTypeAndFees is a free data retrieval call binding the contract method 0xc238b3d1.

Solidity: function determineTypeAndFees((address,address,address,address,address,uint256,(uint256,uint256,uint64,uint64,uint64,uint64,uint256,uint256,uint256,uint256),bytes) params) pure returns(uint256 ethAmount, uint256 feeTokenAmount, uint8 teleportationType, (uint256,uint256,uint256,uint256) costs)

func (*L1TeleporterSession) GetRoleAdmin

func (_L1Teleporter *L1TeleporterSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*L1TeleporterSession) GrantRole

func (_L1Teleporter *L1TeleporterSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*L1TeleporterSession) HasRole

func (_L1Teleporter *L1TeleporterSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*L1TeleporterSession) L2ForwarderAddress

func (_L1Teleporter *L1TeleporterSession) 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 (*L1TeleporterSession) L2ForwarderFactory

func (_L1Teleporter *L1TeleporterSession) L2ForwarderFactory() (common.Address, error)

L2ForwarderFactory is a free data retrieval call binding the contract method 0x377f017a.

Solidity: function l2ForwarderFactory() view returns(address)

func (*L1TeleporterSession) L2ForwarderImplementation

func (_L1Teleporter *L1TeleporterSession) L2ForwarderImplementation() (common.Address, error)

L2ForwarderImplementation is a free data retrieval call binding the contract method 0xec7d4abd.

Solidity: function l2ForwarderImplementation() view returns(address)

func (*L1TeleporterSession) PAUSERROLE

func (_L1Teleporter *L1TeleporterSession) PAUSERROLE() ([32]byte, error)

PAUSERROLE is a free data retrieval call binding the contract method 0xe63ab1e9.

Solidity: function PAUSER_ROLE() view returns(bytes32)

func (*L1TeleporterSession) Pause

func (_L1Teleporter *L1TeleporterSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*L1TeleporterSession) Paused

func (_L1Teleporter *L1TeleporterSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*L1TeleporterSession) RenounceRole

func (_L1Teleporter *L1TeleporterSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*L1TeleporterSession) RevokeRole

func (_L1Teleporter *L1TeleporterSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*L1TeleporterSession) SKIPFEETOKENMAGICADDRESS

func (_L1Teleporter *L1TeleporterSession) SKIPFEETOKENMAGICADDRESS() (common.Address, error)

SKIPFEETOKENMAGICADDRESS is a free data retrieval call binding the contract method 0x9045f6d4.

Solidity: function SKIP_FEE_TOKEN_MAGIC_ADDRESS() view returns(address)

func (*L1TeleporterSession) SupportsInterface

func (_L1Teleporter *L1TeleporterSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*L1TeleporterSession) Teleport

func (_L1Teleporter *L1TeleporterSession) Teleport(params IL1TeleporterTeleportParams) (*types.Transaction, error)

Teleport is a paid mutator transaction binding the contract method 0x2478a34b.

Solidity: function teleport((address,address,address,address,address,uint256,(uint256,uint256,uint64,uint64,uint64,uint64,uint256,uint256,uint256,uint256),bytes) params) payable returns()

func (*L1TeleporterSession) Unpause

func (_L1Teleporter *L1TeleporterSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

type L1TeleporterTeleported

type L1TeleporterTeleported struct {
	Sender            common.Address
	L1Token           common.Address
	L3FeeTokenL1Addr  common.Address
	L1l2Router        common.Address
	L2l3RouterOrInbox common.Address
	To                common.Address
	Amount            *big.Int
	Raw               types.Log // Blockchain specific contextual infos
}

L1TeleporterTeleported represents a Teleported event raised by the L1Teleporter contract.

type L1TeleporterTeleportedIterator

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

L1TeleporterTeleportedIterator is returned from FilterTeleported and is used to iterate over the raw logs and unpacked data for Teleported events raised by the L1Teleporter contract.

func (*L1TeleporterTeleportedIterator) Close

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

func (*L1TeleporterTeleportedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func NewL1TeleporterTransactor

func NewL1TeleporterTransactor(address common.Address, transactor bind.ContractTransactor) (*L1TeleporterTransactor, error)

NewL1TeleporterTransactor creates a new write-only instance of L1Teleporter, bound to a specific deployed contract.

func (*L1TeleporterTransactor) GrantRole

func (_L1Teleporter *L1TeleporterTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*L1TeleporterTransactor) Pause

func (_L1Teleporter *L1TeleporterTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*L1TeleporterTransactor) RenounceRole

func (_L1Teleporter *L1TeleporterTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*L1TeleporterTransactor) RevokeRole

func (_L1Teleporter *L1TeleporterTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*L1TeleporterTransactor) Teleport

func (_L1Teleporter *L1TeleporterTransactor) Teleport(opts *bind.TransactOpts, params IL1TeleporterTeleportParams) (*types.Transaction, error)

Teleport is a paid mutator transaction binding the contract method 0x2478a34b.

Solidity: function teleport((address,address,address,address,address,uint256,(uint256,uint256,uint64,uint64,uint64,uint64,uint256,uint256,uint256,uint256),bytes) params) payable returns()

func (*L1TeleporterTransactor) Unpause

func (_L1Teleporter *L1TeleporterTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

type L1TeleporterTransactorRaw

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

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

func (*L1TeleporterTransactorRaw) Transact

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

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

func (*L1TeleporterTransactorRaw) Transfer

func (_L1Teleporter *L1TeleporterTransactorRaw) 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 L1TeleporterTransactorSession

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

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

func (*L1TeleporterTransactorSession) GrantRole

func (_L1Teleporter *L1TeleporterTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*L1TeleporterTransactorSession) Pause

func (_L1Teleporter *L1TeleporterTransactorSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*L1TeleporterTransactorSession) RenounceRole

func (_L1Teleporter *L1TeleporterTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*L1TeleporterTransactorSession) RevokeRole

func (_L1Teleporter *L1TeleporterTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*L1TeleporterTransactorSession) Teleport

Teleport is a paid mutator transaction binding the contract method 0x2478a34b.

Solidity: function teleport((address,address,address,address,address,uint256,(uint256,uint256,uint64,uint64,uint64,uint64,uint256,uint256,uint256,uint256),bytes) params) payable returns()

func (*L1TeleporterTransactorSession) Unpause

func (_L1Teleporter *L1TeleporterTransactorSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

type L1TeleporterUnpaused

type L1TeleporterUnpaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

L1TeleporterUnpaused represents a Unpaused event raised by the L1Teleporter contract.

type L1TeleporterUnpausedIterator

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

L1TeleporterUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the L1Teleporter contract.

func (*L1TeleporterUnpausedIterator) Close

func (it *L1TeleporterUnpausedIterator) Close() error

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

func (*L1TeleporterUnpausedIterator) Error

func (it *L1TeleporterUnpausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

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