-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
35 lines (34 loc) · 1.27 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
require("@nomicfoundation/hardhat-toolbox");
require('dotenv').config({ path: __dirname + '/.env' });
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.24",
settings: {
optimizer: {
enabled: true,
runs: 500,
},
},
gasReporter: {
enabled: true,
},
defaultNetwork: "testnet",
networks: {
testnet: {
// HashIO testnet endpoint from the TESTNET_ENDPOINT variable in the .env file
url: process.env.TESTNET_ENDPOINT,
timeout: 2000000,
allowUnlimitedContractSize: true,
// Your ECDSA account private key pulled from the .env file
accounts: [process.env.OPERATOR_KEY, process.env.OTHER_OPERATOR_KEY, process.env.FEE_COLLECTOR_KEY, process.env.SECOND_FEE_COLLECTOR_KEY],
},
// previewnet: {
// // HashIO testnet endpoint from the TESTNET_ENDPOINT variable in the .env file //https://previewnet.hashio.io/api
// url: 'https://previewnet.hashio.io/api', //https://previewnet.hashio.io/api http://localhost:7546/
// timeout: 20000000000,
// allowUnlimitedContractSize: true,
// // Your ECDSA account private key pulled from the .env file
// accounts: [process.env.OPERATOR_KEY, process.env.OTHER_OPERATOR_KEY, process.env.TREASURY_KEY],
// },
}
};