This repository contains the SubQuery project for PerpDEX.
-
Typescript are required to compile project and define types.
-
Both SubQuery CLI and generated Project have dependencies and require Node.
Install SubQuery CLI globally on your terminal by using NPM:
npm install -g @subql/cli
Run help to see available commands and usage provide by CLI
subql help
yarn install
source run_local.sh
Open your browser and head to http://localhost:3000
.
Finally, you should see a GraphQL playground is showing in the explorer and the schemas that ready to query.
The following is an example of querying entity Deposited.
query {
depositeds {
nodes {
id
trader
amount
blockNumberLogIndex
blockNumber
timestamp
}
}
}
Please see CONTRIBUTING.md