diff --git a/src/mappings/utils/tokenUtils.ts b/src/mappings/utils/tokenUtils.ts index 09331fa..3f7bbf4 100644 --- a/src/mappings/utils/tokenUtils.ts +++ b/src/mappings/utils/tokenUtils.ts @@ -130,21 +130,21 @@ export function getErc20TemplateId(address: Address): BigInt { return BigInt.zero() } -declare const hardCodedContractData: { - [key: string]: { - token: string; - secondsPerEpoch: i32; - secondsPerSubscription: i32; - truevalSubmitTimeout: i32; - stakeToken: string; - txId: string; - timestamp: i32; - block: i32; - eventIndex: i32; - }; +type ContractData = { + token: string; + secondsPerEpoch: i32; + secondsPerSubscription: i32; + truevalSubmitTimeout: i32; + stakeToken: string; + txId: string; + timestamp: i32; + block: i32; + eventIndex: i32; }; -const hardCodedContractData = { +type HardCodedContractDataType = { [key: string]: ContractData }; + +const hardCodedContractData: HardCodedContractDataType = { "0x18f54cc21b7a2fdd011bea06bba7801b280e3151": { "token": "0x18f54cc21b7a2fdd011bea06bba7801b280e3151", "secondsPerEpoch": 300,