🦀 Ocean Protocol Subgraph
Go to file
ssallam 53ac1a573a fix parsing pool setup parameters. 2020-11-26 15:58:18 +01:00
abis add datatoken mapping and handlers 2020-11-26 07:38:08 +01:00
src/mappings fix parsing pool setup parameters. 2020-11-26 15:58:18 +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
README.md Add mappings for BFactory and BPool events with handlers 2020-11-20 13:12:02 +01:00
package-lock.json Add mappings for BFactory and BPool events with handlers 2020-11-20 13:12:02 +01:00
package.json Add mappings for BFactory and BPool events with handlers 2020-11-20 13:12:02 +01:00
schema.graphql fix errors, add order handler. 2020-11-26 12:10:45 +01:00
subgraph.yaml add datatoken mapping and handlers 2020-11-26 07:38:08 +01:00
tsconfig.json Add mappings for BFactory and BPool events with handlers 2020-11-20 13:12:02 +01:00

README.md

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