-
Notifications
You must be signed in to change notification settings - Fork 53
/
hardhat.config.cjs
67 lines (61 loc) · 1.8 KB
/
hardhat.config.cjs
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
63
64
65
66
67
// Copyright Abridged, Inc. 2022. All Rights Reserved.
// Node module: @collabland/staking-contracts
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
require('@nomiclabs/hardhat-ethers');
require('@nomiclabs/hardhat-solhint');
require('@collabland/typechain-hardhat');
const path = require('path');
const DEPLOYER_PRIVATE_KEY =
'0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80';
const USER1_PRIVATE_KEY =
'0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d';
const USER2_PRIVATE_KEY =
'0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a';
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
const config = {
solidity: {
version: '0.8.3',
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
paths: {
root: path.join(__dirname, '.'),
sources: path.join(__dirname, './src/contracts'),
tests: path.join(__dirname, './dist/__tests__'),
cache: path.join(__dirname, './dist/cache'),
artifacts: path.join(__dirname, './dist/artifacts'),
},
defaultNetwork: 'hardhat',
networks: {
hardhat: {
accounts: [
{
balance: '10000000000000000000000',
privateKey: DEPLOYER_PRIVATE_KEY,
},
{
balance: '10000000000000000000000',
privateKey: USER1_PRIVATE_KEY,
},
{
balance: '10000000000000000000000',
privateKey: USER2_PRIVATE_KEY,
},
],
},
},
typechain: {
outDir: 'src/types',
target: 'ethers-v5',
externalArtifacts: [path.join(__dirname, 'src/contracts/**/*.json')],
dontOverrideCompile: false,
node16Modules: true,
},
};
module.exports = config;