Skip to content

NFTX-project/nftx-v3-vaults-subgraph-public

Repository files navigation

nftx-v3-vaults-subgraph

Subgraph for NFTX Protocol V3

Base Subgraph: https://thegraph.com/hosted-service/subgraph/nftx-project/nftx-v3-vaults-base

Sepolia Subgraph: https://thegraph.com/hosted-service/subgraph/nftx-project/nftx-v3-vaults-sepolia

Arbitrum Subgraph: Arbitrum not deployed yet

Mainnet Subgraph: https://thegraph.com/hosted-service/subgraph/nftx-project/nftx-v3-vaults-mainnet

Config

The subgraph requires the Mainnet Subgraph: add contract contract address and starting block number.

This network specific config can be configured by editing config/<network>.json -- TODO

Scripts

yarn auth

GRAPH_ACCESS_TOKEN=<access-token> yarn auth

yarn prepare-build <network>

Generates subgraph.yaml for particular network. Supported networks are base, arbitrum, sepolia, and mainnet.

yarn deploy-<network>

Deploys the subgraph for particular network to the official Hosted Graph Node.

Deploying to The Graph

To prepare and generate for any network run: yarn prepare-build <network>

To deploy a single network use: yarn deploy-single <network> or yarn deploy-single-hosted <network>

To deploy all studio: yarn deploy-all-studio

To deploy all hosted: yarn deploy-all-hosted

For this to work studioEndpoint and hostedEndpoint needs to be set for each network in scripts/utils/utils file.

Subgraph Deploy Key and Subgraph Studio Deploy Key also needs to be exported.

export SUBGRAPH_DEPLOY_KEY=************ export SUBGRAPH_STUDIO_DEPLOY_KEY=xxxxx

About

Subgraph for NFTX Protocol V3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors