From 0ed2c3118a999db9a5ff35b41bef9c4ddb828a2e Mon Sep 17 00:00:00 2001 From: algebraDefi Date: Thu, 31 Aug 2023 11:45:50 +0700 Subject: [PATCH] track level master v3 --- .../arbitrum/subgraph.yaml | 29 +++++++++++++++++++ .../arbitrum/utils/config.ts | 3 +- .../bsc/src/utils/config.ts | 1 + .../bsc/subgraph.yaml | 27 +++++++++++++++++ pnpm-workspace.yaml | 4 +-- 5 files changed, 61 insertions(+), 3 deletions(-) diff --git a/apps/llp-performance-snapshot/arbitrum/subgraph.yaml b/apps/llp-performance-snapshot/arbitrum/subgraph.yaml index 913f615..96c7450 100644 --- a/apps/llp-performance-snapshot/arbitrum/subgraph.yaml +++ b/apps/llp-performance-snapshot/arbitrum/subgraph.yaml @@ -178,3 +178,32 @@ dataSources: - event: EmergencyWithdraw(indexed address,indexed uint256,uint256,indexed address) handler: handleEmergencyWithdraw network: arbitrum-one + - kind: ethereum + name: LevelMasterV3 + source: + abi: LevelMaster + address: "0xC18c952F800516E1eef6aB482F3d331c84d43d38" + startBlock: 125986600 + mapping: + kind: ethereum/events + apiVersion: 0.0.7 + language: wasm/assemblyscript + file: ./mappings/levelmaster.ts + entities: + - WalletTranche + - WalletTrancheHistory + abis: + - name: Pool + file: ./abis/Pool.json + - name: LevelMaster + file: ./abis/LevelMaster.json + - name: PoolLens + file: ./abis/PoolLens.json + eventHandlers: + - event: Deposit(indexed address,indexed uint256,uint256,indexed address) + handler: handleDeposit + - event: Withdraw(indexed address,indexed uint256,uint256,indexed address) + handler: handleWithdraw + - event: EmergencyWithdraw(indexed address,indexed uint256,uint256,indexed address) + handler: handleEmergencyWithdraw + network: arbitrum-one diff --git a/apps/llp-performance-snapshot/arbitrum/utils/config.ts b/apps/llp-performance-snapshot/arbitrum/utils/config.ts index 51f53c1..e344a1a 100644 --- a/apps/llp-performance-snapshot/arbitrum/utils/config.ts +++ b/apps/llp-performance-snapshot/arbitrum/utils/config.ts @@ -28,7 +28,8 @@ export const config: Config = { ], excludeTrackLp: [ Address.fromString('0x0000000000000000000000000000000000000000'), - Address.fromString('0x0180dee5Df18eBF76642e50FaaEF426f7b2874f7'), // farm + Address.fromString('0x0180dee5Df18eBF76642e50FaaEF426f7b2874f7'), // farm v2 + Address.fromString('0xC18c952F800516E1eef6aB482F3d331c84d43d38'), // farm v3 Address.fromString('0x1E46Ab9D3D9e87b95F2CD802208733C90a608805'), // Liquidity Router Address.fromString('0xf37DAc12B916356c44585333F33Cd2dF366dA487'), // LlpRewardDistributor ], diff --git a/apps/llp-performance-snapshot/bsc/src/utils/config.ts b/apps/llp-performance-snapshot/bsc/src/utils/config.ts index bec27d3..7fd4722 100644 --- a/apps/llp-performance-snapshot/bsc/src/utils/config.ts +++ b/apps/llp-performance-snapshot/bsc/src/utils/config.ts @@ -30,6 +30,7 @@ export const config: Config = { Address.fromString('0x0000000000000000000000000000000000000000'), Address.fromString('0x1Ab33A7454427814a71F128109fE5B498Aa21E5d'), // farm Address.fromString('0x5aE081b6647aEF897dEc738642089D4BDa93C0e7'), // farm v2 + Address.fromString('0x506137d1Ae62685506FCcb7E55457c976425F13a'), // farm v3 Address.fromString('0xBD8638C1fF477275E49aaAe3E4691b74AE76BeCd'), // Liquidity Router Address.fromString('0x70f1555889dD1bD458A430bD57D22c12C6FCF9a4'), // LockDrop Old Address.fromString('0xd804ea7306abe2456bdd04a31f6f6a2f55dc0d21'), // LockDrop diff --git a/apps/llp-performance-snapshot/bsc/subgraph.yaml b/apps/llp-performance-snapshot/bsc/subgraph.yaml index fe9c04b..4eb4883 100644 --- a/apps/llp-performance-snapshot/bsc/subgraph.yaml +++ b/apps/llp-performance-snapshot/bsc/subgraph.yaml @@ -269,3 +269,30 @@ dataSources: - event: EmergencyWithdraw(indexed address,indexed uint256,uint256,indexed address) handler: handleEmergencyWithdraw network: bsc + - kind: ethereum + name: LevelMasterV3 + source: + abi: LevelMaster + address: '0x506137d1Ae62685506FCcb7E55457c976425F13a' + startBlock: 31270083 + mapping: + kind: ethereum/events + apiVersion: 0.0.7 + language: wasm/assemblyscript + file: ./src/mappings/levelmaster.ts + entities: + - WalletTranche + - WalletTrancheHistory + abis: + - name: Pool + file: ./abis/Pool.json + - name: LevelMaster + file: ./abis/LevelMaster.json + eventHandlers: + - event: Deposit(indexed address,indexed uint256,uint256,indexed address) + handler: handleDeposit + - event: Withdraw(indexed address,indexed uint256,uint256,indexed address) + handler: handleWithdraw + - event: EmergencyWithdraw(indexed address,indexed uint256,uint256,indexed address) + handler: handleEmergencyWithdraw + network: bsc diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 3ff5faa..b886c78 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,3 +1,3 @@ packages: - - "apps/*" - - "packages/*" + - "apps/**" + - "packages/**"