This repository has been archived by the owner on Mar 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfiguration.ts
97 lines (92 loc) · 2.72 KB
/
configuration.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
import { Hardfork, Network } from "models/Configuration";
import { Overrides } from "ethers";
/**
* The KEYSTORE environment constant group is used to agrupate the constants related to the Encryped JSON wallets
* @param root the root directory
* @param default default constants if no specific ones defined
* @param default.password to be used to symetric encryption & decryption of the Encryped JSON wallets
* @param default.batchSize the number of Encryped JSON wallets to generate in batch mode
* @param test constants related to tests
* @param test.userNumber number of users to create in tests
*/
export const KEYSTORE = {
root: "keystore",
default: {
accountNumber: 10, // Ganache server default account number
balance: "0x2710", // Pseudo-infinite balance
password: "PaSs_W0Rd", // should use another password for real things
privateKey:
"0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d",
mnemonic: {
phrase:
"myth like bonus scare over problem client lizard pioneer submit female collect",
path: "m/44'/60'/0'/0/0",
basePath: "m/44'/60'/0'/0",
locale: "en",
},
batchSize: 2, // hardhat task default wallets to add to the keystore in batch mode
},
};
/**
* The BLOCKCHAIN environment constant group is used to agrupate the constants related to the blockchain network
*/
export const BLOCKCHAIN = {
default: {
solVersion: "0.8.20",
evm: "london" as Hardfork,
gasLimit: 8000000,
gasPrice: 0,
maxFeePerGas: 9000000000,
maxPriorityFeePerGas: 100,
initialBaseFeePerGas: 7,
},
networks: new Map<BigInt | undefined, Network>([
[
undefined || BigInt(0) || BigInt(31337), // Default
{
chainId: BigInt(31337),
name: "hardhat",
protocol: "http",
hostname: "localhost",
port: 8545,
},
],
[
BigInt(1337),
{
chainId: BigInt(1337),
name: "ganache",
protocol: "http",
hostname: "localhost",
port: 8545,
dbPath: ".ganache-db",
},
],
[
BigInt(1666),
{
chainId: BigInt(1666),
name: "mainTest",
protocol: "http",
hostname: "192.168.12.32",
port: 8545,
dbPath: ".ganache-db",
},
],
]),
};
// default gas options to be used when sending Tx. It aims to zero gas price networks
export const GAS_OPT = {
max: {
gasLimit: BLOCKCHAIN.default.gasLimit,
// gasPrice: BLOCKCHAIN.default.gasPrice,
maxPriorityFeePerGas: BLOCKCHAIN.default.maxPriorityFeePerGas,
maxFeePerGas: BLOCKCHAIN.default.maxFeePerGas,
} as Overrides,
};
export const DEPLOY = {
deploymentsPath: "deployments.json",
};
export const TEST = {
accountNumber: 2,
};