Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auction ¶
type Auction struct { ID uint64 `json:"id"` Phase string `json:"phase"` Lot string `json:"lot"` Bid string `json:"bid"` Guy string `json:"guy"` Tic uint64 `json:"tic"` End uint64 `json:"end"` }
Auction defines an auction
type BidEvent ¶
type BidEvent struct { ID uint64 `json:"id"` Lot string `json:"lot"` Bid string `json:"bid"` Usr string `json:"usr"` BlockNum uint64 `json:"blockNum"` TxIndex uint64 `json:"txIndex"` }
BidEvent defines a bid event
type FlopParser ¶
type FlopParser struct {
// contains filtered or unexported fields
}
FlopParser defines a flop parser
func New ¶
func New( startBlockNum *big.Int, contract contracts.FlopContract, stateChan chan State, kickChan chan KickEvent, ) *FlopParser
New creates a new flop parser instance
type History ¶
type History struct { ID uint64 `json:"id"` Lot string `json:"lot"` Bid string `json:"bid"` Guy string `json:"guy"` End uint64 `json:"end"` }
History defines an auction history
type KickEvent ¶
type KickEvent struct { ID uint64 `json:"id"` Lot string `json:"lot"` Bid string `json:"bid"` BlockNum uint64 `json:"blockNum"` TxIndex uint64 `json:"txIndex"` }
KickEvent defines a kick event
type State ¶
type State struct { LastBlock uint64 `json:"lastBlock"` Auctions map[uint64]Auction `json:"auctions"` Histories map[uint64]History `json:"histories"` KickEvents map[uint64]KickEvent `json:"kickEvents"` LastBidEvents map[uint64]BidEvent `json:"bidEvents"` TTLs []TTLEvent `json:"ttls"` TAUs []TAUEvent `json:"taus"` }
State defines the state of the flop parser
Click to show internal directories.
Click to hide internal directories.