@ -13,6 +13,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"
"github.com/hermeznetwork/tracerr"
)
// Reference imports to suppress errors if they are not otherwise used.
@ -36,12 +37,12 @@ var HermezAuctionProtocolBin = "0x608060405234801561001057600080fd5b50613d678061
func DeployHermezAuctionProtocol ( auth * bind . TransactOpts , backend bind . ContractBackend ) ( common . Address , * types . Transaction , * HermezAuctionProtocol , error ) {
parsed , err := abi . JSON ( strings . NewReader ( HermezAuctionProtocolABI ) )
if err != nil {
return common . Address { } , nil , nil , err
return common . Address { } , nil , nil , trac err. Wrap ( err )
}
address , tx , contract , err := bind . DeployContract ( auth , parsed , common . FromHex ( HermezAuctionProtocolBin ) , backend )
if err != nil {
return common . Address { } , nil , nil , err
return common . Address { } , nil , nil , trac err. Wrap ( err )
}
return address , tx , & HermezAuctionProtocol { HermezAuctionProtocolCaller : HermezAuctionProtocolCaller { contract : contract } , HermezAuctionProtocolTransactor : HermezAuctionProtocolTransactor { contract : contract } , HermezAuctionProtocolFilterer : HermezAuctionProtocolFilterer { contract : contract } } , nil
}
@ -109,7 +110,7 @@ type HermezAuctionProtocolTransactorRaw struct {
func NewHermezAuctionProtocol ( address common . Address , backend bind . ContractBackend ) ( * HermezAuctionProtocol , error ) {
contract , err := bindHermezAuctionProtocol ( address , backend , backend , backend )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return & HermezAuctionProtocol { HermezAuctionProtocolCaller : HermezAuctionProtocolCaller { contract : contract } , HermezAuctionProtocolTransactor : HermezAuctionProtocolTransactor { contract : contract } , HermezAuctionProtocolFilterer : HermezAuctionProtocolFilterer { contract : contract } } , nil
}
@ -118,7 +119,7 @@ func NewHermezAuctionProtocol(address common.Address, backend bind.ContractBacke
func NewHermezAuctionProtocolCaller ( address common . Address , caller bind . ContractCaller ) ( * HermezAuctionProtocolCaller , error ) {
contract , err := bindHermezAuctionProtocol ( address , caller , nil , nil )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return & HermezAuctionProtocolCaller { contract : contract } , nil
}
@ -127,7 +128,7 @@ func NewHermezAuctionProtocolCaller(address common.Address, caller bind.Contract
func NewHermezAuctionProtocolTransactor ( address common . Address , transactor bind . ContractTransactor ) ( * HermezAuctionProtocolTransactor , error ) {
contract , err := bindHermezAuctionProtocol ( address , nil , transactor , nil )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return & HermezAuctionProtocolTransactor { contract : contract } , nil
}
@ -136,7 +137,7 @@ func NewHermezAuctionProtocolTransactor(address common.Address, transactor bind.
func NewHermezAuctionProtocolFilterer ( address common . Address , filterer bind . ContractFilterer ) ( * HermezAuctionProtocolFilterer , error ) {
contract , err := bindHermezAuctionProtocol ( address , nil , nil , filterer )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return & HermezAuctionProtocolFilterer { contract : contract } , nil
}
@ -145,7 +146,7 @@ func NewHermezAuctionProtocolFilterer(address common.Address, filterer bind.Cont
func bindHermezAuctionProtocol ( address common . Address , caller bind . ContractCaller , transactor bind . ContractTransactor , filterer bind . ContractFilterer ) ( * bind . BoundContract , error ) {
parsed , err := abi . JSON ( strings . NewReader ( HermezAuctionProtocolABI ) )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return bind . NewBoundContract ( address , parsed , caller , transactor , filterer ) , nil
}
@ -197,7 +198,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) BLOCKSPERSLOT(opts *b
)
out := ret0
err := _HermezAuctionProtocol . contract . Call ( opts , out , "BLOCKS_PER_SLOT" )
return * ret0 , err
return * ret0 , trac err. Wrap ( err )
}
// BLOCKSPERSLOT is a free data retrieval call binding the contract method 0x2243de47.
@ -223,7 +224,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) INITIALMINIMALBIDDING
)
out := ret0
err := _HermezAuctionProtocol . contract . Call ( opts , out , "INITIAL_MINIMAL_BIDDING" )
return * ret0 , err
return * ret0 , trac err. Wrap ( err )
}
// INITIALMINIMALBIDDING is a free data retrieval call binding the contract method 0xe6065914.
@ -249,7 +250,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) CanForge(opts *bind.C
)
out := ret0
err := _HermezAuctionProtocol . contract . Call ( opts , out , "canForge" , forger , blockNumber )
return * ret0 , err
return * ret0 , trac err. Wrap ( err )
}
// CanForge is a free data retrieval call binding the contract method 0x83b1f6a0.
@ -279,7 +280,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) Coordinators(opts *bi
} )
out := ret
err := _HermezAuctionProtocol . contract . Call ( opts , out , "coordinators" , arg0 )
return * ret , err
return * ret , trac err. Wrap ( err )
}
// Coordinators is a free data retrieval call binding the contract method 0xa48af096.
@ -311,7 +312,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GenesisBlock(opts *bi
)
out := ret0
err := _HermezAuctionProtocol . contract . Call ( opts , out , "genesisBlock" )
return * ret0 , err
return * ret0 , trac err. Wrap ( err )
}
// GenesisBlock is a free data retrieval call binding the contract method 0x4cdc9c63.
@ -337,7 +338,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetAllocationRatio(op
)
out := ret0
err := _HermezAuctionProtocol . contract . Call ( opts , out , "getAllocationRatio" )
return * ret0 , err
return * ret0 , trac err. Wrap ( err )
}
// GetAllocationRatio is a free data retrieval call binding the contract method 0xec29159b.
@ -363,7 +364,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetBootCoordinator(op
)
out := ret0
err := _HermezAuctionProtocol . contract . Call ( opts , out , "getBootCoordinator" )
return * ret0 , err
return * ret0 , trac err. Wrap ( err )
}
// GetBootCoordinator is a free data retrieval call binding the contract method 0xb5f7f2f0.
@ -389,7 +390,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetClaimableHEZ(opts
)
out := ret0
err := _HermezAuctionProtocol . contract . Call ( opts , out , "getClaimableHEZ" , bidder )
return * ret0 , err
return * ret0 , trac err. Wrap ( err )
}
// GetClaimableHEZ is a free data retrieval call binding the contract method 0x5cca4903.
@ -415,7 +416,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetClosedAuctionSlots
)
out := ret0
err := _HermezAuctionProtocol . contract . Call ( opts , out , "getClosedAuctionSlots" )
return * ret0 , err
return * ret0 , trac err. Wrap ( err )
}
// GetClosedAuctionSlots is a free data retrieval call binding the contract method 0x4da9639d.
@ -441,7 +442,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetCurrentSlotNumber(
)
out := ret0
err := _HermezAuctionProtocol . contract . Call ( opts , out , "getCurrentSlotNumber" )
return * ret0 , err
return * ret0 , trac err. Wrap ( err )
}
// GetCurrentSlotNumber is a free data retrieval call binding the contract method 0x0c4da4f6.
@ -467,7 +468,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetDefaultSlotSetBid(
)
out := ret0
err := _HermezAuctionProtocol . contract . Call ( opts , out , "getDefaultSlotSetBid" , slotSet )
return * ret0 , err
return * ret0 , trac err. Wrap ( err )
}
// GetDefaultSlotSetBid is a free data retrieval call binding the contract method 0x564e6a71.
@ -493,7 +494,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetDonationAddress(op
)
out := ret0
err := _HermezAuctionProtocol . contract . Call ( opts , out , "getDonationAddress" )
return * ret0 , err
return * ret0 , trac err. Wrap ( err )
}
// GetDonationAddress is a free data retrieval call binding the contract method 0x54c03ab7.
@ -519,7 +520,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetMinBidBySlot(opts
)
out := ret0
err := _HermezAuctionProtocol . contract . Call ( opts , out , "getMinBidBySlot" , slot )
return * ret0 , err
return * ret0 , trac err. Wrap ( err )
}
// GetMinBidBySlot is a free data retrieval call binding the contract method 0x37d1bd0b.
@ -545,7 +546,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetOpenAuctionSlots(o
)
out := ret0
err := _HermezAuctionProtocol . contract . Call ( opts , out , "getOpenAuctionSlots" )
return * ret0 , err
return * ret0 , trac err. Wrap ( err )
}
// GetOpenAuctionSlots is a free data retrieval call binding the contract method 0xac4b9012.
@ -571,7 +572,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetOutbidding(opts *b
)
out := ret0
err := _HermezAuctionProtocol . contract . Call ( opts , out , "getOutbidding" )
return * ret0 , err
return * ret0 , trac err. Wrap ( err )
}
// GetOutbidding is a free data retrieval call binding the contract method 0x55b442e6.
@ -597,7 +598,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetSlotDeadline(opts
)
out := ret0
err := _HermezAuctionProtocol . contract . Call ( opts , out , "getSlotDeadline" )
return * ret0 , err
return * ret0 , trac err. Wrap ( err )
}
// GetSlotDeadline is a free data retrieval call binding the contract method 0x13de9af2.
@ -623,7 +624,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetSlotNumber(opts *b
)
out := ret0
err := _HermezAuctionProtocol . contract . Call ( opts , out , "getSlotNumber" , blockNumber )
return * ret0 , err
return * ret0 , trac err. Wrap ( err )
}
// GetSlotNumber is a free data retrieval call binding the contract method 0xb3dc7bb1.
@ -649,7 +650,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) GetSlotSet(opts *bind
)
out := ret0
err := _HermezAuctionProtocol . contract . Call ( opts , out , "getSlotSet" , slot )
return * ret0 , err
return * ret0 , trac err. Wrap ( err )
}
// GetSlotSet is a free data retrieval call binding the contract method 0xac5f658b.
@ -675,7 +676,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) HermezRollup(opts *bi
)
out := ret0
err := _HermezAuctionProtocol . contract . Call ( opts , out , "hermezRollup" )
return * ret0 , err
return * ret0 , trac err. Wrap ( err )
}
// HermezRollup is a free data retrieval call binding the contract method 0xaebd6d98.
@ -701,7 +702,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) PendingBalances(opts
)
out := ret0
err := _HermezAuctionProtocol . contract . Call ( opts , out , "pendingBalances" , arg0 )
return * ret0 , err
return * ret0 , trac err. Wrap ( err )
}
// PendingBalances is a free data retrieval call binding the contract method 0xecdae41b.
@ -735,7 +736,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) Slots(opts *bind.Call
} )
out := ret
err := _HermezAuctionProtocol . contract . Call ( opts , out , "slots" , arg0 )
return * ret , err
return * ret , trac err. Wrap ( err )
}
// Slots is a free data retrieval call binding the contract method 0xbc415567.
@ -771,7 +772,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolCaller) TokenHEZ(opts *bind.C
)
out := ret0
err := _HermezAuctionProtocol . contract . Call ( opts , out , "tokenHEZ" )
return * ret0 , err
return * ret0 , trac err. Wrap ( err )
}
// TokenHEZ is a free data retrieval call binding the contract method 0x79a135e3.
@ -1168,7 +1169,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterHEZClaimed(op
logs , sub , err := _HermezAuctionProtocol . contract . FilterLogs ( opts , "HEZClaimed" , ownerRule )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return & HermezAuctionProtocolHEZClaimedIterator { contract : _HermezAuctionProtocol . contract , event : "HEZClaimed" , logs : logs , sub : sub } , nil
}
@ -1185,7 +1186,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchHEZClaimed(opt
logs , sub , err := _HermezAuctionProtocol . contract . WatchLogs ( opts , "HEZClaimed" , ownerRule )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
@ -1195,19 +1196,19 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchHEZClaimed(opt
// New log arrived, parse the event and forward to the user
event := new ( HermezAuctionProtocolHEZClaimed )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "HEZClaimed" , log ) ; err != nil {
return err
return trac err. Wrap ( err )
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
@ -1221,7 +1222,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchHEZClaimed(opt
func ( _HermezAuctionProtocol * HermezAuctionProtocolFilterer ) ParseHEZClaimed ( log types . Log ) ( * HermezAuctionProtocolHEZClaimed , error ) {
event := new ( HermezAuctionProtocolHEZClaimed )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "HEZClaimed" , log ) ; err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event , nil
}
@ -1306,7 +1307,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewAllocation
logs , sub , err := _HermezAuctionProtocol . contract . FilterLogs ( opts , "NewAllocationRatio" )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return & HermezAuctionProtocolNewAllocationRatioIterator { contract : _HermezAuctionProtocol . contract , event : "NewAllocationRatio" , logs : logs , sub : sub } , nil
}
@ -1318,7 +1319,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewAllocationR
logs , sub , err := _HermezAuctionProtocol . contract . WatchLogs ( opts , "NewAllocationRatio" )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
@ -1328,19 +1329,19 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewAllocationR
// New log arrived, parse the event and forward to the user
event := new ( HermezAuctionProtocolNewAllocationRatio )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewAllocationRatio" , log ) ; err != nil {
return err
return trac err. Wrap ( err )
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
@ -1354,7 +1355,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewAllocationR
func ( _HermezAuctionProtocol * HermezAuctionProtocolFilterer ) ParseNewAllocationRatio ( log types . Log ) ( * HermezAuctionProtocolNewAllocationRatio , error ) {
event := new ( HermezAuctionProtocolNewAllocationRatio )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewAllocationRatio" , log ) ; err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event , nil
}
@ -1451,7 +1452,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewBid(opts *
logs , sub , err := _HermezAuctionProtocol . contract . FilterLogs ( opts , "NewBid" , slotRule , bidderRule )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return & HermezAuctionProtocolNewBidIterator { contract : _HermezAuctionProtocol . contract , event : "NewBid" , logs : logs , sub : sub } , nil
}
@ -1473,7 +1474,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewBid(opts *b
logs , sub , err := _HermezAuctionProtocol . contract . WatchLogs ( opts , "NewBid" , slotRule , bidderRule )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
@ -1483,19 +1484,19 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewBid(opts *b
// New log arrived, parse the event and forward to the user
event := new ( HermezAuctionProtocolNewBid )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewBid" , log ) ; err != nil {
return err
return trac err. Wrap ( err )
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
@ -1509,7 +1510,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewBid(opts *b
func ( _HermezAuctionProtocol * HermezAuctionProtocolFilterer ) ParseNewBid ( log types . Log ) ( * HermezAuctionProtocolNewBid , error ) {
event := new ( HermezAuctionProtocolNewBid )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewBid" , log ) ; err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event , nil
}
@ -1599,7 +1600,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewBootCoordi
logs , sub , err := _HermezAuctionProtocol . contract . FilterLogs ( opts , "NewBootCoordinator" , newBootCoordinatorRule )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return & HermezAuctionProtocolNewBootCoordinatorIterator { contract : _HermezAuctionProtocol . contract , event : "NewBootCoordinator" , logs : logs , sub : sub } , nil
}
@ -1616,7 +1617,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewBootCoordin
logs , sub , err := _HermezAuctionProtocol . contract . WatchLogs ( opts , "NewBootCoordinator" , newBootCoordinatorRule )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
@ -1626,19 +1627,19 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewBootCoordin
// New log arrived, parse the event and forward to the user
event := new ( HermezAuctionProtocolNewBootCoordinator )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewBootCoordinator" , log ) ; err != nil {
return err
return trac err. Wrap ( err )
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
@ -1652,7 +1653,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewBootCoordin
func ( _HermezAuctionProtocol * HermezAuctionProtocolFilterer ) ParseNewBootCoordinator ( log types . Log ) ( * HermezAuctionProtocolNewBootCoordinator , error ) {
event := new ( HermezAuctionProtocolNewBootCoordinator )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewBootCoordinator" , log ) ; err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event , nil
}
@ -1737,7 +1738,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewClosedAuct
logs , sub , err := _HermezAuctionProtocol . contract . FilterLogs ( opts , "NewClosedAuctionSlots" )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return & HermezAuctionProtocolNewClosedAuctionSlotsIterator { contract : _HermezAuctionProtocol . contract , event : "NewClosedAuctionSlots" , logs : logs , sub : sub } , nil
}
@ -1749,7 +1750,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewClosedAucti
logs , sub , err := _HermezAuctionProtocol . contract . WatchLogs ( opts , "NewClosedAuctionSlots" )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
@ -1759,19 +1760,19 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewClosedAucti
// New log arrived, parse the event and forward to the user
event := new ( HermezAuctionProtocolNewClosedAuctionSlots )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewClosedAuctionSlots" , log ) ; err != nil {
return err
return trac err. Wrap ( err )
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
@ -1785,7 +1786,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewClosedAucti
func ( _HermezAuctionProtocol * HermezAuctionProtocolFilterer ) ParseNewClosedAuctionSlots ( log types . Log ) ( * HermezAuctionProtocolNewClosedAuctionSlots , error ) {
event := new ( HermezAuctionProtocolNewClosedAuctionSlots )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewClosedAuctionSlots" , log ) ; err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event , nil
}
@ -1871,7 +1872,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewDefaultSlo
logs , sub , err := _HermezAuctionProtocol . contract . FilterLogs ( opts , "NewDefaultSlotSetBid" )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return & HermezAuctionProtocolNewDefaultSlotSetBidIterator { contract : _HermezAuctionProtocol . contract , event : "NewDefaultSlotSetBid" , logs : logs , sub : sub } , nil
}
@ -1883,7 +1884,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewDefaultSlot
logs , sub , err := _HermezAuctionProtocol . contract . WatchLogs ( opts , "NewDefaultSlotSetBid" )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
@ -1893,19 +1894,19 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewDefaultSlot
// New log arrived, parse the event and forward to the user
event := new ( HermezAuctionProtocolNewDefaultSlotSetBid )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewDefaultSlotSetBid" , log ) ; err != nil {
return err
return trac err. Wrap ( err )
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
@ -1919,7 +1920,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewDefaultSlot
func ( _HermezAuctionProtocol * HermezAuctionProtocolFilterer ) ParseNewDefaultSlotSetBid ( log types . Log ) ( * HermezAuctionProtocolNewDefaultSlotSetBid , error ) {
event := new ( HermezAuctionProtocolNewDefaultSlotSetBid )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewDefaultSlotSetBid" , log ) ; err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event , nil
}
@ -2009,7 +2010,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewDonationAd
logs , sub , err := _HermezAuctionProtocol . contract . FilterLogs ( opts , "NewDonationAddress" , newDonationAddressRule )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return & HermezAuctionProtocolNewDonationAddressIterator { contract : _HermezAuctionProtocol . contract , event : "NewDonationAddress" , logs : logs , sub : sub } , nil
}
@ -2026,7 +2027,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewDonationAdd
logs , sub , err := _HermezAuctionProtocol . contract . WatchLogs ( opts , "NewDonationAddress" , newDonationAddressRule )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
@ -2036,19 +2037,19 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewDonationAdd
// New log arrived, parse the event and forward to the user
event := new ( HermezAuctionProtocolNewDonationAddress )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewDonationAddress" , log ) ; err != nil {
return err
return trac err. Wrap ( err )
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
@ -2062,7 +2063,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewDonationAdd
func ( _HermezAuctionProtocol * HermezAuctionProtocolFilterer ) ParseNewDonationAddress ( log types . Log ) ( * HermezAuctionProtocolNewDonationAddress , error ) {
event := new ( HermezAuctionProtocolNewDonationAddress )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewDonationAddress" , log ) ; err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event , nil
}
@ -2157,7 +2158,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewForge(opts
logs , sub , err := _HermezAuctionProtocol . contract . FilterLogs ( opts , "NewForge" , forgerRule , slotToForgeRule )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return & HermezAuctionProtocolNewForgeIterator { contract : _HermezAuctionProtocol . contract , event : "NewForge" , logs : logs , sub : sub } , nil
}
@ -2178,7 +2179,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewForge(opts
logs , sub , err := _HermezAuctionProtocol . contract . WatchLogs ( opts , "NewForge" , forgerRule , slotToForgeRule )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
@ -2188,19 +2189,19 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewForge(opts
// New log arrived, parse the event and forward to the user
event := new ( HermezAuctionProtocolNewForge )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewForge" , log ) ; err != nil {
return err
return trac err. Wrap ( err )
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
@ -2214,7 +2215,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewForge(opts
func ( _HermezAuctionProtocol * HermezAuctionProtocolFilterer ) ParseNewForge ( log types . Log ) ( * HermezAuctionProtocolNewForge , error ) {
event := new ( HermezAuctionProtocolNewForge )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewForge" , log ) ; err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event , nil
}
@ -2317,7 +2318,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewForgeAlloc
logs , sub , err := _HermezAuctionProtocol . contract . FilterLogs ( opts , "NewForgeAllocated" , bidderRule , forgerRule , slotToForgeRule )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return & HermezAuctionProtocolNewForgeAllocatedIterator { contract : _HermezAuctionProtocol . contract , event : "NewForgeAllocated" , logs : logs , sub : sub } , nil
}
@ -2342,7 +2343,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewForgeAlloca
logs , sub , err := _HermezAuctionProtocol . contract . WatchLogs ( opts , "NewForgeAllocated" , bidderRule , forgerRule , slotToForgeRule )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
@ -2352,19 +2353,19 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewForgeAlloca
// New log arrived, parse the event and forward to the user
event := new ( HermezAuctionProtocolNewForgeAllocated )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewForgeAllocated" , log ) ; err != nil {
return err
return trac err. Wrap ( err )
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
@ -2378,7 +2379,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewForgeAlloca
func ( _HermezAuctionProtocol * HermezAuctionProtocolFilterer ) ParseNewForgeAllocated ( log types . Log ) ( * HermezAuctionProtocolNewForgeAllocated , error ) {
event := new ( HermezAuctionProtocolNewForgeAllocated )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewForgeAllocated" , log ) ; err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event , nil
}
@ -2463,7 +2464,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewOpenAuctio
logs , sub , err := _HermezAuctionProtocol . contract . FilterLogs ( opts , "NewOpenAuctionSlots" )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return & HermezAuctionProtocolNewOpenAuctionSlotsIterator { contract : _HermezAuctionProtocol . contract , event : "NewOpenAuctionSlots" , logs : logs , sub : sub } , nil
}
@ -2475,7 +2476,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewOpenAuction
logs , sub , err := _HermezAuctionProtocol . contract . WatchLogs ( opts , "NewOpenAuctionSlots" )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
@ -2485,19 +2486,19 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewOpenAuction
// New log arrived, parse the event and forward to the user
event := new ( HermezAuctionProtocolNewOpenAuctionSlots )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewOpenAuctionSlots" , log ) ; err != nil {
return err
return trac err. Wrap ( err )
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
@ -2511,7 +2512,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewOpenAuction
func ( _HermezAuctionProtocol * HermezAuctionProtocolFilterer ) ParseNewOpenAuctionSlots ( log types . Log ) ( * HermezAuctionProtocolNewOpenAuctionSlots , error ) {
event := new ( HermezAuctionProtocolNewOpenAuctionSlots )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewOpenAuctionSlots" , log ) ; err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event , nil
}
@ -2596,7 +2597,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewOutbidding
logs , sub , err := _HermezAuctionProtocol . contract . FilterLogs ( opts , "NewOutbidding" )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return & HermezAuctionProtocolNewOutbiddingIterator { contract : _HermezAuctionProtocol . contract , event : "NewOutbidding" , logs : logs , sub : sub } , nil
}
@ -2608,7 +2609,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewOutbidding(
logs , sub , err := _HermezAuctionProtocol . contract . WatchLogs ( opts , "NewOutbidding" )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
@ -2618,19 +2619,19 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewOutbidding(
// New log arrived, parse the event and forward to the user
event := new ( HermezAuctionProtocolNewOutbidding )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewOutbidding" , log ) ; err != nil {
return err
return trac err. Wrap ( err )
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
@ -2644,7 +2645,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewOutbidding(
func ( _HermezAuctionProtocol * HermezAuctionProtocolFilterer ) ParseNewOutbidding ( log types . Log ) ( * HermezAuctionProtocolNewOutbidding , error ) {
event := new ( HermezAuctionProtocolNewOutbidding )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewOutbidding" , log ) ; err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event , nil
}
@ -2729,7 +2730,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterNewSlotDeadli
logs , sub , err := _HermezAuctionProtocol . contract . FilterLogs ( opts , "NewSlotDeadline" )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return & HermezAuctionProtocolNewSlotDeadlineIterator { contract : _HermezAuctionProtocol . contract , event : "NewSlotDeadline" , logs : logs , sub : sub } , nil
}
@ -2741,7 +2742,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewSlotDeadlin
logs , sub , err := _HermezAuctionProtocol . contract . WatchLogs ( opts , "NewSlotDeadline" )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
@ -2751,19 +2752,19 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewSlotDeadlin
// New log arrived, parse the event and forward to the user
event := new ( HermezAuctionProtocolNewSlotDeadline )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewSlotDeadline" , log ) ; err != nil {
return err
return trac err. Wrap ( err )
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
@ -2777,7 +2778,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchNewSlotDeadlin
func ( _HermezAuctionProtocol * HermezAuctionProtocolFilterer ) ParseNewSlotDeadline ( log types . Log ) ( * HermezAuctionProtocolNewSlotDeadline , error ) {
event := new ( HermezAuctionProtocolNewSlotDeadline )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "NewSlotDeadline" , log ) ; err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event , nil
}
@ -2873,7 +2874,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) FilterSetCoordinato
logs , sub , err := _HermezAuctionProtocol . contract . FilterLogs ( opts , "SetCoordinator" , bidderRule , forgerRule )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return & HermezAuctionProtocolSetCoordinatorIterator { contract : _HermezAuctionProtocol . contract , event : "SetCoordinator" , logs : logs , sub : sub } , nil
}
@ -2894,7 +2895,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchSetCoordinator
logs , sub , err := _HermezAuctionProtocol . contract . WatchLogs ( opts , "SetCoordinator" , bidderRule , forgerRule )
if err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
@ -2904,19 +2905,19 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchSetCoordinator
// New log arrived, parse the event and forward to the user
event := new ( HermezAuctionProtocolSetCoordinator )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "SetCoordinator" , log ) ; err != nil {
return err
return trac err. Wrap ( err )
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
return trac err. Wrap ( err )
case <- quit :
return nil
}
@ -2930,7 +2931,7 @@ func (_HermezAuctionProtocol *HermezAuctionProtocolFilterer) WatchSetCoordinator
func ( _HermezAuctionProtocol * HermezAuctionProtocolFilterer ) ParseSetCoordinator ( log types . Log ) ( * HermezAuctionProtocolSetCoordinator , error ) {
event := new ( HermezAuctionProtocolSetCoordinator )
if err := _HermezAuctionProtocol . contract . UnpackLog ( event , "SetCoordinator" , log ) ; err != nil {
return nil , err
return nil , trac err. Wrap ( err )
}
return event , nil
}