Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultEventsChanLen = 256
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockCreation ¶
type BlockCreation struct {
Block uint64
}
type Event ¶
type Event struct { Type EventType BlockCreation *BlockCreation PairCreation *PairCreation ReservesUpdate *ReservesUpdate }
type EventChan ¶
type EventChan struct {
// contains filtered or unexported fields
}
func NewEventChan ¶
func NewEventChan() *EventChan
type EventQueue ¶
type PairCreation ¶
type PairCreation struct { Address common.Address Token0, Token1 common.Address Reserve0, Reserve1 *big.Int }
PairCreation - event of pair creation in factory contract
type ReservesUpdate ¶
type ReservesUpdate struct { Address common.Address Token0, Token1 common.Address Reserve0Delta *big.Int Reserve1Delta *big.Int }
ReservesUpdate - event of that reserves in UniswapV2 pair were updated. All fields represent the change (difference) between old and new state. All could be nil, but not all at the same time.
Click to show internal directories.
Click to hide internal directories.