-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
112 lines (108 loc) · 3.31 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
require("@nomicfoundation/hardhat-toolbox");
require('dotenv').config();
//$ npx hardhat accounts
task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
const accounts = await hre.ethers.getSigners();
for (const account of accounts) {
console.log(account.address);
}
});
// /** @type import('hardhat/config').HardhatUserConfig */
// module.exports = {
// solidity: "0.8.18",
// };
// "ethereum-2" is Ethereum Goerli
module.exports = {
solidity: "0.8.18",
defaultNetwork: "hardhat",
networks: {
hardhat: {
},
sepolia: {
url: `https://sepolia.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.ACCOUNT_1_PRIVATE_KEY, process.env.ACCOUNT_2_PRIVATE_KEY],
chainId: 11155111,
timeout: 60000,
},
goerli: {
url: `https://goerli.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.ACCOUNT_1_PRIVATE_KEY, process.env.ACCOUNT_2_PRIVATE_KEY],
chainId: 5,
timeout: 60000,
},
"Smart Chain - Testnet": {
url: "https://data-seed-prebsc-1-s1.binance.org:8545/",
accounts: [process.env.ACCOUNT_1_PRIVATE_KEY, process.env.ACCOUNT_2_PRIVATE_KEY],
chainId: 97,
timeout: 60000,
},
"Moonbase": {
url: "https://rpc.api.moonbase.moonbeam.network",
accounts: [process.env.ACCOUNT_1_PRIVATE_KEY, process.env.ACCOUNT_2_PRIVATE_KEY],
chainId: 1287,
timeout: 60000,
},
"base": {
url: "https://sepolia.infura.io/v3/<key>",
accounts: [process.env.ACCOUNT_1_PRIVATE_KEY, process.env.ACCOUNT_2_PRIVATE_KEY],
chainId: 84531,
timeout: 60000,
},
"Fantom-testnet": {
url: "https://sepolia.infura.io/v3/<key>",
accounts: [process.env.ACCOUNT_FANTOM_PRIVATE_KEY, process.env.ACCOUNT_2_PRIVATE_KEY],
chainId: 4002,
timeout: 60000,
},
"Shibuya Network": {
url: "https://rpc.shibuya.astar.network:8545",
accounts: [process.env.ACCOUNT_1_PRIVATE_KEY, process.env.ACCOUNT_2_PRIVATE_KEY],
chainId: 81,
timeout: 60000,
},
Ethereum: {
url: "https://mainnet.infura.io/v3/",
accounts: [process.env.ACCOUNT_1_PRIVATE_KEY, process.env.ACCOUNT_2_PRIVATE_KEY],
chainId: 1,
timeout: 60000,
},
binance: {
url: "https://bsc-dataseed.binance.org/",
accounts: [process.env.ACCOUNT_1_PRIVATE_KEY, process.env.ACCOUNT_2_PRIVATE_KEY],
chainId: 56,
timeout: 60000,
},
Moonbeam: {
url: "https://rpc.api.moonbeam.network",
accounts: [process.env.ACCOUNT_1_PRIVATE_KEY, process.env.ACCOUNT_2_PRIVATE_KEY],
chainId: 1284,
timeout: 60000,
},
Fantom: {
url: "https://rpc.ftm.tools/",
accounts: [process.env.ACCOUNT_FANTOM_PRIVATE_KEY, process.env.ACCOUNT_2_PRIVATE_KEY],
chainId: 250,
timeout: 60000,
},
"Polygon Mumbnai": {
url: "https://matic-mumbai.chainstacklabs.com",
accounts: [process.env.ACCOUNT_1_PRIVATE_KEY, process.env.ACCOUNT_2_PRIVATE_KEY],
chainId: 80001,
timeout: 60000,
},
},
//FOR CONTRACT VERIFICATION
etherscan: {
url: "https://sepolia.etherscan.io",
apiKey: "6TBUHYIZH8QXS71YW5XWMCWGVQIRRM2C6U",
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
},
mocha: {
timeout: 40000
}
}