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.

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