Skip to content

Commit efd692d

Browse files
authored
Add rari fuse pools support (#40)
* Add rari fuse pools support * Refactor subgraph tasks * Remove reference to stakewise subgraph
1 parent f482468 commit efd692d

File tree

18 files changed

+2041
-49
lines changed

18 files changed

+2041
-49
lines changed

.github/workflows/CI.yaml

+2-8
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,7 @@ jobs:
4040
- name: Install dependencies
4141
run: yarn install
4242

43-
- name: Run network prepare
43+
- name: Build subgraph
4444
env:
4545
NETWORK: ${{ matrix.network }}
46-
run: yarn prepare:$NETWORK
47-
48-
- name: Run codegen
49-
run: yarn codegen
50-
51-
- name: Build project
52-
run: yarn build
46+
run: yarn build:$NETWORK

.github/workflows/deploy.yaml

+1-12
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,11 @@ jobs:
4040
- name: Install dependencies
4141
run: yarn install
4242

43-
- name: Run network prepare
44-
env:
45-
NETWORK: ${{ matrix.network }}
46-
run: yarn prepare:$NETWORK
47-
48-
- name: Run codegen
49-
run: yarn run codegen
50-
51-
- name: Build project
52-
run: yarn run build
53-
5443
- name: Install Graph CLI
5544
run: |
5645
yarn global add @graphprotocol/graph-cli
5746
graph auth https://api.thegraph.com/deploy/ ${{ secrets.THEGRAPH_TOKEN }}
58-
47+
5948
- name: Deploy Subgraphs
6049
env:
6150
NETWORK: ${{ matrix.network }}

package.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stakewise-subgraphs",
3-
"version": "0.1.0",
3+
"version": "1.0.5",
44
"description": "Subgraphs for the StakeWise Protocol",
55
"repository": "https://github.com/stakewise/subgraphs",
66
"license": "AGPL-3.0-only",
@@ -10,13 +10,11 @@
1010
"subgraphs/*"
1111
],
1212
"scripts": {
13-
"codegen": "yarn workspaces run codegen",
14-
"build": "yarn workspaces run build",
15-
"prepare:goerli": "yarn workspaces run prepare:goerli",
16-
"prepare:mainnet": "yarn workspaces run prepare:mainnet",
13+
"build:goerli": "yarn workspaces run build:goerli",
14+
"build:mainnet": "yarn workspaces run build:mainnet",
1715
"create:local": "yarn workspaces run create:local",
18-
"deploy:mainnet": "yarn workspaces run deploy:mainnet",
1916
"deploy:goerli": "yarn workspaces run deploy:goerli",
17+
"deploy:mainnet": "yarn workspaces run deploy:mainnet",
2018
"deploy:local": "yarn workspaces run deploy:local"
2119
},
2220
"devDependencies": {

packages/constants/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"name": "const",
3-
"version": "0.1.0",
3+
"version": "1.0.5",
44
"license": "AGPL-3.0-only",
55
"main": "index.ts",
66
"scripts": {
7-
"codegen": "true",
8-
"build": "true",
97
"prepare:goerli": "mustache ../../config/goerli.json index.template.ts > index.ts",
108
"prepare:mainnet": "mustache ../../config/mainnet.json index.template.ts > index.ts",
9+
"build:goerli": "yarn prepare:goerli",
10+
"build:mainnet": "yarn prepare:mainnet",
1111
"create:local": "true",
12-
"deploy:mainnet": "true",
13-
"deploy:goerli": "true",
12+
"deploy:goerli": "yarn build:goerli",
13+
"deploy:mainnet": "yarn build:mainnet",
1414
"deploy:local": "true"
1515
}
1616
}

subgraphs/ethereum/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "ethereum",
3-
"version": "0.1.1",
3+
"version": "1.0.5",
44
"license": "AGPL-3.0-only",
55
"scripts": {
6-
"codegen": "graph codegen subgraph.yaml",
7-
"build": "graph build subgraph.yaml",
86
"prepare:goerli": "mustache config/goerli.json subgraph.template.yaml > subgraph.yaml",
97
"prepare:mainnet": "mustache config/mainnet.json subgraph.template.yaml > subgraph.yaml",
8+
"build:goerli": "yarn prepare:goerli && graph codegen subgraph.yaml && graph build subgraph.yaml",
9+
"build:mainnet": "yarn prepare:mainnet && graph codegen subgraph.yaml && graph build subgraph.yaml",
1010
"create:local": "graph create --node $GRAPH_NODE_URL stakewise/ethereum",
11-
"deploy:mainnet": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ stakewise/ethereum-mainnet",
12-
"deploy:goerli": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ stakewise/ethereum-goerli",
13-
"deploy:local": "graph deploy --version-label 0.1.1 --node $GRAPH_NODE_URL --ipfs $IPFS_URL stakewise/ethereum"
11+
"deploy:mainnet": "yarn build:mainnet && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ stakewise/ethereum-mainnet",
12+
"deploy:goerli": "yarn build:goerli && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ stakewise/ethereum-goerli",
13+
"deploy:local": "graph deploy --version-label 1.0.5 --node $GRAPH_NODE_URL --ipfs $IPFS_URL stakewise/ethereum"
1414
}
1515
}
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"network": "mainnet",
3+
"sETH2_149": {
4+
"address": "0x18f49849d20bc04059fe9d775df9a38cd1f5ec9f",
5+
"startBlock": "13976410"
6+
},
7+
"sETH2_46": {
8+
"address": "0x83d534ab1d4002249b0e6d22410b62cf31978ca2",
9+
"startBlock": "13398765"
10+
},
11+
"rewardEthToken": {
12+
"address": "0x20bc832ca081b91433ff6c17f85701b6e92486c5",
13+
"startBlock": "13298766"
14+
}
15+
}

subgraphs/rari-fuse/package.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "rari-fuse",
3+
"version": "1.0.5",
4+
"license": "AGPL-3.0-only",
5+
"scripts": {
6+
"prepare:goerli": "true",
7+
"prepare:mainnet": "mustache config/mainnet.json subgraph.template.yaml > subgraph.yaml",
8+
"build:goerli": "yarn prepare:goerli",
9+
"build:mainnet": "yarn prepare:mainnet && graph codegen subgraph.yaml && graph build subgraph.yaml",
10+
"create:local": "graph create --node $GRAPH_NODE_URL stakewise/rari-fuse",
11+
"deploy:mainnet": "yarn build:mainnet && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ stakewise/rari-fuse-mainnet",
12+
"deploy:goerli": "yarn build:goerli",
13+
"deploy:local": "graph deploy --version-label 1.0.5 --node $GRAPH_NODE_URL --ipfs $IPFS_URL stakewise/rari-fuse"
14+
}
15+
}

0 commit comments

Comments
 (0)