Subgraph for Purse Token on pursetoken.com
git clone https://github.com/FunctionX-SG/PurseToken_Subgraph.git
curl https://goldsky.com | sh
<or>
curl -fsSL https://cli.goldsky.com/install | bash
You will be prompted to enter your Goldsky API token after.
goldsky login
If already using a publicly available subgraph, you can pass the GraphQL URL endpoint via --from-url
. Your GraphQL URL endpoint could look something like: https://api.studio.thegraph.com/subgraphs/name/pooltogether/pooltogether
.
goldsky subgraph deploy your-subgraph-name/your-version --from-url <your-subgraph-query-url>
If deploying from source, cd
into the root of the repository.
yarn codegen
yarn build
goldsky subgraph deploy your-subgraph-name/your-version --path .
yarn install
yarn codegen
yarn build
To deploy and run the subgraph on the network, please follow the following steps:
npm install -g @graphprotocol/graph-cli
<or>
yarn global add @graphprotocol/graph-cli
graph auth --studio <deploy-key>
graph codegen && graph build
If you created a subgraph on Subgraph Studio, subgraph_slug
should be the same as the one you created.
graph deploy --studio <subgraph_slug>