This Subgraph sources events from the POAP contract in different networks.
First time only
yarn install
Add the descriptions in /config/* removing the .template
For example:
ethereum.template.json
{
"network": "mainnet",
"address": "0x22C1f6050E56d2876009903609a2cC3fEf83B415",
"startBlock": 7844214,
"file": "Poap",
"tokenEvent": "EventToken(uint256,uint256)",
"description": "<ADD ME>"
}
Copy and change the descrpition to
ethereum.json
{
"network": "mainnet",
"address": "0x22C1f6050E56d2876009903609a2cC3fEf83B415",
"startBlock": 7844214,
"file": "Poap",
"tokenEvent": "EventToken(uint256,uint256)",
"description": "My Test POAP Subgraph on Mainnet"
}
Available networks: ethereum, gnosis, chiado, goerli
Goldsky deployment
First run:
goldsky login
The Graph deployment
This repo also works with The Graph. To deploy with The Graph please look at the documentation
Deploy
yarn prepare:<network>
yarn codegen
yarn build
yarn deploy:<network>
Endpoint: https://api.goldsky.com/api/public/project_clcquosqr8v0k0iwk5rs87x2l/subgraphs/poaps-chiado/1.0.0/gn
Subgraph page: https://api.goldsky.com/api/public/project_clcquosqr8v0k0iwk5rs87x2l/subgraphs/poaps-chiado/1.0.0/gn
Endpoint: https://api.goldsky.com/api/public/project_clcquosqr8v0k0iwk5rs87x2l/subgraphs/poaps-sepolia/1.0.0/gn
Subgraph page: https://api.goldsky.com/api/public/project_clcquosqr8v0k0iwk5rs87x2l/subgraphs/poaps-sepolia/1.0.0/gn