Skip to content

Commit

Permalink
Fix rate calculation, update addresses (#71)
Browse files Browse the repository at this point in the history
* Fix rate calculation, update addresses

* Update packages

* Fix not found vault during harvest
  • Loading branch information
tsudmi authored Jul 11, 2024
1 parent 49342da commit 50f2640
Show file tree
Hide file tree
Showing 30 changed files with 1,524 additions and 474 deletions.
136 changes: 68 additions & 68 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 19 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "v3-subgraph",
"version": "1.2.0",
"version": "2.0.0",
"description": "Subgraph for the StakeWise Protocol",
"repository": "https://github.com/stakewise/v3-subgraph",
"license": "AGPL-3.0-only",
Expand Down Expand Up @@ -42,23 +42,34 @@
"build:chiado": "npm run prepare:chiado && npm run generate-wasm:chiado",
"test:chiado": "npm run prepare:chiado && npm run generate-tests-yaml:chiado && graph test",
"deploy-hosted:chiado": "npm run prepare:chiado && npm run deploy network:chiado node:hosted",
"deploy-local:chiado": "npm run prepare:chiado && npm run deploy network:chiado node:local"
"deploy-local:chiado": "npm run prepare:chiado && npm run deploy network:chiado node:local",
"---GNOSIS---": "",
"generate-const:gnosis": "node ./scripts/createConstants.js gnosis",
"generate-yaml:gnosis": "mustache src/config/gnosis.json src/subgraph.template.yaml > src/subgraph-gnosis.yaml",
"generate-tests-yaml:gnosis": "mustache src/config/gnosis.json matchstick.template.yaml > matchstick.yaml",
"generate-types:gnosis": "graph codegen src/subgraph-gnosis.yaml",
"generate-wasm:gnosis": "graph build src/subgraph-gnosis.yaml -o build/gnosis",
"prepare:gnosis": "npm run generate-const:gnosis && npm run generate-yaml:gnosis && npm run generate-types:gnosis",
"build:gnosis": "npm run prepare:gnosis && npm run generate-wasm:gnosis",
"test:gnosis": "npm run prepare:gnosis && npm run generate-tests-yaml:gnosis && graph test",
"deploy-hosted:gnosis": "npm run prepare:gnosis && npm run deploy network:gnosis node:hosted",
"deploy-local:gnosis": "npm run prepare:gnosis && npm run deploy network:gnosis node:local"
},
"devDependencies": {
"@graphprotocol/graph-cli": "0.73.0",
"@graphprotocol/graph-cli": "0.78.0",
"@graphprotocol/graph-ts": "0.35.1",
"@types/node": "20.14.2",
"@typescript-eslint/eslint-plugin": "7.13.0",
"@typescript-eslint/parser": "7.13.0",
"@types/node": "20.14.10",
"@typescript-eslint/eslint-plugin": "7.16.0",
"@typescript-eslint/parser": "7.16.0",
"dotenv": "16.4.5",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"husky": "9.0.11",
"lint-staged": "15.2.6",
"lint-staged": "15.2.7",
"matchstick-as": "0.6.0",
"mustache": "4.2.0",
"prettier": "3.3.2",
"typescript": "5.4.5"
"typescript": "5.5.3"
},
"engines": {
"node": "18"
Expand Down
5 changes: 5 additions & 0 deletions scripts/createConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const path = require('path')
const isMainnet = process.argv.includes('mainnet')
const isHolesky = process.argv.includes('holesky')
const isChiado = process.argv.includes('chiado')
const isGnosis = process.argv.includes('gnosis')

let configName = null

Expand All @@ -19,6 +20,10 @@ if (isChiado) {
configName = 'chiado'
}

if (isGnosis) {
configName = 'gnosis'
}

if (!configName) {
throw new Error('Network is not supported')
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const validateEnv = () => {
const validateArgs = () => {
const { network, node } = args

const allowedNetworks = ['holesky', 'mainnet', 'chiado']
const allowedNetworks = ['holesky', 'mainnet', 'chiado', 'gnosis']
const allowedNodes = ['hosted', 'local']

if (!network) {
Expand Down
Loading

0 comments on commit 50f2640

Please sign in to comment.