Skip to content

Commit

Permalink
Merge pull request #18 from superfluid-finance/fix-optimism-auto-wrap…
Browse files Browse the repository at this point in the history
…-subgraph

fix: fix optimism auto-wrap subgraph config
  • Loading branch information
kasparkallas authored Aug 13, 2024
2 parents 7fd49f0 + 26e03e5 commit d3c55f2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
32 changes: 19 additions & 13 deletions .github/workflows/aw-subgraph-ci-goldsky.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@ name: Deploy WrapScheduler 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/*"
Expand All @@ -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
Expand Down Expand Up @@ -71,4 +77,4 @@ jobs:
fi
- name: Goldsky Tag
if: steps.check-sync.outputs.sync == 'true'
run: pnpm exec goldsky subgraph tag create ${{format('auto-wrap-v1-{0}/{1}', matrix.networks, steps.get-version.outputs.result) }} --tag prod
run: pnpm exec goldsky subgraph tag create ${{format('auto-wrap-v1-{0}/{1}', matrix.networks, steps.get-version.outputs.result) }} --tag prod
4 changes: 2 additions & 2 deletions subgraphs/wrap-scheduler/config/optimism-mainnet.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"network": "optimism",
"wrapManagerAddress": "0xe567b32C10B0dB72d9490eB1B9A409C5ADed192C",
"wrapManagerStartBlock": 11311085
"wrapManagerAddress": "0x1fA76f2Cd0C3fe6c399A80111408d9C42C0CAC23",
"wrapManagerStartBlock": 91580804
}

0 comments on commit d3c55f2

Please sign in to comment.