-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy path03_WrapperRegistryImpl.ts
More file actions
53 lines (45 loc) · 1.45 KB
/
03_WrapperRegistryImpl.ts
File metadata and controls
53 lines (45 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { artifacts, execute } from "@rocketh";
export default execute(
async ({ deploy, get, namedAccounts: { deployer } }) => {
const nameWrapper =
get<(typeof artifacts.NameWrapper)["abi"]>("NameWrapper");
const hcaFactory =
get<(typeof artifacts.MockHCAFactoryBasic)["abi"]>("HCAFactory");
const registryMetadata = get<
(typeof artifacts.SimpleRegistryMetadata)["abi"]
>("SimpleRegistryMetadata");
const verifiableFactory =
get<(typeof artifacts.VerifiableFactory)["abi"]>("VerifiableFactory");
const ensV1Resolver =
get<(typeof artifacts.ENSV1Resolver)["abi"]>("ENSV1Resolver");
const publicResolverSet =
get<(typeof artifacts.IAddressSet)["abi"]>("PublicResolverSet");
const publicResolverV2 =
get<(typeof artifacts.PublicResolverV2)["abi"]>("PublicResolverV2");
await deploy("WrapperRegistryImpl", {
account: deployer,
artifact: artifacts.WrapperRegistry,
args: [
nameWrapper.address,
verifiableFactory.address,
ensV1Resolver.address,
hcaFactory.address,
registryMetadata.address,
publicResolverSet.address,
publicResolverV2.address,
],
});
},
{
tags: ["WrapperRegistryImpl", "v2"],
dependencies: [
"NameWrapper",
"HCAFactory",
"SimpleRegistryMetadata",
"VerifiableFactory",
"ENSV1Resolver",
"PublicResolverSet",
"PublicResolverV2",
],
},
);