🦀 Ocean Protocol Subgraph
Go to file
ssallam 827d51b3e1 update consume price and use pool contract call. 2020-12-08 13:32:15 +01:00
abis update consume price and use pool contract call. 2020-12-08 13:32:15 +01:00
src/mappings update consume price and use pool contract call. 2020-12-08 13:32:15 +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 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
schema.graphql update token reserve at the pool level, fix issues. 2020-12-03 10:05:34 +01:00
subgraph.yaml update consume price and use pool contract call. 2020-12-08 13:32:15 +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