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.

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