From fb604419c8634aea3e03196bf0f8a13d716750a3 Mon Sep 17 00:00:00 2001 From: Lena Hierzi Date: Mon, 16 Oct 2023 11:57:57 +0100 Subject: [PATCH] refactor: update type namings --- utils/addresses.ts | 28 ++++++++++++++-------------- utils/paths.ts | 14 +++++++------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/utils/addresses.ts b/utils/addresses.ts index e44f76c..3c20bbf 100644 --- a/utils/addresses.ts +++ b/utils/addresses.ts @@ -1,4 +1,4 @@ -interface InterfaceNetworkTokenAddresses { +interface INetworkTokenAddresses { BCT: string; NCT: string; mcUSD?: string; @@ -8,26 +8,26 @@ interface InterfaceNetworkTokenAddresses { USDC?: string; WMATIC?: string; } -interface InterfaceAddresses { - celo: InterfaceNetworkTokenAddresses; - alfajores: InterfaceNetworkTokenAddresses; - polygon: InterfaceNetworkTokenAddresses; - mumbai: InterfaceNetworkTokenAddresses; +interface INetworkAddresses { + celo: INetworkTokenAddresses; + alfajores: INetworkTokenAddresses; + polygon: INetworkTokenAddresses; + mumbai: INetworkTokenAddresses; } -interface InterfacePoolAddresses { +interface IPoolAddresses { BCT: string; NCT: string; } -interface InterfaceNetworkPoolAddresses { - celo: InterfacePoolAddresses; - alfajores: InterfacePoolAddresses; - polygon: InterfacePoolAddresses; - mumbai: InterfacePoolAddresses; +interface INetworkPoolAddresses { + celo: IPoolAddresses; + alfajores: IPoolAddresses; + polygon: IPoolAddresses; + mumbai: IPoolAddresses; } -const addresses: InterfaceAddresses = { +const addresses: INetworkAddresses = { celo: { BCT: "0x0CcB0071e8B8B716A2a5998aB4d97b83790873Fe", NCT: "0x02De4766C272abc10Bc88c220D214A26960a7e92", @@ -59,7 +59,7 @@ const addresses: InterfaceAddresses = { }, }; -export const poolAddresses: InterfaceNetworkPoolAddresses = { +export const poolAddresses: INetworkPoolAddresses = { celo: { BCT: "0x0CcB0071e8B8B716A2a5998aB4d97b83790873Fe", NCT: "0x02De4766C272abc10Bc88c220D214A26960a7e92", diff --git a/utils/paths.ts b/utils/paths.ts index fbef9e9..d223680 100644 --- a/utils/paths.ts +++ b/utils/paths.ts @@ -1,4 +1,4 @@ -interface IfcTokenAddresses { +interface ITokenPaths { mcUSD?: string[]; cUSD?: string[]; CELO?: string[]; @@ -6,14 +6,14 @@ interface IfcTokenAddresses { USDC?: string[]; WMATIC?: string[]; } -interface IfcNetworkTokenAddresses { - celo: IfcTokenAddresses; - alfajores: IfcTokenAddresses; - polygon: IfcTokenAddresses; - mumbai: IfcTokenAddresses; +interface INetworkTokenAddresses { + celo: ITokenPaths; + alfajores: ITokenPaths; + polygon: ITokenPaths; + mumbai: ITokenPaths; } -const paths: IfcNetworkTokenAddresses = { +const paths: INetworkTokenAddresses = { celo: { mcUSD: ["0x918146359264c492bd6934071c6bd31c854edbc3"], cUSD: [