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 1/2] 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": { From b3c5cd6382cfe61ef2a84c97b4823b8b5ede0aff Mon Sep 17 00:00:00 2001 From: trizin <25263018+trizin@users.noreply.github.com> Date: Sun, 21 Jul 2024 22:44:51 +0300 Subject: [PATCH 2/2] any --- src/mappings/utils/tokenUtils.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/mappings/utils/tokenUtils.ts b/src/mappings/utils/tokenUtils.ts index 57739c0..3b878dc 100644 --- a/src/mappings/utils/tokenUtils.ts +++ b/src/mappings/utils/tokenUtils.ts @@ -130,21 +130,8 @@ export function getErc20TemplateId(address: Address): BigInt { return BigInt.zero() } -interface HardCodedContractData = { - token: string; - secondsPerEpoch: number; - secondsPerSubscription: number; - truevalSubmitTimeout: number; - stakeToken: string; - txId: string; - timestamp: number; - block: number; - eventIndex: number; -}; -interface HardCodedContractDataType = { [key: string]: HardCodedContractData }; - -const hardCodedContractData: HardCodedContractDataType = { +const hardCodedContractData: any = { "0x18f54cc21b7a2fdd011bea06bba7801b280e3151": { "token": "0x18f54cc21b7a2fdd011bea06bba7801b280e3151", "secondsPerEpoch": 300,