githubEdit

@unirep/subgraph

The subgraph is used to query data from Unirep smart contract.

arrow-up-rightGithub license arrow-up-rightLinter eslint arrow-up-rightCode style prettierarrow-up-right

๐Ÿ“ฝ Compile

๐Ÿ–ผ Deploy

To deploy, you'll need your auth token from thegraph dashboard.

graph auth --product hosted-service <AUTH_TOKEN_HERE>

Then run

๐Ÿ’ป Demo

The subgraph is presently deployed herearrow-up-right.

This query

{
  userEntities(first: 5) {
    id
    createdAt
    identityCommitment
    attesterId
  }
  reputationEntities(first: 5) {
    id
    createdAt
    posRep
    negRep
  }
}

will return this as result

๐ŸŽฏ Contributing

Contributions are always welcome! See CONTRIBUTING.mdarrow-up-right for ways to get started.

Please adhere to this Unirep's code of conductarrow-up-right.

Last updated