uniswapv3factoryengine

package
v0.0.0-...-8c998e4 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PoolFactoryStateNull uniswapv3PoolFactoryState = iota
	PoolFactoryStateCreated

	PoolFactoryEventPoolCreated uniswapv3PoolFactoryEvent = iota
)

Variables

This section is empty.

Functions

func New

func New(
	pooFactoryContract w3utils.Contract,
	dgw datagateway.RepositoryPoolFactory,
	logLevel uint8,
) superwatcher.ServiceEngine

Types

type PoolFactoryArtifact

type PoolFactoryArtifact map[entity.Uniswapv3PoolCreated]uniswapv3PoolFactoryState

This sub-engine uses a hash map as superwatcher.Artifact. Because it's a hash map, only 1 instance of this struct is needed for all the lofs

func (PoolFactoryArtifact) ForSubEngine

func (a PoolFactoryArtifact) ForSubEngine() subengines.SubEngineEnum

Implements demoengine.demoArtifact

type TestSuitePoolFactory

type TestSuitePoolFactory struct {
	Engine   superwatcher.ServiceEngine // *ensEngine
	Routes   map[subengines.SubEngineEnum]map[common.Address][]common.Hash
	Services map[subengines.SubEngineEnum]superwatcher.ServiceEngine
}

func NewTestSuitePoolFactory

func NewTestSuitePoolFactory(dgw datagateway.RepositoryPoolFactory, logLevel uint8) *TestSuitePoolFactory

NewTestSuitePoolFactory returns a convenient struct for injecting into routerengine.routerEngine

Jump to

Keyboard shortcuts

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