npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

parallel-crowdloan-subql

v1.0.0

Published

Based on [SubQuery](https://www.subquery.network/) project defines for collect the crowdloan data from Heiko or Parallel Substrate blockchain

Downloads

4

Readme

Parallel Crowdloan Subql

Based on SubQuery project defines for collect the crowdloan data from Heiko or Parallel Substrate blockchain

Development

Start project in Docker

docker-compose pull && docker-compose up

Query data

open your browser and head to http://localhost:3000.

Finally, you should see a GraphQL playground is showing in the explorer and the schemas that ready to query.

{
  query {
    contributions(first: 5) {
      nodes {
        id
        extrinsicHash
        vaultId
        blockHeight
      }
    }
    vaults(first: 5) {
      nodes {
        id
        createdAt
        paraId
        leaseStart
      }
    }
  }
}

Deployment

We used IPFS deployment from subQuery team provide.

Before do the deployment, make sure run yarn build successfully. And please check if the genesisHash in yaml file is correct for the blockchain you want to collect.

Generate IPFS CID

Need to prepare your SUBQL_ACCESS_TOKEN before call actions.

  • For staging: Click Run workflow on Deploy with staging RPC action, and enter the SUBQL_ACCESS_TOKEN, then click the button again.

  • For Heiko: Click Run workflow on Deploy with Heiko RPC action, and enter the SUBQL_ACCESS_TOKEN, then click the button again.

  • For Parallel: TBD

Get IPFS CID from github action

The check the response in deployment action Publish to IPFS step, for example, there should be as following:

Building and packing code... done
Uploading SupQuery project to IPFS
SubQuery Project uploaded to IPFS: <CID>

Use CID for next step.

Deploy slot with IPFS CID

Go To subQuery project page, click Deploy button for staging slot and enter the CID you previously get. After staging finished deployment and everything looks good. Click Promote to production deploy the changes to production slot.

  • Staging: https://project.subquery.network/project/parallel-finance/staging-crowdloan-pallet
  • Heiko: https://project.subquery.network/project/parallel-finance/crowdloan-via-heiko
  • Parallel: TBD