-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
90 lines (89 loc) · 2.23 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
require("@nomicfoundation/hardhat-toolbox");
require("@nomiclabs/hardhat-web3");
require("xdeployer");
require("dotenv").config();
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
networks: {
hardhat: {
chainId: 80001,
},
tenderly: {
url: "https://rpc.vnet.tenderly.co/devnet/beaver-router/4899271c-bd3c-44e7-97ab-893ca2f317bb",
accounts: [
`0x${process.env.DEPLOYER_PRIVATE_KEY}`,
`0x${process.env.RANDOM_PRIVATE_KEY}`,
`0x${process.env.RANDOM_PRIVATE_KEY_2}`,
],
},
sepolia: {
url: "https://eth-sepolia-public.unifra.io",
accounts: [
`0x${process.env.DEPLOYER_PRIVATE_KEY}`,
],
},
mumbai: {
url: "https://rpc.ankr.com/polygon_mumbai",
accounts: [
`0x${process.env.DEPLOYER_PRIVATE_KEY}`,
],
},
basegoerli: {
url: "https://goerli.base.org",
accounts: [
`0x${process.env.DEPLOYER_PRIVATE_KEY}`,
],
gasPrice: 1 * 10 ** 9 + 100,
},
base: {
url: "https://mainnet.base.org",
accounts: [
`0x${process.env.PRODUCTION_DEPLOYER_PRIVATE_KEY}`,
],
},
polygon: {
url: "https://polygon.llamarpc.com",
},
},
xdeploy: {
contract: "BeaverRouter",
constructorArgsPath: "./deploymentArgs.js",
salt: "beaver-v1.1",
signer: `0x${process.env.PRODUCTION_DEPLOYER_PRIVATE_KEY}`,
networks: [
// "sepolia",
// "baseTestnet",
// "mumbai",
// "polygon",
],
rpcUrls: [
// "https://eth-sepolia-public.unifra.io",
// "https://goerli.base.org",
// "https://rpc.ankr.com/polygon_mumbai",
// "https://polygon.llamarpc.com",
],
gasLimit: 1_500_000, // optional; default value is `1.5e6`
},
etherscan: {
apiKey: {
sepolia: process.env.ETHERSCAN_API_KEY,
polygon:
process.env.POLYGON_ETHERSCAN_API_KEY,
polygonMumbai:
process.env.POLYGON_ETHERSCAN_API_KEY,
base: process.env.BASE_ETHERSCAN_API_KEY,
baseGoerli:
process.env.BASE_ETHERSCAN_API_KEY,
},
},
solidity: {
version: "0.8.19",
settings: {
viaIR: true,
optimizer: {
enabled: true,
runs: 5000,
},
},
},
};