ensengine

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: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLogLen = errors.New("invalid log topics length")
	ErrMapENS = errors.New("error mapping event log to entity.ENS")
)

Functions

func New

func New(
	registrarContract w3utils.Contract,
	controllerContract w3utils.Contract,
	dgwENS datagateway.RepositoryENS,
	logLevel uint8,
) superwatcher.ServiceEngine

Types

type ENSArtifact

type ENSArtifact struct {
	ID                  string              `json:"ensID"`
	RegisterBlockNumber uint64              `json:"registerBlockNumber"`
	LastEvent           ENSEvent            `json:"lastEvent"`
	BlockEvents         map[ENSEvent]uint64 `json:"events"` // One block may have >1 events
	ENS                 entity.ENS          `json:"ens"`
}

func (ENSArtifact) ForSubEngine

func (e ENSArtifact) ForSubEngine() subengines.SubEngineEnum

type ENSEvent

type ENSEvent string
const (
	Null                     ENSEvent = "NULL"
	Revert                   ENSEvent = "REVERT"
	RegisteredRegistrar      ENSEvent = "RegisteredRegistrar"
	RevertRegisterRegistrar  ENSEvent = Revert + RegisteredRegistrar
	RegisteredController     ENSEvent = "RegisteredController"
	RevertRegisterController ENSEvent = Revert + RegisteredController
	Transferred              ENSEvent = "Transferred"
	RevertTransferred        ENSEvent = Revert + Transferred
)

type TestSuiteENS

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

func NewTestSuiteENS

func NewTestSuiteENS(dgwENS datagateway.RepositoryENS, logLevel uint8) *TestSuiteENS

NewTestSuiteENS 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