Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNilBidderAddr is used when a nil bidderAddr is received in the getCoordinator method ErrNilBidderAddr = errors.New("biderAddr can not be nil") )
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API serves HTTP requests to allow external interaction with the Hermez node
type Config ¶
type Config struct {
RollupConstants common.RollupConstants
AuctionConstants common.AuctionConstants
WDelayerConstants common.WDelayerConstants
ChainID uint16
HermezAddress ethCommon.Address
}
Config of the API
type SlotAPI ¶
type SlotAPI struct {
ItemID uint64 `json:"itemId"`
SlotNum int64 `json:"slotNum"`
FirstBlock int64 `json:"firstBlock"`
LastBlock int64 `json:"lastBlock"`
OpenAuction bool `json:"openAuction"`
WinnerBid *historydb.BidAPI `json:"bestBid"`
}
SlotAPI is a representation of a slot information
Source Files
¶
Click to show internal directories.
Click to hide internal directories.