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
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
GRAPH_ACCESS_TOKEN=<access-token> yarn authGenerates subgraph.yaml for particular network. Supported networks are base, arbitrum, sepolia, and mainnet.
Deploys the subgraph for particular network to the official Hosted Graph Node.
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