-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathinput.ts
More file actions
40 lines (34 loc) · 1.1 KB
/
input.ts
File metadata and controls
40 lines (34 loc) · 1.1 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
import { Task, TaskMode } from '@src';
import { DelayData, RoleData } from './input/types';
const Authorizer = new Task('20210418-authorizer', TaskMode.READ_ONLY);
const Vault = new Task('20241204-v3-vault', TaskMode.READ_ONLY);
export type TimelockAuthorizerDeployment = {
Authorizer: string;
Vault: string;
Root: string;
RootTransferDelay: number;
getRoles: () => Promise<RoleData[]>;
Granters: RoleData[];
Revokers: RoleData[];
ExecuteDelays: DelayData[];
GrantDelays: DelayData[];
};
/* eslint-disable @typescript-eslint/no-explicit-any */
export type TimelockAuthorizerDeploymentInputType = {
Authorizer: Task;
Vault: Task;
networks: string[];
[key: string]: any; // index signature
};
/* eslint-enable @typescript-eslint/no-explicit-any */
const input: TimelockAuthorizerDeploymentInputType = {
Authorizer,
Vault,
networks: ['sepolia'],
};
// Include input files for each network inside global inputs.
/* eslint-disable @typescript-eslint/no-require-imports */
input.networks.forEach((network) => {
input[network] = require(`./input/${network}.ts`);
});
export default input;