From 56ce2b8b73ce47bc444fbd491b0e3775d53901bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Manuel=20Mari=C3=B1as=20Bascoy?= Date: Thu, 8 Feb 2024 11:00:34 +0100 Subject: [PATCH] apply suggestions --- configs/src/deployments/{utils.ts => getters.ts} | 0 configs/src/deployments/index.ts | 2 +- configs/src/deployments/{deployments => json}/arbitrum.json | 0 .../deployments/{deployments => json}/arbitrumSepolia.json | 0 configs/src/deployments/{deployments => json}/baseGoerli.json | 0 .../src/deployments/{deployments => json}/baseMainnet.json | 0 .../src/deployments/{deployments => json}/baseSepolia.json | 0 configs/src/deployments/{deployments => json}/goerli.json | 0 configs/src/deployments/{deployments => json}/mainnet.json | 0 configs/src/deployments/{deployments => json}/mumbai.json | 0 configs/src/deployments/{deployments => json}/polygon.json | 0 configs/src/deployments/{deployments => json}/sepolia.json | 0 configs/src/networks/{utils.ts => getters.ts} | 0 configs/src/networks/types.ts | 4 ++-- configs/src/test/unit/networks.test.ts | 2 +- 15 files changed, 4 insertions(+), 4 deletions(-) rename configs/src/deployments/{utils.ts => getters.ts} (100%) rename configs/src/deployments/{deployments => json}/arbitrum.json (100%) rename configs/src/deployments/{deployments => json}/arbitrumSepolia.json (100%) rename configs/src/deployments/{deployments => json}/baseGoerli.json (100%) rename configs/src/deployments/{deployments => json}/baseMainnet.json (100%) rename configs/src/deployments/{deployments => json}/baseSepolia.json (100%) rename configs/src/deployments/{deployments => json}/goerli.json (100%) rename configs/src/deployments/{deployments => json}/mainnet.json (100%) rename configs/src/deployments/{deployments => json}/mumbai.json (100%) rename configs/src/deployments/{deployments => json}/polygon.json (100%) rename configs/src/deployments/{deployments => json}/sepolia.json (100%) rename configs/src/networks/{utils.ts => getters.ts} (100%) diff --git a/configs/src/deployments/utils.ts b/configs/src/deployments/getters.ts similarity index 100% rename from configs/src/deployments/utils.ts rename to configs/src/deployments/getters.ts diff --git a/configs/src/deployments/index.ts b/configs/src/deployments/index.ts index 7016df7a..98551508 100644 --- a/configs/src/deployments/index.ts +++ b/configs/src/deployments/index.ts @@ -1,3 +1,3 @@ export * from './types'; -export * from './utils'; +export * from './getters'; export * from './contracts'; diff --git a/configs/src/deployments/deployments/arbitrum.json b/configs/src/deployments/json/arbitrum.json similarity index 100% rename from configs/src/deployments/deployments/arbitrum.json rename to configs/src/deployments/json/arbitrum.json diff --git a/configs/src/deployments/deployments/arbitrumSepolia.json b/configs/src/deployments/json/arbitrumSepolia.json similarity index 100% rename from configs/src/deployments/deployments/arbitrumSepolia.json rename to configs/src/deployments/json/arbitrumSepolia.json diff --git a/configs/src/deployments/deployments/baseGoerli.json b/configs/src/deployments/json/baseGoerli.json similarity index 100% rename from configs/src/deployments/deployments/baseGoerli.json rename to configs/src/deployments/json/baseGoerli.json diff --git a/configs/src/deployments/deployments/baseMainnet.json b/configs/src/deployments/json/baseMainnet.json similarity index 100% rename from configs/src/deployments/deployments/baseMainnet.json rename to configs/src/deployments/json/baseMainnet.json diff --git a/configs/src/deployments/deployments/baseSepolia.json b/configs/src/deployments/json/baseSepolia.json similarity index 100% rename from configs/src/deployments/deployments/baseSepolia.json rename to configs/src/deployments/json/baseSepolia.json diff --git a/configs/src/deployments/deployments/goerli.json b/configs/src/deployments/json/goerli.json similarity index 100% rename from configs/src/deployments/deployments/goerli.json rename to configs/src/deployments/json/goerli.json diff --git a/configs/src/deployments/deployments/mainnet.json b/configs/src/deployments/json/mainnet.json similarity index 100% rename from configs/src/deployments/deployments/mainnet.json rename to configs/src/deployments/json/mainnet.json diff --git a/configs/src/deployments/deployments/mumbai.json b/configs/src/deployments/json/mumbai.json similarity index 100% rename from configs/src/deployments/deployments/mumbai.json rename to configs/src/deployments/json/mumbai.json diff --git a/configs/src/deployments/deployments/polygon.json b/configs/src/deployments/json/polygon.json similarity index 100% rename from configs/src/deployments/deployments/polygon.json rename to configs/src/deployments/json/polygon.json diff --git a/configs/src/deployments/deployments/sepolia.json b/configs/src/deployments/json/sepolia.json similarity index 100% rename from configs/src/deployments/deployments/sepolia.json rename to configs/src/deployments/json/sepolia.json diff --git a/configs/src/networks/utils.ts b/configs/src/networks/getters.ts similarity index 100% rename from configs/src/networks/utils.ts rename to configs/src/networks/getters.ts diff --git a/configs/src/networks/types.ts b/configs/src/networks/types.ts index f4a37437..d6989923 100644 --- a/configs/src/networks/types.ts +++ b/configs/src/networks/types.ts @@ -32,6 +32,6 @@ export type NetworkAliases = { [index in SupportedAliases]?: string; }; -export type NetworkConfigs = { - [network in SupportedNetworks]: T; +export type NetworkConfigs = { + [network in SupportedNetworks]: NetworkConfig; }; diff --git a/configs/src/test/unit/networks.test.ts b/configs/src/test/unit/networks.test.ts index 53679965..4410e81f 100644 --- a/configs/src/test/unit/networks.test.ts +++ b/configs/src/test/unit/networks.test.ts @@ -11,7 +11,7 @@ import { getNetworkByChainId, getNetworkByNameOrAlias, getNetworkNameByAlias, -} from '../../networks/utils'; +} from '../../networks/getters'; describe('Deployments', () => { describe('getNetwork', () => {