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
Click to show internal directories.
Click to hide internal directories.