@gitmyabi/vault 1.0.5 → 1.0.8
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/Vault_json.d.ts +929 -58
- package/contracts/Vault_json.js +1031 -98
- package/contracts/Vault_json.ts +1249 -92
- package/package.json +3 -3
|
@@ -6,18 +6,162 @@ import type { Address, PublicClient, WalletClient } from 'viem';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const Vault_jsonAbi: readonly [{
|
|
8
8
|
readonly inputs: readonly [{
|
|
9
|
-
readonly internalType: "
|
|
10
|
-
readonly name: "
|
|
11
|
-
readonly type: "
|
|
9
|
+
readonly internalType: "contract IERC721";
|
|
10
|
+
readonly name: "_nftContract";
|
|
11
|
+
readonly type: "address";
|
|
12
|
+
}, {
|
|
13
|
+
readonly internalType: "uint256";
|
|
14
|
+
readonly name: "_emergencyPenalty";
|
|
15
|
+
readonly type: "uint256";
|
|
16
|
+
}, {
|
|
17
|
+
readonly internalType: "address";
|
|
18
|
+
readonly name: "_emergencyPenaltyReceiver";
|
|
19
|
+
readonly type: "address";
|
|
20
|
+
}, {
|
|
21
|
+
readonly internalType: "uint256";
|
|
22
|
+
readonly name: "_successFee";
|
|
23
|
+
readonly type: "uint256";
|
|
24
|
+
}, {
|
|
25
|
+
readonly internalType: "address";
|
|
26
|
+
readonly name: "_successFeeReceiver";
|
|
27
|
+
readonly type: "address";
|
|
12
28
|
}];
|
|
13
29
|
readonly stateMutability: "nonpayable";
|
|
14
30
|
readonly type: "constructor";
|
|
31
|
+
}, {
|
|
32
|
+
readonly inputs: readonly [{
|
|
33
|
+
readonly internalType: "address";
|
|
34
|
+
readonly name: "owner";
|
|
35
|
+
readonly type: "address";
|
|
36
|
+
}];
|
|
37
|
+
readonly name: "OwnableInvalidOwner";
|
|
38
|
+
readonly type: "error";
|
|
39
|
+
}, {
|
|
40
|
+
readonly inputs: readonly [{
|
|
41
|
+
readonly internalType: "address";
|
|
42
|
+
readonly name: "account";
|
|
43
|
+
readonly type: "address";
|
|
44
|
+
}];
|
|
45
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
46
|
+
readonly type: "error";
|
|
47
|
+
}, {
|
|
48
|
+
readonly inputs: readonly [];
|
|
49
|
+
readonly name: "ReentrancyGuardReentrantCall";
|
|
50
|
+
readonly type: "error";
|
|
51
|
+
}, {
|
|
52
|
+
readonly inputs: readonly [{
|
|
53
|
+
readonly internalType: "address";
|
|
54
|
+
readonly name: "token";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
}];
|
|
57
|
+
readonly name: "SafeERC20FailedOperation";
|
|
58
|
+
readonly type: "error";
|
|
59
|
+
}, {
|
|
60
|
+
readonly anonymous: false;
|
|
61
|
+
readonly inputs: readonly [{
|
|
62
|
+
readonly indexed: false;
|
|
63
|
+
readonly internalType: "uint256";
|
|
64
|
+
readonly name: "uid";
|
|
65
|
+
readonly type: "uint256";
|
|
66
|
+
}, {
|
|
67
|
+
readonly indexed: false;
|
|
68
|
+
readonly internalType: "uint256";
|
|
69
|
+
readonly name: "startTimestamp";
|
|
70
|
+
readonly type: "uint256";
|
|
71
|
+
}, {
|
|
72
|
+
readonly indexed: false;
|
|
73
|
+
readonly internalType: "uint256";
|
|
74
|
+
readonly name: "endTimestamp";
|
|
75
|
+
readonly type: "uint256";
|
|
76
|
+
}, {
|
|
77
|
+
readonly indexed: false;
|
|
78
|
+
readonly internalType: "address[]";
|
|
79
|
+
readonly name: "tokens";
|
|
80
|
+
readonly type: "address[]";
|
|
81
|
+
}, {
|
|
82
|
+
readonly indexed: false;
|
|
83
|
+
readonly internalType: "uint256[]";
|
|
84
|
+
readonly name: "amounts";
|
|
85
|
+
readonly type: "uint256[]";
|
|
86
|
+
}, {
|
|
87
|
+
readonly indexed: false;
|
|
88
|
+
readonly internalType: "uint256[]";
|
|
89
|
+
readonly name: "prices";
|
|
90
|
+
readonly type: "uint256[]";
|
|
91
|
+
}, {
|
|
92
|
+
readonly indexed: false;
|
|
93
|
+
readonly internalType: "address";
|
|
94
|
+
readonly name: "receiver";
|
|
95
|
+
readonly type: "address";
|
|
96
|
+
}];
|
|
97
|
+
readonly name: "NewDeposit";
|
|
98
|
+
readonly type: "event";
|
|
15
99
|
}, {
|
|
16
100
|
readonly anonymous: false;
|
|
17
101
|
readonly inputs: readonly [{
|
|
18
102
|
readonly indexed: true;
|
|
19
103
|
readonly internalType: "address";
|
|
20
|
-
readonly name: "
|
|
104
|
+
readonly name: "previousOwner";
|
|
105
|
+
readonly type: "address";
|
|
106
|
+
}, {
|
|
107
|
+
readonly indexed: true;
|
|
108
|
+
readonly internalType: "address";
|
|
109
|
+
readonly name: "newOwner";
|
|
110
|
+
readonly type: "address";
|
|
111
|
+
}];
|
|
112
|
+
readonly name: "OwnershipTransferred";
|
|
113
|
+
readonly type: "event";
|
|
114
|
+
}, {
|
|
115
|
+
readonly anonymous: false;
|
|
116
|
+
readonly inputs: readonly [{
|
|
117
|
+
readonly indexed: false;
|
|
118
|
+
readonly internalType: "uint256";
|
|
119
|
+
readonly name: "emergencyPenalty";
|
|
120
|
+
readonly type: "uint256";
|
|
121
|
+
}];
|
|
122
|
+
readonly name: "SetEmergencyPenalty";
|
|
123
|
+
readonly type: "event";
|
|
124
|
+
}, {
|
|
125
|
+
readonly anonymous: false;
|
|
126
|
+
readonly inputs: readonly [{
|
|
127
|
+
readonly indexed: false;
|
|
128
|
+
readonly internalType: "address";
|
|
129
|
+
readonly name: "emergencyPenaltyReceiver";
|
|
130
|
+
readonly type: "address";
|
|
131
|
+
}];
|
|
132
|
+
readonly name: "SetEmergencyPenaltyReceiver";
|
|
133
|
+
readonly type: "event";
|
|
134
|
+
}, {
|
|
135
|
+
readonly anonymous: false;
|
|
136
|
+
readonly inputs: readonly [{
|
|
137
|
+
readonly indexed: false;
|
|
138
|
+
readonly internalType: "uint256";
|
|
139
|
+
readonly name: "successFee";
|
|
140
|
+
readonly type: "uint256";
|
|
141
|
+
}];
|
|
142
|
+
readonly name: "SetSuccessFee";
|
|
143
|
+
readonly type: "event";
|
|
144
|
+
}, {
|
|
145
|
+
readonly anonymous: false;
|
|
146
|
+
readonly inputs: readonly [{
|
|
147
|
+
readonly indexed: false;
|
|
148
|
+
readonly internalType: "address";
|
|
149
|
+
readonly name: "successFeeReceiver";
|
|
150
|
+
readonly type: "address";
|
|
151
|
+
}];
|
|
152
|
+
readonly name: "SetSuccessFeeReceiver";
|
|
153
|
+
readonly type: "event";
|
|
154
|
+
}, {
|
|
155
|
+
readonly anonymous: false;
|
|
156
|
+
readonly inputs: readonly [{
|
|
157
|
+
readonly indexed: false;
|
|
158
|
+
readonly internalType: "uint256";
|
|
159
|
+
readonly name: "uid";
|
|
160
|
+
readonly type: "uint256";
|
|
161
|
+
}, {
|
|
162
|
+
readonly indexed: false;
|
|
163
|
+
readonly internalType: "address";
|
|
164
|
+
readonly name: "token";
|
|
21
165
|
readonly type: "address";
|
|
22
166
|
}, {
|
|
23
167
|
readonly indexed: false;
|
|
@@ -25,36 +169,71 @@ export declare const Vault_jsonAbi: readonly [{
|
|
|
25
169
|
readonly name: "amount";
|
|
26
170
|
readonly type: "uint256";
|
|
27
171
|
}];
|
|
28
|
-
readonly name: "
|
|
172
|
+
readonly name: "SuccessFeeCharged";
|
|
173
|
+
readonly type: "event";
|
|
174
|
+
}, {
|
|
175
|
+
readonly anonymous: false;
|
|
176
|
+
readonly inputs: readonly [{
|
|
177
|
+
readonly indexed: false;
|
|
178
|
+
readonly internalType: "address";
|
|
179
|
+
readonly name: "token";
|
|
180
|
+
readonly type: "address";
|
|
181
|
+
}, {
|
|
182
|
+
readonly indexed: false;
|
|
183
|
+
readonly internalType: "address";
|
|
184
|
+
readonly name: "stateView";
|
|
185
|
+
readonly type: "address";
|
|
186
|
+
}, {
|
|
187
|
+
readonly indexed: false;
|
|
188
|
+
readonly internalType: "bytes32";
|
|
189
|
+
readonly name: "poolId";
|
|
190
|
+
readonly type: "bytes32";
|
|
191
|
+
}, {
|
|
192
|
+
readonly indexed: false;
|
|
193
|
+
readonly internalType: "bool";
|
|
194
|
+
readonly name: "isToken0";
|
|
195
|
+
readonly type: "bool";
|
|
196
|
+
}, {
|
|
197
|
+
readonly indexed: false;
|
|
198
|
+
readonly internalType: "bool";
|
|
199
|
+
readonly name: "status";
|
|
200
|
+
readonly type: "bool";
|
|
201
|
+
}];
|
|
202
|
+
readonly name: "TokenUpdated";
|
|
29
203
|
readonly type: "event";
|
|
30
204
|
}, {
|
|
31
205
|
readonly anonymous: false;
|
|
32
206
|
readonly inputs: readonly [{
|
|
33
207
|
readonly indexed: true;
|
|
34
208
|
readonly internalType: "address";
|
|
35
|
-
readonly name: "
|
|
209
|
+
readonly name: "user";
|
|
36
210
|
readonly type: "address";
|
|
37
211
|
}, {
|
|
38
212
|
readonly indexed: false;
|
|
39
213
|
readonly internalType: "uint256";
|
|
40
|
-
readonly name: "
|
|
214
|
+
readonly name: "uid";
|
|
41
215
|
readonly type: "uint256";
|
|
216
|
+
}, {
|
|
217
|
+
readonly indexed: false;
|
|
218
|
+
readonly internalType: "bool";
|
|
219
|
+
readonly name: "isEmergency";
|
|
220
|
+
readonly type: "bool";
|
|
42
221
|
}];
|
|
43
|
-
readonly name: "
|
|
222
|
+
readonly name: "Withdraw";
|
|
44
223
|
readonly type: "event";
|
|
45
224
|
}, {
|
|
46
225
|
readonly inputs: readonly [];
|
|
47
|
-
readonly name: "
|
|
226
|
+
readonly name: "FEES_DECIMALS";
|
|
48
227
|
readonly outputs: readonly [{
|
|
49
|
-
readonly internalType: "
|
|
228
|
+
readonly internalType: "uint256";
|
|
50
229
|
readonly name: "";
|
|
51
|
-
readonly type: "
|
|
230
|
+
readonly type: "uint256";
|
|
52
231
|
}];
|
|
53
232
|
readonly stateMutability: "view";
|
|
54
233
|
readonly type: "function";
|
|
55
234
|
}, {
|
|
56
235
|
readonly inputs: readonly [];
|
|
57
|
-
readonly name: "
|
|
236
|
+
readonly name: "MAX_TERM";
|
|
58
237
|
readonly outputs: readonly [{
|
|
59
238
|
readonly internalType: "uint256";
|
|
60
239
|
readonly name: "";
|
|
@@ -64,51 +243,310 @@ export declare const Vault_jsonAbi: readonly [{
|
|
|
64
243
|
readonly type: "function";
|
|
65
244
|
}, {
|
|
66
245
|
readonly inputs: readonly [];
|
|
67
|
-
readonly name: "
|
|
246
|
+
readonly name: "MAX_TOKENS_IN_DEPOSIT";
|
|
68
247
|
readonly outputs: readonly [{
|
|
248
|
+
readonly internalType: "uint256";
|
|
249
|
+
readonly name: "";
|
|
250
|
+
readonly type: "uint256";
|
|
251
|
+
}];
|
|
252
|
+
readonly stateMutability: "view";
|
|
253
|
+
readonly type: "function";
|
|
254
|
+
}, {
|
|
255
|
+
readonly inputs: readonly [{
|
|
256
|
+
readonly internalType: "address";
|
|
257
|
+
readonly name: "";
|
|
258
|
+
readonly type: "address";
|
|
259
|
+
}];
|
|
260
|
+
readonly name: "allowedTokens";
|
|
261
|
+
readonly outputs: readonly [{
|
|
262
|
+
readonly internalType: "address";
|
|
263
|
+
readonly name: "token";
|
|
264
|
+
readonly type: "address";
|
|
265
|
+
}, {
|
|
266
|
+
readonly internalType: "address";
|
|
267
|
+
readonly name: "stateView";
|
|
268
|
+
readonly type: "address";
|
|
269
|
+
}, {
|
|
270
|
+
readonly internalType: "bytes32";
|
|
271
|
+
readonly name: "poolId";
|
|
272
|
+
readonly type: "bytes32";
|
|
273
|
+
}, {
|
|
274
|
+
readonly internalType: "bool";
|
|
275
|
+
readonly name: "isToken0";
|
|
276
|
+
readonly type: "bool";
|
|
277
|
+
}, {
|
|
69
278
|
readonly internalType: "bool";
|
|
279
|
+
readonly name: "status";
|
|
280
|
+
readonly type: "bool";
|
|
281
|
+
}];
|
|
282
|
+
readonly stateMutability: "view";
|
|
283
|
+
readonly type: "function";
|
|
284
|
+
}, {
|
|
285
|
+
readonly inputs: readonly [{
|
|
286
|
+
readonly internalType: "uint256";
|
|
287
|
+
readonly name: "_newEmergencyPenalty";
|
|
288
|
+
readonly type: "uint256";
|
|
289
|
+
}];
|
|
290
|
+
readonly name: "changeEmergencyPenalty";
|
|
291
|
+
readonly outputs: readonly [];
|
|
292
|
+
readonly stateMutability: "nonpayable";
|
|
293
|
+
readonly type: "function";
|
|
294
|
+
}, {
|
|
295
|
+
readonly inputs: readonly [{
|
|
296
|
+
readonly internalType: "address";
|
|
297
|
+
readonly name: "_newEmergencyPenaltyReveiver";
|
|
298
|
+
readonly type: "address";
|
|
299
|
+
}];
|
|
300
|
+
readonly name: "changeEmergencyPenaltyReceiver";
|
|
301
|
+
readonly outputs: readonly [];
|
|
302
|
+
readonly stateMutability: "nonpayable";
|
|
303
|
+
readonly type: "function";
|
|
304
|
+
}, {
|
|
305
|
+
readonly inputs: readonly [{
|
|
306
|
+
readonly internalType: "uint256";
|
|
307
|
+
readonly name: "_newSuccessFee";
|
|
308
|
+
readonly type: "uint256";
|
|
309
|
+
}];
|
|
310
|
+
readonly name: "changeSuccessFee";
|
|
311
|
+
readonly outputs: readonly [];
|
|
312
|
+
readonly stateMutability: "nonpayable";
|
|
313
|
+
readonly type: "function";
|
|
314
|
+
}, {
|
|
315
|
+
readonly inputs: readonly [{
|
|
316
|
+
readonly internalType: "address";
|
|
317
|
+
readonly name: "_successFeeReceiver";
|
|
318
|
+
readonly type: "address";
|
|
319
|
+
}];
|
|
320
|
+
readonly name: "changeSuccessFeeReceiver";
|
|
321
|
+
readonly outputs: readonly [];
|
|
322
|
+
readonly stateMutability: "nonpayable";
|
|
323
|
+
readonly type: "function";
|
|
324
|
+
}, {
|
|
325
|
+
readonly inputs: readonly [{
|
|
326
|
+
readonly internalType: "address[]";
|
|
327
|
+
readonly name: "_tokens";
|
|
328
|
+
readonly type: "address[]";
|
|
329
|
+
}, {
|
|
330
|
+
readonly internalType: "uint256[]";
|
|
331
|
+
readonly name: "_amounts";
|
|
332
|
+
readonly type: "uint256[]";
|
|
333
|
+
}, {
|
|
334
|
+
readonly internalType: "uint256";
|
|
335
|
+
readonly name: "_term";
|
|
336
|
+
readonly type: "uint256";
|
|
337
|
+
}, {
|
|
338
|
+
readonly internalType: "address";
|
|
339
|
+
readonly name: "receiver";
|
|
340
|
+
readonly type: "address";
|
|
341
|
+
}];
|
|
342
|
+
readonly name: "createDeposit";
|
|
343
|
+
readonly outputs: readonly [{
|
|
344
|
+
readonly internalType: "uint256";
|
|
70
345
|
readonly name: "";
|
|
346
|
+
readonly type: "uint256";
|
|
347
|
+
}];
|
|
348
|
+
readonly stateMutability: "nonpayable";
|
|
349
|
+
readonly type: "function";
|
|
350
|
+
}, {
|
|
351
|
+
readonly inputs: readonly [{
|
|
352
|
+
readonly internalType: "uint256";
|
|
353
|
+
readonly name: "";
|
|
354
|
+
readonly type: "uint256";
|
|
355
|
+
}];
|
|
356
|
+
readonly name: "deposits";
|
|
357
|
+
readonly outputs: readonly [{
|
|
358
|
+
readonly internalType: "uint256";
|
|
359
|
+
readonly name: "startTimestamp";
|
|
360
|
+
readonly type: "uint256";
|
|
361
|
+
}, {
|
|
362
|
+
readonly internalType: "uint256";
|
|
363
|
+
readonly name: "endTimestamp";
|
|
364
|
+
readonly type: "uint256";
|
|
365
|
+
}, {
|
|
366
|
+
readonly internalType: "bool";
|
|
367
|
+
readonly name: "active";
|
|
71
368
|
readonly type: "bool";
|
|
72
369
|
}];
|
|
73
370
|
readonly stateMutability: "view";
|
|
74
371
|
readonly type: "function";
|
|
75
372
|
}, {
|
|
76
373
|
readonly inputs: readonly [];
|
|
77
|
-
readonly name: "
|
|
374
|
+
readonly name: "emergencyPenalty";
|
|
375
|
+
readonly outputs: readonly [{
|
|
376
|
+
readonly internalType: "uint256";
|
|
377
|
+
readonly name: "";
|
|
378
|
+
readonly type: "uint256";
|
|
379
|
+
}];
|
|
380
|
+
readonly stateMutability: "view";
|
|
381
|
+
readonly type: "function";
|
|
382
|
+
}, {
|
|
383
|
+
readonly inputs: readonly [];
|
|
384
|
+
readonly name: "emergencyPenaltyReceiver";
|
|
385
|
+
readonly outputs: readonly [{
|
|
386
|
+
readonly internalType: "address";
|
|
387
|
+
readonly name: "";
|
|
388
|
+
readonly type: "address";
|
|
389
|
+
}];
|
|
390
|
+
readonly stateMutability: "view";
|
|
391
|
+
readonly type: "function";
|
|
392
|
+
}, {
|
|
393
|
+
readonly inputs: readonly [{
|
|
394
|
+
readonly internalType: "uint256";
|
|
395
|
+
readonly name: "_uid";
|
|
396
|
+
readonly type: "uint256";
|
|
397
|
+
}];
|
|
398
|
+
readonly name: "emergencyWithdraw";
|
|
399
|
+
readonly outputs: readonly [];
|
|
400
|
+
readonly stateMutability: "nonpayable";
|
|
401
|
+
readonly type: "function";
|
|
402
|
+
}, {
|
|
403
|
+
readonly inputs: readonly [{
|
|
404
|
+
readonly internalType: "uint256";
|
|
405
|
+
readonly name: "_uid";
|
|
406
|
+
readonly type: "uint256";
|
|
407
|
+
}];
|
|
408
|
+
readonly name: "getDepositProfit";
|
|
409
|
+
readonly outputs: readonly [{
|
|
410
|
+
readonly internalType: "uint256";
|
|
411
|
+
readonly name: "";
|
|
412
|
+
readonly type: "uint256";
|
|
413
|
+
}];
|
|
414
|
+
readonly stateMutability: "view";
|
|
415
|
+
readonly type: "function";
|
|
416
|
+
}, {
|
|
417
|
+
readonly inputs: readonly [];
|
|
418
|
+
readonly name: "nftContract";
|
|
78
419
|
readonly outputs: readonly [{
|
|
79
|
-
readonly internalType: "
|
|
420
|
+
readonly internalType: "contract IERC721";
|
|
80
421
|
readonly name: "";
|
|
81
|
-
readonly type: "
|
|
422
|
+
readonly type: "address";
|
|
82
423
|
}];
|
|
83
|
-
readonly stateMutability: "
|
|
424
|
+
readonly stateMutability: "view";
|
|
84
425
|
readonly type: "function";
|
|
85
426
|
}, {
|
|
86
427
|
readonly inputs: readonly [];
|
|
87
|
-
readonly name: "
|
|
428
|
+
readonly name: "owner";
|
|
88
429
|
readonly outputs: readonly [{
|
|
89
|
-
readonly internalType: "
|
|
430
|
+
readonly internalType: "address";
|
|
90
431
|
readonly name: "";
|
|
91
|
-
readonly type: "
|
|
432
|
+
readonly type: "address";
|
|
92
433
|
}];
|
|
93
434
|
readonly stateMutability: "view";
|
|
94
435
|
readonly type: "function";
|
|
436
|
+
}, {
|
|
437
|
+
readonly inputs: readonly [];
|
|
438
|
+
readonly name: "renounceOwnership";
|
|
439
|
+
readonly outputs: readonly [];
|
|
440
|
+
readonly stateMutability: "nonpayable";
|
|
441
|
+
readonly type: "function";
|
|
95
442
|
}, {
|
|
96
443
|
readonly inputs: readonly [{
|
|
97
|
-
readonly internalType: "
|
|
98
|
-
readonly name: "
|
|
99
|
-
readonly type: "
|
|
444
|
+
readonly internalType: "address";
|
|
445
|
+
readonly name: "_token";
|
|
446
|
+
readonly type: "address";
|
|
100
447
|
}, {
|
|
101
|
-
readonly internalType: "address
|
|
102
|
-
readonly name: "
|
|
448
|
+
readonly internalType: "address";
|
|
449
|
+
readonly name: "_stateView";
|
|
103
450
|
readonly type: "address";
|
|
451
|
+
}, {
|
|
452
|
+
readonly internalType: "bytes32";
|
|
453
|
+
readonly name: "_poolId";
|
|
454
|
+
readonly type: "bytes32";
|
|
455
|
+
}, {
|
|
456
|
+
readonly internalType: "bool";
|
|
457
|
+
readonly name: "_isToken0";
|
|
458
|
+
readonly type: "bool";
|
|
459
|
+
}, {
|
|
460
|
+
readonly internalType: "bool";
|
|
461
|
+
readonly name: "_status";
|
|
462
|
+
readonly type: "bool";
|
|
104
463
|
}];
|
|
105
|
-
readonly name: "
|
|
464
|
+
readonly name: "setAllowedToken";
|
|
106
465
|
readonly outputs: readonly [];
|
|
107
466
|
readonly stateMutability: "nonpayable";
|
|
108
467
|
readonly type: "function";
|
|
109
468
|
}, {
|
|
110
|
-
readonly
|
|
111
|
-
readonly
|
|
469
|
+
readonly inputs: readonly [];
|
|
470
|
+
readonly name: "successFee";
|
|
471
|
+
readonly outputs: readonly [{
|
|
472
|
+
readonly internalType: "uint256";
|
|
473
|
+
readonly name: "";
|
|
474
|
+
readonly type: "uint256";
|
|
475
|
+
}];
|
|
476
|
+
readonly stateMutability: "view";
|
|
477
|
+
readonly type: "function";
|
|
478
|
+
}, {
|
|
479
|
+
readonly inputs: readonly [];
|
|
480
|
+
readonly name: "successFeeReceiver";
|
|
481
|
+
readonly outputs: readonly [{
|
|
482
|
+
readonly internalType: "address";
|
|
483
|
+
readonly name: "";
|
|
484
|
+
readonly type: "address";
|
|
485
|
+
}];
|
|
486
|
+
readonly stateMutability: "view";
|
|
487
|
+
readonly type: "function";
|
|
488
|
+
}, {
|
|
489
|
+
readonly inputs: readonly [{
|
|
490
|
+
readonly internalType: "address";
|
|
491
|
+
readonly name: "newOwner";
|
|
492
|
+
readonly type: "address";
|
|
493
|
+
}];
|
|
494
|
+
readonly name: "transferOwnership";
|
|
495
|
+
readonly outputs: readonly [];
|
|
496
|
+
readonly stateMutability: "nonpayable";
|
|
497
|
+
readonly type: "function";
|
|
498
|
+
}, {
|
|
499
|
+
readonly inputs: readonly [{
|
|
500
|
+
readonly internalType: "uint256";
|
|
501
|
+
readonly name: "_uid";
|
|
502
|
+
readonly type: "uint256";
|
|
503
|
+
}];
|
|
504
|
+
readonly name: "viewAmountListById";
|
|
505
|
+
readonly outputs: readonly [{
|
|
506
|
+
readonly internalType: "uint256[]";
|
|
507
|
+
readonly name: "";
|
|
508
|
+
readonly type: "uint256[]";
|
|
509
|
+
}];
|
|
510
|
+
readonly stateMutability: "view";
|
|
511
|
+
readonly type: "function";
|
|
512
|
+
}, {
|
|
513
|
+
readonly inputs: readonly [{
|
|
514
|
+
readonly internalType: "uint256";
|
|
515
|
+
readonly name: "_uid";
|
|
516
|
+
readonly type: "uint256";
|
|
517
|
+
}];
|
|
518
|
+
readonly name: "viewStartPriceX96ListById";
|
|
519
|
+
readonly outputs: readonly [{
|
|
520
|
+
readonly internalType: "uint256[]";
|
|
521
|
+
readonly name: "";
|
|
522
|
+
readonly type: "uint256[]";
|
|
523
|
+
}];
|
|
524
|
+
readonly stateMutability: "view";
|
|
525
|
+
readonly type: "function";
|
|
526
|
+
}, {
|
|
527
|
+
readonly inputs: readonly [{
|
|
528
|
+
readonly internalType: "uint256";
|
|
529
|
+
readonly name: "_uid";
|
|
530
|
+
readonly type: "uint256";
|
|
531
|
+
}];
|
|
532
|
+
readonly name: "viewTokenListById";
|
|
533
|
+
readonly outputs: readonly [{
|
|
534
|
+
readonly internalType: "address[]";
|
|
535
|
+
readonly name: "";
|
|
536
|
+
readonly type: "address[]";
|
|
537
|
+
}];
|
|
538
|
+
readonly stateMutability: "view";
|
|
539
|
+
readonly type: "function";
|
|
540
|
+
}, {
|
|
541
|
+
readonly inputs: readonly [{
|
|
542
|
+
readonly internalType: "uint256";
|
|
543
|
+
readonly name: "_uid";
|
|
544
|
+
readonly type: "uint256";
|
|
545
|
+
}];
|
|
546
|
+
readonly name: "withdraw";
|
|
547
|
+
readonly outputs: readonly [];
|
|
548
|
+
readonly stateMutability: "nonpayable";
|
|
549
|
+
readonly type: "function";
|
|
112
550
|
}];
|
|
113
551
|
/**
|
|
114
552
|
* Type-safe ABI for Vault_json
|
|
@@ -163,40 +601,243 @@ export declare class Vault_json {
|
|
|
163
601
|
*/
|
|
164
602
|
get address(): Address;
|
|
165
603
|
/**
|
|
166
|
-
* Get the underlying viem contract instance
|
|
604
|
+
* Get the underlying viem contract instance
|
|
605
|
+
*/
|
|
606
|
+
getContract(): Vault_jsonContract;
|
|
607
|
+
/**
|
|
608
|
+
* FEES_DECIMALS
|
|
609
|
+
* view
|
|
610
|
+
*/
|
|
611
|
+
FEES_DECIMALS(): Promise<bigint>;
|
|
612
|
+
/**
|
|
613
|
+
* MAX_TERM
|
|
614
|
+
* view
|
|
615
|
+
*/
|
|
616
|
+
MAX_TERM(): Promise<bigint>;
|
|
617
|
+
/**
|
|
618
|
+
* MAX_TOKENS_IN_DEPOSIT
|
|
619
|
+
* view
|
|
620
|
+
*/
|
|
621
|
+
MAX_TOKENS_IN_DEPOSIT(): Promise<bigint>;
|
|
622
|
+
/**
|
|
623
|
+
* allowedTokens
|
|
624
|
+
* view
|
|
625
|
+
*/
|
|
626
|
+
allowedTokens(arg0: `0x${string}`): Promise<[`0x${string}`, `0x${string}`, `0x${string}`, boolean, boolean]>;
|
|
627
|
+
/**
|
|
628
|
+
* deposits
|
|
629
|
+
* view
|
|
630
|
+
*/
|
|
631
|
+
deposits(arg0: bigint): Promise<[bigint, bigint, boolean]>;
|
|
632
|
+
/**
|
|
633
|
+
* emergencyPenalty
|
|
634
|
+
* view
|
|
635
|
+
*/
|
|
636
|
+
emergencyPenalty(): Promise<bigint>;
|
|
637
|
+
/**
|
|
638
|
+
* emergencyPenaltyReceiver
|
|
639
|
+
* view
|
|
640
|
+
*/
|
|
641
|
+
emergencyPenaltyReceiver(): Promise<`0x${string}`>;
|
|
642
|
+
/**
|
|
643
|
+
* getDepositProfit
|
|
644
|
+
* view
|
|
645
|
+
*/
|
|
646
|
+
getDepositProfit(_uid: bigint): Promise<bigint>;
|
|
647
|
+
/**
|
|
648
|
+
* nftContract
|
|
649
|
+
* view
|
|
650
|
+
*/
|
|
651
|
+
nftContract(): Promise<`0x${string}`>;
|
|
652
|
+
/**
|
|
653
|
+
* owner
|
|
654
|
+
* view
|
|
655
|
+
*/
|
|
656
|
+
owner(): Promise<`0x${string}`>;
|
|
657
|
+
/**
|
|
658
|
+
* successFee
|
|
659
|
+
* view
|
|
660
|
+
*/
|
|
661
|
+
successFee(): Promise<bigint>;
|
|
662
|
+
/**
|
|
663
|
+
* successFeeReceiver
|
|
664
|
+
* view
|
|
665
|
+
*/
|
|
666
|
+
successFeeReceiver(): Promise<`0x${string}`>;
|
|
667
|
+
/**
|
|
668
|
+
* viewAmountListById
|
|
669
|
+
* view
|
|
670
|
+
*/
|
|
671
|
+
viewAmountListById(_uid: bigint): Promise<bigint[]>;
|
|
672
|
+
/**
|
|
673
|
+
* viewStartPriceX96ListById
|
|
674
|
+
* view
|
|
675
|
+
*/
|
|
676
|
+
viewStartPriceX96ListById(_uid: bigint): Promise<bigint[]>;
|
|
677
|
+
/**
|
|
678
|
+
* viewTokenListById
|
|
679
|
+
* view
|
|
680
|
+
*/
|
|
681
|
+
viewTokenListById(_uid: bigint): Promise<`0x${string}`[]>;
|
|
682
|
+
/**
|
|
683
|
+
* changeEmergencyPenalty
|
|
684
|
+
* nonpayable
|
|
685
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
686
|
+
*/
|
|
687
|
+
changeEmergencyPenalty(_newEmergencyPenalty: bigint, options?: {
|
|
688
|
+
accessList?: import('viem').AccessList;
|
|
689
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
690
|
+
chain?: import('viem').Chain | null;
|
|
691
|
+
dataSuffix?: `0x${string}`;
|
|
692
|
+
gas?: bigint;
|
|
693
|
+
gasPrice?: bigint;
|
|
694
|
+
maxFeePerGas?: bigint;
|
|
695
|
+
maxPriorityFeePerGas?: bigint;
|
|
696
|
+
nonce?: number;
|
|
697
|
+
value?: bigint;
|
|
698
|
+
}): Promise<`0x${string}`>;
|
|
699
|
+
/**
|
|
700
|
+
* changeEmergencyPenaltyReceiver
|
|
701
|
+
* nonpayable
|
|
702
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
703
|
+
*/
|
|
704
|
+
changeEmergencyPenaltyReceiver(_newEmergencyPenaltyReveiver: `0x${string}`, options?: {
|
|
705
|
+
accessList?: import('viem').AccessList;
|
|
706
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
707
|
+
chain?: import('viem').Chain | null;
|
|
708
|
+
dataSuffix?: `0x${string}`;
|
|
709
|
+
gas?: bigint;
|
|
710
|
+
gasPrice?: bigint;
|
|
711
|
+
maxFeePerGas?: bigint;
|
|
712
|
+
maxPriorityFeePerGas?: bigint;
|
|
713
|
+
nonce?: number;
|
|
714
|
+
value?: bigint;
|
|
715
|
+
}): Promise<`0x${string}`>;
|
|
716
|
+
/**
|
|
717
|
+
* changeSuccessFee
|
|
718
|
+
* nonpayable
|
|
719
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
720
|
+
*/
|
|
721
|
+
changeSuccessFee(_newSuccessFee: bigint, options?: {
|
|
722
|
+
accessList?: import('viem').AccessList;
|
|
723
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
724
|
+
chain?: import('viem').Chain | null;
|
|
725
|
+
dataSuffix?: `0x${string}`;
|
|
726
|
+
gas?: bigint;
|
|
727
|
+
gasPrice?: bigint;
|
|
728
|
+
maxFeePerGas?: bigint;
|
|
729
|
+
maxPriorityFeePerGas?: bigint;
|
|
730
|
+
nonce?: number;
|
|
731
|
+
value?: bigint;
|
|
732
|
+
}): Promise<`0x${string}`>;
|
|
733
|
+
/**
|
|
734
|
+
* changeSuccessFeeReceiver
|
|
735
|
+
* nonpayable
|
|
736
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
167
737
|
*/
|
|
168
|
-
|
|
738
|
+
changeSuccessFeeReceiver(_successFeeReceiver: `0x${string}`, options?: {
|
|
739
|
+
accessList?: import('viem').AccessList;
|
|
740
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
741
|
+
chain?: import('viem').Chain | null;
|
|
742
|
+
dataSuffix?: `0x${string}`;
|
|
743
|
+
gas?: bigint;
|
|
744
|
+
gasPrice?: bigint;
|
|
745
|
+
maxFeePerGas?: bigint;
|
|
746
|
+
maxPriorityFeePerGas?: bigint;
|
|
747
|
+
nonce?: number;
|
|
748
|
+
value?: bigint;
|
|
749
|
+
}): Promise<`0x${string}`>;
|
|
169
750
|
/**
|
|
170
|
-
*
|
|
171
|
-
*
|
|
751
|
+
* createDeposit
|
|
752
|
+
* nonpayable
|
|
753
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
172
754
|
*/
|
|
173
|
-
|
|
755
|
+
createDeposit(_tokens: `0x${string}`[], _amounts: bigint[], _term: bigint, receiver: `0x${string}`, options?: {
|
|
756
|
+
accessList?: import('viem').AccessList;
|
|
757
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
758
|
+
chain?: import('viem').Chain | null;
|
|
759
|
+
dataSuffix?: `0x${string}`;
|
|
760
|
+
gas?: bigint;
|
|
761
|
+
gasPrice?: bigint;
|
|
762
|
+
maxFeePerGas?: bigint;
|
|
763
|
+
maxPriorityFeePerGas?: bigint;
|
|
764
|
+
nonce?: number;
|
|
765
|
+
value?: bigint;
|
|
766
|
+
}): Promise<`0x${string}`>;
|
|
174
767
|
/**
|
|
175
|
-
*
|
|
176
|
-
*
|
|
768
|
+
* emergencyWithdraw
|
|
769
|
+
* nonpayable
|
|
770
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
177
771
|
*/
|
|
178
|
-
|
|
772
|
+
emergencyWithdraw(_uid: bigint, options?: {
|
|
773
|
+
accessList?: import('viem').AccessList;
|
|
774
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
775
|
+
chain?: import('viem').Chain | null;
|
|
776
|
+
dataSuffix?: `0x${string}`;
|
|
777
|
+
gas?: bigint;
|
|
778
|
+
gasPrice?: bigint;
|
|
779
|
+
maxFeePerGas?: bigint;
|
|
780
|
+
maxPriorityFeePerGas?: bigint;
|
|
781
|
+
nonce?: number;
|
|
782
|
+
value?: bigint;
|
|
783
|
+
}): Promise<`0x${string}`>;
|
|
179
784
|
/**
|
|
180
|
-
*
|
|
181
|
-
*
|
|
785
|
+
* renounceOwnership
|
|
786
|
+
* nonpayable
|
|
787
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
182
788
|
*/
|
|
183
|
-
|
|
789
|
+
renounceOwnership(options?: {
|
|
790
|
+
accessList?: import('viem').AccessList;
|
|
791
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
792
|
+
chain?: import('viem').Chain | null;
|
|
793
|
+
dataSuffix?: `0x${string}`;
|
|
794
|
+
gas?: bigint;
|
|
795
|
+
gasPrice?: bigint;
|
|
796
|
+
maxFeePerGas?: bigint;
|
|
797
|
+
maxPriorityFeePerGas?: bigint;
|
|
798
|
+
nonce?: number;
|
|
799
|
+
value?: bigint;
|
|
800
|
+
}): Promise<`0x${string}`>;
|
|
184
801
|
/**
|
|
185
|
-
*
|
|
186
|
-
*
|
|
802
|
+
* setAllowedToken
|
|
803
|
+
* nonpayable
|
|
804
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
187
805
|
*/
|
|
188
|
-
|
|
806
|
+
setAllowedToken(_token: `0x${string}`, _stateView: `0x${string}`, _poolId: `0x${string}`, _isToken0: boolean, _status: boolean, options?: {
|
|
807
|
+
accessList?: import('viem').AccessList;
|
|
808
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
809
|
+
chain?: import('viem').Chain | null;
|
|
810
|
+
dataSuffix?: `0x${string}`;
|
|
811
|
+
gas?: bigint;
|
|
812
|
+
gasPrice?: bigint;
|
|
813
|
+
maxFeePerGas?: bigint;
|
|
814
|
+
maxPriorityFeePerGas?: bigint;
|
|
815
|
+
nonce?: number;
|
|
816
|
+
value?: bigint;
|
|
817
|
+
}): Promise<`0x${string}`>;
|
|
189
818
|
/**
|
|
190
|
-
*
|
|
191
|
-
*
|
|
819
|
+
* transferOwnership
|
|
820
|
+
* nonpayable
|
|
821
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
192
822
|
*/
|
|
193
|
-
|
|
823
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
824
|
+
accessList?: import('viem').AccessList;
|
|
825
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
826
|
+
chain?: import('viem').Chain | null;
|
|
827
|
+
dataSuffix?: `0x${string}`;
|
|
828
|
+
gas?: bigint;
|
|
829
|
+
gasPrice?: bigint;
|
|
830
|
+
maxFeePerGas?: bigint;
|
|
831
|
+
maxPriorityFeePerGas?: bigint;
|
|
832
|
+
nonce?: number;
|
|
833
|
+
value?: bigint;
|
|
834
|
+
}): Promise<`0x${string}`>;
|
|
194
835
|
/**
|
|
195
|
-
*
|
|
836
|
+
* withdraw
|
|
196
837
|
* nonpayable
|
|
197
838
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
198
839
|
*/
|
|
199
|
-
|
|
840
|
+
withdraw(_uid: bigint, options?: {
|
|
200
841
|
accessList?: import('viem').AccessList;
|
|
201
842
|
authorizationList?: import('viem').AuthorizationList;
|
|
202
843
|
chain?: import('viem').Chain | null;
|
|
@@ -218,11 +859,164 @@ export declare class Vault_json {
|
|
|
218
859
|
*/
|
|
219
860
|
get simulate(): {
|
|
220
861
|
/**
|
|
221
|
-
* Simulate
|
|
862
|
+
* Simulate changeEmergencyPenalty
|
|
863
|
+
* Returns gas estimate and result without sending transaction
|
|
864
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
865
|
+
*/
|
|
866
|
+
changeEmergencyPenalty(_newEmergencyPenalty: bigint, options?: {
|
|
867
|
+
accessList?: import("viem").AccessList;
|
|
868
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
869
|
+
chain?: import("viem").Chain | null;
|
|
870
|
+
dataSuffix?: `0x${string}`;
|
|
871
|
+
gas?: bigint;
|
|
872
|
+
gasPrice?: bigint;
|
|
873
|
+
maxFeePerGas?: bigint;
|
|
874
|
+
maxPriorityFeePerGas?: bigint;
|
|
875
|
+
nonce?: number;
|
|
876
|
+
value?: bigint;
|
|
877
|
+
}): Promise<void>;
|
|
878
|
+
/**
|
|
879
|
+
* Simulate changeEmergencyPenaltyReceiver
|
|
880
|
+
* Returns gas estimate and result without sending transaction
|
|
881
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
882
|
+
*/
|
|
883
|
+
changeEmergencyPenaltyReceiver(_newEmergencyPenaltyReveiver: `0x${string}`, options?: {
|
|
884
|
+
accessList?: import("viem").AccessList;
|
|
885
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
886
|
+
chain?: import("viem").Chain | null;
|
|
887
|
+
dataSuffix?: `0x${string}`;
|
|
888
|
+
gas?: bigint;
|
|
889
|
+
gasPrice?: bigint;
|
|
890
|
+
maxFeePerGas?: bigint;
|
|
891
|
+
maxPriorityFeePerGas?: bigint;
|
|
892
|
+
nonce?: number;
|
|
893
|
+
value?: bigint;
|
|
894
|
+
}): Promise<void>;
|
|
895
|
+
/**
|
|
896
|
+
* Simulate changeSuccessFee
|
|
897
|
+
* Returns gas estimate and result without sending transaction
|
|
898
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
899
|
+
*/
|
|
900
|
+
changeSuccessFee(_newSuccessFee: bigint, options?: {
|
|
901
|
+
accessList?: import("viem").AccessList;
|
|
902
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
903
|
+
chain?: import("viem").Chain | null;
|
|
904
|
+
dataSuffix?: `0x${string}`;
|
|
905
|
+
gas?: bigint;
|
|
906
|
+
gasPrice?: bigint;
|
|
907
|
+
maxFeePerGas?: bigint;
|
|
908
|
+
maxPriorityFeePerGas?: bigint;
|
|
909
|
+
nonce?: number;
|
|
910
|
+
value?: bigint;
|
|
911
|
+
}): Promise<void>;
|
|
912
|
+
/**
|
|
913
|
+
* Simulate changeSuccessFeeReceiver
|
|
914
|
+
* Returns gas estimate and result without sending transaction
|
|
915
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
916
|
+
*/
|
|
917
|
+
changeSuccessFeeReceiver(_successFeeReceiver: `0x${string}`, options?: {
|
|
918
|
+
accessList?: import("viem").AccessList;
|
|
919
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
920
|
+
chain?: import("viem").Chain | null;
|
|
921
|
+
dataSuffix?: `0x${string}`;
|
|
922
|
+
gas?: bigint;
|
|
923
|
+
gasPrice?: bigint;
|
|
924
|
+
maxFeePerGas?: bigint;
|
|
925
|
+
maxPriorityFeePerGas?: bigint;
|
|
926
|
+
nonce?: number;
|
|
927
|
+
value?: bigint;
|
|
928
|
+
}): Promise<void>;
|
|
929
|
+
/**
|
|
930
|
+
* Simulate createDeposit
|
|
931
|
+
* Returns gas estimate and result without sending transaction
|
|
932
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
933
|
+
*/
|
|
934
|
+
createDeposit(_tokens: `0x${string}`[], _amounts: bigint[], _term: bigint, receiver: `0x${string}`, options?: {
|
|
935
|
+
accessList?: import("viem").AccessList;
|
|
936
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
937
|
+
chain?: import("viem").Chain | null;
|
|
938
|
+
dataSuffix?: `0x${string}`;
|
|
939
|
+
gas?: bigint;
|
|
940
|
+
gasPrice?: bigint;
|
|
941
|
+
maxFeePerGas?: bigint;
|
|
942
|
+
maxPriorityFeePerGas?: bigint;
|
|
943
|
+
nonce?: number;
|
|
944
|
+
value?: bigint;
|
|
945
|
+
}): Promise<bigint>;
|
|
946
|
+
/**
|
|
947
|
+
* Simulate emergencyWithdraw
|
|
948
|
+
* Returns gas estimate and result without sending transaction
|
|
949
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
950
|
+
*/
|
|
951
|
+
emergencyWithdraw(_uid: bigint, options?: {
|
|
952
|
+
accessList?: import("viem").AccessList;
|
|
953
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
954
|
+
chain?: import("viem").Chain | null;
|
|
955
|
+
dataSuffix?: `0x${string}`;
|
|
956
|
+
gas?: bigint;
|
|
957
|
+
gasPrice?: bigint;
|
|
958
|
+
maxFeePerGas?: bigint;
|
|
959
|
+
maxPriorityFeePerGas?: bigint;
|
|
960
|
+
nonce?: number;
|
|
961
|
+
value?: bigint;
|
|
962
|
+
}): Promise<void>;
|
|
963
|
+
/**
|
|
964
|
+
* Simulate renounceOwnership
|
|
965
|
+
* Returns gas estimate and result without sending transaction
|
|
966
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
967
|
+
*/
|
|
968
|
+
renounceOwnership(options?: {
|
|
969
|
+
accessList?: import("viem").AccessList;
|
|
970
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
971
|
+
chain?: import("viem").Chain | null;
|
|
972
|
+
dataSuffix?: `0x${string}`;
|
|
973
|
+
gas?: bigint;
|
|
974
|
+
gasPrice?: bigint;
|
|
975
|
+
maxFeePerGas?: bigint;
|
|
976
|
+
maxPriorityFeePerGas?: bigint;
|
|
977
|
+
nonce?: number;
|
|
978
|
+
value?: bigint;
|
|
979
|
+
}): Promise<void>;
|
|
980
|
+
/**
|
|
981
|
+
* Simulate setAllowedToken
|
|
982
|
+
* Returns gas estimate and result without sending transaction
|
|
983
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
984
|
+
*/
|
|
985
|
+
setAllowedToken(_token: `0x${string}`, _stateView: `0x${string}`, _poolId: `0x${string}`, _isToken0: boolean, _status: boolean, 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<void>;
|
|
997
|
+
/**
|
|
998
|
+
* Simulate transferOwnership
|
|
999
|
+
* Returns gas estimate and result without sending transaction
|
|
1000
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1001
|
+
*/
|
|
1002
|
+
transferOwnership(newOwner: `0x${string}`, 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<void>;
|
|
1014
|
+
/**
|
|
1015
|
+
* Simulate withdraw
|
|
222
1016
|
* Returns gas estimate and result without sending transaction
|
|
223
1017
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
224
1018
|
*/
|
|
225
|
-
|
|
1019
|
+
withdraw(_uid: bigint, options?: {
|
|
226
1020
|
accessList?: import("viem").AccessList;
|
|
227
1021
|
authorizationList?: import("viem").AuthorizationList;
|
|
228
1022
|
chain?: import("viem").Chain | null;
|
|
@@ -249,28 +1043,105 @@ export declare class Vault_json {
|
|
|
249
1043
|
*/
|
|
250
1044
|
get watch(): {
|
|
251
1045
|
/**
|
|
252
|
-
* Watch
|
|
1046
|
+
* Watch NewDeposit events
|
|
253
1047
|
* @param callback Function to call when event is emitted
|
|
254
1048
|
* @param filter Optional filter for indexed parameters
|
|
255
1049
|
* @returns Unwatch function to stop listening
|
|
256
1050
|
*/
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
1051
|
+
NewDeposit: (callback: (event: {
|
|
1052
|
+
uid: bigint;
|
|
1053
|
+
startTimestamp: bigint;
|
|
1054
|
+
endTimestamp: bigint;
|
|
1055
|
+
tokens: `0x${string}`[];
|
|
1056
|
+
amounts: bigint[];
|
|
1057
|
+
prices: bigint[];
|
|
1058
|
+
receiver: `0x${string}`;
|
|
1059
|
+
}) => void) => () => void;
|
|
1060
|
+
/**
|
|
1061
|
+
* Watch OwnershipTransferred events
|
|
1062
|
+
* @param callback Function to call when event is emitted
|
|
1063
|
+
* @param filter Optional filter for indexed parameters
|
|
1064
|
+
* @returns Unwatch function to stop listening
|
|
1065
|
+
*/
|
|
1066
|
+
OwnershipTransferred: (callback: (event: {
|
|
1067
|
+
previousOwner: `0x${string}`;
|
|
1068
|
+
newOwner: `0x${string}`;
|
|
260
1069
|
}) => void, filter?: {
|
|
261
|
-
|
|
1070
|
+
previousOwner: `0x${string}`;
|
|
1071
|
+
newOwner: `0x${string}`;
|
|
262
1072
|
}) => () => void;
|
|
263
1073
|
/**
|
|
264
|
-
* Watch
|
|
1074
|
+
* Watch SetEmergencyPenalty events
|
|
1075
|
+
* @param callback Function to call when event is emitted
|
|
1076
|
+
* @param filter Optional filter for indexed parameters
|
|
1077
|
+
* @returns Unwatch function to stop listening
|
|
1078
|
+
*/
|
|
1079
|
+
SetEmergencyPenalty: (callback: (event: {
|
|
1080
|
+
emergencyPenalty: bigint;
|
|
1081
|
+
}) => void) => () => void;
|
|
1082
|
+
/**
|
|
1083
|
+
* Watch SetEmergencyPenaltyReceiver events
|
|
1084
|
+
* @param callback Function to call when event is emitted
|
|
1085
|
+
* @param filter Optional filter for indexed parameters
|
|
1086
|
+
* @returns Unwatch function to stop listening
|
|
1087
|
+
*/
|
|
1088
|
+
SetEmergencyPenaltyReceiver: (callback: (event: {
|
|
1089
|
+
emergencyPenaltyReceiver: `0x${string}`;
|
|
1090
|
+
}) => void) => () => void;
|
|
1091
|
+
/**
|
|
1092
|
+
* Watch SetSuccessFee events
|
|
1093
|
+
* @param callback Function to call when event is emitted
|
|
1094
|
+
* @param filter Optional filter for indexed parameters
|
|
1095
|
+
* @returns Unwatch function to stop listening
|
|
1096
|
+
*/
|
|
1097
|
+
SetSuccessFee: (callback: (event: {
|
|
1098
|
+
successFee: bigint;
|
|
1099
|
+
}) => void) => () => void;
|
|
1100
|
+
/**
|
|
1101
|
+
* Watch SetSuccessFeeReceiver events
|
|
1102
|
+
* @param callback Function to call when event is emitted
|
|
1103
|
+
* @param filter Optional filter for indexed parameters
|
|
1104
|
+
* @returns Unwatch function to stop listening
|
|
1105
|
+
*/
|
|
1106
|
+
SetSuccessFeeReceiver: (callback: (event: {
|
|
1107
|
+
successFeeReceiver: `0x${string}`;
|
|
1108
|
+
}) => void) => () => void;
|
|
1109
|
+
/**
|
|
1110
|
+
* Watch SuccessFeeCharged events
|
|
265
1111
|
* @param callback Function to call when event is emitted
|
|
266
1112
|
* @param filter Optional filter for indexed parameters
|
|
267
1113
|
* @returns Unwatch function to stop listening
|
|
268
1114
|
*/
|
|
269
|
-
|
|
270
|
-
|
|
1115
|
+
SuccessFeeCharged: (callback: (event: {
|
|
1116
|
+
uid: bigint;
|
|
1117
|
+
token: `0x${string}`;
|
|
271
1118
|
amount: bigint;
|
|
1119
|
+
}) => void) => () => void;
|
|
1120
|
+
/**
|
|
1121
|
+
* Watch TokenUpdated events
|
|
1122
|
+
* @param callback Function to call when event is emitted
|
|
1123
|
+
* @param filter Optional filter for indexed parameters
|
|
1124
|
+
* @returns Unwatch function to stop listening
|
|
1125
|
+
*/
|
|
1126
|
+
TokenUpdated: (callback: (event: {
|
|
1127
|
+
token: `0x${string}`;
|
|
1128
|
+
stateView: `0x${string}`;
|
|
1129
|
+
poolId: `0x${string}`;
|
|
1130
|
+
isToken0: boolean;
|
|
1131
|
+
status: boolean;
|
|
1132
|
+
}) => void) => () => void;
|
|
1133
|
+
/**
|
|
1134
|
+
* Watch Withdraw events
|
|
1135
|
+
* @param callback Function to call when event is emitted
|
|
1136
|
+
* @param filter Optional filter for indexed parameters
|
|
1137
|
+
* @returns Unwatch function to stop listening
|
|
1138
|
+
*/
|
|
1139
|
+
Withdraw: (callback: (event: {
|
|
1140
|
+
user: `0x${string}`;
|
|
1141
|
+
uid: bigint;
|
|
1142
|
+
isEmergency: boolean;
|
|
272
1143
|
}) => void, filter?: {
|
|
273
|
-
|
|
1144
|
+
user: `0x${string}`;
|
|
274
1145
|
}) => () => void;
|
|
275
1146
|
};
|
|
276
1147
|
}
|