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.

2915 lines
160 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\":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\":\"bidder\",\"type\":\"address\"}],\"name\":\"NewBid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"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\":\"uint128\",\"name\":\"slotSet\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"newInitialMinBid\",\"type\":\"uint128\"}],\"name\":\"NewDefaultSlotSetBid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"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\":\"bidder\",\"type\":\"address\"},{\"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\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"bidder\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"forger\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"coordinatorURL\",\"type\":\"string\"}],\"name\":\"SetCoordinator\",\"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\":[],\"name\":\"claimHEZ\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"coordinators\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"forger\",\"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\":\"bidder\",\"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\":\"\",\"type\":\"address\"}],\"name\":\"pendingBalances\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"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\":\"forger\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"coordinatorURL\",\"type\":\"string\"}],\"name\":\"setCoordinator\",\"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\":\"bidder\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"fulfilled\",\"type\":\"bool\"},{\"internalType\":\"uint128\",\"name\":\"bidAmount\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"closedMinBid\",\"type\":\"uint128\"}],\"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\"}]"
  26. // HermezAuctionProtocolBin is the compiled bytecode used for deploying new contracts.
  27. var HermezAuctionProtocolBin = "0x608060405234801561001057600080fd5b506136da806100206000396000f3fe608060405234801561001057600080fd5b50600436106102105760003560e01c806379a135e311610125578063b3dc7bb1116100ad578063d92bdda31161007c578063d92bdda314610803578063dfd5281b14610824578063e606591414610845578063ec29159b1461084d578063ecdae41b1461088d57610210565b8063b3dc7bb114610755578063b5f7f2f01461077b578063bc41556714610783578063c63de515146107e257610210565b806387e6b6bb116100f457806387e6b6bb14610651578063a48af09614610671578063ac4b90121461071f578063ac5f658b14610727578063aebd6d981461074d57610210565b806379a135e3146105895780637c643b701461059157806382787405146105bf57806383b1f6a01461061157610210565b80634e5a5178116101a85780635cca4903116101775780635cca4903146104ba5780636074db64146104e057806362945af2146105355780636dfe47c91461055b5780636f48e79b1461056357610210565b80634e5a51781461044857806354c03ab71461046e57806355b442e614610492578063564e6a711461049a57610210565b80632243de47116101e45780632243de47146103f357806337d1bd0b146103fb5780634cdc9c63146104215780634da9639d1461042957610210565b806223de29146102155780630c4da4f6146102fd5780630eeaf0801461032157806313de9af2146103d5575b600080fd5b6102fb600480360360c081101561022b57600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a081016080820135600160201b81111561026d57600080fd5b82018360208201111561027f57600080fd5b803590602001918460018302840111600160201b831117156102a057600080fd5b919390929091602081019035600160201b8111156102bd57600080fd5b8201836020820111156102cf57600080fd5b803590602001918460018302840111600160201b831117156102f057600080fd5b5090925090506108b3565b005b610305610baa565b604080516001600160801b039092168252519081900360200190f35b6102fb6004803603604081101561033757600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561036157600080fd5b82018360208201111561037357600080fd5b803590602001918460018302840111600160201b8311171561039457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bba945050505050565b6103dd610cab565b6040805160ff9092168252519081900360200190f35b6103dd610cba565b6103056004803603602081101561041157600080fd5b50356001600160801b0316610cbf565b610305610e7a565b610431610e89565b6040805161ffff9092168252519081900360200190f35b6102fb6004803603602081101561045e57600080fd5b50356001600160a01b0316610e9a565b6104766113e1565b604080516001600160a01b039092168252519081900360200190f35b6104316113f0565b610305600480360360208110156104b057600080fd5b503560ff166113fa565b610305600480360360208110156104d057600080fd5b50356001600160a01b0316611432565b6102fb600480360360c08110156104f657600080fd5b506001600160a01b0381358116916001600160801b036020820135169160408201358116916060810135821691608082013581169160a0013516611456565b6102fb6004803603602081101561054b57600080fd5b50356001600160a01b0316611746565b6102fb6117e3565b6102fb6004803603602081101561057957600080fd5b50356001600160a01b0316611934565b6104766119d1565b6102fb600480360360408110156105a757600080fd5b506001600160801b03813581169160200135166119e0565b6102fb600480360360608110156105d557600080fd5b8101908080606001906003806020026040519081016040528092919082600360200280828437600092019190915250919450611c6a9350505050565b61063d6004803603604081101561062757600080fd5b506001600160a01b038135169060200135611d9b565b604080519115158252519081900360200190f35b6102fb6004803603602081101561066757600080fd5b503560ff1661208c565b6106976004803603602081101561068757600080fd5b50356001600160a01b031661218c565b60405180836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b838110156106e35781810151838201526020016106cb565b50505050905090810190601f1680156107105780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b610431612240565b6103056004803603602081101561073d57600080fd5b50356001600160801b0316612251565b610476612267565b6103056004803603602081101561076b57600080fd5b50356001600160801b0316612276565b6104766122b0565b6107a96004803603602081101561079957600080fd5b50356001600160801b03166122bf565b604080516001600160a01b03909516855292151560208501526001600160801b0391821684840152166060830152519081900360800190f35b6102fb600480360360208110156107f857600080fd5b503561ffff16612302565b6102fb6004803603602081101561081957600080fd5b503561ffff16612413565b6102fb6004803603602081101561083a57600080fd5b503561ffff16612524565b6103056125c1565b6108556125cd565b6040518082606080838360005b8381101561087a578181015183820152602001610862565b5050505090500191505060405180910390f35b610305600480360360208110156108a357600080fd5b50356001600160a01b031661262f565b60335460ff1661090a576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6033805460ff191690556065546001600160a01b0316331461096a576040805162461bcd60e51b815260206004820152601460248201527324b73b30b634b21022a9219b9b9b903a37b5b2b760611b604482015290519081900360640190fd5b826109b4576040805162461bcd60e51b815260206004820152601560248201527453656e742048455a20776974686f7574206461746160581b604482015290519081900360640190fd5b600160801b8510610a0c576040805162461bcd60e51b815260206004820152601e60248201527f416d6f756e74206d757374206265206c657373207468616e20325f3132380000604482015290519081900360640190fd5b86600085856020811015610a1f57600080fd5b50356001600160e01b031916905063dc22283b60e01b811415610a8557600080610a4c876004818b6135ec565b6040811015610a5a57600080fd5b506001600160801b03813581169350602090910135169050610a7e8983838761264a565b5050610b91565b6001600160e01b03198116639eec96f960e01b1415610b4d57600080610aa96133b1565b600080610ab98a6004818e6135ec565b610140811015610ac857600080fd5b6040805160c081810183526001600160801b038535811695602081013590911694810193909261010084019290918401906006908390839080828437600092019190915250969b5094995097506001600160801b03813581169750602090910135169450610b4393508f92508891508790508686868d6128e6565b5050505050610b91565b6040805162461bcd60e51b81526020600482015260146024820152734e6f7420612076616c69642063616c6c6461746160601b604482015290519081900360640190fd5b50506033805460ff191660011790555050505050505050565b6000610bb543612276565b905090565b33600090815260726020908152604090912080546001600160a01b0319166001600160a01b0385161781558251610bf9926001909201918401906133cf565b50816001600160a01b0316336001600160a01b03167f5246b2ac9ee77efe2e64af6df00055d97e2d6e1b277f5a8d17ba5bca1a573da0836040518080602001828103825283818151815260200191508051906020019080838360005b83811015610c6d578181015183820152602001610c55565b50505050905090810190601f168015610c9a5780820380516001836020036101000a031916815260200191505b509250505060405180910390a35050565b606f5462010000900460ff1690565b602881565b606d54600090600160801b900461ffff16610cd8610baa565b016001600160801b0316826001600160801b03161015610d3f576040805162461bcd60e51b815260206004820152601f60248201527f41756374696f6e2068617320616c7265616479206265656e20636c6f73656400604482015290519081900360640190fd5b6000610d4a83612251565b6001600160801b038085166000908152607060205260409020600101549192501615610de457606f546001600160801b03808516600090815260706020526040902060010154610ddf92610dbb9261271092610dac9291169061ffff16612c6f565b6001600160801b031690612ce9565b6001600160801b038086166000908152607060205260409020600101541690612d2b565b610e73565b606f54610e7390610e379061271090610dac9061ffff16606a6001600160801b03871660068110610e1157fe5b60028104919091015460019091166010026101000a90046001600160801b031690612c6f565b606a836001600160801b031660068110610e4d57fe5b60028104919091015460019091166010026101000a90046001600160801b031690612d2b565b9392505050565b606d546001600160801b031681565b606d54600160801b900461ffff1690565b6066546001600160a01b03163314610ef9576040805162461bcd60e51b815260206004820152601a60248201527f4f6e6c79204865726d657a20526f6c6c75702041646472657373000000000000604482015290519081900360640190fd5b610f038143611d9b565b610f42576040805162461bcd60e51b815260206004820152600b60248201526a43616e277420666f72676560a81b604482015290519081900360640190fd5b6000610f4c610baa565b6001600160801b0381811660009081526070602052604081208054600190910154939450600160a01b900460ff16929091600160801b9091041615610fb5576001600160801b03808416600090815260706020526040902060010154600160801b900416610ff3565b606a610fc084612251565b6001600160801b031660068110610fd357fe5b600291828204019190066010029054906101000a90046001600160801b03165b90508161139c576001600160801b0383166000908152607060205260409020805460ff60a01b1916600160a01b1790556069546001600160a01b0390811690851614801561105d57506001600160801b038084166000908152607060205260409020600101541615155b801561108857506001600160801b038381166000908152607060205260409020600101548183169116105b1561112d576001600160801b0383811660009081526070602090815260408083206001810180548616600160801b88881602179081905590546001600160a01b031684526071909252909120546110e3929081169116612d2b565b6001600160801b038481166000908152607060209081526040808320546001600160a01b031683526071909152902080546001600160801b0319169290911691909117905561139c565b6069546001600160a01b0385811691161461139c576001600160801b03838116600090815260706020526040812060010180548316600160801b81021790819055606e54919261118a9261271092610dac92169061ffff16612c6f565b606e546001600160801b03868116600090815260706020526040812060010154939450926111cb9261271092610dac92169062010000900461ffff16612c6f565b606e546001600160801b038781166000908152607060205260408120600101549394509261120d9261271092610dac921690600160201b900461ffff16612c6f565b6065546040805163fe9d930360e01b81526001600160801b03871660048201526024810182905260006044820181905291519394506001600160a01b039092169263fe9d930392608480820193929182900301818387803b15801561127157600080fd5b505af1158015611285573d6000803e3d6000fd5b50506068546001600160a01b03166000908152607160205260409020546112b892506001600160801b0316905083612d2b565b6068546001600160a01b0390811660009081526071602052604080822080546001600160801b0319166001600160801b0395861617905560675490921681522054611304911682612d2b565b6067546001600160a01b03908116600090815260716020908152604080832080546001600160801b0319166001600160801b039687161790558a85168084526070835292819020548151898716815288871693810193909352948616828201525191938b84169316917fd64ebb43f4c2b91022b97389834432f1027ef55586129ba05a3a3065b2304f05916060908290030190a45050505b6040516001600160801b038416906001600160a01b038616907f7cae662d4cfa9d9c5575c65f0cc41a858c51ca14ebcbd02a802a62376c3ad23890600090a350505050565b6068546001600160a01b031690565b606f5461ffff1690565b6000606a8260ff166006811061140c57fe5b600291828204019190066010029054906101000a90046001600160801b03169050919050565b6001600160a01b03166000908152607160205260409020546001600160801b031690565b600054610100900460ff168061146f575061146f612d91565b8061147d575060005460ff16155b6114b85760405162461bcd60e51b815260040180806020018281038252602e815260200180613677602e913960400191505060405180910390fd5b600054610100900460ff161580156114e3576000805460ff1961ff0019909116610100171660011790555b6114eb612d97565b606f80546103e861ffff199091161762ff0000191662140000179055606d805461ffff60801b1916600160811b1761ffff60901b1916608760951b17905560408051606081018252610fa080825260208201526107d09181019190915261155690606e90600361344d565b506040805160c081018252678ac7230489e8000080825260208201819052918101829052606081018290526080810182905260a081019190915261159e90606a9060066134df565b50606580546001600160a01b0319166001600160a01b038916179055604080516329965a1d60e01b815230600482018190527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b602483015260448201529051731820a4b7618bde71dce8cdc73aab6c95905fad24916329965a1d91606480830192600092919082900301818387803b15801561163957600080fd5b505af115801561164d573d6000803e3d6000fd5b5050606d54600160801b900461ffff9081166028021643016001600160801b038916101591506116c69050576040805162461bcd60e51b815260206004820152601c60248201527f47656e6573697320736d616c6c6572207468616e206d696e696d616c00000000604482015290519081900360640190fd5b606d80546001600160801b0319166001600160801b038816179055606680546001600160a01b03199081166001600160a01b038881169190911790925560678054821687841617905560688054821686841617905560698054909116918416919091179055801561173d576000805461ff00191690555b50505050505050565b6067546001600160a01b03163314611793576040805162461bcd60e51b81526020600482018190526024820152600080516020613657833981519152604482015290519081900360640190fd5b606980546001600160a01b0319166001600160a01b0383811691909117918290556040519116907f2161bd0f0e056d18046a81683e5bc845980367451cf4ca5148523a147c51be5590600090a250565b60335460ff1661183a576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6033805460ff19169055600061184f33611432565b90506000816001600160801b0316116118af576040805162461bcd60e51b815260206004820152601b60248201527f446f65736e2774206861766520656e6f7567682062616c616e63650000000000604482015290519081900360640190fd5b33600081815260716020526040902080546001600160801b03191690556065546118e5916001600160a01b039091169083612e46565b604080516001600160801b0383168152905133917f199ef0cb54d2b296ff6eaec2721bacf0ca3fd8344a43f5bdf4548b34dfa2594f919081900360200190a2506033805460ff19166001179055565b6067546001600160a01b03163314611981576040805162461bcd60e51b81526020600482018190526024820152600080516020613657833981519152604482015290519081900360640190fd5b606880546001600160a01b0319166001600160a01b0383811691909117918290556040519116907fa62863cbad1647a2855e9cd39d04fa6dfd32e1b9cfaff1aaf6523f4aaafeccd790600090a250565b6065546001600160a01b031681565b6067546001600160a01b03163314611a2d576040805162461bcd60e51b81526020600482018190526024820152600080516020613657833981519152604482015290519081900360640190fd5b6006826001600160801b03161115611a82576040805162461bcd60e51b8152602060048201526013602482015272139bdd0818481d985b1a59081cdb1bdd14d95d606a1b604482015290519081900360640190fd5b606a826001600160801b031660068110611a9857fe5b60028104919091015460019091166010026101000a90046001600160801b0316611b09576040805162461bcd60e51b815260206004820152601e60248201527f5468697320736c6f742073657420697320646563656e7472616c697a65640000604482015290519081900360640190fd5b6000611b13610baa565b9050805b606d54600160801b900461ffff1682016001600160801b0390811690821611611bcd576001600160801b03808216600090815260706020526040902060010154600160801b900416611bc557606a611b6e82612251565b6001600160801b031660068110611b8157fe5b6002810491909101546001600160801b038381166000908152607060205260409020600190810180548316919094166010026101000a90920416600160801b021790555b600101611b17565b5081606a846001600160801b031660068110611be557fe5b600291828204019190066010026101000a8154816001600160801b0302191690836001600160801b031602179055507fa922aa010d1ff8e70b2aa9247d891836795c3d3ba2a543c37c91a44dc4a50172838360405180836001600160801b03168152602001826001600160801b031681526020019250505060405180910390a1505050565b6067546001600160a01b03163314611cb7576040805162461bcd60e51b81526020600482018190526024820152600080516020613657833981519152604482015290519081900360640190fd5b806002602002015181600160200201518260006020020151010161ffff1661271014611d145760405162461bcd60e51b81526004018080602001828103825260218152602001806136156021913960400191505060405180910390fd5b611d21606e82600361344d565b506040517f0bb59eceb12f1bdb63e4a7d57c70d6473fefd7c3f51af5a3604f7e97197073e490606e9060608101826000835b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411611d53579050505091505060405180910390a150565b6000600160801b8210611df5576040805162461bcd60e51b815260206004820152601d60248201527f626c6f636b4e756d62657220686967686572207468616e20325f313238000000604482015290519081900360640190fd5b606d546001600160801b0316821015611e55576040805162461bcd60e51b815260206004820152601b60248201527f41756374696f6e20686173206e6f742073746172746564207965740000000000604482015290519081900360640190fd5b6000611e6083612276565b606d54909150600090611ea990611e99906001600160801b0390811690611e8a9086166028612c6f565b6001600160801b031690612d2b565b6001600160801b03861690612ff0565b6001600160801b0380841660009081526070602052604081206001015492935091600160801b90041615611f01576001600160801b03808416600090815260706020526040902060010154600160801b900416611f3f565b606a611f0c84612251565b6001600160801b031660068110611f1f57fe5b600291828204019190066010029054906101000a90046001600160801b03165b6001600160801b038416600090815260706020526040902054909150600160a01b900460ff16158015611f865750606f5462010000900460ff166001600160801b03831610155b15611f975760019350505050612086565b6001600160801b0383166000908152607060209081526040808320546001600160a01b0390811684526072909252909120548116908716148015611ffb57506001600160801b03838116600090815260706020526040902060010154818316911610155b1561200c5760019350505050612086565b6069546001600160a01b03878116911614801561206d57506001600160801b038381166000908152607060205260409020600101548183169116108061206d57506001600160801b0380841660009081526070602052604090206001015416155b1561207e5760019350505050612086565b600093505050505b92915050565b6067546001600160a01b031633146120d9576040805162461bcd60e51b81526020600482018190526024820152600080516020613657833981519152604482015290519081900360640190fd5b602860ff82161115612132576040805162461bcd60e51b815260206004820152601c60248201527f47726561746572207468616e20424c4f434b535f5045525f534c4f5400000000604482015290519081900360640190fd5b606f805460ff8084166201000090810262ff0000199093169290921792839055604080519290930416815290517f4a0d90b611c15e02dbf23b10f35b936cf2c77665f8c77822d3eca131f9d986d39181900360200190a150565b6072602090815260009182526040918290208054600180830180548651600261010094831615949094026000190190911692909204601f81018690048602830186019096528582526001600160a01b039092169492939092908301828280156122365780601f1061220b57610100808354040283529160200191612236565b820191906000526020600020905b81548152906001019060200180831161221957829003601f168201915b5050505050905082565b606d54600160901b900461ffff1690565b60006120866001600160801b0383166006613032565b6066546001600160a01b031681565b606d546000906001600160801b039081169083161015612297576000612086565b50606d5460286001600160801b03918216909203160490565b6069546001600160a01b031690565b607060205260009081526040902080546001909101546001600160a01b03821691600160a01b900460ff16906001600160801b0380821691600160801b90041684565b6067546001600160a01b0316331461234f576040805162461bcd60e51b81526020600482018190526024820152600080516020613657833981519152604482015290519081900360640190fd5b606d5461ffff600160801b909104811690821610156123b5576040805162461bcd60e51b815260206004820152601f60248201527f536d616c6c6572207468616e20636c6f73656441756374696f6e536c6f747300604482015290519081900360640190fd5b606d805461ffff808416600160901b90810261ffff60901b199093169290921792839055604080519290930416815290517f3da0492dea7298351bc14d1c0699905fd0657c33487449751af50fc0c8b593f19181900360200190a150565b6067546001600160a01b03163314612460576040805162461bcd60e51b81526020600482018190526024820152600080516020613657833981519152604482015290519081900360640190fd5b606d5461ffff600160901b909104811690821611156124c6576040805162461bcd60e51b815260206004820152601f60248201527f47726561746572207468616e20636c6f73656441756374696f6e536c6f747300604482015290519081900360640190fd5b606d805461ffff808416600160801b90810261ffff60801b199093169290921792839055604080519290930416815290517fc78051d3757db196b1e445f3a9a1380944518c69b5d7922ec747c54f0340a4ea9181900360200190a150565b6067546001600160a01b03163314612571576040805162461bcd60e51b81526020600482018190526024820152600080516020613657833981519152604482015290519081900360640190fd5b606f805461ffff191661ffff838116919091179182905560408051929091168252517fd3748b8c326e93d12af934fbf87471e315a89bc3f7b8222343acf0210edf248e916020908290030190a150565b678ac7230489e8000081565b6125d5613580565b60408051606081019182905290606e90600390826000855b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116125ed5790505050505050905090565b6071602052600090815260409020546001600160801b031681565b6001600160a01b03818116600090815260726020526040902054166126b6576040805162461bcd60e51b815260206004820152601a60248201527f436f6f7264696e61746f72206e6f742072656769737465726564000000000000604482015290519081900360640190fd5b606d54600160801b900461ffff166126cc610baa565b016001600160801b0316836001600160801b03161015612733576040805162461bcd60e51b815260206004820152601f60248201527f41756374696f6e2068617320616c7265616479206265656e20636c6f73656400604482015290519081900360640190fd5b61273c83610cbf565b6001600160801b0316826001600160801b03161015612796576040805162461bcd60e51b81526020600482015260116024820152704269642062656c6f77206d696e696d756d60781b604482015290519081900360640190fd5b606d5461ffff600160901b8204811691600160801b9004166127b6610baa565b01016001600160801b0316836001600160801b03161061281d576040805162461bcd60e51b815260206004820152601b60248201527f42696420686173206e6f74206265656e206f70656e6564207965740000000000604482015290519081900360640190fd5b6001600160a01b038116600090815260716020526040902054612849906001600160801b031685612d2b565b6001600160a01b038216600090815260716020526040902080546001600160801b0319166001600160801b039283161790819055838216911610156128d5576040805162461bcd60e51b815260206004820152601a60248201527f446f206e6f74206861766520656e6f7567682062616c616e6365000000000000604482015290519081900360640190fd5b6128e0838383613074565b50505050565b606d54600160801b900461ffff166128fc610baa565b016001600160801b0316866001600160801b03161015612963576040805162461bcd60e51b815260206004820152601f60248201527f41756374696f6e2068617320616c7265616479206265656e20636c6f73656400604482015290519081900360640190fd5b606d5461ffff600160901b8204811691600160801b900416612983610baa565b01016001600160801b0316856001600160801b0316106129ea576040805162461bcd60e51b815260206004820152601b60248201527f42696420686173206e6f74206265656e206f70656e6564207965740000000000604482015290519081900360640190fd5b816001600160801b0316836001600160801b03161015612a51576040805162461bcd60e51b815260206004820152601a60248201527f6d61784269642073686f756c64206265203e3d206d696e426964000000000000604482015290519081900360640190fd5b6001600160a01b0381811660009081526072602052604090205416612abd576040805162461bcd60e51b815260206004820152601a60248201527f436f6f7264696e61746f72206e6f742072656769737465726564000000000000604482015290519081900360640190fd5b6001600160a01b038116600090815260716020526040902054612ae9906001600160801b031688612d2b565b6001600160a01b038216600090815260716020526040812080546001600160801b0319166001600160801b039390931692909217909155865b866001600160801b0316816001600160801b031611612c64576000612b4682610cbf565b9050846001600160801b0316816001600160801b031611612b6957849250612baf565b846001600160801b0316816001600160801b0316118015612b9c5750856001600160801b0316816001600160801b031611155b15612ba957809250612baf565b50612c5c565b86612bb983612251565b6001600160801b031660068110612bcc57fe5b602002015115612c5a576001600160a01b0384166000908152607160205260409020546001600160801b0380851691161015612c4f576040805162461bcd60e51b815260206004820152601a60248201527f446f206e6f74206861766520656e6f7567682062616c616e6365000000000000604482015290519081900360640190fd5b612c5a828486613074565b505b600101612b22565b505050505050505050565b60006001600160801b038316612c8757506000612086565b8282026001600160801b038084169080861690831681612ca357fe5b046001600160801b031614610e735760405162461bcd60e51b81526004018080602001828103825260218152602001806136366021913960400191505060405180910390fd5b6000610e7383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061320a565b60008282016001600160801b038085169082161015610e73576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b303b1590565b600054610100900460ff1680612db05750612db0612d91565b80612dbe575060005460ff16155b612df95760405162461bcd60e51b815260040180806020018281038252602e815260200180613677602e913960400191505060405180910390fd5b600054610100900460ff16158015612e24576000805460ff1961ff0019909116610100171660011790555b6033805460ff191660011790558015612e43576000805461ff00191690555b50565b604080518082018252601b81527f73656e6428616464726573732c75696e743235362c627974657329000000000060209182015281516001600160a01b0385811660248301526001600160801b0385166044830152606060648301819052600060848401819052855180850360a401815260c4909401865293830180516001600160e01b0316634decdde360e11b17815294518351949591949289169392909182918083835b60208310612f0b5780518252601f199092019160209182019101612eec565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612f6d576040519150601f19603f3d011682016040523d82523d6000602084013e612f72565b606091505b5091509150818015612fa0575080511580612fa05750808060200190516020811015612f9d57600080fd5b50515b612fe9576040805162461bcd60e51b8152602060048201526015602482015274151bdad95b88151c985b9cd9995c8811985a5b1959605a1b604482015290519081900360640190fd5b5050505050565b6000610e7383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506132c7565b6000610e7383836040518060400160405280601881526020017f536166654d6174683a206d6f64756c6f206279207a65726f0000000000000000815250613334565b6001600160801b03808416600090815260706020908152604080832080546001909101546001600160a01b038781168652607190945291909320549190921692918216916130c3911685612ff0565b6001600160a01b03848116600081815260716020908152604080832080546001600160801b03199081166001600160801b03988916179091558b87168452607090925290912080546001600160a01b031916909217825560019190910180549091169287169290921790915582161580159061314757506001600160801b03811615155b156131af576001600160a01b038216600090815260716020526040902054613178906001600160801b031682612d2b565b6001600160a01b038316600090815260716020526040902080546001600160801b0319166001600160801b03929092169190911790555b826001600160a01b0316856001600160801b03167fd48e8329cdb2fb109b4fe445d7b681a74b256bff16e6f7f33b9d4fbe9038e4338660405180826001600160801b0316815260200191505060405180910390a35050505050565b6000816001600160801b03841661329f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561326457818101518382015260200161324c565b50505050905090810190601f1680156132915780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000836001600160801b0316856001600160801b0316816132bd57fe5b0495945050505050565b6000836001600160801b0316836001600160801b03161115829061332c5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561326457818101518382015260200161324c565b505050900390565b6000816001600160801b03841661338c5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561326457818101518382015260200161324c565b50826001600160801b0316846001600160801b0316816133a857fe5b06949350505050565b6040518060c001604052806006906020820280368337509192915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061341057805160ff191683800117855561343d565b8280016001018555821561343d579182015b8281111561343d578251825591602001919060010190613422565b5061344992915061359e565b5090565b6001830191839082156134d35791602002820160005b838211156134a357835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302613463565b80156134d15782816101000a81549061ffff02191690556002016020816001010492830192600103026134a3565b505b506134499291506135b3565b6003830191839082156135745791602002820160005b8382111561353f57835183826101000a8154816001600160801b0302191690836001600160801b031602179055509260200192601001602081600f010492830192600103026134f5565b80156135725782816101000a8154906001600160801b030219169055601001602081600f0104928301926001030261353f565b505b506134499291506135cd565b60405180606001604052806003906020820280368337509192915050565b5b80821115613449576000815560010161359f565b5b8082111561344957805461ffff191681556001016135b4565b5b808211156134495780546001600160801b03191681556001016135ce565b600080858511156135fb578182fd5b83861115613607578182fd5b505082019391909203915056fe416c6c6f636174696f6e526174696f2068617320746f206265203130302e303025536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a26469706673582212202c466d8d4e52482a767ae41ddef468ac109833fb436225bb6bb0dcaf72fe83ca64736f6c634300060c0033"
  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 forger, string coordinatorURL)
  233. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) Coordinators(opts *bind.CallOpts, arg0 common.Address) (struct {
  234. Forger common.Address
  235. CoordinatorURL string
  236. }, error) {
  237. ret := new(struct {
  238. Forger 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 forger, string coordinatorURL)
  248. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) Coordinators(arg0 common.Address) (struct {
  249. Forger 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 forger, string coordinatorURL)
  257. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) Coordinators(arg0 common.Address) (struct {
  258. Forger 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 bidder) view returns(uint128)
  335. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetClaimableHEZ(opts *bind.CallOpts, bidder common.Address) (*big.Int, error) {
  336. var (
  337. ret0 = new(*big.Int)
  338. )
  339. out := ret0
  340. err := _HermezAuctionProtocol.contract.Call(opts, out, "getClaimableHEZ", bidder)
  341. return *ret0, err
  342. }
  343. // GetClaimableHEZ is a free data retrieval call binding the contract method 0x5cca4903.
  344. //
  345. // Solidity: function getClaimableHEZ(address bidder) view returns(uint128)
  346. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) GetClaimableHEZ(bidder common.Address) (*big.Int, error) {
  347. return _HermezAuctionProtocol.Contract.GetClaimableHEZ(&_HermezAuctionProtocol.CallOpts, bidder)
  348. }
  349. // GetClaimableHEZ is a free data retrieval call binding the contract method 0x5cca4903.
  350. //
  351. // Solidity: function getClaimableHEZ(address bidder) view returns(uint128)
  352. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) GetClaimableHEZ(bidder common.Address) (*big.Int, error) {
  353. return _HermezAuctionProtocol.Contract.GetClaimableHEZ(&_HermezAuctionProtocol.CallOpts, bidder)
  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. // PendingBalances is a free data retrieval call binding the contract method 0xecdae41b.
  609. //
  610. // Solidity: function pendingBalances(address ) view returns(uint128)
  611. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) PendingBalances(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error) {
  612. var (
  613. ret0 = new(*big.Int)
  614. )
  615. out := ret0
  616. err := _HermezAuctionProtocol.contract.Call(opts, out, "pendingBalances", arg0)
  617. return *ret0, err
  618. }
  619. // PendingBalances is a free data retrieval call binding the contract method 0xecdae41b.
  620. //
  621. // Solidity: function pendingBalances(address ) view returns(uint128)
  622. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) PendingBalances(arg0 common.Address) (*big.Int, error) {
  623. return _HermezAuctionProtocol.Contract.PendingBalances(&_HermezAuctionProtocol.CallOpts, arg0)
  624. }
  625. // PendingBalances is a free data retrieval call binding the contract method 0xecdae41b.
  626. //
  627. // Solidity: function pendingBalances(address ) view returns(uint128)
  628. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) PendingBalances(arg0 common.Address) (*big.Int, error) {
  629. return _HermezAuctionProtocol.Contract.PendingBalances(&_HermezAuctionProtocol.CallOpts, arg0)
  630. }
  631. // Slots is a free data retrieval call binding the contract method 0xbc415567.
  632. //
  633. // Solidity: function slots(uint128 ) view returns(address bidder, bool fulfilled, uint128 bidAmount, uint128 closedMinBid)
  634. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) Slots(opts *bind.CallOpts, arg0 *big.Int) (struct {
  635. Bidder common.Address
  636. Fulfilled bool
  637. BidAmount *big.Int
  638. ClosedMinBid *big.Int
  639. }, error) {
  640. ret := new(struct {
  641. Bidder common.Address
  642. Fulfilled bool
  643. BidAmount *big.Int
  644. ClosedMinBid *big.Int
  645. })
  646. out := ret
  647. err := _HermezAuctionProtocol.contract.Call(opts, out, "slots", arg0)
  648. return *ret, err
  649. }
  650. // Slots is a free data retrieval call binding the contract method 0xbc415567.
  651. //
  652. // Solidity: function slots(uint128 ) view returns(address bidder, bool fulfilled, uint128 bidAmount, uint128 closedMinBid)
  653. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) Slots(arg0 *big.Int) (struct {
  654. Bidder common.Address
  655. Fulfilled bool
  656. BidAmount *big.Int
  657. ClosedMinBid *big.Int
  658. }, error) {
  659. return _HermezAuctionProtocol.Contract.Slots(&_HermezAuctionProtocol.CallOpts, arg0)
  660. }
  661. // Slots is a free data retrieval call binding the contract method 0xbc415567.
  662. //
  663. // Solidity: function slots(uint128 ) view returns(address bidder, bool fulfilled, uint128 bidAmount, uint128 closedMinBid)
  664. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) Slots(arg0 *big.Int) (struct {
  665. Bidder common.Address
  666. Fulfilled bool
  667. BidAmount *big.Int
  668. ClosedMinBid *big.Int
  669. }, error) {
  670. return _HermezAuctionProtocol.Contract.Slots(&_HermezAuctionProtocol.CallOpts, arg0)
  671. }
  672. // TokenHEZ is a free data retrieval call binding the contract method 0x79a135e3.
  673. //
  674. // Solidity: function tokenHEZ() view returns(address)
  675. func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) TokenHEZ(opts *bind.CallOpts) (common.Address, error) {
  676. var (
  677. ret0 = new(common.Address)
  678. )
  679. out := ret0
  680. err := _HermezAuctionProtocol.contract.Call(opts, out, "tokenHEZ")
  681. return *ret0, err
  682. }
  683. // TokenHEZ is a free data retrieval call binding the contract method 0x79a135e3.
  684. //
  685. // Solidity: function tokenHEZ() view returns(address)
  686. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) TokenHEZ() (common.Address, error) {
  687. return _HermezAuctionProtocol.Contract.TokenHEZ(&_HermezAuctionProtocol.CallOpts)
  688. }
  689. // TokenHEZ is a free data retrieval call binding the contract method 0x79a135e3.
  690. //
  691. // Solidity: function tokenHEZ() view returns(address)
  692. func (_HermezAuctionProtocol *HermezAuctionProtocolCallerSession) TokenHEZ() (common.Address, error) {
  693. return _HermezAuctionProtocol.Contract.TokenHEZ(&_HermezAuctionProtocol.CallOpts)
  694. }
  695. // ChangeDefaultSlotSetBid is a paid mutator transaction binding the contract method 0x7c643b70.
  696. //
  697. // Solidity: function changeDefaultSlotSetBid(uint128 slotSet, uint128 newInitialMinBid) returns()
  698. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) ChangeDefaultSlotSetBid(opts *bind.TransactOpts, slotSet *big.Int, newInitialMinBid *big.Int) (*types.Transaction, error) {
  699. return _HermezAuctionProtocol.contract.Transact(opts, "changeDefaultSlotSetBid", slotSet, newInitialMinBid)
  700. }
  701. // ChangeDefaultSlotSetBid is a paid mutator transaction binding the contract method 0x7c643b70.
  702. //
  703. // Solidity: function changeDefaultSlotSetBid(uint128 slotSet, uint128 newInitialMinBid) returns()
  704. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) ChangeDefaultSlotSetBid(slotSet *big.Int, newInitialMinBid *big.Int) (*types.Transaction, error) {
  705. return _HermezAuctionProtocol.Contract.ChangeDefaultSlotSetBid(&_HermezAuctionProtocol.TransactOpts, slotSet, newInitialMinBid)
  706. }
  707. // ChangeDefaultSlotSetBid is a paid mutator transaction binding the contract method 0x7c643b70.
  708. //
  709. // Solidity: function changeDefaultSlotSetBid(uint128 slotSet, uint128 newInitialMinBid) returns()
  710. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) ChangeDefaultSlotSetBid(slotSet *big.Int, newInitialMinBid *big.Int) (*types.Transaction, error) {
  711. return _HermezAuctionProtocol.Contract.ChangeDefaultSlotSetBid(&_HermezAuctionProtocol.TransactOpts, slotSet, newInitialMinBid)
  712. }
  713. // ClaimHEZ is a paid mutator transaction binding the contract method 0x6dfe47c9.
  714. //
  715. // Solidity: function claimHEZ() returns()
  716. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) ClaimHEZ(opts *bind.TransactOpts) (*types.Transaction, error) {
  717. return _HermezAuctionProtocol.contract.Transact(opts, "claimHEZ")
  718. }
  719. // ClaimHEZ is a paid mutator transaction binding the contract method 0x6dfe47c9.
  720. //
  721. // Solidity: function claimHEZ() returns()
  722. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) ClaimHEZ() (*types.Transaction, error) {
  723. return _HermezAuctionProtocol.Contract.ClaimHEZ(&_HermezAuctionProtocol.TransactOpts)
  724. }
  725. // ClaimHEZ is a paid mutator transaction binding the contract method 0x6dfe47c9.
  726. //
  727. // Solidity: function claimHEZ() returns()
  728. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) ClaimHEZ() (*types.Transaction, error) {
  729. return _HermezAuctionProtocol.Contract.ClaimHEZ(&_HermezAuctionProtocol.TransactOpts)
  730. }
  731. // Forge is a paid mutator transaction binding the contract method 0x4e5a5178.
  732. //
  733. // Solidity: function forge(address forger) returns()
  734. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) Forge(opts *bind.TransactOpts, forger common.Address) (*types.Transaction, error) {
  735. return _HermezAuctionProtocol.contract.Transact(opts, "forge", forger)
  736. }
  737. // Forge is a paid mutator transaction binding the contract method 0x4e5a5178.
  738. //
  739. // Solidity: function forge(address forger) returns()
  740. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) Forge(forger common.Address) (*types.Transaction, error) {
  741. return _HermezAuctionProtocol.Contract.Forge(&_HermezAuctionProtocol.TransactOpts, forger)
  742. }
  743. // Forge is a paid mutator transaction binding the contract method 0x4e5a5178.
  744. //
  745. // Solidity: function forge(address forger) returns()
  746. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) Forge(forger common.Address) (*types.Transaction, error) {
  747. return _HermezAuctionProtocol.Contract.Forge(&_HermezAuctionProtocol.TransactOpts, forger)
  748. }
  749. // HermezAuctionProtocolInitializer is a paid mutator transaction binding the contract method 0x6074db64.
  750. //
  751. // Solidity: function hermezAuctionProtocolInitializer(address tokenERC777, uint128 genesis, address hermezRollupAddress, address governanceAddress, address donationAddress, address bootCoordinatorAddress) returns()
  752. 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) {
  753. return _HermezAuctionProtocol.contract.Transact(opts, "hermezAuctionProtocolInitializer", tokenERC777, genesis, hermezRollupAddress, governanceAddress, donationAddress, bootCoordinatorAddress)
  754. }
  755. // HermezAuctionProtocolInitializer is a paid mutator transaction binding the contract method 0x6074db64.
  756. //
  757. // Solidity: function hermezAuctionProtocolInitializer(address tokenERC777, uint128 genesis, address hermezRollupAddress, address governanceAddress, address donationAddress, address bootCoordinatorAddress) returns()
  758. 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) {
  759. return _HermezAuctionProtocol.Contract.HermezAuctionProtocolInitializer(&_HermezAuctionProtocol.TransactOpts, tokenERC777, genesis, hermezRollupAddress, governanceAddress, donationAddress, bootCoordinatorAddress)
  760. }
  761. // HermezAuctionProtocolInitializer is a paid mutator transaction binding the contract method 0x6074db64.
  762. //
  763. // Solidity: function hermezAuctionProtocolInitializer(address tokenERC777, uint128 genesis, address hermezRollupAddress, address governanceAddress, address donationAddress, address bootCoordinatorAddress) returns()
  764. 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) {
  765. return _HermezAuctionProtocol.Contract.HermezAuctionProtocolInitializer(&_HermezAuctionProtocol.TransactOpts, tokenERC777, genesis, hermezRollupAddress, governanceAddress, donationAddress, bootCoordinatorAddress)
  766. }
  767. // SetAllocationRatio is a paid mutator transaction binding the contract method 0x82787405.
  768. //
  769. // Solidity: function setAllocationRatio(uint16[3] newAllocationRatio) returns()
  770. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) SetAllocationRatio(opts *bind.TransactOpts, newAllocationRatio [3]uint16) (*types.Transaction, error) {
  771. return _HermezAuctionProtocol.contract.Transact(opts, "setAllocationRatio", newAllocationRatio)
  772. }
  773. // SetAllocationRatio is a paid mutator transaction binding the contract method 0x82787405.
  774. //
  775. // Solidity: function setAllocationRatio(uint16[3] newAllocationRatio) returns()
  776. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) SetAllocationRatio(newAllocationRatio [3]uint16) (*types.Transaction, error) {
  777. return _HermezAuctionProtocol.Contract.SetAllocationRatio(&_HermezAuctionProtocol.TransactOpts, newAllocationRatio)
  778. }
  779. // SetAllocationRatio is a paid mutator transaction binding the contract method 0x82787405.
  780. //
  781. // Solidity: function setAllocationRatio(uint16[3] newAllocationRatio) returns()
  782. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) SetAllocationRatio(newAllocationRatio [3]uint16) (*types.Transaction, error) {
  783. return _HermezAuctionProtocol.Contract.SetAllocationRatio(&_HermezAuctionProtocol.TransactOpts, newAllocationRatio)
  784. }
  785. // SetBootCoordinator is a paid mutator transaction binding the contract method 0x62945af2.
  786. //
  787. // Solidity: function setBootCoordinator(address newBootCoordinator) returns()
  788. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) SetBootCoordinator(opts *bind.TransactOpts, newBootCoordinator common.Address) (*types.Transaction, error) {
  789. return _HermezAuctionProtocol.contract.Transact(opts, "setBootCoordinator", newBootCoordinator)
  790. }
  791. // SetBootCoordinator is a paid mutator transaction binding the contract method 0x62945af2.
  792. //
  793. // Solidity: function setBootCoordinator(address newBootCoordinator) returns()
  794. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) SetBootCoordinator(newBootCoordinator common.Address) (*types.Transaction, error) {
  795. return _HermezAuctionProtocol.Contract.SetBootCoordinator(&_HermezAuctionProtocol.TransactOpts, newBootCoordinator)
  796. }
  797. // SetBootCoordinator is a paid mutator transaction binding the contract method 0x62945af2.
  798. //
  799. // Solidity: function setBootCoordinator(address newBootCoordinator) returns()
  800. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) SetBootCoordinator(newBootCoordinator common.Address) (*types.Transaction, error) {
  801. return _HermezAuctionProtocol.Contract.SetBootCoordinator(&_HermezAuctionProtocol.TransactOpts, newBootCoordinator)
  802. }
  803. // SetClosedAuctionSlots is a paid mutator transaction binding the contract method 0xd92bdda3.
  804. //
  805. // Solidity: function setClosedAuctionSlots(uint16 newClosedAuctionSlots) returns()
  806. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) SetClosedAuctionSlots(opts *bind.TransactOpts, newClosedAuctionSlots uint16) (*types.Transaction, error) {
  807. return _HermezAuctionProtocol.contract.Transact(opts, "setClosedAuctionSlots", newClosedAuctionSlots)
  808. }
  809. // SetClosedAuctionSlots is a paid mutator transaction binding the contract method 0xd92bdda3.
  810. //
  811. // Solidity: function setClosedAuctionSlots(uint16 newClosedAuctionSlots) returns()
  812. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) SetClosedAuctionSlots(newClosedAuctionSlots uint16) (*types.Transaction, error) {
  813. return _HermezAuctionProtocol.Contract.SetClosedAuctionSlots(&_HermezAuctionProtocol.TransactOpts, newClosedAuctionSlots)
  814. }
  815. // SetClosedAuctionSlots is a paid mutator transaction binding the contract method 0xd92bdda3.
  816. //
  817. // Solidity: function setClosedAuctionSlots(uint16 newClosedAuctionSlots) returns()
  818. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) SetClosedAuctionSlots(newClosedAuctionSlots uint16) (*types.Transaction, error) {
  819. return _HermezAuctionProtocol.Contract.SetClosedAuctionSlots(&_HermezAuctionProtocol.TransactOpts, newClosedAuctionSlots)
  820. }
  821. // SetCoordinator is a paid mutator transaction binding the contract method 0x0eeaf080.
  822. //
  823. // Solidity: function setCoordinator(address forger, string coordinatorURL) returns()
  824. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) SetCoordinator(opts *bind.TransactOpts, forger common.Address, coordinatorURL string) (*types.Transaction, error) {
  825. return _HermezAuctionProtocol.contract.Transact(opts, "setCoordinator", forger, coordinatorURL)
  826. }
  827. // SetCoordinator is a paid mutator transaction binding the contract method 0x0eeaf080.
  828. //
  829. // Solidity: function setCoordinator(address forger, string coordinatorURL) returns()
  830. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) SetCoordinator(forger common.Address, coordinatorURL string) (*types.Transaction, error) {
  831. return _HermezAuctionProtocol.Contract.SetCoordinator(&_HermezAuctionProtocol.TransactOpts, forger, coordinatorURL)
  832. }
  833. // SetCoordinator is a paid mutator transaction binding the contract method 0x0eeaf080.
  834. //
  835. // Solidity: function setCoordinator(address forger, string coordinatorURL) returns()
  836. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) SetCoordinator(forger common.Address, coordinatorURL string) (*types.Transaction, error) {
  837. return _HermezAuctionProtocol.Contract.SetCoordinator(&_HermezAuctionProtocol.TransactOpts, forger, coordinatorURL)
  838. }
  839. // SetDonationAddress is a paid mutator transaction binding the contract method 0x6f48e79b.
  840. //
  841. // Solidity: function setDonationAddress(address newDonationAddress) returns()
  842. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) SetDonationAddress(opts *bind.TransactOpts, newDonationAddress common.Address) (*types.Transaction, error) {
  843. return _HermezAuctionProtocol.contract.Transact(opts, "setDonationAddress", newDonationAddress)
  844. }
  845. // SetDonationAddress is a paid mutator transaction binding the contract method 0x6f48e79b.
  846. //
  847. // Solidity: function setDonationAddress(address newDonationAddress) returns()
  848. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) SetDonationAddress(newDonationAddress common.Address) (*types.Transaction, error) {
  849. return _HermezAuctionProtocol.Contract.SetDonationAddress(&_HermezAuctionProtocol.TransactOpts, newDonationAddress)
  850. }
  851. // SetDonationAddress is a paid mutator transaction binding the contract method 0x6f48e79b.
  852. //
  853. // Solidity: function setDonationAddress(address newDonationAddress) returns()
  854. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) SetDonationAddress(newDonationAddress common.Address) (*types.Transaction, error) {
  855. return _HermezAuctionProtocol.Contract.SetDonationAddress(&_HermezAuctionProtocol.TransactOpts, newDonationAddress)
  856. }
  857. // SetOpenAuctionSlots is a paid mutator transaction binding the contract method 0xc63de515.
  858. //
  859. // Solidity: function setOpenAuctionSlots(uint16 newOpenAuctionSlots) returns()
  860. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) SetOpenAuctionSlots(opts *bind.TransactOpts, newOpenAuctionSlots uint16) (*types.Transaction, error) {
  861. return _HermezAuctionProtocol.contract.Transact(opts, "setOpenAuctionSlots", newOpenAuctionSlots)
  862. }
  863. // SetOpenAuctionSlots is a paid mutator transaction binding the contract method 0xc63de515.
  864. //
  865. // Solidity: function setOpenAuctionSlots(uint16 newOpenAuctionSlots) returns()
  866. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) SetOpenAuctionSlots(newOpenAuctionSlots uint16) (*types.Transaction, error) {
  867. return _HermezAuctionProtocol.Contract.SetOpenAuctionSlots(&_HermezAuctionProtocol.TransactOpts, newOpenAuctionSlots)
  868. }
  869. // SetOpenAuctionSlots is a paid mutator transaction binding the contract method 0xc63de515.
  870. //
  871. // Solidity: function setOpenAuctionSlots(uint16 newOpenAuctionSlots) returns()
  872. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) SetOpenAuctionSlots(newOpenAuctionSlots uint16) (*types.Transaction, error) {
  873. return _HermezAuctionProtocol.Contract.SetOpenAuctionSlots(&_HermezAuctionProtocol.TransactOpts, newOpenAuctionSlots)
  874. }
  875. // SetOutbidding is a paid mutator transaction binding the contract method 0xdfd5281b.
  876. //
  877. // Solidity: function setOutbidding(uint16 newOutbidding) returns()
  878. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) SetOutbidding(opts *bind.TransactOpts, newOutbidding uint16) (*types.Transaction, error) {
  879. return _HermezAuctionProtocol.contract.Transact(opts, "setOutbidding", newOutbidding)
  880. }
  881. // SetOutbidding is a paid mutator transaction binding the contract method 0xdfd5281b.
  882. //
  883. // Solidity: function setOutbidding(uint16 newOutbidding) returns()
  884. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) SetOutbidding(newOutbidding uint16) (*types.Transaction, error) {
  885. return _HermezAuctionProtocol.Contract.SetOutbidding(&_HermezAuctionProtocol.TransactOpts, newOutbidding)
  886. }
  887. // SetOutbidding is a paid mutator transaction binding the contract method 0xdfd5281b.
  888. //
  889. // Solidity: function setOutbidding(uint16 newOutbidding) returns()
  890. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) SetOutbidding(newOutbidding uint16) (*types.Transaction, error) {
  891. return _HermezAuctionProtocol.Contract.SetOutbidding(&_HermezAuctionProtocol.TransactOpts, newOutbidding)
  892. }
  893. // SetSlotDeadline is a paid mutator transaction binding the contract method 0x87e6b6bb.
  894. //
  895. // Solidity: function setSlotDeadline(uint8 newDeadline) returns()
  896. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactor) SetSlotDeadline(opts *bind.TransactOpts, newDeadline uint8) (*types.Transaction, error) {
  897. return _HermezAuctionProtocol.contract.Transact(opts, "setSlotDeadline", newDeadline)
  898. }
  899. // SetSlotDeadline is a paid mutator transaction binding the contract method 0x87e6b6bb.
  900. //
  901. // Solidity: function setSlotDeadline(uint8 newDeadline) returns()
  902. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) SetSlotDeadline(newDeadline uint8) (*types.Transaction, error) {
  903. return _HermezAuctionProtocol.Contract.SetSlotDeadline(&_HermezAuctionProtocol.TransactOpts, newDeadline)
  904. }
  905. // SetSlotDeadline is a paid mutator transaction binding the contract method 0x87e6b6bb.
  906. //
  907. // Solidity: function setSlotDeadline(uint8 newDeadline) returns()
  908. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) SetSlotDeadline(newDeadline uint8) (*types.Transaction, error) {
  909. return _HermezAuctionProtocol.Contract.SetSlotDeadline(&_HermezAuctionProtocol.TransactOpts, newDeadline)
  910. }
  911. // TokensReceived is a paid mutator transaction binding the contract method 0x0023de29.
  912. //
  913. // Solidity: function tokensReceived(address operator, address from, address to, uint256 amount, bytes userData, bytes operatorData) returns()
  914. 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) {
  915. return _HermezAuctionProtocol.contract.Transact(opts, "tokensReceived", operator, from, to, amount, userData, operatorData)
  916. }
  917. // TokensReceived is a paid mutator transaction binding the contract method 0x0023de29.
  918. //
  919. // Solidity: function tokensReceived(address operator, address from, address to, uint256 amount, bytes userData, bytes operatorData) returns()
  920. func (_HermezAuctionProtocol *HermezAuctionProtocolSession) TokensReceived(operator common.Address, from common.Address, to common.Address, amount *big.Int, userData []byte, operatorData []byte) (*types.Transaction, error) {
  921. return _HermezAuctionProtocol.Contract.TokensReceived(&_HermezAuctionProtocol.TransactOpts, operator, from, to, amount, userData, operatorData)
  922. }
  923. // TokensReceived is a paid mutator transaction binding the contract method 0x0023de29.
  924. //
  925. // Solidity: function tokensReceived(address operator, address from, address to, uint256 amount, bytes userData, bytes operatorData) returns()
  926. func (_HermezAuctionProtocol *HermezAuctionProtocolTransactorSession) TokensReceived(operator common.Address, from common.Address, to common.Address, amount *big.Int, userData []byte, operatorData []byte) (*types.Transaction, error) {
  927. return _HermezAuctionProtocol.Contract.TokensReceived(&_HermezAuctionProtocol.TransactOpts, operator, from, to, amount, userData, operatorData)
  928. }
  929. // 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.
  930. type HermezAuctionProtocolHEZClaimedIterator struct {
  931. Event *HermezAuctionProtocolHEZClaimed // Event containing the contract specifics and raw log
  932. contract *bind.BoundContract // Generic contract to use for unpacking event data
  933. event string // Event name to use for unpacking event data
  934. logs chan types.Log // Log channel receiving the found contract events
  935. sub ethereum.Subscription // Subscription for errors, completion and termination
  936. done bool // Whether the subscription completed delivering logs
  937. fail error // Occurred error to stop iteration
  938. }
  939. // Next advances the iterator to the subsequent event, returning whether there
  940. // are any more events found. In case of a retrieval or parsing error, false is
  941. // returned and Error() can be queried for the exact failure.
  942. func (it *HermezAuctionProtocolHEZClaimedIterator) Next() bool {
  943. // If the iterator failed, stop iterating
  944. if it.fail != nil {
  945. return false
  946. }
  947. // If the iterator completed, deliver directly whatever's available
  948. if it.done {
  949. select {
  950. case log := <-it.logs:
  951. it.Event = new(HermezAuctionProtocolHEZClaimed)
  952. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  953. it.fail = err
  954. return false
  955. }
  956. it.Event.Raw = log
  957. return true
  958. default:
  959. return false
  960. }
  961. }
  962. // Iterator still in progress, wait for either a data or an error event
  963. select {
  964. case log := <-it.logs:
  965. it.Event = new(HermezAuctionProtocolHEZClaimed)
  966. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  967. it.fail = err
  968. return false
  969. }
  970. it.Event.Raw = log
  971. return true
  972. case err := <-it.sub.Err():
  973. it.done = true
  974. it.fail = err
  975. return it.Next()
  976. }
  977. }
  978. // Error returns any retrieval or parsing error occurred during filtering.
  979. func (it *HermezAuctionProtocolHEZClaimedIterator) Error() error {
  980. return it.fail
  981. }
  982. // Close terminates the iteration process, releasing any pending underlying
  983. // resources.
  984. func (it *HermezAuctionProtocolHEZClaimedIterator) Close() error {
  985. it.sub.Unsubscribe()
  986. return nil
  987. }
  988. // HermezAuctionProtocolHEZClaimed represents a HEZClaimed event raised by the HermezAuctionProtocol contract.
  989. type HermezAuctionProtocolHEZClaimed struct {
  990. Owner common.Address
  991. Amount *big.Int
  992. Raw types.Log // Blockchain specific contextual infos
  993. }
  994. // FilterHEZClaimed is a free log retrieval operation binding the contract event 0x199ef0cb54d2b296ff6eaec2721bacf0ca3fd8344a43f5bdf4548b34dfa2594f.
  995. //
  996. // Solidity: event HEZClaimed(address indexed owner, uint128 amount)
  997. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterHEZClaimed(opts *bind.FilterOpts, owner []common.Address) (*HermezAuctionProtocolHEZClaimedIterator, error) {
  998. var ownerRule []interface{}
  999. for _, ownerItem := range owner {
  1000. ownerRule = append(ownerRule, ownerItem)
  1001. }
  1002. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "HEZClaimed", ownerRule)
  1003. if err != nil {
  1004. return nil, err
  1005. }
  1006. return &HermezAuctionProtocolHEZClaimedIterator{contract: _HermezAuctionProtocol.contract, event: "HEZClaimed", logs: logs, sub: sub}, nil
  1007. }
  1008. // WatchHEZClaimed is a free log subscription operation binding the contract event 0x199ef0cb54d2b296ff6eaec2721bacf0ca3fd8344a43f5bdf4548b34dfa2594f.
  1009. //
  1010. // Solidity: event HEZClaimed(address indexed owner, uint128 amount)
  1011. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchHEZClaimed(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolHEZClaimed, owner []common.Address) (event.Subscription, error) {
  1012. var ownerRule []interface{}
  1013. for _, ownerItem := range owner {
  1014. ownerRule = append(ownerRule, ownerItem)
  1015. }
  1016. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "HEZClaimed", ownerRule)
  1017. if err != nil {
  1018. return nil, err
  1019. }
  1020. return event.NewSubscription(func(quit <-chan struct{}) error {
  1021. defer sub.Unsubscribe()
  1022. for {
  1023. select {
  1024. case log := <-logs:
  1025. // New log arrived, parse the event and forward to the user
  1026. event := new(HermezAuctionProtocolHEZClaimed)
  1027. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "HEZClaimed", log); err != nil {
  1028. return err
  1029. }
  1030. event.Raw = log
  1031. select {
  1032. case sink <- event:
  1033. case err := <-sub.Err():
  1034. return err
  1035. case <-quit:
  1036. return nil
  1037. }
  1038. case err := <-sub.Err():
  1039. return err
  1040. case <-quit:
  1041. return nil
  1042. }
  1043. }
  1044. }), nil
  1045. }
  1046. // ParseHEZClaimed is a log parse operation binding the contract event 0x199ef0cb54d2b296ff6eaec2721bacf0ca3fd8344a43f5bdf4548b34dfa2594f.
  1047. //
  1048. // Solidity: event HEZClaimed(address indexed owner, uint128 amount)
  1049. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseHEZClaimed(log types.Log) (*HermezAuctionProtocolHEZClaimed, error) {
  1050. event := new(HermezAuctionProtocolHEZClaimed)
  1051. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "HEZClaimed", log); err != nil {
  1052. return nil, err
  1053. }
  1054. return event, nil
  1055. }
  1056. // 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.
  1057. type HermezAuctionProtocolNewAllocationRatioIterator struct {
  1058. Event *HermezAuctionProtocolNewAllocationRatio // Event containing the contract specifics and raw log
  1059. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1060. event string // Event name to use for unpacking event data
  1061. logs chan types.Log // Log channel receiving the found contract events
  1062. sub ethereum.Subscription // Subscription for errors, completion and termination
  1063. done bool // Whether the subscription completed delivering logs
  1064. fail error // Occurred error to stop iteration
  1065. }
  1066. // Next advances the iterator to the subsequent event, returning whether there
  1067. // are any more events found. In case of a retrieval or parsing error, false is
  1068. // returned and Error() can be queried for the exact failure.
  1069. func (it *HermezAuctionProtocolNewAllocationRatioIterator) Next() bool {
  1070. // If the iterator failed, stop iterating
  1071. if it.fail != nil {
  1072. return false
  1073. }
  1074. // If the iterator completed, deliver directly whatever's available
  1075. if it.done {
  1076. select {
  1077. case log := <-it.logs:
  1078. it.Event = new(HermezAuctionProtocolNewAllocationRatio)
  1079. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1080. it.fail = err
  1081. return false
  1082. }
  1083. it.Event.Raw = log
  1084. return true
  1085. default:
  1086. return false
  1087. }
  1088. }
  1089. // Iterator still in progress, wait for either a data or an error event
  1090. select {
  1091. case log := <-it.logs:
  1092. it.Event = new(HermezAuctionProtocolNewAllocationRatio)
  1093. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1094. it.fail = err
  1095. return false
  1096. }
  1097. it.Event.Raw = log
  1098. return true
  1099. case err := <-it.sub.Err():
  1100. it.done = true
  1101. it.fail = err
  1102. return it.Next()
  1103. }
  1104. }
  1105. // Error returns any retrieval or parsing error occurred during filtering.
  1106. func (it *HermezAuctionProtocolNewAllocationRatioIterator) Error() error {
  1107. return it.fail
  1108. }
  1109. // Close terminates the iteration process, releasing any pending underlying
  1110. // resources.
  1111. func (it *HermezAuctionProtocolNewAllocationRatioIterator) Close() error {
  1112. it.sub.Unsubscribe()
  1113. return nil
  1114. }
  1115. // HermezAuctionProtocolNewAllocationRatio represents a NewAllocationRatio event raised by the HermezAuctionProtocol contract.
  1116. type HermezAuctionProtocolNewAllocationRatio struct {
  1117. NewAllocationRatio [3]uint16
  1118. Raw types.Log // Blockchain specific contextual infos
  1119. }
  1120. // FilterNewAllocationRatio is a free log retrieval operation binding the contract event 0x0bb59eceb12f1bdb63e4a7d57c70d6473fefd7c3f51af5a3604f7e97197073e4.
  1121. //
  1122. // Solidity: event NewAllocationRatio(uint16[3] newAllocationRatio)
  1123. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewAllocationRatio(opts *bind.FilterOpts) (*HermezAuctionProtocolNewAllocationRatioIterator, error) {
  1124. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewAllocationRatio")
  1125. if err != nil {
  1126. return nil, err
  1127. }
  1128. return &HermezAuctionProtocolNewAllocationRatioIterator{contract: _HermezAuctionProtocol.contract, event: "NewAllocationRatio", logs: logs, sub: sub}, nil
  1129. }
  1130. // WatchNewAllocationRatio is a free log subscription operation binding the contract event 0x0bb59eceb12f1bdb63e4a7d57c70d6473fefd7c3f51af5a3604f7e97197073e4.
  1131. //
  1132. // Solidity: event NewAllocationRatio(uint16[3] newAllocationRatio)
  1133. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewAllocationRatio(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewAllocationRatio) (event.Subscription, error) {
  1134. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewAllocationRatio")
  1135. if err != nil {
  1136. return nil, err
  1137. }
  1138. return event.NewSubscription(func(quit <-chan struct{}) error {
  1139. defer sub.Unsubscribe()
  1140. for {
  1141. select {
  1142. case log := <-logs:
  1143. // New log arrived, parse the event and forward to the user
  1144. event := new(HermezAuctionProtocolNewAllocationRatio)
  1145. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewAllocationRatio", log); err != nil {
  1146. return err
  1147. }
  1148. event.Raw = log
  1149. select {
  1150. case sink <- event:
  1151. case err := <-sub.Err():
  1152. return err
  1153. case <-quit:
  1154. return nil
  1155. }
  1156. case err := <-sub.Err():
  1157. return err
  1158. case <-quit:
  1159. return nil
  1160. }
  1161. }
  1162. }), nil
  1163. }
  1164. // ParseNewAllocationRatio is a log parse operation binding the contract event 0x0bb59eceb12f1bdb63e4a7d57c70d6473fefd7c3f51af5a3604f7e97197073e4.
  1165. //
  1166. // Solidity: event NewAllocationRatio(uint16[3] newAllocationRatio)
  1167. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewAllocationRatio(log types.Log) (*HermezAuctionProtocolNewAllocationRatio, error) {
  1168. event := new(HermezAuctionProtocolNewAllocationRatio)
  1169. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewAllocationRatio", log); err != nil {
  1170. return nil, err
  1171. }
  1172. return event, nil
  1173. }
  1174. // 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.
  1175. type HermezAuctionProtocolNewBidIterator struct {
  1176. Event *HermezAuctionProtocolNewBid // Event containing the contract specifics and raw log
  1177. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1178. event string // Event name to use for unpacking event data
  1179. logs chan types.Log // Log channel receiving the found contract events
  1180. sub ethereum.Subscription // Subscription for errors, completion and termination
  1181. done bool // Whether the subscription completed delivering logs
  1182. fail error // Occurred error to stop iteration
  1183. }
  1184. // Next advances the iterator to the subsequent event, returning whether there
  1185. // are any more events found. In case of a retrieval or parsing error, false is
  1186. // returned and Error() can be queried for the exact failure.
  1187. func (it *HermezAuctionProtocolNewBidIterator) Next() bool {
  1188. // If the iterator failed, stop iterating
  1189. if it.fail != nil {
  1190. return false
  1191. }
  1192. // If the iterator completed, deliver directly whatever's available
  1193. if it.done {
  1194. select {
  1195. case log := <-it.logs:
  1196. it.Event = new(HermezAuctionProtocolNewBid)
  1197. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1198. it.fail = err
  1199. return false
  1200. }
  1201. it.Event.Raw = log
  1202. return true
  1203. default:
  1204. return false
  1205. }
  1206. }
  1207. // Iterator still in progress, wait for either a data or an error event
  1208. select {
  1209. case log := <-it.logs:
  1210. it.Event = new(HermezAuctionProtocolNewBid)
  1211. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1212. it.fail = err
  1213. return false
  1214. }
  1215. it.Event.Raw = log
  1216. return true
  1217. case err := <-it.sub.Err():
  1218. it.done = true
  1219. it.fail = err
  1220. return it.Next()
  1221. }
  1222. }
  1223. // Error returns any retrieval or parsing error occurred during filtering.
  1224. func (it *HermezAuctionProtocolNewBidIterator) Error() error {
  1225. return it.fail
  1226. }
  1227. // Close terminates the iteration process, releasing any pending underlying
  1228. // resources.
  1229. func (it *HermezAuctionProtocolNewBidIterator) Close() error {
  1230. it.sub.Unsubscribe()
  1231. return nil
  1232. }
  1233. // HermezAuctionProtocolNewBid represents a NewBid event raised by the HermezAuctionProtocol contract.
  1234. type HermezAuctionProtocolNewBid struct {
  1235. Slot *big.Int
  1236. BidAmount *big.Int
  1237. Bidder common.Address
  1238. Raw types.Log // Blockchain specific contextual infos
  1239. }
  1240. // FilterNewBid is a free log retrieval operation binding the contract event 0xd48e8329cdb2fb109b4fe445d7b681a74b256bff16e6f7f33b9d4fbe9038e433.
  1241. //
  1242. // Solidity: event NewBid(uint128 indexed slot, uint128 bidAmount, address indexed bidder)
  1243. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewBid(opts *bind.FilterOpts, slot []*big.Int, bidder []common.Address) (*HermezAuctionProtocolNewBidIterator, error) {
  1244. var slotRule []interface{}
  1245. for _, slotItem := range slot {
  1246. slotRule = append(slotRule, slotItem)
  1247. }
  1248. var bidderRule []interface{}
  1249. for _, bidderItem := range bidder {
  1250. bidderRule = append(bidderRule, bidderItem)
  1251. }
  1252. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewBid", slotRule, bidderRule)
  1253. if err != nil {
  1254. return nil, err
  1255. }
  1256. return &HermezAuctionProtocolNewBidIterator{contract: _HermezAuctionProtocol.contract, event: "NewBid", logs: logs, sub: sub}, nil
  1257. }
  1258. // WatchNewBid is a free log subscription operation binding the contract event 0xd48e8329cdb2fb109b4fe445d7b681a74b256bff16e6f7f33b9d4fbe9038e433.
  1259. //
  1260. // Solidity: event NewBid(uint128 indexed slot, uint128 bidAmount, address indexed bidder)
  1261. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewBid(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewBid, slot []*big.Int, bidder []common.Address) (event.Subscription, error) {
  1262. var slotRule []interface{}
  1263. for _, slotItem := range slot {
  1264. slotRule = append(slotRule, slotItem)
  1265. }
  1266. var bidderRule []interface{}
  1267. for _, bidderItem := range bidder {
  1268. bidderRule = append(bidderRule, bidderItem)
  1269. }
  1270. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewBid", slotRule, bidderRule)
  1271. if err != nil {
  1272. return nil, err
  1273. }
  1274. return event.NewSubscription(func(quit <-chan struct{}) error {
  1275. defer sub.Unsubscribe()
  1276. for {
  1277. select {
  1278. case log := <-logs:
  1279. // New log arrived, parse the event and forward to the user
  1280. event := new(HermezAuctionProtocolNewBid)
  1281. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewBid", log); err != nil {
  1282. return err
  1283. }
  1284. event.Raw = log
  1285. select {
  1286. case sink <- event:
  1287. case err := <-sub.Err():
  1288. return err
  1289. case <-quit:
  1290. return nil
  1291. }
  1292. case err := <-sub.Err():
  1293. return err
  1294. case <-quit:
  1295. return nil
  1296. }
  1297. }
  1298. }), nil
  1299. }
  1300. // ParseNewBid is a log parse operation binding the contract event 0xd48e8329cdb2fb109b4fe445d7b681a74b256bff16e6f7f33b9d4fbe9038e433.
  1301. //
  1302. // Solidity: event NewBid(uint128 indexed slot, uint128 bidAmount, address indexed bidder)
  1303. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewBid(log types.Log) (*HermezAuctionProtocolNewBid, error) {
  1304. event := new(HermezAuctionProtocolNewBid)
  1305. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewBid", log); err != nil {
  1306. return nil, err
  1307. }
  1308. return event, nil
  1309. }
  1310. // 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.
  1311. type HermezAuctionProtocolNewBootCoordinatorIterator struct {
  1312. Event *HermezAuctionProtocolNewBootCoordinator // Event containing the contract specifics and raw log
  1313. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1314. event string // Event name to use for unpacking event data
  1315. logs chan types.Log // Log channel receiving the found contract events
  1316. sub ethereum.Subscription // Subscription for errors, completion and termination
  1317. done bool // Whether the subscription completed delivering logs
  1318. fail error // Occurred error to stop iteration
  1319. }
  1320. // Next advances the iterator to the subsequent event, returning whether there
  1321. // are any more events found. In case of a retrieval or parsing error, false is
  1322. // returned and Error() can be queried for the exact failure.
  1323. func (it *HermezAuctionProtocolNewBootCoordinatorIterator) Next() bool {
  1324. // If the iterator failed, stop iterating
  1325. if it.fail != nil {
  1326. return false
  1327. }
  1328. // If the iterator completed, deliver directly whatever's available
  1329. if it.done {
  1330. select {
  1331. case log := <-it.logs:
  1332. it.Event = new(HermezAuctionProtocolNewBootCoordinator)
  1333. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1334. it.fail = err
  1335. return false
  1336. }
  1337. it.Event.Raw = log
  1338. return true
  1339. default:
  1340. return false
  1341. }
  1342. }
  1343. // Iterator still in progress, wait for either a data or an error event
  1344. select {
  1345. case log := <-it.logs:
  1346. it.Event = new(HermezAuctionProtocolNewBootCoordinator)
  1347. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1348. it.fail = err
  1349. return false
  1350. }
  1351. it.Event.Raw = log
  1352. return true
  1353. case err := <-it.sub.Err():
  1354. it.done = true
  1355. it.fail = err
  1356. return it.Next()
  1357. }
  1358. }
  1359. // Error returns any retrieval or parsing error occurred during filtering.
  1360. func (it *HermezAuctionProtocolNewBootCoordinatorIterator) Error() error {
  1361. return it.fail
  1362. }
  1363. // Close terminates the iteration process, releasing any pending underlying
  1364. // resources.
  1365. func (it *HermezAuctionProtocolNewBootCoordinatorIterator) Close() error {
  1366. it.sub.Unsubscribe()
  1367. return nil
  1368. }
  1369. // HermezAuctionProtocolNewBootCoordinator represents a NewBootCoordinator event raised by the HermezAuctionProtocol contract.
  1370. type HermezAuctionProtocolNewBootCoordinator struct {
  1371. NewBootCoordinator common.Address
  1372. Raw types.Log // Blockchain specific contextual infos
  1373. }
  1374. // FilterNewBootCoordinator is a free log retrieval operation binding the contract event 0x2161bd0f0e056d18046a81683e5bc845980367451cf4ca5148523a147c51be55.
  1375. //
  1376. // Solidity: event NewBootCoordinator(address indexed newBootCoordinator)
  1377. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewBootCoordinator(opts *bind.FilterOpts, newBootCoordinator []common.Address) (*HermezAuctionProtocolNewBootCoordinatorIterator, error) {
  1378. var newBootCoordinatorRule []interface{}
  1379. for _, newBootCoordinatorItem := range newBootCoordinator {
  1380. newBootCoordinatorRule = append(newBootCoordinatorRule, newBootCoordinatorItem)
  1381. }
  1382. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewBootCoordinator", newBootCoordinatorRule)
  1383. if err != nil {
  1384. return nil, err
  1385. }
  1386. return &HermezAuctionProtocolNewBootCoordinatorIterator{contract: _HermezAuctionProtocol.contract, event: "NewBootCoordinator", logs: logs, sub: sub}, nil
  1387. }
  1388. // WatchNewBootCoordinator is a free log subscription operation binding the contract event 0x2161bd0f0e056d18046a81683e5bc845980367451cf4ca5148523a147c51be55.
  1389. //
  1390. // Solidity: event NewBootCoordinator(address indexed newBootCoordinator)
  1391. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewBootCoordinator(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewBootCoordinator, newBootCoordinator []common.Address) (event.Subscription, error) {
  1392. var newBootCoordinatorRule []interface{}
  1393. for _, newBootCoordinatorItem := range newBootCoordinator {
  1394. newBootCoordinatorRule = append(newBootCoordinatorRule, newBootCoordinatorItem)
  1395. }
  1396. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewBootCoordinator", newBootCoordinatorRule)
  1397. if err != nil {
  1398. return nil, err
  1399. }
  1400. return event.NewSubscription(func(quit <-chan struct{}) error {
  1401. defer sub.Unsubscribe()
  1402. for {
  1403. select {
  1404. case log := <-logs:
  1405. // New log arrived, parse the event and forward to the user
  1406. event := new(HermezAuctionProtocolNewBootCoordinator)
  1407. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewBootCoordinator", log); err != nil {
  1408. return err
  1409. }
  1410. event.Raw = log
  1411. select {
  1412. case sink <- event:
  1413. case err := <-sub.Err():
  1414. return err
  1415. case <-quit:
  1416. return nil
  1417. }
  1418. case err := <-sub.Err():
  1419. return err
  1420. case <-quit:
  1421. return nil
  1422. }
  1423. }
  1424. }), nil
  1425. }
  1426. // ParseNewBootCoordinator is a log parse operation binding the contract event 0x2161bd0f0e056d18046a81683e5bc845980367451cf4ca5148523a147c51be55.
  1427. //
  1428. // Solidity: event NewBootCoordinator(address indexed newBootCoordinator)
  1429. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewBootCoordinator(log types.Log) (*HermezAuctionProtocolNewBootCoordinator, error) {
  1430. event := new(HermezAuctionProtocolNewBootCoordinator)
  1431. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewBootCoordinator", log); err != nil {
  1432. return nil, err
  1433. }
  1434. return event, nil
  1435. }
  1436. // 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.
  1437. type HermezAuctionProtocolNewClosedAuctionSlotsIterator struct {
  1438. Event *HermezAuctionProtocolNewClosedAuctionSlots // Event containing the contract specifics and raw log
  1439. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1440. event string // Event name to use for unpacking event data
  1441. logs chan types.Log // Log channel receiving the found contract events
  1442. sub ethereum.Subscription // Subscription for errors, completion and termination
  1443. done bool // Whether the subscription completed delivering logs
  1444. fail error // Occurred error to stop iteration
  1445. }
  1446. // Next advances the iterator to the subsequent event, returning whether there
  1447. // are any more events found. In case of a retrieval or parsing error, false is
  1448. // returned and Error() can be queried for the exact failure.
  1449. func (it *HermezAuctionProtocolNewClosedAuctionSlotsIterator) Next() bool {
  1450. // If the iterator failed, stop iterating
  1451. if it.fail != nil {
  1452. return false
  1453. }
  1454. // If the iterator completed, deliver directly whatever's available
  1455. if it.done {
  1456. select {
  1457. case log := <-it.logs:
  1458. it.Event = new(HermezAuctionProtocolNewClosedAuctionSlots)
  1459. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1460. it.fail = err
  1461. return false
  1462. }
  1463. it.Event.Raw = log
  1464. return true
  1465. default:
  1466. return false
  1467. }
  1468. }
  1469. // Iterator still in progress, wait for either a data or an error event
  1470. select {
  1471. case log := <-it.logs:
  1472. it.Event = new(HermezAuctionProtocolNewClosedAuctionSlots)
  1473. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1474. it.fail = err
  1475. return false
  1476. }
  1477. it.Event.Raw = log
  1478. return true
  1479. case err := <-it.sub.Err():
  1480. it.done = true
  1481. it.fail = err
  1482. return it.Next()
  1483. }
  1484. }
  1485. // Error returns any retrieval or parsing error occurred during filtering.
  1486. func (it *HermezAuctionProtocolNewClosedAuctionSlotsIterator) Error() error {
  1487. return it.fail
  1488. }
  1489. // Close terminates the iteration process, releasing any pending underlying
  1490. // resources.
  1491. func (it *HermezAuctionProtocolNewClosedAuctionSlotsIterator) Close() error {
  1492. it.sub.Unsubscribe()
  1493. return nil
  1494. }
  1495. // HermezAuctionProtocolNewClosedAuctionSlots represents a NewClosedAuctionSlots event raised by the HermezAuctionProtocol contract.
  1496. type HermezAuctionProtocolNewClosedAuctionSlots struct {
  1497. NewClosedAuctionSlots uint16
  1498. Raw types.Log // Blockchain specific contextual infos
  1499. }
  1500. // FilterNewClosedAuctionSlots is a free log retrieval operation binding the contract event 0xc78051d3757db196b1e445f3a9a1380944518c69b5d7922ec747c54f0340a4ea.
  1501. //
  1502. // Solidity: event NewClosedAuctionSlots(uint16 newClosedAuctionSlots)
  1503. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewClosedAuctionSlots(opts *bind.FilterOpts) (*HermezAuctionProtocolNewClosedAuctionSlotsIterator, error) {
  1504. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewClosedAuctionSlots")
  1505. if err != nil {
  1506. return nil, err
  1507. }
  1508. return &HermezAuctionProtocolNewClosedAuctionSlotsIterator{contract: _HermezAuctionProtocol.contract, event: "NewClosedAuctionSlots", logs: logs, sub: sub}, nil
  1509. }
  1510. // WatchNewClosedAuctionSlots is a free log subscription operation binding the contract event 0xc78051d3757db196b1e445f3a9a1380944518c69b5d7922ec747c54f0340a4ea.
  1511. //
  1512. // Solidity: event NewClosedAuctionSlots(uint16 newClosedAuctionSlots)
  1513. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewClosedAuctionSlots(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewClosedAuctionSlots) (event.Subscription, error) {
  1514. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewClosedAuctionSlots")
  1515. if err != nil {
  1516. return nil, err
  1517. }
  1518. return event.NewSubscription(func(quit <-chan struct{}) error {
  1519. defer sub.Unsubscribe()
  1520. for {
  1521. select {
  1522. case log := <-logs:
  1523. // New log arrived, parse the event and forward to the user
  1524. event := new(HermezAuctionProtocolNewClosedAuctionSlots)
  1525. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewClosedAuctionSlots", log); err != nil {
  1526. return err
  1527. }
  1528. event.Raw = log
  1529. select {
  1530. case sink <- event:
  1531. case err := <-sub.Err():
  1532. return err
  1533. case <-quit:
  1534. return nil
  1535. }
  1536. case err := <-sub.Err():
  1537. return err
  1538. case <-quit:
  1539. return nil
  1540. }
  1541. }
  1542. }), nil
  1543. }
  1544. // ParseNewClosedAuctionSlots is a log parse operation binding the contract event 0xc78051d3757db196b1e445f3a9a1380944518c69b5d7922ec747c54f0340a4ea.
  1545. //
  1546. // Solidity: event NewClosedAuctionSlots(uint16 newClosedAuctionSlots)
  1547. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewClosedAuctionSlots(log types.Log) (*HermezAuctionProtocolNewClosedAuctionSlots, error) {
  1548. event := new(HermezAuctionProtocolNewClosedAuctionSlots)
  1549. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewClosedAuctionSlots", log); err != nil {
  1550. return nil, err
  1551. }
  1552. return event, nil
  1553. }
  1554. // 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.
  1555. type HermezAuctionProtocolNewDefaultSlotSetBidIterator struct {
  1556. Event *HermezAuctionProtocolNewDefaultSlotSetBid // Event containing the contract specifics and raw log
  1557. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1558. event string // Event name to use for unpacking event data
  1559. logs chan types.Log // Log channel receiving the found contract events
  1560. sub ethereum.Subscription // Subscription for errors, completion and termination
  1561. done bool // Whether the subscription completed delivering logs
  1562. fail error // Occurred error to stop iteration
  1563. }
  1564. // Next advances the iterator to the subsequent event, returning whether there
  1565. // are any more events found. In case of a retrieval or parsing error, false is
  1566. // returned and Error() can be queried for the exact failure.
  1567. func (it *HermezAuctionProtocolNewDefaultSlotSetBidIterator) Next() bool {
  1568. // If the iterator failed, stop iterating
  1569. if it.fail != nil {
  1570. return false
  1571. }
  1572. // If the iterator completed, deliver directly whatever's available
  1573. if it.done {
  1574. select {
  1575. case log := <-it.logs:
  1576. it.Event = new(HermezAuctionProtocolNewDefaultSlotSetBid)
  1577. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1578. it.fail = err
  1579. return false
  1580. }
  1581. it.Event.Raw = log
  1582. return true
  1583. default:
  1584. return false
  1585. }
  1586. }
  1587. // Iterator still in progress, wait for either a data or an error event
  1588. select {
  1589. case log := <-it.logs:
  1590. it.Event = new(HermezAuctionProtocolNewDefaultSlotSetBid)
  1591. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1592. it.fail = err
  1593. return false
  1594. }
  1595. it.Event.Raw = log
  1596. return true
  1597. case err := <-it.sub.Err():
  1598. it.done = true
  1599. it.fail = err
  1600. return it.Next()
  1601. }
  1602. }
  1603. // Error returns any retrieval or parsing error occurred during filtering.
  1604. func (it *HermezAuctionProtocolNewDefaultSlotSetBidIterator) Error() error {
  1605. return it.fail
  1606. }
  1607. // Close terminates the iteration process, releasing any pending underlying
  1608. // resources.
  1609. func (it *HermezAuctionProtocolNewDefaultSlotSetBidIterator) Close() error {
  1610. it.sub.Unsubscribe()
  1611. return nil
  1612. }
  1613. // HermezAuctionProtocolNewDefaultSlotSetBid represents a NewDefaultSlotSetBid event raised by the HermezAuctionProtocol contract.
  1614. type HermezAuctionProtocolNewDefaultSlotSetBid struct {
  1615. SlotSet *big.Int
  1616. NewInitialMinBid *big.Int
  1617. Raw types.Log // Blockchain specific contextual infos
  1618. }
  1619. // FilterNewDefaultSlotSetBid is a free log retrieval operation binding the contract event 0xa922aa010d1ff8e70b2aa9247d891836795c3d3ba2a543c37c91a44dc4a50172.
  1620. //
  1621. // Solidity: event NewDefaultSlotSetBid(uint128 slotSet, uint128 newInitialMinBid)
  1622. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewDefaultSlotSetBid(opts *bind.FilterOpts) (*HermezAuctionProtocolNewDefaultSlotSetBidIterator, error) {
  1623. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewDefaultSlotSetBid")
  1624. if err != nil {
  1625. return nil, err
  1626. }
  1627. return &HermezAuctionProtocolNewDefaultSlotSetBidIterator{contract: _HermezAuctionProtocol.contract, event: "NewDefaultSlotSetBid", logs: logs, sub: sub}, nil
  1628. }
  1629. // WatchNewDefaultSlotSetBid is a free log subscription operation binding the contract event 0xa922aa010d1ff8e70b2aa9247d891836795c3d3ba2a543c37c91a44dc4a50172.
  1630. //
  1631. // Solidity: event NewDefaultSlotSetBid(uint128 slotSet, uint128 newInitialMinBid)
  1632. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewDefaultSlotSetBid(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewDefaultSlotSetBid) (event.Subscription, error) {
  1633. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewDefaultSlotSetBid")
  1634. if err != nil {
  1635. return nil, err
  1636. }
  1637. return event.NewSubscription(func(quit <-chan struct{}) error {
  1638. defer sub.Unsubscribe()
  1639. for {
  1640. select {
  1641. case log := <-logs:
  1642. // New log arrived, parse the event and forward to the user
  1643. event := new(HermezAuctionProtocolNewDefaultSlotSetBid)
  1644. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewDefaultSlotSetBid", log); err != nil {
  1645. return err
  1646. }
  1647. event.Raw = log
  1648. select {
  1649. case sink <- event:
  1650. case err := <-sub.Err():
  1651. return err
  1652. case <-quit:
  1653. return nil
  1654. }
  1655. case err := <-sub.Err():
  1656. return err
  1657. case <-quit:
  1658. return nil
  1659. }
  1660. }
  1661. }), nil
  1662. }
  1663. // ParseNewDefaultSlotSetBid is a log parse operation binding the contract event 0xa922aa010d1ff8e70b2aa9247d891836795c3d3ba2a543c37c91a44dc4a50172.
  1664. //
  1665. // Solidity: event NewDefaultSlotSetBid(uint128 slotSet, uint128 newInitialMinBid)
  1666. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewDefaultSlotSetBid(log types.Log) (*HermezAuctionProtocolNewDefaultSlotSetBid, error) {
  1667. event := new(HermezAuctionProtocolNewDefaultSlotSetBid)
  1668. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewDefaultSlotSetBid", log); err != nil {
  1669. return nil, err
  1670. }
  1671. return event, nil
  1672. }
  1673. // 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.
  1674. type HermezAuctionProtocolNewDonationAddressIterator struct {
  1675. Event *HermezAuctionProtocolNewDonationAddress // Event containing the contract specifics and raw log
  1676. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1677. event string // Event name to use for unpacking event data
  1678. logs chan types.Log // Log channel receiving the found contract events
  1679. sub ethereum.Subscription // Subscription for errors, completion and termination
  1680. done bool // Whether the subscription completed delivering logs
  1681. fail error // Occurred error to stop iteration
  1682. }
  1683. // Next advances the iterator to the subsequent event, returning whether there
  1684. // are any more events found. In case of a retrieval or parsing error, false is
  1685. // returned and Error() can be queried for the exact failure.
  1686. func (it *HermezAuctionProtocolNewDonationAddressIterator) Next() bool {
  1687. // If the iterator failed, stop iterating
  1688. if it.fail != nil {
  1689. return false
  1690. }
  1691. // If the iterator completed, deliver directly whatever's available
  1692. if it.done {
  1693. select {
  1694. case log := <-it.logs:
  1695. it.Event = new(HermezAuctionProtocolNewDonationAddress)
  1696. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1697. it.fail = err
  1698. return false
  1699. }
  1700. it.Event.Raw = log
  1701. return true
  1702. default:
  1703. return false
  1704. }
  1705. }
  1706. // Iterator still in progress, wait for either a data or an error event
  1707. select {
  1708. case log := <-it.logs:
  1709. it.Event = new(HermezAuctionProtocolNewDonationAddress)
  1710. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1711. it.fail = err
  1712. return false
  1713. }
  1714. it.Event.Raw = log
  1715. return true
  1716. case err := <-it.sub.Err():
  1717. it.done = true
  1718. it.fail = err
  1719. return it.Next()
  1720. }
  1721. }
  1722. // Error returns any retrieval or parsing error occurred during filtering.
  1723. func (it *HermezAuctionProtocolNewDonationAddressIterator) Error() error {
  1724. return it.fail
  1725. }
  1726. // Close terminates the iteration process, releasing any pending underlying
  1727. // resources.
  1728. func (it *HermezAuctionProtocolNewDonationAddressIterator) Close() error {
  1729. it.sub.Unsubscribe()
  1730. return nil
  1731. }
  1732. // HermezAuctionProtocolNewDonationAddress represents a NewDonationAddress event raised by the HermezAuctionProtocol contract.
  1733. type HermezAuctionProtocolNewDonationAddress struct {
  1734. NewDonationAddress common.Address
  1735. Raw types.Log // Blockchain specific contextual infos
  1736. }
  1737. // FilterNewDonationAddress is a free log retrieval operation binding the contract event 0xa62863cbad1647a2855e9cd39d04fa6dfd32e1b9cfaff1aaf6523f4aaafeccd7.
  1738. //
  1739. // Solidity: event NewDonationAddress(address indexed newDonationAddress)
  1740. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewDonationAddress(opts *bind.FilterOpts, newDonationAddress []common.Address) (*HermezAuctionProtocolNewDonationAddressIterator, error) {
  1741. var newDonationAddressRule []interface{}
  1742. for _, newDonationAddressItem := range newDonationAddress {
  1743. newDonationAddressRule = append(newDonationAddressRule, newDonationAddressItem)
  1744. }
  1745. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewDonationAddress", newDonationAddressRule)
  1746. if err != nil {
  1747. return nil, err
  1748. }
  1749. return &HermezAuctionProtocolNewDonationAddressIterator{contract: _HermezAuctionProtocol.contract, event: "NewDonationAddress", logs: logs, sub: sub}, nil
  1750. }
  1751. // WatchNewDonationAddress is a free log subscription operation binding the contract event 0xa62863cbad1647a2855e9cd39d04fa6dfd32e1b9cfaff1aaf6523f4aaafeccd7.
  1752. //
  1753. // Solidity: event NewDonationAddress(address indexed newDonationAddress)
  1754. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewDonationAddress(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewDonationAddress, newDonationAddress []common.Address) (event.Subscription, error) {
  1755. var newDonationAddressRule []interface{}
  1756. for _, newDonationAddressItem := range newDonationAddress {
  1757. newDonationAddressRule = append(newDonationAddressRule, newDonationAddressItem)
  1758. }
  1759. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewDonationAddress", newDonationAddressRule)
  1760. if err != nil {
  1761. return nil, err
  1762. }
  1763. return event.NewSubscription(func(quit <-chan struct{}) error {
  1764. defer sub.Unsubscribe()
  1765. for {
  1766. select {
  1767. case log := <-logs:
  1768. // New log arrived, parse the event and forward to the user
  1769. event := new(HermezAuctionProtocolNewDonationAddress)
  1770. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewDonationAddress", log); err != nil {
  1771. return err
  1772. }
  1773. event.Raw = log
  1774. select {
  1775. case sink <- event:
  1776. case err := <-sub.Err():
  1777. return err
  1778. case <-quit:
  1779. return nil
  1780. }
  1781. case err := <-sub.Err():
  1782. return err
  1783. case <-quit:
  1784. return nil
  1785. }
  1786. }
  1787. }), nil
  1788. }
  1789. // ParseNewDonationAddress is a log parse operation binding the contract event 0xa62863cbad1647a2855e9cd39d04fa6dfd32e1b9cfaff1aaf6523f4aaafeccd7.
  1790. //
  1791. // Solidity: event NewDonationAddress(address indexed newDonationAddress)
  1792. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewDonationAddress(log types.Log) (*HermezAuctionProtocolNewDonationAddress, error) {
  1793. event := new(HermezAuctionProtocolNewDonationAddress)
  1794. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewDonationAddress", log); err != nil {
  1795. return nil, err
  1796. }
  1797. return event, nil
  1798. }
  1799. // 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.
  1800. type HermezAuctionProtocolNewForgeIterator struct {
  1801. Event *HermezAuctionProtocolNewForge // Event containing the contract specifics and raw log
  1802. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1803. event string // Event name to use for unpacking event data
  1804. logs chan types.Log // Log channel receiving the found contract events
  1805. sub ethereum.Subscription // Subscription for errors, completion and termination
  1806. done bool // Whether the subscription completed delivering logs
  1807. fail error // Occurred error to stop iteration
  1808. }
  1809. // Next advances the iterator to the subsequent event, returning whether there
  1810. // are any more events found. In case of a retrieval or parsing error, false is
  1811. // returned and Error() can be queried for the exact failure.
  1812. func (it *HermezAuctionProtocolNewForgeIterator) Next() bool {
  1813. // If the iterator failed, stop iterating
  1814. if it.fail != nil {
  1815. return false
  1816. }
  1817. // If the iterator completed, deliver directly whatever's available
  1818. if it.done {
  1819. select {
  1820. case log := <-it.logs:
  1821. it.Event = new(HermezAuctionProtocolNewForge)
  1822. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1823. it.fail = err
  1824. return false
  1825. }
  1826. it.Event.Raw = log
  1827. return true
  1828. default:
  1829. return false
  1830. }
  1831. }
  1832. // Iterator still in progress, wait for either a data or an error event
  1833. select {
  1834. case log := <-it.logs:
  1835. it.Event = new(HermezAuctionProtocolNewForge)
  1836. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1837. it.fail = err
  1838. return false
  1839. }
  1840. it.Event.Raw = log
  1841. return true
  1842. case err := <-it.sub.Err():
  1843. it.done = true
  1844. it.fail = err
  1845. return it.Next()
  1846. }
  1847. }
  1848. // Error returns any retrieval or parsing error occurred during filtering.
  1849. func (it *HermezAuctionProtocolNewForgeIterator) Error() error {
  1850. return it.fail
  1851. }
  1852. // Close terminates the iteration process, releasing any pending underlying
  1853. // resources.
  1854. func (it *HermezAuctionProtocolNewForgeIterator) Close() error {
  1855. it.sub.Unsubscribe()
  1856. return nil
  1857. }
  1858. // HermezAuctionProtocolNewForge represents a NewForge event raised by the HermezAuctionProtocol contract.
  1859. type HermezAuctionProtocolNewForge struct {
  1860. Forger common.Address
  1861. SlotToForge *big.Int
  1862. Raw types.Log // Blockchain specific contextual infos
  1863. }
  1864. // FilterNewForge is a free log retrieval operation binding the contract event 0x7cae662d4cfa9d9c5575c65f0cc41a858c51ca14ebcbd02a802a62376c3ad238.
  1865. //
  1866. // Solidity: event NewForge(address indexed forger, uint128 indexed slotToForge)
  1867. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewForge(opts *bind.FilterOpts, forger []common.Address, slotToForge []*big.Int) (*HermezAuctionProtocolNewForgeIterator, error) {
  1868. var forgerRule []interface{}
  1869. for _, forgerItem := range forger {
  1870. forgerRule = append(forgerRule, forgerItem)
  1871. }
  1872. var slotToForgeRule []interface{}
  1873. for _, slotToForgeItem := range slotToForge {
  1874. slotToForgeRule = append(slotToForgeRule, slotToForgeItem)
  1875. }
  1876. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewForge", forgerRule, slotToForgeRule)
  1877. if err != nil {
  1878. return nil, err
  1879. }
  1880. return &HermezAuctionProtocolNewForgeIterator{contract: _HermezAuctionProtocol.contract, event: "NewForge", logs: logs, sub: sub}, nil
  1881. }
  1882. // WatchNewForge is a free log subscription operation binding the contract event 0x7cae662d4cfa9d9c5575c65f0cc41a858c51ca14ebcbd02a802a62376c3ad238.
  1883. //
  1884. // Solidity: event NewForge(address indexed forger, uint128 indexed slotToForge)
  1885. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewForge(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewForge, forger []common.Address, slotToForge []*big.Int) (event.Subscription, error) {
  1886. var forgerRule []interface{}
  1887. for _, forgerItem := range forger {
  1888. forgerRule = append(forgerRule, forgerItem)
  1889. }
  1890. var slotToForgeRule []interface{}
  1891. for _, slotToForgeItem := range slotToForge {
  1892. slotToForgeRule = append(slotToForgeRule, slotToForgeItem)
  1893. }
  1894. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewForge", forgerRule, slotToForgeRule)
  1895. if err != nil {
  1896. return nil, err
  1897. }
  1898. return event.NewSubscription(func(quit <-chan struct{}) error {
  1899. defer sub.Unsubscribe()
  1900. for {
  1901. select {
  1902. case log := <-logs:
  1903. // New log arrived, parse the event and forward to the user
  1904. event := new(HermezAuctionProtocolNewForge)
  1905. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewForge", log); err != nil {
  1906. return err
  1907. }
  1908. event.Raw = log
  1909. select {
  1910. case sink <- event:
  1911. case err := <-sub.Err():
  1912. return err
  1913. case <-quit:
  1914. return nil
  1915. }
  1916. case err := <-sub.Err():
  1917. return err
  1918. case <-quit:
  1919. return nil
  1920. }
  1921. }
  1922. }), nil
  1923. }
  1924. // ParseNewForge is a log parse operation binding the contract event 0x7cae662d4cfa9d9c5575c65f0cc41a858c51ca14ebcbd02a802a62376c3ad238.
  1925. //
  1926. // Solidity: event NewForge(address indexed forger, uint128 indexed slotToForge)
  1927. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewForge(log types.Log) (*HermezAuctionProtocolNewForge, error) {
  1928. event := new(HermezAuctionProtocolNewForge)
  1929. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewForge", log); err != nil {
  1930. return nil, err
  1931. }
  1932. return event, nil
  1933. }
  1934. // 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.
  1935. type HermezAuctionProtocolNewForgeAllocatedIterator struct {
  1936. Event *HermezAuctionProtocolNewForgeAllocated // Event containing the contract specifics and raw log
  1937. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1938. event string // Event name to use for unpacking event data
  1939. logs chan types.Log // Log channel receiving the found contract events
  1940. sub ethereum.Subscription // Subscription for errors, completion and termination
  1941. done bool // Whether the subscription completed delivering logs
  1942. fail error // Occurred error to stop iteration
  1943. }
  1944. // Next advances the iterator to the subsequent event, returning whether there
  1945. // are any more events found. In case of a retrieval or parsing error, false is
  1946. // returned and Error() can be queried for the exact failure.
  1947. func (it *HermezAuctionProtocolNewForgeAllocatedIterator) Next() bool {
  1948. // If the iterator failed, stop iterating
  1949. if it.fail != nil {
  1950. return false
  1951. }
  1952. // If the iterator completed, deliver directly whatever's available
  1953. if it.done {
  1954. select {
  1955. case log := <-it.logs:
  1956. it.Event = new(HermezAuctionProtocolNewForgeAllocated)
  1957. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1958. it.fail = err
  1959. return false
  1960. }
  1961. it.Event.Raw = log
  1962. return true
  1963. default:
  1964. return false
  1965. }
  1966. }
  1967. // Iterator still in progress, wait for either a data or an error event
  1968. select {
  1969. case log := <-it.logs:
  1970. it.Event = new(HermezAuctionProtocolNewForgeAllocated)
  1971. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1972. it.fail = err
  1973. return false
  1974. }
  1975. it.Event.Raw = log
  1976. return true
  1977. case err := <-it.sub.Err():
  1978. it.done = true
  1979. it.fail = err
  1980. return it.Next()
  1981. }
  1982. }
  1983. // Error returns any retrieval or parsing error occurred during filtering.
  1984. func (it *HermezAuctionProtocolNewForgeAllocatedIterator) Error() error {
  1985. return it.fail
  1986. }
  1987. // Close terminates the iteration process, releasing any pending underlying
  1988. // resources.
  1989. func (it *HermezAuctionProtocolNewForgeAllocatedIterator) Close() error {
  1990. it.sub.Unsubscribe()
  1991. return nil
  1992. }
  1993. // HermezAuctionProtocolNewForgeAllocated represents a NewForgeAllocated event raised by the HermezAuctionProtocol contract.
  1994. type HermezAuctionProtocolNewForgeAllocated struct {
  1995. Bidder common.Address
  1996. Forger common.Address
  1997. SlotToForge *big.Int
  1998. BurnAmount *big.Int
  1999. DonationAmount *big.Int
  2000. GovernanceAmount *big.Int
  2001. Raw types.Log // Blockchain specific contextual infos
  2002. }
  2003. // FilterNewForgeAllocated is a free log retrieval operation binding the contract event 0xd64ebb43f4c2b91022b97389834432f1027ef55586129ba05a3a3065b2304f05.
  2004. //
  2005. // Solidity: event NewForgeAllocated(address indexed bidder, address indexed forger, uint128 indexed slotToForge, uint128 burnAmount, uint128 donationAmount, uint128 governanceAmount)
  2006. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewForgeAllocated(opts *bind.FilterOpts, bidder []common.Address, forger []common.Address, slotToForge []*big.Int) (*HermezAuctionProtocolNewForgeAllocatedIterator, error) {
  2007. var bidderRule []interface{}
  2008. for _, bidderItem := range bidder {
  2009. bidderRule = append(bidderRule, bidderItem)
  2010. }
  2011. var forgerRule []interface{}
  2012. for _, forgerItem := range forger {
  2013. forgerRule = append(forgerRule, forgerItem)
  2014. }
  2015. var slotToForgeRule []interface{}
  2016. for _, slotToForgeItem := range slotToForge {
  2017. slotToForgeRule = append(slotToForgeRule, slotToForgeItem)
  2018. }
  2019. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewForgeAllocated", bidderRule, forgerRule, slotToForgeRule)
  2020. if err != nil {
  2021. return nil, err
  2022. }
  2023. return &HermezAuctionProtocolNewForgeAllocatedIterator{contract: _HermezAuctionProtocol.contract, event: "NewForgeAllocated", logs: logs, sub: sub}, nil
  2024. }
  2025. // WatchNewForgeAllocated is a free log subscription operation binding the contract event 0xd64ebb43f4c2b91022b97389834432f1027ef55586129ba05a3a3065b2304f05.
  2026. //
  2027. // Solidity: event NewForgeAllocated(address indexed bidder, address indexed forger, uint128 indexed slotToForge, uint128 burnAmount, uint128 donationAmount, uint128 governanceAmount)
  2028. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewForgeAllocated(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewForgeAllocated, bidder []common.Address, forger []common.Address, slotToForge []*big.Int) (event.Subscription, error) {
  2029. var bidderRule []interface{}
  2030. for _, bidderItem := range bidder {
  2031. bidderRule = append(bidderRule, bidderItem)
  2032. }
  2033. var forgerRule []interface{}
  2034. for _, forgerItem := range forger {
  2035. forgerRule = append(forgerRule, forgerItem)
  2036. }
  2037. var slotToForgeRule []interface{}
  2038. for _, slotToForgeItem := range slotToForge {
  2039. slotToForgeRule = append(slotToForgeRule, slotToForgeItem)
  2040. }
  2041. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewForgeAllocated", bidderRule, forgerRule, slotToForgeRule)
  2042. if err != nil {
  2043. return nil, err
  2044. }
  2045. return event.NewSubscription(func(quit <-chan struct{}) error {
  2046. defer sub.Unsubscribe()
  2047. for {
  2048. select {
  2049. case log := <-logs:
  2050. // New log arrived, parse the event and forward to the user
  2051. event := new(HermezAuctionProtocolNewForgeAllocated)
  2052. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewForgeAllocated", log); err != nil {
  2053. return err
  2054. }
  2055. event.Raw = log
  2056. select {
  2057. case sink <- event:
  2058. case err := <-sub.Err():
  2059. return err
  2060. case <-quit:
  2061. return nil
  2062. }
  2063. case err := <-sub.Err():
  2064. return err
  2065. case <-quit:
  2066. return nil
  2067. }
  2068. }
  2069. }), nil
  2070. }
  2071. // ParseNewForgeAllocated is a log parse operation binding the contract event 0xd64ebb43f4c2b91022b97389834432f1027ef55586129ba05a3a3065b2304f05.
  2072. //
  2073. // Solidity: event NewForgeAllocated(address indexed bidder, address indexed forger, uint128 indexed slotToForge, uint128 burnAmount, uint128 donationAmount, uint128 governanceAmount)
  2074. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewForgeAllocated(log types.Log) (*HermezAuctionProtocolNewForgeAllocated, error) {
  2075. event := new(HermezAuctionProtocolNewForgeAllocated)
  2076. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewForgeAllocated", log); err != nil {
  2077. return nil, err
  2078. }
  2079. return event, nil
  2080. }
  2081. // 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.
  2082. type HermezAuctionProtocolNewOpenAuctionSlotsIterator struct {
  2083. Event *HermezAuctionProtocolNewOpenAuctionSlots // Event containing the contract specifics and raw log
  2084. contract *bind.BoundContract // Generic contract to use for unpacking event data
  2085. event string // Event name to use for unpacking event data
  2086. logs chan types.Log // Log channel receiving the found contract events
  2087. sub ethereum.Subscription // Subscription for errors, completion and termination
  2088. done bool // Whether the subscription completed delivering logs
  2089. fail error // Occurred error to stop iteration
  2090. }
  2091. // Next advances the iterator to the subsequent event, returning whether there
  2092. // are any more events found. In case of a retrieval or parsing error, false is
  2093. // returned and Error() can be queried for the exact failure.
  2094. func (it *HermezAuctionProtocolNewOpenAuctionSlotsIterator) Next() bool {
  2095. // If the iterator failed, stop iterating
  2096. if it.fail != nil {
  2097. return false
  2098. }
  2099. // If the iterator completed, deliver directly whatever's available
  2100. if it.done {
  2101. select {
  2102. case log := <-it.logs:
  2103. it.Event = new(HermezAuctionProtocolNewOpenAuctionSlots)
  2104. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2105. it.fail = err
  2106. return false
  2107. }
  2108. it.Event.Raw = log
  2109. return true
  2110. default:
  2111. return false
  2112. }
  2113. }
  2114. // Iterator still in progress, wait for either a data or an error event
  2115. select {
  2116. case log := <-it.logs:
  2117. it.Event = new(HermezAuctionProtocolNewOpenAuctionSlots)
  2118. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2119. it.fail = err
  2120. return false
  2121. }
  2122. it.Event.Raw = log
  2123. return true
  2124. case err := <-it.sub.Err():
  2125. it.done = true
  2126. it.fail = err
  2127. return it.Next()
  2128. }
  2129. }
  2130. // Error returns any retrieval or parsing error occurred during filtering.
  2131. func (it *HermezAuctionProtocolNewOpenAuctionSlotsIterator) Error() error {
  2132. return it.fail
  2133. }
  2134. // Close terminates the iteration process, releasing any pending underlying
  2135. // resources.
  2136. func (it *HermezAuctionProtocolNewOpenAuctionSlotsIterator) Close() error {
  2137. it.sub.Unsubscribe()
  2138. return nil
  2139. }
  2140. // HermezAuctionProtocolNewOpenAuctionSlots represents a NewOpenAuctionSlots event raised by the HermezAuctionProtocol contract.
  2141. type HermezAuctionProtocolNewOpenAuctionSlots struct {
  2142. NewOpenAuctionSlots uint16
  2143. Raw types.Log // Blockchain specific contextual infos
  2144. }
  2145. // FilterNewOpenAuctionSlots is a free log retrieval operation binding the contract event 0x3da0492dea7298351bc14d1c0699905fd0657c33487449751af50fc0c8b593f1.
  2146. //
  2147. // Solidity: event NewOpenAuctionSlots(uint16 newOpenAuctionSlots)
  2148. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewOpenAuctionSlots(opts *bind.FilterOpts) (*HermezAuctionProtocolNewOpenAuctionSlotsIterator, error) {
  2149. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewOpenAuctionSlots")
  2150. if err != nil {
  2151. return nil, err
  2152. }
  2153. return &HermezAuctionProtocolNewOpenAuctionSlotsIterator{contract: _HermezAuctionProtocol.contract, event: "NewOpenAuctionSlots", logs: logs, sub: sub}, nil
  2154. }
  2155. // WatchNewOpenAuctionSlots is a free log subscription operation binding the contract event 0x3da0492dea7298351bc14d1c0699905fd0657c33487449751af50fc0c8b593f1.
  2156. //
  2157. // Solidity: event NewOpenAuctionSlots(uint16 newOpenAuctionSlots)
  2158. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewOpenAuctionSlots(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewOpenAuctionSlots) (event.Subscription, error) {
  2159. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewOpenAuctionSlots")
  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(HermezAuctionProtocolNewOpenAuctionSlots)
  2170. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewOpenAuctionSlots", 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. // ParseNewOpenAuctionSlots is a log parse operation binding the contract event 0x3da0492dea7298351bc14d1c0699905fd0657c33487449751af50fc0c8b593f1.
  2190. //
  2191. // Solidity: event NewOpenAuctionSlots(uint16 newOpenAuctionSlots)
  2192. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewOpenAuctionSlots(log types.Log) (*HermezAuctionProtocolNewOpenAuctionSlots, error) {
  2193. event := new(HermezAuctionProtocolNewOpenAuctionSlots)
  2194. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewOpenAuctionSlots", log); err != nil {
  2195. return nil, err
  2196. }
  2197. return event, nil
  2198. }
  2199. // 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.
  2200. type HermezAuctionProtocolNewOutbiddingIterator struct {
  2201. Event *HermezAuctionProtocolNewOutbidding // 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 *HermezAuctionProtocolNewOutbiddingIterator) 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(HermezAuctionProtocolNewOutbidding)
  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(HermezAuctionProtocolNewOutbidding)
  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 *HermezAuctionProtocolNewOutbiddingIterator) Error() error {
  2250. return it.fail
  2251. }
  2252. // Close terminates the iteration process, releasing any pending underlying
  2253. // resources.
  2254. func (it *HermezAuctionProtocolNewOutbiddingIterator) Close() error {
  2255. it.sub.Unsubscribe()
  2256. return nil
  2257. }
  2258. // HermezAuctionProtocolNewOutbidding represents a NewOutbidding event raised by the HermezAuctionProtocol contract.
  2259. type HermezAuctionProtocolNewOutbidding struct {
  2260. NewOutbidding uint16
  2261. Raw types.Log // Blockchain specific contextual infos
  2262. }
  2263. // FilterNewOutbidding is a free log retrieval operation binding the contract event 0xd3748b8c326e93d12af934fbf87471e315a89bc3f7b8222343acf0210edf248e.
  2264. //
  2265. // Solidity: event NewOutbidding(uint16 newOutbidding)
  2266. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewOutbidding(opts *bind.FilterOpts) (*HermezAuctionProtocolNewOutbiddingIterator, error) {
  2267. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewOutbidding")
  2268. if err != nil {
  2269. return nil, err
  2270. }
  2271. return &HermezAuctionProtocolNewOutbiddingIterator{contract: _HermezAuctionProtocol.contract, event: "NewOutbidding", logs: logs, sub: sub}, nil
  2272. }
  2273. // WatchNewOutbidding is a free log subscription operation binding the contract event 0xd3748b8c326e93d12af934fbf87471e315a89bc3f7b8222343acf0210edf248e.
  2274. //
  2275. // Solidity: event NewOutbidding(uint16 newOutbidding)
  2276. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewOutbidding(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewOutbidding) (event.Subscription, error) {
  2277. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewOutbidding")
  2278. if err != nil {
  2279. return nil, err
  2280. }
  2281. return event.NewSubscription(func(quit <-chan struct{}) error {
  2282. defer sub.Unsubscribe()
  2283. for {
  2284. select {
  2285. case log := <-logs:
  2286. // New log arrived, parse the event and forward to the user
  2287. event := new(HermezAuctionProtocolNewOutbidding)
  2288. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewOutbidding", log); err != nil {
  2289. return err
  2290. }
  2291. event.Raw = log
  2292. select {
  2293. case sink <- event:
  2294. case err := <-sub.Err():
  2295. return err
  2296. case <-quit:
  2297. return nil
  2298. }
  2299. case err := <-sub.Err():
  2300. return err
  2301. case <-quit:
  2302. return nil
  2303. }
  2304. }
  2305. }), nil
  2306. }
  2307. // ParseNewOutbidding is a log parse operation binding the contract event 0xd3748b8c326e93d12af934fbf87471e315a89bc3f7b8222343acf0210edf248e.
  2308. //
  2309. // Solidity: event NewOutbidding(uint16 newOutbidding)
  2310. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewOutbidding(log types.Log) (*HermezAuctionProtocolNewOutbidding, error) {
  2311. event := new(HermezAuctionProtocolNewOutbidding)
  2312. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewOutbidding", log); err != nil {
  2313. return nil, err
  2314. }
  2315. return event, nil
  2316. }
  2317. // 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.
  2318. type HermezAuctionProtocolNewSlotDeadlineIterator struct {
  2319. Event *HermezAuctionProtocolNewSlotDeadline // Event containing the contract specifics and raw log
  2320. contract *bind.BoundContract // Generic contract to use for unpacking event data
  2321. event string // Event name to use for unpacking event data
  2322. logs chan types.Log // Log channel receiving the found contract events
  2323. sub ethereum.Subscription // Subscription for errors, completion and termination
  2324. done bool // Whether the subscription completed delivering logs
  2325. fail error // Occurred error to stop iteration
  2326. }
  2327. // Next advances the iterator to the subsequent event, returning whether there
  2328. // are any more events found. In case of a retrieval or parsing error, false is
  2329. // returned and Error() can be queried for the exact failure.
  2330. func (it *HermezAuctionProtocolNewSlotDeadlineIterator) Next() bool {
  2331. // If the iterator failed, stop iterating
  2332. if it.fail != nil {
  2333. return false
  2334. }
  2335. // If the iterator completed, deliver directly whatever's available
  2336. if it.done {
  2337. select {
  2338. case log := <-it.logs:
  2339. it.Event = new(HermezAuctionProtocolNewSlotDeadline)
  2340. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2341. it.fail = err
  2342. return false
  2343. }
  2344. it.Event.Raw = log
  2345. return true
  2346. default:
  2347. return false
  2348. }
  2349. }
  2350. // Iterator still in progress, wait for either a data or an error event
  2351. select {
  2352. case log := <-it.logs:
  2353. it.Event = new(HermezAuctionProtocolNewSlotDeadline)
  2354. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2355. it.fail = err
  2356. return false
  2357. }
  2358. it.Event.Raw = log
  2359. return true
  2360. case err := <-it.sub.Err():
  2361. it.done = true
  2362. it.fail = err
  2363. return it.Next()
  2364. }
  2365. }
  2366. // Error returns any retrieval or parsing error occurred during filtering.
  2367. func (it *HermezAuctionProtocolNewSlotDeadlineIterator) Error() error {
  2368. return it.fail
  2369. }
  2370. // Close terminates the iteration process, releasing any pending underlying
  2371. // resources.
  2372. func (it *HermezAuctionProtocolNewSlotDeadlineIterator) Close() error {
  2373. it.sub.Unsubscribe()
  2374. return nil
  2375. }
  2376. // HermezAuctionProtocolNewSlotDeadline represents a NewSlotDeadline event raised by the HermezAuctionProtocol contract.
  2377. type HermezAuctionProtocolNewSlotDeadline struct {
  2378. NewSlotDeadline uint8
  2379. Raw types.Log // Blockchain specific contextual infos
  2380. }
  2381. // FilterNewSlotDeadline is a free log retrieval operation binding the contract event 0x4a0d90b611c15e02dbf23b10f35b936cf2c77665f8c77822d3eca131f9d986d3.
  2382. //
  2383. // Solidity: event NewSlotDeadline(uint8 newSlotDeadline)
  2384. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewSlotDeadline(opts *bind.FilterOpts) (*HermezAuctionProtocolNewSlotDeadlineIterator, error) {
  2385. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "NewSlotDeadline")
  2386. if err != nil {
  2387. return nil, err
  2388. }
  2389. return &HermezAuctionProtocolNewSlotDeadlineIterator{contract: _HermezAuctionProtocol.contract, event: "NewSlotDeadline", logs: logs, sub: sub}, nil
  2390. }
  2391. // WatchNewSlotDeadline is a free log subscription operation binding the contract event 0x4a0d90b611c15e02dbf23b10f35b936cf2c77665f8c77822d3eca131f9d986d3.
  2392. //
  2393. // Solidity: event NewSlotDeadline(uint8 newSlotDeadline)
  2394. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewSlotDeadline(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolNewSlotDeadline) (event.Subscription, error) {
  2395. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "NewSlotDeadline")
  2396. if err != nil {
  2397. return nil, err
  2398. }
  2399. return event.NewSubscription(func(quit <-chan struct{}) error {
  2400. defer sub.Unsubscribe()
  2401. for {
  2402. select {
  2403. case log := <-logs:
  2404. // New log arrived, parse the event and forward to the user
  2405. event := new(HermezAuctionProtocolNewSlotDeadline)
  2406. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewSlotDeadline", log); err != nil {
  2407. return err
  2408. }
  2409. event.Raw = log
  2410. select {
  2411. case sink <- event:
  2412. case err := <-sub.Err():
  2413. return err
  2414. case <-quit:
  2415. return nil
  2416. }
  2417. case err := <-sub.Err():
  2418. return err
  2419. case <-quit:
  2420. return nil
  2421. }
  2422. }
  2423. }), nil
  2424. }
  2425. // ParseNewSlotDeadline is a log parse operation binding the contract event 0x4a0d90b611c15e02dbf23b10f35b936cf2c77665f8c77822d3eca131f9d986d3.
  2426. //
  2427. // Solidity: event NewSlotDeadline(uint8 newSlotDeadline)
  2428. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseNewSlotDeadline(log types.Log) (*HermezAuctionProtocolNewSlotDeadline, error) {
  2429. event := new(HermezAuctionProtocolNewSlotDeadline)
  2430. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "NewSlotDeadline", log); err != nil {
  2431. return nil, err
  2432. }
  2433. return event, nil
  2434. }
  2435. // HermezAuctionProtocolSetCoordinatorIterator is returned from FilterSetCoordinator and is used to iterate over the raw logs and unpacked data for SetCoordinator events raised by the HermezAuctionProtocol contract.
  2436. type HermezAuctionProtocolSetCoordinatorIterator struct {
  2437. Event *HermezAuctionProtocolSetCoordinator // Event containing the contract specifics and raw log
  2438. contract *bind.BoundContract // Generic contract to use for unpacking event data
  2439. event string // Event name to use for unpacking event data
  2440. logs chan types.Log // Log channel receiving the found contract events
  2441. sub ethereum.Subscription // Subscription for errors, completion and termination
  2442. done bool // Whether the subscription completed delivering logs
  2443. fail error // Occurred error to stop iteration
  2444. }
  2445. // Next advances the iterator to the subsequent event, returning whether there
  2446. // are any more events found. In case of a retrieval or parsing error, false is
  2447. // returned and Error() can be queried for the exact failure.
  2448. func (it *HermezAuctionProtocolSetCoordinatorIterator) Next() bool {
  2449. // If the iterator failed, stop iterating
  2450. if it.fail != nil {
  2451. return false
  2452. }
  2453. // If the iterator completed, deliver directly whatever's available
  2454. if it.done {
  2455. select {
  2456. case log := <-it.logs:
  2457. it.Event = new(HermezAuctionProtocolSetCoordinator)
  2458. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2459. it.fail = err
  2460. return false
  2461. }
  2462. it.Event.Raw = log
  2463. return true
  2464. default:
  2465. return false
  2466. }
  2467. }
  2468. // Iterator still in progress, wait for either a data or an error event
  2469. select {
  2470. case log := <-it.logs:
  2471. it.Event = new(HermezAuctionProtocolSetCoordinator)
  2472. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  2473. it.fail = err
  2474. return false
  2475. }
  2476. it.Event.Raw = log
  2477. return true
  2478. case err := <-it.sub.Err():
  2479. it.done = true
  2480. it.fail = err
  2481. return it.Next()
  2482. }
  2483. }
  2484. // Error returns any retrieval or parsing error occurred during filtering.
  2485. func (it *HermezAuctionProtocolSetCoordinatorIterator) Error() error {
  2486. return it.fail
  2487. }
  2488. // Close terminates the iteration process, releasing any pending underlying
  2489. // resources.
  2490. func (it *HermezAuctionProtocolSetCoordinatorIterator) Close() error {
  2491. it.sub.Unsubscribe()
  2492. return nil
  2493. }
  2494. // HermezAuctionProtocolSetCoordinator represents a SetCoordinator event raised by the HermezAuctionProtocol contract.
  2495. type HermezAuctionProtocolSetCoordinator struct {
  2496. Bidder common.Address
  2497. Forger common.Address
  2498. CoordinatorURL string
  2499. Raw types.Log // Blockchain specific contextual infos
  2500. }
  2501. // FilterSetCoordinator is a free log retrieval operation binding the contract event 0x5246b2ac9ee77efe2e64af6df00055d97e2d6e1b277f5a8d17ba5bca1a573da0.
  2502. //
  2503. // Solidity: event SetCoordinator(address indexed bidder, address indexed forger, string coordinatorURL)
  2504. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterSetCoordinator(opts *bind.FilterOpts, bidder []common.Address, forger []common.Address) (*HermezAuctionProtocolSetCoordinatorIterator, error) {
  2505. var bidderRule []interface{}
  2506. for _, bidderItem := range bidder {
  2507. bidderRule = append(bidderRule, bidderItem)
  2508. }
  2509. var forgerRule []interface{}
  2510. for _, forgerItem := range forger {
  2511. forgerRule = append(forgerRule, forgerItem)
  2512. }
  2513. logs, sub, err := _HermezAuctionProtocol.contract.FilterLogs(opts, "SetCoordinator", bidderRule, forgerRule)
  2514. if err != nil {
  2515. return nil, err
  2516. }
  2517. return &HermezAuctionProtocolSetCoordinatorIterator{contract: _HermezAuctionProtocol.contract, event: "SetCoordinator", logs: logs, sub: sub}, nil
  2518. }
  2519. // WatchSetCoordinator is a free log subscription operation binding the contract event 0x5246b2ac9ee77efe2e64af6df00055d97e2d6e1b277f5a8d17ba5bca1a573da0.
  2520. //
  2521. // Solidity: event SetCoordinator(address indexed bidder, address indexed forger, string coordinatorURL)
  2522. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchSetCoordinator(opts *bind.WatchOpts, sink chan<- *HermezAuctionProtocolSetCoordinator, bidder []common.Address, forger []common.Address) (event.Subscription, error) {
  2523. var bidderRule []interface{}
  2524. for _, bidderItem := range bidder {
  2525. bidderRule = append(bidderRule, bidderItem)
  2526. }
  2527. var forgerRule []interface{}
  2528. for _, forgerItem := range forger {
  2529. forgerRule = append(forgerRule, forgerItem)
  2530. }
  2531. logs, sub, err := _HermezAuctionProtocol.contract.WatchLogs(opts, "SetCoordinator", bidderRule, forgerRule)
  2532. if err != nil {
  2533. return nil, err
  2534. }
  2535. return event.NewSubscription(func(quit <-chan struct{}) error {
  2536. defer sub.Unsubscribe()
  2537. for {
  2538. select {
  2539. case log := <-logs:
  2540. // New log arrived, parse the event and forward to the user
  2541. event := new(HermezAuctionProtocolSetCoordinator)
  2542. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "SetCoordinator", log); err != nil {
  2543. return err
  2544. }
  2545. event.Raw = log
  2546. select {
  2547. case sink <- event:
  2548. case err := <-sub.Err():
  2549. return err
  2550. case <-quit:
  2551. return nil
  2552. }
  2553. case err := <-sub.Err():
  2554. return err
  2555. case <-quit:
  2556. return nil
  2557. }
  2558. }
  2559. }), nil
  2560. }
  2561. // ParseSetCoordinator is a log parse operation binding the contract event 0x5246b2ac9ee77efe2e64af6df00055d97e2d6e1b277f5a8d17ba5bca1a573da0.
  2562. //
  2563. // Solidity: event SetCoordinator(address indexed bidder, address indexed forger, string coordinatorURL)
  2564. func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) ParseSetCoordinator(log types.Log) (*HermezAuctionProtocolSetCoordinator, error) {
  2565. event := new(HermezAuctionProtocolSetCoordinator)
  2566. if err := _HermezAuctionProtocol.contract.UnpackLog(event, "SetCoordinator", log); err != nil {
  2567. return nil, err
  2568. }
  2569. return event, nil
  2570. }