Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to add any Squid to the .env file #28

Open
sacha-l opened this issue May 2, 2023 · 0 comments
Open

Support to add any Squid to the .env file #28

sacha-l opened this issue May 2, 2023 · 0 comments
Milestone

Comments

@sacha-l
Copy link

sacha-l commented May 2, 2023

For someone who wants to use Uniquery with any valid chain, it would be awesome to be able to pass in a valid Squid data source in the .env file and to be able to use Uniquery on it (so long as they have a valid indexer for it of course).

There are many existing archives hosted by Subsquid. In my case for example, I would like to use the Statemine archive as my data source (https://statemine.archive.subsquid.io/graphql) in a fork of the Fandom app.

How would we be able to add functionality to Uniquery in order to achieve this?

For example, in the .env file here, we could do:

ADDRESS=JHfxh28HRxd5fSY97fFoPfFXHmGGFGctNNr9GvmnNeQPVkS
CHAIN=https://statemine.archive.subsquid.io/graphql

I notice it's to do with creating an additional field as a SquidEndpoint (like you do here in the NFT Gallery). But I'm not sure how to do this for Uniquery. If you can provide the steps and mentor a little, I'd love to learn how to do this. 🙏🏻 🌈

@vikiival vikiival added this to the Sub1 milestone Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants