-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
49 lines (45 loc) · 1.14 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
import type { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox-viem";
import dotenv from 'dotenv';
dotenv.config();
const privateKey = process.env.PRIVATE_KEY || '0x0000000000000000000000000000000000000000000000000000000000000000';
const config: HardhatUserConfig = {
solidity: {
version: '0.8.4',
settings: {
optimizer: {
enabled: true,
runs: 20,
},
metadata: {
// do not include the metadata hash, since this is machine dependent
// and we want all generated code to be deterministic
// https://docs.soliditylang.org/en/v0.7.6/metadata.html
bytecodeHash: 'none',
},
},
},
networks: {
hardhat: {
allowUnlimitedContractSize: false,
blockGasLimit: 40_000_000
},
viction: {
url: `https://rpc.viction.xyz`,
accounts: [privateKey]
},
victionTestnet: {
url: `https://rpc-testnet.viction.xyz`,
accounts: [privateKey],
}
},
paths: {
artifacts: './artifacts',
sources: './contracts',
tests: './tests',
},
mocha: {
timeout: 6000000
}
};
export default config;