From a45487102e18e29923138a203789718d45424aba Mon Sep 17 00:00:00 2001 From: Corey Rice Date: Tue, 30 Jan 2024 16:34:00 -0300 Subject: [PATCH] fix: fix name discrepancy between abis --- subgraphs/venus/src/mappings/vToken.ts | 2 +- subgraphs/venus/template.yaml | 4 ++-- subgraphs/venus/tests/VToken/events.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/subgraphs/venus/src/mappings/vToken.ts b/subgraphs/venus/src/mappings/vToken.ts index 709c7df8..6a4fbc24 100644 --- a/subgraphs/venus/src/mappings/vToken.ts +++ b/subgraphs/venus/src/mappings/vToken.ts @@ -20,7 +20,7 @@ import { MintBehalf, Redeem, RepayBorrow, -} from '../../generated/templates/VTokenUpdatedEvents/VTokenUpdatedEvents'; +} from '../../generated/templates/VTokenUpdatedEvents/VToken'; import { DUST_THRESHOLD, oneBigInt, zeroBigInt32 } from '../constants'; import { createBorrowEvent, diff --git a/subgraphs/venus/template.yaml b/subgraphs/venus/template.yaml index d1a320c4..330cf8a0 100644 --- a/subgraphs/venus/template.yaml +++ b/subgraphs/venus/template.yaml @@ -129,7 +129,7 @@ templates: kind: ethereum/contract network: {{ network }} source: - abi: VTokenUpdatedEvents + abi: VToken mapping: kind: ethereum/events apiVersion: 0.0.5 @@ -140,7 +140,7 @@ templates: - Market - VTokenInfo abis: - - name: VTokenUpdatedEvents + - name: VToken file: ../../node_modules/@venusprotocol/venus-protocol/artifacts/contracts/Tokens/VTokens/VBep20.sol/VBep20.json eventHandlers: - event: Mint(address,uint256,uint256,uint256) diff --git a/subgraphs/venus/tests/VToken/events.ts b/subgraphs/venus/tests/VToken/events.ts index d02511ae..e3f171a7 100644 --- a/subgraphs/venus/tests/VToken/events.ts +++ b/subgraphs/venus/tests/VToken/events.ts @@ -20,7 +20,7 @@ import { MintBehalf as MintBehalfEvent, Mint as MintEvent, Redeem as RedeemEvent, -} from '../../generated/templates/VTokenUpdatedEvents/VTokenUpdatedEvents'; +} from '../../generated/templates/VTokenUpdatedEvents/VToken'; export const createMarketListedEvent = (vTokenAddress: Address): MarketListedEvent => { const event = changetype(newMockEvent());