ERC20Inbox

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 ERC20InboxABI = ERC20InboxMetaData.ABI

ERC20InboxABI is the input ABI used to generate the binding from. Deprecated: Use ERC20InboxMetaData.ABI instead.

View Source
var ERC20InboxBin = ERC20InboxMetaData.Bin

ERC20InboxBin is the compiled bytecode used for deploying new contracts. Deprecated: Use ERC20InboxMetaData.Bin instead.

View Source
var ERC20InboxMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_maxDataSize\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dataLength\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxDataLength\",\"type\":\"uint256\"}],\"name\":\"DataTooLarge\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"GasLimitTooLarge\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"actual\",\"type\":\"uint256\"}],\"name\":\"InsufficientSubmissionCost\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"actual\",\"type\":\"uint256\"}],\"name\":\"InsufficientValue\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"L1Forked\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"origin\",\"type\":\"address\"}],\"name\":\"NotAllowedOrigin\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotOrigin\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"rollup\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"NotRollupOrOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"l2CallValue\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deposit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSubmissionCost\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"excessFeeRefundAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"callValueRefundAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFeePerGas\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"RetryableData\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"val\",\"type\":\"bool\"}],\"name\":\"AllowListAddressSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"isEnabled\",\"type\":\"bool\"}],\"name\":\"AllowListEnabledUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"messageNum\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"InboxMessageDelivered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"messageNum\",\"type\":\"uint256\"}],\"name\":\"InboxMessageDeliveredFromOrigin\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"allowListEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"bridge\",\"outputs\":[{\"internalType\":\"contractIBridge\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"calculateRetryableSubmissionFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"l2CallValue\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSubmissionCost\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"excessFeeRefundAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"callValueRefundAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFeePerGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenTotalFeeAmount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"createRetryableTicket\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"depositERC20\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProxyAdmin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIBridge\",\"name\":\"_bridge\",\"type\":\"address\"},{\"internalType\":\"contractISequencerInbox\",\"name\":\"_sequencerInbox\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isAllowed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxDataSize\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"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\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFeePerGas\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"sendContractTransaction\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"messageData\",\"type\":\"bytes\"}],\"name\":\"sendL2Message\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"messageData\",\"type\":\"bytes\"}],\"name\":\"sendL2MessageFromOrigin\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFeePerGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"sendUnsignedTransaction\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sequencerInbox\",\"outputs\":[{\"internalType\":\"contractISequencerInbox\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"user\",\"type\":\"address[]\"},{\"internalType\":\"bool[]\",\"name\":\"val\",\"type\":\"bool[]\"}],\"name\":\"setAllowList\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_allowListEnabled\",\"type\":\"bool\"}],\"name\":\"setAllowListEnabled\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"l2CallValue\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSubmissionCost\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"excessFeeRefundAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"callValueRefundAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFeePerGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenTotalFeeAmount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"unsafeCreateRetryableTicket\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x60e0604052306080524660c05234801561001857600080fd5b5060405161244f38038061244f8339810160408190526100379161003f565b60a052610058565b60006020828403121561005157600080fd5b5051919050565b60805160a05160c0516123a56100aa600039600081816103820152610c4e0152600081816102ba015281816103e10152818161041d0152818161158c01526115cc0152600061069801526123a56000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063a66b327d116100ad578063e3de72a511610071578063e3de72a51461028f578063e78cea92146102a2578063e8eb1dc3146102b5578063ee35f327146102dc578063efeadb6d146102ef57600080fd5b8063a66b327d1461021d578063b75436bb14610233578063b79092fd14610246578063b9b9a68814610259578063babcc5391461026c57600080fd5b8063549e8426116100f4578063549e8426146101ab5780635c975abb146101be5780638456cb59146101c95780638a631aa6146101d15780638b3240a0146101e457600080fd5b80631fe927cf1461013157806322bd5c1c146101575780633f4ba83a1461017b578063485cc955146101855780635075788b14610198575b600080fd5b61014461013f366004611b8f565b610302565b6040519081526020015b60405180910390f35b60665461016b90600160a01b900460ff1681565b604051901515815260200161014e565b6101836104a5565b005b610183610193366004611be5565b6105e5565b6101446101a6366004611c1e565b610844565b6101446101b9366004611c9a565b610931565b60335460ff1661016b565b6101836109c6565b6101446101df366004611d49565b610b03565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103546001600160a01b03165b60405161014e9190611dbb565b61014461022b366004611dcf565b600092915050565b610144610241366004611b8f565b610bd7565b610144610254366004611df1565b610cd4565b610144610267366004611c9a565b610db4565b61016b61027a366004611e0a565b60676020526000908152604090205460ff1681565b61018361029d366004611f12565b610e3a565b606554610210906001600160a01b031681565b6101447f000000000000000000000000000000000000000000000000000000000000000081565b606654610210906001600160a01b031681565b6101836102fd366004611fd3565b6110ba565b600061031060335460ff1690565b156103365760405162461bcd60e51b815260040161032d90611ff0565b60405180910390fd5b606654600160a01b900460ff16801561035f57503260009081526067602052604090205460ff16155b1561037f5732604051630f51ed7160e41b815260040161032d9190611dbb565b467f0000000000000000000000000000000000000000000000000000000000000000146103bf5760405163c6ea680360e01b815260040160405180910390fd5b3332146103df5760405163feb3d07160e01b815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000082111561044957604051634634691b60e01b8152600481018390527f0000000000000000000000000000000000000000000000000000000000000000602482015260440161032d565b6000610470600333868660405161046192919061201a565b60405180910390206000611299565b60405190915081907fab532385be8f1005a4b6ba8fa20a2245facb346134ac739fe9a5198dc1580b9c90600090a29392505050565b6065546040805163cb23bcb560e01b815290516000926001600160a01b03169163cb23bcb5916004808301926020929190829003018186803b1580156104ea57600080fd5b505afa1580156104fe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610522919061202a565b9050336001600160a01b038216146105da576000816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561056f57600080fd5b505afa158015610583573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a7919061202a565b9050336001600160a01b038216146105d857338282604051630739600760e01b815260040161032d93929190612047565b505b6105e261147e565b50565b600054610100900460ff166106005760005460ff1615610608565b61060861150b565b61066b5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161032d565b600054610100900460ff1615801561068d576000805461ffff19166101011790555b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016141561071b5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b606482015260840161032d565b610725838361151c565b60655460408051631c2eb17b60e31b815290516000926001600160a01b03169163e1758bd8916004808301926020929190829003018186803b15801561076a57600080fd5b505afa15801561077e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a2919061202a565b60655460405163095ea7b360e01b81526001600160a01b039182166004820152600019602482015291925082169063095ea7b390604401602060405180830381600087803b1580156107f357600080fd5b505af1158015610807573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082b919061206a565b5050801561083f576000805461ff00191690555b505050565b600061085260335460ff1690565b1561086f5760405162461bcd60e51b815260040161032d90611ff0565b606654600160a01b900460ff16801561089857503260009081526067602052604090205460ff16155b156108b85732604051630f51ed7160e41b815260040161032d9190611dbb565b6001600160401b038811156108e05760405163107c527b60e01b815260040160405180910390fd5b61092560033360008b8b8b8b6001600160a01b03168b8b8b60405160200161090f989796959493929190612087565b6040516020818303038152906040526000611588565b98975050505050505050565b600061093f60335460ff1690565b1561095c5760405162461bcd60e51b815260040161032d90611ff0565b606654600160a01b900460ff16801561098557503260009081526067602052604090205460ff16155b156109a55732604051630f51ed7160e41b815260040161032d9190611dbb565b6109b78b8b8b8b8b8b8b8b8b8b611650565b9b9a5050505050505050505050565b6065546040805163cb23bcb560e01b815290516000926001600160a01b03169163cb23bcb5916004808301926020929190829003018186803b158015610a0b57600080fd5b505afa158015610a1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a43919061202a565b9050336001600160a01b03821614610afb576000816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a9057600080fd5b505afa158015610aa4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac8919061202a565b9050336001600160a01b03821614610af957338282604051630739600760e01b815260040161032d93929190612047565b505b6105e2611704565b6000610b1160335460ff1690565b15610b2e5760405162461bcd60e51b815260040161032d90611ff0565b606654600160a01b900460ff168015610b5757503260009081526067602052604090205460ff16155b15610b775732604051630f51ed7160e41b815260040161032d9190611dbb565b6001600160401b03871115610b9f5760405163107c527b60e01b815260040160405180910390fd5b610bcc60033360018a8a8a6001600160a01b03168a8a8a60405160200161090f97969594939291906120cd565b979650505050505050565b6000610be560335460ff1690565b15610c025760405162461bcd60e51b815260040161032d90611ff0565b606654600160a01b900460ff168015610c2b57503260009081526067602052604090205460ff16155b15610c4b5732604051630f51ed7160e41b815260040161032d9190611dbb565b467f000000000000000000000000000000000000000000000000000000000000000014610c8b5760405163c6ea680360e01b815260040160405180910390fd5b610ccd60033385858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509250611588915050565b9392505050565b6000610ce260335460ff1690565b15610cff5760405162461bcd60e51b815260040161032d90611ff0565b606654600160a01b900460ff168015610d2857503260009081526067602052604090205460ff16155b15610d485732604051630f51ed7160e41b815260040161032d9190611dbb565b33610d528161175c565b80610d5d5750323314155b15610d7057503361111161111160901b01015b6040516bffffffffffffffffffffffff19606083901b16602082015260348101849052610ccd90600c90339060540160405160208183030381529060405286611588565b6000610dc260335460ff1690565b15610ddf5760405162461bcd60e51b815260040161032d90611ff0565b606654600160a01b900460ff168015610e0857503260009081526067602052604090205460ff16155b15610e285732604051630f51ed7160e41b815260040161032d9190611dbb565b6109b78b8b8b8b8b8b8b8b8b8b61176b565b6065546040805163cb23bcb560e01b815290516000926001600160a01b03169163cb23bcb5916004808301926020929190829003018186803b158015610e7f57600080fd5b505afa158015610e93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb7919061202a565b9050336001600160a01b03821614610f6f576000816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610f0457600080fd5b505afa158015610f18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f3c919061202a565b9050336001600160a01b03821614610f6d57338282604051630739600760e01b815260040161032d93929190612047565b505b8151835114610fb05760405162461bcd60e51b815260206004820152600d60248201526c1253959053125117d253941555609a1b604482015260640161032d565b60005b83518110156110b457828181518110610fce57610fce61210c565b602002602001015160676000868481518110610fec57610fec61210c565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff02191690831515021790555083818151811061103d5761103d61210c565b60200260200101516001600160a01b03167fd9739f45a01ce092c5cdb3d68f63d63d21676b1c6c0b4f9cbc6be4cf5449595a8483815181106110815761108161210c565b602002602001015160405161109a911515815260200190565b60405180910390a2806110ac81612138565b915050610fb3565b50505050565b6065546040805163cb23bcb560e01b815290516000926001600160a01b03169163cb23bcb5916004808301926020929190829003018186803b1580156110ff57600080fd5b505afa158015611113573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611137919061202a565b9050336001600160a01b038216146111ef576000816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561118457600080fd5b505afa158015611198573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bc919061202a565b9050336001600160a01b038216146111ed57338282604051630739600760e01b815260040161032d93929190612047565b505b606660149054906101000a900460ff16151582151514156112405760405162461bcd60e51b815260206004820152600b60248201526a1053149150511657d4d15560aa1b604482015260640161032d565b60668054831515600160a01b0260ff60a01b199091161790556040517f16435b45f7482047f839a6a19d291442627200f52cad2803c595150d0d440eb39061128d90841515815260200190565b60405180910390a15050565b600080606560009054906101000a90046001600160a01b03166001600160a01b031663e1758bd86040518163ffffffff1660e01b815260040160206040518083038186803b1580156112ea57600080fd5b505afa1580156112fe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611322919061202a565b90506000816001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016113529190611dbb565b60206040518083038186803b15801561136a57600080fd5b505afa15801561137e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a29190612153565b9050838110156113d15760006113b8828661216c565b90506113cf6001600160a01b038416333084611848565b505b6065546001600160a01b03166375d81e258861111161111160901b0189016040516001600160e01b031960e085901b16815260ff90921660048301526001600160a01b031660248201526044810188905260648101879052608401602060405180830381600087803b15801561144657600080fd5b505af115801561145a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bcc9190612153565b60335460ff166114c75760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161032d565b6033805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516115019190611dbb565b60405180910390a1565b60006115163061175c565b15905090565b600054610100900460ff166115435760405162461bcd60e51b815260040161032d90612183565b606580546001600160a01b038085166001600160a01b031990921691909117909155606680546001600160a81b0319169183169190911790556115846118a2565b5050565b60007f0000000000000000000000000000000000000000000000000000000000000000835111156115f8578251604051634634691b60e01b815260048101919091527f0000000000000000000000000000000000000000000000000000000000000000602482015260440161032d565b600061160d8686868051906020012086611299565b9050807fff64905f73a67fb594e0f940a8075a860db489ad991e032f48c81123eb52d60b8560405161163f9190612226565b60405180910390a295945050505050565b600061165c8587612239565b6116668b8b612258565b6116709190612258565b8410156116b9576116818587612239565b61168b8b8b612258565b6116959190612258565b604051631c102d6360e21b815260048101919091526024810185905260440161032d565b6116c28861175c565b156116d65761111161111160901b01880197505b6116df8761175c565b15610e285761111161111160901b01870196506109b78b8b8b8b8b8b8b8b8b8b61176b565b60335460ff16156117275760405162461bcd60e51b815260040161032d90611ff0565b6033805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114f43390565b6001600160a01b03163b151590565b6000856001148061177c5750846001145b156117b057338b8b868c8c8c8c8c8b8b6040516307c266e360e01b815260040161032d9b9a99989796959493929190612270565b6001600160401b038611156117d85760405163107c527b60e01b815260040160405180910390fd5b60006118386009338e6001600160a01b03168e898f8f6001600160a01b03168f6001600160a01b03168f8f8e8e90508f8f6040516020016118239b9a999897969594939291906122f9565b60405160208183030381529060405288611588565b9c9b505050505050505050505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526110b49085906118d3565b600054610100900460ff166118c95760405162461bcd60e51b815260040161032d90612183565b6118d16119a5565b565b6000611928826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166119d89092919063ffffffff16565b80519091501561083f5780806020019051810190611946919061206a565b61083f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161032d565b600054610100900460ff166119cc5760405162461bcd60e51b815260040161032d90612183565b6033805460ff19169055565b60606119e784846000856119ef565b949350505050565b606082471015611a505760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161032d565b611a598561175c565b611aa55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161032d565b600080866001600160a01b03168587604051611ac19190612353565b60006040518083038185875af1925050503d8060008114611afe576040519150601f19603f3d011682016040523d82523d6000602084013e611b03565b606091505b5091509150610bcc82828660608315611b1d575081610ccd565b825115611b2d5782518084602001fd5b8160405162461bcd60e51b815260040161032d9190612226565b60008083601f840112611b5957600080fd5b5081356001600160401b03811115611b7057600080fd5b602083019150836020828501011115611b8857600080fd5b9250929050565b60008060208385031215611ba257600080fd5b82356001600160401b03811115611bb857600080fd5b611bc485828601611b47565b90969095509350505050565b6001600160a01b03811681146105e257600080fd5b60008060408385031215611bf857600080fd5b8235611c0381611bd0565b91506020830135611c1381611bd0565b809150509250929050565b600080600080600080600060c0888a031215611c3957600080fd5b8735965060208801359550604088013594506060880135611c5981611bd0565b93506080880135925060a08801356001600160401b03811115611c7b57600080fd5b611c878a828b01611b47565b989b979a50959850939692959293505050565b6000806000806000806000806000806101208b8d031215611cba57600080fd5b8a35611cc581611bd0565b995060208b0135985060408b0135975060608b0135611ce381611bd0565b965060808b0135611cf381611bd0565b955060a08b0135945060c08b0135935060e08b013592506101008b01356001600160401b03811115611d2457600080fd5b611d308d828e01611b47565b915080935050809150509295989b9194979a5092959850565b60008060008060008060a08789031215611d6257600080fd5b86359550602087013594506040870135611d7b81611bd0565b93506060870135925060808701356001600160401b03811115611d9d57600080fd5b611da989828a01611b47565b979a9699509497509295939492505050565b6001600160a01b0391909116815260200190565b60008060408385031215611de257600080fd5b50508035926020909101359150565b600060208284031215611e0357600080fd5b5035919050565b600060208284031215611e1c57600080fd5b8135610ccd81611bd0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611e6557611e65611e27565b604052919050565b60006001600160401b03821115611e8657611e86611e27565b5060051b60200190565b80151581146105e257600080fd5b600082601f830112611eaf57600080fd5b81356020611ec4611ebf83611e6d565b611e3d565b82815260059290921b84018101918181019086841115611ee357600080fd5b8286015b84811015611f07578035611efa81611e90565b8352918301918301611ee7565b509695505050505050565b60008060408385031215611f2557600080fd5b82356001600160401b0380821115611f3c57600080fd5b818501915085601f830112611f5057600080fd5b81356020611f60611ebf83611e6d565b82815260059290921b84018101918181019089841115611f7f57600080fd5b948201945b83861015611fa6578535611f9781611bd0565b82529482019490820190611f84565b96505086013592505080821115611fbc57600080fd5b50611fc985828601611e9e565b9150509250929050565b600060208284031215611fe557600080fd5b8135610ccd81611e90565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b8183823760009101908152919050565b60006020828403121561203c57600080fd5b8151610ccd81611bd0565b6001600160a01b0393841681529183166020830152909116604082015260600190565b60006020828403121561207c57600080fd5b8151610ccd81611e90565b60ff60f81b8960f81b168152876001820152866021820152856041820152846061820152836081820152818360a18301376000910160a101908152979650505050505050565b60ff60f81b8860f81b16815286600182015285602182015284604182015283606182015281836081830137600091016081019081529695505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561214c5761214c612122565b5060010190565b60006020828403121561216557600080fd5b5051919050565b60008282101561217e5761217e612122565b500390565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b838110156121e95781810151838201526020016121d1565b838111156110b45750506000910152565b600081518084526122128160208601602086016121ce565b601f01601f19169290920160200192915050565b602081526000610ccd60208301846121fa565b600081600019048311821515161561225357612253612122565b500290565b6000821982111561226b5761226b612122565b500190565b6001600160a01b038c811682528b81166020830152604082018b9052606082018a90526080820189905287811660a0830152861660c082015260e0810185905261010081018490526101406101208201819052810182905260006101608385828501376000838501820152601f909301601f19169091019091019b9a5050505050505050505050565b8b81528a60208201528960408201528860608201528760808201528660a08201528560c08201528460e08201528361010082015260006101208385828501376000929093019092019081529b9a5050505050505050505050565b600082516123658184602087016121ce565b919091019291505056fea264697066735822122049d58bdcb0b372ec561909ccbdc8a8698ab4fd67328e4915702624165ea8a6e464736f6c63430008090033",
}

ERC20InboxMetaData contains all meta data concerning the ERC20Inbox contract.

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

Functions

func CreateAllowListEnabledCommand

func CreateAllowListEnabledCommand() *cobra.Command

func CreateBridgeCommand

func CreateBridgeCommand() *cobra.Command

func CreateCalculateRetryableSubmissionFeeCommand

func CreateCalculateRetryableSubmissionFeeCommand() *cobra.Command

func CreateCreateRetryableTicketCommand

func CreateCreateRetryableTicketCommand() *cobra.Command

func CreateDepositErc20Command

func CreateDepositErc20Command() *cobra.Command

func CreateERC20InboxCommand

func CreateERC20InboxCommand() *cobra.Command

func CreateERC20InboxDeploymentCommand

func CreateERC20InboxDeploymentCommand() *cobra.Command

func CreateGetProxyAdminCommand

func CreateGetProxyAdminCommand() *cobra.Command

func CreateInitializeCommand

func CreateInitializeCommand() *cobra.Command

func CreateIsAllowedCommand

func CreateIsAllowedCommand() *cobra.Command

func CreateMaxDataSizeCommand

func CreateMaxDataSizeCommand() *cobra.Command

func CreatePauseCommand

func CreatePauseCommand() *cobra.Command

func CreatePausedCommand

func CreatePausedCommand() *cobra.Command

func CreateSendContractTransactionCommand

func CreateSendContractTransactionCommand() *cobra.Command

func CreateSendL2MessageCommand

func CreateSendL2MessageCommand() *cobra.Command

func CreateSendL2MessageFromOriginCommand

func CreateSendL2MessageFromOriginCommand() *cobra.Command

func CreateSendUnsignedTransactionCommand

func CreateSendUnsignedTransactionCommand() *cobra.Command

func CreateSequencerInboxCommand

func CreateSequencerInboxCommand() *cobra.Command

func CreateSetAllowListCommand

func CreateSetAllowListCommand() *cobra.Command

func CreateSetAllowListEnabledCommand

func CreateSetAllowListEnabledCommand() *cobra.Command

func CreateUnpauseCommand

func CreateUnpauseCommand() *cobra.Command

func CreateUnsafeCreateRetryableTicketCommand

func CreateUnsafeCreateRetryableTicketCommand() *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 ERC_20_INBOX_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 ERC20Inbox

type ERC20Inbox struct {
	ERC20InboxCaller     // Read-only binding to the contract
	ERC20InboxTransactor // Write-only binding to the contract
	ERC20InboxFilterer   // Log filterer for contract events
}

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

func DeployERC20Inbox

func DeployERC20Inbox(auth *bind.TransactOpts, backend bind.ContractBackend, _maxDataSize *big.Int) (common.Address, *types.Transaction, *ERC20Inbox, error)

DeployERC20Inbox deploys a new Ethereum contract, binding an instance of ERC20Inbox to it.

func NewERC20Inbox

func NewERC20Inbox(address common.Address, backend bind.ContractBackend) (*ERC20Inbox, error)

NewERC20Inbox creates a new instance of ERC20Inbox, bound to a specific deployed contract.

type ERC20InboxAllowListAddressSet

type ERC20InboxAllowListAddressSet struct {
	User common.Address
	Val  bool
	Raw  types.Log // Blockchain specific contextual infos
}

ERC20InboxAllowListAddressSet represents a AllowListAddressSet event raised by the ERC20Inbox contract.

type ERC20InboxAllowListAddressSetIterator

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

ERC20InboxAllowListAddressSetIterator is returned from FilterAllowListAddressSet and is used to iterate over the raw logs and unpacked data for AllowListAddressSet events raised by the ERC20Inbox contract.

func (*ERC20InboxAllowListAddressSetIterator) Close

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

func (*ERC20InboxAllowListAddressSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type ERC20InboxAllowListEnabledUpdated struct {
	IsEnabled bool
	Raw       types.Log // Blockchain specific contextual infos
}

ERC20InboxAllowListEnabledUpdated represents a AllowListEnabledUpdated event raised by the ERC20Inbox contract.

type ERC20InboxAllowListEnabledUpdatedIterator

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

ERC20InboxAllowListEnabledUpdatedIterator is returned from FilterAllowListEnabledUpdated and is used to iterate over the raw logs and unpacked data for AllowListEnabledUpdated events raised by the ERC20Inbox contract.

func (*ERC20InboxAllowListEnabledUpdatedIterator) Close

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

func (*ERC20InboxAllowListEnabledUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func NewERC20InboxCaller

func NewERC20InboxCaller(address common.Address, caller bind.ContractCaller) (*ERC20InboxCaller, error)

NewERC20InboxCaller creates a new read-only instance of ERC20Inbox, bound to a specific deployed contract.

func (*ERC20InboxCaller) AllowListEnabled

func (_ERC20Inbox *ERC20InboxCaller) AllowListEnabled(opts *bind.CallOpts) (bool, error)

AllowListEnabled is a free data retrieval call binding the contract method 0x22bd5c1c.

Solidity: function allowListEnabled() view returns(bool)

func (*ERC20InboxCaller) Bridge

func (_ERC20Inbox *ERC20InboxCaller) Bridge(opts *bind.CallOpts) (common.Address, error)

Bridge is a free data retrieval call binding the contract method 0xe78cea92.

Solidity: function bridge() view returns(address)

func (*ERC20InboxCaller) CalculateRetryableSubmissionFee

func (_ERC20Inbox *ERC20InboxCaller) CalculateRetryableSubmissionFee(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) (*big.Int, error)

CalculateRetryableSubmissionFee is a free data retrieval call binding the contract method 0xa66b327d.

Solidity: function calculateRetryableSubmissionFee(uint256 , uint256 ) pure returns(uint256)

func (*ERC20InboxCaller) GetProxyAdmin

func (_ERC20Inbox *ERC20InboxCaller) GetProxyAdmin(opts *bind.CallOpts) (common.Address, error)

GetProxyAdmin is a free data retrieval call binding the contract method 0x8b3240a0.

Solidity: function getProxyAdmin() view returns(address)

func (*ERC20InboxCaller) IsAllowed

func (_ERC20Inbox *ERC20InboxCaller) IsAllowed(opts *bind.CallOpts, arg0 common.Address) (bool, error)

IsAllowed is a free data retrieval call binding the contract method 0xbabcc539.

Solidity: function isAllowed(address ) view returns(bool)

func (*ERC20InboxCaller) MaxDataSize

func (_ERC20Inbox *ERC20InboxCaller) MaxDataSize(opts *bind.CallOpts) (*big.Int, error)

MaxDataSize is a free data retrieval call binding the contract method 0xe8eb1dc3.

Solidity: function maxDataSize() view returns(uint256)

func (*ERC20InboxCaller) Paused

func (_ERC20Inbox *ERC20InboxCaller) 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 (*ERC20InboxCaller) SequencerInbox

func (_ERC20Inbox *ERC20InboxCaller) SequencerInbox(opts *bind.CallOpts) (common.Address, error)

SequencerInbox is a free data retrieval call binding the contract method 0xee35f327.

Solidity: function sequencerInbox() view returns(address)

type ERC20InboxCallerRaw

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

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

func (*ERC20InboxCallerRaw) Call

func (_ERC20Inbox *ERC20InboxCallerRaw) 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 ERC20InboxCallerSession

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

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

func (*ERC20InboxCallerSession) AllowListEnabled

func (_ERC20Inbox *ERC20InboxCallerSession) AllowListEnabled() (bool, error)

AllowListEnabled is a free data retrieval call binding the contract method 0x22bd5c1c.

Solidity: function allowListEnabled() view returns(bool)

func (*ERC20InboxCallerSession) Bridge

func (_ERC20Inbox *ERC20InboxCallerSession) Bridge() (common.Address, error)

Bridge is a free data retrieval call binding the contract method 0xe78cea92.

Solidity: function bridge() view returns(address)

func (*ERC20InboxCallerSession) CalculateRetryableSubmissionFee

func (_ERC20Inbox *ERC20InboxCallerSession) CalculateRetryableSubmissionFee(arg0 *big.Int, arg1 *big.Int) (*big.Int, error)

CalculateRetryableSubmissionFee is a free data retrieval call binding the contract method 0xa66b327d.

Solidity: function calculateRetryableSubmissionFee(uint256 , uint256 ) pure returns(uint256)

func (*ERC20InboxCallerSession) GetProxyAdmin

func (_ERC20Inbox *ERC20InboxCallerSession) GetProxyAdmin() (common.Address, error)

GetProxyAdmin is a free data retrieval call binding the contract method 0x8b3240a0.

Solidity: function getProxyAdmin() view returns(address)

func (*ERC20InboxCallerSession) IsAllowed

func (_ERC20Inbox *ERC20InboxCallerSession) IsAllowed(arg0 common.Address) (bool, error)

IsAllowed is a free data retrieval call binding the contract method 0xbabcc539.

Solidity: function isAllowed(address ) view returns(bool)

func (*ERC20InboxCallerSession) MaxDataSize

func (_ERC20Inbox *ERC20InboxCallerSession) MaxDataSize() (*big.Int, error)

MaxDataSize is a free data retrieval call binding the contract method 0xe8eb1dc3.

Solidity: function maxDataSize() view returns(uint256)

func (*ERC20InboxCallerSession) Paused

func (_ERC20Inbox *ERC20InboxCallerSession) Paused() (bool, error)

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

Solidity: function paused() view returns(bool)

func (*ERC20InboxCallerSession) SequencerInbox

func (_ERC20Inbox *ERC20InboxCallerSession) SequencerInbox() (common.Address, error)

SequencerInbox is a free data retrieval call binding the contract method 0xee35f327.

Solidity: function sequencerInbox() view returns(address)

type ERC20InboxFilterer

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

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

func NewERC20InboxFilterer

func NewERC20InboxFilterer(address common.Address, filterer bind.ContractFilterer) (*ERC20InboxFilterer, error)

NewERC20InboxFilterer creates a new log filterer instance of ERC20Inbox, bound to a specific deployed contract.

func (*ERC20InboxFilterer) FilterAllowListAddressSet

func (_ERC20Inbox *ERC20InboxFilterer) FilterAllowListAddressSet(opts *bind.FilterOpts, user []common.Address) (*ERC20InboxAllowListAddressSetIterator, error)

FilterAllowListAddressSet is a free log retrieval operation binding the contract event 0xd9739f45a01ce092c5cdb3d68f63d63d21676b1c6c0b4f9cbc6be4cf5449595a.

Solidity: event AllowListAddressSet(address indexed user, bool val)

func (*ERC20InboxFilterer) FilterAllowListEnabledUpdated

func (_ERC20Inbox *ERC20InboxFilterer) FilterAllowListEnabledUpdated(opts *bind.FilterOpts) (*ERC20InboxAllowListEnabledUpdatedIterator, error)

FilterAllowListEnabledUpdated is a free log retrieval operation binding the contract event 0x16435b45f7482047f839a6a19d291442627200f52cad2803c595150d0d440eb3.

Solidity: event AllowListEnabledUpdated(bool isEnabled)

func (*ERC20InboxFilterer) FilterInboxMessageDelivered

func (_ERC20Inbox *ERC20InboxFilterer) FilterInboxMessageDelivered(opts *bind.FilterOpts, messageNum []*big.Int) (*ERC20InboxInboxMessageDeliveredIterator, error)

FilterInboxMessageDelivered is a free log retrieval operation binding the contract event 0xff64905f73a67fb594e0f940a8075a860db489ad991e032f48c81123eb52d60b.

Solidity: event InboxMessageDelivered(uint256 indexed messageNum, bytes data)

func (*ERC20InboxFilterer) FilterInboxMessageDeliveredFromOrigin

func (_ERC20Inbox *ERC20InboxFilterer) FilterInboxMessageDeliveredFromOrigin(opts *bind.FilterOpts, messageNum []*big.Int) (*ERC20InboxInboxMessageDeliveredFromOriginIterator, error)

FilterInboxMessageDeliveredFromOrigin is a free log retrieval operation binding the contract event 0xab532385be8f1005a4b6ba8fa20a2245facb346134ac739fe9a5198dc1580b9c.

Solidity: event InboxMessageDeliveredFromOrigin(uint256 indexed messageNum)

func (*ERC20InboxFilterer) FilterPaused

func (_ERC20Inbox *ERC20InboxFilterer) FilterPaused(opts *bind.FilterOpts) (*ERC20InboxPausedIterator, error)

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

Solidity: event Paused(address account)

func (*ERC20InboxFilterer) FilterUnpaused

func (_ERC20Inbox *ERC20InboxFilterer) FilterUnpaused(opts *bind.FilterOpts) (*ERC20InboxUnpausedIterator, error)

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

Solidity: event Unpaused(address account)

func (*ERC20InboxFilterer) ParseAllowListAddressSet

func (_ERC20Inbox *ERC20InboxFilterer) ParseAllowListAddressSet(log types.Log) (*ERC20InboxAllowListAddressSet, error)

ParseAllowListAddressSet is a log parse operation binding the contract event 0xd9739f45a01ce092c5cdb3d68f63d63d21676b1c6c0b4f9cbc6be4cf5449595a.

Solidity: event AllowListAddressSet(address indexed user, bool val)

func (*ERC20InboxFilterer) ParseAllowListEnabledUpdated

func (_ERC20Inbox *ERC20InboxFilterer) ParseAllowListEnabledUpdated(log types.Log) (*ERC20InboxAllowListEnabledUpdated, error)

ParseAllowListEnabledUpdated is a log parse operation binding the contract event 0x16435b45f7482047f839a6a19d291442627200f52cad2803c595150d0d440eb3.

Solidity: event AllowListEnabledUpdated(bool isEnabled)

func (*ERC20InboxFilterer) ParseInboxMessageDelivered

func (_ERC20Inbox *ERC20InboxFilterer) ParseInboxMessageDelivered(log types.Log) (*ERC20InboxInboxMessageDelivered, error)

ParseInboxMessageDelivered is a log parse operation binding the contract event 0xff64905f73a67fb594e0f940a8075a860db489ad991e032f48c81123eb52d60b.

Solidity: event InboxMessageDelivered(uint256 indexed messageNum, bytes data)

func (*ERC20InboxFilterer) ParseInboxMessageDeliveredFromOrigin

func (_ERC20Inbox *ERC20InboxFilterer) ParseInboxMessageDeliveredFromOrigin(log types.Log) (*ERC20InboxInboxMessageDeliveredFromOrigin, error)

ParseInboxMessageDeliveredFromOrigin is a log parse operation binding the contract event 0xab532385be8f1005a4b6ba8fa20a2245facb346134ac739fe9a5198dc1580b9c.

Solidity: event InboxMessageDeliveredFromOrigin(uint256 indexed messageNum)

func (*ERC20InboxFilterer) ParsePaused

func (_ERC20Inbox *ERC20InboxFilterer) ParsePaused(log types.Log) (*ERC20InboxPaused, error)

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

Solidity: event Paused(address account)

func (*ERC20InboxFilterer) ParseUnpaused

func (_ERC20Inbox *ERC20InboxFilterer) ParseUnpaused(log types.Log) (*ERC20InboxUnpaused, error)

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

Solidity: event Unpaused(address account)

func (*ERC20InboxFilterer) WatchAllowListAddressSet

func (_ERC20Inbox *ERC20InboxFilterer) WatchAllowListAddressSet(opts *bind.WatchOpts, sink chan<- *ERC20InboxAllowListAddressSet, user []common.Address) (event.Subscription, error)

WatchAllowListAddressSet is a free log subscription operation binding the contract event 0xd9739f45a01ce092c5cdb3d68f63d63d21676b1c6c0b4f9cbc6be4cf5449595a.

Solidity: event AllowListAddressSet(address indexed user, bool val)

func (*ERC20InboxFilterer) WatchAllowListEnabledUpdated

func (_ERC20Inbox *ERC20InboxFilterer) WatchAllowListEnabledUpdated(opts *bind.WatchOpts, sink chan<- *ERC20InboxAllowListEnabledUpdated) (event.Subscription, error)

WatchAllowListEnabledUpdated is a free log subscription operation binding the contract event 0x16435b45f7482047f839a6a19d291442627200f52cad2803c595150d0d440eb3.

Solidity: event AllowListEnabledUpdated(bool isEnabled)

func (*ERC20InboxFilterer) WatchInboxMessageDelivered

func (_ERC20Inbox *ERC20InboxFilterer) WatchInboxMessageDelivered(opts *bind.WatchOpts, sink chan<- *ERC20InboxInboxMessageDelivered, messageNum []*big.Int) (event.Subscription, error)

WatchInboxMessageDelivered is a free log subscription operation binding the contract event 0xff64905f73a67fb594e0f940a8075a860db489ad991e032f48c81123eb52d60b.

Solidity: event InboxMessageDelivered(uint256 indexed messageNum, bytes data)

func (*ERC20InboxFilterer) WatchInboxMessageDeliveredFromOrigin

func (_ERC20Inbox *ERC20InboxFilterer) WatchInboxMessageDeliveredFromOrigin(opts *bind.WatchOpts, sink chan<- *ERC20InboxInboxMessageDeliveredFromOrigin, messageNum []*big.Int) (event.Subscription, error)

WatchInboxMessageDeliveredFromOrigin is a free log subscription operation binding the contract event 0xab532385be8f1005a4b6ba8fa20a2245facb346134ac739fe9a5198dc1580b9c.

Solidity: event InboxMessageDeliveredFromOrigin(uint256 indexed messageNum)

func (*ERC20InboxFilterer) WatchPaused

func (_ERC20Inbox *ERC20InboxFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *ERC20InboxPaused) (event.Subscription, error)

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

Solidity: event Paused(address account)

func (*ERC20InboxFilterer) WatchUnpaused

func (_ERC20Inbox *ERC20InboxFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *ERC20InboxUnpaused) (event.Subscription, error)

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

Solidity: event Unpaused(address account)

type ERC20InboxInboxMessageDelivered

type ERC20InboxInboxMessageDelivered struct {
	MessageNum *big.Int
	Data       []byte
	Raw        types.Log // Blockchain specific contextual infos
}

ERC20InboxInboxMessageDelivered represents a InboxMessageDelivered event raised by the ERC20Inbox contract.

type ERC20InboxInboxMessageDeliveredFromOrigin

type ERC20InboxInboxMessageDeliveredFromOrigin struct {
	MessageNum *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

ERC20InboxInboxMessageDeliveredFromOrigin represents a InboxMessageDeliveredFromOrigin event raised by the ERC20Inbox contract.

type ERC20InboxInboxMessageDeliveredFromOriginIterator

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

ERC20InboxInboxMessageDeliveredFromOriginIterator is returned from FilterInboxMessageDeliveredFromOrigin and is used to iterate over the raw logs and unpacked data for InboxMessageDeliveredFromOrigin events raised by the ERC20Inbox contract.

func (*ERC20InboxInboxMessageDeliveredFromOriginIterator) Close

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

func (*ERC20InboxInboxMessageDeliveredFromOriginIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

ERC20InboxInboxMessageDeliveredIterator is returned from FilterInboxMessageDelivered and is used to iterate over the raw logs and unpacked data for InboxMessageDelivered events raised by the ERC20Inbox contract.

func (*ERC20InboxInboxMessageDeliveredIterator) Close

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

func (*ERC20InboxInboxMessageDeliveredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

ERC20InboxPaused represents a Paused event raised by the ERC20Inbox contract.

type ERC20InboxPausedIterator

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

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

func (*ERC20InboxPausedIterator) Close

func (it *ERC20InboxPausedIterator) Close() error

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

func (*ERC20InboxPausedIterator) Error

func (it *ERC20InboxPausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20InboxPausedIterator) Next

func (it *ERC20InboxPausedIterator) 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 ERC20InboxRaw

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

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

func (*ERC20InboxRaw) Call

func (_ERC20Inbox *ERC20InboxRaw) 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 (*ERC20InboxRaw) Transact

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

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

func (*ERC20InboxRaw) Transfer

func (_ERC20Inbox *ERC20InboxRaw) 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 ERC20InboxSession

type ERC20InboxSession struct {
	Contract     *ERC20Inbox       // 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
}

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

func (*ERC20InboxSession) AllowListEnabled

func (_ERC20Inbox *ERC20InboxSession) AllowListEnabled() (bool, error)

AllowListEnabled is a free data retrieval call binding the contract method 0x22bd5c1c.

Solidity: function allowListEnabled() view returns(bool)

func (*ERC20InboxSession) Bridge

func (_ERC20Inbox *ERC20InboxSession) Bridge() (common.Address, error)

Bridge is a free data retrieval call binding the contract method 0xe78cea92.

Solidity: function bridge() view returns(address)

func (*ERC20InboxSession) CalculateRetryableSubmissionFee

func (_ERC20Inbox *ERC20InboxSession) CalculateRetryableSubmissionFee(arg0 *big.Int, arg1 *big.Int) (*big.Int, error)

CalculateRetryableSubmissionFee is a free data retrieval call binding the contract method 0xa66b327d.

Solidity: function calculateRetryableSubmissionFee(uint256 , uint256 ) pure returns(uint256)

func (*ERC20InboxSession) CreateRetryableTicket

func (_ERC20Inbox *ERC20InboxSession) CreateRetryableTicket(to common.Address, l2CallValue *big.Int, maxSubmissionCost *big.Int, excessFeeRefundAddress common.Address, callValueRefundAddress common.Address, gasLimit *big.Int, maxFeePerGas *big.Int, tokenTotalFeeAmount *big.Int, data []byte) (*types.Transaction, error)

CreateRetryableTicket is a paid mutator transaction binding the contract method 0x549e8426.

Solidity: function createRetryableTicket(address to, uint256 l2CallValue, uint256 maxSubmissionCost, address excessFeeRefundAddress, address callValueRefundAddress, uint256 gasLimit, uint256 maxFeePerGas, uint256 tokenTotalFeeAmount, bytes data) returns(uint256)

func (*ERC20InboxSession) DepositERC20

func (_ERC20Inbox *ERC20InboxSession) DepositERC20(amount *big.Int) (*types.Transaction, error)

DepositERC20 is a paid mutator transaction binding the contract method 0xb79092fd.

Solidity: function depositERC20(uint256 amount) returns(uint256)

func (*ERC20InboxSession) GetProxyAdmin

func (_ERC20Inbox *ERC20InboxSession) GetProxyAdmin() (common.Address, error)

GetProxyAdmin is a free data retrieval call binding the contract method 0x8b3240a0.

Solidity: function getProxyAdmin() view returns(address)

func (*ERC20InboxSession) Initialize

func (_ERC20Inbox *ERC20InboxSession) Initialize(_bridge common.Address, _sequencerInbox common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _bridge, address _sequencerInbox) returns()

func (*ERC20InboxSession) IsAllowed

func (_ERC20Inbox *ERC20InboxSession) IsAllowed(arg0 common.Address) (bool, error)

IsAllowed is a free data retrieval call binding the contract method 0xbabcc539.

Solidity: function isAllowed(address ) view returns(bool)

func (*ERC20InboxSession) MaxDataSize

func (_ERC20Inbox *ERC20InboxSession) MaxDataSize() (*big.Int, error)

MaxDataSize is a free data retrieval call binding the contract method 0xe8eb1dc3.

Solidity: function maxDataSize() view returns(uint256)

func (*ERC20InboxSession) Pause

func (_ERC20Inbox *ERC20InboxSession) Pause() (*types.Transaction, error)

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

Solidity: function pause() returns()

func (*ERC20InboxSession) Paused

func (_ERC20Inbox *ERC20InboxSession) Paused() (bool, error)

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

Solidity: function paused() view returns(bool)

func (*ERC20InboxSession) SendContractTransaction

func (_ERC20Inbox *ERC20InboxSession) SendContractTransaction(gasLimit *big.Int, maxFeePerGas *big.Int, to common.Address, value *big.Int, data []byte) (*types.Transaction, error)

SendContractTransaction is a paid mutator transaction binding the contract method 0x8a631aa6.

Solidity: function sendContractTransaction(uint256 gasLimit, uint256 maxFeePerGas, address to, uint256 value, bytes data) returns(uint256)

func (*ERC20InboxSession) SendL2Message

func (_ERC20Inbox *ERC20InboxSession) SendL2Message(messageData []byte) (*types.Transaction, error)

SendL2Message is a paid mutator transaction binding the contract method 0xb75436bb.

Solidity: function sendL2Message(bytes messageData) returns(uint256)

func (*ERC20InboxSession) SendL2MessageFromOrigin

func (_ERC20Inbox *ERC20InboxSession) SendL2MessageFromOrigin(messageData []byte) (*types.Transaction, error)

SendL2MessageFromOrigin is a paid mutator transaction binding the contract method 0x1fe927cf.

Solidity: function sendL2MessageFromOrigin(bytes messageData) returns(uint256)

func (*ERC20InboxSession) SendUnsignedTransaction

func (_ERC20Inbox *ERC20InboxSession) SendUnsignedTransaction(gasLimit *big.Int, maxFeePerGas *big.Int, nonce *big.Int, to common.Address, value *big.Int, data []byte) (*types.Transaction, error)

SendUnsignedTransaction is a paid mutator transaction binding the contract method 0x5075788b.

Solidity: function sendUnsignedTransaction(uint256 gasLimit, uint256 maxFeePerGas, uint256 nonce, address to, uint256 value, bytes data) returns(uint256)

func (*ERC20InboxSession) SequencerInbox

func (_ERC20Inbox *ERC20InboxSession) SequencerInbox() (common.Address, error)

SequencerInbox is a free data retrieval call binding the contract method 0xee35f327.

Solidity: function sequencerInbox() view returns(address)

func (*ERC20InboxSession) SetAllowList

func (_ERC20Inbox *ERC20InboxSession) SetAllowList(user []common.Address, val []bool) (*types.Transaction, error)

SetAllowList is a paid mutator transaction binding the contract method 0xe3de72a5.

Solidity: function setAllowList(address[] user, bool[] val) returns()

func (*ERC20InboxSession) SetAllowListEnabled

func (_ERC20Inbox *ERC20InboxSession) SetAllowListEnabled(_allowListEnabled bool) (*types.Transaction, error)

SetAllowListEnabled is a paid mutator transaction binding the contract method 0xefeadb6d.

Solidity: function setAllowListEnabled(bool _allowListEnabled) returns()

func (*ERC20InboxSession) Unpause

func (_ERC20Inbox *ERC20InboxSession) Unpause() (*types.Transaction, error)

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

Solidity: function unpause() returns()

func (*ERC20InboxSession) UnsafeCreateRetryableTicket

func (_ERC20Inbox *ERC20InboxSession) UnsafeCreateRetryableTicket(to common.Address, l2CallValue *big.Int, maxSubmissionCost *big.Int, excessFeeRefundAddress common.Address, callValueRefundAddress common.Address, gasLimit *big.Int, maxFeePerGas *big.Int, tokenTotalFeeAmount *big.Int, data []byte) (*types.Transaction, error)

UnsafeCreateRetryableTicket is a paid mutator transaction binding the contract method 0xb9b9a688.

Solidity: function unsafeCreateRetryableTicket(address to, uint256 l2CallValue, uint256 maxSubmissionCost, address excessFeeRefundAddress, address callValueRefundAddress, uint256 gasLimit, uint256 maxFeePerGas, uint256 tokenTotalFeeAmount, bytes data) returns(uint256)

type ERC20InboxTransactor

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

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

func NewERC20InboxTransactor

func NewERC20InboxTransactor(address common.Address, transactor bind.ContractTransactor) (*ERC20InboxTransactor, error)

NewERC20InboxTransactor creates a new write-only instance of ERC20Inbox, bound to a specific deployed contract.

func (*ERC20InboxTransactor) CreateRetryableTicket

func (_ERC20Inbox *ERC20InboxTransactor) CreateRetryableTicket(opts *bind.TransactOpts, to common.Address, l2CallValue *big.Int, maxSubmissionCost *big.Int, excessFeeRefundAddress common.Address, callValueRefundAddress common.Address, gasLimit *big.Int, maxFeePerGas *big.Int, tokenTotalFeeAmount *big.Int, data []byte) (*types.Transaction, error)

CreateRetryableTicket is a paid mutator transaction binding the contract method 0x549e8426.

Solidity: function createRetryableTicket(address to, uint256 l2CallValue, uint256 maxSubmissionCost, address excessFeeRefundAddress, address callValueRefundAddress, uint256 gasLimit, uint256 maxFeePerGas, uint256 tokenTotalFeeAmount, bytes data) returns(uint256)

func (*ERC20InboxTransactor) DepositERC20

func (_ERC20Inbox *ERC20InboxTransactor) DepositERC20(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

DepositERC20 is a paid mutator transaction binding the contract method 0xb79092fd.

Solidity: function depositERC20(uint256 amount) returns(uint256)

func (*ERC20InboxTransactor) Initialize

func (_ERC20Inbox *ERC20InboxTransactor) Initialize(opts *bind.TransactOpts, _bridge common.Address, _sequencerInbox common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _bridge, address _sequencerInbox) returns()

func (*ERC20InboxTransactor) Pause

func (_ERC20Inbox *ERC20InboxTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function pause() returns()

func (*ERC20InboxTransactor) SendContractTransaction

func (_ERC20Inbox *ERC20InboxTransactor) SendContractTransaction(opts *bind.TransactOpts, gasLimit *big.Int, maxFeePerGas *big.Int, to common.Address, value *big.Int, data []byte) (*types.Transaction, error)

SendContractTransaction is a paid mutator transaction binding the contract method 0x8a631aa6.

Solidity: function sendContractTransaction(uint256 gasLimit, uint256 maxFeePerGas, address to, uint256 value, bytes data) returns(uint256)

func (*ERC20InboxTransactor) SendL2Message

func (_ERC20Inbox *ERC20InboxTransactor) SendL2Message(opts *bind.TransactOpts, messageData []byte) (*types.Transaction, error)

SendL2Message is a paid mutator transaction binding the contract method 0xb75436bb.

Solidity: function sendL2Message(bytes messageData) returns(uint256)

func (*ERC20InboxTransactor) SendL2MessageFromOrigin

func (_ERC20Inbox *ERC20InboxTransactor) SendL2MessageFromOrigin(opts *bind.TransactOpts, messageData []byte) (*types.Transaction, error)

SendL2MessageFromOrigin is a paid mutator transaction binding the contract method 0x1fe927cf.

Solidity: function sendL2MessageFromOrigin(bytes messageData) returns(uint256)

func (*ERC20InboxTransactor) SendUnsignedTransaction

func (_ERC20Inbox *ERC20InboxTransactor) SendUnsignedTransaction(opts *bind.TransactOpts, gasLimit *big.Int, maxFeePerGas *big.Int, nonce *big.Int, to common.Address, value *big.Int, data []byte) (*types.Transaction, error)

SendUnsignedTransaction is a paid mutator transaction binding the contract method 0x5075788b.

Solidity: function sendUnsignedTransaction(uint256 gasLimit, uint256 maxFeePerGas, uint256 nonce, address to, uint256 value, bytes data) returns(uint256)

func (*ERC20InboxTransactor) SetAllowList

func (_ERC20Inbox *ERC20InboxTransactor) SetAllowList(opts *bind.TransactOpts, user []common.Address, val []bool) (*types.Transaction, error)

SetAllowList is a paid mutator transaction binding the contract method 0xe3de72a5.

Solidity: function setAllowList(address[] user, bool[] val) returns()

func (*ERC20InboxTransactor) SetAllowListEnabled

func (_ERC20Inbox *ERC20InboxTransactor) SetAllowListEnabled(opts *bind.TransactOpts, _allowListEnabled bool) (*types.Transaction, error)

SetAllowListEnabled is a paid mutator transaction binding the contract method 0xefeadb6d.

Solidity: function setAllowListEnabled(bool _allowListEnabled) returns()

func (*ERC20InboxTransactor) Unpause

func (_ERC20Inbox *ERC20InboxTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function unpause() returns()

func (*ERC20InboxTransactor) UnsafeCreateRetryableTicket

func (_ERC20Inbox *ERC20InboxTransactor) UnsafeCreateRetryableTicket(opts *bind.TransactOpts, to common.Address, l2CallValue *big.Int, maxSubmissionCost *big.Int, excessFeeRefundAddress common.Address, callValueRefundAddress common.Address, gasLimit *big.Int, maxFeePerGas *big.Int, tokenTotalFeeAmount *big.Int, data []byte) (*types.Transaction, error)

UnsafeCreateRetryableTicket is a paid mutator transaction binding the contract method 0xb9b9a688.

Solidity: function unsafeCreateRetryableTicket(address to, uint256 l2CallValue, uint256 maxSubmissionCost, address excessFeeRefundAddress, address callValueRefundAddress, uint256 gasLimit, uint256 maxFeePerGas, uint256 tokenTotalFeeAmount, bytes data) returns(uint256)

type ERC20InboxTransactorRaw

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

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

func (*ERC20InboxTransactorRaw) Transact

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

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

func (*ERC20InboxTransactorRaw) Transfer

func (_ERC20Inbox *ERC20InboxTransactorRaw) 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 ERC20InboxTransactorSession

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

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

func (*ERC20InboxTransactorSession) CreateRetryableTicket

func (_ERC20Inbox *ERC20InboxTransactorSession) CreateRetryableTicket(to common.Address, l2CallValue *big.Int, maxSubmissionCost *big.Int, excessFeeRefundAddress common.Address, callValueRefundAddress common.Address, gasLimit *big.Int, maxFeePerGas *big.Int, tokenTotalFeeAmount *big.Int, data []byte) (*types.Transaction, error)

CreateRetryableTicket is a paid mutator transaction binding the contract method 0x549e8426.

Solidity: function createRetryableTicket(address to, uint256 l2CallValue, uint256 maxSubmissionCost, address excessFeeRefundAddress, address callValueRefundAddress, uint256 gasLimit, uint256 maxFeePerGas, uint256 tokenTotalFeeAmount, bytes data) returns(uint256)

func (*ERC20InboxTransactorSession) DepositERC20

func (_ERC20Inbox *ERC20InboxTransactorSession) DepositERC20(amount *big.Int) (*types.Transaction, error)

DepositERC20 is a paid mutator transaction binding the contract method 0xb79092fd.

Solidity: function depositERC20(uint256 amount) returns(uint256)

func (*ERC20InboxTransactorSession) Initialize

func (_ERC20Inbox *ERC20InboxTransactorSession) Initialize(_bridge common.Address, _sequencerInbox common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _bridge, address _sequencerInbox) returns()

func (*ERC20InboxTransactorSession) Pause

func (_ERC20Inbox *ERC20InboxTransactorSession) Pause() (*types.Transaction, error)

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

Solidity: function pause() returns()

func (*ERC20InboxTransactorSession) SendContractTransaction

func (_ERC20Inbox *ERC20InboxTransactorSession) SendContractTransaction(gasLimit *big.Int, maxFeePerGas *big.Int, to common.Address, value *big.Int, data []byte) (*types.Transaction, error)

SendContractTransaction is a paid mutator transaction binding the contract method 0x8a631aa6.

Solidity: function sendContractTransaction(uint256 gasLimit, uint256 maxFeePerGas, address to, uint256 value, bytes data) returns(uint256)

func (*ERC20InboxTransactorSession) SendL2Message

func (_ERC20Inbox *ERC20InboxTransactorSession) SendL2Message(messageData []byte) (*types.Transaction, error)

SendL2Message is a paid mutator transaction binding the contract method 0xb75436bb.

Solidity: function sendL2Message(bytes messageData) returns(uint256)

func (*ERC20InboxTransactorSession) SendL2MessageFromOrigin

func (_ERC20Inbox *ERC20InboxTransactorSession) SendL2MessageFromOrigin(messageData []byte) (*types.Transaction, error)

SendL2MessageFromOrigin is a paid mutator transaction binding the contract method 0x1fe927cf.

Solidity: function sendL2MessageFromOrigin(bytes messageData) returns(uint256)

func (*ERC20InboxTransactorSession) SendUnsignedTransaction

func (_ERC20Inbox *ERC20InboxTransactorSession) SendUnsignedTransaction(gasLimit *big.Int, maxFeePerGas *big.Int, nonce *big.Int, to common.Address, value *big.Int, data []byte) (*types.Transaction, error)

SendUnsignedTransaction is a paid mutator transaction binding the contract method 0x5075788b.

Solidity: function sendUnsignedTransaction(uint256 gasLimit, uint256 maxFeePerGas, uint256 nonce, address to, uint256 value, bytes data) returns(uint256)

func (*ERC20InboxTransactorSession) SetAllowList

func (_ERC20Inbox *ERC20InboxTransactorSession) SetAllowList(user []common.Address, val []bool) (*types.Transaction, error)

SetAllowList is a paid mutator transaction binding the contract method 0xe3de72a5.

Solidity: function setAllowList(address[] user, bool[] val) returns()

func (*ERC20InboxTransactorSession) SetAllowListEnabled

func (_ERC20Inbox *ERC20InboxTransactorSession) SetAllowListEnabled(_allowListEnabled bool) (*types.Transaction, error)

SetAllowListEnabled is a paid mutator transaction binding the contract method 0xefeadb6d.

Solidity: function setAllowListEnabled(bool _allowListEnabled) returns()

func (*ERC20InboxTransactorSession) Unpause

func (_ERC20Inbox *ERC20InboxTransactorSession) Unpause() (*types.Transaction, error)

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

Solidity: function unpause() returns()

func (*ERC20InboxTransactorSession) UnsafeCreateRetryableTicket

func (_ERC20Inbox *ERC20InboxTransactorSession) UnsafeCreateRetryableTicket(to common.Address, l2CallValue *big.Int, maxSubmissionCost *big.Int, excessFeeRefundAddress common.Address, callValueRefundAddress common.Address, gasLimit *big.Int, maxFeePerGas *big.Int, tokenTotalFeeAmount *big.Int, data []byte) (*types.Transaction, error)

UnsafeCreateRetryableTicket is a paid mutator transaction binding the contract method 0xb9b9a688.

Solidity: function unsafeCreateRetryableTicket(address to, uint256 l2CallValue, uint256 maxSubmissionCost, address excessFeeRefundAddress, address callValueRefundAddress, uint256 gasLimit, uint256 maxFeePerGas, uint256 tokenTotalFeeAmount, bytes data) returns(uint256)

type ERC20InboxUnpaused

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

ERC20InboxUnpaused represents a Unpaused event raised by the ERC20Inbox contract.

type ERC20InboxUnpausedIterator

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

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

func (*ERC20InboxUnpausedIterator) Close

func (it *ERC20InboxUnpausedIterator) Close() error

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

func (*ERC20InboxUnpausedIterator) Error

func (it *ERC20InboxUnpausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20InboxUnpausedIterator) Next

func (it *ERC20InboxUnpausedIterator) 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL