Skip to content

Commit

Permalink
[REG-1161] - Add ens Root contract to sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
DeRain committed Mar 12, 2024
1 parent 373ebad commit 38ec60b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
20 changes: 16 additions & 4 deletions ens-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@
"DNSSECImpl": {
"address": "0x46c6F79952d3046Bf673a28132ff2a81F306959c",
"deploymentBlock": "0xc6fa9e"
},
"Root": {
"address": "0xaB528d626EC275E3faD363fF1393A41F581c5897",
"deploymentBlock": "0x8F22BC"
}
}
},
Expand Down Expand Up @@ -128,6 +132,10 @@
"DNSSECImpl": {
"address": "0xF427c4AdED8B6dfde604865c1a7E953B160C26f0",
"deploymentBlock": "0x62b998"
},
"Root": {
"address": "0x31e789Eb325aB116997942f7809731197a3dc059",
"deploymentBlock": "0x1FD760"
}
}
},
Expand Down Expand Up @@ -181,10 +189,10 @@
"legacyAddresses": []
},
"ENSCustody": {
"address": "0x0794D2ccC545a585C114A4680d43484100E6ba44",
"deploymentBlock": "0x53",
"implementation": "0xe19E7Db2F62f1465072A01B8a8fF24a400947467",
"forwarder": "0x0794D2ccC545a585C114A4680d43484100E6ba44",
"address": "0x287DeE389Caaa49edc112888f2BcFD927b472e25",
"deploymentBlock": "0x54",
"implementation": "0x0794D2ccC545a585C114A4680d43484100E6ba44",
"forwarder": "0x287DeE389Caaa49edc112888f2BcFD927b472e25",
"legacyAddresses": []
},
"LegacyENSRegistry": {
Expand All @@ -204,6 +212,10 @@
"DNSRegistrar": {
"address": "0x9B2565a3545A1312bdCb6e7148A7f7cAe8C2706B",
"deploymentBlock": "0x4e"
},
"Root": {
"address": "0xFb82C655715B43b07863e9c2fd42f60bbd9838B0",
"deploymentBlock": "0x4f"
}
}
}
Expand Down
Binary file modified sandbox/db.tgz
Binary file not shown.
2 changes: 2 additions & 0 deletions src/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,9 @@ const deployENSTask = {
.connect(owner)
.deploy(dnssecOracle.address, tldPublicSuffixList.address, ens.address);
const root = await ctx.artifacts[ArtifactName.Root].connect(owner).deploy(ens.address);
await ctx.saveContractConfig(EnsContractName.Root, root);
await root.setController(dnsRegistrar.address, true);
await root.setController(owner.address, true);
await ens.setOwner(ZERO_WORD, root.address);
await ctx.saveContractConfig(EnsContractName.DNSRegistrar, dnsRegistrar);
},
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export enum EnsContractName {
LegacyETHRegistrarController = 'LegacyETHRegistrarController',
DNSRegistrar = 'DNSRegistrar',
DNSSECImpl = 'DNSSECImpl',
Root = 'Root',
}

export type ContractName = EnsContractName | UnsContractName;
Expand Down

0 comments on commit 38ec60b

Please sign in to comment.