-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.js
56 lines (54 loc) · 1.52 KB
/
hardhat.config.js
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
require("@nomicfoundation/hardhat-toolbox");
const { OPERATOR_ID, OPERATOR_KEY_DER, OPERATOR_KEY_HEX, ALICE_KEY_HEX, BOB_KEY_HEX, NETWORKS } = require("./constants");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: "0.8.27",
settings: {
optimizer: {
enabled: true,
runs: 500,
},
evmVersion: "cancun",
},
},
defaultNetwork: NETWORKS.testnet.name,
networks: {
local: {
url: NETWORKS.local.url,
accounts: [OPERATOR_KEY_HEX, ALICE_KEY_HEX, BOB_KEY_HEX],
chainId: NETWORKS.local.chainId,
sdkClient: {
operatorId: OPERATOR_ID,
operatorKey: OPERATOR_KEY_DER,
networkNodeUrl: NETWORKS.local.networkNodeUrl,
nodeId: NETWORKS.local.nodeId,
mirrorNode: NETWORKS.local.mirrorNode,
},
},
testnet: {
url: NETWORKS.testnet.url,
accounts: [OPERATOR_KEY_HEX, ALICE_KEY_HEX, BOB_KEY_HEX],
chainId: NETWORKS.testnet.chainId,
sdkClient: {
operatorId: OPERATOR_ID,
operatorKey: OPERATOR_KEY_DER,
networkNodeUrl: NETWORKS.testnet.networkNodeUrl,
nodeId: NETWORKS.testnet.nodeId,
mirrorNode: NETWORKS.testnet.mirrorNode,
},
},
previewnet: {
url: NETWORKS.previewnet.url,
accounts: [OPERATOR_KEY_HEX, ALICE_KEY_HEX, BOB_KEY_HEX],
chainId: NETWORKS.previewnet.chainId,
sdkClient: {
operatorId: OPERATOR_ID,
operatorKey: OPERATOR_KEY_DER,
networkNodeUrl: NETWORKS.previewnet.networkNodeUrl,
nodeId: NETWORKS.previewnet.nodeId,
mirrorNode: NETWORKS.previewnet.mirrorNode,
},
},
},
};