Skip to content

Commit

Permalink
feat: remove second exceptional domain and set the dev sepolia new on…
Browse files Browse the repository at this point in the history
…e as part of the exceptional ones
  • Loading branch information
clauBv23 committed Aug 7, 2024
1 parent 473ebaa commit f788a0d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
3 changes: 0 additions & 3 deletions configs/src/deployments/ens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 1 addition & 5 deletions configs/src/deployments/getters.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down
5 changes: 0 additions & 5 deletions configs/src/test/unit/deployments/ens.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
getPluginEnsDomain,
commonDomain,
exceptionalDomains,
exceptional2Domains,
} from '../../../deployments';
import {SupportedNetworks} from '../../../networks';

Expand All @@ -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);
}
Expand Down

0 comments on commit f788a0d

Please sign in to comment.