nix-shell --run initnix-shell --run docker-upnix-shell --run ci-test
nix-shell --run init-
nix-shell --run "ts-node scripts/deploy.ts \ --contractAddress <CONTRACT_ADDRESS> \ --subgraphName <SUBGRAPH_NAME> \ --graphAccessToken <GRAPH_ACCESS_TOKEN> \ --network <NETWORK> "
nix-shell --run init-
nix-shell --run "ts-node scripts/deploy.ts \ --contractAddress <CONTRACT_ADDRESS> \ --subgraphName <SUBGRAPH_NAME> \ --graphAccessToken <GRAPH_ACCESS_TOKEN> \ --network <NETWORK> --blockNumber <BLOCK_NUMBER> --etherscanAPIKey <API_KEY> "
nix-shell --run init-
nix-shell --run "ts-node scripts/deploy.ts \ --contractAddress <CONTRACT_ADDRESS> \ --blockNumber <BLOCK_NUMBER> --subgraphName <SUBGRAPH_NAME> \ --graphAccessToken <GRAPH_ACCESS_TOKEN> \ --network <NETWORK> --skipCheck "
When deploying with chainstack we only need to build the sugbraph. This can be done by using any of the following commands.
Run :
nix-shell --run init
and then :
nix-shell --run "ts-node scripts/buildChainstackSubgraph.ts \
--contractAddress <CONTRACT_ADDRESS> \
--network <NETWORK>
"
This is the recommended command while building the subgraph. Run :
nix-shell --run init
and then :
nix-shell --run "ts-node scripts/buildChainstackSubgraph.ts \
--contractAddress <CONTRACT_ADDRESS> \
--network <NETWORK>
--blockNumber <BLOCK_NUMBER>
--etherscanAPIKey <API_KEY>
"
Run :
nix-shell --run init
and then :
nix-shell --run "ts-node scripts/buildChainstackSubgraph.ts \
--contractAddress <CONTRACT_ADDRESS> \
--blockNumber <BLOCK_NUMBER>
--network <NETWORK>
--skipCheck
"
- After building the subgraph to deploy subgraph , create a subgraph on https://chainstack.com/ and simply run the
Deployment commandgenerated by the chainstack console from the root of the project : - The deployment command will look something like this :
graph deploy --node <chainstack-endpoint-url> --ipfs <chainstack-ipfs-url> <chainstack-subgraph-name>