wormhole-foundation / wormhole-monitor

The eagle-eyed observer. The meta-watcher.
https://wormhole-foundation.github.io/wormhole-monitor/
Other
6 stars 0 forks source link

watcher: change data models that watcher uses #33

Closed heyitaki closed 1 year ago

heyitaki commented 1 year ago

Previously, the watcher passed around and stored a unique key constructed from the concatenation of chain ID, block number, emitter address, and sequence number, but legibility and flexibility were issues, especially when the Aptos watcher needed to store additional information (event handle sequence number). As a result, this PR changes the data models that the watchers use to be objects that contain all relevant information.

Resolves #30

heyitaki commented 1 year ago

@evan-gray web/App.tsx needs to be updated to reflect the new data structures, would you mind taking that?

heyitaki commented 1 year ago

Closing this since it's outdated enough that it would be easier to re-write a db model change from scratch