@usdu-finance/usdu-core 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,800 @@
1
+ export const StagedProposalProcessor_ABI = [
2
+ { inputs: [], name: 'AlreadyInitialized', type: 'error' },
3
+ { inputs: [{ internalType: 'address', name: 'body', type: 'address' }], name: 'BodyResultTypeNotSet', type: 'error' },
4
+ {
5
+ inputs: [
6
+ { internalType: 'address', name: 'dao', type: 'address' },
7
+ { internalType: 'address', name: 'where', type: 'address' },
8
+ { internalType: 'address', name: 'who', type: 'address' },
9
+ { internalType: 'bytes32', name: 'permissionId', type: 'bytes32' },
10
+ ],
11
+ name: 'DaoUnauthorized',
12
+ type: 'error',
13
+ },
14
+ { inputs: [], name: 'DelegateCallFailed', type: 'error' },
15
+ {
16
+ inputs: [
17
+ { internalType: 'uint256', name: 'stageId', type: 'uint256' },
18
+ { internalType: 'address', name: 'body', type: 'address' },
19
+ ],
20
+ name: 'DuplicateBodyAddress',
21
+ type: 'error',
22
+ },
23
+ { inputs: [], name: 'FunctionDeprecated', type: 'error' },
24
+ { inputs: [], name: 'InsufficientGas', type: 'error' },
25
+ { inputs: [], name: 'InterfaceNotSupported', type: 'error' },
26
+ {
27
+ inputs: [
28
+ {
29
+ components: [
30
+ { internalType: 'address', name: 'target', type: 'address' },
31
+ { internalType: 'enum IPlugin.Operation', name: 'operation', type: 'uint8' },
32
+ ],
33
+ internalType: 'struct IPlugin.TargetConfig',
34
+ name: 'targetConfig',
35
+ type: 'tuple',
36
+ },
37
+ ],
38
+ name: 'InvalidTargetConfig',
39
+ type: 'error',
40
+ },
41
+ { inputs: [{ internalType: 'uint256', name: 'proposalId', type: 'uint256' }], name: 'NonexistentProposal', type: 'error' },
42
+ { inputs: [{ internalType: 'uint256', name: 'proposalId', type: 'uint256' }], name: 'ProposalAdvanceForbidden', type: 'error' },
43
+ { inputs: [{ internalType: 'uint256', name: 'proposalId', type: 'uint256' }], name: 'ProposalAlreadyExists', type: 'error' },
44
+ {
45
+ inputs: [
46
+ { internalType: 'uint256', name: 'proposalId', type: 'uint256' },
47
+ { internalType: 'uint16', name: 'stageId', type: 'uint16' },
48
+ ],
49
+ name: 'ProposalCanNotBeCancelled',
50
+ type: 'error',
51
+ },
52
+ {
53
+ inputs: [
54
+ { internalType: 'uint256', name: 'proposalId', type: 'uint256' },
55
+ { internalType: 'uint16', name: 'stageId', type: 'uint16' },
56
+ ],
57
+ name: 'ProposalCanNotBeEdited',
58
+ type: 'error',
59
+ },
60
+ { inputs: [{ internalType: 'uint256', name: 'proposalId', type: 'uint256' }], name: 'ProposalExecutionForbidden', type: 'error' },
61
+ { inputs: [], name: 'StageCountZero', type: 'error' },
62
+ { inputs: [], name: 'StageDurationsInvalid', type: 'error' },
63
+ {
64
+ inputs: [
65
+ { internalType: 'uint64', name: 'currentStageId', type: 'uint64' },
66
+ { internalType: 'uint64', name: 'reportedStageId', type: 'uint64' },
67
+ ],
68
+ name: 'StageIdInvalid',
69
+ type: 'error',
70
+ },
71
+ { inputs: [], name: 'StageThresholdsInvalid', type: 'error' },
72
+ { inputs: [{ internalType: 'uint64', name: '', type: 'uint64' }], name: 'StartDateInvalid', type: 'error' },
73
+ { inputs: [], name: 'Uint16MaxSizeExceeded', type: 'error' },
74
+ {
75
+ inputs: [
76
+ { internalType: 'uint256', name: 'proposalId', type: 'uint256' },
77
+ { internalType: 'uint8', name: 'currentState', type: 'uint8' },
78
+ { internalType: 'bytes32', name: 'allowedStates', type: 'bytes32' },
79
+ ],
80
+ name: 'UnexpectedProposalState',
81
+ type: 'error',
82
+ },
83
+ {
84
+ anonymous: false,
85
+ inputs: [
86
+ { indexed: false, internalType: 'address', name: 'previousAdmin', type: 'address' },
87
+ { indexed: false, internalType: 'address', name: 'newAdmin', type: 'address' },
88
+ ],
89
+ name: 'AdminChanged',
90
+ type: 'event',
91
+ },
92
+ {
93
+ anonymous: false,
94
+ inputs: [{ indexed: true, internalType: 'address', name: 'beacon', type: 'address' }],
95
+ name: 'BeaconUpgraded',
96
+ type: 'event',
97
+ },
98
+ {
99
+ anonymous: false,
100
+ inputs: [{ indexed: false, internalType: 'uint8', name: 'version', type: 'uint8' }],
101
+ name: 'Initialized',
102
+ type: 'event',
103
+ },
104
+ {
105
+ anonymous: false,
106
+ inputs: [{ indexed: false, internalType: 'bytes', name: 'metadata', type: 'bytes' }],
107
+ name: 'MetadataSet',
108
+ type: 'event',
109
+ },
110
+ {
111
+ anonymous: false,
112
+ inputs: [
113
+ { indexed: true, internalType: 'uint256', name: 'proposalId', type: 'uint256' },
114
+ { indexed: true, internalType: 'uint16', name: 'stageId', type: 'uint16' },
115
+ { indexed: true, internalType: 'address', name: 'sender', type: 'address' },
116
+ ],
117
+ name: 'ProposalAdvanced',
118
+ type: 'event',
119
+ },
120
+ {
121
+ anonymous: false,
122
+ inputs: [
123
+ { indexed: true, internalType: 'uint256', name: 'proposalId', type: 'uint256' },
124
+ { indexed: true, internalType: 'uint16', name: 'stageId', type: 'uint16' },
125
+ { indexed: true, internalType: 'address', name: 'sender', type: 'address' },
126
+ ],
127
+ name: 'ProposalCanceled',
128
+ type: 'event',
129
+ },
130
+ {
131
+ anonymous: false,
132
+ inputs: [
133
+ { indexed: true, internalType: 'uint256', name: 'proposalId', type: 'uint256' },
134
+ { indexed: true, internalType: 'address', name: 'creator', type: 'address' },
135
+ { indexed: false, internalType: 'uint64', name: 'startDate', type: 'uint64' },
136
+ { indexed: false, internalType: 'uint64', name: 'endDate', type: 'uint64' },
137
+ { indexed: false, internalType: 'bytes', name: 'metadata', type: 'bytes' },
138
+ {
139
+ components: [
140
+ { internalType: 'address', name: 'to', type: 'address' },
141
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
142
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
143
+ ],
144
+ indexed: false,
145
+ internalType: 'struct Action[]',
146
+ name: 'actions',
147
+ type: 'tuple[]',
148
+ },
149
+ { indexed: false, internalType: 'uint256', name: 'allowFailureMap', type: 'uint256' },
150
+ ],
151
+ name: 'ProposalCreated',
152
+ type: 'event',
153
+ },
154
+ {
155
+ anonymous: false,
156
+ inputs: [
157
+ { indexed: true, internalType: 'uint256', name: 'proposalId', type: 'uint256' },
158
+ { indexed: true, internalType: 'uint16', name: 'stageId', type: 'uint16' },
159
+ { indexed: true, internalType: 'address', name: 'sender', type: 'address' },
160
+ { indexed: false, internalType: 'bytes', name: 'metadata', type: 'bytes' },
161
+ {
162
+ components: [
163
+ { internalType: 'address', name: 'to', type: 'address' },
164
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
165
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
166
+ ],
167
+ indexed: false,
168
+ internalType: 'struct Action[]',
169
+ name: 'actions',
170
+ type: 'tuple[]',
171
+ },
172
+ ],
173
+ name: 'ProposalEdited',
174
+ type: 'event',
175
+ },
176
+ {
177
+ anonymous: false,
178
+ inputs: [{ indexed: true, internalType: 'uint256', name: 'proposalId', type: 'uint256' }],
179
+ name: 'ProposalExecuted',
180
+ type: 'event',
181
+ },
182
+ {
183
+ anonymous: false,
184
+ inputs: [
185
+ { indexed: true, internalType: 'uint256', name: 'proposalId', type: 'uint256' },
186
+ { indexed: true, internalType: 'uint16', name: 'stageId', type: 'uint16' },
187
+ { indexed: true, internalType: 'address', name: 'body', type: 'address' },
188
+ ],
189
+ name: 'ProposalResultReported',
190
+ type: 'event',
191
+ },
192
+ {
193
+ anonymous: false,
194
+ inputs: [
195
+ {
196
+ components: [
197
+ {
198
+ components: [
199
+ { internalType: 'address', name: 'addr', type: 'address' },
200
+ { internalType: 'bool', name: 'isManual', type: 'bool' },
201
+ { internalType: 'bool', name: 'tryAdvance', type: 'bool' },
202
+ { internalType: 'enum StagedProposalProcessor.ResultType', name: 'resultType', type: 'uint8' },
203
+ ],
204
+ internalType: 'struct StagedProposalProcessor.Body[]',
205
+ name: 'bodies',
206
+ type: 'tuple[]',
207
+ },
208
+ { internalType: 'uint64', name: 'maxAdvance', type: 'uint64' },
209
+ { internalType: 'uint64', name: 'minAdvance', type: 'uint64' },
210
+ { internalType: 'uint64', name: 'voteDuration', type: 'uint64' },
211
+ { internalType: 'uint16', name: 'approvalThreshold', type: 'uint16' },
212
+ { internalType: 'uint16', name: 'vetoThreshold', type: 'uint16' },
213
+ { internalType: 'bool', name: 'cancelable', type: 'bool' },
214
+ { internalType: 'bool', name: 'editable', type: 'bool' },
215
+ ],
216
+ indexed: false,
217
+ internalType: 'struct StagedProposalProcessor.Stage[]',
218
+ name: 'stages',
219
+ type: 'tuple[]',
220
+ },
221
+ ],
222
+ name: 'StagesUpdated',
223
+ type: 'event',
224
+ },
225
+ {
226
+ anonymous: false,
227
+ inputs: [
228
+ { indexed: true, internalType: 'uint256', name: 'proposalId', type: 'uint256' },
229
+ { indexed: true, internalType: 'uint16', name: 'stageId', type: 'uint16' },
230
+ { indexed: true, internalType: 'address', name: 'body', type: 'address' },
231
+ { indexed: false, internalType: 'uint256', name: 'bodyProposalId', type: 'uint256' },
232
+ ],
233
+ name: 'SubProposalCreated',
234
+ type: 'event',
235
+ },
236
+ {
237
+ anonymous: false,
238
+ inputs: [
239
+ { indexed: true, internalType: 'uint256', name: 'proposalId', type: 'uint256' },
240
+ { indexed: true, internalType: 'uint16', name: 'stageId', type: 'uint16' },
241
+ { indexed: true, internalType: 'address', name: 'body', type: 'address' },
242
+ { indexed: false, internalType: 'bytes', name: 'reason', type: 'bytes' },
243
+ ],
244
+ name: 'SubProposalNotCreated',
245
+ type: 'event',
246
+ },
247
+ {
248
+ anonymous: false,
249
+ inputs: [
250
+ {
251
+ components: [
252
+ { internalType: 'address', name: 'target', type: 'address' },
253
+ { internalType: 'enum IPlugin.Operation', name: 'operation', type: 'uint8' },
254
+ ],
255
+ indexed: false,
256
+ internalType: 'struct IPlugin.TargetConfig',
257
+ name: 'newTargetConfig',
258
+ type: 'tuple',
259
+ },
260
+ ],
261
+ name: 'TargetSet',
262
+ type: 'event',
263
+ },
264
+ {
265
+ anonymous: false,
266
+ inputs: [{ indexed: true, internalType: 'address', name: 'forwarder', type: 'address' }],
267
+ name: 'TrustedForwarderUpdated',
268
+ type: 'event',
269
+ },
270
+ {
271
+ anonymous: false,
272
+ inputs: [{ indexed: true, internalType: 'address', name: 'implementation', type: 'address' }],
273
+ name: 'Upgraded',
274
+ type: 'event',
275
+ },
276
+ {
277
+ inputs: [],
278
+ name: 'SET_METADATA_PERMISSION_ID',
279
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
280
+ stateMutability: 'view',
281
+ type: 'function',
282
+ },
283
+ {
284
+ inputs: [],
285
+ name: 'SET_TARGET_CONFIG_PERMISSION_ID',
286
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
287
+ stateMutability: 'view',
288
+ type: 'function',
289
+ },
290
+ {
291
+ inputs: [],
292
+ name: 'UPGRADE_PLUGIN_PERMISSION_ID',
293
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
294
+ stateMutability: 'view',
295
+ type: 'function',
296
+ },
297
+ {
298
+ inputs: [{ internalType: 'uint256', name: '_proposalId', type: 'uint256' }],
299
+ name: 'advanceProposal',
300
+ outputs: [],
301
+ stateMutability: 'nonpayable',
302
+ type: 'function',
303
+ },
304
+ {
305
+ inputs: [{ internalType: 'uint256', name: '_proposalId', type: 'uint256' }],
306
+ name: 'canExecute',
307
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
308
+ stateMutability: 'view',
309
+ type: 'function',
310
+ },
311
+ {
312
+ inputs: [{ internalType: 'uint256', name: '_proposalId', type: 'uint256' }],
313
+ name: 'canProposalAdvance',
314
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
315
+ stateMutability: 'view',
316
+ type: 'function',
317
+ },
318
+ {
319
+ inputs: [{ internalType: 'uint256', name: '_proposalId', type: 'uint256' }],
320
+ name: 'cancel',
321
+ outputs: [],
322
+ stateMutability: 'nonpayable',
323
+ type: 'function',
324
+ },
325
+ {
326
+ inputs: [
327
+ { internalType: 'bytes', name: '_metadata', type: 'bytes' },
328
+ {
329
+ components: [
330
+ { internalType: 'address', name: 'to', type: 'address' },
331
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
332
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
333
+ ],
334
+ internalType: 'struct Action[]',
335
+ name: '_actions',
336
+ type: 'tuple[]',
337
+ },
338
+ { internalType: 'uint128', name: '_allowFailureMap', type: 'uint128' },
339
+ { internalType: 'uint64', name: '_startDate', type: 'uint64' },
340
+ { internalType: 'bytes[][]', name: '_proposalParams', type: 'bytes[][]' },
341
+ ],
342
+ name: 'createProposal',
343
+ outputs: [{ internalType: 'uint256', name: 'proposalId', type: 'uint256' }],
344
+ stateMutability: 'nonpayable',
345
+ type: 'function',
346
+ },
347
+ {
348
+ inputs: [
349
+ { internalType: 'bytes', name: '_metadata', type: 'bytes' },
350
+ {
351
+ components: [
352
+ { internalType: 'address', name: 'to', type: 'address' },
353
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
354
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
355
+ ],
356
+ internalType: 'struct Action[]',
357
+ name: '_actions',
358
+ type: 'tuple[]',
359
+ },
360
+ { internalType: 'uint64', name: '_startDate', type: 'uint64' },
361
+ { internalType: 'uint64', name: '', type: 'uint64' },
362
+ { internalType: 'bytes', name: '_data', type: 'bytes' },
363
+ ],
364
+ name: 'createProposal',
365
+ outputs: [{ internalType: 'uint256', name: 'proposalId', type: 'uint256' }],
366
+ stateMutability: 'nonpayable',
367
+ type: 'function',
368
+ },
369
+ {
370
+ inputs: [],
371
+ name: 'customProposalParamsABI',
372
+ outputs: [{ internalType: 'string', name: '', type: 'string' }],
373
+ stateMutability: 'pure',
374
+ type: 'function',
375
+ },
376
+ {
377
+ inputs: [],
378
+ name: 'dao',
379
+ outputs: [{ internalType: 'contract IDAO', name: '', type: 'address' }],
380
+ stateMutability: 'view',
381
+ type: 'function',
382
+ },
383
+ {
384
+ inputs: [
385
+ { internalType: 'uint256', name: '_proposalId', type: 'uint256' },
386
+ { internalType: 'bytes', name: '_metadata', type: 'bytes' },
387
+ {
388
+ components: [
389
+ { internalType: 'address', name: 'to', type: 'address' },
390
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
391
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
392
+ ],
393
+ internalType: 'struct Action[]',
394
+ name: '_actions',
395
+ type: 'tuple[]',
396
+ },
397
+ ],
398
+ name: 'edit',
399
+ outputs: [],
400
+ stateMutability: 'nonpayable',
401
+ type: 'function',
402
+ },
403
+ {
404
+ inputs: [{ internalType: 'uint256', name: '_proposalId', type: 'uint256' }],
405
+ name: 'execute',
406
+ outputs: [],
407
+ stateMutability: 'nonpayable',
408
+ type: 'function',
409
+ },
410
+ {
411
+ inputs: [
412
+ { internalType: 'uint256', name: '_proposalId', type: 'uint256' },
413
+ { internalType: 'uint16', name: '_stageId', type: 'uint16' },
414
+ { internalType: 'address', name: '_body', type: 'address' },
415
+ ],
416
+ name: 'getBodyProposalId',
417
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
418
+ stateMutability: 'view',
419
+ type: 'function',
420
+ },
421
+ {
422
+ inputs: [
423
+ { internalType: 'uint256', name: '_proposalId', type: 'uint256' },
424
+ { internalType: 'uint16', name: '_stageId', type: 'uint16' },
425
+ { internalType: 'address', name: '_body', type: 'address' },
426
+ ],
427
+ name: 'getBodyResult',
428
+ outputs: [{ internalType: 'enum StagedProposalProcessor.ResultType', name: '', type: 'uint8' }],
429
+ stateMutability: 'view',
430
+ type: 'function',
431
+ },
432
+ {
433
+ inputs: [
434
+ { internalType: 'uint256', name: '_proposalId', type: 'uint256' },
435
+ { internalType: 'uint16', name: '_stageId', type: 'uint16' },
436
+ { internalType: 'uint256', name: '_index', type: 'uint256' },
437
+ ],
438
+ name: 'getCreateProposalParams',
439
+ outputs: [{ internalType: 'bytes', name: '', type: 'bytes' }],
440
+ stateMutability: 'view',
441
+ type: 'function',
442
+ },
443
+ {
444
+ inputs: [],
445
+ name: 'getCurrentConfigIndex',
446
+ outputs: [{ internalType: 'uint16', name: '', type: 'uint16' }],
447
+ stateMutability: 'view',
448
+ type: 'function',
449
+ },
450
+ {
451
+ inputs: [],
452
+ name: 'getCurrentTargetConfig',
453
+ outputs: [
454
+ {
455
+ components: [
456
+ { internalType: 'address', name: 'target', type: 'address' },
457
+ { internalType: 'enum IPlugin.Operation', name: 'operation', type: 'uint8' },
458
+ ],
459
+ internalType: 'struct IPlugin.TargetConfig',
460
+ name: '',
461
+ type: 'tuple',
462
+ },
463
+ ],
464
+ stateMutability: 'view',
465
+ type: 'function',
466
+ },
467
+ {
468
+ inputs: [],
469
+ name: 'getMetadata',
470
+ outputs: [{ internalType: 'bytes', name: '', type: 'bytes' }],
471
+ stateMutability: 'view',
472
+ type: 'function',
473
+ },
474
+ {
475
+ inputs: [{ internalType: 'uint256', name: '_proposalId', type: 'uint256' }],
476
+ name: 'getProposal',
477
+ outputs: [
478
+ {
479
+ components: [
480
+ { internalType: 'uint128', name: 'allowFailureMap', type: 'uint128' },
481
+ { internalType: 'uint64', name: 'lastStageTransition', type: 'uint64' },
482
+ { internalType: 'uint16', name: 'currentStage', type: 'uint16' },
483
+ { internalType: 'uint16', name: 'stageConfigIndex', type: 'uint16' },
484
+ { internalType: 'bool', name: 'executed', type: 'bool' },
485
+ { internalType: 'bool', name: 'canceled', type: 'bool' },
486
+ { internalType: 'address', name: 'creator', type: 'address' },
487
+ {
488
+ components: [
489
+ { internalType: 'address', name: 'to', type: 'address' },
490
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
491
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
492
+ ],
493
+ internalType: 'struct Action[]',
494
+ name: 'actions',
495
+ type: 'tuple[]',
496
+ },
497
+ {
498
+ components: [
499
+ { internalType: 'address', name: 'target', type: 'address' },
500
+ { internalType: 'enum IPlugin.Operation', name: 'operation', type: 'uint8' },
501
+ ],
502
+ internalType: 'struct IPlugin.TargetConfig',
503
+ name: 'targetConfig',
504
+ type: 'tuple',
505
+ },
506
+ ],
507
+ internalType: 'struct StagedProposalProcessor.Proposal',
508
+ name: '',
509
+ type: 'tuple',
510
+ },
511
+ ],
512
+ stateMutability: 'view',
513
+ type: 'function',
514
+ },
515
+ {
516
+ inputs: [
517
+ { internalType: 'uint256', name: '_proposalId', type: 'uint256' },
518
+ { internalType: 'uint16', name: '_stageId', type: 'uint16' },
519
+ ],
520
+ name: 'getProposalTally',
521
+ outputs: [
522
+ { internalType: 'uint256', name: 'approvals', type: 'uint256' },
523
+ { internalType: 'uint256', name: 'vetoes', type: 'uint256' },
524
+ ],
525
+ stateMutability: 'view',
526
+ type: 'function',
527
+ },
528
+ {
529
+ inputs: [{ internalType: 'uint256', name: '_index', type: 'uint256' }],
530
+ name: 'getStages',
531
+ outputs: [
532
+ {
533
+ components: [
534
+ {
535
+ components: [
536
+ { internalType: 'address', name: 'addr', type: 'address' },
537
+ { internalType: 'bool', name: 'isManual', type: 'bool' },
538
+ { internalType: 'bool', name: 'tryAdvance', type: 'bool' },
539
+ { internalType: 'enum StagedProposalProcessor.ResultType', name: 'resultType', type: 'uint8' },
540
+ ],
541
+ internalType: 'struct StagedProposalProcessor.Body[]',
542
+ name: 'bodies',
543
+ type: 'tuple[]',
544
+ },
545
+ { internalType: 'uint64', name: 'maxAdvance', type: 'uint64' },
546
+ { internalType: 'uint64', name: 'minAdvance', type: 'uint64' },
547
+ { internalType: 'uint64', name: 'voteDuration', type: 'uint64' },
548
+ { internalType: 'uint16', name: 'approvalThreshold', type: 'uint16' },
549
+ { internalType: 'uint16', name: 'vetoThreshold', type: 'uint16' },
550
+ { internalType: 'bool', name: 'cancelable', type: 'bool' },
551
+ { internalType: 'bool', name: 'editable', type: 'bool' },
552
+ ],
553
+ internalType: 'struct StagedProposalProcessor.Stage[]',
554
+ name: '',
555
+ type: 'tuple[]',
556
+ },
557
+ ],
558
+ stateMutability: 'view',
559
+ type: 'function',
560
+ },
561
+ {
562
+ inputs: [],
563
+ name: 'getTargetConfig',
564
+ outputs: [
565
+ {
566
+ components: [
567
+ { internalType: 'address', name: 'target', type: 'address' },
568
+ { internalType: 'enum IPlugin.Operation', name: 'operation', type: 'uint8' },
569
+ ],
570
+ internalType: 'struct IPlugin.TargetConfig',
571
+ name: '',
572
+ type: 'tuple',
573
+ },
574
+ ],
575
+ stateMutability: 'view',
576
+ type: 'function',
577
+ },
578
+ {
579
+ inputs: [],
580
+ name: 'getTrustedForwarder',
581
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
582
+ stateMutability: 'view',
583
+ type: 'function',
584
+ },
585
+ {
586
+ inputs: [{ internalType: 'address', name: '_account', type: 'address' }],
587
+ name: 'hasAdvancePermission',
588
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
589
+ stateMutability: 'view',
590
+ type: 'function',
591
+ },
592
+ {
593
+ inputs: [{ internalType: 'address', name: '_account', type: 'address' }],
594
+ name: 'hasExecutePermission',
595
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
596
+ stateMutability: 'view',
597
+ type: 'function',
598
+ },
599
+ {
600
+ inputs: [{ internalType: 'uint256', name: '_proposalId', type: 'uint256' }],
601
+ name: 'hasSucceeded',
602
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
603
+ stateMutability: 'view',
604
+ type: 'function',
605
+ },
606
+ {
607
+ inputs: [],
608
+ name: 'implementation',
609
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
610
+ stateMutability: 'view',
611
+ type: 'function',
612
+ },
613
+ {
614
+ inputs: [
615
+ { internalType: 'contract IDAO', name: '_dao', type: 'address' },
616
+ { internalType: 'address', name: '_trustedForwarder', type: 'address' },
617
+ {
618
+ components: [
619
+ {
620
+ components: [
621
+ { internalType: 'address', name: 'addr', type: 'address' },
622
+ { internalType: 'bool', name: 'isManual', type: 'bool' },
623
+ { internalType: 'bool', name: 'tryAdvance', type: 'bool' },
624
+ { internalType: 'enum StagedProposalProcessor.ResultType', name: 'resultType', type: 'uint8' },
625
+ ],
626
+ internalType: 'struct StagedProposalProcessor.Body[]',
627
+ name: 'bodies',
628
+ type: 'tuple[]',
629
+ },
630
+ { internalType: 'uint64', name: 'maxAdvance', type: 'uint64' },
631
+ { internalType: 'uint64', name: 'minAdvance', type: 'uint64' },
632
+ { internalType: 'uint64', name: 'voteDuration', type: 'uint64' },
633
+ { internalType: 'uint16', name: 'approvalThreshold', type: 'uint16' },
634
+ { internalType: 'uint16', name: 'vetoThreshold', type: 'uint16' },
635
+ { internalType: 'bool', name: 'cancelable', type: 'bool' },
636
+ { internalType: 'bool', name: 'editable', type: 'bool' },
637
+ ],
638
+ internalType: 'struct StagedProposalProcessor.Stage[]',
639
+ name: '_stages',
640
+ type: 'tuple[]',
641
+ },
642
+ { internalType: 'bytes', name: '_pluginMetadata', type: 'bytes' },
643
+ {
644
+ components: [
645
+ { internalType: 'address', name: 'target', type: 'address' },
646
+ { internalType: 'enum IPlugin.Operation', name: 'operation', type: 'uint8' },
647
+ ],
648
+ internalType: 'struct IPlugin.TargetConfig',
649
+ name: '_targetConfig',
650
+ type: 'tuple',
651
+ },
652
+ ],
653
+ name: 'initialize',
654
+ outputs: [],
655
+ stateMutability: 'nonpayable',
656
+ type: 'function',
657
+ },
658
+ {
659
+ inputs: [{ internalType: 'address', name: '_forwarder', type: 'address' }],
660
+ name: 'isTrustedForwarder',
661
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
662
+ stateMutability: 'view',
663
+ type: 'function',
664
+ },
665
+ {
666
+ inputs: [],
667
+ name: 'pluginType',
668
+ outputs: [{ internalType: 'enum IPlugin.PluginType', name: '', type: 'uint8' }],
669
+ stateMutability: 'pure',
670
+ type: 'function',
671
+ },
672
+ {
673
+ inputs: [],
674
+ name: 'proposalCount',
675
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
676
+ stateMutability: 'view',
677
+ type: 'function',
678
+ },
679
+ {
680
+ inputs: [],
681
+ name: 'protocolVersion',
682
+ outputs: [{ internalType: 'uint8[3]', name: '', type: 'uint8[3]' }],
683
+ stateMutability: 'pure',
684
+ type: 'function',
685
+ },
686
+ {
687
+ inputs: [],
688
+ name: 'proxiableUUID',
689
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
690
+ stateMutability: 'view',
691
+ type: 'function',
692
+ },
693
+ {
694
+ inputs: [
695
+ { internalType: 'uint256', name: '_proposalId', type: 'uint256' },
696
+ { internalType: 'uint16', name: '_stageId', type: 'uint16' },
697
+ { internalType: 'enum StagedProposalProcessor.ResultType', name: '_resultType', type: 'uint8' },
698
+ { internalType: 'bool', name: '_tryAdvance', type: 'bool' },
699
+ ],
700
+ name: 'reportProposalResult',
701
+ outputs: [],
702
+ stateMutability: 'nonpayable',
703
+ type: 'function',
704
+ },
705
+ {
706
+ inputs: [{ internalType: 'bytes', name: '_metadata', type: 'bytes' }],
707
+ name: 'setMetadata',
708
+ outputs: [],
709
+ stateMutability: 'nonpayable',
710
+ type: 'function',
711
+ },
712
+ {
713
+ inputs: [
714
+ {
715
+ components: [
716
+ { internalType: 'address', name: 'target', type: 'address' },
717
+ { internalType: 'enum IPlugin.Operation', name: 'operation', type: 'uint8' },
718
+ ],
719
+ internalType: 'struct IPlugin.TargetConfig',
720
+ name: '_targetConfig',
721
+ type: 'tuple',
722
+ },
723
+ ],
724
+ name: 'setTargetConfig',
725
+ outputs: [],
726
+ stateMutability: 'nonpayable',
727
+ type: 'function',
728
+ },
729
+ {
730
+ inputs: [{ internalType: 'address', name: '_forwarder', type: 'address' }],
731
+ name: 'setTrustedForwarder',
732
+ outputs: [],
733
+ stateMutability: 'nonpayable',
734
+ type: 'function',
735
+ },
736
+ {
737
+ inputs: [{ internalType: 'uint256', name: '_proposalId', type: 'uint256' }],
738
+ name: 'state',
739
+ outputs: [{ internalType: 'enum StagedProposalProcessor.ProposalState', name: '', type: 'uint8' }],
740
+ stateMutability: 'view',
741
+ type: 'function',
742
+ },
743
+ {
744
+ inputs: [{ internalType: 'bytes4', name: '_interfaceId', type: 'bytes4' }],
745
+ name: 'supportsInterface',
746
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
747
+ stateMutability: 'view',
748
+ type: 'function',
749
+ },
750
+ {
751
+ inputs: [
752
+ {
753
+ components: [
754
+ {
755
+ components: [
756
+ { internalType: 'address', name: 'addr', type: 'address' },
757
+ { internalType: 'bool', name: 'isManual', type: 'bool' },
758
+ { internalType: 'bool', name: 'tryAdvance', type: 'bool' },
759
+ { internalType: 'enum StagedProposalProcessor.ResultType', name: 'resultType', type: 'uint8' },
760
+ ],
761
+ internalType: 'struct StagedProposalProcessor.Body[]',
762
+ name: 'bodies',
763
+ type: 'tuple[]',
764
+ },
765
+ { internalType: 'uint64', name: 'maxAdvance', type: 'uint64' },
766
+ { internalType: 'uint64', name: 'minAdvance', type: 'uint64' },
767
+ { internalType: 'uint64', name: 'voteDuration', type: 'uint64' },
768
+ { internalType: 'uint16', name: 'approvalThreshold', type: 'uint16' },
769
+ { internalType: 'uint16', name: 'vetoThreshold', type: 'uint16' },
770
+ { internalType: 'bool', name: 'cancelable', type: 'bool' },
771
+ { internalType: 'bool', name: 'editable', type: 'bool' },
772
+ ],
773
+ internalType: 'struct StagedProposalProcessor.Stage[]',
774
+ name: '_stages',
775
+ type: 'tuple[]',
776
+ },
777
+ ],
778
+ name: 'updateStages',
779
+ outputs: [],
780
+ stateMutability: 'nonpayable',
781
+ type: 'function',
782
+ },
783
+ {
784
+ inputs: [{ internalType: 'address', name: 'newImplementation', type: 'address' }],
785
+ name: 'upgradeTo',
786
+ outputs: [],
787
+ stateMutability: 'nonpayable',
788
+ type: 'function',
789
+ },
790
+ {
791
+ inputs: [
792
+ { internalType: 'address', name: 'newImplementation', type: 'address' },
793
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
794
+ ],
795
+ name: 'upgradeToAndCall',
796
+ outputs: [],
797
+ stateMutability: 'payable',
798
+ type: 'function',
799
+ },
800
+ ] as const;