Skip to content

Create a unified GraphQL API using Schema stitching #10

Description

@makoto

The problem

When a domain points to L2 gateway resolver, the l1 subgraph can no longer index event information such as text/coin type record and subdomains

Potential solution

  • Use GraphqQL's schema stitching to amalgamated subgraphs across the different networks.
  • If the gateway fetches data from off-chain (non l2/sidechains), define API to fetch data from off-chain and include it in the amalgamated subraph.
  • When there are duplicate information across different chains (eg: matoken.eth resolver first points to Polygon, then repoints to Optimism ), then select the latest data based on which chain the canonical name is bridged to (We are planning to create BridgeRegistrar where a domain name on L2 can only be claimed on our canonical Register contract only when the name asset is transferred to the specific bridge.

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