-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
57 lines (49 loc) · 1.94 KB
/
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
57
import { PostConditionType } from "@stacks/transactions";
import dotenv from "dotenv";
dotenv.config();
const ENV = process.env;
export const STAGE = {
FUNDING_1: 1,
DEPLOY_SC: 2,
FUNDING_2: 3,
PROFILING: 4,
STATISTICS: 5,
};
export const BLOCK_LIMITS = {
read_count: 15_000,
read_length: 100_000_000,
runtime: 5_000_000_000,
write_count: 15_000,
write_length: 15_000_000,
};
// // For close to 100% of the BLOCK_LIMIT
// export const MAX_READ_COUNT = 29;
// export const MAX_READ_LENGTH = 23;
// export const MAX_WRITE_COUNT = 100;
// export const MAX_WRITE_LENGTH = 265;
// export const MAX_COMPUTATION = 1000;
// For close to 70% of the BLOCK_LIMIT running 19 of each of these
export const MAX_READ_COUNT = 1;
export const MAX_READ_LENGTH = 1;
export const MAX_WRITE_COUNT = 0;
export const MAX_WRITE_LENGTH = 50;
export const MAX_COMPUTATION = 1;
export const TX_COUNT_READ_COUNT = 19;
export const TX_COUNT_READ_LENGTH = 19;
export const TX_COUNT_WRITE_COUNT = 0;
export const TX_COUNT_WRITE_LENGTH = 19;
export const TX_COUNT_COMPUTATION = 19;
// It should be for making a tx with cost X% of the total max
// Most of the contract calls don't increase lineary so it doesn't work as expected
// 20 as TX_PERCENTAGE is a lot less than 20% of the block limit for write_length
export const TX_FEE = 1_500_000;
export const CONTRACT_NAME = "read-and-write-20-percentage-clean";
export const DIRECTORY_OUTPUT = `./outputs/${ENV.STACKS_CHAINID}`;
export const FILENAME_PENDING_OUTPUT = `./outputs/${ENV.STACKS_CHAINID}/txs_pending.json`;
export const FILENAME_BROADCAST_OUTPUT = `./outputs/${ENV.STACKS_CHAINID}/txs_broadcasted.json`;
export const FILENAME_STATS_OUTPUT = `./outputs/${ENV.STACKS_CHAINID}/txs_stats.json`;
// export const currentStage = STAGE.FUNDING_1;
// export const currentStage = STAGE.FUNDING_2;
// export const currentStage = STAGE.DEPLOY_SC;
export const currentStage = STAGE.PROFILING;
// export const currentStage = STAGE.STATISTICS;