-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathhardhat.config.ts
54 lines (52 loc) · 1.26 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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
const config: HardhatUserConfig = {
solidity: {
version: '0.8.27',
settings: {
evmVersion: 'cancun',
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
hardhat: {
allowUnlimitedContractSize: true,
},
localhost: {
url: 'http://127.0.0.1:8545',
},
mainnet: {
url: 'https://rpc.sonic.soniclabs.com',
chainId: 146,
hardfork: "cancun",
},
testnet: {
url: 'https://rpc.blaze.soniclabs.com',
chainId: 57054,
hardfork: "cancun",
},
},
etherscan: {
customChains: [
{
network: "sonic",
chainId: 146,
urls: {
apiURL: "https://api.sonicscan.org/api",
browserURL: "https://sonicscan.org/"
}
}
],
},
mocha: {},
paths: {
sources: './contracts',
tests: './test',
cache: './cache',
artifacts: './artifacts',
},
};
export default config;