From 9cdf0f68f060adcf680ff58b037b75d5af9e3ee2 Mon Sep 17 00:00:00 2001 From: trizin <25263018+trizin@users.noreply.github.com> Date: Sun, 21 Jul 2024 22:38:55 +0300 Subject: [PATCH] use interface --- src/mappings/utils/tokenUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mappings/utils/tokenUtils.ts b/src/mappings/utils/tokenUtils.ts index b7f7994..57739c0 100644 --- a/src/mappings/utils/tokenUtils.ts +++ b/src/mappings/utils/tokenUtils.ts @@ -130,7 +130,7 @@ export function getErc20TemplateId(address: Address): BigInt { return BigInt.zero() } -type HardCodedContractData = { +interface HardCodedContractData = { token: string; secondsPerEpoch: number; secondsPerSubscription: number; @@ -142,7 +142,7 @@ type HardCodedContractData = { eventIndex: number; }; -type HardCodedContractDataType = { [key: string]: HardCodedContractData }; +interface HardCodedContractDataType = { [key: string]: HardCodedContractData }; const hardCodedContractData: HardCodedContractDataType = { "0x18f54cc21b7a2fdd011bea06bba7801b280e3151": {