-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
56 lines (51 loc) · 1.36 KB
/
hardhat.config.ts
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
import "@nomicfoundation/hardhat-toolbox-viem";
import "@nomicfoundation/hardhat-verify";
import type { HardhatUserConfig } from "hardhat/config";
import { vars } from "hardhat/config";
if (!vars.has("DEPLOYER_PRIVATE_KEY")) {
console.error("Missing env var DEPLOYER_PRIVATE_KEY");
}
const deployerPrivateKey = vars.get("DEPLOYER_PRIVATE_KEY");
const config: HardhatUserConfig = {
solidity: "0.8.24",
networks: {
etherlinkMainnet: {
url: "https://node.mainnet.etherlink.com",
accounts: [deployerPrivateKey],
},
etherlinkTestnet: {
url: "https://node.ghostnet.etherlink.com",
accounts: [deployerPrivateKey],
},
},
etherscan: {
apiKey: {
etherlinkMainnet: "YOU_CAN_COPY_ME",
etherlinkTestnet: "YOU_CAN_COPY_ME",
},
customChains: [
{
network: "etherlinkMainnet",
chainId: 42793,
urls: {
apiURL: "https://explorer.etherlink.com/api",
browserURL: "https://explorer.etherlink.com",
},
},
{
network: "etherlinkTestnet",
chainId: 128123,
urls: {
apiURL: "https://testnet.explorer.etherlink.com/api",
browserURL: "https://testnet.explorer.etherlink.com",
},
},
],
},
sourcify: {
// Disabled by default
// Doesn't need an API key
enabled: false,
},
};
export default config;