Skip to content

Commit

Permalink
Deploy to mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachnid committed Jan 16, 2024
1 parent 831e1cf commit 53f64de
Show file tree
Hide file tree
Showing 15 changed files with 1,231 additions and 590 deletions.
16 changes: 11 additions & 5 deletions deploy/dnsregistrar/10_deploy_dnsregistrar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,17 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
})
console.log(`Deployed DNSRegistrar to ${tx.address}`)

const tx2 = await root
.connect(await ethers.getSigner(owner))
.setController(tx.address, true)
console.log(`Set DNSRegistrar as controller of Root (${tx2.hash})`)
await tx2.wait()
if (owner !== undefined && (await root.isOwner(owner))) {
const tx2 = await root
.connect(await ethers.getSigner(owner))
.setController(tx.address, true)
console.log(`Set DNSRegistrar as controller of Root (${tx2.hash})`)
await tx2.wait()
} else {
console.log(
`${owner} is not the owner of the root; you will need to call setController('${tx.address}', true) manually`,
)
}
}

func.tags = ['DNSRegistrar']
Expand Down
2 changes: 1 addition & 1 deletion deploy/dnsregistrar/20_set_tlds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
}
}

func.tags = ['DNSRegistrar']
func.tags = ['registrar-tlds']
func.dependencies = ['registry', 'dnssec-oracle']
func.runAtTheEnd = true

Expand Down
1 change: 0 additions & 1 deletion deploy/resolvers/00_deploy_extended_dns_resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
})
}

func.id = 'extended-dns-resolver'
func.tags = ['resolvers', 'ExtendedDNSResolver']

export default func
3 changes: 2 additions & 1 deletion deployments/mainnet/.migrations.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ens": 1626404011,
"root": 1580387832
"root": 1580387832,
"setupRoot": 1580387832
}
272 changes: 169 additions & 103 deletions deployments/mainnet/DNSRegistrar.json

Large diffs are not rendered by default.

Loading

0 comments on commit 53f64de

Please sign in to comment.