@gitmyabi/finance 1.0.0
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 +108 -0
- package/contracts/Finance_json.d.ts +1561 -0
- package/contracts/Finance_json.js +1728 -0
- package/contracts/Finance_json.ts +2085 -0
- package/contracts/index.d.ts +2 -0
- package/contracts/index.js +7 -0
- package/contracts/index.ts +3 -0
- package/index.d.ts +1 -0
- package/index.js +19 -0
- package/package.json +43 -0
|
@@ -0,0 +1,1561 @@
|
|
|
1
|
+
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* Finance_json ABI
|
|
4
|
+
*
|
|
5
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
6
|
+
*/
|
|
7
|
+
export declare const Finance_jsonAbi: readonly [{
|
|
8
|
+
readonly constant: true;
|
|
9
|
+
readonly inputs: readonly [];
|
|
10
|
+
readonly name: "hasInitialized";
|
|
11
|
+
readonly outputs: readonly [{
|
|
12
|
+
readonly name: "";
|
|
13
|
+
readonly type: "bool";
|
|
14
|
+
}];
|
|
15
|
+
readonly payable: false;
|
|
16
|
+
readonly stateMutability: "view";
|
|
17
|
+
readonly type: "function";
|
|
18
|
+
}, {
|
|
19
|
+
readonly constant: true;
|
|
20
|
+
readonly inputs: readonly [];
|
|
21
|
+
readonly name: "CREATE_PAYMENTS_ROLE";
|
|
22
|
+
readonly outputs: readonly [{
|
|
23
|
+
readonly name: "";
|
|
24
|
+
readonly type: "bytes32";
|
|
25
|
+
}];
|
|
26
|
+
readonly payable: false;
|
|
27
|
+
readonly stateMutability: "view";
|
|
28
|
+
readonly type: "function";
|
|
29
|
+
}, {
|
|
30
|
+
readonly constant: false;
|
|
31
|
+
readonly inputs: readonly [{
|
|
32
|
+
readonly name: "_token";
|
|
33
|
+
readonly type: "address";
|
|
34
|
+
}, {
|
|
35
|
+
readonly name: "_receiver";
|
|
36
|
+
readonly type: "address";
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "_amount";
|
|
39
|
+
readonly type: "uint256";
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "_initialPaymentTime";
|
|
42
|
+
readonly type: "uint64";
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "_interval";
|
|
45
|
+
readonly type: "uint64";
|
|
46
|
+
}, {
|
|
47
|
+
readonly name: "_maxExecutions";
|
|
48
|
+
readonly type: "uint64";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "_reference";
|
|
51
|
+
readonly type: "string";
|
|
52
|
+
}];
|
|
53
|
+
readonly name: "newScheduledPayment";
|
|
54
|
+
readonly outputs: readonly [{
|
|
55
|
+
readonly name: "paymentId";
|
|
56
|
+
readonly type: "uint256";
|
|
57
|
+
}];
|
|
58
|
+
readonly payable: false;
|
|
59
|
+
readonly stateMutability: "nonpayable";
|
|
60
|
+
readonly type: "function";
|
|
61
|
+
}, {
|
|
62
|
+
readonly constant: false;
|
|
63
|
+
readonly inputs: readonly [{
|
|
64
|
+
readonly name: "_paymentId";
|
|
65
|
+
readonly type: "uint256";
|
|
66
|
+
}];
|
|
67
|
+
readonly name: "executePayment";
|
|
68
|
+
readonly outputs: readonly [];
|
|
69
|
+
readonly payable: false;
|
|
70
|
+
readonly stateMutability: "nonpayable";
|
|
71
|
+
readonly type: "function";
|
|
72
|
+
}, {
|
|
73
|
+
readonly constant: false;
|
|
74
|
+
readonly inputs: readonly [{
|
|
75
|
+
readonly name: "_vault";
|
|
76
|
+
readonly type: "address";
|
|
77
|
+
}, {
|
|
78
|
+
readonly name: "_periodDuration";
|
|
79
|
+
readonly type: "uint64";
|
|
80
|
+
}];
|
|
81
|
+
readonly name: "initialize";
|
|
82
|
+
readonly outputs: readonly [];
|
|
83
|
+
readonly payable: false;
|
|
84
|
+
readonly stateMutability: "nonpayable";
|
|
85
|
+
readonly type: "function";
|
|
86
|
+
}, {
|
|
87
|
+
readonly constant: false;
|
|
88
|
+
readonly inputs: readonly [{
|
|
89
|
+
readonly name: "_token";
|
|
90
|
+
readonly type: "address";
|
|
91
|
+
}];
|
|
92
|
+
readonly name: "removeBudget";
|
|
93
|
+
readonly outputs: readonly [];
|
|
94
|
+
readonly payable: false;
|
|
95
|
+
readonly stateMutability: "nonpayable";
|
|
96
|
+
readonly type: "function";
|
|
97
|
+
}, {
|
|
98
|
+
readonly constant: true;
|
|
99
|
+
readonly inputs: readonly [{
|
|
100
|
+
readonly name: "_token";
|
|
101
|
+
readonly type: "address";
|
|
102
|
+
}];
|
|
103
|
+
readonly name: "getBudget";
|
|
104
|
+
readonly outputs: readonly [{
|
|
105
|
+
readonly name: "budget";
|
|
106
|
+
readonly type: "uint256";
|
|
107
|
+
}, {
|
|
108
|
+
readonly name: "hasBudget";
|
|
109
|
+
readonly type: "bool";
|
|
110
|
+
}];
|
|
111
|
+
readonly payable: false;
|
|
112
|
+
readonly stateMutability: "view";
|
|
113
|
+
readonly type: "function";
|
|
114
|
+
}, {
|
|
115
|
+
readonly constant: true;
|
|
116
|
+
readonly inputs: readonly [{
|
|
117
|
+
readonly name: "_script";
|
|
118
|
+
readonly type: "bytes";
|
|
119
|
+
}];
|
|
120
|
+
readonly name: "getEVMScriptExecutor";
|
|
121
|
+
readonly outputs: readonly [{
|
|
122
|
+
readonly name: "";
|
|
123
|
+
readonly type: "address";
|
|
124
|
+
}];
|
|
125
|
+
readonly payable: false;
|
|
126
|
+
readonly stateMutability: "view";
|
|
127
|
+
readonly type: "function";
|
|
128
|
+
}, {
|
|
129
|
+
readonly constant: false;
|
|
130
|
+
readonly inputs: readonly [{
|
|
131
|
+
readonly name: "_paymentId";
|
|
132
|
+
readonly type: "uint256";
|
|
133
|
+
}, {
|
|
134
|
+
readonly name: "_active";
|
|
135
|
+
readonly type: "bool";
|
|
136
|
+
}];
|
|
137
|
+
readonly name: "setPaymentStatus";
|
|
138
|
+
readonly outputs: readonly [];
|
|
139
|
+
readonly payable: false;
|
|
140
|
+
readonly stateMutability: "nonpayable";
|
|
141
|
+
readonly type: "function";
|
|
142
|
+
}, {
|
|
143
|
+
readonly constant: true;
|
|
144
|
+
readonly inputs: readonly [{
|
|
145
|
+
readonly name: "_paymentId";
|
|
146
|
+
readonly type: "uint256";
|
|
147
|
+
}];
|
|
148
|
+
readonly name: "getPayment";
|
|
149
|
+
readonly outputs: readonly [{
|
|
150
|
+
readonly name: "token";
|
|
151
|
+
readonly type: "address";
|
|
152
|
+
}, {
|
|
153
|
+
readonly name: "receiver";
|
|
154
|
+
readonly type: "address";
|
|
155
|
+
}, {
|
|
156
|
+
readonly name: "amount";
|
|
157
|
+
readonly type: "uint256";
|
|
158
|
+
}, {
|
|
159
|
+
readonly name: "initialPaymentTime";
|
|
160
|
+
readonly type: "uint64";
|
|
161
|
+
}, {
|
|
162
|
+
readonly name: "interval";
|
|
163
|
+
readonly type: "uint64";
|
|
164
|
+
}, {
|
|
165
|
+
readonly name: "maxExecutions";
|
|
166
|
+
readonly type: "uint64";
|
|
167
|
+
}, {
|
|
168
|
+
readonly name: "inactive";
|
|
169
|
+
readonly type: "bool";
|
|
170
|
+
}, {
|
|
171
|
+
readonly name: "executions";
|
|
172
|
+
readonly type: "uint64";
|
|
173
|
+
}, {
|
|
174
|
+
readonly name: "createdBy";
|
|
175
|
+
readonly type: "address";
|
|
176
|
+
}];
|
|
177
|
+
readonly payable: false;
|
|
178
|
+
readonly stateMutability: "view";
|
|
179
|
+
readonly type: "function";
|
|
180
|
+
}, {
|
|
181
|
+
readonly constant: true;
|
|
182
|
+
readonly inputs: readonly [];
|
|
183
|
+
readonly name: "getRecoveryVault";
|
|
184
|
+
readonly outputs: readonly [{
|
|
185
|
+
readonly name: "";
|
|
186
|
+
readonly type: "address";
|
|
187
|
+
}];
|
|
188
|
+
readonly payable: false;
|
|
189
|
+
readonly stateMutability: "view";
|
|
190
|
+
readonly type: "function";
|
|
191
|
+
}, {
|
|
192
|
+
readonly constant: true;
|
|
193
|
+
readonly inputs: readonly [{
|
|
194
|
+
readonly name: "_transactionId";
|
|
195
|
+
readonly type: "uint256";
|
|
196
|
+
}];
|
|
197
|
+
readonly name: "getTransaction";
|
|
198
|
+
readonly outputs: readonly [{
|
|
199
|
+
readonly name: "periodId";
|
|
200
|
+
readonly type: "uint64";
|
|
201
|
+
}, {
|
|
202
|
+
readonly name: "amount";
|
|
203
|
+
readonly type: "uint256";
|
|
204
|
+
}, {
|
|
205
|
+
readonly name: "paymentId";
|
|
206
|
+
readonly type: "uint256";
|
|
207
|
+
}, {
|
|
208
|
+
readonly name: "paymentExecutionNumber";
|
|
209
|
+
readonly type: "uint64";
|
|
210
|
+
}, {
|
|
211
|
+
readonly name: "token";
|
|
212
|
+
readonly type: "address";
|
|
213
|
+
}, {
|
|
214
|
+
readonly name: "entity";
|
|
215
|
+
readonly type: "address";
|
|
216
|
+
}, {
|
|
217
|
+
readonly name: "isIncoming";
|
|
218
|
+
readonly type: "bool";
|
|
219
|
+
}, {
|
|
220
|
+
readonly name: "date";
|
|
221
|
+
readonly type: "uint64";
|
|
222
|
+
}];
|
|
223
|
+
readonly payable: false;
|
|
224
|
+
readonly stateMutability: "view";
|
|
225
|
+
readonly type: "function";
|
|
226
|
+
}, {
|
|
227
|
+
readonly constant: true;
|
|
228
|
+
readonly inputs: readonly [];
|
|
229
|
+
readonly name: "CHANGE_PERIOD_ROLE";
|
|
230
|
+
readonly outputs: readonly [{
|
|
231
|
+
readonly name: "";
|
|
232
|
+
readonly type: "bytes32";
|
|
233
|
+
}];
|
|
234
|
+
readonly payable: false;
|
|
235
|
+
readonly stateMutability: "view";
|
|
236
|
+
readonly type: "function";
|
|
237
|
+
}, {
|
|
238
|
+
readonly constant: true;
|
|
239
|
+
readonly inputs: readonly [];
|
|
240
|
+
readonly name: "CHANGE_BUDGETS_ROLE";
|
|
241
|
+
readonly outputs: readonly [{
|
|
242
|
+
readonly name: "";
|
|
243
|
+
readonly type: "bytes32";
|
|
244
|
+
}];
|
|
245
|
+
readonly payable: false;
|
|
246
|
+
readonly stateMutability: "view";
|
|
247
|
+
readonly type: "function";
|
|
248
|
+
}, {
|
|
249
|
+
readonly constant: false;
|
|
250
|
+
readonly inputs: readonly [{
|
|
251
|
+
readonly name: "_paymentId";
|
|
252
|
+
readonly type: "uint256";
|
|
253
|
+
}];
|
|
254
|
+
readonly name: "receiverExecutePayment";
|
|
255
|
+
readonly outputs: readonly [];
|
|
256
|
+
readonly payable: false;
|
|
257
|
+
readonly stateMutability: "nonpayable";
|
|
258
|
+
readonly type: "function";
|
|
259
|
+
}, {
|
|
260
|
+
readonly constant: true;
|
|
261
|
+
readonly inputs: readonly [{
|
|
262
|
+
readonly name: "_periodId";
|
|
263
|
+
readonly type: "uint64";
|
|
264
|
+
}];
|
|
265
|
+
readonly name: "getPeriod";
|
|
266
|
+
readonly outputs: readonly [{
|
|
267
|
+
readonly name: "isCurrent";
|
|
268
|
+
readonly type: "bool";
|
|
269
|
+
}, {
|
|
270
|
+
readonly name: "startTime";
|
|
271
|
+
readonly type: "uint64";
|
|
272
|
+
}, {
|
|
273
|
+
readonly name: "endTime";
|
|
274
|
+
readonly type: "uint64";
|
|
275
|
+
}, {
|
|
276
|
+
readonly name: "firstTransactionId";
|
|
277
|
+
readonly type: "uint256";
|
|
278
|
+
}, {
|
|
279
|
+
readonly name: "lastTransactionId";
|
|
280
|
+
readonly type: "uint256";
|
|
281
|
+
}];
|
|
282
|
+
readonly payable: false;
|
|
283
|
+
readonly stateMutability: "view";
|
|
284
|
+
readonly type: "function";
|
|
285
|
+
}, {
|
|
286
|
+
readonly constant: false;
|
|
287
|
+
readonly inputs: readonly [{
|
|
288
|
+
readonly name: "_periodDuration";
|
|
289
|
+
readonly type: "uint64";
|
|
290
|
+
}];
|
|
291
|
+
readonly name: "setPeriodDuration";
|
|
292
|
+
readonly outputs: readonly [];
|
|
293
|
+
readonly payable: false;
|
|
294
|
+
readonly stateMutability: "nonpayable";
|
|
295
|
+
readonly type: "function";
|
|
296
|
+
}, {
|
|
297
|
+
readonly constant: true;
|
|
298
|
+
readonly inputs: readonly [];
|
|
299
|
+
readonly name: "periodsLength";
|
|
300
|
+
readonly outputs: readonly [{
|
|
301
|
+
readonly name: "";
|
|
302
|
+
readonly type: "uint64";
|
|
303
|
+
}];
|
|
304
|
+
readonly payable: false;
|
|
305
|
+
readonly stateMutability: "view";
|
|
306
|
+
readonly type: "function";
|
|
307
|
+
}, {
|
|
308
|
+
readonly constant: false;
|
|
309
|
+
readonly inputs: readonly [{
|
|
310
|
+
readonly name: "_token";
|
|
311
|
+
readonly type: "address";
|
|
312
|
+
}, {
|
|
313
|
+
readonly name: "_amount";
|
|
314
|
+
readonly type: "uint256";
|
|
315
|
+
}];
|
|
316
|
+
readonly name: "setBudget";
|
|
317
|
+
readonly outputs: readonly [];
|
|
318
|
+
readonly payable: false;
|
|
319
|
+
readonly stateMutability: "nonpayable";
|
|
320
|
+
readonly type: "function";
|
|
321
|
+
}, {
|
|
322
|
+
readonly constant: true;
|
|
323
|
+
readonly inputs: readonly [{
|
|
324
|
+
readonly name: "";
|
|
325
|
+
readonly type: "address";
|
|
326
|
+
}];
|
|
327
|
+
readonly name: "allowRecoverability";
|
|
328
|
+
readonly outputs: readonly [{
|
|
329
|
+
readonly name: "";
|
|
330
|
+
readonly type: "bool";
|
|
331
|
+
}];
|
|
332
|
+
readonly payable: false;
|
|
333
|
+
readonly stateMutability: "view";
|
|
334
|
+
readonly type: "function";
|
|
335
|
+
}, {
|
|
336
|
+
readonly constant: true;
|
|
337
|
+
readonly inputs: readonly [];
|
|
338
|
+
readonly name: "appId";
|
|
339
|
+
readonly outputs: readonly [{
|
|
340
|
+
readonly name: "";
|
|
341
|
+
readonly type: "bytes32";
|
|
342
|
+
}];
|
|
343
|
+
readonly payable: false;
|
|
344
|
+
readonly stateMutability: "view";
|
|
345
|
+
readonly type: "function";
|
|
346
|
+
}, {
|
|
347
|
+
readonly constant: true;
|
|
348
|
+
readonly inputs: readonly [];
|
|
349
|
+
readonly name: "getInitializationBlock";
|
|
350
|
+
readonly outputs: readonly [{
|
|
351
|
+
readonly name: "";
|
|
352
|
+
readonly type: "uint256";
|
|
353
|
+
}];
|
|
354
|
+
readonly payable: false;
|
|
355
|
+
readonly stateMutability: "view";
|
|
356
|
+
readonly type: "function";
|
|
357
|
+
}, {
|
|
358
|
+
readonly constant: false;
|
|
359
|
+
readonly inputs: readonly [{
|
|
360
|
+
readonly name: "_token";
|
|
361
|
+
readonly type: "address";
|
|
362
|
+
}];
|
|
363
|
+
readonly name: "recoverToVault";
|
|
364
|
+
readonly outputs: readonly [];
|
|
365
|
+
readonly payable: false;
|
|
366
|
+
readonly stateMutability: "nonpayable";
|
|
367
|
+
readonly type: "function";
|
|
368
|
+
}, {
|
|
369
|
+
readonly constant: true;
|
|
370
|
+
readonly inputs: readonly [];
|
|
371
|
+
readonly name: "EXECUTE_PAYMENTS_ROLE";
|
|
372
|
+
readonly outputs: readonly [{
|
|
373
|
+
readonly name: "";
|
|
374
|
+
readonly type: "bytes32";
|
|
375
|
+
}];
|
|
376
|
+
readonly payable: false;
|
|
377
|
+
readonly stateMutability: "view";
|
|
378
|
+
readonly type: "function";
|
|
379
|
+
}, {
|
|
380
|
+
readonly constant: true;
|
|
381
|
+
readonly inputs: readonly [];
|
|
382
|
+
readonly name: "currentPeriodId";
|
|
383
|
+
readonly outputs: readonly [{
|
|
384
|
+
readonly name: "";
|
|
385
|
+
readonly type: "uint64";
|
|
386
|
+
}];
|
|
387
|
+
readonly payable: false;
|
|
388
|
+
readonly stateMutability: "view";
|
|
389
|
+
readonly type: "function";
|
|
390
|
+
}, {
|
|
391
|
+
readonly constant: false;
|
|
392
|
+
readonly inputs: readonly [{
|
|
393
|
+
readonly name: "_token";
|
|
394
|
+
readonly type: "address";
|
|
395
|
+
}];
|
|
396
|
+
readonly name: "transferToVault";
|
|
397
|
+
readonly outputs: readonly [];
|
|
398
|
+
readonly payable: false;
|
|
399
|
+
readonly stateMutability: "nonpayable";
|
|
400
|
+
readonly type: "function";
|
|
401
|
+
}, {
|
|
402
|
+
readonly constant: true;
|
|
403
|
+
readonly inputs: readonly [{
|
|
404
|
+
readonly name: "_sender";
|
|
405
|
+
readonly type: "address";
|
|
406
|
+
}, {
|
|
407
|
+
readonly name: "_role";
|
|
408
|
+
readonly type: "bytes32";
|
|
409
|
+
}, {
|
|
410
|
+
readonly name: "_params";
|
|
411
|
+
readonly type: "uint256[]";
|
|
412
|
+
}];
|
|
413
|
+
readonly name: "canPerform";
|
|
414
|
+
readonly outputs: readonly [{
|
|
415
|
+
readonly name: "";
|
|
416
|
+
readonly type: "bool";
|
|
417
|
+
}];
|
|
418
|
+
readonly payable: false;
|
|
419
|
+
readonly stateMutability: "view";
|
|
420
|
+
readonly type: "function";
|
|
421
|
+
}, {
|
|
422
|
+
readonly constant: true;
|
|
423
|
+
readonly inputs: readonly [];
|
|
424
|
+
readonly name: "getEVMScriptRegistry";
|
|
425
|
+
readonly outputs: readonly [{
|
|
426
|
+
readonly name: "";
|
|
427
|
+
readonly type: "address";
|
|
428
|
+
}];
|
|
429
|
+
readonly payable: false;
|
|
430
|
+
readonly stateMutability: "view";
|
|
431
|
+
readonly type: "function";
|
|
432
|
+
}, {
|
|
433
|
+
readonly constant: false;
|
|
434
|
+
readonly inputs: readonly [{
|
|
435
|
+
readonly name: "_maxTransitions";
|
|
436
|
+
readonly type: "uint64";
|
|
437
|
+
}];
|
|
438
|
+
readonly name: "tryTransitionAccountingPeriod";
|
|
439
|
+
readonly outputs: readonly [{
|
|
440
|
+
readonly name: "success";
|
|
441
|
+
readonly type: "bool";
|
|
442
|
+
}];
|
|
443
|
+
readonly payable: false;
|
|
444
|
+
readonly stateMutability: "nonpayable";
|
|
445
|
+
readonly type: "function";
|
|
446
|
+
}, {
|
|
447
|
+
readonly constant: true;
|
|
448
|
+
readonly inputs: readonly [];
|
|
449
|
+
readonly name: "getPeriodDuration";
|
|
450
|
+
readonly outputs: readonly [{
|
|
451
|
+
readonly name: "";
|
|
452
|
+
readonly type: "uint64";
|
|
453
|
+
}];
|
|
454
|
+
readonly payable: false;
|
|
455
|
+
readonly stateMutability: "view";
|
|
456
|
+
readonly type: "function";
|
|
457
|
+
}, {
|
|
458
|
+
readonly constant: false;
|
|
459
|
+
readonly inputs: readonly [{
|
|
460
|
+
readonly name: "_token";
|
|
461
|
+
readonly type: "address";
|
|
462
|
+
}, {
|
|
463
|
+
readonly name: "_amount";
|
|
464
|
+
readonly type: "uint256";
|
|
465
|
+
}, {
|
|
466
|
+
readonly name: "_reference";
|
|
467
|
+
readonly type: "string";
|
|
468
|
+
}];
|
|
469
|
+
readonly name: "deposit";
|
|
470
|
+
readonly outputs: readonly [];
|
|
471
|
+
readonly payable: true;
|
|
472
|
+
readonly stateMutability: "payable";
|
|
473
|
+
readonly type: "function";
|
|
474
|
+
}, {
|
|
475
|
+
readonly constant: true;
|
|
476
|
+
readonly inputs: readonly [{
|
|
477
|
+
readonly name: "_paymentId";
|
|
478
|
+
readonly type: "uint256";
|
|
479
|
+
}];
|
|
480
|
+
readonly name: "nextPaymentTime";
|
|
481
|
+
readonly outputs: readonly [{
|
|
482
|
+
readonly name: "";
|
|
483
|
+
readonly type: "uint64";
|
|
484
|
+
}];
|
|
485
|
+
readonly payable: false;
|
|
486
|
+
readonly stateMutability: "view";
|
|
487
|
+
readonly type: "function";
|
|
488
|
+
}, {
|
|
489
|
+
readonly constant: true;
|
|
490
|
+
readonly inputs: readonly [{
|
|
491
|
+
readonly name: "_periodId";
|
|
492
|
+
readonly type: "uint64";
|
|
493
|
+
}, {
|
|
494
|
+
readonly name: "_token";
|
|
495
|
+
readonly type: "address";
|
|
496
|
+
}];
|
|
497
|
+
readonly name: "getPeriodTokenStatement";
|
|
498
|
+
readonly outputs: readonly [{
|
|
499
|
+
readonly name: "expenses";
|
|
500
|
+
readonly type: "uint256";
|
|
501
|
+
}, {
|
|
502
|
+
readonly name: "income";
|
|
503
|
+
readonly type: "uint256";
|
|
504
|
+
}];
|
|
505
|
+
readonly payable: false;
|
|
506
|
+
readonly stateMutability: "view";
|
|
507
|
+
readonly type: "function";
|
|
508
|
+
}, {
|
|
509
|
+
readonly constant: true;
|
|
510
|
+
readonly inputs: readonly [];
|
|
511
|
+
readonly name: "kernel";
|
|
512
|
+
readonly outputs: readonly [{
|
|
513
|
+
readonly name: "";
|
|
514
|
+
readonly type: "address";
|
|
515
|
+
}];
|
|
516
|
+
readonly payable: false;
|
|
517
|
+
readonly stateMutability: "view";
|
|
518
|
+
readonly type: "function";
|
|
519
|
+
}, {
|
|
520
|
+
readonly constant: true;
|
|
521
|
+
readonly inputs: readonly [];
|
|
522
|
+
readonly name: "paymentsNextIndex";
|
|
523
|
+
readonly outputs: readonly [{
|
|
524
|
+
readonly name: "";
|
|
525
|
+
readonly type: "uint256";
|
|
526
|
+
}];
|
|
527
|
+
readonly payable: false;
|
|
528
|
+
readonly stateMutability: "view";
|
|
529
|
+
readonly type: "function";
|
|
530
|
+
}, {
|
|
531
|
+
readonly constant: true;
|
|
532
|
+
readonly inputs: readonly [];
|
|
533
|
+
readonly name: "isPetrified";
|
|
534
|
+
readonly outputs: readonly [{
|
|
535
|
+
readonly name: "";
|
|
536
|
+
readonly type: "bool";
|
|
537
|
+
}];
|
|
538
|
+
readonly payable: false;
|
|
539
|
+
readonly stateMutability: "view";
|
|
540
|
+
readonly type: "function";
|
|
541
|
+
}, {
|
|
542
|
+
readonly constant: true;
|
|
543
|
+
readonly inputs: readonly [{
|
|
544
|
+
readonly name: "_token";
|
|
545
|
+
readonly type: "address";
|
|
546
|
+
}, {
|
|
547
|
+
readonly name: "_amount";
|
|
548
|
+
readonly type: "uint256";
|
|
549
|
+
}];
|
|
550
|
+
readonly name: "canMakePayment";
|
|
551
|
+
readonly outputs: readonly [{
|
|
552
|
+
readonly name: "";
|
|
553
|
+
readonly type: "bool";
|
|
554
|
+
}];
|
|
555
|
+
readonly payable: false;
|
|
556
|
+
readonly stateMutability: "view";
|
|
557
|
+
readonly type: "function";
|
|
558
|
+
}, {
|
|
559
|
+
readonly constant: true;
|
|
560
|
+
readonly inputs: readonly [];
|
|
561
|
+
readonly name: "MANAGE_PAYMENTS_ROLE";
|
|
562
|
+
readonly outputs: readonly [{
|
|
563
|
+
readonly name: "";
|
|
564
|
+
readonly type: "bytes32";
|
|
565
|
+
}];
|
|
566
|
+
readonly payable: false;
|
|
567
|
+
readonly stateMutability: "view";
|
|
568
|
+
readonly type: "function";
|
|
569
|
+
}, {
|
|
570
|
+
readonly constant: true;
|
|
571
|
+
readonly inputs: readonly [];
|
|
572
|
+
readonly name: "transactionsNextIndex";
|
|
573
|
+
readonly outputs: readonly [{
|
|
574
|
+
readonly name: "";
|
|
575
|
+
readonly type: "uint256";
|
|
576
|
+
}];
|
|
577
|
+
readonly payable: false;
|
|
578
|
+
readonly stateMutability: "view";
|
|
579
|
+
readonly type: "function";
|
|
580
|
+
}, {
|
|
581
|
+
readonly constant: true;
|
|
582
|
+
readonly inputs: readonly [{
|
|
583
|
+
readonly name: "_token";
|
|
584
|
+
readonly type: "address";
|
|
585
|
+
}];
|
|
586
|
+
readonly name: "getRemainingBudget";
|
|
587
|
+
readonly outputs: readonly [{
|
|
588
|
+
readonly name: "";
|
|
589
|
+
readonly type: "uint256";
|
|
590
|
+
}];
|
|
591
|
+
readonly payable: false;
|
|
592
|
+
readonly stateMutability: "view";
|
|
593
|
+
readonly type: "function";
|
|
594
|
+
}, {
|
|
595
|
+
readonly constant: false;
|
|
596
|
+
readonly inputs: readonly [{
|
|
597
|
+
readonly name: "_token";
|
|
598
|
+
readonly type: "address";
|
|
599
|
+
}, {
|
|
600
|
+
readonly name: "_receiver";
|
|
601
|
+
readonly type: "address";
|
|
602
|
+
}, {
|
|
603
|
+
readonly name: "_amount";
|
|
604
|
+
readonly type: "uint256";
|
|
605
|
+
}, {
|
|
606
|
+
readonly name: "_reference";
|
|
607
|
+
readonly type: "string";
|
|
608
|
+
}];
|
|
609
|
+
readonly name: "newImmediatePayment";
|
|
610
|
+
readonly outputs: readonly [];
|
|
611
|
+
readonly payable: false;
|
|
612
|
+
readonly stateMutability: "nonpayable";
|
|
613
|
+
readonly type: "function";
|
|
614
|
+
}, {
|
|
615
|
+
readonly constant: true;
|
|
616
|
+
readonly inputs: readonly [];
|
|
617
|
+
readonly name: "vault";
|
|
618
|
+
readonly outputs: readonly [{
|
|
619
|
+
readonly name: "";
|
|
620
|
+
readonly type: "address";
|
|
621
|
+
}];
|
|
622
|
+
readonly payable: false;
|
|
623
|
+
readonly stateMutability: "view";
|
|
624
|
+
readonly type: "function";
|
|
625
|
+
}, {
|
|
626
|
+
readonly payable: true;
|
|
627
|
+
readonly stateMutability: "payable";
|
|
628
|
+
readonly type: "fallback";
|
|
629
|
+
}, {
|
|
630
|
+
readonly anonymous: false;
|
|
631
|
+
readonly inputs: readonly [{
|
|
632
|
+
readonly indexed: true;
|
|
633
|
+
readonly name: "periodId";
|
|
634
|
+
readonly type: "uint64";
|
|
635
|
+
}, {
|
|
636
|
+
readonly indexed: false;
|
|
637
|
+
readonly name: "periodStarts";
|
|
638
|
+
readonly type: "uint64";
|
|
639
|
+
}, {
|
|
640
|
+
readonly indexed: false;
|
|
641
|
+
readonly name: "periodEnds";
|
|
642
|
+
readonly type: "uint64";
|
|
643
|
+
}];
|
|
644
|
+
readonly name: "NewPeriod";
|
|
645
|
+
readonly type: "event";
|
|
646
|
+
}, {
|
|
647
|
+
readonly anonymous: false;
|
|
648
|
+
readonly inputs: readonly [{
|
|
649
|
+
readonly indexed: true;
|
|
650
|
+
readonly name: "token";
|
|
651
|
+
readonly type: "address";
|
|
652
|
+
}, {
|
|
653
|
+
readonly indexed: false;
|
|
654
|
+
readonly name: "amount";
|
|
655
|
+
readonly type: "uint256";
|
|
656
|
+
}, {
|
|
657
|
+
readonly indexed: false;
|
|
658
|
+
readonly name: "hasBudget";
|
|
659
|
+
readonly type: "bool";
|
|
660
|
+
}];
|
|
661
|
+
readonly name: "SetBudget";
|
|
662
|
+
readonly type: "event";
|
|
663
|
+
}, {
|
|
664
|
+
readonly anonymous: false;
|
|
665
|
+
readonly inputs: readonly [{
|
|
666
|
+
readonly indexed: true;
|
|
667
|
+
readonly name: "paymentId";
|
|
668
|
+
readonly type: "uint256";
|
|
669
|
+
}, {
|
|
670
|
+
readonly indexed: true;
|
|
671
|
+
readonly name: "recipient";
|
|
672
|
+
readonly type: "address";
|
|
673
|
+
}, {
|
|
674
|
+
readonly indexed: false;
|
|
675
|
+
readonly name: "maxExecutions";
|
|
676
|
+
readonly type: "uint64";
|
|
677
|
+
}, {
|
|
678
|
+
readonly indexed: false;
|
|
679
|
+
readonly name: "reference";
|
|
680
|
+
readonly type: "string";
|
|
681
|
+
}];
|
|
682
|
+
readonly name: "NewPayment";
|
|
683
|
+
readonly type: "event";
|
|
684
|
+
}, {
|
|
685
|
+
readonly anonymous: false;
|
|
686
|
+
readonly inputs: readonly [{
|
|
687
|
+
readonly indexed: true;
|
|
688
|
+
readonly name: "transactionId";
|
|
689
|
+
readonly type: "uint256";
|
|
690
|
+
}, {
|
|
691
|
+
readonly indexed: false;
|
|
692
|
+
readonly name: "incoming";
|
|
693
|
+
readonly type: "bool";
|
|
694
|
+
}, {
|
|
695
|
+
readonly indexed: true;
|
|
696
|
+
readonly name: "entity";
|
|
697
|
+
readonly type: "address";
|
|
698
|
+
}, {
|
|
699
|
+
readonly indexed: false;
|
|
700
|
+
readonly name: "amount";
|
|
701
|
+
readonly type: "uint256";
|
|
702
|
+
}, {
|
|
703
|
+
readonly indexed: false;
|
|
704
|
+
readonly name: "reference";
|
|
705
|
+
readonly type: "string";
|
|
706
|
+
}];
|
|
707
|
+
readonly name: "NewTransaction";
|
|
708
|
+
readonly type: "event";
|
|
709
|
+
}, {
|
|
710
|
+
readonly anonymous: false;
|
|
711
|
+
readonly inputs: readonly [{
|
|
712
|
+
readonly indexed: true;
|
|
713
|
+
readonly name: "paymentId";
|
|
714
|
+
readonly type: "uint256";
|
|
715
|
+
}, {
|
|
716
|
+
readonly indexed: false;
|
|
717
|
+
readonly name: "active";
|
|
718
|
+
readonly type: "bool";
|
|
719
|
+
}];
|
|
720
|
+
readonly name: "ChangePaymentState";
|
|
721
|
+
readonly type: "event";
|
|
722
|
+
}, {
|
|
723
|
+
readonly anonymous: false;
|
|
724
|
+
readonly inputs: readonly [{
|
|
725
|
+
readonly indexed: false;
|
|
726
|
+
readonly name: "newDuration";
|
|
727
|
+
readonly type: "uint64";
|
|
728
|
+
}];
|
|
729
|
+
readonly name: "ChangePeriodDuration";
|
|
730
|
+
readonly type: "event";
|
|
731
|
+
}, {
|
|
732
|
+
readonly anonymous: false;
|
|
733
|
+
readonly inputs: readonly [{
|
|
734
|
+
readonly indexed: false;
|
|
735
|
+
readonly name: "paymentId";
|
|
736
|
+
readonly type: "uint256";
|
|
737
|
+
}];
|
|
738
|
+
readonly name: "PaymentFailure";
|
|
739
|
+
readonly type: "event";
|
|
740
|
+
}, {
|
|
741
|
+
readonly anonymous: false;
|
|
742
|
+
readonly inputs: readonly [{
|
|
743
|
+
readonly indexed: true;
|
|
744
|
+
readonly name: "executor";
|
|
745
|
+
readonly type: "address";
|
|
746
|
+
}, {
|
|
747
|
+
readonly indexed: false;
|
|
748
|
+
readonly name: "script";
|
|
749
|
+
readonly type: "bytes";
|
|
750
|
+
}, {
|
|
751
|
+
readonly indexed: false;
|
|
752
|
+
readonly name: "input";
|
|
753
|
+
readonly type: "bytes";
|
|
754
|
+
}, {
|
|
755
|
+
readonly indexed: false;
|
|
756
|
+
readonly name: "returnData";
|
|
757
|
+
readonly type: "bytes";
|
|
758
|
+
}];
|
|
759
|
+
readonly name: "ScriptResult";
|
|
760
|
+
readonly type: "event";
|
|
761
|
+
}, {
|
|
762
|
+
readonly anonymous: false;
|
|
763
|
+
readonly inputs: readonly [{
|
|
764
|
+
readonly indexed: true;
|
|
765
|
+
readonly name: "vault";
|
|
766
|
+
readonly type: "address";
|
|
767
|
+
}, {
|
|
768
|
+
readonly indexed: true;
|
|
769
|
+
readonly name: "token";
|
|
770
|
+
readonly type: "address";
|
|
771
|
+
}, {
|
|
772
|
+
readonly indexed: false;
|
|
773
|
+
readonly name: "amount";
|
|
774
|
+
readonly type: "uint256";
|
|
775
|
+
}];
|
|
776
|
+
readonly name: "RecoverToVault";
|
|
777
|
+
readonly type: "event";
|
|
778
|
+
}];
|
|
779
|
+
/**
|
|
780
|
+
* Type-safe ABI for Finance_json
|
|
781
|
+
*/
|
|
782
|
+
export type Finance_jsonAbi = typeof Finance_jsonAbi;
|
|
783
|
+
/**
|
|
784
|
+
* Contract instance type for Finance_json
|
|
785
|
+
*/
|
|
786
|
+
export type Finance_jsonContract = any;
|
|
787
|
+
/**
|
|
788
|
+
* Finance_json Contract Class
|
|
789
|
+
*
|
|
790
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
791
|
+
*
|
|
792
|
+
* @example
|
|
793
|
+
* ```typescript
|
|
794
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
795
|
+
* import { mainnet } from 'viem/chains';
|
|
796
|
+
* import { Finance_json } from 'Finance_json';
|
|
797
|
+
*
|
|
798
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
799
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
800
|
+
*
|
|
801
|
+
* const contract = new Finance_json('0x...', { publicClient, walletClient });
|
|
802
|
+
*
|
|
803
|
+
* // Read functions
|
|
804
|
+
* const result = await contract.balanceOf('0x...');
|
|
805
|
+
*
|
|
806
|
+
* // Write functions
|
|
807
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
808
|
+
*
|
|
809
|
+
* // Simulate transactions (dry-run)
|
|
810
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
811
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
812
|
+
*
|
|
813
|
+
* // Watch events
|
|
814
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
815
|
+
* console.log('Transfer event:', event);
|
|
816
|
+
* });
|
|
817
|
+
* ```
|
|
818
|
+
*/
|
|
819
|
+
export declare class Finance_json {
|
|
820
|
+
private contract;
|
|
821
|
+
private contractAddress;
|
|
822
|
+
private publicClient;
|
|
823
|
+
constructor(address: Address, clients: {
|
|
824
|
+
publicClient: PublicClient;
|
|
825
|
+
walletClient?: WalletClient;
|
|
826
|
+
});
|
|
827
|
+
/**
|
|
828
|
+
* Get the contract address
|
|
829
|
+
*/
|
|
830
|
+
get address(): Address;
|
|
831
|
+
/**
|
|
832
|
+
* Get the underlying viem contract instance
|
|
833
|
+
*/
|
|
834
|
+
getContract(): Finance_jsonContract;
|
|
835
|
+
/**
|
|
836
|
+
* hasInitialized
|
|
837
|
+
* view
|
|
838
|
+
*/
|
|
839
|
+
hasInitialized(): Promise<boolean>;
|
|
840
|
+
/**
|
|
841
|
+
* CREATE_PAYMENTS_ROLE
|
|
842
|
+
* view
|
|
843
|
+
*/
|
|
844
|
+
CREATE_PAYMENTS_ROLE(): Promise<`0x${string}`>;
|
|
845
|
+
/**
|
|
846
|
+
* getBudget
|
|
847
|
+
* view
|
|
848
|
+
*/
|
|
849
|
+
getBudget(_token: `0x${string}`): Promise<[bigint, boolean]>;
|
|
850
|
+
/**
|
|
851
|
+
* getEVMScriptExecutor
|
|
852
|
+
* view
|
|
853
|
+
*/
|
|
854
|
+
getEVMScriptExecutor(_script: `0x${string}`): Promise<`0x${string}`>;
|
|
855
|
+
/**
|
|
856
|
+
* getPayment
|
|
857
|
+
* view
|
|
858
|
+
*/
|
|
859
|
+
getPayment(_paymentId: bigint): Promise<[`0x${string}`, `0x${string}`, bigint, bigint, bigint, bigint, boolean, bigint, `0x${string}`]>;
|
|
860
|
+
/**
|
|
861
|
+
* getRecoveryVault
|
|
862
|
+
* view
|
|
863
|
+
*/
|
|
864
|
+
getRecoveryVault(): Promise<`0x${string}`>;
|
|
865
|
+
/**
|
|
866
|
+
* getTransaction
|
|
867
|
+
* view
|
|
868
|
+
*/
|
|
869
|
+
getTransaction(_transactionId: bigint): Promise<[bigint, bigint, bigint, bigint, `0x${string}`, `0x${string}`, boolean, bigint]>;
|
|
870
|
+
/**
|
|
871
|
+
* CHANGE_PERIOD_ROLE
|
|
872
|
+
* view
|
|
873
|
+
*/
|
|
874
|
+
CHANGE_PERIOD_ROLE(): Promise<`0x${string}`>;
|
|
875
|
+
/**
|
|
876
|
+
* CHANGE_BUDGETS_ROLE
|
|
877
|
+
* view
|
|
878
|
+
*/
|
|
879
|
+
CHANGE_BUDGETS_ROLE(): Promise<`0x${string}`>;
|
|
880
|
+
/**
|
|
881
|
+
* getPeriod
|
|
882
|
+
* view
|
|
883
|
+
*/
|
|
884
|
+
getPeriod(_periodId: bigint): Promise<[boolean, bigint, bigint, bigint, bigint]>;
|
|
885
|
+
/**
|
|
886
|
+
* periodsLength
|
|
887
|
+
* view
|
|
888
|
+
*/
|
|
889
|
+
periodsLength(): Promise<bigint>;
|
|
890
|
+
/**
|
|
891
|
+
* allowRecoverability
|
|
892
|
+
* view
|
|
893
|
+
*/
|
|
894
|
+
allowRecoverability(arg0: `0x${string}`): Promise<boolean>;
|
|
895
|
+
/**
|
|
896
|
+
* appId
|
|
897
|
+
* view
|
|
898
|
+
*/
|
|
899
|
+
appId(): Promise<`0x${string}`>;
|
|
900
|
+
/**
|
|
901
|
+
* getInitializationBlock
|
|
902
|
+
* view
|
|
903
|
+
*/
|
|
904
|
+
getInitializationBlock(): Promise<bigint>;
|
|
905
|
+
/**
|
|
906
|
+
* EXECUTE_PAYMENTS_ROLE
|
|
907
|
+
* view
|
|
908
|
+
*/
|
|
909
|
+
EXECUTE_PAYMENTS_ROLE(): Promise<`0x${string}`>;
|
|
910
|
+
/**
|
|
911
|
+
* currentPeriodId
|
|
912
|
+
* view
|
|
913
|
+
*/
|
|
914
|
+
currentPeriodId(): Promise<bigint>;
|
|
915
|
+
/**
|
|
916
|
+
* canPerform
|
|
917
|
+
* view
|
|
918
|
+
*/
|
|
919
|
+
canPerform(_sender: `0x${string}`, _role: `0x${string}`, _params: bigint[]): Promise<boolean>;
|
|
920
|
+
/**
|
|
921
|
+
* getEVMScriptRegistry
|
|
922
|
+
* view
|
|
923
|
+
*/
|
|
924
|
+
getEVMScriptRegistry(): Promise<`0x${string}`>;
|
|
925
|
+
/**
|
|
926
|
+
* getPeriodDuration
|
|
927
|
+
* view
|
|
928
|
+
*/
|
|
929
|
+
getPeriodDuration(): Promise<bigint>;
|
|
930
|
+
/**
|
|
931
|
+
* nextPaymentTime
|
|
932
|
+
* view
|
|
933
|
+
*/
|
|
934
|
+
nextPaymentTime(_paymentId: bigint): Promise<bigint>;
|
|
935
|
+
/**
|
|
936
|
+
* getPeriodTokenStatement
|
|
937
|
+
* view
|
|
938
|
+
*/
|
|
939
|
+
getPeriodTokenStatement(_periodId: bigint, _token: `0x${string}`): Promise<[bigint, bigint]>;
|
|
940
|
+
/**
|
|
941
|
+
* kernel
|
|
942
|
+
* view
|
|
943
|
+
*/
|
|
944
|
+
kernel(): Promise<`0x${string}`>;
|
|
945
|
+
/**
|
|
946
|
+
* paymentsNextIndex
|
|
947
|
+
* view
|
|
948
|
+
*/
|
|
949
|
+
paymentsNextIndex(): Promise<bigint>;
|
|
950
|
+
/**
|
|
951
|
+
* isPetrified
|
|
952
|
+
* view
|
|
953
|
+
*/
|
|
954
|
+
isPetrified(): Promise<boolean>;
|
|
955
|
+
/**
|
|
956
|
+
* canMakePayment
|
|
957
|
+
* view
|
|
958
|
+
*/
|
|
959
|
+
canMakePayment(_token: `0x${string}`, _amount: bigint): Promise<boolean>;
|
|
960
|
+
/**
|
|
961
|
+
* MANAGE_PAYMENTS_ROLE
|
|
962
|
+
* view
|
|
963
|
+
*/
|
|
964
|
+
MANAGE_PAYMENTS_ROLE(): Promise<`0x${string}`>;
|
|
965
|
+
/**
|
|
966
|
+
* transactionsNextIndex
|
|
967
|
+
* view
|
|
968
|
+
*/
|
|
969
|
+
transactionsNextIndex(): Promise<bigint>;
|
|
970
|
+
/**
|
|
971
|
+
* getRemainingBudget
|
|
972
|
+
* view
|
|
973
|
+
*/
|
|
974
|
+
getRemainingBudget(_token: `0x${string}`): Promise<bigint>;
|
|
975
|
+
/**
|
|
976
|
+
* vault
|
|
977
|
+
* view
|
|
978
|
+
*/
|
|
979
|
+
vault(): Promise<`0x${string}`>;
|
|
980
|
+
/**
|
|
981
|
+
* newScheduledPayment
|
|
982
|
+
* nonpayable
|
|
983
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
984
|
+
*/
|
|
985
|
+
newScheduledPayment(_token: `0x${string}`, _receiver: `0x${string}`, _amount: bigint, _initialPaymentTime: bigint, _interval: bigint, _maxExecutions: bigint, _reference: string, options?: {
|
|
986
|
+
accessList?: import('viem').AccessList;
|
|
987
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
988
|
+
chain?: import('viem').Chain | null;
|
|
989
|
+
dataSuffix?: `0x${string}`;
|
|
990
|
+
gas?: bigint;
|
|
991
|
+
gasPrice?: bigint;
|
|
992
|
+
maxFeePerGas?: bigint;
|
|
993
|
+
maxPriorityFeePerGas?: bigint;
|
|
994
|
+
nonce?: number;
|
|
995
|
+
value?: bigint;
|
|
996
|
+
}): Promise<`0x${string}`>;
|
|
997
|
+
/**
|
|
998
|
+
* executePayment
|
|
999
|
+
* nonpayable
|
|
1000
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1001
|
+
*/
|
|
1002
|
+
executePayment(_paymentId: bigint, options?: {
|
|
1003
|
+
accessList?: import('viem').AccessList;
|
|
1004
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1005
|
+
chain?: import('viem').Chain | null;
|
|
1006
|
+
dataSuffix?: `0x${string}`;
|
|
1007
|
+
gas?: bigint;
|
|
1008
|
+
gasPrice?: bigint;
|
|
1009
|
+
maxFeePerGas?: bigint;
|
|
1010
|
+
maxPriorityFeePerGas?: bigint;
|
|
1011
|
+
nonce?: number;
|
|
1012
|
+
value?: bigint;
|
|
1013
|
+
}): Promise<`0x${string}`>;
|
|
1014
|
+
/**
|
|
1015
|
+
* initialize
|
|
1016
|
+
* nonpayable
|
|
1017
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1018
|
+
*/
|
|
1019
|
+
initialize(_vault: `0x${string}`, _periodDuration: bigint, options?: {
|
|
1020
|
+
accessList?: import('viem').AccessList;
|
|
1021
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1022
|
+
chain?: import('viem').Chain | null;
|
|
1023
|
+
dataSuffix?: `0x${string}`;
|
|
1024
|
+
gas?: bigint;
|
|
1025
|
+
gasPrice?: bigint;
|
|
1026
|
+
maxFeePerGas?: bigint;
|
|
1027
|
+
maxPriorityFeePerGas?: bigint;
|
|
1028
|
+
nonce?: number;
|
|
1029
|
+
value?: bigint;
|
|
1030
|
+
}): Promise<`0x${string}`>;
|
|
1031
|
+
/**
|
|
1032
|
+
* removeBudget
|
|
1033
|
+
* nonpayable
|
|
1034
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1035
|
+
*/
|
|
1036
|
+
removeBudget(_token: `0x${string}`, options?: {
|
|
1037
|
+
accessList?: import('viem').AccessList;
|
|
1038
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1039
|
+
chain?: import('viem').Chain | null;
|
|
1040
|
+
dataSuffix?: `0x${string}`;
|
|
1041
|
+
gas?: bigint;
|
|
1042
|
+
gasPrice?: bigint;
|
|
1043
|
+
maxFeePerGas?: bigint;
|
|
1044
|
+
maxPriorityFeePerGas?: bigint;
|
|
1045
|
+
nonce?: number;
|
|
1046
|
+
value?: bigint;
|
|
1047
|
+
}): Promise<`0x${string}`>;
|
|
1048
|
+
/**
|
|
1049
|
+
* setPaymentStatus
|
|
1050
|
+
* nonpayable
|
|
1051
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1052
|
+
*/
|
|
1053
|
+
setPaymentStatus(_paymentId: bigint, _active: boolean, options?: {
|
|
1054
|
+
accessList?: import('viem').AccessList;
|
|
1055
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1056
|
+
chain?: import('viem').Chain | null;
|
|
1057
|
+
dataSuffix?: `0x${string}`;
|
|
1058
|
+
gas?: bigint;
|
|
1059
|
+
gasPrice?: bigint;
|
|
1060
|
+
maxFeePerGas?: bigint;
|
|
1061
|
+
maxPriorityFeePerGas?: bigint;
|
|
1062
|
+
nonce?: number;
|
|
1063
|
+
value?: bigint;
|
|
1064
|
+
}): Promise<`0x${string}`>;
|
|
1065
|
+
/**
|
|
1066
|
+
* receiverExecutePayment
|
|
1067
|
+
* nonpayable
|
|
1068
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1069
|
+
*/
|
|
1070
|
+
receiverExecutePayment(_paymentId: bigint, options?: {
|
|
1071
|
+
accessList?: import('viem').AccessList;
|
|
1072
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1073
|
+
chain?: import('viem').Chain | null;
|
|
1074
|
+
dataSuffix?: `0x${string}`;
|
|
1075
|
+
gas?: bigint;
|
|
1076
|
+
gasPrice?: bigint;
|
|
1077
|
+
maxFeePerGas?: bigint;
|
|
1078
|
+
maxPriorityFeePerGas?: bigint;
|
|
1079
|
+
nonce?: number;
|
|
1080
|
+
value?: bigint;
|
|
1081
|
+
}): Promise<`0x${string}`>;
|
|
1082
|
+
/**
|
|
1083
|
+
* setPeriodDuration
|
|
1084
|
+
* nonpayable
|
|
1085
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1086
|
+
*/
|
|
1087
|
+
setPeriodDuration(_periodDuration: bigint, options?: {
|
|
1088
|
+
accessList?: import('viem').AccessList;
|
|
1089
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1090
|
+
chain?: import('viem').Chain | null;
|
|
1091
|
+
dataSuffix?: `0x${string}`;
|
|
1092
|
+
gas?: bigint;
|
|
1093
|
+
gasPrice?: bigint;
|
|
1094
|
+
maxFeePerGas?: bigint;
|
|
1095
|
+
maxPriorityFeePerGas?: bigint;
|
|
1096
|
+
nonce?: number;
|
|
1097
|
+
value?: bigint;
|
|
1098
|
+
}): Promise<`0x${string}`>;
|
|
1099
|
+
/**
|
|
1100
|
+
* setBudget
|
|
1101
|
+
* nonpayable
|
|
1102
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1103
|
+
*/
|
|
1104
|
+
setBudget(_token: `0x${string}`, _amount: bigint, options?: {
|
|
1105
|
+
accessList?: import('viem').AccessList;
|
|
1106
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1107
|
+
chain?: import('viem').Chain | null;
|
|
1108
|
+
dataSuffix?: `0x${string}`;
|
|
1109
|
+
gas?: bigint;
|
|
1110
|
+
gasPrice?: bigint;
|
|
1111
|
+
maxFeePerGas?: bigint;
|
|
1112
|
+
maxPriorityFeePerGas?: bigint;
|
|
1113
|
+
nonce?: number;
|
|
1114
|
+
value?: bigint;
|
|
1115
|
+
}): Promise<`0x${string}`>;
|
|
1116
|
+
/**
|
|
1117
|
+
* recoverToVault
|
|
1118
|
+
* nonpayable
|
|
1119
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1120
|
+
*/
|
|
1121
|
+
recoverToVault(_token: `0x${string}`, options?: {
|
|
1122
|
+
accessList?: import('viem').AccessList;
|
|
1123
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1124
|
+
chain?: import('viem').Chain | null;
|
|
1125
|
+
dataSuffix?: `0x${string}`;
|
|
1126
|
+
gas?: bigint;
|
|
1127
|
+
gasPrice?: bigint;
|
|
1128
|
+
maxFeePerGas?: bigint;
|
|
1129
|
+
maxPriorityFeePerGas?: bigint;
|
|
1130
|
+
nonce?: number;
|
|
1131
|
+
value?: bigint;
|
|
1132
|
+
}): Promise<`0x${string}`>;
|
|
1133
|
+
/**
|
|
1134
|
+
* transferToVault
|
|
1135
|
+
* nonpayable
|
|
1136
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1137
|
+
*/
|
|
1138
|
+
transferToVault(_token: `0x${string}`, options?: {
|
|
1139
|
+
accessList?: import('viem').AccessList;
|
|
1140
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1141
|
+
chain?: import('viem').Chain | null;
|
|
1142
|
+
dataSuffix?: `0x${string}`;
|
|
1143
|
+
gas?: bigint;
|
|
1144
|
+
gasPrice?: bigint;
|
|
1145
|
+
maxFeePerGas?: bigint;
|
|
1146
|
+
maxPriorityFeePerGas?: bigint;
|
|
1147
|
+
nonce?: number;
|
|
1148
|
+
value?: bigint;
|
|
1149
|
+
}): Promise<`0x${string}`>;
|
|
1150
|
+
/**
|
|
1151
|
+
* tryTransitionAccountingPeriod
|
|
1152
|
+
* nonpayable
|
|
1153
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1154
|
+
*/
|
|
1155
|
+
tryTransitionAccountingPeriod(_maxTransitions: bigint, options?: {
|
|
1156
|
+
accessList?: import('viem').AccessList;
|
|
1157
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1158
|
+
chain?: import('viem').Chain | null;
|
|
1159
|
+
dataSuffix?: `0x${string}`;
|
|
1160
|
+
gas?: bigint;
|
|
1161
|
+
gasPrice?: bigint;
|
|
1162
|
+
maxFeePerGas?: bigint;
|
|
1163
|
+
maxPriorityFeePerGas?: bigint;
|
|
1164
|
+
nonce?: number;
|
|
1165
|
+
value?: bigint;
|
|
1166
|
+
}): Promise<`0x${string}`>;
|
|
1167
|
+
/**
|
|
1168
|
+
* deposit
|
|
1169
|
+
* payable
|
|
1170
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1171
|
+
*/
|
|
1172
|
+
deposit(_token: `0x${string}`, _amount: bigint, _reference: string, options?: {
|
|
1173
|
+
accessList?: import('viem').AccessList;
|
|
1174
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1175
|
+
chain?: import('viem').Chain | null;
|
|
1176
|
+
dataSuffix?: `0x${string}`;
|
|
1177
|
+
gas?: bigint;
|
|
1178
|
+
gasPrice?: bigint;
|
|
1179
|
+
maxFeePerGas?: bigint;
|
|
1180
|
+
maxPriorityFeePerGas?: bigint;
|
|
1181
|
+
nonce?: number;
|
|
1182
|
+
value?: bigint;
|
|
1183
|
+
}): Promise<`0x${string}`>;
|
|
1184
|
+
/**
|
|
1185
|
+
* newImmediatePayment
|
|
1186
|
+
* nonpayable
|
|
1187
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1188
|
+
*/
|
|
1189
|
+
newImmediatePayment(_token: `0x${string}`, _receiver: `0x${string}`, _amount: bigint, _reference: string, options?: {
|
|
1190
|
+
accessList?: import('viem').AccessList;
|
|
1191
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1192
|
+
chain?: import('viem').Chain | null;
|
|
1193
|
+
dataSuffix?: `0x${string}`;
|
|
1194
|
+
gas?: bigint;
|
|
1195
|
+
gasPrice?: bigint;
|
|
1196
|
+
maxFeePerGas?: bigint;
|
|
1197
|
+
maxPriorityFeePerGas?: bigint;
|
|
1198
|
+
nonce?: number;
|
|
1199
|
+
value?: bigint;
|
|
1200
|
+
}): Promise<`0x${string}`>;
|
|
1201
|
+
/**
|
|
1202
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
1203
|
+
*
|
|
1204
|
+
* @example
|
|
1205
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
1206
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
1207
|
+
* console.log('Would succeed:', result.result);
|
|
1208
|
+
*/
|
|
1209
|
+
get simulate(): {
|
|
1210
|
+
/**
|
|
1211
|
+
* Simulate newScheduledPayment
|
|
1212
|
+
* Returns gas estimate and result without sending transaction
|
|
1213
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1214
|
+
*/
|
|
1215
|
+
newScheduledPayment(_token: `0x${string}`, _receiver: `0x${string}`, _amount: bigint, _initialPaymentTime: bigint, _interval: bigint, _maxExecutions: bigint, _reference: string, options?: {
|
|
1216
|
+
accessList?: import("viem").AccessList;
|
|
1217
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1218
|
+
chain?: import("viem").Chain | null;
|
|
1219
|
+
dataSuffix?: `0x${string}`;
|
|
1220
|
+
gas?: bigint;
|
|
1221
|
+
gasPrice?: bigint;
|
|
1222
|
+
maxFeePerGas?: bigint;
|
|
1223
|
+
maxPriorityFeePerGas?: bigint;
|
|
1224
|
+
nonce?: number;
|
|
1225
|
+
value?: bigint;
|
|
1226
|
+
}): Promise<bigint>;
|
|
1227
|
+
/**
|
|
1228
|
+
* Simulate executePayment
|
|
1229
|
+
* Returns gas estimate and result without sending transaction
|
|
1230
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1231
|
+
*/
|
|
1232
|
+
executePayment(_paymentId: bigint, options?: {
|
|
1233
|
+
accessList?: import("viem").AccessList;
|
|
1234
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1235
|
+
chain?: import("viem").Chain | null;
|
|
1236
|
+
dataSuffix?: `0x${string}`;
|
|
1237
|
+
gas?: bigint;
|
|
1238
|
+
gasPrice?: bigint;
|
|
1239
|
+
maxFeePerGas?: bigint;
|
|
1240
|
+
maxPriorityFeePerGas?: bigint;
|
|
1241
|
+
nonce?: number;
|
|
1242
|
+
value?: bigint;
|
|
1243
|
+
}): Promise<void>;
|
|
1244
|
+
/**
|
|
1245
|
+
* Simulate initialize
|
|
1246
|
+
* Returns gas estimate and result without sending transaction
|
|
1247
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1248
|
+
*/
|
|
1249
|
+
initialize(_vault: `0x${string}`, _periodDuration: bigint, options?: {
|
|
1250
|
+
accessList?: import("viem").AccessList;
|
|
1251
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1252
|
+
chain?: import("viem").Chain | null;
|
|
1253
|
+
dataSuffix?: `0x${string}`;
|
|
1254
|
+
gas?: bigint;
|
|
1255
|
+
gasPrice?: bigint;
|
|
1256
|
+
maxFeePerGas?: bigint;
|
|
1257
|
+
maxPriorityFeePerGas?: bigint;
|
|
1258
|
+
nonce?: number;
|
|
1259
|
+
value?: bigint;
|
|
1260
|
+
}): Promise<void>;
|
|
1261
|
+
/**
|
|
1262
|
+
* Simulate removeBudget
|
|
1263
|
+
* Returns gas estimate and result without sending transaction
|
|
1264
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1265
|
+
*/
|
|
1266
|
+
removeBudget(_token: `0x${string}`, options?: {
|
|
1267
|
+
accessList?: import("viem").AccessList;
|
|
1268
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1269
|
+
chain?: import("viem").Chain | null;
|
|
1270
|
+
dataSuffix?: `0x${string}`;
|
|
1271
|
+
gas?: bigint;
|
|
1272
|
+
gasPrice?: bigint;
|
|
1273
|
+
maxFeePerGas?: bigint;
|
|
1274
|
+
maxPriorityFeePerGas?: bigint;
|
|
1275
|
+
nonce?: number;
|
|
1276
|
+
value?: bigint;
|
|
1277
|
+
}): Promise<void>;
|
|
1278
|
+
/**
|
|
1279
|
+
* Simulate setPaymentStatus
|
|
1280
|
+
* Returns gas estimate and result without sending transaction
|
|
1281
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1282
|
+
*/
|
|
1283
|
+
setPaymentStatus(_paymentId: bigint, _active: boolean, options?: {
|
|
1284
|
+
accessList?: import("viem").AccessList;
|
|
1285
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1286
|
+
chain?: import("viem").Chain | null;
|
|
1287
|
+
dataSuffix?: `0x${string}`;
|
|
1288
|
+
gas?: bigint;
|
|
1289
|
+
gasPrice?: bigint;
|
|
1290
|
+
maxFeePerGas?: bigint;
|
|
1291
|
+
maxPriorityFeePerGas?: bigint;
|
|
1292
|
+
nonce?: number;
|
|
1293
|
+
value?: bigint;
|
|
1294
|
+
}): Promise<void>;
|
|
1295
|
+
/**
|
|
1296
|
+
* Simulate receiverExecutePayment
|
|
1297
|
+
* Returns gas estimate and result without sending transaction
|
|
1298
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1299
|
+
*/
|
|
1300
|
+
receiverExecutePayment(_paymentId: bigint, options?: {
|
|
1301
|
+
accessList?: import("viem").AccessList;
|
|
1302
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1303
|
+
chain?: import("viem").Chain | null;
|
|
1304
|
+
dataSuffix?: `0x${string}`;
|
|
1305
|
+
gas?: bigint;
|
|
1306
|
+
gasPrice?: bigint;
|
|
1307
|
+
maxFeePerGas?: bigint;
|
|
1308
|
+
maxPriorityFeePerGas?: bigint;
|
|
1309
|
+
nonce?: number;
|
|
1310
|
+
value?: bigint;
|
|
1311
|
+
}): Promise<void>;
|
|
1312
|
+
/**
|
|
1313
|
+
* Simulate setPeriodDuration
|
|
1314
|
+
* Returns gas estimate and result without sending transaction
|
|
1315
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1316
|
+
*/
|
|
1317
|
+
setPeriodDuration(_periodDuration: bigint, options?: {
|
|
1318
|
+
accessList?: import("viem").AccessList;
|
|
1319
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1320
|
+
chain?: import("viem").Chain | null;
|
|
1321
|
+
dataSuffix?: `0x${string}`;
|
|
1322
|
+
gas?: bigint;
|
|
1323
|
+
gasPrice?: bigint;
|
|
1324
|
+
maxFeePerGas?: bigint;
|
|
1325
|
+
maxPriorityFeePerGas?: bigint;
|
|
1326
|
+
nonce?: number;
|
|
1327
|
+
value?: bigint;
|
|
1328
|
+
}): Promise<void>;
|
|
1329
|
+
/**
|
|
1330
|
+
* Simulate setBudget
|
|
1331
|
+
* Returns gas estimate and result without sending transaction
|
|
1332
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1333
|
+
*/
|
|
1334
|
+
setBudget(_token: `0x${string}`, _amount: bigint, options?: {
|
|
1335
|
+
accessList?: import("viem").AccessList;
|
|
1336
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1337
|
+
chain?: import("viem").Chain | null;
|
|
1338
|
+
dataSuffix?: `0x${string}`;
|
|
1339
|
+
gas?: bigint;
|
|
1340
|
+
gasPrice?: bigint;
|
|
1341
|
+
maxFeePerGas?: bigint;
|
|
1342
|
+
maxPriorityFeePerGas?: bigint;
|
|
1343
|
+
nonce?: number;
|
|
1344
|
+
value?: bigint;
|
|
1345
|
+
}): Promise<void>;
|
|
1346
|
+
/**
|
|
1347
|
+
* Simulate recoverToVault
|
|
1348
|
+
* Returns gas estimate and result without sending transaction
|
|
1349
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1350
|
+
*/
|
|
1351
|
+
recoverToVault(_token: `0x${string}`, options?: {
|
|
1352
|
+
accessList?: import("viem").AccessList;
|
|
1353
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1354
|
+
chain?: import("viem").Chain | null;
|
|
1355
|
+
dataSuffix?: `0x${string}`;
|
|
1356
|
+
gas?: bigint;
|
|
1357
|
+
gasPrice?: bigint;
|
|
1358
|
+
maxFeePerGas?: bigint;
|
|
1359
|
+
maxPriorityFeePerGas?: bigint;
|
|
1360
|
+
nonce?: number;
|
|
1361
|
+
value?: bigint;
|
|
1362
|
+
}): Promise<void>;
|
|
1363
|
+
/**
|
|
1364
|
+
* Simulate transferToVault
|
|
1365
|
+
* Returns gas estimate and result without sending transaction
|
|
1366
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1367
|
+
*/
|
|
1368
|
+
transferToVault(_token: `0x${string}`, options?: {
|
|
1369
|
+
accessList?: import("viem").AccessList;
|
|
1370
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1371
|
+
chain?: import("viem").Chain | null;
|
|
1372
|
+
dataSuffix?: `0x${string}`;
|
|
1373
|
+
gas?: bigint;
|
|
1374
|
+
gasPrice?: bigint;
|
|
1375
|
+
maxFeePerGas?: bigint;
|
|
1376
|
+
maxPriorityFeePerGas?: bigint;
|
|
1377
|
+
nonce?: number;
|
|
1378
|
+
value?: bigint;
|
|
1379
|
+
}): Promise<void>;
|
|
1380
|
+
/**
|
|
1381
|
+
* Simulate tryTransitionAccountingPeriod
|
|
1382
|
+
* Returns gas estimate and result without sending transaction
|
|
1383
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1384
|
+
*/
|
|
1385
|
+
tryTransitionAccountingPeriod(_maxTransitions: bigint, options?: {
|
|
1386
|
+
accessList?: import("viem").AccessList;
|
|
1387
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1388
|
+
chain?: import("viem").Chain | null;
|
|
1389
|
+
dataSuffix?: `0x${string}`;
|
|
1390
|
+
gas?: bigint;
|
|
1391
|
+
gasPrice?: bigint;
|
|
1392
|
+
maxFeePerGas?: bigint;
|
|
1393
|
+
maxPriorityFeePerGas?: bigint;
|
|
1394
|
+
nonce?: number;
|
|
1395
|
+
value?: bigint;
|
|
1396
|
+
}): Promise<boolean>;
|
|
1397
|
+
/**
|
|
1398
|
+
* Simulate deposit
|
|
1399
|
+
* Returns gas estimate and result without sending transaction
|
|
1400
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1401
|
+
*/
|
|
1402
|
+
deposit(_token: `0x${string}`, _amount: bigint, _reference: string, options?: {
|
|
1403
|
+
accessList?: import("viem").AccessList;
|
|
1404
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1405
|
+
chain?: import("viem").Chain | null;
|
|
1406
|
+
dataSuffix?: `0x${string}`;
|
|
1407
|
+
gas?: bigint;
|
|
1408
|
+
gasPrice?: bigint;
|
|
1409
|
+
maxFeePerGas?: bigint;
|
|
1410
|
+
maxPriorityFeePerGas?: bigint;
|
|
1411
|
+
nonce?: number;
|
|
1412
|
+
value?: bigint;
|
|
1413
|
+
}): Promise<void>;
|
|
1414
|
+
/**
|
|
1415
|
+
* Simulate newImmediatePayment
|
|
1416
|
+
* Returns gas estimate and result without sending transaction
|
|
1417
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1418
|
+
*/
|
|
1419
|
+
newImmediatePayment(_token: `0x${string}`, _receiver: `0x${string}`, _amount: bigint, _reference: string, options?: {
|
|
1420
|
+
accessList?: import("viem").AccessList;
|
|
1421
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1422
|
+
chain?: import("viem").Chain | null;
|
|
1423
|
+
dataSuffix?: `0x${string}`;
|
|
1424
|
+
gas?: bigint;
|
|
1425
|
+
gasPrice?: bigint;
|
|
1426
|
+
maxFeePerGas?: bigint;
|
|
1427
|
+
maxPriorityFeePerGas?: bigint;
|
|
1428
|
+
nonce?: number;
|
|
1429
|
+
value?: bigint;
|
|
1430
|
+
}): Promise<void>;
|
|
1431
|
+
};
|
|
1432
|
+
/**
|
|
1433
|
+
* Watch contract events
|
|
1434
|
+
*
|
|
1435
|
+
* @example
|
|
1436
|
+
* // Watch all Transfer events
|
|
1437
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
1438
|
+
* console.log('Transfer:', event);
|
|
1439
|
+
* });
|
|
1440
|
+
*
|
|
1441
|
+
* // Stop watching
|
|
1442
|
+
* unwatch();
|
|
1443
|
+
*/
|
|
1444
|
+
get watch(): {
|
|
1445
|
+
/**
|
|
1446
|
+
* Watch NewPeriod events
|
|
1447
|
+
* @param callback Function to call when event is emitted
|
|
1448
|
+
* @param filter Optional filter for indexed parameters
|
|
1449
|
+
* @returns Unwatch function to stop listening
|
|
1450
|
+
*/
|
|
1451
|
+
NewPeriod: (callback: (event: {
|
|
1452
|
+
periodId: bigint;
|
|
1453
|
+
periodStarts: bigint;
|
|
1454
|
+
periodEnds: bigint;
|
|
1455
|
+
}) => void, filter?: {
|
|
1456
|
+
periodId: bigint;
|
|
1457
|
+
}) => () => void;
|
|
1458
|
+
/**
|
|
1459
|
+
* Watch SetBudget events
|
|
1460
|
+
* @param callback Function to call when event is emitted
|
|
1461
|
+
* @param filter Optional filter for indexed parameters
|
|
1462
|
+
* @returns Unwatch function to stop listening
|
|
1463
|
+
*/
|
|
1464
|
+
SetBudget: (callback: (event: {
|
|
1465
|
+
token: `0x${string}`;
|
|
1466
|
+
amount: bigint;
|
|
1467
|
+
hasBudget: boolean;
|
|
1468
|
+
}) => void, filter?: {
|
|
1469
|
+
token: `0x${string}`;
|
|
1470
|
+
}) => () => void;
|
|
1471
|
+
/**
|
|
1472
|
+
* Watch NewPayment events
|
|
1473
|
+
* @param callback Function to call when event is emitted
|
|
1474
|
+
* @param filter Optional filter for indexed parameters
|
|
1475
|
+
* @returns Unwatch function to stop listening
|
|
1476
|
+
*/
|
|
1477
|
+
NewPayment: (callback: (event: {
|
|
1478
|
+
paymentId: bigint;
|
|
1479
|
+
recipient: `0x${string}`;
|
|
1480
|
+
maxExecutions: bigint;
|
|
1481
|
+
reference: string;
|
|
1482
|
+
}) => void, filter?: {
|
|
1483
|
+
paymentId: bigint;
|
|
1484
|
+
recipient: `0x${string}`;
|
|
1485
|
+
}) => () => void;
|
|
1486
|
+
/**
|
|
1487
|
+
* Watch NewTransaction events
|
|
1488
|
+
* @param callback Function to call when event is emitted
|
|
1489
|
+
* @param filter Optional filter for indexed parameters
|
|
1490
|
+
* @returns Unwatch function to stop listening
|
|
1491
|
+
*/
|
|
1492
|
+
NewTransaction: (callback: (event: {
|
|
1493
|
+
transactionId: bigint;
|
|
1494
|
+
entity: `0x${string}`;
|
|
1495
|
+
incoming: boolean;
|
|
1496
|
+
amount: bigint;
|
|
1497
|
+
reference: string;
|
|
1498
|
+
}) => void, filter?: {
|
|
1499
|
+
transactionId: bigint;
|
|
1500
|
+
entity: `0x${string}`;
|
|
1501
|
+
}) => () => void;
|
|
1502
|
+
/**
|
|
1503
|
+
* Watch ChangePaymentState events
|
|
1504
|
+
* @param callback Function to call when event is emitted
|
|
1505
|
+
* @param filter Optional filter for indexed parameters
|
|
1506
|
+
* @returns Unwatch function to stop listening
|
|
1507
|
+
*/
|
|
1508
|
+
ChangePaymentState: (callback: (event: {
|
|
1509
|
+
paymentId: bigint;
|
|
1510
|
+
active: boolean;
|
|
1511
|
+
}) => void, filter?: {
|
|
1512
|
+
paymentId: bigint;
|
|
1513
|
+
}) => () => void;
|
|
1514
|
+
/**
|
|
1515
|
+
* Watch ChangePeriodDuration events
|
|
1516
|
+
* @param callback Function to call when event is emitted
|
|
1517
|
+
* @param filter Optional filter for indexed parameters
|
|
1518
|
+
* @returns Unwatch function to stop listening
|
|
1519
|
+
*/
|
|
1520
|
+
ChangePeriodDuration: (callback: (event: {
|
|
1521
|
+
newDuration: bigint;
|
|
1522
|
+
}) => void) => () => void;
|
|
1523
|
+
/**
|
|
1524
|
+
* Watch PaymentFailure events
|
|
1525
|
+
* @param callback Function to call when event is emitted
|
|
1526
|
+
* @param filter Optional filter for indexed parameters
|
|
1527
|
+
* @returns Unwatch function to stop listening
|
|
1528
|
+
*/
|
|
1529
|
+
PaymentFailure: (callback: (event: {
|
|
1530
|
+
paymentId: bigint;
|
|
1531
|
+
}) => void) => () => void;
|
|
1532
|
+
/**
|
|
1533
|
+
* Watch ScriptResult events
|
|
1534
|
+
* @param callback Function to call when event is emitted
|
|
1535
|
+
* @param filter Optional filter for indexed parameters
|
|
1536
|
+
* @returns Unwatch function to stop listening
|
|
1537
|
+
*/
|
|
1538
|
+
ScriptResult: (callback: (event: {
|
|
1539
|
+
executor: `0x${string}`;
|
|
1540
|
+
script: `0x${string}`;
|
|
1541
|
+
input: `0x${string}`;
|
|
1542
|
+
returnData: `0x${string}`;
|
|
1543
|
+
}) => void, filter?: {
|
|
1544
|
+
executor: `0x${string}`;
|
|
1545
|
+
}) => () => void;
|
|
1546
|
+
/**
|
|
1547
|
+
* Watch RecoverToVault events
|
|
1548
|
+
* @param callback Function to call when event is emitted
|
|
1549
|
+
* @param filter Optional filter for indexed parameters
|
|
1550
|
+
* @returns Unwatch function to stop listening
|
|
1551
|
+
*/
|
|
1552
|
+
RecoverToVault: (callback: (event: {
|
|
1553
|
+
vault: `0x${string}`;
|
|
1554
|
+
token: `0x${string}`;
|
|
1555
|
+
amount: bigint;
|
|
1556
|
+
}) => void, filter?: {
|
|
1557
|
+
vault: `0x${string}`;
|
|
1558
|
+
token: `0x${string}`;
|
|
1559
|
+
}) => () => void;
|
|
1560
|
+
};
|
|
1561
|
+
}
|