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