You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1832 lines
101 KiB

  1. // Code generated - DO NOT EDIT.
  2. // This file is a generated binding and any manual changes will be lost.
  3. package WithdrawalDelayer
  4. import (
  5. "math/big"
  6. "strings"
  7. ethereum "github.com/ethereum/go-ethereum"
  8. "github.com/ethereum/go-ethereum/accounts/abi"
  9. "github.com/ethereum/go-ethereum/accounts/abi/bind"
  10. "github.com/ethereum/go-ethereum/common"
  11. "github.com/ethereum/go-ethereum/core/types"
  12. "github.com/ethereum/go-ethereum/event"
  13. )
  14. // Reference imports to suppress errors if they are not otherwise used.
  15. var (
  16. _ = big.NewInt
  17. _ = strings.NewReader
  18. _ = ethereum.NotFound
  19. _ = bind.Bind
  20. _ = common.Big1
  21. _ = types.BloomLookup
  22. _ = event.NewSubscription
  23. )
  24. // WithdrawalDelayerABI is the input ABI used to generate the binding from.
  25. const WithdrawalDelayerABI = "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint192\",\"name\":\"amount\",\"type\":\"uint192\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"depositTimestamp\",\"type\":\"uint64\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"EmergencyModeEnabled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"who\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"EscapeHatchWithdrawal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newHermezGovernanceDAOAddress\",\"type\":\"address\"}],\"name\":\"NewHermezGovernanceDAOAddress\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newHermezKeeperAddress\",\"type\":\"address\"}],\"name\":\"NewHermezKeeperAddress\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newWhiteHackGroupAddress\",\"type\":\"address\"}],\"name\":\"NewWhiteHackGroupAddress\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"withdrawalDelay\",\"type\":\"uint64\"}],\"name\":\"NewWithdrawalDelay\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint192\",\"name\":\"amount\",\"type\":\"uint192\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MAX_EMERGENCY_MODE_TIME\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_WITHDRAWAL_DELAY\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"_newWithdrawalDelay\",\"type\":\"uint64\"}],\"name\":\"changeWithdrawalDelay\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"uint192\",\"name\":\"_amount\",\"type\":\"uint192\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"}],\"name\":\"depositInfo\",\"outputs\":[{\"internalType\":\"uint192\",\"name\":\"\",\"type\":\"uint192\"},{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"deposits\",\"outputs\":[{\"internalType\":\"uint192\",\"name\":\"amount\",\"type\":\"uint192\"},{\"internalType\":\"uint64\",\"name\":\"depositTimestamp\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"enableEmergencyMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"escapeHatchWithdrawal\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getEmergencyModeStartingTime\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getHermezGovernanceDAOAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getHermezKeeperAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getWhiteHackGroupAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getWithdrawalDelay\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hermezRollupAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isEmergencyMode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"setHermezGovernanceDAOAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"setHermezKeeperAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"setWhiteHackGroupAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"operatorData\",\"type\":\"bytes\"}],\"name\":\"tokensReceived\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"}],\"name\":\"withdrawal\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"_initialWithdrawalDelay\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"_initialHermezRollup\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_initialHermezKeeperAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_initialHermezGovernanceDAOAddress\",\"type\":\"address\"},{\"internalType\":\"addresspayable\",\"name\":\"_initialWhiteHackGroupAddress\",\"type\":\"address\"}],\"name\":\"withdrawalDelayerInitializer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]"
  26. // WithdrawalDelayerBin is the compiled bytecode used for deploying new contracts.
  27. var WithdrawalDelayerBin = "0x608060405234801561001057600080fd5b50611f43806100206000396000f3fe6080604052600436106101295760003560e01c8063580fc611116100ab578063ae7efbbd1161006f578063ae7efbbd146104f1578063b4b8e39d14610506578063c5b1c7d01461051b578063cfc0b64114610530578063d82b217c14610570578063de35f282146105a357610129565b8063580fc61114610420578063668cdd67146104355780637fd6b1021461044a578063a238f9df1461048d578063acfd6ea8146104be57610129565b806320a194b8116100f257806320a194b8146102f8578063305887f91461032157806336e566ed146103365780633d4dff7b14610390578063493b0170146103e557610129565b806223de291461012e57806303160940146102275780630a4db01b146102615780630e670af5146102945780630fd266d7146102c7575b600080fd5b34801561013a57600080fd5b50610225600480360360c081101561015157600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a08101608082013564010000000081111561019457600080fd5b8201836020820111156101a657600080fd5b803590602001918460018302840111640100000000831117156101c857600080fd5b9193909290916020810190356401000000008111156101e657600080fd5b8201836020820111156101f857600080fd5b8035906020019184600183028401116401000000008311171561021a57600080fd5b5090925090506105de565b005b34801561023357600080fd5b5061023c610830565b604080516fffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561026d57600080fd5b506102256004803603602081101561028457600080fd5b50356001600160a01b031661083f565b3480156102a057600080fd5b50610225600480360360208110156102b757600080fd5b50356001600160401b03166108eb565b3480156102d357600080fd5b506102dc610a1b565b604080516001600160a01b039092168252519081900360200190f35b34801561030457600080fd5b5061030d610a2a565b604080519115158252519081900360200190f35b34801561032d57600080fd5b506102dc610a3a565b34801561034257600080fd5b50610225600480360360a081101561035957600080fd5b506001600160401b03813516906001600160a01b036020820135811691604081013582169160608201358116916080013516610a49565b34801561039c57600080fd5b506103ba600480360360208110156103b357600080fd5b5035610bfc565b604080516001600160c01b0390931683526001600160401b0390911660208301528051918290030190f35b3480156103f157600080fd5b506103ba6004803603604081101561040857600080fd5b506001600160a01b0381358116916020013516610c29565b34801561042c57600080fd5b506102dc610cba565b34801561044157600080fd5b5061023c610cc9565b34801561045657600080fd5b506102256004803603606081101561046d57600080fd5b506001600160a01b03813581169160208101359091169060400135610cdf565b34801561049957600080fd5b506104a2610f0b565b604080516001600160401b039092168252519081900360200190f35b3480156104ca57600080fd5b50610225600480360360208110156104e157600080fd5b50356001600160a01b0316610f12565b3480156104fd57600080fd5b506102dc610fcb565b34801561051257600080fd5b506104a2610fda565b34801561052757600080fd5b50610225610fe1565b6102256004803603606081101561054657600080fd5b5080356001600160a01b0390811691602081013590911690604001356001600160c01b0316611109565b34801561057c57600080fd5b506102256004803603602081101561059357600080fd5b50356001600160a01b031661150a565b3480156105af57600080fd5b50610225600480360360408110156105c657600080fd5b506001600160a01b03813581169160200135166115c3565b60335460ff16610623576040805162461bcd60e51b815260206004820152601f6024820152600080516020611e9b833981519152604482015290519081900360640190fd5b6033805460ff191690556069546001600160a01b0388811691161461068a576040805162461bcd60e51b81526020600482015260186024820152774f6e6c79206865726d657a526f6c6c75704164647265737360401b604482015290519081900360640190fd5b826106cd576040805162461bcd60e51b815260206004820152600e60248201526d557365724461746120656d70747960901b604482015290519081900360640190fd5b6000848460208110156106df57600080fd5b506040805180820190915260208082527f6465706f73697428616464726573732c616464726573732c75696e7431393229910152356001600160e01b031916905063cfc0b64160e01b8114156107d45760008080610740876004818b611e72565b606081101561074e57600080fd5b5080356001600160a01b0390811694506020820135169250604001356001600160c01b031690508881146107c1576040805162461bcd60e51b8152602060048201526015602482015274105b5bdd5b9d081cd95b9d08191a5999995c995b9d605a1b604482015290519081900360640190fd5b6107cc833383611835565b505050610818565b6040805162461bcd60e51b81526020600482015260146024820152734e6f7420612076616c69642063616c6c6461746160601b604482015290519081900360640190fd5b50506033805460ff1916600117905550505050505050565b6065546001600160401b031690565b6067546001600160a01b03163314610891576040805162461bcd60e51b815260206004820152601060248201526f4f6e6c7920574847206164647265737360801b604482015290519081900360640190fd5b606780546001600160a01b0319166001600160a01b03838116919091179182905560408051929091168252517f284ca073b8bdde2195ae98779277678773a99d7739e5f0477dc19a03fc689011916020908290030190a150565b6068546001600160a01b031633148061090e57506069546001600160a01b031633145b61095f576040805162461bcd60e51b815260206004820152601c60248201527f4f6e6c79206865726d657a206b6565706572206f7220726f6c6c757000000000604482015290519081900360640190fd5b621275006001600160401b03821611156109c0576040805162461bcd60e51b815260206004820152601c60248201527f45786365656473204d41585f5749544844524157414c5f44454c415900000000604482015290519081900360640190fd5b6065805467ffffffffffffffff19166001600160401b03838116919091179182905560408051929091168252517f6b3670ab51e04a9da086741e5fd1eb36ffaf1d661a15330c528e1f3e0c8722d7916020908290030190a150565b6069546001600160a01b031681565b606854600160a01b900460ff1690565b6068546001600160a01b031690565b600054610100900460ff1680610a625750610a6261197d565b80610a70575060005460ff16155b610aab5760405162461bcd60e51b815260040180806020018281038252602e815260200180611ee0602e913960400191505060405180910390fd5b600054610100900460ff16158015610ad6576000805460ff1961ff0019909116610100171660011790555b610ade611983565b6065805467ffffffffffffffff19166001600160401b038816179055606980546001600160a01b03199081166001600160a01b0388811691909117909255606880546066805484168886161790556067805484168786161790559091169186169190911760ff60a01b19169055604080516329965a1d60e01b815230600482018190527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b602483015260448201529051731820a4b7618bde71dce8cdc73aab6c95905fad24916329965a1d91606480830192600092919082900301818387803b158015610bca57600080fd5b505af1158015610bde573d6000803e3d6000fd5b505050508015610bf4576000805461ff00191690555b505050505050565b606a602052600090815260409020546001600160c01b03811690600160c01b90046001600160401b031682565b600080610c34611e5b565b505060408051606094851b6001600160601b03199081166020808401919091529490951b909416603485015280518085036028018152604885018083528151918501919091206000908152606a9094529281902060888501909152546001600160c01b03811692839052600160c01b90046001600160401b031660689093018390525091565b6066546001600160a01b031690565b606554600160401b90046001600160401b031690565b60335460ff16610d24576040805162461bcd60e51b815260206004820152601f6024820152600080516020611e9b833981519152604482015290519081900360640190fd5b6033805460ff19169055606854600160a01b900460ff16610d82576040805162461bcd60e51b81526020600482015260136024820152724f6e6c7920456d657267656e6379204d6f646560681b604482015290519081900360640190fd5b6067546001600160a01b0316331480610da557506066546001600160a01b031633145b610df6576040805162461bcd60e51b815260206004820152601960248201527f4f6e6c7920476f7665726e616e636544414f206f722057484700000000000000604482015290519081900360640190fd5b6067546001600160a01b0316331415610e7c576065546001600160401b03600160401b909104811662eff100018116429091161015610e7c576040805162461bcd60e51b815260206004820152601a60248201527f4e4f204d41585f454d455247454e43595f4d4f44455f54494d45000000000000604482015290519081900360640190fd5b6001600160a01b038216610e9957610e948382611a32565b610ea4565b610ea4828483611ad3565b816001600160a01b0316836001600160a01b0316336001600160a01b03167fde200220117ba95c9a6c4a1a13bb06b0b7be90faa85c8fb4576630119f891693846040518082815260200191505060405180910390a450506033805460ff1916600117905550565b6212750081565b6066546001600160a01b03163314610f71576040805162461bcd60e51b815260206004820152601a60248201527f4f6e6c79204865726d657a20476f7665726e616e63652044414f000000000000604482015290519081900360640190fd5b606680546001600160a01b0319166001600160a01b03838116919091179182905560408051929091168252517f03683be8debd93f8f5ff23dd03419bfcb9b8287a1868b0f130d858f03c3a08a1916020908290030190a150565b6067546001600160a01b031690565b62eff10081565b6068546001600160a01b03163314611040576040805162461bcd60e51b815260206004820152601860248201527f4f6e6c79206865726d657a4b6565706572416464726573730000000000000000604482015290519081900360640190fd5b606854600160a01b900460ff161561109f576040805162461bcd60e51b815260206004820152601e60248201527f456d657267656e6379206d6f646520616c726561647920656e61626c65640000604482015290519081900360640190fd5b6068805460ff60a01b1916600160a01b179055606580546001600160401b034216600160401b026fffffffffffffffff0000000000000000199091161790556040517f2064d51aa5a8bd67928c7675e267e05c67ad5adf7c9098d0a602d01f36fda9c590600090a1565b60335460ff1661114e576040805162461bcd60e51b815260206004820152601f6024820152600080516020611e9b833981519152604482015290519081900360640190fd5b6033805460ff191690556069546001600160a01b031633146111b2576040805162461bcd60e51b81526020600482015260186024820152774f6e6c79206865726d657a526f6c6c75704164647265737360401b604482015290519081900360640190fd5b3415611276576001600160a01b03821615611214576040805162461bcd60e51b815260206004820152601d60248201527f4554482073686f756c6420626520746865203078302061646472657373000000604482015290519081900360640190fd5b34816001600160c01b031614611271576040805162461bcd60e51b815260206004820152601e60248201527f446966666572656e7420616d6f756e7420616e64206d73672e76616c75650000604482015290519081900360640190fd5b6114ed565b60695460408051636eb1769f60e11b81526001600160a01b03928316600482015230602482015290516001600160c01b0384169285169163dd62ed3e916044808301926020929190829003018186803b1580156112d257600080fd5b505afa1580156112e6573d6000803e3d6000fd5b505050506040513d60208110156112fc57600080fd5b50511015611351576040805162461bcd60e51b815260206004820152601d60248201527f446f65736e2774206861766520656e6f75676820616c6c6f77616e6365000000604482015290519081900360640190fd5b60006060836001600160a01b0316604051806060016040528060258152602001611ebb602591398051602091820120606954604080516001600160a01b0390921660248301523060448301526001600160c01b038816606480840191909152815180840390910181526084909201815292810180516001600160e01b03166001600160e01b031990931692909217825291518251909182918083835b6020831061140c5780518252601f1990920191602091820191016113ed565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461146e576040519150601f19603f3d011682016040523d82523d6000602084013e611473565b606091505b50915091508180156114a15750805115806114a1575080806020019051602081101561149e57600080fd5b50515b6114ea576040805162461bcd60e51b8152602060048201526015602482015274151bdad95b88151c985b9cd9995c8811985a5b1959605a1b604482015290519081900360640190fd5b50505b6114f8838383611835565b50506033805460ff1916600117905550565b6068546001600160a01b03163314611569576040805162461bcd60e51b815260206004820152601a60248201527f4f6e6c79204865726d657a204b65657065722041646472657373000000000000604482015290519081900360640190fd5b606880546001600160a01b0319166001600160a01b03838116919091179182905560408051929091168252517fc1e9be84fce652abec6a6944f7ec5bbb40de18caa44c285b05a0de7e3ad9d016916020908290030190a150565b60335460ff16611608576040805162461bcd60e51b815260206004820152601f6024820152600080516020611e9b833981519152604482015290519081900360640190fd5b6033805460ff19169055606854600160a01b900460ff1615611662576040805162461bcd60e51b815260206004820152600e60248201526d456d657267656e6379206d6f646560901b604482015290519081900360640190fd5b60408051606084811b6001600160601b03199081166020808501919091529185901b16603483015282518083036028018152604890920183528151918101919091206000818152606a909252919020546001600160c01b031680611704576040805162461bcd60e51b81526020600482015260146024820152734e6f2066756e647320746f20776974686472617760601b604482015290519081900360640190fd5b6065546000838152606a60205260409020546001600160401b03918216600160c01b9091048216018116429091161015611785576040805162461bcd60e51b815260206004820152601a60248201527f5769746864726177616c206e6f7420616c6c6f77656420796574000000000000604482015290519081900360640190fd5b6000828152606a60205260408120556001600160a01b0383166117ba576117b584826001600160c01b0316611a32565b6117ce565b6117ce8385836001600160c01b0316611ad3565b836001600160a01b0316836001600160a01b03167f72608e45b52a95a12c2ac7f15ff53f92fc9572c9d84b6e6b5d7f0f7826cf32718360405180826001600160c01b0316815260200191505060405180910390a350506033805460ff191660011790555050565b60408051606085811b6001600160601b03199081166020808501919091529186901b16603483015282518083036028018152604890920183528151918101919091206000818152606a909252919020546001600160c01b0390811683810191821610156118dc576040805162461bcd60e51b815260206004820152601060248201526f4465706f736974206f766572666c6f7760801b604482015290519081900360640190fd5b6000828152606a602090815260409182902080546001600160401b03428116600160c01b9081026001600160c01b038089166001600160c01b03199095169490941784161793849055855192891683529092049091169181019190915281516001600160a01b0380881693908916927f41219b99485f78192a5b9b1be28c7d53c3a2bdbe7900ae40c79fae8d9d6108fd929081900390910190a35050505050565b303b1590565b600054610100900460ff168061199c575061199c61197d565b806119aa575060005460ff16155b6119e55760405162461bcd60e51b815260040180806020018281038252602e815260200180611ee0602e913960400191505060405180910390fd5b600054610100900460ff16158015611a10576000805460ff1961ff0019909116610100171660011790555b6033805460ff191660011790558015611a2f576000805461ff00191690555b50565b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114611a7d576040519150601f19603f3d011682016040523d82523d6000602084013e611a82565b606091505b5050905080611ace576040805162461bcd60e51b8152602060048201526013602482015272115512081d1c985b9cd9995c8819985a5b1959606a1b604482015290519081900360640190fd5b505050565b6040805163555ddc6560e11b81526001600160a01b03851660048201527fac7fbab5f54a3ca8194167523c6753bfeb96a445279294b6125b68cce21770546024820152905160009160609183918291731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca916044808301926020929190829003018186803b158015611b5d57600080fd5b505afa158015611b71573d6000803e3d6000fd5b505050506040513d6020811015611b8757600080fd5b50516001600160a01b03161415611b9f576000611ba2565b60015b90508015611cd257604080518082018252601b81527f73656e6428616464726573732c75696e743235362c627974657329000000000060209182015281516001600160a01b038881166024830152604482018890526060606483015260006084830152835180830360a401815260c4909201845291810180516001600160e01b0316634decdde360e11b17815292518151928a16939192909182918083835b60208310611c605780518252601f199092019160209182019101611c41565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611cc2576040519150601f19603f3d011682016040523d82523d6000602084013e611cc7565b606091505b509093509150611de9565b604080518082018252601981527f7472616e7366657228616464726573732c75696e74323536290000000000000060209182015281516001600160a01b0388811660248301526044808301899052845180840390910181526064909201845291810180516001600160e01b031663a9059cbb60e01b17815292518151928a16939192909182918083835b60208310611d7b5780518252601f199092019160209182019101611d5c565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611ddd576040519150601f19603f3d011682016040523d82523d6000602084013e611de2565b606091505b5090935091505b828015611e12575081511580611e125750818060200190516020811015611e0f57600080fd5b50515b610bf4576040805162461bcd60e51b8152602060048201526015602482015274151bdad95b88151c985b9cd9995c8811985a5b1959605a1b604482015290519081900360640190fd5b604080518082019091526000808252602082015290565b60008085851115611e81578182fd5b83861115611e8d578182fd5b505082019391909203915056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c007472616e7366657246726f6d28616464726573732c616464726573732c75696e7432353629436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a26469706673582212208627d01a36cb65caf417b630b097c562d21a655bf5c386bcdde1eafb9d94cf7464736f6c634300060c0033"
  28. // DeployWithdrawalDelayer deploys a new Ethereum contract, binding an instance of WithdrawalDelayer to it.
  29. func DeployWithdrawalDelayer(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *WithdrawalDelayer, error) {
  30. parsed, err := abi.JSON(strings.NewReader(WithdrawalDelayerABI))
  31. if err != nil {
  32. return common.Address{}, nil, nil, err
  33. }
  34. address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex(WithdrawalDelayerBin), backend)
  35. if err != nil {
  36. return common.Address{}, nil, nil, err
  37. }
  38. return address, tx, &WithdrawalDelayer{WithdrawalDelayerCaller: WithdrawalDelayerCaller{contract: contract}, WithdrawalDelayerTransactor: WithdrawalDelayerTransactor{contract: contract}, WithdrawalDelayerFilterer: WithdrawalDelayerFilterer{contract: contract}}, nil
  39. }
  40. // WithdrawalDelayer is an auto generated Go binding around an Ethereum contract.
  41. type WithdrawalDelayer struct {
  42. WithdrawalDelayerCaller // Read-only binding to the contract
  43. WithdrawalDelayerTransactor // Write-only binding to the contract
  44. WithdrawalDelayerFilterer // Log filterer for contract events
  45. }
  46. // WithdrawalDelayerCaller is an auto generated read-only Go binding around an Ethereum contract.
  47. type WithdrawalDelayerCaller struct {
  48. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  49. }
  50. // WithdrawalDelayerTransactor is an auto generated write-only Go binding around an Ethereum contract.
  51. type WithdrawalDelayerTransactor struct {
  52. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  53. }
  54. // WithdrawalDelayerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
  55. type WithdrawalDelayerFilterer struct {
  56. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  57. }
  58. // WithdrawalDelayerSession is an auto generated Go binding around an Ethereum contract,
  59. // with pre-set call and transact options.
  60. type WithdrawalDelayerSession struct {
  61. Contract *WithdrawalDelayer // Generic contract binding to set the session for
  62. CallOpts bind.CallOpts // Call options to use throughout this session
  63. TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
  64. }
  65. // WithdrawalDelayerCallerSession is an auto generated read-only Go binding around an Ethereum contract,
  66. // with pre-set call options.
  67. type WithdrawalDelayerCallerSession struct {
  68. Contract *WithdrawalDelayerCaller // Generic contract caller binding to set the session for
  69. CallOpts bind.CallOpts // Call options to use throughout this session
  70. }
  71. // WithdrawalDelayerTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
  72. // with pre-set transact options.
  73. type WithdrawalDelayerTransactorSession struct {
  74. Contract *WithdrawalDelayerTransactor // Generic contract transactor binding to set the session for
  75. TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
  76. }
  77. // WithdrawalDelayerRaw is an auto generated low-level Go binding around an Ethereum contract.
  78. type WithdrawalDelayerRaw struct {
  79. Contract *WithdrawalDelayer // Generic contract binding to access the raw methods on
  80. }
  81. // WithdrawalDelayerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
  82. type WithdrawalDelayerCallerRaw struct {
  83. Contract *WithdrawalDelayerCaller // Generic read-only contract binding to access the raw methods on
  84. }
  85. // WithdrawalDelayerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
  86. type WithdrawalDelayerTransactorRaw struct {
  87. Contract *WithdrawalDelayerTransactor // Generic write-only contract binding to access the raw methods on
  88. }
  89. // NewWithdrawalDelayer creates a new instance of WithdrawalDelayer, bound to a specific deployed contract.
  90. func NewWithdrawalDelayer(address common.Address, backend bind.ContractBackend) (*WithdrawalDelayer, error) {
  91. contract, err := bindWithdrawalDelayer(address, backend, backend, backend)
  92. if err != nil {
  93. return nil, err
  94. }
  95. return &WithdrawalDelayer{WithdrawalDelayerCaller: WithdrawalDelayerCaller{contract: contract}, WithdrawalDelayerTransactor: WithdrawalDelayerTransactor{contract: contract}, WithdrawalDelayerFilterer: WithdrawalDelayerFilterer{contract: contract}}, nil
  96. }
  97. // NewWithdrawalDelayerCaller creates a new read-only instance of WithdrawalDelayer, bound to a specific deployed contract.
  98. func NewWithdrawalDelayerCaller(address common.Address, caller bind.ContractCaller) (*WithdrawalDelayerCaller, error) {
  99. contract, err := bindWithdrawalDelayer(address, caller, nil, nil)
  100. if err != nil {
  101. return nil, err
  102. }
  103. return &WithdrawalDelayerCaller{contract: contract}, nil
  104. }
  105. // NewWithdrawalDelayerTransactor creates a new write-only instance of WithdrawalDelayer, bound to a specific deployed contract.
  106. func NewWithdrawalDelayerTransactor(address common.Address, transactor bind.ContractTransactor) (*WithdrawalDelayerTransactor, error) {
  107. contract, err := bindWithdrawalDelayer(address, nil, transactor, nil)
  108. if err != nil {
  109. return nil, err
  110. }
  111. return &WithdrawalDelayerTransactor{contract: contract}, nil
  112. }
  113. // NewWithdrawalDelayerFilterer creates a new log filterer instance of WithdrawalDelayer, bound to a specific deployed contract.
  114. func NewWithdrawalDelayerFilterer(address common.Address, filterer bind.ContractFilterer) (*WithdrawalDelayerFilterer, error) {
  115. contract, err := bindWithdrawalDelayer(address, nil, nil, filterer)
  116. if err != nil {
  117. return nil, err
  118. }
  119. return &WithdrawalDelayerFilterer{contract: contract}, nil
  120. }
  121. // bindWithdrawalDelayer binds a generic wrapper to an already deployed contract.
  122. func bindWithdrawalDelayer(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
  123. parsed, err := abi.JSON(strings.NewReader(WithdrawalDelayerABI))
  124. if err != nil {
  125. return nil, err
  126. }
  127. return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
  128. }
  129. // Call invokes the (constant) contract method with params as input values and
  130. // sets the output to result. The result type might be a single field for simple
  131. // returns, a slice of interfaces for anonymous returns and a struct for named
  132. // returns.
  133. func (_WithdrawalDelayer *WithdrawalDelayerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
  134. return _WithdrawalDelayer.Contract.WithdrawalDelayerCaller.contract.Call(opts, result, method, params...)
  135. }
  136. // Transfer initiates a plain transaction to move funds to the contract, calling
  137. // its default method if one is available.
  138. func (_WithdrawalDelayer *WithdrawalDelayerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
  139. return _WithdrawalDelayer.Contract.WithdrawalDelayerTransactor.contract.Transfer(opts)
  140. }
  141. // Transact invokes the (paid) contract method with params as input values.
  142. func (_WithdrawalDelayer *WithdrawalDelayerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
  143. return _WithdrawalDelayer.Contract.WithdrawalDelayerTransactor.contract.Transact(opts, method, params...)
  144. }
  145. // Call invokes the (constant) contract method with params as input values and
  146. // sets the output to result. The result type might be a single field for simple
  147. // returns, a slice of interfaces for anonymous returns and a struct for named
  148. // returns.
  149. func (_WithdrawalDelayer *WithdrawalDelayerCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
  150. return _WithdrawalDelayer.Contract.contract.Call(opts, result, method, params...)
  151. }
  152. // Transfer initiates a plain transaction to move funds to the contract, calling
  153. // its default method if one is available.
  154. func (_WithdrawalDelayer *WithdrawalDelayerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
  155. return _WithdrawalDelayer.Contract.contract.Transfer(opts)
  156. }
  157. // Transact invokes the (paid) contract method with params as input values.
  158. func (_WithdrawalDelayer *WithdrawalDelayerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
  159. return _WithdrawalDelayer.Contract.contract.Transact(opts, method, params...)
  160. }
  161. // MAXEMERGENCYMODETIME is a free data retrieval call binding the contract method 0xb4b8e39d.
  162. //
  163. // Solidity: function MAX_EMERGENCY_MODE_TIME() view returns(uint64)
  164. func (_WithdrawalDelayer *WithdrawalDelayerCaller) MAXEMERGENCYMODETIME(opts *bind.CallOpts) (uint64, error) {
  165. var (
  166. ret0 = new(uint64)
  167. )
  168. out := ret0
  169. err := _WithdrawalDelayer.contract.Call(opts, out, "MAX_EMERGENCY_MODE_TIME")
  170. return *ret0, err
  171. }
  172. // MAXEMERGENCYMODETIME is a free data retrieval call binding the contract method 0xb4b8e39d.
  173. //
  174. // Solidity: function MAX_EMERGENCY_MODE_TIME() view returns(uint64)
  175. func (_WithdrawalDelayer *WithdrawalDelayerSession) MAXEMERGENCYMODETIME() (uint64, error) {
  176. return _WithdrawalDelayer.Contract.MAXEMERGENCYMODETIME(&_WithdrawalDelayer.CallOpts)
  177. }
  178. // MAXEMERGENCYMODETIME is a free data retrieval call binding the contract method 0xb4b8e39d.
  179. //
  180. // Solidity: function MAX_EMERGENCY_MODE_TIME() view returns(uint64)
  181. func (_WithdrawalDelayer *WithdrawalDelayerCallerSession) MAXEMERGENCYMODETIME() (uint64, error) {
  182. return _WithdrawalDelayer.Contract.MAXEMERGENCYMODETIME(&_WithdrawalDelayer.CallOpts)
  183. }
  184. // MAXWITHDRAWALDELAY is a free data retrieval call binding the contract method 0xa238f9df.
  185. //
  186. // Solidity: function MAX_WITHDRAWAL_DELAY() view returns(uint64)
  187. func (_WithdrawalDelayer *WithdrawalDelayerCaller) MAXWITHDRAWALDELAY(opts *bind.CallOpts) (uint64, error) {
  188. var (
  189. ret0 = new(uint64)
  190. )
  191. out := ret0
  192. err := _WithdrawalDelayer.contract.Call(opts, out, "MAX_WITHDRAWAL_DELAY")
  193. return *ret0, err
  194. }
  195. // MAXWITHDRAWALDELAY is a free data retrieval call binding the contract method 0xa238f9df.
  196. //
  197. // Solidity: function MAX_WITHDRAWAL_DELAY() view returns(uint64)
  198. func (_WithdrawalDelayer *WithdrawalDelayerSession) MAXWITHDRAWALDELAY() (uint64, error) {
  199. return _WithdrawalDelayer.Contract.MAXWITHDRAWALDELAY(&_WithdrawalDelayer.CallOpts)
  200. }
  201. // MAXWITHDRAWALDELAY is a free data retrieval call binding the contract method 0xa238f9df.
  202. //
  203. // Solidity: function MAX_WITHDRAWAL_DELAY() view returns(uint64)
  204. func (_WithdrawalDelayer *WithdrawalDelayerCallerSession) MAXWITHDRAWALDELAY() (uint64, error) {
  205. return _WithdrawalDelayer.Contract.MAXWITHDRAWALDELAY(&_WithdrawalDelayer.CallOpts)
  206. }
  207. // DepositInfo is a free data retrieval call binding the contract method 0x493b0170.
  208. //
  209. // Solidity: function depositInfo(address _owner, address _token) view returns(uint192, uint64)
  210. func (_WithdrawalDelayer *WithdrawalDelayerCaller) DepositInfo(opts *bind.CallOpts, _owner common.Address, _token common.Address) (*big.Int, uint64, error) {
  211. var (
  212. ret0 = new(*big.Int)
  213. ret1 = new(uint64)
  214. )
  215. out := &[]interface{}{
  216. ret0,
  217. ret1,
  218. }
  219. err := _WithdrawalDelayer.contract.Call(opts, out, "depositInfo", _owner, _token)
  220. return *ret0, *ret1, err
  221. }
  222. // DepositInfo is a free data retrieval call binding the contract method 0x493b0170.
  223. //
  224. // Solidity: function depositInfo(address _owner, address _token) view returns(uint192, uint64)
  225. func (_WithdrawalDelayer *WithdrawalDelayerSession) DepositInfo(_owner common.Address, _token common.Address) (*big.Int, uint64, error) {
  226. return _WithdrawalDelayer.Contract.DepositInfo(&_WithdrawalDelayer.CallOpts, _owner, _token)
  227. }
  228. // DepositInfo is a free data retrieval call binding the contract method 0x493b0170.
  229. //
  230. // Solidity: function depositInfo(address _owner, address _token) view returns(uint192, uint64)
  231. func (_WithdrawalDelayer *WithdrawalDelayerCallerSession) DepositInfo(_owner common.Address, _token common.Address) (*big.Int, uint64, error) {
  232. return _WithdrawalDelayer.Contract.DepositInfo(&_WithdrawalDelayer.CallOpts, _owner, _token)
  233. }
  234. // Deposits is a free data retrieval call binding the contract method 0x3d4dff7b.
  235. //
  236. // Solidity: function deposits(bytes32 ) view returns(uint192 amount, uint64 depositTimestamp)
  237. func (_WithdrawalDelayer *WithdrawalDelayerCaller) Deposits(opts *bind.CallOpts, arg0 [32]byte) (struct {
  238. Amount *big.Int
  239. DepositTimestamp uint64
  240. }, error) {
  241. ret := new(struct {
  242. Amount *big.Int
  243. DepositTimestamp uint64
  244. })
  245. out := ret
  246. err := _WithdrawalDelayer.contract.Call(opts, out, "deposits", arg0)
  247. return *ret, err
  248. }
  249. // Deposits is a free data retrieval call binding the contract method 0x3d4dff7b.
  250. //
  251. // Solidity: function deposits(bytes32 ) view returns(uint192 amount, uint64 depositTimestamp)
  252. func (_WithdrawalDelayer *WithdrawalDelayerSession) Deposits(arg0 [32]byte) (struct {
  253. Amount *big.Int
  254. DepositTimestamp uint64
  255. }, error) {
  256. return _WithdrawalDelayer.Contract.Deposits(&_WithdrawalDelayer.CallOpts, arg0)
  257. }
  258. // Deposits is a free data retrieval call binding the contract method 0x3d4dff7b.
  259. //
  260. // Solidity: function deposits(bytes32 ) view returns(uint192 amount, uint64 depositTimestamp)
  261. func (_WithdrawalDelayer *WithdrawalDelayerCallerSession) Deposits(arg0 [32]byte) (struct {
  262. Amount *big.Int
  263. DepositTimestamp uint64
  264. }, error) {
  265. return _WithdrawalDelayer.Contract.Deposits(&_WithdrawalDelayer.CallOpts, arg0)
  266. }
  267. // GetEmergencyModeStartingTime is a free data retrieval call binding the contract method 0x668cdd67.
  268. //
  269. // Solidity: function getEmergencyModeStartingTime() view returns(uint128)
  270. func (_WithdrawalDelayer *WithdrawalDelayerCaller) GetEmergencyModeStartingTime(opts *bind.CallOpts) (*big.Int, error) {
  271. var (
  272. ret0 = new(*big.Int)
  273. )
  274. out := ret0
  275. err := _WithdrawalDelayer.contract.Call(opts, out, "getEmergencyModeStartingTime")
  276. return *ret0, err
  277. }
  278. // GetEmergencyModeStartingTime is a free data retrieval call binding the contract method 0x668cdd67.
  279. //
  280. // Solidity: function getEmergencyModeStartingTime() view returns(uint128)
  281. func (_WithdrawalDelayer *WithdrawalDelayerSession) GetEmergencyModeStartingTime() (*big.Int, error) {
  282. return _WithdrawalDelayer.Contract.GetEmergencyModeStartingTime(&_WithdrawalDelayer.CallOpts)
  283. }
  284. // GetEmergencyModeStartingTime is a free data retrieval call binding the contract method 0x668cdd67.
  285. //
  286. // Solidity: function getEmergencyModeStartingTime() view returns(uint128)
  287. func (_WithdrawalDelayer *WithdrawalDelayerCallerSession) GetEmergencyModeStartingTime() (*big.Int, error) {
  288. return _WithdrawalDelayer.Contract.GetEmergencyModeStartingTime(&_WithdrawalDelayer.CallOpts)
  289. }
  290. // GetHermezGovernanceDAOAddress is a free data retrieval call binding the contract method 0x580fc611.
  291. //
  292. // Solidity: function getHermezGovernanceDAOAddress() view returns(address)
  293. func (_WithdrawalDelayer *WithdrawalDelayerCaller) GetHermezGovernanceDAOAddress(opts *bind.CallOpts) (common.Address, error) {
  294. var (
  295. ret0 = new(common.Address)
  296. )
  297. out := ret0
  298. err := _WithdrawalDelayer.contract.Call(opts, out, "getHermezGovernanceDAOAddress")
  299. return *ret0, err
  300. }
  301. // GetHermezGovernanceDAOAddress is a free data retrieval call binding the contract method 0x580fc611.
  302. //
  303. // Solidity: function getHermezGovernanceDAOAddress() view returns(address)
  304. func (_WithdrawalDelayer *WithdrawalDelayerSession) GetHermezGovernanceDAOAddress() (common.Address, error) {
  305. return _WithdrawalDelayer.Contract.GetHermezGovernanceDAOAddress(&_WithdrawalDelayer.CallOpts)
  306. }
  307. // GetHermezGovernanceDAOAddress is a free data retrieval call binding the contract method 0x580fc611.
  308. //
  309. // Solidity: function getHermezGovernanceDAOAddress() view returns(address)
  310. func (_WithdrawalDelayer *WithdrawalDelayerCallerSession) GetHermezGovernanceDAOAddress() (common.Address, error) {
  311. return _WithdrawalDelayer.Contract.GetHermezGovernanceDAOAddress(&_WithdrawalDelayer.CallOpts)
  312. }
  313. // GetHermezKeeperAddress is a free data retrieval call binding the contract method 0x305887f9.
  314. //
  315. // Solidity: function getHermezKeeperAddress() view returns(address)
  316. func (_WithdrawalDelayer *WithdrawalDelayerCaller) GetHermezKeeperAddress(opts *bind.CallOpts) (common.Address, error) {
  317. var (
  318. ret0 = new(common.Address)
  319. )
  320. out := ret0
  321. err := _WithdrawalDelayer.contract.Call(opts, out, "getHermezKeeperAddress")
  322. return *ret0, err
  323. }
  324. // GetHermezKeeperAddress is a free data retrieval call binding the contract method 0x305887f9.
  325. //
  326. // Solidity: function getHermezKeeperAddress() view returns(address)
  327. func (_WithdrawalDelayer *WithdrawalDelayerSession) GetHermezKeeperAddress() (common.Address, error) {
  328. return _WithdrawalDelayer.Contract.GetHermezKeeperAddress(&_WithdrawalDelayer.CallOpts)
  329. }
  330. // GetHermezKeeperAddress is a free data retrieval call binding the contract method 0x305887f9.
  331. //
  332. // Solidity: function getHermezKeeperAddress() view returns(address)
  333. func (_WithdrawalDelayer *WithdrawalDelayerCallerSession) GetHermezKeeperAddress() (common.Address, error) {
  334. return _WithdrawalDelayer.Contract.GetHermezKeeperAddress(&_WithdrawalDelayer.CallOpts)
  335. }
  336. // GetWhiteHackGroupAddress is a free data retrieval call binding the contract method 0xae7efbbd.
  337. //
  338. // Solidity: function getWhiteHackGroupAddress() view returns(address)
  339. func (_WithdrawalDelayer *WithdrawalDelayerCaller) GetWhiteHackGroupAddress(opts *bind.CallOpts) (common.Address, error) {
  340. var (
  341. ret0 = new(common.Address)
  342. )
  343. out := ret0
  344. err := _WithdrawalDelayer.contract.Call(opts, out, "getWhiteHackGroupAddress")
  345. return *ret0, err
  346. }
  347. // GetWhiteHackGroupAddress is a free data retrieval call binding the contract method 0xae7efbbd.
  348. //
  349. // Solidity: function getWhiteHackGroupAddress() view returns(address)
  350. func (_WithdrawalDelayer *WithdrawalDelayerSession) GetWhiteHackGroupAddress() (common.Address, error) {
  351. return _WithdrawalDelayer.Contract.GetWhiteHackGroupAddress(&_WithdrawalDelayer.CallOpts)
  352. }
  353. // GetWhiteHackGroupAddress is a free data retrieval call binding the contract method 0xae7efbbd.
  354. //
  355. // Solidity: function getWhiteHackGroupAddress() view returns(address)
  356. func (_WithdrawalDelayer *WithdrawalDelayerCallerSession) GetWhiteHackGroupAddress() (common.Address, error) {
  357. return _WithdrawalDelayer.Contract.GetWhiteHackGroupAddress(&_WithdrawalDelayer.CallOpts)
  358. }
  359. // GetWithdrawalDelay is a free data retrieval call binding the contract method 0x03160940.
  360. //
  361. // Solidity: function getWithdrawalDelay() view returns(uint128)
  362. func (_WithdrawalDelayer *WithdrawalDelayerCaller) GetWithdrawalDelay(opts *bind.CallOpts) (*big.Int, error) {
  363. var (
  364. ret0 = new(*big.Int)
  365. )
  366. out := ret0
  367. err := _WithdrawalDelayer.contract.Call(opts, out, "getWithdrawalDelay")
  368. return *ret0, err
  369. }
  370. // GetWithdrawalDelay is a free data retrieval call binding the contract method 0x03160940.
  371. //
  372. // Solidity: function getWithdrawalDelay() view returns(uint128)
  373. func (_WithdrawalDelayer *WithdrawalDelayerSession) GetWithdrawalDelay() (*big.Int, error) {
  374. return _WithdrawalDelayer.Contract.GetWithdrawalDelay(&_WithdrawalDelayer.CallOpts)
  375. }
  376. // GetWithdrawalDelay is a free data retrieval call binding the contract method 0x03160940.
  377. //
  378. // Solidity: function getWithdrawalDelay() view returns(uint128)
  379. func (_WithdrawalDelayer *WithdrawalDelayerCallerSession) GetWithdrawalDelay() (*big.Int, error) {
  380. return _WithdrawalDelayer.Contract.GetWithdrawalDelay(&_WithdrawalDelayer.CallOpts)
  381. }
  382. // HermezRollupAddress is a free data retrieval call binding the contract method 0x0fd266d7.
  383. //
  384. // Solidity: function hermezRollupAddress() view returns(address)
  385. func (_WithdrawalDelayer *WithdrawalDelayerCaller) HermezRollupAddress(opts *bind.CallOpts) (common.Address, error) {
  386. var (
  387. ret0 = new(common.Address)
  388. )
  389. out := ret0
  390. err := _WithdrawalDelayer.contract.Call(opts, out, "hermezRollupAddress")
  391. return *ret0, err
  392. }
  393. // HermezRollupAddress is a free data retrieval call binding the contract method 0x0fd266d7.
  394. //
  395. // Solidity: function hermezRollupAddress() view returns(address)
  396. func (_WithdrawalDelayer *WithdrawalDelayerSession) HermezRollupAddress() (common.Address, error) {
  397. return _WithdrawalDelayer.Contract.HermezRollupAddress(&_WithdrawalDelayer.CallOpts)
  398. }
  399. // HermezRollupAddress is a free data retrieval call binding the contract method 0x0fd266d7.
  400. //
  401. // Solidity: function hermezRollupAddress() view returns(address)
  402. func (_WithdrawalDelayer *WithdrawalDelayerCallerSession) HermezRollupAddress() (common.Address, error) {
  403. return _WithdrawalDelayer.Contract.HermezRollupAddress(&_WithdrawalDelayer.CallOpts)
  404. }
  405. // IsEmergencyMode is a free data retrieval call binding the contract method 0x20a194b8.
  406. //
  407. // Solidity: function isEmergencyMode() view returns(bool)
  408. func (_WithdrawalDelayer *WithdrawalDelayerCaller) IsEmergencyMode(opts *bind.CallOpts) (bool, error) {
  409. var (
  410. ret0 = new(bool)
  411. )
  412. out := ret0
  413. err := _WithdrawalDelayer.contract.Call(opts, out, "isEmergencyMode")
  414. return *ret0, err
  415. }
  416. // IsEmergencyMode is a free data retrieval call binding the contract method 0x20a194b8.
  417. //
  418. // Solidity: function isEmergencyMode() view returns(bool)
  419. func (_WithdrawalDelayer *WithdrawalDelayerSession) IsEmergencyMode() (bool, error) {
  420. return _WithdrawalDelayer.Contract.IsEmergencyMode(&_WithdrawalDelayer.CallOpts)
  421. }
  422. // IsEmergencyMode is a free data retrieval call binding the contract method 0x20a194b8.
  423. //
  424. // Solidity: function isEmergencyMode() view returns(bool)
  425. func (_WithdrawalDelayer *WithdrawalDelayerCallerSession) IsEmergencyMode() (bool, error) {
  426. return _WithdrawalDelayer.Contract.IsEmergencyMode(&_WithdrawalDelayer.CallOpts)
  427. }
  428. // ChangeWithdrawalDelay is a paid mutator transaction binding the contract method 0x0e670af5.
  429. //
  430. // Solidity: function changeWithdrawalDelay(uint64 _newWithdrawalDelay) returns()
  431. func (_WithdrawalDelayer *WithdrawalDelayerTransactor) ChangeWithdrawalDelay(opts *bind.TransactOpts, _newWithdrawalDelay uint64) (*types.Transaction, error) {
  432. return _WithdrawalDelayer.contract.Transact(opts, "changeWithdrawalDelay", _newWithdrawalDelay)
  433. }
  434. // ChangeWithdrawalDelay is a paid mutator transaction binding the contract method 0x0e670af5.
  435. //
  436. // Solidity: function changeWithdrawalDelay(uint64 _newWithdrawalDelay) returns()
  437. func (_WithdrawalDelayer *WithdrawalDelayerSession) ChangeWithdrawalDelay(_newWithdrawalDelay uint64) (*types.Transaction, error) {
  438. return _WithdrawalDelayer.Contract.ChangeWithdrawalDelay(&_WithdrawalDelayer.TransactOpts, _newWithdrawalDelay)
  439. }
  440. // ChangeWithdrawalDelay is a paid mutator transaction binding the contract method 0x0e670af5.
  441. //
  442. // Solidity: function changeWithdrawalDelay(uint64 _newWithdrawalDelay) returns()
  443. func (_WithdrawalDelayer *WithdrawalDelayerTransactorSession) ChangeWithdrawalDelay(_newWithdrawalDelay uint64) (*types.Transaction, error) {
  444. return _WithdrawalDelayer.Contract.ChangeWithdrawalDelay(&_WithdrawalDelayer.TransactOpts, _newWithdrawalDelay)
  445. }
  446. // Deposit is a paid mutator transaction binding the contract method 0xcfc0b641.
  447. //
  448. // Solidity: function deposit(address _owner, address _token, uint192 _amount) payable returns()
  449. func (_WithdrawalDelayer *WithdrawalDelayerTransactor) Deposit(opts *bind.TransactOpts, _owner common.Address, _token common.Address, _amount *big.Int) (*types.Transaction, error) {
  450. return _WithdrawalDelayer.contract.Transact(opts, "deposit", _owner, _token, _amount)
  451. }
  452. // Deposit is a paid mutator transaction binding the contract method 0xcfc0b641.
  453. //
  454. // Solidity: function deposit(address _owner, address _token, uint192 _amount) payable returns()
  455. func (_WithdrawalDelayer *WithdrawalDelayerSession) Deposit(_owner common.Address, _token common.Address, _amount *big.Int) (*types.Transaction, error) {
  456. return _WithdrawalDelayer.Contract.Deposit(&_WithdrawalDelayer.TransactOpts, _owner, _token, _amount)
  457. }
  458. // Deposit is a paid mutator transaction binding the contract method 0xcfc0b641.
  459. //
  460. // Solidity: function deposit(address _owner, address _token, uint192 _amount) payable returns()
  461. func (_WithdrawalDelayer *WithdrawalDelayerTransactorSession) Deposit(_owner common.Address, _token common.Address, _amount *big.Int) (*types.Transaction, error) {
  462. return _WithdrawalDelayer.Contract.Deposit(&_WithdrawalDelayer.TransactOpts, _owner, _token, _amount)
  463. }
  464. // EnableEmergencyMode is a paid mutator transaction binding the contract method 0xc5b1c7d0.
  465. //
  466. // Solidity: function enableEmergencyMode() returns()
  467. func (_WithdrawalDelayer *WithdrawalDelayerTransactor) EnableEmergencyMode(opts *bind.TransactOpts) (*types.Transaction, error) {
  468. return _WithdrawalDelayer.contract.Transact(opts, "enableEmergencyMode")
  469. }
  470. // EnableEmergencyMode is a paid mutator transaction binding the contract method 0xc5b1c7d0.
  471. //
  472. // Solidity: function enableEmergencyMode() returns()
  473. func (_WithdrawalDelayer *WithdrawalDelayerSession) EnableEmergencyMode() (*types.Transaction, error) {
  474. return _WithdrawalDelayer.Contract.EnableEmergencyMode(&_WithdrawalDelayer.TransactOpts)
  475. }
  476. // EnableEmergencyMode is a paid mutator transaction binding the contract method 0xc5b1c7d0.
  477. //
  478. // Solidity: function enableEmergencyMode() returns()
  479. func (_WithdrawalDelayer *WithdrawalDelayerTransactorSession) EnableEmergencyMode() (*types.Transaction, error) {
  480. return _WithdrawalDelayer.Contract.EnableEmergencyMode(&_WithdrawalDelayer.TransactOpts)
  481. }
  482. // EscapeHatchWithdrawal is a paid mutator transaction binding the contract method 0x7fd6b102.
  483. //
  484. // Solidity: function escapeHatchWithdrawal(address _to, address _token, uint256 _amount) returns()
  485. func (_WithdrawalDelayer *WithdrawalDelayerTransactor) EscapeHatchWithdrawal(opts *bind.TransactOpts, _to common.Address, _token common.Address, _amount *big.Int) (*types.Transaction, error) {
  486. return _WithdrawalDelayer.contract.Transact(opts, "escapeHatchWithdrawal", _to, _token, _amount)
  487. }
  488. // EscapeHatchWithdrawal is a paid mutator transaction binding the contract method 0x7fd6b102.
  489. //
  490. // Solidity: function escapeHatchWithdrawal(address _to, address _token, uint256 _amount) returns()
  491. func (_WithdrawalDelayer *WithdrawalDelayerSession) EscapeHatchWithdrawal(_to common.Address, _token common.Address, _amount *big.Int) (*types.Transaction, error) {
  492. return _WithdrawalDelayer.Contract.EscapeHatchWithdrawal(&_WithdrawalDelayer.TransactOpts, _to, _token, _amount)
  493. }
  494. // EscapeHatchWithdrawal is a paid mutator transaction binding the contract method 0x7fd6b102.
  495. //
  496. // Solidity: function escapeHatchWithdrawal(address _to, address _token, uint256 _amount) returns()
  497. func (_WithdrawalDelayer *WithdrawalDelayerTransactorSession) EscapeHatchWithdrawal(_to common.Address, _token common.Address, _amount *big.Int) (*types.Transaction, error) {
  498. return _WithdrawalDelayer.Contract.EscapeHatchWithdrawal(&_WithdrawalDelayer.TransactOpts, _to, _token, _amount)
  499. }
  500. // SetHermezGovernanceDAOAddress is a paid mutator transaction binding the contract method 0xacfd6ea8.
  501. //
  502. // Solidity: function setHermezGovernanceDAOAddress(address newAddress) returns()
  503. func (_WithdrawalDelayer *WithdrawalDelayerTransactor) SetHermezGovernanceDAOAddress(opts *bind.TransactOpts, newAddress common.Address) (*types.Transaction, error) {
  504. return _WithdrawalDelayer.contract.Transact(opts, "setHermezGovernanceDAOAddress", newAddress)
  505. }
  506. // SetHermezGovernanceDAOAddress is a paid mutator transaction binding the contract method 0xacfd6ea8.
  507. //
  508. // Solidity: function setHermezGovernanceDAOAddress(address newAddress) returns()
  509. func (_WithdrawalDelayer *WithdrawalDelayerSession) SetHermezGovernanceDAOAddress(newAddress common.Address) (*types.Transaction, error) {
  510. return _WithdrawalDelayer.Contract.SetHermezGovernanceDAOAddress(&_WithdrawalDelayer.TransactOpts, newAddress)
  511. }
  512. // SetHermezGovernanceDAOAddress is a paid mutator transaction binding the contract method 0xacfd6ea8.
  513. //
  514. // Solidity: function setHermezGovernanceDAOAddress(address newAddress) returns()
  515. func (_WithdrawalDelayer *WithdrawalDelayerTransactorSession) SetHermezGovernanceDAOAddress(newAddress common.Address) (*types.Transaction, error) {
  516. return _WithdrawalDelayer.Contract.SetHermezGovernanceDAOAddress(&_WithdrawalDelayer.TransactOpts, newAddress)
  517. }
  518. // SetHermezKeeperAddress is a paid mutator transaction binding the contract method 0xd82b217c.
  519. //
  520. // Solidity: function setHermezKeeperAddress(address newAddress) returns()
  521. func (_WithdrawalDelayer *WithdrawalDelayerTransactor) SetHermezKeeperAddress(opts *bind.TransactOpts, newAddress common.Address) (*types.Transaction, error) {
  522. return _WithdrawalDelayer.contract.Transact(opts, "setHermezKeeperAddress", newAddress)
  523. }
  524. // SetHermezKeeperAddress is a paid mutator transaction binding the contract method 0xd82b217c.
  525. //
  526. // Solidity: function setHermezKeeperAddress(address newAddress) returns()
  527. func (_WithdrawalDelayer *WithdrawalDelayerSession) SetHermezKeeperAddress(newAddress common.Address) (*types.Transaction, error) {
  528. return _WithdrawalDelayer.Contract.SetHermezKeeperAddress(&_WithdrawalDelayer.TransactOpts, newAddress)
  529. }
  530. // SetHermezKeeperAddress is a paid mutator transaction binding the contract method 0xd82b217c.
  531. //
  532. // Solidity: function setHermezKeeperAddress(address newAddress) returns()
  533. func (_WithdrawalDelayer *WithdrawalDelayerTransactorSession) SetHermezKeeperAddress(newAddress common.Address) (*types.Transaction, error) {
  534. return _WithdrawalDelayer.Contract.SetHermezKeeperAddress(&_WithdrawalDelayer.TransactOpts, newAddress)
  535. }
  536. // SetWhiteHackGroupAddress is a paid mutator transaction binding the contract method 0x0a4db01b.
  537. //
  538. // Solidity: function setWhiteHackGroupAddress(address newAddress) returns()
  539. func (_WithdrawalDelayer *WithdrawalDelayerTransactor) SetWhiteHackGroupAddress(opts *bind.TransactOpts, newAddress common.Address) (*types.Transaction, error) {
  540. return _WithdrawalDelayer.contract.Transact(opts, "setWhiteHackGroupAddress", newAddress)
  541. }
  542. // SetWhiteHackGroupAddress is a paid mutator transaction binding the contract method 0x0a4db01b.
  543. //
  544. // Solidity: function setWhiteHackGroupAddress(address newAddress) returns()
  545. func (_WithdrawalDelayer *WithdrawalDelayerSession) SetWhiteHackGroupAddress(newAddress common.Address) (*types.Transaction, error) {
  546. return _WithdrawalDelayer.Contract.SetWhiteHackGroupAddress(&_WithdrawalDelayer.TransactOpts, newAddress)
  547. }
  548. // SetWhiteHackGroupAddress is a paid mutator transaction binding the contract method 0x0a4db01b.
  549. //
  550. // Solidity: function setWhiteHackGroupAddress(address newAddress) returns()
  551. func (_WithdrawalDelayer *WithdrawalDelayerTransactorSession) SetWhiteHackGroupAddress(newAddress common.Address) (*types.Transaction, error) {
  552. return _WithdrawalDelayer.Contract.SetWhiteHackGroupAddress(&_WithdrawalDelayer.TransactOpts, newAddress)
  553. }
  554. // TokensReceived is a paid mutator transaction binding the contract method 0x0023de29.
  555. //
  556. // Solidity: function tokensReceived(address operator, address from, address to, uint256 amount, bytes userData, bytes operatorData) returns()
  557. func (_WithdrawalDelayer *WithdrawalDelayerTransactor) TokensReceived(opts *bind.TransactOpts, operator common.Address, from common.Address, to common.Address, amount *big.Int, userData []byte, operatorData []byte) (*types.Transaction, error) {
  558. return _WithdrawalDelayer.contract.Transact(opts, "tokensReceived", operator, from, to, amount, userData, operatorData)
  559. }
  560. // TokensReceived is a paid mutator transaction binding the contract method 0x0023de29.
  561. //
  562. // Solidity: function tokensReceived(address operator, address from, address to, uint256 amount, bytes userData, bytes operatorData) returns()
  563. func (_WithdrawalDelayer *WithdrawalDelayerSession) TokensReceived(operator common.Address, from common.Address, to common.Address, amount *big.Int, userData []byte, operatorData []byte) (*types.Transaction, error) {
  564. return _WithdrawalDelayer.Contract.TokensReceived(&_WithdrawalDelayer.TransactOpts, operator, from, to, amount, userData, operatorData)
  565. }
  566. // TokensReceived is a paid mutator transaction binding the contract method 0x0023de29.
  567. //
  568. // Solidity: function tokensReceived(address operator, address from, address to, uint256 amount, bytes userData, bytes operatorData) returns()
  569. func (_WithdrawalDelayer *WithdrawalDelayerTransactorSession) TokensReceived(operator common.Address, from common.Address, to common.Address, amount *big.Int, userData []byte, operatorData []byte) (*types.Transaction, error) {
  570. return _WithdrawalDelayer.Contract.TokensReceived(&_WithdrawalDelayer.TransactOpts, operator, from, to, amount, userData, operatorData)
  571. }
  572. // Withdrawal is a paid mutator transaction binding the contract method 0xde35f282.
  573. //
  574. // Solidity: function withdrawal(address _owner, address _token) returns()
  575. func (_WithdrawalDelayer *WithdrawalDelayerTransactor) Withdrawal(opts *bind.TransactOpts, _owner common.Address, _token common.Address) (*types.Transaction, error) {
  576. return _WithdrawalDelayer.contract.Transact(opts, "withdrawal", _owner, _token)
  577. }
  578. // Withdrawal is a paid mutator transaction binding the contract method 0xde35f282.
  579. //
  580. // Solidity: function withdrawal(address _owner, address _token) returns()
  581. func (_WithdrawalDelayer *WithdrawalDelayerSession) Withdrawal(_owner common.Address, _token common.Address) (*types.Transaction, error) {
  582. return _WithdrawalDelayer.Contract.Withdrawal(&_WithdrawalDelayer.TransactOpts, _owner, _token)
  583. }
  584. // Withdrawal is a paid mutator transaction binding the contract method 0xde35f282.
  585. //
  586. // Solidity: function withdrawal(address _owner, address _token) returns()
  587. func (_WithdrawalDelayer *WithdrawalDelayerTransactorSession) Withdrawal(_owner common.Address, _token common.Address) (*types.Transaction, error) {
  588. return _WithdrawalDelayer.Contract.Withdrawal(&_WithdrawalDelayer.TransactOpts, _owner, _token)
  589. }
  590. // WithdrawalDelayerInitializer is a paid mutator transaction binding the contract method 0x36e566ed.
  591. //
  592. // Solidity: function withdrawalDelayerInitializer(uint64 _initialWithdrawalDelay, address _initialHermezRollup, address _initialHermezKeeperAddress, address _initialHermezGovernanceDAOAddress, address _initialWhiteHackGroupAddress) returns()
  593. func (_WithdrawalDelayer *WithdrawalDelayerTransactor) WithdrawalDelayerInitializer(opts *bind.TransactOpts, _initialWithdrawalDelay uint64, _initialHermezRollup common.Address, _initialHermezKeeperAddress common.Address, _initialHermezGovernanceDAOAddress common.Address, _initialWhiteHackGroupAddress common.Address) (*types.Transaction, error) {
  594. return _WithdrawalDelayer.contract.Transact(opts, "withdrawalDelayerInitializer", _initialWithdrawalDelay, _initialHermezRollup, _initialHermezKeeperAddress, _initialHermezGovernanceDAOAddress, _initialWhiteHackGroupAddress)
  595. }
  596. // WithdrawalDelayerInitializer is a paid mutator transaction binding the contract method 0x36e566ed.
  597. //
  598. // Solidity: function withdrawalDelayerInitializer(uint64 _initialWithdrawalDelay, address _initialHermezRollup, address _initialHermezKeeperAddress, address _initialHermezGovernanceDAOAddress, address _initialWhiteHackGroupAddress) returns()
  599. func (_WithdrawalDelayer *WithdrawalDelayerSession) WithdrawalDelayerInitializer(_initialWithdrawalDelay uint64, _initialHermezRollup common.Address, _initialHermezKeeperAddress common.Address, _initialHermezGovernanceDAOAddress common.Address, _initialWhiteHackGroupAddress common.Address) (*types.Transaction, error) {
  600. return _WithdrawalDelayer.Contract.WithdrawalDelayerInitializer(&_WithdrawalDelayer.TransactOpts, _initialWithdrawalDelay, _initialHermezRollup, _initialHermezKeeperAddress, _initialHermezGovernanceDAOAddress, _initialWhiteHackGroupAddress)
  601. }
  602. // WithdrawalDelayerInitializer is a paid mutator transaction binding the contract method 0x36e566ed.
  603. //
  604. // Solidity: function withdrawalDelayerInitializer(uint64 _initialWithdrawalDelay, address _initialHermezRollup, address _initialHermezKeeperAddress, address _initialHermezGovernanceDAOAddress, address _initialWhiteHackGroupAddress) returns()
  605. func (_WithdrawalDelayer *WithdrawalDelayerTransactorSession) WithdrawalDelayerInitializer(_initialWithdrawalDelay uint64, _initialHermezRollup common.Address, _initialHermezKeeperAddress common.Address, _initialHermezGovernanceDAOAddress common.Address, _initialWhiteHackGroupAddress common.Address) (*types.Transaction, error) {
  606. return _WithdrawalDelayer.Contract.WithdrawalDelayerInitializer(&_WithdrawalDelayer.TransactOpts, _initialWithdrawalDelay, _initialHermezRollup, _initialHermezKeeperAddress, _initialHermezGovernanceDAOAddress, _initialWhiteHackGroupAddress)
  607. }
  608. // WithdrawalDelayerDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the WithdrawalDelayer contract.
  609. type WithdrawalDelayerDepositIterator struct {
  610. Event *WithdrawalDelayerDeposit // Event containing the contract specifics and raw log
  611. contract *bind.BoundContract // Generic contract to use for unpacking event data
  612. event string // Event name to use for unpacking event data
  613. logs chan types.Log // Log channel receiving the found contract events
  614. sub ethereum.Subscription // Subscription for errors, completion and termination
  615. done bool // Whether the subscription completed delivering logs
  616. fail error // Occurred error to stop iteration
  617. }
  618. // Next advances the iterator to the subsequent event, returning whether there
  619. // are any more events found. In case of a retrieval or parsing error, false is
  620. // returned and Error() can be queried for the exact failure.
  621. func (it *WithdrawalDelayerDepositIterator) Next() bool {
  622. // If the iterator failed, stop iterating
  623. if it.fail != nil {
  624. return false
  625. }
  626. // If the iterator completed, deliver directly whatever's available
  627. if it.done {
  628. select {
  629. case log := <-it.logs:
  630. it.Event = new(WithdrawalDelayerDeposit)
  631. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  632. it.fail = err
  633. return false
  634. }
  635. it.Event.Raw = log
  636. return true
  637. default:
  638. return false
  639. }
  640. }
  641. // Iterator still in progress, wait for either a data or an error event
  642. select {
  643. case log := <-it.logs:
  644. it.Event = new(WithdrawalDelayerDeposit)
  645. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  646. it.fail = err
  647. return false
  648. }
  649. it.Event.Raw = log
  650. return true
  651. case err := <-it.sub.Err():
  652. it.done = true
  653. it.fail = err
  654. return it.Next()
  655. }
  656. }
  657. // Error returns any retrieval or parsing error occurred during filtering.
  658. func (it *WithdrawalDelayerDepositIterator) Error() error {
  659. return it.fail
  660. }
  661. // Close terminates the iteration process, releasing any pending underlying
  662. // resources.
  663. func (it *WithdrawalDelayerDepositIterator) Close() error {
  664. it.sub.Unsubscribe()
  665. return nil
  666. }
  667. // WithdrawalDelayerDeposit represents a Deposit event raised by the WithdrawalDelayer contract.
  668. type WithdrawalDelayerDeposit struct {
  669. Owner common.Address
  670. Token common.Address
  671. Amount *big.Int
  672. DepositTimestamp uint64
  673. Raw types.Log // Blockchain specific contextual infos
  674. }
  675. // FilterDeposit is a free log retrieval operation binding the contract event 0x41219b99485f78192a5b9b1be28c7d53c3a2bdbe7900ae40c79fae8d9d6108fd.
  676. //
  677. // Solidity: event Deposit(address indexed owner, address indexed token, uint192 amount, uint64 depositTimestamp)
  678. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) FilterDeposit(opts *bind.FilterOpts, owner []common.Address, token []common.Address) (*WithdrawalDelayerDepositIterator, error) {
  679. var ownerRule []interface{}
  680. for _, ownerItem := range owner {
  681. ownerRule = append(ownerRule, ownerItem)
  682. }
  683. var tokenRule []interface{}
  684. for _, tokenItem := range token {
  685. tokenRule = append(tokenRule, tokenItem)
  686. }
  687. logs, sub, err := _WithdrawalDelayer.contract.FilterLogs(opts, "Deposit", ownerRule, tokenRule)
  688. if err != nil {
  689. return nil, err
  690. }
  691. return &WithdrawalDelayerDepositIterator{contract: _WithdrawalDelayer.contract, event: "Deposit", logs: logs, sub: sub}, nil
  692. }
  693. // WatchDeposit is a free log subscription operation binding the contract event 0x41219b99485f78192a5b9b1be28c7d53c3a2bdbe7900ae40c79fae8d9d6108fd.
  694. //
  695. // Solidity: event Deposit(address indexed owner, address indexed token, uint192 amount, uint64 depositTimestamp)
  696. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *WithdrawalDelayerDeposit, owner []common.Address, token []common.Address) (event.Subscription, error) {
  697. var ownerRule []interface{}
  698. for _, ownerItem := range owner {
  699. ownerRule = append(ownerRule, ownerItem)
  700. }
  701. var tokenRule []interface{}
  702. for _, tokenItem := range token {
  703. tokenRule = append(tokenRule, tokenItem)
  704. }
  705. logs, sub, err := _WithdrawalDelayer.contract.WatchLogs(opts, "Deposit", ownerRule, tokenRule)
  706. if err != nil {
  707. return nil, err
  708. }
  709. return event.NewSubscription(func(quit <-chan struct{}) error {
  710. defer sub.Unsubscribe()
  711. for {
  712. select {
  713. case log := <-logs:
  714. // New log arrived, parse the event and forward to the user
  715. event := new(WithdrawalDelayerDeposit)
  716. if err := _WithdrawalDelayer.contract.UnpackLog(event, "Deposit", log); err != nil {
  717. return err
  718. }
  719. event.Raw = log
  720. select {
  721. case sink <- event:
  722. case err := <-sub.Err():
  723. return err
  724. case <-quit:
  725. return nil
  726. }
  727. case err := <-sub.Err():
  728. return err
  729. case <-quit:
  730. return nil
  731. }
  732. }
  733. }), nil
  734. }
  735. // ParseDeposit is a log parse operation binding the contract event 0x41219b99485f78192a5b9b1be28c7d53c3a2bdbe7900ae40c79fae8d9d6108fd.
  736. //
  737. // Solidity: event Deposit(address indexed owner, address indexed token, uint192 amount, uint64 depositTimestamp)
  738. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) ParseDeposit(log types.Log) (*WithdrawalDelayerDeposit, error) {
  739. event := new(WithdrawalDelayerDeposit)
  740. if err := _WithdrawalDelayer.contract.UnpackLog(event, "Deposit", log); err != nil {
  741. return nil, err
  742. }
  743. return event, nil
  744. }
  745. // WithdrawalDelayerEmergencyModeEnabledIterator is returned from FilterEmergencyModeEnabled and is used to iterate over the raw logs and unpacked data for EmergencyModeEnabled events raised by the WithdrawalDelayer contract.
  746. type WithdrawalDelayerEmergencyModeEnabledIterator struct {
  747. Event *WithdrawalDelayerEmergencyModeEnabled // Event containing the contract specifics and raw log
  748. contract *bind.BoundContract // Generic contract to use for unpacking event data
  749. event string // Event name to use for unpacking event data
  750. logs chan types.Log // Log channel receiving the found contract events
  751. sub ethereum.Subscription // Subscription for errors, completion and termination
  752. done bool // Whether the subscription completed delivering logs
  753. fail error // Occurred error to stop iteration
  754. }
  755. // Next advances the iterator to the subsequent event, returning whether there
  756. // are any more events found. In case of a retrieval or parsing error, false is
  757. // returned and Error() can be queried for the exact failure.
  758. func (it *WithdrawalDelayerEmergencyModeEnabledIterator) Next() bool {
  759. // If the iterator failed, stop iterating
  760. if it.fail != nil {
  761. return false
  762. }
  763. // If the iterator completed, deliver directly whatever's available
  764. if it.done {
  765. select {
  766. case log := <-it.logs:
  767. it.Event = new(WithdrawalDelayerEmergencyModeEnabled)
  768. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  769. it.fail = err
  770. return false
  771. }
  772. it.Event.Raw = log
  773. return true
  774. default:
  775. return false
  776. }
  777. }
  778. // Iterator still in progress, wait for either a data or an error event
  779. select {
  780. case log := <-it.logs:
  781. it.Event = new(WithdrawalDelayerEmergencyModeEnabled)
  782. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  783. it.fail = err
  784. return false
  785. }
  786. it.Event.Raw = log
  787. return true
  788. case err := <-it.sub.Err():
  789. it.done = true
  790. it.fail = err
  791. return it.Next()
  792. }
  793. }
  794. // Error returns any retrieval or parsing error occurred during filtering.
  795. func (it *WithdrawalDelayerEmergencyModeEnabledIterator) Error() error {
  796. return it.fail
  797. }
  798. // Close terminates the iteration process, releasing any pending underlying
  799. // resources.
  800. func (it *WithdrawalDelayerEmergencyModeEnabledIterator) Close() error {
  801. it.sub.Unsubscribe()
  802. return nil
  803. }
  804. // WithdrawalDelayerEmergencyModeEnabled represents a EmergencyModeEnabled event raised by the WithdrawalDelayer contract.
  805. type WithdrawalDelayerEmergencyModeEnabled struct {
  806. Raw types.Log // Blockchain specific contextual infos
  807. }
  808. // FilterEmergencyModeEnabled is a free log retrieval operation binding the contract event 0x2064d51aa5a8bd67928c7675e267e05c67ad5adf7c9098d0a602d01f36fda9c5.
  809. //
  810. // Solidity: event EmergencyModeEnabled()
  811. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) FilterEmergencyModeEnabled(opts *bind.FilterOpts) (*WithdrawalDelayerEmergencyModeEnabledIterator, error) {
  812. logs, sub, err := _WithdrawalDelayer.contract.FilterLogs(opts, "EmergencyModeEnabled")
  813. if err != nil {
  814. return nil, err
  815. }
  816. return &WithdrawalDelayerEmergencyModeEnabledIterator{contract: _WithdrawalDelayer.contract, event: "EmergencyModeEnabled", logs: logs, sub: sub}, nil
  817. }
  818. // WatchEmergencyModeEnabled is a free log subscription operation binding the contract event 0x2064d51aa5a8bd67928c7675e267e05c67ad5adf7c9098d0a602d01f36fda9c5.
  819. //
  820. // Solidity: event EmergencyModeEnabled()
  821. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) WatchEmergencyModeEnabled(opts *bind.WatchOpts, sink chan<- *WithdrawalDelayerEmergencyModeEnabled) (event.Subscription, error) {
  822. logs, sub, err := _WithdrawalDelayer.contract.WatchLogs(opts, "EmergencyModeEnabled")
  823. if err != nil {
  824. return nil, err
  825. }
  826. return event.NewSubscription(func(quit <-chan struct{}) error {
  827. defer sub.Unsubscribe()
  828. for {
  829. select {
  830. case log := <-logs:
  831. // New log arrived, parse the event and forward to the user
  832. event := new(WithdrawalDelayerEmergencyModeEnabled)
  833. if err := _WithdrawalDelayer.contract.UnpackLog(event, "EmergencyModeEnabled", log); err != nil {
  834. return err
  835. }
  836. event.Raw = log
  837. select {
  838. case sink <- event:
  839. case err := <-sub.Err():
  840. return err
  841. case <-quit:
  842. return nil
  843. }
  844. case err := <-sub.Err():
  845. return err
  846. case <-quit:
  847. return nil
  848. }
  849. }
  850. }), nil
  851. }
  852. // ParseEmergencyModeEnabled is a log parse operation binding the contract event 0x2064d51aa5a8bd67928c7675e267e05c67ad5adf7c9098d0a602d01f36fda9c5.
  853. //
  854. // Solidity: event EmergencyModeEnabled()
  855. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) ParseEmergencyModeEnabled(log types.Log) (*WithdrawalDelayerEmergencyModeEnabled, error) {
  856. event := new(WithdrawalDelayerEmergencyModeEnabled)
  857. if err := _WithdrawalDelayer.contract.UnpackLog(event, "EmergencyModeEnabled", log); err != nil {
  858. return nil, err
  859. }
  860. return event, nil
  861. }
  862. // WithdrawalDelayerEscapeHatchWithdrawalIterator is returned from FilterEscapeHatchWithdrawal and is used to iterate over the raw logs and unpacked data for EscapeHatchWithdrawal events raised by the WithdrawalDelayer contract.
  863. type WithdrawalDelayerEscapeHatchWithdrawalIterator struct {
  864. Event *WithdrawalDelayerEscapeHatchWithdrawal // Event containing the contract specifics and raw log
  865. contract *bind.BoundContract // Generic contract to use for unpacking event data
  866. event string // Event name to use for unpacking event data
  867. logs chan types.Log // Log channel receiving the found contract events
  868. sub ethereum.Subscription // Subscription for errors, completion and termination
  869. done bool // Whether the subscription completed delivering logs
  870. fail error // Occurred error to stop iteration
  871. }
  872. // Next advances the iterator to the subsequent event, returning whether there
  873. // are any more events found. In case of a retrieval or parsing error, false is
  874. // returned and Error() can be queried for the exact failure.
  875. func (it *WithdrawalDelayerEscapeHatchWithdrawalIterator) Next() bool {
  876. // If the iterator failed, stop iterating
  877. if it.fail != nil {
  878. return false
  879. }
  880. // If the iterator completed, deliver directly whatever's available
  881. if it.done {
  882. select {
  883. case log := <-it.logs:
  884. it.Event = new(WithdrawalDelayerEscapeHatchWithdrawal)
  885. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  886. it.fail = err
  887. return false
  888. }
  889. it.Event.Raw = log
  890. return true
  891. default:
  892. return false
  893. }
  894. }
  895. // Iterator still in progress, wait for either a data or an error event
  896. select {
  897. case log := <-it.logs:
  898. it.Event = new(WithdrawalDelayerEscapeHatchWithdrawal)
  899. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  900. it.fail = err
  901. return false
  902. }
  903. it.Event.Raw = log
  904. return true
  905. case err := <-it.sub.Err():
  906. it.done = true
  907. it.fail = err
  908. return it.Next()
  909. }
  910. }
  911. // Error returns any retrieval or parsing error occurred during filtering.
  912. func (it *WithdrawalDelayerEscapeHatchWithdrawalIterator) Error() error {
  913. return it.fail
  914. }
  915. // Close terminates the iteration process, releasing any pending underlying
  916. // resources.
  917. func (it *WithdrawalDelayerEscapeHatchWithdrawalIterator) Close() error {
  918. it.sub.Unsubscribe()
  919. return nil
  920. }
  921. // WithdrawalDelayerEscapeHatchWithdrawal represents a EscapeHatchWithdrawal event raised by the WithdrawalDelayer contract.
  922. type WithdrawalDelayerEscapeHatchWithdrawal struct {
  923. Who common.Address
  924. To common.Address
  925. Token common.Address
  926. Amount *big.Int
  927. Raw types.Log // Blockchain specific contextual infos
  928. }
  929. // FilterEscapeHatchWithdrawal is a free log retrieval operation binding the contract event 0xde200220117ba95c9a6c4a1a13bb06b0b7be90faa85c8fb4576630119f891693.
  930. //
  931. // Solidity: event EscapeHatchWithdrawal(address indexed who, address indexed to, address indexed token, uint256 amount)
  932. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) FilterEscapeHatchWithdrawal(opts *bind.FilterOpts, who []common.Address, to []common.Address, token []common.Address) (*WithdrawalDelayerEscapeHatchWithdrawalIterator, error) {
  933. var whoRule []interface{}
  934. for _, whoItem := range who {
  935. whoRule = append(whoRule, whoItem)
  936. }
  937. var toRule []interface{}
  938. for _, toItem := range to {
  939. toRule = append(toRule, toItem)
  940. }
  941. var tokenRule []interface{}
  942. for _, tokenItem := range token {
  943. tokenRule = append(tokenRule, tokenItem)
  944. }
  945. logs, sub, err := _WithdrawalDelayer.contract.FilterLogs(opts, "EscapeHatchWithdrawal", whoRule, toRule, tokenRule)
  946. if err != nil {
  947. return nil, err
  948. }
  949. return &WithdrawalDelayerEscapeHatchWithdrawalIterator{contract: _WithdrawalDelayer.contract, event: "EscapeHatchWithdrawal", logs: logs, sub: sub}, nil
  950. }
  951. // WatchEscapeHatchWithdrawal is a free log subscription operation binding the contract event 0xde200220117ba95c9a6c4a1a13bb06b0b7be90faa85c8fb4576630119f891693.
  952. //
  953. // Solidity: event EscapeHatchWithdrawal(address indexed who, address indexed to, address indexed token, uint256 amount)
  954. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) WatchEscapeHatchWithdrawal(opts *bind.WatchOpts, sink chan<- *WithdrawalDelayerEscapeHatchWithdrawal, who []common.Address, to []common.Address, token []common.Address) (event.Subscription, error) {
  955. var whoRule []interface{}
  956. for _, whoItem := range who {
  957. whoRule = append(whoRule, whoItem)
  958. }
  959. var toRule []interface{}
  960. for _, toItem := range to {
  961. toRule = append(toRule, toItem)
  962. }
  963. var tokenRule []interface{}
  964. for _, tokenItem := range token {
  965. tokenRule = append(tokenRule, tokenItem)
  966. }
  967. logs, sub, err := _WithdrawalDelayer.contract.WatchLogs(opts, "EscapeHatchWithdrawal", whoRule, toRule, tokenRule)
  968. if err != nil {
  969. return nil, err
  970. }
  971. return event.NewSubscription(func(quit <-chan struct{}) error {
  972. defer sub.Unsubscribe()
  973. for {
  974. select {
  975. case log := <-logs:
  976. // New log arrived, parse the event and forward to the user
  977. event := new(WithdrawalDelayerEscapeHatchWithdrawal)
  978. if err := _WithdrawalDelayer.contract.UnpackLog(event, "EscapeHatchWithdrawal", log); err != nil {
  979. return err
  980. }
  981. event.Raw = log
  982. select {
  983. case sink <- event:
  984. case err := <-sub.Err():
  985. return err
  986. case <-quit:
  987. return nil
  988. }
  989. case err := <-sub.Err():
  990. return err
  991. case <-quit:
  992. return nil
  993. }
  994. }
  995. }), nil
  996. }
  997. // ParseEscapeHatchWithdrawal is a log parse operation binding the contract event 0xde200220117ba95c9a6c4a1a13bb06b0b7be90faa85c8fb4576630119f891693.
  998. //
  999. // Solidity: event EscapeHatchWithdrawal(address indexed who, address indexed to, address indexed token, uint256 amount)
  1000. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) ParseEscapeHatchWithdrawal(log types.Log) (*WithdrawalDelayerEscapeHatchWithdrawal, error) {
  1001. event := new(WithdrawalDelayerEscapeHatchWithdrawal)
  1002. if err := _WithdrawalDelayer.contract.UnpackLog(event, "EscapeHatchWithdrawal", log); err != nil {
  1003. return nil, err
  1004. }
  1005. return event, nil
  1006. }
  1007. // WithdrawalDelayerNewHermezGovernanceDAOAddressIterator is returned from FilterNewHermezGovernanceDAOAddress and is used to iterate over the raw logs and unpacked data for NewHermezGovernanceDAOAddress events raised by the WithdrawalDelayer contract.
  1008. type WithdrawalDelayerNewHermezGovernanceDAOAddressIterator struct {
  1009. Event *WithdrawalDelayerNewHermezGovernanceDAOAddress // Event containing the contract specifics and raw log
  1010. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1011. event string // Event name to use for unpacking event data
  1012. logs chan types.Log // Log channel receiving the found contract events
  1013. sub ethereum.Subscription // Subscription for errors, completion and termination
  1014. done bool // Whether the subscription completed delivering logs
  1015. fail error // Occurred error to stop iteration
  1016. }
  1017. // Next advances the iterator to the subsequent event, returning whether there
  1018. // are any more events found. In case of a retrieval or parsing error, false is
  1019. // returned and Error() can be queried for the exact failure.
  1020. func (it *WithdrawalDelayerNewHermezGovernanceDAOAddressIterator) Next() bool {
  1021. // If the iterator failed, stop iterating
  1022. if it.fail != nil {
  1023. return false
  1024. }
  1025. // If the iterator completed, deliver directly whatever's available
  1026. if it.done {
  1027. select {
  1028. case log := <-it.logs:
  1029. it.Event = new(WithdrawalDelayerNewHermezGovernanceDAOAddress)
  1030. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1031. it.fail = err
  1032. return false
  1033. }
  1034. it.Event.Raw = log
  1035. return true
  1036. default:
  1037. return false
  1038. }
  1039. }
  1040. // Iterator still in progress, wait for either a data or an error event
  1041. select {
  1042. case log := <-it.logs:
  1043. it.Event = new(WithdrawalDelayerNewHermezGovernanceDAOAddress)
  1044. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1045. it.fail = err
  1046. return false
  1047. }
  1048. it.Event.Raw = log
  1049. return true
  1050. case err := <-it.sub.Err():
  1051. it.done = true
  1052. it.fail = err
  1053. return it.Next()
  1054. }
  1055. }
  1056. // Error returns any retrieval or parsing error occurred during filtering.
  1057. func (it *WithdrawalDelayerNewHermezGovernanceDAOAddressIterator) Error() error {
  1058. return it.fail
  1059. }
  1060. // Close terminates the iteration process, releasing any pending underlying
  1061. // resources.
  1062. func (it *WithdrawalDelayerNewHermezGovernanceDAOAddressIterator) Close() error {
  1063. it.sub.Unsubscribe()
  1064. return nil
  1065. }
  1066. // WithdrawalDelayerNewHermezGovernanceDAOAddress represents a NewHermezGovernanceDAOAddress event raised by the WithdrawalDelayer contract.
  1067. type WithdrawalDelayerNewHermezGovernanceDAOAddress struct {
  1068. NewHermezGovernanceDAOAddress common.Address
  1069. Raw types.Log // Blockchain specific contextual infos
  1070. }
  1071. // FilterNewHermezGovernanceDAOAddress is a free log retrieval operation binding the contract event 0x03683be8debd93f8f5ff23dd03419bfcb9b8287a1868b0f130d858f03c3a08a1.
  1072. //
  1073. // Solidity: event NewHermezGovernanceDAOAddress(address newHermezGovernanceDAOAddress)
  1074. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) FilterNewHermezGovernanceDAOAddress(opts *bind.FilterOpts) (*WithdrawalDelayerNewHermezGovernanceDAOAddressIterator, error) {
  1075. logs, sub, err := _WithdrawalDelayer.contract.FilterLogs(opts, "NewHermezGovernanceDAOAddress")
  1076. if err != nil {
  1077. return nil, err
  1078. }
  1079. return &WithdrawalDelayerNewHermezGovernanceDAOAddressIterator{contract: _WithdrawalDelayer.contract, event: "NewHermezGovernanceDAOAddress", logs: logs, sub: sub}, nil
  1080. }
  1081. // WatchNewHermezGovernanceDAOAddress is a free log subscription operation binding the contract event 0x03683be8debd93f8f5ff23dd03419bfcb9b8287a1868b0f130d858f03c3a08a1.
  1082. //
  1083. // Solidity: event NewHermezGovernanceDAOAddress(address newHermezGovernanceDAOAddress)
  1084. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) WatchNewHermezGovernanceDAOAddress(opts *bind.WatchOpts, sink chan<- *WithdrawalDelayerNewHermezGovernanceDAOAddress) (event.Subscription, error) {
  1085. logs, sub, err := _WithdrawalDelayer.contract.WatchLogs(opts, "NewHermezGovernanceDAOAddress")
  1086. if err != nil {
  1087. return nil, err
  1088. }
  1089. return event.NewSubscription(func(quit <-chan struct{}) error {
  1090. defer sub.Unsubscribe()
  1091. for {
  1092. select {
  1093. case log := <-logs:
  1094. // New log arrived, parse the event and forward to the user
  1095. event := new(WithdrawalDelayerNewHermezGovernanceDAOAddress)
  1096. if err := _WithdrawalDelayer.contract.UnpackLog(event, "NewHermezGovernanceDAOAddress", log); err != nil {
  1097. return err
  1098. }
  1099. event.Raw = log
  1100. select {
  1101. case sink <- event:
  1102. case err := <-sub.Err():
  1103. return err
  1104. case <-quit:
  1105. return nil
  1106. }
  1107. case err := <-sub.Err():
  1108. return err
  1109. case <-quit:
  1110. return nil
  1111. }
  1112. }
  1113. }), nil
  1114. }
  1115. // ParseNewHermezGovernanceDAOAddress is a log parse operation binding the contract event 0x03683be8debd93f8f5ff23dd03419bfcb9b8287a1868b0f130d858f03c3a08a1.
  1116. //
  1117. // Solidity: event NewHermezGovernanceDAOAddress(address newHermezGovernanceDAOAddress)
  1118. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) ParseNewHermezGovernanceDAOAddress(log types.Log) (*WithdrawalDelayerNewHermezGovernanceDAOAddress, error) {
  1119. event := new(WithdrawalDelayerNewHermezGovernanceDAOAddress)
  1120. if err := _WithdrawalDelayer.contract.UnpackLog(event, "NewHermezGovernanceDAOAddress", log); err != nil {
  1121. return nil, err
  1122. }
  1123. return event, nil
  1124. }
  1125. // WithdrawalDelayerNewHermezKeeperAddressIterator is returned from FilterNewHermezKeeperAddress and is used to iterate over the raw logs and unpacked data for NewHermezKeeperAddress events raised by the WithdrawalDelayer contract.
  1126. type WithdrawalDelayerNewHermezKeeperAddressIterator struct {
  1127. Event *WithdrawalDelayerNewHermezKeeperAddress // Event containing the contract specifics and raw log
  1128. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1129. event string // Event name to use for unpacking event data
  1130. logs chan types.Log // Log channel receiving the found contract events
  1131. sub ethereum.Subscription // Subscription for errors, completion and termination
  1132. done bool // Whether the subscription completed delivering logs
  1133. fail error // Occurred error to stop iteration
  1134. }
  1135. // Next advances the iterator to the subsequent event, returning whether there
  1136. // are any more events found. In case of a retrieval or parsing error, false is
  1137. // returned and Error() can be queried for the exact failure.
  1138. func (it *WithdrawalDelayerNewHermezKeeperAddressIterator) Next() bool {
  1139. // If the iterator failed, stop iterating
  1140. if it.fail != nil {
  1141. return false
  1142. }
  1143. // If the iterator completed, deliver directly whatever's available
  1144. if it.done {
  1145. select {
  1146. case log := <-it.logs:
  1147. it.Event = new(WithdrawalDelayerNewHermezKeeperAddress)
  1148. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1149. it.fail = err
  1150. return false
  1151. }
  1152. it.Event.Raw = log
  1153. return true
  1154. default:
  1155. return false
  1156. }
  1157. }
  1158. // Iterator still in progress, wait for either a data or an error event
  1159. select {
  1160. case log := <-it.logs:
  1161. it.Event = new(WithdrawalDelayerNewHermezKeeperAddress)
  1162. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1163. it.fail = err
  1164. return false
  1165. }
  1166. it.Event.Raw = log
  1167. return true
  1168. case err := <-it.sub.Err():
  1169. it.done = true
  1170. it.fail = err
  1171. return it.Next()
  1172. }
  1173. }
  1174. // Error returns any retrieval or parsing error occurred during filtering.
  1175. func (it *WithdrawalDelayerNewHermezKeeperAddressIterator) Error() error {
  1176. return it.fail
  1177. }
  1178. // Close terminates the iteration process, releasing any pending underlying
  1179. // resources.
  1180. func (it *WithdrawalDelayerNewHermezKeeperAddressIterator) Close() error {
  1181. it.sub.Unsubscribe()
  1182. return nil
  1183. }
  1184. // WithdrawalDelayerNewHermezKeeperAddress represents a NewHermezKeeperAddress event raised by the WithdrawalDelayer contract.
  1185. type WithdrawalDelayerNewHermezKeeperAddress struct {
  1186. NewHermezKeeperAddress common.Address
  1187. Raw types.Log // Blockchain specific contextual infos
  1188. }
  1189. // FilterNewHermezKeeperAddress is a free log retrieval operation binding the contract event 0xc1e9be84fce652abec6a6944f7ec5bbb40de18caa44c285b05a0de7e3ad9d016.
  1190. //
  1191. // Solidity: event NewHermezKeeperAddress(address newHermezKeeperAddress)
  1192. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) FilterNewHermezKeeperAddress(opts *bind.FilterOpts) (*WithdrawalDelayerNewHermezKeeperAddressIterator, error) {
  1193. logs, sub, err := _WithdrawalDelayer.contract.FilterLogs(opts, "NewHermezKeeperAddress")
  1194. if err != nil {
  1195. return nil, err
  1196. }
  1197. return &WithdrawalDelayerNewHermezKeeperAddressIterator{contract: _WithdrawalDelayer.contract, event: "NewHermezKeeperAddress", logs: logs, sub: sub}, nil
  1198. }
  1199. // WatchNewHermezKeeperAddress is a free log subscription operation binding the contract event 0xc1e9be84fce652abec6a6944f7ec5bbb40de18caa44c285b05a0de7e3ad9d016.
  1200. //
  1201. // Solidity: event NewHermezKeeperAddress(address newHermezKeeperAddress)
  1202. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) WatchNewHermezKeeperAddress(opts *bind.WatchOpts, sink chan<- *WithdrawalDelayerNewHermezKeeperAddress) (event.Subscription, error) {
  1203. logs, sub, err := _WithdrawalDelayer.contract.WatchLogs(opts, "NewHermezKeeperAddress")
  1204. if err != nil {
  1205. return nil, err
  1206. }
  1207. return event.NewSubscription(func(quit <-chan struct{}) error {
  1208. defer sub.Unsubscribe()
  1209. for {
  1210. select {
  1211. case log := <-logs:
  1212. // New log arrived, parse the event and forward to the user
  1213. event := new(WithdrawalDelayerNewHermezKeeperAddress)
  1214. if err := _WithdrawalDelayer.contract.UnpackLog(event, "NewHermezKeeperAddress", log); err != nil {
  1215. return err
  1216. }
  1217. event.Raw = log
  1218. select {
  1219. case sink <- event:
  1220. case err := <-sub.Err():
  1221. return err
  1222. case <-quit:
  1223. return nil
  1224. }
  1225. case err := <-sub.Err():
  1226. return err
  1227. case <-quit:
  1228. return nil
  1229. }
  1230. }
  1231. }), nil
  1232. }
  1233. // ParseNewHermezKeeperAddress is a log parse operation binding the contract event 0xc1e9be84fce652abec6a6944f7ec5bbb40de18caa44c285b05a0de7e3ad9d016.
  1234. //
  1235. // Solidity: event NewHermezKeeperAddress(address newHermezKeeperAddress)
  1236. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) ParseNewHermezKeeperAddress(log types.Log) (*WithdrawalDelayerNewHermezKeeperAddress, error) {
  1237. event := new(WithdrawalDelayerNewHermezKeeperAddress)
  1238. if err := _WithdrawalDelayer.contract.UnpackLog(event, "NewHermezKeeperAddress", log); err != nil {
  1239. return nil, err
  1240. }
  1241. return event, nil
  1242. }
  1243. // WithdrawalDelayerNewWhiteHackGroupAddressIterator is returned from FilterNewWhiteHackGroupAddress and is used to iterate over the raw logs and unpacked data for NewWhiteHackGroupAddress events raised by the WithdrawalDelayer contract.
  1244. type WithdrawalDelayerNewWhiteHackGroupAddressIterator struct {
  1245. Event *WithdrawalDelayerNewWhiteHackGroupAddress // Event containing the contract specifics and raw log
  1246. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1247. event string // Event name to use for unpacking event data
  1248. logs chan types.Log // Log channel receiving the found contract events
  1249. sub ethereum.Subscription // Subscription for errors, completion and termination
  1250. done bool // Whether the subscription completed delivering logs
  1251. fail error // Occurred error to stop iteration
  1252. }
  1253. // Next advances the iterator to the subsequent event, returning whether there
  1254. // are any more events found. In case of a retrieval or parsing error, false is
  1255. // returned and Error() can be queried for the exact failure.
  1256. func (it *WithdrawalDelayerNewWhiteHackGroupAddressIterator) Next() bool {
  1257. // If the iterator failed, stop iterating
  1258. if it.fail != nil {
  1259. return false
  1260. }
  1261. // If the iterator completed, deliver directly whatever's available
  1262. if it.done {
  1263. select {
  1264. case log := <-it.logs:
  1265. it.Event = new(WithdrawalDelayerNewWhiteHackGroupAddress)
  1266. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1267. it.fail = err
  1268. return false
  1269. }
  1270. it.Event.Raw = log
  1271. return true
  1272. default:
  1273. return false
  1274. }
  1275. }
  1276. // Iterator still in progress, wait for either a data or an error event
  1277. select {
  1278. case log := <-it.logs:
  1279. it.Event = new(WithdrawalDelayerNewWhiteHackGroupAddress)
  1280. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1281. it.fail = err
  1282. return false
  1283. }
  1284. it.Event.Raw = log
  1285. return true
  1286. case err := <-it.sub.Err():
  1287. it.done = true
  1288. it.fail = err
  1289. return it.Next()
  1290. }
  1291. }
  1292. // Error returns any retrieval or parsing error occurred during filtering.
  1293. func (it *WithdrawalDelayerNewWhiteHackGroupAddressIterator) Error() error {
  1294. return it.fail
  1295. }
  1296. // Close terminates the iteration process, releasing any pending underlying
  1297. // resources.
  1298. func (it *WithdrawalDelayerNewWhiteHackGroupAddressIterator) Close() error {
  1299. it.sub.Unsubscribe()
  1300. return nil
  1301. }
  1302. // WithdrawalDelayerNewWhiteHackGroupAddress represents a NewWhiteHackGroupAddress event raised by the WithdrawalDelayer contract.
  1303. type WithdrawalDelayerNewWhiteHackGroupAddress struct {
  1304. NewWhiteHackGroupAddress common.Address
  1305. Raw types.Log // Blockchain specific contextual infos
  1306. }
  1307. // FilterNewWhiteHackGroupAddress is a free log retrieval operation binding the contract event 0x284ca073b8bdde2195ae98779277678773a99d7739e5f0477dc19a03fc689011.
  1308. //
  1309. // Solidity: event NewWhiteHackGroupAddress(address newWhiteHackGroupAddress)
  1310. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) FilterNewWhiteHackGroupAddress(opts *bind.FilterOpts) (*WithdrawalDelayerNewWhiteHackGroupAddressIterator, error) {
  1311. logs, sub, err := _WithdrawalDelayer.contract.FilterLogs(opts, "NewWhiteHackGroupAddress")
  1312. if err != nil {
  1313. return nil, err
  1314. }
  1315. return &WithdrawalDelayerNewWhiteHackGroupAddressIterator{contract: _WithdrawalDelayer.contract, event: "NewWhiteHackGroupAddress", logs: logs, sub: sub}, nil
  1316. }
  1317. // WatchNewWhiteHackGroupAddress is a free log subscription operation binding the contract event 0x284ca073b8bdde2195ae98779277678773a99d7739e5f0477dc19a03fc689011.
  1318. //
  1319. // Solidity: event NewWhiteHackGroupAddress(address newWhiteHackGroupAddress)
  1320. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) WatchNewWhiteHackGroupAddress(opts *bind.WatchOpts, sink chan<- *WithdrawalDelayerNewWhiteHackGroupAddress) (event.Subscription, error) {
  1321. logs, sub, err := _WithdrawalDelayer.contract.WatchLogs(opts, "NewWhiteHackGroupAddress")
  1322. if err != nil {
  1323. return nil, err
  1324. }
  1325. return event.NewSubscription(func(quit <-chan struct{}) error {
  1326. defer sub.Unsubscribe()
  1327. for {
  1328. select {
  1329. case log := <-logs:
  1330. // New log arrived, parse the event and forward to the user
  1331. event := new(WithdrawalDelayerNewWhiteHackGroupAddress)
  1332. if err := _WithdrawalDelayer.contract.UnpackLog(event, "NewWhiteHackGroupAddress", log); err != nil {
  1333. return err
  1334. }
  1335. event.Raw = log
  1336. select {
  1337. case sink <- event:
  1338. case err := <-sub.Err():
  1339. return err
  1340. case <-quit:
  1341. return nil
  1342. }
  1343. case err := <-sub.Err():
  1344. return err
  1345. case <-quit:
  1346. return nil
  1347. }
  1348. }
  1349. }), nil
  1350. }
  1351. // ParseNewWhiteHackGroupAddress is a log parse operation binding the contract event 0x284ca073b8bdde2195ae98779277678773a99d7739e5f0477dc19a03fc689011.
  1352. //
  1353. // Solidity: event NewWhiteHackGroupAddress(address newWhiteHackGroupAddress)
  1354. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) ParseNewWhiteHackGroupAddress(log types.Log) (*WithdrawalDelayerNewWhiteHackGroupAddress, error) {
  1355. event := new(WithdrawalDelayerNewWhiteHackGroupAddress)
  1356. if err := _WithdrawalDelayer.contract.UnpackLog(event, "NewWhiteHackGroupAddress", log); err != nil {
  1357. return nil, err
  1358. }
  1359. return event, nil
  1360. }
  1361. // WithdrawalDelayerNewWithdrawalDelayIterator is returned from FilterNewWithdrawalDelay and is used to iterate over the raw logs and unpacked data for NewWithdrawalDelay events raised by the WithdrawalDelayer contract.
  1362. type WithdrawalDelayerNewWithdrawalDelayIterator struct {
  1363. Event *WithdrawalDelayerNewWithdrawalDelay // Event containing the contract specifics and raw log
  1364. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1365. event string // Event name to use for unpacking event data
  1366. logs chan types.Log // Log channel receiving the found contract events
  1367. sub ethereum.Subscription // Subscription for errors, completion and termination
  1368. done bool // Whether the subscription completed delivering logs
  1369. fail error // Occurred error to stop iteration
  1370. }
  1371. // Next advances the iterator to the subsequent event, returning whether there
  1372. // are any more events found. In case of a retrieval or parsing error, false is
  1373. // returned and Error() can be queried for the exact failure.
  1374. func (it *WithdrawalDelayerNewWithdrawalDelayIterator) Next() bool {
  1375. // If the iterator failed, stop iterating
  1376. if it.fail != nil {
  1377. return false
  1378. }
  1379. // If the iterator completed, deliver directly whatever's available
  1380. if it.done {
  1381. select {
  1382. case log := <-it.logs:
  1383. it.Event = new(WithdrawalDelayerNewWithdrawalDelay)
  1384. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1385. it.fail = err
  1386. return false
  1387. }
  1388. it.Event.Raw = log
  1389. return true
  1390. default:
  1391. return false
  1392. }
  1393. }
  1394. // Iterator still in progress, wait for either a data or an error event
  1395. select {
  1396. case log := <-it.logs:
  1397. it.Event = new(WithdrawalDelayerNewWithdrawalDelay)
  1398. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1399. it.fail = err
  1400. return false
  1401. }
  1402. it.Event.Raw = log
  1403. return true
  1404. case err := <-it.sub.Err():
  1405. it.done = true
  1406. it.fail = err
  1407. return it.Next()
  1408. }
  1409. }
  1410. // Error returns any retrieval or parsing error occurred during filtering.
  1411. func (it *WithdrawalDelayerNewWithdrawalDelayIterator) Error() error {
  1412. return it.fail
  1413. }
  1414. // Close terminates the iteration process, releasing any pending underlying
  1415. // resources.
  1416. func (it *WithdrawalDelayerNewWithdrawalDelayIterator) Close() error {
  1417. it.sub.Unsubscribe()
  1418. return nil
  1419. }
  1420. // WithdrawalDelayerNewWithdrawalDelay represents a NewWithdrawalDelay event raised by the WithdrawalDelayer contract.
  1421. type WithdrawalDelayerNewWithdrawalDelay struct {
  1422. WithdrawalDelay uint64
  1423. Raw types.Log // Blockchain specific contextual infos
  1424. }
  1425. // FilterNewWithdrawalDelay is a free log retrieval operation binding the contract event 0x6b3670ab51e04a9da086741e5fd1eb36ffaf1d661a15330c528e1f3e0c8722d7.
  1426. //
  1427. // Solidity: event NewWithdrawalDelay(uint64 withdrawalDelay)
  1428. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) FilterNewWithdrawalDelay(opts *bind.FilterOpts) (*WithdrawalDelayerNewWithdrawalDelayIterator, error) {
  1429. logs, sub, err := _WithdrawalDelayer.contract.FilterLogs(opts, "NewWithdrawalDelay")
  1430. if err != nil {
  1431. return nil, err
  1432. }
  1433. return &WithdrawalDelayerNewWithdrawalDelayIterator{contract: _WithdrawalDelayer.contract, event: "NewWithdrawalDelay", logs: logs, sub: sub}, nil
  1434. }
  1435. // WatchNewWithdrawalDelay is a free log subscription operation binding the contract event 0x6b3670ab51e04a9da086741e5fd1eb36ffaf1d661a15330c528e1f3e0c8722d7.
  1436. //
  1437. // Solidity: event NewWithdrawalDelay(uint64 withdrawalDelay)
  1438. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) WatchNewWithdrawalDelay(opts *bind.WatchOpts, sink chan<- *WithdrawalDelayerNewWithdrawalDelay) (event.Subscription, error) {
  1439. logs, sub, err := _WithdrawalDelayer.contract.WatchLogs(opts, "NewWithdrawalDelay")
  1440. if err != nil {
  1441. return nil, err
  1442. }
  1443. return event.NewSubscription(func(quit <-chan struct{}) error {
  1444. defer sub.Unsubscribe()
  1445. for {
  1446. select {
  1447. case log := <-logs:
  1448. // New log arrived, parse the event and forward to the user
  1449. event := new(WithdrawalDelayerNewWithdrawalDelay)
  1450. if err := _WithdrawalDelayer.contract.UnpackLog(event, "NewWithdrawalDelay", log); err != nil {
  1451. return err
  1452. }
  1453. event.Raw = log
  1454. select {
  1455. case sink <- event:
  1456. case err := <-sub.Err():
  1457. return err
  1458. case <-quit:
  1459. return nil
  1460. }
  1461. case err := <-sub.Err():
  1462. return err
  1463. case <-quit:
  1464. return nil
  1465. }
  1466. }
  1467. }), nil
  1468. }
  1469. // ParseNewWithdrawalDelay is a log parse operation binding the contract event 0x6b3670ab51e04a9da086741e5fd1eb36ffaf1d661a15330c528e1f3e0c8722d7.
  1470. //
  1471. // Solidity: event NewWithdrawalDelay(uint64 withdrawalDelay)
  1472. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) ParseNewWithdrawalDelay(log types.Log) (*WithdrawalDelayerNewWithdrawalDelay, error) {
  1473. event := new(WithdrawalDelayerNewWithdrawalDelay)
  1474. if err := _WithdrawalDelayer.contract.UnpackLog(event, "NewWithdrawalDelay", log); err != nil {
  1475. return nil, err
  1476. }
  1477. return event, nil
  1478. }
  1479. // WithdrawalDelayerWithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the WithdrawalDelayer contract.
  1480. type WithdrawalDelayerWithdrawIterator struct {
  1481. Event *WithdrawalDelayerWithdraw // Event containing the contract specifics and raw log
  1482. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1483. event string // Event name to use for unpacking event data
  1484. logs chan types.Log // Log channel receiving the found contract events
  1485. sub ethereum.Subscription // Subscription for errors, completion and termination
  1486. done bool // Whether the subscription completed delivering logs
  1487. fail error // Occurred error to stop iteration
  1488. }
  1489. // Next advances the iterator to the subsequent event, returning whether there
  1490. // are any more events found. In case of a retrieval or parsing error, false is
  1491. // returned and Error() can be queried for the exact failure.
  1492. func (it *WithdrawalDelayerWithdrawIterator) Next() bool {
  1493. // If the iterator failed, stop iterating
  1494. if it.fail != nil {
  1495. return false
  1496. }
  1497. // If the iterator completed, deliver directly whatever's available
  1498. if it.done {
  1499. select {
  1500. case log := <-it.logs:
  1501. it.Event = new(WithdrawalDelayerWithdraw)
  1502. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1503. it.fail = err
  1504. return false
  1505. }
  1506. it.Event.Raw = log
  1507. return true
  1508. default:
  1509. return false
  1510. }
  1511. }
  1512. // Iterator still in progress, wait for either a data or an error event
  1513. select {
  1514. case log := <-it.logs:
  1515. it.Event = new(WithdrawalDelayerWithdraw)
  1516. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1517. it.fail = err
  1518. return false
  1519. }
  1520. it.Event.Raw = log
  1521. return true
  1522. case err := <-it.sub.Err():
  1523. it.done = true
  1524. it.fail = err
  1525. return it.Next()
  1526. }
  1527. }
  1528. // Error returns any retrieval or parsing error occurred during filtering.
  1529. func (it *WithdrawalDelayerWithdrawIterator) Error() error {
  1530. return it.fail
  1531. }
  1532. // Close terminates the iteration process, releasing any pending underlying
  1533. // resources.
  1534. func (it *WithdrawalDelayerWithdrawIterator) Close() error {
  1535. it.sub.Unsubscribe()
  1536. return nil
  1537. }
  1538. // WithdrawalDelayerWithdraw represents a Withdraw event raised by the WithdrawalDelayer contract.
  1539. type WithdrawalDelayerWithdraw struct {
  1540. Token common.Address
  1541. Owner common.Address
  1542. Amount *big.Int
  1543. Raw types.Log // Blockchain specific contextual infos
  1544. }
  1545. // FilterWithdraw is a free log retrieval operation binding the contract event 0x72608e45b52a95a12c2ac7f15ff53f92fc9572c9d84b6e6b5d7f0f7826cf3271.
  1546. //
  1547. // Solidity: event Withdraw(address indexed token, address indexed owner, uint192 amount)
  1548. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) FilterWithdraw(opts *bind.FilterOpts, token []common.Address, owner []common.Address) (*WithdrawalDelayerWithdrawIterator, error) {
  1549. var tokenRule []interface{}
  1550. for _, tokenItem := range token {
  1551. tokenRule = append(tokenRule, tokenItem)
  1552. }
  1553. var ownerRule []interface{}
  1554. for _, ownerItem := range owner {
  1555. ownerRule = append(ownerRule, ownerItem)
  1556. }
  1557. logs, sub, err := _WithdrawalDelayer.contract.FilterLogs(opts, "Withdraw", tokenRule, ownerRule)
  1558. if err != nil {
  1559. return nil, err
  1560. }
  1561. return &WithdrawalDelayerWithdrawIterator{contract: _WithdrawalDelayer.contract, event: "Withdraw", logs: logs, sub: sub}, nil
  1562. }
  1563. // WatchWithdraw is a free log subscription operation binding the contract event 0x72608e45b52a95a12c2ac7f15ff53f92fc9572c9d84b6e6b5d7f0f7826cf3271.
  1564. //
  1565. // Solidity: event Withdraw(address indexed token, address indexed owner, uint192 amount)
  1566. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *WithdrawalDelayerWithdraw, token []common.Address, owner []common.Address) (event.Subscription, error) {
  1567. var tokenRule []interface{}
  1568. for _, tokenItem := range token {
  1569. tokenRule = append(tokenRule, tokenItem)
  1570. }
  1571. var ownerRule []interface{}
  1572. for _, ownerItem := range owner {
  1573. ownerRule = append(ownerRule, ownerItem)
  1574. }
  1575. logs, sub, err := _WithdrawalDelayer.contract.WatchLogs(opts, "Withdraw", tokenRule, ownerRule)
  1576. if err != nil {
  1577. return nil, err
  1578. }
  1579. return event.NewSubscription(func(quit <-chan struct{}) error {
  1580. defer sub.Unsubscribe()
  1581. for {
  1582. select {
  1583. case log := <-logs:
  1584. // New log arrived, parse the event and forward to the user
  1585. event := new(WithdrawalDelayerWithdraw)
  1586. if err := _WithdrawalDelayer.contract.UnpackLog(event, "Withdraw", log); err != nil {
  1587. return err
  1588. }
  1589. event.Raw = log
  1590. select {
  1591. case sink <- event:
  1592. case err := <-sub.Err():
  1593. return err
  1594. case <-quit:
  1595. return nil
  1596. }
  1597. case err := <-sub.Err():
  1598. return err
  1599. case <-quit:
  1600. return nil
  1601. }
  1602. }
  1603. }), nil
  1604. }
  1605. // ParseWithdraw is a log parse operation binding the contract event 0x72608e45b52a95a12c2ac7f15ff53f92fc9572c9d84b6e6b5d7f0f7826cf3271.
  1606. //
  1607. // Solidity: event Withdraw(address indexed token, address indexed owner, uint192 amount)
  1608. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) ParseWithdraw(log types.Log) (*WithdrawalDelayerWithdraw, error) {
  1609. event := new(WithdrawalDelayerWithdraw)
  1610. if err := _WithdrawalDelayer.contract.UnpackLog(event, "Withdraw", log); err != nil {
  1611. return nil, err
  1612. }
  1613. return event, nil
  1614. }