From bd0f3518a7982428bca029995bca1792c7f77507 Mon Sep 17 00:00:00 2001 From: Kallol Borah Date: Mon, 5 Aug 2024 21:06:12 +0100 Subject: [PATCH] updated on vault-gnosis v0.0.4 --- networks.yaml | 4 +- subgraph.yaml | 573 ++++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 539 insertions(+), 38 deletions(-) diff --git a/networks.yaml b/networks.yaml index 6fa793a6..38147637 100644 --- a/networks.yaml +++ b/networks.yaml @@ -593,8 +593,8 @@ gnosis: address: "0xd51114303E9640022F3222CD8AcD54Ea4DbA10D4" startBlock: 34472379 SecondaryIssuePoolFactory: - address: "0x9567B156C039D141667BF77136D423226A7cCb59" - startBlock: 34472408 + address: "0xd5f976F6C2339203A72b87B5bfb9b22d278cF5cE" + startBlock: 35333706 MarginTradingPoolFactory: address: "0x2291E72C85a12873bF7d60EeC2EE3f0a98A35204" startBlock: 34472822 diff --git a/subgraph.yaml b/subgraph.yaml index ca04cd43..3261a8f8 100644 --- a/subgraph.yaml +++ b/subgraph.yaml @@ -6,11 +6,11 @@ schema: dataSources: - kind: ethereum/contract name: EventEmitter - network: base + network: gnosis source: - address: '0x94eA79f1dD4f1B89D87fE1E71c9723b8003AB3d3' + address: '0xd8bf95b44772213905a8a74881862347acbabc48' abi: EventEmitter - startBlock: 1275405 + startBlock: 26892431 mapping: kind: ethereum/events apiVersion: 0.0.6 @@ -26,11 +26,11 @@ dataSources: handler: handleLogArgument - kind: ethereum/contract name: Vault - network: base + network: gnosis source: address: '0xBA12222222228d8Ba445958a75a0704d566BF2C8' abi: Vault - startBlock: 1196036 + startBlock: 24821598 mapping: kind: ethereum/events apiVersion: 0.0.6 @@ -73,16 +73,108 @@ dataSources: handler: handleInternalBalanceChange # # + # - kind: ethereum/contract + # name: WeightedPoolV2Factory + # network: gnosis + # source: + # address: '0xf302f9F50958c5593770FDf4d4812309fF77414f' + # abi: WeightedPoolFactory + # startBlock: 25414470 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # file: ./src/mappings/poolFactory.ts + # entities: + # - Balancer + # - Pool + # abis: + # - name: Vault + # file: ./abis/Vault.json + # - name: ERC20 + # file: ./abis/ERC20.json + # - name: WeightedPoolFactory + # file: ./abis/WeightedPoolFactory.json + # - name: WeightedPool + # file: ./abis/WeightedPool.json + # - name: WeightedPoolV2 + # file: ./abis/WeightedPoolV2.json + # eventHandlers: + # - event: PoolCreated(indexed address) + # handler: handleNewWeightedPoolV2 # # + # - kind: ethereum/contract + # name: WeightedPoolV3Factory + # network: gnosis + # source: + # address: '0xC128a9954e6c874eA3d62ce62B468bA073093F25' + # abi: WeightedPoolFactory + # startBlock: 26226256 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # file: ./src/mappings/poolFactory.ts + # entities: + # - Balancer + # - Pool + # abis: + # - name: Vault + # file: ./abis/Vault.json + # - name: ERC20 + # file: ./abis/ERC20.json + # - name: WeightedPoolFactory + # file: ./abis/WeightedPoolFactory.json + # - name: WeightedPool + # file: ./abis/WeightedPool.json + # - name: WeightedPoolV2 + # file: ./abis/WeightedPoolV2.json + # eventHandlers: + # - event: PoolCreated(indexed address) + # handler: handleNewWeightedPoolV3 + # + # + # - kind: ethereum/contract + # name: WeightedPoolV4Factory + # network: gnosis + # source: + # address: '0x6CaD2ea22BFA7F4C14Aae92E47F510Cd5C509bc7' + # abi: WeightedPoolFactory + # startBlock: 27055829 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # file: ./src/mappings/poolFactory.ts + # entities: + # - Balancer + # - Pool + # abis: + # - name: Vault + # file: ./abis/Vault.json + # - name: ERC20 + # file: ./abis/ERC20.json + # - name: WeightedPoolFactory + # file: ./abis/WeightedPoolFactory.json + # - name: WeightedPool + # file: ./abis/WeightedPool.json + # - name: WeightedPoolV2 + # file: ./abis/WeightedPoolV2.json + # - name: ComposableStablePool + # file: ./abis/ComposableStablePool.json + # eventHandlers: + # - event: PoolCreated(indexed address) + # handler: handleNewWeightedPoolV4 + # # - kind: ethereum/contract name: PrimaryIssuePoolFactory - network: base + network: gnosis source: - address: '0x73465Be532Aa390728D3Bb75D0b16F936Cd56bBE' + address: '0xd51114303E9640022F3222CD8AcD54Ea4DbA10D4' abi: PrimaryIssuePoolFactory - startBlock: 17650089 + startBlock: 34472379 mapping: kind: ethereum/events apiVersion: 0.0.6 @@ -107,11 +199,11 @@ dataSources: handler: handleNewPrimaryPool - kind: ethereum/contract name: SecondaryIssuePoolFactory - network: base + network: gnosis source: - address: '0xD0c101dd9B26B579D95d311dbaaF6CBCF0B55DeE' + address: '0xd5f976F6C2339203A72b87B5bfb9b22d278cF5cE' abi: SecondaryIssuePoolFactory - startBlock: 17650165 + startBlock: 35333706 mapping: kind: ethereum/events apiVersion: 0.0.6 @@ -137,11 +229,11 @@ dataSources: # - kind: ethereum/contract name: MarginTradingPoolFactory - network: base + network: gnosis source: - address: '0xb864e62CFebd368F4491Fe52A4Fcc22c1c525F1C' + address: '0x2291E72C85a12873bF7d60EeC2EE3f0a98A35204' abi: MarginTradingPoolFactory - startBlock: 17650303 + startBlock: 34472822 mapping: kind: ethereum/events apiVersion: 0.0.6 @@ -166,36 +258,415 @@ dataSources: handler: handleNewMarginPool # # + # - kind: ethereum/contract + # name: StablePoolV2Factory + # network: gnosis + # source: + # address: '0xf23b4DB826DbA14c0e857029dfF076b1c0264843' + # abi: StablePoolFactory + # startBlock: 25415344 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # file: ./src/mappings/poolFactory.ts + # entities: + # - Balancer + # - Pool + # abis: + # - name: Vault + # file: ./abis/Vault.json + # - name: ERC20 + # file: ./abis/ERC20.json + # - name: WeightedPool + # file: ./abis/WeightedPool.json + # - name: StablePoolFactory + # file: ./abis/StablePoolFactory.json + # - name: StablePool + # file: ./abis/StablePool.json + # eventHandlers: + # - event: PoolCreated(indexed address) + # handler: handleNewStablePoolV2 + # + # + # + # + # - kind: ethereum/contract + # name: TempLiquidityBootstrappingPoolFactory + # network: gnosis + # source: + # address: '0x85a80afee867aDf27B50BdB7b76DA70f1E853062' + # abi: LiquidityBootstrappingPoolFactory + # startBlock: 25415236 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # file: ./src/mappings/poolFactory.ts + # entities: + # - Balancer + # - Pool + # abis: + # - name: Vault + # file: ./abis/Vault.json + # - name: ERC20 + # file: ./abis/ERC20.json + # - name: WeightedPool + # file: ./abis/WeightedPool.json + # - name: LiquidityBootstrappingPoolFactory + # file: ./abis/LiquidityBootstrappingPoolFactory.json + # - name: LiquidityBootstrappingPool + # file: ./abis/LiquidityBootstrappingPool.json + # eventHandlers: + # - event: PoolCreated(indexed address) + # handler: handleNewLiquidityBootstrappingPool + # # # + # - kind: ethereum/contract + # name: ManagedPoolV2Factory + # network: gnosis + # source: + # address: '0xDF9B5B00Ef9bca66e9902Bd813dB14e4343Be025' + # abi: ManagedPoolV2Factory + # startBlock: 27434722 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # file: ./src/mappings/poolFactory.ts + # entities: + # - Balancer + # - Pool + # abis: + # - name: Vault + # file: ./abis/Vault.json + # - name: ERC20 + # file: ./abis/ERC20.json + # - name: WeightedPool + # file: ./abis/WeightedPool.json + # - name: WeightedPoolV2 + # file: ./abis/WeightedPoolV2.json + # - name: ManagedPoolV2Factory + # file: ./abis/ManagedPoolV2Factory.json + # - name: ManagedPool + # file: ./abis/ManagedPoolV2.json + # eventHandlers: + # - event: PoolCreated(indexed address) + # handler: handleNewManagedPoolV2 # # # # # # + # - kind: ethereum/contract + # name: ComposableStablePoolV2Factory + # network: gnosis + # source: + # address: '0x76578ecf9a141296Ec657847fb45B0585bCDa3a6' + # abi: ComposableStablePoolV2Factory + # startBlock: 25415385 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # file: ./src/mappings/poolFactory.ts + # entities: + # - Balancer + # - Pool + # abis: + # - name: Vault + # file: ./abis/Vault.json + # - name: ERC20 + # file: ./abis/ERC20.json + # - name: WeightedPool + # file: ./abis/WeightedPool.json + # - name: ComposableStablePoolV2Factory + # file: ./abis/ComposableStablePoolV2Factory.json + # - name: ComposableStablePool + # file: ./abis/ComposableStablePool.json + # - name: StablePool + # file: ./abis/StablePool.json + # eventHandlers: + # - event: PoolCreated(indexed address) + # handler: handleNewComposableStablePoolV2 # # + # - kind: ethereum/contract + # name: ComposableStablePoolV3Factory + # network: gnosis + # source: + # address: '0xC128468b7Ce63eA702C1f104D55A2566b13D3ABD' + # abi: ComposableStablePoolV2Factory + # startBlock: 26365805 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # file: ./src/mappings/poolFactory.ts + # entities: + # - Balancer + # - Pool + # abis: + # - name: Vault + # file: ./abis/Vault.json + # - name: ERC20 + # file: ./abis/ERC20.json + # - name: WeightedPool + # file: ./abis/WeightedPool.json + # - name: ComposableStablePoolV2Factory + # file: ./abis/ComposableStablePoolV2Factory.json + # - name: ComposableStablePool + # file: ./abis/ComposableStablePool.json + # - name: StablePool + # file: ./abis/StablePool.json + # eventHandlers: + # - event: PoolCreated(indexed address) + # handler: handleNewComposableStablePoolV3 # # + # - kind: ethereum/contract + # name: ComposableStablePoolV4Factory + # network: gnosis + # source: + # address: '0xD87F44Df0159DC78029AB9CA7D7e57E7249F5ACD' + # abi: ComposableStablePoolV2Factory + # startBlock: 27056416 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # file: ./src/mappings/poolFactory.ts + # entities: + # - Balancer + # - Pool + # abis: + # - name: Vault + # file: ./abis/Vault.json + # - name: ERC20 + # file: ./abis/ERC20.json + # - name: WeightedPool + # file: ./abis/WeightedPool.json + # - name: ComposableStablePoolV2Factory + # file: ./abis/ComposableStablePoolV2Factory.json + # - name: ComposableStablePool + # file: ./abis/ComposableStablePool.json + # - name: StablePool + # file: ./abis/StablePool.json + # eventHandlers: + # - event: PoolCreated(indexed address) + # handler: handleNewComposableStablePoolV4 # # + # - kind: ethereum/contract + # name: ComposableStablePoolV5Factory + # network: gnosis + # source: + # address: '0x4bdCc2fb18AEb9e2d281b0278D946445070EAda7' + # abi: ComposableStablePoolV2Factory + # startBlock: 28832248 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # file: ./src/mappings/poolFactory.ts + # entities: + # - Balancer + # - Pool + # abis: + # - name: Vault + # file: ./abis/Vault.json + # - name: ERC20 + # file: ./abis/ERC20.json + # - name: WeightedPool + # file: ./abis/WeightedPool.json + # - name: ComposableStablePoolV2Factory + # file: ./abis/ComposableStablePoolV2Factory.json + # - name: ComposableStablePool + # file: ./abis/ComposableStablePool.json + # - name: StablePool + # file: ./abis/StablePool.json + # eventHandlers: + # - event: PoolCreated(indexed address) + # handler: handleNewComposableStablePoolV5 # # # + # - kind: ethereum/contract + # name: ComposableStablePoolV6Factory + # network: gnosis + # source: + # address: '0x47B489bf5836f83ABD928C316F8e39bC0587B020' + # abi: ComposableStablePoolV2Factory + # startBlock: 32650879 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # file: ./src/mappings/poolFactory.ts + # entities: + # - Balancer + # - Pool + # abis: + # - name: Vault + # file: ./abis/Vault.json + # - name: ERC20 + # file: ./abis/ERC20.json + # - name: WeightedPool + # file: ./abis/WeightedPool.json + # - name: ComposableStablePoolV2Factory + # file: ./abis/ComposableStablePoolV2Factory.json + # - name: ComposableStablePool + # file: ./abis/ComposableStablePool.json + # - name: StablePool + # file: ./abis/StablePool.json + # eventHandlers: + # - event: PoolCreated(indexed address) + # handler: handleNewComposableStablePoolV6 # # # # # + # - kind: ethereum/contract + # name: AaveLinearPoolV3Factory + # network: gnosis + # source: + # address: '0x9dd5Db2d38b50bEF682cE532bCca5DfD203915E1' + # abi: AaveLinearPoolV3Factory + # startBlock: 25415464 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # file: ./src/mappings/poolFactory.ts + # entities: + # - Balancer + # - Pool + # abis: + # - name: Vault + # file: ./abis/Vault.json + # - name: ERC20 + # file: ./abis/ERC20.json + # - name: WeightedPool + # file: ./abis/WeightedPool.json + # - name: AaveLinearPoolV3Factory + # file: ./abis/AaveLinearPoolV3Factory.json + # - name: LinearPool + # file: ./abis/LinearPool.json + # - name: AaveLinearPool + # file: ./abis/AaveLinearPool.json + # eventHandlers: + # - event: PoolCreated(indexed address) + # handler: handleNewAaveLinearPoolV3 + # - event: AaveLinearPoolCreated(indexed address,indexed uint256) + # handler: handleLinearPoolProtocolId # # + # - kind: ethereum/contract + # name: AaveLinearPoolV4Factory + # network: gnosis + # source: + # address: '0x9dA18982a33FD0c7051B19F0d7C76F2d5E7e017c' + # abi: AaveLinearPoolV4Factory + # startBlock: 26410978 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # file: ./src/mappings/poolFactory.ts + # entities: + # - Balancer + # - Pool + # abis: + # - name: Vault + # file: ./abis/Vault.json + # - name: ERC20 + # file: ./abis/ERC20.json + # - name: WeightedPool + # file: ./abis/WeightedPool.json + # - name: AaveLinearPoolV4Factory + # file: ./abis/AaveLinearPoolV4Factory.json + # - name: LinearPool + # file: ./abis/LinearPool.json + # - name: AaveLinearPool + # file: ./abis/AaveLinearPool.json + # eventHandlers: + # - event: PoolCreated(indexed address) + # handler: handleNewAaveLinearPoolV4 + # - event: AaveLinearPoolCreated(indexed address,indexed uint256) + # handler: handleLinearPoolProtocolId # # + # - kind: ethereum/contract + # name: AaveLinearPoolV5Factory + # network: gnosis + # source: + # address: '0x62aaB12865d7281048c337D53a4dde9d770321E6' + # abi: AaveLinearPoolV5Factory + # startBlock: 27443297 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # file: ./src/mappings/poolFactory.ts + # entities: + # - Balancer + # - Pool + # abis: + # - name: Vault + # file: ./abis/Vault.json + # - name: ERC20 + # file: ./abis/ERC20.json + # - name: WeightedPool + # file: ./abis/WeightedPool.json + # - name: AaveLinearPoolV5Factory + # file: ./abis/AaveLinearPoolV5Factory.json + # - name: LinearPool + # file: ./abis/LinearPool.json + # - name: AaveLinearPool + # file: ./abis/AaveLinearPool.json + # eventHandlers: + # - event: PoolCreated(indexed address) + # handler: handleNewAaveLinearPoolV5 + # - event: AaveLinearPoolCreated(indexed address,indexed uint256) + # handler: handleLinearPoolProtocolId # # # # + # - kind: ethereum/contract + # name: ERC4626LinearPoolFactory + # network: gnosis + # source: + # address: '0x4132f7AcC9dB7A6cF7BE2Dd3A9DC8b30C7E6E6c8' + # abi: ERC4626LinearPoolFactory + # startBlock: 25415264 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # file: ./src/mappings/poolFactory.ts + # entities: + # - Balancer + # - Pool + # abis: + # - name: Vault + # file: ./abis/Vault.json + # - name: ERC20 + # file: ./abis/ERC20.json + # - name: WeightedPool + # file: ./abis/WeightedPool.json + # - name: ERC4626LinearPoolFactory + # file: ./abis/ERC4626LinearPoolFactory.json + # - name: LinearPool + # file: ./abis/LinearPool.json + # - name: ERC4626LinearPool + # file: ./abis/ERC4626LinearPool.json + # eventHandlers: + # - event: PoolCreated(indexed address) + # handler: handleNewERC4626LinearPool # # # @@ -211,13 +682,43 @@ dataSources: # # # + # + # + # + # + # + # + # + # - kind: ethereum/contract + # name: ProtocolIdRegistry + # network: gnosis + # source: + # address: '0x6B5dA774890Db7B7b96C6f44e6a4b0F657399E2e' + # abi: ProtocolIdRegistry + # startBlock: 26691522 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # file: ./src/mappings/poolFactory.ts + # entities: + # - ProtocolIdData + # abis: + # - name: ProtocolIdRegistry + # file: ./abis/ProtocolIdRegistry.json + # eventHandlers: + # - event: ProtocolIdRegistered(indexed uint256,string) + # handler: handleProtocolIdRegistryOrRename + # - event: ProtocolIdRenamed(indexed uint256,string) + # handler: handleProtocolIdRegistryOrRename + # # # # templates: - kind: ethereum/contract name: WeightedPool - network: base + network: gnosis source: abi: WeightedPool mapping: @@ -244,7 +745,7 @@ templates: handler: handlePausedStateChanged - kind: ethereum/contract name: WeightedPoolV2 - network: base + network: gnosis source: abi: WeightedPoolV2 mapping: @@ -275,7 +776,7 @@ templates: handler: handlePausedStateChanged - kind: ethereum/contract name: WeightedPool2Tokens - network: base + network: gnosis source: abi: WeightedPool2Tokens mapping: @@ -304,7 +805,7 @@ templates: handler: handlePausedStateChanged - kind: ethereum/contract name: StablePool - network: base + network: gnosis source: abi: StablePool mapping: @@ -335,7 +836,7 @@ templates: handler: handlePausedStateChanged - kind: ethereum/contract name: MetaStablePool - network: base + network: gnosis source: abi: MetaStablePool mapping: @@ -375,7 +876,7 @@ templates: handler: handlePausedStateChanged - kind: ethereum/contract name: ConvergentCurvePool - network: base + network: gnosis source: abi: ConvergentCurvePool mapping: @@ -398,7 +899,7 @@ templates: handler: handleTransfer - kind: ethereum/contract name: LiquidityBootstrappingPool - network: base + network: gnosis source: abi: LiquidityBootstrappingPool mapping: @@ -430,7 +931,7 @@ templates: handler: handlePausedStateChanged - kind: ethereum/contract name: InvestmentPool - network: base + network: gnosis source: abi: InvestmentPool mapping: @@ -464,7 +965,7 @@ templates: handler: handlePausedStateChanged - kind: ethereum/contract name: ManagedPool - network: base + network: gnosis source: abi: ManagedPool mapping: @@ -520,7 +1021,7 @@ templates: handler: handleEncodedProtocolFeePercentageCacheUpdated - kind: ethereum/contract name: StablePhantomPool - network: base + network: gnosis source: abi: StablePhantomPool mapping: @@ -558,7 +1059,7 @@ templates: handler: handlePausedStateChanged - kind: ethereum/contract name: StablePhantomPoolV2 - network: base + network: gnosis source: abi: ComposableStablePool mapping: @@ -602,7 +1103,7 @@ templates: handler: handlePausedStateChanged - kind: ethereum/contract name: LinearPool - network: base + network: gnosis source: abi: LinearPool mapping: @@ -636,7 +1137,7 @@ templates: handler: handlePausedStateChanged - kind: ethereum/contract name: PrimaryIssuePool - network: base + network: gnosis source: abi: PrimaryIssuePool mapping: @@ -665,7 +1166,7 @@ templates: handler: handleSubscription - kind: ethereum/contract name: SecondaryIssuePool - network: base + network: gnosis source: abi: SecondaryIssuePool mapping: @@ -696,7 +1197,7 @@ templates: handler: handleOrderBook - kind: ethereum/contract name: OffchainSecondariesPool - network: base + network: gnosis source: abi: OffchainSecondariesPool mapping: @@ -727,7 +1228,7 @@ templates: handler: handleOffchainOrderBook - kind: ethereum/contract name: MarginTradingPool - network: base + network: gnosis source: abi: MarginTradingPool mapping: @@ -758,7 +1259,7 @@ templates: handler: handleMarginOrderBook - kind: ethereum/contract name: Gyro2Pool - network: base + network: gnosis source: abi: Gyro2V2Pool mapping: @@ -788,7 +1289,7 @@ templates: handler: handleUnpauseGyroPool - kind: ethereum/contract name: Gyro3Pool - network: base + network: gnosis source: abi: Gyro3Pool mapping: @@ -818,7 +1319,7 @@ templates: handler: handleUnpauseGyroPool - kind: ethereum/contract name: GyroEPool - network: base + network: gnosis source: abi: GyroEV2Pool mapping: @@ -848,7 +1349,7 @@ templates: handler: handleUnpauseGyroPool - kind: ethereum/contract name: FXPoolDeployer - network: base + network: gnosis source: abi: FXPoolDeployer mapping: @@ -886,7 +1387,7 @@ templates: handler: handleNewFXPoolV2 - kind: ethereum/contract name: FXPool - network: base + network: gnosis source: abi: FXPool mapping: @@ -912,7 +1413,7 @@ templates: handler: handleParametersSet - kind: ethereum/contract name: OffchainAggregator - network: base + network: gnosis source: abi: AccessControlledOffchainAggregator mapping: