From 534bdebfa025a6961ef08da64e55296cfe69762c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Mendes?= Date: Wed, 6 Sep 2023 15:30:16 -0300 Subject: [PATCH] add new base gauge factory --- manifest.template.yaml | 31 +++++++++++++++++++++++++++++++ networks.yaml | 5 ++++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/manifest.template.yaml b/manifest.template.yaml index a0a6bcb..ee253eb 100644 --- a/manifest.template.yaml +++ b/manifest.template.yaml @@ -469,6 +469,37 @@ dataSources: - event: GaugeCreated(indexed address) handler: handleChildChainV2LiquidityGaugeCreated {{/if}} + {{#if tempChildChainGaugeV2Factory}} + - kind: ethereum/contract + name: TempChildChainLiquidityGaugeV2Factory + # prettier-ignore + network: {{network}} + source: + address: '{{tempChildChainGaugeV2Factory.address}}' + abi: ChildChainGaugeV2Factory + # prettier-ignore + startBlock: {{ tempChildChainGaugeV2Factory.startBlock }} + mapping: + kind: ethereum/events + apiVersion: 0.0.5 + language: wasm/assemblyscript + file: ./src/gaugeFactory.ts + abis: + - name: ChildChainGaugeV2Factory + file: ./abis/ChildChainGaugeV2Factory.json + - name: LiquidityGauge + file: ./abis/LiquidityGauge.json + - name: WeightedPool + file: ./abis/WeightedPool.json + - name: Vault + file: ./abis/Vault.json + entities: + - GaugeFactory + - LiquidityGauge + eventHandlers: + - event: GaugeCreated(indexed address) + handler: handleChildChainV2LiquidityGaugeCreated + {{/if}} {{#if gaugeController}} - kind: ethereum/contract name: GaugeController diff --git a/networks.yaml b/networks.yaml index ff0092e..7ba45e6 100644 --- a/networks.yaml +++ b/networks.yaml @@ -210,9 +210,12 @@ base: EventEmitter: address: "0x94eA79f1dD4f1B89D87fE1E71c9723b8003AB3d3" startBlock: 1275405 - childChainGaugeV2Factory: + tempChildChainGaugeV2Factory: address: "0x2498A2B0d6462d2260EAC50aE1C3e03F4829BA95" startBlock: 1204492 + childChainGaugeV2Factory: + address: "0xb1a4FE1C6d25a0DDAb47431A92A723dd71d9021f" + startBlock: 2555348 authorizerAdaptorEntrypoint: address: "0x9129E834e15eA19b6069e8f08a8EcFc13686B8dC" startBlock: 1205742 \ No newline at end of file