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.

1810 lines
94 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\"}],\"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\"}],\"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\":[{\"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\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":\"addresspayable\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"}],\"name\":\"withdrawal\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]"
  26. // WithdrawalDelayerBin is the compiled bytecode used for deploying new contracts.
  27. var WithdrawalDelayerBin = "0x60806040526037805460ff60a01b1916905534801561001d57600080fd5b506001600055611776806100326000396000f3fe60806040526004361061011f5760003560e01c8063668cdd67116100a0578063c5b1c7d011610064578063c5b1c7d0146103d7578063cf3a25d9146103ec578063cfc0b64114610427578063d82b217c14610467578063de35f2821461049a5761011f565b8063668cdd6714610334578063a238f9df14610349578063acfd6ea81461037a578063ae7efbbd146103ad578063b4b8e39d146103c25761011f565b806320a194b8116100e757806320a194b814610251578063305887f91461027a5780633d4dff7b1461028f578063493b0170146102e4578063580fc6111461031f5761011f565b806303160940146101245780630a4db01b1461015e5780630e670af5146101935780630fd266d7146101c657806316b487ff146101f7575b600080fd5b34801561013057600080fd5b506101396104d5565b604080516fffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561016a57600080fd5b506101916004803603602081101561018157600080fd5b50356001600160a01b03166104e4565b005b34801561019f57600080fd5b50610191600480360360208110156101b657600080fd5b50356001600160401b0316610590565b3480156101d257600080fd5b506101db6106c0565b604080516001600160a01b039092168252519081900360200190f35b34801561020357600080fd5b50610191600480360360a081101561021a57600080fd5b506001600160401b03813516906001600160a01b0360208201358116916040810135821691606082013581169160800135166106cf565b34801561025d57600080fd5b506102666107db565b604080519115158252519081900360200190f35b34801561028657600080fd5b506101db6107eb565b34801561029b57600080fd5b506102b9600480360360208110156102b257600080fd5b50356107fa565b604080516001600160c01b0390931683526001600160401b0390911660208301528051918290030190f35b3480156102f057600080fd5b506102b96004803603604081101561030757600080fd5b506001600160a01b0381358116916020013516610827565b34801561032b57600080fd5b506101db6108b8565b34801561034057600080fd5b506101396108c7565b34801561035557600080fd5b5061035e6108dd565b604080516001600160401b039092168252519081900360200190f35b34801561038657600080fd5b506101916004803603602081101561039d57600080fd5b50356001600160a01b03166108e4565b3480156103b957600080fd5b506101db61099d565b3480156103ce57600080fd5b5061035e6109ac565b3480156103e357600080fd5b506101916109b4565b3480156103f857600080fd5b506101916004803603604081101561040f57600080fd5b506001600160a01b0381358116916020013516610adc565b6101916004803603606081101561043d57600080fd5b5080356001600160a01b0390811691602081013590911690604001356001600160c01b0316610d72565b34801561047357600080fd5b506101916004803603602081101561048a57600080fd5b50356001600160a01b0316611191565b3480156104a657600080fd5b50610191600480360360408110156104bd57600080fd5b506001600160a01b038135811691602001351661124a565b6034546001600160401b031690565b6036546001600160a01b03163314610536576040805162461bcd60e51b815260206004820152601060248201526f4f6e6c7920574847206164647265737360801b604482015290519081900360640190fd5b603680546001600160a01b0319166001600160a01b03838116919091179182905560408051929091168252517f284ca073b8bdde2195ae98779277678773a99d7739e5f0477dc19a03fc689011916020908290030190a150565b6037546001600160a01b03163314806105b357506038546001600160a01b031633145b610604576040805162461bcd60e51b815260206004820152601c60248201527f4f6e6c79206865726d657a206b6565706572206f7220726f6c6c757000000000604482015290519081900360640190fd5b621275006001600160401b0382161115610665576040805162461bcd60e51b815260206004820152601c60248201527f45786365656473204d41585f5749544844524157414c5f44454c415900000000604482015290519081900360640190fd5b6034805467ffffffffffffffff19166001600160401b03838116919091179182905560408051929091168252517f6b3670ab51e04a9da086741e5fd1eb36ffaf1d661a15330c528e1f3e0c8722d7916020908290030190a150565b6038546001600160a01b031681565b600154610100900460ff16806106e857506106e86114c2565b806106f6575060015460ff16155b6107315760405162461bcd60e51b815260040180806020018281038252602e815260200180611713602e913960400191505060405180910390fd5b600154610100900460ff1615801561075b576001805460ff1961ff00199091166101001716811790555b6034805467ffffffffffffffff19166001600160401b038816179055603880546001600160a01b03199081166001600160a01b03888116919091179092556037805482168784161790556035805482168684161790556036805490911691841691909117905580156107d3576001805461ff00191690555b505050505050565b603754600160a01b900460ff1690565b6037546001600160a01b031690565b6039602052600090815260409020546001600160c01b03811690600160c01b90046001600160401b031682565b6000806108326116fb565b505060408051606094851b6001600160601b03199081166020808401919091529490951b90941660348501528051808503602801815260488501808352815191850191909120600090815260399094529281902060888501909152546001600160c01b03811692839052600160c01b90046001600160401b031660689093018390525091565b6035546001600160a01b031690565b603454600160401b90046001600160401b031690565b6212750081565b6035546001600160a01b03163314610943576040805162461bcd60e51b815260206004820152601a60248201527f4f6e6c79204865726d657a20476f7665726e616e63652044414f000000000000604482015290519081900360640190fd5b603580546001600160a01b0319166001600160a01b03838116919091179182905560408051929091168252517f03683be8debd93f8f5ff23dd03419bfcb9b8287a1868b0f130d858f03c3a08a1916020908290030190a150565b6036546001600160a01b031690565b6301dfe20081565b6037546001600160a01b03163314610a13576040805162461bcd60e51b815260206004820152601860248201527f4f6e6c79206865726d657a4b6565706572416464726573730000000000000000604482015290519081900360640190fd5b603754600160a01b900460ff1615610a72576040805162461bcd60e51b815260206004820152601e60248201527f456d657267656e6379206d6f646520616c726561647920656e61626c65640000604482015290519081900360640190fd5b6037805460ff60a01b1916600160a01b179055603480546001600160401b034216600160401b026fffffffffffffffff0000000000000000199091161790556040517f2064d51aa5a8bd67928c7675e267e05c67ad5adf7c9098d0a602d01f36fda9c590600090a1565b60026000541415610b34576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600055603754600160a01b900460ff16610b8d576040805162461bcd60e51b81526020600482015260136024820152724f6e6c7920456d657267656e6379204d6f646560681b604482015290519081900360640190fd5b6036546001600160a01b0316331480610bb057506035546001600160a01b031633145b610c01576040805162461bcd60e51b815260206004820152601960248201527f4f6e6c7920476f7665726e616e636544414f206f722057484700000000000000604482015290519081900360640190fd5b6036546001600160a01b0316331415610c88576034546001600160401b03600160401b90910481166301dfe200018116429091161015610c88576040805162461bcd60e51b815260206004820152601a60248201527f4e4f204d41585f454d455247454e43595f4d4f44455f54494d45000000000000604482015290519081900360640190fd5b60006001600160a01b038216610ca9575047610ca483826114c8565b610d2d565b604080516370a0823160e01b8152306004820152905183916001600160a01b038316916370a0823191602480820192602092909190829003018186803b158015610cf257600080fd5b505afa158015610d06573d6000803e3d6000fd5b505050506040513d6020811015610d1c57600080fd5b50519150610d2b838584611569565b505b6040516001600160a01b03808416919085169033907f065a030f4e05509e10831215a77cf703ff0d78a252b9fa008749d832eb1f61d990600090a45050600160005550565b6038546001600160a01b03163314610dd1576040805162461bcd60e51b815260206004820152601860248201527f4f6e6c79206865726d657a526f6c6c7570416464726573730000000000000000604482015290519081900360640190fd5b3415610e95576001600160a01b03821615610e33576040805162461bcd60e51b815260206004820152601d60248201527f4554482073686f756c6420626520746865203078302061646472657373000000604482015290519081900360640190fd5b34816001600160c01b031614610e90576040805162461bcd60e51b815260206004820152601e60248201527f446966666572656e7420616d6f756e7420616e64206d73672e76616c75650000604482015290519081900360640190fd5b611049565b60385460408051636eb1769f60e11b81526001600160a01b03928316600482015230602482015290516001600160c01b0384169285169163dd62ed3e916044808301926020929190829003018186803b158015610ef157600080fd5b505afa158015610f05573d6000803e3d6000fd5b505050506040513d6020811015610f1b57600080fd5b50511015610f70576040805162461bcd60e51b815260206004820152601d60248201527f446f65736e2774206861766520656e6f75676820616c6c6f77616e6365000000604482015290519081900360640190fd5b603854604080516323b872dd60e01b81526001600160a01b0392831660048201523060248201526001600160c01b03841660448201529051918416916323b872dd916064808201926020929091908290030181600087803b158015610fd457600080fd5b505af1158015610fe8573d6000803e3d6000fd5b505050506040513d6020811015610ffe57600080fd5b5051611049576040805162461bcd60e51b8152602060048201526015602482015274151bdad95b88151c985b9cd9995c8811985a5b1959605a1b604482015290519081900360640190fd5b60408051606085811b6001600160601b03199081166020808501919091529186901b166034830152825180830360280181526048909201835281519181019190912060008181526039909252919020546001600160c01b0390811683810191821610156110f0576040805162461bcd60e51b815260206004820152601060248201526f4465706f736974206f766572666c6f7760801b604482015290519081900360640190fd5b60008281526039602090815260409182902080546001600160401b03428116600160c01b9081026001600160c01b038089166001600160c01b03199095169490941784161793849055855192891683529092049091169181019190915281516001600160a01b0380881693908916927f41219b99485f78192a5b9b1be28c7d53c3a2bdbe7900ae40c79fae8d9d6108fd929081900390910190a35050505050565b6037546001600160a01b031633146111f0576040805162461bcd60e51b815260206004820152601a60248201527f4f6e6c79204865726d657a204b65657065722041646472657373000000000000604482015290519081900360640190fd5b603780546001600160a01b0319166001600160a01b03838116919091179182905560408051929091168252517fc1e9be84fce652abec6a6944f7ec5bbb40de18caa44c285b05a0de7e3ad9d016916020908290030190a150565b600260005414156112a2576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600055603754600160a01b900460ff16156112f7576040805162461bcd60e51b815260206004820152600e60248201526d456d657267656e6379206d6f646560901b604482015290519081900360640190fd5b60408051606084811b6001600160601b03199081166020808501919091529185901b166034830152825180830360280181526048909201835281519181019190912060008181526039909252919020546001600160c01b031680611399576040805162461bcd60e51b81526020600482015260146024820152734e6f2066756e647320746f20776974686472617760601b604482015290519081900360640190fd5b6034546000838152603960205260409020546001600160401b03918216600160c01b909104821601811642909116101561141a576040805162461bcd60e51b815260206004820152601a60248201527f5769746864726177616c206e6f7420616c6c6f77656420796574000000000000604482015290519081900360640190fd5b6000828152603960205260408120556001600160a01b03831661144f5761144a84826001600160c01b03166114c8565b611463565b6114638385836001600160c01b0316611569565b836001600160a01b0316836001600160a01b03167f72608e45b52a95a12c2ac7f15ff53f92fc9572c9d84b6e6b5d7f0f7826cf32718360405180826001600160c01b0316815260200191505060405180910390a3505060016000555050565b303b1590565b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114611513576040519150601f19603f3d011682016040523d82523d6000602084013e611518565b606091505b5050905080611564576040805162461bcd60e51b8152602060048201526013602482015272115512081d1c985b9cd9995c8819985a5b1959606a1b604482015290519081900360640190fd5b505050565b604080518082018252601981527f7472616e7366657228616464726573732c75696e74323536290000000000000060209182015281516001600160a01b0385811660248301526044808301869052845180840390910181526064909201845291810180516001600160e01b031663a9059cbb60e01b1781529251815160009460609489169392918291908083835b602083106116165780518252601f1990920191602091820191016115f7565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611678576040519150601f19603f3d011682016040523d82523d6000602084013e61167d565b606091505b50915091508180156116ab5750805115806116ab57508080602001905160208110156116a857600080fd5b50515b6116f4576040805162461bcd60e51b8152602060048201526015602482015274151bdad95b88151c985b9cd9995c8811985a5b1959605a1b604482015290519081900360640190fd5b5050505050565b60408051808201909152600080825260208201529056fe436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a2646970667358221220c1c762163fd298f0328559fb5d7027caf2d51af3b3691a9b8808a2b55947492d64736f6c634300060c0033"
  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 0xcf3a25d9.
  483. //
  484. // Solidity: function escapeHatchWithdrawal(address _to, address _token) returns()
  485. func (_WithdrawalDelayer *WithdrawalDelayerTransactor) EscapeHatchWithdrawal(opts *bind.TransactOpts, _to common.Address, _token common.Address) (*types.Transaction, error) {
  486. return _WithdrawalDelayer.contract.Transact(opts, "escapeHatchWithdrawal", _to, _token)
  487. }
  488. // EscapeHatchWithdrawal is a paid mutator transaction binding the contract method 0xcf3a25d9.
  489. //
  490. // Solidity: function escapeHatchWithdrawal(address _to, address _token) returns()
  491. func (_WithdrawalDelayer *WithdrawalDelayerSession) EscapeHatchWithdrawal(_to common.Address, _token common.Address) (*types.Transaction, error) {
  492. return _WithdrawalDelayer.Contract.EscapeHatchWithdrawal(&_WithdrawalDelayer.TransactOpts, _to, _token)
  493. }
  494. // EscapeHatchWithdrawal is a paid mutator transaction binding the contract method 0xcf3a25d9.
  495. //
  496. // Solidity: function escapeHatchWithdrawal(address _to, address _token) returns()
  497. func (_WithdrawalDelayer *WithdrawalDelayerTransactorSession) EscapeHatchWithdrawal(_to common.Address, _token common.Address) (*types.Transaction, error) {
  498. return _WithdrawalDelayer.Contract.EscapeHatchWithdrawal(&_WithdrawalDelayer.TransactOpts, _to, _token)
  499. }
  500. // Initialize is a paid mutator transaction binding the contract method 0x16b487ff.
  501. //
  502. // Solidity: function initialize(uint64 _initialWithdrawalDelay, address _initialHermezRollup, address _initialHermezKeeperAddress, address _initialHermezGovernanceDAOAddress, address _initialWhiteHackGroupAddress) returns()
  503. func (_WithdrawalDelayer *WithdrawalDelayerTransactor) Initialize(opts *bind.TransactOpts, _initialWithdrawalDelay uint64, _initialHermezRollup common.Address, _initialHermezKeeperAddress common.Address, _initialHermezGovernanceDAOAddress common.Address, _initialWhiteHackGroupAddress common.Address) (*types.Transaction, error) {
  504. return _WithdrawalDelayer.contract.Transact(opts, "initialize", _initialWithdrawalDelay, _initialHermezRollup, _initialHermezKeeperAddress, _initialHermezGovernanceDAOAddress, _initialWhiteHackGroupAddress)
  505. }
  506. // Initialize is a paid mutator transaction binding the contract method 0x16b487ff.
  507. //
  508. // Solidity: function initialize(uint64 _initialWithdrawalDelay, address _initialHermezRollup, address _initialHermezKeeperAddress, address _initialHermezGovernanceDAOAddress, address _initialWhiteHackGroupAddress) returns()
  509. func (_WithdrawalDelayer *WithdrawalDelayerSession) Initialize(_initialWithdrawalDelay uint64, _initialHermezRollup common.Address, _initialHermezKeeperAddress common.Address, _initialHermezGovernanceDAOAddress common.Address, _initialWhiteHackGroupAddress common.Address) (*types.Transaction, error) {
  510. return _WithdrawalDelayer.Contract.Initialize(&_WithdrawalDelayer.TransactOpts, _initialWithdrawalDelay, _initialHermezRollup, _initialHermezKeeperAddress, _initialHermezGovernanceDAOAddress, _initialWhiteHackGroupAddress)
  511. }
  512. // Initialize is a paid mutator transaction binding the contract method 0x16b487ff.
  513. //
  514. // Solidity: function initialize(uint64 _initialWithdrawalDelay, address _initialHermezRollup, address _initialHermezKeeperAddress, address _initialHermezGovernanceDAOAddress, address _initialWhiteHackGroupAddress) returns()
  515. func (_WithdrawalDelayer *WithdrawalDelayerTransactorSession) Initialize(_initialWithdrawalDelay uint64, _initialHermezRollup common.Address, _initialHermezKeeperAddress common.Address, _initialHermezGovernanceDAOAddress common.Address, _initialWhiteHackGroupAddress common.Address) (*types.Transaction, error) {
  516. return _WithdrawalDelayer.Contract.Initialize(&_WithdrawalDelayer.TransactOpts, _initialWithdrawalDelay, _initialHermezRollup, _initialHermezKeeperAddress, _initialHermezGovernanceDAOAddress, _initialWhiteHackGroupAddress)
  517. }
  518. // SetHermezGovernanceDAOAddress is a paid mutator transaction binding the contract method 0xacfd6ea8.
  519. //
  520. // Solidity: function setHermezGovernanceDAOAddress(address newAddress) returns()
  521. func (_WithdrawalDelayer *WithdrawalDelayerTransactor) SetHermezGovernanceDAOAddress(opts *bind.TransactOpts, newAddress common.Address) (*types.Transaction, error) {
  522. return _WithdrawalDelayer.contract.Transact(opts, "setHermezGovernanceDAOAddress", newAddress)
  523. }
  524. // SetHermezGovernanceDAOAddress is a paid mutator transaction binding the contract method 0xacfd6ea8.
  525. //
  526. // Solidity: function setHermezGovernanceDAOAddress(address newAddress) returns()
  527. func (_WithdrawalDelayer *WithdrawalDelayerSession) SetHermezGovernanceDAOAddress(newAddress common.Address) (*types.Transaction, error) {
  528. return _WithdrawalDelayer.Contract.SetHermezGovernanceDAOAddress(&_WithdrawalDelayer.TransactOpts, newAddress)
  529. }
  530. // SetHermezGovernanceDAOAddress is a paid mutator transaction binding the contract method 0xacfd6ea8.
  531. //
  532. // Solidity: function setHermezGovernanceDAOAddress(address newAddress) returns()
  533. func (_WithdrawalDelayer *WithdrawalDelayerTransactorSession) SetHermezGovernanceDAOAddress(newAddress common.Address) (*types.Transaction, error) {
  534. return _WithdrawalDelayer.Contract.SetHermezGovernanceDAOAddress(&_WithdrawalDelayer.TransactOpts, newAddress)
  535. }
  536. // SetHermezKeeperAddress is a paid mutator transaction binding the contract method 0xd82b217c.
  537. //
  538. // Solidity: function setHermezKeeperAddress(address newAddress) returns()
  539. func (_WithdrawalDelayer *WithdrawalDelayerTransactor) SetHermezKeeperAddress(opts *bind.TransactOpts, newAddress common.Address) (*types.Transaction, error) {
  540. return _WithdrawalDelayer.contract.Transact(opts, "setHermezKeeperAddress", newAddress)
  541. }
  542. // SetHermezKeeperAddress is a paid mutator transaction binding the contract method 0xd82b217c.
  543. //
  544. // Solidity: function setHermezKeeperAddress(address newAddress) returns()
  545. func (_WithdrawalDelayer *WithdrawalDelayerSession) SetHermezKeeperAddress(newAddress common.Address) (*types.Transaction, error) {
  546. return _WithdrawalDelayer.Contract.SetHermezKeeperAddress(&_WithdrawalDelayer.TransactOpts, newAddress)
  547. }
  548. // SetHermezKeeperAddress is a paid mutator transaction binding the contract method 0xd82b217c.
  549. //
  550. // Solidity: function setHermezKeeperAddress(address newAddress) returns()
  551. func (_WithdrawalDelayer *WithdrawalDelayerTransactorSession) SetHermezKeeperAddress(newAddress common.Address) (*types.Transaction, error) {
  552. return _WithdrawalDelayer.Contract.SetHermezKeeperAddress(&_WithdrawalDelayer.TransactOpts, newAddress)
  553. }
  554. // SetWhiteHackGroupAddress is a paid mutator transaction binding the contract method 0x0a4db01b.
  555. //
  556. // Solidity: function setWhiteHackGroupAddress(address newAddress) returns()
  557. func (_WithdrawalDelayer *WithdrawalDelayerTransactor) SetWhiteHackGroupAddress(opts *bind.TransactOpts, newAddress common.Address) (*types.Transaction, error) {
  558. return _WithdrawalDelayer.contract.Transact(opts, "setWhiteHackGroupAddress", newAddress)
  559. }
  560. // SetWhiteHackGroupAddress is a paid mutator transaction binding the contract method 0x0a4db01b.
  561. //
  562. // Solidity: function setWhiteHackGroupAddress(address newAddress) returns()
  563. func (_WithdrawalDelayer *WithdrawalDelayerSession) SetWhiteHackGroupAddress(newAddress common.Address) (*types.Transaction, error) {
  564. return _WithdrawalDelayer.Contract.SetWhiteHackGroupAddress(&_WithdrawalDelayer.TransactOpts, newAddress)
  565. }
  566. // SetWhiteHackGroupAddress is a paid mutator transaction binding the contract method 0x0a4db01b.
  567. //
  568. // Solidity: function setWhiteHackGroupAddress(address newAddress) returns()
  569. func (_WithdrawalDelayer *WithdrawalDelayerTransactorSession) SetWhiteHackGroupAddress(newAddress common.Address) (*types.Transaction, error) {
  570. return _WithdrawalDelayer.Contract.SetWhiteHackGroupAddress(&_WithdrawalDelayer.TransactOpts, newAddress)
  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. // 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.
  591. type WithdrawalDelayerDepositIterator struct {
  592. Event *WithdrawalDelayerDeposit // Event containing the contract specifics and raw log
  593. contract *bind.BoundContract // Generic contract to use for unpacking event data
  594. event string // Event name to use for unpacking event data
  595. logs chan types.Log // Log channel receiving the found contract events
  596. sub ethereum.Subscription // Subscription for errors, completion and termination
  597. done bool // Whether the subscription completed delivering logs
  598. fail error // Occurred error to stop iteration
  599. }
  600. // Next advances the iterator to the subsequent event, returning whether there
  601. // are any more events found. In case of a retrieval or parsing error, false is
  602. // returned and Error() can be queried for the exact failure.
  603. func (it *WithdrawalDelayerDepositIterator) Next() bool {
  604. // If the iterator failed, stop iterating
  605. if it.fail != nil {
  606. return false
  607. }
  608. // If the iterator completed, deliver directly whatever's available
  609. if it.done {
  610. select {
  611. case log := <-it.logs:
  612. it.Event = new(WithdrawalDelayerDeposit)
  613. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  614. it.fail = err
  615. return false
  616. }
  617. it.Event.Raw = log
  618. return true
  619. default:
  620. return false
  621. }
  622. }
  623. // Iterator still in progress, wait for either a data or an error event
  624. select {
  625. case log := <-it.logs:
  626. it.Event = new(WithdrawalDelayerDeposit)
  627. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  628. it.fail = err
  629. return false
  630. }
  631. it.Event.Raw = log
  632. return true
  633. case err := <-it.sub.Err():
  634. it.done = true
  635. it.fail = err
  636. return it.Next()
  637. }
  638. }
  639. // Error returns any retrieval or parsing error occurred during filtering.
  640. func (it *WithdrawalDelayerDepositIterator) Error() error {
  641. return it.fail
  642. }
  643. // Close terminates the iteration process, releasing any pending underlying
  644. // resources.
  645. func (it *WithdrawalDelayerDepositIterator) Close() error {
  646. it.sub.Unsubscribe()
  647. return nil
  648. }
  649. // WithdrawalDelayerDeposit represents a Deposit event raised by the WithdrawalDelayer contract.
  650. type WithdrawalDelayerDeposit struct {
  651. Owner common.Address
  652. Token common.Address
  653. Amount *big.Int
  654. DepositTimestamp uint64
  655. Raw types.Log // Blockchain specific contextual infos
  656. }
  657. // FilterDeposit is a free log retrieval operation binding the contract event 0x41219b99485f78192a5b9b1be28c7d53c3a2bdbe7900ae40c79fae8d9d6108fd.
  658. //
  659. // Solidity: event Deposit(address indexed owner, address indexed token, uint192 amount, uint64 depositTimestamp)
  660. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) FilterDeposit(opts *bind.FilterOpts, owner []common.Address, token []common.Address) (*WithdrawalDelayerDepositIterator, error) {
  661. var ownerRule []interface{}
  662. for _, ownerItem := range owner {
  663. ownerRule = append(ownerRule, ownerItem)
  664. }
  665. var tokenRule []interface{}
  666. for _, tokenItem := range token {
  667. tokenRule = append(tokenRule, tokenItem)
  668. }
  669. logs, sub, err := _WithdrawalDelayer.contract.FilterLogs(opts, "Deposit", ownerRule, tokenRule)
  670. if err != nil {
  671. return nil, err
  672. }
  673. return &WithdrawalDelayerDepositIterator{contract: _WithdrawalDelayer.contract, event: "Deposit", logs: logs, sub: sub}, nil
  674. }
  675. // WatchDeposit is a free log subscription 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) WatchDeposit(opts *bind.WatchOpts, sink chan<- *WithdrawalDelayerDeposit, owner []common.Address, token []common.Address) (event.Subscription, 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.WatchLogs(opts, "Deposit", ownerRule, tokenRule)
  688. if err != nil {
  689. return nil, err
  690. }
  691. return event.NewSubscription(func(quit <-chan struct{}) error {
  692. defer sub.Unsubscribe()
  693. for {
  694. select {
  695. case log := <-logs:
  696. // New log arrived, parse the event and forward to the user
  697. event := new(WithdrawalDelayerDeposit)
  698. if err := _WithdrawalDelayer.contract.UnpackLog(event, "Deposit", log); err != nil {
  699. return err
  700. }
  701. event.Raw = log
  702. select {
  703. case sink <- event:
  704. case err := <-sub.Err():
  705. return err
  706. case <-quit:
  707. return nil
  708. }
  709. case err := <-sub.Err():
  710. return err
  711. case <-quit:
  712. return nil
  713. }
  714. }
  715. }), nil
  716. }
  717. // ParseDeposit is a log parse operation binding the contract event 0x41219b99485f78192a5b9b1be28c7d53c3a2bdbe7900ae40c79fae8d9d6108fd.
  718. //
  719. // Solidity: event Deposit(address indexed owner, address indexed token, uint192 amount, uint64 depositTimestamp)
  720. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) ParseDeposit(log types.Log) (*WithdrawalDelayerDeposit, error) {
  721. event := new(WithdrawalDelayerDeposit)
  722. if err := _WithdrawalDelayer.contract.UnpackLog(event, "Deposit", log); err != nil {
  723. return nil, err
  724. }
  725. return event, nil
  726. }
  727. // 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.
  728. type WithdrawalDelayerEmergencyModeEnabledIterator struct {
  729. Event *WithdrawalDelayerEmergencyModeEnabled // Event containing the contract specifics and raw log
  730. contract *bind.BoundContract // Generic contract to use for unpacking event data
  731. event string // Event name to use for unpacking event data
  732. logs chan types.Log // Log channel receiving the found contract events
  733. sub ethereum.Subscription // Subscription for errors, completion and termination
  734. done bool // Whether the subscription completed delivering logs
  735. fail error // Occurred error to stop iteration
  736. }
  737. // Next advances the iterator to the subsequent event, returning whether there
  738. // are any more events found. In case of a retrieval or parsing error, false is
  739. // returned and Error() can be queried for the exact failure.
  740. func (it *WithdrawalDelayerEmergencyModeEnabledIterator) Next() bool {
  741. // If the iterator failed, stop iterating
  742. if it.fail != nil {
  743. return false
  744. }
  745. // If the iterator completed, deliver directly whatever's available
  746. if it.done {
  747. select {
  748. case log := <-it.logs:
  749. it.Event = new(WithdrawalDelayerEmergencyModeEnabled)
  750. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  751. it.fail = err
  752. return false
  753. }
  754. it.Event.Raw = log
  755. return true
  756. default:
  757. return false
  758. }
  759. }
  760. // Iterator still in progress, wait for either a data or an error event
  761. select {
  762. case log := <-it.logs:
  763. it.Event = new(WithdrawalDelayerEmergencyModeEnabled)
  764. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  765. it.fail = err
  766. return false
  767. }
  768. it.Event.Raw = log
  769. return true
  770. case err := <-it.sub.Err():
  771. it.done = true
  772. it.fail = err
  773. return it.Next()
  774. }
  775. }
  776. // Error returns any retrieval or parsing error occurred during filtering.
  777. func (it *WithdrawalDelayerEmergencyModeEnabledIterator) Error() error {
  778. return it.fail
  779. }
  780. // Close terminates the iteration process, releasing any pending underlying
  781. // resources.
  782. func (it *WithdrawalDelayerEmergencyModeEnabledIterator) Close() error {
  783. it.sub.Unsubscribe()
  784. return nil
  785. }
  786. // WithdrawalDelayerEmergencyModeEnabled represents a EmergencyModeEnabled event raised by the WithdrawalDelayer contract.
  787. type WithdrawalDelayerEmergencyModeEnabled struct {
  788. Raw types.Log // Blockchain specific contextual infos
  789. }
  790. // FilterEmergencyModeEnabled is a free log retrieval operation binding the contract event 0x2064d51aa5a8bd67928c7675e267e05c67ad5adf7c9098d0a602d01f36fda9c5.
  791. //
  792. // Solidity: event EmergencyModeEnabled()
  793. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) FilterEmergencyModeEnabled(opts *bind.FilterOpts) (*WithdrawalDelayerEmergencyModeEnabledIterator, error) {
  794. logs, sub, err := _WithdrawalDelayer.contract.FilterLogs(opts, "EmergencyModeEnabled")
  795. if err != nil {
  796. return nil, err
  797. }
  798. return &WithdrawalDelayerEmergencyModeEnabledIterator{contract: _WithdrawalDelayer.contract, event: "EmergencyModeEnabled", logs: logs, sub: sub}, nil
  799. }
  800. // WatchEmergencyModeEnabled is a free log subscription operation binding the contract event 0x2064d51aa5a8bd67928c7675e267e05c67ad5adf7c9098d0a602d01f36fda9c5.
  801. //
  802. // Solidity: event EmergencyModeEnabled()
  803. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) WatchEmergencyModeEnabled(opts *bind.WatchOpts, sink chan<- *WithdrawalDelayerEmergencyModeEnabled) (event.Subscription, error) {
  804. logs, sub, err := _WithdrawalDelayer.contract.WatchLogs(opts, "EmergencyModeEnabled")
  805. if err != nil {
  806. return nil, err
  807. }
  808. return event.NewSubscription(func(quit <-chan struct{}) error {
  809. defer sub.Unsubscribe()
  810. for {
  811. select {
  812. case log := <-logs:
  813. // New log arrived, parse the event and forward to the user
  814. event := new(WithdrawalDelayerEmergencyModeEnabled)
  815. if err := _WithdrawalDelayer.contract.UnpackLog(event, "EmergencyModeEnabled", log); err != nil {
  816. return err
  817. }
  818. event.Raw = log
  819. select {
  820. case sink <- event:
  821. case err := <-sub.Err():
  822. return err
  823. case <-quit:
  824. return nil
  825. }
  826. case err := <-sub.Err():
  827. return err
  828. case <-quit:
  829. return nil
  830. }
  831. }
  832. }), nil
  833. }
  834. // ParseEmergencyModeEnabled is a log parse operation binding the contract event 0x2064d51aa5a8bd67928c7675e267e05c67ad5adf7c9098d0a602d01f36fda9c5.
  835. //
  836. // Solidity: event EmergencyModeEnabled()
  837. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) ParseEmergencyModeEnabled(log types.Log) (*WithdrawalDelayerEmergencyModeEnabled, error) {
  838. event := new(WithdrawalDelayerEmergencyModeEnabled)
  839. if err := _WithdrawalDelayer.contract.UnpackLog(event, "EmergencyModeEnabled", log); err != nil {
  840. return nil, err
  841. }
  842. return event, nil
  843. }
  844. // 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.
  845. type WithdrawalDelayerEscapeHatchWithdrawalIterator struct {
  846. Event *WithdrawalDelayerEscapeHatchWithdrawal // Event containing the contract specifics and raw log
  847. contract *bind.BoundContract // Generic contract to use for unpacking event data
  848. event string // Event name to use for unpacking event data
  849. logs chan types.Log // Log channel receiving the found contract events
  850. sub ethereum.Subscription // Subscription for errors, completion and termination
  851. done bool // Whether the subscription completed delivering logs
  852. fail error // Occurred error to stop iteration
  853. }
  854. // Next advances the iterator to the subsequent event, returning whether there
  855. // are any more events found. In case of a retrieval or parsing error, false is
  856. // returned and Error() can be queried for the exact failure.
  857. func (it *WithdrawalDelayerEscapeHatchWithdrawalIterator) Next() bool {
  858. // If the iterator failed, stop iterating
  859. if it.fail != nil {
  860. return false
  861. }
  862. // If the iterator completed, deliver directly whatever's available
  863. if it.done {
  864. select {
  865. case log := <-it.logs:
  866. it.Event = new(WithdrawalDelayerEscapeHatchWithdrawal)
  867. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  868. it.fail = err
  869. return false
  870. }
  871. it.Event.Raw = log
  872. return true
  873. default:
  874. return false
  875. }
  876. }
  877. // Iterator still in progress, wait for either a data or an error event
  878. select {
  879. case log := <-it.logs:
  880. it.Event = new(WithdrawalDelayerEscapeHatchWithdrawal)
  881. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  882. it.fail = err
  883. return false
  884. }
  885. it.Event.Raw = log
  886. return true
  887. case err := <-it.sub.Err():
  888. it.done = true
  889. it.fail = err
  890. return it.Next()
  891. }
  892. }
  893. // Error returns any retrieval or parsing error occurred during filtering.
  894. func (it *WithdrawalDelayerEscapeHatchWithdrawalIterator) Error() error {
  895. return it.fail
  896. }
  897. // Close terminates the iteration process, releasing any pending underlying
  898. // resources.
  899. func (it *WithdrawalDelayerEscapeHatchWithdrawalIterator) Close() error {
  900. it.sub.Unsubscribe()
  901. return nil
  902. }
  903. // WithdrawalDelayerEscapeHatchWithdrawal represents a EscapeHatchWithdrawal event raised by the WithdrawalDelayer contract.
  904. type WithdrawalDelayerEscapeHatchWithdrawal struct {
  905. Who common.Address
  906. To common.Address
  907. Token common.Address
  908. Raw types.Log // Blockchain specific contextual infos
  909. }
  910. // FilterEscapeHatchWithdrawal is a free log retrieval operation binding the contract event 0x065a030f4e05509e10831215a77cf703ff0d78a252b9fa008749d832eb1f61d9.
  911. //
  912. // Solidity: event EscapeHatchWithdrawal(address indexed who, address indexed to, address indexed token)
  913. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) FilterEscapeHatchWithdrawal(opts *bind.FilterOpts, who []common.Address, to []common.Address, token []common.Address) (*WithdrawalDelayerEscapeHatchWithdrawalIterator, error) {
  914. var whoRule []interface{}
  915. for _, whoItem := range who {
  916. whoRule = append(whoRule, whoItem)
  917. }
  918. var toRule []interface{}
  919. for _, toItem := range to {
  920. toRule = append(toRule, toItem)
  921. }
  922. var tokenRule []interface{}
  923. for _, tokenItem := range token {
  924. tokenRule = append(tokenRule, tokenItem)
  925. }
  926. logs, sub, err := _WithdrawalDelayer.contract.FilterLogs(opts, "EscapeHatchWithdrawal", whoRule, toRule, tokenRule)
  927. if err != nil {
  928. return nil, err
  929. }
  930. return &WithdrawalDelayerEscapeHatchWithdrawalIterator{contract: _WithdrawalDelayer.contract, event: "EscapeHatchWithdrawal", logs: logs, sub: sub}, nil
  931. }
  932. // WatchEscapeHatchWithdrawal is a free log subscription operation binding the contract event 0x065a030f4e05509e10831215a77cf703ff0d78a252b9fa008749d832eb1f61d9.
  933. //
  934. // Solidity: event EscapeHatchWithdrawal(address indexed who, address indexed to, address indexed token)
  935. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) WatchEscapeHatchWithdrawal(opts *bind.WatchOpts, sink chan<- *WithdrawalDelayerEscapeHatchWithdrawal, who []common.Address, to []common.Address, token []common.Address) (event.Subscription, error) {
  936. var whoRule []interface{}
  937. for _, whoItem := range who {
  938. whoRule = append(whoRule, whoItem)
  939. }
  940. var toRule []interface{}
  941. for _, toItem := range to {
  942. toRule = append(toRule, toItem)
  943. }
  944. var tokenRule []interface{}
  945. for _, tokenItem := range token {
  946. tokenRule = append(tokenRule, tokenItem)
  947. }
  948. logs, sub, err := _WithdrawalDelayer.contract.WatchLogs(opts, "EscapeHatchWithdrawal", whoRule, toRule, tokenRule)
  949. if err != nil {
  950. return nil, err
  951. }
  952. return event.NewSubscription(func(quit <-chan struct{}) error {
  953. defer sub.Unsubscribe()
  954. for {
  955. select {
  956. case log := <-logs:
  957. // New log arrived, parse the event and forward to the user
  958. event := new(WithdrawalDelayerEscapeHatchWithdrawal)
  959. if err := _WithdrawalDelayer.contract.UnpackLog(event, "EscapeHatchWithdrawal", log); err != nil {
  960. return err
  961. }
  962. event.Raw = log
  963. select {
  964. case sink <- event:
  965. case err := <-sub.Err():
  966. return err
  967. case <-quit:
  968. return nil
  969. }
  970. case err := <-sub.Err():
  971. return err
  972. case <-quit:
  973. return nil
  974. }
  975. }
  976. }), nil
  977. }
  978. // ParseEscapeHatchWithdrawal is a log parse operation binding the contract event 0x065a030f4e05509e10831215a77cf703ff0d78a252b9fa008749d832eb1f61d9.
  979. //
  980. // Solidity: event EscapeHatchWithdrawal(address indexed who, address indexed to, address indexed token)
  981. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) ParseEscapeHatchWithdrawal(log types.Log) (*WithdrawalDelayerEscapeHatchWithdrawal, error) {
  982. event := new(WithdrawalDelayerEscapeHatchWithdrawal)
  983. if err := _WithdrawalDelayer.contract.UnpackLog(event, "EscapeHatchWithdrawal", log); err != nil {
  984. return nil, err
  985. }
  986. return event, nil
  987. }
  988. // 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.
  989. type WithdrawalDelayerNewHermezGovernanceDAOAddressIterator struct {
  990. Event *WithdrawalDelayerNewHermezGovernanceDAOAddress // Event containing the contract specifics and raw log
  991. contract *bind.BoundContract // Generic contract to use for unpacking event data
  992. event string // Event name to use for unpacking event data
  993. logs chan types.Log // Log channel receiving the found contract events
  994. sub ethereum.Subscription // Subscription for errors, completion and termination
  995. done bool // Whether the subscription completed delivering logs
  996. fail error // Occurred error to stop iteration
  997. }
  998. // Next advances the iterator to the subsequent event, returning whether there
  999. // are any more events found. In case of a retrieval or parsing error, false is
  1000. // returned and Error() can be queried for the exact failure.
  1001. func (it *WithdrawalDelayerNewHermezGovernanceDAOAddressIterator) Next() bool {
  1002. // If the iterator failed, stop iterating
  1003. if it.fail != nil {
  1004. return false
  1005. }
  1006. // If the iterator completed, deliver directly whatever's available
  1007. if it.done {
  1008. select {
  1009. case log := <-it.logs:
  1010. it.Event = new(WithdrawalDelayerNewHermezGovernanceDAOAddress)
  1011. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1012. it.fail = err
  1013. return false
  1014. }
  1015. it.Event.Raw = log
  1016. return true
  1017. default:
  1018. return false
  1019. }
  1020. }
  1021. // Iterator still in progress, wait for either a data or an error event
  1022. select {
  1023. case log := <-it.logs:
  1024. it.Event = new(WithdrawalDelayerNewHermezGovernanceDAOAddress)
  1025. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1026. it.fail = err
  1027. return false
  1028. }
  1029. it.Event.Raw = log
  1030. return true
  1031. case err := <-it.sub.Err():
  1032. it.done = true
  1033. it.fail = err
  1034. return it.Next()
  1035. }
  1036. }
  1037. // Error returns any retrieval or parsing error occurred during filtering.
  1038. func (it *WithdrawalDelayerNewHermezGovernanceDAOAddressIterator) Error() error {
  1039. return it.fail
  1040. }
  1041. // Close terminates the iteration process, releasing any pending underlying
  1042. // resources.
  1043. func (it *WithdrawalDelayerNewHermezGovernanceDAOAddressIterator) Close() error {
  1044. it.sub.Unsubscribe()
  1045. return nil
  1046. }
  1047. // WithdrawalDelayerNewHermezGovernanceDAOAddress represents a NewHermezGovernanceDAOAddress event raised by the WithdrawalDelayer contract.
  1048. type WithdrawalDelayerNewHermezGovernanceDAOAddress struct {
  1049. NewHermezGovernanceDAOAddress common.Address
  1050. Raw types.Log // Blockchain specific contextual infos
  1051. }
  1052. // FilterNewHermezGovernanceDAOAddress is a free log retrieval operation binding the contract event 0x03683be8debd93f8f5ff23dd03419bfcb9b8287a1868b0f130d858f03c3a08a1.
  1053. //
  1054. // Solidity: event NewHermezGovernanceDAOAddress(address newHermezGovernanceDAOAddress)
  1055. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) FilterNewHermezGovernanceDAOAddress(opts *bind.FilterOpts) (*WithdrawalDelayerNewHermezGovernanceDAOAddressIterator, error) {
  1056. logs, sub, err := _WithdrawalDelayer.contract.FilterLogs(opts, "NewHermezGovernanceDAOAddress")
  1057. if err != nil {
  1058. return nil, err
  1059. }
  1060. return &WithdrawalDelayerNewHermezGovernanceDAOAddressIterator{contract: _WithdrawalDelayer.contract, event: "NewHermezGovernanceDAOAddress", logs: logs, sub: sub}, nil
  1061. }
  1062. // WatchNewHermezGovernanceDAOAddress is a free log subscription operation binding the contract event 0x03683be8debd93f8f5ff23dd03419bfcb9b8287a1868b0f130d858f03c3a08a1.
  1063. //
  1064. // Solidity: event NewHermezGovernanceDAOAddress(address newHermezGovernanceDAOAddress)
  1065. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) WatchNewHermezGovernanceDAOAddress(opts *bind.WatchOpts, sink chan<- *WithdrawalDelayerNewHermezGovernanceDAOAddress) (event.Subscription, error) {
  1066. logs, sub, err := _WithdrawalDelayer.contract.WatchLogs(opts, "NewHermezGovernanceDAOAddress")
  1067. if err != nil {
  1068. return nil, err
  1069. }
  1070. return event.NewSubscription(func(quit <-chan struct{}) error {
  1071. defer sub.Unsubscribe()
  1072. for {
  1073. select {
  1074. case log := <-logs:
  1075. // New log arrived, parse the event and forward to the user
  1076. event := new(WithdrawalDelayerNewHermezGovernanceDAOAddress)
  1077. if err := _WithdrawalDelayer.contract.UnpackLog(event, "NewHermezGovernanceDAOAddress", log); err != nil {
  1078. return err
  1079. }
  1080. event.Raw = log
  1081. select {
  1082. case sink <- event:
  1083. case err := <-sub.Err():
  1084. return err
  1085. case <-quit:
  1086. return nil
  1087. }
  1088. case err := <-sub.Err():
  1089. return err
  1090. case <-quit:
  1091. return nil
  1092. }
  1093. }
  1094. }), nil
  1095. }
  1096. // ParseNewHermezGovernanceDAOAddress is a log parse operation binding the contract event 0x03683be8debd93f8f5ff23dd03419bfcb9b8287a1868b0f130d858f03c3a08a1.
  1097. //
  1098. // Solidity: event NewHermezGovernanceDAOAddress(address newHermezGovernanceDAOAddress)
  1099. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) ParseNewHermezGovernanceDAOAddress(log types.Log) (*WithdrawalDelayerNewHermezGovernanceDAOAddress, error) {
  1100. event := new(WithdrawalDelayerNewHermezGovernanceDAOAddress)
  1101. if err := _WithdrawalDelayer.contract.UnpackLog(event, "NewHermezGovernanceDAOAddress", log); err != nil {
  1102. return nil, err
  1103. }
  1104. return event, nil
  1105. }
  1106. // 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.
  1107. type WithdrawalDelayerNewHermezKeeperAddressIterator struct {
  1108. Event *WithdrawalDelayerNewHermezKeeperAddress // Event containing the contract specifics and raw log
  1109. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1110. event string // Event name to use for unpacking event data
  1111. logs chan types.Log // Log channel receiving the found contract events
  1112. sub ethereum.Subscription // Subscription for errors, completion and termination
  1113. done bool // Whether the subscription completed delivering logs
  1114. fail error // Occurred error to stop iteration
  1115. }
  1116. // Next advances the iterator to the subsequent event, returning whether there
  1117. // are any more events found. In case of a retrieval or parsing error, false is
  1118. // returned and Error() can be queried for the exact failure.
  1119. func (it *WithdrawalDelayerNewHermezKeeperAddressIterator) Next() bool {
  1120. // If the iterator failed, stop iterating
  1121. if it.fail != nil {
  1122. return false
  1123. }
  1124. // If the iterator completed, deliver directly whatever's available
  1125. if it.done {
  1126. select {
  1127. case log := <-it.logs:
  1128. it.Event = new(WithdrawalDelayerNewHermezKeeperAddress)
  1129. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1130. it.fail = err
  1131. return false
  1132. }
  1133. it.Event.Raw = log
  1134. return true
  1135. default:
  1136. return false
  1137. }
  1138. }
  1139. // Iterator still in progress, wait for either a data or an error event
  1140. select {
  1141. case log := <-it.logs:
  1142. it.Event = new(WithdrawalDelayerNewHermezKeeperAddress)
  1143. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1144. it.fail = err
  1145. return false
  1146. }
  1147. it.Event.Raw = log
  1148. return true
  1149. case err := <-it.sub.Err():
  1150. it.done = true
  1151. it.fail = err
  1152. return it.Next()
  1153. }
  1154. }
  1155. // Error returns any retrieval or parsing error occurred during filtering.
  1156. func (it *WithdrawalDelayerNewHermezKeeperAddressIterator) Error() error {
  1157. return it.fail
  1158. }
  1159. // Close terminates the iteration process, releasing any pending underlying
  1160. // resources.
  1161. func (it *WithdrawalDelayerNewHermezKeeperAddressIterator) Close() error {
  1162. it.sub.Unsubscribe()
  1163. return nil
  1164. }
  1165. // WithdrawalDelayerNewHermezKeeperAddress represents a NewHermezKeeperAddress event raised by the WithdrawalDelayer contract.
  1166. type WithdrawalDelayerNewHermezKeeperAddress struct {
  1167. NewHermezKeeperAddress common.Address
  1168. Raw types.Log // Blockchain specific contextual infos
  1169. }
  1170. // FilterNewHermezKeeperAddress is a free log retrieval operation binding the contract event 0xc1e9be84fce652abec6a6944f7ec5bbb40de18caa44c285b05a0de7e3ad9d016.
  1171. //
  1172. // Solidity: event NewHermezKeeperAddress(address newHermezKeeperAddress)
  1173. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) FilterNewHermezKeeperAddress(opts *bind.FilterOpts) (*WithdrawalDelayerNewHermezKeeperAddressIterator, error) {
  1174. logs, sub, err := _WithdrawalDelayer.contract.FilterLogs(opts, "NewHermezKeeperAddress")
  1175. if err != nil {
  1176. return nil, err
  1177. }
  1178. return &WithdrawalDelayerNewHermezKeeperAddressIterator{contract: _WithdrawalDelayer.contract, event: "NewHermezKeeperAddress", logs: logs, sub: sub}, nil
  1179. }
  1180. // WatchNewHermezKeeperAddress is a free log subscription operation binding the contract event 0xc1e9be84fce652abec6a6944f7ec5bbb40de18caa44c285b05a0de7e3ad9d016.
  1181. //
  1182. // Solidity: event NewHermezKeeperAddress(address newHermezKeeperAddress)
  1183. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) WatchNewHermezKeeperAddress(opts *bind.WatchOpts, sink chan<- *WithdrawalDelayerNewHermezKeeperAddress) (event.Subscription, error) {
  1184. logs, sub, err := _WithdrawalDelayer.contract.WatchLogs(opts, "NewHermezKeeperAddress")
  1185. if err != nil {
  1186. return nil, err
  1187. }
  1188. return event.NewSubscription(func(quit <-chan struct{}) error {
  1189. defer sub.Unsubscribe()
  1190. for {
  1191. select {
  1192. case log := <-logs:
  1193. // New log arrived, parse the event and forward to the user
  1194. event := new(WithdrawalDelayerNewHermezKeeperAddress)
  1195. if err := _WithdrawalDelayer.contract.UnpackLog(event, "NewHermezKeeperAddress", log); err != nil {
  1196. return err
  1197. }
  1198. event.Raw = log
  1199. select {
  1200. case sink <- event:
  1201. case err := <-sub.Err():
  1202. return err
  1203. case <-quit:
  1204. return nil
  1205. }
  1206. case err := <-sub.Err():
  1207. return err
  1208. case <-quit:
  1209. return nil
  1210. }
  1211. }
  1212. }), nil
  1213. }
  1214. // ParseNewHermezKeeperAddress is a log parse operation binding the contract event 0xc1e9be84fce652abec6a6944f7ec5bbb40de18caa44c285b05a0de7e3ad9d016.
  1215. //
  1216. // Solidity: event NewHermezKeeperAddress(address newHermezKeeperAddress)
  1217. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) ParseNewHermezKeeperAddress(log types.Log) (*WithdrawalDelayerNewHermezKeeperAddress, error) {
  1218. event := new(WithdrawalDelayerNewHermezKeeperAddress)
  1219. if err := _WithdrawalDelayer.contract.UnpackLog(event, "NewHermezKeeperAddress", log); err != nil {
  1220. return nil, err
  1221. }
  1222. return event, nil
  1223. }
  1224. // 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.
  1225. type WithdrawalDelayerNewWhiteHackGroupAddressIterator struct {
  1226. Event *WithdrawalDelayerNewWhiteHackGroupAddress // Event containing the contract specifics and raw log
  1227. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1228. event string // Event name to use for unpacking event data
  1229. logs chan types.Log // Log channel receiving the found contract events
  1230. sub ethereum.Subscription // Subscription for errors, completion and termination
  1231. done bool // Whether the subscription completed delivering logs
  1232. fail error // Occurred error to stop iteration
  1233. }
  1234. // Next advances the iterator to the subsequent event, returning whether there
  1235. // are any more events found. In case of a retrieval or parsing error, false is
  1236. // returned and Error() can be queried for the exact failure.
  1237. func (it *WithdrawalDelayerNewWhiteHackGroupAddressIterator) Next() bool {
  1238. // If the iterator failed, stop iterating
  1239. if it.fail != nil {
  1240. return false
  1241. }
  1242. // If the iterator completed, deliver directly whatever's available
  1243. if it.done {
  1244. select {
  1245. case log := <-it.logs:
  1246. it.Event = new(WithdrawalDelayerNewWhiteHackGroupAddress)
  1247. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1248. it.fail = err
  1249. return false
  1250. }
  1251. it.Event.Raw = log
  1252. return true
  1253. default:
  1254. return false
  1255. }
  1256. }
  1257. // Iterator still in progress, wait for either a data or an error event
  1258. select {
  1259. case log := <-it.logs:
  1260. it.Event = new(WithdrawalDelayerNewWhiteHackGroupAddress)
  1261. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1262. it.fail = err
  1263. return false
  1264. }
  1265. it.Event.Raw = log
  1266. return true
  1267. case err := <-it.sub.Err():
  1268. it.done = true
  1269. it.fail = err
  1270. return it.Next()
  1271. }
  1272. }
  1273. // Error returns any retrieval or parsing error occurred during filtering.
  1274. func (it *WithdrawalDelayerNewWhiteHackGroupAddressIterator) Error() error {
  1275. return it.fail
  1276. }
  1277. // Close terminates the iteration process, releasing any pending underlying
  1278. // resources.
  1279. func (it *WithdrawalDelayerNewWhiteHackGroupAddressIterator) Close() error {
  1280. it.sub.Unsubscribe()
  1281. return nil
  1282. }
  1283. // WithdrawalDelayerNewWhiteHackGroupAddress represents a NewWhiteHackGroupAddress event raised by the WithdrawalDelayer contract.
  1284. type WithdrawalDelayerNewWhiteHackGroupAddress struct {
  1285. NewWhiteHackGroupAddress common.Address
  1286. Raw types.Log // Blockchain specific contextual infos
  1287. }
  1288. // FilterNewWhiteHackGroupAddress is a free log retrieval operation binding the contract event 0x284ca073b8bdde2195ae98779277678773a99d7739e5f0477dc19a03fc689011.
  1289. //
  1290. // Solidity: event NewWhiteHackGroupAddress(address newWhiteHackGroupAddress)
  1291. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) FilterNewWhiteHackGroupAddress(opts *bind.FilterOpts) (*WithdrawalDelayerNewWhiteHackGroupAddressIterator, error) {
  1292. logs, sub, err := _WithdrawalDelayer.contract.FilterLogs(opts, "NewWhiteHackGroupAddress")
  1293. if err != nil {
  1294. return nil, err
  1295. }
  1296. return &WithdrawalDelayerNewWhiteHackGroupAddressIterator{contract: _WithdrawalDelayer.contract, event: "NewWhiteHackGroupAddress", logs: logs, sub: sub}, nil
  1297. }
  1298. // WatchNewWhiteHackGroupAddress is a free log subscription operation binding the contract event 0x284ca073b8bdde2195ae98779277678773a99d7739e5f0477dc19a03fc689011.
  1299. //
  1300. // Solidity: event NewWhiteHackGroupAddress(address newWhiteHackGroupAddress)
  1301. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) WatchNewWhiteHackGroupAddress(opts *bind.WatchOpts, sink chan<- *WithdrawalDelayerNewWhiteHackGroupAddress) (event.Subscription, error) {
  1302. logs, sub, err := _WithdrawalDelayer.contract.WatchLogs(opts, "NewWhiteHackGroupAddress")
  1303. if err != nil {
  1304. return nil, err
  1305. }
  1306. return event.NewSubscription(func(quit <-chan struct{}) error {
  1307. defer sub.Unsubscribe()
  1308. for {
  1309. select {
  1310. case log := <-logs:
  1311. // New log arrived, parse the event and forward to the user
  1312. event := new(WithdrawalDelayerNewWhiteHackGroupAddress)
  1313. if err := _WithdrawalDelayer.contract.UnpackLog(event, "NewWhiteHackGroupAddress", log); err != nil {
  1314. return err
  1315. }
  1316. event.Raw = log
  1317. select {
  1318. case sink <- event:
  1319. case err := <-sub.Err():
  1320. return err
  1321. case <-quit:
  1322. return nil
  1323. }
  1324. case err := <-sub.Err():
  1325. return err
  1326. case <-quit:
  1327. return nil
  1328. }
  1329. }
  1330. }), nil
  1331. }
  1332. // ParseNewWhiteHackGroupAddress is a log parse operation binding the contract event 0x284ca073b8bdde2195ae98779277678773a99d7739e5f0477dc19a03fc689011.
  1333. //
  1334. // Solidity: event NewWhiteHackGroupAddress(address newWhiteHackGroupAddress)
  1335. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) ParseNewWhiteHackGroupAddress(log types.Log) (*WithdrawalDelayerNewWhiteHackGroupAddress, error) {
  1336. event := new(WithdrawalDelayerNewWhiteHackGroupAddress)
  1337. if err := _WithdrawalDelayer.contract.UnpackLog(event, "NewWhiteHackGroupAddress", log); err != nil {
  1338. return nil, err
  1339. }
  1340. return event, nil
  1341. }
  1342. // 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.
  1343. type WithdrawalDelayerNewWithdrawalDelayIterator struct {
  1344. Event *WithdrawalDelayerNewWithdrawalDelay // Event containing the contract specifics and raw log
  1345. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1346. event string // Event name to use for unpacking event data
  1347. logs chan types.Log // Log channel receiving the found contract events
  1348. sub ethereum.Subscription // Subscription for errors, completion and termination
  1349. done bool // Whether the subscription completed delivering logs
  1350. fail error // Occurred error to stop iteration
  1351. }
  1352. // Next advances the iterator to the subsequent event, returning whether there
  1353. // are any more events found. In case of a retrieval or parsing error, false is
  1354. // returned and Error() can be queried for the exact failure.
  1355. func (it *WithdrawalDelayerNewWithdrawalDelayIterator) Next() bool {
  1356. // If the iterator failed, stop iterating
  1357. if it.fail != nil {
  1358. return false
  1359. }
  1360. // If the iterator completed, deliver directly whatever's available
  1361. if it.done {
  1362. select {
  1363. case log := <-it.logs:
  1364. it.Event = new(WithdrawalDelayerNewWithdrawalDelay)
  1365. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1366. it.fail = err
  1367. return false
  1368. }
  1369. it.Event.Raw = log
  1370. return true
  1371. default:
  1372. return false
  1373. }
  1374. }
  1375. // Iterator still in progress, wait for either a data or an error event
  1376. select {
  1377. case log := <-it.logs:
  1378. it.Event = new(WithdrawalDelayerNewWithdrawalDelay)
  1379. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1380. it.fail = err
  1381. return false
  1382. }
  1383. it.Event.Raw = log
  1384. return true
  1385. case err := <-it.sub.Err():
  1386. it.done = true
  1387. it.fail = err
  1388. return it.Next()
  1389. }
  1390. }
  1391. // Error returns any retrieval or parsing error occurred during filtering.
  1392. func (it *WithdrawalDelayerNewWithdrawalDelayIterator) Error() error {
  1393. return it.fail
  1394. }
  1395. // Close terminates the iteration process, releasing any pending underlying
  1396. // resources.
  1397. func (it *WithdrawalDelayerNewWithdrawalDelayIterator) Close() error {
  1398. it.sub.Unsubscribe()
  1399. return nil
  1400. }
  1401. // WithdrawalDelayerNewWithdrawalDelay represents a NewWithdrawalDelay event raised by the WithdrawalDelayer contract.
  1402. type WithdrawalDelayerNewWithdrawalDelay struct {
  1403. WithdrawalDelay uint64
  1404. Raw types.Log // Blockchain specific contextual infos
  1405. }
  1406. // FilterNewWithdrawalDelay is a free log retrieval operation binding the contract event 0x6b3670ab51e04a9da086741e5fd1eb36ffaf1d661a15330c528e1f3e0c8722d7.
  1407. //
  1408. // Solidity: event NewWithdrawalDelay(uint64 withdrawalDelay)
  1409. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) FilterNewWithdrawalDelay(opts *bind.FilterOpts) (*WithdrawalDelayerNewWithdrawalDelayIterator, error) {
  1410. logs, sub, err := _WithdrawalDelayer.contract.FilterLogs(opts, "NewWithdrawalDelay")
  1411. if err != nil {
  1412. return nil, err
  1413. }
  1414. return &WithdrawalDelayerNewWithdrawalDelayIterator{contract: _WithdrawalDelayer.contract, event: "NewWithdrawalDelay", logs: logs, sub: sub}, nil
  1415. }
  1416. // WatchNewWithdrawalDelay is a free log subscription operation binding the contract event 0x6b3670ab51e04a9da086741e5fd1eb36ffaf1d661a15330c528e1f3e0c8722d7.
  1417. //
  1418. // Solidity: event NewWithdrawalDelay(uint64 withdrawalDelay)
  1419. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) WatchNewWithdrawalDelay(opts *bind.WatchOpts, sink chan<- *WithdrawalDelayerNewWithdrawalDelay) (event.Subscription, error) {
  1420. logs, sub, err := _WithdrawalDelayer.contract.WatchLogs(opts, "NewWithdrawalDelay")
  1421. if err != nil {
  1422. return nil, err
  1423. }
  1424. return event.NewSubscription(func(quit <-chan struct{}) error {
  1425. defer sub.Unsubscribe()
  1426. for {
  1427. select {
  1428. case log := <-logs:
  1429. // New log arrived, parse the event and forward to the user
  1430. event := new(WithdrawalDelayerNewWithdrawalDelay)
  1431. if err := _WithdrawalDelayer.contract.UnpackLog(event, "NewWithdrawalDelay", log); err != nil {
  1432. return err
  1433. }
  1434. event.Raw = log
  1435. select {
  1436. case sink <- event:
  1437. case err := <-sub.Err():
  1438. return err
  1439. case <-quit:
  1440. return nil
  1441. }
  1442. case err := <-sub.Err():
  1443. return err
  1444. case <-quit:
  1445. return nil
  1446. }
  1447. }
  1448. }), nil
  1449. }
  1450. // ParseNewWithdrawalDelay is a log parse operation binding the contract event 0x6b3670ab51e04a9da086741e5fd1eb36ffaf1d661a15330c528e1f3e0c8722d7.
  1451. //
  1452. // Solidity: event NewWithdrawalDelay(uint64 withdrawalDelay)
  1453. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) ParseNewWithdrawalDelay(log types.Log) (*WithdrawalDelayerNewWithdrawalDelay, error) {
  1454. event := new(WithdrawalDelayerNewWithdrawalDelay)
  1455. if err := _WithdrawalDelayer.contract.UnpackLog(event, "NewWithdrawalDelay", log); err != nil {
  1456. return nil, err
  1457. }
  1458. return event, nil
  1459. }
  1460. // 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.
  1461. type WithdrawalDelayerWithdrawIterator struct {
  1462. Event *WithdrawalDelayerWithdraw // Event containing the contract specifics and raw log
  1463. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1464. event string // Event name to use for unpacking event data
  1465. logs chan types.Log // Log channel receiving the found contract events
  1466. sub ethereum.Subscription // Subscription for errors, completion and termination
  1467. done bool // Whether the subscription completed delivering logs
  1468. fail error // Occurred error to stop iteration
  1469. }
  1470. // Next advances the iterator to the subsequent event, returning whether there
  1471. // are any more events found. In case of a retrieval or parsing error, false is
  1472. // returned and Error() can be queried for the exact failure.
  1473. func (it *WithdrawalDelayerWithdrawIterator) Next() bool {
  1474. // If the iterator failed, stop iterating
  1475. if it.fail != nil {
  1476. return false
  1477. }
  1478. // If the iterator completed, deliver directly whatever's available
  1479. if it.done {
  1480. select {
  1481. case log := <-it.logs:
  1482. it.Event = new(WithdrawalDelayerWithdraw)
  1483. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1484. it.fail = err
  1485. return false
  1486. }
  1487. it.Event.Raw = log
  1488. return true
  1489. default:
  1490. return false
  1491. }
  1492. }
  1493. // Iterator still in progress, wait for either a data or an error event
  1494. select {
  1495. case log := <-it.logs:
  1496. it.Event = new(WithdrawalDelayerWithdraw)
  1497. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1498. it.fail = err
  1499. return false
  1500. }
  1501. it.Event.Raw = log
  1502. return true
  1503. case err := <-it.sub.Err():
  1504. it.done = true
  1505. it.fail = err
  1506. return it.Next()
  1507. }
  1508. }
  1509. // Error returns any retrieval or parsing error occurred during filtering.
  1510. func (it *WithdrawalDelayerWithdrawIterator) Error() error {
  1511. return it.fail
  1512. }
  1513. // Close terminates the iteration process, releasing any pending underlying
  1514. // resources.
  1515. func (it *WithdrawalDelayerWithdrawIterator) Close() error {
  1516. it.sub.Unsubscribe()
  1517. return nil
  1518. }
  1519. // WithdrawalDelayerWithdraw represents a Withdraw event raised by the WithdrawalDelayer contract.
  1520. type WithdrawalDelayerWithdraw struct {
  1521. Token common.Address
  1522. Owner common.Address
  1523. Amount *big.Int
  1524. Raw types.Log // Blockchain specific contextual infos
  1525. }
  1526. // FilterWithdraw is a free log retrieval operation binding the contract event 0x72608e45b52a95a12c2ac7f15ff53f92fc9572c9d84b6e6b5d7f0f7826cf3271.
  1527. //
  1528. // Solidity: event Withdraw(address indexed token, address indexed owner, uint192 amount)
  1529. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) FilterWithdraw(opts *bind.FilterOpts, token []common.Address, owner []common.Address) (*WithdrawalDelayerWithdrawIterator, error) {
  1530. var tokenRule []interface{}
  1531. for _, tokenItem := range token {
  1532. tokenRule = append(tokenRule, tokenItem)
  1533. }
  1534. var ownerRule []interface{}
  1535. for _, ownerItem := range owner {
  1536. ownerRule = append(ownerRule, ownerItem)
  1537. }
  1538. logs, sub, err := _WithdrawalDelayer.contract.FilterLogs(opts, "Withdraw", tokenRule, ownerRule)
  1539. if err != nil {
  1540. return nil, err
  1541. }
  1542. return &WithdrawalDelayerWithdrawIterator{contract: _WithdrawalDelayer.contract, event: "Withdraw", logs: logs, sub: sub}, nil
  1543. }
  1544. // WatchWithdraw is a free log subscription operation binding the contract event 0x72608e45b52a95a12c2ac7f15ff53f92fc9572c9d84b6e6b5d7f0f7826cf3271.
  1545. //
  1546. // Solidity: event Withdraw(address indexed token, address indexed owner, uint192 amount)
  1547. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *WithdrawalDelayerWithdraw, token []common.Address, owner []common.Address) (event.Subscription, error) {
  1548. var tokenRule []interface{}
  1549. for _, tokenItem := range token {
  1550. tokenRule = append(tokenRule, tokenItem)
  1551. }
  1552. var ownerRule []interface{}
  1553. for _, ownerItem := range owner {
  1554. ownerRule = append(ownerRule, ownerItem)
  1555. }
  1556. logs, sub, err := _WithdrawalDelayer.contract.WatchLogs(opts, "Withdraw", tokenRule, ownerRule)
  1557. if err != nil {
  1558. return nil, err
  1559. }
  1560. return event.NewSubscription(func(quit <-chan struct{}) error {
  1561. defer sub.Unsubscribe()
  1562. for {
  1563. select {
  1564. case log := <-logs:
  1565. // New log arrived, parse the event and forward to the user
  1566. event := new(WithdrawalDelayerWithdraw)
  1567. if err := _WithdrawalDelayer.contract.UnpackLog(event, "Withdraw", log); err != nil {
  1568. return err
  1569. }
  1570. event.Raw = log
  1571. select {
  1572. case sink <- event:
  1573. case err := <-sub.Err():
  1574. return err
  1575. case <-quit:
  1576. return nil
  1577. }
  1578. case err := <-sub.Err():
  1579. return err
  1580. case <-quit:
  1581. return nil
  1582. }
  1583. }
  1584. }), nil
  1585. }
  1586. // ParseWithdraw is a log parse operation binding the contract event 0x72608e45b52a95a12c2ac7f15ff53f92fc9572c9d84b6e6b5d7f0f7826cf3271.
  1587. //
  1588. // Solidity: event Withdraw(address indexed token, address indexed owner, uint192 amount)
  1589. func (_WithdrawalDelayer *WithdrawalDelayerFilterer) ParseWithdraw(log types.Log) (*WithdrawalDelayerWithdraw, error) {
  1590. event := new(WithdrawalDelayerWithdraw)
  1591. if err := _WithdrawalDelayer.contract.UnpackLog(event, "Withdraw", log); err != nil {
  1592. return nil, err
  1593. }
  1594. return event, nil
  1595. }