forked from balancer/balancer-deployments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
34 lines (30 loc) · 1.08 KB
/
index.ts
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
import { Task, TaskRunOptions } from '@src';
import { PreseededVotingEscrowDelegationDeployment } from './input';
const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000';
export default async (task: Task, { force, from }: TaskRunOptions = {}): Promise<void> => {
const input = task.input() as PreseededVotingEscrowDelegationDeployment;
const args = [
input.VotingEscrow,
'VotingEscrow Delegation',
'veBoost',
'',
input.AuthorizerAdaptor,
input.PreseededBoostCalls.concat(
new Array<(typeof input.PreseededBoostCalls)[number]>(10 - input.PreseededBoostCalls.length).fill({
delegator: ZERO_ADDRESS,
receiver: ZERO_ADDRESS,
percentage: 0,
cancel_time: 0,
expire_time: 0,
id: 0,
})
),
input.PreseededApprovalCalls.concat(
new Array<(typeof input.PreseededApprovalCalls)[number]>(10 - input.PreseededApprovalCalls.length).fill({
operator: ZERO_ADDRESS,
delegator: ZERO_ADDRESS,
})
),
];
await task.deploy('PreseededVotingEscrowDelegation', args, from, force);
};