Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Metadata Node 2.0 #13

@ptrwtts

Description

@ptrwtts

Background

We want the Indexer to fetch metadata in a similar way that it fetches orders, by subscribing to a stream of updates. The goal is to make the Indexer simpler, and less tightly coupled to 3rd party platforms. It basically means pushing more of the logic into the Metadata Node, which would need to become stateful.

Summary

  • Metadata server keeps a local DB of all metadata for every token and collection
  • Keeps track of all sequential changes (for simplicity, all metadata can be lumped into a single JSON)
  • Indexer just listens to changes, instead of having it's own logic for fetching metadata
  • For refreshes, don't need to wait for a response or maintain a job queue. Just trigger the requests and they will come back in the regular stream (if any changes were detected)
  • Leverage Open Sea's new websocket API to get realtime change events
  • Stop using NextJS. Opportunity to try Fastify or another alternative

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions