use interface

This commit is contained in:
trizin 2024-07-21 22:38:55 +03:00 committed by GitHub
parent 306bf05a25
commit 9cdf0f68f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,7 +130,7 @@ export function getErc20TemplateId(address: Address): BigInt {
return BigInt.zero() return BigInt.zero()
} }
type HardCodedContractData = { interface HardCodedContractData = {
token: string; token: string;
secondsPerEpoch: number; secondsPerEpoch: number;
secondsPerSubscription: number; secondsPerSubscription: number;
@ -142,7 +142,7 @@ type HardCodedContractData = {
eventIndex: number; eventIndex: number;
}; };
type HardCodedContractDataType = { [key: string]: HardCodedContractData }; interface HardCodedContractDataType = { [key: string]: HardCodedContractData };
const hardCodedContractData: HardCodedContractDataType = { const hardCodedContractData: HardCodedContractDataType = {
"0x18f54cc21b7a2fdd011bea06bba7801b280e3151": { "0x18f54cc21b7a2fdd011bea06bba7801b280e3151": {