-
Notifications
You must be signed in to change notification settings - Fork 1
/
verify.js
71 lines (64 loc) · 1.55 KB
/
verify.js
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
const { getTargetAddress } = require("./helpers");
async function main() {
const network = hre.network.name;
getTargetAddress("Token", network);
const Token = getTargetAddress("Token", network);
const NFT1 = getTargetAddress("NFT1", network);
const NFT2 = getTargetAddress("NFT2", network);
const NFT3 = getTargetAddress("NFT3", network);
const Marketplace = getTargetAddress("Marketplace", network);
console.log({ Token }, { NFT1 }, { NFT2 }, { NFT3 }, { Marketplace });
try {
await run("verify:verify", {
address: Token,
constructorArguments: [1e9],
});
console.log("Verified Token");
} catch (e) {
console.log(e);
}
try {
await run("verify:verify", {
address: NFT1,
constructorArguments: ["test1 NFT", "t1NFT"],
});
console.log("Verified NFT1");
} catch (e) {
console.log(e);
}
try {
await run("verify:verify", {
address: NFT2,
constructorArguments: ["test2 NFT", "t2NFT"],
});
console.log("Verified NFT2");
} catch (e) {
console.log(e);
}
try {
await run("verify:verify", {
address: NFT3,
constructorArguments: ["test3 NFT", "t3NFT"],
});
console.log("Verified NFT3");
} catch (e) {
console.log(e);
}
try {
await run("verify:verify", {
address: Marketplace,
constructorArguments: [Token],
});
console.log("Verified Marketplace");
} catch (e) {
console.log(e);
}
}
main()
.then(() => {
process.exit(0);
})
.catch((error) => {
console.error(error);
process.exit(1);
});