Skip to content

Commit

Permalink
remove submodules, will use kvovan deployment and subgraph going forward
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemcdonald committed Dec 6, 2019
1 parent 25075bb commit 60ccaf5
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 76 deletions.
16 changes: 0 additions & 16 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
[submodule "lib/graph-node"]
path = lib/graph-node
url = [email protected]:graphprotocol/graph-node.git
ignore = all
[submodule "lib/balancer-subgraph"]
path = lib/balancer-subgraph
url = [email protected]:balancer-labs/balancer-subgraph.git
ignore = all
[submodule "lib/balancer-sor"]
path = lib/balancer-sor
url = [email protected]:balancer-labs/balancer-sor.git
ignore = all
[submodule "lib/exchange-proxy"]
path = lib/exchange-proxy
url = [email protected]:balancer-labs/exchange-proxy.git
ignore = all
[submodule "lib/balancer-core"]
path = lib/balancer-core
url = [email protected]:balancer-labs/balancer-core.git
ignore = all
42 changes: 1 addition & 41 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,4 @@
```
git submodule update --init --remote
yarn
```
## Setup Environment
- Update docker-compose at ./lib/graph-node/docker/docker-compose.yml. Replace ethereum value with below:
```
ethereum: 'ganache:http://host.docker.internal:8545'
```
- You'll need a local ganache instance running and a metamask-enabled browser. The deploy script is configured to connect to the default Ganache host (localhost:8545). This ganache instance should have a gas limit of 4294967295.
- Ganache-cli parameters
```
ganache-cli -d -l 4294967295 --allowUnlimitedContractSize
```
- Install graph dependencies
```
yarn graph:install
```
- Start the local graph-node
```
yarn graph:node
```
Wait until the graph node initializes and is querying blocks from ganache
- In another terminal, run:
```
yarn graph:createlocal
```
- Deploy balancer-subgraph
```
yarn graph
```
- Deploy a set of pools, tokens, and setup environment
```
yarn deploy
```
The GraphiQL interface should be available at: http://localhost:8000/subgraphs/name/balancer-labs/balancer-subgraph/graphql
```
yarn start
```
```
1 change: 0 additions & 1 deletion lib/balancer-core
Submodule balancer-core deleted from f8d657
1 change: 0 additions & 1 deletion lib/balancer-subgraph
Submodule balancer-subgraph deleted from bb44cc
1 change: 0 additions & 1 deletion lib/exchange-proxy
Submodule exchange-proxy deleted from f51def
1 change: 0 additions & 1 deletion lib/graph-node
Submodule graph-node deleted from 3760be
16 changes: 1 addition & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,23 +88,9 @@
"workbox-webpack-plugin": "4.3.1"
},
"scripts": {
"ganache": " ganache-cli --deterministic -l 4294967295 --allowUnlimitedContractSize",
"deploy": "node scripts/deployPreConfigured.js",
"start": "node scripts/start.js",
"build": "node scripts/build.js",
"test": "node scripts/test.js",
"compile:core": "cd ./lib/balancer-core && truffle compile",
"compile:proxy": "cd ./lib/exchange-proxy && truffle compile",
"compile:abis": "cp ./lib/balancer-core/build/contracts/{BFactory.json,BPool.json} ./src/abi/ && cp ./lib/exchange-proxy/build/contracts/ExchangeProxy.json ./src/abi/",
"compile": "yarn compile:core && yarn compile:proxy && yarn compile:abis",
"graph:node": "docker-compose -f ./lib/graph-node/docker/docker-compose.yml up",
"graph:clean": "docker-compose -f ./lib/graph-node/docker/docker-compose.yml kill && docker-compose -f ./lib/graph-node/docker/docker-compose.yml rm -f && rm -rf ./lib/graph-node/docker/data",
"graph:codegen": "yarn --cwd ./lib/balancer-subgraph/ codegen",
"graph:createlocal": "yarn --cwd ./lib/balancer-subgraph/ create-local",
"graph:install": "yarn --cwd ./lib/balancer-subgraph install",
"graph:setup": "yarn graph:install && yarn graph:createlocal",
"graph:deploylocal": "yarn --cwd ./lib/balancer-subgraph/ deploy-local",
"graph": "yarn graph:codegen && yarn graph:deploylocal"
"test": "node scripts/test.js"
},
"eslintConfig": {
"extends": "react-app"
Expand Down

0 comments on commit 60ccaf5

Please sign in to comment.