instance property

RefRegistry instance
final

Sentinel instance for enricher contracts.

DuskSnapshotEnricher takes a RefRegistry parameter for forward compatibility, but all current registry operations are static. Snap passes this singleton so enrichers conform to the typedef without constructing throw-away instances per call.

Implementation

static final RefRegistry instance = RefRegistry._();