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.

3050 lines
170 KiB

  1. // Code generated - DO NOT EDIT.
  2. // This file is a generated binding and any manual changes will be lost.
  3. package HermezAuctionProtocol
  4. import (
  5. "math/big"
  6. "strings"
  7. ethereum "github.com/ethereum/go-ethereum"
  8. "github.com/ethereum/go-ethereum/accounts/abi"
  9. "github.com/ethereum/go-ethereum/accounts/abi/bind"
  10. "github.com/ethereum/go-ethereum/common"
  11. "github.com/ethereum/go-ethereum/core/types"
  12. "github.com/ethereum/go-ethereum/event"
  13. )
  14. // Reference imports to suppress errors if they are not otherwise used.
  15. var (
  16. _ = big.NewInt
  17. _ = strings.NewReader
  18. _ = ethereum.NotFound
  19. _ = bind.Bind
  20. _ = common.Big1
  21. _ = types.BloomLookup
  22. _ = event.NewSubscription
  23. )
  24. // HermezAuctionProtocolABI is the input ABI used to generate the binding from.
  25. const HermezAuctionProtocolABI = "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"forgerAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"withdrawalAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"coordinatorURL\",\"type\":\"string\"}],\"name\":\"CoordinatorUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"}],\"name\":\"HEZClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16[3]\",\"name\":\"newAllocationRatio\",\"type\":\"uint16[3]\"}],\"name\":\"NewAllocationRatio\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"slot\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"bidAmount\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"coordinatorForger\",\"type\":\"address\"}],\"name\":\"NewBid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newBootCoordinator\",\"type\":\"address\"}],\"name\":\"NewBootCoordinator\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"newClosedAuctionSlots\",\"type\":\"uint16\"}],\"name\":\"NewClosedAuctionSlots\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"forgerAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"withdrawalAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"coordinatorURL\",\"type\":\"string\"}],\"name\":\"NewCoordinator\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"slotSet\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"newInitialMinBid\",\"type\":\"uint128\"}],\"name\":\"NewDefaultSlotSetBid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newDonationAddress\",\"type\":\"address\"}],\"name\":\"NewDonationAddress\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"forger\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"slotToForge\",\"type\":\"uint128\"}],\"name\":\"NewForge\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"forger\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"slotToForge\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"burnAmount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"donationAmount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"governanceAmount\",\"type\":\"uint128\"}],\"name\":\"NewForgeAllocated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"newOpenAuctionSlots\",\"type\":\"uint16\"}],\"name\":\"NewOpenAuctionSlots\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"newOutbidding\",\"type\":\"uint16\"}],\"name\":\"NewOutbidding\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"newSlotDeadline\",\"type\":\"uint8\"}],\"name\":\"NewSlotDeadline\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"BLOCKS_PER_SLOT\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"INITIAL_MINIMAL_BIDDING\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forger\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"name\":\"canForge\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"slotSet\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"newInitialMinBid\",\"type\":\"uint128\"}],\"name\":\"changeDefaultSlotSetBid\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"claimAddress\",\"type\":\"address\"}],\"name\":\"claimHEZ\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"coordinators\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"withdrawalAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"coordinatorURL\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forger\",\"type\":\"address\"}],\"name\":\"forge\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"genesisBlock\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAllocationRatio\",\"outputs\":[{\"internalType\":\"uint16[3]\",\"name\":\"\",\"type\":\"uint16[3]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBootCoordinator\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"claimAddress\",\"type\":\"address\"}],\"name\":\"getClaimableHEZ\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getClosedAuctionSlots\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentSlotNumber\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"slotSet\",\"type\":\"uint8\"}],\"name\":\"getDefaultSlotSetBid\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDonationAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"slot\",\"type\":\"uint128\"}],\"name\":\"getMinBidBySlot\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOpenAuctionSlots\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOutbidding\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSlotDeadline\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"blockNumber\",\"type\":\"uint128\"}],\"name\":\"getSlotNumber\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"slot\",\"type\":\"uint128\"}],\"name\":\"getSlotSet\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenERC777\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"genesis\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"hermezRollupAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"governanceAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"donationAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"bootCoordinatorAddress\",\"type\":\"address\"}],\"name\":\"hermezAuctionProtocolInitializer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hermezRollup\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forgerAddress\",\"type\":\"address\"}],\"name\":\"isRegisteredCoordinator\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"pendingBalances\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forgerAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"coordinatorURL\",\"type\":\"string\"}],\"name\":\"registerCoordinator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16[3]\",\"name\":\"newAllocationRatio\",\"type\":\"uint16[3]\"}],\"name\":\"setAllocationRatio\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newBootCoordinator\",\"type\":\"address\"}],\"name\":\"setBootCoordinator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newClosedAuctionSlots\",\"type\":\"uint16\"}],\"name\":\"setClosedAuctionSlots\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newDonationAddress\",\"type\":\"address\"}],\"name\":\"setDonationAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newOpenAuctionSlots\",\"type\":\"uint16\"}],\"name\":\"setOpenAuctionSlots\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newOutbidding\",\"type\":\"uint16\"}],\"name\":\"setOutbidding\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"newDeadline\",\"type\":\"uint8\"}],\"name\":\"setSlotDeadline\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"name\":\"slots\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"forger\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"bidAmount\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"closedMinBid\",\"type\":\"uint128\"},{\"internalType\":\"bool\",\"name\":\"fulfilled\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenHEZ\",\"outputs\":[{\"internalType\":\"contractIERC777\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"operatorData\",\"type\":\"bytes\"}],\"name\":\"tokensReceived\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forgerAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"newWithdrawAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"newURL\",\"type\":\"string\"}],\"name\":\"updateCoordinatorInfo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]"
  26. // HermezAuctionProtocolBin is the compiled bytecode used for deploying new contracts.
  27. var HermezAuctionProtocolBin = "0x608060405234801561001057600080fd5b50613b64806100206000396000f3fe608060405234801561001057600080fd5b50600436106102265760003560e01c80637c643b7011610130578063b3dc7bb1116100b8578063d92bdda31161007c578063d92bdda31461091d578063dfd5281b1461093e578063e60659141461095f578063ec29159b14610967578063ecdae41b146109a757610226565b8063b3dc7bb1146107b8578063b3f69047146107de578063b5f7f2f014610892578063bc4155671461089a578063c63de515146108fc57610226565b8063892075c8116100ff578063892075c814610617578063a48af096146106d4578063ac4b901214610782578063ac5f658b1461078a578063aebd6d98146107b057610226565b80637c643b701461054b578063827874051461057957806383b1f6a0146105cb57806387e6b6bb146105f757610226565b80634e5a5178116101b35780635cca4903116101825780635cca49031461047c5780636074db64146104a257806362945af2146104f75780636f48e79b1461051d57806379a135e31461054357610226565b80634e5a51781461040a57806354c03ab71461043057806355b442e614610454578063564e6a711461045c57610226565b806337d1bd0b116101fa57806337d1bd0b1461035d5780633bebeb06146103835780633f2d0c7b146103bd5780634cdc9c63146103e35780634da9639d146103eb57610226565b806223de291461022b5780630c4da4f61461031357806313de9af2146103375780632243de4714610355575b600080fd5b610311600480360360c081101561024157600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a081016080820135600160201b81111561028357600080fd5b82018360208201111561029557600080fd5b803590602001918460018302840111600160201b831117156102b657600080fd5b919390929091602081019035600160201b8111156102d357600080fd5b8201836020820111156102e557600080fd5b803590602001918460018302840111600160201b8311171561030657600080fd5b5090925090506109cd565b005b61031b610be5565b604080516001600160801b039092168252519081900360200190f35b61033f610bf5565b6040805160ff9092168252519081900360200190f35b61033f610c04565b61031b6004803603602081101561037357600080fd5b50356001600160801b0316610c09565b6103a96004803603602081101561039957600080fd5b50356001600160a01b0316610dc4565b604080519115158252519081900360200190f35b610311600480360360208110156103d357600080fd5b50356001600160a01b0316610de4565b61031b610f3f565b6103f3610f4e565b6040805161ffff9092168252519081900360200190f35b6103116004803603602081101561042057600080fd5b50356001600160a01b0316610f5f565b61043861147a565b604080516001600160a01b039092168252519081900360200190f35b6103f3611489565b61031b6004803603602081101561047257600080fd5b503560ff16611493565b61031b6004803603602081101561049257600080fd5b50356001600160a01b03166114cb565b610311600480360360c08110156104b857600080fd5b506001600160a01b0381358116916001600160801b036020820135169160408201358116916060810135821691608082013581169160a00135166114ef565b6103116004803603602081101561050d57600080fd5b50356001600160a01b03166117dd565b6103116004803603602081101561053357600080fd5b50356001600160a01b0316611884565b61043861192b565b6103116004803603604081101561056157600080fd5b506001600160801b038135811691602001351661193a565b6103116004803603606081101561058f57600080fd5b8101908080606001906003806020026040519081016040528092919082600360200280828437600092019190915250919450611bc49350505050565b6103a9600480360360408110156105e157600080fd5b506001600160a01b038135169060200135611cf5565b6103116004803603602081101561060d57600080fd5b503560ff16611fd4565b6103116004803603606081101561062d57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561066057600080fd5b82018360208201111561067257600080fd5b803590602001918460018302840111600160201b8311171561069357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506120d4945050505050565b6106fa600480360360208110156106ea57600080fd5b50356001600160a01b031661231e565b60405180836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561074657818101518382015260200161072e565b50505050905090810190601f1680156107735780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6103f36123d2565b61031b600480360360208110156107a057600080fd5b50356001600160801b03166123e3565b6104386123f9565b61031b600480360360208110156107ce57600080fd5b50356001600160801b0316612408565b610311600480360360408110156107f457600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561081e57600080fd5b82018360208201111561083057600080fd5b803590602001918460018302840111600160201b8311171561085157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612442945050505050565b6104386125bc565b6108c0600480360360208110156108b057600080fd5b50356001600160801b03166125cb565b604080516001600160a01b0390951685526001600160801b03938416602086015291909216838201529015156060830152519081900360800190f35b6103116004803603602081101561091257600080fd5b503561ffff1661260e565b6103116004803603602081101561093357600080fd5b503561ffff1661271f565b6103116004803603602081101561095457600080fd5b503561ffff16612830565b61031b6128cd565b61096f6128d9565b6040518082606080838360005b8381101561099457818101518382015260200161097c565b5050505090500191505060405180910390f35b61031b600480360360208110156109bd57600080fd5b50356001600160a01b031661293b565b60335460ff16610a24576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6033805460ff191690556065546001600160a01b03163314610a84576040805162461bcd60e51b815260206004820152601460248201527324b73b30b634b21022a9219b9b9b903a37b5b2b760611b604482015290519081900360640190fd5b82610ace576040805162461bcd60e51b815260206004820152601560248201527453656e642048455a20776974686f7574206461746160581b604482015290519081900360640190fd5b600160801b8510610b26576040805162461bcd60e51b815260206004820152601e60248201527f416d6f756e74206d757374206265206c657373207468616e20325f3132380000604482015290519081900360640190fd5b600084846020811015610b3857600080fd5b50356001600160e01b0319169050636007a2af60e01b811415610b6557610b60868686612956565b610bcd565b6001600160e01b03198116637a5b973560e11b1415610b8957610b60868686612c50565b6040805162461bcd60e51b81526020600482015260146024820152734e6f7420612076616c69642063616c6c6461746160601b604482015290519081900360640190fd5b50506033805460ff1916600117905550505050505050565b6000610bf043612408565b905090565b606f5462010000900460ff1690565b602881565b606d54600090600160801b900461ffff16610c22610be5565b016001600160801b0316826001600160801b03161015610c89576040805162461bcd60e51b815260206004820152601f60248201527f41756374696f6e2068617320616c7265616479206265656e20636c6f73656400604482015290519081900360640190fd5b6000610c94836123e3565b6001600160801b038085166000908152607060205260409020600101549192501615610d2e57606f546001600160801b03808516600090815260706020526040902060010154610d2992610d059261271092610cf69291169061ffff166130d0565b6001600160801b03169061314a565b6001600160801b03808616600090815260706020526040902060010154169061318c565b610dbd565b606f54610dbd90610d819061271090610cf69061ffff16606a6001600160801b03871660068110610d5b57fe5b60028104919091015460019091166010026101000a90046001600160801b0316906130d0565b606a836001600160801b031660068110610d9757fe5b60028104919091015460019091166010026101000a90046001600160801b03169061318c565b9392505050565b6001600160a01b0390811660009081526072602052604090205416151590565b60335460ff16610e3b576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6033805460ff191690556000610e50826114cb565b90506000816001600160801b031611610eb0576040805162461bcd60e51b815260206004820152601b60248201527f446f65736e2774206861766520656e6f7567682062616c616e63650000000000604482015290519081900360640190fd5b6001600160a01b03808316600090815260716020526040902080546001600160801b0319169055606554610ee6911683836131f2565b604080516001600160801b038316815290516001600160a01b038416917f199ef0cb54d2b296ff6eaec2721bacf0ca3fd8344a43f5bdf4548b34dfa2594f919081900360200190a250506033805460ff19166001179055565b606d546001600160801b031681565b606d54600160801b900461ffff1690565b6066546001600160a01b03163314610fbe576040805162461bcd60e51b815260206004820152601a60248201527f4f6e6c79204865726d657a20526f6c6c75702041646472657373000000000000604482015290519081900360640190fd5b610fc88143611cf5565b611007576040805162461bcd60e51b815260206004820152600b60248201526a43616e277420666f72676560a81b604482015290519081900360640190fd5b6000611011610be5565b6001600160801b038181166000908152607060205260408120600281018054600160ff198216811790925591015493945060ff16929091600160801b909104161561108257506001600160801b03808316600090815260706020526040902060010154600160801b900416806110c3565b606a61108d846123e3565b6001600160801b0316600681106110a057fe5b600291828204019190066010029054906101000a90046001600160801b03169050805b5081611435576069546001600160a01b03858116911614801561110257506001600160801b038084166000908152607060205260409020600101541615155b801561112d57506001600160801b038381166000908152607060205260409020600101548183169116105b156111d3576001600160801b0383811660009081526070602090815260408083206001810180548616600160801b88881602179081905590546001600160a01b0390811685526072845282852054168085526071909352922054909261119792918116911661318c565b6001600160a01b0391909116600090815260716020526040902080546001600160801b0319166001600160801b03909216919091179055611435565b6069546001600160a01b03858116911614611435576001600160801b03838116600090815260706020526040812060010180548316600160801b81021790819055606e5491926112309261271092610cf692169061ffff166130d0565b606e546001600160801b03868116600090815260706020526040812060010154939450926112719261271092610cf692169062010000900461ffff166130d0565b606e546001600160801b03878116600090815260706020526040812060010154939450926112b39261271092610cf6921690600160201b900461ffff166130d0565b6065546040805163fe9d930360e01b81526001600160801b03871660048201526024810182905260006044820181905291519394506001600160a01b039092169263fe9d930392608480820193929182900301818387803b15801561131757600080fd5b505af115801561132b573d6000803e3d6000fd5b50506068546001600160a01b031660009081526071602052604090205461135e92506001600160801b031690508361318c565b6068546001600160a01b0390811660009081526071602052604080822080546001600160801b0319166001600160801b03958616179055606754909216815220546113aa91168261318c565b6067546001600160a01b0390811660009081526071602090815260409182902080546001600160801b0319166001600160801b03958616179055815187851681528685169181019190915284841681830152905192891692918a16917f9c1175e346e9ec25b59d991c43dd2c3c982970d169dbd7315ad3d8bb91e0acf5916060908290030190a35050505b6040516001600160801b038416906001600160a01b038616907f7cae662d4cfa9d9c5575c65f0cc41a858c51ca14ebcbd02a802a62376c3ad23890600090a350505050565b6068546001600160a01b031690565b606f5461ffff1690565b6000606a8260ff16600681106114a557fe5b600291828204019190066010029054906101000a90046001600160801b03169050919050565b6001600160a01b03166000908152607160205260409020546001600160801b031690565b600054610100900460ff1680611508575061150861338f565b80611516575060005460ff16155b6115515760405162461bcd60e51b815260040180806020018281038252602e815260200180613b01602e913960400191505060405180910390fd5b600054610100900460ff1615801561157c576000805460ff1961ff0019909116610100171660011790555b611584613395565b606f80546103e861ffff199091161762ff0000191662140000179055606d805461ffff60801b1916600160811b1761ffff60901b1916608760951b179055606580546001600160a01b0319166001600160a01b03891617905560408051606081018252610fa080825260208201526107d09181019190915261160a90606e90600361383b565b50606680546001600160a01b038088166001600160a01b03199283161790925560698054858416908316179055606880548684169083161790556067805492871692909116919091179055604080516329965a1d60e01b815230600482018190527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b602483015260448201529051731820a4b7618bde71dce8cdc73aab6c95905fad24916329965a1d91606480830192600092919082900301818387803b1580156116d457600080fd5b505af11580156116e8573d6000803e3d6000fd5b50506040805160c081018252678ac7230489e8000080825260208201819052918101829052606081018290526080810182905260a08101919091526117339250606a915060066138d1565b50606d54600160801b900461ffff9081166028021643016001600160801b03871610156117a7576040805162461bcd60e51b815260206004820152601c60248201527f47656e6573697320736d616c6c6572207468616e206d696e696d616c00000000604482015290519081900360640190fd5b606d80546001600160801b0319166001600160801b03881617905580156117d4576000805461ff00191690555b50505050505050565b6067546001600160a01b0316331461182a576040805162461bcd60e51b81526020600482018190526024820152600080516020613ae1833981519152604482015290519081900360640190fd5b606980546001600160a01b0319166001600160a01b03838116919091179182905560408051929091168252517f2161bd0f0e056d18046a81683e5bc845980367451cf4ca5148523a147c51be55916020908290030190a150565b6067546001600160a01b031633146118d1576040805162461bcd60e51b81526020600482018190526024820152600080516020613ae1833981519152604482015290519081900360640190fd5b606880546001600160a01b0319166001600160a01b03838116919091179182905560408051929091168252517fa62863cbad1647a2855e9cd39d04fa6dfd32e1b9cfaff1aaf6523f4aaafeccd7916020908290030190a150565b6065546001600160a01b031681565b6067546001600160a01b03163314611987576040805162461bcd60e51b81526020600482018190526024820152600080516020613ae1833981519152604482015290519081900360640190fd5b6006826001600160801b031611156119dc576040805162461bcd60e51b8152602060048201526013602482015272139bdd0818481d985b1a59081cdb1bdd14d95d606a1b604482015290519081900360640190fd5b606a826001600160801b0316600681106119f257fe5b60028104919091015460019091166010026101000a90046001600160801b0316611a63576040805162461bcd60e51b815260206004820152601e60248201527f5468697320736c6f742073657420697320646563656e7472616c697a65640000604482015290519081900360640190fd5b6000611a6d610be5565b9050805b606d54600160801b900461ffff1682016001600160801b0390811690821611611b27576001600160801b03808216600090815260706020526040902060010154600160801b900416611b1f57606a611ac8826123e3565b6001600160801b031660068110611adb57fe5b6002810491909101546001600160801b038381166000908152607060205260409020600190810180548316919094166010026101000a90920416600160801b021790555b600101611a71565b5081606a846001600160801b031660068110611b3f57fe5b600291828204019190066010026101000a8154816001600160801b0302191690836001600160801b031602179055507fa922aa010d1ff8e70b2aa9247d891836795c3d3ba2a543c37c91a44dc4a50172838360405180836001600160801b03168152602001826001600160801b031681526020019250505060405180910390a1505050565b6067546001600160a01b03163314611c11576040805162461bcd60e51b81526020600482018190526024820152600080516020613ae1833981519152604482015290519081900360640190fd5b806002602002015181600160200201518260006020020151010161ffff1661271014611c6e5760405162461bcd60e51b8152600401808060200182810382526021815260200180613a9f6021913960400191505060405180910390fd5b611c7b606e82600361383b565b506040517f0bb59eceb12f1bdb63e4a7d57c70d6473fefd7c3f51af5a3604f7e97197073e490606e9060608101826000835b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411611cad579050505091505060405180910390a150565b6000600160801b8210611d4f576040805162461bcd60e51b815260206004820152601d60248201527f626c6f636b4e756d62657220686967686572207468616e20325f313238000000604482015290519081900360640190fd5b606d546001600160801b0316821015611daf576040805162461bcd60e51b815260206004820152601b60248201527f41756374696f6e20686173206e6f742073746172746564207965740000000000604482015290519081900360640190fd5b6000611dba83612408565b606d54909150600090611e0390611df3906001600160801b0390811690611de490861660286130d0565b6001600160801b03169061318c565b6001600160801b03861690613444565b6001600160801b0380841660009081526070602052604081206001015492935091600160801b90041615611e5d57506001600160801b03808316600090815260706020526040902060010154600160801b90041680611e9e565b606a611e68846123e3565b6001600160801b031660068110611e7b57fe5b600291828204019190066010029054906101000a90046001600160801b03169050805b506001600160801b03831660009081526070602052604090206002015460ff16158015611edf5750606f5462010000900460ff166001600160801b03831610155b15611ef05760019350505050611fce565b6001600160801b0383166000908152607060205260409020546001600160a01b038781169116148015611f4357506001600160801b03838116600090815260706020526040902060010154818316911610155b15611f545760019350505050611fce565b6069546001600160a01b038781169116148015611fb557506001600160801b0383811660009081526070602052604090206001015481831691161080611fb557506001600160801b0380841660009081526070602052604090206001015416155b15611fc65760019350505050611fce565b600093505050505b92915050565b6067546001600160a01b03163314612021576040805162461bcd60e51b81526020600482018190526024820152600080516020613ae1833981519152604482015290519081900360640190fd5b602860ff8216111561207a576040805162461bcd60e51b815260206004820152601c60248201527f47726561746572207468616e20424c4f434b535f5045525f534c4f5400000000604482015290519081900360640190fd5b606f805460ff8084166201000090810262ff0000199093169290921792839055604080519290930416815290517f4a0d90b611c15e02dbf23b10f35b936cf2c77665f8c77822d3eca131f9d986d39181900360200190a150565b6120dd83610dc4565b612126576040805162461bcd60e51b8152602060048201526015602482015274466f7267657220646f65736e27742065786973747360581b604482015290519081900360640190fd5b6001600160a01b03838116600090815260726020526040902054163314612194576040805162461bcd60e51b815260206004820152601a60248201527f4f6e6c7920746865207769746864726177616c41646472657373000000000000604482015290519081900360640190fd5b6001600160a01b0382166121ef576040805162461bcd60e51b815260206004820152601e60248201527f5769746864726177616c416464726573732063616e2774206265203078300000604482015290519081900360640190fd5b6001600160a01b03838116600090815260726020908152604090912080546001600160a01b03191692851692909217825582516122329260010191840190613972565b506001600160a01b0380841660008181526072602090815260409182902080548351948552909416908301819052606091830182815260019485018054600260001997821615610100029790970116959095049284018390527f384460dae6dd1682b71131272b0e47bcd8ecef844d632c5062db277378a868c59488949293909291906080830190849080156123095780601f106122de57610100808354040283529160200191612309565b820191906000526020600020905b8154815290600101906020018083116122ec57829003601f168201915b505094505050505060405180910390a1505050565b6072602090815260009182526040918290208054600180830180548651600261010094831615949094026000190190911692909204601f81018690048602830186019096528582526001600160a01b039092169492939092908301828280156123c85780601f1061239d576101008083540402835291602001916123c8565b820191906000526020600020905b8154815290600101906020018083116123ab57829003601f168201915b5050505050905082565b606d54600160901b900461ffff1690565b6000611fce6001600160801b0383166006613486565b6066546001600160a01b031681565b606d546000906001600160801b039081169083161015612429576000611fce565b50606d5460286001600160801b03918216909203160490565b61244b82610dc4565b15612492576040805162461bcd60e51b8152602060048201526012602482015271105b1c9958591e481c9959da5cdd195c995960721b604482015290519081900360640190fd5b6001600160a01b038216600090815260726020908152604090912080546001600160a01b0319163317815582516124d192600190920191840190613972565b506001600160a01b0380831660008181526072602090815260409182902080548351948552909416908301819052606091830182815260019485018054600260001997821615610100029790970116959095049284018390527f669c2ad52258689ce95b5b33025822b1afde214fff3a61dd00007d98b5b2ca369487949293909291906080830190849080156125a85780601f1061257d576101008083540402835291602001916125a8565b820191906000526020600020905b81548152906001019060200180831161258b57829003601f168201915b505094505050505060405180910390a15050565b6069546001600160a01b031690565b6070602052600090815260409020805460018201546002909201546001600160a01b03909116916001600160801b0380821692600160801b909204169060ff1684565b6067546001600160a01b0316331461265b576040805162461bcd60e51b81526020600482018190526024820152600080516020613ae1833981519152604482015290519081900360640190fd5b606d5461ffff600160801b909104811690821610156126c1576040805162461bcd60e51b815260206004820152601f60248201527f536d616c6c6572207468616e20636c6f73656441756374696f6e536c6f747300604482015290519081900360640190fd5b606d805461ffff808416600160901b90810261ffff60901b199093169290921792839055604080519290930416815290517f3da0492dea7298351bc14d1c0699905fd0657c33487449751af50fc0c8b593f19181900360200190a150565b6067546001600160a01b0316331461276c576040805162461bcd60e51b81526020600482018190526024820152600080516020613ae1833981519152604482015290519081900360640190fd5b606d5461ffff600160901b909104811690821611156127d2576040805162461bcd60e51b815260206004820152601f60248201527f47726561746572207468616e20636c6f73656441756374696f6e536c6f747300604482015290519081900360640190fd5b606d805461ffff808416600160801b90810261ffff60801b199093169290921792839055604080519290930416815290517fc78051d3757db196b1e445f3a9a1380944518c69b5d7922ec747c54f0340a4ea9181900360200190a150565b6067546001600160a01b0316331461287d576040805162461bcd60e51b81526020600482018190526024820152600080516020613ae1833981519152604482015290519081900360640190fd5b606f805461ffff191661ffff838116919091179182905560408051929091168252517fd3748b8c326e93d12af934fbf87471e315a89bc3f7b8222343acf0210edf248e916020908290030190a150565b678ac7230489e8000081565b6128e16139ec565b60408051606081019182905290606e90600390826000855b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116128f95790505050505050905090565b6071602052600090815260409020546001600160801b031681565b600080806129678460048188613a76565b606081101561297557600080fd5b5080356001600160801b0390811694506020820135169250604001356001600160a01b031690506129a581610dc4565b6129f6576040805162461bcd60e51b815260206004820152601a60248201527f436f6f7264696e61746f72206e6f742072656769737465726564000000000000604482015290519081900360640190fd5b606d54600160801b900461ffff16612a0c610be5565b016001600160801b0316836001600160801b03161015612a73576040805162461bcd60e51b815260206004820152601f60248201527f41756374696f6e2068617320616c7265616479206265656e20636c6f73656400604482015290519081900360640190fd5b612a7c83610c09565b6001600160801b0316826001600160801b03161015612ad6576040805162461bcd60e51b81526020600482015260116024820152704269642062656c6f77206d696e696d756d60781b604482015290519081900360640190fd5b606d5461ffff600160901b8204811691600160801b900416612af6610be5565b01016001600160801b0316836001600160801b031610612b5d576040805162461bcd60e51b815260206004820152601b60248201527f42696420686173206e6f74206265656e206f70656e6564207965740000000000604482015290519081900360640190fd5b6001600160a01b038082166000908152607260209081526040808320549093168252607190522054612b98906001600160801b03168761318c565b6001600160a01b038281166000908152607260209081526040808320805485168452607190925280832080546001600160801b0319166001600160801b0396871617905590549092168152205483821691161015612c3d576040805162461bcd60e51b815260206004820152601a60248201527f446f206e6f74206861766520656e6f7567682062616c616e6365000000000000604482015290519081900360640190fd5b612c488383836134c8565b505050505050565b600080612c5b613a0a565b60008080612c6c876004818b613a76565b610160811015612c7b57600080fd5b6040805160c081810183526001600160801b03853581169560208101359091169481019390926101008401929091840190600690839083908082843760009201919091525050606d54969c50949a50985080356001600160801b0390811698506020820135169650604001356001600160a01b031694505050600160801b90910461ffff169050612d0a610be5565b016001600160801b0316866001600160801b03161015612d71576040805162461bcd60e51b815260206004820152601f60248201527f41756374696f6e2068617320616c7265616479206265656e20636c6f73656400604482015290519081900360640190fd5b606d5461ffff600160901b8204811691600160801b900416612d91610be5565b01016001600160801b0316856001600160801b031610612df8576040805162461bcd60e51b815260206004820152601b60248201527f42696420686173206e6f74206265656e206f70656e6564207965740000000000604482015290519081900360640190fd5b816001600160801b0316836001600160801b03161015612e5f576040805162461bcd60e51b815260206004820181905260248201527f6d61784269642073686f756c64206265203e3d20636c6f7365644d696e426964604482015290519081900360640190fd5b612e6881610dc4565b612eb9576040805162461bcd60e51b815260206004820152601a60248201527f436f6f7264696e61746f72206e6f742072656769737465726564000000000000604482015290519081900360640190fd5b6000805b6006811015612eeb57858160068110612ed257fe5b602002015115612ee3576001909101905b600101612ebd565b506001600160a01b038083166000908152607260209081526040808320549093168252607190522054612f27906001600160801b03168b61318c565b6001600160a01b0383811660009081526072602090815260408083205490931682526071905290812080546001600160801b0319166001600160801b039390931692909217909155875b876001600160801b0316816001600160801b0316116130c2576000612f9582610c09565b9050856001600160801b0316816001600160801b031611612fb857859250612ffe565b856001600160801b0316816001600160801b0316118015612feb5750866001600160801b0316816001600160801b031611155b15612ff857809250612ffe565b506130ba565b87613008836123e3565b6001600160801b03166006811061301b57fe5b6020020151156130b8576001600160a01b0380861660009081526072602090815260408083205490931682526071905220546001600160801b03808516911610156130ad576040805162461bcd60e51b815260206004820152601a60248201527f446f206e6f74206861766520656e6f7567682062616c616e6365000000000000604482015290519081900360640190fd5b6130b88284876134c8565b505b600101612f71565b505050505050505050505050565b60006001600160801b0383166130e857506000611fce565b8282026001600160801b03808416908086169083168161310457fe5b046001600160801b031614610dbd5760405162461bcd60e51b8152600401808060200182810382526021815260200180613ac06021913960400191505060405180910390fd5b6000610dbd83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613694565b60008282016001600160801b038085169082161015610dbd576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080518082018252601981527f7472616e7366657228616464726573732c75696e74323536290000000000000060209182015281516001600160a01b0385811660248301526001600160801b038516604480840191909152845180840390910181526064909201845291810180516001600160e01b031663a9059cbb60e01b1781529251815160009460609489169392918291908083835b602083106132aa5780518252601f19909201916020918201910161328b565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461330c576040519150601f19603f3d011682016040523d82523d6000602084013e613311565b606091505b509150915081801561333f57508051158061333f575080806020019051602081101561333c57600080fd5b50515b613388576040805162461bcd60e51b8152602060048201526015602482015274151bdad95b88151c985b9cd9995c8811985a5b1959605a1b604482015290519081900360640190fd5b5050505050565b303b1590565b600054610100900460ff16806133ae57506133ae61338f565b806133bc575060005460ff16155b6133f75760405162461bcd60e51b815260040180806020018281038252602e815260200180613b01602e913960400191505060405180910390fd5b600054610100900460ff16158015613422576000805460ff1961ff0019909116610100171660011790555b6033805460ff191660011790558015613441576000805461ff00191690555b50565b6000610dbd83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613751565b6000610dbd83836040518060400160405280601881526020017f536166654d6174683a206d6f64756c6f206279207a65726f00000000000000008152506137be565b6001600160801b03808416600090815260706020908152604080832080546001909101546001600160a01b03878116865260728552838620548116865260719094529190932054919092169291821691613523911685613444565b6001600160a01b03848116600081815260726020908152604080832054851683526071825280832080546001600160801b03199081166001600160801b03988916179091558b87168452607090925290912080546001600160a01b03191690921782556001919091018054909116928716929092179091558216158015906135b357506001600160801b03811615155b15613639576001600160a01b0380831660009081526072602090815260408083205490931682526071905220546135f3906001600160801b03168261318c565b6001600160a01b038381166000908152607260209081526040808320549093168252607190522080546001600160801b0319166001600160801b03929092169190911790555b826001600160a01b0316856001600160801b03167fd48e8329cdb2fb109b4fe445d7b681a74b256bff16e6f7f33b9d4fbe9038e4338660405180826001600160801b0316815260200191505060405180910390a35050505050565b6000816001600160801b0384166137295760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156136ee5781810151838201526020016136d6565b50505050905090810190601f16801561371b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000836001600160801b0316856001600160801b03168161374757fe5b0495945050505050565b6000836001600160801b0316836001600160801b0316111582906137b65760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156136ee5781810151838201526020016136d6565b505050900390565b6000816001600160801b0384166138165760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156136ee5781810151838201526020016136d6565b50826001600160801b0316846001600160801b03168161383257fe5b06949350505050565b6001830191839082156138c15791602002820160005b8382111561389157835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302613851565b80156138bf5782816101000a81549061ffff0219169055600201602081600101049283019260010302613891565b505b506138cd929150613a28565b5090565b6003830191839082156139665791602002820160005b8382111561393157835183826101000a8154816001600160801b0302191690836001600160801b031602179055509260200192601001602081600f010492830192600103026138e7565b80156139645782816101000a8154906001600160801b030219169055601001602081600f01049283019260010302613931565b505b506138cd929150613a42565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106139b357805160ff19168380011785556139e0565b828001600101855582156139e0579182015b828111156139e05782518255916020019190600101906139c5565b506138cd929150613a61565b60405180606001604052806003906020820280368337509192915050565b6040518060c001604052806006906020820280368337509192915050565b5b808211156138cd57805461ffff19168155600101613a29565b5b808211156138cd5780546001600160801b0319168155600101613a43565b5b808211156138cd5760008155600101613a62565b60008085851115613a85578182fd5b83861115613a91578182fd5b505082019391909203915056fe416c6c6f636174696f6e526174696f2068617320746f206265203130302e303025536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a264697066735822122029cc2200d63f887bdbf1b2b005660db3d08666343aa70a0a1c97577fe46c52c764736f6c634300060c0033"
  28. // DeployHermezAuctionProtocol deploys a new Ethereum contract, binding an instance of HermezAuctionProtocol to it.
  29. func DeployHermezAuctionProtocol(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *HermezAuctionProtocol, error) {
  30. parsed, err := abi.JSON(strings.NewReader(HermezAuctionProtocolABI))
  31. if err != nil {
  32. return common.Address{}, nil, nil, err
  33. }
  34. address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex(HermezAuctionProtocolBin), backend)
  35. if err != nil {
  36. return common.Address{}, nil, nil, err
  37. }
  38. return address, tx, &HermezAuctionProtocol{HermezAuctionProtocolCaller: HermezAuctionProtocolCaller{contract: contract}, HermezAuctionProtocolTransactor: HermezAuctionProtocolTransactor{contract: contract}, HermezAuctionProtocolFilterer: HermezAuctionProtocolFilterer{contract: contract}}, nil
  39. }
  40. // HermezAuctionProtocol is an auto generated Go binding around an Ethereum contract.
  41. type HermezAuctionProtocol struct {
  42. HermezAuctionProtocolCaller // Read-only binding to the contract
  43. HermezAuctionProtocolTransactor // Write-only binding to the contract
  44. HermezAuctionProtocolFilterer // Log filterer for contract events
  45. }
  46. // HermezAuctionProtocolCaller is an auto generated read-only Go binding around an Ethereum contract.
  47. type HermezAuctionProtocolCaller struct {
  48. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  49. }
  50. // HermezAuctionProtocolTransactor is an auto generated write-only Go binding around an Ethereum contract.
  51. type HermezAuctionProtocolTransactor struct {
  52. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  53. }
  54. // HermezAuctionProtocolFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
  55. type HermezAuctionProtocolFilterer struct {
  56. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  57. }
  58. // HermezAuctionProtocolSession is an auto generated Go binding around an Ethereum contract,
  59. // with pre-set call and transact options.
  60. type HermezAuctionProtocolSession struct {
  61. Contract *HermezAuctionProtocol // Generic contract binding to set the session for
  62. CallOpts bind.CallOpts // Call options to use throughout this session
  63. TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
  64. }
  65. // HermezAuctionProtocolCallerSession is an auto generated read-only Go binding around an Ethereum contract,
  66. // with pre-set call options.
  67. type HermezAuctionProtocolCallerSession struct {
  68. Contract *HermezAuctionProtocolCaller // Generic contract caller binding to set the session for
  69. CallOpts bind.CallOpts // Call options to use throughout this session
  70. }
  71. // HermezAuctionProtocolTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
  72. // with pre-set transact options.
  73. type HermezAuctionProtocolTransactorSession struct {
  74. Contract *HermezAuctionProtocolTransactor // Generic contract transactor binding to set the session for
  75. TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
  76. }
  77. // HermezAuctionProtocolRaw is an auto generated low-level Go binding around an Ethereum contract.
  78. type HermezAuctionProtocolRaw struct {
  79. Contract *HermezAuctionProtocol // Generic contract binding to access the raw methods on
  80. }
  81. // HermezAuctionProtocolCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
  82. type HermezAuctionProtocolCallerRaw struct {
  83. Contract *HermezAuctionProtocolCaller // Generic read-only contract binding to access the raw methods on
  84. }
  85. // HermezAuctionProtocolTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
  86. type HermezAuctionProtocolTransactorRaw struct {
  87. Contract *HermezAuctionProtocolTransactor // Generic write-only contract binding to access the raw methods on
  88. }
  89. // NewHermezAuctionProtocol creates a new instance of HermezAuctionProtocol, bound to a specific deployed contract.
  90. func NewHermezAuctionProtocol(address common.Address, backend bind.ContractBackend) (*HermezAuctionProtocol, error) {
  91. contract, err := bindHermezAuctionProtocol(address, backend, backend, backend)
  92. if err != nil {
  93. return nil, err
  94. }
  95. return &HermezAuctionProtocol{HermezAuctionProtocolCaller: HermezAuctionProtocolCaller{contract: contract}, HermezAuctionProtocolTransactor: HermezAuctionProtocolTransactor{contract: contract}, HermezAuctionProtocolFilterer: HermezAuctionProtocolFilterer{contract: contract}}, nil
  96. }
  97. // NewHermezAuctionProtocolCaller creates a new read-only instance of HermezAuctionProtocol, bound to a specific deployed contract.
  98. func NewHermezAuctionProtocolCaller(address common.Address, caller bind.ContractCaller) (*HermezAuctionProtocolCaller, error) {
  99. contract, err := bindHermezAuctionProtocol(address, caller, nil, nil)
  100. if err != nil {
  101. return nil, err
  102. }
  103. return &HermezAuctionProtocolCaller{contract: contract}, nil
  104. }
  105. // NewHermezAuctionProtocolTransactor creates a new write-only instance of HermezAuctionProtocol, bound to a specific deployed contract.
  106. func NewHermezAuctionProtocolTransactor(address common.Address, transactor bind.ContractTransactor) (*HermezAuctionProtocolTransactor, error) {
  107. contract, err := bindHermezAuctionProtocol(address, nil, transactor, nil)
  108. if err != nil {
  109. return nil, err
  110. }
  111. return &HermezAuctionProtocolTransactor{contract: contract}, nil
  112. }
  113. // NewHermezAuctionProtocolFilterer creates a new log filterer instance of HermezAuctionProtocol, bound to a specific deployed contract.
  114. func NewHermezAuctionProtocolFilterer(address common.Address, filterer bind.ContractFilterer) (*HermezAuctionProtocolFilterer, error) {
  115. contract, err := bindHermezAuctionProtocol(address, nil, nil, filterer)
  116. if err != nil {
  117. return nil, err
  118. }
  119. return &HermezAuctionProtocolFilterer{contract: contract}, nil
  120. }
  121. // bindHermezAuctionProtocol binds a generic wrapper to an already deployed contract.
  122. func bindHermezAuctionProtocol(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
  123. parsed, err := abi.JSON(strings.NewReader(HermezAuctionProtocolABI))
  124. if err != nil {
  125. return nil, err
  126. }
  127. return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
  128. }
  129. // Call invokes the (constant) contract method with params as input values and
  130. // sets the output to result. The result type might be a single field for simple
  131. // returns, a slice of interfaces for anonymous returns and a struct for named
  132. // returns.
  133. func (_HermezAuctionProtocol *HermezAuctionProtocolRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
  134. return _HermezAuctionProtocol.Contract.HermezAuctionProtocolCaller.contract.Call(opts, result, method, params...)
  135. }
  136. // Transfer initiates a plain transaction to move funds to the contract, calling
  137. // its default method if one is available.
  138. func (_HermezAuctionProtocol *HermezAuctionProtocolRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
  139. return _HermezAuctionProtocol.Contract.HermezAuctionProtocolTransactor.contract.Transfer(opts)
  140. }
  141. // Transact invokes the (paid) contract method with params as input values.
  142. func (_HermezAuctionProtocol *HermezAuctionProtocolRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
  143. return _HermezAuctionProtocol.Contract.HermezAuctionProtocolTransactor.contract.Transact(opts, method, params...)
  144. }
  145. // Call invokes the (constant) contract method with params as input values and
  146. // sets the output to result. The result type might be a single field for simple
  147. // returns, a slice of interfaces for anonymous returns and a struct for named
  148. // returns.
  149. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
  150. return _HermezAuctionProtocol.Contract.contract.Call(opts, result, method, params...)
  151. }
  152. // Transfer initiates a plain transaction to move funds to the contract, calling
  153. // its default method if one is available.
  154. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
  155. return _HermezAuctionProtocol.Contract.contract.Transfer(opts)
  156. }
  157. // Transact invokes the (paid) contract method with params as input values.
  158. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
  159. return _HermezAuctionProtocol.Contract.contract.Transact(opts, method, params...)
  160. }
  161. // BLOCKSPERSLOT is a free data retrieval call binding the contract method 0x2243de47.
  162. //
  163. // Solidity: function BLOCKS_PER_SLOT() view returns(uint8)
  164. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) BLOCKSPERSLOT(opts *bind.CallOpts) (uint8, error) {
  165. var (
  166. ret0 = new(uint8)
  167. )
  168. out := ret0
  169. err := _HermezAuctionProtocol.contract.Call(opts, out, "BLOCKS_PER_SLOT")
  170. return *ret0, err
  171. }
  172. // BLOCKSPERSLOT is a free data retrieval call binding the contract method 0x2243de47.
  173. //
  174. // Solidity: function BLOCKS_PER_SLOT() view returns(uint8)
  175. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) BLOCKSPERSLOT() (uint8, error) {
  176. return _HermezAuctionProtocol.Contract.BLOCKSPERSLOT(&_HermezAuctionProtocol.CallOpts)
  177. }
  178. // BLOCKSPERSLOT is a free data retrieval call binding the contract method 0x2243de47.
  179. //
  180. // Solidity: function BLOCKS_PER_SLOT() view returns(uint8)
  181. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) BLOCKSPERSLOT() (uint8, error) {
  182. return _HermezAuctionProtocol.Contract.BLOCKSPERSLOT(&_HermezAuctionProtocol.CallOpts)
  183. }
  184. // INITIALMINIMALBIDDING is a free data retrieval call binding the contract method 0xe6065914.
  185. //
  186. // Solidity: function INITIAL_MINIMAL_BIDDING() view returns(uint128)
  187. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) INITIALMINIMALBIDDING(opts *bind.CallOpts) (*big.Int, error) {
  188. var (
  189. ret0 = new(*big.Int)
  190. )
  191. out := ret0
  192. err := _HermezAuctionProtocol.contract.Call(opts, out, "INITIAL_MINIMAL_BIDDING")
  193. return *ret0, err
  194. }
  195. // INITIALMINIMALBIDDING is a free data retrieval call binding the contract method 0xe6065914.
  196. //
  197. // Solidity: function INITIAL_MINIMAL_BIDDING() view returns(uint128)
  198. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) INITIALMINIMALBIDDING() (*big.Int, error) {
  199. return _HermezAuctionProtocol.Contract.INITIALMINIMALBIDDING(&_HermezAuctionProtocol.CallOpts)
  200. }
  201. // INITIALMINIMALBIDDING is a free data retrieval call binding the contract method 0xe6065914.
  202. //
  203. // Solidity: function INITIAL_MINIMAL_BIDDING() view returns(uint128)
  204. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) INITIALMINIMALBIDDING() (*big.Int, error) {
  205. return _HermezAuctionProtocol.Contract.INITIALMINIMALBIDDING(&_HermezAuctionProtocol.CallOpts)
  206. }
  207. // CanForge is a free data retrieval call binding the contract method 0x83b1f6a0.
  208. //
  209. // Solidity: function canForge(address forger, uint256 blockNumber) view returns(bool)
  210. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) CanForge(opts *bind.CallOpts, forger common.Address, blockNumber *big.Int) (bool, error) {
  211. var (
  212. ret0 = new(bool)
  213. )
  214. out := ret0
  215. err := _HermezAuctionProtocol.contract.Call(opts, out, "canForge", forger, blockNumber)
  216. return *ret0, err
  217. }
  218. // CanForge is a free data retrieval call binding the contract method 0x83b1f6a0.
  219. //
  220. // Solidity: function canForge(address forger, uint256 blockNumber) view returns(bool)
  221. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) CanForge(forger common.Address, blockNumber *big.Int) (bool, error) {
  222. return _HermezAuctionProtocol.Contract.CanForge(&_HermezAuctionProtocol.CallOpts, forger, blockNumber)
  223. }
  224. // CanForge is a free data retrieval call binding the contract method 0x83b1f6a0.
  225. //
  226. // Solidity: function canForge(address forger, uint256 blockNumber) view returns(bool)
  227. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) CanForge(forger common.Address, blockNumber *big.Int) (bool, error) {
  228. return _HermezAuctionProtocol.Contract.CanForge(&_HermezAuctionProtocol.CallOpts, forger, blockNumber)
  229. }
  230. // Coordinators is a free data retrieval call binding the contract method 0xa48af096.
  231. //
  232. // Solidity: function coordinators(address ) view returns(address withdrawalAddress, string coordinatorURL)
  233. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) Coordinators(opts *bind.CallOpts, arg0 common.Address) (struct {
  234. WithdrawalAddress common.Address
  235. CoordinatorURL string
  236. }, error) {
  237. ret := new(struct {
  238. WithdrawalAddress common.Address
  239. CoordinatorURL string
  240. })
  241. out := ret
  242. err := _HermezAuctionProtocol.contract.Call(opts, out, "coordinators", arg0)
  243. return *ret, err
  244. }
  245. // Coordinators is a free data retrieval call binding the contract method 0xa48af096.
  246. //
  247. // Solidity: function coordinators(address ) view returns(address withdrawalAddress, string coordinatorURL)
  248. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) Coordinators(arg0 common.Address) (struct {
  249. WithdrawalAddress common.Address
  250. CoordinatorURL string
  251. }, error) {
  252. return _HermezAuctionProtocol.Contract.Coordinators(&_HermezAuctionProtocol.CallOpts, arg0)
  253. }
  254. // Coordinators is a free data retrieval call binding the contract method 0xa48af096.
  255. //
  256. // Solidity: function coordinators(address ) view returns(address withdrawalAddress, string coordinatorURL)
  257. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) Coordinators(arg0 common.Address) (struct {
  258. WithdrawalAddress common.Address
  259. CoordinatorURL string
  260. }, error) {
  261. return _HermezAuctionProtocol.Contract.Coordinators(&_HermezAuctionProtocol.CallOpts, arg0)
  262. }
  263. // GenesisBlock is a free data retrieval call binding the contract method 0x4cdc9c63.
  264. //
  265. // Solidity: function genesisBlock() view returns(uint128)
  266. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GenesisBlock(opts *bind.CallOpts) (*big.Int, error) {
  267. var (
  268. ret0 = new(*big.Int)
  269. )
  270. out := ret0
  271. err := _HermezAuctionProtocol.contract.Call(opts, out, "genesisBlock")
  272. return *ret0, err
  273. }
  274. // GenesisBlock is a free data retrieval call binding the contract method 0x4cdc9c63.
  275. //
  276. // Solidity: function genesisBlock() view returns(uint128)
  277. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) GenesisBlock() (*big.Int, error) {
  278. return _HermezAuctionProtocol.Contract.GenesisBlock(&_HermezAuctionProtocol.CallOpts)
  279. }
  280. // GenesisBlock is a free data retrieval call binding the contract method 0x4cdc9c63.
  281. //
  282. // Solidity: function genesisBlock() view returns(uint128)
  283. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) GenesisBlock() (*big.Int, error) {
  284. return _HermezAuctionProtocol.Contract.GenesisBlock(&_HermezAuctionProtocol.CallOpts)
  285. }
  286. // GetAllocationRatio is a free data retrieval call binding the contract method 0xec29159b.
  287. //
  288. // Solidity: function getAllocationRatio() view returns(uint16[3])
  289. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetAllocationRatio(opts *bind.CallOpts) ([3]uint16, error) {
  290. var (
  291. ret0 = new([3]uint16)
  292. )
  293. out := ret0
  294. err := _HermezAuctionProtocol.contract.Call(opts, out, "getAllocationRatio")
  295. return *ret0, err
  296. }
  297. // GetAllocationRatio is a free data retrieval call binding the contract method 0xec29159b.
  298. //
  299. // Solidity: function getAllocationRatio() view returns(uint16[3])
  300. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) GetAllocationRatio() ([3]uint16, error) {
  301. return _HermezAuctionProtocol.Contract.GetAllocationRatio(&_HermezAuctionProtocol.CallOpts)
  302. }
  303. // GetAllocationRatio is a free data retrieval call binding the contract method 0xec29159b.
  304. //
  305. // Solidity: function getAllocationRatio() view returns(uint16[3])
  306. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) GetAllocationRatio() ([3]uint16, error) {
  307. return _HermezAuctionProtocol.Contract.GetAllocationRatio(&_HermezAuctionProtocol.CallOpts)
  308. }
  309. // GetBootCoordinator is a free data retrieval call binding the contract method 0xb5f7f2f0.
  310. //
  311. // Solidity: function getBootCoordinator() view returns(address)
  312. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetBootCoordinator(opts *bind.CallOpts) (common.Address, error) {
  313. var (
  314. ret0 = new(common.Address)
  315. )
  316. out := ret0
  317. err := _HermezAuctionProtocol.contract.Call(opts, out, "getBootCoordinator")
  318. return *ret0, err
  319. }
  320. // GetBootCoordinator is a free data retrieval call binding the contract method 0xb5f7f2f0.
  321. //
  322. // Solidity: function getBootCoordinator() view returns(address)
  323. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) GetBootCoordinator() (common.Address, error) {
  324. return _HermezAuctionProtocol.Contract.GetBootCoordinator(&_HermezAuctionProtocol.CallOpts)
  325. }
  326. // GetBootCoordinator is a free data retrieval call binding the contract method 0xb5f7f2f0.
  327. //
  328. // Solidity: function getBootCoordinator() view returns(address)
  329. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) GetBootCoordinator() (common.Address, error) {
  330. return _HermezAuctionProtocol.Contract.GetBootCoordinator(&_HermezAuctionProtocol.CallOpts)
  331. }
  332. // GetClaimableHEZ is a free data retrieval call binding the contract method 0x5cca4903.
  333. //
  334. // Solidity: function getClaimableHEZ(address claimAddress) view returns(uint128)
  335. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetClaimableHEZ(opts *bind.CallOpts, claimAddress common.Address) (*big.Int, error) {
  336. var (
  337. ret0 = new(*big.Int)
  338. )
  339. out := ret0
  340. err := _HermezAuctionProtocol.contract.Call(opts, out, "getClaimableHEZ", claimAddress)
  341. return *ret0, err
  342. }
  343. // GetClaimableHEZ is a free data retrieval call binding the contract method 0x5cca4903.
  344. //
  345. // Solidity: function getClaimableHEZ(address claimAddress) view returns(uint128)
  346. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) GetClaimableHEZ(claimAddress common.Address) (*big.Int, error) {
  347. return _HermezAuctionProtocol.Contract.GetClaimableHEZ(&_HermezAuctionProtocol.CallOpts, claimAddress)
  348. }
  349. // GetClaimableHEZ is a free data retrieval call binding the contract method 0x5cca4903.
  350. //
  351. // Solidity: function getClaimableHEZ(address claimAddress) view returns(uint128)
  352. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) GetClaimableHEZ(claimAddress common.Address) (*big.Int, error) {
  353. return _HermezAuctionProtocol.Contract.GetClaimableHEZ(&_HermezAuctionProtocol.CallOpts, claimAddress)
  354. }
  355. // GetClosedAuctionSlots is a free data retrieval call binding the contract method 0x4da9639d.
  356. //
  357. // Solidity: function getClosedAuctionSlots() view returns(uint16)
  358. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetClosedAuctionSlots(opts *bind.CallOpts) (uint16, error) {
  359. var (
  360. ret0 = new(uint16)
  361. )
  362. out := ret0
  363. err := _HermezAuctionProtocol.contract.Call(opts, out, "getClosedAuctionSlots")
  364. return *ret0, err
  365. }
  366. // GetClosedAuctionSlots is a free data retrieval call binding the contract method 0x4da9639d.
  367. //
  368. // Solidity: function getClosedAuctionSlots() view returns(uint16)
  369. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) GetClosedAuctionSlots() (uint16, error) {
  370. return _HermezAuctionProtocol.Contract.GetClosedAuctionSlots(&_HermezAuctionProtocol.CallOpts)
  371. }
  372. // GetClosedAuctionSlots is a free data retrieval call binding the contract method 0x4da9639d.
  373. //
  374. // Solidity: function getClosedAuctionSlots() view returns(uint16)
  375. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) GetClosedAuctionSlots() (uint16, error) {
  376. return _HermezAuctionProtocol.Contract.GetClosedAuctionSlots(&_HermezAuctionProtocol.CallOpts)
  377. }
  378. // GetCurrentSlotNumber is a free data retrieval call binding the contract method 0x0c4da4f6.
  379. //
  380. // Solidity: function getCurrentSlotNumber() view returns(uint128)
  381. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetCurrentSlotNumber(opts *bind.CallOpts) (*big.Int, error) {
  382. var (
  383. ret0 = new(*big.Int)
  384. )
  385. out := ret0
  386. err := _HermezAuctionProtocol.contract.Call(opts, out, "getCurrentSlotNumber")
  387. return *ret0, err
  388. }
  389. // GetCurrentSlotNumber is a free data retrieval call binding the contract method 0x0c4da4f6.
  390. //
  391. // Solidity: function getCurrentSlotNumber() view returns(uint128)
  392. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) GetCurrentSlotNumber() (*big.Int, error) {
  393. return _HermezAuctionProtocol.Contract.GetCurrentSlotNumber(&_HermezAuctionProtocol.CallOpts)
  394. }
  395. // GetCurrentSlotNumber is a free data retrieval call binding the contract method 0x0c4da4f6.
  396. //
  397. // Solidity: function getCurrentSlotNumber() view returns(uint128)
  398. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) GetCurrentSlotNumber() (*big.Int, error) {
  399. return _HermezAuctionProtocol.Contract.GetCurrentSlotNumber(&_HermezAuctionProtocol.CallOpts)
  400. }
  401. // GetDefaultSlotSetBid is a free data retrieval call binding the contract method 0x564e6a71.
  402. //
  403. // Solidity: function getDefaultSlotSetBid(uint8 slotSet) view returns(uint128)
  404. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetDefaultSlotSetBid(opts *bind.CallOpts, slotSet uint8) (*big.Int, error) {
  405. var (
  406. ret0 = new(*big.Int)
  407. )
  408. out := ret0
  409. err := _HermezAuctionProtocol.contract.Call(opts, out, "getDefaultSlotSetBid", slotSet)
  410. return *ret0, err
  411. }
  412. // GetDefaultSlotSetBid is a free data retrieval call binding the contract method 0x564e6a71.
  413. //
  414. // Solidity: function getDefaultSlotSetBid(uint8 slotSet) view returns(uint128)
  415. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) GetDefaultSlotSetBid(slotSet uint8) (*big.Int, error) {
  416. return _HermezAuctionProtocol.Contract.GetDefaultSlotSetBid(&_HermezAuctionProtocol.CallOpts, slotSet)
  417. }
  418. // GetDefaultSlotSetBid is a free data retrieval call binding the contract method 0x564e6a71.
  419. //
  420. // Solidity: function getDefaultSlotSetBid(uint8 slotSet) view returns(uint128)
  421. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) GetDefaultSlotSetBid(slotSet uint8) (*big.Int, error) {
  422. return _HermezAuctionProtocol.Contract.GetDefaultSlotSetBid(&_HermezAuctionProtocol.CallOpts, slotSet)
  423. }
  424. // GetDonationAddress is a free data retrieval call binding the contract method 0x54c03ab7.
  425. //
  426. // Solidity: function getDonationAddress() view returns(address)
  427. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetDonationAddress(opts *bind.CallOpts) (common.Address, error) {
  428. var (
  429. ret0 = new(common.Address)
  430. )
  431. out := ret0
  432. err := _HermezAuctionProtocol.contract.Call(opts, out, "getDonationAddress")
  433. return *ret0, err
  434. }
  435. // GetDonationAddress is a free data retrieval call binding the contract method 0x54c03ab7.
  436. //
  437. // Solidity: function getDonationAddress() view returns(address)
  438. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) GetDonationAddress() (common.Address, error) {
  439. return _HermezAuctionProtocol.Contract.GetDonationAddress(&_HermezAuctionProtocol.CallOpts)
  440. }
  441. // GetDonationAddress is a free data retrieval call binding the contract method 0x54c03ab7.
  442. //
  443. // Solidity: function getDonationAddress() view returns(address)
  444. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) GetDonationAddress() (common.Address, error) {
  445. return _HermezAuctionProtocol.Contract.GetDonationAddress(&_HermezAuctionProtocol.CallOpts)
  446. }
  447. // GetMinBidBySlot is a free data retrieval call binding the contract method 0x37d1bd0b.
  448. //
  449. // Solidity: function getMinBidBySlot(uint128 slot) view returns(uint128)
  450. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetMinBidBySlot(opts *bind.CallOpts, slot *big.Int) (*big.Int, error) {
  451. var (
  452. ret0 = new(*big.Int)
  453. )
  454. out := ret0
  455. err := _HermezAuctionProtocol.contract.Call(opts, out, "getMinBidBySlot", slot)
  456. return *ret0, err
  457. }
  458. // GetMinBidBySlot is a free data retrieval call binding the contract method 0x37d1bd0b.
  459. //
  460. // Solidity: function getMinBidBySlot(uint128 slot) view returns(uint128)
  461. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) GetMinBidBySlot(slot *big.Int) (*big.Int, error) {
  462. return _HermezAuctionProtocol.Contract.GetMinBidBySlot(&_HermezAuctionProtocol.CallOpts, slot)
  463. }
  464. // GetMinBidBySlot is a free data retrieval call binding the contract method 0x37d1bd0b.
  465. //
  466. // Solidity: function getMinBidBySlot(uint128 slot) view returns(uint128)
  467. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) GetMinBidBySlot(slot *big.Int) (*big.Int, error) {
  468. return _HermezAuctionProtocol.Contract.GetMinBidBySlot(&_HermezAuctionProtocol.CallOpts, slot)
  469. }
  470. // GetOpenAuctionSlots is a free data retrieval call binding the contract method 0xac4b9012.
  471. //
  472. // Solidity: function getOpenAuctionSlots() view returns(uint16)
  473. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetOpenAuctionSlots(opts *bind.CallOpts) (uint16, error) {
  474. var (
  475. ret0 = new(uint16)
  476. )
  477. out := ret0
  478. err := _HermezAuctionProtocol.contract.Call(opts, out, "getOpenAuctionSlots")
  479. return *ret0, err
  480. }
  481. // GetOpenAuctionSlots is a free data retrieval call binding the contract method 0xac4b9012.
  482. //
  483. // Solidity: function getOpenAuctionSlots() view returns(uint16)
  484. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) GetOpenAuctionSlots() (uint16, error) {
  485. return _HermezAuctionProtocol.Contract.GetOpenAuctionSlots(&_HermezAuctionProtocol.CallOpts)
  486. }
  487. // GetOpenAuctionSlots is a free data retrieval call binding the contract method 0xac4b9012.
  488. //
  489. // Solidity: function getOpenAuctionSlots() view returns(uint16)
  490. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) GetOpenAuctionSlots() (uint16, error) {
  491. return _HermezAuctionProtocol.Contract.GetOpenAuctionSlots(&_HermezAuctionProtocol.CallOpts)
  492. }
  493. // GetOutbidding is a free data retrieval call binding the contract method 0x55b442e6.
  494. //
  495. // Solidity: function getOutbidding() view returns(uint16)
  496. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetOutbidding(opts *bind.CallOpts) (uint16, error) {
  497. var (
  498. ret0 = new(uint16)
  499. )
  500. out := ret0
  501. err := _HermezAuctionProtocol.contract.Call(opts, out, "getOutbidding")
  502. return *ret0, err
  503. }
  504. // GetOutbidding is a free data retrieval call binding the contract method 0x55b442e6.
  505. //
  506. // Solidity: function getOutbidding() view returns(uint16)
  507. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) GetOutbidding() (uint16, error) {
  508. return _HermezAuctionProtocol.Contract.GetOutbidding(&_HermezAuctionProtocol.CallOpts)
  509. }
  510. // GetOutbidding is a free data retrieval call binding the contract method 0x55b442e6.
  511. //
  512. // Solidity: function getOutbidding() view returns(uint16)
  513. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) GetOutbidding() (uint16, error) {
  514. return _HermezAuctionProtocol.Contract.GetOutbidding(&_HermezAuctionProtocol.CallOpts)
  515. }
  516. // GetSlotDeadline is a free data retrieval call binding the contract method 0x13de9af2.
  517. //
  518. // Solidity: function getSlotDeadline() view returns(uint8)
  519. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetSlotDeadline(opts *bind.CallOpts) (uint8, error) {
  520. var (
  521. ret0 = new(uint8)
  522. )
  523. out := ret0
  524. err := _HermezAuctionProtocol.contract.Call(opts, out, "getSlotDeadline")
  525. return *ret0, err
  526. }
  527. // GetSlotDeadline is a free data retrieval call binding the contract method 0x13de9af2.
  528. //
  529. // Solidity: function getSlotDeadline() view returns(uint8)
  530. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) GetSlotDeadline() (uint8, error) {
  531. return _HermezAuctionProtocol.Contract.GetSlotDeadline(&_HermezAuctionProtocol.CallOpts)
  532. }
  533. // GetSlotDeadline is a free data retrieval call binding the contract method 0x13de9af2.
  534. //
  535. // Solidity: function getSlotDeadline() view returns(uint8)
  536. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) GetSlotDeadline() (uint8, error) {
  537. return _HermezAuctionProtocol.Contract.GetSlotDeadline(&_HermezAuctionProtocol.CallOpts)
  538. }
  539. // GetSlotNumber is a free data retrieval call binding the contract method 0xb3dc7bb1.
  540. //
  541. // Solidity: function getSlotNumber(uint128 blockNumber) view returns(uint128)
  542. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetSlotNumber(opts *bind.CallOpts, blockNumber *big.Int) (*big.Int, error) {
  543. var (
  544. ret0 = new(*big.Int)
  545. )
  546. out := ret0
  547. err := _HermezAuctionProtocol.contract.Call(opts, out, "getSlotNumber", blockNumber)
  548. return *ret0, err
  549. }
  550. // GetSlotNumber is a free data retrieval call binding the contract method 0xb3dc7bb1.
  551. //
  552. // Solidity: function getSlotNumber(uint128 blockNumber) view returns(uint128)
  553. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) GetSlotNumber(blockNumber *big.Int) (*big.Int, error) {
  554. return _HermezAuctionProtocol.Contract.GetSlotNumber(&_HermezAuctionProtocol.CallOpts, blockNumber)
  555. }
  556. // GetSlotNumber is a free data retrieval call binding the contract method 0xb3dc7bb1.
  557. //
  558. // Solidity: function getSlotNumber(uint128 blockNumber) view returns(uint128)
  559. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) GetSlotNumber(blockNumber *big.Int) (*big.Int, error) {
  560. return _HermezAuctionProtocol.Contract.GetSlotNumber(&_HermezAuctionProtocol.CallOpts, blockNumber)
  561. }
  562. // GetSlotSet is a free data retrieval call binding the contract method 0xac5f658b.
  563. //
  564. // Solidity: function getSlotSet(uint128 slot) view returns(uint128)
  565. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetSlotSet(opts *bind.CallOpts, slot *big.Int) (*big.Int, error) {
  566. var (
  567. ret0 = new(*big.Int)
  568. )
  569. out := ret0
  570. err := _HermezAuctionProtocol.contract.Call(opts, out, "getSlotSet", slot)
  571. return *ret0, err
  572. }
  573. // GetSlotSet is a free data retrieval call binding the contract method 0xac5f658b.
  574. //
  575. // Solidity: function getSlotSet(uint128 slot) view returns(uint128)
  576. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) GetSlotSet(slot *big.Int) (*big.Int, error) {
  577. return _HermezAuctionProtocol.Contract.GetSlotSet(&_HermezAuctionProtocol.CallOpts, slot)
  578. }
  579. // GetSlotSet is a free data retrieval call binding the contract method 0xac5f658b.
  580. //
  581. // Solidity: function getSlotSet(uint128 slot) view returns(uint128)
  582. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) GetSlotSet(slot *big.Int) (*big.Int, error) {
  583. return _HermezAuctionProtocol.Contract.GetSlotSet(&_HermezAuctionProtocol.CallOpts, slot)
  584. }
  585. // HermezRollup is a free data retrieval call binding the contract method 0xaebd6d98.
  586. //
  587. // Solidity: function hermezRollup() view returns(address)
  588. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) HermezRollup(opts *bind.CallOpts) (common.Address, error) {
  589. var (
  590. ret0 = new(common.Address)
  591. )
  592. out := ret0
  593. err := _HermezAuctionProtocol.contract.Call(opts, out, "hermezRollup")
  594. return *ret0, err
  595. }
  596. // HermezRollup is a free data retrieval call binding the contract method 0xaebd6d98.
  597. //
  598. // Solidity: function hermezRollup() view returns(address)
  599. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) HermezRollup() (common.Address, error) {
  600. return _HermezAuctionProtocol.Contract.HermezRollup(&_HermezAuctionProtocol.CallOpts)
  601. }
  602. // HermezRollup is a free data retrieval call binding the contract method 0xaebd6d98.
  603. //
  604. // Solidity: function hermezRollup() view returns(address)
  605. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) HermezRollup() (common.Address, error) {
  606. return _HermezAuctionProtocol.Contract.HermezRollup(&_HermezAuctionProtocol.CallOpts)
  607. }
  608. // IsRegisteredCoordinator is a free data retrieval call binding the contract method 0x3bebeb06.
  609. //
  610. // Solidity: function isRegisteredCoordinator(address forgerAddress) view returns(bool)
  611. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) IsRegisteredCoordinator(opts *bind.CallOpts, forgerAddress common.Address) (bool, error) {
  612. var (
  613. ret0 = new(bool)
  614. )
  615. out := ret0
  616. err := _HermezAuctionProtocol.contract.Call(opts, out, "isRegisteredCoordinator", forgerAddress)
  617. return *ret0, err
  618. }
  619. // IsRegisteredCoordinator is a free data retrieval call binding the contract method 0x3bebeb06.
  620. //
  621. // Solidity: function isRegisteredCoordinator(address forgerAddress) view returns(bool)
  622. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) IsRegisteredCoordinator(forgerAddress common.Address) (bool, error) {
  623. return _HermezAuctionProtocol.Contract.IsRegisteredCoordinator(&_HermezAuctionProtocol.CallOpts, forgerAddress)
  624. }
  625. // IsRegisteredCoordinator is a free data retrieval call binding the contract method 0x3bebeb06.
  626. //
  627. // Solidity: function isRegisteredCoordinator(address forgerAddress) view returns(bool)
  628. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) IsRegisteredCoordinator(forgerAddress common.Address) (bool, error) {
  629. return _HermezAuctionProtocol.Contract.IsRegisteredCoordinator(&_HermezAuctionProtocol.CallOpts, forgerAddress)
  630. }
  631. // PendingBalances is a free data retrieval call binding the contract method 0xecdae41b.
  632. //
  633. // Solidity: function pendingBalances(address ) view returns(uint128)
  634. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) PendingBalances(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error) {
  635. var (
  636. ret0 = new(*big.Int)
  637. )
  638. out := ret0
  639. err := _HermezAuctionProtocol.contract.Call(opts, out, "pendingBalances", arg0)
  640. return *ret0, err
  641. }
  642. // PendingBalances is a free data retrieval call binding the contract method 0xecdae41b.
  643. //
  644. // Solidity: function pendingBalances(address ) view returns(uint128)
  645. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) PendingBalances(arg0 common.Address) (*big.Int, error) {
  646. return _HermezAuctionProtocol.Contract.PendingBalances(&_HermezAuctionProtocol.CallOpts, arg0)
  647. }
  648. // PendingBalances is a free data retrieval call binding the contract method 0xecdae41b.
  649. //
  650. // Solidity: function pendingBalances(address ) view returns(uint128)
  651. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) PendingBalances(arg0 common.Address) (*big.Int, error) {
  652. return _HermezAuctionProtocol.Contract.PendingBalances(&_HermezAuctionProtocol.CallOpts, arg0)
  653. }
  654. // Slots is a free data retrieval call binding the contract method 0xbc415567.
  655. //
  656. // Solidity: function slots(uint128 ) view returns(address forger, uint128 bidAmount, uint128 closedMinBid, bool fulfilled)
  657. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) Slots(opts *bind.CallOpts, arg0 *big.Int) (struct {
  658. Forger common.Address
  659. BidAmount *big.Int
  660. ClosedMinBid *big.Int
  661. Fulfilled bool
  662. }, error) {
  663. ret := new(struct {
  664. Forger common.Address
  665. BidAmount *big.Int
  666. ClosedMinBid *big.Int
  667. Fulfilled bool
  668. })
  669. out := ret
  670. err := _HermezAuctionProtocol.contract.Call(opts, out, "slots", arg0)
  671. return *ret, err
  672. }
  673. // Slots is a free data retrieval call binding the contract method 0xbc415567.
  674. //
  675. // Solidity: function slots(uint128 ) view returns(address forger, uint128 bidAmount, uint128 closedMinBid, bool fulfilled)
  676. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) Slots(arg0 *big.Int) (struct {
  677. Forger common.Address
  678. BidAmount *big.Int
  679. ClosedMinBid *big.Int
  680. Fulfilled bool
  681. }, error) {
  682. return _HermezAuctionProtocol.Contract.Slots(&_HermezAuctionProtocol.CallOpts, arg0)
  683. }
  684. // Slots is a free data retrieval call binding the contract method 0xbc415567.
  685. //
  686. // Solidity: function slots(uint128 ) view returns(address forger, uint128 bidAmount, uint128 closedMinBid, bool fulfilled)
  687. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) Slots(arg0 *big.Int) (struct {
  688. Forger common.Address
  689. BidAmount *big.Int
  690. ClosedMinBid *big.Int
  691. Fulfilled bool
  692. }, error) {
  693. return _HermezAuctionProtocol.Contract.Slots(&_HermezAuctionProtocol.CallOpts, arg0)
  694. }
  695. // TokenHEZ is a free data retrieval call binding the contract method 0x79a135e3.
  696. //
  697. // Solidity: function tokenHEZ() view returns(address)
  698. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) TokenHEZ(opts *bind.CallOpts) (common.Address, error) {
  699. var (
  700. ret0 = new(common.Address)
  701. )
  702. out := ret0
  703. err := _HermezAuctionProtocol.contract.Call(opts, out, "tokenHEZ")
  704. return *ret0, err
  705. }
  706. // TokenHEZ is a free data retrieval call binding the contract method 0x79a135e3.
  707. //
  708. // Solidity: function tokenHEZ() view returns(address)
  709. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) TokenHEZ() (common.Address, error) {
  710. return _HermezAuctionProtocol.Contract.TokenHEZ(&_HermezAuctionProtocol.CallOpts)
  711. }
  712. // TokenHEZ is a free data retrieval call binding the contract method 0x79a135e3.
  713. //
  714. // Solidity: function tokenHEZ() view returns(address)
  715. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) TokenHEZ() (common.Address, error) {
  716. return _HermezAuctionProtocol.Contract.TokenHEZ(&_HermezAuctionProtocol.CallOpts)
  717. }
  718. // ChangeDefaultSlotSetBid is a paid mutator transaction binding the contract method 0x7c643b70.
  719. //
  720. // Solidity: function changeDefaultSlotSetBid(uint128 slotSet, uint128 newInitialMinBid) returns()
  721. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) ChangeDefaultSlotSetBid(opts *bind.TransactOpts, slotSet *big.Int, newInitialMinBid *big.Int) (*types.Transaction, error) {
  722. return _HermezAuctionProtocol.contract.Transact(opts, "changeDefaultSlotSetBid", slotSet, newInitialMinBid)
  723. }
  724. // ChangeDefaultSlotSetBid is a paid mutator transaction binding the contract method 0x7c643b70.
  725. //
  726. // Solidity: function changeDefaultSlotSetBid(uint128 slotSet, uint128 newInitialMinBid) returns()
  727. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) ChangeDefaultSlotSetBid(slotSet *big.Int, newInitialMinBid *big.Int) (*types.Transaction, error) {
  728. return _HermezAuctionProtocol.Contract.ChangeDefaultSlotSetBid(&_HermezAuctionProtocol.TransactOpts, slotSet, newInitialMinBid)
  729. }
  730. // ChangeDefaultSlotSetBid is a paid mutator transaction binding the contract method 0x7c643b70.
  731. //
  732. // Solidity: function changeDefaultSlotSetBid(uint128 slotSet, uint128 newInitialMinBid) returns()
  733. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) ChangeDefaultSlotSetBid(slotSet *big.Int, newInitialMinBid *big.Int) (*types.Transaction, error) {
  734. return _HermezAuctionProtocol.Contract.ChangeDefaultSlotSetBid(&_HermezAuctionProtocol.TransactOpts, slotSet, newInitialMinBid)
  735. }
  736. // ClaimHEZ is a paid mutator transaction binding the contract method 0x3f2d0c7b.
  737. //
  738. // Solidity: function claimHEZ(address claimAddress) returns()
  739. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) ClaimHEZ(opts *bind.TransactOpts, claimAddress common.Address) (*types.Transaction, error) {
  740. return _HermezAuctionProtocol.contract.Transact(opts, "claimHEZ", claimAddress)
  741. }
  742. // ClaimHEZ is a paid mutator transaction binding the contract method 0x3f2d0c7b.
  743. //
  744. // Solidity: function claimHEZ(address claimAddress) returns()
  745. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) ClaimHEZ(claimAddress common.Address) (*types.Transaction, error) {
  746. return _HermezAuctionProtocol.Contract.ClaimHEZ(&_HermezAuctionProtocol.TransactOpts, claimAddress)
  747. }
  748. // ClaimHEZ is a paid mutator transaction binding the contract method 0x3f2d0c7b.
  749. //
  750. // Solidity: function claimHEZ(address claimAddress) returns()
  751. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) ClaimHEZ(claimAddress common.Address) (*types.Transaction, error) {
  752. return _HermezAuctionProtocol.Contract.ClaimHEZ(&_HermezAuctionProtocol.TransactOpts, claimAddress)
  753. }
  754. // Forge is a paid mutator transaction binding the contract method 0x4e5a5178.
  755. //
  756. // Solidity: function forge(address forger) returns()
  757. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) Forge(opts *bind.TransactOpts, forger common.Address) (*types.Transaction, error) {
  758. return _HermezAuctionProtocol.contract.Transact(opts, "forge", forger)
  759. }
  760. // Forge is a paid mutator transaction binding the contract method 0x4e5a5178.
  761. //
  762. // Solidity: function forge(address forger) returns()
  763. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) Forge(forger common.Address) (*types.Transaction, error) {
  764. return _HermezAuctionProtocol.Contract.Forge(&_HermezAuctionProtocol.TransactOpts, forger)
  765. }
  766. // Forge is a paid mutator transaction binding the contract method 0x4e5a5178.
  767. //
  768. // Solidity: function forge(address forger) returns()
  769. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) Forge(forger common.Address) (*types.Transaction, error) {
  770. return _HermezAuctionProtocol.Contract.Forge(&_HermezAuctionProtocol.TransactOpts, forger)
  771. }
  772. // HermezAuctionProtocolInitializer is a paid mutator transaction binding the contract method 0x6074db64.
  773. //
  774. // Solidity: function hermezAuctionProtocolInitializer(address tokenERC777, uint128 genesis, address hermezRollupAddress, address governanceAddress, address donationAddress, address bootCoordinatorAddress) returns()
  775. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) HermezAuctionProtocolInitializer(opts *bind.TransactOpts, tokenERC777 common.Address, genesis *big.Int, hermezRollupAddress common.Address, governanceAddress common.Address, donationAddress common.Address, bootCoordinatorAddress common.Address) (*types.Transaction, error) {
  776. return _HermezAuctionProtocol.contract.Transact(opts, "hermezAuctionProtocolInitializer", tokenERC777, genesis, hermezRollupAddress, governanceAddress, donationAddress, bootCoordinatorAddress)
  777. }
  778. // HermezAuctionProtocolInitializer is a paid mutator transaction binding the contract method 0x6074db64.
  779. //
  780. // Solidity: function hermezAuctionProtocolInitializer(address tokenERC777, uint128 genesis, address hermezRollupAddress, address governanceAddress, address donationAddress, address bootCoordinatorAddress) returns()
  781. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) HermezAuctionProtocolInitializer(tokenERC777 common.Address, genesis *big.Int, hermezRollupAddress common.Address, governanceAddress common.Address, donationAddress common.Address, bootCoordinatorAddress common.Address) (*types.Transaction, error) {
  782. return _HermezAuctionProtocol.Contract.HermezAuctionProtocolInitializer(&_HermezAuctionProtocol.TransactOpts, tokenERC777, genesis, hermezRollupAddress, governanceAddress, donationAddress, bootCoordinatorAddress)
  783. }
  784. // HermezAuctionProtocolInitializer is a paid mutator transaction binding the contract method 0x6074db64.
  785. //
  786. // Solidity: function hermezAuctionProtocolInitializer(address tokenERC777, uint128 genesis, address hermezRollupAddress, address governanceAddress, address donationAddress, address bootCoordinatorAddress) returns()
  787. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) HermezAuctionProtocolInitializer(tokenERC777 common.Address, genesis *big.Int, hermezRollupAddress common.Address, governanceAddress common.Address, donationAddress common.Address, bootCoordinatorAddress common.Address) (*types.Transaction, error) {
  788. return _HermezAuctionProtocol.Contract.HermezAuctionProtocolInitializer(&_HermezAuctionProtocol.TransactOpts, tokenERC777, genesis, hermezRollupAddress, governanceAddress, donationAddress, bootCoordinatorAddress)
  789. }
  790. // RegisterCoordinator is a paid mutator transaction binding the contract method 0xb3f69047.
  791. //
  792. // Solidity: function registerCoordinator(address forgerAddress, string coordinatorURL) returns()
  793. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) RegisterCoordinator(opts *bind.TransactOpts, forgerAddress common.Address, coordinatorURL string) (*types.Transaction, error) {
  794. return _HermezAuctionProtocol.contract.Transact(opts, "registerCoordinator", forgerAddress, coordinatorURL)
  795. }
  796. // RegisterCoordinator is a paid mutator transaction binding the contract method 0xb3f69047.
  797. //
  798. // Solidity: function registerCoordinator(address forgerAddress, string coordinatorURL) returns()
  799. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) RegisterCoordinator(forgerAddress common.Address, coordinatorURL string) (*types.Transaction, error) {
  800. return _HermezAuctionProtocol.Contract.RegisterCoordinator(&_HermezAuctionProtocol.TransactOpts, forgerAddress, coordinatorURL)
  801. }
  802. // RegisterCoordinator is a paid mutator transaction binding the contract method 0xb3f69047.
  803. //
  804. // Solidity: function registerCoordinator(address forgerAddress, string coordinatorURL) returns()
  805. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) RegisterCoordinator(forgerAddress common.Address, coordinatorURL string) (*types.Transaction, error) {
  806. return _HermezAuctionProtocol.Contract.RegisterCoordinator(&_HermezAuctionProtocol.TransactOpts, forgerAddress, coordinatorURL)
  807. }
  808. // SetAllocationRatio is a paid mutator transaction binding the contract method 0x82787405.
  809. //
  810. // Solidity: function setAllocationRatio(uint16[3] newAllocationRatio) returns()
  811. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) SetAllocationRatio(opts *bind.TransactOpts, newAllocationRatio [3]uint16) (*types.Transaction, error) {
  812. return _HermezAuctionProtocol.contract.Transact(opts, "setAllocationRatio", newAllocationRatio)
  813. }
  814. // SetAllocationRatio is a paid mutator transaction binding the contract method 0x82787405.
  815. //
  816. // Solidity: function setAllocationRatio(uint16[3] newAllocationRatio) returns()
  817. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) SetAllocationRatio(newAllocationRatio [3]uint16) (*types.Transaction, error) {
  818. return _HermezAuctionProtocol.Contract.SetAllocationRatio(&_HermezAuctionProtocol.TransactOpts, newAllocationRatio)
  819. }
  820. // SetAllocationRatio is a paid mutator transaction binding the contract method 0x82787405.
  821. //
  822. // Solidity: function setAllocationRatio(uint16[3] newAllocationRatio) returns()
  823. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) SetAllocationRatio(newAllocationRatio [3]uint16) (*types.Transaction, error) {
  824. return _HermezAuctionProtocol.Contract.SetAllocationRatio(&_HermezAuctionProtocol.TransactOpts, newAllocationRatio)
  825. }
  826. // SetBootCoordinator is a paid mutator transaction binding the contract method 0x62945af2.
  827. //
  828. // Solidity: function setBootCoordinator(address newBootCoordinator) returns()
  829. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) SetBootCoordinator(opts *bind.TransactOpts, newBootCoordinator common.Address) (*types.Transaction, error) {
  830. return _HermezAuctionProtocol.contract.Transact(opts, "setBootCoordinator", newBootCoordinator)
  831. }
  832. // SetBootCoordinator is a paid mutator transaction binding the contract method 0x62945af2.
  833. //
  834. // Solidity: function setBootCoordinator(address newBootCoordinator) returns()
  835. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) SetBootCoordinator(newBootCoordinator common.Address) (*types.Transaction, error) {
  836. return _HermezAuctionProtocol.Contract.SetBootCoordinator(&_HermezAuctionProtocol.TransactOpts, newBootCoordinator)
  837. }
  838. // SetBootCoordinator is a paid mutator transaction binding the contract method 0x62945af2.
  839. //
  840. // Solidity: function setBootCoordinator(address newBootCoordinator) returns()
  841. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) SetBootCoordinator(newBootCoordinator common.Address) (*types.Transaction, error) {
  842. return _HermezAuctionProtocol.Contract.SetBootCoordinator(&_HermezAuctionProtocol.TransactOpts, newBootCoordinator)
  843. }
  844. // SetClosedAuctionSlots is a paid mutator transaction binding the contract method 0xd92bdda3.
  845. //
  846. // Solidity: function setClosedAuctionSlots(uint16 newClosedAuctionSlots) returns()
  847. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) SetClosedAuctionSlots(opts *bind.TransactOpts, newClosedAuctionSlots uint16) (*types.Transaction, error) {
  848. return _HermezAuctionProtocol.contract.Transact(opts, "setClosedAuctionSlots", newClosedAuctionSlots)
  849. }
  850. // SetClosedAuctionSlots is a paid mutator transaction binding the contract method 0xd92bdda3.
  851. //
  852. // Solidity: function setClosedAuctionSlots(uint16 newClosedAuctionSlots) returns()
  853. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) SetClosedAuctionSlots(newClosedAuctionSlots uint16) (*types.Transaction, error) {
  854. return _HermezAuctionProtocol.Contract.SetClosedAuctionSlots(&_HermezAuctionProtocol.TransactOpts, newClosedAuctionSlots)
  855. }
  856. // SetClosedAuctionSlots is a paid mutator transaction binding the contract method 0xd92bdda3.
  857. //
  858. // Solidity: function setClosedAuctionSlots(uint16 newClosedAuctionSlots) returns()
  859. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) SetClosedAuctionSlots(newClosedAuctionSlots uint16) (*types.Transaction, error) {
  860. return _HermezAuctionProtocol.Contract.SetClosedAuctionSlots(&_HermezAuctionProtocol.TransactOpts, newClosedAuctionSlots)
  861. }
  862. // SetDonationAddress is a paid mutator transaction binding the contract method 0x6f48e79b.
  863. //
  864. // Solidity: function setDonationAddress(address newDonationAddress) returns()
  865. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) SetDonationAddress(opts *bind.TransactOpts, newDonationAddress common.Address) (*types.Transaction, error) {
  866. return _HermezAuctionProtocol.contract.Transact(opts, "setDonationAddress", newDonationAddress)
  867. }
  868. // SetDonationAddress is a paid mutator transaction binding the contract method 0x6f48e79b.
  869. //
  870. // Solidity: function setDonationAddress(address newDonationAddress) returns()
  871. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) SetDonationAddress(newDonationAddress common.Address) (*types.Transaction, error) {
  872. return _HermezAuctionProtocol.Contract.SetDonationAddress(&_HermezAuctionProtocol.TransactOpts, newDonationAddress)
  873. }
  874. // SetDonationAddress is a paid mutator transaction binding the contract method 0x6f48e79b.
  875. //
  876. // Solidity: function setDonationAddress(address newDonationAddress) returns()
  877. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) SetDonationAddress(newDonationAddress common.Address) (*types.Transaction, error) {
  878. return _HermezAuctionProtocol.Contract.SetDonationAddress(&_HermezAuctionProtocol.TransactOpts, newDonationAddress)
  879. }
  880. // SetOpenAuctionSlots is a paid mutator transaction binding the contract method 0xc63de515.
  881. //
  882. // Solidity: function setOpenAuctionSlots(uint16 newOpenAuctionSlots) returns()
  883. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) SetOpenAuctionSlots(opts *bind.TransactOpts, newOpenAuctionSlots uint16) (*types.Transaction, error) {
  884. return _HermezAuctionProtocol.contract.Transact(opts, "setOpenAuctionSlots", newOpenAuctionSlots)
  885. }
  886. // SetOpenAuctionSlots is a paid mutator transaction binding the contract method 0xc63de515.
  887. //
  888. // Solidity: function setOpenAuctionSlots(uint16 newOpenAuctionSlots) returns()
  889. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) SetOpenAuctionSlots(newOpenAuctionSlots uint16) (*types.Transaction, error) {
  890. return _HermezAuctionProtocol.Contract.SetOpenAuctionSlots(&_HermezAuctionProtocol.TransactOpts, newOpenAuctionSlots)
  891. }
  892. // SetOpenAuctionSlots is a paid mutator transaction binding the contract method 0xc63de515.
  893. //
  894. // Solidity: function setOpenAuctionSlots(uint16 newOpenAuctionSlots) returns()
  895. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) SetOpenAuctionSlots(newOpenAuctionSlots uint16) (*types.Transaction, error) {
  896. return _HermezAuctionProtocol.Contract.SetOpenAuctionSlots(&_HermezAuctionProtocol.TransactOpts, newOpenAuctionSlots)
  897. }
  898. // SetOutbidding is a paid mutator transaction binding the contract method 0xdfd5281b.
  899. //
  900. // Solidity: function setOutbidding(uint16 newOutbidding) returns()
  901. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) SetOutbidding(opts *bind.TransactOpts, newOutbidding uint16) (*types.Transaction, error) {
  902. return _HermezAuctionProtocol.contract.Transact(opts, "setOutbidding", newOutbidding)
  903. }
  904. // SetOutbidding is a paid mutator transaction binding the contract method 0xdfd5281b.
  905. //
  906. // Solidity: function setOutbidding(uint16 newOutbidding) returns()
  907. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) SetOutbidding(newOutbidding uint16) (*types.Transaction, error) {
  908. return _HermezAuctionProtocol.Contract.SetOutbidding(&_HermezAuctionProtocol.TransactOpts, newOutbidding)
  909. }
  910. // SetOutbidding is a paid mutator transaction binding the contract method 0xdfd5281b.
  911. //
  912. // Solidity: function setOutbidding(uint16 newOutbidding) returns()
  913. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) SetOutbidding(newOutbidding uint16) (*types.Transaction, error) {
  914. return _HermezAuctionProtocol.Contract.SetOutbidding(&_HermezAuctionProtocol.TransactOpts, newOutbidding)
  915. }
  916. // SetSlotDeadline is a paid mutator transaction binding the contract method 0x87e6b6bb.
  917. //
  918. // Solidity: function setSlotDeadline(uint8 newDeadline) returns()
  919. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) SetSlotDeadline(opts *bind.TransactOpts, newDeadline uint8) (*types.Transaction, error) {
  920. return _HermezAuctionProtocol.contract.Transact(opts, "setSlotDeadline", newDeadline)
  921. }
  922. // SetSlotDeadline is a paid mutator transaction binding the contract method 0x87e6b6bb.
  923. //
  924. // Solidity: function setSlotDeadline(uint8 newDeadline) returns()
  925. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) SetSlotDeadline(newDeadline uint8) (*types.Transaction, error) {
  926. return _HermezAuctionProtocol.Contract.SetSlotDeadline(&_HermezAuctionProtocol.TransactOpts, newDeadline)
  927. }
  928. // SetSlotDeadline is a paid mutator transaction binding the contract method 0x87e6b6bb.
  929. //
  930. // Solidity: function setSlotDeadline(uint8 newDeadline) returns()
  931. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) SetSlotDeadline(newDeadline uint8) (*types.Transaction, error) {
  932. return _HermezAuctionProtocol.Contract.SetSlotDeadline(&_HermezAuctionProtocol.TransactOpts, newDeadline)
  933. }
  934. // TokensReceived is a paid mutator transaction binding the contract method 0x0023de29.
  935. //
  936. // Solidity: function tokensReceived(address operator, address from, address to, uint256 amount, bytes userData, bytes operatorData) returns()
  937. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) TokensReceived(opts *bind.TransactOpts, operator common.Address, from common.Address, to common.Address, amount *big.Int, userData []byte, operatorData []byte) (*types.Transaction, error) {
  938. return _HermezAuctionProtocol.contract.Transact(opts, "tokensReceived", operator, from, to, amount, userData, operatorData)
  939. }
  940. // TokensReceived is a paid mutator transaction binding the contract method 0x0023de29.
  941. //
  942. // Solidity: function tokensReceived(address operator, address from, address to, uint256 amount, bytes userData, bytes operatorData) returns()
  943. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) TokensReceived(operator common.Address, from common.Address, to common.Address, amount *big.Int, userData []byte, operatorData []byte) (*types.Transaction, error) {
  944. return _HermezAuctionProtocol.Contract.TokensReceived(&_HermezAuctionProtocol.TransactOpts, operator, from, to, amount, userData, operatorData)
  945. }
  946. // TokensReceived is a paid mutator transaction binding the contract method 0x0023de29.
  947. //
  948. // Solidity: function tokensReceived(address operator, address from, address to, uint256 amount, bytes userData, bytes operatorData) returns()
  949. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) TokensReceived(operator common.Address, from common.Address, to common.Address, amount *big.Int, userData []byte, operatorData []byte) (*types.Transaction, error) {
  950. return _HermezAuctionProtocol.Contract.TokensReceived(&_HermezAuctionProtocol.TransactOpts, operator, from, to, amount, userData, operatorData)
  951. }
  952. // UpdateCoordinatorInfo is a paid mutator transaction binding the contract method 0x892075c8.
  953. //
  954. // Solidity: function updateCoordinatorInfo(address forgerAddress, address newWithdrawAddress, string newURL) returns()
  955. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) UpdateCoordinatorInfo(opts *bind.TransactOpts, forgerAddress common.Address, newWithdrawAddress common.Address, newURL string) (*types.Transaction, error) {
  956. return _HermezAuctionProtocol.contract.Transact(opts, "updateCoordinatorInfo", forgerAddress, newWithdrawAddress, newURL)
  957. }
  958. // UpdateCoordinatorInfo is a paid mutator transaction binding the contract method 0x892075c8.
  959. //
  960. // Solidity: function updateCoordinatorInfo(address forgerAddress, address newWithdrawAddress, string newURL) returns()
  961. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) UpdateCoordinatorInfo(forgerAddress common.Address, newWithdrawAddress common.Address, newURL string) (*types.Transaction, error) {
  962. return _HermezAuctionProtocol.Contract.UpdateCoordinatorInfo(&_HermezAuctionProtocol.TransactOpts, forgerAddress, newWithdrawAddress, newURL)
  963. }
  964. // UpdateCoordinatorInfo is a paid mutator transaction binding the contract method 0x892075c8.
  965. //
  966. // Solidity: function updateCoordinatorInfo(address forgerAddress, address newWithdrawAddress, string newURL) returns()
  967. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) UpdateCoordinatorInfo(forgerAddress common.Address, newWithdrawAddress common.Address, newURL string) (*types.Transaction, error) {
  968. return _HermezAuctionProtocol.Contract.UpdateCoordinatorInfo(&_HermezAuctionProtocol.TransactOpts, forgerAddress, newWithdrawAddress, newURL)
  969. }
  970. // HermezAuctionProtocolCoordinatorUpdatedIterator is returned from FilterCoordinatorUpdated and is used to iterate over the raw logs and unpacked data for CoordinatorUpdated events raised by the HermezAuctionProtocol contract.
  971. type HermezAuctionProtocolCoordinatorUpdatedIterator struct {
  972. Event *HermezAuctionProtocolCoordinatorUpdated // Event containing the contract specifics and raw log
  973. contract *bind.BoundContract // Generic contract to use for unpacking event data
  974. event string // Event name to use for unpacking event data
  975. logs chan types.Log // Log channel receiving the found contract events
  976. sub ethereum.Subscription // Subscription for errors, completion and termination
  977. done bool // Whether the subscription completed delivering logs
  978. fail error // Occurred error to stop iteration
  979. }
  980. // Next advances the iterator to the subsequent event, returning whether there
  981. // are any more events found. In case of a retrieval or parsing error, false is
  982. // returned and Error() can be queried for the exact failure.
  983. func (it *HermezAuctionProtocolCoordinatorUpdatedIterator) Next() bool {
  984. // If the iterator failed, stop iterating
  985. if it.fail != nil {
  986. return false
  987. }
  988. // If the iterator completed, deliver directly whatever's available
  989. if it.done {
  990. select {
  991. case log := <-it.logs:
  992. it.Event = new(HermezAuctionProtocolCoordinatorUpdated)
  993. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  994. it.fail = err
  995. return false
  996. }
  997. it.Event.Raw = log
  998. return true
  999. default:
  1000. return false
  1001. }
  1002. }
  1003. // Iterator still in progress, wait for either a data or an error event
  1004. select {
  1005. case log := <-it.logs:
  1006. it.Event = new(HermezAuctionProtocolCoordinatorUpdated)
  1007. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1008. it.fail = err
  1009. return false
  1010. }
  1011. it.Event.Raw = log
  1012. return true
  1013. case err := <-it.sub.Err():
  1014. it.done = true
  1015. it.fail = err
  1016. return it.Next()
  1017. }
  1018. }
  1019. // Error returns any retrieval or parsing error occurred during filtering.
  1020. func (it *HermezAuctionProtocolCoordinatorUpdatedIterator) Error() error {
  1021. return it.fail
  1022. }
  1023. // Close terminates the iteration process, releasing any pending underlying
  1024. // resources.
  1025. func (it *HermezAuctionProtocolCoordinatorUpdatedIterator) Close() error {
  1026. it.sub.Unsubscribe()
  1027. return nil
  1028. }
  1029. // HermezAuctionProtocolCoordinatorUpdated represents a CoordinatorUpdated event raised by the HermezAuctionProtocol contract.
  1030. type HermezAuctionProtocolCoordinatorUpdated struct {
  1031. ForgerAddress common.Address
  1032. WithdrawalAddress common.Address
  1033. CoordinatorURL string
  1034. Raw types.Log // Blockchain specific contextual infos
  1035. }
  1036. // FilterCoordinatorUpdated is a free log retrieval operation binding the contract event 0x384460dae6dd1682b71131272b0e47bcd8ecef844d632c5062db277378a868c5.
  1037. //
  1038. // Solidity: event CoordinatorUpdated(address forgerAddress, address withdrawalAddress, string coordinatorURL)
  1039. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterCoordinatorUpdated(opts *bind.FilterOpts) (*HermezAuctionProtocolCoordinatorUpdatedIterator, error) {
  1040. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "CoordinatorUpdated")
  1041. if err != nil {
  1042. return nil, err
  1043. }
  1044. return &HermezAuctionProtocolCoordinatorUpdatedIterator{contract: _HermezAuctionProtocol.contract, event: "CoordinatorUpdated", logs: logs, sub: sub}, nil
  1045. }
  1046. // WatchCoordinatorUpdated is a free log subscription operation binding the contract event 0x384460dae6dd1682b71131272b0e47bcd8ecef844d632c5062db277378a868c5.
  1047. //
  1048. // Solidity: event CoordinatorUpdated(address forgerAddress, address withdrawalAddress, string coordinatorURL)
  1049. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchCoordinatorUpdated(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolCoordinatorUpdated) (event.Subscription, error) {
  1050. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "CoordinatorUpdated")
  1051. if err != nil {
  1052. return nil, err
  1053. }
  1054. return event.NewSubscription(func(quit <-chan struct{}) error {
  1055. defer sub.Unsubscribe()
  1056. for {
  1057. select {
  1058. case log := <-logs:
  1059. // New log arrived, parse the event and forward to the user
  1060. event := new(HermezAuctionProtocolCoordinatorUpdated)
  1061. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "CoordinatorUpdated", log); err != nil {
  1062. return err
  1063. }
  1064. event.Raw = log
  1065. select {
  1066. case sink <- event:
  1067. case err := <-sub.Err():
  1068. return err
  1069. case <-quit:
  1070. return nil
  1071. }
  1072. case err := <-sub.Err():
  1073. return err
  1074. case <-quit:
  1075. return nil
  1076. }
  1077. }
  1078. }), nil
  1079. }
  1080. // ParseCoordinatorUpdated is a log parse operation binding the contract event 0x384460dae6dd1682b71131272b0e47bcd8ecef844d632c5062db277378a868c5.
  1081. //
  1082. // Solidity: event CoordinatorUpdated(address forgerAddress, address withdrawalAddress, string coordinatorURL)
  1083. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseCoordinatorUpdated(log types.Log) (*HermezAuctionProtocolCoordinatorUpdated, error) {
  1084. event := new(HermezAuctionProtocolCoordinatorUpdated)
  1085. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "CoordinatorUpdated", log); err != nil {
  1086. return nil, err
  1087. }
  1088. return event, nil
  1089. }
  1090. // HermezAuctionProtocolHEZClaimedIterator is returned from FilterHEZClaimed and is used to iterate over the raw logs and unpacked data for HEZClaimed events raised by the HermezAuctionProtocol contract.
  1091. type HermezAuctionProtocolHEZClaimedIterator struct {
  1092. Event *HermezAuctionProtocolHEZClaimed // Event containing the contract specifics and raw log
  1093. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1094. event string // Event name to use for unpacking event data
  1095. logs chan types.Log // Log channel receiving the found contract events
  1096. sub ethereum.Subscription // Subscription for errors, completion and termination
  1097. done bool // Whether the subscription completed delivering logs
  1098. fail error // Occurred error to stop iteration
  1099. }
  1100. // Next advances the iterator to the subsequent event, returning whether there
  1101. // are any more events found. In case of a retrieval or parsing error, false is
  1102. // returned and Error() can be queried for the exact failure.
  1103. func (it *HermezAuctionProtocolHEZClaimedIterator) Next() bool {
  1104. // If the iterator failed, stop iterating
  1105. if it.fail != nil {
  1106. return false
  1107. }
  1108. // If the iterator completed, deliver directly whatever's available
  1109. if it.done {
  1110. select {
  1111. case log := <-it.logs:
  1112. it.Event = new(HermezAuctionProtocolHEZClaimed)
  1113. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1114. it.fail = err
  1115. return false
  1116. }
  1117. it.Event.Raw = log
  1118. return true
  1119. default:
  1120. return false
  1121. }
  1122. }
  1123. // Iterator still in progress, wait for either a data or an error event
  1124. select {
  1125. case log := <-it.logs:
  1126. it.Event = new(HermezAuctionProtocolHEZClaimed)
  1127. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1128. it.fail = err
  1129. return false
  1130. }
  1131. it.Event.Raw = log
  1132. return true
  1133. case err := <-it.sub.Err():
  1134. it.done = true
  1135. it.fail = err
  1136. return it.Next()
  1137. }
  1138. }
  1139. // Error returns any retrieval or parsing error occurred during filtering.
  1140. func (it *HermezAuctionProtocolHEZClaimedIterator) Error() error {
  1141. return it.fail
  1142. }
  1143. // Close terminates the iteration process, releasing any pending underlying
  1144. // resources.
  1145. func (it *HermezAuctionProtocolHEZClaimedIterator) Close() error {
  1146. it.sub.Unsubscribe()
  1147. return nil
  1148. }
  1149. // HermezAuctionProtocolHEZClaimed represents a HEZClaimed event raised by the HermezAuctionProtocol contract.
  1150. type HermezAuctionProtocolHEZClaimed struct {
  1151. Owner common.Address
  1152. Amount *big.Int
  1153. Raw types.Log // Blockchain specific contextual infos
  1154. }
  1155. // FilterHEZClaimed is a free log retrieval operation binding the contract event 0x199ef0cb54d2b296ff6eaec2721bacf0ca3fd8344a43f5bdf4548b34dfa2594f.
  1156. //
  1157. // Solidity: event HEZClaimed(address indexed owner, uint128 amount)
  1158. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterHEZClaimed(opts *bind.FilterOpts, owner []common.Address) (*HermezAuctionProtocolHEZClaimedIterator, error) {
  1159. var ownerRule []interface{}
  1160. for _, ownerItem := range owner {
  1161. ownerRule = append(ownerRule, ownerItem)
  1162. }
  1163. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "HEZClaimed", ownerRule)
  1164. if err != nil {
  1165. return nil, err
  1166. }
  1167. return &HermezAuctionProtocolHEZClaimedIterator{contract: _HermezAuctionProtocol.contract, event: "HEZClaimed", logs: logs, sub: sub}, nil
  1168. }
  1169. // WatchHEZClaimed is a free log subscription operation binding the contract event 0x199ef0cb54d2b296ff6eaec2721bacf0ca3fd8344a43f5bdf4548b34dfa2594f.
  1170. //
  1171. // Solidity: event HEZClaimed(address indexed owner, uint128 amount)
  1172. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchHEZClaimed(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolHEZClaimed, owner []common.Address) (event.Subscription, error) {
  1173. var ownerRule []interface{}
  1174. for _, ownerItem := range owner {
  1175. ownerRule = append(ownerRule, ownerItem)
  1176. }
  1177. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "HEZClaimed", ownerRule)
  1178. if err != nil {
  1179. return nil, err
  1180. }
  1181. return event.NewSubscription(func(quit <-chan struct{}) error {
  1182. defer sub.Unsubscribe()
  1183. for {
  1184. select {
  1185. case log := <-logs:
  1186. // New log arrived, parse the event and forward to the user
  1187. event := new(HermezAuctionProtocolHEZClaimed)
  1188. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "HEZClaimed", log); err != nil {
  1189. return err
  1190. }
  1191. event.Raw = log
  1192. select {
  1193. case sink <- event:
  1194. case err := <-sub.Err():
  1195. return err
  1196. case <-quit:
  1197. return nil
  1198. }
  1199. case err := <-sub.Err():
  1200. return err
  1201. case <-quit:
  1202. return nil
  1203. }
  1204. }
  1205. }), nil
  1206. }
  1207. // ParseHEZClaimed is a log parse operation binding the contract event 0x199ef0cb54d2b296ff6eaec2721bacf0ca3fd8344a43f5bdf4548b34dfa2594f.
  1208. //
  1209. // Solidity: event HEZClaimed(address indexed owner, uint128 amount)
  1210. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseHEZClaimed(log types.Log) (*HermezAuctionProtocolHEZClaimed, error) {
  1211. event := new(HermezAuctionProtocolHEZClaimed)
  1212. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "HEZClaimed", log); err != nil {
  1213. return nil, err
  1214. }
  1215. return event, nil
  1216. }
  1217. // HermezAuctionProtocolNewAllocationRatioIterator is returned from FilterNewAllocationRatio and is used to iterate over the raw logs and unpacked data for NewAllocationRatio events raised by the HermezAuctionProtocol contract.
  1218. type HermezAuctionProtocolNewAllocationRatioIterator struct {
  1219. Event *HermezAuctionProtocolNewAllocationRatio // Event containing the contract specifics and raw log
  1220. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1221. event string // Event name to use for unpacking event data
  1222. logs chan types.Log // Log channel receiving the found contract events
  1223. sub ethereum.Subscription // Subscription for errors, completion and termination
  1224. done bool // Whether the subscription completed delivering logs
  1225. fail error // Occurred error to stop iteration
  1226. }
  1227. // Next advances the iterator to the subsequent event, returning whether there
  1228. // are any more events found. In case of a retrieval or parsing error, false is
  1229. // returned and Error() can be queried for the exact failure.
  1230. func (it *HermezAuctionProtocolNewAllocationRatioIterator) Next() bool {
  1231. // If the iterator failed, stop iterating
  1232. if it.fail != nil {
  1233. return false
  1234. }
  1235. // If the iterator completed, deliver directly whatever's available
  1236. if it.done {
  1237. select {
  1238. case log := <-it.logs:
  1239. it.Event = new(HermezAuctionProtocolNewAllocationRatio)
  1240. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1241. it.fail = err
  1242. return false
  1243. }
  1244. it.Event.Raw = log
  1245. return true
  1246. default:
  1247. return false
  1248. }
  1249. }
  1250. // Iterator still in progress, wait for either a data or an error event
  1251. select {
  1252. case log := <-it.logs:
  1253. it.Event = new(HermezAuctionProtocolNewAllocationRatio)
  1254. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1255. it.fail = err
  1256. return false
  1257. }
  1258. it.Event.Raw = log
  1259. return true
  1260. case err := <-it.sub.Err():
  1261. it.done = true
  1262. it.fail = err
  1263. return it.Next()
  1264. }
  1265. }
  1266. // Error returns any retrieval or parsing error occurred during filtering.
  1267. func (it *HermezAuctionProtocolNewAllocationRatioIterator) Error() error {
  1268. return it.fail
  1269. }
  1270. // Close terminates the iteration process, releasing any pending underlying
  1271. // resources.
  1272. func (it *HermezAuctionProtocolNewAllocationRatioIterator) Close() error {
  1273. it.sub.Unsubscribe()
  1274. return nil
  1275. }
  1276. // HermezAuctionProtocolNewAllocationRatio represents a NewAllocationRatio event raised by the HermezAuctionProtocol contract.
  1277. type HermezAuctionProtocolNewAllocationRatio struct {
  1278. NewAllocationRatio [3]uint16
  1279. Raw types.Log // Blockchain specific contextual infos
  1280. }
  1281. // FilterNewAllocationRatio is a free log retrieval operation binding the contract event 0x0bb59eceb12f1bdb63e4a7d57c70d6473fefd7c3f51af5a3604f7e97197073e4.
  1282. //
  1283. // Solidity: event NewAllocationRatio(uint16[3] newAllocationRatio)
  1284. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewAllocationRatio(opts *bind.FilterOpts) (*HermezAuctionProtocolNewAllocationRatioIterator, error) {
  1285. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewAllocationRatio")
  1286. if err != nil {
  1287. return nil, err
  1288. }
  1289. return &HermezAuctionProtocolNewAllocationRatioIterator{contract: _HermezAuctionProtocol.contract, event: "NewAllocationRatio", logs: logs, sub: sub}, nil
  1290. }
  1291. // WatchNewAllocationRatio is a free log subscription operation binding the contract event 0x0bb59eceb12f1bdb63e4a7d57c70d6473fefd7c3f51af5a3604f7e97197073e4.
  1292. //
  1293. // Solidity: event NewAllocationRatio(uint16[3] newAllocationRatio)
  1294. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewAllocationRatio(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewAllocationRatio) (event.Subscription, error) {
  1295. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewAllocationRatio")
  1296. if err != nil {
  1297. return nil, err
  1298. }
  1299. return event.NewSubscription(func(quit <-chan struct{}) error {
  1300. defer sub.Unsubscribe()
  1301. for {
  1302. select {
  1303. case log := <-logs:
  1304. // New log arrived, parse the event and forward to the user
  1305. event := new(HermezAuctionProtocolNewAllocationRatio)
  1306. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewAllocationRatio", log); err != nil {
  1307. return err
  1308. }
  1309. event.Raw = log
  1310. select {
  1311. case sink <- event:
  1312. case err := <-sub.Err():
  1313. return err
  1314. case <-quit:
  1315. return nil
  1316. }
  1317. case err := <-sub.Err():
  1318. return err
  1319. case <-quit:
  1320. return nil
  1321. }
  1322. }
  1323. }), nil
  1324. }
  1325. // ParseNewAllocationRatio is a log parse operation binding the contract event 0x0bb59eceb12f1bdb63e4a7d57c70d6473fefd7c3f51af5a3604f7e97197073e4.
  1326. //
  1327. // Solidity: event NewAllocationRatio(uint16[3] newAllocationRatio)
  1328. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewAllocationRatio(log types.Log) (*HermezAuctionProtocolNewAllocationRatio, error) {
  1329. event := new(HermezAuctionProtocolNewAllocationRatio)
  1330. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewAllocationRatio", log); err != nil {
  1331. return nil, err
  1332. }
  1333. return event, nil
  1334. }
  1335. // HermezAuctionProtocolNewBidIterator is returned from FilterNewBid and is used to iterate over the raw logs and unpacked data for NewBid events raised by the HermezAuctionProtocol contract.
  1336. type HermezAuctionProtocolNewBidIterator struct {
  1337. Event *HermezAuctionProtocolNewBid // Event containing the contract specifics and raw log
  1338. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1339. event string // Event name to use for unpacking event data
  1340. logs chan types.Log // Log channel receiving the found contract events
  1341. sub ethereum.Subscription // Subscription for errors, completion and termination
  1342. done bool // Whether the subscription completed delivering logs
  1343. fail error // Occurred error to stop iteration
  1344. }
  1345. // Next advances the iterator to the subsequent event, returning whether there
  1346. // are any more events found. In case of a retrieval or parsing error, false is
  1347. // returned and Error() can be queried for the exact failure.
  1348. func (it *HermezAuctionProtocolNewBidIterator) Next() bool {
  1349. // If the iterator failed, stop iterating
  1350. if it.fail != nil {
  1351. return false
  1352. }
  1353. // If the iterator completed, deliver directly whatever's available
  1354. if it.done {
  1355. select {
  1356. case log := <-it.logs:
  1357. it.Event = new(HermezAuctionProtocolNewBid)
  1358. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1359. it.fail = err
  1360. return false
  1361. }
  1362. it.Event.Raw = log
  1363. return true
  1364. default:
  1365. return false
  1366. }
  1367. }
  1368. // Iterator still in progress, wait for either a data or an error event
  1369. select {
  1370. case log := <-it.logs:
  1371. it.Event = new(HermezAuctionProtocolNewBid)
  1372. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1373. it.fail = err
  1374. return false
  1375. }
  1376. it.Event.Raw = log
  1377. return true
  1378. case err := <-it.sub.Err():
  1379. it.done = true
  1380. it.fail = err
  1381. return it.Next()
  1382. }
  1383. }
  1384. // Error returns any retrieval or parsing error occurred during filtering.
  1385. func (it *HermezAuctionProtocolNewBidIterator) Error() error {
  1386. return it.fail
  1387. }
  1388. // Close terminates the iteration process, releasing any pending underlying
  1389. // resources.
  1390. func (it *HermezAuctionProtocolNewBidIterator) Close() error {
  1391. it.sub.Unsubscribe()
  1392. return nil
  1393. }
  1394. // HermezAuctionProtocolNewBid represents a NewBid event raised by the HermezAuctionProtocol contract.
  1395. type HermezAuctionProtocolNewBid struct {
  1396. Slot *big.Int
  1397. BidAmount *big.Int
  1398. CoordinatorForger common.Address
  1399. Raw types.Log // Blockchain specific contextual infos
  1400. }
  1401. // FilterNewBid is a free log retrieval operation binding the contract event 0xd48e8329cdb2fb109b4fe445d7b681a74b256bff16e6f7f33b9d4fbe9038e433.
  1402. //
  1403. // Solidity: event NewBid(uint128 indexed slot, uint128 bidAmount, address indexed coordinatorForger)
  1404. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewBid(opts *bind.FilterOpts, slot []*big.Int, coordinatorForger []common.Address) (*HermezAuctionProtocolNewBidIterator, error) {
  1405. var slotRule []interface{}
  1406. for _, slotItem := range slot {
  1407. slotRule = append(slotRule, slotItem)
  1408. }
  1409. var coordinatorForgerRule []interface{}
  1410. for _, coordinatorForgerItem := range coordinatorForger {
  1411. coordinatorForgerRule = append(coordinatorForgerRule, coordinatorForgerItem)
  1412. }
  1413. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewBid", slotRule, coordinatorForgerRule)
  1414. if err != nil {
  1415. return nil, err
  1416. }
  1417. return &HermezAuctionProtocolNewBidIterator{contract: _HermezAuctionProtocol.contract, event: "NewBid", logs: logs, sub: sub}, nil
  1418. }
  1419. // WatchNewBid is a free log subscription operation binding the contract event 0xd48e8329cdb2fb109b4fe445d7b681a74b256bff16e6f7f33b9d4fbe9038e433.
  1420. //
  1421. // Solidity: event NewBid(uint128 indexed slot, uint128 bidAmount, address indexed coordinatorForger)
  1422. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewBid(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewBid, slot []*big.Int, coordinatorForger []common.Address) (event.Subscription, error) {
  1423. var slotRule []interface{}
  1424. for _, slotItem := range slot {
  1425. slotRule = append(slotRule, slotItem)
  1426. }
  1427. var coordinatorForgerRule []interface{}
  1428. for _, coordinatorForgerItem := range coordinatorForger {
  1429. coordinatorForgerRule = append(coordinatorForgerRule, coordinatorForgerItem)
  1430. }
  1431. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewBid", slotRule, coordinatorForgerRule)
  1432. if err != nil {
  1433. return nil, err
  1434. }
  1435. return event.NewSubscription(func(quit <-chan struct{}) error {
  1436. defer sub.Unsubscribe()
  1437. for {
  1438. select {
  1439. case log := <-logs:
  1440. // New log arrived, parse the event and forward to the user
  1441. event := new(HermezAuctionProtocolNewBid)
  1442. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewBid", log); err != nil {
  1443. return err
  1444. }
  1445. event.Raw = log
  1446. select {
  1447. case sink <- event:
  1448. case err := <-sub.Err():
  1449. return err
  1450. case <-quit:
  1451. return nil
  1452. }
  1453. case err := <-sub.Err():
  1454. return err
  1455. case <-quit:
  1456. return nil
  1457. }
  1458. }
  1459. }), nil
  1460. }
  1461. // ParseNewBid is a log parse operation binding the contract event 0xd48e8329cdb2fb109b4fe445d7b681a74b256bff16e6f7f33b9d4fbe9038e433.
  1462. //
  1463. // Solidity: event NewBid(uint128 indexed slot, uint128 bidAmount, address indexed coordinatorForger)
  1464. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewBid(log types.Log) (*HermezAuctionProtocolNewBid, error) {
  1465. event := new(HermezAuctionProtocolNewBid)
  1466. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewBid", log); err != nil {
  1467. return nil, err
  1468. }
  1469. return event, nil
  1470. }
  1471. // HermezAuctionProtocolNewBootCoordinatorIterator is returned from FilterNewBootCoordinator and is used to iterate over the raw logs and unpacked data for NewBootCoordinator events raised by the HermezAuctionProtocol contract.
  1472. type HermezAuctionProtocolNewBootCoordinatorIterator struct {
  1473. Event *HermezAuctionProtocolNewBootCoordinator // Event containing the contract specifics and raw log
  1474. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1475. event string // Event name to use for unpacking event data
  1476. logs chan types.Log // Log channel receiving the found contract events
  1477. sub ethereum.Subscription // Subscription for errors, completion and termination
  1478. done bool // Whether the subscription completed delivering logs
  1479. fail error // Occurred error to stop iteration
  1480. }
  1481. // Next advances the iterator to the subsequent event, returning whether there
  1482. // are any more events found. In case of a retrieval or parsing error, false is
  1483. // returned and Error() can be queried for the exact failure.
  1484. func (it *HermezAuctionProtocolNewBootCoordinatorIterator) Next() bool {
  1485. // If the iterator failed, stop iterating
  1486. if it.fail != nil {
  1487. return false
  1488. }
  1489. // If the iterator completed, deliver directly whatever's available
  1490. if it.done {
  1491. select {
  1492. case log := <-it.logs:
  1493. it.Event = new(HermezAuctionProtocolNewBootCoordinator)
  1494. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1495. it.fail = err
  1496. return false
  1497. }
  1498. it.Event.Raw = log
  1499. return true
  1500. default:
  1501. return false
  1502. }
  1503. }
  1504. // Iterator still in progress, wait for either a data or an error event
  1505. select {
  1506. case log := <-it.logs:
  1507. it.Event = new(HermezAuctionProtocolNewBootCoordinator)
  1508. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1509. it.fail = err
  1510. return false
  1511. }
  1512. it.Event.Raw = log
  1513. return true
  1514. case err := <-it.sub.Err():
  1515. it.done = true
  1516. it.fail = err
  1517. return it.Next()
  1518. }
  1519. }
  1520. // Error returns any retrieval or parsing error occurred during filtering.
  1521. func (it *HermezAuctionProtocolNewBootCoordinatorIterator) Error() error {
  1522. return it.fail
  1523. }
  1524. // Close terminates the iteration process, releasing any pending underlying
  1525. // resources.
  1526. func (it *HermezAuctionProtocolNewBootCoordinatorIterator) Close() error {
  1527. it.sub.Unsubscribe()
  1528. return nil
  1529. }
  1530. // HermezAuctionProtocolNewBootCoordinator represents a NewBootCoordinator event raised by the HermezAuctionProtocol contract.
  1531. type HermezAuctionProtocolNewBootCoordinator struct {
  1532. NewBootCoordinator common.Address
  1533. Raw types.Log // Blockchain specific contextual infos
  1534. }
  1535. // FilterNewBootCoordinator is a free log retrieval operation binding the contract event 0x2161bd0f0e056d18046a81683e5bc845980367451cf4ca5148523a147c51be55.
  1536. //
  1537. // Solidity: event NewBootCoordinator(address newBootCoordinator)
  1538. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewBootCoordinator(opts *bind.FilterOpts) (*HermezAuctionProtocolNewBootCoordinatorIterator, error) {
  1539. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewBootCoordinator")
  1540. if err != nil {
  1541. return nil, err
  1542. }
  1543. return &HermezAuctionProtocolNewBootCoordinatorIterator{contract: _HermezAuctionProtocol.contract, event: "NewBootCoordinator", logs: logs, sub: sub}, nil
  1544. }
  1545. // WatchNewBootCoordinator is a free log subscription operation binding the contract event 0x2161bd0f0e056d18046a81683e5bc845980367451cf4ca5148523a147c51be55.
  1546. //
  1547. // Solidity: event NewBootCoordinator(address newBootCoordinator)
  1548. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewBootCoordinator(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewBootCoordinator) (event.Subscription, error) {
  1549. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewBootCoordinator")
  1550. if err != nil {
  1551. return nil, err
  1552. }
  1553. return event.NewSubscription(func(quit <-chan struct{}) error {
  1554. defer sub.Unsubscribe()
  1555. for {
  1556. select {
  1557. case log := <-logs:
  1558. // New log arrived, parse the event and forward to the user
  1559. event := new(HermezAuctionProtocolNewBootCoordinator)
  1560. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewBootCoordinator", log); err != nil {
  1561. return err
  1562. }
  1563. event.Raw = log
  1564. select {
  1565. case sink <- event:
  1566. case err := <-sub.Err():
  1567. return err
  1568. case <-quit:
  1569. return nil
  1570. }
  1571. case err := <-sub.Err():
  1572. return err
  1573. case <-quit:
  1574. return nil
  1575. }
  1576. }
  1577. }), nil
  1578. }
  1579. // ParseNewBootCoordinator is a log parse operation binding the contract event 0x2161bd0f0e056d18046a81683e5bc845980367451cf4ca5148523a147c51be55.
  1580. //
  1581. // Solidity: event NewBootCoordinator(address newBootCoordinator)
  1582. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewBootCoordinator(log types.Log) (*HermezAuctionProtocolNewBootCoordinator, error) {
  1583. event := new(HermezAuctionProtocolNewBootCoordinator)
  1584. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewBootCoordinator", log); err != nil {
  1585. return nil, err
  1586. }
  1587. return event, nil
  1588. }
  1589. // HermezAuctionProtocolNewClosedAuctionSlotsIterator is returned from FilterNewClosedAuctionSlots and is used to iterate over the raw logs and unpacked data for NewClosedAuctionSlots events raised by the HermezAuctionProtocol contract.
  1590. type HermezAuctionProtocolNewClosedAuctionSlotsIterator struct {
  1591. Event *HermezAuctionProtocolNewClosedAuctionSlots // Event containing the contract specifics and raw log
  1592. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1593. event string // Event name to use for unpacking event data
  1594. logs chan types.Log // Log channel receiving the found contract events
  1595. sub ethereum.Subscription // Subscription for errors, completion and termination
  1596. done bool // Whether the subscription completed delivering logs
  1597. fail error // Occurred error to stop iteration
  1598. }
  1599. // Next advances the iterator to the subsequent event, returning whether there
  1600. // are any more events found. In case of a retrieval or parsing error, false is
  1601. // returned and Error() can be queried for the exact failure.
  1602. func (it *HermezAuctionProtocolNewClosedAuctionSlotsIterator) Next() bool {
  1603. // If the iterator failed, stop iterating
  1604. if it.fail != nil {
  1605. return false
  1606. }
  1607. // If the iterator completed, deliver directly whatever's available
  1608. if it.done {
  1609. select {
  1610. case log := <-it.logs:
  1611. it.Event = new(HermezAuctionProtocolNewClosedAuctionSlots)
  1612. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1613. it.fail = err
  1614. return false
  1615. }
  1616. it.Event.Raw = log
  1617. return true
  1618. default:
  1619. return false
  1620. }
  1621. }
  1622. // Iterator still in progress, wait for either a data or an error event
  1623. select {
  1624. case log := <-it.logs:
  1625. it.Event = new(HermezAuctionProtocolNewClosedAuctionSlots)
  1626. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1627. it.fail = err
  1628. return false
  1629. }
  1630. it.Event.Raw = log
  1631. return true
  1632. case err := <-it.sub.Err():
  1633. it.done = true
  1634. it.fail = err
  1635. return it.Next()
  1636. }
  1637. }
  1638. // Error returns any retrieval or parsing error occurred during filtering.
  1639. func (it *HermezAuctionProtocolNewClosedAuctionSlotsIterator) Error() error {
  1640. return it.fail
  1641. }
  1642. // Close terminates the iteration process, releasing any pending underlying
  1643. // resources.
  1644. func (it *HermezAuctionProtocolNewClosedAuctionSlotsIterator) Close() error {
  1645. it.sub.Unsubscribe()
  1646. return nil
  1647. }
  1648. // HermezAuctionProtocolNewClosedAuctionSlots represents a NewClosedAuctionSlots event raised by the HermezAuctionProtocol contract.
  1649. type HermezAuctionProtocolNewClosedAuctionSlots struct {
  1650. NewClosedAuctionSlots uint16
  1651. Raw types.Log // Blockchain specific contextual infos
  1652. }
  1653. // FilterNewClosedAuctionSlots is a free log retrieval operation binding the contract event 0xc78051d3757db196b1e445f3a9a1380944518c69b5d7922ec747c54f0340a4ea.
  1654. //
  1655. // Solidity: event NewClosedAuctionSlots(uint16 newClosedAuctionSlots)
  1656. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewClosedAuctionSlots(opts *bind.FilterOpts) (*HermezAuctionProtocolNewClosedAuctionSlotsIterator, error) {
  1657. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewClosedAuctionSlots")
  1658. if err != nil {
  1659. return nil, err
  1660. }
  1661. return &HermezAuctionProtocolNewClosedAuctionSlotsIterator{contract: _HermezAuctionProtocol.contract, event: "NewClosedAuctionSlots", logs: logs, sub: sub}, nil
  1662. }
  1663. // WatchNewClosedAuctionSlots is a free log subscription operation binding the contract event 0xc78051d3757db196b1e445f3a9a1380944518c69b5d7922ec747c54f0340a4ea.
  1664. //
  1665. // Solidity: event NewClosedAuctionSlots(uint16 newClosedAuctionSlots)
  1666. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewClosedAuctionSlots(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewClosedAuctionSlots) (event.Subscription, error) {
  1667. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewClosedAuctionSlots")
  1668. if err != nil {
  1669. return nil, err
  1670. }
  1671. return event.NewSubscription(func(quit <-chan struct{}) error {
  1672. defer sub.Unsubscribe()
  1673. for {
  1674. select {
  1675. case log := <-logs:
  1676. // New log arrived, parse the event and forward to the user
  1677. event := new(HermezAuctionProtocolNewClosedAuctionSlots)
  1678. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewClosedAuctionSlots", log); err != nil {
  1679. return err
  1680. }
  1681. event.Raw = log
  1682. select {
  1683. case sink <- event:
  1684. case err := <-sub.Err():
  1685. return err
  1686. case <-quit:
  1687. return nil
  1688. }
  1689. case err := <-sub.Err():
  1690. return err
  1691. case <-quit:
  1692. return nil
  1693. }
  1694. }
  1695. }), nil
  1696. }
  1697. // ParseNewClosedAuctionSlots is a log parse operation binding the contract event 0xc78051d3757db196b1e445f3a9a1380944518c69b5d7922ec747c54f0340a4ea.
  1698. //
  1699. // Solidity: event NewClosedAuctionSlots(uint16 newClosedAuctionSlots)
  1700. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewClosedAuctionSlots(log types.Log) (*HermezAuctionProtocolNewClosedAuctionSlots, error) {
  1701. event := new(HermezAuctionProtocolNewClosedAuctionSlots)
  1702. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewClosedAuctionSlots", log); err != nil {
  1703. return nil, err
  1704. }
  1705. return event, nil
  1706. }
  1707. // HermezAuctionProtocolNewCoordinatorIterator is returned from FilterNewCoordinator and is used to iterate over the raw logs and unpacked data for NewCoordinator events raised by the HermezAuctionProtocol contract.
  1708. type HermezAuctionProtocolNewCoordinatorIterator struct {
  1709. Event *HermezAuctionProtocolNewCoordinator // Event containing the contract specifics and raw log
  1710. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1711. event string // Event name to use for unpacking event data
  1712. logs chan types.Log // Log channel receiving the found contract events
  1713. sub ethereum.Subscription // Subscription for errors, completion and termination
  1714. done bool // Whether the subscription completed delivering logs
  1715. fail error // Occurred error to stop iteration
  1716. }
  1717. // Next advances the iterator to the subsequent event, returning whether there
  1718. // are any more events found. In case of a retrieval or parsing error, false is
  1719. // returned and Error() can be queried for the exact failure.
  1720. func (it *HermezAuctionProtocolNewCoordinatorIterator) Next() bool {
  1721. // If the iterator failed, stop iterating
  1722. if it.fail != nil {
  1723. return false
  1724. }
  1725. // If the iterator completed, deliver directly whatever's available
  1726. if it.done {
  1727. select {
  1728. case log := <-it.logs:
  1729. it.Event = new(HermezAuctionProtocolNewCoordinator)
  1730. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1731. it.fail = err
  1732. return false
  1733. }
  1734. it.Event.Raw = log
  1735. return true
  1736. default:
  1737. return false
  1738. }
  1739. }
  1740. // Iterator still in progress, wait for either a data or an error event
  1741. select {
  1742. case log := <-it.logs:
  1743. it.Event = new(HermezAuctionProtocolNewCoordinator)
  1744. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1745. it.fail = err
  1746. return false
  1747. }
  1748. it.Event.Raw = log
  1749. return true
  1750. case err := <-it.sub.Err():
  1751. it.done = true
  1752. it.fail = err
  1753. return it.Next()
  1754. }
  1755. }
  1756. // Error returns any retrieval or parsing error occurred during filtering.
  1757. func (it *HermezAuctionProtocolNewCoordinatorIterator) Error() error {
  1758. return it.fail
  1759. }
  1760. // Close terminates the iteration process, releasing any pending underlying
  1761. // resources.
  1762. func (it *HermezAuctionProtocolNewCoordinatorIterator) Close() error {
  1763. it.sub.Unsubscribe()
  1764. return nil
  1765. }
  1766. // HermezAuctionProtocolNewCoordinator represents a NewCoordinator event raised by the HermezAuctionProtocol contract.
  1767. type HermezAuctionProtocolNewCoordinator struct {
  1768. ForgerAddress common.Address
  1769. WithdrawalAddress common.Address
  1770. CoordinatorURL string
  1771. Raw types.Log // Blockchain specific contextual infos
  1772. }
  1773. // FilterNewCoordinator is a free log retrieval operation binding the contract event 0x669c2ad52258689ce95b5b33025822b1afde214fff3a61dd00007d98b5b2ca36.
  1774. //
  1775. // Solidity: event NewCoordinator(address forgerAddress, address withdrawalAddress, string coordinatorURL)
  1776. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewCoordinator(opts *bind.FilterOpts) (*HermezAuctionProtocolNewCoordinatorIterator, error) {
  1777. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewCoordinator")
  1778. if err != nil {
  1779. return nil, err
  1780. }
  1781. return &HermezAuctionProtocolNewCoordinatorIterator{contract: _HermezAuctionProtocol.contract, event: "NewCoordinator", logs: logs, sub: sub}, nil
  1782. }
  1783. // WatchNewCoordinator is a free log subscription operation binding the contract event 0x669c2ad52258689ce95b5b33025822b1afde214fff3a61dd00007d98b5b2ca36.
  1784. //
  1785. // Solidity: event NewCoordinator(address forgerAddress, address withdrawalAddress, string coordinatorURL)
  1786. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewCoordinator(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewCoordinator) (event.Subscription, error) {
  1787. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewCoordinator")
  1788. if err != nil {
  1789. return nil, err
  1790. }
  1791. return event.NewSubscription(func(quit <-chan struct{}) error {
  1792. defer sub.Unsubscribe()
  1793. for {
  1794. select {
  1795. case log := <-logs:
  1796. // New log arrived, parse the event and forward to the user
  1797. event := new(HermezAuctionProtocolNewCoordinator)
  1798. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewCoordinator", log); err != nil {
  1799. return err
  1800. }
  1801. event.Raw = log
  1802. select {
  1803. case sink <- event:
  1804. case err := <-sub.Err():
  1805. return err
  1806. case <-quit:
  1807. return nil
  1808. }
  1809. case err := <-sub.Err():
  1810. return err
  1811. case <-quit:
  1812. return nil
  1813. }
  1814. }
  1815. }), nil
  1816. }
  1817. // ParseNewCoordinator is a log parse operation binding the contract event 0x669c2ad52258689ce95b5b33025822b1afde214fff3a61dd00007d98b5b2ca36.
  1818. //
  1819. // Solidity: event NewCoordinator(address forgerAddress, address withdrawalAddress, string coordinatorURL)
  1820. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewCoordinator(log types.Log) (*HermezAuctionProtocolNewCoordinator, error) {
  1821. event := new(HermezAuctionProtocolNewCoordinator)
  1822. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewCoordinator", log); err != nil {
  1823. return nil, err
  1824. }
  1825. return event, nil
  1826. }
  1827. // HermezAuctionProtocolNewDefaultSlotSetBidIterator is returned from FilterNewDefaultSlotSetBid and is used to iterate over the raw logs and unpacked data for NewDefaultSlotSetBid events raised by the HermezAuctionProtocol contract.
  1828. type HermezAuctionProtocolNewDefaultSlotSetBidIterator struct {
  1829. Event *HermezAuctionProtocolNewDefaultSlotSetBid // Event containing the contract specifics and raw log
  1830. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1831. event string // Event name to use for unpacking event data
  1832. logs chan types.Log // Log channel receiving the found contract events
  1833. sub ethereum.Subscription // Subscription for errors, completion and termination
  1834. done bool // Whether the subscription completed delivering logs
  1835. fail error // Occurred error to stop iteration
  1836. }
  1837. // Next advances the iterator to the subsequent event, returning whether there
  1838. // are any more events found. In case of a retrieval or parsing error, false is
  1839. // returned and Error() can be queried for the exact failure.
  1840. func (it *HermezAuctionProtocolNewDefaultSlotSetBidIterator) Next() bool {
  1841. // If the iterator failed, stop iterating
  1842. if it.fail != nil {
  1843. return false
  1844. }
  1845. // If the iterator completed, deliver directly whatever's available
  1846. if it.done {
  1847. select {
  1848. case log := <-it.logs:
  1849. it.Event = new(HermezAuctionProtocolNewDefaultSlotSetBid)
  1850. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1851. it.fail = err
  1852. return false
  1853. }
  1854. it.Event.Raw = log
  1855. return true
  1856. default:
  1857. return false
  1858. }
  1859. }
  1860. // Iterator still in progress, wait for either a data or an error event
  1861. select {
  1862. case log := <-it.logs:
  1863. it.Event = new(HermezAuctionProtocolNewDefaultSlotSetBid)
  1864. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1865. it.fail = err
  1866. return false
  1867. }
  1868. it.Event.Raw = log
  1869. return true
  1870. case err := <-it.sub.Err():
  1871. it.done = true
  1872. it.fail = err
  1873. return it.Next()
  1874. }
  1875. }
  1876. // Error returns any retrieval or parsing error occurred during filtering.
  1877. func (it *HermezAuctionProtocolNewDefaultSlotSetBidIterator) Error() error {
  1878. return it.fail
  1879. }
  1880. // Close terminates the iteration process, releasing any pending underlying
  1881. // resources.
  1882. func (it *HermezAuctionProtocolNewDefaultSlotSetBidIterator) Close() error {
  1883. it.sub.Unsubscribe()
  1884. return nil
  1885. }
  1886. // HermezAuctionProtocolNewDefaultSlotSetBid represents a NewDefaultSlotSetBid event raised by the HermezAuctionProtocol contract.
  1887. type HermezAuctionProtocolNewDefaultSlotSetBid struct {
  1888. SlotSet *big.Int
  1889. NewInitialMinBid *big.Int
  1890. Raw types.Log // Blockchain specific contextual infos
  1891. }
  1892. // FilterNewDefaultSlotSetBid is a free log retrieval operation binding the contract event 0xa922aa010d1ff8e70b2aa9247d891836795c3d3ba2a543c37c91a44dc4a50172.
  1893. //
  1894. // Solidity: event NewDefaultSlotSetBid(uint128 slotSet, uint128 newInitialMinBid)
  1895. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewDefaultSlotSetBid(opts *bind.FilterOpts) (*HermezAuctionProtocolNewDefaultSlotSetBidIterator, error) {
  1896. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewDefaultSlotSetBid")
  1897. if err != nil {
  1898. return nil, err
  1899. }
  1900. return &HermezAuctionProtocolNewDefaultSlotSetBidIterator{contract: _HermezAuctionProtocol.contract, event: "NewDefaultSlotSetBid", logs: logs, sub: sub}, nil
  1901. }
  1902. // WatchNewDefaultSlotSetBid is a free log subscription operation binding the contract event 0xa922aa010d1ff8e70b2aa9247d891836795c3d3ba2a543c37c91a44dc4a50172.
  1903. //
  1904. // Solidity: event NewDefaultSlotSetBid(uint128 slotSet, uint128 newInitialMinBid)
  1905. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewDefaultSlotSetBid(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewDefaultSlotSetBid) (event.Subscription, error) {
  1906. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewDefaultSlotSetBid")
  1907. if err != nil {
  1908. return nil, err
  1909. }
  1910. return event.NewSubscription(func(quit <-chan struct{}) error {
  1911. defer sub.Unsubscribe()
  1912. for {
  1913. select {
  1914. case log := <-logs:
  1915. // New log arrived, parse the event and forward to the user
  1916. event := new(HermezAuctionProtocolNewDefaultSlotSetBid)
  1917. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewDefaultSlotSetBid", log); err != nil {
  1918. return err
  1919. }
  1920. event.Raw = log
  1921. select {
  1922. case sink <- event:
  1923. case err := <-sub.Err():
  1924. return err
  1925. case <-quit:
  1926. return nil
  1927. }
  1928. case err := <-sub.Err():
  1929. return err
  1930. case <-quit:
  1931. return nil
  1932. }
  1933. }
  1934. }), nil
  1935. }
  1936. // ParseNewDefaultSlotSetBid is a log parse operation binding the contract event 0xa922aa010d1ff8e70b2aa9247d891836795c3d3ba2a543c37c91a44dc4a50172.
  1937. //
  1938. // Solidity: event NewDefaultSlotSetBid(uint128 slotSet, uint128 newInitialMinBid)
  1939. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewDefaultSlotSetBid(log types.Log) (*HermezAuctionProtocolNewDefaultSlotSetBid, error) {
  1940. event := new(HermezAuctionProtocolNewDefaultSlotSetBid)
  1941. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewDefaultSlotSetBid", log); err != nil {
  1942. return nil, err
  1943. }
  1944. return event, nil
  1945. }
  1946. // HermezAuctionProtocolNewDonationAddressIterator is returned from FilterNewDonationAddress and is used to iterate over the raw logs and unpacked data for NewDonationAddress events raised by the HermezAuctionProtocol contract.
  1947. type HermezAuctionProtocolNewDonationAddressIterator struct {
  1948. Event *HermezAuctionProtocolNewDonationAddress // Event containing the contract specifics and raw log
  1949. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1950. event string // Event name to use for unpacking event data
  1951. logs chan types.Log // Log channel receiving the found contract events
  1952. sub ethereum.Subscription // Subscription for errors, completion and termination
  1953. done bool // Whether the subscription completed delivering logs
  1954. fail error // Occurred error to stop iteration
  1955. }
  1956. // Next advances the iterator to the subsequent event, returning whether there
  1957. // are any more events found. In case of a retrieval or parsing error, false is
  1958. // returned and Error() can be queried for the exact failure.
  1959. func (it *HermezAuctionProtocolNewDonationAddressIterator) Next() bool {
  1960. // If the iterator failed, stop iterating
  1961. if it.fail != nil {
  1962. return false
  1963. }
  1964. // If the iterator completed, deliver directly whatever's available
  1965. if it.done {
  1966. select {
  1967. case log := <-it.logs:
  1968. it.Event = new(HermezAuctionProtocolNewDonationAddress)
  1969. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1970. it.fail = err
  1971. return false
  1972. }
  1973. it.Event.Raw = log
  1974. return true
  1975. default:
  1976. return false
  1977. }
  1978. }
  1979. // Iterator still in progress, wait for either a data or an error event
  1980. select {
  1981. case log := <-it.logs:
  1982. it.Event = new(HermezAuctionProtocolNewDonationAddress)
  1983. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1984. it.fail = err
  1985. return false
  1986. }
  1987. it.Event.Raw = log
  1988. return true
  1989. case err := <-it.sub.Err():
  1990. it.done = true
  1991. it.fail = err
  1992. return it.Next()
  1993. }
  1994. }
  1995. // Error returns any retrieval or parsing error occurred during filtering.
  1996. func (it *HermezAuctionProtocolNewDonationAddressIterator) Error() error {
  1997. return it.fail
  1998. }
  1999. // Close terminates the iteration process, releasing any pending underlying
  2000. // resources.
  2001. func (it *HermezAuctionProtocolNewDonationAddressIterator) Close() error {
  2002. it.sub.Unsubscribe()
  2003. return nil
  2004. }
  2005. // HermezAuctionProtocolNewDonationAddress represents a NewDonationAddress event raised by the HermezAuctionProtocol contract.
  2006. type HermezAuctionProtocolNewDonationAddress struct {
  2007. NewDonationAddress common.Address
  2008. Raw types.Log // Blockchain specific contextual infos
  2009. }
  2010. // FilterNewDonationAddress is a free log retrieval operation binding the contract event 0xa62863cbad1647a2855e9cd39d04fa6dfd32e1b9cfaff1aaf6523f4aaafeccd7.
  2011. //
  2012. // Solidity: event NewDonationAddress(address newDonationAddress)
  2013. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewDonationAddress(opts *bind.FilterOpts) (*HermezAuctionProtocolNewDonationAddressIterator, error) {
  2014. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewDonationAddress")
  2015. if err != nil {
  2016. return nil, err
  2017. }
  2018. return &HermezAuctionProtocolNewDonationAddressIterator{contract: _HermezAuctionProtocol.contract, event: "NewDonationAddress", logs: logs, sub: sub}, nil
  2019. }
  2020. // WatchNewDonationAddress is a free log subscription operation binding the contract event 0xa62863cbad1647a2855e9cd39d04fa6dfd32e1b9cfaff1aaf6523f4aaafeccd7.
  2021. //
  2022. // Solidity: event NewDonationAddress(address newDonationAddress)
  2023. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewDonationAddress(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewDonationAddress) (event.Subscription, error) {
  2024. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewDonationAddress")
  2025. if err != nil {
  2026. return nil, err
  2027. }
  2028. return event.NewSubscription(func(quit <-chan struct{}) error {
  2029. defer sub.Unsubscribe()
  2030. for {
  2031. select {
  2032. case log := <-logs:
  2033. // New log arrived, parse the event and forward to the user
  2034. event := new(HermezAuctionProtocolNewDonationAddress)
  2035. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewDonationAddress", log); err != nil {
  2036. return err
  2037. }
  2038. event.Raw = log
  2039. select {
  2040. case sink <- event:
  2041. case err := <-sub.Err():
  2042. return err
  2043. case <-quit:
  2044. return nil
  2045. }
  2046. case err := <-sub.Err():
  2047. return err
  2048. case <-quit:
  2049. return nil
  2050. }
  2051. }
  2052. }), nil
  2053. }
  2054. // ParseNewDonationAddress is a log parse operation binding the contract event 0xa62863cbad1647a2855e9cd39d04fa6dfd32e1b9cfaff1aaf6523f4aaafeccd7.
  2055. //
  2056. // Solidity: event NewDonationAddress(address newDonationAddress)
  2057. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewDonationAddress(log types.Log) (*HermezAuctionProtocolNewDonationAddress, error) {
  2058. event := new(HermezAuctionProtocolNewDonationAddress)
  2059. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewDonationAddress", log); err != nil {
  2060. return nil, err
  2061. }
  2062. return event, nil
  2063. }
  2064. // HermezAuctionProtocolNewForgeIterator is returned from FilterNewForge and is used to iterate over the raw logs and unpacked data for NewForge events raised by the HermezAuctionProtocol contract.
  2065. type HermezAuctionProtocolNewForgeIterator struct {
  2066. Event *HermezAuctionProtocolNewForge // Event containing the contract specifics and raw log
  2067. contract *bind.BoundContract // Generic contract to use for unpacking event data
  2068. event string // Event name to use for unpacking event data
  2069. logs chan types.Log // Log channel receiving the found contract events
  2070. sub ethereum.Subscription // Subscription for errors, completion and termination
  2071. done bool // Whether the subscription completed delivering logs
  2072. fail error // Occurred error to stop iteration
  2073. }
  2074. // Next advances the iterator to the subsequent event, returning whether there
  2075. // are any more events found. In case of a retrieval or parsing error, false is
  2076. // returned and Error() can be queried for the exact failure.
  2077. func (it *HermezAuctionProtocolNewForgeIterator) Next() bool {
  2078. // If the iterator failed, stop iterating
  2079. if it.fail != nil {
  2080. return false
  2081. }
  2082. // If the iterator completed, deliver directly whatever's available
  2083. if it.done {
  2084. select {
  2085. case log := <-it.logs:
  2086. it.Event = new(HermezAuctionProtocolNewForge)
  2087. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2088. it.fail = err
  2089. return false
  2090. }
  2091. it.Event.Raw = log
  2092. return true
  2093. default:
  2094. return false
  2095. }
  2096. }
  2097. // Iterator still in progress, wait for either a data or an error event
  2098. select {
  2099. case log := <-it.logs:
  2100. it.Event = new(HermezAuctionProtocolNewForge)
  2101. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2102. it.fail = err
  2103. return false
  2104. }
  2105. it.Event.Raw = log
  2106. return true
  2107. case err := <-it.sub.Err():
  2108. it.done = true
  2109. it.fail = err
  2110. return it.Next()
  2111. }
  2112. }
  2113. // Error returns any retrieval or parsing error occurred during filtering.
  2114. func (it *HermezAuctionProtocolNewForgeIterator) Error() error {
  2115. return it.fail
  2116. }
  2117. // Close terminates the iteration process, releasing any pending underlying
  2118. // resources.
  2119. func (it *HermezAuctionProtocolNewForgeIterator) Close() error {
  2120. it.sub.Unsubscribe()
  2121. return nil
  2122. }
  2123. // HermezAuctionProtocolNewForge represents a NewForge event raised by the HermezAuctionProtocol contract.
  2124. type HermezAuctionProtocolNewForge struct {
  2125. Forger common.Address
  2126. SlotToForge *big.Int
  2127. Raw types.Log // Blockchain specific contextual infos
  2128. }
  2129. // FilterNewForge is a free log retrieval operation binding the contract event 0x7cae662d4cfa9d9c5575c65f0cc41a858c51ca14ebcbd02a802a62376c3ad238.
  2130. //
  2131. // Solidity: event NewForge(address indexed forger, uint128 indexed slotToForge)
  2132. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewForge(opts *bind.FilterOpts, forger []common.Address, slotToForge []*big.Int) (*HermezAuctionProtocolNewForgeIterator, error) {
  2133. var forgerRule []interface{}
  2134. for _, forgerItem := range forger {
  2135. forgerRule = append(forgerRule, forgerItem)
  2136. }
  2137. var slotToForgeRule []interface{}
  2138. for _, slotToForgeItem := range slotToForge {
  2139. slotToForgeRule = append(slotToForgeRule, slotToForgeItem)
  2140. }
  2141. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewForge", forgerRule, slotToForgeRule)
  2142. if err != nil {
  2143. return nil, err
  2144. }
  2145. return &HermezAuctionProtocolNewForgeIterator{contract: _HermezAuctionProtocol.contract, event: "NewForge", logs: logs, sub: sub}, nil
  2146. }
  2147. // WatchNewForge is a free log subscription operation binding the contract event 0x7cae662d4cfa9d9c5575c65f0cc41a858c51ca14ebcbd02a802a62376c3ad238.
  2148. //
  2149. // Solidity: event NewForge(address indexed forger, uint128 indexed slotToForge)
  2150. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewForge(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewForge, forger []common.Address, slotToForge []*big.Int) (event.Subscription, error) {
  2151. var forgerRule []interface{}
  2152. for _, forgerItem := range forger {
  2153. forgerRule = append(forgerRule, forgerItem)
  2154. }
  2155. var slotToForgeRule []interface{}
  2156. for _, slotToForgeItem := range slotToForge {
  2157. slotToForgeRule = append(slotToForgeRule, slotToForgeItem)
  2158. }
  2159. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewForge", forgerRule, slotToForgeRule)
  2160. if err != nil {
  2161. return nil, err
  2162. }
  2163. return event.NewSubscription(func(quit <-chan struct{}) error {
  2164. defer sub.Unsubscribe()
  2165. for {
  2166. select {
  2167. case log := <-logs:
  2168. // New log arrived, parse the event and forward to the user
  2169. event := new(HermezAuctionProtocolNewForge)
  2170. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewForge", log); err != nil {
  2171. return err
  2172. }
  2173. event.Raw = log
  2174. select {
  2175. case sink <- event:
  2176. case err := <-sub.Err():
  2177. return err
  2178. case <-quit:
  2179. return nil
  2180. }
  2181. case err := <-sub.Err():
  2182. return err
  2183. case <-quit:
  2184. return nil
  2185. }
  2186. }
  2187. }), nil
  2188. }
  2189. // ParseNewForge is a log parse operation binding the contract event 0x7cae662d4cfa9d9c5575c65f0cc41a858c51ca14ebcbd02a802a62376c3ad238.
  2190. //
  2191. // Solidity: event NewForge(address indexed forger, uint128 indexed slotToForge)
  2192. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewForge(log types.Log) (*HermezAuctionProtocolNewForge, error) {
  2193. event := new(HermezAuctionProtocolNewForge)
  2194. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewForge", log); err != nil {
  2195. return nil, err
  2196. }
  2197. return event, nil
  2198. }
  2199. // HermezAuctionProtocolNewForgeAllocatedIterator is returned from FilterNewForgeAllocated and is used to iterate over the raw logs and unpacked data for NewForgeAllocated events raised by the HermezAuctionProtocol contract.
  2200. type HermezAuctionProtocolNewForgeAllocatedIterator struct {
  2201. Event *HermezAuctionProtocolNewForgeAllocated // Event containing the contract specifics and raw log
  2202. contract *bind.BoundContract // Generic contract to use for unpacking event data
  2203. event string // Event name to use for unpacking event data
  2204. logs chan types.Log // Log channel receiving the found contract events
  2205. sub ethereum.Subscription // Subscription for errors, completion and termination
  2206. done bool // Whether the subscription completed delivering logs
  2207. fail error // Occurred error to stop iteration
  2208. }
  2209. // Next advances the iterator to the subsequent event, returning whether there
  2210. // are any more events found. In case of a retrieval or parsing error, false is
  2211. // returned and Error() can be queried for the exact failure.
  2212. func (it *HermezAuctionProtocolNewForgeAllocatedIterator) Next() bool {
  2213. // If the iterator failed, stop iterating
  2214. if it.fail != nil {
  2215. return false
  2216. }
  2217. // If the iterator completed, deliver directly whatever's available
  2218. if it.done {
  2219. select {
  2220. case log := <-it.logs:
  2221. it.Event = new(HermezAuctionProtocolNewForgeAllocated)
  2222. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2223. it.fail = err
  2224. return false
  2225. }
  2226. it.Event.Raw = log
  2227. return true
  2228. default:
  2229. return false
  2230. }
  2231. }
  2232. // Iterator still in progress, wait for either a data or an error event
  2233. select {
  2234. case log := <-it.logs:
  2235. it.Event = new(HermezAuctionProtocolNewForgeAllocated)
  2236. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2237. it.fail = err
  2238. return false
  2239. }
  2240. it.Event.Raw = log
  2241. return true
  2242. case err := <-it.sub.Err():
  2243. it.done = true
  2244. it.fail = err
  2245. return it.Next()
  2246. }
  2247. }
  2248. // Error returns any retrieval or parsing error occurred during filtering.
  2249. func (it *HermezAuctionProtocolNewForgeAllocatedIterator) Error() error {
  2250. return it.fail
  2251. }
  2252. // Close terminates the iteration process, releasing any pending underlying
  2253. // resources.
  2254. func (it *HermezAuctionProtocolNewForgeAllocatedIterator) Close() error {
  2255. it.sub.Unsubscribe()
  2256. return nil
  2257. }
  2258. // HermezAuctionProtocolNewForgeAllocated represents a NewForgeAllocated event raised by the HermezAuctionProtocol contract.
  2259. type HermezAuctionProtocolNewForgeAllocated struct {
  2260. Forger common.Address
  2261. SlotToForge *big.Int
  2262. BurnAmount *big.Int
  2263. DonationAmount *big.Int
  2264. GovernanceAmount *big.Int
  2265. Raw types.Log // Blockchain specific contextual infos
  2266. }
  2267. // FilterNewForgeAllocated is a free log retrieval operation binding the contract event 0x9c1175e346e9ec25b59d991c43dd2c3c982970d169dbd7315ad3d8bb91e0acf5.
  2268. //
  2269. // Solidity: event NewForgeAllocated(address indexed forger, uint128 indexed slotToForge, uint128 burnAmount, uint128 donationAmount, uint128 governanceAmount)
  2270. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewForgeAllocated(opts *bind.FilterOpts, forger []common.Address, slotToForge []*big.Int) (*HermezAuctionProtocolNewForgeAllocatedIterator, error) {
  2271. var forgerRule []interface{}
  2272. for _, forgerItem := range forger {
  2273. forgerRule = append(forgerRule, forgerItem)
  2274. }
  2275. var slotToForgeRule []interface{}
  2276. for _, slotToForgeItem := range slotToForge {
  2277. slotToForgeRule = append(slotToForgeRule, slotToForgeItem)
  2278. }
  2279. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewForgeAllocated", forgerRule, slotToForgeRule)
  2280. if err != nil {
  2281. return nil, err
  2282. }
  2283. return &HermezAuctionProtocolNewForgeAllocatedIterator{contract: _HermezAuctionProtocol.contract, event: "NewForgeAllocated", logs: logs, sub: sub}, nil
  2284. }
  2285. // WatchNewForgeAllocated is a free log subscription operation binding the contract event 0x9c1175e346e9ec25b59d991c43dd2c3c982970d169dbd7315ad3d8bb91e0acf5.
  2286. //
  2287. // Solidity: event NewForgeAllocated(address indexed forger, uint128 indexed slotToForge, uint128 burnAmount, uint128 donationAmount, uint128 governanceAmount)
  2288. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewForgeAllocated(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewForgeAllocated, forger []common.Address, slotToForge []*big.Int) (event.Subscription, error) {
  2289. var forgerRule []interface{}
  2290. for _, forgerItem := range forger {
  2291. forgerRule = append(forgerRule, forgerItem)
  2292. }
  2293. var slotToForgeRule []interface{}
  2294. for _, slotToForgeItem := range slotToForge {
  2295. slotToForgeRule = append(slotToForgeRule, slotToForgeItem)
  2296. }
  2297. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewForgeAllocated", forgerRule, slotToForgeRule)
  2298. if err != nil {
  2299. return nil, err
  2300. }
  2301. return event.NewSubscription(func(quit <-chan struct{}) error {
  2302. defer sub.Unsubscribe()
  2303. for {
  2304. select {
  2305. case log := <-logs:
  2306. // New log arrived, parse the event and forward to the user
  2307. event := new(HermezAuctionProtocolNewForgeAllocated)
  2308. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewForgeAllocated", log); err != nil {
  2309. return err
  2310. }
  2311. event.Raw = log
  2312. select {
  2313. case sink <- event:
  2314. case err := <-sub.Err():
  2315. return err
  2316. case <-quit:
  2317. return nil
  2318. }
  2319. case err := <-sub.Err():
  2320. return err
  2321. case <-quit:
  2322. return nil
  2323. }
  2324. }
  2325. }), nil
  2326. }
  2327. // ParseNewForgeAllocated is a log parse operation binding the contract event 0x9c1175e346e9ec25b59d991c43dd2c3c982970d169dbd7315ad3d8bb91e0acf5.
  2328. //
  2329. // Solidity: event NewForgeAllocated(address indexed forger, uint128 indexed slotToForge, uint128 burnAmount, uint128 donationAmount, uint128 governanceAmount)
  2330. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewForgeAllocated(log types.Log) (*HermezAuctionProtocolNewForgeAllocated, error) {
  2331. event := new(HermezAuctionProtocolNewForgeAllocated)
  2332. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewForgeAllocated", log); err != nil {
  2333. return nil, err
  2334. }
  2335. return event, nil
  2336. }
  2337. // HermezAuctionProtocolNewOpenAuctionSlotsIterator is returned from FilterNewOpenAuctionSlots and is used to iterate over the raw logs and unpacked data for NewOpenAuctionSlots events raised by the HermezAuctionProtocol contract.
  2338. type HermezAuctionProtocolNewOpenAuctionSlotsIterator struct {
  2339. Event *HermezAuctionProtocolNewOpenAuctionSlots // Event containing the contract specifics and raw log
  2340. contract *bind.BoundContract // Generic contract to use for unpacking event data
  2341. event string // Event name to use for unpacking event data
  2342. logs chan types.Log // Log channel receiving the found contract events
  2343. sub ethereum.Subscription // Subscription for errors, completion and termination
  2344. done bool // Whether the subscription completed delivering logs
  2345. fail error // Occurred error to stop iteration
  2346. }
  2347. // Next advances the iterator to the subsequent event, returning whether there
  2348. // are any more events found. In case of a retrieval or parsing error, false is
  2349. // returned and Error() can be queried for the exact failure.
  2350. func (it *HermezAuctionProtocolNewOpenAuctionSlotsIterator) Next() bool {
  2351. // If the iterator failed, stop iterating
  2352. if it.fail != nil {
  2353. return false
  2354. }
  2355. // If the iterator completed, deliver directly whatever's available
  2356. if it.done {
  2357. select {
  2358. case log := <-it.logs:
  2359. it.Event = new(HermezAuctionProtocolNewOpenAuctionSlots)
  2360. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2361. it.fail = err
  2362. return false
  2363. }
  2364. it.Event.Raw = log
  2365. return true
  2366. default:
  2367. return false
  2368. }
  2369. }
  2370. // Iterator still in progress, wait for either a data or an error event
  2371. select {
  2372. case log := <-it.logs:
  2373. it.Event = new(HermezAuctionProtocolNewOpenAuctionSlots)
  2374. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2375. it.fail = err
  2376. return false
  2377. }
  2378. it.Event.Raw = log
  2379. return true
  2380. case err := <-it.sub.Err():
  2381. it.done = true
  2382. it.fail = err
  2383. return it.Next()
  2384. }
  2385. }
  2386. // Error returns any retrieval or parsing error occurred during filtering.
  2387. func (it *HermezAuctionProtocolNewOpenAuctionSlotsIterator) Error() error {
  2388. return it.fail
  2389. }
  2390. // Close terminates the iteration process, releasing any pending underlying
  2391. // resources.
  2392. func (it *HermezAuctionProtocolNewOpenAuctionSlotsIterator) Close() error {
  2393. it.sub.Unsubscribe()
  2394. return nil
  2395. }
  2396. // HermezAuctionProtocolNewOpenAuctionSlots represents a NewOpenAuctionSlots event raised by the HermezAuctionProtocol contract.
  2397. type HermezAuctionProtocolNewOpenAuctionSlots struct {
  2398. NewOpenAuctionSlots uint16
  2399. Raw types.Log // Blockchain specific contextual infos
  2400. }
  2401. // FilterNewOpenAuctionSlots is a free log retrieval operation binding the contract event 0x3da0492dea7298351bc14d1c0699905fd0657c33487449751af50fc0c8b593f1.
  2402. //
  2403. // Solidity: event NewOpenAuctionSlots(uint16 newOpenAuctionSlots)
  2404. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewOpenAuctionSlots(opts *bind.FilterOpts) (*HermezAuctionProtocolNewOpenAuctionSlotsIterator, error) {
  2405. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewOpenAuctionSlots")
  2406. if err != nil {
  2407. return nil, err
  2408. }
  2409. return &HermezAuctionProtocolNewOpenAuctionSlotsIterator{contract: _HermezAuctionProtocol.contract, event: "NewOpenAuctionSlots", logs: logs, sub: sub}, nil
  2410. }
  2411. // WatchNewOpenAuctionSlots is a free log subscription operation binding the contract event 0x3da0492dea7298351bc14d1c0699905fd0657c33487449751af50fc0c8b593f1.
  2412. //
  2413. // Solidity: event NewOpenAuctionSlots(uint16 newOpenAuctionSlots)
  2414. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewOpenAuctionSlots(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewOpenAuctionSlots) (event.Subscription, error) {
  2415. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewOpenAuctionSlots")
  2416. if err != nil {
  2417. return nil, err
  2418. }
  2419. return event.NewSubscription(func(quit <-chan struct{}) error {
  2420. defer sub.Unsubscribe()
  2421. for {
  2422. select {
  2423. case log := <-logs:
  2424. // New log arrived, parse the event and forward to the user
  2425. event := new(HermezAuctionProtocolNewOpenAuctionSlots)
  2426. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewOpenAuctionSlots", log); err != nil {
  2427. return err
  2428. }
  2429. event.Raw = log
  2430. select {
  2431. case sink <- event:
  2432. case err := <-sub.Err():
  2433. return err
  2434. case <-quit:
  2435. return nil
  2436. }
  2437. case err := <-sub.Err():
  2438. return err
  2439. case <-quit:
  2440. return nil
  2441. }
  2442. }
  2443. }), nil
  2444. }
  2445. // ParseNewOpenAuctionSlots is a log parse operation binding the contract event 0x3da0492dea7298351bc14d1c0699905fd0657c33487449751af50fc0c8b593f1.
  2446. //
  2447. // Solidity: event NewOpenAuctionSlots(uint16 newOpenAuctionSlots)
  2448. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewOpenAuctionSlots(log types.Log) (*HermezAuctionProtocolNewOpenAuctionSlots, error) {
  2449. event := new(HermezAuctionProtocolNewOpenAuctionSlots)
  2450. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewOpenAuctionSlots", log); err != nil {
  2451. return nil, err
  2452. }
  2453. return event, nil
  2454. }
  2455. // HermezAuctionProtocolNewOutbiddingIterator is returned from FilterNewOutbidding and is used to iterate over the raw logs and unpacked data for NewOutbidding events raised by the HermezAuctionProtocol contract.
  2456. type HermezAuctionProtocolNewOutbiddingIterator struct {
  2457. Event *HermezAuctionProtocolNewOutbidding // Event containing the contract specifics and raw log
  2458. contract *bind.BoundContract // Generic contract to use for unpacking event data
  2459. event string // Event name to use for unpacking event data
  2460. logs chan types.Log // Log channel receiving the found contract events
  2461. sub ethereum.Subscription // Subscription for errors, completion and termination
  2462. done bool // Whether the subscription completed delivering logs
  2463. fail error // Occurred error to stop iteration
  2464. }
  2465. // Next advances the iterator to the subsequent event, returning whether there
  2466. // are any more events found. In case of a retrieval or parsing error, false is
  2467. // returned and Error() can be queried for the exact failure.
  2468. func (it *HermezAuctionProtocolNewOutbiddingIterator) Next() bool {
  2469. // If the iterator failed, stop iterating
  2470. if it.fail != nil {
  2471. return false
  2472. }
  2473. // If the iterator completed, deliver directly whatever's available
  2474. if it.done {
  2475. select {
  2476. case log := <-it.logs:
  2477. it.Event = new(HermezAuctionProtocolNewOutbidding)
  2478. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2479. it.fail = err
  2480. return false
  2481. }
  2482. it.Event.Raw = log
  2483. return true
  2484. default:
  2485. return false
  2486. }
  2487. }
  2488. // Iterator still in progress, wait for either a data or an error event
  2489. select {
  2490. case log := <-it.logs:
  2491. it.Event = new(HermezAuctionProtocolNewOutbidding)
  2492. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2493. it.fail = err
  2494. return false
  2495. }
  2496. it.Event.Raw = log
  2497. return true
  2498. case err := <-it.sub.Err():
  2499. it.done = true
  2500. it.fail = err
  2501. return it.Next()
  2502. }
  2503. }
  2504. // Error returns any retrieval or parsing error occurred during filtering.
  2505. func (it *HermezAuctionProtocolNewOutbiddingIterator) Error() error {
  2506. return it.fail
  2507. }
  2508. // Close terminates the iteration process, releasing any pending underlying
  2509. // resources.
  2510. func (it *HermezAuctionProtocolNewOutbiddingIterator) Close() error {
  2511. it.sub.Unsubscribe()
  2512. return nil
  2513. }
  2514. // HermezAuctionProtocolNewOutbidding represents a NewOutbidding event raised by the HermezAuctionProtocol contract.
  2515. type HermezAuctionProtocolNewOutbidding struct {
  2516. NewOutbidding uint16
  2517. Raw types.Log // Blockchain specific contextual infos
  2518. }
  2519. // FilterNewOutbidding is a free log retrieval operation binding the contract event 0xd3748b8c326e93d12af934fbf87471e315a89bc3f7b8222343acf0210edf248e.
  2520. //
  2521. // Solidity: event NewOutbidding(uint16 newOutbidding)
  2522. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewOutbidding(opts *bind.FilterOpts) (*HermezAuctionProtocolNewOutbiddingIterator, error) {
  2523. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewOutbidding")
  2524. if err != nil {
  2525. return nil, err
  2526. }
  2527. return &HermezAuctionProtocolNewOutbiddingIterator{contract: _HermezAuctionProtocol.contract, event: "NewOutbidding", logs: logs, sub: sub}, nil
  2528. }
  2529. // WatchNewOutbidding is a free log subscription operation binding the contract event 0xd3748b8c326e93d12af934fbf87471e315a89bc3f7b8222343acf0210edf248e.
  2530. //
  2531. // Solidity: event NewOutbidding(uint16 newOutbidding)
  2532. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewOutbidding(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewOutbidding) (event.Subscription, error) {
  2533. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewOutbidding")
  2534. if err != nil {
  2535. return nil, err
  2536. }
  2537. return event.NewSubscription(func(quit <-chan struct{}) error {
  2538. defer sub.Unsubscribe()
  2539. for {
  2540. select {
  2541. case log := <-logs:
  2542. // New log arrived, parse the event and forward to the user
  2543. event := new(HermezAuctionProtocolNewOutbidding)
  2544. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewOutbidding", log); err != nil {
  2545. return err
  2546. }
  2547. event.Raw = log
  2548. select {
  2549. case sink <- event:
  2550. case err := <-sub.Err():
  2551. return err
  2552. case <-quit:
  2553. return nil
  2554. }
  2555. case err := <-sub.Err():
  2556. return err
  2557. case <-quit:
  2558. return nil
  2559. }
  2560. }
  2561. }), nil
  2562. }
  2563. // ParseNewOutbidding is a log parse operation binding the contract event 0xd3748b8c326e93d12af934fbf87471e315a89bc3f7b8222343acf0210edf248e.
  2564. //
  2565. // Solidity: event NewOutbidding(uint16 newOutbidding)
  2566. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewOutbidding(log types.Log) (*HermezAuctionProtocolNewOutbidding, error) {
  2567. event := new(HermezAuctionProtocolNewOutbidding)
  2568. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewOutbidding", log); err != nil {
  2569. return nil, err
  2570. }
  2571. return event, nil
  2572. }
  2573. // HermezAuctionProtocolNewSlotDeadlineIterator is returned from FilterNewSlotDeadline and is used to iterate over the raw logs and unpacked data for NewSlotDeadline events raised by the HermezAuctionProtocol contract.
  2574. type HermezAuctionProtocolNewSlotDeadlineIterator struct {
  2575. Event *HermezAuctionProtocolNewSlotDeadline // Event containing the contract specifics and raw log
  2576. contract *bind.BoundContract // Generic contract to use for unpacking event data
  2577. event string // Event name to use for unpacking event data
  2578. logs chan types.Log // Log channel receiving the found contract events
  2579. sub ethereum.Subscription // Subscription for errors, completion and termination
  2580. done bool // Whether the subscription completed delivering logs
  2581. fail error // Occurred error to stop iteration
  2582. }
  2583. // Next advances the iterator to the subsequent event, returning whether there
  2584. // are any more events found. In case of a retrieval or parsing error, false is
  2585. // returned and Error() can be queried for the exact failure.
  2586. func (it *HermezAuctionProtocolNewSlotDeadlineIterator) Next() bool {
  2587. // If the iterator failed, stop iterating
  2588. if it.fail != nil {
  2589. return false
  2590. }
  2591. // If the iterator completed, deliver directly whatever's available
  2592. if it.done {
  2593. select {
  2594. case log := <-it.logs:
  2595. it.Event = new(HermezAuctionProtocolNewSlotDeadline)
  2596. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2597. it.fail = err
  2598. return false
  2599. }
  2600. it.Event.Raw = log
  2601. return true
  2602. default:
  2603. return false
  2604. }
  2605. }
  2606. // Iterator still in progress, wait for either a data or an error event
  2607. select {
  2608. case log := <-it.logs:
  2609. it.Event = new(HermezAuctionProtocolNewSlotDeadline)
  2610. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2611. it.fail = err
  2612. return false
  2613. }
  2614. it.Event.Raw = log
  2615. return true
  2616. case err := <-it.sub.Err():
  2617. it.done = true
  2618. it.fail = err
  2619. return it.Next()
  2620. }
  2621. }
  2622. // Error returns any retrieval or parsing error occurred during filtering.
  2623. func (it *HermezAuctionProtocolNewSlotDeadlineIterator) Error() error {
  2624. return it.fail
  2625. }
  2626. // Close terminates the iteration process, releasing any pending underlying
  2627. // resources.
  2628. func (it *HermezAuctionProtocolNewSlotDeadlineIterator) Close() error {
  2629. it.sub.Unsubscribe()
  2630. return nil
  2631. }
  2632. // HermezAuctionProtocolNewSlotDeadline represents a NewSlotDeadline event raised by the HermezAuctionProtocol contract.
  2633. type HermezAuctionProtocolNewSlotDeadline struct {
  2634. NewSlotDeadline uint8
  2635. Raw types.Log // Blockchain specific contextual infos
  2636. }
  2637. // FilterNewSlotDeadline is a free log retrieval operation binding the contract event 0x4a0d90b611c15e02dbf23b10f35b936cf2c77665f8c77822d3eca131f9d986d3.
  2638. //
  2639. // Solidity: event NewSlotDeadline(uint8 newSlotDeadline)
  2640. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewSlotDeadline(opts *bind.FilterOpts) (*HermezAuctionProtocolNewSlotDeadlineIterator, error) {
  2641. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewSlotDeadline")
  2642. if err != nil {
  2643. return nil, err
  2644. }
  2645. return &HermezAuctionProtocolNewSlotDeadlineIterator{contract: _HermezAuctionProtocol.contract, event: "NewSlotDeadline", logs: logs, sub: sub}, nil
  2646. }
  2647. // WatchNewSlotDeadline is a free log subscription operation binding the contract event 0x4a0d90b611c15e02dbf23b10f35b936cf2c77665f8c77822d3eca131f9d986d3.
  2648. //
  2649. // Solidity: event NewSlotDeadline(uint8 newSlotDeadline)
  2650. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewSlotDeadline(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewSlotDeadline) (event.Subscription, error) {
  2651. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewSlotDeadline")
  2652. if err != nil {
  2653. return nil, err
  2654. }
  2655. return event.NewSubscription(func(quit <-chan struct{}) error {
  2656. defer sub.Unsubscribe()
  2657. for {
  2658. select {
  2659. case log := <-logs:
  2660. // New log arrived, parse the event and forward to the user
  2661. event := new(HermezAuctionProtocolNewSlotDeadline)
  2662. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewSlotDeadline", log); err != nil {
  2663. return err
  2664. }
  2665. event.Raw = log
  2666. select {
  2667. case sink <- event:
  2668. case err := <-sub.Err():
  2669. return err
  2670. case <-quit:
  2671. return nil
  2672. }
  2673. case err := <-sub.Err():
  2674. return err
  2675. case <-quit:
  2676. return nil
  2677. }
  2678. }
  2679. }), nil
  2680. }
  2681. // ParseNewSlotDeadline is a log parse operation binding the contract event 0x4a0d90b611c15e02dbf23b10f35b936cf2c77665f8c77822d3eca131f9d986d3.
  2682. //
  2683. // Solidity: event NewSlotDeadline(uint8 newSlotDeadline)
  2684. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewSlotDeadline(log types.Log) (*HermezAuctionProtocolNewSlotDeadline, error) {
  2685. event := new(HermezAuctionProtocolNewSlotDeadline)
  2686. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewSlotDeadline", log); err != nil {
  2687. return nil, err
  2688. }
  2689. return event, nil
  2690. }