Make MetaStorage interface platform agnostic, i.e. EventDDBEntry -> EventEntry, and add internal conversion functions
Make EventsToChainAdaptor platform agnostic
Turn the DynamoDB implementation into a sub package
Use named factory to create MetaStorage instance according to config
How did you test the change?
GitHub Actions
Run backfill (go run ./cmd/admin backfill --blockchain bsc --network mainnet --env local --start-height 32306000 --end-height 32306010) with localstack
Run backfill workflow: go run ./cmd/admin workflow start --workflow backfiller --input '{"StartHeight": 18398700, "EndHeight": 18398710, "NumConcurrentExtractors": 5}' --blockchain ethereum --network mainnet --env local
What changed? Why?
MetaStorageType
configMetaStorage
interface platform agnostic, i.e.EventDDBEntry
->EventEntry
, and add internal conversion functionsEventsToChainAdaptor
platform agnosticMetaStorage
instance according to configHow did you test the change?
go run ./cmd/admin backfill --blockchain bsc --network mainnet --env local --start-height 32306000 --end-height 32306010
) with localstackgo run ./cmd/admin workflow start --workflow backfiller --input '{"StartHeight": 18398700, "EndHeight": 18398710, "NumConcurrentExtractors": 5}' --blockchain ethereum --network mainnet --env local