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

Setup local v2 #248

Open
vikiival opened this issue Apr 16, 2023 · 0 comments
Open

Setup local v2 #248

vikiival opened this issue Apr 16, 2023 · 0 comments

Comments

@vikiival
Copy link
Member

  1. fork subsquid/substrate-archive-setup
  2. update docker-compose.yml
    image: subsquid/substrate-ingest:firesquid
    command: [
       "-e", "wss://staging.node.rmrk.app",
       "-c", "10",
       "--start-block", "5228860", # uncomment to specify a non-zero start block
       "--prom-port", "9090",
       "--out", "postgres://postgres:postgres@db:5432/squid-archive"
    ]
    
  1. in processor.ts
const STARTING_BLOCK = 5_228_865; // 8788586
const ENDING_BLOCK = undefined; // 16261119;
processor.setTypesBundle('kusama');

processor.setBlockRange({ from: STARTING_BLOCK, to: ENDING_BLOCK });
processor.setDataSource({
    archive: "http://localhost:8888/graphql",
    chain: "wss://staging.node.rmrk.app"
});

Your node should be indexed in few min

  1. in nft-gallery override ksm (constants.ts)
export const apolloClientConfig = {
  ...defineApolloConfig(),
  subsquid: toApolloEndpoint(process.env.SUBSQUID_ENDPOINT || URLS.koda.rubick),
  bsx: toApolloEndpoint(URLS.koda.snek),
  movr: toApolloEndpoint(URLS.koda.click),
  snek: toApolloEndpoint(URLS.koda.snekRococo),
  glmr: toApolloEndpoint(URLS.koda.antick),
  ksm: toApolloEndpoint('http://localhost:4350/graphql'),
}
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

1 participant