forked from Remitwise-Org/Remitwise-Contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththresholds.json
More file actions
121 lines (121 loc) · 3.71 KB
/
Copy paththresholds.json
File metadata and controls
121 lines (121 loc) · 3.71 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
{
"default": {
"cpu_percent": 10,
"mem_percent": 10,
"description": "Default threshold: 10% increase triggers regression warning"
},
"contract_specific": {
"bill_payments": {
"cpu_percent": 15,
"mem_percent": 10,
"description": "Bill payments may have higher CPU variance due to iteration"
},
"savings_goals": {
"cpu_percent": 10,
"mem_percent": 10,
"description": "Standard thresholds for savings goals"
},
"insurance": {
"cpu_percent": 10,
"mem_percent": 10,
"description": "Standard thresholds for insurance"
},
"family_wallet": {
"cpu_percent": 12,
"mem_percent": 10,
"description": "Slightly higher CPU threshold for multisig operations"
},
"remittance_split": {
"cpu_percent": 10,
"mem_percent": 10,
"description": "Standard thresholds for remittance split"
}
},
"method_specific": {
"get_total_unpaid": {
"cpu_percent": 15,
"mem_percent": 10,
"description": "Higher CPU threshold for aggregation operations"
},
"archive_paid_bills": {
"cpu_percent": 15,
"mem_percent": 12,
"description": "Archive scans bill storage and writes archive records"
},
"restore_bill": {
"cpu_percent": 12,
"mem_percent": 10,
"description": "Single-record restore with owner authorization checks"
},
"bulk_cleanup_bills": {
"cpu_percent": 15,
"mem_percent": 12,
"description": "Cleanup iterates archived records and removes matched entries"
},
"batch_add_to_goals": {
"cpu_percent": 15,
"mem_percent": 15,
"description": "Savings goals batch_add_to_goals scaling: amortized per-item should stay bounded"
},
"batch_pay_bills": {
"cpu_percent": 15,
"mem_percent": 12,
"description": "Mixed batch processing with per-item validation and partial success"
},
"get_all_goals": {
"cpu_percent": 12,
"mem_percent": 12,
"description": "Slightly higher thresholds for bulk retrieval"
},
"create_remittance_schedule": {
"cpu_percent": 10,
"mem_percent": 10,
"description": "Standard thresholds for schedule creation"
},
"modify_remittance_schedule": {
"cpu_percent": 10,
"mem_percent": 10,
"description": "Standard thresholds for schedule modification"
},
"cancel_remittance_schedule": {
"cpu_percent": 10,
"mem_percent": 10,
"description": "Standard thresholds for schedule cancellation"
},
"get_remittance_schedules": {
"cpu_percent": 15,
"mem_percent": 12,
"description": "Higher thresholds for schedule queries due to iteration"
},
"get_remittance_schedule": {
"cpu_percent": 8,
"mem_percent": 8,
"description": "Lower thresholds for single schedule lookup"
},
"get_remittance_summary": {
"cpu_percent": 10,
"mem_percent": 10,
"description": "Standard thresholds for two-call split aggregation"
},
"get_trend_analysis_multi": {
"cpu_percent": 15,
"mem_percent": 15,
"description": "Higher thresholds: pure in-contract iteration over user-supplied history Vec"
},
"get_financial_health_report": {
"cpu_percent": 15,
"mem_percent": 15,
"description": "Higher thresholds: nine cross-contract calls with per-item iteration loops"
},
"archive_old_reports": {
"cpu_percent": 15,
"mem_percent": 15,
"description": "Higher thresholds: dual O(n) map iteration over active and archive storage"
},
"get_storage_stats": {
"cpu_percent": 8,
"mem_percent": 8,
"description": "Tight thresholds: O(1) single instance-storage key read"
}
}
}