From 32ac6adac954c5660559833ee2f7bf8bec703b3c Mon Sep 17 00:00:00 2001 From: mendesfabio Date: Thu, 24 Oct 2024 10:07:11 -0300 Subject: [PATCH] update to deployment 10 --- README.md | 12 ++++++------ networks.json | 12 ++++++------ scripts/generate-manifests.js | 2 +- subgraphs/v3-pools/src/mappings/weighted.ts | 2 +- subgraphs/v3-pools/template.yaml | 8 ++++---- subgraphs/v3-vault/template.yaml | 6 +++--- 6 files changed, 21 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index c5fd542..a221873 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,12 @@ This repository contains the subgraph implementations for Balancer v3, including ## Preliminary Deployments -| Subgraph | Version | Endpoint | -| -------- | ------- | ---------------------------------------------------------------------------------------- | -| Vault | 8th | https://api.studio.thegraph.com/query/31386/balancer-v3-sepolia-8th/version/latest | -| Pools | 8th | https://api.studio.thegraph.com/query/31386/balancer-pools-v3-sepolia-8th/version/latest | -| Vault | 7th | https://api.studio.thegraph.com/query/31386/balancer-v3-sepolia-7th/version/latest | -| Pools | 7th | https://api.studio.thegraph.com/query/31386/balancer-pools-v3-sepolia-7th/version/latest | +| Subgraph | Version | Endpoint | +| -------- | ------- | ----------------------------------------------------------------------------------------- | +| Vault | 10 | https://api.studio.thegraph.com/query/31386/balancer-v3-sepolia-10th/version/latest | +| Pools | 10 | https://api.studio.thegraph.com/query/31386/balancer-pools-v3-sepolia-10th/version/latest | +| Vault | 9th | https://api.studio.thegraph.com/query/31386/balancer-v3-sepolia-9th/version/latest | +| Pools | 9th | https://api.studio.thegraph.com/query/31386/balancer-pools-v3-sepolia-9th/version/latest | ## Prerequisites diff --git a/networks.json b/networks.json index 59a6506..34b4bb2 100644 --- a/networks.json +++ b/networks.json @@ -1,16 +1,16 @@ { "sepolia": { "Vault": { - "address": "0x0EF1c156a7986F394d90eD1bEeA6483Cc435F542", - "startBlock": 6638943 + "address": "0x68aD967ae8393B722EC69dB1018Ec28AF9A34493", + "startBlock": 6924029 }, "WeightedPoolFactory": { - "address": "0x7c5E586ed4EC1793a6076FC0Dcad03Ca2442f7F8", - "startBlock": 6638995 + "address": "0x4F12F60148F98aD920b99e844807F0e245f2AE58", + "startBlock": 6924094 }, "StablePoolFactory": { - "address": "0x2a55364B7948a460f9DEfFFc4440cB838A10dc26", - "startBlock": 6639020 + "address": "0xD895059a81711e4955823ED2C0755F204A86E5DA", + "startBlock": 6924116 } } } diff --git a/scripts/generate-manifests.js b/scripts/generate-manifests.js index edcfe9f..5ab57bf 100644 --- a/scripts/generate-manifests.js +++ b/scripts/generate-manifests.js @@ -15,7 +15,7 @@ function replacePlaceholders(template, network, networkData) { return result; } -['pools', 'vault'].forEach(subgraph => { +['v3-pools', 'v3-vault'].forEach(subgraph => { const templatePath = path.join('subgraphs', subgraph, 'template.yaml'); if (!fs.existsSync(templatePath)) { diff --git a/subgraphs/v3-pools/src/mappings/weighted.ts b/subgraphs/v3-pools/src/mappings/weighted.ts index c84f22f..ab71e6c 100644 --- a/subgraphs/v3-pools/src/mappings/weighted.ts +++ b/subgraphs/v3-pools/src/mappings/weighted.ts @@ -26,6 +26,6 @@ export function handleWeightedPoolCreated(event: PoolCreated): void { PoolType.Weighted, 1, handleWeightedPoolParams, - "stableParams" + "weightedParams" ); } diff --git a/subgraphs/v3-pools/template.yaml b/subgraphs/v3-pools/template.yaml index f05d402..d717f6a 100644 --- a/subgraphs/v3-pools/template.yaml +++ b/subgraphs/v3-pools/template.yaml @@ -4,11 +4,11 @@ schema: dataSources: - kind: ethereum name: WeightedPoolFactory - network: { { network } } + network: {{ network }} source: abi: BasePoolFactory address: "{{ WeightedPoolFactory.address }}" - startBlock: { { WeightedPoolFactory.startBlock } } + startBlock: {{ WeightedPoolFactory.startBlock }} mapping: kind: ethereum/events apiVersion: 0.0.7 @@ -27,11 +27,11 @@ dataSources: file: ./src/mappings/weighted.ts - kind: ethereum name: StablePoolFactory - network: { { network } } + network: {{ network }} source: abi: BasePoolFactory address: "{{ StablePoolFactory.address }}" - startBlock: { { StablePoolFactory.startBlock } } + startBlock: {{ StablePoolFactory.startBlock }} mapping: kind: ethereum/events apiVersion: 0.0.7 diff --git a/subgraphs/v3-vault/template.yaml b/subgraphs/v3-vault/template.yaml index ad9febe..48bbfde 100644 --- a/subgraphs/v3-vault/template.yaml +++ b/subgraphs/v3-vault/template.yaml @@ -4,11 +4,11 @@ schema: dataSources: - kind: ethereum name: Vault - network: { { network } } + network: {{ network }} source: abi: Vault address: "{{ Vault.address }}" - startBlock: { { Vault.startBlock } } + startBlock: {{ Vault.startBlock }} mapping: kind: ethereum/events apiVersion: 0.0.7 @@ -42,7 +42,7 @@ dataSources: templates: - kind: ethereum/contract name: BPT - network: { { network } } + network: {{ network }} source: abi: BPT mapping: