Skip to content

Commit

Permalink
still undefined l1 bridge contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
ajb413 committed Mar 22, 2024
1 parent b86366e commit 3af8efb
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const ENSRegistryAddress = '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e';
const ENSSubdomainLabel = 'v3-additional-grants';
const ENSSubdomain = `${ENSSubdomainLabel}.${ENSName}`;
const ENSTextRecordKey = 'v3-official-markets';
const baseSepoliaCOMPAddress = '';
const baseSepoliaCOMPAddress = '0x2f535da74048c0874400f0371Fba20DF983A56e2';

export default migration('1710879470_configure_and_ens', {
prepare: async (deploymentManager: DeploymentManager) => {
Expand All @@ -37,18 +37,18 @@ export default migration('1710879470_configure_and_ens', {
COMP: sepoliaCOMP,
} = await govDeploymentManager.getContracts();

// ENS Setup
// See also: https://docs.ens.domains/contract-api-reference/name-processing
const ENSResolver = await govDeploymentManager.existing('ENSResolver', ENSResolverAddress, 'sepolia');
const subdomainHash = ethers.utils.namehash(ENSSubdomain);
const chainId = (await deploymentManager.hre.ethers.provider.getNetwork()).chainId.toString();
const newMarketObject = { baseSymbol: 'USDC', cometAddress: comet.address };
const officialMarketsJSON = JSON.parse(await ENSResolver.text(subdomainHash, ENSTextRecordKey));
if (officialMarketsJSON[chainId]) {
officialMarketsJSON[chainId].push(newMarketObject);
} else {
officialMarketsJSON[chainId] = [newMarketObject];
}
// // ENS Setup
// // See also: https://docs.ens.domains/contract-api-reference/name-processing
// const ENSResolver = await govDeploymentManager.existing('ENSResolver', ENSResolverAddress, 'sepolia');
// const subdomainHash = ethers.utils.namehash(ENSSubdomain);
// const chainId = (await deploymentManager.hre.ethers.provider.getNetwork()).chainId.toString();
// const newMarketObject = { baseSymbol: 'USDC', cometAddress: comet.address };
// const officialMarketsJSON = JSON.parse(await ENSResolver.text(subdomainHash, ENSTextRecordKey));
// if (officialMarketsJSON[chainId]) {
// officialMarketsJSON[chainId].push(newMarketObject);
// } else {
// officialMarketsJSON[chainId] = [newMarketObject];
// }

const configuration = await getConfigurationStruct(deploymentManager);

Expand Down

0 comments on commit 3af8efb

Please sign in to comment.