-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
137 lines (133 loc) · 3.87 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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
/**
* @type import('hardhat/config').HardhatUserConfig
*/
import { HardhatUserConfig } from 'hardhat/config';
import 'hardhat-contract-sizer';
import 'hardhat-gas-reporter';
import '@typechain/hardhat';
import '@nomiclabs/hardhat-etherscan';
import '@nomiclabs/hardhat-waffle';
import '@nomiclabs/hardhat-ethers';
import "./deploy/deploy";
import "./deploy/changeFee";
import "./deploy/setResourceIds";
import "./deploy/changeRelayers";
import "./deploy/withdraw";
import "./deploy/changeNonce";
import "./deploy/multisig";
import "./deploy/changeTreasury";
require("dotenv").config();
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.11",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
],
},
contractSizer: {
alphaSort: true,
runOnCompile: true,
disambiguatePaths: false,
},
paths: {
sources: "./contracts",
tests: "./hardhat-test",
cache: "./cache",
artifacts: "./artifacts"
},
networks: {
hardhat: {
chainId: 1337,
forking: {
url: "https://eth-mainnet.alchemyapi.io/v2/i2LgfhBeI-JidguSNlFuToo7kPSkFBPb",
blockNumber: 11095000,
},
gas: 2100000,
gasPrice: 8000000000,
},
ultron: {
url: `https://ultron-rpc.net`,
chainId: 1231,
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
ethereum: {
url: "https://eth-mainnet.alchemyapi.io/v2/yTaJRZrkn9LUEI6S7_GQhU4_9fhMgMsv",
chainId: 1,
gasPrice: 25000000000,
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
base: {
url: "https://mainnet.base.org",
chainId: 8453,
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
bsc: {
url: "https://bsc-dataseed1.binance.org/",
chainId: 56,
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
avalanche: {
url: "https://api.avax.network/ext/bc/C/rpc",
chainId: 43114,
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
polygon: {
url: "https://polygon-bor.publicnode.com",
chainId: 137,
gasPrice: 40000000000,
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
fantom: {
url: "https://rpc.ftm.tools/",
chainId: 250,
gasPrice: 50000000000,
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
ultron_testnet: {
url: `https://ultron-dev.io`,
chainId: 1230,
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
goerli: {
url: `https://goerli.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
chainId: 5,
gas: 2100000,
gasPrice: 8000000000,
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
bsc_testnet: {
url: `https://data-seed-prebsc-1-s1.binance.org:8545/`,
chainId: 97,
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
avalanche_fuji: {
url: "https://api.avax-test.network/ext/bc/C/rpc",
chainId: 43113,
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
mumbai: {
url: "https://rpc-mumbai.matic.today",
chainId: 80001,
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
fantom_testnet: {
url: `https://rpc.testnet.fantom.network/`,
chainId: 4002,
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY
},
gasReporter: {
enabled: true
}
};
export default config;