From e8c96bdbf4af0b5a46714cd82476dc937d2b80ea Mon Sep 17 00:00:00 2001 From: Kaspar Kallas Date: Tue, 8 Oct 2024 18:52:38 +0300 Subject: [PATCH] add vesting scheduler v2 to base --- .github/workflows/vs-subgraph-ci-goldsky.yml | 30 +++++++++++-------- .../config/base-mainnet.json | 4 ++- subgraphs/vesting-scheduler/package.json | 2 +- 3 files changed, 22 insertions(+), 14 deletions(-) diff --git a/.github/workflows/vs-subgraph-ci-goldsky.yml b/.github/workflows/vs-subgraph-ci-goldsky.yml index 2fbe178..b0ee1fb 100644 --- a/.github/workflows/vs-subgraph-ci-goldsky.yml +++ b/.github/workflows/vs-subgraph-ci-goldsky.yml @@ -2,6 +2,23 @@ name: Deploy VestingScheduler Subgraphs (Goldsky) on: workflow_dispatch: + inputs: + network: + description: 'Network to deploy (select "all" for all networks)' + required: true + type: choice + options: + - all + - avalanche-c + - arbitrum-one + - bsc-mainnet + - eth-mainnet + - xdai-mainnet + - optimism-mainnet + - polygon-mainnet + - optimism-sepolia + - base-mainnet + default: 'all' push: branches: - "release-v1/*" @@ -17,18 +34,7 @@ jobs: strategy: fail-fast: false matrix: - networks: - [ - "avalanche-c", - "arbitrum-one", - "bsc-mainnet", - "eth-mainnet", - "xdai-mainnet", - "optimism-mainnet", - "polygon-mainnet", - "optimism-sepolia", - "base-mainnet" - ] + networks: ${{ github.event.inputs.network == 'all' && fromJson('["avalanche-c", "arbitrum-one", "bsc-mainnet", "eth-mainnet", "xdai-mainnet", "optimism-mainnet", "polygon-mainnet", "optimism-sepolia", "base-mainnet"]') || fromJson(format('["{0}"]', github.event.inputs.network)) }} steps: - uses: actions/checkout@v4 - name: Install node diff --git a/subgraphs/vesting-scheduler/config/base-mainnet.json b/subgraphs/vesting-scheduler/config/base-mainnet.json index 011c85d..bdf9fb8 100644 --- a/subgraphs/vesting-scheduler/config/base-mainnet.json +++ b/subgraphs/vesting-scheduler/config/base-mainnet.json @@ -1,5 +1,7 @@ { "network": "base", "vestingSchedulerAddress": "0xDF92D0E6Bcb9385FDe99aD21Ff5e47Fb47E3c6b2", - "vestingSchedulerStartBlock": 13848269 + "vestingSchedulerStartBlock": 13848269, + "vestingSchedulerAddress_v2": "0x7b77A34b8B76B66E97a5Ae01aD052205d5cbe257", + "vestingSchedulerStartBlock_v2": 20799363 } diff --git a/subgraphs/vesting-scheduler/package.json b/subgraphs/vesting-scheduler/package.json index 6380cfa..91ee026 100644 --- a/subgraphs/vesting-scheduler/package.json +++ b/subgraphs/vesting-scheduler/package.json @@ -1,6 +1,6 @@ { "name": "vesting-scheduler-subgraph", - "version": "1.0.3", + "version": "1.0.4", "description": "A subgraph for the vesting scheduler contracts", "keywords": [ "subgraph"