Skip to content

Commit

Permalink
add new base gauge factory
Browse files Browse the repository at this point in the history
  • Loading branch information
mendesfabio committed Sep 6, 2023
1 parent ea82261 commit 534bdeb
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
31 changes: 31 additions & 0 deletions manifest.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion networks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 534bdeb

Please sign in to comment.