-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathhints.ts
More file actions
31 lines (28 loc) · 778 Bytes
/
hints.ts
File metadata and controls
31 lines (28 loc) · 778 Bytes
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
export interface UpgradeReportHint {
defaults?: Record<string, string>;
}
export interface UpgradeConstraint {
contracts: string[];
message: string;
}
export const CONTRACT_HINTS: Record<string, Record<string, UpgradeReportHint>> = {
"host-contracts": {
HCULimit: {
defaults: {
hcuCapPerBlock: "281474976710655",
maxHcuDepthPerTx: "5000000",
maxHcuPerTx: "20000000",
},
},
},
"gateway-contracts": {},
};
export const PACKAGE_CONSTRAINTS: Record<string, UpgradeConstraint[]> = {
"host-contracts": [
{
contracts: ["HCULimit", "FHEVMExecutor"],
message: "HCULimit and FHEVMExecutor both changed. Check whether they must be upgraded atomically or back-to-back.",
},
],
"gateway-contracts": [],
};