🦀 Ocean Protocol Subgraph
Go to file
2020-12-02 11:07:09 +01:00
abis add datatoken mapping and handlers 2020-11-26 07:38:08 +01:00
src/mappings update schema to support pool reserve/price history and data token transaction history and balance history. 2020-12-02 11:07:09 +01:00
.gitattributes Add mappings for BFactory and BPool events with handlers 2020-11-20 13:12:02 +01:00
.gitignore Add mappings for BFactory and BPool events with handlers 2020-11-20 13:12:02 +01:00
LICENSE Initial commit 2020-11-19 08:15:23 +01:00
package-lock.json update schema to support pool reserve/price history and data token transaction history and balance history. 2020-12-02 11:07:09 +01:00
package.json update schema to support pool reserve/price history and data token transaction history and balance history. 2020-12-02 11:07:09 +01:00
README.md Add mappings for BFactory and BPool events with handlers 2020-11-20 13:12:02 +01:00
schema.graphql update schema to support pool reserve/price history and data token transaction history and balance history. 2020-12-02 11:07:09 +01:00
subgraph.yaml update schema to support pool reserve/price history and data token transaction history and balance history. 2020-12-02 11:07:09 +01:00
tsconfig.json Add mappings for BFactory and BPool events with handlers 2020-11-20 13:12:02 +01:00

Ocean Protocol Subgraph

Running locally

  • Install the Graph: https://thegraph.com/docs/quick-start
    • You can skip running ganache-cli and connect directly to mainnet using Infura
git clone https://github.com/graphprotocol/graph-node/
cd graph-node/docker
./setup.sh
# Update this line in the `docker-compose.yml` file with your Infura ProjectId
#   ethereum: 'mainnet:https://mainnet.infura.io/v3/INFURA_PROJECT_ID'
docker-compose up

  • Install Graph CLI globally with npm
npm install -g @graphprotocol/graph-cli
  • Once the graph node is ready, do the following to deploy the ocean-subgraph to the local graph-node
git clone https://github.com/oceanprotocol/ocean-subgraph/
cd ocean-subgraph
npm i
npm run codegen
npm run create:local
npm run deploy:local