@gitmyabi/treasury 1.0.1 → 1.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.
- package/README.md +3 -3
- package/contracts/ERC1967Proxy_json.d.ts +145 -0
- package/contracts/ERC1967Proxy_json.js +182 -0
- package/contracts/ERC1967Proxy_json.ts +212 -0
- package/contracts/Treasury_json.d.ts +770 -140
- package/contracts/Treasury_json.js +876 -168
- package/contracts/Treasury_json.ts +1003 -171
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +3 -3
- package/contracts/TransparentUpgradeableProxy_json.d.ts +0 -401
- package/contracts/TransparentUpgradeableProxy_json.js +0 -398
- package/contracts/TransparentUpgradeableProxy_json.ts +0 -542
|
@@ -5,36 +5,189 @@ import type { Address, PublicClient, WalletClient } from 'viem';
|
|
|
5
5
|
* This ABI is typed using viem's type system for full type safety.
|
|
6
6
|
*/
|
|
7
7
|
export declare const Treasury_jsonAbi: readonly [{
|
|
8
|
+
readonly inputs: readonly [{
|
|
9
|
+
readonly internalType: "address";
|
|
10
|
+
readonly name: "_manager";
|
|
11
|
+
readonly type: "address";
|
|
12
|
+
}];
|
|
13
|
+
readonly stateMutability: "payable";
|
|
14
|
+
readonly type: "constructor";
|
|
15
|
+
}, {
|
|
16
|
+
readonly inputs: readonly [];
|
|
17
|
+
readonly name: "ADDRESS_ZERO";
|
|
18
|
+
readonly type: "error";
|
|
19
|
+
}, {
|
|
20
|
+
readonly inputs: readonly [];
|
|
21
|
+
readonly name: "ALREADY_INITIALIZED";
|
|
22
|
+
readonly type: "error";
|
|
23
|
+
}, {
|
|
24
|
+
readonly inputs: readonly [];
|
|
25
|
+
readonly name: "DELEGATE_CALL_FAILED";
|
|
26
|
+
readonly type: "error";
|
|
27
|
+
}, {
|
|
28
|
+
readonly inputs: readonly [];
|
|
29
|
+
readonly name: "EXECUTION_EXPIRED";
|
|
30
|
+
readonly type: "error";
|
|
31
|
+
}, {
|
|
32
|
+
readonly inputs: readonly [{
|
|
33
|
+
readonly internalType: "uint256";
|
|
34
|
+
readonly name: "txIndex";
|
|
35
|
+
readonly type: "uint256";
|
|
36
|
+
}];
|
|
37
|
+
readonly name: "EXECUTION_FAILED";
|
|
38
|
+
readonly type: "error";
|
|
39
|
+
}, {
|
|
40
|
+
readonly inputs: readonly [{
|
|
41
|
+
readonly internalType: "bytes32";
|
|
42
|
+
readonly name: "proposalId";
|
|
43
|
+
readonly type: "bytes32";
|
|
44
|
+
}];
|
|
45
|
+
readonly name: "EXECUTION_NOT_READY";
|
|
46
|
+
readonly type: "error";
|
|
47
|
+
}, {
|
|
48
|
+
readonly inputs: readonly [];
|
|
49
|
+
readonly name: "INITIALIZING";
|
|
50
|
+
readonly type: "error";
|
|
51
|
+
}, {
|
|
52
|
+
readonly inputs: readonly [];
|
|
53
|
+
readonly name: "INVALID_TARGET";
|
|
54
|
+
readonly type: "error";
|
|
55
|
+
}, {
|
|
56
|
+
readonly inputs: readonly [{
|
|
57
|
+
readonly internalType: "address";
|
|
58
|
+
readonly name: "impl";
|
|
59
|
+
readonly type: "address";
|
|
60
|
+
}];
|
|
61
|
+
readonly name: "INVALID_UPGRADE";
|
|
62
|
+
readonly type: "error";
|
|
63
|
+
}, {
|
|
64
|
+
readonly inputs: readonly [];
|
|
65
|
+
readonly name: "NOT_INITIALIZING";
|
|
66
|
+
readonly type: "error";
|
|
67
|
+
}, {
|
|
68
|
+
readonly inputs: readonly [];
|
|
69
|
+
readonly name: "ONLY_CALL";
|
|
70
|
+
readonly type: "error";
|
|
71
|
+
}, {
|
|
72
|
+
readonly inputs: readonly [];
|
|
73
|
+
readonly name: "ONLY_DELEGATECALL";
|
|
74
|
+
readonly type: "error";
|
|
75
|
+
}, {
|
|
76
|
+
readonly inputs: readonly [];
|
|
77
|
+
readonly name: "ONLY_MANAGER";
|
|
78
|
+
readonly type: "error";
|
|
79
|
+
}, {
|
|
80
|
+
readonly inputs: readonly [];
|
|
81
|
+
readonly name: "ONLY_OWNER";
|
|
82
|
+
readonly type: "error";
|
|
83
|
+
}, {
|
|
84
|
+
readonly inputs: readonly [];
|
|
85
|
+
readonly name: "ONLY_PENDING_OWNER";
|
|
86
|
+
readonly type: "error";
|
|
87
|
+
}, {
|
|
88
|
+
readonly inputs: readonly [];
|
|
89
|
+
readonly name: "ONLY_PROXY";
|
|
90
|
+
readonly type: "error";
|
|
91
|
+
}, {
|
|
92
|
+
readonly inputs: readonly [];
|
|
93
|
+
readonly name: "ONLY_TREASURY";
|
|
94
|
+
readonly type: "error";
|
|
95
|
+
}, {
|
|
96
|
+
readonly inputs: readonly [];
|
|
97
|
+
readonly name: "ONLY_UUPS";
|
|
98
|
+
readonly type: "error";
|
|
99
|
+
}, {
|
|
100
|
+
readonly inputs: readonly [];
|
|
101
|
+
readonly name: "PROPOSAL_ALREADY_QUEUED";
|
|
102
|
+
readonly type: "error";
|
|
103
|
+
}, {
|
|
104
|
+
readonly inputs: readonly [];
|
|
105
|
+
readonly name: "PROPOSAL_NOT_QUEUED";
|
|
106
|
+
readonly type: "error";
|
|
107
|
+
}, {
|
|
108
|
+
readonly inputs: readonly [];
|
|
109
|
+
readonly name: "UNSAFE_CAST";
|
|
110
|
+
readonly type: "error";
|
|
111
|
+
}, {
|
|
112
|
+
readonly inputs: readonly [];
|
|
113
|
+
readonly name: "UNSUPPORTED_UUID";
|
|
114
|
+
readonly type: "error";
|
|
115
|
+
}, {
|
|
8
116
|
readonly anonymous: false;
|
|
9
117
|
readonly inputs: readonly [{
|
|
10
118
|
readonly indexed: false;
|
|
119
|
+
readonly internalType: "uint256";
|
|
120
|
+
readonly name: "prevDelay";
|
|
121
|
+
readonly type: "uint256";
|
|
122
|
+
}, {
|
|
123
|
+
readonly indexed: false;
|
|
124
|
+
readonly internalType: "uint256";
|
|
125
|
+
readonly name: "newDelay";
|
|
126
|
+
readonly type: "uint256";
|
|
127
|
+
}];
|
|
128
|
+
readonly name: "DelayUpdated";
|
|
129
|
+
readonly type: "event";
|
|
130
|
+
}, {
|
|
131
|
+
readonly anonymous: false;
|
|
132
|
+
readonly inputs: readonly [{
|
|
133
|
+
readonly indexed: false;
|
|
134
|
+
readonly internalType: "uint256";
|
|
135
|
+
readonly name: "prevGracePeriod";
|
|
136
|
+
readonly type: "uint256";
|
|
137
|
+
}, {
|
|
138
|
+
readonly indexed: false;
|
|
139
|
+
readonly internalType: "uint256";
|
|
140
|
+
readonly name: "newGracePeriod";
|
|
141
|
+
readonly type: "uint256";
|
|
142
|
+
}];
|
|
143
|
+
readonly name: "GracePeriodUpdated";
|
|
144
|
+
readonly type: "event";
|
|
145
|
+
}, {
|
|
146
|
+
readonly anonymous: false;
|
|
147
|
+
readonly inputs: readonly [{
|
|
148
|
+
readonly indexed: false;
|
|
149
|
+
readonly internalType: "uint256";
|
|
150
|
+
readonly name: "version";
|
|
151
|
+
readonly type: "uint256";
|
|
152
|
+
}];
|
|
153
|
+
readonly name: "Initialized";
|
|
154
|
+
readonly type: "event";
|
|
155
|
+
}, {
|
|
156
|
+
readonly anonymous: false;
|
|
157
|
+
readonly inputs: readonly [{
|
|
158
|
+
readonly indexed: true;
|
|
11
159
|
readonly internalType: "address";
|
|
12
|
-
readonly name: "
|
|
160
|
+
readonly name: "owner";
|
|
13
161
|
readonly type: "address";
|
|
14
162
|
}, {
|
|
15
|
-
readonly indexed:
|
|
163
|
+
readonly indexed: true;
|
|
16
164
|
readonly internalType: "address";
|
|
17
|
-
readonly name: "
|
|
165
|
+
readonly name: "canceledOwner";
|
|
18
166
|
readonly type: "address";
|
|
19
167
|
}];
|
|
20
|
-
readonly name: "
|
|
168
|
+
readonly name: "OwnerCanceled";
|
|
21
169
|
readonly type: "event";
|
|
22
170
|
}, {
|
|
23
171
|
readonly anonymous: false;
|
|
24
172
|
readonly inputs: readonly [{
|
|
25
173
|
readonly indexed: true;
|
|
26
174
|
readonly internalType: "address";
|
|
27
|
-
readonly name: "
|
|
175
|
+
readonly name: "owner";
|
|
176
|
+
readonly type: "address";
|
|
177
|
+
}, {
|
|
178
|
+
readonly indexed: true;
|
|
179
|
+
readonly internalType: "address";
|
|
180
|
+
readonly name: "pendingOwner";
|
|
28
181
|
readonly type: "address";
|
|
29
182
|
}];
|
|
30
|
-
readonly name: "
|
|
183
|
+
readonly name: "OwnerPending";
|
|
31
184
|
readonly type: "event";
|
|
32
185
|
}, {
|
|
33
186
|
readonly anonymous: false;
|
|
34
187
|
readonly inputs: readonly [{
|
|
35
188
|
readonly indexed: true;
|
|
36
189
|
readonly internalType: "address";
|
|
37
|
-
readonly name: "
|
|
190
|
+
readonly name: "prevOwner";
|
|
38
191
|
readonly type: "address";
|
|
39
192
|
}, {
|
|
40
193
|
readonly indexed: true;
|
|
@@ -42,113 +195,225 @@ export declare const Treasury_jsonAbi: readonly [{
|
|
|
42
195
|
readonly name: "newOwner";
|
|
43
196
|
readonly type: "address";
|
|
44
197
|
}];
|
|
45
|
-
readonly name: "
|
|
198
|
+
readonly name: "OwnerUpdated";
|
|
46
199
|
readonly type: "event";
|
|
47
200
|
}, {
|
|
48
201
|
readonly anonymous: false;
|
|
49
202
|
readonly inputs: readonly [{
|
|
50
203
|
readonly indexed: false;
|
|
51
|
-
readonly internalType: "
|
|
52
|
-
readonly name: "
|
|
53
|
-
readonly type: "
|
|
204
|
+
readonly internalType: "bytes32";
|
|
205
|
+
readonly name: "proposalId";
|
|
206
|
+
readonly type: "bytes32";
|
|
54
207
|
}];
|
|
55
|
-
readonly name: "
|
|
208
|
+
readonly name: "TransactionCanceled";
|
|
56
209
|
readonly type: "event";
|
|
57
210
|
}, {
|
|
58
211
|
readonly anonymous: false;
|
|
59
212
|
readonly inputs: readonly [{
|
|
60
213
|
readonly indexed: false;
|
|
61
|
-
readonly internalType: "
|
|
62
|
-
readonly name: "
|
|
63
|
-
readonly type: "
|
|
214
|
+
readonly internalType: "bytes32";
|
|
215
|
+
readonly name: "proposalId";
|
|
216
|
+
readonly type: "bytes32";
|
|
217
|
+
}, {
|
|
218
|
+
readonly indexed: false;
|
|
219
|
+
readonly internalType: "address[]";
|
|
220
|
+
readonly name: "targets";
|
|
221
|
+
readonly type: "address[]";
|
|
222
|
+
}, {
|
|
223
|
+
readonly indexed: false;
|
|
224
|
+
readonly internalType: "uint256[]";
|
|
225
|
+
readonly name: "values";
|
|
226
|
+
readonly type: "uint256[]";
|
|
227
|
+
}, {
|
|
228
|
+
readonly indexed: false;
|
|
229
|
+
readonly internalType: "bytes[]";
|
|
230
|
+
readonly name: "payloads";
|
|
231
|
+
readonly type: "bytes[]";
|
|
64
232
|
}];
|
|
65
|
-
readonly name: "
|
|
233
|
+
readonly name: "TransactionExecuted";
|
|
66
234
|
readonly type: "event";
|
|
67
235
|
}, {
|
|
68
236
|
readonly anonymous: false;
|
|
69
237
|
readonly inputs: readonly [{
|
|
70
|
-
readonly indexed:
|
|
238
|
+
readonly indexed: false;
|
|
239
|
+
readonly internalType: "bytes32";
|
|
240
|
+
readonly name: "proposalId";
|
|
241
|
+
readonly type: "bytes32";
|
|
242
|
+
}, {
|
|
243
|
+
readonly indexed: false;
|
|
244
|
+
readonly internalType: "uint256";
|
|
245
|
+
readonly name: "timestamp";
|
|
246
|
+
readonly type: "uint256";
|
|
247
|
+
}];
|
|
248
|
+
readonly name: "TransactionScheduled";
|
|
249
|
+
readonly type: "event";
|
|
250
|
+
}, {
|
|
251
|
+
readonly anonymous: false;
|
|
252
|
+
readonly inputs: readonly [{
|
|
253
|
+
readonly indexed: false;
|
|
71
254
|
readonly internalType: "address";
|
|
72
|
-
readonly name: "
|
|
255
|
+
readonly name: "impl";
|
|
73
256
|
readonly type: "address";
|
|
74
257
|
}];
|
|
75
258
|
readonly name: "Upgraded";
|
|
76
259
|
readonly type: "event";
|
|
77
260
|
}, {
|
|
78
261
|
readonly inputs: readonly [];
|
|
79
|
-
readonly name: "
|
|
262
|
+
readonly name: "acceptOwnership";
|
|
263
|
+
readonly outputs: readonly [];
|
|
264
|
+
readonly stateMutability: "nonpayable";
|
|
265
|
+
readonly type: "function";
|
|
266
|
+
}, {
|
|
267
|
+
readonly inputs: readonly [{
|
|
268
|
+
readonly internalType: "bytes32";
|
|
269
|
+
readonly name: "_proposalId";
|
|
270
|
+
readonly type: "bytes32";
|
|
271
|
+
}];
|
|
272
|
+
readonly name: "cancel";
|
|
273
|
+
readonly outputs: readonly [];
|
|
274
|
+
readonly stateMutability: "nonpayable";
|
|
275
|
+
readonly type: "function";
|
|
276
|
+
}, {
|
|
277
|
+
readonly inputs: readonly [];
|
|
278
|
+
readonly name: "cancelOwnershipTransfer";
|
|
279
|
+
readonly outputs: readonly [];
|
|
280
|
+
readonly stateMutability: "nonpayable";
|
|
281
|
+
readonly type: "function";
|
|
282
|
+
}, {
|
|
283
|
+
readonly inputs: readonly [];
|
|
284
|
+
readonly name: "contractVersion";
|
|
80
285
|
readonly outputs: readonly [{
|
|
81
|
-
readonly internalType: "
|
|
286
|
+
readonly internalType: "string";
|
|
82
287
|
readonly name: "";
|
|
83
|
-
readonly type: "
|
|
288
|
+
readonly type: "string";
|
|
84
289
|
}];
|
|
85
|
-
readonly stateMutability: "
|
|
290
|
+
readonly stateMutability: "pure";
|
|
86
291
|
readonly type: "function";
|
|
87
292
|
}, {
|
|
88
293
|
readonly inputs: readonly [];
|
|
89
|
-
readonly name: "
|
|
294
|
+
readonly name: "delay";
|
|
90
295
|
readonly outputs: readonly [{
|
|
91
|
-
readonly internalType: "
|
|
296
|
+
readonly internalType: "uint256";
|
|
92
297
|
readonly name: "";
|
|
93
|
-
readonly type: "
|
|
298
|
+
readonly type: "uint256";
|
|
94
299
|
}];
|
|
95
300
|
readonly stateMutability: "view";
|
|
96
301
|
readonly type: "function";
|
|
302
|
+
}, {
|
|
303
|
+
readonly inputs: readonly [{
|
|
304
|
+
readonly internalType: "address[]";
|
|
305
|
+
readonly name: "_targets";
|
|
306
|
+
readonly type: "address[]";
|
|
307
|
+
}, {
|
|
308
|
+
readonly internalType: "uint256[]";
|
|
309
|
+
readonly name: "_values";
|
|
310
|
+
readonly type: "uint256[]";
|
|
311
|
+
}, {
|
|
312
|
+
readonly internalType: "bytes[]";
|
|
313
|
+
readonly name: "_calldatas";
|
|
314
|
+
readonly type: "bytes[]";
|
|
315
|
+
}, {
|
|
316
|
+
readonly internalType: "bytes32";
|
|
317
|
+
readonly name: "_descriptionHash";
|
|
318
|
+
readonly type: "bytes32";
|
|
319
|
+
}, {
|
|
320
|
+
readonly internalType: "address";
|
|
321
|
+
readonly name: "_proposer";
|
|
322
|
+
readonly type: "address";
|
|
323
|
+
}];
|
|
324
|
+
readonly name: "execute";
|
|
325
|
+
readonly outputs: readonly [];
|
|
326
|
+
readonly stateMutability: "payable";
|
|
327
|
+
readonly type: "function";
|
|
97
328
|
}, {
|
|
98
329
|
readonly inputs: readonly [];
|
|
99
|
-
readonly name: "
|
|
330
|
+
readonly name: "gracePeriod";
|
|
100
331
|
readonly outputs: readonly [{
|
|
101
|
-
readonly internalType: "
|
|
332
|
+
readonly internalType: "uint256";
|
|
102
333
|
readonly name: "";
|
|
103
|
-
readonly type: "
|
|
334
|
+
readonly type: "uint256";
|
|
104
335
|
}];
|
|
105
336
|
readonly stateMutability: "view";
|
|
106
337
|
readonly type: "function";
|
|
107
338
|
}, {
|
|
108
339
|
readonly inputs: readonly [{
|
|
109
|
-
readonly internalType: "address";
|
|
110
|
-
readonly name: "
|
|
111
|
-
readonly type: "address";
|
|
340
|
+
readonly internalType: "address[]";
|
|
341
|
+
readonly name: "_targets";
|
|
342
|
+
readonly type: "address[]";
|
|
112
343
|
}, {
|
|
113
|
-
readonly internalType: "
|
|
114
|
-
readonly name: "
|
|
115
|
-
readonly type: "
|
|
344
|
+
readonly internalType: "uint256[]";
|
|
345
|
+
readonly name: "_values";
|
|
346
|
+
readonly type: "uint256[]";
|
|
347
|
+
}, {
|
|
348
|
+
readonly internalType: "bytes[]";
|
|
349
|
+
readonly name: "_calldatas";
|
|
350
|
+
readonly type: "bytes[]";
|
|
351
|
+
}, {
|
|
352
|
+
readonly internalType: "bytes32";
|
|
353
|
+
readonly name: "_descriptionHash";
|
|
354
|
+
readonly type: "bytes32";
|
|
116
355
|
}, {
|
|
117
356
|
readonly internalType: "address";
|
|
118
|
-
readonly name: "
|
|
357
|
+
readonly name: "_proposer";
|
|
119
358
|
readonly type: "address";
|
|
120
|
-
}
|
|
359
|
+
}];
|
|
360
|
+
readonly name: "hashProposal";
|
|
361
|
+
readonly outputs: readonly [{
|
|
362
|
+
readonly internalType: "bytes32";
|
|
363
|
+
readonly name: "";
|
|
364
|
+
readonly type: "bytes32";
|
|
365
|
+
}];
|
|
366
|
+
readonly stateMutability: "pure";
|
|
367
|
+
readonly type: "function";
|
|
368
|
+
}, {
|
|
369
|
+
readonly inputs: readonly [{
|
|
121
370
|
readonly internalType: "address";
|
|
122
|
-
readonly name: "
|
|
371
|
+
readonly name: "_governor";
|
|
123
372
|
readonly type: "address";
|
|
373
|
+
}, {
|
|
374
|
+
readonly internalType: "uint256";
|
|
375
|
+
readonly name: "_delay";
|
|
376
|
+
readonly type: "uint256";
|
|
124
377
|
}];
|
|
125
378
|
readonly name: "initialize";
|
|
126
379
|
readonly outputs: readonly [];
|
|
127
380
|
readonly stateMutability: "nonpayable";
|
|
128
381
|
readonly type: "function";
|
|
129
382
|
}, {
|
|
130
|
-
readonly inputs: readonly [
|
|
131
|
-
|
|
383
|
+
readonly inputs: readonly [{
|
|
384
|
+
readonly internalType: "bytes32";
|
|
385
|
+
readonly name: "_proposalId";
|
|
386
|
+
readonly type: "bytes32";
|
|
387
|
+
}];
|
|
388
|
+
readonly name: "isExpired";
|
|
132
389
|
readonly outputs: readonly [{
|
|
133
|
-
readonly internalType: "
|
|
390
|
+
readonly internalType: "bool";
|
|
134
391
|
readonly name: "";
|
|
135
|
-
readonly type: "
|
|
392
|
+
readonly type: "bool";
|
|
136
393
|
}];
|
|
137
394
|
readonly stateMutability: "view";
|
|
138
395
|
readonly type: "function";
|
|
139
396
|
}, {
|
|
140
|
-
readonly inputs: readonly [
|
|
141
|
-
|
|
397
|
+
readonly inputs: readonly [{
|
|
398
|
+
readonly internalType: "bytes32";
|
|
399
|
+
readonly name: "_proposalId";
|
|
400
|
+
readonly type: "bytes32";
|
|
401
|
+
}];
|
|
402
|
+
readonly name: "isQueued";
|
|
142
403
|
readonly outputs: readonly [{
|
|
143
|
-
readonly internalType: "
|
|
404
|
+
readonly internalType: "bool";
|
|
144
405
|
readonly name: "";
|
|
145
|
-
readonly type: "
|
|
406
|
+
readonly type: "bool";
|
|
146
407
|
}];
|
|
147
408
|
readonly stateMutability: "view";
|
|
148
409
|
readonly type: "function";
|
|
149
410
|
}, {
|
|
150
|
-
readonly inputs: readonly [
|
|
151
|
-
|
|
411
|
+
readonly inputs: readonly [{
|
|
412
|
+
readonly internalType: "bytes32";
|
|
413
|
+
readonly name: "_proposalId";
|
|
414
|
+
readonly type: "bytes32";
|
|
415
|
+
}];
|
|
416
|
+
readonly name: "isReady";
|
|
152
417
|
readonly outputs: readonly [{
|
|
153
418
|
readonly internalType: "bool";
|
|
154
419
|
readonly name: "";
|
|
@@ -157,14 +422,94 @@ export declare const Treasury_jsonAbi: readonly [{
|
|
|
157
422
|
readonly stateMutability: "view";
|
|
158
423
|
readonly type: "function";
|
|
159
424
|
}, {
|
|
160
|
-
readonly inputs: readonly [
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
425
|
+
readonly inputs: readonly [{
|
|
426
|
+
readonly internalType: "address";
|
|
427
|
+
readonly name: "";
|
|
428
|
+
readonly type: "address";
|
|
429
|
+
}, {
|
|
430
|
+
readonly internalType: "address";
|
|
431
|
+
readonly name: "";
|
|
432
|
+
readonly type: "address";
|
|
433
|
+
}, {
|
|
434
|
+
readonly internalType: "uint256[]";
|
|
435
|
+
readonly name: "";
|
|
436
|
+
readonly type: "uint256[]";
|
|
437
|
+
}, {
|
|
438
|
+
readonly internalType: "uint256[]";
|
|
439
|
+
readonly name: "";
|
|
440
|
+
readonly type: "uint256[]";
|
|
441
|
+
}, {
|
|
442
|
+
readonly internalType: "bytes";
|
|
443
|
+
readonly name: "";
|
|
444
|
+
readonly type: "bytes";
|
|
445
|
+
}];
|
|
446
|
+
readonly name: "onERC1155BatchReceived";
|
|
447
|
+
readonly outputs: readonly [{
|
|
448
|
+
readonly internalType: "bytes4";
|
|
449
|
+
readonly name: "";
|
|
450
|
+
readonly type: "bytes4";
|
|
451
|
+
}];
|
|
452
|
+
readonly stateMutability: "pure";
|
|
453
|
+
readonly type: "function";
|
|
454
|
+
}, {
|
|
455
|
+
readonly inputs: readonly [{
|
|
456
|
+
readonly internalType: "address";
|
|
457
|
+
readonly name: "";
|
|
458
|
+
readonly type: "address";
|
|
459
|
+
}, {
|
|
460
|
+
readonly internalType: "address";
|
|
461
|
+
readonly name: "";
|
|
462
|
+
readonly type: "address";
|
|
463
|
+
}, {
|
|
464
|
+
readonly internalType: "uint256";
|
|
465
|
+
readonly name: "";
|
|
466
|
+
readonly type: "uint256";
|
|
467
|
+
}, {
|
|
468
|
+
readonly internalType: "uint256";
|
|
469
|
+
readonly name: "";
|
|
470
|
+
readonly type: "uint256";
|
|
471
|
+
}, {
|
|
472
|
+
readonly internalType: "bytes";
|
|
473
|
+
readonly name: "";
|
|
474
|
+
readonly type: "bytes";
|
|
475
|
+
}];
|
|
476
|
+
readonly name: "onERC1155Received";
|
|
477
|
+
readonly outputs: readonly [{
|
|
478
|
+
readonly internalType: "bytes4";
|
|
479
|
+
readonly name: "";
|
|
480
|
+
readonly type: "bytes4";
|
|
481
|
+
}];
|
|
482
|
+
readonly stateMutability: "pure";
|
|
483
|
+
readonly type: "function";
|
|
484
|
+
}, {
|
|
485
|
+
readonly inputs: readonly [{
|
|
486
|
+
readonly internalType: "address";
|
|
487
|
+
readonly name: "";
|
|
488
|
+
readonly type: "address";
|
|
489
|
+
}, {
|
|
490
|
+
readonly internalType: "address";
|
|
491
|
+
readonly name: "";
|
|
492
|
+
readonly type: "address";
|
|
493
|
+
}, {
|
|
494
|
+
readonly internalType: "uint256";
|
|
495
|
+
readonly name: "";
|
|
496
|
+
readonly type: "uint256";
|
|
497
|
+
}, {
|
|
498
|
+
readonly internalType: "bytes";
|
|
499
|
+
readonly name: "";
|
|
500
|
+
readonly type: "bytes";
|
|
501
|
+
}];
|
|
502
|
+
readonly name: "onERC721Received";
|
|
503
|
+
readonly outputs: readonly [{
|
|
504
|
+
readonly internalType: "bytes4";
|
|
505
|
+
readonly name: "";
|
|
506
|
+
readonly type: "bytes4";
|
|
507
|
+
}];
|
|
508
|
+
readonly stateMutability: "pure";
|
|
164
509
|
readonly type: "function";
|
|
165
510
|
}, {
|
|
166
511
|
readonly inputs: readonly [];
|
|
167
|
-
readonly name: "
|
|
512
|
+
readonly name: "owner";
|
|
168
513
|
readonly outputs: readonly [{
|
|
169
514
|
readonly internalType: "address";
|
|
170
515
|
readonly name: "";
|
|
@@ -174,7 +519,7 @@ export declare const Treasury_jsonAbi: readonly [{
|
|
|
174
519
|
readonly type: "function";
|
|
175
520
|
}, {
|
|
176
521
|
readonly inputs: readonly [];
|
|
177
|
-
readonly name: "
|
|
522
|
+
readonly name: "pendingOwner";
|
|
178
523
|
readonly outputs: readonly [{
|
|
179
524
|
readonly internalType: "address";
|
|
180
525
|
readonly name: "";
|
|
@@ -182,66 +527,111 @@ export declare const Treasury_jsonAbi: readonly [{
|
|
|
182
527
|
}];
|
|
183
528
|
readonly stateMutability: "view";
|
|
184
529
|
readonly type: "function";
|
|
530
|
+
}, {
|
|
531
|
+
readonly inputs: readonly [];
|
|
532
|
+
readonly name: "proxiableUUID";
|
|
533
|
+
readonly outputs: readonly [{
|
|
534
|
+
readonly internalType: "bytes32";
|
|
535
|
+
readonly name: "";
|
|
536
|
+
readonly type: "bytes32";
|
|
537
|
+
}];
|
|
538
|
+
readonly stateMutability: "view";
|
|
539
|
+
readonly type: "function";
|
|
540
|
+
}, {
|
|
541
|
+
readonly inputs: readonly [{
|
|
542
|
+
readonly internalType: "bytes32";
|
|
543
|
+
readonly name: "_proposalId";
|
|
544
|
+
readonly type: "bytes32";
|
|
545
|
+
}];
|
|
546
|
+
readonly name: "queue";
|
|
547
|
+
readonly outputs: readonly [{
|
|
548
|
+
readonly internalType: "uint256";
|
|
549
|
+
readonly name: "eta";
|
|
550
|
+
readonly type: "uint256";
|
|
551
|
+
}];
|
|
552
|
+
readonly stateMutability: "nonpayable";
|
|
553
|
+
readonly type: "function";
|
|
185
554
|
}, {
|
|
186
555
|
readonly inputs: readonly [{
|
|
187
556
|
readonly internalType: "address";
|
|
188
|
-
readonly name: "
|
|
557
|
+
readonly name: "_newOwner";
|
|
189
558
|
readonly type: "address";
|
|
190
559
|
}];
|
|
191
|
-
readonly name: "
|
|
560
|
+
readonly name: "safeTransferOwnership";
|
|
192
561
|
readonly outputs: readonly [];
|
|
193
562
|
readonly stateMutability: "nonpayable";
|
|
194
563
|
readonly type: "function";
|
|
195
564
|
}, {
|
|
196
|
-
readonly inputs: readonly [
|
|
197
|
-
|
|
565
|
+
readonly inputs: readonly [{
|
|
566
|
+
readonly internalType: "bytes32";
|
|
567
|
+
readonly name: "_proposalId";
|
|
568
|
+
readonly type: "bytes32";
|
|
569
|
+
}];
|
|
570
|
+
readonly name: "timestamp";
|
|
198
571
|
readonly outputs: readonly [{
|
|
199
|
-
readonly internalType: "
|
|
572
|
+
readonly internalType: "uint256";
|
|
200
573
|
readonly name: "";
|
|
201
|
-
readonly type: "
|
|
574
|
+
readonly type: "uint256";
|
|
202
575
|
}];
|
|
203
576
|
readonly stateMutability: "view";
|
|
204
577
|
readonly type: "function";
|
|
205
578
|
}, {
|
|
206
579
|
readonly inputs: readonly [{
|
|
207
580
|
readonly internalType: "address";
|
|
208
|
-
readonly name: "
|
|
581
|
+
readonly name: "_newOwner";
|
|
209
582
|
readonly type: "address";
|
|
210
583
|
}];
|
|
211
|
-
readonly name: "
|
|
584
|
+
readonly name: "transferOwnership";
|
|
212
585
|
readonly outputs: readonly [];
|
|
213
586
|
readonly stateMutability: "nonpayable";
|
|
214
587
|
readonly type: "function";
|
|
215
588
|
}, {
|
|
216
589
|
readonly inputs: readonly [{
|
|
217
|
-
readonly internalType: "
|
|
218
|
-
readonly name: "
|
|
219
|
-
readonly type: "
|
|
220
|
-
}, {
|
|
221
|
-
readonly internalType: "bytes";
|
|
222
|
-
readonly name: "data";
|
|
223
|
-
readonly type: "bytes";
|
|
590
|
+
readonly internalType: "uint256";
|
|
591
|
+
readonly name: "_newDelay";
|
|
592
|
+
readonly type: "uint256";
|
|
224
593
|
}];
|
|
225
|
-
readonly name: "
|
|
594
|
+
readonly name: "updateDelay";
|
|
226
595
|
readonly outputs: readonly [];
|
|
227
|
-
readonly stateMutability: "
|
|
596
|
+
readonly stateMutability: "nonpayable";
|
|
597
|
+
readonly type: "function";
|
|
598
|
+
}, {
|
|
599
|
+
readonly inputs: readonly [{
|
|
600
|
+
readonly internalType: "uint256";
|
|
601
|
+
readonly name: "_newGracePeriod";
|
|
602
|
+
readonly type: "uint256";
|
|
603
|
+
}];
|
|
604
|
+
readonly name: "updateGracePeriod";
|
|
605
|
+
readonly outputs: readonly [];
|
|
606
|
+
readonly stateMutability: "nonpayable";
|
|
228
607
|
readonly type: "function";
|
|
229
608
|
}, {
|
|
230
609
|
readonly inputs: readonly [{
|
|
231
610
|
readonly internalType: "address";
|
|
232
|
-
readonly name: "
|
|
611
|
+
readonly name: "_newImpl";
|
|
233
612
|
readonly type: "address";
|
|
234
613
|
}];
|
|
235
|
-
readonly name: "
|
|
614
|
+
readonly name: "upgradeTo";
|
|
236
615
|
readonly outputs: readonly [];
|
|
237
616
|
readonly stateMutability: "nonpayable";
|
|
238
617
|
readonly type: "function";
|
|
239
618
|
}, {
|
|
240
|
-
readonly inputs: readonly [
|
|
241
|
-
|
|
619
|
+
readonly inputs: readonly [{
|
|
620
|
+
readonly internalType: "address";
|
|
621
|
+
readonly name: "_newImpl";
|
|
622
|
+
readonly type: "address";
|
|
623
|
+
}, {
|
|
624
|
+
readonly internalType: "bytes";
|
|
625
|
+
readonly name: "_data";
|
|
626
|
+
readonly type: "bytes";
|
|
627
|
+
}];
|
|
628
|
+
readonly name: "upgradeToAndCall";
|
|
242
629
|
readonly outputs: readonly [];
|
|
243
|
-
readonly stateMutability: "
|
|
630
|
+
readonly stateMutability: "payable";
|
|
244
631
|
readonly type: "function";
|
|
632
|
+
}, {
|
|
633
|
+
readonly stateMutability: "payable";
|
|
634
|
+
readonly type: "receive";
|
|
245
635
|
}];
|
|
246
636
|
/**
|
|
247
637
|
* Type-safe ABI for Treasury_json
|
|
@@ -300,56 +690,149 @@ export declare class Treasury_json {
|
|
|
300
690
|
*/
|
|
301
691
|
getContract(): Treasury_jsonContract;
|
|
302
692
|
/**
|
|
303
|
-
*
|
|
693
|
+
* contractVersion
|
|
694
|
+
* pure
|
|
695
|
+
*/
|
|
696
|
+
contractVersion(): Promise<string>;
|
|
697
|
+
/**
|
|
698
|
+
* delay
|
|
699
|
+
* view
|
|
700
|
+
*/
|
|
701
|
+
delay(): Promise<bigint>;
|
|
702
|
+
/**
|
|
703
|
+
* gracePeriod
|
|
304
704
|
* view
|
|
305
705
|
*/
|
|
306
|
-
|
|
706
|
+
gracePeriod(): Promise<bigint>;
|
|
707
|
+
/**
|
|
708
|
+
* hashProposal
|
|
709
|
+
* pure
|
|
710
|
+
*/
|
|
711
|
+
hashProposal(_targets: `0x${string}`[], _values: bigint[], _calldatas: `0x${string}`[], _descriptionHash: `0x${string}`, _proposer: `0x${string}`): Promise<`0x${string}`>;
|
|
307
712
|
/**
|
|
308
|
-
*
|
|
713
|
+
* isExpired
|
|
309
714
|
* view
|
|
310
715
|
*/
|
|
311
|
-
|
|
716
|
+
isExpired(_proposalId: `0x${string}`): Promise<boolean>;
|
|
312
717
|
/**
|
|
313
|
-
*
|
|
718
|
+
* isQueued
|
|
314
719
|
* view
|
|
315
720
|
*/
|
|
316
|
-
|
|
721
|
+
isQueued(_proposalId: `0x${string}`): Promise<boolean>;
|
|
317
722
|
/**
|
|
318
|
-
*
|
|
723
|
+
* isReady
|
|
319
724
|
* view
|
|
320
725
|
*/
|
|
321
|
-
|
|
726
|
+
isReady(_proposalId: `0x${string}`): Promise<boolean>;
|
|
727
|
+
/**
|
|
728
|
+
* onERC1155BatchReceived
|
|
729
|
+
* pure
|
|
730
|
+
*/
|
|
731
|
+
onERC1155BatchReceived(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint[], arg3: bigint[], arg4: `0x${string}`): Promise<`0x${string}`>;
|
|
732
|
+
/**
|
|
733
|
+
* onERC1155Received
|
|
734
|
+
* pure
|
|
735
|
+
*/
|
|
736
|
+
onERC1155Received(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint, arg3: bigint, arg4: `0x${string}`): Promise<`0x${string}`>;
|
|
737
|
+
/**
|
|
738
|
+
* onERC721Received
|
|
739
|
+
* pure
|
|
740
|
+
*/
|
|
741
|
+
onERC721Received(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint, arg3: `0x${string}`): Promise<`0x${string}`>;
|
|
322
742
|
/**
|
|
323
743
|
* owner
|
|
324
744
|
* view
|
|
325
745
|
*/
|
|
326
746
|
owner(): Promise<`0x${string}`>;
|
|
327
747
|
/**
|
|
328
|
-
*
|
|
748
|
+
* pendingOwner
|
|
329
749
|
* view
|
|
330
750
|
*/
|
|
331
|
-
|
|
751
|
+
pendingOwner(): Promise<`0x${string}`>;
|
|
332
752
|
/**
|
|
333
|
-
*
|
|
753
|
+
* proxiableUUID
|
|
334
754
|
* view
|
|
335
755
|
*/
|
|
336
|
-
|
|
756
|
+
proxiableUUID(): Promise<`0x${string}`>;
|
|
337
757
|
/**
|
|
338
|
-
*
|
|
758
|
+
* timestamp
|
|
339
759
|
* view
|
|
340
760
|
*/
|
|
341
|
-
|
|
761
|
+
timestamp(_proposalId: `0x${string}`): Promise<bigint>;
|
|
342
762
|
/**
|
|
343
|
-
*
|
|
344
|
-
*
|
|
763
|
+
* acceptOwnership
|
|
764
|
+
* nonpayable
|
|
765
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
766
|
+
*/
|
|
767
|
+
acceptOwnership(options?: {
|
|
768
|
+
accessList?: import('viem').AccessList;
|
|
769
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
770
|
+
chain?: import('viem').Chain | null;
|
|
771
|
+
dataSuffix?: `0x${string}`;
|
|
772
|
+
gas?: bigint;
|
|
773
|
+
gasPrice?: bigint;
|
|
774
|
+
maxFeePerGas?: bigint;
|
|
775
|
+
maxPriorityFeePerGas?: bigint;
|
|
776
|
+
nonce?: number;
|
|
777
|
+
value?: bigint;
|
|
778
|
+
}): Promise<`0x${string}`>;
|
|
779
|
+
/**
|
|
780
|
+
* cancel
|
|
781
|
+
* nonpayable
|
|
782
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
345
783
|
*/
|
|
346
|
-
|
|
784
|
+
cancel(_proposalId: `0x${string}`, options?: {
|
|
785
|
+
accessList?: import('viem').AccessList;
|
|
786
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
787
|
+
chain?: import('viem').Chain | null;
|
|
788
|
+
dataSuffix?: `0x${string}`;
|
|
789
|
+
gas?: bigint;
|
|
790
|
+
gasPrice?: bigint;
|
|
791
|
+
maxFeePerGas?: bigint;
|
|
792
|
+
maxPriorityFeePerGas?: bigint;
|
|
793
|
+
nonce?: number;
|
|
794
|
+
value?: bigint;
|
|
795
|
+
}): Promise<`0x${string}`>;
|
|
796
|
+
/**
|
|
797
|
+
* cancelOwnershipTransfer
|
|
798
|
+
* nonpayable
|
|
799
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
800
|
+
*/
|
|
801
|
+
cancelOwnershipTransfer(options?: {
|
|
802
|
+
accessList?: import('viem').AccessList;
|
|
803
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
804
|
+
chain?: import('viem').Chain | null;
|
|
805
|
+
dataSuffix?: `0x${string}`;
|
|
806
|
+
gas?: bigint;
|
|
807
|
+
gasPrice?: bigint;
|
|
808
|
+
maxFeePerGas?: bigint;
|
|
809
|
+
maxPriorityFeePerGas?: bigint;
|
|
810
|
+
nonce?: number;
|
|
811
|
+
value?: bigint;
|
|
812
|
+
}): Promise<`0x${string}`>;
|
|
813
|
+
/**
|
|
814
|
+
* execute
|
|
815
|
+
* payable
|
|
816
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
817
|
+
*/
|
|
818
|
+
execute(_targets: `0x${string}`[], _values: bigint[], _calldatas: `0x${string}`[], _descriptionHash: `0x${string}`, _proposer: `0x${string}`, options?: {
|
|
819
|
+
accessList?: import('viem').AccessList;
|
|
820
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
821
|
+
chain?: import('viem').Chain | null;
|
|
822
|
+
dataSuffix?: `0x${string}`;
|
|
823
|
+
gas?: bigint;
|
|
824
|
+
gasPrice?: bigint;
|
|
825
|
+
maxFeePerGas?: bigint;
|
|
826
|
+
maxPriorityFeePerGas?: bigint;
|
|
827
|
+
nonce?: number;
|
|
828
|
+
value?: bigint;
|
|
829
|
+
}): Promise<`0x${string}`>;
|
|
347
830
|
/**
|
|
348
831
|
* initialize
|
|
349
832
|
* nonpayable
|
|
350
833
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
351
834
|
*/
|
|
352
|
-
initialize(
|
|
835
|
+
initialize(_governor: `0x${string}`, _delay: bigint, options?: {
|
|
353
836
|
accessList?: import('viem').AccessList;
|
|
354
837
|
authorizationList?: import('viem').AuthorizationList;
|
|
355
838
|
chain?: import('viem').Chain | null;
|
|
@@ -362,11 +845,11 @@ export declare class Treasury_json {
|
|
|
362
845
|
value?: bigint;
|
|
363
846
|
}): Promise<`0x${string}`>;
|
|
364
847
|
/**
|
|
365
|
-
*
|
|
848
|
+
* queue
|
|
366
849
|
* nonpayable
|
|
367
850
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
368
851
|
*/
|
|
369
|
-
|
|
852
|
+
queue(_proposalId: `0x${string}`, options?: {
|
|
370
853
|
accessList?: import('viem').AccessList;
|
|
371
854
|
authorizationList?: import('viem').AuthorizationList;
|
|
372
855
|
chain?: import('viem').Chain | null;
|
|
@@ -379,11 +862,11 @@ export declare class Treasury_json {
|
|
|
379
862
|
value?: bigint;
|
|
380
863
|
}): Promise<`0x${string}`>;
|
|
381
864
|
/**
|
|
382
|
-
*
|
|
865
|
+
* safeTransferOwnership
|
|
383
866
|
* nonpayable
|
|
384
867
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
385
868
|
*/
|
|
386
|
-
|
|
869
|
+
safeTransferOwnership(_newOwner: `0x${string}`, options?: {
|
|
387
870
|
accessList?: import('viem').AccessList;
|
|
388
871
|
authorizationList?: import('viem').AuthorizationList;
|
|
389
872
|
chain?: import('viem').Chain | null;
|
|
@@ -396,11 +879,11 @@ export declare class Treasury_json {
|
|
|
396
879
|
value?: bigint;
|
|
397
880
|
}): Promise<`0x${string}`>;
|
|
398
881
|
/**
|
|
399
|
-
*
|
|
882
|
+
* transferOwnership
|
|
400
883
|
* nonpayable
|
|
401
884
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
402
885
|
*/
|
|
403
|
-
|
|
886
|
+
transferOwnership(_newOwner: `0x${string}`, options?: {
|
|
404
887
|
accessList?: import('viem').AccessList;
|
|
405
888
|
authorizationList?: import('viem').AuthorizationList;
|
|
406
889
|
chain?: import('viem').Chain | null;
|
|
@@ -413,11 +896,11 @@ export declare class Treasury_json {
|
|
|
413
896
|
value?: bigint;
|
|
414
897
|
}): Promise<`0x${string}`>;
|
|
415
898
|
/**
|
|
416
|
-
*
|
|
417
|
-
*
|
|
899
|
+
* updateDelay
|
|
900
|
+
* nonpayable
|
|
418
901
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
419
902
|
*/
|
|
420
|
-
|
|
903
|
+
updateDelay(_newDelay: bigint, options?: {
|
|
421
904
|
accessList?: import('viem').AccessList;
|
|
422
905
|
authorizationList?: import('viem').AuthorizationList;
|
|
423
906
|
chain?: import('viem').Chain | null;
|
|
@@ -430,11 +913,11 @@ export declare class Treasury_json {
|
|
|
430
913
|
value?: bigint;
|
|
431
914
|
}): Promise<`0x${string}`>;
|
|
432
915
|
/**
|
|
433
|
-
*
|
|
916
|
+
* updateGracePeriod
|
|
434
917
|
* nonpayable
|
|
435
918
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
436
919
|
*/
|
|
437
|
-
|
|
920
|
+
updateGracePeriod(_newGracePeriod: bigint, options?: {
|
|
438
921
|
accessList?: import('viem').AccessList;
|
|
439
922
|
authorizationList?: import('viem').AuthorizationList;
|
|
440
923
|
chain?: import('viem').Chain | null;
|
|
@@ -447,11 +930,28 @@ export declare class Treasury_json {
|
|
|
447
930
|
value?: bigint;
|
|
448
931
|
}): Promise<`0x${string}`>;
|
|
449
932
|
/**
|
|
450
|
-
*
|
|
933
|
+
* upgradeTo
|
|
451
934
|
* nonpayable
|
|
452
935
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
453
936
|
*/
|
|
454
|
-
|
|
937
|
+
upgradeTo(_newImpl: `0x${string}`, options?: {
|
|
938
|
+
accessList?: import('viem').AccessList;
|
|
939
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
940
|
+
chain?: import('viem').Chain | null;
|
|
941
|
+
dataSuffix?: `0x${string}`;
|
|
942
|
+
gas?: bigint;
|
|
943
|
+
gasPrice?: bigint;
|
|
944
|
+
maxFeePerGas?: bigint;
|
|
945
|
+
maxPriorityFeePerGas?: bigint;
|
|
946
|
+
nonce?: number;
|
|
947
|
+
value?: bigint;
|
|
948
|
+
}): Promise<`0x${string}`>;
|
|
949
|
+
/**
|
|
950
|
+
* upgradeToAndCall
|
|
951
|
+
* payable
|
|
952
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
953
|
+
*/
|
|
954
|
+
upgradeToAndCall(_newImpl: `0x${string}`, _data: `0x${string}`, options?: {
|
|
455
955
|
accessList?: import('viem').AccessList;
|
|
456
956
|
authorizationList?: import('viem').AuthorizationList;
|
|
457
957
|
chain?: import('viem').Chain | null;
|
|
@@ -472,12 +972,80 @@ export declare class Treasury_json {
|
|
|
472
972
|
* console.log('Would succeed:', result.result);
|
|
473
973
|
*/
|
|
474
974
|
get simulate(): {
|
|
975
|
+
/**
|
|
976
|
+
* Simulate acceptOwnership
|
|
977
|
+
* Returns gas estimate and result without sending transaction
|
|
978
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
979
|
+
*/
|
|
980
|
+
acceptOwnership(options?: {
|
|
981
|
+
accessList?: import("viem").AccessList;
|
|
982
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
983
|
+
chain?: import("viem").Chain | null;
|
|
984
|
+
dataSuffix?: `0x${string}`;
|
|
985
|
+
gas?: bigint;
|
|
986
|
+
gasPrice?: bigint;
|
|
987
|
+
maxFeePerGas?: bigint;
|
|
988
|
+
maxPriorityFeePerGas?: bigint;
|
|
989
|
+
nonce?: number;
|
|
990
|
+
value?: bigint;
|
|
991
|
+
}): Promise<void>;
|
|
992
|
+
/**
|
|
993
|
+
* Simulate cancel
|
|
994
|
+
* Returns gas estimate and result without sending transaction
|
|
995
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
996
|
+
*/
|
|
997
|
+
cancel(_proposalId: `0x${string}`, options?: {
|
|
998
|
+
accessList?: import("viem").AccessList;
|
|
999
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1000
|
+
chain?: import("viem").Chain | null;
|
|
1001
|
+
dataSuffix?: `0x${string}`;
|
|
1002
|
+
gas?: bigint;
|
|
1003
|
+
gasPrice?: bigint;
|
|
1004
|
+
maxFeePerGas?: bigint;
|
|
1005
|
+
maxPriorityFeePerGas?: bigint;
|
|
1006
|
+
nonce?: number;
|
|
1007
|
+
value?: bigint;
|
|
1008
|
+
}): Promise<void>;
|
|
1009
|
+
/**
|
|
1010
|
+
* Simulate cancelOwnershipTransfer
|
|
1011
|
+
* Returns gas estimate and result without sending transaction
|
|
1012
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1013
|
+
*/
|
|
1014
|
+
cancelOwnershipTransfer(options?: {
|
|
1015
|
+
accessList?: import("viem").AccessList;
|
|
1016
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1017
|
+
chain?: import("viem").Chain | null;
|
|
1018
|
+
dataSuffix?: `0x${string}`;
|
|
1019
|
+
gas?: bigint;
|
|
1020
|
+
gasPrice?: bigint;
|
|
1021
|
+
maxFeePerGas?: bigint;
|
|
1022
|
+
maxPriorityFeePerGas?: bigint;
|
|
1023
|
+
nonce?: number;
|
|
1024
|
+
value?: bigint;
|
|
1025
|
+
}): Promise<void>;
|
|
1026
|
+
/**
|
|
1027
|
+
* Simulate execute
|
|
1028
|
+
* Returns gas estimate and result without sending transaction
|
|
1029
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1030
|
+
*/
|
|
1031
|
+
execute(_targets: `0x${string}`[], _values: bigint[], _calldatas: `0x${string}`[], _descriptionHash: `0x${string}`, _proposer: `0x${string}`, options?: {
|
|
1032
|
+
accessList?: import("viem").AccessList;
|
|
1033
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1034
|
+
chain?: import("viem").Chain | null;
|
|
1035
|
+
dataSuffix?: `0x${string}`;
|
|
1036
|
+
gas?: bigint;
|
|
1037
|
+
gasPrice?: bigint;
|
|
1038
|
+
maxFeePerGas?: bigint;
|
|
1039
|
+
maxPriorityFeePerGas?: bigint;
|
|
1040
|
+
nonce?: number;
|
|
1041
|
+
value?: bigint;
|
|
1042
|
+
}): Promise<void>;
|
|
475
1043
|
/**
|
|
476
1044
|
* Simulate initialize
|
|
477
1045
|
* Returns gas estimate and result without sending transaction
|
|
478
1046
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
479
1047
|
*/
|
|
480
|
-
initialize(
|
|
1048
|
+
initialize(_governor: `0x${string}`, _delay: bigint, options?: {
|
|
481
1049
|
accessList?: import("viem").AccessList;
|
|
482
1050
|
authorizationList?: import("viem").AuthorizationList;
|
|
483
1051
|
chain?: import("viem").Chain | null;
|
|
@@ -490,11 +1058,28 @@ export declare class Treasury_json {
|
|
|
490
1058
|
value?: bigint;
|
|
491
1059
|
}): Promise<void>;
|
|
492
1060
|
/**
|
|
493
|
-
* Simulate
|
|
1061
|
+
* Simulate queue
|
|
494
1062
|
* Returns gas estimate and result without sending transaction
|
|
495
1063
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
496
1064
|
*/
|
|
497
|
-
|
|
1065
|
+
queue(_proposalId: `0x${string}`, options?: {
|
|
1066
|
+
accessList?: import("viem").AccessList;
|
|
1067
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1068
|
+
chain?: import("viem").Chain | null;
|
|
1069
|
+
dataSuffix?: `0x${string}`;
|
|
1070
|
+
gas?: bigint;
|
|
1071
|
+
gasPrice?: bigint;
|
|
1072
|
+
maxFeePerGas?: bigint;
|
|
1073
|
+
maxPriorityFeePerGas?: bigint;
|
|
1074
|
+
nonce?: number;
|
|
1075
|
+
value?: bigint;
|
|
1076
|
+
}): Promise<bigint>;
|
|
1077
|
+
/**
|
|
1078
|
+
* Simulate safeTransferOwnership
|
|
1079
|
+
* Returns gas estimate and result without sending transaction
|
|
1080
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1081
|
+
*/
|
|
1082
|
+
safeTransferOwnership(_newOwner: `0x${string}`, options?: {
|
|
498
1083
|
accessList?: import("viem").AccessList;
|
|
499
1084
|
authorizationList?: import("viem").AuthorizationList;
|
|
500
1085
|
chain?: import("viem").Chain | null;
|
|
@@ -511,7 +1096,7 @@ export declare class Treasury_json {
|
|
|
511
1096
|
* Returns gas estimate and result without sending transaction
|
|
512
1097
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
513
1098
|
*/
|
|
514
|
-
transferOwnership(
|
|
1099
|
+
transferOwnership(_newOwner: `0x${string}`, options?: {
|
|
515
1100
|
accessList?: import("viem").AccessList;
|
|
516
1101
|
authorizationList?: import("viem").AuthorizationList;
|
|
517
1102
|
chain?: import("viem").Chain | null;
|
|
@@ -524,11 +1109,11 @@ export declare class Treasury_json {
|
|
|
524
1109
|
value?: bigint;
|
|
525
1110
|
}): Promise<void>;
|
|
526
1111
|
/**
|
|
527
|
-
* Simulate
|
|
1112
|
+
* Simulate updateDelay
|
|
528
1113
|
* Returns gas estimate and result without sending transaction
|
|
529
1114
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
530
1115
|
*/
|
|
531
|
-
|
|
1116
|
+
updateDelay(_newDelay: bigint, options?: {
|
|
532
1117
|
accessList?: import("viem").AccessList;
|
|
533
1118
|
authorizationList?: import("viem").AuthorizationList;
|
|
534
1119
|
chain?: import("viem").Chain | null;
|
|
@@ -541,11 +1126,11 @@ export declare class Treasury_json {
|
|
|
541
1126
|
value?: bigint;
|
|
542
1127
|
}): Promise<void>;
|
|
543
1128
|
/**
|
|
544
|
-
* Simulate
|
|
1129
|
+
* Simulate updateGracePeriod
|
|
545
1130
|
* Returns gas estimate and result without sending transaction
|
|
546
1131
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
547
1132
|
*/
|
|
548
|
-
|
|
1133
|
+
updateGracePeriod(_newGracePeriod: bigint, options?: {
|
|
549
1134
|
accessList?: import("viem").AccessList;
|
|
550
1135
|
authorizationList?: import("viem").AuthorizationList;
|
|
551
1136
|
chain?: import("viem").Chain | null;
|
|
@@ -558,11 +1143,11 @@ export declare class Treasury_json {
|
|
|
558
1143
|
value?: bigint;
|
|
559
1144
|
}): Promise<void>;
|
|
560
1145
|
/**
|
|
561
|
-
* Simulate
|
|
1146
|
+
* Simulate upgradeTo
|
|
562
1147
|
* Returns gas estimate and result without sending transaction
|
|
563
1148
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
564
1149
|
*/
|
|
565
|
-
|
|
1150
|
+
upgradeTo(_newImpl: `0x${string}`, options?: {
|
|
566
1151
|
accessList?: import("viem").AccessList;
|
|
567
1152
|
authorizationList?: import("viem").AuthorizationList;
|
|
568
1153
|
chain?: import("viem").Chain | null;
|
|
@@ -575,11 +1160,11 @@ export declare class Treasury_json {
|
|
|
575
1160
|
value?: bigint;
|
|
576
1161
|
}): Promise<void>;
|
|
577
1162
|
/**
|
|
578
|
-
* Simulate
|
|
1163
|
+
* Simulate upgradeToAndCall
|
|
579
1164
|
* Returns gas estimate and result without sending transaction
|
|
580
1165
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
581
1166
|
*/
|
|
582
|
-
|
|
1167
|
+
upgradeToAndCall(_newImpl: `0x${string}`, _data: `0x${string}`, options?: {
|
|
583
1168
|
accessList?: import("viem").AccessList;
|
|
584
1169
|
authorizationList?: import("viem").AuthorizationList;
|
|
585
1170
|
chain?: import("viem").Chain | null;
|
|
@@ -606,56 +1191,103 @@ export declare class Treasury_json {
|
|
|
606
1191
|
*/
|
|
607
1192
|
get watch(): {
|
|
608
1193
|
/**
|
|
609
|
-
* Watch
|
|
1194
|
+
* Watch DelayUpdated events
|
|
1195
|
+
* @param callback Function to call when event is emitted
|
|
1196
|
+
* @param filter Optional filter for indexed parameters
|
|
1197
|
+
* @returns Unwatch function to stop listening
|
|
1198
|
+
*/
|
|
1199
|
+
DelayUpdated: (callback: (event: {
|
|
1200
|
+
prevDelay: bigint;
|
|
1201
|
+
newDelay: bigint;
|
|
1202
|
+
}) => void) => () => void;
|
|
1203
|
+
/**
|
|
1204
|
+
* Watch GracePeriodUpdated events
|
|
610
1205
|
* @param callback Function to call when event is emitted
|
|
611
1206
|
* @param filter Optional filter for indexed parameters
|
|
612
1207
|
* @returns Unwatch function to stop listening
|
|
613
1208
|
*/
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
1209
|
+
GracePeriodUpdated: (callback: (event: {
|
|
1210
|
+
prevGracePeriod: bigint;
|
|
1211
|
+
newGracePeriod: bigint;
|
|
617
1212
|
}) => void) => () => void;
|
|
618
1213
|
/**
|
|
619
|
-
* Watch
|
|
1214
|
+
* Watch Initialized events
|
|
1215
|
+
* @param callback Function to call when event is emitted
|
|
1216
|
+
* @param filter Optional filter for indexed parameters
|
|
1217
|
+
* @returns Unwatch function to stop listening
|
|
1218
|
+
*/
|
|
1219
|
+
Initialized: (callback: (event: {
|
|
1220
|
+
version: bigint;
|
|
1221
|
+
}) => void) => () => void;
|
|
1222
|
+
/**
|
|
1223
|
+
* Watch OwnerCanceled events
|
|
1224
|
+
* @param callback Function to call when event is emitted
|
|
1225
|
+
* @param filter Optional filter for indexed parameters
|
|
1226
|
+
* @returns Unwatch function to stop listening
|
|
1227
|
+
*/
|
|
1228
|
+
OwnerCanceled: (callback: (event: {
|
|
1229
|
+
owner: `0x${string}`;
|
|
1230
|
+
canceledOwner: `0x${string}`;
|
|
1231
|
+
}) => void, filter?: {
|
|
1232
|
+
owner: `0x${string}`;
|
|
1233
|
+
canceledOwner: `0x${string}`;
|
|
1234
|
+
}) => () => void;
|
|
1235
|
+
/**
|
|
1236
|
+
* Watch OwnerPending events
|
|
620
1237
|
* @param callback Function to call when event is emitted
|
|
621
1238
|
* @param filter Optional filter for indexed parameters
|
|
622
1239
|
* @returns Unwatch function to stop listening
|
|
623
1240
|
*/
|
|
624
|
-
|
|
625
|
-
|
|
1241
|
+
OwnerPending: (callback: (event: {
|
|
1242
|
+
owner: `0x${string}`;
|
|
1243
|
+
pendingOwner: `0x${string}`;
|
|
626
1244
|
}) => void, filter?: {
|
|
627
|
-
|
|
1245
|
+
owner: `0x${string}`;
|
|
1246
|
+
pendingOwner: `0x${string}`;
|
|
628
1247
|
}) => () => void;
|
|
629
1248
|
/**
|
|
630
|
-
* Watch
|
|
1249
|
+
* Watch OwnerUpdated events
|
|
631
1250
|
* @param callback Function to call when event is emitted
|
|
632
1251
|
* @param filter Optional filter for indexed parameters
|
|
633
1252
|
* @returns Unwatch function to stop listening
|
|
634
1253
|
*/
|
|
635
|
-
|
|
636
|
-
|
|
1254
|
+
OwnerUpdated: (callback: (event: {
|
|
1255
|
+
prevOwner: `0x${string}`;
|
|
637
1256
|
newOwner: `0x${string}`;
|
|
638
1257
|
}) => void, filter?: {
|
|
639
|
-
|
|
1258
|
+
prevOwner: `0x${string}`;
|
|
640
1259
|
newOwner: `0x${string}`;
|
|
641
1260
|
}) => () => void;
|
|
642
1261
|
/**
|
|
643
|
-
* Watch
|
|
1262
|
+
* Watch TransactionCanceled events
|
|
644
1263
|
* @param callback Function to call when event is emitted
|
|
645
1264
|
* @param filter Optional filter for indexed parameters
|
|
646
1265
|
* @returns Unwatch function to stop listening
|
|
647
1266
|
*/
|
|
648
|
-
|
|
649
|
-
|
|
1267
|
+
TransactionCanceled: (callback: (event: {
|
|
1268
|
+
proposalId: `0x${string}`;
|
|
650
1269
|
}) => void) => () => void;
|
|
651
1270
|
/**
|
|
652
|
-
* Watch
|
|
1271
|
+
* Watch TransactionExecuted events
|
|
653
1272
|
* @param callback Function to call when event is emitted
|
|
654
1273
|
* @param filter Optional filter for indexed parameters
|
|
655
1274
|
* @returns Unwatch function to stop listening
|
|
656
1275
|
*/
|
|
657
|
-
|
|
658
|
-
|
|
1276
|
+
TransactionExecuted: (callback: (event: {
|
|
1277
|
+
proposalId: `0x${string}`;
|
|
1278
|
+
targets: `0x${string}`[];
|
|
1279
|
+
values: bigint[];
|
|
1280
|
+
payloads: `0x${string}`[];
|
|
1281
|
+
}) => void) => () => void;
|
|
1282
|
+
/**
|
|
1283
|
+
* Watch TransactionScheduled events
|
|
1284
|
+
* @param callback Function to call when event is emitted
|
|
1285
|
+
* @param filter Optional filter for indexed parameters
|
|
1286
|
+
* @returns Unwatch function to stop listening
|
|
1287
|
+
*/
|
|
1288
|
+
TransactionScheduled: (callback: (event: {
|
|
1289
|
+
proposalId: `0x${string}`;
|
|
1290
|
+
timestamp: bigint;
|
|
659
1291
|
}) => void) => () => void;
|
|
660
1292
|
/**
|
|
661
1293
|
* Watch Upgraded events
|
|
@@ -664,9 +1296,7 @@ export declare class Treasury_json {
|
|
|
664
1296
|
* @returns Unwatch function to stop listening
|
|
665
1297
|
*/
|
|
666
1298
|
Upgraded: (callback: (event: {
|
|
667
|
-
|
|
668
|
-
}) => void
|
|
669
|
-
implementation: `0x${string}`;
|
|
670
|
-
}) => () => void;
|
|
1299
|
+
impl: `0x${string}`;
|
|
1300
|
+
}) => void) => () => void;
|
|
671
1301
|
};
|
|
672
1302
|
}
|