forked from MoralisWeb3/web3-unity-sdk-sample-game-scw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
62 lines (58 loc) · 1.58 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
///////////////////////////////////////////////////////////
// REQUIRES
///////////////////////////////////////////////////////////
require("dotenv").config();
require("@nomicfoundation/hardhat-toolbox");
require("hardhat-gas-reporter");
///////////////////////////////////////////////////////////
// EXPORTS
///////////////////////////////////////////////////////////
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: "0.8.9",
networks: {
hardhat: {},
polygonMumbai: {
url: process.env.POLYGON_MUMBAI_NETWORK_URL,
accounts: [process.env.WEB3_WALLET_PRIVATE_KEY]
},
cronosTestnet: {
url: "https://evm-t3.cronos.org/",
chainId: 338,
accounts: [process.env.WEB3_WALLET_PRIVATE_KEY],
gasPrice: 5000000000000
}
},
etherscan: {
apiKey: {
polygonMumbai: process.env.POLYGON_MUMBAI_API_KEY,
cronosTestnet: process.env.CRONOSCAN_TESTNET_API_KEY,
},
customChains: [
{
network: "cronosTestnet",
chainId: 338,
urls: {
apiURL: "https://api-testnet.cronoscan.com/api",
browserURL: "https://testnet.cronoscan.com/"
}
}
]
},
gasReporter: {
currency: 'USD',
enabled: true
}
};
///////////////////////////////////////////////////////////
// TASKS
///////////////////////////////////////////////////////////
task("ccct", "Clean, Compile, Coverage, & Test the Greeter.sol").setAction(async () => {
// Works!
await hre.run("clean");
await hre.run("compile");
await hre.run("coverage");
await hre.run("test");
});