Skip to content

poap-xyz/poap-subgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POAP Subgraph

This Subgraph sources events from the POAP contract in different networks.

Deploying the subgraph:

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

Documentation

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>

Deployments

Chiado

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

Sepolia

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published