@gitmyabi/vault 1.0.3 → 1.0.4
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 +5 -5
- package/contracts/Vault_json.d.ts +1319 -828
- package/contracts/Vault_json.js +1365 -944
- package/contracts/Vault_json.ts +1562 -933
- package/contracts/index.d.ts +0 -2
- package/contracts/index.js +1 -4
- package/contracts/index.ts +0 -2
- package/package.json +3 -3
- package/contracts/MigratableEntityProxy_json.d.ts +0 -233
- package/contracts/MigratableEntityProxy_json.js +0 -277
- package/contracts/MigratableEntityProxy_json.ts +0 -329
package/contracts/Vault_json.ts
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType } from 'viem';
|
|
2
2
|
import { getContract } from 'viem';
|
|
3
3
|
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* IVault.DepositRequest struct type
|
|
7
|
+
*/
|
|
8
|
+
export type IVault_DepositRequest = {
|
|
9
|
+
owner: `0x${string}`;
|
|
10
|
+
assets: bigint;
|
|
11
|
+
status: bigint;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* IVault.WithdrawRequest struct type
|
|
16
|
+
*/
|
|
17
|
+
export type IVault_WithdrawRequest = {
|
|
18
|
+
owner: `0x${string}`;
|
|
19
|
+
shares: bigint;
|
|
20
|
+
costBasisValueSnapshot: bigint;
|
|
21
|
+
requestedAt: bigint;
|
|
22
|
+
claimableAt: bigint;
|
|
23
|
+
status: bigint;
|
|
24
|
+
assetsOut: bigint;
|
|
25
|
+
fee: bigint;
|
|
26
|
+
};
|
|
4
27
|
/**
|
|
5
28
|
* Vault_json ABI
|
|
6
29
|
*
|
|
@@ -9,20 +32,55 @@ import { getContract } from 'viem';
|
|
|
9
32
|
export const Vault_jsonAbi = [
|
|
10
33
|
{
|
|
11
34
|
"inputs": [
|
|
35
|
+
{
|
|
36
|
+
"internalType": "contract IERC20",
|
|
37
|
+
"name": "_asset",
|
|
38
|
+
"type": "address"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"internalType": "contract IOracle",
|
|
42
|
+
"name": "_oracle",
|
|
43
|
+
"type": "address"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"internalType": "address",
|
|
47
|
+
"name": "admin",
|
|
48
|
+
"type": "address"
|
|
49
|
+
},
|
|
12
50
|
{
|
|
13
51
|
"internalType": "address",
|
|
14
|
-
"name": "
|
|
52
|
+
"name": "manager",
|
|
15
53
|
"type": "address"
|
|
16
54
|
},
|
|
17
55
|
{
|
|
18
56
|
"internalType": "address",
|
|
19
|
-
"name": "
|
|
57
|
+
"name": "bot",
|
|
20
58
|
"type": "address"
|
|
21
59
|
},
|
|
22
60
|
{
|
|
23
61
|
"internalType": "address",
|
|
24
|
-
"name": "
|
|
62
|
+
"name": "guardian",
|
|
25
63
|
"type": "address"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"internalType": "address",
|
|
67
|
+
"name": "_feeRecipient",
|
|
68
|
+
"type": "address"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"internalType": "uint256",
|
|
72
|
+
"name": "_performanceFee",
|
|
73
|
+
"type": "uint256"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"internalType": "uint256",
|
|
77
|
+
"name": "_minDepositAssets",
|
|
78
|
+
"type": "uint256"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"internalType": "uint256",
|
|
82
|
+
"name": "_maxSettlementBatchSize",
|
|
83
|
+
"type": "uint256"
|
|
26
84
|
}
|
|
27
85
|
],
|
|
28
86
|
"stateMutability": "nonpayable",
|
|
@@ -60,249 +118,138 @@ export const Vault_jsonAbi = [
|
|
|
60
118
|
"name": "AddressEmptyCode",
|
|
61
119
|
"type": "error"
|
|
62
120
|
},
|
|
63
|
-
{
|
|
64
|
-
"inputs": [
|
|
65
|
-
{
|
|
66
|
-
"internalType": "address",
|
|
67
|
-
"name": "account",
|
|
68
|
-
"type": "address"
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"name": "AddressInsufficientBalance",
|
|
72
|
-
"type": "error"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"inputs": [],
|
|
76
|
-
"name": "AlreadyClaimed",
|
|
77
|
-
"type": "error"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"inputs": [],
|
|
81
|
-
"name": "AlreadyInitialized",
|
|
82
|
-
"type": "error"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"inputs": [],
|
|
86
|
-
"name": "AlreadySet",
|
|
87
|
-
"type": "error"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"inputs": [],
|
|
91
|
-
"name": "CheckpointUnorderedInsertion",
|
|
92
|
-
"type": "error"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"inputs": [],
|
|
96
|
-
"name": "DelegatorAlreadyInitialized",
|
|
97
|
-
"type": "error"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"inputs": [],
|
|
101
|
-
"name": "DepositLimitReached",
|
|
102
|
-
"type": "error"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"inputs": [],
|
|
106
|
-
"name": "FailedInnerCall",
|
|
107
|
-
"type": "error"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"inputs": [],
|
|
111
|
-
"name": "InsufficientClaim",
|
|
112
|
-
"type": "error"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"inputs": [],
|
|
116
|
-
"name": "InsufficientDeposit",
|
|
117
|
-
"type": "error"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"inputs": [],
|
|
121
|
-
"name": "InsufficientRedemption",
|
|
122
|
-
"type": "error"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"inputs": [],
|
|
126
|
-
"name": "InsufficientWithdrawal",
|
|
127
|
-
"type": "error"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"inputs": [],
|
|
131
|
-
"name": "InvalidAccount",
|
|
132
|
-
"type": "error"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"inputs": [],
|
|
136
|
-
"name": "InvalidCaptureEpoch",
|
|
137
|
-
"type": "error"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"inputs": [],
|
|
141
|
-
"name": "InvalidClaimer",
|
|
142
|
-
"type": "error"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"inputs": [],
|
|
146
|
-
"name": "InvalidCollateral",
|
|
147
|
-
"type": "error"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"inputs": [],
|
|
151
|
-
"name": "InvalidDelegator",
|
|
152
|
-
"type": "error"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"inputs": [],
|
|
156
|
-
"name": "InvalidEpoch",
|
|
157
|
-
"type": "error"
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"inputs": [],
|
|
161
|
-
"name": "InvalidEpochDuration",
|
|
162
|
-
"type": "error"
|
|
163
|
-
},
|
|
164
121
|
{
|
|
165
122
|
"inputs": [],
|
|
166
|
-
"name": "
|
|
123
|
+
"name": "AlreadyTracked",
|
|
167
124
|
"type": "error"
|
|
168
125
|
},
|
|
169
126
|
{
|
|
170
127
|
"inputs": [],
|
|
171
|
-
"name": "
|
|
128
|
+
"name": "DepositTooSmall",
|
|
172
129
|
"type": "error"
|
|
173
130
|
},
|
|
174
131
|
{
|
|
175
132
|
"inputs": [],
|
|
176
|
-
"name": "
|
|
133
|
+
"name": "EnforcedPause",
|
|
177
134
|
"type": "error"
|
|
178
135
|
},
|
|
179
136
|
{
|
|
180
137
|
"inputs": [],
|
|
181
|
-
"name": "
|
|
138
|
+
"name": "ExpectedPause",
|
|
182
139
|
"type": "error"
|
|
183
140
|
},
|
|
184
141
|
{
|
|
185
142
|
"inputs": [],
|
|
186
|
-
"name": "
|
|
143
|
+
"name": "FailedCall",
|
|
187
144
|
"type": "error"
|
|
188
145
|
},
|
|
189
146
|
{
|
|
190
|
-
"inputs": [
|
|
191
|
-
|
|
147
|
+
"inputs": [
|
|
148
|
+
{
|
|
149
|
+
"internalType": "uint256",
|
|
150
|
+
"name": "balance",
|
|
151
|
+
"type": "uint256"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"internalType": "uint256",
|
|
155
|
+
"name": "needed",
|
|
156
|
+
"type": "uint256"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"name": "InsufficientBalance",
|
|
192
160
|
"type": "error"
|
|
193
161
|
},
|
|
194
162
|
{
|
|
195
163
|
"inputs": [],
|
|
196
|
-
"name": "
|
|
164
|
+
"name": "InsufficientLiquidity",
|
|
197
165
|
"type": "error"
|
|
198
166
|
},
|
|
199
167
|
{
|
|
200
168
|
"inputs": [],
|
|
201
|
-
"name": "
|
|
169
|
+
"name": "InsufficientShares",
|
|
202
170
|
"type": "error"
|
|
203
171
|
},
|
|
204
172
|
{
|
|
205
173
|
"inputs": [],
|
|
206
|
-
"name": "
|
|
174
|
+
"name": "InvalidBatchSize",
|
|
207
175
|
"type": "error"
|
|
208
176
|
},
|
|
209
177
|
{
|
|
210
178
|
"inputs": [],
|
|
211
|
-
"name": "
|
|
179
|
+
"name": "InvalidFee",
|
|
212
180
|
"type": "error"
|
|
213
181
|
},
|
|
214
182
|
{
|
|
215
183
|
"inputs": [],
|
|
216
|
-
"name": "
|
|
184
|
+
"name": "NotRequestOwner",
|
|
217
185
|
"type": "error"
|
|
218
186
|
},
|
|
219
187
|
{
|
|
220
188
|
"inputs": [],
|
|
221
|
-
"name": "
|
|
189
|
+
"name": "NotTracked",
|
|
222
190
|
"type": "error"
|
|
223
191
|
},
|
|
224
192
|
{
|
|
225
193
|
"inputs": [],
|
|
226
|
-
"name": "
|
|
194
|
+
"name": "OnlyHPT",
|
|
227
195
|
"type": "error"
|
|
228
196
|
},
|
|
229
197
|
{
|
|
230
198
|
"inputs": [],
|
|
231
|
-
"name": "
|
|
199
|
+
"name": "ReentrancyGuardReentrantCall",
|
|
232
200
|
"type": "error"
|
|
233
201
|
},
|
|
234
202
|
{
|
|
235
203
|
"inputs": [],
|
|
236
|
-
"name": "
|
|
204
|
+
"name": "RequestNotOpen",
|
|
237
205
|
"type": "error"
|
|
238
206
|
},
|
|
239
207
|
{
|
|
240
208
|
"inputs": [
|
|
241
209
|
{
|
|
242
210
|
"internalType": "address",
|
|
243
|
-
"name": "
|
|
211
|
+
"name": "token",
|
|
244
212
|
"type": "address"
|
|
245
213
|
}
|
|
246
214
|
],
|
|
247
|
-
"name": "
|
|
215
|
+
"name": "SafeERC20FailedOperation",
|
|
248
216
|
"type": "error"
|
|
249
217
|
},
|
|
250
218
|
{
|
|
251
219
|
"inputs": [
|
|
252
220
|
{
|
|
253
221
|
"internalType": "address",
|
|
254
|
-
"name": "
|
|
222
|
+
"name": "target",
|
|
255
223
|
"type": "address"
|
|
256
224
|
}
|
|
257
225
|
],
|
|
258
|
-
"name": "
|
|
259
|
-
"type": "error"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
"inputs": [],
|
|
263
|
-
"name": "ReentrancyGuardReentrantCall",
|
|
226
|
+
"name": "TargetNotAllowed",
|
|
264
227
|
"type": "error"
|
|
265
228
|
},
|
|
266
229
|
{
|
|
267
230
|
"inputs": [
|
|
268
231
|
{
|
|
269
|
-
"internalType": "
|
|
270
|
-
"name": "
|
|
271
|
-
"type": "
|
|
232
|
+
"internalType": "address",
|
|
233
|
+
"name": "token",
|
|
234
|
+
"type": "address"
|
|
272
235
|
},
|
|
273
236
|
{
|
|
274
237
|
"internalType": "uint256",
|
|
275
|
-
"name": "
|
|
238
|
+
"name": "balance",
|
|
276
239
|
"type": "uint256"
|
|
277
240
|
}
|
|
278
241
|
],
|
|
279
|
-
"name": "
|
|
280
|
-
"type": "error"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
"inputs": [
|
|
284
|
-
{
|
|
285
|
-
"internalType": "address",
|
|
286
|
-
"name": "token",
|
|
287
|
-
"type": "address"
|
|
288
|
-
}
|
|
289
|
-
],
|
|
290
|
-
"name": "SafeERC20FailedOperation",
|
|
291
|
-
"type": "error"
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
"inputs": [],
|
|
295
|
-
"name": "SlasherAlreadyInitialized",
|
|
242
|
+
"name": "TrackedTokenHasBalance",
|
|
296
243
|
"type": "error"
|
|
297
244
|
},
|
|
298
245
|
{
|
|
299
246
|
"inputs": [],
|
|
300
|
-
"name": "
|
|
247
|
+
"name": "WithdrawNotReady",
|
|
301
248
|
"type": "error"
|
|
302
249
|
},
|
|
303
250
|
{
|
|
304
251
|
"inputs": [],
|
|
305
|
-
"name": "
|
|
252
|
+
"name": "ZeroAmount",
|
|
306
253
|
"type": "error"
|
|
307
254
|
},
|
|
308
255
|
{
|
|
@@ -310,30 +257,49 @@ export const Vault_jsonAbi = [
|
|
|
310
257
|
"inputs": [
|
|
311
258
|
{
|
|
312
259
|
"indexed": true,
|
|
313
|
-
"internalType": "
|
|
314
|
-
"name": "
|
|
315
|
-
"type": "
|
|
260
|
+
"internalType": "uint256",
|
|
261
|
+
"name": "depositId",
|
|
262
|
+
"type": "uint256"
|
|
316
263
|
},
|
|
317
264
|
{
|
|
318
265
|
"indexed": true,
|
|
319
266
|
"internalType": "address",
|
|
320
|
-
"name": "
|
|
267
|
+
"name": "owner",
|
|
321
268
|
"type": "address"
|
|
322
269
|
},
|
|
323
270
|
{
|
|
324
271
|
"indexed": false,
|
|
325
272
|
"internalType": "uint256",
|
|
326
|
-
"name": "
|
|
273
|
+
"name": "assets",
|
|
274
|
+
"type": "uint256"
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"name": "DepositAutoRefunded",
|
|
278
|
+
"type": "event"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"anonymous": false,
|
|
282
|
+
"inputs": [
|
|
283
|
+
{
|
|
284
|
+
"indexed": true,
|
|
285
|
+
"internalType": "uint256",
|
|
286
|
+
"name": "depositId",
|
|
327
287
|
"type": "uint256"
|
|
328
288
|
},
|
|
289
|
+
{
|
|
290
|
+
"indexed": true,
|
|
291
|
+
"internalType": "address",
|
|
292
|
+
"name": "owner",
|
|
293
|
+
"type": "address"
|
|
294
|
+
},
|
|
329
295
|
{
|
|
330
296
|
"indexed": false,
|
|
331
297
|
"internalType": "uint256",
|
|
332
|
-
"name": "
|
|
298
|
+
"name": "assets",
|
|
333
299
|
"type": "uint256"
|
|
334
300
|
}
|
|
335
301
|
],
|
|
336
|
-
"name": "
|
|
302
|
+
"name": "DepositCancelled",
|
|
337
303
|
"type": "event"
|
|
338
304
|
},
|
|
339
305
|
{
|
|
@@ -341,30 +307,24 @@ export const Vault_jsonAbi = [
|
|
|
341
307
|
"inputs": [
|
|
342
308
|
{
|
|
343
309
|
"indexed": true,
|
|
344
|
-
"internalType": "
|
|
345
|
-
"name": "
|
|
346
|
-
"type": "
|
|
310
|
+
"internalType": "uint256",
|
|
311
|
+
"name": "depositId",
|
|
312
|
+
"type": "uint256"
|
|
347
313
|
},
|
|
348
314
|
{
|
|
349
315
|
"indexed": true,
|
|
350
316
|
"internalType": "address",
|
|
351
|
-
"name": "
|
|
317
|
+
"name": "owner",
|
|
352
318
|
"type": "address"
|
|
353
319
|
},
|
|
354
|
-
{
|
|
355
|
-
"indexed": false,
|
|
356
|
-
"internalType": "uint256[]",
|
|
357
|
-
"name": "epochs",
|
|
358
|
-
"type": "uint256[]"
|
|
359
|
-
},
|
|
360
320
|
{
|
|
361
321
|
"indexed": false,
|
|
362
322
|
"internalType": "uint256",
|
|
363
|
-
"name": "
|
|
323
|
+
"name": "assets",
|
|
364
324
|
"type": "uint256"
|
|
365
325
|
}
|
|
366
326
|
],
|
|
367
|
-
"name": "
|
|
327
|
+
"name": "DepositRequested",
|
|
368
328
|
"type": "event"
|
|
369
329
|
},
|
|
370
330
|
{
|
|
@@ -372,20 +332,20 @@ export const Vault_jsonAbi = [
|
|
|
372
332
|
"inputs": [
|
|
373
333
|
{
|
|
374
334
|
"indexed": true,
|
|
375
|
-
"internalType": "
|
|
376
|
-
"name": "
|
|
377
|
-
"type": "
|
|
335
|
+
"internalType": "uint256",
|
|
336
|
+
"name": "depositId",
|
|
337
|
+
"type": "uint256"
|
|
378
338
|
},
|
|
379
339
|
{
|
|
380
340
|
"indexed": true,
|
|
381
341
|
"internalType": "address",
|
|
382
|
-
"name": "
|
|
342
|
+
"name": "owner",
|
|
383
343
|
"type": "address"
|
|
384
344
|
},
|
|
385
345
|
{
|
|
386
346
|
"indexed": false,
|
|
387
347
|
"internalType": "uint256",
|
|
388
|
-
"name": "
|
|
348
|
+
"name": "netAssets",
|
|
389
349
|
"type": "uint256"
|
|
390
350
|
},
|
|
391
351
|
{
|
|
@@ -395,7 +355,7 @@ export const Vault_jsonAbi = [
|
|
|
395
355
|
"type": "uint256"
|
|
396
356
|
}
|
|
397
357
|
],
|
|
398
|
-
"name": "
|
|
358
|
+
"name": "DepositSettled",
|
|
399
359
|
"type": "event"
|
|
400
360
|
},
|
|
401
361
|
{
|
|
@@ -403,12 +363,12 @@ export const Vault_jsonAbi = [
|
|
|
403
363
|
"inputs": [
|
|
404
364
|
{
|
|
405
365
|
"indexed": false,
|
|
406
|
-
"internalType": "
|
|
407
|
-
"name": "
|
|
408
|
-
"type": "
|
|
366
|
+
"internalType": "uint256",
|
|
367
|
+
"name": "size",
|
|
368
|
+
"type": "uint256"
|
|
409
369
|
}
|
|
410
370
|
],
|
|
411
|
-
"name": "
|
|
371
|
+
"name": "MaxSettlementBatchSizeSet",
|
|
412
372
|
"type": "event"
|
|
413
373
|
},
|
|
414
374
|
{
|
|
@@ -419,40 +379,73 @@ export const Vault_jsonAbi = [
|
|
|
419
379
|
"internalType": "uint256",
|
|
420
380
|
"name": "amount",
|
|
421
381
|
"type": "uint256"
|
|
422
|
-
}
|
|
382
|
+
}
|
|
383
|
+
],
|
|
384
|
+
"name": "MinDepositAssetsSet",
|
|
385
|
+
"type": "event"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"anonymous": false,
|
|
389
|
+
"inputs": [
|
|
390
|
+
{
|
|
391
|
+
"indexed": true,
|
|
392
|
+
"internalType": "address",
|
|
393
|
+
"name": "oracle",
|
|
394
|
+
"type": "address"
|
|
395
|
+
}
|
|
396
|
+
],
|
|
397
|
+
"name": "OracleSet",
|
|
398
|
+
"type": "event"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"anonymous": false,
|
|
402
|
+
"inputs": [
|
|
423
403
|
{
|
|
424
404
|
"indexed": false,
|
|
425
|
-
"internalType": "
|
|
426
|
-
"name": "
|
|
427
|
-
"type": "
|
|
428
|
-
}
|
|
405
|
+
"internalType": "address",
|
|
406
|
+
"name": "account",
|
|
407
|
+
"type": "address"
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
"name": "Paused",
|
|
411
|
+
"type": "event"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"anonymous": false,
|
|
415
|
+
"inputs": [
|
|
429
416
|
{
|
|
430
417
|
"indexed": false,
|
|
431
418
|
"internalType": "uint256",
|
|
432
|
-
"name": "
|
|
419
|
+
"name": "feeBps",
|
|
433
420
|
"type": "uint256"
|
|
434
421
|
}
|
|
435
422
|
],
|
|
436
|
-
"name": "
|
|
423
|
+
"name": "PerformanceFeeSet",
|
|
437
424
|
"type": "event"
|
|
438
425
|
},
|
|
439
426
|
{
|
|
440
427
|
"anonymous": false,
|
|
441
428
|
"inputs": [
|
|
442
429
|
{
|
|
443
|
-
"indexed":
|
|
444
|
-
"internalType": "
|
|
445
|
-
"name": "
|
|
446
|
-
"type": "
|
|
430
|
+
"indexed": false,
|
|
431
|
+
"internalType": "uint256",
|
|
432
|
+
"name": "callCount",
|
|
433
|
+
"type": "uint256"
|
|
447
434
|
},
|
|
448
435
|
{
|
|
449
|
-
"indexed":
|
|
450
|
-
"internalType": "
|
|
451
|
-
"name": "
|
|
452
|
-
"type": "
|
|
436
|
+
"indexed": false,
|
|
437
|
+
"internalType": "uint256",
|
|
438
|
+
"name": "navBefore",
|
|
439
|
+
"type": "uint256"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"indexed": false,
|
|
443
|
+
"internalType": "uint256",
|
|
444
|
+
"name": "navAfter",
|
|
445
|
+
"type": "uint256"
|
|
453
446
|
}
|
|
454
447
|
],
|
|
455
|
-
"name": "
|
|
448
|
+
"name": "Rebalanced",
|
|
456
449
|
"type": "event"
|
|
457
450
|
},
|
|
458
451
|
{
|
|
@@ -534,13 +527,31 @@ export const Vault_jsonAbi = [
|
|
|
534
527
|
"anonymous": false,
|
|
535
528
|
"inputs": [
|
|
536
529
|
{
|
|
537
|
-
"indexed":
|
|
538
|
-
"internalType": "
|
|
539
|
-
"name": "
|
|
540
|
-
"type": "
|
|
541
|
-
}
|
|
530
|
+
"indexed": false,
|
|
531
|
+
"internalType": "uint256",
|
|
532
|
+
"name": "oraclePriceCount",
|
|
533
|
+
"type": "uint256"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"indexed": false,
|
|
537
|
+
"internalType": "uint256",
|
|
538
|
+
"name": "depositsSettled",
|
|
539
|
+
"type": "uint256"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"indexed": false,
|
|
543
|
+
"internalType": "uint256",
|
|
544
|
+
"name": "depositsRefunded",
|
|
545
|
+
"type": "uint256"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"indexed": false,
|
|
549
|
+
"internalType": "uint256",
|
|
550
|
+
"name": "withdrawalsProcessed",
|
|
551
|
+
"type": "uint256"
|
|
552
|
+
}
|
|
542
553
|
],
|
|
543
|
-
"name": "
|
|
554
|
+
"name": "Settled",
|
|
544
555
|
"type": "event"
|
|
545
556
|
},
|
|
546
557
|
{
|
|
@@ -549,24 +560,30 @@ export const Vault_jsonAbi = [
|
|
|
549
560
|
{
|
|
550
561
|
"indexed": false,
|
|
551
562
|
"internalType": "uint256",
|
|
552
|
-
"name": "
|
|
563
|
+
"name": "fee",
|
|
553
564
|
"type": "uint256"
|
|
554
565
|
}
|
|
555
566
|
],
|
|
556
|
-
"name": "
|
|
567
|
+
"name": "SettlementFeeSet",
|
|
557
568
|
"type": "event"
|
|
558
569
|
},
|
|
559
570
|
{
|
|
560
571
|
"anonymous": false,
|
|
561
572
|
"inputs": [
|
|
573
|
+
{
|
|
574
|
+
"indexed": true,
|
|
575
|
+
"internalType": "address",
|
|
576
|
+
"name": "target",
|
|
577
|
+
"type": "address"
|
|
578
|
+
},
|
|
562
579
|
{
|
|
563
580
|
"indexed": false,
|
|
564
581
|
"internalType": "bool",
|
|
565
|
-
"name": "
|
|
582
|
+
"name": "allowed",
|
|
566
583
|
"type": "bool"
|
|
567
584
|
}
|
|
568
585
|
],
|
|
569
|
-
"name": "
|
|
586
|
+
"name": "TargetAllowed",
|
|
570
587
|
"type": "event"
|
|
571
588
|
},
|
|
572
589
|
{
|
|
@@ -575,85 +592,172 @@ export const Vault_jsonAbi = [
|
|
|
575
592
|
{
|
|
576
593
|
"indexed": true,
|
|
577
594
|
"internalType": "address",
|
|
578
|
-
"name": "
|
|
595
|
+
"name": "token",
|
|
579
596
|
"type": "address"
|
|
580
|
-
}
|
|
597
|
+
}
|
|
598
|
+
],
|
|
599
|
+
"name": "TrackedTokenAdded",
|
|
600
|
+
"type": "event"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"anonymous": false,
|
|
604
|
+
"inputs": [
|
|
605
|
+
{
|
|
606
|
+
"indexed": true,
|
|
607
|
+
"internalType": "address",
|
|
608
|
+
"name": "token",
|
|
609
|
+
"type": "address"
|
|
610
|
+
}
|
|
611
|
+
],
|
|
612
|
+
"name": "TrackedTokenRemoved",
|
|
613
|
+
"type": "event"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"anonymous": false,
|
|
617
|
+
"inputs": [
|
|
581
618
|
{
|
|
582
619
|
"indexed": false,
|
|
583
|
-
"internalType": "
|
|
584
|
-
"name": "
|
|
585
|
-
"type": "
|
|
620
|
+
"internalType": "address",
|
|
621
|
+
"name": "account",
|
|
622
|
+
"type": "address"
|
|
586
623
|
}
|
|
587
624
|
],
|
|
588
|
-
"name": "
|
|
625
|
+
"name": "Unpaused",
|
|
589
626
|
"type": "event"
|
|
590
627
|
},
|
|
591
628
|
{
|
|
592
629
|
"anonymous": false,
|
|
593
630
|
"inputs": [
|
|
631
|
+
{
|
|
632
|
+
"indexed": true,
|
|
633
|
+
"internalType": "uint256",
|
|
634
|
+
"name": "requestId",
|
|
635
|
+
"type": "uint256"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"indexed": true,
|
|
639
|
+
"internalType": "address",
|
|
640
|
+
"name": "owner",
|
|
641
|
+
"type": "address"
|
|
642
|
+
},
|
|
594
643
|
{
|
|
595
644
|
"indexed": false,
|
|
596
|
-
"internalType": "
|
|
597
|
-
"name": "
|
|
598
|
-
"type": "
|
|
645
|
+
"internalType": "uint256",
|
|
646
|
+
"name": "shares",
|
|
647
|
+
"type": "uint256"
|
|
599
648
|
}
|
|
600
649
|
],
|
|
601
|
-
"name": "
|
|
650
|
+
"name": "WithdrawCancelled",
|
|
602
651
|
"type": "event"
|
|
603
652
|
},
|
|
604
653
|
{
|
|
605
654
|
"anonymous": false,
|
|
606
655
|
"inputs": [
|
|
656
|
+
{
|
|
657
|
+
"indexed": true,
|
|
658
|
+
"internalType": "uint256",
|
|
659
|
+
"name": "requestId",
|
|
660
|
+
"type": "uint256"
|
|
661
|
+
},
|
|
607
662
|
{
|
|
608
663
|
"indexed": true,
|
|
609
664
|
"internalType": "address",
|
|
610
|
-
"name": "
|
|
665
|
+
"name": "owner",
|
|
611
666
|
"type": "address"
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"indexed": false,
|
|
670
|
+
"internalType": "uint256",
|
|
671
|
+
"name": "shares",
|
|
672
|
+
"type": "uint256"
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"indexed": false,
|
|
676
|
+
"internalType": "uint256",
|
|
677
|
+
"name": "assetsPaid",
|
|
678
|
+
"type": "uint256"
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"indexed": false,
|
|
682
|
+
"internalType": "uint256",
|
|
683
|
+
"name": "fee",
|
|
684
|
+
"type": "uint256"
|
|
612
685
|
}
|
|
613
686
|
],
|
|
614
|
-
"name": "
|
|
687
|
+
"name": "WithdrawClaimed",
|
|
615
688
|
"type": "event"
|
|
616
689
|
},
|
|
617
690
|
{
|
|
618
691
|
"anonymous": false,
|
|
619
692
|
"inputs": [
|
|
693
|
+
{
|
|
694
|
+
"indexed": true,
|
|
695
|
+
"internalType": "uint256",
|
|
696
|
+
"name": "requestId",
|
|
697
|
+
"type": "uint256"
|
|
698
|
+
},
|
|
620
699
|
{
|
|
621
700
|
"indexed": true,
|
|
622
701
|
"internalType": "address",
|
|
623
|
-
"name": "
|
|
702
|
+
"name": "owner",
|
|
624
703
|
"type": "address"
|
|
625
704
|
},
|
|
705
|
+
{
|
|
706
|
+
"indexed": false,
|
|
707
|
+
"internalType": "uint256",
|
|
708
|
+
"name": "shares",
|
|
709
|
+
"type": "uint256"
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"indexed": false,
|
|
713
|
+
"internalType": "uint64",
|
|
714
|
+
"name": "claimableAt",
|
|
715
|
+
"type": "uint64"
|
|
716
|
+
}
|
|
717
|
+
],
|
|
718
|
+
"name": "WithdrawRequested",
|
|
719
|
+
"type": "event"
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"anonymous": false,
|
|
723
|
+
"inputs": [
|
|
724
|
+
{
|
|
725
|
+
"indexed": true,
|
|
726
|
+
"internalType": "uint256",
|
|
727
|
+
"name": "requestId",
|
|
728
|
+
"type": "uint256"
|
|
729
|
+
},
|
|
626
730
|
{
|
|
627
731
|
"indexed": true,
|
|
628
732
|
"internalType": "address",
|
|
629
|
-
"name": "
|
|
733
|
+
"name": "owner",
|
|
630
734
|
"type": "address"
|
|
631
735
|
},
|
|
632
736
|
{
|
|
633
737
|
"indexed": false,
|
|
634
738
|
"internalType": "uint256",
|
|
635
|
-
"name": "
|
|
739
|
+
"name": "shares",
|
|
636
740
|
"type": "uint256"
|
|
637
741
|
},
|
|
638
742
|
{
|
|
639
743
|
"indexed": false,
|
|
640
744
|
"internalType": "uint256",
|
|
641
|
-
"name": "
|
|
745
|
+
"name": "assetsOut",
|
|
642
746
|
"type": "uint256"
|
|
643
747
|
},
|
|
644
748
|
{
|
|
645
749
|
"indexed": false,
|
|
646
750
|
"internalType": "uint256",
|
|
647
|
-
"name": "
|
|
751
|
+
"name": "fee",
|
|
648
752
|
"type": "uint256"
|
|
649
753
|
}
|
|
650
754
|
],
|
|
651
|
-
"name": "
|
|
755
|
+
"name": "WithdrawalSettled",
|
|
652
756
|
"type": "event"
|
|
653
757
|
},
|
|
654
758
|
{
|
|
655
759
|
"inputs": [],
|
|
656
|
-
"name": "
|
|
760
|
+
"name": "BOT_ROLE",
|
|
657
761
|
"outputs": [
|
|
658
762
|
{
|
|
659
763
|
"internalType": "bytes32",
|
|
@@ -666,12 +770,12 @@ export const Vault_jsonAbi = [
|
|
|
666
770
|
},
|
|
667
771
|
{
|
|
668
772
|
"inputs": [],
|
|
669
|
-
"name": "
|
|
773
|
+
"name": "BPS",
|
|
670
774
|
"outputs": [
|
|
671
775
|
{
|
|
672
|
-
"internalType": "
|
|
776
|
+
"internalType": "uint256",
|
|
673
777
|
"name": "",
|
|
674
|
-
"type": "
|
|
778
|
+
"type": "uint256"
|
|
675
779
|
}
|
|
676
780
|
],
|
|
677
781
|
"stateMutability": "view",
|
|
@@ -679,7 +783,7 @@ export const Vault_jsonAbi = [
|
|
|
679
783
|
},
|
|
680
784
|
{
|
|
681
785
|
"inputs": [],
|
|
682
|
-
"name": "
|
|
786
|
+
"name": "DEFAULT_ADMIN_ROLE",
|
|
683
787
|
"outputs": [
|
|
684
788
|
{
|
|
685
789
|
"internalType": "bytes32",
|
|
@@ -692,7 +796,7 @@ export const Vault_jsonAbi = [
|
|
|
692
796
|
},
|
|
693
797
|
{
|
|
694
798
|
"inputs": [],
|
|
695
|
-
"name": "
|
|
799
|
+
"name": "GUARDIAN_ROLE",
|
|
696
800
|
"outputs": [
|
|
697
801
|
{
|
|
698
802
|
"internalType": "bytes32",
|
|
@@ -705,7 +809,7 @@ export const Vault_jsonAbi = [
|
|
|
705
809
|
},
|
|
706
810
|
{
|
|
707
811
|
"inputs": [],
|
|
708
|
-
"name": "
|
|
812
|
+
"name": "MANAGER_ROLE",
|
|
709
813
|
"outputs": [
|
|
710
814
|
{
|
|
711
815
|
"internalType": "bytes32",
|
|
@@ -718,12 +822,12 @@ export const Vault_jsonAbi = [
|
|
|
718
822
|
},
|
|
719
823
|
{
|
|
720
824
|
"inputs": [],
|
|
721
|
-
"name": "
|
|
825
|
+
"name": "MAX_FEE_BPS",
|
|
722
826
|
"outputs": [
|
|
723
827
|
{
|
|
724
|
-
"internalType": "
|
|
828
|
+
"internalType": "uint256",
|
|
725
829
|
"name": "",
|
|
726
|
-
"type": "
|
|
830
|
+
"type": "uint256"
|
|
727
831
|
}
|
|
728
832
|
],
|
|
729
833
|
"stateMutability": "view",
|
|
@@ -731,73 +835,94 @@ export const Vault_jsonAbi = [
|
|
|
731
835
|
},
|
|
732
836
|
{
|
|
733
837
|
"inputs": [],
|
|
734
|
-
"name": "
|
|
838
|
+
"name": "SHARE_SCALE",
|
|
735
839
|
"outputs": [
|
|
736
840
|
{
|
|
737
|
-
"internalType": "
|
|
841
|
+
"internalType": "uint256",
|
|
738
842
|
"name": "",
|
|
739
|
-
"type": "
|
|
843
|
+
"type": "uint256"
|
|
740
844
|
}
|
|
741
845
|
],
|
|
742
846
|
"stateMutability": "view",
|
|
743
847
|
"type": "function"
|
|
744
848
|
},
|
|
745
849
|
{
|
|
746
|
-
"inputs": [
|
|
747
|
-
"name": "SLASHER_FACTORY",
|
|
748
|
-
"outputs": [
|
|
850
|
+
"inputs": [
|
|
749
851
|
{
|
|
750
852
|
"internalType": "address",
|
|
751
|
-
"name": "",
|
|
853
|
+
"name": "token",
|
|
752
854
|
"type": "address"
|
|
753
855
|
}
|
|
754
856
|
],
|
|
755
|
-
"
|
|
857
|
+
"name": "addTrackedToken",
|
|
858
|
+
"outputs": [],
|
|
859
|
+
"stateMutability": "nonpayable",
|
|
756
860
|
"type": "function"
|
|
757
861
|
},
|
|
758
862
|
{
|
|
759
863
|
"inputs": [
|
|
864
|
+
{
|
|
865
|
+
"internalType": "contract IERC20",
|
|
866
|
+
"name": "token",
|
|
867
|
+
"type": "address"
|
|
868
|
+
},
|
|
760
869
|
{
|
|
761
870
|
"internalType": "address",
|
|
762
|
-
"name": "
|
|
871
|
+
"name": "spender",
|
|
763
872
|
"type": "address"
|
|
764
|
-
}
|
|
765
|
-
],
|
|
766
|
-
"name": "activeBalanceOf",
|
|
767
|
-
"outputs": [
|
|
873
|
+
},
|
|
768
874
|
{
|
|
769
875
|
"internalType": "uint256",
|
|
770
|
-
"name": "",
|
|
876
|
+
"name": "amount",
|
|
771
877
|
"type": "uint256"
|
|
772
878
|
}
|
|
773
879
|
],
|
|
774
|
-
"
|
|
880
|
+
"name": "approveERC20",
|
|
881
|
+
"outputs": [],
|
|
882
|
+
"stateMutability": "nonpayable",
|
|
775
883
|
"type": "function"
|
|
776
884
|
},
|
|
777
885
|
{
|
|
778
886
|
"inputs": [
|
|
779
887
|
{
|
|
780
888
|
"internalType": "address",
|
|
781
|
-
"name": "
|
|
889
|
+
"name": "permit2",
|
|
782
890
|
"type": "address"
|
|
783
891
|
},
|
|
784
892
|
{
|
|
785
|
-
"internalType": "
|
|
786
|
-
"name": "
|
|
787
|
-
"type": "
|
|
893
|
+
"internalType": "address",
|
|
894
|
+
"name": "token",
|
|
895
|
+
"type": "address"
|
|
788
896
|
},
|
|
789
897
|
{
|
|
790
|
-
"internalType": "
|
|
791
|
-
"name": "
|
|
792
|
-
"type": "
|
|
898
|
+
"internalType": "address",
|
|
899
|
+
"name": "spender",
|
|
900
|
+
"type": "address"
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
"internalType": "uint160",
|
|
904
|
+
"name": "amount",
|
|
905
|
+
"type": "uint160"
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"internalType": "uint48",
|
|
909
|
+
"name": "expiration",
|
|
910
|
+
"type": "uint48"
|
|
793
911
|
}
|
|
794
912
|
],
|
|
795
|
-
"name": "
|
|
913
|
+
"name": "approvePermit2",
|
|
914
|
+
"outputs": [],
|
|
915
|
+
"stateMutability": "nonpayable",
|
|
916
|
+
"type": "function"
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
"inputs": [],
|
|
920
|
+
"name": "asset",
|
|
796
921
|
"outputs": [
|
|
797
922
|
{
|
|
798
|
-
"internalType": "
|
|
923
|
+
"internalType": "address",
|
|
799
924
|
"name": "",
|
|
800
|
-
"type": "
|
|
925
|
+
"type": "address"
|
|
801
926
|
}
|
|
802
927
|
],
|
|
803
928
|
"stateMutability": "view",
|
|
@@ -805,36 +930,25 @@ export const Vault_jsonAbi = [
|
|
|
805
930
|
},
|
|
806
931
|
{
|
|
807
932
|
"inputs": [],
|
|
808
|
-
"name": "
|
|
933
|
+
"name": "assetDecimals",
|
|
809
934
|
"outputs": [
|
|
810
935
|
{
|
|
811
|
-
"internalType": "
|
|
936
|
+
"internalType": "uint8",
|
|
812
937
|
"name": "",
|
|
813
|
-
"type": "
|
|
938
|
+
"type": "uint8"
|
|
814
939
|
}
|
|
815
940
|
],
|
|
816
941
|
"stateMutability": "view",
|
|
817
942
|
"type": "function"
|
|
818
943
|
},
|
|
819
944
|
{
|
|
820
|
-
"inputs": [
|
|
821
|
-
|
|
822
|
-
"internalType": "uint48",
|
|
823
|
-
"name": "timestamp",
|
|
824
|
-
"type": "uint48"
|
|
825
|
-
},
|
|
826
|
-
{
|
|
827
|
-
"internalType": "bytes",
|
|
828
|
-
"name": "hint",
|
|
829
|
-
"type": "bytes"
|
|
830
|
-
}
|
|
831
|
-
],
|
|
832
|
-
"name": "activeSharesAt",
|
|
945
|
+
"inputs": [],
|
|
946
|
+
"name": "assetToken",
|
|
833
947
|
"outputs": [
|
|
834
948
|
{
|
|
835
|
-
"internalType": "
|
|
949
|
+
"internalType": "contract IERC20",
|
|
836
950
|
"name": "",
|
|
837
|
-
"type": "
|
|
951
|
+
"type": "address"
|
|
838
952
|
}
|
|
839
953
|
],
|
|
840
954
|
"stateMutability": "view",
|
|
@@ -842,123 +956,101 @@ export const Vault_jsonAbi = [
|
|
|
842
956
|
},
|
|
843
957
|
{
|
|
844
958
|
"inputs": [
|
|
845
|
-
{
|
|
846
|
-
"internalType": "address",
|
|
847
|
-
"name": "account",
|
|
848
|
-
"type": "address"
|
|
849
|
-
}
|
|
850
|
-
],
|
|
851
|
-
"name": "activeSharesOf",
|
|
852
|
-
"outputs": [
|
|
853
959
|
{
|
|
854
960
|
"internalType": "uint256",
|
|
855
|
-
"name": "",
|
|
961
|
+
"name": "depositId",
|
|
856
962
|
"type": "uint256"
|
|
857
963
|
}
|
|
858
964
|
],
|
|
859
|
-
"
|
|
965
|
+
"name": "cancelDepositRequest",
|
|
966
|
+
"outputs": [],
|
|
967
|
+
"stateMutability": "nonpayable",
|
|
860
968
|
"type": "function"
|
|
861
969
|
},
|
|
862
970
|
{
|
|
863
971
|
"inputs": [
|
|
864
972
|
{
|
|
865
|
-
"internalType": "
|
|
866
|
-
"name": "
|
|
867
|
-
"type": "
|
|
868
|
-
},
|
|
869
|
-
{
|
|
870
|
-
"internalType": "uint48",
|
|
871
|
-
"name": "timestamp",
|
|
872
|
-
"type": "uint48"
|
|
873
|
-
},
|
|
874
|
-
{
|
|
875
|
-
"internalType": "bytes",
|
|
876
|
-
"name": "hint",
|
|
877
|
-
"type": "bytes"
|
|
973
|
+
"internalType": "uint256",
|
|
974
|
+
"name": "maxCount",
|
|
975
|
+
"type": "uint256"
|
|
878
976
|
}
|
|
879
977
|
],
|
|
880
|
-
"name": "
|
|
978
|
+
"name": "cancelPendingDeposits",
|
|
881
979
|
"outputs": [
|
|
882
980
|
{
|
|
883
981
|
"internalType": "uint256",
|
|
884
|
-
"name": "",
|
|
982
|
+
"name": "cancelled",
|
|
885
983
|
"type": "uint256"
|
|
886
984
|
}
|
|
887
985
|
],
|
|
888
|
-
"stateMutability": "
|
|
986
|
+
"stateMutability": "nonpayable",
|
|
889
987
|
"type": "function"
|
|
890
988
|
},
|
|
891
989
|
{
|
|
892
|
-
"inputs": [
|
|
893
|
-
"name": "activeStake",
|
|
894
|
-
"outputs": [
|
|
990
|
+
"inputs": [
|
|
895
991
|
{
|
|
896
992
|
"internalType": "uint256",
|
|
897
|
-
"name": "",
|
|
993
|
+
"name": "requestId",
|
|
898
994
|
"type": "uint256"
|
|
899
995
|
}
|
|
900
996
|
],
|
|
901
|
-
"
|
|
997
|
+
"name": "cancelWithdraw",
|
|
998
|
+
"outputs": [],
|
|
999
|
+
"stateMutability": "nonpayable",
|
|
902
1000
|
"type": "function"
|
|
903
1001
|
},
|
|
904
1002
|
{
|
|
905
1003
|
"inputs": [
|
|
906
1004
|
{
|
|
907
|
-
"internalType": "
|
|
908
|
-
"name": "
|
|
909
|
-
"type": "
|
|
1005
|
+
"internalType": "uint256",
|
|
1006
|
+
"name": "requestId",
|
|
1007
|
+
"type": "uint256"
|
|
910
1008
|
},
|
|
911
1009
|
{
|
|
912
|
-
"internalType": "
|
|
913
|
-
"name": "
|
|
914
|
-
"type": "
|
|
1010
|
+
"internalType": "contract IVault",
|
|
1011
|
+
"name": "newVault",
|
|
1012
|
+
"type": "address"
|
|
915
1013
|
}
|
|
916
1014
|
],
|
|
917
|
-
"name": "
|
|
1015
|
+
"name": "claimAndDeposit",
|
|
918
1016
|
"outputs": [
|
|
919
1017
|
{
|
|
920
1018
|
"internalType": "uint256",
|
|
921
|
-
"name": "",
|
|
1019
|
+
"name": "depositId",
|
|
922
1020
|
"type": "uint256"
|
|
923
1021
|
}
|
|
924
1022
|
],
|
|
925
|
-
"stateMutability": "
|
|
1023
|
+
"stateMutability": "nonpayable",
|
|
926
1024
|
"type": "function"
|
|
927
1025
|
},
|
|
928
1026
|
{
|
|
929
|
-
"inputs": [
|
|
930
|
-
"name": "burner",
|
|
931
|
-
"outputs": [
|
|
1027
|
+
"inputs": [
|
|
932
1028
|
{
|
|
933
|
-
"internalType": "
|
|
934
|
-
"name": "",
|
|
935
|
-
"type": "
|
|
1029
|
+
"internalType": "uint256",
|
|
1030
|
+
"name": "requestId",
|
|
1031
|
+
"type": "uint256"
|
|
936
1032
|
}
|
|
937
1033
|
],
|
|
938
|
-
"
|
|
1034
|
+
"name": "claimWithdraw",
|
|
1035
|
+
"outputs": [],
|
|
1036
|
+
"stateMutability": "nonpayable",
|
|
939
1037
|
"type": "function"
|
|
940
1038
|
},
|
|
941
1039
|
{
|
|
942
1040
|
"inputs": [
|
|
943
|
-
{
|
|
944
|
-
"internalType": "address",
|
|
945
|
-
"name": "recipient",
|
|
946
|
-
"type": "address"
|
|
947
|
-
},
|
|
948
1041
|
{
|
|
949
1042
|
"internalType": "uint256",
|
|
950
|
-
"name": "
|
|
1043
|
+
"name": "requestId",
|
|
951
1044
|
"type": "uint256"
|
|
952
|
-
}
|
|
953
|
-
],
|
|
954
|
-
"name": "claim",
|
|
955
|
-
"outputs": [
|
|
1045
|
+
},
|
|
956
1046
|
{
|
|
957
|
-
"internalType": "
|
|
958
|
-
"name": "
|
|
959
|
-
"type": "
|
|
1047
|
+
"internalType": "address",
|
|
1048
|
+
"name": "recipient",
|
|
1049
|
+
"type": "address"
|
|
960
1050
|
}
|
|
961
1051
|
],
|
|
1052
|
+
"name": "claimWithdrawTo",
|
|
1053
|
+
"outputs": [],
|
|
962
1054
|
"stateMutability": "nonpayable",
|
|
963
1055
|
"type": "function"
|
|
964
1056
|
},
|
|
@@ -966,42 +1058,30 @@ export const Vault_jsonAbi = [
|
|
|
966
1058
|
"inputs": [
|
|
967
1059
|
{
|
|
968
1060
|
"internalType": "address",
|
|
969
|
-
"name": "
|
|
1061
|
+
"name": "user",
|
|
970
1062
|
"type": "address"
|
|
971
|
-
},
|
|
972
|
-
{
|
|
973
|
-
"internalType": "uint256[]",
|
|
974
|
-
"name": "epochs",
|
|
975
|
-
"type": "uint256[]"
|
|
976
1063
|
}
|
|
977
1064
|
],
|
|
978
|
-
"name": "
|
|
1065
|
+
"name": "costBasisPerShare",
|
|
979
1066
|
"outputs": [
|
|
980
1067
|
{
|
|
981
1068
|
"internalType": "uint256",
|
|
982
|
-
"name": "
|
|
1069
|
+
"name": "",
|
|
983
1070
|
"type": "uint256"
|
|
984
1071
|
}
|
|
985
1072
|
],
|
|
986
|
-
"stateMutability": "
|
|
1073
|
+
"stateMutability": "view",
|
|
987
1074
|
"type": "function"
|
|
988
1075
|
},
|
|
989
1076
|
{
|
|
990
|
-
"inputs": [
|
|
991
|
-
"name": "collateral",
|
|
992
|
-
"outputs": [
|
|
1077
|
+
"inputs": [
|
|
993
1078
|
{
|
|
994
1079
|
"internalType": "address",
|
|
995
1080
|
"name": "",
|
|
996
1081
|
"type": "address"
|
|
997
1082
|
}
|
|
998
1083
|
],
|
|
999
|
-
"
|
|
1000
|
-
"type": "function"
|
|
1001
|
-
},
|
|
1002
|
-
{
|
|
1003
|
-
"inputs": [],
|
|
1004
|
-
"name": "currentEpoch",
|
|
1084
|
+
"name": "costBasisValue",
|
|
1005
1085
|
"outputs": [
|
|
1006
1086
|
{
|
|
1007
1087
|
"internalType": "uint256",
|
|
@@ -1014,12 +1094,12 @@ export const Vault_jsonAbi = [
|
|
|
1014
1094
|
},
|
|
1015
1095
|
{
|
|
1016
1096
|
"inputs": [],
|
|
1017
|
-
"name": "
|
|
1097
|
+
"name": "depositQueueLength",
|
|
1018
1098
|
"outputs": [
|
|
1019
1099
|
{
|
|
1020
|
-
"internalType": "
|
|
1100
|
+
"internalType": "uint256",
|
|
1021
1101
|
"name": "",
|
|
1022
|
-
"type": "
|
|
1102
|
+
"type": "uint256"
|
|
1023
1103
|
}
|
|
1024
1104
|
],
|
|
1025
1105
|
"stateMutability": "view",
|
|
@@ -1027,7 +1107,7 @@ export const Vault_jsonAbi = [
|
|
|
1027
1107
|
},
|
|
1028
1108
|
{
|
|
1029
1109
|
"inputs": [],
|
|
1030
|
-
"name": "
|
|
1110
|
+
"name": "feeRecipient",
|
|
1031
1111
|
"outputs": [
|
|
1032
1112
|
{
|
|
1033
1113
|
"internalType": "address",
|
|
@@ -1040,54 +1120,35 @@ export const Vault_jsonAbi = [
|
|
|
1040
1120
|
},
|
|
1041
1121
|
{
|
|
1042
1122
|
"inputs": [
|
|
1043
|
-
{
|
|
1044
|
-
"internalType": "address",
|
|
1045
|
-
"name": "onBehalfOf",
|
|
1046
|
-
"type": "address"
|
|
1047
|
-
},
|
|
1048
|
-
{
|
|
1049
|
-
"internalType": "uint256",
|
|
1050
|
-
"name": "amount",
|
|
1051
|
-
"type": "uint256"
|
|
1052
|
-
}
|
|
1053
|
-
],
|
|
1054
|
-
"name": "deposit",
|
|
1055
|
-
"outputs": [
|
|
1056
|
-
{
|
|
1057
|
-
"internalType": "uint256",
|
|
1058
|
-
"name": "depositedAmount",
|
|
1059
|
-
"type": "uint256"
|
|
1060
|
-
},
|
|
1061
|
-
{
|
|
1062
|
-
"internalType": "uint256",
|
|
1063
|
-
"name": "mintedShares",
|
|
1064
|
-
"type": "uint256"
|
|
1065
|
-
}
|
|
1066
|
-
],
|
|
1067
|
-
"stateMutability": "nonpayable",
|
|
1068
|
-
"type": "function"
|
|
1069
|
-
},
|
|
1070
|
-
{
|
|
1071
|
-
"inputs": [],
|
|
1072
|
-
"name": "depositLimit",
|
|
1073
|
-
"outputs": [
|
|
1074
1123
|
{
|
|
1075
1124
|
"internalType": "uint256",
|
|
1076
|
-
"name": "",
|
|
1125
|
+
"name": "depositId",
|
|
1077
1126
|
"type": "uint256"
|
|
1078
1127
|
}
|
|
1079
1128
|
],
|
|
1080
|
-
"
|
|
1081
|
-
"type": "function"
|
|
1082
|
-
},
|
|
1083
|
-
{
|
|
1084
|
-
"inputs": [],
|
|
1085
|
-
"name": "depositWhitelist",
|
|
1129
|
+
"name": "getDepositRequest",
|
|
1086
1130
|
"outputs": [
|
|
1087
1131
|
{
|
|
1088
|
-
"
|
|
1132
|
+
"components": [
|
|
1133
|
+
{
|
|
1134
|
+
"internalType": "address",
|
|
1135
|
+
"name": "owner",
|
|
1136
|
+
"type": "address"
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
"internalType": "uint256",
|
|
1140
|
+
"name": "assets",
|
|
1141
|
+
"type": "uint256"
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
"internalType": "enum IVault.DepositStatus",
|
|
1145
|
+
"name": "status",
|
|
1146
|
+
"type": "uint8"
|
|
1147
|
+
}
|
|
1148
|
+
],
|
|
1149
|
+
"internalType": "struct IVault.DepositRequest",
|
|
1089
1150
|
"name": "",
|
|
1090
|
-
"type": "
|
|
1151
|
+
"type": "tuple"
|
|
1091
1152
|
}
|
|
1092
1153
|
],
|
|
1093
1154
|
"stateMutability": "view",
|
|
@@ -1095,44 +1156,60 @@ export const Vault_jsonAbi = [
|
|
|
1095
1156
|
},
|
|
1096
1157
|
{
|
|
1097
1158
|
"inputs": [
|
|
1098
|
-
{
|
|
1099
|
-
"internalType": "uint48",
|
|
1100
|
-
"name": "timestamp",
|
|
1101
|
-
"type": "uint48"
|
|
1102
|
-
}
|
|
1103
|
-
],
|
|
1104
|
-
"name": "epochAt",
|
|
1105
|
-
"outputs": [
|
|
1106
1159
|
{
|
|
1107
1160
|
"internalType": "uint256",
|
|
1108
|
-
"name": "",
|
|
1161
|
+
"name": "requestId",
|
|
1109
1162
|
"type": "uint256"
|
|
1110
1163
|
}
|
|
1111
1164
|
],
|
|
1112
|
-
"
|
|
1113
|
-
"type": "function"
|
|
1114
|
-
},
|
|
1115
|
-
{
|
|
1116
|
-
"inputs": [],
|
|
1117
|
-
"name": "epochDuration",
|
|
1165
|
+
"name": "getRequest",
|
|
1118
1166
|
"outputs": [
|
|
1119
1167
|
{
|
|
1120
|
-
"
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1168
|
+
"components": [
|
|
1169
|
+
{
|
|
1170
|
+
"internalType": "address",
|
|
1171
|
+
"name": "owner",
|
|
1172
|
+
"type": "address"
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
"internalType": "uint256",
|
|
1176
|
+
"name": "shares",
|
|
1177
|
+
"type": "uint256"
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"internalType": "uint256",
|
|
1181
|
+
"name": "costBasisValueSnapshot",
|
|
1182
|
+
"type": "uint256"
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
"internalType": "uint64",
|
|
1186
|
+
"name": "requestedAt",
|
|
1187
|
+
"type": "uint64"
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
"internalType": "uint64",
|
|
1191
|
+
"name": "claimableAt",
|
|
1192
|
+
"type": "uint64"
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
"internalType": "enum IVault.WithdrawStatus",
|
|
1196
|
+
"name": "status",
|
|
1197
|
+
"type": "uint8"
|
|
1198
|
+
},
|
|
1199
|
+
{
|
|
1200
|
+
"internalType": "uint256",
|
|
1201
|
+
"name": "assetsOut",
|
|
1202
|
+
"type": "uint256"
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
"internalType": "uint256",
|
|
1206
|
+
"name": "fee",
|
|
1207
|
+
"type": "uint256"
|
|
1208
|
+
}
|
|
1209
|
+
],
|
|
1210
|
+
"internalType": "struct IVault.WithdrawRequest",
|
|
1134
1211
|
"name": "",
|
|
1135
|
-
"type": "
|
|
1212
|
+
"type": "tuple"
|
|
1136
1213
|
}
|
|
1137
1214
|
],
|
|
1138
1215
|
"stateMutability": "view",
|
|
@@ -1191,9 +1268,67 @@ export const Vault_jsonAbi = [
|
|
|
1191
1268
|
"name": "hasRole",
|
|
1192
1269
|
"outputs": [
|
|
1193
1270
|
{
|
|
1194
|
-
"internalType": "bool",
|
|
1271
|
+
"internalType": "bool",
|
|
1272
|
+
"name": "",
|
|
1273
|
+
"type": "bool"
|
|
1274
|
+
}
|
|
1275
|
+
],
|
|
1276
|
+
"stateMutability": "view",
|
|
1277
|
+
"type": "function"
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
"inputs": [],
|
|
1281
|
+
"name": "hasSettleReadyWork",
|
|
1282
|
+
"outputs": [
|
|
1283
|
+
{
|
|
1284
|
+
"internalType": "bool",
|
|
1285
|
+
"name": "",
|
|
1286
|
+
"type": "bool"
|
|
1287
|
+
}
|
|
1288
|
+
],
|
|
1289
|
+
"stateMutability": "view",
|
|
1290
|
+
"type": "function"
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"inputs": [
|
|
1294
|
+
{
|
|
1295
|
+
"internalType": "address",
|
|
1296
|
+
"name": "",
|
|
1297
|
+
"type": "address"
|
|
1298
|
+
}
|
|
1299
|
+
],
|
|
1300
|
+
"name": "isTracked",
|
|
1301
|
+
"outputs": [
|
|
1302
|
+
{
|
|
1303
|
+
"internalType": "bool",
|
|
1304
|
+
"name": "",
|
|
1305
|
+
"type": "bool"
|
|
1306
|
+
}
|
|
1307
|
+
],
|
|
1308
|
+
"stateMutability": "view",
|
|
1309
|
+
"type": "function"
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
"inputs": [],
|
|
1313
|
+
"name": "maxSettlementBatchSize",
|
|
1314
|
+
"outputs": [
|
|
1315
|
+
{
|
|
1316
|
+
"internalType": "uint256",
|
|
1317
|
+
"name": "",
|
|
1318
|
+
"type": "uint256"
|
|
1319
|
+
}
|
|
1320
|
+
],
|
|
1321
|
+
"stateMutability": "view",
|
|
1322
|
+
"type": "function"
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
"inputs": [],
|
|
1326
|
+
"name": "minDepositAssets",
|
|
1327
|
+
"outputs": [
|
|
1328
|
+
{
|
|
1329
|
+
"internalType": "uint256",
|
|
1195
1330
|
"name": "",
|
|
1196
|
-
"type": "
|
|
1331
|
+
"type": "uint256"
|
|
1197
1332
|
}
|
|
1198
1333
|
],
|
|
1199
1334
|
"stateMutability": "view",
|
|
@@ -1202,34 +1337,34 @@ export const Vault_jsonAbi = [
|
|
|
1202
1337
|
{
|
|
1203
1338
|
"inputs": [
|
|
1204
1339
|
{
|
|
1205
|
-
"internalType": "
|
|
1206
|
-
"name": "
|
|
1207
|
-
"type": "
|
|
1340
|
+
"internalType": "address",
|
|
1341
|
+
"name": "from",
|
|
1342
|
+
"type": "address"
|
|
1208
1343
|
},
|
|
1209
1344
|
{
|
|
1210
1345
|
"internalType": "address",
|
|
1211
|
-
"name": "
|
|
1346
|
+
"name": "to",
|
|
1212
1347
|
"type": "address"
|
|
1213
1348
|
},
|
|
1214
1349
|
{
|
|
1215
|
-
"internalType": "
|
|
1216
|
-
"name": "
|
|
1217
|
-
"type": "
|
|
1350
|
+
"internalType": "uint256",
|
|
1351
|
+
"name": "value",
|
|
1352
|
+
"type": "uint256"
|
|
1218
1353
|
}
|
|
1219
1354
|
],
|
|
1220
|
-
"name": "
|
|
1355
|
+
"name": "onShareTransfer",
|
|
1221
1356
|
"outputs": [],
|
|
1222
1357
|
"stateMutability": "nonpayable",
|
|
1223
1358
|
"type": "function"
|
|
1224
1359
|
},
|
|
1225
1360
|
{
|
|
1226
1361
|
"inputs": [],
|
|
1227
|
-
"name": "
|
|
1362
|
+
"name": "oracle",
|
|
1228
1363
|
"outputs": [
|
|
1229
1364
|
{
|
|
1230
|
-
"internalType": "
|
|
1365
|
+
"internalType": "address",
|
|
1231
1366
|
"name": "",
|
|
1232
|
-
"type": "
|
|
1367
|
+
"type": "address"
|
|
1233
1368
|
}
|
|
1234
1369
|
],
|
|
1235
1370
|
"stateMutability": "view",
|
|
@@ -1237,30 +1372,31 @@ export const Vault_jsonAbi = [
|
|
|
1237
1372
|
},
|
|
1238
1373
|
{
|
|
1239
1374
|
"inputs": [],
|
|
1240
|
-
"name": "
|
|
1375
|
+
"name": "oracleContract",
|
|
1241
1376
|
"outputs": [
|
|
1242
1377
|
{
|
|
1243
|
-
"internalType": "
|
|
1378
|
+
"internalType": "contract IOracle",
|
|
1244
1379
|
"name": "",
|
|
1245
|
-
"type": "
|
|
1380
|
+
"type": "address"
|
|
1246
1381
|
}
|
|
1247
1382
|
],
|
|
1248
1383
|
"stateMutability": "view",
|
|
1249
1384
|
"type": "function"
|
|
1250
1385
|
},
|
|
1251
1386
|
{
|
|
1252
|
-
"inputs": [
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
"
|
|
1387
|
+
"inputs": [],
|
|
1388
|
+
"name": "pause",
|
|
1389
|
+
"outputs": [],
|
|
1390
|
+
"stateMutability": "nonpayable",
|
|
1391
|
+
"type": "function"
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
"inputs": [],
|
|
1395
|
+
"name": "paused",
|
|
1260
1396
|
"outputs": [
|
|
1261
1397
|
{
|
|
1262
1398
|
"internalType": "bool",
|
|
1263
|
-
"name": "
|
|
1399
|
+
"name": "",
|
|
1264
1400
|
"type": "bool"
|
|
1265
1401
|
}
|
|
1266
1402
|
],
|
|
@@ -1269,12 +1405,12 @@ export const Vault_jsonAbi = [
|
|
|
1269
1405
|
},
|
|
1270
1406
|
{
|
|
1271
1407
|
"inputs": [],
|
|
1272
|
-
"name": "
|
|
1408
|
+
"name": "pendingDepositTotal",
|
|
1273
1409
|
"outputs": [
|
|
1274
1410
|
{
|
|
1275
|
-
"internalType": "
|
|
1411
|
+
"internalType": "uint256",
|
|
1276
1412
|
"name": "",
|
|
1277
|
-
"type": "
|
|
1413
|
+
"type": "uint256"
|
|
1278
1414
|
}
|
|
1279
1415
|
],
|
|
1280
1416
|
"stateMutability": "view",
|
|
@@ -1282,36 +1418,38 @@ export const Vault_jsonAbi = [
|
|
|
1282
1418
|
},
|
|
1283
1419
|
{
|
|
1284
1420
|
"inputs": [],
|
|
1285
|
-
"name": "
|
|
1421
|
+
"name": "pendingSettlementWithdrawShares",
|
|
1286
1422
|
"outputs": [
|
|
1287
1423
|
{
|
|
1288
|
-
"internalType": "
|
|
1424
|
+
"internalType": "uint256",
|
|
1289
1425
|
"name": "",
|
|
1290
|
-
"type": "
|
|
1426
|
+
"type": "uint256"
|
|
1291
1427
|
}
|
|
1292
1428
|
],
|
|
1293
1429
|
"stateMutability": "view",
|
|
1294
1430
|
"type": "function"
|
|
1295
1431
|
},
|
|
1296
1432
|
{
|
|
1297
|
-
"inputs": [
|
|
1433
|
+
"inputs": [],
|
|
1434
|
+
"name": "pendingWithdrawShares",
|
|
1435
|
+
"outputs": [
|
|
1298
1436
|
{
|
|
1299
1437
|
"internalType": "uint256",
|
|
1300
|
-
"name": "
|
|
1438
|
+
"name": "",
|
|
1301
1439
|
"type": "uint256"
|
|
1302
|
-
},
|
|
1303
|
-
{
|
|
1304
|
-
"internalType": "address",
|
|
1305
|
-
"name": "account",
|
|
1306
|
-
"type": "address"
|
|
1307
1440
|
}
|
|
1308
1441
|
],
|
|
1309
|
-
"
|
|
1442
|
+
"stateMutability": "view",
|
|
1443
|
+
"type": "function"
|
|
1444
|
+
},
|
|
1445
|
+
{
|
|
1446
|
+
"inputs": [],
|
|
1447
|
+
"name": "performanceFee",
|
|
1310
1448
|
"outputs": [
|
|
1311
1449
|
{
|
|
1312
|
-
"internalType": "
|
|
1313
|
-
"name": "
|
|
1314
|
-
"type": "
|
|
1450
|
+
"internalType": "uint256",
|
|
1451
|
+
"name": "",
|
|
1452
|
+
"type": "uint256"
|
|
1315
1453
|
}
|
|
1316
1454
|
],
|
|
1317
1455
|
"stateMutability": "view",
|
|
@@ -1320,29 +1458,17 @@ export const Vault_jsonAbi = [
|
|
|
1320
1458
|
{
|
|
1321
1459
|
"inputs": [
|
|
1322
1460
|
{
|
|
1323
|
-
"internalType": "
|
|
1324
|
-
"name": "
|
|
1325
|
-
"type": "
|
|
1326
|
-
},
|
|
1327
|
-
{
|
|
1328
|
-
"internalType": "bytes",
|
|
1329
|
-
"name": "data",
|
|
1330
|
-
"type": "bytes"
|
|
1461
|
+
"internalType": "uint256",
|
|
1462
|
+
"name": "assets",
|
|
1463
|
+
"type": "uint256"
|
|
1331
1464
|
}
|
|
1332
1465
|
],
|
|
1333
|
-
"name": "
|
|
1334
|
-
"outputs": [],
|
|
1335
|
-
"stateMutability": "nonpayable",
|
|
1336
|
-
"type": "function"
|
|
1337
|
-
},
|
|
1338
|
-
{
|
|
1339
|
-
"inputs": [],
|
|
1340
|
-
"name": "nextEpochStart",
|
|
1466
|
+
"name": "previewDeposit",
|
|
1341
1467
|
"outputs": [
|
|
1342
1468
|
{
|
|
1343
|
-
"internalType": "
|
|
1469
|
+
"internalType": "uint256",
|
|
1344
1470
|
"name": "",
|
|
1345
|
-
"type": "
|
|
1471
|
+
"type": "uint256"
|
|
1346
1472
|
}
|
|
1347
1473
|
],
|
|
1348
1474
|
"stateMutability": "view",
|
|
@@ -1352,34 +1478,39 @@ export const Vault_jsonAbi = [
|
|
|
1352
1478
|
"inputs": [
|
|
1353
1479
|
{
|
|
1354
1480
|
"internalType": "uint256",
|
|
1355
|
-
"name": "
|
|
1481
|
+
"name": "sharesIn",
|
|
1356
1482
|
"type": "uint256"
|
|
1357
1483
|
},
|
|
1358
1484
|
{
|
|
1359
|
-
"internalType": "
|
|
1360
|
-
"name": "
|
|
1361
|
-
"type": "
|
|
1485
|
+
"internalType": "address",
|
|
1486
|
+
"name": "owner",
|
|
1487
|
+
"type": "address"
|
|
1362
1488
|
}
|
|
1363
1489
|
],
|
|
1364
|
-
"name": "
|
|
1490
|
+
"name": "previewWithdraw",
|
|
1365
1491
|
"outputs": [
|
|
1366
1492
|
{
|
|
1367
1493
|
"internalType": "uint256",
|
|
1368
|
-
"name": "
|
|
1494
|
+
"name": "estimatedAssets",
|
|
1495
|
+
"type": "uint256"
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
"internalType": "uint256",
|
|
1499
|
+
"name": "estimatedFee",
|
|
1369
1500
|
"type": "uint256"
|
|
1370
1501
|
}
|
|
1371
1502
|
],
|
|
1372
|
-
"stateMutability": "
|
|
1503
|
+
"stateMutability": "view",
|
|
1373
1504
|
"type": "function"
|
|
1374
1505
|
},
|
|
1375
1506
|
{
|
|
1376
1507
|
"inputs": [],
|
|
1377
|
-
"name": "
|
|
1508
|
+
"name": "pricePerShare",
|
|
1378
1509
|
"outputs": [
|
|
1379
1510
|
{
|
|
1380
|
-
"internalType": "
|
|
1511
|
+
"internalType": "uint256",
|
|
1381
1512
|
"name": "",
|
|
1382
|
-
"type": "
|
|
1513
|
+
"type": "uint256"
|
|
1383
1514
|
}
|
|
1384
1515
|
],
|
|
1385
1516
|
"stateMutability": "view",
|
|
@@ -1387,12 +1518,12 @@ export const Vault_jsonAbi = [
|
|
|
1387
1518
|
},
|
|
1388
1519
|
{
|
|
1389
1520
|
"inputs": [],
|
|
1390
|
-
"name": "
|
|
1521
|
+
"name": "queueLength",
|
|
1391
1522
|
"outputs": [
|
|
1392
1523
|
{
|
|
1393
|
-
"internalType": "
|
|
1524
|
+
"internalType": "uint256",
|
|
1394
1525
|
"name": "",
|
|
1395
|
-
"type": "
|
|
1526
|
+
"type": "uint256"
|
|
1396
1527
|
}
|
|
1397
1528
|
],
|
|
1398
1529
|
"stateMutability": "view",
|
|
@@ -1401,35 +1532,30 @@ export const Vault_jsonAbi = [
|
|
|
1401
1532
|
{
|
|
1402
1533
|
"inputs": [
|
|
1403
1534
|
{
|
|
1404
|
-
"internalType": "address",
|
|
1405
|
-
"name": "
|
|
1406
|
-
"type": "address"
|
|
1407
|
-
},
|
|
1408
|
-
{
|
|
1409
|
-
"internalType": "uint256",
|
|
1410
|
-
"name": "shares",
|
|
1411
|
-
"type": "uint256"
|
|
1412
|
-
}
|
|
1413
|
-
],
|
|
1414
|
-
"name": "redeem",
|
|
1415
|
-
"outputs": [
|
|
1416
|
-
{
|
|
1417
|
-
"internalType": "uint256",
|
|
1418
|
-
"name": "withdrawnAssets",
|
|
1419
|
-
"type": "uint256"
|
|
1535
|
+
"internalType": "address[]",
|
|
1536
|
+
"name": "targets",
|
|
1537
|
+
"type": "address[]"
|
|
1420
1538
|
},
|
|
1421
1539
|
{
|
|
1422
|
-
"internalType": "
|
|
1423
|
-
"name": "
|
|
1424
|
-
"type": "
|
|
1540
|
+
"internalType": "bytes[]",
|
|
1541
|
+
"name": "calldatas",
|
|
1542
|
+
"type": "bytes[]"
|
|
1425
1543
|
}
|
|
1426
1544
|
],
|
|
1545
|
+
"name": "rebalance",
|
|
1546
|
+
"outputs": [],
|
|
1427
1547
|
"stateMutability": "nonpayable",
|
|
1428
1548
|
"type": "function"
|
|
1429
1549
|
},
|
|
1430
1550
|
{
|
|
1431
|
-
"inputs": [
|
|
1432
|
-
|
|
1551
|
+
"inputs": [
|
|
1552
|
+
{
|
|
1553
|
+
"internalType": "address",
|
|
1554
|
+
"name": "token",
|
|
1555
|
+
"type": "address"
|
|
1556
|
+
}
|
|
1557
|
+
],
|
|
1558
|
+
"name": "removeTrackedToken",
|
|
1433
1559
|
"outputs": [],
|
|
1434
1560
|
"stateMutability": "nonpayable",
|
|
1435
1561
|
"type": "function"
|
|
@@ -1455,31 +1581,43 @@ export const Vault_jsonAbi = [
|
|
|
1455
1581
|
{
|
|
1456
1582
|
"inputs": [
|
|
1457
1583
|
{
|
|
1458
|
-
"internalType": "
|
|
1459
|
-
"name": "
|
|
1460
|
-
"type": "
|
|
1461
|
-
}
|
|
1584
|
+
"internalType": "uint256",
|
|
1585
|
+
"name": "assets",
|
|
1586
|
+
"type": "uint256"
|
|
1587
|
+
}
|
|
1588
|
+
],
|
|
1589
|
+
"name": "requestDeposit",
|
|
1590
|
+
"outputs": [
|
|
1462
1591
|
{
|
|
1463
|
-
"internalType": "
|
|
1464
|
-
"name": "
|
|
1465
|
-
"type": "
|
|
1592
|
+
"internalType": "uint256",
|
|
1593
|
+
"name": "depositId",
|
|
1594
|
+
"type": "uint256"
|
|
1466
1595
|
}
|
|
1467
1596
|
],
|
|
1468
|
-
"name": "revokeRole",
|
|
1469
|
-
"outputs": [],
|
|
1470
1597
|
"stateMutability": "nonpayable",
|
|
1471
1598
|
"type": "function"
|
|
1472
1599
|
},
|
|
1473
1600
|
{
|
|
1474
1601
|
"inputs": [
|
|
1602
|
+
{
|
|
1603
|
+
"internalType": "uint256",
|
|
1604
|
+
"name": "assets",
|
|
1605
|
+
"type": "uint256"
|
|
1606
|
+
},
|
|
1475
1607
|
{
|
|
1476
1608
|
"internalType": "address",
|
|
1477
|
-
"name": "
|
|
1609
|
+
"name": "recipient",
|
|
1478
1610
|
"type": "address"
|
|
1479
1611
|
}
|
|
1480
1612
|
],
|
|
1481
|
-
"name": "
|
|
1482
|
-
"outputs": [
|
|
1613
|
+
"name": "requestDepositFor",
|
|
1614
|
+
"outputs": [
|
|
1615
|
+
{
|
|
1616
|
+
"internalType": "uint256",
|
|
1617
|
+
"name": "depositId",
|
|
1618
|
+
"type": "uint256"
|
|
1619
|
+
}
|
|
1620
|
+
],
|
|
1483
1621
|
"stateMutability": "nonpayable",
|
|
1484
1622
|
"type": "function"
|
|
1485
1623
|
},
|
|
@@ -1487,24 +1625,35 @@ export const Vault_jsonAbi = [
|
|
|
1487
1625
|
"inputs": [
|
|
1488
1626
|
{
|
|
1489
1627
|
"internalType": "uint256",
|
|
1490
|
-
"name": "
|
|
1628
|
+
"name": "sharesIn",
|
|
1629
|
+
"type": "uint256"
|
|
1630
|
+
}
|
|
1631
|
+
],
|
|
1632
|
+
"name": "requestWithdraw",
|
|
1633
|
+
"outputs": [
|
|
1634
|
+
{
|
|
1635
|
+
"internalType": "uint256",
|
|
1636
|
+
"name": "requestId",
|
|
1491
1637
|
"type": "uint256"
|
|
1492
1638
|
}
|
|
1493
1639
|
],
|
|
1494
|
-
"name": "setDepositLimit",
|
|
1495
|
-
"outputs": [],
|
|
1496
1640
|
"stateMutability": "nonpayable",
|
|
1497
1641
|
"type": "function"
|
|
1498
1642
|
},
|
|
1499
1643
|
{
|
|
1500
1644
|
"inputs": [
|
|
1501
1645
|
{
|
|
1502
|
-
"internalType": "
|
|
1503
|
-
"name": "
|
|
1504
|
-
"type": "
|
|
1646
|
+
"internalType": "bytes32",
|
|
1647
|
+
"name": "role",
|
|
1648
|
+
"type": "bytes32"
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
"internalType": "address",
|
|
1652
|
+
"name": "account",
|
|
1653
|
+
"type": "address"
|
|
1505
1654
|
}
|
|
1506
1655
|
],
|
|
1507
|
-
"name": "
|
|
1656
|
+
"name": "revokeRole",
|
|
1508
1657
|
"outputs": [],
|
|
1509
1658
|
"stateMutability": "nonpayable",
|
|
1510
1659
|
"type": "function"
|
|
@@ -1513,16 +1662,11 @@ export const Vault_jsonAbi = [
|
|
|
1513
1662
|
"inputs": [
|
|
1514
1663
|
{
|
|
1515
1664
|
"internalType": "address",
|
|
1516
|
-
"name": "
|
|
1665
|
+
"name": "recipient",
|
|
1517
1666
|
"type": "address"
|
|
1518
|
-
},
|
|
1519
|
-
{
|
|
1520
|
-
"internalType": "bool",
|
|
1521
|
-
"name": "status",
|
|
1522
|
-
"type": "bool"
|
|
1523
1667
|
}
|
|
1524
1668
|
],
|
|
1525
|
-
"name": "
|
|
1669
|
+
"name": "setFeeRecipient",
|
|
1526
1670
|
"outputs": [],
|
|
1527
1671
|
"stateMutability": "nonpayable",
|
|
1528
1672
|
"type": "function"
|
|
@@ -1530,12 +1674,12 @@ export const Vault_jsonAbi = [
|
|
|
1530
1674
|
{
|
|
1531
1675
|
"inputs": [
|
|
1532
1676
|
{
|
|
1533
|
-
"internalType": "
|
|
1534
|
-
"name": "
|
|
1535
|
-
"type": "
|
|
1677
|
+
"internalType": "uint256",
|
|
1678
|
+
"name": "size",
|
|
1679
|
+
"type": "uint256"
|
|
1536
1680
|
}
|
|
1537
1681
|
],
|
|
1538
|
-
"name": "
|
|
1682
|
+
"name": "setMaxSettlementBatchSize",
|
|
1539
1683
|
"outputs": [],
|
|
1540
1684
|
"stateMutability": "nonpayable",
|
|
1541
1685
|
"type": "function"
|
|
@@ -1543,12 +1687,12 @@ export const Vault_jsonAbi = [
|
|
|
1543
1687
|
{
|
|
1544
1688
|
"inputs": [
|
|
1545
1689
|
{
|
|
1546
|
-
"internalType": "
|
|
1547
|
-
"name": "
|
|
1548
|
-
"type": "
|
|
1690
|
+
"internalType": "uint256",
|
|
1691
|
+
"name": "amount",
|
|
1692
|
+
"type": "uint256"
|
|
1549
1693
|
}
|
|
1550
1694
|
],
|
|
1551
|
-
"name": "
|
|
1695
|
+
"name": "setMinDepositAssets",
|
|
1552
1696
|
"outputs": [],
|
|
1553
1697
|
"stateMutability": "nonpayable",
|
|
1554
1698
|
"type": "function"
|
|
@@ -1556,33 +1700,40 @@ export const Vault_jsonAbi = [
|
|
|
1556
1700
|
{
|
|
1557
1701
|
"inputs": [
|
|
1558
1702
|
{
|
|
1559
|
-
"internalType": "
|
|
1560
|
-
"name": "
|
|
1703
|
+
"internalType": "contract IOracle",
|
|
1704
|
+
"name": "_oracle",
|
|
1561
1705
|
"type": "address"
|
|
1562
1706
|
}
|
|
1563
1707
|
],
|
|
1564
|
-
"name": "
|
|
1565
|
-
"outputs": [
|
|
1708
|
+
"name": "setOracle",
|
|
1709
|
+
"outputs": [],
|
|
1710
|
+
"stateMutability": "nonpayable",
|
|
1711
|
+
"type": "function"
|
|
1712
|
+
},
|
|
1713
|
+
{
|
|
1714
|
+
"inputs": [
|
|
1566
1715
|
{
|
|
1567
1716
|
"internalType": "uint256",
|
|
1568
|
-
"name": "",
|
|
1717
|
+
"name": "feeBps",
|
|
1569
1718
|
"type": "uint256"
|
|
1570
1719
|
}
|
|
1571
1720
|
],
|
|
1572
|
-
"
|
|
1721
|
+
"name": "setPerformanceFee",
|
|
1722
|
+
"outputs": [],
|
|
1723
|
+
"stateMutability": "nonpayable",
|
|
1573
1724
|
"type": "function"
|
|
1574
1725
|
},
|
|
1575
1726
|
{
|
|
1576
|
-
"inputs": [
|
|
1577
|
-
"name": "slasher",
|
|
1578
|
-
"outputs": [
|
|
1727
|
+
"inputs": [
|
|
1579
1728
|
{
|
|
1580
|
-
"internalType": "
|
|
1581
|
-
"name": "",
|
|
1582
|
-
"type": "
|
|
1729
|
+
"internalType": "uint256",
|
|
1730
|
+
"name": "fee",
|
|
1731
|
+
"type": "uint256"
|
|
1583
1732
|
}
|
|
1584
1733
|
],
|
|
1585
|
-
"
|
|
1734
|
+
"name": "setSettlementFee",
|
|
1735
|
+
"outputs": [],
|
|
1736
|
+
"stateMutability": "nonpayable",
|
|
1586
1737
|
"type": "function"
|
|
1587
1738
|
},
|
|
1588
1739
|
{
|
|
@@ -1593,12 +1744,12 @@ export const Vault_jsonAbi = [
|
|
|
1593
1744
|
"type": "address"
|
|
1594
1745
|
},
|
|
1595
1746
|
{
|
|
1596
|
-
"internalType": "
|
|
1597
|
-
"name": "
|
|
1598
|
-
"type": "
|
|
1747
|
+
"internalType": "bool",
|
|
1748
|
+
"name": "allowed",
|
|
1749
|
+
"type": "bool"
|
|
1599
1750
|
}
|
|
1600
1751
|
],
|
|
1601
|
-
"name": "
|
|
1752
|
+
"name": "setTargetAllowed",
|
|
1602
1753
|
"outputs": [],
|
|
1603
1754
|
"stateMutability": "nonpayable",
|
|
1604
1755
|
"type": "function"
|
|
@@ -1606,17 +1757,29 @@ export const Vault_jsonAbi = [
|
|
|
1606
1757
|
{
|
|
1607
1758
|
"inputs": [
|
|
1608
1759
|
{
|
|
1609
|
-
"internalType": "
|
|
1610
|
-
"name": "
|
|
1611
|
-
"type": "
|
|
1760
|
+
"internalType": "address[]",
|
|
1761
|
+
"name": "tokens",
|
|
1762
|
+
"type": "address[]"
|
|
1763
|
+
},
|
|
1764
|
+
{
|
|
1765
|
+
"internalType": "uint128[]",
|
|
1766
|
+
"name": "prices",
|
|
1767
|
+
"type": "uint128[]"
|
|
1612
1768
|
}
|
|
1613
1769
|
],
|
|
1614
|
-
"name": "
|
|
1770
|
+
"name": "settle",
|
|
1771
|
+
"outputs": [],
|
|
1772
|
+
"stateMutability": "nonpayable",
|
|
1773
|
+
"type": "function"
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
"inputs": [],
|
|
1777
|
+
"name": "settledWithdrawalLiabilityTotal",
|
|
1615
1778
|
"outputs": [
|
|
1616
1779
|
{
|
|
1617
|
-
"internalType": "
|
|
1780
|
+
"internalType": "uint256",
|
|
1618
1781
|
"name": "",
|
|
1619
|
-
"type": "
|
|
1782
|
+
"type": "uint256"
|
|
1620
1783
|
}
|
|
1621
1784
|
],
|
|
1622
1785
|
"stateMutability": "view",
|
|
@@ -1624,7 +1787,7 @@ export const Vault_jsonAbi = [
|
|
|
1624
1787
|
},
|
|
1625
1788
|
{
|
|
1626
1789
|
"inputs": [],
|
|
1627
|
-
"name": "
|
|
1790
|
+
"name": "settlementFeeAssets",
|
|
1628
1791
|
"outputs": [
|
|
1629
1792
|
{
|
|
1630
1793
|
"internalType": "uint256",
|
|
@@ -1636,26 +1799,45 @@ export const Vault_jsonAbi = [
|
|
|
1636
1799
|
"type": "function"
|
|
1637
1800
|
},
|
|
1638
1801
|
{
|
|
1639
|
-
"inputs": [
|
|
1802
|
+
"inputs": [],
|
|
1803
|
+
"name": "shareToken",
|
|
1804
|
+
"outputs": [
|
|
1640
1805
|
{
|
|
1641
|
-
"internalType": "
|
|
1642
|
-
"name": "
|
|
1806
|
+
"internalType": "contract HPT",
|
|
1807
|
+
"name": "",
|
|
1643
1808
|
"type": "address"
|
|
1644
1809
|
}
|
|
1645
1810
|
],
|
|
1646
|
-
"
|
|
1647
|
-
"outputs": [],
|
|
1648
|
-
"stateMutability": "nonpayable",
|
|
1811
|
+
"stateMutability": "view",
|
|
1649
1812
|
"type": "function"
|
|
1650
1813
|
},
|
|
1651
1814
|
{
|
|
1652
1815
|
"inputs": [],
|
|
1653
|
-
"name": "
|
|
1816
|
+
"name": "shares",
|
|
1817
|
+
"outputs": [
|
|
1818
|
+
{
|
|
1819
|
+
"internalType": "address",
|
|
1820
|
+
"name": "",
|
|
1821
|
+
"type": "address"
|
|
1822
|
+
}
|
|
1823
|
+
],
|
|
1824
|
+
"stateMutability": "view",
|
|
1825
|
+
"type": "function"
|
|
1826
|
+
},
|
|
1827
|
+
{
|
|
1828
|
+
"inputs": [
|
|
1829
|
+
{
|
|
1830
|
+
"internalType": "bytes4",
|
|
1831
|
+
"name": "interfaceId",
|
|
1832
|
+
"type": "bytes4"
|
|
1833
|
+
}
|
|
1834
|
+
],
|
|
1835
|
+
"name": "supportsInterface",
|
|
1654
1836
|
"outputs": [
|
|
1655
1837
|
{
|
|
1656
|
-
"internalType": "
|
|
1838
|
+
"internalType": "bool",
|
|
1657
1839
|
"name": "",
|
|
1658
|
-
"type": "
|
|
1840
|
+
"type": "bool"
|
|
1659
1841
|
}
|
|
1660
1842
|
],
|
|
1661
1843
|
"stateMutability": "view",
|
|
@@ -1665,88 +1847,87 @@ export const Vault_jsonAbi = [
|
|
|
1665
1847
|
"inputs": [
|
|
1666
1848
|
{
|
|
1667
1849
|
"internalType": "address",
|
|
1668
|
-
"name": "
|
|
1850
|
+
"name": "",
|
|
1669
1851
|
"type": "address"
|
|
1670
|
-
},
|
|
1671
|
-
{
|
|
1672
|
-
"internalType": "uint256",
|
|
1673
|
-
"name": "amount",
|
|
1674
|
-
"type": "uint256"
|
|
1675
1852
|
}
|
|
1676
1853
|
],
|
|
1677
|
-
"name": "
|
|
1854
|
+
"name": "targetAllowed",
|
|
1678
1855
|
"outputs": [
|
|
1679
1856
|
{
|
|
1680
|
-
"internalType": "
|
|
1681
|
-
"name": "
|
|
1682
|
-
"type": "
|
|
1683
|
-
},
|
|
1684
|
-
{
|
|
1685
|
-
"internalType": "uint256",
|
|
1686
|
-
"name": "mintedShares",
|
|
1687
|
-
"type": "uint256"
|
|
1857
|
+
"internalType": "bool",
|
|
1858
|
+
"name": "",
|
|
1859
|
+
"type": "bool"
|
|
1688
1860
|
}
|
|
1689
1861
|
],
|
|
1690
|
-
"stateMutability": "
|
|
1862
|
+
"stateMutability": "view",
|
|
1691
1863
|
"type": "function"
|
|
1692
1864
|
},
|
|
1693
1865
|
{
|
|
1694
1866
|
"inputs": [
|
|
1695
1867
|
{
|
|
1696
|
-
"internalType": "
|
|
1697
|
-
"name": "
|
|
1698
|
-
"type": "
|
|
1868
|
+
"internalType": "address",
|
|
1869
|
+
"name": "",
|
|
1870
|
+
"type": "address"
|
|
1699
1871
|
}
|
|
1700
1872
|
],
|
|
1701
|
-
"name": "
|
|
1873
|
+
"name": "tokenDecimals",
|
|
1702
1874
|
"outputs": [
|
|
1703
1875
|
{
|
|
1704
|
-
"internalType": "
|
|
1705
|
-
"name": "
|
|
1706
|
-
"type": "
|
|
1876
|
+
"internalType": "uint8",
|
|
1877
|
+
"name": "",
|
|
1878
|
+
"type": "uint8"
|
|
1707
1879
|
}
|
|
1708
1880
|
],
|
|
1709
1881
|
"stateMutability": "view",
|
|
1710
1882
|
"type": "function"
|
|
1711
1883
|
},
|
|
1712
1884
|
{
|
|
1713
|
-
"inputs": [
|
|
1885
|
+
"inputs": [],
|
|
1886
|
+
"name": "totalAssets",
|
|
1887
|
+
"outputs": [
|
|
1714
1888
|
{
|
|
1715
1889
|
"internalType": "uint256",
|
|
1716
|
-
"name": "
|
|
1890
|
+
"name": "",
|
|
1717
1891
|
"type": "uint256"
|
|
1718
|
-
},
|
|
1719
|
-
{
|
|
1720
|
-
"internalType": "address",
|
|
1721
|
-
"name": "account",
|
|
1722
|
-
"type": "address"
|
|
1723
1892
|
}
|
|
1724
1893
|
],
|
|
1725
|
-
"
|
|
1894
|
+
"stateMutability": "view",
|
|
1895
|
+
"type": "function"
|
|
1896
|
+
},
|
|
1897
|
+
{
|
|
1898
|
+
"inputs": [],
|
|
1899
|
+
"name": "trackedTokens",
|
|
1726
1900
|
"outputs": [
|
|
1727
1901
|
{
|
|
1728
|
-
"internalType": "
|
|
1729
|
-
"name": "
|
|
1730
|
-
"type": "
|
|
1902
|
+
"internalType": "address[]",
|
|
1903
|
+
"name": "",
|
|
1904
|
+
"type": "address[]"
|
|
1731
1905
|
}
|
|
1732
1906
|
],
|
|
1733
1907
|
"stateMutability": "view",
|
|
1734
1908
|
"type": "function"
|
|
1735
1909
|
},
|
|
1910
|
+
{
|
|
1911
|
+
"inputs": [],
|
|
1912
|
+
"name": "unpause",
|
|
1913
|
+
"outputs": [],
|
|
1914
|
+
"stateMutability": "nonpayable",
|
|
1915
|
+
"type": "function"
|
|
1916
|
+
},
|
|
1736
1917
|
{
|
|
1737
1918
|
"inputs": [
|
|
1738
1919
|
{
|
|
1739
|
-
"internalType": "
|
|
1740
|
-
"name": "
|
|
1741
|
-
"type": "
|
|
1920
|
+
"internalType": "address",
|
|
1921
|
+
"name": "user",
|
|
1922
|
+
"type": "address"
|
|
1742
1923
|
}
|
|
1743
1924
|
],
|
|
1744
|
-
"name": "
|
|
1925
|
+
"name": "userDepositIds",
|
|
1745
1926
|
"outputs": [
|
|
1746
1927
|
{
|
|
1747
|
-
"internalType": "uint256",
|
|
1748
|
-
"name": "
|
|
1749
|
-
"type": "uint256"
|
|
1928
|
+
"internalType": "uint256[]",
|
|
1929
|
+
"name": "",
|
|
1930
|
+
"type": "uint256[]"
|
|
1750
1931
|
}
|
|
1751
1932
|
],
|
|
1752
1933
|
"stateMutability": "view",
|
|
@@ -1754,23 +1935,18 @@ export const Vault_jsonAbi = [
|
|
|
1754
1935
|
},
|
|
1755
1936
|
{
|
|
1756
1937
|
"inputs": [
|
|
1757
|
-
{
|
|
1758
|
-
"internalType": "uint256",
|
|
1759
|
-
"name": "epoch",
|
|
1760
|
-
"type": "uint256"
|
|
1761
|
-
},
|
|
1762
1938
|
{
|
|
1763
1939
|
"internalType": "address",
|
|
1764
|
-
"name": "
|
|
1940
|
+
"name": "user",
|
|
1765
1941
|
"type": "address"
|
|
1766
1942
|
}
|
|
1767
1943
|
],
|
|
1768
|
-
"name": "
|
|
1944
|
+
"name": "userRequestIds",
|
|
1769
1945
|
"outputs": [
|
|
1770
1946
|
{
|
|
1771
|
-
"internalType": "uint256",
|
|
1947
|
+
"internalType": "uint256[]",
|
|
1772
1948
|
"name": "",
|
|
1773
|
-
"type": "uint256"
|
|
1949
|
+
"type": "uint256[]"
|
|
1774
1950
|
}
|
|
1775
1951
|
],
|
|
1776
1952
|
"stateMutability": "view",
|
|
@@ -1860,6 +2036,22 @@ export class Vault_json {
|
|
|
1860
2036
|
return this.contract;
|
|
1861
2037
|
}
|
|
1862
2038
|
|
|
2039
|
+
/**
|
|
2040
|
+
* BOT_ROLE
|
|
2041
|
+
* view
|
|
2042
|
+
*/
|
|
2043
|
+
async BOT_ROLE(): Promise<`0x${string}`> {
|
|
2044
|
+
return this.contract.read.BOT_ROLE() as Promise<`0x${string}`>;
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
/**
|
|
2048
|
+
* BPS
|
|
2049
|
+
* view
|
|
2050
|
+
*/
|
|
2051
|
+
async BPS(): Promise<bigint> {
|
|
2052
|
+
return this.contract.read.BPS() as Promise<bigint>;
|
|
2053
|
+
}
|
|
2054
|
+
|
|
1863
2055
|
/**
|
|
1864
2056
|
* DEFAULT_ADMIN_ROLE
|
|
1865
2057
|
* view
|
|
@@ -1869,371 +2061,477 @@ export class Vault_json {
|
|
|
1869
2061
|
}
|
|
1870
2062
|
|
|
1871
2063
|
/**
|
|
1872
|
-
*
|
|
2064
|
+
* GUARDIAN_ROLE
|
|
1873
2065
|
* view
|
|
1874
2066
|
*/
|
|
1875
|
-
async
|
|
1876
|
-
return this.contract.read.
|
|
2067
|
+
async GUARDIAN_ROLE(): Promise<`0x${string}`> {
|
|
2068
|
+
return this.contract.read.GUARDIAN_ROLE() as Promise<`0x${string}`>;
|
|
1877
2069
|
}
|
|
1878
2070
|
|
|
1879
2071
|
/**
|
|
1880
|
-
*
|
|
2072
|
+
* MANAGER_ROLE
|
|
1881
2073
|
* view
|
|
1882
2074
|
*/
|
|
1883
|
-
async
|
|
1884
|
-
return this.contract.read.
|
|
2075
|
+
async MANAGER_ROLE(): Promise<`0x${string}`> {
|
|
2076
|
+
return this.contract.read.MANAGER_ROLE() as Promise<`0x${string}`>;
|
|
1885
2077
|
}
|
|
1886
2078
|
|
|
1887
2079
|
/**
|
|
1888
|
-
*
|
|
2080
|
+
* MAX_FEE_BPS
|
|
1889
2081
|
* view
|
|
1890
2082
|
*/
|
|
1891
|
-
async
|
|
1892
|
-
return this.contract.read.
|
|
2083
|
+
async MAX_FEE_BPS(): Promise<bigint> {
|
|
2084
|
+
return this.contract.read.MAX_FEE_BPS() as Promise<bigint>;
|
|
1893
2085
|
}
|
|
1894
2086
|
|
|
1895
2087
|
/**
|
|
1896
|
-
*
|
|
2088
|
+
* SHARE_SCALE
|
|
1897
2089
|
* view
|
|
1898
2090
|
*/
|
|
1899
|
-
async
|
|
1900
|
-
return this.contract.read.
|
|
2091
|
+
async SHARE_SCALE(): Promise<bigint> {
|
|
2092
|
+
return this.contract.read.SHARE_SCALE() as Promise<bigint>;
|
|
1901
2093
|
}
|
|
1902
2094
|
|
|
1903
2095
|
/**
|
|
1904
|
-
*
|
|
2096
|
+
* asset
|
|
1905
2097
|
* view
|
|
1906
2098
|
*/
|
|
1907
|
-
async
|
|
1908
|
-
return this.contract.read.
|
|
2099
|
+
async asset(): Promise<`0x${string}`> {
|
|
2100
|
+
return this.contract.read.asset() as Promise<`0x${string}`>;
|
|
1909
2101
|
}
|
|
1910
2102
|
|
|
1911
2103
|
/**
|
|
1912
|
-
*
|
|
2104
|
+
* assetDecimals
|
|
1913
2105
|
* view
|
|
1914
2106
|
*/
|
|
1915
|
-
async
|
|
1916
|
-
return this.contract.read.
|
|
2107
|
+
async assetDecimals(): Promise<bigint> {
|
|
2108
|
+
return this.contract.read.assetDecimals() as Promise<bigint>;
|
|
1917
2109
|
}
|
|
1918
2110
|
|
|
1919
2111
|
/**
|
|
1920
|
-
*
|
|
2112
|
+
* assetToken
|
|
1921
2113
|
* view
|
|
1922
2114
|
*/
|
|
1923
|
-
async
|
|
1924
|
-
return this.contract.read.
|
|
2115
|
+
async assetToken(): Promise<`0x${string}`> {
|
|
2116
|
+
return this.contract.read.assetToken() as Promise<`0x${string}`>;
|
|
1925
2117
|
}
|
|
1926
2118
|
|
|
1927
2119
|
/**
|
|
1928
|
-
*
|
|
2120
|
+
* costBasisPerShare
|
|
1929
2121
|
* view
|
|
1930
2122
|
*/
|
|
1931
|
-
async
|
|
1932
|
-
return this.contract.read.
|
|
2123
|
+
async costBasisPerShare(user: `0x${string}`): Promise<bigint> {
|
|
2124
|
+
return this.contract.read.costBasisPerShare([user] as const) as Promise<bigint>;
|
|
1933
2125
|
}
|
|
1934
2126
|
|
|
1935
2127
|
/**
|
|
1936
|
-
*
|
|
2128
|
+
* costBasisValue
|
|
1937
2129
|
* view
|
|
1938
2130
|
*/
|
|
1939
|
-
async
|
|
1940
|
-
return this.contract.read.
|
|
2131
|
+
async costBasisValue(arg0: `0x${string}`): Promise<bigint> {
|
|
2132
|
+
return this.contract.read.costBasisValue([arg0] as const) as Promise<bigint>;
|
|
1941
2133
|
}
|
|
1942
2134
|
|
|
1943
2135
|
/**
|
|
1944
|
-
*
|
|
2136
|
+
* depositQueueLength
|
|
1945
2137
|
* view
|
|
1946
2138
|
*/
|
|
1947
|
-
async
|
|
1948
|
-
return this.contract.read.
|
|
2139
|
+
async depositQueueLength(): Promise<bigint> {
|
|
2140
|
+
return this.contract.read.depositQueueLength() as Promise<bigint>;
|
|
1949
2141
|
}
|
|
1950
2142
|
|
|
1951
2143
|
/**
|
|
1952
|
-
*
|
|
2144
|
+
* feeRecipient
|
|
1953
2145
|
* view
|
|
1954
2146
|
*/
|
|
1955
|
-
async
|
|
1956
|
-
return this.contract.read.
|
|
2147
|
+
async feeRecipient(): Promise<`0x${string}`> {
|
|
2148
|
+
return this.contract.read.feeRecipient() as Promise<`0x${string}`>;
|
|
1957
2149
|
}
|
|
1958
2150
|
|
|
1959
2151
|
/**
|
|
1960
|
-
*
|
|
2152
|
+
* getDepositRequest
|
|
1961
2153
|
* view
|
|
1962
2154
|
*/
|
|
1963
|
-
async
|
|
1964
|
-
return this.contract.read.
|
|
2155
|
+
async getDepositRequest(depositId: bigint): Promise<IVault_DepositRequest> {
|
|
2156
|
+
return this.contract.read.getDepositRequest([depositId] as const) as Promise<IVault_DepositRequest>;
|
|
1965
2157
|
}
|
|
1966
2158
|
|
|
1967
2159
|
/**
|
|
1968
|
-
*
|
|
2160
|
+
* getRequest
|
|
1969
2161
|
* view
|
|
1970
2162
|
*/
|
|
1971
|
-
async
|
|
1972
|
-
return this.contract.read.
|
|
2163
|
+
async getRequest(requestId: bigint): Promise<IVault_WithdrawRequest> {
|
|
2164
|
+
return this.contract.read.getRequest([requestId] as const) as Promise<IVault_WithdrawRequest>;
|
|
1973
2165
|
}
|
|
1974
2166
|
|
|
1975
2167
|
/**
|
|
1976
|
-
*
|
|
2168
|
+
* getRoleAdmin
|
|
1977
2169
|
* view
|
|
1978
2170
|
*/
|
|
1979
|
-
async
|
|
1980
|
-
return this.contract.read.
|
|
2171
|
+
async getRoleAdmin(role: `0x${string}`): Promise<`0x${string}`> {
|
|
2172
|
+
return this.contract.read.getRoleAdmin([role] as const) as Promise<`0x${string}`>;
|
|
1981
2173
|
}
|
|
1982
2174
|
|
|
1983
2175
|
/**
|
|
1984
|
-
*
|
|
2176
|
+
* hasRole
|
|
1985
2177
|
* view
|
|
1986
2178
|
*/
|
|
1987
|
-
async
|
|
1988
|
-
return this.contract.read.
|
|
2179
|
+
async hasRole(role: `0x${string}`, account: `0x${string}`): Promise<boolean> {
|
|
2180
|
+
return this.contract.read.hasRole([role, account] as const) as Promise<boolean>;
|
|
1989
2181
|
}
|
|
1990
2182
|
|
|
1991
2183
|
/**
|
|
1992
|
-
*
|
|
2184
|
+
* hasSettleReadyWork
|
|
1993
2185
|
* view
|
|
1994
2186
|
*/
|
|
1995
|
-
async
|
|
1996
|
-
return this.contract.read.
|
|
2187
|
+
async hasSettleReadyWork(): Promise<boolean> {
|
|
2188
|
+
return this.contract.read.hasSettleReadyWork() as Promise<boolean>;
|
|
1997
2189
|
}
|
|
1998
2190
|
|
|
1999
2191
|
/**
|
|
2000
|
-
*
|
|
2192
|
+
* isTracked
|
|
2001
2193
|
* view
|
|
2002
2194
|
*/
|
|
2003
|
-
async
|
|
2004
|
-
return this.contract.read.
|
|
2195
|
+
async isTracked(arg0: `0x${string}`): Promise<boolean> {
|
|
2196
|
+
return this.contract.read.isTracked([arg0] as const) as Promise<boolean>;
|
|
2005
2197
|
}
|
|
2006
2198
|
|
|
2007
2199
|
/**
|
|
2008
|
-
*
|
|
2200
|
+
* maxSettlementBatchSize
|
|
2009
2201
|
* view
|
|
2010
2202
|
*/
|
|
2011
|
-
async
|
|
2012
|
-
return this.contract.read.
|
|
2203
|
+
async maxSettlementBatchSize(): Promise<bigint> {
|
|
2204
|
+
return this.contract.read.maxSettlementBatchSize() as Promise<bigint>;
|
|
2013
2205
|
}
|
|
2014
2206
|
|
|
2015
2207
|
/**
|
|
2016
|
-
*
|
|
2208
|
+
* minDepositAssets
|
|
2017
2209
|
* view
|
|
2018
2210
|
*/
|
|
2019
|
-
async
|
|
2020
|
-
return this.contract.read.
|
|
2211
|
+
async minDepositAssets(): Promise<bigint> {
|
|
2212
|
+
return this.contract.read.minDepositAssets() as Promise<bigint>;
|
|
2021
2213
|
}
|
|
2022
2214
|
|
|
2023
2215
|
/**
|
|
2024
|
-
*
|
|
2216
|
+
* oracle
|
|
2025
2217
|
* view
|
|
2026
2218
|
*/
|
|
2027
|
-
async
|
|
2028
|
-
return this.contract.read.
|
|
2219
|
+
async oracle(): Promise<`0x${string}`> {
|
|
2220
|
+
return this.contract.read.oracle() as Promise<`0x${string}`>;
|
|
2029
2221
|
}
|
|
2030
2222
|
|
|
2031
2223
|
/**
|
|
2032
|
-
*
|
|
2224
|
+
* oracleContract
|
|
2033
2225
|
* view
|
|
2034
2226
|
*/
|
|
2035
|
-
async
|
|
2036
|
-
return this.contract.read.
|
|
2227
|
+
async oracleContract(): Promise<`0x${string}`> {
|
|
2228
|
+
return this.contract.read.oracleContract() as Promise<`0x${string}`>;
|
|
2037
2229
|
}
|
|
2038
2230
|
|
|
2039
2231
|
/**
|
|
2040
|
-
*
|
|
2232
|
+
* paused
|
|
2041
2233
|
* view
|
|
2042
2234
|
*/
|
|
2043
|
-
async
|
|
2044
|
-
return this.contract.read.
|
|
2235
|
+
async paused(): Promise<boolean> {
|
|
2236
|
+
return this.contract.read.paused() as Promise<boolean>;
|
|
2045
2237
|
}
|
|
2046
2238
|
|
|
2047
2239
|
/**
|
|
2048
|
-
*
|
|
2240
|
+
* pendingDepositTotal
|
|
2049
2241
|
* view
|
|
2050
2242
|
*/
|
|
2051
|
-
async
|
|
2052
|
-
return this.contract.read.
|
|
2243
|
+
async pendingDepositTotal(): Promise<bigint> {
|
|
2244
|
+
return this.contract.read.pendingDepositTotal() as Promise<bigint>;
|
|
2053
2245
|
}
|
|
2054
2246
|
|
|
2055
2247
|
/**
|
|
2056
|
-
*
|
|
2248
|
+
* pendingSettlementWithdrawShares
|
|
2057
2249
|
* view
|
|
2058
2250
|
*/
|
|
2059
|
-
async
|
|
2060
|
-
return this.contract.read.
|
|
2251
|
+
async pendingSettlementWithdrawShares(): Promise<bigint> {
|
|
2252
|
+
return this.contract.read.pendingSettlementWithdrawShares() as Promise<bigint>;
|
|
2061
2253
|
}
|
|
2062
2254
|
|
|
2063
2255
|
/**
|
|
2064
|
-
*
|
|
2256
|
+
* pendingWithdrawShares
|
|
2065
2257
|
* view
|
|
2066
2258
|
*/
|
|
2067
|
-
async
|
|
2068
|
-
return this.contract.read.
|
|
2259
|
+
async pendingWithdrawShares(): Promise<bigint> {
|
|
2260
|
+
return this.contract.read.pendingWithdrawShares() as Promise<bigint>;
|
|
2069
2261
|
}
|
|
2070
2262
|
|
|
2071
2263
|
/**
|
|
2072
|
-
*
|
|
2264
|
+
* performanceFee
|
|
2073
2265
|
* view
|
|
2074
2266
|
*/
|
|
2075
|
-
async
|
|
2076
|
-
return this.contract.read.
|
|
2267
|
+
async performanceFee(): Promise<bigint> {
|
|
2268
|
+
return this.contract.read.performanceFee() as Promise<bigint>;
|
|
2077
2269
|
}
|
|
2078
2270
|
|
|
2079
2271
|
/**
|
|
2080
|
-
*
|
|
2272
|
+
* previewDeposit
|
|
2081
2273
|
* view
|
|
2082
2274
|
*/
|
|
2083
|
-
async
|
|
2084
|
-
return this.contract.read.
|
|
2275
|
+
async previewDeposit(assets: bigint): Promise<bigint> {
|
|
2276
|
+
return this.contract.read.previewDeposit([assets] as const) as Promise<bigint>;
|
|
2085
2277
|
}
|
|
2086
2278
|
|
|
2087
2279
|
/**
|
|
2088
|
-
*
|
|
2280
|
+
* previewWithdraw
|
|
2089
2281
|
* view
|
|
2090
2282
|
*/
|
|
2091
|
-
async
|
|
2092
|
-
return this.contract.read.
|
|
2283
|
+
async previewWithdraw(sharesIn: bigint, owner: `0x${string}`): Promise<[bigint, bigint]> {
|
|
2284
|
+
return this.contract.read.previewWithdraw([sharesIn, owner] as const) as Promise<[bigint, bigint]>;
|
|
2093
2285
|
}
|
|
2094
2286
|
|
|
2095
2287
|
/**
|
|
2096
|
-
*
|
|
2288
|
+
* pricePerShare
|
|
2097
2289
|
* view
|
|
2098
2290
|
*/
|
|
2099
|
-
async
|
|
2100
|
-
return this.contract.read.
|
|
2291
|
+
async pricePerShare(): Promise<bigint> {
|
|
2292
|
+
return this.contract.read.pricePerShare() as Promise<bigint>;
|
|
2101
2293
|
}
|
|
2102
2294
|
|
|
2103
2295
|
/**
|
|
2104
|
-
*
|
|
2296
|
+
* queueLength
|
|
2105
2297
|
* view
|
|
2106
2298
|
*/
|
|
2107
|
-
async
|
|
2108
|
-
return this.contract.read.
|
|
2299
|
+
async queueLength(): Promise<bigint> {
|
|
2300
|
+
return this.contract.read.queueLength() as Promise<bigint>;
|
|
2109
2301
|
}
|
|
2110
2302
|
|
|
2111
2303
|
/**
|
|
2112
|
-
*
|
|
2304
|
+
* settledWithdrawalLiabilityTotal
|
|
2113
2305
|
* view
|
|
2114
2306
|
*/
|
|
2115
|
-
async
|
|
2116
|
-
return this.contract.read.
|
|
2307
|
+
async settledWithdrawalLiabilityTotal(): Promise<bigint> {
|
|
2308
|
+
return this.contract.read.settledWithdrawalLiabilityTotal() as Promise<bigint>;
|
|
2117
2309
|
}
|
|
2118
2310
|
|
|
2119
2311
|
/**
|
|
2120
|
-
*
|
|
2312
|
+
* settlementFeeAssets
|
|
2121
2313
|
* view
|
|
2122
2314
|
*/
|
|
2123
|
-
async
|
|
2124
|
-
return this.contract.read.
|
|
2315
|
+
async settlementFeeAssets(): Promise<bigint> {
|
|
2316
|
+
return this.contract.read.settlementFeeAssets() as Promise<bigint>;
|
|
2125
2317
|
}
|
|
2126
2318
|
|
|
2127
2319
|
/**
|
|
2128
|
-
*
|
|
2320
|
+
* shareToken
|
|
2129
2321
|
* view
|
|
2130
2322
|
*/
|
|
2131
|
-
async
|
|
2132
|
-
return this.contract.read.
|
|
2323
|
+
async shareToken(): Promise<`0x${string}`> {
|
|
2324
|
+
return this.contract.read.shareToken() as Promise<`0x${string}`>;
|
|
2133
2325
|
}
|
|
2134
2326
|
|
|
2135
2327
|
/**
|
|
2136
|
-
*
|
|
2328
|
+
* shares
|
|
2137
2329
|
* view
|
|
2138
2330
|
*/
|
|
2139
|
-
async
|
|
2140
|
-
return this.contract.read.
|
|
2331
|
+
async shares(): Promise<`0x${string}`> {
|
|
2332
|
+
return this.contract.read.shares() as Promise<`0x${string}`>;
|
|
2141
2333
|
}
|
|
2142
2334
|
|
|
2143
2335
|
/**
|
|
2144
|
-
*
|
|
2336
|
+
* supportsInterface
|
|
2145
2337
|
* view
|
|
2146
2338
|
*/
|
|
2147
|
-
async
|
|
2148
|
-
return this.contract.read.
|
|
2339
|
+
async supportsInterface(interfaceId: `0x${string}`): Promise<boolean> {
|
|
2340
|
+
return this.contract.read.supportsInterface([interfaceId] as const) as Promise<boolean>;
|
|
2149
2341
|
}
|
|
2150
2342
|
|
|
2151
2343
|
/**
|
|
2152
|
-
*
|
|
2344
|
+
* targetAllowed
|
|
2153
2345
|
* view
|
|
2154
2346
|
*/
|
|
2155
|
-
async
|
|
2156
|
-
return this.contract.read.
|
|
2347
|
+
async targetAllowed(arg0: `0x${string}`): Promise<boolean> {
|
|
2348
|
+
return this.contract.read.targetAllowed([arg0] as const) as Promise<boolean>;
|
|
2157
2349
|
}
|
|
2158
2350
|
|
|
2159
2351
|
/**
|
|
2160
|
-
*
|
|
2352
|
+
* tokenDecimals
|
|
2161
2353
|
* view
|
|
2162
2354
|
*/
|
|
2163
|
-
async
|
|
2164
|
-
return this.contract.read.
|
|
2355
|
+
async tokenDecimals(arg0: `0x${string}`): Promise<bigint> {
|
|
2356
|
+
return this.contract.read.tokenDecimals([arg0] as const) as Promise<bigint>;
|
|
2165
2357
|
}
|
|
2166
2358
|
|
|
2167
2359
|
/**
|
|
2168
|
-
*
|
|
2360
|
+
* totalAssets
|
|
2169
2361
|
* view
|
|
2170
2362
|
*/
|
|
2171
|
-
async
|
|
2172
|
-
return this.contract.read.
|
|
2363
|
+
async totalAssets(): Promise<bigint> {
|
|
2364
|
+
return this.contract.read.totalAssets() as Promise<bigint>;
|
|
2173
2365
|
}
|
|
2174
2366
|
|
|
2175
2367
|
/**
|
|
2176
|
-
*
|
|
2368
|
+
* trackedTokens
|
|
2177
2369
|
* view
|
|
2178
2370
|
*/
|
|
2179
|
-
async
|
|
2180
|
-
return this.contract.read.
|
|
2371
|
+
async trackedTokens(): Promise<`0x${string}`[]> {
|
|
2372
|
+
return this.contract.read.trackedTokens() as Promise<`0x${string}`[]>;
|
|
2181
2373
|
}
|
|
2182
2374
|
|
|
2183
2375
|
/**
|
|
2184
|
-
*
|
|
2376
|
+
* userDepositIds
|
|
2185
2377
|
* view
|
|
2186
2378
|
*/
|
|
2187
|
-
async
|
|
2188
|
-
return this.contract.read.
|
|
2379
|
+
async userDepositIds(user: `0x${string}`): Promise<bigint[]> {
|
|
2380
|
+
return this.contract.read.userDepositIds([user] as const) as Promise<bigint[]>;
|
|
2189
2381
|
}
|
|
2190
2382
|
|
|
2191
2383
|
/**
|
|
2192
|
-
*
|
|
2384
|
+
* userRequestIds
|
|
2193
2385
|
* view
|
|
2194
2386
|
*/
|
|
2195
|
-
async
|
|
2196
|
-
return this.contract.read.
|
|
2387
|
+
async userRequestIds(user: `0x${string}`): Promise<bigint[]> {
|
|
2388
|
+
return this.contract.read.userRequestIds([user] as const) as Promise<bigint[]>;
|
|
2197
2389
|
}
|
|
2198
2390
|
|
|
2199
2391
|
/**
|
|
2200
|
-
*
|
|
2201
|
-
*
|
|
2392
|
+
* addTrackedToken
|
|
2393
|
+
* nonpayable
|
|
2394
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2202
2395
|
*/
|
|
2203
|
-
async
|
|
2204
|
-
|
|
2396
|
+
async addTrackedToken(token: `0x${string}`, options?: {
|
|
2397
|
+
accessList?: import('viem').AccessList;
|
|
2398
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2399
|
+
chain?: import('viem').Chain | null;
|
|
2400
|
+
dataSuffix?: `0x${string}`;
|
|
2401
|
+
gas?: bigint;
|
|
2402
|
+
gasPrice?: bigint;
|
|
2403
|
+
maxFeePerGas?: bigint;
|
|
2404
|
+
maxPriorityFeePerGas?: bigint;
|
|
2405
|
+
nonce?: number;
|
|
2406
|
+
value?: bigint;
|
|
2407
|
+
}): Promise<`0x${string}`> {
|
|
2408
|
+
if (!this.contract.write) {
|
|
2409
|
+
throw new Error('Wallet client is required for write operations');
|
|
2410
|
+
}
|
|
2411
|
+
return this.contract.write.addTrackedToken([token] as const, options) as Promise<`0x${string}`>;
|
|
2205
2412
|
}
|
|
2206
2413
|
|
|
2207
2414
|
/**
|
|
2208
|
-
*
|
|
2209
|
-
*
|
|
2415
|
+
* approveERC20
|
|
2416
|
+
* nonpayable
|
|
2417
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2418
|
+
*/
|
|
2419
|
+
async approveERC20(token: `0x${string}`, spender: `0x${string}`, amount: bigint, options?: {
|
|
2420
|
+
accessList?: import('viem').AccessList;
|
|
2421
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2422
|
+
chain?: import('viem').Chain | null;
|
|
2423
|
+
dataSuffix?: `0x${string}`;
|
|
2424
|
+
gas?: bigint;
|
|
2425
|
+
gasPrice?: bigint;
|
|
2426
|
+
maxFeePerGas?: bigint;
|
|
2427
|
+
maxPriorityFeePerGas?: bigint;
|
|
2428
|
+
nonce?: number;
|
|
2429
|
+
value?: bigint;
|
|
2430
|
+
}): Promise<`0x${string}`> {
|
|
2431
|
+
if (!this.contract.write) {
|
|
2432
|
+
throw new Error('Wallet client is required for write operations');
|
|
2433
|
+
}
|
|
2434
|
+
return this.contract.write.approveERC20([token, spender, amount] as const, options) as Promise<`0x${string}`>;
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2437
|
+
/**
|
|
2438
|
+
* approvePermit2
|
|
2439
|
+
* nonpayable
|
|
2440
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2210
2441
|
*/
|
|
2211
|
-
async
|
|
2212
|
-
|
|
2442
|
+
async approvePermit2(permit2: `0x${string}`, token: `0x${string}`, spender: `0x${string}`, amount: bigint, expiration: bigint, options?: {
|
|
2443
|
+
accessList?: import('viem').AccessList;
|
|
2444
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2445
|
+
chain?: import('viem').Chain | null;
|
|
2446
|
+
dataSuffix?: `0x${string}`;
|
|
2447
|
+
gas?: bigint;
|
|
2448
|
+
gasPrice?: bigint;
|
|
2449
|
+
maxFeePerGas?: bigint;
|
|
2450
|
+
maxPriorityFeePerGas?: bigint;
|
|
2451
|
+
nonce?: number;
|
|
2452
|
+
value?: bigint;
|
|
2453
|
+
}): Promise<`0x${string}`> {
|
|
2454
|
+
if (!this.contract.write) {
|
|
2455
|
+
throw new Error('Wallet client is required for write operations');
|
|
2456
|
+
}
|
|
2457
|
+
return this.contract.write.approvePermit2([permit2, token, spender, amount, expiration] as const, options) as Promise<`0x${string}`>;
|
|
2213
2458
|
}
|
|
2214
2459
|
|
|
2215
2460
|
/**
|
|
2216
|
-
*
|
|
2217
|
-
*
|
|
2461
|
+
* cancelDepositRequest
|
|
2462
|
+
* nonpayable
|
|
2463
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2218
2464
|
*/
|
|
2219
|
-
async
|
|
2220
|
-
|
|
2465
|
+
async cancelDepositRequest(depositId: bigint, options?: {
|
|
2466
|
+
accessList?: import('viem').AccessList;
|
|
2467
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2468
|
+
chain?: import('viem').Chain | null;
|
|
2469
|
+
dataSuffix?: `0x${string}`;
|
|
2470
|
+
gas?: bigint;
|
|
2471
|
+
gasPrice?: bigint;
|
|
2472
|
+
maxFeePerGas?: bigint;
|
|
2473
|
+
maxPriorityFeePerGas?: bigint;
|
|
2474
|
+
nonce?: number;
|
|
2475
|
+
value?: bigint;
|
|
2476
|
+
}): Promise<`0x${string}`> {
|
|
2477
|
+
if (!this.contract.write) {
|
|
2478
|
+
throw new Error('Wallet client is required for write operations');
|
|
2479
|
+
}
|
|
2480
|
+
return this.contract.write.cancelDepositRequest([depositId] as const, options) as Promise<`0x${string}`>;
|
|
2221
2481
|
}
|
|
2222
2482
|
|
|
2223
2483
|
/**
|
|
2224
|
-
*
|
|
2225
|
-
*
|
|
2484
|
+
* cancelPendingDeposits
|
|
2485
|
+
* nonpayable
|
|
2486
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2487
|
+
*/
|
|
2488
|
+
async cancelPendingDeposits(maxCount: bigint, options?: {
|
|
2489
|
+
accessList?: import('viem').AccessList;
|
|
2490
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2491
|
+
chain?: import('viem').Chain | null;
|
|
2492
|
+
dataSuffix?: `0x${string}`;
|
|
2493
|
+
gas?: bigint;
|
|
2494
|
+
gasPrice?: bigint;
|
|
2495
|
+
maxFeePerGas?: bigint;
|
|
2496
|
+
maxPriorityFeePerGas?: bigint;
|
|
2497
|
+
nonce?: number;
|
|
2498
|
+
value?: bigint;
|
|
2499
|
+
}): Promise<`0x${string}`> {
|
|
2500
|
+
if (!this.contract.write) {
|
|
2501
|
+
throw new Error('Wallet client is required for write operations');
|
|
2502
|
+
}
|
|
2503
|
+
return this.contract.write.cancelPendingDeposits([maxCount] as const, options) as Promise<`0x${string}`>;
|
|
2504
|
+
}
|
|
2505
|
+
|
|
2506
|
+
/**
|
|
2507
|
+
* cancelWithdraw
|
|
2508
|
+
* nonpayable
|
|
2509
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2226
2510
|
*/
|
|
2227
|
-
async
|
|
2228
|
-
|
|
2511
|
+
async cancelWithdraw(requestId: bigint, options?: {
|
|
2512
|
+
accessList?: import('viem').AccessList;
|
|
2513
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2514
|
+
chain?: import('viem').Chain | null;
|
|
2515
|
+
dataSuffix?: `0x${string}`;
|
|
2516
|
+
gas?: bigint;
|
|
2517
|
+
gasPrice?: bigint;
|
|
2518
|
+
maxFeePerGas?: bigint;
|
|
2519
|
+
maxPriorityFeePerGas?: bigint;
|
|
2520
|
+
nonce?: number;
|
|
2521
|
+
value?: bigint;
|
|
2522
|
+
}): Promise<`0x${string}`> {
|
|
2523
|
+
if (!this.contract.write) {
|
|
2524
|
+
throw new Error('Wallet client is required for write operations');
|
|
2525
|
+
}
|
|
2526
|
+
return this.contract.write.cancelWithdraw([requestId] as const, options) as Promise<`0x${string}`>;
|
|
2229
2527
|
}
|
|
2230
2528
|
|
|
2231
2529
|
/**
|
|
2232
|
-
*
|
|
2530
|
+
* claimAndDeposit
|
|
2233
2531
|
* nonpayable
|
|
2234
2532
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2235
2533
|
*/
|
|
2236
|
-
async
|
|
2534
|
+
async claimAndDeposit(requestId: bigint, newVault: `0x${string}`, options?: {
|
|
2237
2535
|
accessList?: import('viem').AccessList;
|
|
2238
2536
|
authorizationList?: import('viem').AuthorizationList;
|
|
2239
2537
|
chain?: import('viem').Chain | null;
|
|
@@ -2248,15 +2546,15 @@ export class Vault_json {
|
|
|
2248
2546
|
if (!this.contract.write) {
|
|
2249
2547
|
throw new Error('Wallet client is required for write operations');
|
|
2250
2548
|
}
|
|
2251
|
-
return this.contract.write.
|
|
2549
|
+
return this.contract.write.claimAndDeposit([requestId, newVault] as const, options) as Promise<`0x${string}`>;
|
|
2252
2550
|
}
|
|
2253
2551
|
|
|
2254
2552
|
/**
|
|
2255
|
-
*
|
|
2553
|
+
* claimWithdraw
|
|
2256
2554
|
* nonpayable
|
|
2257
2555
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2258
2556
|
*/
|
|
2259
|
-
async
|
|
2557
|
+
async claimWithdraw(requestId: bigint, options?: {
|
|
2260
2558
|
accessList?: import('viem').AccessList;
|
|
2261
2559
|
authorizationList?: import('viem').AuthorizationList;
|
|
2262
2560
|
chain?: import('viem').Chain | null;
|
|
@@ -2271,15 +2569,15 @@ export class Vault_json {
|
|
|
2271
2569
|
if (!this.contract.write) {
|
|
2272
2570
|
throw new Error('Wallet client is required for write operations');
|
|
2273
2571
|
}
|
|
2274
|
-
return this.contract.write.
|
|
2572
|
+
return this.contract.write.claimWithdraw([requestId] as const, options) as Promise<`0x${string}`>;
|
|
2275
2573
|
}
|
|
2276
2574
|
|
|
2277
2575
|
/**
|
|
2278
|
-
*
|
|
2576
|
+
* claimWithdrawTo
|
|
2279
2577
|
* nonpayable
|
|
2280
2578
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2281
2579
|
*/
|
|
2282
|
-
async
|
|
2580
|
+
async claimWithdrawTo(requestId: bigint, recipient: `0x${string}`, options?: {
|
|
2283
2581
|
accessList?: import('viem').AccessList;
|
|
2284
2582
|
authorizationList?: import('viem').AuthorizationList;
|
|
2285
2583
|
chain?: import('viem').Chain | null;
|
|
@@ -2294,7 +2592,7 @@ export class Vault_json {
|
|
|
2294
2592
|
if (!this.contract.write) {
|
|
2295
2593
|
throw new Error('Wallet client is required for write operations');
|
|
2296
2594
|
}
|
|
2297
|
-
return this.contract.write.
|
|
2595
|
+
return this.contract.write.claimWithdrawTo([requestId, recipient] as const, options) as Promise<`0x${string}`>;
|
|
2298
2596
|
}
|
|
2299
2597
|
|
|
2300
2598
|
/**
|
|
@@ -2321,11 +2619,11 @@ export class Vault_json {
|
|
|
2321
2619
|
}
|
|
2322
2620
|
|
|
2323
2621
|
/**
|
|
2324
|
-
*
|
|
2622
|
+
* onShareTransfer
|
|
2325
2623
|
* nonpayable
|
|
2326
2624
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2327
2625
|
*/
|
|
2328
|
-
async
|
|
2626
|
+
async onShareTransfer(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
2329
2627
|
accessList?: import('viem').AccessList;
|
|
2330
2628
|
authorizationList?: import('viem').AuthorizationList;
|
|
2331
2629
|
chain?: import('viem').Chain | null;
|
|
@@ -2340,15 +2638,15 @@ export class Vault_json {
|
|
|
2340
2638
|
if (!this.contract.write) {
|
|
2341
2639
|
throw new Error('Wallet client is required for write operations');
|
|
2342
2640
|
}
|
|
2343
|
-
return this.contract.write.
|
|
2641
|
+
return this.contract.write.onShareTransfer([from, to, value] as const, options) as Promise<`0x${string}`>;
|
|
2344
2642
|
}
|
|
2345
2643
|
|
|
2346
2644
|
/**
|
|
2347
|
-
*
|
|
2645
|
+
* pause
|
|
2348
2646
|
* nonpayable
|
|
2349
2647
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2350
2648
|
*/
|
|
2351
|
-
async
|
|
2649
|
+
async pause(options?: {
|
|
2352
2650
|
accessList?: import('viem').AccessList;
|
|
2353
2651
|
authorizationList?: import('viem').AuthorizationList;
|
|
2354
2652
|
chain?: import('viem').Chain | null;
|
|
@@ -2363,15 +2661,15 @@ export class Vault_json {
|
|
|
2363
2661
|
if (!this.contract.write) {
|
|
2364
2662
|
throw new Error('Wallet client is required for write operations');
|
|
2365
2663
|
}
|
|
2366
|
-
return this.contract.write.
|
|
2664
|
+
return this.contract.write.pause(options) as Promise<`0x${string}`>;
|
|
2367
2665
|
}
|
|
2368
2666
|
|
|
2369
2667
|
/**
|
|
2370
|
-
*
|
|
2668
|
+
* rebalance
|
|
2371
2669
|
* nonpayable
|
|
2372
2670
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2373
2671
|
*/
|
|
2374
|
-
async
|
|
2672
|
+
async rebalance(targets: `0x${string}`[], calldatas: `0x${string}`[], options?: {
|
|
2375
2673
|
accessList?: import('viem').AccessList;
|
|
2376
2674
|
authorizationList?: import('viem').AuthorizationList;
|
|
2377
2675
|
chain?: import('viem').Chain | null;
|
|
@@ -2386,15 +2684,15 @@ export class Vault_json {
|
|
|
2386
2684
|
if (!this.contract.write) {
|
|
2387
2685
|
throw new Error('Wallet client is required for write operations');
|
|
2388
2686
|
}
|
|
2389
|
-
return this.contract.write.
|
|
2687
|
+
return this.contract.write.rebalance([targets, calldatas] as const, options) as Promise<`0x${string}`>;
|
|
2390
2688
|
}
|
|
2391
2689
|
|
|
2392
2690
|
/**
|
|
2393
|
-
*
|
|
2691
|
+
* removeTrackedToken
|
|
2394
2692
|
* nonpayable
|
|
2395
2693
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2396
2694
|
*/
|
|
2397
|
-
async
|
|
2695
|
+
async removeTrackedToken(token: `0x${string}`, options?: {
|
|
2398
2696
|
accessList?: import('viem').AccessList;
|
|
2399
2697
|
authorizationList?: import('viem').AuthorizationList;
|
|
2400
2698
|
chain?: import('viem').Chain | null;
|
|
@@ -2409,15 +2707,15 @@ export class Vault_json {
|
|
|
2409
2707
|
if (!this.contract.write) {
|
|
2410
2708
|
throw new Error('Wallet client is required for write operations');
|
|
2411
2709
|
}
|
|
2412
|
-
return this.contract.write.
|
|
2710
|
+
return this.contract.write.removeTrackedToken([token] as const, options) as Promise<`0x${string}`>;
|
|
2413
2711
|
}
|
|
2414
2712
|
|
|
2415
2713
|
/**
|
|
2416
|
-
*
|
|
2714
|
+
* renounceRole
|
|
2417
2715
|
* nonpayable
|
|
2418
2716
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2419
2717
|
*/
|
|
2420
|
-
async
|
|
2718
|
+
async renounceRole(role: `0x${string}`, callerConfirmation: `0x${string}`, options?: {
|
|
2421
2719
|
accessList?: import('viem').AccessList;
|
|
2422
2720
|
authorizationList?: import('viem').AuthorizationList;
|
|
2423
2721
|
chain?: import('viem').Chain | null;
|
|
@@ -2432,15 +2730,61 @@ export class Vault_json {
|
|
|
2432
2730
|
if (!this.contract.write) {
|
|
2433
2731
|
throw new Error('Wallet client is required for write operations');
|
|
2434
2732
|
}
|
|
2435
|
-
return this.contract.write.
|
|
2733
|
+
return this.contract.write.renounceRole([role, callerConfirmation] as const, options) as Promise<`0x${string}`>;
|
|
2436
2734
|
}
|
|
2437
2735
|
|
|
2438
2736
|
/**
|
|
2439
|
-
*
|
|
2737
|
+
* requestDeposit
|
|
2440
2738
|
* nonpayable
|
|
2441
2739
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2442
2740
|
*/
|
|
2443
|
-
async
|
|
2741
|
+
async requestDeposit(assets: bigint, options?: {
|
|
2742
|
+
accessList?: import('viem').AccessList;
|
|
2743
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2744
|
+
chain?: import('viem').Chain | null;
|
|
2745
|
+
dataSuffix?: `0x${string}`;
|
|
2746
|
+
gas?: bigint;
|
|
2747
|
+
gasPrice?: bigint;
|
|
2748
|
+
maxFeePerGas?: bigint;
|
|
2749
|
+
maxPriorityFeePerGas?: bigint;
|
|
2750
|
+
nonce?: number;
|
|
2751
|
+
value?: bigint;
|
|
2752
|
+
}): Promise<`0x${string}`> {
|
|
2753
|
+
if (!this.contract.write) {
|
|
2754
|
+
throw new Error('Wallet client is required for write operations');
|
|
2755
|
+
}
|
|
2756
|
+
return this.contract.write.requestDeposit([assets] as const, options) as Promise<`0x${string}`>;
|
|
2757
|
+
}
|
|
2758
|
+
|
|
2759
|
+
/**
|
|
2760
|
+
* requestDepositFor
|
|
2761
|
+
* nonpayable
|
|
2762
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2763
|
+
*/
|
|
2764
|
+
async requestDepositFor(assets: bigint, recipient: `0x${string}`, options?: {
|
|
2765
|
+
accessList?: import('viem').AccessList;
|
|
2766
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2767
|
+
chain?: import('viem').Chain | null;
|
|
2768
|
+
dataSuffix?: `0x${string}`;
|
|
2769
|
+
gas?: bigint;
|
|
2770
|
+
gasPrice?: bigint;
|
|
2771
|
+
maxFeePerGas?: bigint;
|
|
2772
|
+
maxPriorityFeePerGas?: bigint;
|
|
2773
|
+
nonce?: number;
|
|
2774
|
+
value?: bigint;
|
|
2775
|
+
}): Promise<`0x${string}`> {
|
|
2776
|
+
if (!this.contract.write) {
|
|
2777
|
+
throw new Error('Wallet client is required for write operations');
|
|
2778
|
+
}
|
|
2779
|
+
return this.contract.write.requestDepositFor([assets, recipient] as const, options) as Promise<`0x${string}`>;
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
/**
|
|
2783
|
+
* requestWithdraw
|
|
2784
|
+
* nonpayable
|
|
2785
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2786
|
+
*/
|
|
2787
|
+
async requestWithdraw(sharesIn: bigint, options?: {
|
|
2444
2788
|
accessList?: import('viem').AccessList;
|
|
2445
2789
|
authorizationList?: import('viem').AuthorizationList;
|
|
2446
2790
|
chain?: import('viem').Chain | null;
|
|
@@ -2455,7 +2799,7 @@ export class Vault_json {
|
|
|
2455
2799
|
if (!this.contract.write) {
|
|
2456
2800
|
throw new Error('Wallet client is required for write operations');
|
|
2457
2801
|
}
|
|
2458
|
-
return this.contract.write.
|
|
2802
|
+
return this.contract.write.requestWithdraw([sharesIn] as const, options) as Promise<`0x${string}`>;
|
|
2459
2803
|
}
|
|
2460
2804
|
|
|
2461
2805
|
/**
|
|
@@ -2482,11 +2826,11 @@ export class Vault_json {
|
|
|
2482
2826
|
}
|
|
2483
2827
|
|
|
2484
2828
|
/**
|
|
2485
|
-
*
|
|
2829
|
+
* setFeeRecipient
|
|
2486
2830
|
* nonpayable
|
|
2487
2831
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2488
2832
|
*/
|
|
2489
|
-
async
|
|
2833
|
+
async setFeeRecipient(recipient: `0x${string}`, options?: {
|
|
2490
2834
|
accessList?: import('viem').AccessList;
|
|
2491
2835
|
authorizationList?: import('viem').AuthorizationList;
|
|
2492
2836
|
chain?: import('viem').Chain | null;
|
|
@@ -2501,15 +2845,15 @@ export class Vault_json {
|
|
|
2501
2845
|
if (!this.contract.write) {
|
|
2502
2846
|
throw new Error('Wallet client is required for write operations');
|
|
2503
2847
|
}
|
|
2504
|
-
return this.contract.write.
|
|
2848
|
+
return this.contract.write.setFeeRecipient([recipient] as const, options) as Promise<`0x${string}`>;
|
|
2505
2849
|
}
|
|
2506
2850
|
|
|
2507
2851
|
/**
|
|
2508
|
-
*
|
|
2852
|
+
* setMaxSettlementBatchSize
|
|
2509
2853
|
* nonpayable
|
|
2510
2854
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2511
2855
|
*/
|
|
2512
|
-
async
|
|
2856
|
+
async setMaxSettlementBatchSize(size: bigint, options?: {
|
|
2513
2857
|
accessList?: import('viem').AccessList;
|
|
2514
2858
|
authorizationList?: import('viem').AuthorizationList;
|
|
2515
2859
|
chain?: import('viem').Chain | null;
|
|
@@ -2524,15 +2868,15 @@ export class Vault_json {
|
|
|
2524
2868
|
if (!this.contract.write) {
|
|
2525
2869
|
throw new Error('Wallet client is required for write operations');
|
|
2526
2870
|
}
|
|
2527
|
-
return this.contract.write.
|
|
2871
|
+
return this.contract.write.setMaxSettlementBatchSize([size] as const, options) as Promise<`0x${string}`>;
|
|
2528
2872
|
}
|
|
2529
2873
|
|
|
2530
2874
|
/**
|
|
2531
|
-
*
|
|
2875
|
+
* setMinDepositAssets
|
|
2532
2876
|
* nonpayable
|
|
2533
2877
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2534
2878
|
*/
|
|
2535
|
-
async
|
|
2879
|
+
async setMinDepositAssets(amount: bigint, options?: {
|
|
2536
2880
|
accessList?: import('viem').AccessList;
|
|
2537
2881
|
authorizationList?: import('viem').AuthorizationList;
|
|
2538
2882
|
chain?: import('viem').Chain | null;
|
|
@@ -2547,15 +2891,15 @@ export class Vault_json {
|
|
|
2547
2891
|
if (!this.contract.write) {
|
|
2548
2892
|
throw new Error('Wallet client is required for write operations');
|
|
2549
2893
|
}
|
|
2550
|
-
return this.contract.write.
|
|
2894
|
+
return this.contract.write.setMinDepositAssets([amount] as const, options) as Promise<`0x${string}`>;
|
|
2551
2895
|
}
|
|
2552
2896
|
|
|
2553
2897
|
/**
|
|
2554
|
-
*
|
|
2898
|
+
* setOracle
|
|
2555
2899
|
* nonpayable
|
|
2556
2900
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2557
2901
|
*/
|
|
2558
|
-
async
|
|
2902
|
+
async setOracle(_oracle: `0x${string}`, options?: {
|
|
2559
2903
|
accessList?: import('viem').AccessList;
|
|
2560
2904
|
authorizationList?: import('viem').AuthorizationList;
|
|
2561
2905
|
chain?: import('viem').Chain | null;
|
|
@@ -2570,15 +2914,15 @@ export class Vault_json {
|
|
|
2570
2914
|
if (!this.contract.write) {
|
|
2571
2915
|
throw new Error('Wallet client is required for write operations');
|
|
2572
2916
|
}
|
|
2573
|
-
return this.contract.write.
|
|
2917
|
+
return this.contract.write.setOracle([_oracle] as const, options) as Promise<`0x${string}`>;
|
|
2574
2918
|
}
|
|
2575
2919
|
|
|
2576
2920
|
/**
|
|
2577
|
-
*
|
|
2921
|
+
* setPerformanceFee
|
|
2578
2922
|
* nonpayable
|
|
2579
2923
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2580
2924
|
*/
|
|
2581
|
-
async
|
|
2925
|
+
async setPerformanceFee(feeBps: bigint, options?: {
|
|
2582
2926
|
accessList?: import('viem').AccessList;
|
|
2583
2927
|
authorizationList?: import('viem').AuthorizationList;
|
|
2584
2928
|
chain?: import('viem').Chain | null;
|
|
@@ -2593,15 +2937,15 @@ export class Vault_json {
|
|
|
2593
2937
|
if (!this.contract.write) {
|
|
2594
2938
|
throw new Error('Wallet client is required for write operations');
|
|
2595
2939
|
}
|
|
2596
|
-
return this.contract.write.
|
|
2940
|
+
return this.contract.write.setPerformanceFee([feeBps] as const, options) as Promise<`0x${string}`>;
|
|
2597
2941
|
}
|
|
2598
2942
|
|
|
2599
2943
|
/**
|
|
2600
|
-
*
|
|
2944
|
+
* setSettlementFee
|
|
2601
2945
|
* nonpayable
|
|
2602
2946
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2603
2947
|
*/
|
|
2604
|
-
async
|
|
2948
|
+
async setSettlementFee(fee: bigint, options?: {
|
|
2605
2949
|
accessList?: import('viem').AccessList;
|
|
2606
2950
|
authorizationList?: import('viem').AuthorizationList;
|
|
2607
2951
|
chain?: import('viem').Chain | null;
|
|
@@ -2616,15 +2960,15 @@ export class Vault_json {
|
|
|
2616
2960
|
if (!this.contract.write) {
|
|
2617
2961
|
throw new Error('Wallet client is required for write operations');
|
|
2618
2962
|
}
|
|
2619
|
-
return this.contract.write.
|
|
2963
|
+
return this.contract.write.setSettlementFee([fee] as const, options) as Promise<`0x${string}`>;
|
|
2620
2964
|
}
|
|
2621
2965
|
|
|
2622
2966
|
/**
|
|
2623
|
-
*
|
|
2967
|
+
* setTargetAllowed
|
|
2624
2968
|
* nonpayable
|
|
2625
2969
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2626
2970
|
*/
|
|
2627
|
-
async
|
|
2971
|
+
async setTargetAllowed(target: `0x${string}`, allowed: boolean, options?: {
|
|
2628
2972
|
accessList?: import('viem').AccessList;
|
|
2629
2973
|
authorizationList?: import('viem').AuthorizationList;
|
|
2630
2974
|
chain?: import('viem').Chain | null;
|
|
@@ -2639,15 +2983,15 @@ export class Vault_json {
|
|
|
2639
2983
|
if (!this.contract.write) {
|
|
2640
2984
|
throw new Error('Wallet client is required for write operations');
|
|
2641
2985
|
}
|
|
2642
|
-
return this.contract.write.
|
|
2986
|
+
return this.contract.write.setTargetAllowed([target, allowed] as const, options) as Promise<`0x${string}`>;
|
|
2643
2987
|
}
|
|
2644
2988
|
|
|
2645
2989
|
/**
|
|
2646
|
-
*
|
|
2990
|
+
* settle
|
|
2647
2991
|
* nonpayable
|
|
2648
2992
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2649
2993
|
*/
|
|
2650
|
-
async
|
|
2994
|
+
async settle(tokens: `0x${string}`[], prices: bigint[], options?: {
|
|
2651
2995
|
accessList?: import('viem').AccessList;
|
|
2652
2996
|
authorizationList?: import('viem').AuthorizationList;
|
|
2653
2997
|
chain?: import('viem').Chain | null;
|
|
@@ -2662,15 +3006,15 @@ export class Vault_json {
|
|
|
2662
3006
|
if (!this.contract.write) {
|
|
2663
3007
|
throw new Error('Wallet client is required for write operations');
|
|
2664
3008
|
}
|
|
2665
|
-
return this.contract.write.
|
|
3009
|
+
return this.contract.write.settle([tokens, prices] as const, options) as Promise<`0x${string}`>;
|
|
2666
3010
|
}
|
|
2667
3011
|
|
|
2668
3012
|
/**
|
|
2669
|
-
*
|
|
3013
|
+
* unpause
|
|
2670
3014
|
* nonpayable
|
|
2671
3015
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2672
3016
|
*/
|
|
2673
|
-
async
|
|
3017
|
+
async unpause(options?: {
|
|
2674
3018
|
accessList?: import('viem').AccessList;
|
|
2675
3019
|
authorizationList?: import('viem').AuthorizationList;
|
|
2676
3020
|
chain?: import('viem').Chain | null;
|
|
@@ -2685,7 +3029,7 @@ export class Vault_json {
|
|
|
2685
3029
|
if (!this.contract.write) {
|
|
2686
3030
|
throw new Error('Wallet client is required for write operations');
|
|
2687
3031
|
}
|
|
2688
|
-
return this.contract.write.
|
|
3032
|
+
return this.contract.write.unpause(options) as Promise<`0x${string}`>;
|
|
2689
3033
|
}
|
|
2690
3034
|
|
|
2691
3035
|
|
|
@@ -2705,11 +3049,87 @@ export class Vault_json {
|
|
|
2705
3049
|
}
|
|
2706
3050
|
return {
|
|
2707
3051
|
/**
|
|
2708
|
-
* Simulate
|
|
3052
|
+
* Simulate addTrackedToken
|
|
3053
|
+
* Returns gas estimate and result without sending transaction
|
|
3054
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3055
|
+
*/
|
|
3056
|
+
async addTrackedToken(token: `0x${string}`, options?: {
|
|
3057
|
+
accessList?: import('viem').AccessList;
|
|
3058
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3059
|
+
chain?: import('viem').Chain | null;
|
|
3060
|
+
dataSuffix?: `0x${string}`;
|
|
3061
|
+
gas?: bigint;
|
|
3062
|
+
gasPrice?: bigint;
|
|
3063
|
+
maxFeePerGas?: bigint;
|
|
3064
|
+
maxPriorityFeePerGas?: bigint;
|
|
3065
|
+
nonce?: number;
|
|
3066
|
+
value?: bigint;
|
|
3067
|
+
}): Promise<void> {
|
|
3068
|
+
return contract.simulate.addTrackedToken([token] as const, options) as Promise<void>;
|
|
3069
|
+
},
|
|
3070
|
+
/**
|
|
3071
|
+
* Simulate approveERC20
|
|
3072
|
+
* Returns gas estimate and result without sending transaction
|
|
3073
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3074
|
+
*/
|
|
3075
|
+
async approveERC20(token: `0x${string}`, spender: `0x${string}`, amount: bigint, options?: {
|
|
3076
|
+
accessList?: import('viem').AccessList;
|
|
3077
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3078
|
+
chain?: import('viem').Chain | null;
|
|
3079
|
+
dataSuffix?: `0x${string}`;
|
|
3080
|
+
gas?: bigint;
|
|
3081
|
+
gasPrice?: bigint;
|
|
3082
|
+
maxFeePerGas?: bigint;
|
|
3083
|
+
maxPriorityFeePerGas?: bigint;
|
|
3084
|
+
nonce?: number;
|
|
3085
|
+
value?: bigint;
|
|
3086
|
+
}): Promise<void> {
|
|
3087
|
+
return contract.simulate.approveERC20([token, spender, amount] as const, options) as Promise<void>;
|
|
3088
|
+
},
|
|
3089
|
+
/**
|
|
3090
|
+
* Simulate approvePermit2
|
|
3091
|
+
* Returns gas estimate and result without sending transaction
|
|
3092
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3093
|
+
*/
|
|
3094
|
+
async approvePermit2(permit2: `0x${string}`, token: `0x${string}`, spender: `0x${string}`, amount: bigint, expiration: bigint, options?: {
|
|
3095
|
+
accessList?: import('viem').AccessList;
|
|
3096
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3097
|
+
chain?: import('viem').Chain | null;
|
|
3098
|
+
dataSuffix?: `0x${string}`;
|
|
3099
|
+
gas?: bigint;
|
|
3100
|
+
gasPrice?: bigint;
|
|
3101
|
+
maxFeePerGas?: bigint;
|
|
3102
|
+
maxPriorityFeePerGas?: bigint;
|
|
3103
|
+
nonce?: number;
|
|
3104
|
+
value?: bigint;
|
|
3105
|
+
}): Promise<void> {
|
|
3106
|
+
return contract.simulate.approvePermit2([permit2, token, spender, amount, expiration] as const, options) as Promise<void>;
|
|
3107
|
+
},
|
|
3108
|
+
/**
|
|
3109
|
+
* Simulate cancelDepositRequest
|
|
3110
|
+
* Returns gas estimate and result without sending transaction
|
|
3111
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3112
|
+
*/
|
|
3113
|
+
async cancelDepositRequest(depositId: bigint, options?: {
|
|
3114
|
+
accessList?: import('viem').AccessList;
|
|
3115
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3116
|
+
chain?: import('viem').Chain | null;
|
|
3117
|
+
dataSuffix?: `0x${string}`;
|
|
3118
|
+
gas?: bigint;
|
|
3119
|
+
gasPrice?: bigint;
|
|
3120
|
+
maxFeePerGas?: bigint;
|
|
3121
|
+
maxPriorityFeePerGas?: bigint;
|
|
3122
|
+
nonce?: number;
|
|
3123
|
+
value?: bigint;
|
|
3124
|
+
}): Promise<void> {
|
|
3125
|
+
return contract.simulate.cancelDepositRequest([depositId] as const, options) as Promise<void>;
|
|
3126
|
+
},
|
|
3127
|
+
/**
|
|
3128
|
+
* Simulate cancelPendingDeposits
|
|
2709
3129
|
* Returns gas estimate and result without sending transaction
|
|
2710
3130
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2711
3131
|
*/
|
|
2712
|
-
async
|
|
3132
|
+
async cancelPendingDeposits(maxCount: bigint, options?: {
|
|
2713
3133
|
accessList?: import('viem').AccessList;
|
|
2714
3134
|
authorizationList?: import('viem').AuthorizationList;
|
|
2715
3135
|
chain?: import('viem').Chain | null;
|
|
@@ -2721,14 +3141,33 @@ export class Vault_json {
|
|
|
2721
3141
|
nonce?: number;
|
|
2722
3142
|
value?: bigint;
|
|
2723
3143
|
}): Promise<bigint> {
|
|
2724
|
-
return contract.simulate.
|
|
3144
|
+
return contract.simulate.cancelPendingDeposits([maxCount] as const, options) as Promise<bigint>;
|
|
3145
|
+
},
|
|
3146
|
+
/**
|
|
3147
|
+
* Simulate cancelWithdraw
|
|
3148
|
+
* Returns gas estimate and result without sending transaction
|
|
3149
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3150
|
+
*/
|
|
3151
|
+
async cancelWithdraw(requestId: bigint, options?: {
|
|
3152
|
+
accessList?: import('viem').AccessList;
|
|
3153
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3154
|
+
chain?: import('viem').Chain | null;
|
|
3155
|
+
dataSuffix?: `0x${string}`;
|
|
3156
|
+
gas?: bigint;
|
|
3157
|
+
gasPrice?: bigint;
|
|
3158
|
+
maxFeePerGas?: bigint;
|
|
3159
|
+
maxPriorityFeePerGas?: bigint;
|
|
3160
|
+
nonce?: number;
|
|
3161
|
+
value?: bigint;
|
|
3162
|
+
}): Promise<void> {
|
|
3163
|
+
return contract.simulate.cancelWithdraw([requestId] as const, options) as Promise<void>;
|
|
2725
3164
|
},
|
|
2726
3165
|
/**
|
|
2727
|
-
* Simulate
|
|
3166
|
+
* Simulate claimAndDeposit
|
|
2728
3167
|
* Returns gas estimate and result without sending transaction
|
|
2729
3168
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2730
3169
|
*/
|
|
2731
|
-
async
|
|
3170
|
+
async claimAndDeposit(requestId: bigint, newVault: `0x${string}`, options?: {
|
|
2732
3171
|
accessList?: import('viem').AccessList;
|
|
2733
3172
|
authorizationList?: import('viem').AuthorizationList;
|
|
2734
3173
|
chain?: import('viem').Chain | null;
|
|
@@ -2740,14 +3179,14 @@ export class Vault_json {
|
|
|
2740
3179
|
nonce?: number;
|
|
2741
3180
|
value?: bigint;
|
|
2742
3181
|
}): Promise<bigint> {
|
|
2743
|
-
return contract.simulate.
|
|
3182
|
+
return contract.simulate.claimAndDeposit([requestId, newVault] as const, options) as Promise<bigint>;
|
|
2744
3183
|
},
|
|
2745
3184
|
/**
|
|
2746
|
-
* Simulate
|
|
3185
|
+
* Simulate claimWithdraw
|
|
2747
3186
|
* Returns gas estimate and result without sending transaction
|
|
2748
3187
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2749
3188
|
*/
|
|
2750
|
-
async
|
|
3189
|
+
async claimWithdraw(requestId: bigint, options?: {
|
|
2751
3190
|
accessList?: import('viem').AccessList;
|
|
2752
3191
|
authorizationList?: import('viem').AuthorizationList;
|
|
2753
3192
|
chain?: import('viem').Chain | null;
|
|
@@ -2758,15 +3197,15 @@ export class Vault_json {
|
|
|
2758
3197
|
maxPriorityFeePerGas?: bigint;
|
|
2759
3198
|
nonce?: number;
|
|
2760
3199
|
value?: bigint;
|
|
2761
|
-
}): Promise<
|
|
2762
|
-
return contract.simulate.
|
|
3200
|
+
}): Promise<void> {
|
|
3201
|
+
return contract.simulate.claimWithdraw([requestId] as const, options) as Promise<void>;
|
|
2763
3202
|
},
|
|
2764
3203
|
/**
|
|
2765
|
-
* Simulate
|
|
3204
|
+
* Simulate claimWithdrawTo
|
|
2766
3205
|
* Returns gas estimate and result without sending transaction
|
|
2767
3206
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2768
3207
|
*/
|
|
2769
|
-
async
|
|
3208
|
+
async claimWithdrawTo(requestId: bigint, recipient: `0x${string}`, options?: {
|
|
2770
3209
|
accessList?: import('viem').AccessList;
|
|
2771
3210
|
authorizationList?: import('viem').AuthorizationList;
|
|
2772
3211
|
chain?: import('viem').Chain | null;
|
|
@@ -2778,14 +3217,14 @@ export class Vault_json {
|
|
|
2778
3217
|
nonce?: number;
|
|
2779
3218
|
value?: bigint;
|
|
2780
3219
|
}): Promise<void> {
|
|
2781
|
-
return contract.simulate.
|
|
3220
|
+
return contract.simulate.claimWithdrawTo([requestId, recipient] as const, options) as Promise<void>;
|
|
2782
3221
|
},
|
|
2783
3222
|
/**
|
|
2784
|
-
* Simulate
|
|
3223
|
+
* Simulate grantRole
|
|
2785
3224
|
* Returns gas estimate and result without sending transaction
|
|
2786
3225
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2787
3226
|
*/
|
|
2788
|
-
async
|
|
3227
|
+
async grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
2789
3228
|
accessList?: import('viem').AccessList;
|
|
2790
3229
|
authorizationList?: import('viem').AuthorizationList;
|
|
2791
3230
|
chain?: import('viem').Chain | null;
|
|
@@ -2797,14 +3236,14 @@ export class Vault_json {
|
|
|
2797
3236
|
nonce?: number;
|
|
2798
3237
|
value?: bigint;
|
|
2799
3238
|
}): Promise<void> {
|
|
2800
|
-
return contract.simulate.
|
|
3239
|
+
return contract.simulate.grantRole([role, account] as const, options) as Promise<void>;
|
|
2801
3240
|
},
|
|
2802
3241
|
/**
|
|
2803
|
-
* Simulate
|
|
3242
|
+
* Simulate onShareTransfer
|
|
2804
3243
|
* Returns gas estimate and result without sending transaction
|
|
2805
3244
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2806
3245
|
*/
|
|
2807
|
-
async
|
|
3246
|
+
async onShareTransfer(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
2808
3247
|
accessList?: import('viem').AccessList;
|
|
2809
3248
|
authorizationList?: import('viem').AuthorizationList;
|
|
2810
3249
|
chain?: import('viem').Chain | null;
|
|
@@ -2816,14 +3255,14 @@ export class Vault_json {
|
|
|
2816
3255
|
nonce?: number;
|
|
2817
3256
|
value?: bigint;
|
|
2818
3257
|
}): Promise<void> {
|
|
2819
|
-
return contract.simulate.
|
|
3258
|
+
return contract.simulate.onShareTransfer([from, to, value] as const, options) as Promise<void>;
|
|
2820
3259
|
},
|
|
2821
3260
|
/**
|
|
2822
|
-
* Simulate
|
|
3261
|
+
* Simulate pause
|
|
2823
3262
|
* Returns gas estimate and result without sending transaction
|
|
2824
3263
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2825
3264
|
*/
|
|
2826
|
-
async
|
|
3265
|
+
async pause(options?: {
|
|
2827
3266
|
accessList?: import('viem').AccessList;
|
|
2828
3267
|
authorizationList?: import('viem').AuthorizationList;
|
|
2829
3268
|
chain?: import('viem').Chain | null;
|
|
@@ -2834,15 +3273,15 @@ export class Vault_json {
|
|
|
2834
3273
|
maxPriorityFeePerGas?: bigint;
|
|
2835
3274
|
nonce?: number;
|
|
2836
3275
|
value?: bigint;
|
|
2837
|
-
}): Promise<
|
|
2838
|
-
return contract.simulate.
|
|
3276
|
+
}): Promise<void> {
|
|
3277
|
+
return contract.simulate.pause(options) as Promise<void>;
|
|
2839
3278
|
},
|
|
2840
3279
|
/**
|
|
2841
|
-
* Simulate
|
|
3280
|
+
* Simulate rebalance
|
|
2842
3281
|
* Returns gas estimate and result without sending transaction
|
|
2843
3282
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2844
3283
|
*/
|
|
2845
|
-
async
|
|
3284
|
+
async rebalance(targets: `0x${string}`[], calldatas: `0x${string}`[], options?: {
|
|
2846
3285
|
accessList?: import('viem').AccessList;
|
|
2847
3286
|
authorizationList?: import('viem').AuthorizationList;
|
|
2848
3287
|
chain?: import('viem').Chain | null;
|
|
@@ -2853,15 +3292,15 @@ export class Vault_json {
|
|
|
2853
3292
|
maxPriorityFeePerGas?: bigint;
|
|
2854
3293
|
nonce?: number;
|
|
2855
3294
|
value?: bigint;
|
|
2856
|
-
}): Promise<
|
|
2857
|
-
return contract.simulate.
|
|
3295
|
+
}): Promise<void> {
|
|
3296
|
+
return contract.simulate.rebalance([targets, calldatas] as const, options) as Promise<void>;
|
|
2858
3297
|
},
|
|
2859
3298
|
/**
|
|
2860
|
-
* Simulate
|
|
3299
|
+
* Simulate removeTrackedToken
|
|
2861
3300
|
* Returns gas estimate and result without sending transaction
|
|
2862
3301
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2863
3302
|
*/
|
|
2864
|
-
async
|
|
3303
|
+
async removeTrackedToken(token: `0x${string}`, options?: {
|
|
2865
3304
|
accessList?: import('viem').AccessList;
|
|
2866
3305
|
authorizationList?: import('viem').AuthorizationList;
|
|
2867
3306
|
chain?: import('viem').Chain | null;
|
|
@@ -2873,7 +3312,7 @@ export class Vault_json {
|
|
|
2873
3312
|
nonce?: number;
|
|
2874
3313
|
value?: bigint;
|
|
2875
3314
|
}): Promise<void> {
|
|
2876
|
-
return contract.simulate.
|
|
3315
|
+
return contract.simulate.removeTrackedToken([token] as const, options) as Promise<void>;
|
|
2877
3316
|
},
|
|
2878
3317
|
/**
|
|
2879
3318
|
* Simulate renounceRole
|
|
@@ -2894,6 +3333,63 @@ export class Vault_json {
|
|
|
2894
3333
|
}): Promise<void> {
|
|
2895
3334
|
return contract.simulate.renounceRole([role, callerConfirmation] as const, options) as Promise<void>;
|
|
2896
3335
|
},
|
|
3336
|
+
/**
|
|
3337
|
+
* Simulate requestDeposit
|
|
3338
|
+
* Returns gas estimate and result without sending transaction
|
|
3339
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3340
|
+
*/
|
|
3341
|
+
async requestDeposit(assets: bigint, options?: {
|
|
3342
|
+
accessList?: import('viem').AccessList;
|
|
3343
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3344
|
+
chain?: import('viem').Chain | null;
|
|
3345
|
+
dataSuffix?: `0x${string}`;
|
|
3346
|
+
gas?: bigint;
|
|
3347
|
+
gasPrice?: bigint;
|
|
3348
|
+
maxFeePerGas?: bigint;
|
|
3349
|
+
maxPriorityFeePerGas?: bigint;
|
|
3350
|
+
nonce?: number;
|
|
3351
|
+
value?: bigint;
|
|
3352
|
+
}): Promise<bigint> {
|
|
3353
|
+
return contract.simulate.requestDeposit([assets] as const, options) as Promise<bigint>;
|
|
3354
|
+
},
|
|
3355
|
+
/**
|
|
3356
|
+
* Simulate requestDepositFor
|
|
3357
|
+
* Returns gas estimate and result without sending transaction
|
|
3358
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3359
|
+
*/
|
|
3360
|
+
async requestDepositFor(assets: bigint, recipient: `0x${string}`, options?: {
|
|
3361
|
+
accessList?: import('viem').AccessList;
|
|
3362
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3363
|
+
chain?: import('viem').Chain | null;
|
|
3364
|
+
dataSuffix?: `0x${string}`;
|
|
3365
|
+
gas?: bigint;
|
|
3366
|
+
gasPrice?: bigint;
|
|
3367
|
+
maxFeePerGas?: bigint;
|
|
3368
|
+
maxPriorityFeePerGas?: bigint;
|
|
3369
|
+
nonce?: number;
|
|
3370
|
+
value?: bigint;
|
|
3371
|
+
}): Promise<bigint> {
|
|
3372
|
+
return contract.simulate.requestDepositFor([assets, recipient] as const, options) as Promise<bigint>;
|
|
3373
|
+
},
|
|
3374
|
+
/**
|
|
3375
|
+
* Simulate requestWithdraw
|
|
3376
|
+
* Returns gas estimate and result without sending transaction
|
|
3377
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3378
|
+
*/
|
|
3379
|
+
async requestWithdraw(sharesIn: bigint, options?: {
|
|
3380
|
+
accessList?: import('viem').AccessList;
|
|
3381
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
3382
|
+
chain?: import('viem').Chain | null;
|
|
3383
|
+
dataSuffix?: `0x${string}`;
|
|
3384
|
+
gas?: bigint;
|
|
3385
|
+
gasPrice?: bigint;
|
|
3386
|
+
maxFeePerGas?: bigint;
|
|
3387
|
+
maxPriorityFeePerGas?: bigint;
|
|
3388
|
+
nonce?: number;
|
|
3389
|
+
value?: bigint;
|
|
3390
|
+
}): Promise<bigint> {
|
|
3391
|
+
return contract.simulate.requestWithdraw([sharesIn] as const, options) as Promise<bigint>;
|
|
3392
|
+
},
|
|
2897
3393
|
/**
|
|
2898
3394
|
* Simulate revokeRole
|
|
2899
3395
|
* Returns gas estimate and result without sending transaction
|
|
@@ -2914,11 +3410,11 @@ export class Vault_json {
|
|
|
2914
3410
|
return contract.simulate.revokeRole([role, account] as const, options) as Promise<void>;
|
|
2915
3411
|
},
|
|
2916
3412
|
/**
|
|
2917
|
-
* Simulate
|
|
3413
|
+
* Simulate setFeeRecipient
|
|
2918
3414
|
* Returns gas estimate and result without sending transaction
|
|
2919
3415
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2920
3416
|
*/
|
|
2921
|
-
async
|
|
3417
|
+
async setFeeRecipient(recipient: `0x${string}`, options?: {
|
|
2922
3418
|
accessList?: import('viem').AccessList;
|
|
2923
3419
|
authorizationList?: import('viem').AuthorizationList;
|
|
2924
3420
|
chain?: import('viem').Chain | null;
|
|
@@ -2930,14 +3426,14 @@ export class Vault_json {
|
|
|
2930
3426
|
nonce?: number;
|
|
2931
3427
|
value?: bigint;
|
|
2932
3428
|
}): Promise<void> {
|
|
2933
|
-
return contract.simulate.
|
|
3429
|
+
return contract.simulate.setFeeRecipient([recipient] as const, options) as Promise<void>;
|
|
2934
3430
|
},
|
|
2935
3431
|
/**
|
|
2936
|
-
* Simulate
|
|
3432
|
+
* Simulate setMaxSettlementBatchSize
|
|
2937
3433
|
* Returns gas estimate and result without sending transaction
|
|
2938
3434
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2939
3435
|
*/
|
|
2940
|
-
async
|
|
3436
|
+
async setMaxSettlementBatchSize(size: bigint, options?: {
|
|
2941
3437
|
accessList?: import('viem').AccessList;
|
|
2942
3438
|
authorizationList?: import('viem').AuthorizationList;
|
|
2943
3439
|
chain?: import('viem').Chain | null;
|
|
@@ -2949,14 +3445,14 @@ export class Vault_json {
|
|
|
2949
3445
|
nonce?: number;
|
|
2950
3446
|
value?: bigint;
|
|
2951
3447
|
}): Promise<void> {
|
|
2952
|
-
return contract.simulate.
|
|
3448
|
+
return contract.simulate.setMaxSettlementBatchSize([size] as const, options) as Promise<void>;
|
|
2953
3449
|
},
|
|
2954
3450
|
/**
|
|
2955
|
-
* Simulate
|
|
3451
|
+
* Simulate setMinDepositAssets
|
|
2956
3452
|
* Returns gas estimate and result without sending transaction
|
|
2957
3453
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2958
3454
|
*/
|
|
2959
|
-
async
|
|
3455
|
+
async setMinDepositAssets(amount: bigint, options?: {
|
|
2960
3456
|
accessList?: import('viem').AccessList;
|
|
2961
3457
|
authorizationList?: import('viem').AuthorizationList;
|
|
2962
3458
|
chain?: import('viem').Chain | null;
|
|
@@ -2968,14 +3464,14 @@ export class Vault_json {
|
|
|
2968
3464
|
nonce?: number;
|
|
2969
3465
|
value?: bigint;
|
|
2970
3466
|
}): Promise<void> {
|
|
2971
|
-
return contract.simulate.
|
|
3467
|
+
return contract.simulate.setMinDepositAssets([amount] as const, options) as Promise<void>;
|
|
2972
3468
|
},
|
|
2973
3469
|
/**
|
|
2974
|
-
* Simulate
|
|
3470
|
+
* Simulate setOracle
|
|
2975
3471
|
* Returns gas estimate and result without sending transaction
|
|
2976
3472
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2977
3473
|
*/
|
|
2978
|
-
async
|
|
3474
|
+
async setOracle(_oracle: `0x${string}`, options?: {
|
|
2979
3475
|
accessList?: import('viem').AccessList;
|
|
2980
3476
|
authorizationList?: import('viem').AuthorizationList;
|
|
2981
3477
|
chain?: import('viem').Chain | null;
|
|
@@ -2987,14 +3483,14 @@ export class Vault_json {
|
|
|
2987
3483
|
nonce?: number;
|
|
2988
3484
|
value?: bigint;
|
|
2989
3485
|
}): Promise<void> {
|
|
2990
|
-
return contract.simulate.
|
|
3486
|
+
return contract.simulate.setOracle([_oracle] as const, options) as Promise<void>;
|
|
2991
3487
|
},
|
|
2992
3488
|
/**
|
|
2993
|
-
* Simulate
|
|
3489
|
+
* Simulate setPerformanceFee
|
|
2994
3490
|
* Returns gas estimate and result without sending transaction
|
|
2995
3491
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2996
3492
|
*/
|
|
2997
|
-
async
|
|
3493
|
+
async setPerformanceFee(feeBps: bigint, options?: {
|
|
2998
3494
|
accessList?: import('viem').AccessList;
|
|
2999
3495
|
authorizationList?: import('viem').AuthorizationList;
|
|
3000
3496
|
chain?: import('viem').Chain | null;
|
|
@@ -3006,14 +3502,14 @@ export class Vault_json {
|
|
|
3006
3502
|
nonce?: number;
|
|
3007
3503
|
value?: bigint;
|
|
3008
3504
|
}): Promise<void> {
|
|
3009
|
-
return contract.simulate.
|
|
3505
|
+
return contract.simulate.setPerformanceFee([feeBps] as const, options) as Promise<void>;
|
|
3010
3506
|
},
|
|
3011
3507
|
/**
|
|
3012
|
-
* Simulate
|
|
3508
|
+
* Simulate setSettlementFee
|
|
3013
3509
|
* Returns gas estimate and result without sending transaction
|
|
3014
3510
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3015
3511
|
*/
|
|
3016
|
-
async
|
|
3512
|
+
async setSettlementFee(fee: bigint, options?: {
|
|
3017
3513
|
accessList?: import('viem').AccessList;
|
|
3018
3514
|
authorizationList?: import('viem').AuthorizationList;
|
|
3019
3515
|
chain?: import('viem').Chain | null;
|
|
@@ -3025,14 +3521,14 @@ export class Vault_json {
|
|
|
3025
3521
|
nonce?: number;
|
|
3026
3522
|
value?: bigint;
|
|
3027
3523
|
}): Promise<void> {
|
|
3028
|
-
return contract.simulate.
|
|
3524
|
+
return contract.simulate.setSettlementFee([fee] as const, options) as Promise<void>;
|
|
3029
3525
|
},
|
|
3030
3526
|
/**
|
|
3031
|
-
* Simulate
|
|
3527
|
+
* Simulate setTargetAllowed
|
|
3032
3528
|
* Returns gas estimate and result without sending transaction
|
|
3033
3529
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3034
3530
|
*/
|
|
3035
|
-
async
|
|
3531
|
+
async setTargetAllowed(target: `0x${string}`, allowed: boolean, options?: {
|
|
3036
3532
|
accessList?: import('viem').AccessList;
|
|
3037
3533
|
authorizationList?: import('viem').AuthorizationList;
|
|
3038
3534
|
chain?: import('viem').Chain | null;
|
|
@@ -3044,14 +3540,14 @@ export class Vault_json {
|
|
|
3044
3540
|
nonce?: number;
|
|
3045
3541
|
value?: bigint;
|
|
3046
3542
|
}): Promise<void> {
|
|
3047
|
-
return contract.simulate.
|
|
3543
|
+
return contract.simulate.setTargetAllowed([target, allowed] as const, options) as Promise<void>;
|
|
3048
3544
|
},
|
|
3049
3545
|
/**
|
|
3050
|
-
* Simulate
|
|
3546
|
+
* Simulate settle
|
|
3051
3547
|
* Returns gas estimate and result without sending transaction
|
|
3052
3548
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3053
3549
|
*/
|
|
3054
|
-
async
|
|
3550
|
+
async settle(tokens: `0x${string}`[], prices: bigint[], options?: {
|
|
3055
3551
|
accessList?: import('viem').AccessList;
|
|
3056
3552
|
authorizationList?: import('viem').AuthorizationList;
|
|
3057
3553
|
chain?: import('viem').Chain | null;
|
|
@@ -3063,14 +3559,14 @@ export class Vault_json {
|
|
|
3063
3559
|
nonce?: number;
|
|
3064
3560
|
value?: bigint;
|
|
3065
3561
|
}): Promise<void> {
|
|
3066
|
-
return contract.simulate.
|
|
3562
|
+
return contract.simulate.settle([tokens, prices] as const, options) as Promise<void>;
|
|
3067
3563
|
},
|
|
3068
3564
|
/**
|
|
3069
|
-
* Simulate
|
|
3565
|
+
* Simulate unpause
|
|
3070
3566
|
* Returns gas estimate and result without sending transaction
|
|
3071
3567
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3072
3568
|
*/
|
|
3073
|
-
async
|
|
3569
|
+
async unpause(options?: {
|
|
3074
3570
|
accessList?: import('viem').AccessList;
|
|
3075
3571
|
authorizationList?: import('viem').AuthorizationList;
|
|
3076
3572
|
chain?: import('viem').Chain | null;
|
|
@@ -3081,8 +3577,8 @@ export class Vault_json {
|
|
|
3081
3577
|
maxPriorityFeePerGas?: bigint;
|
|
3082
3578
|
nonce?: number;
|
|
3083
3579
|
value?: bigint;
|
|
3084
|
-
}): Promise<
|
|
3085
|
-
return contract.simulate.
|
|
3580
|
+
}): Promise<void> {
|
|
3581
|
+
return contract.simulate.unpause(options) as Promise<void>;
|
|
3086
3582
|
}
|
|
3087
3583
|
};
|
|
3088
3584
|
}
|
|
@@ -3102,16 +3598,35 @@ export class Vault_json {
|
|
|
3102
3598
|
get watch() {
|
|
3103
3599
|
return {
|
|
3104
3600
|
/**
|
|
3105
|
-
* Watch
|
|
3601
|
+
* Watch DepositAutoRefunded events
|
|
3602
|
+
* @param callback Function to call when event is emitted
|
|
3603
|
+
* @param filter Optional filter for indexed parameters
|
|
3604
|
+
* @returns Unwatch function to stop listening
|
|
3605
|
+
*/
|
|
3606
|
+
DepositAutoRefunded: (callback: (event: { depositId: bigint; owner: `0x${string}`; assets: bigint }) => void, filter?: { depositId: bigint; owner: `0x${string}` }) => {
|
|
3607
|
+
return this.publicClient.watchContractEvent({
|
|
3608
|
+
address: this.contractAddress,
|
|
3609
|
+
abi: Vault_jsonAbi,
|
|
3610
|
+
eventName: 'DepositAutoRefunded',
|
|
3611
|
+
args: filter,
|
|
3612
|
+
onLogs: (logs: any[]) => {
|
|
3613
|
+
logs.forEach((log: any) => {
|
|
3614
|
+
callback(log.args as any);
|
|
3615
|
+
});
|
|
3616
|
+
},
|
|
3617
|
+
}) as () => void;
|
|
3618
|
+
},
|
|
3619
|
+
/**
|
|
3620
|
+
* Watch DepositCancelled events
|
|
3106
3621
|
* @param callback Function to call when event is emitted
|
|
3107
3622
|
* @param filter Optional filter for indexed parameters
|
|
3108
3623
|
* @returns Unwatch function to stop listening
|
|
3109
3624
|
*/
|
|
3110
|
-
|
|
3625
|
+
DepositCancelled: (callback: (event: { depositId: bigint; owner: `0x${string}`; assets: bigint }) => void, filter?: { depositId: bigint; owner: `0x${string}` }) => {
|
|
3111
3626
|
return this.publicClient.watchContractEvent({
|
|
3112
3627
|
address: this.contractAddress,
|
|
3113
3628
|
abi: Vault_jsonAbi,
|
|
3114
|
-
eventName: '
|
|
3629
|
+
eventName: 'DepositCancelled',
|
|
3115
3630
|
args: filter,
|
|
3116
3631
|
onLogs: (logs: any[]) => {
|
|
3117
3632
|
logs.forEach((log: any) => {
|
|
@@ -3121,16 +3636,16 @@ export class Vault_json {
|
|
|
3121
3636
|
}) as () => void;
|
|
3122
3637
|
},
|
|
3123
3638
|
/**
|
|
3124
|
-
* Watch
|
|
3639
|
+
* Watch DepositRequested events
|
|
3125
3640
|
* @param callback Function to call when event is emitted
|
|
3126
3641
|
* @param filter Optional filter for indexed parameters
|
|
3127
3642
|
* @returns Unwatch function to stop listening
|
|
3128
3643
|
*/
|
|
3129
|
-
|
|
3644
|
+
DepositRequested: (callback: (event: { depositId: bigint; owner: `0x${string}`; assets: bigint }) => void, filter?: { depositId: bigint; owner: `0x${string}` }) => {
|
|
3130
3645
|
return this.publicClient.watchContractEvent({
|
|
3131
3646
|
address: this.contractAddress,
|
|
3132
3647
|
abi: Vault_jsonAbi,
|
|
3133
|
-
eventName: '
|
|
3648
|
+
eventName: 'DepositRequested',
|
|
3134
3649
|
args: filter,
|
|
3135
3650
|
onLogs: (logs: any[]) => {
|
|
3136
3651
|
logs.forEach((log: any) => {
|
|
@@ -3140,16 +3655,16 @@ export class Vault_json {
|
|
|
3140
3655
|
}) as () => void;
|
|
3141
3656
|
},
|
|
3142
3657
|
/**
|
|
3143
|
-
* Watch
|
|
3658
|
+
* Watch DepositSettled events
|
|
3144
3659
|
* @param callback Function to call when event is emitted
|
|
3145
3660
|
* @param filter Optional filter for indexed parameters
|
|
3146
3661
|
* @returns Unwatch function to stop listening
|
|
3147
3662
|
*/
|
|
3148
|
-
|
|
3663
|
+
DepositSettled: (callback: (event: { depositId: bigint; owner: `0x${string}`; netAssets: bigint; shares: bigint }) => void, filter?: { depositId: bigint; owner: `0x${string}` }) => {
|
|
3149
3664
|
return this.publicClient.watchContractEvent({
|
|
3150
3665
|
address: this.contractAddress,
|
|
3151
3666
|
abi: Vault_jsonAbi,
|
|
3152
|
-
eventName: '
|
|
3667
|
+
eventName: 'DepositSettled',
|
|
3153
3668
|
args: filter,
|
|
3154
3669
|
onLogs: (logs: any[]) => {
|
|
3155
3670
|
logs.forEach((log: any) => {
|
|
@@ -3159,16 +3674,16 @@ export class Vault_json {
|
|
|
3159
3674
|
}) as () => void;
|
|
3160
3675
|
},
|
|
3161
3676
|
/**
|
|
3162
|
-
* Watch
|
|
3677
|
+
* Watch MaxSettlementBatchSizeSet events
|
|
3163
3678
|
* @param callback Function to call when event is emitted
|
|
3164
3679
|
* @param filter Optional filter for indexed parameters
|
|
3165
3680
|
* @returns Unwatch function to stop listening
|
|
3166
3681
|
*/
|
|
3167
|
-
|
|
3682
|
+
MaxSettlementBatchSizeSet: (callback: (event: { size: bigint }) => void) => {
|
|
3168
3683
|
return this.publicClient.watchContractEvent({
|
|
3169
3684
|
address: this.contractAddress,
|
|
3170
3685
|
abi: Vault_jsonAbi,
|
|
3171
|
-
eventName: '
|
|
3686
|
+
eventName: 'MaxSettlementBatchSizeSet',
|
|
3172
3687
|
|
|
3173
3688
|
onLogs: (logs: any[]) => {
|
|
3174
3689
|
logs.forEach((log: any) => {
|
|
@@ -3178,16 +3693,16 @@ export class Vault_json {
|
|
|
3178
3693
|
}) as () => void;
|
|
3179
3694
|
},
|
|
3180
3695
|
/**
|
|
3181
|
-
* Watch
|
|
3696
|
+
* Watch MinDepositAssetsSet events
|
|
3182
3697
|
* @param callback Function to call when event is emitted
|
|
3183
3698
|
* @param filter Optional filter for indexed parameters
|
|
3184
3699
|
* @returns Unwatch function to stop listening
|
|
3185
3700
|
*/
|
|
3186
|
-
|
|
3701
|
+
MinDepositAssetsSet: (callback: (event: { amount: bigint }) => void) => {
|
|
3187
3702
|
return this.publicClient.watchContractEvent({
|
|
3188
3703
|
address: this.contractAddress,
|
|
3189
3704
|
abi: Vault_jsonAbi,
|
|
3190
|
-
eventName: '
|
|
3705
|
+
eventName: 'MinDepositAssetsSet',
|
|
3191
3706
|
|
|
3192
3707
|
onLogs: (logs: any[]) => {
|
|
3193
3708
|
logs.forEach((log: any) => {
|
|
@@ -3197,16 +3712,16 @@ export class Vault_json {
|
|
|
3197
3712
|
}) as () => void;
|
|
3198
3713
|
},
|
|
3199
3714
|
/**
|
|
3200
|
-
* Watch
|
|
3715
|
+
* Watch OracleSet events
|
|
3201
3716
|
* @param callback Function to call when event is emitted
|
|
3202
3717
|
* @param filter Optional filter for indexed parameters
|
|
3203
3718
|
* @returns Unwatch function to stop listening
|
|
3204
3719
|
*/
|
|
3205
|
-
|
|
3720
|
+
OracleSet: (callback: (event: { oracle: `0x${string}` }) => void, filter?: { oracle: `0x${string}` }) => {
|
|
3206
3721
|
return this.publicClient.watchContractEvent({
|
|
3207
3722
|
address: this.contractAddress,
|
|
3208
3723
|
abi: Vault_jsonAbi,
|
|
3209
|
-
eventName: '
|
|
3724
|
+
eventName: 'OracleSet',
|
|
3210
3725
|
args: filter,
|
|
3211
3726
|
onLogs: (logs: any[]) => {
|
|
3212
3727
|
logs.forEach((log: any) => {
|
|
@@ -3215,6 +3730,63 @@ export class Vault_json {
|
|
|
3215
3730
|
},
|
|
3216
3731
|
}) as () => void;
|
|
3217
3732
|
},
|
|
3733
|
+
/**
|
|
3734
|
+
* Watch Paused events
|
|
3735
|
+
* @param callback Function to call when event is emitted
|
|
3736
|
+
* @param filter Optional filter for indexed parameters
|
|
3737
|
+
* @returns Unwatch function to stop listening
|
|
3738
|
+
*/
|
|
3739
|
+
Paused: (callback: (event: { account: `0x${string}` }) => void) => {
|
|
3740
|
+
return this.publicClient.watchContractEvent({
|
|
3741
|
+
address: this.contractAddress,
|
|
3742
|
+
abi: Vault_jsonAbi,
|
|
3743
|
+
eventName: 'Paused',
|
|
3744
|
+
|
|
3745
|
+
onLogs: (logs: any[]) => {
|
|
3746
|
+
logs.forEach((log: any) => {
|
|
3747
|
+
callback(log.args as any);
|
|
3748
|
+
});
|
|
3749
|
+
},
|
|
3750
|
+
}) as () => void;
|
|
3751
|
+
},
|
|
3752
|
+
/**
|
|
3753
|
+
* Watch PerformanceFeeSet events
|
|
3754
|
+
* @param callback Function to call when event is emitted
|
|
3755
|
+
* @param filter Optional filter for indexed parameters
|
|
3756
|
+
* @returns Unwatch function to stop listening
|
|
3757
|
+
*/
|
|
3758
|
+
PerformanceFeeSet: (callback: (event: { feeBps: bigint }) => void) => {
|
|
3759
|
+
return this.publicClient.watchContractEvent({
|
|
3760
|
+
address: this.contractAddress,
|
|
3761
|
+
abi: Vault_jsonAbi,
|
|
3762
|
+
eventName: 'PerformanceFeeSet',
|
|
3763
|
+
|
|
3764
|
+
onLogs: (logs: any[]) => {
|
|
3765
|
+
logs.forEach((log: any) => {
|
|
3766
|
+
callback(log.args as any);
|
|
3767
|
+
});
|
|
3768
|
+
},
|
|
3769
|
+
}) as () => void;
|
|
3770
|
+
},
|
|
3771
|
+
/**
|
|
3772
|
+
* Watch Rebalanced events
|
|
3773
|
+
* @param callback Function to call when event is emitted
|
|
3774
|
+
* @param filter Optional filter for indexed parameters
|
|
3775
|
+
* @returns Unwatch function to stop listening
|
|
3776
|
+
*/
|
|
3777
|
+
Rebalanced: (callback: (event: { callCount: bigint; navBefore: bigint; navAfter: bigint }) => void) => {
|
|
3778
|
+
return this.publicClient.watchContractEvent({
|
|
3779
|
+
address: this.contractAddress,
|
|
3780
|
+
abi: Vault_jsonAbi,
|
|
3781
|
+
eventName: 'Rebalanced',
|
|
3782
|
+
|
|
3783
|
+
onLogs: (logs: any[]) => {
|
|
3784
|
+
logs.forEach((log: any) => {
|
|
3785
|
+
callback(log.args as any);
|
|
3786
|
+
});
|
|
3787
|
+
},
|
|
3788
|
+
}) as () => void;
|
|
3789
|
+
},
|
|
3218
3790
|
/**
|
|
3219
3791
|
* Watch RoleAdminChanged events
|
|
3220
3792
|
* @param callback Function to call when event is emitted
|
|
@@ -3273,17 +3845,17 @@ export class Vault_json {
|
|
|
3273
3845
|
}) as () => void;
|
|
3274
3846
|
},
|
|
3275
3847
|
/**
|
|
3276
|
-
* Watch
|
|
3848
|
+
* Watch Settled events
|
|
3277
3849
|
* @param callback Function to call when event is emitted
|
|
3278
3850
|
* @param filter Optional filter for indexed parameters
|
|
3279
3851
|
* @returns Unwatch function to stop listening
|
|
3280
3852
|
*/
|
|
3281
|
-
|
|
3853
|
+
Settled: (callback: (event: { oraclePriceCount: bigint; depositsSettled: bigint; depositsRefunded: bigint; withdrawalsProcessed: bigint }) => void) => {
|
|
3282
3854
|
return this.publicClient.watchContractEvent({
|
|
3283
3855
|
address: this.contractAddress,
|
|
3284
3856
|
abi: Vault_jsonAbi,
|
|
3285
|
-
eventName: '
|
|
3286
|
-
|
|
3857
|
+
eventName: 'Settled',
|
|
3858
|
+
|
|
3287
3859
|
onLogs: (logs: any[]) => {
|
|
3288
3860
|
logs.forEach((log: any) => {
|
|
3289
3861
|
callback(log.args as any);
|
|
@@ -3292,16 +3864,16 @@ export class Vault_json {
|
|
|
3292
3864
|
}) as () => void;
|
|
3293
3865
|
},
|
|
3294
3866
|
/**
|
|
3295
|
-
* Watch
|
|
3867
|
+
* Watch SettlementFeeSet events
|
|
3296
3868
|
* @param callback Function to call when event is emitted
|
|
3297
3869
|
* @param filter Optional filter for indexed parameters
|
|
3298
3870
|
* @returns Unwatch function to stop listening
|
|
3299
3871
|
*/
|
|
3300
|
-
|
|
3872
|
+
SettlementFeeSet: (callback: (event: { fee: bigint }) => void) => {
|
|
3301
3873
|
return this.publicClient.watchContractEvent({
|
|
3302
3874
|
address: this.contractAddress,
|
|
3303
3875
|
abi: Vault_jsonAbi,
|
|
3304
|
-
eventName: '
|
|
3876
|
+
eventName: 'SettlementFeeSet',
|
|
3305
3877
|
|
|
3306
3878
|
onLogs: (logs: any[]) => {
|
|
3307
3879
|
logs.forEach((log: any) => {
|
|
@@ -3311,17 +3883,36 @@ export class Vault_json {
|
|
|
3311
3883
|
}) as () => void;
|
|
3312
3884
|
},
|
|
3313
3885
|
/**
|
|
3314
|
-
* Watch
|
|
3886
|
+
* Watch TargetAllowed events
|
|
3315
3887
|
* @param callback Function to call when event is emitted
|
|
3316
3888
|
* @param filter Optional filter for indexed parameters
|
|
3317
3889
|
* @returns Unwatch function to stop listening
|
|
3318
3890
|
*/
|
|
3319
|
-
|
|
3891
|
+
TargetAllowed: (callback: (event: { target: `0x${string}`; allowed: boolean }) => void, filter?: { target: `0x${string}` }) => {
|
|
3320
3892
|
return this.publicClient.watchContractEvent({
|
|
3321
3893
|
address: this.contractAddress,
|
|
3322
3894
|
abi: Vault_jsonAbi,
|
|
3323
|
-
eventName: '
|
|
3324
|
-
|
|
3895
|
+
eventName: 'TargetAllowed',
|
|
3896
|
+
args: filter,
|
|
3897
|
+
onLogs: (logs: any[]) => {
|
|
3898
|
+
logs.forEach((log: any) => {
|
|
3899
|
+
callback(log.args as any);
|
|
3900
|
+
});
|
|
3901
|
+
},
|
|
3902
|
+
}) as () => void;
|
|
3903
|
+
},
|
|
3904
|
+
/**
|
|
3905
|
+
* Watch TrackedTokenAdded events
|
|
3906
|
+
* @param callback Function to call when event is emitted
|
|
3907
|
+
* @param filter Optional filter for indexed parameters
|
|
3908
|
+
* @returns Unwatch function to stop listening
|
|
3909
|
+
*/
|
|
3910
|
+
TrackedTokenAdded: (callback: (event: { token: `0x${string}` }) => void, filter?: { token: `0x${string}` }) => {
|
|
3911
|
+
return this.publicClient.watchContractEvent({
|
|
3912
|
+
address: this.contractAddress,
|
|
3913
|
+
abi: Vault_jsonAbi,
|
|
3914
|
+
eventName: 'TrackedTokenAdded',
|
|
3915
|
+
args: filter,
|
|
3325
3916
|
onLogs: (logs: any[]) => {
|
|
3326
3917
|
logs.forEach((log: any) => {
|
|
3327
3918
|
callback(log.args as any);
|
|
@@ -3330,16 +3921,16 @@ export class Vault_json {
|
|
|
3330
3921
|
}) as () => void;
|
|
3331
3922
|
},
|
|
3332
3923
|
/**
|
|
3333
|
-
* Watch
|
|
3924
|
+
* Watch TrackedTokenRemoved events
|
|
3334
3925
|
* @param callback Function to call when event is emitted
|
|
3335
3926
|
* @param filter Optional filter for indexed parameters
|
|
3336
3927
|
* @returns Unwatch function to stop listening
|
|
3337
3928
|
*/
|
|
3338
|
-
|
|
3929
|
+
TrackedTokenRemoved: (callback: (event: { token: `0x${string}` }) => void, filter?: { token: `0x${string}` }) => {
|
|
3339
3930
|
return this.publicClient.watchContractEvent({
|
|
3340
3931
|
address: this.contractAddress,
|
|
3341
3932
|
abi: Vault_jsonAbi,
|
|
3342
|
-
eventName: '
|
|
3933
|
+
eventName: 'TrackedTokenRemoved',
|
|
3343
3934
|
args: filter,
|
|
3344
3935
|
onLogs: (logs: any[]) => {
|
|
3345
3936
|
logs.forEach((log: any) => {
|
|
@@ -3349,16 +3940,16 @@ export class Vault_json {
|
|
|
3349
3940
|
}) as () => void;
|
|
3350
3941
|
},
|
|
3351
3942
|
/**
|
|
3352
|
-
* Watch
|
|
3943
|
+
* Watch Unpaused events
|
|
3353
3944
|
* @param callback Function to call when event is emitted
|
|
3354
3945
|
* @param filter Optional filter for indexed parameters
|
|
3355
3946
|
* @returns Unwatch function to stop listening
|
|
3356
3947
|
*/
|
|
3357
|
-
|
|
3948
|
+
Unpaused: (callback: (event: { account: `0x${string}` }) => void) => {
|
|
3358
3949
|
return this.publicClient.watchContractEvent({
|
|
3359
3950
|
address: this.contractAddress,
|
|
3360
3951
|
abi: Vault_jsonAbi,
|
|
3361
|
-
eventName: '
|
|
3952
|
+
eventName: 'Unpaused',
|
|
3362
3953
|
|
|
3363
3954
|
onLogs: (logs: any[]) => {
|
|
3364
3955
|
logs.forEach((log: any) => {
|
|
@@ -3368,16 +3959,54 @@ export class Vault_json {
|
|
|
3368
3959
|
}) as () => void;
|
|
3369
3960
|
},
|
|
3370
3961
|
/**
|
|
3371
|
-
* Watch
|
|
3962
|
+
* Watch WithdrawCancelled events
|
|
3963
|
+
* @param callback Function to call when event is emitted
|
|
3964
|
+
* @param filter Optional filter for indexed parameters
|
|
3965
|
+
* @returns Unwatch function to stop listening
|
|
3966
|
+
*/
|
|
3967
|
+
WithdrawCancelled: (callback: (event: { requestId: bigint; owner: `0x${string}`; shares: bigint }) => void, filter?: { requestId: bigint; owner: `0x${string}` }) => {
|
|
3968
|
+
return this.publicClient.watchContractEvent({
|
|
3969
|
+
address: this.contractAddress,
|
|
3970
|
+
abi: Vault_jsonAbi,
|
|
3971
|
+
eventName: 'WithdrawCancelled',
|
|
3972
|
+
args: filter,
|
|
3973
|
+
onLogs: (logs: any[]) => {
|
|
3974
|
+
logs.forEach((log: any) => {
|
|
3975
|
+
callback(log.args as any);
|
|
3976
|
+
});
|
|
3977
|
+
},
|
|
3978
|
+
}) as () => void;
|
|
3979
|
+
},
|
|
3980
|
+
/**
|
|
3981
|
+
* Watch WithdrawClaimed events
|
|
3982
|
+
* @param callback Function to call when event is emitted
|
|
3983
|
+
* @param filter Optional filter for indexed parameters
|
|
3984
|
+
* @returns Unwatch function to stop listening
|
|
3985
|
+
*/
|
|
3986
|
+
WithdrawClaimed: (callback: (event: { requestId: bigint; owner: `0x${string}`; shares: bigint; assetsPaid: bigint; fee: bigint }) => void, filter?: { requestId: bigint; owner: `0x${string}` }) => {
|
|
3987
|
+
return this.publicClient.watchContractEvent({
|
|
3988
|
+
address: this.contractAddress,
|
|
3989
|
+
abi: Vault_jsonAbi,
|
|
3990
|
+
eventName: 'WithdrawClaimed',
|
|
3991
|
+
args: filter,
|
|
3992
|
+
onLogs: (logs: any[]) => {
|
|
3993
|
+
logs.forEach((log: any) => {
|
|
3994
|
+
callback(log.args as any);
|
|
3995
|
+
});
|
|
3996
|
+
},
|
|
3997
|
+
}) as () => void;
|
|
3998
|
+
},
|
|
3999
|
+
/**
|
|
4000
|
+
* Watch WithdrawRequested events
|
|
3372
4001
|
* @param callback Function to call when event is emitted
|
|
3373
4002
|
* @param filter Optional filter for indexed parameters
|
|
3374
4003
|
* @returns Unwatch function to stop listening
|
|
3375
4004
|
*/
|
|
3376
|
-
|
|
4005
|
+
WithdrawRequested: (callback: (event: { requestId: bigint; owner: `0x${string}`; shares: bigint; claimableAt: bigint }) => void, filter?: { requestId: bigint; owner: `0x${string}` }) => {
|
|
3377
4006
|
return this.publicClient.watchContractEvent({
|
|
3378
4007
|
address: this.contractAddress,
|
|
3379
4008
|
abi: Vault_jsonAbi,
|
|
3380
|
-
eventName: '
|
|
4009
|
+
eventName: 'WithdrawRequested',
|
|
3381
4010
|
args: filter,
|
|
3382
4011
|
onLogs: (logs: any[]) => {
|
|
3383
4012
|
logs.forEach((log: any) => {
|
|
@@ -3387,16 +4016,16 @@ export class Vault_json {
|
|
|
3387
4016
|
}) as () => void;
|
|
3388
4017
|
},
|
|
3389
4018
|
/**
|
|
3390
|
-
* Watch
|
|
4019
|
+
* Watch WithdrawalSettled events
|
|
3391
4020
|
* @param callback Function to call when event is emitted
|
|
3392
4021
|
* @param filter Optional filter for indexed parameters
|
|
3393
4022
|
* @returns Unwatch function to stop listening
|
|
3394
4023
|
*/
|
|
3395
|
-
|
|
4024
|
+
WithdrawalSettled: (callback: (event: { requestId: bigint; owner: `0x${string}`; shares: bigint; assetsOut: bigint; fee: bigint }) => void, filter?: { requestId: bigint; owner: `0x${string}` }) => {
|
|
3396
4025
|
return this.publicClient.watchContractEvent({
|
|
3397
4026
|
address: this.contractAddress,
|
|
3398
4027
|
abi: Vault_jsonAbi,
|
|
3399
|
-
eventName: '
|
|
4028
|
+
eventName: 'WithdrawalSettled',
|
|
3400
4029
|
args: filter,
|
|
3401
4030
|
onLogs: (logs: any[]) => {
|
|
3402
4031
|
logs.forEach((log: any) => {
|