-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
42 lines (38 loc) · 989 Bytes
/
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
import { HardhatUserConfig } from "hardhat/config";
import {key} from './key.json'
import '@nomiclabs/hardhat-ethers'
import '@nomiclabs/hardhat-etherscan'
import '@nomiclabs/hardhat-waffle'
import 'hardhat-typechain'
import 'hardhat-watcher'
const config: HardhatUserConfig = {
networks: {
hardhat: {
allowUnlimitedContractSize: false,
},
mainnet: {
url:'https://bsc-dataseed4.ninicoin.io',
accounts:[key]
},
testbnb: {
url:'https://data-seed-prebsc-1-s1.bnbchain.org:8545',
accounts:[key],
}
},
solidity: {
version: '0.8.20',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
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',
},
},
},
};
export default config;