Skip to main content
Version: 1.0.1

@unirep/subgraph

Github license Linter eslint Code style prettier

📽 Compile​

yarn build

🖼 Deploy​

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

graph auth --product hosted-service <AUTH_TOKEN_HERE>

Then run

yarn deploy

💻 Demo​

The subgraph is presently deployed here.

This query

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

will return this as result

{
"data": {
"userEntities": [
{
"id": "0x15d76961f7f9ed383e132add82257458d590ef55",
"createdAt": "1649565733",
"identityCommitment": "18926337200484736318947765217640540000000000000000000000000000000000000000000",
"attesterId": "1"
}
],
"reputationEntities": []
}
}

🎯 Contributing​

Contributions are always welcome! See CONTRIBUTING.md for ways to get started. Please adhere to this Unirep's code of conduct.