-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
109 lines (108 loc) · 2.23 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-truffle5";
import "hardhat-deploy";
import "hardhat-deploy-ethers";
import "hardhat-contract-sizer";
import "solidity-coverage";
import "@typechain/hardhat";
import 'dotenv/config';
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
networks: {
hardhat: {},
localhost: {
url: "http://127.0.0.1:8545",
},
testnet: {
url: 'https://evm-t3.cronos.org',
chainId: 338,
accounts: [
process.env.TESTNET_DEPLOYER_PRIVATE_KEY,
process.env.TESTNET_OWNER_PRIVATE_KEY,
].filter((pk) => !!pk),
},
mainnet: {
url: `https://evm.cronos.org`,
chainId: 25,
accounts: [
process.env.MAINNET_DEPLOYER_PRIVATE_KEY,
process.env.MAINNET_OWNER_PRIVATE_KEY,
].filter((pk) => !!pk),
},
ethereum_goerli: {
url: `https://goerli.blockpi.network/v1/rpc/public`,
chainId: 5,
accounts: [
process.env.TESTNET_DEPLOYER_PRIVATE_KEY,
process.env.TESTNET_OWNER_PRIVATE_KEY,
].filter((pk) => !!pk),
},
ethereum_holesky: {
url: `https://ethereum-holesky.publicnode.com`,
chainId: 17000,
accounts: [
process.env.TESTNET_DEPLOYER_PRIVATE_KEY,
process.env.TESTNET_OWNER_PRIVATE_KEY,
].filter((pk) => !!pk),
},
},
solidity: {
compilers: [
{
version: "0.6.12",
settings: {
optimizer: {
enabled: true,
runs: 10000000,
},
},
},
{
version: "0.8.6",
settings: {
optimizer: {
enabled: true,
runs: 10000000,
},
},
},
],
},
typechain: {
outDir: "@types/generated",
target: "truffle-v5",
},
namedAccounts: {
deployer: {
default: 0,
},
tokenOwner: {
default: 1,
},
masterMinter: {
default: 1,
},
pauser: {
default: 1,
},
blacklister: {
default: 1,
},
lostAndFound: {
default: 1,
},
mintForwarderOwner: {
default: 1,
25: "TBD",
},
exchangeRateUpdaterOwner: {
default: 1,
25: "TBD",
},
},
mocha: {
timeout: 0,
},
};