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.

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