monitor

package
v0.0.0-...-0608245 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Arbitrum = "Arbitrum"
	Ethereum = "Ethereum"
)

CONST

Variables

View Source
var ArbitrumMonitor = Monitor{
	Name:        Arbitrum,
	ChainID:     42161,
	RPC:         configInstance.Arbitrum,
	FactoryList: factoryListArbitrum,
}
View Source
var EthereumMonitor = Monitor{
	Name:        Ethereum,
	ChainID:     1,
	RPC:         configInstance.Ethereum,
	FactoryList: factoryListEthereum,
}

Functions

func StartPairTracking

func StartPairTracking()

Types

type Factory

type Factory struct {
	Name           string
	FactoryAddress [20]byte
}

type Monitor

type Monitor struct {
	Name        string
	ChainID     int
	RPC         string
	FactoryList []Factory
}

func (*Monitor) StartListeningForPairCreatedEvents

func (m *Monitor) StartListeningForPairCreatedEvents()

Jump to

Keyboard shortcuts

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