-
Notifications
You must be signed in to change notification settings - Fork 11
/
hardhat.config.js
93 lines (91 loc) · 2.44 KB
/
hardhat.config.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/** @type import('hardhat/config').HardhatUserConfig */
require("dotenv").config();
require("@nomicfoundation/hardhat-toolbox");
require("hardhat-deploy");
require("@openzeppelin/hardhat-upgrades");
require("@fireblocks/hardhat-fireblocks");
const { ApiBaseUrl } = require("@fireblocks/fireblocks-web3-provider");
module.exports = {
solidity: {
version: "0.8.20",
settings: {
viaIR: true,
optimizer: {
enabled: true,
runs: 200,
},
},
},
namedAccounts: {
deployer: `privatekey://${process.env.PRIVATE_KEY}`,
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
customChains: [
{
network: "base_sepolia",
chainId: 84532,
urls: {
apiURL: "https://api-sepolia.basescan.org/api",
browserURL: "https://sepolia.basescan.org/",
},
},
],
},
networks: {
base: {
url: "https://mainnet.base.org",
accounts: [process.env.PRIVATE_KEY],
},
base_fire: {
url: "https://mainnet.base.org",
accounts: [process.env.PRIVATE_KEY],
fireblocks: {
privateKey: process.env.FIREBLOCKS_API_PRIVATE_KEY_PATH,
apiKey: process.env.FIREBLOCKS_API_KEY,
vaultAccountIds: process.env.FIREBLOCKS_VAULT_ACCOUNT_IDS,
},
},
base_sepolia: {
url: "https://sepolia.base.org",
accounts: [process.env.PRIVATE_KEY],
verify: {
etherscan: {
apiUrl: "https://api-sepolia.basescan.org",
apiKey: process.env.ETHERSCAN_API_KEY,
},
},
},
base_sepolia_fire: {
url: "https://sepolia.base.org",
accounts: [process.env.PRIVATE_KEY],
verify: {
etherscan: {
apiUrl: "https://api-sepolia.basescan.org",
apiKey: process.env.ETHERSCAN_API_KEY,
},
},
fireblocks: {
apiBaseUrl: ApiBaseUrl.Sandbox,
privateKey: process.env.FIREBLOCKS_API_PRIVATE_KEY_PATH,
apiKey: process.env.FIREBLOCKS_API_KEY,
vaultAccountIds: process.env.FIREBLOCKS_VAULT_ACCOUNT_IDS,
},
},
local: {
url: "http://127.0.0.1:8545",
},
polygon: {
url: "https://rpc-mainnet.maticvigil.com/",
accounts: [process.env.PRIVATE_KEY],
},
mumbai: {
url: "https://rpc.ankr.com/polygon_mumbai",
accounts: [process.env.PRIVATE_KEY],
},
goerli: {
url: "https://rpc.ankr.com/eth_goerli",
accounts: [process.env.PRIVATE_KEY],
},
},
};