-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathconfig.ts
More file actions
42 lines (38 loc) · 981 Bytes
/
config.ts
File metadata and controls
42 lines (38 loc) · 981 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
32
33
34
35
36
37
38
39
40
41
42
export type PackageName = "host-contracts" | "gateway-contracts";
export const EXCLUDED_MODIFIERS = new Set([
"onlyOwner",
"onlyACLOwner",
"onlyGatewayOwner",
"onlyFromEmptyProxy",
"onlyPauser",
"onlyCoprocessorTxSender",
"onlyKmsTxSender",
"onlyRegisteredHostChain",
"onlyHandleFromRegisteredHostChain",
"onlyDecryptionContract",
"onlyInputVerificationContract",
]);
export const EXCLUDED_FUNCTION_PATTERNS = [
/^initialize/,
/^reinitializeV\d+$/,
/^acceptOwnership$/,
/^owner$/,
/^transferOwnership$/,
/^upgradeToAndCall$/,
];
// ABI coverage is derived from each package's upgrade-manifest.json.
// Keep only stable-surface exclusions here.
export const EXCLUDED_CONTRACT_FUNCTION_PATTERNS: Record<string, RegExp[]> = {
HCULimit: [/^checkHCUFor/],
};
export const PACKAGE_CONFIG: Record<
PackageName,
{
extraDeps?: string;
}
> = {
"host-contracts": {
extraDeps: "forge soldeer install",
},
"gateway-contracts": {},
};