From f788a0d308db03cabb62844762a1c17faca98763 Mon Sep 17 00:00:00 2001 From: Claudia Date: Wed, 7 Aug 2024 15:05:52 +0200 Subject: [PATCH] feat: remove second exceptional domain and set the dev sepolia new one as part of the exceptional ones --- configs/src/deployments/ens.ts | 3 --- configs/src/deployments/getters.ts | 6 +----- configs/src/test/unit/deployments/ens.test.ts | 5 ----- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/configs/src/deployments/ens.ts b/configs/src/deployments/ens.ts index d952cba8..f4d39e0e 100644 --- a/configs/src/deployments/ens.ts +++ b/configs/src/deployments/ens.ts @@ -11,9 +11,6 @@ export const exceptionalDomains: ENSNetworkDomainsMap = { daoEns: 'aragon-dao.eth', pluginEns: 'plugin.aragon-dao.eth', }, -}; - -export const exceptional2Domains: ENSNetworkDomainsMap = { [SupportedNetworks.DEV_SEPOLIA]: { daoEns: 'osx-aragon-dao.eth', pluginEns: 'plugin.osx-aragon-dao.eth', diff --git a/configs/src/deployments/getters.ts b/configs/src/deployments/getters.ts index ed1db884..998aaa0c 100644 --- a/configs/src/deployments/getters.ts +++ b/configs/src/deployments/getters.ts @@ -1,6 +1,6 @@ import {SupportedNetworks} from '../networks'; import {contracts} from './contracts'; -import {exceptional2Domains, exceptionalDomains, commonDomain} from './ens'; +import {exceptionalDomains, commonDomain} from './ens'; import { NetworkDeployment, NetworkDeployments, @@ -57,8 +57,6 @@ export function getDaoEnsDomain( ): string | undefined { if (exceptionalDomains[networkName]) { return exceptionalDomains[networkName]?.daoEns; - } else if (exceptional2Domains[networkName]) { - return exceptional2Domains[networkName]?.daoEns; } else { return commonDomain.daoEns; } @@ -69,8 +67,6 @@ export function getPluginEnsDomain( ): string | undefined { if (exceptionalDomains[networkName]) { return exceptionalDomains[networkName]?.pluginEns; - } else if (exceptional2Domains[networkName]) { - return exceptional2Domains[networkName]?.pluginEns; } else { return commonDomain.pluginEns; } diff --git a/configs/src/test/unit/deployments/ens.test.ts b/configs/src/test/unit/deployments/ens.test.ts index 563304f0..bbfcff5a 100644 --- a/configs/src/test/unit/deployments/ens.test.ts +++ b/configs/src/test/unit/deployments/ens.test.ts @@ -3,7 +3,6 @@ import { getPluginEnsDomain, commonDomain, exceptionalDomains, - exceptional2Domains, } from '../../../deployments'; import {SupportedNetworks} from '../../../networks'; @@ -28,10 +27,6 @@ describe('Domains', () => { expect(getPluginEnsDomain(network)).toMatch( exceptionalDomains[network]?.pluginEns ?? '' ); - } else if (exceptional2Domains[network]) { - expect(getPluginEnsDomain(network)).toMatch( - exceptional2Domains[network]?.pluginEns ?? '' - ); } else { expect(getPluginEnsDomain(network)).toMatch(commonDomain.pluginEns); }