Skip to content

This squid captures TakerAsk, TakerBid, Royalty Payments, CancelOrderNonce, and Cancel Multiple Nonces events for the Dotsama NFT Marketplace on ASTAR and MOONBEAM, stores them in the same database and serves the data over a common GraphQL API.

License

Notifications You must be signed in to change notification settings

yasinadil/subquid-dotsama

Repository files navigation

Multichain squid

This squid captures TakerAsk, TakerBid, Royalty Payments, CancelOrderNonce, and Cancel Multiple Nonces events for the Dotsama NFT Marketplace on ASTAR and MOONBEAM, stores them in the same database and serves the data over a common GraphQL API.

The Astar processor is located in src/astar and similarly the Moonbeam processor can be found in src/moonbeam. The scripts file commands.json was updated with the commands process:astar and process:moonbeam to run the processors.

You can find some useful hints on developing multichain squids on the dedicated documentation page.

Dependencies: Node.js, Docker, Git.

Quickstart

# 0. Install @subsquid/cli a.k.a. the sqd command globally
npm i -g @subsquid/cli

# 1. Clone the repo
git clone https://github.com/subsquid-labs/multichain-transfers-example
cd multichain-transfers-example

# 2. Install dependencies
npm ci

# 3. Start a Postgres database container and detach
sqd up

# 4. Apply the migration
sqd migration:apply

# 5. Build the squid
sqd build

# 6. Run all services at once
sqd run .

A GraphiQL playground will be available at localhost:4350/graphql.

You can also run individual services separately:

sqd process:eth # Ethereum processor
sqd process:bsc # BSC processor
sqd serve       # GraphQL server

About

This squid captures TakerAsk, TakerBid, Royalty Payments, CancelOrderNonce, and Cancel Multiple Nonces events for the Dotsama NFT Marketplace on ASTAR and MOONBEAM, stores them in the same database and serves the data over a common GraphQL API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published