subsquid / gitcoin-hackathon-issues

DeFi & Cross-chain Interoperability Hackathon
4 stars 0 forks source link

Index non-Substrate chain data #3

Open dzhelezov opened 2 years ago

dzhelezov commented 2 years ago

Index on-chain data of a non-Substrate chain

Prize Bounty

Bounties Totalling $7000 in USDC depending on the quality of the submission, splitted between the winning ($6000) and the runner-up ($1000) submission.

Challenge Description

At the moment Subsquid supports data indexing only for chains built with the Substrate framework. The indexed data is exposed via a GraphQL endpoint supporting batching and filtering. For example, it is possible to batch all on-chain events from block 10000000 to 11000000 with the name balances.Transfer
For example, using the Kusama Indexer endpoint one can retrieve such events with the following query

query MyEvents {
  substrate_event(where: {name: {_eq: "balances.Transfer"}, blockNumber: {_gt: 10000000, _lt: 11000000}}) {
    data
    blockNumber
    blockTimestamp
    blockHash
  }
}

You can play around further by adding extra fields and filtering using the explorer pane of the console above.

This bounty aims to build a similar GraphQL endpoint for any non-Substrate-based chains (e.g. Algorand, Terra, Avalanche, Solana, whatever you like the beast). The submission should expose on-chain data via GraphQL API, supporting the following features:

Not all the features from the list above have to be supported for a submission to be considered for acceptance, but the more the better.

Submission Requirements

A Submission should be a fully runnable indexer with a GraphQL API together with documentation and sample queries.

Judging Criteria

Winner Announcement Date

A winner will be announced shortly after the hackathon is complete. The winner gets 6000 USDC and the runner-up submission is awarded 1000 USDC.

Resources

Where to get help

gitcoinbot commented 2 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 7000.0 USDC (7000.0 USD @ $1.0/USDC) attached to it.

gitcoinbot commented 2 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work has been started.

These users each claimed they can complete the work by 2 weeks, 3 days from now. Please review their action plans below:

1) cryptofervid has started work.

Analysing the requirements and going through the documentation. Project details to be updated soon.

Learn more on the Gitcoin Issue Details page.