Skip to content

Commit

Permalink
Add Harbour mainnet config (#56)
Browse files Browse the repository at this point in the history
* Add Harbour mainnet config

* Fix CI tests
  • Loading branch information
tsudmi authored May 25, 2022
1 parent 97a1e20 commit 4ef3993
Show file tree
Hide file tree
Showing 22 changed files with 107 additions and 2,051 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
matrix:
node: ['14.x']
os: [ubuntu-latest]
network: ['goerli', 'perm_goerli', 'gnosis', 'mainnet']
network: ['goerli', 'harbour_goerli', 'gnosis', 'mainnet', 'harbour_mainnet']

runs-on: ${{ matrix.os }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
network: ['goerli', 'perm_goerli', 'gnosis', 'mainnet']
network: ['goerli', 'harbour_goerli', 'gnosis', 'mainnet', 'harbour_mainnet']

runs-on: ${{ matrix.os }}

Expand Down
File renamed without changes.
19 changes: 19 additions & 0 deletions config/harbour_mainnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"staked_eth_token_address": "0x65077fa7df8e38e135bd4052ac243f603729892d",
"reward_eth_token_address": "0xcbe26dbc91b05c160050167107154780f36ceaab",
"stakewise_token_address": "0x48c3399719b582dd63eb5aadf12a40b4c3f52fa2",
"merkle_distributor_address": "0x07e8291591eac73dd93b079e3e68e171094ba9e1",
"merkle_drop_address": "0x2aab6822a1a9f982fd7b0fe35a5a5b6148ecf4d5",
"pool_address": "0xea6b7151b138c274ed8d4d61328352545ef2d4b7",
"dao_address": "0x144a98cb1cdbb23610501fe6108858d9b7d24934",
"future_fund_address": "0xf91aa4a655b6f43243ed4c2853f3508314daa2ab",
"uniswap_v3_factory_address": "0x1f98431c8ad98523631ae4a59f267346ea31f984",
"uniswap_v3_position_manager_address": "0xc36442b4a4522e871399cd717abdd847ab11fe88",
"validator_registration_address": "0x00000000219ab540356cbb839cbe05303d7705fa",
"contract_checker_address": "0xfc1fc7257aea7c7c08a498594dca97ce5a72fdcb",
"contract_checker_deployment_block": "13748882",
"ethereum_validators_deposit_root_start_block": "13848500",
"oracles_update_period": "86400",
"validator_deposit_amount": "32000000000000000000",
"distributor_redirected_from": {}
}
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stakewise-subgraphs",
"version": "1.2.3",
"version": "1.3.0",
"description": "Subgraphs for the StakeWise Protocol",
"repository": "https://github.com/stakewise/subgraphs",
"license": "AGPL-3.0-only",
Expand All @@ -11,13 +11,15 @@
],
"scripts": {
"build:goerli": "yarn workspaces run build:goerli",
"build:perm_goerli": "yarn workspaces run build:perm_goerli",
"build:gnosis": "yarn workspaces run build:gnosis",
"build:mainnet": "yarn workspaces run build:mainnet",
"build:harbour_goerli": "yarn workspaces run build:harbour_goerli",
"build:harbour_mainnet": "yarn workspaces run build:harbour_mainnet",
"build:gnosis": "yarn workspaces run build:gnosis",
"deploy:goerli": "yarn workspaces run deploy:goerli",
"deploy:perm_goerli": "yarn workspaces run deploy:perm_goerli",
"deploy:gnosis": "yarn workspaces run deploy:gnosis",
"deploy:mainnet": "yarn workspaces run deploy:mainnet",
"deploy:harbour_goerli": "yarn workspaces run deploy:harbour_goerli",
"deploy:harbour_mainnet": "yarn workspaces run deploy:harbour_mainnet",
"deploy:gnosis": "yarn workspaces run deploy:gnosis",
"deploy:local": "yarn workspaces run deploy:local",
"create:local": "yarn workspaces run create:local"
},
Expand Down
11 changes: 7 additions & 4 deletions packages/constants/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
{
"name": "const",
"version": "1.2.3",
"version": "1.3.0",
"license": "AGPL-3.0-only",
"main": "index.ts",
"type": "module",
"scripts": {
"prepare:goerli": "CONFIG=goerli node ./createConstants.js",
"prepare:perm_goerli": "CONFIG=perm_goerli node ./createConstants.js",
"prepare:mainnet": "CONFIG=mainnet node ./createConstants.js",
"prepare:harbour_goerli": "CONFIG=harbour_goerli node ./createConstants.js",
"prepare:harbour_mainnet": "CONFIG=harbour_mainnet node ./createConstants.js",
"prepare:gnosis": "CONFIG=gnosis node ./createConstants.js",
"build:goerli": "yarn prepare:goerli",
"build:perm_goerli": "yarn prepare:perm_goerli",
"build:harbour_goerli": "yarn prepare:harbour_goerli",
"build:harbour_mainnet": "yarn prepare:harbour_mainnet",
"build:mainnet": "yarn prepare:mainnet",
"build:gnosis": "yarn prepare:gnosis",
"deploy:goerli": "yarn build:goerli",
"deploy:perm_goerli": "yarn build:perm_goerli",
"deploy:mainnet": "yarn build:mainnet",
"deploy:harbour_goerli": "yarn build:harbour_goerli",
"deploy:harbour_mainnet": "yarn build:harbour_mainnet",
"deploy:gnosis": "yarn build:gnosis",
"deploy:local": "true",
"create:local": "true"
Expand Down
19 changes: 11 additions & 8 deletions subgraphs/ethereum/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
{
"name": "ethereum",
"version": "1.2.3",
"version": "1.3.0",
"license": "AGPL-3.0-only",
"scripts": {
"prepare:goerli": "mustache config/goerli.json subgraph.template.yaml > subgraph.yaml",
"prepare:perm_goerli": "true",
"prepare:gnosis": "mustache config/gnosis.json subgraph.template.yaml > subgraph.yaml",
"prepare:mainnet": "mustache config/mainnet.json subgraph.template.yaml > subgraph.yaml",
"prepare:harbour_goerli": "true",
"prepare:harbour_mainnet": "true",
"prepare:gnosis": "mustache config/gnosis.json subgraph.template.yaml > subgraph.yaml",
"build:goerli": "yarn prepare:goerli && graph codegen subgraph.yaml && graph build subgraph.yaml",
"build:perm_goerli": "yarn prepare:perm_goerli",
"build:gnosis": "yarn prepare:gnosis && graph codegen subgraph.yaml && graph build subgraph.yaml",
"build:mainnet": "yarn prepare:mainnet && graph codegen subgraph.yaml && graph build subgraph.yaml",
"build:harbour_goerli": "yarn prepare:harbour_goerli",
"build:harbour_mainnet": "yarn prepare:harbour_mainnet",
"build:gnosis": "yarn prepare:gnosis && graph codegen subgraph.yaml && graph build subgraph.yaml",
"deploy:goerli": "yarn build:goerli && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ stakewise/ethereum-goerli",
"deploy:perm_goerli": "yarn build:perm_goerli",
"deploy:gnosis": "yarn build:gnosis && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ stakewise/ethereum-gnosis",
"deploy:mainnet": "yarn build:mainnet && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ stakewise/ethereum-mainnet",
"deploy:local": "graph deploy --version-label 1.2.3 --node $GRAPH_NODE_URL --ipfs $IPFS_URL stakewise/ethereum",
"deploy:harbour_goerli": "yarn build:harbour_goerli",
"deploy:harbour_mainnet": "yarn build:harbour_mainnet",
"deploy:gnosis": "yarn build:gnosis && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ stakewise/ethereum-gnosis",
"deploy:local": "graph deploy --version-label 1.3.0 --node $GRAPH_NODE_URL --ipfs $IPFS_URL stakewise/ethereum",
"create:local": "graph create --node $GRAPH_NODE_URL stakewise/ethereum"
}
}
15 changes: 0 additions & 15 deletions subgraphs/rari-fuse/config/mainnet.json

This file was deleted.

21 changes: 0 additions & 21 deletions subgraphs/rari-fuse/package.json

This file was deleted.

Loading

0 comments on commit 4ef3993

Please sign in to comment.