From 37bc59e2bb5102e35ad35f1e9ecd8f17a2e042e3 Mon Sep 17 00:00:00 2001 From: Kaspar Kallas Date: Mon, 18 Mar 2024 11:34:39 +0200 Subject: [PATCH 1/5] init goldsky gha for vesting --- .github/workflows/vs-subgraph-ci-goldsky.yml | 62 ++++++++++++++++++++ package.json | 3 + pnpm-lock.yaml | 35 +++++++++++ subgraphs/flow-scheduler/package.json | 9 +-- subgraphs/flow-scheduler/pnpm-lock.yaml | 62 +++++++++++++++----- subgraphs/vesting-scheduler/package.json | 5 +- subgraphs/vesting-scheduler/pnpm-lock.yaml | 62 +++++++++++++++----- subgraphs/wrap-scheduler/package.json | 5 +- subgraphs/wrap-scheduler/pnpm-lock.yaml | 62 +++++++++++++++----- 9 files changed, 252 insertions(+), 53 deletions(-) create mode 100644 .github/workflows/vs-subgraph-ci-goldsky.yml diff --git a/.github/workflows/vs-subgraph-ci-goldsky.yml b/.github/workflows/vs-subgraph-ci-goldsky.yml new file mode 100644 index 0000000..dfa7eef --- /dev/null +++ b/.github/workflows/vs-subgraph-ci-goldsky.yml @@ -0,0 +1,62 @@ +name: Deploy Superfluid VestingScheduler Subgraphs + +on: + workflow_dispatch: + push: + branches: + - "release-v1/*" + paths: + - "subgraphs/vesting-scheduler/**" + +jobs: + deploy: + runs-on: ubuntu-latest + defaults: + run: + working-directory: subgraphs/vesting-scheduler + strategy: + matrix: + networks: + [ + "avalanche-c", + "arbitrum-one", + "bsc-mainnet", + "eth-mainnet", + "eth-goerli", + "xdai-mainnet", + "optimism-mainnet", + "polygon-mainnet", + "polygon-mumbai", + ] + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 18 + - uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Install + run: pnpm install + - name: Generate YAML & Types + run: pnpm gen + - name: Build + run: pnpm exec graph build ${{format('./{0}.subgraph.yaml', matrix.networks)}} + - name: Test + run: pnpm test + - name: Goldsky Auth + run: pnpm exec goldsky login --token ${{secrets.GOLDSKY_API_KEY}} + - name: Get Version + id: get-version + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const fs = require('fs'); + const packageJson = JSON.parse(fs.readFileSync('package.json')); + return packageJson.version; + - name: Goldsky Deploy + run: pnpm exec goldsky subgraph deploy ${{format('vesting-v1-{0}/{1}', matrix.networks, steps.get-version.outputs.result) }} --path ./build + - name: Goldsky Tag + run: pnpm exec goldsky subgraph tag ${{format('vesting-v1-{0}/{1}', matrix.networks, steps.get-version.outputs.result) }} --tag latest diff --git a/package.json b/package.json index 18061cf..4550ffc 100644 --- a/package.json +++ b/package.json @@ -9,5 +9,8 @@ "gen": "pnpm -r gen", "build": "pnpm -r build", "test": "pnpm -r test" + }, + "devDependencies": { + "@goldskycom/cli": "^8.5.1" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2b9f188..5a90dcc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3,3 +3,38 @@ lockfileVersion: '6.0' settings: autoInstallPeers: true excludeLinksFromLockfile: false + +devDependencies: + '@goldskycom/cli': + specifier: ^8.5.1 + version: 8.5.1 + +packages: + + /@goldskycom/cli@8.5.1: + resolution: {integrity: sha512-jLXwRh4EFU8KByZnOG3EIuM6E4tbJz7er3XSF0cOIVPZJxOAqIWZuuOZeZpyhUsbvturisumO/GAwUIfOErGCg==} + hasBin: true + dependencies: + cuid: 2.1.8 + parse-duration: 1.1.0 + readline-sync: 1.4.10 + timeago.js: 4.0.2 + dev: true + + /cuid@2.1.8: + resolution: {integrity: sha512-xiEMER6E7TlTPnDxrM4eRiC6TRgjNX9xzEZ5U/Se2YJKr7Mq4pJn/2XEHjl3STcSh96GmkHPcBXLES8M29wyyg==} + deprecated: Cuid and other k-sortable and non-cryptographic ids (Ulid, ObjectId, KSUID, all UUIDs) are all insecure. Use @paralleldrive/cuid2 instead. + dev: true + + /parse-duration@1.1.0: + resolution: {integrity: sha512-z6t9dvSJYaPoQq7quMzdEagSFtpGu+utzHqqxmpVWNNZRIXnvqyCvn9XsTdh7c/w0Bqmdz3RB3YnRaKtpRtEXQ==} + dev: true + + /readline-sync@1.4.10: + resolution: {integrity: sha512-gNva8/6UAe8QYepIQH/jQ2qn91Qj0B9sYjMBBs3QOB8F2CXcKgLxQaJRP76sWVRQt+QU+8fAkCbCvjjMFu7Ycw==} + engines: {node: '>= 0.8.0'} + dev: true + + /timeago.js@4.0.2: + resolution: {integrity: sha512-a7wPxPdVlQL7lqvitHGGRsofhdwtkoSXPGATFuSOA2i1ZNQEPLrGnj68vOp2sOJTCFAQVXPeNMX/GctBaO9L2w==} + dev: true diff --git a/subgraphs/flow-scheduler/package.json b/subgraphs/flow-scheduler/package.json index 27a8211..56c0dd4 100644 --- a/subgraphs/flow-scheduler/package.json +++ b/subgraphs/flow-scheduler/package.json @@ -8,8 +8,8 @@ "license": "MIT", "author": "Superfluid", "scripts": { - "build": "graph build ./eth-mainnet.subgraph.yaml", - "deploy:test": "graph deploy --product hosted-service tokdaniel/scheduling-v1-mumbai-test polygon-mumbai.subgraph.yaml", + "build": "graph build ./polygon-mumbai.subgraph.yaml", + "deploy:test": "goldsky subgraph deploy scheduling-v1-mumbai-test/1.1.0 --path ./build", "dev": "nodemon -e ts -x yarn test", "gen": "npm-run-all -s gen:yaml gen:types", "gen:types": "graph codegen ./eth-mainnet.subgraph.yaml --output-dir src/types/", @@ -17,6 +17,7 @@ "test": "graph test" }, "devDependencies": { + "@goldskycom/cli": "^8.5.1", "@graphprotocol/graph-cli": "^0.56.0", "@graphprotocol/graph-ts": "^0.29.3", "@types/node": "^20.5.4", @@ -27,7 +28,7 @@ "nodemon": "^3.0.1", "npm-run-all": "^4.1.5", "prettier": "^3.0.2", - "ts-node": "^10.9.1", - "typescript": "^5.1.6" + "ts-node": "^10.9.2", + "typescript": "^5.4.2" } } diff --git a/subgraphs/flow-scheduler/pnpm-lock.yaml b/subgraphs/flow-scheduler/pnpm-lock.yaml index a3baf17..a618288 100644 --- a/subgraphs/flow-scheduler/pnpm-lock.yaml +++ b/subgraphs/flow-scheduler/pnpm-lock.yaml @@ -5,9 +5,12 @@ settings: excludeLinksFromLockfile: false devDependencies: + '@goldskycom/cli': + specifier: ^8.5.1 + version: 8.5.1 '@graphprotocol/graph-cli': specifier: ^0.56.0 - version: 0.56.0(@types/node@20.5.4)(node-fetch@3.3.2)(typescript@5.1.6) + version: 0.56.0(@types/node@20.5.4)(node-fetch@3.3.2)(typescript@5.4.2) '@graphprotocol/graph-ts': specifier: ^0.29.3 version: 0.29.3 @@ -36,11 +39,11 @@ devDependencies: specifier: ^3.0.2 version: 3.0.2 ts-node: - specifier: ^10.9.1 - version: 10.9.1(@types/node@20.5.4)(typescript@5.1.6) + specifier: ^10.9.2 + version: 10.9.2(@types/node@20.5.4)(typescript@5.4.2) typescript: - specifier: ^5.1.6 - version: 5.1.6 + specifier: ^5.4.2 + version: 5.4.2 packages: @@ -242,13 +245,23 @@ packages: js-yaml: 4.1.0 dev: true - /@graphprotocol/graph-cli@0.56.0(@types/node@20.5.4)(node-fetch@3.3.2)(typescript@5.1.6): + /@goldskycom/cli@8.5.1: + resolution: {integrity: sha512-jLXwRh4EFU8KByZnOG3EIuM6E4tbJz7er3XSF0cOIVPZJxOAqIWZuuOZeZpyhUsbvturisumO/GAwUIfOErGCg==} + hasBin: true + dependencies: + cuid: 2.1.8 + parse-duration: 1.1.0 + readline-sync: 1.4.10 + timeago.js: 4.0.2 + dev: true + + /@graphprotocol/graph-cli@0.56.0(@types/node@20.5.4)(node-fetch@3.3.2)(typescript@5.4.2): resolution: {integrity: sha512-bOVtYLDLJpyqjPv9RX8DwRFePOiIlzWZhQGuznb6lY7Uk+uvjc0JSBsgPOAWjwkAI+3U1Ux7GPVwgYSLIOBXoQ==} engines: {node: '>=14'} hasBin: true dependencies: '@float-capital/float-subgraph-uncrashable': 0.0.0-internal-testing.5 - '@oclif/core': 2.8.6(@types/node@20.5.4)(typescript@5.1.6) + '@oclif/core': 2.8.6(@types/node@20.5.4)(typescript@5.4.2) '@whatwg-node/fetch': 0.8.8 assemblyscript: 0.19.23 binary-install-raw: 0.0.13(debug@4.3.4) @@ -348,7 +361,7 @@ packages: fastq: 1.15.0 dev: true - /@oclif/core@2.8.6(@types/node@20.5.4)(typescript@5.1.6): + /@oclif/core@2.8.6(@types/node@20.5.4)(typescript@5.4.2): resolution: {integrity: sha512-1QlPaHMhOORySCXkQyzjsIsy2GYTilOw3LkjeHkCgsPJQjAT4IclVytJusWktPbYNys9O+O4V23J44yomQvnBQ==} engines: {node: '>=14.0.0'} dependencies: @@ -376,7 +389,7 @@ packages: strip-ansi: 6.0.1 supports-color: 8.1.1 supports-hyperlinks: 2.3.0 - ts-node: 10.9.1(@types/node@20.5.4)(typescript@5.1.6) + ts-node: 10.9.2(@types/node@20.5.4)(typescript@5.4.2) tslib: 2.6.2 widest-line: 3.1.0 wordwrap: 1.0.0 @@ -1222,6 +1235,11 @@ packages: which: 2.0.2 dev: true + /cuid@2.1.8: + resolution: {integrity: sha512-xiEMER6E7TlTPnDxrM4eRiC6TRgjNX9xzEZ5U/Se2YJKr7Mq4pJn/2XEHjl3STcSh96GmkHPcBXLES8M29wyyg==} + deprecated: Cuid and other k-sortable and non-cryptographic ids (Ulid, ObjectId, KSUID, all UUIDs) are all insecure. Use @paralleldrive/cuid2 instead. + dev: true + /dashdash@1.14.1: resolution: {integrity: sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==} engines: {node: '>=0.10'} @@ -1636,7 +1654,7 @@ packages: engines: {node: ^12.20 || >= 14.13} dependencies: node-domexception: 1.0.0 - web-streams-polyfill: 3.2.1 + web-streams-polyfill: 3.3.3 dev: true /filelist@1.0.4: @@ -3330,6 +3348,11 @@ packages: picomatch: 2.3.1 dev: true + /readline-sync@1.4.10: + resolution: {integrity: sha512-gNva8/6UAe8QYepIQH/jQ2qn91Qj0B9sYjMBBs3QOB8F2CXcKgLxQaJRP76sWVRQt+QU+8fAkCbCvjjMFu7Ycw==} + engines: {node: '>= 0.8.0'} + dev: true + /receptacle@1.3.2: resolution: {integrity: sha512-HrsFvqZZheusncQRiEE7GatOAETrARKV/lnfYicIm8lbvp/JQOdADOfhjBd2DajvoszEyxSM6RlAAIZgEoeu/A==} dependencies: @@ -3843,6 +3866,10 @@ packages: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} dev: true + /timeago.js@4.0.2: + resolution: {integrity: sha512-a7wPxPdVlQL7lqvitHGGRsofhdwtkoSXPGATFuSOA2i1ZNQEPLrGnj68vOp2sOJTCFAQVXPeNMX/GctBaO9L2w==} + dev: true + /timeout-abort-controller@2.0.0: resolution: {integrity: sha512-2FAPXfzTPYEgw27bQGTHc0SzrbmnU2eso4qo172zMLZzaGqeu09PFa5B2FCUHM1tflgRqPgn5KQgp6+Vex4uNA==} dependencies: @@ -3894,8 +3921,8 @@ packages: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} dev: true - /ts-node@10.9.1(@types/node@20.5.4)(typescript@5.1.6): - resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} + /ts-node@10.9.2(@types/node@20.5.4)(typescript@5.4.2): + resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: '@swc/core': '>=1.2.50' @@ -3920,7 +3947,7 @@ packages: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.1.6 + typescript: 5.4.2 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 dev: true @@ -3986,8 +4013,8 @@ packages: resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==} dev: true - /typescript@5.1.6: - resolution: {integrity: sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==} + /typescript@5.4.2: + resolution: {integrity: sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==} engines: {node: '>=14.17'} hasBin: true dev: true @@ -4085,6 +4112,11 @@ packages: engines: {node: '>= 8'} dev: true + /web-streams-polyfill@3.3.3: + resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==} + engines: {node: '>= 8'} + dev: true + /web3-eth-abi@1.7.0: resolution: {integrity: sha512-heqR0bWxgCJwjWIhq2sGyNj9bwun5+Xox/LdZKe+WMyTSy0cXDXEAgv3XKNkXC4JqdDt/ZlbTEx4TWak4TRMSg==} engines: {node: '>=8.0.0'} diff --git a/subgraphs/vesting-scheduler/package.json b/subgraphs/vesting-scheduler/package.json index a0b2d98..8472fc7 100644 --- a/subgraphs/vesting-scheduler/package.json +++ b/subgraphs/vesting-scheduler/package.json @@ -17,6 +17,7 @@ "test": "graph test" }, "devDependencies": { + "@goldskycom/cli": "^8.5.1", "@graphprotocol/graph-cli": "^0.56.0", "@graphprotocol/graph-ts": "^0.29.3", "@types/node": "^20.5.4", @@ -27,7 +28,7 @@ "nodemon": "^3.0.1", "npm-run-all": "^4.1.5", "prettier": "^3.0.2", - "ts-node": "^10.9.1", - "typescript": "^5.1.6" + "ts-node": "^10.9.2", + "typescript": "^5.4.2" } } diff --git a/subgraphs/vesting-scheduler/pnpm-lock.yaml b/subgraphs/vesting-scheduler/pnpm-lock.yaml index a89576f..a8679d7 100644 --- a/subgraphs/vesting-scheduler/pnpm-lock.yaml +++ b/subgraphs/vesting-scheduler/pnpm-lock.yaml @@ -5,9 +5,12 @@ settings: excludeLinksFromLockfile: false devDependencies: + '@goldskycom/cli': + specifier: ^8.5.1 + version: 8.5.1 '@graphprotocol/graph-cli': specifier: ^0.56.0 - version: 0.56.0(@types/node@20.5.4)(node-fetch@3.3.2)(typescript@5.1.6) + version: 0.56.0(@types/node@20.5.4)(node-fetch@3.3.2)(typescript@5.4.2) '@graphprotocol/graph-ts': specifier: ^0.29.3 version: 0.29.3 @@ -36,11 +39,11 @@ devDependencies: specifier: ^3.0.2 version: 3.0.2 ts-node: - specifier: ^10.9.1 - version: 10.9.1(@types/node@20.5.4)(typescript@5.1.6) + specifier: ^10.9.2 + version: 10.9.2(@types/node@20.5.4)(typescript@5.4.2) typescript: - specifier: ^5.1.6 - version: 5.1.6 + specifier: ^5.4.2 + version: 5.4.2 packages: @@ -242,13 +245,23 @@ packages: js-yaml: 4.1.0 dev: true - /@graphprotocol/graph-cli@0.56.0(@types/node@20.5.4)(node-fetch@3.3.2)(typescript@5.1.6): + /@goldskycom/cli@8.5.1: + resolution: {integrity: sha512-jLXwRh4EFU8KByZnOG3EIuM6E4tbJz7er3XSF0cOIVPZJxOAqIWZuuOZeZpyhUsbvturisumO/GAwUIfOErGCg==} + hasBin: true + dependencies: + cuid: 2.1.8 + parse-duration: 1.1.0 + readline-sync: 1.4.10 + timeago.js: 4.0.2 + dev: true + + /@graphprotocol/graph-cli@0.56.0(@types/node@20.5.4)(node-fetch@3.3.2)(typescript@5.4.2): resolution: {integrity: sha512-bOVtYLDLJpyqjPv9RX8DwRFePOiIlzWZhQGuznb6lY7Uk+uvjc0JSBsgPOAWjwkAI+3U1Ux7GPVwgYSLIOBXoQ==} engines: {node: '>=14'} hasBin: true dependencies: '@float-capital/float-subgraph-uncrashable': 0.0.0-internal-testing.5 - '@oclif/core': 2.8.6(@types/node@20.5.4)(typescript@5.1.6) + '@oclif/core': 2.8.6(@types/node@20.5.4)(typescript@5.4.2) '@whatwg-node/fetch': 0.8.8 assemblyscript: 0.19.23 binary-install-raw: 0.0.13(debug@4.3.4) @@ -348,7 +361,7 @@ packages: fastq: 1.15.0 dev: true - /@oclif/core@2.8.6(@types/node@20.5.4)(typescript@5.1.6): + /@oclif/core@2.8.6(@types/node@20.5.4)(typescript@5.4.2): resolution: {integrity: sha512-1QlPaHMhOORySCXkQyzjsIsy2GYTilOw3LkjeHkCgsPJQjAT4IclVytJusWktPbYNys9O+O4V23J44yomQvnBQ==} engines: {node: '>=14.0.0'} dependencies: @@ -376,7 +389,7 @@ packages: strip-ansi: 6.0.1 supports-color: 8.1.1 supports-hyperlinks: 2.3.0 - ts-node: 10.9.1(@types/node@20.5.4)(typescript@5.1.6) + ts-node: 10.9.2(@types/node@20.5.4)(typescript@5.4.2) tslib: 2.6.2 widest-line: 3.1.0 wordwrap: 1.0.0 @@ -1222,6 +1235,11 @@ packages: which: 2.0.2 dev: true + /cuid@2.1.8: + resolution: {integrity: sha512-xiEMER6E7TlTPnDxrM4eRiC6TRgjNX9xzEZ5U/Se2YJKr7Mq4pJn/2XEHjl3STcSh96GmkHPcBXLES8M29wyyg==} + deprecated: Cuid and other k-sortable and non-cryptographic ids (Ulid, ObjectId, KSUID, all UUIDs) are all insecure. Use @paralleldrive/cuid2 instead. + dev: true + /dashdash@1.14.1: resolution: {integrity: sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==} engines: {node: '>=0.10'} @@ -1636,7 +1654,7 @@ packages: engines: {node: ^12.20 || >= 14.13} dependencies: node-domexception: 1.0.0 - web-streams-polyfill: 3.2.1 + web-streams-polyfill: 3.3.3 dev: true /filelist@1.0.4: @@ -3321,6 +3339,11 @@ packages: picomatch: 2.3.1 dev: true + /readline-sync@1.4.10: + resolution: {integrity: sha512-gNva8/6UAe8QYepIQH/jQ2qn91Qj0B9sYjMBBs3QOB8F2CXcKgLxQaJRP76sWVRQt+QU+8fAkCbCvjjMFu7Ycw==} + engines: {node: '>= 0.8.0'} + dev: true + /receptacle@1.3.2: resolution: {integrity: sha512-HrsFvqZZheusncQRiEE7GatOAETrARKV/lnfYicIm8lbvp/JQOdADOfhjBd2DajvoszEyxSM6RlAAIZgEoeu/A==} dependencies: @@ -3834,6 +3857,10 @@ packages: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} dev: true + /timeago.js@4.0.2: + resolution: {integrity: sha512-a7wPxPdVlQL7lqvitHGGRsofhdwtkoSXPGATFuSOA2i1ZNQEPLrGnj68vOp2sOJTCFAQVXPeNMX/GctBaO9L2w==} + dev: true + /timeout-abort-controller@2.0.0: resolution: {integrity: sha512-2FAPXfzTPYEgw27bQGTHc0SzrbmnU2eso4qo172zMLZzaGqeu09PFa5B2FCUHM1tflgRqPgn5KQgp6+Vex4uNA==} dependencies: @@ -3885,8 +3912,8 @@ packages: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} dev: true - /ts-node@10.9.1(@types/node@20.5.4)(typescript@5.1.6): - resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} + /ts-node@10.9.2(@types/node@20.5.4)(typescript@5.4.2): + resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: '@swc/core': '>=1.2.50' @@ -3911,7 +3938,7 @@ packages: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.1.6 + typescript: 5.4.2 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 dev: true @@ -3977,8 +4004,8 @@ packages: resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==} dev: true - /typescript@5.1.6: - resolution: {integrity: sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==} + /typescript@5.4.2: + resolution: {integrity: sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==} engines: {node: '>=14.17'} hasBin: true dev: true @@ -4076,6 +4103,11 @@ packages: engines: {node: '>= 8'} dev: true + /web-streams-polyfill@3.3.3: + resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==} + engines: {node: '>= 8'} + dev: true + /web3-eth-abi@1.7.0: resolution: {integrity: sha512-heqR0bWxgCJwjWIhq2sGyNj9bwun5+Xox/LdZKe+WMyTSy0cXDXEAgv3XKNkXC4JqdDt/ZlbTEx4TWak4TRMSg==} engines: {node: '>=8.0.0'} diff --git a/subgraphs/wrap-scheduler/package.json b/subgraphs/wrap-scheduler/package.json index 29b7c36..e1c3988 100644 --- a/subgraphs/wrap-scheduler/package.json +++ b/subgraphs/wrap-scheduler/package.json @@ -17,6 +17,7 @@ "test": "echo 'no graph test yet'" }, "devDependencies": { + "@goldskycom/cli": "^8.5.1", "@graphprotocol/graph-cli": "^0.56.0", "@graphprotocol/graph-ts": "^0.29.3", "@types/node": "^20.5.4", @@ -27,7 +28,7 @@ "nodemon": "^3.0.1", "npm-run-all": "^4.1.5", "prettier": "^3.0.2", - "ts-node": "^10.9.1", - "typescript": "^5.1.6" + "ts-node": "^10.9.2", + "typescript": "^5.4.2" } } diff --git a/subgraphs/wrap-scheduler/pnpm-lock.yaml b/subgraphs/wrap-scheduler/pnpm-lock.yaml index a89576f..a8679d7 100644 --- a/subgraphs/wrap-scheduler/pnpm-lock.yaml +++ b/subgraphs/wrap-scheduler/pnpm-lock.yaml @@ -5,9 +5,12 @@ settings: excludeLinksFromLockfile: false devDependencies: + '@goldskycom/cli': + specifier: ^8.5.1 + version: 8.5.1 '@graphprotocol/graph-cli': specifier: ^0.56.0 - version: 0.56.0(@types/node@20.5.4)(node-fetch@3.3.2)(typescript@5.1.6) + version: 0.56.0(@types/node@20.5.4)(node-fetch@3.3.2)(typescript@5.4.2) '@graphprotocol/graph-ts': specifier: ^0.29.3 version: 0.29.3 @@ -36,11 +39,11 @@ devDependencies: specifier: ^3.0.2 version: 3.0.2 ts-node: - specifier: ^10.9.1 - version: 10.9.1(@types/node@20.5.4)(typescript@5.1.6) + specifier: ^10.9.2 + version: 10.9.2(@types/node@20.5.4)(typescript@5.4.2) typescript: - specifier: ^5.1.6 - version: 5.1.6 + specifier: ^5.4.2 + version: 5.4.2 packages: @@ -242,13 +245,23 @@ packages: js-yaml: 4.1.0 dev: true - /@graphprotocol/graph-cli@0.56.0(@types/node@20.5.4)(node-fetch@3.3.2)(typescript@5.1.6): + /@goldskycom/cli@8.5.1: + resolution: {integrity: sha512-jLXwRh4EFU8KByZnOG3EIuM6E4tbJz7er3XSF0cOIVPZJxOAqIWZuuOZeZpyhUsbvturisumO/GAwUIfOErGCg==} + hasBin: true + dependencies: + cuid: 2.1.8 + parse-duration: 1.1.0 + readline-sync: 1.4.10 + timeago.js: 4.0.2 + dev: true + + /@graphprotocol/graph-cli@0.56.0(@types/node@20.5.4)(node-fetch@3.3.2)(typescript@5.4.2): resolution: {integrity: sha512-bOVtYLDLJpyqjPv9RX8DwRFePOiIlzWZhQGuznb6lY7Uk+uvjc0JSBsgPOAWjwkAI+3U1Ux7GPVwgYSLIOBXoQ==} engines: {node: '>=14'} hasBin: true dependencies: '@float-capital/float-subgraph-uncrashable': 0.0.0-internal-testing.5 - '@oclif/core': 2.8.6(@types/node@20.5.4)(typescript@5.1.6) + '@oclif/core': 2.8.6(@types/node@20.5.4)(typescript@5.4.2) '@whatwg-node/fetch': 0.8.8 assemblyscript: 0.19.23 binary-install-raw: 0.0.13(debug@4.3.4) @@ -348,7 +361,7 @@ packages: fastq: 1.15.0 dev: true - /@oclif/core@2.8.6(@types/node@20.5.4)(typescript@5.1.6): + /@oclif/core@2.8.6(@types/node@20.5.4)(typescript@5.4.2): resolution: {integrity: sha512-1QlPaHMhOORySCXkQyzjsIsy2GYTilOw3LkjeHkCgsPJQjAT4IclVytJusWktPbYNys9O+O4V23J44yomQvnBQ==} engines: {node: '>=14.0.0'} dependencies: @@ -376,7 +389,7 @@ packages: strip-ansi: 6.0.1 supports-color: 8.1.1 supports-hyperlinks: 2.3.0 - ts-node: 10.9.1(@types/node@20.5.4)(typescript@5.1.6) + ts-node: 10.9.2(@types/node@20.5.4)(typescript@5.4.2) tslib: 2.6.2 widest-line: 3.1.0 wordwrap: 1.0.0 @@ -1222,6 +1235,11 @@ packages: which: 2.0.2 dev: true + /cuid@2.1.8: + resolution: {integrity: sha512-xiEMER6E7TlTPnDxrM4eRiC6TRgjNX9xzEZ5U/Se2YJKr7Mq4pJn/2XEHjl3STcSh96GmkHPcBXLES8M29wyyg==} + deprecated: Cuid and other k-sortable and non-cryptographic ids (Ulid, ObjectId, KSUID, all UUIDs) are all insecure. Use @paralleldrive/cuid2 instead. + dev: true + /dashdash@1.14.1: resolution: {integrity: sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==} engines: {node: '>=0.10'} @@ -1636,7 +1654,7 @@ packages: engines: {node: ^12.20 || >= 14.13} dependencies: node-domexception: 1.0.0 - web-streams-polyfill: 3.2.1 + web-streams-polyfill: 3.3.3 dev: true /filelist@1.0.4: @@ -3321,6 +3339,11 @@ packages: picomatch: 2.3.1 dev: true + /readline-sync@1.4.10: + resolution: {integrity: sha512-gNva8/6UAe8QYepIQH/jQ2qn91Qj0B9sYjMBBs3QOB8F2CXcKgLxQaJRP76sWVRQt+QU+8fAkCbCvjjMFu7Ycw==} + engines: {node: '>= 0.8.0'} + dev: true + /receptacle@1.3.2: resolution: {integrity: sha512-HrsFvqZZheusncQRiEE7GatOAETrARKV/lnfYicIm8lbvp/JQOdADOfhjBd2DajvoszEyxSM6RlAAIZgEoeu/A==} dependencies: @@ -3834,6 +3857,10 @@ packages: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} dev: true + /timeago.js@4.0.2: + resolution: {integrity: sha512-a7wPxPdVlQL7lqvitHGGRsofhdwtkoSXPGATFuSOA2i1ZNQEPLrGnj68vOp2sOJTCFAQVXPeNMX/GctBaO9L2w==} + dev: true + /timeout-abort-controller@2.0.0: resolution: {integrity: sha512-2FAPXfzTPYEgw27bQGTHc0SzrbmnU2eso4qo172zMLZzaGqeu09PFa5B2FCUHM1tflgRqPgn5KQgp6+Vex4uNA==} dependencies: @@ -3885,8 +3912,8 @@ packages: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} dev: true - /ts-node@10.9.1(@types/node@20.5.4)(typescript@5.1.6): - resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} + /ts-node@10.9.2(@types/node@20.5.4)(typescript@5.4.2): + resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: '@swc/core': '>=1.2.50' @@ -3911,7 +3938,7 @@ packages: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.1.6 + typescript: 5.4.2 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 dev: true @@ -3977,8 +4004,8 @@ packages: resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==} dev: true - /typescript@5.1.6: - resolution: {integrity: sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==} + /typescript@5.4.2: + resolution: {integrity: sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==} engines: {node: '>=14.17'} hasBin: true dev: true @@ -4076,6 +4103,11 @@ packages: engines: {node: '>= 8'} dev: true + /web-streams-polyfill@3.3.3: + resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==} + engines: {node: '>= 8'} + dev: true + /web3-eth-abi@1.7.0: resolution: {integrity: sha512-heqR0bWxgCJwjWIhq2sGyNj9bwun5+Xox/LdZKe+WMyTSy0cXDXEAgv3XKNkXC4JqdDt/ZlbTEx4TWak4TRMSg==} engines: {node: '>=8.0.0'} From 1af1eaa5c0b09cee90333aaa7f1c0b038c8a3dbd Mon Sep 17 00:00:00 2001 From: Kaspar Kallas Date: Mon, 18 Mar 2024 11:43:48 +0200 Subject: [PATCH 2/5] trigger action for pr --- .github/workflows/vs-subgraph-ci-goldsky.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/vs-subgraph-ci-goldsky.yml b/.github/workflows/vs-subgraph-ci-goldsky.yml index dfa7eef..2a3ced7 100644 --- a/.github/workflows/vs-subgraph-ci-goldsky.yml +++ b/.github/workflows/vs-subgraph-ci-goldsky.yml @@ -5,6 +5,7 @@ on: push: branches: - "release-v1/*" + - "goldsky" paths: - "subgraphs/vesting-scheduler/**" From d64d89483a6f8c42fc8dadb546cc668f8faacc7d Mon Sep 17 00:00:00 2001 From: Kaspar Kallas Date: Mon, 18 Mar 2024 11:45:39 +0200 Subject: [PATCH 3/5] change gha name --- .github/workflows/vs-subgraph-ci-goldsky.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/vs-subgraph-ci-goldsky.yml b/.github/workflows/vs-subgraph-ci-goldsky.yml index 2a3ced7..b42b5cc 100644 --- a/.github/workflows/vs-subgraph-ci-goldsky.yml +++ b/.github/workflows/vs-subgraph-ci-goldsky.yml @@ -1,11 +1,11 @@ -name: Deploy Superfluid VestingScheduler Subgraphs +name: Deploy Superfluid VestingScheduler Subgraphs (Goldsky) on: workflow_dispatch: push: branches: - "release-v1/*" - - "goldsky" + - "goldsky/*" paths: - "subgraphs/vesting-scheduler/**" From 17a0cb2cc6b74110e51d63f1b870d5edb18121bf Mon Sep 17 00:00:00 2001 From: Kaspar Kallas Date: Mon, 18 Mar 2024 11:46:57 +0200 Subject: [PATCH 4/5] try to get to trigger --- .github/workflows/vs-subgraph-ci-goldsky.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/vs-subgraph-ci-goldsky.yml b/.github/workflows/vs-subgraph-ci-goldsky.yml index b42b5cc..09ce7c9 100644 --- a/.github/workflows/vs-subgraph-ci-goldsky.yml +++ b/.github/workflows/vs-subgraph-ci-goldsky.yml @@ -5,7 +5,7 @@ on: push: branches: - "release-v1/*" - - "goldsky/*" + - "goldsky" paths: - "subgraphs/vesting-scheduler/**" From 595f2a2529e202808d415147837befa66d626466 Mon Sep 17 00:00:00 2001 From: Kaspar Kallas Date: Mon, 18 Mar 2024 11:49:09 +0200 Subject: [PATCH 5/5] add env secret --- .github/workflows/vs-subgraph-ci-goldsky.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/vs-subgraph-ci-goldsky.yml b/.github/workflows/vs-subgraph-ci-goldsky.yml index 09ce7c9..82f6bdd 100644 --- a/.github/workflows/vs-subgraph-ci-goldsky.yml +++ b/.github/workflows/vs-subgraph-ci-goldsky.yml @@ -1,4 +1,4 @@ -name: Deploy Superfluid VestingScheduler Subgraphs (Goldsky) +name: Deploy VestingScheduler Subgraphs (Goldsky) on: workflow_dispatch: