ArbitrumL1OrbitGatewayRouter

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_ORBIT_GATEWAY_ROUTER_RPC_URL environment variable")
View Source
var L1OrbitGatewayRouterABI = L1OrbitGatewayRouterMetaData.ABI

L1OrbitGatewayRouterABI is the input ABI used to generate the binding from. Deprecated: Use L1OrbitGatewayRouterMetaData.ABI instead.

View Source
var L1OrbitGatewayRouterBin = L1OrbitGatewayRouterMetaData.Bin

L1OrbitGatewayRouterBin is the compiled bytecode used for deploying new contracts. Deprecated: Use L1OrbitGatewayRouterMetaData.Bin instead.

View Source
var L1OrbitGatewayRouterMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newDefaultGateway\",\"type\":\"address\"}],\"name\":\"DefaultGatewayUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"l1Token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"gateway\",\"type\":\"address\"}],\"name\":\"GatewaySet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_userFrom\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_userTo\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"gateway\",\"type\":\"address\"}],\"name\":\"TransferRouted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_seqNum\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"TxToL2\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newSource\",\"type\":\"address\"}],\"name\":\"WhitelistSourceUpdated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"l1ERC20\",\"type\":\"address\"}],\"name\":\"calculateL2TokenAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"counterpartGateway\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultGateway\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"finalizeInboundTransfer\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"}],\"name\":\"getGateway\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"gateway\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"getOutboundCalldata\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"inbox\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_defaultGateway\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_counterpartGateway\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_inbox\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"l1TokenToGateway\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_maxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_gasPriceBid\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"outboundTransfer\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_refundTo\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_maxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_gasPriceBid\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"outboundTransferCustomRefund\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"postUpgradeInit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"router\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"setDefaultGateway\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newL1DefaultGateway\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_maxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_gasPriceBid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_maxSubmissionCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_feeAmount\",\"type\":\"uint256\"}],\"name\":\"setDefaultGateway\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"setGateway\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_gateway\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_maxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_gasPriceBid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_maxSubmissionCost\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_creditBackAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_feeAmount\",\"type\":\"uint256\"}],\"name\":\"setGateway\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_gateway\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_maxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_gasPriceBid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_maxSubmissionCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_feeAmount\",\"type\":\"uint256\"}],\"name\":\"setGateway\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"setGateway\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_token\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"_gateway\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"_maxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_gasPriceBid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_maxSubmissionCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_feeAmount\",\"type\":\"uint256\"}],\"name\":\"setGateways\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"setGateways\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"setOwner\",\"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\":[{\"internalType\":\"address\",\"name\":\"newSource\",\"type\":\"address\"}],\"name\":\"updateWhitelistSource\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"whitelist\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b506124b8806100206000396000f3fe6080604052600436106101615760003560e01c806393e59dc1116100c1578063d2ce7d651161007a578063d2ce7d65146103b4578063d7f7459c146103c7578063dc121927146103e7578063dd61456914610407578063ed08fdc614610415578063f887ea401461044b578063fb0e722b1461046b57600080fd5b806393e59dc1146102ff57806395fcea781461031f578063a0c76a9614610334578063a7e28d4814610354578063bda009fe14610374578063c9a969971461039457600080fd5b80632e567b361161011e5780632e567b361461024b57806347466f981461025e5780634fb1a07b1461027e57806355654af81461029e5780635625a952146102be578063658b53f4146102d15780638da5cb5b146102df57600080fd5b806301ffc9a714610166578063032958021461019b57806313af4035146101c85780631459457a146101ea5780632d67b72d1461020a5780632db09c1c1461022b575b600080fd5b34801561017257600080fd5b50610186610181366004611a00565b61048b565b60405190151581526020015b60405180910390f35b3480156101a757600080fd5b506004546101bb906001600160a01b031681565b6040516101929190611a2a565b3480156101d457600080fd5b506101e86101e3366004611a53565b6104c2565b005b3480156101f657600080fd5b506101e8610205366004611a70565b61055d565b61021d610218366004611ae1565b6105a3565b604051908152602001610192565b34801561023757600080fd5b506001546101bb906001600160a01b031681565b6101e8610259366004611b71565b6105bd565b34801561026a57600080fd5b506101e8610279366004611a53565b6105fc565b61029161028c366004611bf5565b61069c565b6040516101929190611cdc565b3480156102aa57600080fd5b5061021d6102b9366004611db2565b61079f565b61021d6102cc366004611e38565b6107e6565b61021d6102cc366004611e73565b3480156102eb57600080fd5b506005546101bb906001600160a01b031681565b34801561030b57600080fd5b506000546101bb906001600160a01b031681565b34801561032b57600080fd5b506101e861082b565b34801561034057600080fd5b5061029161034f366004611f18565b6108a3565b34801561036057600080fd5b506101bb61036f366004611a53565b61092c565b34801561038057600080fd5b506101bb61038f366004611a53565b6109c5565b3480156103a057600080fd5b5061021d6103af366004611fd9565b610a25565b6102916103c236600461201d565b610a69565b3480156103d357600080fd5b5061021d6103e23660046120a2565b610a86565b3480156103f357600080fd5b5061021d610402366004611fd9565b610a96565b61021d610218366004611e38565b34801561042157600080fd5b506101bb610430366004611a53565b6003602052600090815260409020546001600160a01b031681565b34801561045757600080fd5b506002546101bb906001600160a01b031681565b34801561047757600080fd5b506006546101bb906001600160a01b031681565b60006001600160e01b03198216634fb1a07b60e01b14806104bc57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6005546001600160a01b031633146104f55760405162461bcd60e51b81526004016104ec90612100565b60405180910390fd5b6001600160a01b03811661053b5760405162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a22fa7aba722a960991b60448201526064016104ec565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b61056982600086610aa6565b600580546001600160a01b039687166001600160a01b03199182161790915560008054821690556006805492909616911617909355505050565b600060405162461bcd60e51b81526004016104ec90612124565b60405162461bcd60e51b815260206004820152601460248201527327a7262cafa7aaaa2127aaa7222fa927aaaa22a960611b60448201526064016104ec565b6000546001600160a01b031633146106465760405162461bcd60e51b815260206004820152600d60248201526c1393d517d19493d357d31254d5609a1b60448201526064016104ec565b600080546001600160a01b0319166001600160a01b0383161790556040517f37389c47920d5cc3229678a0205d0455002c07541a4139ebdce91ac22746577790610691908390611a2a565b60405180910390a150565b606060006106a98a6109c5565b905060006106b8338686610b18565b9050886001600160a01b0316336001600160a01b03168c6001600160a01b03167f85291dff2161a93c2f12c819d31889c96c63042116f5bc5a205aa701c2c429f5856040516107079190611a2a565b60405180910390a4604051634fb1a07b60e01b81526001600160a01b03831690634fb1a07b903490610749908f908f908f908f908f908f908b90600401612154565b60006040518083038185885af1158015610767573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f191682016040526107909190810190612199565b9b9a5050505050505050505050565b6005546000906001600160a01b031633146107cc5760405162461bcd60e51b81526004016104ec90612100565b6107db87878787873388610b47565b979650505050505050565b6005546000906001600160a01b031633146108135760405162461bcd60e51b81526004016104ec90612100565b60405162461bcd60e51b81526004016104ec90612124565b60006108557fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b9050336001600160a01b038216146108a05760405162461bcd60e51b815260206004820152600e60248201526d2727aa2fa32927a6afa0a226a4a760911b60448201526064016104ec565b50565b606060006108b0876109c5565b604051635063b54b60e11b81529091506001600160a01b0382169063a0c76a96906108e7908a908a908a908a908a9060040161220f565b600060405180830381865afa158015610904573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107db9190810190612199565b600080610938836109c5565b90506001600160a01b0381166109515750600092915050565b6040516314fc51a960e31b81526001600160a01b0382169063a7e28d489061097d908690600401611a2a565b602060405180830381865afa15801561099a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109be919061224a565b9392505050565b6001600160a01b0380821660009081526003602052604090205416806109f357506004546001600160a01b03165b6001600160a01b03811660011480610a1357506001600160a01b0381163b155b15610a2057506000919050565b919050565b6005546000906001600160a01b03163314610a525760405162461bcd60e51b81526004016104ec90612100565b610a5f8686868686610f50565b9695505050505050565b6060610a7a888888888888886110ac565b98975050505050505050565b60006107db8787878787876111ac565b6000610a5f868686863387610a86565b6001600160a01b03821615610aea5760405162461bcd60e51b815260206004820152600a6024820152692120a22fa927aaaa22a960b11b60448201526064016104ec565b610af483836113ef565b600480546001600160a01b0319166001600160a01b03929092169190911790555050565b6060838383604051602001610b2f93929190612267565b60405160208183030381529060405290509392505050565b60008651885114610b895760405162461bcd60e51b815260206004820152600c60248201526b0aea49e9c8ebe988a9c8ea8960a31b60448201526064016104ec565b60005b8851811015610eb057878181518110610ba757610ba76122a7565b6020026020010151600360008b8481518110610bc557610bc56122a7565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550878181518110610c2357610c236122a7565b60200260200101516001600160a01b0316898281518110610c4657610c466122a7565b60200260200101516001600160a01b03167f812ca95fe4492a9e2d1f2723c2c40c03a60a27b059581ae20ac4e4d73bfba35460405160405180910390a360006001600160a01b0316888281518110610ca057610ca06122a7565b60200260200101516001600160a01b031614158015610ceb575060016001600160a01b0316888281518110610cd757610cd76122a7565b60200260200101516001600160a01b031614155b15610e9e5760006001600160a01b0316888281518110610d0d57610d0d6122a7565b60200260200101516001600160a01b031663a7e28d488b8481518110610d3557610d356122a7565b60200260200101516040518263ffffffff1660e01b8152600401610d599190611a2a565b602060405180830381865afa158015610d76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d9a919061224a565b6001600160a01b031603610df05760405162461bcd60e51b815260206004820152601c60248201527f544f4b454e5f4e4f545f48414e444c45445f42595f474154455741590000000060448201526064016104ec565b878181518110610e0257610e026122a7565b60200260200101516001600160a01b0316632db09c1c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6b919061224a565b888281518110610e7d57610e7d6122a7565b60200260200101906001600160a01b031690816001600160a01b0316815250505b80610ea8816122d3565b915050610b8c565b506000634201f98560e01b8989604051602401610ece929190612330565b60408051601f19818403018152918152602080830180516001600160e01b03166001600160e01b03199095169490941790935260065460015482516060810184528a81529485018c90529184018a9052919350610f43926001600160a01b0392831692919091169087908790600090876114b1565b9998505050505050505050565b600480546001600160a01b0319166001600160a01b0387161790556040516000907f3a8f8eb961383a94d41d193e16a3af73eaddfd5764a4c640257323a1603ac33190610f9e908890611a2a565b60405180910390a160006001600160a01b0387161561101c57866001600160a01b0316632db09c1c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ff5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611019919061224a565b90505b600063f7c9362f60e01b826040516024016110379190611a2a565b60408051601f19818403018152918152602080830180516001600160e01b03166001600160e01b03199095169490941790935260065460015482516060810184528a81529485018c90529184018a9052919350610a7a926001600160a01b0392831692919091169033908890600090876114b1565b606060006110b9896109c5565b905060006110c8338686610b18565b9050886001600160a01b0316336001600160a01b03168b6001600160a01b03167f85291dff2161a93c2f12c819d31889c96c63042116f5bc5a205aa701c2c429f5856040516111179190611a2a565b60405180910390a460405163d2ce7d6560e01b81526001600160a01b0383169063d2ce7d65903490611157908e908e908e908e908e908a90600401612355565b60006040518083038185885af1158015611175573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f1916820160405261119e9190810190612199565b9a9950505050505050505050565b600060b160ff16336001600160a01b0316638e5f5ad16040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112159190612392565b60ff16146112575760405162461bcd60e51b815260206004820152600f60248201526e1393d517d0549097d1539050931151608a1b60448201526064016104ec565b6001600160a01b0387163b6112a05760405162461bcd60e51b815260206004820152600f60248201526e1393d517d513d7d0d3d395149050d5608a1b60448201526064016104ec565b60006112ab336109c5565b90506001600160a01b038116158015906112d357506004546001600160a01b03828116911614155b1561133957876001600160a01b0316816001600160a01b0316146113395760405162461bcd60e51b815260206004820152601b60248201527f4e4f5f5550444154455f544f5f444946464552454e545f41444452000000000060448201526064016104ec565b60408051600180825281830190925260009160208083019080368337019050509050338160008151811061136f5761136f6122a7565b6001600160a01b03929092166020928302919091019091015260408051600180825281830190925260009181602001602082028036833701905050905089816000815181106113c0576113c06122a7565b60200260200101906001600160a01b031690816001600160a01b03168152505061119e82828b8b8b8b8b610b47565b6001600160a01b03821661143b5760405162461bcd60e51b81526020600482015260136024820152721253959053125117d0d3d55395115494105495606a1b60448201526064016104ec565b6001546001600160a01b0316156114835760405162461bcd60e51b815260206004820152600c60248201526b1053149150511657d253925560a21b60448201526064016104ec565b600180546001600160a01b039384166001600160a01b03199182161790915560028054929093169116179055565b6000610a7a8888888888886000015189602001518a604001518a600061119e8a8a8a8b8b8b8b8b8b8b6000806114ef8c8c8c8c8c8c8c8c8c8c61154c565b9050808b6001600160a01b03168a6001600160a01b03167fc1d1490cf25c3b40d600dfb27c7680340ed1ab901b7e8f3551280968a3b372b0866040516115359190611cdc565b60405180910390a49b9a5050505050505050505050565b6000806115588c6116e5565b6001600160a01b031663e1758bd86040518163ffffffff1660e01b8152600401602060405180830381865afa158015611595573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b9919061224a565b90506000816001600160a01b03166370a082318e6040518263ffffffff1660e01b81526004016115e99190611a2a565b602060405180830381865afa158015611606573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061162a91906123b5565b905088811015611664576000611640828b6123ce565b9050611662338f83866001600160a01b0316611749909392919063ffffffff16565b505b50508a6001600160a01b031663549e84268b88888d8d8a8a8f8b6040518a63ffffffff1660e01b81526004016116a2999897969594939291906123e1565b6020604051808303816000875af11580156116c1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079091906123b5565b6000816001600160a01b031663e78cea926040518163ffffffff1660e01b8152600401602060405180830381865afa158015611725573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bc919061224a565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526117a39085906117a9565b50505050565b60006117fe826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118809092919063ffffffff16565b80519091501561187b578080602001905181019061181c9190612444565b61187b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104ec565b505050565b606061188f8484600085611897565b949350505050565b6060824710156118f85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016104ec565b600080866001600160a01b031685876040516119149190612466565b60006040518083038185875af1925050503d8060008114611951576040519150601f19603f3d011682016040523d82523d6000602084013e611956565b606091505b50915091506107db87838387606083156119d15782516000036119ca576001600160a01b0385163b6119ca5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104ec565b508161188f565b61188f83838151156119e65781518083602001fd5b8060405162461bcd60e51b81526004016104ec9190611cdc565b600060208284031215611a1257600080fd5b81356001600160e01b0319811681146109be57600080fd5b6001600160a01b0391909116815260200190565b6001600160a01b03811681146108a057600080fd5b600060208284031215611a6557600080fd5b81356109be81611a3e565b600080600080600060a08688031215611a8857600080fd5b8535611a9381611a3e565b94506020860135611aa381611a3e565b93506040860135611ab381611a3e565b92506060860135611ac381611a3e565b91506080860135611ad381611a3e565b809150509295509295909350565b600080600080600060a08688031215611af957600080fd5b8535611b0481611a3e565b94506020860135935060408601359250606086013591506080860135611ad381611a3e565b60008083601f840112611b3b57600080fd5b5081356001600160401b03811115611b5257600080fd5b602083019150836020828501011115611b6a57600080fd5b9250929050565b60008060008060008060a08789031215611b8a57600080fd5b8635611b9581611a3e565b95506020870135611ba581611a3e565b94506040870135611bb581611a3e565b93506060870135925060808701356001600160401b03811115611bd757600080fd5b611be389828a01611b29565b979a9699509497509295939492505050565b60008060008060008060008060e0898b031215611c1157600080fd5b8835611c1c81611a3e565b97506020890135611c2c81611a3e565b96506040890135611c3c81611a3e565b9550606089013594506080890135935060a0890135925060c08901356001600160401b03811115611c6c57600080fd5b611c788b828c01611b29565b999c989b5096995094979396929594505050565b60005b83811015611ca7578181015183820152602001611c8f565b50506000910152565b60008151808452611cc8816020860160208601611c8c565b601f01601f19169290920160200192915050565b6020815260006109be6020830184611cb0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611d2d57611d2d611cef565b604052919050565b600082601f830112611d4657600080fd5b813560206001600160401b03821115611d6157611d61611cef565b8160051b611d70828201611d05565b9283528481018201928281019087851115611d8a57600080fd5b83870192505b848310156107db578235611da381611a3e565b82529183019190830190611d90565b60008060008060008060c08789031215611dcb57600080fd5b86356001600160401b0380821115611de257600080fd5b611dee8a838b01611d35565b97506020890135915080821115611e0457600080fd5b50611e1189828a01611d35565b96999698505050506040850135946060810135946080820135945060a09091013592509050565b60008060008060808587031215611e4e57600080fd5b8435611e5981611a3e565b966020860135965060408601359560600135945092505050565b600080600080600060a08688031215611e8b57600080fd5b85356001600160401b0380821115611ea257600080fd5b611eae89838a01611d35565b96506020880135915080821115611ec457600080fd5b50611ed188828901611d35565b959895975050505060408401359360608101359360809091013592509050565b60006001600160401b03821115611f0a57611f0a611cef565b50601f01601f191660200190565b600080600080600060a08688031215611f3057600080fd5b8535611f3b81611a3e565b94506020860135611f4b81611a3e565b93506040860135611f5b81611a3e565b92506060860135915060808601356001600160401b03811115611f7d57600080fd5b8601601f81018813611f8e57600080fd5b8035611fa1611f9c82611ef1565b611d05565b818152896020838501011115611fb657600080fd5b816020840160208301376000602083830101528093505050509295509295909350565b600080600080600060a08688031215611ff157600080fd5b8535611ffc81611a3e565b97602087013597506040870135966060810135965060800135945092505050565b600080600080600080600060c0888a03121561203857600080fd5b873561204381611a3e565b9650602088013561205381611a3e565b955060408801359450606088013593506080880135925060a08801356001600160401b0381111561208357600080fd5b61208f8a828b01611b29565b989b979a50959850939692959293505050565b60008060008060008060c087890312156120bb57600080fd5b86356120c681611a3e565b955060208701359450604087013593506060870135925060808701356120eb81611a3e565b8092505060a087013590509295509295509295565b6020808252600a908201526927a7262cafa7aba722a960b11b604082015260600190565b6020808252601690820152751393d517d4d5541413d495115117d25397d3d490925560521b604082015260600190565b600060018060a01b03808a16835280891660208401528088166040840152508560608301528460808301528360a083015260e060c0830152610f4360e0830184611cb0565b6000602082840312156121ab57600080fd5b81516001600160401b038111156121c157600080fd5b8201601f810184136121d257600080fd5b80516121e0611f9c82611ef1565b8181528560208385010111156121f557600080fd5b612206826020830160208601611c8c565b95945050505050565b6001600160a01b0386811682528581166020830152841660408201526060810183905260a0608082018190526000906107db90830184611cb0565b60006020828403121561225c57600080fd5b81516109be81611a3e565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016122e5576122e56122bd565b5060010190565b600081518084526020808501945080840160005b838110156123255781516001600160a01b031687529582019590820190600101612300565b509495945050505050565b60408152600061234360408301856122ec565b828103602084015261220681856122ec565b600060018060a01b03808916835280881660208401525085604083015284606083015283608083015260c060a0830152610a7a60c0830184611cb0565b6000602082840312156123a457600080fd5b815160ff811681146109be57600080fd5b6000602082840312156123c757600080fd5b5051919050565b818103818111156104bc576104bc6122bd565b600061012060018060a01b03808d1684528b60208501528a6040850152808a1660608501528089166080850152508660a08401528560c08401528460e08401528061010084015261243481840185611cb0565b9c9b505050505050505050505050565b60006020828403121561245657600080fd5b815180151581146109be57600080fd5b60008251612478818460208701611c8c565b919091019291505056fea2646970667358221220edafcc4803f21291b68e286e9a52662e67d5783c549b1bd06cd5e62832c266b964736f6c63430008100033",
}

L1OrbitGatewayRouterMetaData contains all meta data concerning the L1OrbitGatewayRouter contract.

Functions

func CreateCalculateL2TokenAddressCommand

func CreateCalculateL2TokenAddressCommand() *cobra.Command

func CreateCounterpartGatewayCommand

func CreateCounterpartGatewayCommand() *cobra.Command

func CreateDefaultGatewayCommand

func CreateDefaultGatewayCommand() *cobra.Command

func CreateFinalizeInboundTransferCommand

func CreateFinalizeInboundTransferCommand() *cobra.Command

func CreateGetGatewayCommand

func CreateGetGatewayCommand() *cobra.Command

func CreateGetOutboundCalldataCommand

func CreateGetOutboundCalldataCommand() *cobra.Command

func CreateInboxCommand

func CreateInboxCommand() *cobra.Command

func CreateInitializeCommand

func CreateInitializeCommand() *cobra.Command

func CreateL1OrbitGatewayRouterCommand

func CreateL1OrbitGatewayRouterCommand() *cobra.Command

func CreateL1OrbitGatewayRouterDeploymentCommand

func CreateL1OrbitGatewayRouterDeploymentCommand() *cobra.Command

func CreateL1TokenToGatewayCommand

func CreateL1TokenToGatewayCommand() *cobra.Command

func CreateOutboundTransferCommand

func CreateOutboundTransferCommand() *cobra.Command

func CreateOutboundTransferCustomRefundCommand

func CreateOutboundTransferCustomRefundCommand() *cobra.Command

func CreateOwnerCommand

func CreateOwnerCommand() *cobra.Command

func CreatePostUpgradeInitCommand

func CreatePostUpgradeInitCommand() *cobra.Command

func CreateRouterCommand

func CreateRouterCommand() *cobra.Command

func CreateSetDefaultGateway0Command

func CreateSetDefaultGateway0Command() *cobra.Command

func CreateSetDefaultGatewayCommand

func CreateSetDefaultGatewayCommand() *cobra.Command

func CreateSetGateway0Command

func CreateSetGateway0Command() *cobra.Command

func CreateSetGateway1Command

func CreateSetGateway1Command() *cobra.Command

func CreateSetGateway2Command

func CreateSetGateway2Command() *cobra.Command

func CreateSetGatewayCommand

func CreateSetGatewayCommand() *cobra.Command

func CreateSetGateways0Command

func CreateSetGateways0Command() *cobra.Command

func CreateSetGatewaysCommand

func CreateSetGatewaysCommand() *cobra.Command

func CreateSetOwnerCommand

func CreateSetOwnerCommand() *cobra.Command

func CreateSupportsInterfaceCommand

func CreateSupportsInterfaceCommand() *cobra.Command

func CreateUpdateWhitelistSourceCommand

func CreateUpdateWhitelistSourceCommand() *cobra.Command

func CreateWhitelistCommand

func CreateWhitelistCommand() *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_ORBIT_GATEWAY_ROUTER_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 L1OrbitGatewayRouter

type L1OrbitGatewayRouter struct {
	L1OrbitGatewayRouterCaller     // Read-only binding to the contract
	L1OrbitGatewayRouterTransactor // Write-only binding to the contract
	L1OrbitGatewayRouterFilterer   // Log filterer for contract events
}

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

func DeployL1OrbitGatewayRouter

func DeployL1OrbitGatewayRouter(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *L1OrbitGatewayRouter, error)

DeployL1OrbitGatewayRouter deploys a new Ethereum contract, binding an instance of L1OrbitGatewayRouter to it.

func NewL1OrbitGatewayRouter

func NewL1OrbitGatewayRouter(address common.Address, backend bind.ContractBackend) (*L1OrbitGatewayRouter, error)

NewL1OrbitGatewayRouter creates a new instance of L1OrbitGatewayRouter, bound to a specific deployed contract.

type L1OrbitGatewayRouterCaller

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

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

func NewL1OrbitGatewayRouterCaller

func NewL1OrbitGatewayRouterCaller(address common.Address, caller bind.ContractCaller) (*L1OrbitGatewayRouterCaller, error)

NewL1OrbitGatewayRouterCaller creates a new read-only instance of L1OrbitGatewayRouter, bound to a specific deployed contract.

func (*L1OrbitGatewayRouterCaller) CalculateL2TokenAddress

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCaller) CalculateL2TokenAddress(opts *bind.CallOpts, l1ERC20 common.Address) (common.Address, error)

CalculateL2TokenAddress is a free data retrieval call binding the contract method 0xa7e28d48.

Solidity: function calculateL2TokenAddress(address l1ERC20) view returns(address)

func (*L1OrbitGatewayRouterCaller) CounterpartGateway

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCaller) CounterpartGateway(opts *bind.CallOpts) (common.Address, error)

CounterpartGateway is a free data retrieval call binding the contract method 0x2db09c1c.

Solidity: function counterpartGateway() view returns(address)

func (*L1OrbitGatewayRouterCaller) DefaultGateway

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCaller) DefaultGateway(opts *bind.CallOpts) (common.Address, error)

DefaultGateway is a free data retrieval call binding the contract method 0x03295802.

Solidity: function defaultGateway() view returns(address)

func (*L1OrbitGatewayRouterCaller) GetGateway

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCaller) GetGateway(opts *bind.CallOpts, _token common.Address) (common.Address, error)

GetGateway is a free data retrieval call binding the contract method 0xbda009fe.

Solidity: function getGateway(address _token) view returns(address gateway)

func (*L1OrbitGatewayRouterCaller) GetOutboundCalldata

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCaller) GetOutboundCalldata(opts *bind.CallOpts, _token common.Address, _from common.Address, _to common.Address, _amount *big.Int, _data []byte) ([]byte, error)

GetOutboundCalldata is a free data retrieval call binding the contract method 0xa0c76a96.

Solidity: function getOutboundCalldata(address _token, address _from, address _to, uint256 _amount, bytes _data) view returns(bytes)

func (*L1OrbitGatewayRouterCaller) Inbox

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCaller) Inbox(opts *bind.CallOpts) (common.Address, error)

Inbox is a free data retrieval call binding the contract method 0xfb0e722b.

Solidity: function inbox() view returns(address)

func (*L1OrbitGatewayRouterCaller) L1TokenToGateway

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCaller) L1TokenToGateway(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)

L1TokenToGateway is a free data retrieval call binding the contract method 0xed08fdc6.

Solidity: function l1TokenToGateway(address ) view returns(address)

func (*L1OrbitGatewayRouterCaller) Owner

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*L1OrbitGatewayRouterCaller) Router

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCaller) Router(opts *bind.CallOpts) (common.Address, error)

Router is a free data retrieval call binding the contract method 0xf887ea40.

Solidity: function router() view returns(address)

func (*L1OrbitGatewayRouterCaller) SupportsInterface

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

func (*L1OrbitGatewayRouterCaller) Whitelist

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCaller) Whitelist(opts *bind.CallOpts) (common.Address, error)

Whitelist is a free data retrieval call binding the contract method 0x93e59dc1.

Solidity: function whitelist() view returns(address)

type L1OrbitGatewayRouterCallerRaw

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

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

func (*L1OrbitGatewayRouterCallerRaw) Call

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCallerRaw) 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 L1OrbitGatewayRouterCallerSession

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

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

func (*L1OrbitGatewayRouterCallerSession) CalculateL2TokenAddress

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCallerSession) CalculateL2TokenAddress(l1ERC20 common.Address) (common.Address, error)

CalculateL2TokenAddress is a free data retrieval call binding the contract method 0xa7e28d48.

Solidity: function calculateL2TokenAddress(address l1ERC20) view returns(address)

func (*L1OrbitGatewayRouterCallerSession) CounterpartGateway

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCallerSession) CounterpartGateway() (common.Address, error)

CounterpartGateway is a free data retrieval call binding the contract method 0x2db09c1c.

Solidity: function counterpartGateway() view returns(address)

func (*L1OrbitGatewayRouterCallerSession) DefaultGateway

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCallerSession) DefaultGateway() (common.Address, error)

DefaultGateway is a free data retrieval call binding the contract method 0x03295802.

Solidity: function defaultGateway() view returns(address)

func (*L1OrbitGatewayRouterCallerSession) GetGateway

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCallerSession) GetGateway(_token common.Address) (common.Address, error)

GetGateway is a free data retrieval call binding the contract method 0xbda009fe.

Solidity: function getGateway(address _token) view returns(address gateway)

func (*L1OrbitGatewayRouterCallerSession) GetOutboundCalldata

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCallerSession) GetOutboundCalldata(_token common.Address, _from common.Address, _to common.Address, _amount *big.Int, _data []byte) ([]byte, error)

GetOutboundCalldata is a free data retrieval call binding the contract method 0xa0c76a96.

Solidity: function getOutboundCalldata(address _token, address _from, address _to, uint256 _amount, bytes _data) view returns(bytes)

func (*L1OrbitGatewayRouterCallerSession) Inbox

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCallerSession) Inbox() (common.Address, error)

Inbox is a free data retrieval call binding the contract method 0xfb0e722b.

Solidity: function inbox() view returns(address)

func (*L1OrbitGatewayRouterCallerSession) L1TokenToGateway

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCallerSession) L1TokenToGateway(arg0 common.Address) (common.Address, error)

L1TokenToGateway is a free data retrieval call binding the contract method 0xed08fdc6.

Solidity: function l1TokenToGateway(address ) view returns(address)

func (*L1OrbitGatewayRouterCallerSession) Owner

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*L1OrbitGatewayRouterCallerSession) Router

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCallerSession) Router() (common.Address, error)

Router is a free data retrieval call binding the contract method 0xf887ea40.

Solidity: function router() view returns(address)

func (*L1OrbitGatewayRouterCallerSession) SupportsInterface

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCallerSession) 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 (*L1OrbitGatewayRouterCallerSession) Whitelist

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterCallerSession) Whitelist() (common.Address, error)

Whitelist is a free data retrieval call binding the contract method 0x93e59dc1.

Solidity: function whitelist() view returns(address)

type L1OrbitGatewayRouterDefaultGatewayUpdated

type L1OrbitGatewayRouterDefaultGatewayUpdated struct {
	NewDefaultGateway common.Address
	Raw               types.Log // Blockchain specific contextual infos
}

L1OrbitGatewayRouterDefaultGatewayUpdated represents a DefaultGatewayUpdated event raised by the L1OrbitGatewayRouter contract.

type L1OrbitGatewayRouterDefaultGatewayUpdatedIterator

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

L1OrbitGatewayRouterDefaultGatewayUpdatedIterator is returned from FilterDefaultGatewayUpdated and is used to iterate over the raw logs and unpacked data for DefaultGatewayUpdated events raised by the L1OrbitGatewayRouter contract.

func (*L1OrbitGatewayRouterDefaultGatewayUpdatedIterator) Close

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

func (*L1OrbitGatewayRouterDefaultGatewayUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func NewL1OrbitGatewayRouterFilterer

func NewL1OrbitGatewayRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*L1OrbitGatewayRouterFilterer, error)

NewL1OrbitGatewayRouterFilterer creates a new log filterer instance of L1OrbitGatewayRouter, bound to a specific deployed contract.

func (*L1OrbitGatewayRouterFilterer) FilterDefaultGatewayUpdated

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterFilterer) FilterDefaultGatewayUpdated(opts *bind.FilterOpts) (*L1OrbitGatewayRouterDefaultGatewayUpdatedIterator, error)

FilterDefaultGatewayUpdated is a free log retrieval operation binding the contract event 0x3a8f8eb961383a94d41d193e16a3af73eaddfd5764a4c640257323a1603ac331.

Solidity: event DefaultGatewayUpdated(address newDefaultGateway)

func (*L1OrbitGatewayRouterFilterer) FilterGatewaySet

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterFilterer) FilterGatewaySet(opts *bind.FilterOpts, l1Token []common.Address, gateway []common.Address) (*L1OrbitGatewayRouterGatewaySetIterator, error)

FilterGatewaySet is a free log retrieval operation binding the contract event 0x812ca95fe4492a9e2d1f2723c2c40c03a60a27b059581ae20ac4e4d73bfba354.

Solidity: event GatewaySet(address indexed l1Token, address indexed gateway)

func (*L1OrbitGatewayRouterFilterer) FilterTransferRouted

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterFilterer) FilterTransferRouted(opts *bind.FilterOpts, token []common.Address, _userFrom []common.Address, _userTo []common.Address) (*L1OrbitGatewayRouterTransferRoutedIterator, error)

FilterTransferRouted is a free log retrieval operation binding the contract event 0x85291dff2161a93c2f12c819d31889c96c63042116f5bc5a205aa701c2c429f5.

Solidity: event TransferRouted(address indexed token, address indexed _userFrom, address indexed _userTo, address gateway)

func (*L1OrbitGatewayRouterFilterer) FilterTxToL2

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterFilterer) FilterTxToL2(opts *bind.FilterOpts, _from []common.Address, _to []common.Address, _seqNum []*big.Int) (*L1OrbitGatewayRouterTxToL2Iterator, error)

FilterTxToL2 is a free log retrieval operation binding the contract event 0xc1d1490cf25c3b40d600dfb27c7680340ed1ab901b7e8f3551280968a3b372b0.

Solidity: event TxToL2(address indexed _from, address indexed _to, uint256 indexed _seqNum, bytes _data)

func (*L1OrbitGatewayRouterFilterer) FilterWhitelistSourceUpdated

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterFilterer) FilterWhitelistSourceUpdated(opts *bind.FilterOpts) (*L1OrbitGatewayRouterWhitelistSourceUpdatedIterator, error)

FilterWhitelistSourceUpdated is a free log retrieval operation binding the contract event 0x37389c47920d5cc3229678a0205d0455002c07541a4139ebdce91ac227465777.

Solidity: event WhitelistSourceUpdated(address newSource)

func (*L1OrbitGatewayRouterFilterer) ParseDefaultGatewayUpdated

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterFilterer) ParseDefaultGatewayUpdated(log types.Log) (*L1OrbitGatewayRouterDefaultGatewayUpdated, error)

ParseDefaultGatewayUpdated is a log parse operation binding the contract event 0x3a8f8eb961383a94d41d193e16a3af73eaddfd5764a4c640257323a1603ac331.

Solidity: event DefaultGatewayUpdated(address newDefaultGateway)

func (*L1OrbitGatewayRouterFilterer) ParseGatewaySet

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterFilterer) ParseGatewaySet(log types.Log) (*L1OrbitGatewayRouterGatewaySet, error)

ParseGatewaySet is a log parse operation binding the contract event 0x812ca95fe4492a9e2d1f2723c2c40c03a60a27b059581ae20ac4e4d73bfba354.

Solidity: event GatewaySet(address indexed l1Token, address indexed gateway)

func (*L1OrbitGatewayRouterFilterer) ParseTransferRouted

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterFilterer) ParseTransferRouted(log types.Log) (*L1OrbitGatewayRouterTransferRouted, error)

ParseTransferRouted is a log parse operation binding the contract event 0x85291dff2161a93c2f12c819d31889c96c63042116f5bc5a205aa701c2c429f5.

Solidity: event TransferRouted(address indexed token, address indexed _userFrom, address indexed _userTo, address gateway)

func (*L1OrbitGatewayRouterFilterer) ParseTxToL2

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterFilterer) ParseTxToL2(log types.Log) (*L1OrbitGatewayRouterTxToL2, error)

ParseTxToL2 is a log parse operation binding the contract event 0xc1d1490cf25c3b40d600dfb27c7680340ed1ab901b7e8f3551280968a3b372b0.

Solidity: event TxToL2(address indexed _from, address indexed _to, uint256 indexed _seqNum, bytes _data)

func (*L1OrbitGatewayRouterFilterer) ParseWhitelistSourceUpdated

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterFilterer) ParseWhitelistSourceUpdated(log types.Log) (*L1OrbitGatewayRouterWhitelistSourceUpdated, error)

ParseWhitelistSourceUpdated is a log parse operation binding the contract event 0x37389c47920d5cc3229678a0205d0455002c07541a4139ebdce91ac227465777.

Solidity: event WhitelistSourceUpdated(address newSource)

func (*L1OrbitGatewayRouterFilterer) WatchDefaultGatewayUpdated

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterFilterer) WatchDefaultGatewayUpdated(opts *bind.WatchOpts, sink chan<- *L1OrbitGatewayRouterDefaultGatewayUpdated) (event.Subscription, error)

WatchDefaultGatewayUpdated is a free log subscription operation binding the contract event 0x3a8f8eb961383a94d41d193e16a3af73eaddfd5764a4c640257323a1603ac331.

Solidity: event DefaultGatewayUpdated(address newDefaultGateway)

func (*L1OrbitGatewayRouterFilterer) WatchGatewaySet

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterFilterer) WatchGatewaySet(opts *bind.WatchOpts, sink chan<- *L1OrbitGatewayRouterGatewaySet, l1Token []common.Address, gateway []common.Address) (event.Subscription, error)

WatchGatewaySet is a free log subscription operation binding the contract event 0x812ca95fe4492a9e2d1f2723c2c40c03a60a27b059581ae20ac4e4d73bfba354.

Solidity: event GatewaySet(address indexed l1Token, address indexed gateway)

func (*L1OrbitGatewayRouterFilterer) WatchTransferRouted

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterFilterer) WatchTransferRouted(opts *bind.WatchOpts, sink chan<- *L1OrbitGatewayRouterTransferRouted, token []common.Address, _userFrom []common.Address, _userTo []common.Address) (event.Subscription, error)

WatchTransferRouted is a free log subscription operation binding the contract event 0x85291dff2161a93c2f12c819d31889c96c63042116f5bc5a205aa701c2c429f5.

Solidity: event TransferRouted(address indexed token, address indexed _userFrom, address indexed _userTo, address gateway)

func (*L1OrbitGatewayRouterFilterer) WatchTxToL2

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterFilterer) WatchTxToL2(opts *bind.WatchOpts, sink chan<- *L1OrbitGatewayRouterTxToL2, _from []common.Address, _to []common.Address, _seqNum []*big.Int) (event.Subscription, error)

WatchTxToL2 is a free log subscription operation binding the contract event 0xc1d1490cf25c3b40d600dfb27c7680340ed1ab901b7e8f3551280968a3b372b0.

Solidity: event TxToL2(address indexed _from, address indexed _to, uint256 indexed _seqNum, bytes _data)

func (*L1OrbitGatewayRouterFilterer) WatchWhitelistSourceUpdated

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterFilterer) WatchWhitelistSourceUpdated(opts *bind.WatchOpts, sink chan<- *L1OrbitGatewayRouterWhitelistSourceUpdated) (event.Subscription, error)

WatchWhitelistSourceUpdated is a free log subscription operation binding the contract event 0x37389c47920d5cc3229678a0205d0455002c07541a4139ebdce91ac227465777.

Solidity: event WhitelistSourceUpdated(address newSource)

type L1OrbitGatewayRouterGatewaySet

type L1OrbitGatewayRouterGatewaySet struct {
	L1Token common.Address
	Gateway common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

L1OrbitGatewayRouterGatewaySet represents a GatewaySet event raised by the L1OrbitGatewayRouter contract.

type L1OrbitGatewayRouterGatewaySetIterator

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

L1OrbitGatewayRouterGatewaySetIterator is returned from FilterGatewaySet and is used to iterate over the raw logs and unpacked data for GatewaySet events raised by the L1OrbitGatewayRouter contract.

func (*L1OrbitGatewayRouterGatewaySetIterator) Close

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

func (*L1OrbitGatewayRouterGatewaySetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func (*L1OrbitGatewayRouterRaw) Call

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterRaw) 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 (*L1OrbitGatewayRouterRaw) Transact

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

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

func (*L1OrbitGatewayRouterRaw) Transfer

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterRaw) 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 L1OrbitGatewayRouterSession

type L1OrbitGatewayRouterSession struct {
	Contract     *L1OrbitGatewayRouter // 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
}

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

func (*L1OrbitGatewayRouterSession) CalculateL2TokenAddress

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) CalculateL2TokenAddress(l1ERC20 common.Address) (common.Address, error)

CalculateL2TokenAddress is a free data retrieval call binding the contract method 0xa7e28d48.

Solidity: function calculateL2TokenAddress(address l1ERC20) view returns(address)

func (*L1OrbitGatewayRouterSession) CounterpartGateway

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) CounterpartGateway() (common.Address, error)

CounterpartGateway is a free data retrieval call binding the contract method 0x2db09c1c.

Solidity: function counterpartGateway() view returns(address)

func (*L1OrbitGatewayRouterSession) DefaultGateway

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) DefaultGateway() (common.Address, error)

DefaultGateway is a free data retrieval call binding the contract method 0x03295802.

Solidity: function defaultGateway() view returns(address)

func (*L1OrbitGatewayRouterSession) FinalizeInboundTransfer

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) FinalizeInboundTransfer(arg0 common.Address, arg1 common.Address, arg2 common.Address, arg3 *big.Int, arg4 []byte) (*types.Transaction, error)

FinalizeInboundTransfer is a paid mutator transaction binding the contract method 0x2e567b36.

Solidity: function finalizeInboundTransfer(address , address , address , uint256 , bytes ) payable returns()

func (*L1OrbitGatewayRouterSession) GetGateway

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) GetGateway(_token common.Address) (common.Address, error)

GetGateway is a free data retrieval call binding the contract method 0xbda009fe.

Solidity: function getGateway(address _token) view returns(address gateway)

func (*L1OrbitGatewayRouterSession) GetOutboundCalldata

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) GetOutboundCalldata(_token common.Address, _from common.Address, _to common.Address, _amount *big.Int, _data []byte) ([]byte, error)

GetOutboundCalldata is a free data retrieval call binding the contract method 0xa0c76a96.

Solidity: function getOutboundCalldata(address _token, address _from, address _to, uint256 _amount, bytes _data) view returns(bytes)

func (*L1OrbitGatewayRouterSession) Inbox

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) Inbox() (common.Address, error)

Inbox is a free data retrieval call binding the contract method 0xfb0e722b.

Solidity: function inbox() view returns(address)

func (*L1OrbitGatewayRouterSession) Initialize

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) Initialize(_owner common.Address, _defaultGateway common.Address, arg2 common.Address, _counterpartGateway common.Address, _inbox common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x1459457a.

Solidity: function initialize(address _owner, address _defaultGateway, address , address _counterpartGateway, address _inbox) returns()

func (*L1OrbitGatewayRouterSession) L1TokenToGateway

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) L1TokenToGateway(arg0 common.Address) (common.Address, error)

L1TokenToGateway is a free data retrieval call binding the contract method 0xed08fdc6.

Solidity: function l1TokenToGateway(address ) view returns(address)

func (*L1OrbitGatewayRouterSession) OutboundTransfer

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) OutboundTransfer(_token common.Address, _to common.Address, _amount *big.Int, _maxGas *big.Int, _gasPriceBid *big.Int, _data []byte) (*types.Transaction, error)

OutboundTransfer is a paid mutator transaction binding the contract method 0xd2ce7d65.

Solidity: function outboundTransfer(address _token, address _to, uint256 _amount, uint256 _maxGas, uint256 _gasPriceBid, bytes _data) payable returns(bytes)

func (*L1OrbitGatewayRouterSession) OutboundTransferCustomRefund

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) OutboundTransferCustomRefund(_token common.Address, _refundTo common.Address, _to common.Address, _amount *big.Int, _maxGas *big.Int, _gasPriceBid *big.Int, _data []byte) (*types.Transaction, error)

OutboundTransferCustomRefund is a paid mutator transaction binding the contract method 0x4fb1a07b.

Solidity: function outboundTransferCustomRefund(address _token, address _refundTo, address _to, uint256 _amount, uint256 _maxGas, uint256 _gasPriceBid, bytes _data) payable returns(bytes)

func (*L1OrbitGatewayRouterSession) Owner

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*L1OrbitGatewayRouterSession) PostUpgradeInit

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) PostUpgradeInit() (*types.Transaction, error)

PostUpgradeInit is a paid mutator transaction binding the contract method 0x95fcea78.

Solidity: function postUpgradeInit() returns()

func (*L1OrbitGatewayRouterSession) Router

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) Router() (common.Address, error)

Router is a free data retrieval call binding the contract method 0xf887ea40.

Solidity: function router() view returns(address)

func (*L1OrbitGatewayRouterSession) SetDefaultGateway

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) SetDefaultGateway(arg0 common.Address, arg1 *big.Int, arg2 *big.Int, arg3 *big.Int) (*types.Transaction, error)

SetDefaultGateway is a paid mutator transaction binding the contract method 0x5625a952.

Solidity: function setDefaultGateway(address , uint256 , uint256 , uint256 ) payable returns(uint256)

func (*L1OrbitGatewayRouterSession) SetDefaultGateway0

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) SetDefaultGateway0(newL1DefaultGateway common.Address, _maxGas *big.Int, _gasPriceBid *big.Int, _maxSubmissionCost *big.Int, _feeAmount *big.Int) (*types.Transaction, error)

SetDefaultGateway0 is a paid mutator transaction binding the contract method 0xc9a96997.

Solidity: function setDefaultGateway(address newL1DefaultGateway, uint256 _maxGas, uint256 _gasPriceBid, uint256 _maxSubmissionCost, uint256 _feeAmount) returns(uint256)

func (*L1OrbitGatewayRouterSession) SetGateway

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) SetGateway(arg0 common.Address, arg1 *big.Int, arg2 *big.Int, arg3 *big.Int, arg4 common.Address) (*types.Transaction, error)

SetGateway is a paid mutator transaction binding the contract method 0x2d67b72d.

Solidity: function setGateway(address , uint256 , uint256 , uint256 , address ) payable returns(uint256)

func (*L1OrbitGatewayRouterSession) SetGateway0

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) SetGateway0(_gateway common.Address, _maxGas *big.Int, _gasPriceBid *big.Int, _maxSubmissionCost *big.Int, _creditBackAddress common.Address, _feeAmount *big.Int) (*types.Transaction, error)

SetGateway0 is a paid mutator transaction binding the contract method 0xd7f7459c.

Solidity: function setGateway(address _gateway, uint256 _maxGas, uint256 _gasPriceBid, uint256 _maxSubmissionCost, address _creditBackAddress, uint256 _feeAmount) returns(uint256)

func (*L1OrbitGatewayRouterSession) SetGateway1

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) SetGateway1(_gateway common.Address, _maxGas *big.Int, _gasPriceBid *big.Int, _maxSubmissionCost *big.Int, _feeAmount *big.Int) (*types.Transaction, error)

SetGateway1 is a paid mutator transaction binding the contract method 0xdc121927.

Solidity: function setGateway(address _gateway, uint256 _maxGas, uint256 _gasPriceBid, uint256 _maxSubmissionCost, uint256 _feeAmount) returns(uint256)

func (*L1OrbitGatewayRouterSession) SetGateway2

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) SetGateway2(arg0 common.Address, arg1 *big.Int, arg2 *big.Int, arg3 *big.Int) (*types.Transaction, error)

SetGateway2 is a paid mutator transaction binding the contract method 0xdd614569.

Solidity: function setGateway(address , uint256 , uint256 , uint256 ) payable returns(uint256)

func (*L1OrbitGatewayRouterSession) SetGateways

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) SetGateways(_token []common.Address, _gateway []common.Address, _maxGas *big.Int, _gasPriceBid *big.Int, _maxSubmissionCost *big.Int, _feeAmount *big.Int) (*types.Transaction, error)

SetGateways is a paid mutator transaction binding the contract method 0x55654af8.

Solidity: function setGateways(address[] _token, address[] _gateway, uint256 _maxGas, uint256 _gasPriceBid, uint256 _maxSubmissionCost, uint256 _feeAmount) returns(uint256)

func (*L1OrbitGatewayRouterSession) SetGateways0

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) SetGateways0(arg0 []common.Address, arg1 []common.Address, arg2 *big.Int, arg3 *big.Int, arg4 *big.Int) (*types.Transaction, error)

SetGateways0 is a paid mutator transaction binding the contract method 0x658b53f4.

Solidity: function setGateways(address[] , address[] , uint256 , uint256 , uint256 ) payable returns(uint256)

func (*L1OrbitGatewayRouterSession) SetOwner

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) SetOwner(newOwner common.Address) (*types.Transaction, error)

SetOwner is a paid mutator transaction binding the contract method 0x13af4035.

Solidity: function setOwner(address newOwner) returns()

func (*L1OrbitGatewayRouterSession) SupportsInterface

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) 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 (*L1OrbitGatewayRouterSession) UpdateWhitelistSource

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) UpdateWhitelistSource(newSource common.Address) (*types.Transaction, error)

UpdateWhitelistSource is a paid mutator transaction binding the contract method 0x47466f98.

Solidity: function updateWhitelistSource(address newSource) returns()

func (*L1OrbitGatewayRouterSession) Whitelist

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterSession) Whitelist() (common.Address, error)

Whitelist is a free data retrieval call binding the contract method 0x93e59dc1.

Solidity: function whitelist() view returns(address)

type L1OrbitGatewayRouterTransactor

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

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

func NewL1OrbitGatewayRouterTransactor

func NewL1OrbitGatewayRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*L1OrbitGatewayRouterTransactor, error)

NewL1OrbitGatewayRouterTransactor creates a new write-only instance of L1OrbitGatewayRouter, bound to a specific deployed contract.

func (*L1OrbitGatewayRouterTransactor) FinalizeInboundTransfer

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactor) FinalizeInboundTransfer(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address, arg2 common.Address, arg3 *big.Int, arg4 []byte) (*types.Transaction, error)

FinalizeInboundTransfer is a paid mutator transaction binding the contract method 0x2e567b36.

Solidity: function finalizeInboundTransfer(address , address , address , uint256 , bytes ) payable returns()

func (*L1OrbitGatewayRouterTransactor) Initialize

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactor) Initialize(opts *bind.TransactOpts, _owner common.Address, _defaultGateway common.Address, arg2 common.Address, _counterpartGateway common.Address, _inbox common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x1459457a.

Solidity: function initialize(address _owner, address _defaultGateway, address , address _counterpartGateway, address _inbox) returns()

func (*L1OrbitGatewayRouterTransactor) OutboundTransfer

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactor) OutboundTransfer(opts *bind.TransactOpts, _token common.Address, _to common.Address, _amount *big.Int, _maxGas *big.Int, _gasPriceBid *big.Int, _data []byte) (*types.Transaction, error)

OutboundTransfer is a paid mutator transaction binding the contract method 0xd2ce7d65.

Solidity: function outboundTransfer(address _token, address _to, uint256 _amount, uint256 _maxGas, uint256 _gasPriceBid, bytes _data) payable returns(bytes)

func (*L1OrbitGatewayRouterTransactor) OutboundTransferCustomRefund

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactor) OutboundTransferCustomRefund(opts *bind.TransactOpts, _token common.Address, _refundTo common.Address, _to common.Address, _amount *big.Int, _maxGas *big.Int, _gasPriceBid *big.Int, _data []byte) (*types.Transaction, error)

OutboundTransferCustomRefund is a paid mutator transaction binding the contract method 0x4fb1a07b.

Solidity: function outboundTransferCustomRefund(address _token, address _refundTo, address _to, uint256 _amount, uint256 _maxGas, uint256 _gasPriceBid, bytes _data) payable returns(bytes)

func (*L1OrbitGatewayRouterTransactor) PostUpgradeInit

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactor) PostUpgradeInit(opts *bind.TransactOpts) (*types.Transaction, error)

PostUpgradeInit is a paid mutator transaction binding the contract method 0x95fcea78.

Solidity: function postUpgradeInit() returns()

func (*L1OrbitGatewayRouterTransactor) SetDefaultGateway

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactor) SetDefaultGateway(opts *bind.TransactOpts, arg0 common.Address, arg1 *big.Int, arg2 *big.Int, arg3 *big.Int) (*types.Transaction, error)

SetDefaultGateway is a paid mutator transaction binding the contract method 0x5625a952.

Solidity: function setDefaultGateway(address , uint256 , uint256 , uint256 ) payable returns(uint256)

func (*L1OrbitGatewayRouterTransactor) SetDefaultGateway0

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactor) SetDefaultGateway0(opts *bind.TransactOpts, newL1DefaultGateway common.Address, _maxGas *big.Int, _gasPriceBid *big.Int, _maxSubmissionCost *big.Int, _feeAmount *big.Int) (*types.Transaction, error)

SetDefaultGateway0 is a paid mutator transaction binding the contract method 0xc9a96997.

Solidity: function setDefaultGateway(address newL1DefaultGateway, uint256 _maxGas, uint256 _gasPriceBid, uint256 _maxSubmissionCost, uint256 _feeAmount) returns(uint256)

func (*L1OrbitGatewayRouterTransactor) SetGateway

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactor) SetGateway(opts *bind.TransactOpts, arg0 common.Address, arg1 *big.Int, arg2 *big.Int, arg3 *big.Int, arg4 common.Address) (*types.Transaction, error)

SetGateway is a paid mutator transaction binding the contract method 0x2d67b72d.

Solidity: function setGateway(address , uint256 , uint256 , uint256 , address ) payable returns(uint256)

func (*L1OrbitGatewayRouterTransactor) SetGateway0

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactor) SetGateway0(opts *bind.TransactOpts, _gateway common.Address, _maxGas *big.Int, _gasPriceBid *big.Int, _maxSubmissionCost *big.Int, _creditBackAddress common.Address, _feeAmount *big.Int) (*types.Transaction, error)

SetGateway0 is a paid mutator transaction binding the contract method 0xd7f7459c.

Solidity: function setGateway(address _gateway, uint256 _maxGas, uint256 _gasPriceBid, uint256 _maxSubmissionCost, address _creditBackAddress, uint256 _feeAmount) returns(uint256)

func (*L1OrbitGatewayRouterTransactor) SetGateway1

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactor) SetGateway1(opts *bind.TransactOpts, _gateway common.Address, _maxGas *big.Int, _gasPriceBid *big.Int, _maxSubmissionCost *big.Int, _feeAmount *big.Int) (*types.Transaction, error)

SetGateway1 is a paid mutator transaction binding the contract method 0xdc121927.

Solidity: function setGateway(address _gateway, uint256 _maxGas, uint256 _gasPriceBid, uint256 _maxSubmissionCost, uint256 _feeAmount) returns(uint256)

func (*L1OrbitGatewayRouterTransactor) SetGateway2

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactor) SetGateway2(opts *bind.TransactOpts, arg0 common.Address, arg1 *big.Int, arg2 *big.Int, arg3 *big.Int) (*types.Transaction, error)

SetGateway2 is a paid mutator transaction binding the contract method 0xdd614569.

Solidity: function setGateway(address , uint256 , uint256 , uint256 ) payable returns(uint256)

func (*L1OrbitGatewayRouterTransactor) SetGateways

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactor) SetGateways(opts *bind.TransactOpts, _token []common.Address, _gateway []common.Address, _maxGas *big.Int, _gasPriceBid *big.Int, _maxSubmissionCost *big.Int, _feeAmount *big.Int) (*types.Transaction, error)

SetGateways is a paid mutator transaction binding the contract method 0x55654af8.

Solidity: function setGateways(address[] _token, address[] _gateway, uint256 _maxGas, uint256 _gasPriceBid, uint256 _maxSubmissionCost, uint256 _feeAmount) returns(uint256)

func (*L1OrbitGatewayRouterTransactor) SetGateways0

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactor) SetGateways0(opts *bind.TransactOpts, arg0 []common.Address, arg1 []common.Address, arg2 *big.Int, arg3 *big.Int, arg4 *big.Int) (*types.Transaction, error)

SetGateways0 is a paid mutator transaction binding the contract method 0x658b53f4.

Solidity: function setGateways(address[] , address[] , uint256 , uint256 , uint256 ) payable returns(uint256)

func (*L1OrbitGatewayRouterTransactor) SetOwner

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactor) SetOwner(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

SetOwner is a paid mutator transaction binding the contract method 0x13af4035.

Solidity: function setOwner(address newOwner) returns()

func (*L1OrbitGatewayRouterTransactor) UpdateWhitelistSource

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactor) UpdateWhitelistSource(opts *bind.TransactOpts, newSource common.Address) (*types.Transaction, error)

UpdateWhitelistSource is a paid mutator transaction binding the contract method 0x47466f98.

Solidity: function updateWhitelistSource(address newSource) returns()

type L1OrbitGatewayRouterTransactorRaw

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

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

func (*L1OrbitGatewayRouterTransactorRaw) Transact

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

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

func (*L1OrbitGatewayRouterTransactorRaw) Transfer

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactorRaw) 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 L1OrbitGatewayRouterTransactorSession

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

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

func (*L1OrbitGatewayRouterTransactorSession) FinalizeInboundTransfer

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactorSession) FinalizeInboundTransfer(arg0 common.Address, arg1 common.Address, arg2 common.Address, arg3 *big.Int, arg4 []byte) (*types.Transaction, error)

FinalizeInboundTransfer is a paid mutator transaction binding the contract method 0x2e567b36.

Solidity: function finalizeInboundTransfer(address , address , address , uint256 , bytes ) payable returns()

func (*L1OrbitGatewayRouterTransactorSession) Initialize

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactorSession) Initialize(_owner common.Address, _defaultGateway common.Address, arg2 common.Address, _counterpartGateway common.Address, _inbox common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x1459457a.

Solidity: function initialize(address _owner, address _defaultGateway, address , address _counterpartGateway, address _inbox) returns()

func (*L1OrbitGatewayRouterTransactorSession) OutboundTransfer

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactorSession) OutboundTransfer(_token common.Address, _to common.Address, _amount *big.Int, _maxGas *big.Int, _gasPriceBid *big.Int, _data []byte) (*types.Transaction, error)

OutboundTransfer is a paid mutator transaction binding the contract method 0xd2ce7d65.

Solidity: function outboundTransfer(address _token, address _to, uint256 _amount, uint256 _maxGas, uint256 _gasPriceBid, bytes _data) payable returns(bytes)

func (*L1OrbitGatewayRouterTransactorSession) OutboundTransferCustomRefund

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactorSession) OutboundTransferCustomRefund(_token common.Address, _refundTo common.Address, _to common.Address, _amount *big.Int, _maxGas *big.Int, _gasPriceBid *big.Int, _data []byte) (*types.Transaction, error)

OutboundTransferCustomRefund is a paid mutator transaction binding the contract method 0x4fb1a07b.

Solidity: function outboundTransferCustomRefund(address _token, address _refundTo, address _to, uint256 _amount, uint256 _maxGas, uint256 _gasPriceBid, bytes _data) payable returns(bytes)

func (*L1OrbitGatewayRouterTransactorSession) PostUpgradeInit

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactorSession) PostUpgradeInit() (*types.Transaction, error)

PostUpgradeInit is a paid mutator transaction binding the contract method 0x95fcea78.

Solidity: function postUpgradeInit() returns()

func (*L1OrbitGatewayRouterTransactorSession) SetDefaultGateway

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactorSession) SetDefaultGateway(arg0 common.Address, arg1 *big.Int, arg2 *big.Int, arg3 *big.Int) (*types.Transaction, error)

SetDefaultGateway is a paid mutator transaction binding the contract method 0x5625a952.

Solidity: function setDefaultGateway(address , uint256 , uint256 , uint256 ) payable returns(uint256)

func (*L1OrbitGatewayRouterTransactorSession) SetDefaultGateway0

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactorSession) SetDefaultGateway0(newL1DefaultGateway common.Address, _maxGas *big.Int, _gasPriceBid *big.Int, _maxSubmissionCost *big.Int, _feeAmount *big.Int) (*types.Transaction, error)

SetDefaultGateway0 is a paid mutator transaction binding the contract method 0xc9a96997.

Solidity: function setDefaultGateway(address newL1DefaultGateway, uint256 _maxGas, uint256 _gasPriceBid, uint256 _maxSubmissionCost, uint256 _feeAmount) returns(uint256)

func (*L1OrbitGatewayRouterTransactorSession) SetGateway

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactorSession) SetGateway(arg0 common.Address, arg1 *big.Int, arg2 *big.Int, arg3 *big.Int, arg4 common.Address) (*types.Transaction, error)

SetGateway is a paid mutator transaction binding the contract method 0x2d67b72d.

Solidity: function setGateway(address , uint256 , uint256 , uint256 , address ) payable returns(uint256)

func (*L1OrbitGatewayRouterTransactorSession) SetGateway0

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactorSession) SetGateway0(_gateway common.Address, _maxGas *big.Int, _gasPriceBid *big.Int, _maxSubmissionCost *big.Int, _creditBackAddress common.Address, _feeAmount *big.Int) (*types.Transaction, error)

SetGateway0 is a paid mutator transaction binding the contract method 0xd7f7459c.

Solidity: function setGateway(address _gateway, uint256 _maxGas, uint256 _gasPriceBid, uint256 _maxSubmissionCost, address _creditBackAddress, uint256 _feeAmount) returns(uint256)

func (*L1OrbitGatewayRouterTransactorSession) SetGateway1

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactorSession) SetGateway1(_gateway common.Address, _maxGas *big.Int, _gasPriceBid *big.Int, _maxSubmissionCost *big.Int, _feeAmount *big.Int) (*types.Transaction, error)

SetGateway1 is a paid mutator transaction binding the contract method 0xdc121927.

Solidity: function setGateway(address _gateway, uint256 _maxGas, uint256 _gasPriceBid, uint256 _maxSubmissionCost, uint256 _feeAmount) returns(uint256)

func (*L1OrbitGatewayRouterTransactorSession) SetGateway2

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactorSession) SetGateway2(arg0 common.Address, arg1 *big.Int, arg2 *big.Int, arg3 *big.Int) (*types.Transaction, error)

SetGateway2 is a paid mutator transaction binding the contract method 0xdd614569.

Solidity: function setGateway(address , uint256 , uint256 , uint256 ) payable returns(uint256)

func (*L1OrbitGatewayRouterTransactorSession) SetGateways

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactorSession) SetGateways(_token []common.Address, _gateway []common.Address, _maxGas *big.Int, _gasPriceBid *big.Int, _maxSubmissionCost *big.Int, _feeAmount *big.Int) (*types.Transaction, error)

SetGateways is a paid mutator transaction binding the contract method 0x55654af8.

Solidity: function setGateways(address[] _token, address[] _gateway, uint256 _maxGas, uint256 _gasPriceBid, uint256 _maxSubmissionCost, uint256 _feeAmount) returns(uint256)

func (*L1OrbitGatewayRouterTransactorSession) SetGateways0

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactorSession) SetGateways0(arg0 []common.Address, arg1 []common.Address, arg2 *big.Int, arg3 *big.Int, arg4 *big.Int) (*types.Transaction, error)

SetGateways0 is a paid mutator transaction binding the contract method 0x658b53f4.

Solidity: function setGateways(address[] , address[] , uint256 , uint256 , uint256 ) payable returns(uint256)

func (*L1OrbitGatewayRouterTransactorSession) SetOwner

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactorSession) SetOwner(newOwner common.Address) (*types.Transaction, error)

SetOwner is a paid mutator transaction binding the contract method 0x13af4035.

Solidity: function setOwner(address newOwner) returns()

func (*L1OrbitGatewayRouterTransactorSession) UpdateWhitelistSource

func (_L1OrbitGatewayRouter *L1OrbitGatewayRouterTransactorSession) UpdateWhitelistSource(newSource common.Address) (*types.Transaction, error)

UpdateWhitelistSource is a paid mutator transaction binding the contract method 0x47466f98.

Solidity: function updateWhitelistSource(address newSource) returns()

type L1OrbitGatewayRouterTransferRouted

type L1OrbitGatewayRouterTransferRouted struct {
	Token    common.Address
	UserFrom common.Address
	UserTo   common.Address
	Gateway  common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

L1OrbitGatewayRouterTransferRouted represents a TransferRouted event raised by the L1OrbitGatewayRouter contract.

type L1OrbitGatewayRouterTransferRoutedIterator

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

L1OrbitGatewayRouterTransferRoutedIterator is returned from FilterTransferRouted and is used to iterate over the raw logs and unpacked data for TransferRouted events raised by the L1OrbitGatewayRouter contract.

func (*L1OrbitGatewayRouterTransferRoutedIterator) Close

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

func (*L1OrbitGatewayRouterTransferRoutedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type L1OrbitGatewayRouterTxToL2 struct {
	From   common.Address
	To     common.Address
	SeqNum *big.Int
	Data   []byte
	Raw    types.Log // Blockchain specific contextual infos
}

L1OrbitGatewayRouterTxToL2 represents a TxToL2 event raised by the L1OrbitGatewayRouter contract.

type L1OrbitGatewayRouterTxToL2Iterator

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

L1OrbitGatewayRouterTxToL2Iterator is returned from FilterTxToL2 and is used to iterate over the raw logs and unpacked data for TxToL2 events raised by the L1OrbitGatewayRouter contract.

func (*L1OrbitGatewayRouterTxToL2Iterator) Close

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

func (*L1OrbitGatewayRouterTxToL2Iterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type L1OrbitGatewayRouterWhitelistSourceUpdated struct {
	NewSource common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

L1OrbitGatewayRouterWhitelistSourceUpdated represents a WhitelistSourceUpdated event raised by the L1OrbitGatewayRouter contract.

type L1OrbitGatewayRouterWhitelistSourceUpdatedIterator

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

L1OrbitGatewayRouterWhitelistSourceUpdatedIterator is returned from FilterWhitelistSourceUpdated and is used to iterate over the raw logs and unpacked data for WhitelistSourceUpdated events raised by the L1OrbitGatewayRouter contract.

func (*L1OrbitGatewayRouterWhitelistSourceUpdatedIterator) Close

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

func (*L1OrbitGatewayRouterWhitelistSourceUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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