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.

2681 lines
165 KiB

  1. // Code generated - DO NOT EDIT.
  2. // This file is a generated binding and any manual changes will be lost.
  3. package Hermez
  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. "github.com/hermeznetwork/tracerr"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var (
  17. _ = big.NewInt
  18. _ = strings.NewReader
  19. _ = ethereum.NotFound
  20. _ = bind.Bind
  21. _ = common.Big1
  22. _ = types.BloomLookup
  23. _ = event.NewSubscription
  24. )
  25. // HermezABI is the input ABI used to generate the binding from.
  26. const HermezABI = "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"tokenID\",\"type\":\"uint32\"}],\"name\":\"AddToken\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"batchNum\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"l1UserTxsLen\",\"type\":\"uint16\"}],\"name\":\"ForgeBatch\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"queueIndex\",\"type\":\"uint32\"},{\"indexed\":true,\"internalType\":\"uint8\",\"name\":\"position\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"l1UserTx\",\"type\":\"bytes\"}],\"name\":\"L1UserTxEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"SafeMode\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint8\",\"name\":\"numBucket\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"blockStamp\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"withdrawals\",\"type\":\"uint256\"}],\"name\":\"UpdateBucketWithdraw\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256[4][5]\",\"name\":\"arrayBuckets\",\"type\":\"uint256[4][5]\"}],\"name\":\"UpdateBucketsParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newFeeAddToken\",\"type\":\"uint256\"}],\"name\":\"UpdateFeeAddToken\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"newForgeL1L2BatchTimeout\",\"type\":\"uint8\"}],\"name\":\"UpdateForgeL1L2BatchTimeout\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"addressArray\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint64[]\",\"name\":\"valueArray\",\"type\":\"uint64[]\"}],\"name\":\"UpdateTokenExchange\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"newWithdrawalDelay\",\"type\":\"uint64\"}],\"name\":\"UpdateWithdrawalDelay\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint48\",\"name\":\"idx\",\"type\":\"uint48\"},{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"numExitRoot\",\"type\":\"uint32\"},{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"instantWithdraw\",\"type\":\"bool\"}],\"name\":\"WithdrawEvent\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ABSOLUTE_MAX_L1L2BATCHTIMEOUT\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"babyPubKey\",\"type\":\"uint256\"},{\"internalType\":\"uint48\",\"name\":\"fromIdx\",\"type\":\"uint48\"},{\"internalType\":\"uint16\",\"name\":\"loadAmountF\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"amountF\",\"type\":\"uint16\"},{\"internalType\":\"uint32\",\"name\":\"tokenID\",\"type\":\"uint32\"},{\"internalType\":\"uint48\",\"name\":\"toIdx\",\"type\":\"uint48\"},{\"internalType\":\"bytes\",\"name\":\"permit\",\"type\":\"bytes\"}],\"name\":\"addL1Transaction\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"permit\",\"type\":\"bytes\"}],\"name\":\"addToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"buckets\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"ceilUSD\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockStamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawals\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockWithdrawalRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxWithdrawals\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"},{\"internalType\":\"uint48\",\"name\":\"\",\"type\":\"uint48\"}],\"name\":\"exitNullifierMap\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"name\":\"exitRootsMap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeAddToken\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint48\",\"name\":\"newLastIdx\",\"type\":\"uint48\"},{\"internalType\":\"uint256\",\"name\":\"newStRoot\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"newExitRoot\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"encodedL1CoordinatorTx\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"l1L2TxsData\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"feeIdxCoordinator\",\"type\":\"bytes\"},{\"internalType\":\"uint8\",\"name\":\"verifierIdx\",\"type\":\"uint8\"},{\"internalType\":\"bool\",\"name\":\"l1Batch\",\"type\":\"bool\"},{\"internalType\":\"uint256[2]\",\"name\":\"proofA\",\"type\":\"uint256[2]\"},{\"internalType\":\"uint256[2][2]\",\"name\":\"proofB\",\"type\":\"uint256[2][2]\"},{\"internalType\":\"uint256[2]\",\"name\":\"proofC\",\"type\":\"uint256[2]\"}],\"name\":\"forgeBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"forgeL1L2BatchTimeout\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hermezAuctionContract\",\"outputs\":[{\"internalType\":\"contractIHermezAuctionProtocol\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hermezGovernanceAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_verifiers\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_verifiersParams\",\"type\":\"uint256[]\"},{\"internalType\":\"address\",\"name\":\"_withdrawVerifier\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_hermezAuctionContract\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_tokenHEZ\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"_forgeL1L2BatchTimeout\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"_feeAddToken\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_poseidon2Elements\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_poseidon3Elements\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_poseidon4Elements\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_hermezGovernanceAddress\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"_withdrawalDelay\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"_withdrawDelayerContract\",\"type\":\"address\"}],\"name\":\"initializeHermez\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint192\",\"name\":\"amount\",\"type\":\"uint192\"}],\"name\":\"instantWithdrawalViewer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastForgedBatch\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastIdx\",\"outputs\":[{\"internalType\":\"uint48\",\"name\":\"\",\"type\":\"uint48\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastL1L2Batch\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"name\":\"mapL1TxQueue\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nextL1FillingQueue\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nextL1ToForgeQueue\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"registerTokensCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"rollupVerifiers\",\"outputs\":[{\"internalType\":\"contractVerifierRollupInterface\",\"name\":\"verifierInterface\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"maxTx\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nLevels\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"safeMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"name\":\"stateRootMap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"tokenExchange\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenHEZ\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"tokenList\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"tokenMap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[4][5]\",\"name\":\"arrayBuckets\",\"type\":\"uint256[4][5]\"}],\"name\":\"updateBucketsParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newFeeAddToken\",\"type\":\"uint256\"}],\"name\":\"updateFeeAddToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"newForgeL1L2BatchTimeout\",\"type\":\"uint8\"}],\"name\":\"updateForgeL1L2BatchTimeout\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"addressArray\",\"type\":\"address[]\"},{\"internalType\":\"uint64[]\",\"name\":\"valueArray\",\"type\":\"uint64[]\"}],\"name\":\"updateTokenExchange\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"newWithdrawalDelay\",\"type\":\"uint64\"}],\"name\":\"updateWithdrawalDelay\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[2]\",\"name\":\"proofA\",\"type\":\"uint256[2]\"},{\"internalType\":\"uint256[2][2]\",\"name\":\"proofB\",\"type\":\"uint256[2][2]\"},{\"internalType\":\"uint256[2]\",\"name\":\"proofC\",\"type\":\"uint256[2]\"},{\"internalType\":\"uint32\",\"name\":\"tokenID\",\"type\":\"uint32\"},{\"internalType\":\"uint192\",\"name\":\"amount\",\"type\":\"uint192\"},{\"internalType\":\"uint32\",\"name\":\"numExitRoot\",\"type\":\"uint32\"},{\"internalType\":\"uint48\",\"name\":\"idx\",\"type\":\"uint48\"},{\"internalType\":\"bool\",\"name\":\"instantWithdraw\",\"type\":\"bool\"}],\"name\":\"withdrawCircuit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawDelayerContract\",\"outputs\":[{\"internalType\":\"contractIWithdrawalDelayer\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"tokenID\",\"type\":\"uint32\"},{\"internalType\":\"uint192\",\"name\":\"amount\",\"type\":\"uint192\"},{\"internalType\":\"uint256\",\"name\":\"babyPubKey\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"numExitRoot\",\"type\":\"uint32\"},{\"internalType\":\"uint256[]\",\"name\":\"siblings\",\"type\":\"uint256[]\"},{\"internalType\":\"uint48\",\"name\":\"idx\",\"type\":\"uint48\"},{\"internalType\":\"bool\",\"name\":\"instantWithdraw\",\"type\":\"bool\"}],\"name\":\"withdrawMerkleProof\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawVerifier\",\"outputs\":[{\"internalType\":\"contractVerifierWithdrawInterface\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawalDelay\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]"
  27. // HermezBin is the compiled bytecode used for deploying new contracts.
  28. var HermezBin = "0x608060405234801561001057600080fd5b5061576d806100206000396000f3fe6080604052600436106102195760003560e01c8063864eb16411610123578063a7ab6961116100ab578063d486645c1161006f578063d486645c14610c62578063d9d4ca4414610c92578063dc3e718e14610d79578063ef4a5c4a14610e1e578063f84f92ee14610e5157610219565b8063a7ab696114610be1578063abe3219c14610bf6578063bded9bb814610c0b578063cbd7b5fb14610c20578063d0f32e6714610c4d57610219565b80639ce2ad42116100f25780639ce2ad4214610af05780639e00d7ea14610b5d5780639ead722214610b8d5780639f34e9a314610bb7578063a327583814610bcc57610219565b8063864eb164146109ae578063886df587146109c357806395a09f2a14610a705780639b51fb0d14610a9b57610219565b806338330200116101a657806368e95e531161017557806368e95e53146107165780636e7e1365146107a757806370c2f1c0146108f957806379a135e31461098457806384ef9ed41461099957610219565b806338330200146104ed5780633ee641ea1461053f57806344e0b2ce1461056f578063599897e31461058457610219565b80631a748c2d116101ed5780631a748c2d146103115780631b0a8223146104435780632bd8362614610458578063314e5eda1461046d578063375110aa1461049757610219565b80624aca6e1461021e578063013f7852146102635780630dd94b96146102945780630ee8e52b146102e3575b600080fd5b34801561022a57600080fd5b506102516004803603602081101561024157600080fd5b50356001600160a01b0316610e8f565b60408051918252519081900360200190f35b34801561026f57600080fd5b50610278610ea1565b604080516001600160a01b039092168252519081900360200190f35b3480156102a057600080fd5b506102c7600480360360208110156102b757600080fd5b50356001600160a01b0316610eb0565b604080516001600160401b039092168252519081900360200190f35b3480156102ef57600080fd5b506102f8610ecb565b6040805163ffffffff9092168252519081900360200190f35b34801561031d57600080fd5b506104416004803603604081101561033457600080fd5b810190602081018135600160201b81111561034e57600080fd5b82018360208201111561036057600080fd5b803590602001918460208302840111600160201b8311171561038157600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103d057600080fd5b8201836020820111156103e257600080fd5b803590602001918460208302840111600160201b8311171561040357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610ede945050505050565b005b34801561044f57600080fd5b506102786110a1565b34801561046457600080fd5b506102786110b0565b34801561047957600080fd5b506104416004803603602081101561049057600080fd5b50356110bf565b3480156104a357600080fd5b506104d9600480360360408110156104ba57600080fd5b5080356001600160a01b031690602001356001600160c01b0316611143565b604080519115158252519081900360200190f35b3480156104f957600080fd5b506105176004803603602081101561051057600080fd5b50356111df565b604080516001600160a01b039094168452602084019290925282820152519081900360600190f35b34801561054b57600080fd5b506102516004803603602081101561056257600080fd5b503563ffffffff16611219565b34801561057b57600080fd5b506102f861122b565b34801561059057600080fd5b5061044160048036036101a08110156105a857600080fd5b810190602081018135600160201b8111156105c257600080fd5b8201836020820111156105d457600080fd5b803590602001918460208302840111600160201b831117156105f557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561064457600080fd5b82018360208201111561065657600080fd5b803590602001918460208302840111600160201b8311171561067757600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550506001600160a01b03833581169450602084013581169360408101358216935060ff606082013516925060808101359160a082013581169160c081013582169160e08201358116916101008101358216916001600160401b03610120830135169161014001351661123e565b34801561072257600080fd5b50610441600480360361028081101561073a57600080fd5b6040805160a0810190915290820191906102808201908260056000835b828210156107985760408051608081810190925290808402860190600490839083908082843760009201919091525050508152600190910190602001610757565b50929550611436945050505050565b3480156107b357600080fd5b5061044160048036036102008110156107cb57600080fd5b65ffffffffffff8235169160208101359160408201359190810190608081016060820135600160201b81111561080057600080fd5b82018360208201111561081257600080fd5b803590602001918460018302840111600160201b8311171561083357600080fd5b919390929091602081019035600160201b81111561085057600080fd5b82018360208201111561086257600080fd5b803590602001918460018302840111600160201b8311171561088357600080fd5b919390929091602081019035600160201b8111156108a057600080fd5b8201836020820111156108b257600080fd5b803590602001918460018302840111600160201b831117156108d357600080fd5b919350915060ff813516906020810135151590604081019060808101906101000161162c565b34801561090557600080fd5b506104416004803603604081101561091c57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561094657600080fd5b82018360208201111561095857600080fd5b803590602001918460018302840111600160201b8311171561097957600080fd5b509092509050611aaa565b34801561099057600080fd5b50610278611d21565b3480156109a557600080fd5b506102c7611d30565b3480156109ba57600080fd5b50610278611d3f565b610441600480360360e08110156109d957600080fd5b81359165ffffffffffff602082013581169261ffff604084013581169360608101359091169263ffffffff6080830135169260a0830135909116919081019060e0810160c0820135600160201b811115610a3257600080fd5b820183602082011115610a4457600080fd5b803590602001918460018302840111600160201b83111715610a6557600080fd5b509092509050611d4e565b348015610a7c57600080fd5b50610a85612064565b6040805160ff9092168252519081900360200190f35b348015610aa757600080fd5b50610ac560048036036020811015610abe57600080fd5b5035612069565b6040805195865260208601949094528484019290925260608401526080830152519081900360a00190f35b348015610afc57600080fd5b5061044160048036036101a0811015610b1457600080fd5b506040810160c0820163ffffffff6101008401358116906001600160c01b0361012086013516906101408601351665ffffffffffff61016087013516610180870135151561209b565b348015610b6957600080fd5b5061025160048036036020811015610b8057600080fd5b503563ffffffff1661246e565b348015610b9957600080fd5b5061027860048036036020811015610bb057600080fd5b5035612480565b348015610bc357600080fd5b506102516124a7565b348015610bd857600080fd5b50610a856124ad565b348015610bed57600080fd5b506102c76124bd565b348015610c0257600080fd5b506104416124d3565b348015610c1757600080fd5b50610251612649565b348015610c2c57600080fd5b5061044160048036036020811015610c4357600080fd5b503560ff1661264f565b348015610c5957600080fd5b506102f861272f565b348015610c6e57600080fd5b50610c77612742565b6040805165ffffffffffff9092168252519081900360200190f35b348015610c9e57600080fd5b50610441600480360360e0811015610cb557600080fd5b63ffffffff82358116926001600160c01b0360208201351692604082013592606083013516919081019060a081016080820135600160201b811115610cf957600080fd5b820183602082011115610d0b57600080fd5b803590602001918460208302840111600160201b83111715610d2c57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295505065ffffffffffff83351693505050602001351515612757565b348015610d8557600080fd5b50610da960048036036020811015610d9c57600080fd5b503563ffffffff16612947565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610de3578181015183820152602001610dcb565b50505050905090810190601f168015610e105780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610e2a57600080fd5b5061044160048036036020811015610e4157600080fd5b50356001600160401b03166129e2565b348015610e5d57600080fd5b506104d960048036036040811015610e7457600080fd5b50803563ffffffff16906020013565ffffffffffff16612ad7565b60586020526000908152604090205481565b604f546001600160a01b031681565b6051602052600090815260409020546001600160401b031681565b605c54600160601b900463ffffffff1681565b604f546001600160a01b03163314610f275760405162461bcd60e51b815260040180806020018281038252603f81526020018061552e603f913960400191505060405180910390fd5b8051825114610f675760405162461bcd60e51b8152600401808060200182810382526041815260200180614e296041913960600191505060405180910390fd5b60005b8251811015610fe157818181518110610f7f57fe5b602002602001015160516000858481518110610f9757fe5b6020908102919091018101516001600160a01b03168252810191909152604001600020805467ffffffffffffffff19166001600160401b0392909216919091179055600101610f6a565b507f10ff643ebeca3e33002e61b76fa85e7e10091e30afa39295f91af9838b3033b38282604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611049578181015183820152602001611031565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611088578181015183820152602001611070565b5050505090500194505050505060405180910390a15050565b6050546001600160a01b031681565b605a546001600160a01b031681565b604f546001600160a01b031633146111085760405162461bcd60e51b815260040180806020018281038252603f81526020018061552e603f913960400191505060405180910390fd5b60598190556040805182815290517fd1c873cd16013f0dc5f37992c0d12794389698512895ec036a568e393b46e3c19181900360200190a150565b6000806111508484612af7565b9050806111615760019150506111d9565b600061116c82612cad565b905060006036826005811061117d57fe5b60050201905060008160020154111561119c57600193505050506111d9565b60006111b5826001015443612d1e90919063ffffffff16565b905081600301548110156111d05760009450505050506111d9565b60019450505050505b92915050565b605281815481106111ec57fe5b60009182526020909120600390910201805460018201546002909201546001600160a01b03909116925083565b60556020526000908152604090205481565b605354600160d01b900463ffffffff1681565b600054610100900460ff16806112575750611257612d67565b80611265575060005460ff16155b6112a05760405162461bcd60e51b815260040180806020018281038252602e8152602001806152a3602e913960400191505060405180910390fd5b600054610100900460ff161580156112cb576000805460ff1961ff0019909116610100171660011790555b6112d58e8e612d6d565b8b605360006101000a8154816001600160a01b0302191690836001600160a01b031602179055508a605a60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555089605d60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555088605c60106101000a81548160ff021916908360ff1602179055508760598190555060ff605360146101000a81548165ffffffffffff021916908365ffffffffffff1602179055506001605c600c6101000a81548163ffffffff021916908363ffffffff160217905550605760009080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b03160217905550611409878787612e3e565b611414848484612f20565b8015611426576000805461ff00191690555b5050505050505050505050505050565b604f546001600160a01b0316331461147f5760405162461bcd60e51b815260040180806020018281038252603f81526020018061552e603f913960400191505060405180910390fd5b60005b60058110156115ac57600082826005811061149957fe5b602002015151905060008383600581106114af57fe5b602002015160016020020151905060008484600581106114cb57fe5b602002015160400151905060008585600581106114e457fe5b60200201516060015190508083111561152e5760405162461bcd60e51b815260040180806020018281038252605d81526020018061556d605d913960600191505060405180910390fd5b6040518060a00160405280858152602001438152602001848152602001838152602001828152506036866005811061156257fe5b600502016000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040155905050505050508080600101915050611482565b507f3c39a1e91c69d4cfeacb11190befc2b1c983746e6b21ab2441a3051de88d448081604051808260056000925b8184101561161a5760208402830151608080838360005b838110156116095781810151838201526020016115f1565b5050505090500192600101926115da565b9250505091505060405180910390a150565b33321461166a5760405162461bcd60e51b815260040180806020018281038252602a81526020018061508f602a913960400191505060405180910390fd5b605a546040805163041d8fb560e51b815233600482015243602482015290516001600160a01b03909216916383b1f6a091604480820192602092909190829003018186803b1580156116bb57600080fd5b505afa1580156116cf573d6000803e3d6000fd5b505050506040513d60208110156116e557600080fd5b505115156001146117275760405162461bcd60e51b8152600401808060200182810382526022815260200180614fbf6022913960400191505060405180910390fd5b8361178357605c54600160801b810460ff166001600160401b03918216011643106117835760405162461bcd60e51b81526004018080602001828103825260268152602001806154226026913960400191505060405180910390fd5b60006117928f8f8f888a613015565b905060528660ff16815481106117a457fe5b60009182526020918290206003909102015460408051928301815283835280516343753b4d60e01b81526001600160a01b03909216926343753b4d9288928892889290916004909101908190869080828437600083820152601f01601f1916909101905084608080828437600083820152601f01601f1916909101905083604080828437600081840152601f19601f82011690508083019250505082600160200280838360005b8381101561186357818101518382015260200161184b565b5050505090500194505050505060206040518083038186803b15801561188857600080fd5b505afa15801561189c573d6000803e3d6000fd5b505050506040513d60208110156118b257600080fd5b50516118ef5760405162461bcd60e51b8152600401808060200182810382526021815260200180614ea66021913960400191505060405180910390fd5b6053601a81819054906101000a900463ffffffff168092919060010191906101000a81548163ffffffff021916908363ffffffff160217905550508e605360146101000a81548165ffffffffffff021916908365ffffffffffff1602179055508d605460006053601a9054906101000a900463ffffffff1663ffffffff1663ffffffff168152602001908152602001600020819055508c605560006053601a9054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200190815260200160002081905550600085156119ea57605c805467ffffffffffffffff1916436001600160401b03161790556119e76132ef565b90505b605a54604080516309cb4a2f60e31b815233600482015290516001600160a01b0390921691634e5a51789160248082019260009290919082900301818387803b158015611a3657600080fd5b505af1158015611a4a573d6000803e3d6000fd5b50506053546040805161ffff861681529051600160d01b90920463ffffffff1693507fe00040c8a3b0bf905636c26924e90520eafc5003324138236fddee2d3458861892506020908290030190a250505050505050505050505050505050565b605754600160201b8110611aef5760405162461bcd60e51b81526004018080602001828103825260218152602001806150b96021913960400191505060405180910390fd5b6001600160a01b038416611b345760405162461bcd60e51b815260040180806020018281038252602381526020018061506c6023913960400191505060405180910390fd5b6001600160a01b03841660009081526058602052604090205415611b9f576040805162461bcd60e51b815260206004820152601f60248201527f4865726d657a3a3a616464546f6b656e3a20414c52454144595f414444454400604482015290519081900360640190fd5b6000846001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611bda57600080fd5b505afa158015611bee573d6000803e3d6000fd5b505050506040513d6020811015611c0457600080fd5b505111611c425760405162461bcd60e51b81526004018080602001828103825260238152602001806154dd6023913960400191505060405180910390fd5b8115611c6357605d54605954611c63916001600160a01b03169085856133ac565b605d54604f54605954611c86926001600160a01b03908116923392911690613675565b60578054600181019091557fe8e5595d268aaa85b36c3557e9d96c14a4fffaee9f45bcae0c407968a71096300180546001600160a01b0319166001600160a01b038616908117909155600081815260586020908152604091829020849055815163ffffffff8516815291517fcb73d161edb7cd4fb1d92fedfd2555384fd997fd44ab507656f8c81e15747dde9281900390910190a250505050565b605d546001600160a01b031681565b605c546001600160401b031681565b6053546001600160a01b031681565b60575463ffffffff851610611d945760405162461bcd60e51b815260040180806020018281038252602e815260200180615448602e913960400191505060405180910390fd5b6000611d9f876137d2565b9050600160801b8110611de35760405162461bcd60e51b8152600401808060200182810382526031815260200180614ec76031913960400191505060405180910390fd5b801561204a5763ffffffff8516611e3757348114611e325760405162461bcd60e51b81526004018080602001828103825260378152602001806157016037913960400191505060405180910390fd5b61204a565b3415611e745760405162461bcd60e51b815260040180806020018281038252602f815260200180615157602f913960400191505060405180910390fd5b8115611ead57611ead60578663ffffffff1681548110611e9057fe5b6000918252602090912001546001600160a01b03168285856133ac565b600060578663ffffffff1681548110611ec257fe5b60009182526020918290200154604080516370a0823160e01b815230600482015290516001600160a01b03909216926370a0823192602480840193829003018186803b158015611f1157600080fd5b505afa158015611f25573d6000803e3d6000fd5b505050506040513d6020811015611f3b57600080fd5b505160578054919250611f759163ffffffff8916908110611f5857fe5b6000918252602090912001546001600160a01b0316333085613675565b600060578763ffffffff1681548110611f8a57fe5b60009182526020918290200154604080516370a0823160e01b815230600482015290516001600160a01b03909216926370a0823192602480840193829003018186803b158015611fd957600080fd5b505afa158015611fed573d6000803e3d6000fd5b505050506040513d602081101561200357600080fd5b5051905081810383146120475760405162461bcd60e51b81526004018080602001828103825260398152602001806155f46039913960400191505060405180910390fd5b50505b612059338a8a8a8a8a8a613816565b505050505050505050565b60f081565b6036816005811061207657fe5b6005020180546001820154600283015460038401546004909401549294509092909185565b801561210d576120d260578663ffffffff16815481106120b757fe5b6000918252602090912001546001600160a01b031685613a7a565b61210d5760405162461bcd60e51b81526004018080602001828103825260438152602001806152d16043913960600191505060405180910390fd5b63ffffffff8316600090815260566020908152604080832065ffffffffffff8616845290915290205460ff16156121755760405162461bcd60e51b815260040180806020018281038252602e81526020018061524b602e913960400191505060405180910390fd5b63ffffffff831660009081526055602090815260408083205481518084018290523360601b818401526001600160e01b031960e08b901b16605482015267ffffffffffffffff1989841b1660588201526001600160d01b031960d088901b1660708201528251605681830301815260769091019283905280519194937f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000019360029390918291908401908083835b602083106122415780518252601f199092019160209182019101612222565b51815160209384036101000a60001901801990921691161790526040519190930194509192505080830381855afa158015612280573d6000803e3d6000fd5b5050506040513d602081101561229557600080fd5b50518161229e57fe5b605354604080516020810182529390920680845282516343753b4d60e01b81529094506001600160a01b03909116926343753b4d928e928e928e929091600401908190869080828437600083820152601f01601f1916909101905084608080828437600083820152601f01601f1916909101905083604080828437600081840152601f19601f82011690508083019250505082600160200280838360005b8381101561235457818101518382015260200161233c565b5050505090500194505050505060206040518083038186803b15801561237957600080fd5b505afa15801561238d573d6000803e3d6000fd5b505050506040513d60208110156123a357600080fd5b505115156001146123e55760405162461bcd60e51b81526004018080602001828103825260298152602001806153a26029913960400191505060405180910390fd5b63ffffffff8516600090815260566020908152604080832065ffffffffffff881684529091529020805460ff19166001179055612423868885613c47565b8215158563ffffffff168565ffffffffffff167f69177d798b38e27bcc4e0338307e4f1490e12d1006729d0e6e9cc82a8732f41560405160405180910390a450505050505050505050565b60546020526000908152604090205481565b6057818154811061248d57fe5b6000918252602090912001546001600160a01b0316905081565b60575490565b605c54600160801b900460ff1681565b604f54600160a01b90046001600160401b031681565b604f546001600160a01b0316331461251c5760405162461bcd60e51b815260040180806020018281038252603f81526020018061552e603f913960400191505060405180910390fd5b60005b60058110156125a7576040518060a001604052806000815260200160008152602001600081526020016000815260200160008152506036826005811061256157fe5b600502016000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040155905050808060010191505061251f565b50605054604f5460408051630e670af560e01b8152600160a01b9092046001600160401b03166004830152516001600160a01b0390921691630e670af59160248082019260009290919082900301818387803b15801561260657600080fd5b505af115801561261a573d6000803e3d6000fd5b50506040517f0410e6ef2bd89ecf5b2dc2f62157f9863e09e89cb7c7f1abb7d4ec43a6019d1e925060009150a1565b60595481565b604f546001600160a01b031633146126985760405162461bcd60e51b815260040180806020018281038252603f81526020018061552e603f913960400191505060405180910390fd5b60f060ff821611156126db5760405162461bcd60e51b815260040180806020018281038252603c815260200180614e6a603c913960400191505060405180910390fd5b605c805460ff8316600160801b810260ff60801b199092169190911790915560408051918252517fff6221781ac525b04585dbb55cd2ebd2a92c828ca3e42b23813a1137ac9744319181900360200190a150565b605c54600160401b900463ffffffff1681565b605354600160a01b900465ffffffffffff1681565b80156127c95761278e60578863ffffffff168154811061277357fe5b6000918252602090912001546001600160a01b031687613a7a565b6127c95760405162461bcd60e51b81526004018080602001828103825260478152602001806151866047913960600191505060405180910390fd5b6127d1614ccb565b6127e8886000896001600160c01b03168933613dd7565b905060006127f582613e39565b63ffffffff87166000908152605560209081526040808320546056835281842065ffffffffffff8a168552909252909120549192509060ff161561286a5760405162461bcd60e51b81526004018080602001828103825260328152602001806151f86032913960400191505060405180910390fd5b61287e81878765ffffffffffff1685613ed6565b15156001146128be5760405162461bcd60e51b815260040180806020018281038252602e815260200180615476602e913960400191505060405180910390fd5b63ffffffff8716600090815260566020908152604080832065ffffffffffff891684529091529020805460ff191660011790556128fc898b86613c47565b8315158763ffffffff168665ffffffffffff167f69177d798b38e27bcc4e0338307e4f1490e12d1006729d0e6e9cc82a8732f41560405160405180910390a450505050505050505050565b605b6020908152600091825260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845290918301828280156129da5780601f106129af576101008083540402835291602001916129da565b820191906000526020600020905b8154815290600101906020018083116129bd57829003601f168201915b505050505081565b604f546001600160a01b03163314612a2b5760405162461bcd60e51b815260040180806020018281038252603f81526020018061552e603f913960400191505060405180910390fd5b62127500816001600160401b03161115612a765760405162461bcd60e51b815260040180806020018281038252604a815260200180614fe1604a913960600191505060405180910390fd5b604f80546001600160401b038316600160a01b810267ffffffffffffffff60a01b199092169190911790915560408051918252517f9db302c4547a21fb20a3a794e5f63ee87eb6e4afc3325ebdadba2d1fb4a907379181900360200190a150565b605660209081526000928352604080842090915290825290205460ff1681565b6001600160a01b0382166000908152605160205260408120546001600160401b0316612b25575060006111d9565b6001600160a01b038316600090815260516020526040812054655af3107a4000906001600160401b03166001600160c01b0385160260408051600481526024810182526020810180516001600160e01b031663313ce56760e01b1781529151815194909304945060009384936060936001600160a01b038b1693928291908083835b60208310612bc65780518252601f199092019160209182019101612ba7565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114612c26576040519150601f19603f3d011682016040523d82523d6000602084013e612c2b565b606091505b50915091508115612c5057808060200190516020811015612c4b57600080fd5b505192505b604d8360ff1610612c925760405162461bcd60e51b815260040180806020018281038252603b815260200180614dae603b913960400191505060405180910390fd5b8260ff16600a0a8481612ca157fe5b04979650505050505050565b6000805b6005811015612ce15760368160058110612cc757fe5b60050201548311612cd9579050612d19565b600101612cb1565b5060405162461bcd60e51b81526004018080602001828103825260398152602001806154a46039913960400191505060405180910390fd5b919050565b6000612d6083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613f5d565b9392505050565b303b1590565b60005b8251811015612e395760526040518060600160405280858481518110612d9257fe5b60200260200101516001600160a01b03168152602001600880868681518110612db757fe5b6020026020010151901b901c815260200160f8858581518110612dd657fe5b60209081029190910181015190911c909152825460018082018555600094855293829020835160039092020180546001600160a01b0319166001600160a01b03909216919091178155908201518184015560409091015160029091015501612d70565b505050565b600054610100900460ff1680612e575750612e57612d67565b80612e65575060005460ff16155b612ea05760405162461bcd60e51b815260040180806020018281038252602e8152602001806152a3602e913960400191505060405180910390fd5b600054610100900460ff16158015612ecb576000805460ff1961ff0019909116610100171660011790555b603380546001600160a01b038087166001600160a01b0319928316179092556034805486841690831617905560358054928516929091169190911790558015612f1a576000805461ff00191690555b50505050565b600054610100900460ff1680612f395750612f39612d67565b80612f47575060005460ff16155b612f825760405162461bcd60e51b815260040180806020018281038252602e8152602001806152a3602e913960400191505060405180910390fd5b600054610100900460ff16158015612fad576000805460ff1961ff0019909116610100171660011790555b604f80546001600160a01b03199081166001600160a01b038781169190911767ffffffffffffffff60a01b1916600160a01b6001600160401b0388160217909255605080549091169184169190911790558015612f1a576000805461ff001916905550505050565b605354600160d01b810463ffffffff166000908152605460205260408120546052805492939192600160a01b90920465ffffffffffff16918491829182919060ff891690811061306157fe5b906000526020600020906003020160010154600860528960ff168154811061308557fe5b9060005260206000209060030201600201548161309e57fe5b046002026003010290506000600860528960ff16815481106130bc57fe5b906000526020600020906003020160020154816130d557fe5b604080519290910481028481018084016148b201909252614872909101825260d087811b60208401528e901b6026830152602c8201889052604c82018d9052606c82018c90529150608c810161312b818c613ff4565b61480001613139600461422b565b90965094508385111561317d5760405162461bcd60e51b815260040180806020018281038252602e815260200180615500602e913960400191505060405180910390fd5b84868237840161318f8186860361423f565b8484030161319d600561422b565b90965094508285146131e05760405162461bcd60e51b8152600401808060200182810382526040815260200180614de96040913960400191505060405180910390fd5b8486823784016131f28186850361423f565b848303810190504660f01b815260028101905060006053601a9054906101000a900463ffffffff1660010163ffffffff1690508060e01b82527f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000016002846040518082805190602001908083835b6020831061327e5780518252601f19909201916020918201910161325f565b51815160209384036101000a60001901801990921691161790526040519190930194509192505080830381855afa1580156132bd573d6000803e3d6000fd5b5050506040513d60208110156132d257600080fd5b5051816132db57fe5b069f9e505050505050505050505050505050565b605c54600160401b900463ffffffff166000908152605b60205260408120805460486002610100600184161502600019019092169190910404906133339083614ce9565b605c8054600163ffffffff600160401b808404821692909201811682026bffffffff000000000000000019909316929092179283905582048116600160601b9092041614156133a757605c8054600163ffffffff600160601b808404821692909201160263ffffffff60601b199091161790555b905090565b6000828260208110156133be57600080fd5b50356001600160e01b031916905063d505accf60e01b81146134115760405162461bcd60e51b815260040180806020018281038252602e8152602001806156aa602e913960400191505060405180910390fd5b6000808080808080613426896004818d614d85565b60e081101561343457600080fd5b506001600160a01b038135811698506020820135169650604081013595506060810135945060ff608082013516935060a0810135925060c0013590503387146134ae5760405162461bcd60e51b8152600401808060200182810382526030815260200180614f2c6030913960400191505060405180910390fd5b6001600160a01b03861630146134f55760405162461bcd60e51b81526004018080602001828103825260258152602001806151326025913960400191505060405180910390fd5b8a85146135335760405162461bcd60e51b815260040180806020018281038252602d8152602001806153f5602d913960400191505060405180910390fd5b8b6001600160a01b031663d505accf60e01b8888888888888860405160240180886001600160a01b03168152602001876001600160a01b031681526020018681526020018581526020018460ff168152602001838152602001828152602001975050505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518082805190602001908083835b602083106135fd5780518252601f1990920191602091820191016135de565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461365f576040519150601f19603f3d011682016040523d82523d6000602084013e613664565b606091505b505050505050505050505050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b602083106136fa5780518252601f1990920191602091820191016136db565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461375c576040519150601f19603f3d011682016040523d82523d6000602084013e613761565b606091505b509150915081801561378f57508051158061378f575080806020019051602081101561378c57600080fd5b50515b6137ca5760405162461bcd60e51b8152600401808060200182810382526034815260200180614ef86034913960400191505060405180910390fd5b505050505050565b60006103ff8216601f600b84901c166001600a85811c8216919083900a90818502908314801561380157508315155b1561380c5760028204015b9695505050505050565b6000613821846137d2565b9050600160c01b81106138655760405162461bcd60e51b815260040180806020018281038252602e8152602001806150da602e913960400191505060405180910390fd5b65ffffffffffff82166138b45780156138af5760405162461bcd60e51b815260040180806020018281038252603b81526020018061566f603b913960400191505060405180910390fd5b61396e565b65ffffffffffff8216600114156139065761ffff8516156138af5760405162461bcd60e51b8152600401808060200182810382526037815260200180614f5c6037913960400191505060405180910390fd5b60ff65ffffffffffff8316118015613933575060535465ffffffffffff600160a01b909104811690831611155b61396e5760405162461bcd60e51b815260040180806020018281038252602881526020018061537a6028913960400191505060405180910390fd5b65ffffffffffff86166139bc57866139b75760405162461bcd60e51b815260040180806020018281038252604181526020018061502b6041913960600191505060405180910390fd5b613a61565b60ff65ffffffffffff87161180156139e9575060535465ffffffffffff600160a01b909104811690871611155b613a245760405162461bcd60e51b815260040180806020018281038252602a815260200180615108602a913960400191505060405180910390fd5b8615613a615760405162461bcd60e51b81526004018080602001828103825260428152602001806153146042913960600191505060405180910390fd5b613a7088888888888888614258565b5050505050505050565b600080613a878484612af7565b905080613a985760019150506111d9565b6000613aa382612cad565b9050600060368260058110613ab457fe5b6005020190506000613ad3826001015443612d1e90919063ffffffff16565b90508160030154811015613b6857600282015415613b5b57816004015482600201541415613b02574360018301555b600282018054600019019081905560018301546040805192835251909160ff8616917fa35fe9a9e21cdbbc4774aa8a56e7b97ea9c06afc09ffb06af593d26951e350aa9181900360200190a360019450505050506111d9565b60009450505050506111d9565b6000613b8183600301548361442490919063ffffffff16565b90508260040154613b9f82856002015461446690919063ffffffff16565b10613bc4576004830154613bb4906001612d1e565b6002840155436001840155613bf7565b60028301805482016000190190556003830154613bf190613be69083906144c0565b600185015490614466565b60018401555b60018301546002840154604080519182525160ff8716917fa35fe9a9e21cdbbc4774aa8a56e7b97ea9c06afc09ffb06af593d26951e350aa919081900360200190a36001955050505050506111d9565b8015613c8d57613c8860578363ffffffff1681548110613c6357fe5b6000918252602090912001546001600160a01b0316336001600160c01b038616614519565b612e39565b63ffffffff8216613d19576050546040805163cfc0b64160e01b81523360048201526000602482018190526001600160c01b0387166044830181905292516001600160a01b039094169363cfc0b6419392606480820193929182900301818588803b158015613cfb57600080fd5b505af1158015613d0f573d6000803e3d6000fd5b5050505050612e39565b600060578363ffffffff1681548110613d2e57fe5b6000918252602090912001546050546001600160a01b039182169250613d60918391166001600160c01b03871661476b565b6050546040805163cfc0b64160e01b81523360048201526001600160a01b0384811660248301526001600160c01b03881660448301529151919092169163cfc0b64191606480830192600092919082900301818387803b158015613dc357600080fd5b505af1158015613a70573d6000803e3d6000fd5b613ddf614ccb565b613de7614ccb565b63ffffffff96909616602095861b65ffff000000001617690100000000000000000060b785901c1617865250928401919091526001600160ff1b031660408301526001600160a01b0316606082015290565b60355460405163248f667760e01b81526000916001600160a01b03169063248f6677908490600401808260808083838a5b83811015613e82578181015183820152602001613e6a565b5050505090500191505060206040518083038186803b158015613ea457600080fd5b505afa158015613eb8573d6000803e3d6000fd5b505050506040513d6020811015613ece57600080fd5b505192915050565b600080613ee384846148b8565b8551909150600090600019015b60008112613f5057868181518110613f0457fe5b60200260200101519150600081876000821215613f1d57fe5b6001911c811614905080613f3a57613f3584846148e4565b613f44565b613f4483856148e4565b93505060001901613ef0565b5050909414949350505050565b60008184841115613fec5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613fb1578181015183820152602001613f99565b50505050905090810190601f168015613fde5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600080614001600361422b565b9092509050606581046000606085156140d157605c54600160401b900463ffffffff166000908152605b60209081526040918290208054835160026101006001841615026000190190921691909104601f81018490048402820184019094528381529290918301828280156140b75780601f1061408c576101008083540402835291602001916140b7565b820191906000526020600020905b81548152906001019060200180831161409a57829003601f168201915b5050505050905060488151816140c957fe5b0491506140d6565b600091505b61010083830111156141195760405162461bcd60e51b81526004018080602001828103825260248152602001806153566024913960400191505060405180910390fd5b8115614147576048820287019660208201905b8881101561414457815181526020918201910161412c565b50505b60005b8381101561420e576057546065870196803560001a916001820135916021810135916041820135916061013560e01c9081106141b75760405162461bcd60e51b815260040180806020018281038252602a815260200180615279602a913960400191505060405180910390fd5b6001600160a01b0360ff8616156141d7576141d483858789614901565b90505b60601b8d5260148d0191909152600060348d0181905260e09190911b603e8d015260428c015250506048909801975060010161414a565b50614222876048858561010003030261423f565b50505050505050565b602002600490810135602481019291013590565b808201915b82811015612e395760008152602001614244565b604080516bffffffffffffffffffffffff1960608a901b16602080830191909152603482018990526001600160d01b031960d089811b821660548501526001600160f01b031960f08a811b8216605a87015289901b16605c808601919091526001600160e01b031960e089901b16605e8601529086901b9091166062840152835160488185030181526068909301845254600160601b900463ffffffff166000908152605b9091529190912061430e9082614aa1565b605c54600160601b900463ffffffff166000818152605b602090815260408083205481518381528651818501528651604860026101006001861615026000190190941693909304929092049560ff87169590947fdd5c7c5ea02d3c5d1621513faa6de53d474ee6f111eda6352a63e3dfe8c401199489948493918401928601918190849084905b838110156143ad578181015183820152602001614395565b50505050905090810190601f1680156143da5780820380516001836020036101000a031916815260200191505b509250505060405180910390a36080811061205957605c8054600163ffffffff600160601b808404821692909201160263ffffffff60601b19909116179055505050505050505050565b6000612d6083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250614beb565b600082820183811015612d60576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000826144cf575060006111d9565b828202828482816144dc57fe5b0414612d605760405162461bcd60e51b815260040180806020018281038252602181526020018061522a6021913960400191505060405180910390fd5b6001600160a01b0383166146175760408051600080825260208201909252339083906040518082805190602001908083835b6020831061456a5780518252601f19909201916020918201910161454b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146145cc576040519150601f19603f3d011682016040523d82523d6000602084013e6145d1565b606091505b50509050806146115760405162461bcd60e51b815260040180806020018281038252602a8152602001806153cb602a913960400191505060405180910390fd5b50612e39565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b602083106146945780518252601f199092019160209182019101614675565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146146f6576040519150601f19603f3d011682016040523d82523d6000602084013e6146fb565b606091505b5091509150818015614729575080511580614729575080806020019051602081101561472657600080fd5b50515b6147645760405162461bcd60e51b815260040180806020018281038252602c815260200180614f93602c913960400191505060405180910390fd5b5050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663095ea7b360e01b178152925182516000946060949389169392918291908083835b602083106147e85780518252601f1990920191602091820191016147c9565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461484a576040519150601f19603f3d011682016040523d82523d6000602084013e61484f565b606091505b509150915081801561487d57508051158061487d575080806020019051602081101561487a57600080fd5b50515b6147645760405162461bcd60e51b815260040180806020018281038252602a8152602001806155ca602a913960400191505060405180910390fd5b60006148c2614d30565b83815260208101839052600160408201526148dc81614c50565b949350505050565b60006148ee614d4e565b838152602081018390526148dc81614c8d565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156149625760405162461bcd60e51b81526004018080602001828103825260298152602001806156d86029913960400191505060405180910390fd5b6000469050600086823060405160200180807f19457468657265756d205369676e6564204d6573736167653a0a313230000000815250601d018061562d604291396042018481526020018361ffff1660f01b8152600201826001600160a01b031660601b81526014019350505050604051602081830303815290604052805190602001209050600060018286898960405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015614a44573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116614a965760405162461bcd60e51b815260040180806020018281038252602b8152602001806151cd602b913960400191505060405180910390fd5b979650505050505050565b815460026001808316156101000203821604825180820160208110602084100160028114614b4b5760018114614b70578660005260208404602060002001600160028402018855602085068060200390508088018589016001836101000a0392508282511684540184556001840193506020820191505b80821015614b355781518455600184019350602082019150614b18565b815191036101000a908190040290915550614222565b60028302826020036101000a846020036101000a602089015104020185018755614222565b8660005260208404602060002001600160028402018855846020038088018589016001836101000a0392508282511660ff198a160184556020820191506001840193505b80821015614bd15781518455600184019350602082019150614bb4565b815191036101000a90819004029091555050505050505050565b60008183614c3a5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315613fb1578181015183820152602001613f99565b506000838581614c4657fe5b0495945050505050565b6034546040516304b98e1d60e31b8152825160049091019081526000916001600160a01b0316906325cc70e8908490808260608083836020613e6a565b603354604080516314d2f97b60e11b8152835160049091019081526000926001600160a01b0316916329a5f2f6918591819083908083836020613e6a565b60405180608001604052806004906020820280368337509192915050565b50805460018160011615610100020316600290046000825580601f10614d0f5750614d2d565b601f016020900490600052602060002090810190614d2d9190614d6c565b50565b60405180606001604052806003906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b5b80821115614d815760008155600101614d6d565b5090565b60008085851115614d94578182fd5b83861115614da0578182fd5b505082019391909203915056fe496e7374616e7457697468647261774d616e616765723a3a5f746f6b656e325553443a20544f4b454e5f444543494d414c535f4f564552464c4f574865726d657a3a3a5f636f6e73747275637443697263756974496e7075743a20494e56414c49445f464545494458434f4f5244494e41544f525f4c454e475448496e7374616e7457697468647261774d616e616765723a3a757064617465546f6b656e45786368616e67653a20494e56414c49445f41525241595f4c454e4754484865726d657a3a3a757064617465466f7267654c314c32426174636854696d656f75743a204d41585f464f52474554494d454f55545f4558434545444865726d657a3a3a666f72676542617463683a20494e56414c49445f50524f4f464865726d657a3a3a6164644c315472616e73616374696f6e3a204c4f4144414d4f554e545f4558434545445f4c494d49544865726d657a3a3a5f736166655472616e7366657246726f6d3a2045524332305f5452414e5346455246524f4d5f4641494c45444865726d657a3a3a5f7065726d69743a205045524d49545f4f574e45525f4d5553545f42455f5448455f53454e4445524865726d657a3a3a5f6164644c315472616e73616374696f6e3a204c4f4144414d4f554e545f4d5553545f42455f305f49465f455849544865726d657a3a3a5f736166655472616e736665723a2045524332305f5452414e534645525f4641494c45444865726d657a3a3a666f72676542617463683a2041554354494f4e5f44454e494544496e7374616e7457697468647261774d616e616765723a3a7570646174655769746864726177616c44656c61793a204558434545445f4d41585f5749544844524157414c5f44454c41594865726d657a3a3a5f6164644c315472616e73616374696f6e3a20494e56414c49445f4352454154455f4143434f554e545f574954485f4e4f5f424142594a55424865726d657a3a3a616464546f6b656e3a20414444524553535f305f494e56414c49444865726d657a3a3a666f72676542617463683a20494e54454e414c5f54585f4e4f545f414c4c4f5745444865726d657a3a3a616464546f6b656e3a20544f4b454e5f4c4953545f46554c4c4865726d657a3a3a5f6164644c315472616e73616374696f6e3a20414d4f554e545f4558434545445f4c494d49544865726d657a3a3a5f6164644c315472616e73616374696f6e3a20494e56414c49445f46524f4d4944584865726d657a3a3a5f7065726d69743a205350454e4445525f4d5553545f42455f544849534865726d657a3a3a6164644c315472616e73616374696f6e3a204d53475f56414c55455f4e4f545f455155414c5f304865726d657a3a3a77697468647261774d65726b6c6550726f6f663a20494e5354414e545f57495448445241575f5741535445445f464f525f544849535f5553445f52414e47454865726d657a48656c706572733a3a5f636865636b5369673a20494e56414c49445f5349474e41545552454865726d657a3a3a77697468647261774d65726b6c6550726f6f663a2057495448445241575f414c52454144595f444f4e45536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774865726d657a3a3a7769746864726177436972637569743a2057495448445241575f414c52454144595f444f4e454865726d657a3a3a5f6275696c644c31446174613a20544f4b454e5f4e4f545f52454749535445524544436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a65644865726d657a3a3a7769746864726177436972637569743a20494e5354414e545f57495448445241575f5741535445445f464f525f544849535f5553445f52414e47454865726d657a3a3a5f6164644c315472616e73616374696f6e3a20424142594a55425f4d5553545f42455f305f49465f4e4f545f4352454154455f4143434f554e544865726d657a3a3a5f6275696c644c31446174613a204c315f54585f4f564552464c4f574865726d657a3a3a5f6164644c315472616e73616374696f6e3a20494e56414c49445f544f4944584865726d657a3a3a7769746864726177436972637569743a20494e56414c49445f5a4b5f50524f4f464865726d657a3a3a5f736166655472616e736665723a204554485f5452414e534645525f4641494c45444865726d657a3a3a5f7065726d69743a205045524d49545f414d4f554e545f444f45535f4e4f545f4d415443484865726d657a3a3a666f72676542617463683a204c314c3242415443485f52455155495245444865726d657a3a3a6164644c315472616e73616374696f6e3a20544f4b454e5f4e4f545f524547495354455245444865726d657a3a3a77697468647261774d65726b6c6550726f6f663a20534d545f50524f4f465f494e56414c4944496e7374616e7457697468647261774d616e616765723a3a5f66696e644275636b65744964783a204558434545445f4d41585f414d4f554e544865726d657a3a3a616464546f6b656e3a20544f54414c5f535550504c595f5a45524f4865726d657a3a3a5f636f6e73747275637443697263756974496e7075743a204c325f54585f4f564552464c4f57496e7374616e7457697468647261774d616e616765723a3a6f6e6c79476f7665726e616e63653a204f4e4c595f474f5645524e414e43455f41444452455353496e7374616e7457697468647261774d616e616765723a3a7570646174654275636b657473506172616d65746572733a205749544844524157414c535f4d5553545f42455f4c4553535f5448414e5f4d41585749544844524157414c534865726d657a3a3a5f73616665417070726f76653a2045524332305f415050524f56455f4641494c45444865726d657a3a3a6164644c315472616e73616374696f6e3a204c4f4144414d4f554e545f45524332305f444f45535f4e4f545f4d415443484920617574686f72697a65207468697320626162796a75626a7562206b657920666f72206865726d657a20726f6c6c7570206163636f756e74206372656174696f6e4865726d657a3a3a5f6164644c315472616e73616374696f6e3a20414d4f554e545f4d5553545f42455f305f49465f4e4f545f5452414e534645524865726d657a41756374696f6e50726f746f636f6c3a3a5f7065726d69743a204e4f545f56414c49445f43414c4c4865726d657a48656c706572733a3a5f636865636b5369673a20494e56414c49445f535f56414c55454865726d657a3a3a6164644c315472616e73616374696f6e3a204c4f4144414d4f554e545f4554485f444f45535f4e4f545f4d41544348a2646970667358221220a84697555131f274217588c1ae00520914a8e9aa4d22b904467b5d50b033f72764736f6c634300060c0033"
  29. // DeployHermez deploys a new Ethereum contract, binding an instance of Hermez to it.
  30. func DeployHermez(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Hermez, error) {
  31. parsed, err := abi.JSON(strings.NewReader(HermezABI))
  32. if err != nil {
  33. return common.Address{}, nil, nil, tracerr.Wrap(err)
  34. }
  35. address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex(HermezBin), backend)
  36. if err != nil {
  37. return common.Address{}, nil, nil, tracerr.Wrap(err)
  38. }
  39. return address, tx, &Hermez{HermezCaller: HermezCaller{contract: contract}, HermezTransactor: HermezTransactor{contract: contract}, HermezFilterer: HermezFilterer{contract: contract}}, nil
  40. }
  41. // Hermez is an auto generated Go binding around an Ethereum contract.
  42. type Hermez struct {
  43. HermezCaller // Read-only binding to the contract
  44. HermezTransactor // Write-only binding to the contract
  45. HermezFilterer // Log filterer for contract events
  46. }
  47. // HermezCaller is an auto generated read-only Go binding around an Ethereum contract.
  48. type HermezCaller struct {
  49. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  50. }
  51. // HermezTransactor is an auto generated write-only Go binding around an Ethereum contract.
  52. type HermezTransactor struct {
  53. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  54. }
  55. // HermezFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
  56. type HermezFilterer struct {
  57. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  58. }
  59. // HermezSession is an auto generated Go binding around an Ethereum contract,
  60. // with pre-set call and transact options.
  61. type HermezSession struct {
  62. Contract *Hermez // Generic contract binding to set the session for
  63. CallOpts bind.CallOpts // Call options to use throughout this session
  64. TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
  65. }
  66. // HermezCallerSession is an auto generated read-only Go binding around an Ethereum contract,
  67. // with pre-set call options.
  68. type HermezCallerSession struct {
  69. Contract *HermezCaller // Generic contract caller binding to set the session for
  70. CallOpts bind.CallOpts // Call options to use throughout this session
  71. }
  72. // HermezTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
  73. // with pre-set transact options.
  74. type HermezTransactorSession struct {
  75. Contract *HermezTransactor // Generic contract transactor binding to set the session for
  76. TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
  77. }
  78. // HermezRaw is an auto generated low-level Go binding around an Ethereum contract.
  79. type HermezRaw struct {
  80. Contract *Hermez // Generic contract binding to access the raw methods on
  81. }
  82. // HermezCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
  83. type HermezCallerRaw struct {
  84. Contract *HermezCaller // Generic read-only contract binding to access the raw methods on
  85. }
  86. // HermezTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
  87. type HermezTransactorRaw struct {
  88. Contract *HermezTransactor // Generic write-only contract binding to access the raw methods on
  89. }
  90. // NewHermez creates a new instance of Hermez, bound to a specific deployed contract.
  91. func NewHermez(address common.Address, backend bind.ContractBackend) (*Hermez, error) {
  92. contract, err := bindHermez(address, backend, backend, backend)
  93. if err != nil {
  94. return nil, tracerr.Wrap(err)
  95. }
  96. return &Hermez{HermezCaller: HermezCaller{contract: contract}, HermezTransactor: HermezTransactor{contract: contract}, HermezFilterer: HermezFilterer{contract: contract}}, nil
  97. }
  98. // NewHermezCaller creates a new read-only instance of Hermez, bound to a specific deployed contract.
  99. func NewHermezCaller(address common.Address, caller bind.ContractCaller) (*HermezCaller, error) {
  100. contract, err := bindHermez(address, caller, nil, nil)
  101. if err != nil {
  102. return nil, tracerr.Wrap(err)
  103. }
  104. return &HermezCaller{contract: contract}, nil
  105. }
  106. // NewHermezTransactor creates a new write-only instance of Hermez, bound to a specific deployed contract.
  107. func NewHermezTransactor(address common.Address, transactor bind.ContractTransactor) (*HermezTransactor, error) {
  108. contract, err := bindHermez(address, nil, transactor, nil)
  109. if err != nil {
  110. return nil, tracerr.Wrap(err)
  111. }
  112. return &HermezTransactor{contract: contract}, nil
  113. }
  114. // NewHermezFilterer creates a new log filterer instance of Hermez, bound to a specific deployed contract.
  115. func NewHermezFilterer(address common.Address, filterer bind.ContractFilterer) (*HermezFilterer, error) {
  116. contract, err := bindHermez(address, nil, nil, filterer)
  117. if err != nil {
  118. return nil, tracerr.Wrap(err)
  119. }
  120. return &HermezFilterer{contract: contract}, nil
  121. }
  122. // bindHermez binds a generic wrapper to an already deployed contract.
  123. func bindHermez(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
  124. parsed, err := abi.JSON(strings.NewReader(HermezABI))
  125. if err != nil {
  126. return nil, tracerr.Wrap(err)
  127. }
  128. return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
  129. }
  130. // Call invokes the (constant) contract method with params as input values and
  131. // sets the output to result. The result type might be a single field for simple
  132. // returns, a slice of interfaces for anonymous returns and a struct for named
  133. // returns.
  134. func (_Hermez *HermezRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
  135. return _Hermez.Contract.HermezCaller.contract.Call(opts, result, method, params...)
  136. }
  137. // Transfer initiates a plain transaction to move funds to the contract, calling
  138. // its default method if one is available.
  139. func (_Hermez *HermezRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
  140. return _Hermez.Contract.HermezTransactor.contract.Transfer(opts)
  141. }
  142. // Transact invokes the (paid) contract method with params as input values.
  143. func (_Hermez *HermezRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
  144. return _Hermez.Contract.HermezTransactor.contract.Transact(opts, method, params...)
  145. }
  146. // Call invokes the (constant) contract method with params as input values and
  147. // sets the output to result. The result type might be a single field for simple
  148. // returns, a slice of interfaces for anonymous returns and a struct for named
  149. // returns.
  150. func (_Hermez *HermezCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
  151. return _Hermez.Contract.contract.Call(opts, result, method, params...)
  152. }
  153. // Transfer initiates a plain transaction to move funds to the contract, calling
  154. // its default method if one is available.
  155. func (_Hermez *HermezTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
  156. return _Hermez.Contract.contract.Transfer(opts)
  157. }
  158. // Transact invokes the (paid) contract method with params as input values.
  159. func (_Hermez *HermezTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
  160. return _Hermez.Contract.contract.Transact(opts, method, params...)
  161. }
  162. // ABSOLUTEMAXL1L2BATCHTIMEOUT is a free data retrieval call binding the contract method 0x95a09f2a.
  163. //
  164. // Solidity: function ABSOLUTE_MAX_L1L2BATCHTIMEOUT() view returns(uint8)
  165. func (_Hermez *HermezCaller) ABSOLUTEMAXL1L2BATCHTIMEOUT(opts *bind.CallOpts) (uint8, error) {
  166. var (
  167. ret0 = new(uint8)
  168. )
  169. out := ret0
  170. err := _Hermez.contract.Call(opts, out, "ABSOLUTE_MAX_L1L2BATCHTIMEOUT")
  171. return *ret0, tracerr.Wrap(err)
  172. }
  173. // ABSOLUTEMAXL1L2BATCHTIMEOUT is a free data retrieval call binding the contract method 0x95a09f2a.
  174. //
  175. // Solidity: function ABSOLUTE_MAX_L1L2BATCHTIMEOUT() view returns(uint8)
  176. func (_Hermez *HermezSession) ABSOLUTEMAXL1L2BATCHTIMEOUT() (uint8, error) {
  177. return _Hermez.Contract.ABSOLUTEMAXL1L2BATCHTIMEOUT(&_Hermez.CallOpts)
  178. }
  179. // ABSOLUTEMAXL1L2BATCHTIMEOUT is a free data retrieval call binding the contract method 0x95a09f2a.
  180. //
  181. // Solidity: function ABSOLUTE_MAX_L1L2BATCHTIMEOUT() view returns(uint8)
  182. func (_Hermez *HermezCallerSession) ABSOLUTEMAXL1L2BATCHTIMEOUT() (uint8, error) {
  183. return _Hermez.Contract.ABSOLUTEMAXL1L2BATCHTIMEOUT(&_Hermez.CallOpts)
  184. }
  185. // Buckets is a free data retrieval call binding the contract method 0x9b51fb0d.
  186. //
  187. // Solidity: function buckets(uint256 ) view returns(uint256 ceilUSD, uint256 blockStamp, uint256 withdrawals, uint256 blockWithdrawalRate, uint256 maxWithdrawals)
  188. func (_Hermez *HermezCaller) Buckets(opts *bind.CallOpts, arg0 *big.Int) (struct {
  189. CeilUSD *big.Int
  190. BlockStamp *big.Int
  191. Withdrawals *big.Int
  192. BlockWithdrawalRate *big.Int
  193. MaxWithdrawals *big.Int
  194. }, error) {
  195. ret := new(struct {
  196. CeilUSD *big.Int
  197. BlockStamp *big.Int
  198. Withdrawals *big.Int
  199. BlockWithdrawalRate *big.Int
  200. MaxWithdrawals *big.Int
  201. })
  202. out := ret
  203. err := _Hermez.contract.Call(opts, out, "buckets", arg0)
  204. return *ret, tracerr.Wrap(err)
  205. }
  206. // Buckets is a free data retrieval call binding the contract method 0x9b51fb0d.
  207. //
  208. // Solidity: function buckets(uint256 ) view returns(uint256 ceilUSD, uint256 blockStamp, uint256 withdrawals, uint256 blockWithdrawalRate, uint256 maxWithdrawals)
  209. func (_Hermez *HermezSession) Buckets(arg0 *big.Int) (struct {
  210. CeilUSD *big.Int
  211. BlockStamp *big.Int
  212. Withdrawals *big.Int
  213. BlockWithdrawalRate *big.Int
  214. MaxWithdrawals *big.Int
  215. }, error) {
  216. return _Hermez.Contract.Buckets(&_Hermez.CallOpts, arg0)
  217. }
  218. // Buckets is a free data retrieval call binding the contract method 0x9b51fb0d.
  219. //
  220. // Solidity: function buckets(uint256 ) view returns(uint256 ceilUSD, uint256 blockStamp, uint256 withdrawals, uint256 blockWithdrawalRate, uint256 maxWithdrawals)
  221. func (_Hermez *HermezCallerSession) Buckets(arg0 *big.Int) (struct {
  222. CeilUSD *big.Int
  223. BlockStamp *big.Int
  224. Withdrawals *big.Int
  225. BlockWithdrawalRate *big.Int
  226. MaxWithdrawals *big.Int
  227. }, error) {
  228. return _Hermez.Contract.Buckets(&_Hermez.CallOpts, arg0)
  229. }
  230. // ExitNullifierMap is a free data retrieval call binding the contract method 0xf84f92ee.
  231. //
  232. // Solidity: function exitNullifierMap(uint32 , uint48 ) view returns(bool)
  233. func (_Hermez *HermezCaller) ExitNullifierMap(opts *bind.CallOpts, arg0 uint32, arg1 *big.Int) (bool, error) {
  234. var (
  235. ret0 = new(bool)
  236. )
  237. out := ret0
  238. err := _Hermez.contract.Call(opts, out, "exitNullifierMap", arg0, arg1)
  239. return *ret0, tracerr.Wrap(err)
  240. }
  241. // ExitNullifierMap is a free data retrieval call binding the contract method 0xf84f92ee.
  242. //
  243. // Solidity: function exitNullifierMap(uint32 , uint48 ) view returns(bool)
  244. func (_Hermez *HermezSession) ExitNullifierMap(arg0 uint32, arg1 *big.Int) (bool, error) {
  245. return _Hermez.Contract.ExitNullifierMap(&_Hermez.CallOpts, arg0, arg1)
  246. }
  247. // ExitNullifierMap is a free data retrieval call binding the contract method 0xf84f92ee.
  248. //
  249. // Solidity: function exitNullifierMap(uint32 , uint48 ) view returns(bool)
  250. func (_Hermez *HermezCallerSession) ExitNullifierMap(arg0 uint32, arg1 *big.Int) (bool, error) {
  251. return _Hermez.Contract.ExitNullifierMap(&_Hermez.CallOpts, arg0, arg1)
  252. }
  253. // ExitRootsMap is a free data retrieval call binding the contract method 0x3ee641ea.
  254. //
  255. // Solidity: function exitRootsMap(uint32 ) view returns(uint256)
  256. func (_Hermez *HermezCaller) ExitRootsMap(opts *bind.CallOpts, arg0 uint32) (*big.Int, error) {
  257. var (
  258. ret0 = new(*big.Int)
  259. )
  260. out := ret0
  261. err := _Hermez.contract.Call(opts, out, "exitRootsMap", arg0)
  262. return *ret0, tracerr.Wrap(err)
  263. }
  264. // ExitRootsMap is a free data retrieval call binding the contract method 0x3ee641ea.
  265. //
  266. // Solidity: function exitRootsMap(uint32 ) view returns(uint256)
  267. func (_Hermez *HermezSession) ExitRootsMap(arg0 uint32) (*big.Int, error) {
  268. return _Hermez.Contract.ExitRootsMap(&_Hermez.CallOpts, arg0)
  269. }
  270. // ExitRootsMap is a free data retrieval call binding the contract method 0x3ee641ea.
  271. //
  272. // Solidity: function exitRootsMap(uint32 ) view returns(uint256)
  273. func (_Hermez *HermezCallerSession) ExitRootsMap(arg0 uint32) (*big.Int, error) {
  274. return _Hermez.Contract.ExitRootsMap(&_Hermez.CallOpts, arg0)
  275. }
  276. // FeeAddToken is a free data retrieval call binding the contract method 0xbded9bb8.
  277. //
  278. // Solidity: function feeAddToken() view returns(uint256)
  279. func (_Hermez *HermezCaller) FeeAddToken(opts *bind.CallOpts) (*big.Int, error) {
  280. var (
  281. ret0 = new(*big.Int)
  282. )
  283. out := ret0
  284. err := _Hermez.contract.Call(opts, out, "feeAddToken")
  285. return *ret0, tracerr.Wrap(err)
  286. }
  287. // FeeAddToken is a free data retrieval call binding the contract method 0xbded9bb8.
  288. //
  289. // Solidity: function feeAddToken() view returns(uint256)
  290. func (_Hermez *HermezSession) FeeAddToken() (*big.Int, error) {
  291. return _Hermez.Contract.FeeAddToken(&_Hermez.CallOpts)
  292. }
  293. // FeeAddToken is a free data retrieval call binding the contract method 0xbded9bb8.
  294. //
  295. // Solidity: function feeAddToken() view returns(uint256)
  296. func (_Hermez *HermezCallerSession) FeeAddToken() (*big.Int, error) {
  297. return _Hermez.Contract.FeeAddToken(&_Hermez.CallOpts)
  298. }
  299. // ForgeL1L2BatchTimeout is a free data retrieval call binding the contract method 0xa3275838.
  300. //
  301. // Solidity: function forgeL1L2BatchTimeout() view returns(uint8)
  302. func (_Hermez *HermezCaller) ForgeL1L2BatchTimeout(opts *bind.CallOpts) (uint8, error) {
  303. var (
  304. ret0 = new(uint8)
  305. )
  306. out := ret0
  307. err := _Hermez.contract.Call(opts, out, "forgeL1L2BatchTimeout")
  308. return *ret0, tracerr.Wrap(err)
  309. }
  310. // ForgeL1L2BatchTimeout is a free data retrieval call binding the contract method 0xa3275838.
  311. //
  312. // Solidity: function forgeL1L2BatchTimeout() view returns(uint8)
  313. func (_Hermez *HermezSession) ForgeL1L2BatchTimeout() (uint8, error) {
  314. return _Hermez.Contract.ForgeL1L2BatchTimeout(&_Hermez.CallOpts)
  315. }
  316. // ForgeL1L2BatchTimeout is a free data retrieval call binding the contract method 0xa3275838.
  317. //
  318. // Solidity: function forgeL1L2BatchTimeout() view returns(uint8)
  319. func (_Hermez *HermezCallerSession) ForgeL1L2BatchTimeout() (uint8, error) {
  320. return _Hermez.Contract.ForgeL1L2BatchTimeout(&_Hermez.CallOpts)
  321. }
  322. // HermezAuctionContract is a free data retrieval call binding the contract method 0x2bd83626.
  323. //
  324. // Solidity: function hermezAuctionContract() view returns(address)
  325. func (_Hermez *HermezCaller) HermezAuctionContract(opts *bind.CallOpts) (common.Address, error) {
  326. var (
  327. ret0 = new(common.Address)
  328. )
  329. out := ret0
  330. err := _Hermez.contract.Call(opts, out, "hermezAuctionContract")
  331. return *ret0, tracerr.Wrap(err)
  332. }
  333. // HermezAuctionContract is a free data retrieval call binding the contract method 0x2bd83626.
  334. //
  335. // Solidity: function hermezAuctionContract() view returns(address)
  336. func (_Hermez *HermezSession) HermezAuctionContract() (common.Address, error) {
  337. return _Hermez.Contract.HermezAuctionContract(&_Hermez.CallOpts)
  338. }
  339. // HermezAuctionContract is a free data retrieval call binding the contract method 0x2bd83626.
  340. //
  341. // Solidity: function hermezAuctionContract() view returns(address)
  342. func (_Hermez *HermezCallerSession) HermezAuctionContract() (common.Address, error) {
  343. return _Hermez.Contract.HermezAuctionContract(&_Hermez.CallOpts)
  344. }
  345. // HermezGovernanceAddress is a free data retrieval call binding the contract method 0x013f7852.
  346. //
  347. // Solidity: function hermezGovernanceAddress() view returns(address)
  348. func (_Hermez *HermezCaller) HermezGovernanceAddress(opts *bind.CallOpts) (common.Address, error) {
  349. var (
  350. ret0 = new(common.Address)
  351. )
  352. out := ret0
  353. err := _Hermez.contract.Call(opts, out, "hermezGovernanceAddress")
  354. return *ret0, tracerr.Wrap(err)
  355. }
  356. // HermezGovernanceAddress is a free data retrieval call binding the contract method 0x013f7852.
  357. //
  358. // Solidity: function hermezGovernanceAddress() view returns(address)
  359. func (_Hermez *HermezSession) HermezGovernanceAddress() (common.Address, error) {
  360. return _Hermez.Contract.HermezGovernanceAddress(&_Hermez.CallOpts)
  361. }
  362. // HermezGovernanceAddress is a free data retrieval call binding the contract method 0x013f7852.
  363. //
  364. // Solidity: function hermezGovernanceAddress() view returns(address)
  365. func (_Hermez *HermezCallerSession) HermezGovernanceAddress() (common.Address, error) {
  366. return _Hermez.Contract.HermezGovernanceAddress(&_Hermez.CallOpts)
  367. }
  368. // InstantWithdrawalViewer is a free data retrieval call binding the contract method 0x375110aa.
  369. //
  370. // Solidity: function instantWithdrawalViewer(address tokenAddress, uint192 amount) view returns(bool)
  371. func (_Hermez *HermezCaller) InstantWithdrawalViewer(opts *bind.CallOpts, tokenAddress common.Address, amount *big.Int) (bool, error) {
  372. var (
  373. ret0 = new(bool)
  374. )
  375. out := ret0
  376. err := _Hermez.contract.Call(opts, out, "instantWithdrawalViewer", tokenAddress, amount)
  377. return *ret0, tracerr.Wrap(err)
  378. }
  379. // InstantWithdrawalViewer is a free data retrieval call binding the contract method 0x375110aa.
  380. //
  381. // Solidity: function instantWithdrawalViewer(address tokenAddress, uint192 amount) view returns(bool)
  382. func (_Hermez *HermezSession) InstantWithdrawalViewer(tokenAddress common.Address, amount *big.Int) (bool, error) {
  383. return _Hermez.Contract.InstantWithdrawalViewer(&_Hermez.CallOpts, tokenAddress, amount)
  384. }
  385. // InstantWithdrawalViewer is a free data retrieval call binding the contract method 0x375110aa.
  386. //
  387. // Solidity: function instantWithdrawalViewer(address tokenAddress, uint192 amount) view returns(bool)
  388. func (_Hermez *HermezCallerSession) InstantWithdrawalViewer(tokenAddress common.Address, amount *big.Int) (bool, error) {
  389. return _Hermez.Contract.InstantWithdrawalViewer(&_Hermez.CallOpts, tokenAddress, amount)
  390. }
  391. // LastForgedBatch is a free data retrieval call binding the contract method 0x44e0b2ce.
  392. //
  393. // Solidity: function lastForgedBatch() view returns(uint32)
  394. func (_Hermez *HermezCaller) LastForgedBatch(opts *bind.CallOpts) (uint32, error) {
  395. var (
  396. ret0 = new(uint32)
  397. )
  398. out := ret0
  399. err := _Hermez.contract.Call(opts, out, "lastForgedBatch")
  400. return *ret0, tracerr.Wrap(err)
  401. }
  402. // LastForgedBatch is a free data retrieval call binding the contract method 0x44e0b2ce.
  403. //
  404. // Solidity: function lastForgedBatch() view returns(uint32)
  405. func (_Hermez *HermezSession) LastForgedBatch() (uint32, error) {
  406. return _Hermez.Contract.LastForgedBatch(&_Hermez.CallOpts)
  407. }
  408. // LastForgedBatch is a free data retrieval call binding the contract method 0x44e0b2ce.
  409. //
  410. // Solidity: function lastForgedBatch() view returns(uint32)
  411. func (_Hermez *HermezCallerSession) LastForgedBatch() (uint32, error) {
  412. return _Hermez.Contract.LastForgedBatch(&_Hermez.CallOpts)
  413. }
  414. // LastIdx is a free data retrieval call binding the contract method 0xd486645c.
  415. //
  416. // Solidity: function lastIdx() view returns(uint48)
  417. func (_Hermez *HermezCaller) LastIdx(opts *bind.CallOpts) (*big.Int, error) {
  418. var (
  419. ret0 = new(*big.Int)
  420. )
  421. out := ret0
  422. err := _Hermez.contract.Call(opts, out, "lastIdx")
  423. return *ret0, tracerr.Wrap(err)
  424. }
  425. // LastIdx is a free data retrieval call binding the contract method 0xd486645c.
  426. //
  427. // Solidity: function lastIdx() view returns(uint48)
  428. func (_Hermez *HermezSession) LastIdx() (*big.Int, error) {
  429. return _Hermez.Contract.LastIdx(&_Hermez.CallOpts)
  430. }
  431. // LastIdx is a free data retrieval call binding the contract method 0xd486645c.
  432. //
  433. // Solidity: function lastIdx() view returns(uint48)
  434. func (_Hermez *HermezCallerSession) LastIdx() (*big.Int, error) {
  435. return _Hermez.Contract.LastIdx(&_Hermez.CallOpts)
  436. }
  437. // LastL1L2Batch is a free data retrieval call binding the contract method 0x84ef9ed4.
  438. //
  439. // Solidity: function lastL1L2Batch() view returns(uint64)
  440. func (_Hermez *HermezCaller) LastL1L2Batch(opts *bind.CallOpts) (uint64, error) {
  441. var (
  442. ret0 = new(uint64)
  443. )
  444. out := ret0
  445. err := _Hermez.contract.Call(opts, out, "lastL1L2Batch")
  446. return *ret0, tracerr.Wrap(err)
  447. }
  448. // LastL1L2Batch is a free data retrieval call binding the contract method 0x84ef9ed4.
  449. //
  450. // Solidity: function lastL1L2Batch() view returns(uint64)
  451. func (_Hermez *HermezSession) LastL1L2Batch() (uint64, error) {
  452. return _Hermez.Contract.LastL1L2Batch(&_Hermez.CallOpts)
  453. }
  454. // LastL1L2Batch is a free data retrieval call binding the contract method 0x84ef9ed4.
  455. //
  456. // Solidity: function lastL1L2Batch() view returns(uint64)
  457. func (_Hermez *HermezCallerSession) LastL1L2Batch() (uint64, error) {
  458. return _Hermez.Contract.LastL1L2Batch(&_Hermez.CallOpts)
  459. }
  460. // MapL1TxQueue is a free data retrieval call binding the contract method 0xdc3e718e.
  461. //
  462. // Solidity: function mapL1TxQueue(uint32 ) view returns(bytes)
  463. func (_Hermez *HermezCaller) MapL1TxQueue(opts *bind.CallOpts, arg0 uint32) ([]byte, error) {
  464. var (
  465. ret0 = new([]byte)
  466. )
  467. out := ret0
  468. err := _Hermez.contract.Call(opts, out, "mapL1TxQueue", arg0)
  469. return *ret0, tracerr.Wrap(err)
  470. }
  471. // MapL1TxQueue is a free data retrieval call binding the contract method 0xdc3e718e.
  472. //
  473. // Solidity: function mapL1TxQueue(uint32 ) view returns(bytes)
  474. func (_Hermez *HermezSession) MapL1TxQueue(arg0 uint32) ([]byte, error) {
  475. return _Hermez.Contract.MapL1TxQueue(&_Hermez.CallOpts, arg0)
  476. }
  477. // MapL1TxQueue is a free data retrieval call binding the contract method 0xdc3e718e.
  478. //
  479. // Solidity: function mapL1TxQueue(uint32 ) view returns(bytes)
  480. func (_Hermez *HermezCallerSession) MapL1TxQueue(arg0 uint32) ([]byte, error) {
  481. return _Hermez.Contract.MapL1TxQueue(&_Hermez.CallOpts, arg0)
  482. }
  483. // NextL1FillingQueue is a free data retrieval call binding the contract method 0x0ee8e52b.
  484. //
  485. // Solidity: function nextL1FillingQueue() view returns(uint32)
  486. func (_Hermez *HermezCaller) NextL1FillingQueue(opts *bind.CallOpts) (uint32, error) {
  487. var (
  488. ret0 = new(uint32)
  489. )
  490. out := ret0
  491. err := _Hermez.contract.Call(opts, out, "nextL1FillingQueue")
  492. return *ret0, tracerr.Wrap(err)
  493. }
  494. // NextL1FillingQueue is a free data retrieval call binding the contract method 0x0ee8e52b.
  495. //
  496. // Solidity: function nextL1FillingQueue() view returns(uint32)
  497. func (_Hermez *HermezSession) NextL1FillingQueue() (uint32, error) {
  498. return _Hermez.Contract.NextL1FillingQueue(&_Hermez.CallOpts)
  499. }
  500. // NextL1FillingQueue is a free data retrieval call binding the contract method 0x0ee8e52b.
  501. //
  502. // Solidity: function nextL1FillingQueue() view returns(uint32)
  503. func (_Hermez *HermezCallerSession) NextL1FillingQueue() (uint32, error) {
  504. return _Hermez.Contract.NextL1FillingQueue(&_Hermez.CallOpts)
  505. }
  506. // NextL1ToForgeQueue is a free data retrieval call binding the contract method 0xd0f32e67.
  507. //
  508. // Solidity: function nextL1ToForgeQueue() view returns(uint32)
  509. func (_Hermez *HermezCaller) NextL1ToForgeQueue(opts *bind.CallOpts) (uint32, error) {
  510. var (
  511. ret0 = new(uint32)
  512. )
  513. out := ret0
  514. err := _Hermez.contract.Call(opts, out, "nextL1ToForgeQueue")
  515. return *ret0, tracerr.Wrap(err)
  516. }
  517. // NextL1ToForgeQueue is a free data retrieval call binding the contract method 0xd0f32e67.
  518. //
  519. // Solidity: function nextL1ToForgeQueue() view returns(uint32)
  520. func (_Hermez *HermezSession) NextL1ToForgeQueue() (uint32, error) {
  521. return _Hermez.Contract.NextL1ToForgeQueue(&_Hermez.CallOpts)
  522. }
  523. // NextL1ToForgeQueue is a free data retrieval call binding the contract method 0xd0f32e67.
  524. //
  525. // Solidity: function nextL1ToForgeQueue() view returns(uint32)
  526. func (_Hermez *HermezCallerSession) NextL1ToForgeQueue() (uint32, error) {
  527. return _Hermez.Contract.NextL1ToForgeQueue(&_Hermez.CallOpts)
  528. }
  529. // RegisterTokensCount is a free data retrieval call binding the contract method 0x9f34e9a3.
  530. //
  531. // Solidity: function registerTokensCount() view returns(uint256)
  532. func (_Hermez *HermezCaller) RegisterTokensCount(opts *bind.CallOpts) (*big.Int, error) {
  533. var (
  534. ret0 = new(*big.Int)
  535. )
  536. out := ret0
  537. err := _Hermez.contract.Call(opts, out, "registerTokensCount")
  538. return *ret0, tracerr.Wrap(err)
  539. }
  540. // RegisterTokensCount is a free data retrieval call binding the contract method 0x9f34e9a3.
  541. //
  542. // Solidity: function registerTokensCount() view returns(uint256)
  543. func (_Hermez *HermezSession) RegisterTokensCount() (*big.Int, error) {
  544. return _Hermez.Contract.RegisterTokensCount(&_Hermez.CallOpts)
  545. }
  546. // RegisterTokensCount is a free data retrieval call binding the contract method 0x9f34e9a3.
  547. //
  548. // Solidity: function registerTokensCount() view returns(uint256)
  549. func (_Hermez *HermezCallerSession) RegisterTokensCount() (*big.Int, error) {
  550. return _Hermez.Contract.RegisterTokensCount(&_Hermez.CallOpts)
  551. }
  552. // RollupVerifiers is a free data retrieval call binding the contract method 0x38330200.
  553. //
  554. // Solidity: function rollupVerifiers(uint256 ) view returns(address verifierInterface, uint256 maxTx, uint256 nLevels)
  555. func (_Hermez *HermezCaller) RollupVerifiers(opts *bind.CallOpts, arg0 *big.Int) (struct {
  556. VerifierInterface common.Address
  557. MaxTx *big.Int
  558. NLevels *big.Int
  559. }, error) {
  560. ret := new(struct {
  561. VerifierInterface common.Address
  562. MaxTx *big.Int
  563. NLevels *big.Int
  564. })
  565. out := ret
  566. err := _Hermez.contract.Call(opts, out, "rollupVerifiers", arg0)
  567. return *ret, tracerr.Wrap(err)
  568. }
  569. // RollupVerifiers is a free data retrieval call binding the contract method 0x38330200.
  570. //
  571. // Solidity: function rollupVerifiers(uint256 ) view returns(address verifierInterface, uint256 maxTx, uint256 nLevels)
  572. func (_Hermez *HermezSession) RollupVerifiers(arg0 *big.Int) (struct {
  573. VerifierInterface common.Address
  574. MaxTx *big.Int
  575. NLevels *big.Int
  576. }, error) {
  577. return _Hermez.Contract.RollupVerifiers(&_Hermez.CallOpts, arg0)
  578. }
  579. // RollupVerifiers is a free data retrieval call binding the contract method 0x38330200.
  580. //
  581. // Solidity: function rollupVerifiers(uint256 ) view returns(address verifierInterface, uint256 maxTx, uint256 nLevels)
  582. func (_Hermez *HermezCallerSession) RollupVerifiers(arg0 *big.Int) (struct {
  583. VerifierInterface common.Address
  584. MaxTx *big.Int
  585. NLevels *big.Int
  586. }, error) {
  587. return _Hermez.Contract.RollupVerifiers(&_Hermez.CallOpts, arg0)
  588. }
  589. // StateRootMap is a free data retrieval call binding the contract method 0x9e00d7ea.
  590. //
  591. // Solidity: function stateRootMap(uint32 ) view returns(uint256)
  592. func (_Hermez *HermezCaller) StateRootMap(opts *bind.CallOpts, arg0 uint32) (*big.Int, error) {
  593. var (
  594. ret0 = new(*big.Int)
  595. )
  596. out := ret0
  597. err := _Hermez.contract.Call(opts, out, "stateRootMap", arg0)
  598. return *ret0, tracerr.Wrap(err)
  599. }
  600. // StateRootMap is a free data retrieval call binding the contract method 0x9e00d7ea.
  601. //
  602. // Solidity: function stateRootMap(uint32 ) view returns(uint256)
  603. func (_Hermez *HermezSession) StateRootMap(arg0 uint32) (*big.Int, error) {
  604. return _Hermez.Contract.StateRootMap(&_Hermez.CallOpts, arg0)
  605. }
  606. // StateRootMap is a free data retrieval call binding the contract method 0x9e00d7ea.
  607. //
  608. // Solidity: function stateRootMap(uint32 ) view returns(uint256)
  609. func (_Hermez *HermezCallerSession) StateRootMap(arg0 uint32) (*big.Int, error) {
  610. return _Hermez.Contract.StateRootMap(&_Hermez.CallOpts, arg0)
  611. }
  612. // TokenExchange is a free data retrieval call binding the contract method 0x0dd94b96.
  613. //
  614. // Solidity: function tokenExchange(address ) view returns(uint64)
  615. func (_Hermez *HermezCaller) TokenExchange(opts *bind.CallOpts, arg0 common.Address) (uint64, error) {
  616. var (
  617. ret0 = new(uint64)
  618. )
  619. out := ret0
  620. err := _Hermez.contract.Call(opts, out, "tokenExchange", arg0)
  621. return *ret0, tracerr.Wrap(err)
  622. }
  623. // TokenExchange is a free data retrieval call binding the contract method 0x0dd94b96.
  624. //
  625. // Solidity: function tokenExchange(address ) view returns(uint64)
  626. func (_Hermez *HermezSession) TokenExchange(arg0 common.Address) (uint64, error) {
  627. return _Hermez.Contract.TokenExchange(&_Hermez.CallOpts, arg0)
  628. }
  629. // TokenExchange is a free data retrieval call binding the contract method 0x0dd94b96.
  630. //
  631. // Solidity: function tokenExchange(address ) view returns(uint64)
  632. func (_Hermez *HermezCallerSession) TokenExchange(arg0 common.Address) (uint64, error) {
  633. return _Hermez.Contract.TokenExchange(&_Hermez.CallOpts, arg0)
  634. }
  635. // TokenHEZ is a free data retrieval call binding the contract method 0x79a135e3.
  636. //
  637. // Solidity: function tokenHEZ() view returns(address)
  638. func (_Hermez *HermezCaller) TokenHEZ(opts *bind.CallOpts) (common.Address, error) {
  639. var (
  640. ret0 = new(common.Address)
  641. )
  642. out := ret0
  643. err := _Hermez.contract.Call(opts, out, "tokenHEZ")
  644. return *ret0, tracerr.Wrap(err)
  645. }
  646. // TokenHEZ is a free data retrieval call binding the contract method 0x79a135e3.
  647. //
  648. // Solidity: function tokenHEZ() view returns(address)
  649. func (_Hermez *HermezSession) TokenHEZ() (common.Address, error) {
  650. return _Hermez.Contract.TokenHEZ(&_Hermez.CallOpts)
  651. }
  652. // TokenHEZ is a free data retrieval call binding the contract method 0x79a135e3.
  653. //
  654. // Solidity: function tokenHEZ() view returns(address)
  655. func (_Hermez *HermezCallerSession) TokenHEZ() (common.Address, error) {
  656. return _Hermez.Contract.TokenHEZ(&_Hermez.CallOpts)
  657. }
  658. // TokenList is a free data retrieval call binding the contract method 0x9ead7222.
  659. //
  660. // Solidity: function tokenList(uint256 ) view returns(address)
  661. func (_Hermez *HermezCaller) TokenList(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error) {
  662. var (
  663. ret0 = new(common.Address)
  664. )
  665. out := ret0
  666. err := _Hermez.contract.Call(opts, out, "tokenList", arg0)
  667. return *ret0, tracerr.Wrap(err)
  668. }
  669. // TokenList is a free data retrieval call binding the contract method 0x9ead7222.
  670. //
  671. // Solidity: function tokenList(uint256 ) view returns(address)
  672. func (_Hermez *HermezSession) TokenList(arg0 *big.Int) (common.Address, error) {
  673. return _Hermez.Contract.TokenList(&_Hermez.CallOpts, arg0)
  674. }
  675. // TokenList is a free data retrieval call binding the contract method 0x9ead7222.
  676. //
  677. // Solidity: function tokenList(uint256 ) view returns(address)
  678. func (_Hermez *HermezCallerSession) TokenList(arg0 *big.Int) (common.Address, error) {
  679. return _Hermez.Contract.TokenList(&_Hermez.CallOpts, arg0)
  680. }
  681. // TokenMap is a free data retrieval call binding the contract method 0x004aca6e.
  682. //
  683. // Solidity: function tokenMap(address ) view returns(uint256)
  684. func (_Hermez *HermezCaller) TokenMap(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error) {
  685. var (
  686. ret0 = new(*big.Int)
  687. )
  688. out := ret0
  689. err := _Hermez.contract.Call(opts, out, "tokenMap", arg0)
  690. return *ret0, tracerr.Wrap(err)
  691. }
  692. // TokenMap is a free data retrieval call binding the contract method 0x004aca6e.
  693. //
  694. // Solidity: function tokenMap(address ) view returns(uint256)
  695. func (_Hermez *HermezSession) TokenMap(arg0 common.Address) (*big.Int, error) {
  696. return _Hermez.Contract.TokenMap(&_Hermez.CallOpts, arg0)
  697. }
  698. // TokenMap is a free data retrieval call binding the contract method 0x004aca6e.
  699. //
  700. // Solidity: function tokenMap(address ) view returns(uint256)
  701. func (_Hermez *HermezCallerSession) TokenMap(arg0 common.Address) (*big.Int, error) {
  702. return _Hermez.Contract.TokenMap(&_Hermez.CallOpts, arg0)
  703. }
  704. // WithdrawDelayerContract is a free data retrieval call binding the contract method 0x1b0a8223.
  705. //
  706. // Solidity: function withdrawDelayerContract() view returns(address)
  707. func (_Hermez *HermezCaller) WithdrawDelayerContract(opts *bind.CallOpts) (common.Address, error) {
  708. var (
  709. ret0 = new(common.Address)
  710. )
  711. out := ret0
  712. err := _Hermez.contract.Call(opts, out, "withdrawDelayerContract")
  713. return *ret0, tracerr.Wrap(err)
  714. }
  715. // WithdrawDelayerContract is a free data retrieval call binding the contract method 0x1b0a8223.
  716. //
  717. // Solidity: function withdrawDelayerContract() view returns(address)
  718. func (_Hermez *HermezSession) WithdrawDelayerContract() (common.Address, error) {
  719. return _Hermez.Contract.WithdrawDelayerContract(&_Hermez.CallOpts)
  720. }
  721. // WithdrawDelayerContract is a free data retrieval call binding the contract method 0x1b0a8223.
  722. //
  723. // Solidity: function withdrawDelayerContract() view returns(address)
  724. func (_Hermez *HermezCallerSession) WithdrawDelayerContract() (common.Address, error) {
  725. return _Hermez.Contract.WithdrawDelayerContract(&_Hermez.CallOpts)
  726. }
  727. // WithdrawVerifier is a free data retrieval call binding the contract method 0x864eb164.
  728. //
  729. // Solidity: function withdrawVerifier() view returns(address)
  730. func (_Hermez *HermezCaller) WithdrawVerifier(opts *bind.CallOpts) (common.Address, error) {
  731. var (
  732. ret0 = new(common.Address)
  733. )
  734. out := ret0
  735. err := _Hermez.contract.Call(opts, out, "withdrawVerifier")
  736. return *ret0, tracerr.Wrap(err)
  737. }
  738. // WithdrawVerifier is a free data retrieval call binding the contract method 0x864eb164.
  739. //
  740. // Solidity: function withdrawVerifier() view returns(address)
  741. func (_Hermez *HermezSession) WithdrawVerifier() (common.Address, error) {
  742. return _Hermez.Contract.WithdrawVerifier(&_Hermez.CallOpts)
  743. }
  744. // WithdrawVerifier is a free data retrieval call binding the contract method 0x864eb164.
  745. //
  746. // Solidity: function withdrawVerifier() view returns(address)
  747. func (_Hermez *HermezCallerSession) WithdrawVerifier() (common.Address, error) {
  748. return _Hermez.Contract.WithdrawVerifier(&_Hermez.CallOpts)
  749. }
  750. // WithdrawalDelay is a free data retrieval call binding the contract method 0xa7ab6961.
  751. //
  752. // Solidity: function withdrawalDelay() view returns(uint64)
  753. func (_Hermez *HermezCaller) WithdrawalDelay(opts *bind.CallOpts) (uint64, error) {
  754. var (
  755. ret0 = new(uint64)
  756. )
  757. out := ret0
  758. err := _Hermez.contract.Call(opts, out, "withdrawalDelay")
  759. return *ret0, tracerr.Wrap(err)
  760. }
  761. // WithdrawalDelay is a free data retrieval call binding the contract method 0xa7ab6961.
  762. //
  763. // Solidity: function withdrawalDelay() view returns(uint64)
  764. func (_Hermez *HermezSession) WithdrawalDelay() (uint64, error) {
  765. return _Hermez.Contract.WithdrawalDelay(&_Hermez.CallOpts)
  766. }
  767. // WithdrawalDelay is a free data retrieval call binding the contract method 0xa7ab6961.
  768. //
  769. // Solidity: function withdrawalDelay() view returns(uint64)
  770. func (_Hermez *HermezCallerSession) WithdrawalDelay() (uint64, error) {
  771. return _Hermez.Contract.WithdrawalDelay(&_Hermez.CallOpts)
  772. }
  773. // AddL1Transaction is a paid mutator transaction binding the contract method 0x886df587.
  774. //
  775. // Solidity: function addL1Transaction(uint256 babyPubKey, uint48 fromIdx, uint16 loadAmountF, uint16 amountF, uint32 tokenID, uint48 toIdx, bytes permit) payable returns()
  776. func (_Hermez *HermezTransactor) AddL1Transaction(opts *bind.TransactOpts, babyPubKey *big.Int, fromIdx *big.Int, loadAmountF uint16, amountF uint16, tokenID uint32, toIdx *big.Int, permit []byte) (*types.Transaction, error) {
  777. return _Hermez.contract.Transact(opts, "addL1Transaction", babyPubKey, fromIdx, loadAmountF, amountF, tokenID, toIdx, permit)
  778. }
  779. // AddL1Transaction is a paid mutator transaction binding the contract method 0x886df587.
  780. //
  781. // Solidity: function addL1Transaction(uint256 babyPubKey, uint48 fromIdx, uint16 loadAmountF, uint16 amountF, uint32 tokenID, uint48 toIdx, bytes permit) payable returns()
  782. func (_Hermez *HermezSession) AddL1Transaction(babyPubKey *big.Int, fromIdx *big.Int, loadAmountF uint16, amountF uint16, tokenID uint32, toIdx *big.Int, permit []byte) (*types.Transaction, error) {
  783. return _Hermez.Contract.AddL1Transaction(&_Hermez.TransactOpts, babyPubKey, fromIdx, loadAmountF, amountF, tokenID, toIdx, permit)
  784. }
  785. // AddL1Transaction is a paid mutator transaction binding the contract method 0x886df587.
  786. //
  787. // Solidity: function addL1Transaction(uint256 babyPubKey, uint48 fromIdx, uint16 loadAmountF, uint16 amountF, uint32 tokenID, uint48 toIdx, bytes permit) payable returns()
  788. func (_Hermez *HermezTransactorSession) AddL1Transaction(babyPubKey *big.Int, fromIdx *big.Int, loadAmountF uint16, amountF uint16, tokenID uint32, toIdx *big.Int, permit []byte) (*types.Transaction, error) {
  789. return _Hermez.Contract.AddL1Transaction(&_Hermez.TransactOpts, babyPubKey, fromIdx, loadAmountF, amountF, tokenID, toIdx, permit)
  790. }
  791. // AddToken is a paid mutator transaction binding the contract method 0x70c2f1c0.
  792. //
  793. // Solidity: function addToken(address tokenAddress, bytes permit) returns()
  794. func (_Hermez *HermezTransactor) AddToken(opts *bind.TransactOpts, tokenAddress common.Address, permit []byte) (*types.Transaction, error) {
  795. return _Hermez.contract.Transact(opts, "addToken", tokenAddress, permit)
  796. }
  797. // AddToken is a paid mutator transaction binding the contract method 0x70c2f1c0.
  798. //
  799. // Solidity: function addToken(address tokenAddress, bytes permit) returns()
  800. func (_Hermez *HermezSession) AddToken(tokenAddress common.Address, permit []byte) (*types.Transaction, error) {
  801. return _Hermez.Contract.AddToken(&_Hermez.TransactOpts, tokenAddress, permit)
  802. }
  803. // AddToken is a paid mutator transaction binding the contract method 0x70c2f1c0.
  804. //
  805. // Solidity: function addToken(address tokenAddress, bytes permit) returns()
  806. func (_Hermez *HermezTransactorSession) AddToken(tokenAddress common.Address, permit []byte) (*types.Transaction, error) {
  807. return _Hermez.Contract.AddToken(&_Hermez.TransactOpts, tokenAddress, permit)
  808. }
  809. // ForgeBatch is a paid mutator transaction binding the contract method 0x6e7e1365.
  810. //
  811. // Solidity: function forgeBatch(uint48 newLastIdx, uint256 newStRoot, uint256 newExitRoot, bytes encodedL1CoordinatorTx, bytes l1L2TxsData, bytes feeIdxCoordinator, uint8 verifierIdx, bool l1Batch, uint256[2] proofA, uint256[2][2] proofB, uint256[2] proofC) returns()
  812. func (_Hermez *HermezTransactor) ForgeBatch(opts *bind.TransactOpts, newLastIdx *big.Int, newStRoot *big.Int, newExitRoot *big.Int, encodedL1CoordinatorTx []byte, l1L2TxsData []byte, feeIdxCoordinator []byte, verifierIdx uint8, l1Batch bool, proofA [2]*big.Int, proofB [2][2]*big.Int, proofC [2]*big.Int) (*types.Transaction, error) {
  813. return _Hermez.contract.Transact(opts, "forgeBatch", newLastIdx, newStRoot, newExitRoot, encodedL1CoordinatorTx, l1L2TxsData, feeIdxCoordinator, verifierIdx, l1Batch, proofA, proofB, proofC)
  814. }
  815. // ForgeBatch is a paid mutator transaction binding the contract method 0x6e7e1365.
  816. //
  817. // Solidity: function forgeBatch(uint48 newLastIdx, uint256 newStRoot, uint256 newExitRoot, bytes encodedL1CoordinatorTx, bytes l1L2TxsData, bytes feeIdxCoordinator, uint8 verifierIdx, bool l1Batch, uint256[2] proofA, uint256[2][2] proofB, uint256[2] proofC) returns()
  818. func (_Hermez *HermezSession) ForgeBatch(newLastIdx *big.Int, newStRoot *big.Int, newExitRoot *big.Int, encodedL1CoordinatorTx []byte, l1L2TxsData []byte, feeIdxCoordinator []byte, verifierIdx uint8, l1Batch bool, proofA [2]*big.Int, proofB [2][2]*big.Int, proofC [2]*big.Int) (*types.Transaction, error) {
  819. return _Hermez.Contract.ForgeBatch(&_Hermez.TransactOpts, newLastIdx, newStRoot, newExitRoot, encodedL1CoordinatorTx, l1L2TxsData, feeIdxCoordinator, verifierIdx, l1Batch, proofA, proofB, proofC)
  820. }
  821. // ForgeBatch is a paid mutator transaction binding the contract method 0x6e7e1365.
  822. //
  823. // Solidity: function forgeBatch(uint48 newLastIdx, uint256 newStRoot, uint256 newExitRoot, bytes encodedL1CoordinatorTx, bytes l1L2TxsData, bytes feeIdxCoordinator, uint8 verifierIdx, bool l1Batch, uint256[2] proofA, uint256[2][2] proofB, uint256[2] proofC) returns()
  824. func (_Hermez *HermezTransactorSession) ForgeBatch(newLastIdx *big.Int, newStRoot *big.Int, newExitRoot *big.Int, encodedL1CoordinatorTx []byte, l1L2TxsData []byte, feeIdxCoordinator []byte, verifierIdx uint8, l1Batch bool, proofA [2]*big.Int, proofB [2][2]*big.Int, proofC [2]*big.Int) (*types.Transaction, error) {
  825. return _Hermez.Contract.ForgeBatch(&_Hermez.TransactOpts, newLastIdx, newStRoot, newExitRoot, encodedL1CoordinatorTx, l1L2TxsData, feeIdxCoordinator, verifierIdx, l1Batch, proofA, proofB, proofC)
  826. }
  827. // InitializeHermez is a paid mutator transaction binding the contract method 0x599897e3.
  828. //
  829. // Solidity: function initializeHermez(address[] _verifiers, uint256[] _verifiersParams, address _withdrawVerifier, address _hermezAuctionContract, address _tokenHEZ, uint8 _forgeL1L2BatchTimeout, uint256 _feeAddToken, address _poseidon2Elements, address _poseidon3Elements, address _poseidon4Elements, address _hermezGovernanceAddress, uint64 _withdrawalDelay, address _withdrawDelayerContract) returns()
  830. func (_Hermez *HermezTransactor) InitializeHermez(opts *bind.TransactOpts, _verifiers []common.Address, _verifiersParams []*big.Int, _withdrawVerifier common.Address, _hermezAuctionContract common.Address, _tokenHEZ common.Address, _forgeL1L2BatchTimeout uint8, _feeAddToken *big.Int, _poseidon2Elements common.Address, _poseidon3Elements common.Address, _poseidon4Elements common.Address, _hermezGovernanceAddress common.Address, _withdrawalDelay uint64, _withdrawDelayerContract common.Address) (*types.Transaction, error) {
  831. return _Hermez.contract.Transact(opts, "initializeHermez", _verifiers, _verifiersParams, _withdrawVerifier, _hermezAuctionContract, _tokenHEZ, _forgeL1L2BatchTimeout, _feeAddToken, _poseidon2Elements, _poseidon3Elements, _poseidon4Elements, _hermezGovernanceAddress, _withdrawalDelay, _withdrawDelayerContract)
  832. }
  833. // InitializeHermez is a paid mutator transaction binding the contract method 0x599897e3.
  834. //
  835. // Solidity: function initializeHermez(address[] _verifiers, uint256[] _verifiersParams, address _withdrawVerifier, address _hermezAuctionContract, address _tokenHEZ, uint8 _forgeL1L2BatchTimeout, uint256 _feeAddToken, address _poseidon2Elements, address _poseidon3Elements, address _poseidon4Elements, address _hermezGovernanceAddress, uint64 _withdrawalDelay, address _withdrawDelayerContract) returns()
  836. func (_Hermez *HermezSession) InitializeHermez(_verifiers []common.Address, _verifiersParams []*big.Int, _withdrawVerifier common.Address, _hermezAuctionContract common.Address, _tokenHEZ common.Address, _forgeL1L2BatchTimeout uint8, _feeAddToken *big.Int, _poseidon2Elements common.Address, _poseidon3Elements common.Address, _poseidon4Elements common.Address, _hermezGovernanceAddress common.Address, _withdrawalDelay uint64, _withdrawDelayerContract common.Address) (*types.Transaction, error) {
  837. return _Hermez.Contract.InitializeHermez(&_Hermez.TransactOpts, _verifiers, _verifiersParams, _withdrawVerifier, _hermezAuctionContract, _tokenHEZ, _forgeL1L2BatchTimeout, _feeAddToken, _poseidon2Elements, _poseidon3Elements, _poseidon4Elements, _hermezGovernanceAddress, _withdrawalDelay, _withdrawDelayerContract)
  838. }
  839. // InitializeHermez is a paid mutator transaction binding the contract method 0x599897e3.
  840. //
  841. // Solidity: function initializeHermez(address[] _verifiers, uint256[] _verifiersParams, address _withdrawVerifier, address _hermezAuctionContract, address _tokenHEZ, uint8 _forgeL1L2BatchTimeout, uint256 _feeAddToken, address _poseidon2Elements, address _poseidon3Elements, address _poseidon4Elements, address _hermezGovernanceAddress, uint64 _withdrawalDelay, address _withdrawDelayerContract) returns()
  842. func (_Hermez *HermezTransactorSession) InitializeHermez(_verifiers []common.Address, _verifiersParams []*big.Int, _withdrawVerifier common.Address, _hermezAuctionContract common.Address, _tokenHEZ common.Address, _forgeL1L2BatchTimeout uint8, _feeAddToken *big.Int, _poseidon2Elements common.Address, _poseidon3Elements common.Address, _poseidon4Elements common.Address, _hermezGovernanceAddress common.Address, _withdrawalDelay uint64, _withdrawDelayerContract common.Address) (*types.Transaction, error) {
  843. return _Hermez.Contract.InitializeHermez(&_Hermez.TransactOpts, _verifiers, _verifiersParams, _withdrawVerifier, _hermezAuctionContract, _tokenHEZ, _forgeL1L2BatchTimeout, _feeAddToken, _poseidon2Elements, _poseidon3Elements, _poseidon4Elements, _hermezGovernanceAddress, _withdrawalDelay, _withdrawDelayerContract)
  844. }
  845. // SafeMode is a paid mutator transaction binding the contract method 0xabe3219c.
  846. //
  847. // Solidity: function safeMode() returns()
  848. func (_Hermez *HermezTransactor) SafeMode(opts *bind.TransactOpts) (*types.Transaction, error) {
  849. return _Hermez.contract.Transact(opts, "safeMode")
  850. }
  851. // SafeMode is a paid mutator transaction binding the contract method 0xabe3219c.
  852. //
  853. // Solidity: function safeMode() returns()
  854. func (_Hermez *HermezSession) SafeMode() (*types.Transaction, error) {
  855. return _Hermez.Contract.SafeMode(&_Hermez.TransactOpts)
  856. }
  857. // SafeMode is a paid mutator transaction binding the contract method 0xabe3219c.
  858. //
  859. // Solidity: function safeMode() returns()
  860. func (_Hermez *HermezTransactorSession) SafeMode() (*types.Transaction, error) {
  861. return _Hermez.Contract.SafeMode(&_Hermez.TransactOpts)
  862. }
  863. // UpdateBucketsParameters is a paid mutator transaction binding the contract method 0x68e95e53.
  864. //
  865. // Solidity: function updateBucketsParameters(uint256[4][5] arrayBuckets) returns()
  866. func (_Hermez *HermezTransactor) UpdateBucketsParameters(opts *bind.TransactOpts, arrayBuckets [5][4]*big.Int) (*types.Transaction, error) {
  867. return _Hermez.contract.Transact(opts, "updateBucketsParameters", arrayBuckets)
  868. }
  869. // UpdateBucketsParameters is a paid mutator transaction binding the contract method 0x68e95e53.
  870. //
  871. // Solidity: function updateBucketsParameters(uint256[4][5] arrayBuckets) returns()
  872. func (_Hermez *HermezSession) UpdateBucketsParameters(arrayBuckets [5][4]*big.Int) (*types.Transaction, error) {
  873. return _Hermez.Contract.UpdateBucketsParameters(&_Hermez.TransactOpts, arrayBuckets)
  874. }
  875. // UpdateBucketsParameters is a paid mutator transaction binding the contract method 0x68e95e53.
  876. //
  877. // Solidity: function updateBucketsParameters(uint256[4][5] arrayBuckets) returns()
  878. func (_Hermez *HermezTransactorSession) UpdateBucketsParameters(arrayBuckets [5][4]*big.Int) (*types.Transaction, error) {
  879. return _Hermez.Contract.UpdateBucketsParameters(&_Hermez.TransactOpts, arrayBuckets)
  880. }
  881. // UpdateFeeAddToken is a paid mutator transaction binding the contract method 0x314e5eda.
  882. //
  883. // Solidity: function updateFeeAddToken(uint256 newFeeAddToken) returns()
  884. func (_Hermez *HermezTransactor) UpdateFeeAddToken(opts *bind.TransactOpts, newFeeAddToken *big.Int) (*types.Transaction, error) {
  885. return _Hermez.contract.Transact(opts, "updateFeeAddToken", newFeeAddToken)
  886. }
  887. // UpdateFeeAddToken is a paid mutator transaction binding the contract method 0x314e5eda.
  888. //
  889. // Solidity: function updateFeeAddToken(uint256 newFeeAddToken) returns()
  890. func (_Hermez *HermezSession) UpdateFeeAddToken(newFeeAddToken *big.Int) (*types.Transaction, error) {
  891. return _Hermez.Contract.UpdateFeeAddToken(&_Hermez.TransactOpts, newFeeAddToken)
  892. }
  893. // UpdateFeeAddToken is a paid mutator transaction binding the contract method 0x314e5eda.
  894. //
  895. // Solidity: function updateFeeAddToken(uint256 newFeeAddToken) returns()
  896. func (_Hermez *HermezTransactorSession) UpdateFeeAddToken(newFeeAddToken *big.Int) (*types.Transaction, error) {
  897. return _Hermez.Contract.UpdateFeeAddToken(&_Hermez.TransactOpts, newFeeAddToken)
  898. }
  899. // UpdateForgeL1L2BatchTimeout is a paid mutator transaction binding the contract method 0xcbd7b5fb.
  900. //
  901. // Solidity: function updateForgeL1L2BatchTimeout(uint8 newForgeL1L2BatchTimeout) returns()
  902. func (_Hermez *HermezTransactor) UpdateForgeL1L2BatchTimeout(opts *bind.TransactOpts, newForgeL1L2BatchTimeout uint8) (*types.Transaction, error) {
  903. return _Hermez.contract.Transact(opts, "updateForgeL1L2BatchTimeout", newForgeL1L2BatchTimeout)
  904. }
  905. // UpdateForgeL1L2BatchTimeout is a paid mutator transaction binding the contract method 0xcbd7b5fb.
  906. //
  907. // Solidity: function updateForgeL1L2BatchTimeout(uint8 newForgeL1L2BatchTimeout) returns()
  908. func (_Hermez *HermezSession) UpdateForgeL1L2BatchTimeout(newForgeL1L2BatchTimeout uint8) (*types.Transaction, error) {
  909. return _Hermez.Contract.UpdateForgeL1L2BatchTimeout(&_Hermez.TransactOpts, newForgeL1L2BatchTimeout)
  910. }
  911. // UpdateForgeL1L2BatchTimeout is a paid mutator transaction binding the contract method 0xcbd7b5fb.
  912. //
  913. // Solidity: function updateForgeL1L2BatchTimeout(uint8 newForgeL1L2BatchTimeout) returns()
  914. func (_Hermez *HermezTransactorSession) UpdateForgeL1L2BatchTimeout(newForgeL1L2BatchTimeout uint8) (*types.Transaction, error) {
  915. return _Hermez.Contract.UpdateForgeL1L2BatchTimeout(&_Hermez.TransactOpts, newForgeL1L2BatchTimeout)
  916. }
  917. // UpdateTokenExchange is a paid mutator transaction binding the contract method 0x1a748c2d.
  918. //
  919. // Solidity: function updateTokenExchange(address[] addressArray, uint64[] valueArray) returns()
  920. func (_Hermez *HermezTransactor) UpdateTokenExchange(opts *bind.TransactOpts, addressArray []common.Address, valueArray []uint64) (*types.Transaction, error) {
  921. return _Hermez.contract.Transact(opts, "updateTokenExchange", addressArray, valueArray)
  922. }
  923. // UpdateTokenExchange is a paid mutator transaction binding the contract method 0x1a748c2d.
  924. //
  925. // Solidity: function updateTokenExchange(address[] addressArray, uint64[] valueArray) returns()
  926. func (_Hermez *HermezSession) UpdateTokenExchange(addressArray []common.Address, valueArray []uint64) (*types.Transaction, error) {
  927. return _Hermez.Contract.UpdateTokenExchange(&_Hermez.TransactOpts, addressArray, valueArray)
  928. }
  929. // UpdateTokenExchange is a paid mutator transaction binding the contract method 0x1a748c2d.
  930. //
  931. // Solidity: function updateTokenExchange(address[] addressArray, uint64[] valueArray) returns()
  932. func (_Hermez *HermezTransactorSession) UpdateTokenExchange(addressArray []common.Address, valueArray []uint64) (*types.Transaction, error) {
  933. return _Hermez.Contract.UpdateTokenExchange(&_Hermez.TransactOpts, addressArray, valueArray)
  934. }
  935. // UpdateWithdrawalDelay is a paid mutator transaction binding the contract method 0xef4a5c4a.
  936. //
  937. // Solidity: function updateWithdrawalDelay(uint64 newWithdrawalDelay) returns()
  938. func (_Hermez *HermezTransactor) UpdateWithdrawalDelay(opts *bind.TransactOpts, newWithdrawalDelay uint64) (*types.Transaction, error) {
  939. return _Hermez.contract.Transact(opts, "updateWithdrawalDelay", newWithdrawalDelay)
  940. }
  941. // UpdateWithdrawalDelay is a paid mutator transaction binding the contract method 0xef4a5c4a.
  942. //
  943. // Solidity: function updateWithdrawalDelay(uint64 newWithdrawalDelay) returns()
  944. func (_Hermez *HermezSession) UpdateWithdrawalDelay(newWithdrawalDelay uint64) (*types.Transaction, error) {
  945. return _Hermez.Contract.UpdateWithdrawalDelay(&_Hermez.TransactOpts, newWithdrawalDelay)
  946. }
  947. // UpdateWithdrawalDelay is a paid mutator transaction binding the contract method 0xef4a5c4a.
  948. //
  949. // Solidity: function updateWithdrawalDelay(uint64 newWithdrawalDelay) returns()
  950. func (_Hermez *HermezTransactorSession) UpdateWithdrawalDelay(newWithdrawalDelay uint64) (*types.Transaction, error) {
  951. return _Hermez.Contract.UpdateWithdrawalDelay(&_Hermez.TransactOpts, newWithdrawalDelay)
  952. }
  953. // WithdrawCircuit is a paid mutator transaction binding the contract method 0x9ce2ad42.
  954. //
  955. // Solidity: function withdrawCircuit(uint256[2] proofA, uint256[2][2] proofB, uint256[2] proofC, uint32 tokenID, uint192 amount, uint32 numExitRoot, uint48 idx, bool instantWithdraw) returns()
  956. func (_Hermez *HermezTransactor) WithdrawCircuit(opts *bind.TransactOpts, proofA [2]*big.Int, proofB [2][2]*big.Int, proofC [2]*big.Int, tokenID uint32, amount *big.Int, numExitRoot uint32, idx *big.Int, instantWithdraw bool) (*types.Transaction, error) {
  957. return _Hermez.contract.Transact(opts, "withdrawCircuit", proofA, proofB, proofC, tokenID, amount, numExitRoot, idx, instantWithdraw)
  958. }
  959. // WithdrawCircuit is a paid mutator transaction binding the contract method 0x9ce2ad42.
  960. //
  961. // Solidity: function withdrawCircuit(uint256[2] proofA, uint256[2][2] proofB, uint256[2] proofC, uint32 tokenID, uint192 amount, uint32 numExitRoot, uint48 idx, bool instantWithdraw) returns()
  962. func (_Hermez *HermezSession) WithdrawCircuit(proofA [2]*big.Int, proofB [2][2]*big.Int, proofC [2]*big.Int, tokenID uint32, amount *big.Int, numExitRoot uint32, idx *big.Int, instantWithdraw bool) (*types.Transaction, error) {
  963. return _Hermez.Contract.WithdrawCircuit(&_Hermez.TransactOpts, proofA, proofB, proofC, tokenID, amount, numExitRoot, idx, instantWithdraw)
  964. }
  965. // WithdrawCircuit is a paid mutator transaction binding the contract method 0x9ce2ad42.
  966. //
  967. // Solidity: function withdrawCircuit(uint256[2] proofA, uint256[2][2] proofB, uint256[2] proofC, uint32 tokenID, uint192 amount, uint32 numExitRoot, uint48 idx, bool instantWithdraw) returns()
  968. func (_Hermez *HermezTransactorSession) WithdrawCircuit(proofA [2]*big.Int, proofB [2][2]*big.Int, proofC [2]*big.Int, tokenID uint32, amount *big.Int, numExitRoot uint32, idx *big.Int, instantWithdraw bool) (*types.Transaction, error) {
  969. return _Hermez.Contract.WithdrawCircuit(&_Hermez.TransactOpts, proofA, proofB, proofC, tokenID, amount, numExitRoot, idx, instantWithdraw)
  970. }
  971. // WithdrawMerkleProof is a paid mutator transaction binding the contract method 0xd9d4ca44.
  972. //
  973. // Solidity: function withdrawMerkleProof(uint32 tokenID, uint192 amount, uint256 babyPubKey, uint32 numExitRoot, uint256[] siblings, uint48 idx, bool instantWithdraw) returns()
  974. func (_Hermez *HermezTransactor) WithdrawMerkleProof(opts *bind.TransactOpts, tokenID uint32, amount *big.Int, babyPubKey *big.Int, numExitRoot uint32, siblings []*big.Int, idx *big.Int, instantWithdraw bool) (*types.Transaction, error) {
  975. return _Hermez.contract.Transact(opts, "withdrawMerkleProof", tokenID, amount, babyPubKey, numExitRoot, siblings, idx, instantWithdraw)
  976. }
  977. // WithdrawMerkleProof is a paid mutator transaction binding the contract method 0xd9d4ca44.
  978. //
  979. // Solidity: function withdrawMerkleProof(uint32 tokenID, uint192 amount, uint256 babyPubKey, uint32 numExitRoot, uint256[] siblings, uint48 idx, bool instantWithdraw) returns()
  980. func (_Hermez *HermezSession) WithdrawMerkleProof(tokenID uint32, amount *big.Int, babyPubKey *big.Int, numExitRoot uint32, siblings []*big.Int, idx *big.Int, instantWithdraw bool) (*types.Transaction, error) {
  981. return _Hermez.Contract.WithdrawMerkleProof(&_Hermez.TransactOpts, tokenID, amount, babyPubKey, numExitRoot, siblings, idx, instantWithdraw)
  982. }
  983. // WithdrawMerkleProof is a paid mutator transaction binding the contract method 0xd9d4ca44.
  984. //
  985. // Solidity: function withdrawMerkleProof(uint32 tokenID, uint192 amount, uint256 babyPubKey, uint32 numExitRoot, uint256[] siblings, uint48 idx, bool instantWithdraw) returns()
  986. func (_Hermez *HermezTransactorSession) WithdrawMerkleProof(tokenID uint32, amount *big.Int, babyPubKey *big.Int, numExitRoot uint32, siblings []*big.Int, idx *big.Int, instantWithdraw bool) (*types.Transaction, error) {
  987. return _Hermez.Contract.WithdrawMerkleProof(&_Hermez.TransactOpts, tokenID, amount, babyPubKey, numExitRoot, siblings, idx, instantWithdraw)
  988. }
  989. // HermezAddTokenIterator is returned from FilterAddToken and is used to iterate over the raw logs and unpacked data for AddToken events raised by the Hermez contract.
  990. type HermezAddTokenIterator struct {
  991. Event *HermezAddToken // Event containing the contract specifics and raw log
  992. contract *bind.BoundContract // Generic contract to use for unpacking event data
  993. event string // Event name to use for unpacking event data
  994. logs chan types.Log // Log channel receiving the found contract events
  995. sub ethereum.Subscription // Subscription for errors, completion and termination
  996. done bool // Whether the subscription completed delivering logs
  997. fail error // Occurred error to stop iteration
  998. }
  999. // Next advances the iterator to the subsequent event, returning whether there
  1000. // are any more events found. In case of a retrieval or parsing error, false is
  1001. // returned and Error() can be queried for the exact failure.
  1002. func (it *HermezAddTokenIterator) Next() bool {
  1003. // If the iterator failed, stop iterating
  1004. if it.fail != nil {
  1005. return false
  1006. }
  1007. // If the iterator completed, deliver directly whatever's available
  1008. if it.done {
  1009. select {
  1010. case log := <-it.logs:
  1011. it.Event = new(HermezAddToken)
  1012. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1013. it.fail = err
  1014. return false
  1015. }
  1016. it.Event.Raw = log
  1017. return true
  1018. default:
  1019. return false
  1020. }
  1021. }
  1022. // Iterator still in progress, wait for either a data or an error event
  1023. select {
  1024. case log := <-it.logs:
  1025. it.Event = new(HermezAddToken)
  1026. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1027. it.fail = err
  1028. return false
  1029. }
  1030. it.Event.Raw = log
  1031. return true
  1032. case err := <-it.sub.Err():
  1033. it.done = true
  1034. it.fail = err
  1035. return it.Next()
  1036. }
  1037. }
  1038. // Error returns any retrieval or parsing error occurred during filtering.
  1039. func (it *HermezAddTokenIterator) Error() error {
  1040. return it.fail
  1041. }
  1042. // Close terminates the iteration process, releasing any pending underlying
  1043. // resources.
  1044. func (it *HermezAddTokenIterator) Close() error {
  1045. it.sub.Unsubscribe()
  1046. return nil
  1047. }
  1048. // HermezAddToken represents a AddToken event raised by the Hermez contract.
  1049. type HermezAddToken struct {
  1050. TokenAddress common.Address
  1051. TokenID uint32
  1052. Raw types.Log // Blockchain specific contextual infos
  1053. }
  1054. // FilterAddToken is a free log retrieval operation binding the contract event 0xcb73d161edb7cd4fb1d92fedfd2555384fd997fd44ab507656f8c81e15747dde.
  1055. //
  1056. // Solidity: event AddToken(address indexed tokenAddress, uint32 tokenID)
  1057. func (_Hermez *HermezFilterer) FilterAddToken(opts *bind.FilterOpts, tokenAddress []common.Address) (*HermezAddTokenIterator, error) {
  1058. var tokenAddressRule []interface{}
  1059. for _, tokenAddressItem := range tokenAddress {
  1060. tokenAddressRule = append(tokenAddressRule, tokenAddressItem)
  1061. }
  1062. logs, sub, err := _Hermez.contract.FilterLogs(opts, "AddToken", tokenAddressRule)
  1063. if err != nil {
  1064. return nil, tracerr.Wrap(err)
  1065. }
  1066. return &HermezAddTokenIterator{contract: _Hermez.contract, event: "AddToken", logs: logs, sub: sub}, nil
  1067. }
  1068. // WatchAddToken is a free log subscription operation binding the contract event 0xcb73d161edb7cd4fb1d92fedfd2555384fd997fd44ab507656f8c81e15747dde.
  1069. //
  1070. // Solidity: event AddToken(address indexed tokenAddress, uint32 tokenID)
  1071. func (_Hermez *HermezFilterer) WatchAddToken(opts *bind.WatchOpts, sink chan<- *HermezAddToken, tokenAddress []common.Address) (event.Subscription, error) {
  1072. var tokenAddressRule []interface{}
  1073. for _, tokenAddressItem := range tokenAddress {
  1074. tokenAddressRule = append(tokenAddressRule, tokenAddressItem)
  1075. }
  1076. logs, sub, err := _Hermez.contract.WatchLogs(opts, "AddToken", tokenAddressRule)
  1077. if err != nil {
  1078. return nil, tracerr.Wrap(err)
  1079. }
  1080. return event.NewSubscription(func(quit <-chan struct{}) error {
  1081. defer sub.Unsubscribe()
  1082. for {
  1083. select {
  1084. case log := <-logs:
  1085. // New log arrived, parse the event and forward to the user
  1086. event := new(HermezAddToken)
  1087. if err := _Hermez.contract.UnpackLog(event, "AddToken", log); err != nil {
  1088. return tracerr.Wrap(err)
  1089. }
  1090. event.Raw = log
  1091. select {
  1092. case sink <- event:
  1093. case err := <-sub.Err():
  1094. return tracerr.Wrap(err)
  1095. case <-quit:
  1096. return nil
  1097. }
  1098. case err := <-sub.Err():
  1099. return tracerr.Wrap(err)
  1100. case <-quit:
  1101. return nil
  1102. }
  1103. }
  1104. }), nil
  1105. }
  1106. // ParseAddToken is a log parse operation binding the contract event 0xcb73d161edb7cd4fb1d92fedfd2555384fd997fd44ab507656f8c81e15747dde.
  1107. //
  1108. // Solidity: event AddToken(address indexed tokenAddress, uint32 tokenID)
  1109. func (_Hermez *HermezFilterer) ParseAddToken(log types.Log) (*HermezAddToken, error) {
  1110. event := new(HermezAddToken)
  1111. if err := _Hermez.contract.UnpackLog(event, "AddToken", log); err != nil {
  1112. return nil, tracerr.Wrap(err)
  1113. }
  1114. return event, nil
  1115. }
  1116. // HermezForgeBatchIterator is returned from FilterForgeBatch and is used to iterate over the raw logs and unpacked data for ForgeBatch events raised by the Hermez contract.
  1117. type HermezForgeBatchIterator struct {
  1118. Event *HermezForgeBatch // Event containing the contract specifics and raw log
  1119. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1120. event string // Event name to use for unpacking event data
  1121. logs chan types.Log // Log channel receiving the found contract events
  1122. sub ethereum.Subscription // Subscription for errors, completion and termination
  1123. done bool // Whether the subscription completed delivering logs
  1124. fail error // Occurred error to stop iteration
  1125. }
  1126. // Next advances the iterator to the subsequent event, returning whether there
  1127. // are any more events found. In case of a retrieval or parsing error, false is
  1128. // returned and Error() can be queried for the exact failure.
  1129. func (it *HermezForgeBatchIterator) Next() bool {
  1130. // If the iterator failed, stop iterating
  1131. if it.fail != nil {
  1132. return false
  1133. }
  1134. // If the iterator completed, deliver directly whatever's available
  1135. if it.done {
  1136. select {
  1137. case log := <-it.logs:
  1138. it.Event = new(HermezForgeBatch)
  1139. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1140. it.fail = err
  1141. return false
  1142. }
  1143. it.Event.Raw = log
  1144. return true
  1145. default:
  1146. return false
  1147. }
  1148. }
  1149. // Iterator still in progress, wait for either a data or an error event
  1150. select {
  1151. case log := <-it.logs:
  1152. it.Event = new(HermezForgeBatch)
  1153. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1154. it.fail = err
  1155. return false
  1156. }
  1157. it.Event.Raw = log
  1158. return true
  1159. case err := <-it.sub.Err():
  1160. it.done = true
  1161. it.fail = err
  1162. return it.Next()
  1163. }
  1164. }
  1165. // Error returns any retrieval or parsing error occurred during filtering.
  1166. func (it *HermezForgeBatchIterator) Error() error {
  1167. return it.fail
  1168. }
  1169. // Close terminates the iteration process, releasing any pending underlying
  1170. // resources.
  1171. func (it *HermezForgeBatchIterator) Close() error {
  1172. it.sub.Unsubscribe()
  1173. return nil
  1174. }
  1175. // HermezForgeBatch represents a ForgeBatch event raised by the Hermez contract.
  1176. type HermezForgeBatch struct {
  1177. BatchNum uint32
  1178. L1UserTxsLen uint16
  1179. Raw types.Log // Blockchain specific contextual infos
  1180. }
  1181. // FilterForgeBatch is a free log retrieval operation binding the contract event 0xe00040c8a3b0bf905636c26924e90520eafc5003324138236fddee2d34588618.
  1182. //
  1183. // Solidity: event ForgeBatch(uint32 indexed batchNum, uint16 l1UserTxsLen)
  1184. func (_Hermez *HermezFilterer) FilterForgeBatch(opts *bind.FilterOpts, batchNum []uint32) (*HermezForgeBatchIterator, error) {
  1185. var batchNumRule []interface{}
  1186. for _, batchNumItem := range batchNum {
  1187. batchNumRule = append(batchNumRule, batchNumItem)
  1188. }
  1189. logs, sub, err := _Hermez.contract.FilterLogs(opts, "ForgeBatch", batchNumRule)
  1190. if err != nil {
  1191. return nil, tracerr.Wrap(err)
  1192. }
  1193. return &HermezForgeBatchIterator{contract: _Hermez.contract, event: "ForgeBatch", logs: logs, sub: sub}, nil
  1194. }
  1195. // WatchForgeBatch is a free log subscription operation binding the contract event 0xe00040c8a3b0bf905636c26924e90520eafc5003324138236fddee2d34588618.
  1196. //
  1197. // Solidity: event ForgeBatch(uint32 indexed batchNum, uint16 l1UserTxsLen)
  1198. func (_Hermez *HermezFilterer) WatchForgeBatch(opts *bind.WatchOpts, sink chan<- *HermezForgeBatch, batchNum []uint32) (event.Subscription, error) {
  1199. var batchNumRule []interface{}
  1200. for _, batchNumItem := range batchNum {
  1201. batchNumRule = append(batchNumRule, batchNumItem)
  1202. }
  1203. logs, sub, err := _Hermez.contract.WatchLogs(opts, "ForgeBatch", batchNumRule)
  1204. if err != nil {
  1205. return nil, tracerr.Wrap(err)
  1206. }
  1207. return event.NewSubscription(func(quit <-chan struct{}) error {
  1208. defer sub.Unsubscribe()
  1209. for {
  1210. select {
  1211. case log := <-logs:
  1212. // New log arrived, parse the event and forward to the user
  1213. event := new(HermezForgeBatch)
  1214. if err := _Hermez.contract.UnpackLog(event, "ForgeBatch", log); err != nil {
  1215. return tracerr.Wrap(err)
  1216. }
  1217. event.Raw = log
  1218. select {
  1219. case sink <- event:
  1220. case err := <-sub.Err():
  1221. return tracerr.Wrap(err)
  1222. case <-quit:
  1223. return nil
  1224. }
  1225. case err := <-sub.Err():
  1226. return tracerr.Wrap(err)
  1227. case <-quit:
  1228. return nil
  1229. }
  1230. }
  1231. }), nil
  1232. }
  1233. // ParseForgeBatch is a log parse operation binding the contract event 0xe00040c8a3b0bf905636c26924e90520eafc5003324138236fddee2d34588618.
  1234. //
  1235. // Solidity: event ForgeBatch(uint32 indexed batchNum, uint16 l1UserTxsLen)
  1236. func (_Hermez *HermezFilterer) ParseForgeBatch(log types.Log) (*HermezForgeBatch, error) {
  1237. event := new(HermezForgeBatch)
  1238. if err := _Hermez.contract.UnpackLog(event, "ForgeBatch", log); err != nil {
  1239. return nil, tracerr.Wrap(err)
  1240. }
  1241. return event, nil
  1242. }
  1243. // HermezL1UserTxEventIterator is returned from FilterL1UserTxEvent and is used to iterate over the raw logs and unpacked data for L1UserTxEvent events raised by the Hermez contract.
  1244. type HermezL1UserTxEventIterator struct {
  1245. Event *HermezL1UserTxEvent // Event containing the contract specifics and raw log
  1246. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1247. event string // Event name to use for unpacking event data
  1248. logs chan types.Log // Log channel receiving the found contract events
  1249. sub ethereum.Subscription // Subscription for errors, completion and termination
  1250. done bool // Whether the subscription completed delivering logs
  1251. fail error // Occurred error to stop iteration
  1252. }
  1253. // Next advances the iterator to the subsequent event, returning whether there
  1254. // are any more events found. In case of a retrieval or parsing error, false is
  1255. // returned and Error() can be queried for the exact failure.
  1256. func (it *HermezL1UserTxEventIterator) Next() bool {
  1257. // If the iterator failed, stop iterating
  1258. if it.fail != nil {
  1259. return false
  1260. }
  1261. // If the iterator completed, deliver directly whatever's available
  1262. if it.done {
  1263. select {
  1264. case log := <-it.logs:
  1265. it.Event = new(HermezL1UserTxEvent)
  1266. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1267. it.fail = err
  1268. return false
  1269. }
  1270. it.Event.Raw = log
  1271. return true
  1272. default:
  1273. return false
  1274. }
  1275. }
  1276. // Iterator still in progress, wait for either a data or an error event
  1277. select {
  1278. case log := <-it.logs:
  1279. it.Event = new(HermezL1UserTxEvent)
  1280. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1281. it.fail = err
  1282. return false
  1283. }
  1284. it.Event.Raw = log
  1285. return true
  1286. case err := <-it.sub.Err():
  1287. it.done = true
  1288. it.fail = err
  1289. return it.Next()
  1290. }
  1291. }
  1292. // Error returns any retrieval or parsing error occurred during filtering.
  1293. func (it *HermezL1UserTxEventIterator) Error() error {
  1294. return it.fail
  1295. }
  1296. // Close terminates the iteration process, releasing any pending underlying
  1297. // resources.
  1298. func (it *HermezL1UserTxEventIterator) Close() error {
  1299. it.sub.Unsubscribe()
  1300. return nil
  1301. }
  1302. // HermezL1UserTxEvent represents a L1UserTxEvent event raised by the Hermez contract.
  1303. type HermezL1UserTxEvent struct {
  1304. QueueIndex uint32
  1305. Position uint8
  1306. L1UserTx []byte
  1307. Raw types.Log // Blockchain specific contextual infos
  1308. }
  1309. // FilterL1UserTxEvent is a free log retrieval operation binding the contract event 0xdd5c7c5ea02d3c5d1621513faa6de53d474ee6f111eda6352a63e3dfe8c40119.
  1310. //
  1311. // Solidity: event L1UserTxEvent(uint32 indexed queueIndex, uint8 indexed position, bytes l1UserTx)
  1312. func (_Hermez *HermezFilterer) FilterL1UserTxEvent(opts *bind.FilterOpts, queueIndex []uint32, position []uint8) (*HermezL1UserTxEventIterator, error) {
  1313. var queueIndexRule []interface{}
  1314. for _, queueIndexItem := range queueIndex {
  1315. queueIndexRule = append(queueIndexRule, queueIndexItem)
  1316. }
  1317. var positionRule []interface{}
  1318. for _, positionItem := range position {
  1319. positionRule = append(positionRule, positionItem)
  1320. }
  1321. logs, sub, err := _Hermez.contract.FilterLogs(opts, "L1UserTxEvent", queueIndexRule, positionRule)
  1322. if err != nil {
  1323. return nil, tracerr.Wrap(err)
  1324. }
  1325. return &HermezL1UserTxEventIterator{contract: _Hermez.contract, event: "L1UserTxEvent", logs: logs, sub: sub}, nil
  1326. }
  1327. // WatchL1UserTxEvent is a free log subscription operation binding the contract event 0xdd5c7c5ea02d3c5d1621513faa6de53d474ee6f111eda6352a63e3dfe8c40119.
  1328. //
  1329. // Solidity: event L1UserTxEvent(uint32 indexed queueIndex, uint8 indexed position, bytes l1UserTx)
  1330. func (_Hermez *HermezFilterer) WatchL1UserTxEvent(opts *bind.WatchOpts, sink chan<- *HermezL1UserTxEvent, queueIndex []uint32, position []uint8) (event.Subscription, error) {
  1331. var queueIndexRule []interface{}
  1332. for _, queueIndexItem := range queueIndex {
  1333. queueIndexRule = append(queueIndexRule, queueIndexItem)
  1334. }
  1335. var positionRule []interface{}
  1336. for _, positionItem := range position {
  1337. positionRule = append(positionRule, positionItem)
  1338. }
  1339. logs, sub, err := _Hermez.contract.WatchLogs(opts, "L1UserTxEvent", queueIndexRule, positionRule)
  1340. if err != nil {
  1341. return nil, tracerr.Wrap(err)
  1342. }
  1343. return event.NewSubscription(func(quit <-chan struct{}) error {
  1344. defer sub.Unsubscribe()
  1345. for {
  1346. select {
  1347. case log := <-logs:
  1348. // New log arrived, parse the event and forward to the user
  1349. event := new(HermezL1UserTxEvent)
  1350. if err := _Hermez.contract.UnpackLog(event, "L1UserTxEvent", log); err != nil {
  1351. return tracerr.Wrap(err)
  1352. }
  1353. event.Raw = log
  1354. select {
  1355. case sink <- event:
  1356. case err := <-sub.Err():
  1357. return tracerr.Wrap(err)
  1358. case <-quit:
  1359. return nil
  1360. }
  1361. case err := <-sub.Err():
  1362. return tracerr.Wrap(err)
  1363. case <-quit:
  1364. return nil
  1365. }
  1366. }
  1367. }), nil
  1368. }
  1369. // ParseL1UserTxEvent is a log parse operation binding the contract event 0xdd5c7c5ea02d3c5d1621513faa6de53d474ee6f111eda6352a63e3dfe8c40119.
  1370. //
  1371. // Solidity: event L1UserTxEvent(uint32 indexed queueIndex, uint8 indexed position, bytes l1UserTx)
  1372. func (_Hermez *HermezFilterer) ParseL1UserTxEvent(log types.Log) (*HermezL1UserTxEvent, error) {
  1373. event := new(HermezL1UserTxEvent)
  1374. if err := _Hermez.contract.UnpackLog(event, "L1UserTxEvent", log); err != nil {
  1375. return nil, tracerr.Wrap(err)
  1376. }
  1377. return event, nil
  1378. }
  1379. // HermezSafeModeIterator is returned from FilterSafeMode and is used to iterate over the raw logs and unpacked data for SafeMode events raised by the Hermez contract.
  1380. type HermezSafeModeIterator struct {
  1381. Event *HermezSafeMode // Event containing the contract specifics and raw log
  1382. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1383. event string // Event name to use for unpacking event data
  1384. logs chan types.Log // Log channel receiving the found contract events
  1385. sub ethereum.Subscription // Subscription for errors, completion and termination
  1386. done bool // Whether the subscription completed delivering logs
  1387. fail error // Occurred error to stop iteration
  1388. }
  1389. // Next advances the iterator to the subsequent event, returning whether there
  1390. // are any more events found. In case of a retrieval or parsing error, false is
  1391. // returned and Error() can be queried for the exact failure.
  1392. func (it *HermezSafeModeIterator) Next() bool {
  1393. // If the iterator failed, stop iterating
  1394. if it.fail != nil {
  1395. return false
  1396. }
  1397. // If the iterator completed, deliver directly whatever's available
  1398. if it.done {
  1399. select {
  1400. case log := <-it.logs:
  1401. it.Event = new(HermezSafeMode)
  1402. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1403. it.fail = err
  1404. return false
  1405. }
  1406. it.Event.Raw = log
  1407. return true
  1408. default:
  1409. return false
  1410. }
  1411. }
  1412. // Iterator still in progress, wait for either a data or an error event
  1413. select {
  1414. case log := <-it.logs:
  1415. it.Event = new(HermezSafeMode)
  1416. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1417. it.fail = err
  1418. return false
  1419. }
  1420. it.Event.Raw = log
  1421. return true
  1422. case err := <-it.sub.Err():
  1423. it.done = true
  1424. it.fail = err
  1425. return it.Next()
  1426. }
  1427. }
  1428. // Error returns any retrieval or parsing error occurred during filtering.
  1429. func (it *HermezSafeModeIterator) Error() error {
  1430. return it.fail
  1431. }
  1432. // Close terminates the iteration process, releasing any pending underlying
  1433. // resources.
  1434. func (it *HermezSafeModeIterator) Close() error {
  1435. it.sub.Unsubscribe()
  1436. return nil
  1437. }
  1438. // HermezSafeMode represents a SafeMode event raised by the Hermez contract.
  1439. type HermezSafeMode struct {
  1440. Raw types.Log // Blockchain specific contextual infos
  1441. }
  1442. // FilterSafeMode is a free log retrieval operation binding the contract event 0x0410e6ef2bd89ecf5b2dc2f62157f9863e09e89cb7c7f1abb7d4ec43a6019d1e.
  1443. //
  1444. // Solidity: event SafeMode()
  1445. func (_Hermez *HermezFilterer) FilterSafeMode(opts *bind.FilterOpts) (*HermezSafeModeIterator, error) {
  1446. logs, sub, err := _Hermez.contract.FilterLogs(opts, "SafeMode")
  1447. if err != nil {
  1448. return nil, tracerr.Wrap(err)
  1449. }
  1450. return &HermezSafeModeIterator{contract: _Hermez.contract, event: "SafeMode", logs: logs, sub: sub}, nil
  1451. }
  1452. // WatchSafeMode is a free log subscription operation binding the contract event 0x0410e6ef2bd89ecf5b2dc2f62157f9863e09e89cb7c7f1abb7d4ec43a6019d1e.
  1453. //
  1454. // Solidity: event SafeMode()
  1455. func (_Hermez *HermezFilterer) WatchSafeMode(opts *bind.WatchOpts, sink chan<- *HermezSafeMode) (event.Subscription, error) {
  1456. logs, sub, err := _Hermez.contract.WatchLogs(opts, "SafeMode")
  1457. if err != nil {
  1458. return nil, tracerr.Wrap(err)
  1459. }
  1460. return event.NewSubscription(func(quit <-chan struct{}) error {
  1461. defer sub.Unsubscribe()
  1462. for {
  1463. select {
  1464. case log := <-logs:
  1465. // New log arrived, parse the event and forward to the user
  1466. event := new(HermezSafeMode)
  1467. if err := _Hermez.contract.UnpackLog(event, "SafeMode", log); err != nil {
  1468. return tracerr.Wrap(err)
  1469. }
  1470. event.Raw = log
  1471. select {
  1472. case sink <- event:
  1473. case err := <-sub.Err():
  1474. return tracerr.Wrap(err)
  1475. case <-quit:
  1476. return nil
  1477. }
  1478. case err := <-sub.Err():
  1479. return tracerr.Wrap(err)
  1480. case <-quit:
  1481. return nil
  1482. }
  1483. }
  1484. }), nil
  1485. }
  1486. // ParseSafeMode is a log parse operation binding the contract event 0x0410e6ef2bd89ecf5b2dc2f62157f9863e09e89cb7c7f1abb7d4ec43a6019d1e.
  1487. //
  1488. // Solidity: event SafeMode()
  1489. func (_Hermez *HermezFilterer) ParseSafeMode(log types.Log) (*HermezSafeMode, error) {
  1490. event := new(HermezSafeMode)
  1491. if err := _Hermez.contract.UnpackLog(event, "SafeMode", log); err != nil {
  1492. return nil, tracerr.Wrap(err)
  1493. }
  1494. return event, nil
  1495. }
  1496. // HermezUpdateBucketWithdrawIterator is returned from FilterUpdateBucketWithdraw and is used to iterate over the raw logs and unpacked data for UpdateBucketWithdraw events raised by the Hermez contract.
  1497. type HermezUpdateBucketWithdrawIterator struct {
  1498. Event *HermezUpdateBucketWithdraw // Event containing the contract specifics and raw log
  1499. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1500. event string // Event name to use for unpacking event data
  1501. logs chan types.Log // Log channel receiving the found contract events
  1502. sub ethereum.Subscription // Subscription for errors, completion and termination
  1503. done bool // Whether the subscription completed delivering logs
  1504. fail error // Occurred error to stop iteration
  1505. }
  1506. // Next advances the iterator to the subsequent event, returning whether there
  1507. // are any more events found. In case of a retrieval or parsing error, false is
  1508. // returned and Error() can be queried for the exact failure.
  1509. func (it *HermezUpdateBucketWithdrawIterator) Next() bool {
  1510. // If the iterator failed, stop iterating
  1511. if it.fail != nil {
  1512. return false
  1513. }
  1514. // If the iterator completed, deliver directly whatever's available
  1515. if it.done {
  1516. select {
  1517. case log := <-it.logs:
  1518. it.Event = new(HermezUpdateBucketWithdraw)
  1519. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1520. it.fail = err
  1521. return false
  1522. }
  1523. it.Event.Raw = log
  1524. return true
  1525. default:
  1526. return false
  1527. }
  1528. }
  1529. // Iterator still in progress, wait for either a data or an error event
  1530. select {
  1531. case log := <-it.logs:
  1532. it.Event = new(HermezUpdateBucketWithdraw)
  1533. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1534. it.fail = err
  1535. return false
  1536. }
  1537. it.Event.Raw = log
  1538. return true
  1539. case err := <-it.sub.Err():
  1540. it.done = true
  1541. it.fail = err
  1542. return it.Next()
  1543. }
  1544. }
  1545. // Error returns any retrieval or parsing error occurred during filtering.
  1546. func (it *HermezUpdateBucketWithdrawIterator) Error() error {
  1547. return it.fail
  1548. }
  1549. // Close terminates the iteration process, releasing any pending underlying
  1550. // resources.
  1551. func (it *HermezUpdateBucketWithdrawIterator) Close() error {
  1552. it.sub.Unsubscribe()
  1553. return nil
  1554. }
  1555. // HermezUpdateBucketWithdraw represents a UpdateBucketWithdraw event raised by the Hermez contract.
  1556. type HermezUpdateBucketWithdraw struct {
  1557. NumBucket uint8
  1558. BlockStamp *big.Int
  1559. Withdrawals *big.Int
  1560. Raw types.Log // Blockchain specific contextual infos
  1561. }
  1562. // FilterUpdateBucketWithdraw is a free log retrieval operation binding the contract event 0xa35fe9a9e21cdbbc4774aa8a56e7b97ea9c06afc09ffb06af593d26951e350aa.
  1563. //
  1564. // Solidity: event UpdateBucketWithdraw(uint8 indexed numBucket, uint256 indexed blockStamp, uint256 withdrawals)
  1565. func (_Hermez *HermezFilterer) FilterUpdateBucketWithdraw(opts *bind.FilterOpts, numBucket []uint8, blockStamp []*big.Int) (*HermezUpdateBucketWithdrawIterator, error) {
  1566. var numBucketRule []interface{}
  1567. for _, numBucketItem := range numBucket {
  1568. numBucketRule = append(numBucketRule, numBucketItem)
  1569. }
  1570. var blockStampRule []interface{}
  1571. for _, blockStampItem := range blockStamp {
  1572. blockStampRule = append(blockStampRule, blockStampItem)
  1573. }
  1574. logs, sub, err := _Hermez.contract.FilterLogs(opts, "UpdateBucketWithdraw", numBucketRule, blockStampRule)
  1575. if err != nil {
  1576. return nil, tracerr.Wrap(err)
  1577. }
  1578. return &HermezUpdateBucketWithdrawIterator{contract: _Hermez.contract, event: "UpdateBucketWithdraw", logs: logs, sub: sub}, nil
  1579. }
  1580. // WatchUpdateBucketWithdraw is a free log subscription operation binding the contract event 0xa35fe9a9e21cdbbc4774aa8a56e7b97ea9c06afc09ffb06af593d26951e350aa.
  1581. //
  1582. // Solidity: event UpdateBucketWithdraw(uint8 indexed numBucket, uint256 indexed blockStamp, uint256 withdrawals)
  1583. func (_Hermez *HermezFilterer) WatchUpdateBucketWithdraw(opts *bind.WatchOpts, sink chan<- *HermezUpdateBucketWithdraw, numBucket []uint8, blockStamp []*big.Int) (event.Subscription, error) {
  1584. var numBucketRule []interface{}
  1585. for _, numBucketItem := range numBucket {
  1586. numBucketRule = append(numBucketRule, numBucketItem)
  1587. }
  1588. var blockStampRule []interface{}
  1589. for _, blockStampItem := range blockStamp {
  1590. blockStampRule = append(blockStampRule, blockStampItem)
  1591. }
  1592. logs, sub, err := _Hermez.contract.WatchLogs(opts, "UpdateBucketWithdraw", numBucketRule, blockStampRule)
  1593. if err != nil {
  1594. return nil, tracerr.Wrap(err)
  1595. }
  1596. return event.NewSubscription(func(quit <-chan struct{}) error {
  1597. defer sub.Unsubscribe()
  1598. for {
  1599. select {
  1600. case log := <-logs:
  1601. // New log arrived, parse the event and forward to the user
  1602. event := new(HermezUpdateBucketWithdraw)
  1603. if err := _Hermez.contract.UnpackLog(event, "UpdateBucketWithdraw", log); err != nil {
  1604. return tracerr.Wrap(err)
  1605. }
  1606. event.Raw = log
  1607. select {
  1608. case sink <- event:
  1609. case err := <-sub.Err():
  1610. return tracerr.Wrap(err)
  1611. case <-quit:
  1612. return nil
  1613. }
  1614. case err := <-sub.Err():
  1615. return tracerr.Wrap(err)
  1616. case <-quit:
  1617. return nil
  1618. }
  1619. }
  1620. }), nil
  1621. }
  1622. // ParseUpdateBucketWithdraw is a log parse operation binding the contract event 0xa35fe9a9e21cdbbc4774aa8a56e7b97ea9c06afc09ffb06af593d26951e350aa.
  1623. //
  1624. // Solidity: event UpdateBucketWithdraw(uint8 indexed numBucket, uint256 indexed blockStamp, uint256 withdrawals)
  1625. func (_Hermez *HermezFilterer) ParseUpdateBucketWithdraw(log types.Log) (*HermezUpdateBucketWithdraw, error) {
  1626. event := new(HermezUpdateBucketWithdraw)
  1627. if err := _Hermez.contract.UnpackLog(event, "UpdateBucketWithdraw", log); err != nil {
  1628. return nil, tracerr.Wrap(err)
  1629. }
  1630. return event, nil
  1631. }
  1632. // HermezUpdateBucketsParametersIterator is returned from FilterUpdateBucketsParameters and is used to iterate over the raw logs and unpacked data for UpdateBucketsParameters events raised by the Hermez contract.
  1633. type HermezUpdateBucketsParametersIterator struct {
  1634. Event *HermezUpdateBucketsParameters // Event containing the contract specifics and raw log
  1635. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1636. event string // Event name to use for unpacking event data
  1637. logs chan types.Log // Log channel receiving the found contract events
  1638. sub ethereum.Subscription // Subscription for errors, completion and termination
  1639. done bool // Whether the subscription completed delivering logs
  1640. fail error // Occurred error to stop iteration
  1641. }
  1642. // Next advances the iterator to the subsequent event, returning whether there
  1643. // are any more events found. In case of a retrieval or parsing error, false is
  1644. // returned and Error() can be queried for the exact failure.
  1645. func (it *HermezUpdateBucketsParametersIterator) Next() bool {
  1646. // If the iterator failed, stop iterating
  1647. if it.fail != nil {
  1648. return false
  1649. }
  1650. // If the iterator completed, deliver directly whatever's available
  1651. if it.done {
  1652. select {
  1653. case log := <-it.logs:
  1654. it.Event = new(HermezUpdateBucketsParameters)
  1655. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1656. it.fail = err
  1657. return false
  1658. }
  1659. it.Event.Raw = log
  1660. return true
  1661. default:
  1662. return false
  1663. }
  1664. }
  1665. // Iterator still in progress, wait for either a data or an error event
  1666. select {
  1667. case log := <-it.logs:
  1668. it.Event = new(HermezUpdateBucketsParameters)
  1669. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1670. it.fail = err
  1671. return false
  1672. }
  1673. it.Event.Raw = log
  1674. return true
  1675. case err := <-it.sub.Err():
  1676. it.done = true
  1677. it.fail = err
  1678. return it.Next()
  1679. }
  1680. }
  1681. // Error returns any retrieval or parsing error occurred during filtering.
  1682. func (it *HermezUpdateBucketsParametersIterator) Error() error {
  1683. return it.fail
  1684. }
  1685. // Close terminates the iteration process, releasing any pending underlying
  1686. // resources.
  1687. func (it *HermezUpdateBucketsParametersIterator) Close() error {
  1688. it.sub.Unsubscribe()
  1689. return nil
  1690. }
  1691. // HermezUpdateBucketsParameters represents a UpdateBucketsParameters event raised by the Hermez contract.
  1692. type HermezUpdateBucketsParameters struct {
  1693. ArrayBuckets [5][4]*big.Int
  1694. Raw types.Log // Blockchain specific contextual infos
  1695. }
  1696. // FilterUpdateBucketsParameters is a free log retrieval operation binding the contract event 0x3c39a1e91c69d4cfeacb11190befc2b1c983746e6b21ab2441a3051de88d4480.
  1697. //
  1698. // Solidity: event UpdateBucketsParameters(uint256[4][5] arrayBuckets)
  1699. func (_Hermez *HermezFilterer) FilterUpdateBucketsParameters(opts *bind.FilterOpts) (*HermezUpdateBucketsParametersIterator, error) {
  1700. logs, sub, err := _Hermez.contract.FilterLogs(opts, "UpdateBucketsParameters")
  1701. if err != nil {
  1702. return nil, tracerr.Wrap(err)
  1703. }
  1704. return &HermezUpdateBucketsParametersIterator{contract: _Hermez.contract, event: "UpdateBucketsParameters", logs: logs, sub: sub}, nil
  1705. }
  1706. // WatchUpdateBucketsParameters is a free log subscription operation binding the contract event 0x3c39a1e91c69d4cfeacb11190befc2b1c983746e6b21ab2441a3051de88d4480.
  1707. //
  1708. // Solidity: event UpdateBucketsParameters(uint256[4][5] arrayBuckets)
  1709. func (_Hermez *HermezFilterer) WatchUpdateBucketsParameters(opts *bind.WatchOpts, sink chan<- *HermezUpdateBucketsParameters) (event.Subscription, error) {
  1710. logs, sub, err := _Hermez.contract.WatchLogs(opts, "UpdateBucketsParameters")
  1711. if err != nil {
  1712. return nil, tracerr.Wrap(err)
  1713. }
  1714. return event.NewSubscription(func(quit <-chan struct{}) error {
  1715. defer sub.Unsubscribe()
  1716. for {
  1717. select {
  1718. case log := <-logs:
  1719. // New log arrived, parse the event and forward to the user
  1720. event := new(HermezUpdateBucketsParameters)
  1721. if err := _Hermez.contract.UnpackLog(event, "UpdateBucketsParameters", log); err != nil {
  1722. return tracerr.Wrap(err)
  1723. }
  1724. event.Raw = log
  1725. select {
  1726. case sink <- event:
  1727. case err := <-sub.Err():
  1728. return tracerr.Wrap(err)
  1729. case <-quit:
  1730. return nil
  1731. }
  1732. case err := <-sub.Err():
  1733. return tracerr.Wrap(err)
  1734. case <-quit:
  1735. return nil
  1736. }
  1737. }
  1738. }), nil
  1739. }
  1740. // ParseUpdateBucketsParameters is a log parse operation binding the contract event 0x3c39a1e91c69d4cfeacb11190befc2b1c983746e6b21ab2441a3051de88d4480.
  1741. //
  1742. // Solidity: event UpdateBucketsParameters(uint256[4][5] arrayBuckets)
  1743. func (_Hermez *HermezFilterer) ParseUpdateBucketsParameters(log types.Log) (*HermezUpdateBucketsParameters, error) {
  1744. event := new(HermezUpdateBucketsParameters)
  1745. if err := _Hermez.contract.UnpackLog(event, "UpdateBucketsParameters", log); err != nil {
  1746. return nil, tracerr.Wrap(err)
  1747. }
  1748. return event, nil
  1749. }
  1750. // HermezUpdateFeeAddTokenIterator is returned from FilterUpdateFeeAddToken and is used to iterate over the raw logs and unpacked data for UpdateFeeAddToken events raised by the Hermez contract.
  1751. type HermezUpdateFeeAddTokenIterator struct {
  1752. Event *HermezUpdateFeeAddToken // Event containing the contract specifics and raw log
  1753. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1754. event string // Event name to use for unpacking event data
  1755. logs chan types.Log // Log channel receiving the found contract events
  1756. sub ethereum.Subscription // Subscription for errors, completion and termination
  1757. done bool // Whether the subscription completed delivering logs
  1758. fail error // Occurred error to stop iteration
  1759. }
  1760. // Next advances the iterator to the subsequent event, returning whether there
  1761. // are any more events found. In case of a retrieval or parsing error, false is
  1762. // returned and Error() can be queried for the exact failure.
  1763. func (it *HermezUpdateFeeAddTokenIterator) Next() bool {
  1764. // If the iterator failed, stop iterating
  1765. if it.fail != nil {
  1766. return false
  1767. }
  1768. // If the iterator completed, deliver directly whatever's available
  1769. if it.done {
  1770. select {
  1771. case log := <-it.logs:
  1772. it.Event = new(HermezUpdateFeeAddToken)
  1773. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1774. it.fail = err
  1775. return false
  1776. }
  1777. it.Event.Raw = log
  1778. return true
  1779. default:
  1780. return false
  1781. }
  1782. }
  1783. // Iterator still in progress, wait for either a data or an error event
  1784. select {
  1785. case log := <-it.logs:
  1786. it.Event = new(HermezUpdateFeeAddToken)
  1787. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1788. it.fail = err
  1789. return false
  1790. }
  1791. it.Event.Raw = log
  1792. return true
  1793. case err := <-it.sub.Err():
  1794. it.done = true
  1795. it.fail = err
  1796. return it.Next()
  1797. }
  1798. }
  1799. // Error returns any retrieval or parsing error occurred during filtering.
  1800. func (it *HermezUpdateFeeAddTokenIterator) Error() error {
  1801. return it.fail
  1802. }
  1803. // Close terminates the iteration process, releasing any pending underlying
  1804. // resources.
  1805. func (it *HermezUpdateFeeAddTokenIterator) Close() error {
  1806. it.sub.Unsubscribe()
  1807. return nil
  1808. }
  1809. // HermezUpdateFeeAddToken represents a UpdateFeeAddToken event raised by the Hermez contract.
  1810. type HermezUpdateFeeAddToken struct {
  1811. NewFeeAddToken *big.Int
  1812. Raw types.Log // Blockchain specific contextual infos
  1813. }
  1814. // FilterUpdateFeeAddToken is a free log retrieval operation binding the contract event 0xd1c873cd16013f0dc5f37992c0d12794389698512895ec036a568e393b46e3c1.
  1815. //
  1816. // Solidity: event UpdateFeeAddToken(uint256 newFeeAddToken)
  1817. func (_Hermez *HermezFilterer) FilterUpdateFeeAddToken(opts *bind.FilterOpts) (*HermezUpdateFeeAddTokenIterator, error) {
  1818. logs, sub, err := _Hermez.contract.FilterLogs(opts, "UpdateFeeAddToken")
  1819. if err != nil {
  1820. return nil, tracerr.Wrap(err)
  1821. }
  1822. return &HermezUpdateFeeAddTokenIterator{contract: _Hermez.contract, event: "UpdateFeeAddToken", logs: logs, sub: sub}, nil
  1823. }
  1824. // WatchUpdateFeeAddToken is a free log subscription operation binding the contract event 0xd1c873cd16013f0dc5f37992c0d12794389698512895ec036a568e393b46e3c1.
  1825. //
  1826. // Solidity: event UpdateFeeAddToken(uint256 newFeeAddToken)
  1827. func (_Hermez *HermezFilterer) WatchUpdateFeeAddToken(opts *bind.WatchOpts, sink chan<- *HermezUpdateFeeAddToken) (event.Subscription, error) {
  1828. logs, sub, err := _Hermez.contract.WatchLogs(opts, "UpdateFeeAddToken")
  1829. if err != nil {
  1830. return nil, tracerr.Wrap(err)
  1831. }
  1832. return event.NewSubscription(func(quit <-chan struct{}) error {
  1833. defer sub.Unsubscribe()
  1834. for {
  1835. select {
  1836. case log := <-logs:
  1837. // New log arrived, parse the event and forward to the user
  1838. event := new(HermezUpdateFeeAddToken)
  1839. if err := _Hermez.contract.UnpackLog(event, "UpdateFeeAddToken", log); err != nil {
  1840. return tracerr.Wrap(err)
  1841. }
  1842. event.Raw = log
  1843. select {
  1844. case sink <- event:
  1845. case err := <-sub.Err():
  1846. return tracerr.Wrap(err)
  1847. case <-quit:
  1848. return nil
  1849. }
  1850. case err := <-sub.Err():
  1851. return tracerr.Wrap(err)
  1852. case <-quit:
  1853. return nil
  1854. }
  1855. }
  1856. }), nil
  1857. }
  1858. // ParseUpdateFeeAddToken is a log parse operation binding the contract event 0xd1c873cd16013f0dc5f37992c0d12794389698512895ec036a568e393b46e3c1.
  1859. //
  1860. // Solidity: event UpdateFeeAddToken(uint256 newFeeAddToken)
  1861. func (_Hermez *HermezFilterer) ParseUpdateFeeAddToken(log types.Log) (*HermezUpdateFeeAddToken, error) {
  1862. event := new(HermezUpdateFeeAddToken)
  1863. if err := _Hermez.contract.UnpackLog(event, "UpdateFeeAddToken", log); err != nil {
  1864. return nil, tracerr.Wrap(err)
  1865. }
  1866. return event, nil
  1867. }
  1868. // HermezUpdateForgeL1L2BatchTimeoutIterator is returned from FilterUpdateForgeL1L2BatchTimeout and is used to iterate over the raw logs and unpacked data for UpdateForgeL1L2BatchTimeout events raised by the Hermez contract.
  1869. type HermezUpdateForgeL1L2BatchTimeoutIterator struct {
  1870. Event *HermezUpdateForgeL1L2BatchTimeout // Event containing the contract specifics and raw log
  1871. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1872. event string // Event name to use for unpacking event data
  1873. logs chan types.Log // Log channel receiving the found contract events
  1874. sub ethereum.Subscription // Subscription for errors, completion and termination
  1875. done bool // Whether the subscription completed delivering logs
  1876. fail error // Occurred error to stop iteration
  1877. }
  1878. // Next advances the iterator to the subsequent event, returning whether there
  1879. // are any more events found. In case of a retrieval or parsing error, false is
  1880. // returned and Error() can be queried for the exact failure.
  1881. func (it *HermezUpdateForgeL1L2BatchTimeoutIterator) Next() bool {
  1882. // If the iterator failed, stop iterating
  1883. if it.fail != nil {
  1884. return false
  1885. }
  1886. // If the iterator completed, deliver directly whatever's available
  1887. if it.done {
  1888. select {
  1889. case log := <-it.logs:
  1890. it.Event = new(HermezUpdateForgeL1L2BatchTimeout)
  1891. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1892. it.fail = err
  1893. return false
  1894. }
  1895. it.Event.Raw = log
  1896. return true
  1897. default:
  1898. return false
  1899. }
  1900. }
  1901. // Iterator still in progress, wait for either a data or an error event
  1902. select {
  1903. case log := <-it.logs:
  1904. it.Event = new(HermezUpdateForgeL1L2BatchTimeout)
  1905. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1906. it.fail = err
  1907. return false
  1908. }
  1909. it.Event.Raw = log
  1910. return true
  1911. case err := <-it.sub.Err():
  1912. it.done = true
  1913. it.fail = err
  1914. return it.Next()
  1915. }
  1916. }
  1917. // Error returns any retrieval or parsing error occurred during filtering.
  1918. func (it *HermezUpdateForgeL1L2BatchTimeoutIterator) Error() error {
  1919. return it.fail
  1920. }
  1921. // Close terminates the iteration process, releasing any pending underlying
  1922. // resources.
  1923. func (it *HermezUpdateForgeL1L2BatchTimeoutIterator) Close() error {
  1924. it.sub.Unsubscribe()
  1925. return nil
  1926. }
  1927. // HermezUpdateForgeL1L2BatchTimeout represents a UpdateForgeL1L2BatchTimeout event raised by the Hermez contract.
  1928. type HermezUpdateForgeL1L2BatchTimeout struct {
  1929. NewForgeL1L2BatchTimeout uint8
  1930. Raw types.Log // Blockchain specific contextual infos
  1931. }
  1932. // FilterUpdateForgeL1L2BatchTimeout is a free log retrieval operation binding the contract event 0xff6221781ac525b04585dbb55cd2ebd2a92c828ca3e42b23813a1137ac974431.
  1933. //
  1934. // Solidity: event UpdateForgeL1L2BatchTimeout(uint8 newForgeL1L2BatchTimeout)
  1935. func (_Hermez *HermezFilterer) FilterUpdateForgeL1L2BatchTimeout(opts *bind.FilterOpts) (*HermezUpdateForgeL1L2BatchTimeoutIterator, error) {
  1936. logs, sub, err := _Hermez.contract.FilterLogs(opts, "UpdateForgeL1L2BatchTimeout")
  1937. if err != nil {
  1938. return nil, tracerr.Wrap(err)
  1939. }
  1940. return &HermezUpdateForgeL1L2BatchTimeoutIterator{contract: _Hermez.contract, event: "UpdateForgeL1L2BatchTimeout", logs: logs, sub: sub}, nil
  1941. }
  1942. // WatchUpdateForgeL1L2BatchTimeout is a free log subscription operation binding the contract event 0xff6221781ac525b04585dbb55cd2ebd2a92c828ca3e42b23813a1137ac974431.
  1943. //
  1944. // Solidity: event UpdateForgeL1L2BatchTimeout(uint8 newForgeL1L2BatchTimeout)
  1945. func (_Hermez *HermezFilterer) WatchUpdateForgeL1L2BatchTimeout(opts *bind.WatchOpts, sink chan<- *HermezUpdateForgeL1L2BatchTimeout) (event.Subscription, error) {
  1946. logs, sub, err := _Hermez.contract.WatchLogs(opts, "UpdateForgeL1L2BatchTimeout")
  1947. if err != nil {
  1948. return nil, tracerr.Wrap(err)
  1949. }
  1950. return event.NewSubscription(func(quit <-chan struct{}) error {
  1951. defer sub.Unsubscribe()
  1952. for {
  1953. select {
  1954. case log := <-logs:
  1955. // New log arrived, parse the event and forward to the user
  1956. event := new(HermezUpdateForgeL1L2BatchTimeout)
  1957. if err := _Hermez.contract.UnpackLog(event, "UpdateForgeL1L2BatchTimeout", log); err != nil {
  1958. return tracerr.Wrap(err)
  1959. }
  1960. event.Raw = log
  1961. select {
  1962. case sink <- event:
  1963. case err := <-sub.Err():
  1964. return tracerr.Wrap(err)
  1965. case <-quit:
  1966. return nil
  1967. }
  1968. case err := <-sub.Err():
  1969. return tracerr.Wrap(err)
  1970. case <-quit:
  1971. return nil
  1972. }
  1973. }
  1974. }), nil
  1975. }
  1976. // ParseUpdateForgeL1L2BatchTimeout is a log parse operation binding the contract event 0xff6221781ac525b04585dbb55cd2ebd2a92c828ca3e42b23813a1137ac974431.
  1977. //
  1978. // Solidity: event UpdateForgeL1L2BatchTimeout(uint8 newForgeL1L2BatchTimeout)
  1979. func (_Hermez *HermezFilterer) ParseUpdateForgeL1L2BatchTimeout(log types.Log) (*HermezUpdateForgeL1L2BatchTimeout, error) {
  1980. event := new(HermezUpdateForgeL1L2BatchTimeout)
  1981. if err := _Hermez.contract.UnpackLog(event, "UpdateForgeL1L2BatchTimeout", log); err != nil {
  1982. return nil, tracerr.Wrap(err)
  1983. }
  1984. return event, nil
  1985. }
  1986. // HermezUpdateTokenExchangeIterator is returned from FilterUpdateTokenExchange and is used to iterate over the raw logs and unpacked data for UpdateTokenExchange events raised by the Hermez contract.
  1987. type HermezUpdateTokenExchangeIterator struct {
  1988. Event *HermezUpdateTokenExchange // Event containing the contract specifics and raw log
  1989. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1990. event string // Event name to use for unpacking event data
  1991. logs chan types.Log // Log channel receiving the found contract events
  1992. sub ethereum.Subscription // Subscription for errors, completion and termination
  1993. done bool // Whether the subscription completed delivering logs
  1994. fail error // Occurred error to stop iteration
  1995. }
  1996. // Next advances the iterator to the subsequent event, returning whether there
  1997. // are any more events found. In case of a retrieval or parsing error, false is
  1998. // returned and Error() can be queried for the exact failure.
  1999. func (it *HermezUpdateTokenExchangeIterator) Next() bool {
  2000. // If the iterator failed, stop iterating
  2001. if it.fail != nil {
  2002. return false
  2003. }
  2004. // If the iterator completed, deliver directly whatever's available
  2005. if it.done {
  2006. select {
  2007. case log := <-it.logs:
  2008. it.Event = new(HermezUpdateTokenExchange)
  2009. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2010. it.fail = err
  2011. return false
  2012. }
  2013. it.Event.Raw = log
  2014. return true
  2015. default:
  2016. return false
  2017. }
  2018. }
  2019. // Iterator still in progress, wait for either a data or an error event
  2020. select {
  2021. case log := <-it.logs:
  2022. it.Event = new(HermezUpdateTokenExchange)
  2023. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2024. it.fail = err
  2025. return false
  2026. }
  2027. it.Event.Raw = log
  2028. return true
  2029. case err := <-it.sub.Err():
  2030. it.done = true
  2031. it.fail = err
  2032. return it.Next()
  2033. }
  2034. }
  2035. // Error returns any retrieval or parsing error occurred during filtering.
  2036. func (it *HermezUpdateTokenExchangeIterator) Error() error {
  2037. return it.fail
  2038. }
  2039. // Close terminates the iteration process, releasing any pending underlying
  2040. // resources.
  2041. func (it *HermezUpdateTokenExchangeIterator) Close() error {
  2042. it.sub.Unsubscribe()
  2043. return nil
  2044. }
  2045. // HermezUpdateTokenExchange represents a UpdateTokenExchange event raised by the Hermez contract.
  2046. type HermezUpdateTokenExchange struct {
  2047. AddressArray []common.Address
  2048. ValueArray []uint64
  2049. Raw types.Log // Blockchain specific contextual infos
  2050. }
  2051. // FilterUpdateTokenExchange is a free log retrieval operation binding the contract event 0x10ff643ebeca3e33002e61b76fa85e7e10091e30afa39295f91af9838b3033b3.
  2052. //
  2053. // Solidity: event UpdateTokenExchange(address[] addressArray, uint64[] valueArray)
  2054. func (_Hermez *HermezFilterer) FilterUpdateTokenExchange(opts *bind.FilterOpts) (*HermezUpdateTokenExchangeIterator, error) {
  2055. logs, sub, err := _Hermez.contract.FilterLogs(opts, "UpdateTokenExchange")
  2056. if err != nil {
  2057. return nil, tracerr.Wrap(err)
  2058. }
  2059. return &HermezUpdateTokenExchangeIterator{contract: _Hermez.contract, event: "UpdateTokenExchange", logs: logs, sub: sub}, nil
  2060. }
  2061. // WatchUpdateTokenExchange is a free log subscription operation binding the contract event 0x10ff643ebeca3e33002e61b76fa85e7e10091e30afa39295f91af9838b3033b3.
  2062. //
  2063. // Solidity: event UpdateTokenExchange(address[] addressArray, uint64[] valueArray)
  2064. func (_Hermez *HermezFilterer) WatchUpdateTokenExchange(opts *bind.WatchOpts, sink chan<- *HermezUpdateTokenExchange) (event.Subscription, error) {
  2065. logs, sub, err := _Hermez.contract.WatchLogs(opts, "UpdateTokenExchange")
  2066. if err != nil {
  2067. return nil, tracerr.Wrap(err)
  2068. }
  2069. return event.NewSubscription(func(quit <-chan struct{}) error {
  2070. defer sub.Unsubscribe()
  2071. for {
  2072. select {
  2073. case log := <-logs:
  2074. // New log arrived, parse the event and forward to the user
  2075. event := new(HermezUpdateTokenExchange)
  2076. if err := _Hermez.contract.UnpackLog(event, "UpdateTokenExchange", log); err != nil {
  2077. return tracerr.Wrap(err)
  2078. }
  2079. event.Raw = log
  2080. select {
  2081. case sink <- event:
  2082. case err := <-sub.Err():
  2083. return tracerr.Wrap(err)
  2084. case <-quit:
  2085. return nil
  2086. }
  2087. case err := <-sub.Err():
  2088. return tracerr.Wrap(err)
  2089. case <-quit:
  2090. return nil
  2091. }
  2092. }
  2093. }), nil
  2094. }
  2095. // ParseUpdateTokenExchange is a log parse operation binding the contract event 0x10ff643ebeca3e33002e61b76fa85e7e10091e30afa39295f91af9838b3033b3.
  2096. //
  2097. // Solidity: event UpdateTokenExchange(address[] addressArray, uint64[] valueArray)
  2098. func (_Hermez *HermezFilterer) ParseUpdateTokenExchange(log types.Log) (*HermezUpdateTokenExchange, error) {
  2099. event := new(HermezUpdateTokenExchange)
  2100. if err := _Hermez.contract.UnpackLog(event, "UpdateTokenExchange", log); err != nil {
  2101. return nil, tracerr.Wrap(err)
  2102. }
  2103. return event, nil
  2104. }
  2105. // HermezUpdateWithdrawalDelayIterator is returned from FilterUpdateWithdrawalDelay and is used to iterate over the raw logs and unpacked data for UpdateWithdrawalDelay events raised by the Hermez contract.
  2106. type HermezUpdateWithdrawalDelayIterator struct {
  2107. Event *HermezUpdateWithdrawalDelay // Event containing the contract specifics and raw log
  2108. contract *bind.BoundContract // Generic contract to use for unpacking event data
  2109. event string // Event name to use for unpacking event data
  2110. logs chan types.Log // Log channel receiving the found contract events
  2111. sub ethereum.Subscription // Subscription for errors, completion and termination
  2112. done bool // Whether the subscription completed delivering logs
  2113. fail error // Occurred error to stop iteration
  2114. }
  2115. // Next advances the iterator to the subsequent event, returning whether there
  2116. // are any more events found. In case of a retrieval or parsing error, false is
  2117. // returned and Error() can be queried for the exact failure.
  2118. func (it *HermezUpdateWithdrawalDelayIterator) Next() bool {
  2119. // If the iterator failed, stop iterating
  2120. if it.fail != nil {
  2121. return false
  2122. }
  2123. // If the iterator completed, deliver directly whatever's available
  2124. if it.done {
  2125. select {
  2126. case log := <-it.logs:
  2127. it.Event = new(HermezUpdateWithdrawalDelay)
  2128. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2129. it.fail = err
  2130. return false
  2131. }
  2132. it.Event.Raw = log
  2133. return true
  2134. default:
  2135. return false
  2136. }
  2137. }
  2138. // Iterator still in progress, wait for either a data or an error event
  2139. select {
  2140. case log := <-it.logs:
  2141. it.Event = new(HermezUpdateWithdrawalDelay)
  2142. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2143. it.fail = err
  2144. return false
  2145. }
  2146. it.Event.Raw = log
  2147. return true
  2148. case err := <-it.sub.Err():
  2149. it.done = true
  2150. it.fail = err
  2151. return it.Next()
  2152. }
  2153. }
  2154. // Error returns any retrieval or parsing error occurred during filtering.
  2155. func (it *HermezUpdateWithdrawalDelayIterator) Error() error {
  2156. return it.fail
  2157. }
  2158. // Close terminates the iteration process, releasing any pending underlying
  2159. // resources.
  2160. func (it *HermezUpdateWithdrawalDelayIterator) Close() error {
  2161. it.sub.Unsubscribe()
  2162. return nil
  2163. }
  2164. // HermezUpdateWithdrawalDelay represents a UpdateWithdrawalDelay event raised by the Hermez contract.
  2165. type HermezUpdateWithdrawalDelay struct {
  2166. NewWithdrawalDelay uint64
  2167. Raw types.Log // Blockchain specific contextual infos
  2168. }
  2169. // FilterUpdateWithdrawalDelay is a free log retrieval operation binding the contract event 0x9db302c4547a21fb20a3a794e5f63ee87eb6e4afc3325ebdadba2d1fb4a90737.
  2170. //
  2171. // Solidity: event UpdateWithdrawalDelay(uint64 newWithdrawalDelay)
  2172. func (_Hermez *HermezFilterer) FilterUpdateWithdrawalDelay(opts *bind.FilterOpts) (*HermezUpdateWithdrawalDelayIterator, error) {
  2173. logs, sub, err := _Hermez.contract.FilterLogs(opts, "UpdateWithdrawalDelay")
  2174. if err != nil {
  2175. return nil, tracerr.Wrap(err)
  2176. }
  2177. return &HermezUpdateWithdrawalDelayIterator{contract: _Hermez.contract, event: "UpdateWithdrawalDelay", logs: logs, sub: sub}, nil
  2178. }
  2179. // WatchUpdateWithdrawalDelay is a free log subscription operation binding the contract event 0x9db302c4547a21fb20a3a794e5f63ee87eb6e4afc3325ebdadba2d1fb4a90737.
  2180. //
  2181. // Solidity: event UpdateWithdrawalDelay(uint64 newWithdrawalDelay)
  2182. func (_Hermez *HermezFilterer) WatchUpdateWithdrawalDelay(opts *bind.WatchOpts, sink chan<- *HermezUpdateWithdrawalDelay) (event.Subscription, error) {
  2183. logs, sub, err := _Hermez.contract.WatchLogs(opts, "UpdateWithdrawalDelay")
  2184. if err != nil {
  2185. return nil, tracerr.Wrap(err)
  2186. }
  2187. return event.NewSubscription(func(quit <-chan struct{}) error {
  2188. defer sub.Unsubscribe()
  2189. for {
  2190. select {
  2191. case log := <-logs:
  2192. // New log arrived, parse the event and forward to the user
  2193. event := new(HermezUpdateWithdrawalDelay)
  2194. if err := _Hermez.contract.UnpackLog(event, "UpdateWithdrawalDelay", log); err != nil {
  2195. return tracerr.Wrap(err)
  2196. }
  2197. event.Raw = log
  2198. select {
  2199. case sink <- event:
  2200. case err := <-sub.Err():
  2201. return tracerr.Wrap(err)
  2202. case <-quit:
  2203. return nil
  2204. }
  2205. case err := <-sub.Err():
  2206. return tracerr.Wrap(err)
  2207. case <-quit:
  2208. return nil
  2209. }
  2210. }
  2211. }), nil
  2212. }
  2213. // ParseUpdateWithdrawalDelay is a log parse operation binding the contract event 0x9db302c4547a21fb20a3a794e5f63ee87eb6e4afc3325ebdadba2d1fb4a90737.
  2214. //
  2215. // Solidity: event UpdateWithdrawalDelay(uint64 newWithdrawalDelay)
  2216. func (_Hermez *HermezFilterer) ParseUpdateWithdrawalDelay(log types.Log) (*HermezUpdateWithdrawalDelay, error) {
  2217. event := new(HermezUpdateWithdrawalDelay)
  2218. if err := _Hermez.contract.UnpackLog(event, "UpdateWithdrawalDelay", log); err != nil {
  2219. return nil, tracerr.Wrap(err)
  2220. }
  2221. return event, nil
  2222. }
  2223. // HermezWithdrawEventIterator is returned from FilterWithdrawEvent and is used to iterate over the raw logs and unpacked data for WithdrawEvent events raised by the Hermez contract.
  2224. type HermezWithdrawEventIterator struct {
  2225. Event *HermezWithdrawEvent // Event containing the contract specifics and raw log
  2226. contract *bind.BoundContract // Generic contract to use for unpacking event data
  2227. event string // Event name to use for unpacking event data
  2228. logs chan types.Log // Log channel receiving the found contract events
  2229. sub ethereum.Subscription // Subscription for errors, completion and termination
  2230. done bool // Whether the subscription completed delivering logs
  2231. fail error // Occurred error to stop iteration
  2232. }
  2233. // Next advances the iterator to the subsequent event, returning whether there
  2234. // are any more events found. In case of a retrieval or parsing error, false is
  2235. // returned and Error() can be queried for the exact failure.
  2236. func (it *HermezWithdrawEventIterator) Next() bool {
  2237. // If the iterator failed, stop iterating
  2238. if it.fail != nil {
  2239. return false
  2240. }
  2241. // If the iterator completed, deliver directly whatever's available
  2242. if it.done {
  2243. select {
  2244. case log := <-it.logs:
  2245. it.Event = new(HermezWithdrawEvent)
  2246. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2247. it.fail = err
  2248. return false
  2249. }
  2250. it.Event.Raw = log
  2251. return true
  2252. default:
  2253. return false
  2254. }
  2255. }
  2256. // Iterator still in progress, wait for either a data or an error event
  2257. select {
  2258. case log := <-it.logs:
  2259. it.Event = new(HermezWithdrawEvent)
  2260. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2261. it.fail = err
  2262. return false
  2263. }
  2264. it.Event.Raw = log
  2265. return true
  2266. case err := <-it.sub.Err():
  2267. it.done = true
  2268. it.fail = err
  2269. return it.Next()
  2270. }
  2271. }
  2272. // Error returns any retrieval or parsing error occurred during filtering.
  2273. func (it *HermezWithdrawEventIterator) Error() error {
  2274. return it.fail
  2275. }
  2276. // Close terminates the iteration process, releasing any pending underlying
  2277. // resources.
  2278. func (it *HermezWithdrawEventIterator) Close() error {
  2279. it.sub.Unsubscribe()
  2280. return nil
  2281. }
  2282. // HermezWithdrawEvent represents a WithdrawEvent event raised by the Hermez contract.
  2283. type HermezWithdrawEvent struct {
  2284. Idx *big.Int
  2285. NumExitRoot uint32
  2286. InstantWithdraw bool
  2287. Raw types.Log // Blockchain specific contextual infos
  2288. }
  2289. // FilterWithdrawEvent is a free log retrieval operation binding the contract event 0x69177d798b38e27bcc4e0338307e4f1490e12d1006729d0e6e9cc82a8732f415.
  2290. //
  2291. // Solidity: event WithdrawEvent(uint48 indexed idx, uint32 indexed numExitRoot, bool indexed instantWithdraw)
  2292. func (_Hermez *HermezFilterer) FilterWithdrawEvent(opts *bind.FilterOpts, idx []*big.Int, numExitRoot []uint32, instantWithdraw []bool) (*HermezWithdrawEventIterator, error) {
  2293. var idxRule []interface{}
  2294. for _, idxItem := range idx {
  2295. idxRule = append(idxRule, idxItem)
  2296. }
  2297. var numExitRootRule []interface{}
  2298. for _, numExitRootItem := range numExitRoot {
  2299. numExitRootRule = append(numExitRootRule, numExitRootItem)
  2300. }
  2301. var instantWithdrawRule []interface{}
  2302. for _, instantWithdrawItem := range instantWithdraw {
  2303. instantWithdrawRule = append(instantWithdrawRule, instantWithdrawItem)
  2304. }
  2305. logs, sub, err := _Hermez.contract.FilterLogs(opts, "WithdrawEvent", idxRule, numExitRootRule, instantWithdrawRule)
  2306. if err != nil {
  2307. return nil, tracerr.Wrap(err)
  2308. }
  2309. return &HermezWithdrawEventIterator{contract: _Hermez.contract, event: "WithdrawEvent", logs: logs, sub: sub}, nil
  2310. }
  2311. // WatchWithdrawEvent is a free log subscription operation binding the contract event 0x69177d798b38e27bcc4e0338307e4f1490e12d1006729d0e6e9cc82a8732f415.
  2312. //
  2313. // Solidity: event WithdrawEvent(uint48 indexed idx, uint32 indexed numExitRoot, bool indexed instantWithdraw)
  2314. func (_Hermez *HermezFilterer) WatchWithdrawEvent(opts *bind.WatchOpts, sink chan<- *HermezWithdrawEvent, idx []*big.Int, numExitRoot []uint32, instantWithdraw []bool) (event.Subscription, error) {
  2315. var idxRule []interface{}
  2316. for _, idxItem := range idx {
  2317. idxRule = append(idxRule, idxItem)
  2318. }
  2319. var numExitRootRule []interface{}
  2320. for _, numExitRootItem := range numExitRoot {
  2321. numExitRootRule = append(numExitRootRule, numExitRootItem)
  2322. }
  2323. var instantWithdrawRule []interface{}
  2324. for _, instantWithdrawItem := range instantWithdraw {
  2325. instantWithdrawRule = append(instantWithdrawRule, instantWithdrawItem)
  2326. }
  2327. logs, sub, err := _Hermez.contract.WatchLogs(opts, "WithdrawEvent", idxRule, numExitRootRule, instantWithdrawRule)
  2328. if err != nil {
  2329. return nil, tracerr.Wrap(err)
  2330. }
  2331. return event.NewSubscription(func(quit <-chan struct{}) error {
  2332. defer sub.Unsubscribe()
  2333. for {
  2334. select {
  2335. case log := <-logs:
  2336. // New log arrived, parse the event and forward to the user
  2337. event := new(HermezWithdrawEvent)
  2338. if err := _Hermez.contract.UnpackLog(event, "WithdrawEvent", log); err != nil {
  2339. return tracerr.Wrap(err)
  2340. }
  2341. event.Raw = log
  2342. select {
  2343. case sink <- event:
  2344. case err := <-sub.Err():
  2345. return tracerr.Wrap(err)
  2346. case <-quit:
  2347. return nil
  2348. }
  2349. case err := <-sub.Err():
  2350. return tracerr.Wrap(err)
  2351. case <-quit:
  2352. return nil
  2353. }
  2354. }
  2355. }), nil
  2356. }
  2357. // ParseWithdrawEvent is a log parse operation binding the contract event 0x69177d798b38e27bcc4e0338307e4f1490e12d1006729d0e6e9cc82a8732f415.
  2358. //
  2359. // Solidity: event WithdrawEvent(uint48 indexed idx, uint32 indexed numExitRoot, bool indexed instantWithdraw)
  2360. func (_Hermez *HermezFilterer) ParseWithdrawEvent(log types.Log) (*HermezWithdrawEvent, error) {
  2361. event := new(HermezWithdrawEvent)
  2362. if err := _Hermez.contract.UnpackLog(event, "WithdrawEvent", log); err != nil {
  2363. return nil, tracerr.Wrap(err)
  2364. }
  2365. return event, nil
  2366. }