logparser

package
v0.0.0-...-42de13e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Buy = iota
	Sell
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LogParser

type LogParser struct {
	// contains filtered or unexported fields
}

func New

func New(client *ethclient.Client, address common.Address, decimals [2]uint8) (*LogParser, error)

func (*LogParser) ParseSwaps

func (lp *LogParser) ParseSwaps(ctx context.Context, from uint64, to *uint64) ([]Swap, error)

type Swap

type Swap struct {
	Block     uint64
	Timestamp uint64
	Price     decimal.Decimal
	Amount    decimal.Decimal
	Side      int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL