From 7c3ed4e2529382e3f7c7eb669e9943f98ae3ea39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Mendes?= Date: Mon, 4 Sep 2023 14:45:51 -0300 Subject: [PATCH 1/4] fix compute swap enabled function --- src/mappings/helpers/misc.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mappings/helpers/misc.ts b/src/mappings/helpers/misc.ts index 92ef5125..97b7ca09 100644 --- a/src/mappings/helpers/misc.ts +++ b/src/mappings/helpers/misc.ts @@ -462,6 +462,7 @@ export function computeCuratedSwapEnabled( internalSwapEnabled: boolean ): boolean { if (isPaused) return false; + if (!swapEnabledCurationSignal) return internalSwapEnabled; return swapEnabledCurationSignal && internalSwapEnabled; } From 37e6a02ae48ae17b1709549d3d1e01dd9d7d12ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Mendes?= Date: Mon, 4 Sep 2023 15:59:32 -0300 Subject: [PATCH 2/4] update polygon pruned base --- networks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/networks.yaml b/networks.yaml index dce9942e..bee85fdf 100644 --- a/networks.yaml +++ b/networks.yaml @@ -230,7 +230,7 @@ polygon: # Aug 27 block: 46810000 # this will be the base of the pruned deployment, so it is ok if it is a pruned subgraph - base: QmULAfA3eS5yojxeSR2KmbyuiwCGYPjymsFcpa6uYsu6CJ + base: QmdotN5vu9VXZZvHNJqugkJ2ZCHFQmx8eLe3UbDvNUxzHJ EventEmitter: address: "0xcdcECFa416EE3022030E707dC3EA13a8997D74c8" startBlock: 38152461 From 3c204cf3c7190d26ca31bc0348bae4e1389c22e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Mendes?= Date: Mon, 4 Sep 2023 16:05:59 -0300 Subject: [PATCH 3/4] fix if condition to compute swap enabled --- src/mappings/helpers/misc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mappings/helpers/misc.ts b/src/mappings/helpers/misc.ts index 97b7ca09..1d84b643 100644 --- a/src/mappings/helpers/misc.ts +++ b/src/mappings/helpers/misc.ts @@ -462,7 +462,7 @@ export function computeCuratedSwapEnabled( internalSwapEnabled: boolean ): boolean { if (isPaused) return false; - if (!swapEnabledCurationSignal) return internalSwapEnabled; + if (swapEnabledCurationSignal == null) return internalSwapEnabled; return swapEnabledCurationSignal && internalSwapEnabled; } From f1d434eca271732979a0271c80d1e02da738a7ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Mendes?= Date: Tue, 12 Sep 2023 09:02:20 -0300 Subject: [PATCH 4/4] comment out only polygon --- .github/workflows/graph.yml | 276 ++++++++++++++++++------------------ 1 file changed, 138 insertions(+), 138 deletions(-) diff --git a/.github/workflows/graph.yml b/.github/workflows/graph.yml index bc288cc4..6e72dd49 100644 --- a/.github/workflows/graph.yml +++ b/.github/workflows/graph.yml @@ -5,29 +5,29 @@ on: branches: master jobs: - # deploy-goerli: - # runs-on: ubuntu-latest - # environment: graph - # steps: - # - uses: actions/checkout@v2 - # - name: Install node - # uses: actions/setup-node@v1 - # with: - # node-version: 16 - # - name: Install - # run: yarn --frozen-lockfile - # - name: Assets - # run: yarn generate-assets goerli - # - name: Codegen - # run: yarn codegen - # - name: Build - # run: yarn build - # - uses: balancer-labs/graph-deploy@v0.0.1 - # with: - # graph_access_token: ${{secrets.GRAPH_ACCESS_TOKEN}} - # graph_subgraph_name: "balancer-goerli-v2" - # graph_account: "balancer-labs" - # graph_config_file: "subgraph.goerli.yaml" + deploy-goerli: + runs-on: ubuntu-latest + environment: graph + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Assets + run: yarn generate-assets goerli + - name: Codegen + run: yarn codegen + - name: Build + run: yarn build + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_access_token: ${{secrets.GRAPH_ACCESS_TOKEN}} + graph_subgraph_name: "balancer-goerli-v2" + graph_account: "balancer-labs" + graph_config_file: "subgraph.goerli.yaml" deploy-mainnet: runs-on: ubuntu-latest environment: graph @@ -97,121 +97,121 @@ jobs: # graph_subgraph_name: "balancer-polygon-prune-v2" # graph_account: "balancer-labs" # graph_config_file: "subgraph.polygon.pruned.yaml" - # deploy-arbitrum: - # runs-on: ubuntu-latest - # environment: graph - # steps: - # - uses: actions/checkout@v2 - # - name: Install node - # uses: actions/setup-node@v1 - # with: - # node-version: 16 - # - name: Install - # run: yarn --frozen-lockfile - # - name: Assets - # run: yarn generate-assets arbitrum - # - name: Codegen - # run: yarn codegen - # - name: Build - # run: yarn build - # - uses: balancer-labs/graph-deploy@v0.0.1 - # with: - # graph_access_token: ${{secrets.GRAPH_ACCESS_TOKEN}} - # graph_subgraph_name: "balancer-arbitrum-v2" - # graph_account: "balancer-labs" - # graph_config_file: "subgraph.arbitrum.yaml" - # deploy-gnosis: - # runs-on: ubuntu-latest - # environment: graph - # steps: - # - uses: actions/checkout@v2 - # - name: Install node - # uses: actions/setup-node@v1 - # with: - # node-version: 16 - # - name: Install - # run: yarn --frozen-lockfile - # - name: Assets - # run: yarn generate-assets gnosis - # - name: Codegen - # run: yarn codegen - # - name: Build - # run: yarn build - # - uses: balancer-labs/graph-deploy@v0.0.1 - # with: - # graph_access_token: ${{secrets.GRAPH_ACCESS_TOKEN}} - # graph_subgraph_name: "balancer-gnosis-chain-v2" - # graph_account: "balancer-labs" - # graph_config_file: "subgraph.gnosis.yaml" - # deploy-bnb: - # runs-on: ubuntu-latest - # environment: graph - # steps: - # - uses: actions/checkout@v2 - # - name: Install node - # uses: actions/setup-node@v1 - # with: - # node-version: 16 - # - name: Install - # run: yarn --frozen-lockfile - # - name: Assets - # run: yarn generate-assets bnb - # - name: Codegen - # run: yarn codegen - # - name: Build - # run: yarn build - # - uses: balancer-labs/graph-deploy@v0.0.1 - # with: - # graph_access_token: ${{secrets.GRAPH_ACCESS_TOKEN}} - # graph_subgraph_name: "balancer-bnbchain-v2" - # graph_account: "balancer-labs" - # graph_config_file: "subgraph.bnb.yaml" - # deploy-avalanche: - # runs-on: ubuntu-latest - # environment: graph - # steps: - # - uses: actions/checkout@v2 - # - name: Install node - # uses: actions/setup-node@v1 - # with: - # node-version: 16 - # - name: Install - # run: yarn --frozen-lockfile - # - name: Assets - # run: yarn generate-assets avalanche - # - name: Codegen - # run: yarn codegen - # - name: Build - # run: yarn build - # - uses: balancer-labs/graph-deploy@v0.0.1 - # with: - # graph_access_token: ${{secrets.GRAPH_ACCESS_TOKEN}} - # graph_subgraph_name: "balancer-avalanche-v2" - # graph_account: "balancer-labs" - # graph_config_file: "subgraph.avalanche.yaml" - # deploy-optimism: - # runs-on: ubuntu-latest - # environment: graph - # steps: - # - uses: actions/checkout@v2 - # - name: Install node - # uses: actions/setup-node@v1 - # with: - # node-version: 16 - # - name: Install - # run: yarn --frozen-lockfile - # - name: Assets - # run: yarn generate-assets optimism - # - name: Codegen - # run: yarn codegen - # - name: Build - # run: yarn build - # - uses: balancer-labs/graph-deploy@v0.0.1 - # with: - # graph_access_token: ${{secrets.GRAPH_ACCESS_TOKEN}} - # graph_subgraph_name: "balancer-optimism-v2" - # graph_account: "balancer-labs" - # graph_config_file: "subgraph.optimism.yaml" + deploy-arbitrum: + runs-on: ubuntu-latest + environment: graph + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Assets + run: yarn generate-assets arbitrum + - name: Codegen + run: yarn codegen + - name: Build + run: yarn build + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_access_token: ${{secrets.GRAPH_ACCESS_TOKEN}} + graph_subgraph_name: "balancer-arbitrum-v2" + graph_account: "balancer-labs" + graph_config_file: "subgraph.arbitrum.yaml" + deploy-gnosis: + runs-on: ubuntu-latest + environment: graph + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Assets + run: yarn generate-assets gnosis + - name: Codegen + run: yarn codegen + - name: Build + run: yarn build + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_access_token: ${{secrets.GRAPH_ACCESS_TOKEN}} + graph_subgraph_name: "balancer-gnosis-chain-v2" + graph_account: "balancer-labs" + graph_config_file: "subgraph.gnosis.yaml" + deploy-bnb: + runs-on: ubuntu-latest + environment: graph + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Assets + run: yarn generate-assets bnb + - name: Codegen + run: yarn codegen + - name: Build + run: yarn build + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_access_token: ${{secrets.GRAPH_ACCESS_TOKEN}} + graph_subgraph_name: "balancer-bnbchain-v2" + graph_account: "balancer-labs" + graph_config_file: "subgraph.bnb.yaml" + deploy-avalanche: + runs-on: ubuntu-latest + environment: graph + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Assets + run: yarn generate-assets avalanche + - name: Codegen + run: yarn codegen + - name: Build + run: yarn build + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_access_token: ${{secrets.GRAPH_ACCESS_TOKEN}} + graph_subgraph_name: "balancer-avalanche-v2" + graph_account: "balancer-labs" + graph_config_file: "subgraph.avalanche.yaml" + deploy-optimism: + runs-on: ubuntu-latest + environment: graph + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Assets + run: yarn generate-assets optimism + - name: Codegen + run: yarn codegen + - name: Build + run: yarn build + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_access_token: ${{secrets.GRAPH_ACCESS_TOKEN}} + graph_subgraph_name: "balancer-optimism-v2" + graph_account: "balancer-labs" + graph_config_file: "subgraph.optimism.yaml" env: CI: true