@gitmyabi/vault 1.0.2 → 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 +3 -3
- package/contracts/Vault_json.d.ts +1904 -985
- package/contracts/Vault_json.js +2230 -1085
- package/contracts/Vault_json.ts +2512 -1209
- package/package.json +3 -3
package/contracts/Vault_json.js
CHANGED
|
@@ -11,274 +11,368 @@ exports.Vault_jsonAbi = [
|
|
|
11
11
|
{
|
|
12
12
|
"inputs": [
|
|
13
13
|
{
|
|
14
|
-
"internalType": "contract
|
|
15
|
-
"name": "
|
|
14
|
+
"internalType": "contract IERC20",
|
|
15
|
+
"name": "_asset",
|
|
16
|
+
"type": "address"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "contract IOracle",
|
|
20
|
+
"name": "_oracle",
|
|
21
|
+
"type": "address"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "address",
|
|
25
|
+
"name": "admin",
|
|
26
|
+
"type": "address"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"internalType": "address",
|
|
30
|
+
"name": "manager",
|
|
31
|
+
"type": "address"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"internalType": "address",
|
|
35
|
+
"name": "bot",
|
|
16
36
|
"type": "address"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"internalType": "address",
|
|
40
|
+
"name": "guardian",
|
|
41
|
+
"type": "address"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"internalType": "address",
|
|
45
|
+
"name": "_feeRecipient",
|
|
46
|
+
"type": "address"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"internalType": "uint256",
|
|
50
|
+
"name": "_performanceFee",
|
|
51
|
+
"type": "uint256"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"internalType": "uint256",
|
|
55
|
+
"name": "_minDepositAssets",
|
|
56
|
+
"type": "uint256"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"internalType": "uint256",
|
|
60
|
+
"name": "_maxSettlementBatchSize",
|
|
61
|
+
"type": "uint256"
|
|
17
62
|
}
|
|
18
63
|
],
|
|
19
64
|
"stateMutability": "nonpayable",
|
|
20
65
|
"type": "constructor"
|
|
21
66
|
},
|
|
22
67
|
{
|
|
23
|
-
"
|
|
68
|
+
"inputs": [],
|
|
69
|
+
"name": "AccessControlBadConfirmation",
|
|
70
|
+
"type": "error"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
24
73
|
"inputs": [
|
|
25
74
|
{
|
|
26
|
-
"
|
|
75
|
+
"internalType": "address",
|
|
76
|
+
"name": "account",
|
|
77
|
+
"type": "address"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
27
80
|
"internalType": "bytes32",
|
|
28
|
-
"name": "
|
|
81
|
+
"name": "neededRole",
|
|
29
82
|
"type": "bytes32"
|
|
30
|
-
}
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"name": "AccessControlUnauthorizedAccount",
|
|
86
|
+
"type": "error"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"inputs": [
|
|
31
90
|
{
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"type": "uint256"
|
|
91
|
+
"internalType": "address",
|
|
92
|
+
"name": "target",
|
|
93
|
+
"type": "address"
|
|
36
94
|
}
|
|
37
95
|
],
|
|
38
|
-
"name": "
|
|
39
|
-
"type": "
|
|
96
|
+
"name": "AddressEmptyCode",
|
|
97
|
+
"type": "error"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"inputs": [],
|
|
101
|
+
"name": "AlreadyTracked",
|
|
102
|
+
"type": "error"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"inputs": [],
|
|
106
|
+
"name": "DepositTooSmall",
|
|
107
|
+
"type": "error"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"inputs": [],
|
|
111
|
+
"name": "EnforcedPause",
|
|
112
|
+
"type": "error"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"inputs": [],
|
|
116
|
+
"name": "ExpectedPause",
|
|
117
|
+
"type": "error"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"inputs": [],
|
|
121
|
+
"name": "FailedCall",
|
|
122
|
+
"type": "error"
|
|
40
123
|
},
|
|
41
124
|
{
|
|
42
|
-
"anonymous": false,
|
|
43
125
|
"inputs": [
|
|
44
126
|
{
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"type": "bytes32"
|
|
127
|
+
"internalType": "uint256",
|
|
128
|
+
"name": "balance",
|
|
129
|
+
"type": "uint256"
|
|
49
130
|
},
|
|
50
131
|
{
|
|
51
|
-
"indexed": false,
|
|
52
132
|
"internalType": "uint256",
|
|
53
|
-
"name": "
|
|
133
|
+
"name": "needed",
|
|
54
134
|
"type": "uint256"
|
|
55
|
-
}
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"name": "InsufficientBalance",
|
|
138
|
+
"type": "error"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"inputs": [],
|
|
142
|
+
"name": "InsufficientLiquidity",
|
|
143
|
+
"type": "error"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"inputs": [],
|
|
147
|
+
"name": "InsufficientShares",
|
|
148
|
+
"type": "error"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"inputs": [],
|
|
152
|
+
"name": "InvalidBatchSize",
|
|
153
|
+
"type": "error"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"inputs": [],
|
|
157
|
+
"name": "InvalidFee",
|
|
158
|
+
"type": "error"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"inputs": [],
|
|
162
|
+
"name": "NotRequestOwner",
|
|
163
|
+
"type": "error"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"inputs": [],
|
|
167
|
+
"name": "NotTracked",
|
|
168
|
+
"type": "error"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"inputs": [],
|
|
172
|
+
"name": "OnlyHPT",
|
|
173
|
+
"type": "error"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"inputs": [],
|
|
177
|
+
"name": "ReentrancyGuardReentrantCall",
|
|
178
|
+
"type": "error"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"inputs": [],
|
|
182
|
+
"name": "RequestNotOpen",
|
|
183
|
+
"type": "error"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"inputs": [
|
|
56
187
|
{
|
|
57
|
-
"indexed": false,
|
|
58
188
|
"internalType": "address",
|
|
59
189
|
"name": "token",
|
|
60
190
|
"type": "address"
|
|
61
191
|
}
|
|
62
192
|
],
|
|
63
|
-
"name": "
|
|
64
|
-
"type": "
|
|
193
|
+
"name": "SafeERC20FailedOperation",
|
|
194
|
+
"type": "error"
|
|
65
195
|
},
|
|
66
196
|
{
|
|
67
|
-
"anonymous": false,
|
|
68
197
|
"inputs": [
|
|
69
198
|
{
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"type": "bool"
|
|
199
|
+
"internalType": "address",
|
|
200
|
+
"name": "target",
|
|
201
|
+
"type": "address"
|
|
74
202
|
}
|
|
75
203
|
],
|
|
76
|
-
"name": "
|
|
77
|
-
"type": "
|
|
204
|
+
"name": "TargetNotAllowed",
|
|
205
|
+
"type": "error"
|
|
78
206
|
},
|
|
79
207
|
{
|
|
80
|
-
"anonymous": false,
|
|
81
208
|
"inputs": [
|
|
82
209
|
{
|
|
83
|
-
"indexed": true,
|
|
84
|
-
"internalType": "address payable",
|
|
85
|
-
"name": "multicallAddress",
|
|
86
|
-
"type": "address"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"indexed": false,
|
|
90
|
-
"internalType": "uint256",
|
|
91
|
-
"name": "amount",
|
|
92
|
-
"type": "uint256"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"indexed": true,
|
|
96
210
|
"internalType": "address",
|
|
97
211
|
"name": "token",
|
|
98
212
|
"type": "address"
|
|
99
213
|
},
|
|
100
214
|
{
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"type": "bytes"
|
|
215
|
+
"internalType": "uint256",
|
|
216
|
+
"name": "balance",
|
|
217
|
+
"type": "uint256"
|
|
105
218
|
}
|
|
106
219
|
],
|
|
107
|
-
"name": "
|
|
108
|
-
"type": "
|
|
220
|
+
"name": "TrackedTokenHasBalance",
|
|
221
|
+
"type": "error"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"inputs": [],
|
|
225
|
+
"name": "WithdrawNotReady",
|
|
226
|
+
"type": "error"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"inputs": [],
|
|
230
|
+
"name": "ZeroAmount",
|
|
231
|
+
"type": "error"
|
|
109
232
|
},
|
|
110
233
|
{
|
|
111
234
|
"anonymous": false,
|
|
112
235
|
"inputs": [
|
|
236
|
+
{
|
|
237
|
+
"indexed": true,
|
|
238
|
+
"internalType": "uint256",
|
|
239
|
+
"name": "depositId",
|
|
240
|
+
"type": "uint256"
|
|
241
|
+
},
|
|
113
242
|
{
|
|
114
243
|
"indexed": true,
|
|
115
244
|
"internalType": "address",
|
|
116
|
-
"name": "
|
|
245
|
+
"name": "owner",
|
|
117
246
|
"type": "address"
|
|
118
247
|
},
|
|
119
248
|
{
|
|
120
249
|
"indexed": false,
|
|
121
250
|
"internalType": "uint256",
|
|
122
|
-
"name": "
|
|
251
|
+
"name": "assets",
|
|
123
252
|
"type": "uint256"
|
|
124
253
|
}
|
|
125
254
|
],
|
|
126
|
-
"name": "
|
|
255
|
+
"name": "DepositAutoRefunded",
|
|
127
256
|
"type": "event"
|
|
128
257
|
},
|
|
129
258
|
{
|
|
130
259
|
"anonymous": false,
|
|
131
260
|
"inputs": [
|
|
261
|
+
{
|
|
262
|
+
"indexed": true,
|
|
263
|
+
"internalType": "uint256",
|
|
264
|
+
"name": "depositId",
|
|
265
|
+
"type": "uint256"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"indexed": true,
|
|
269
|
+
"internalType": "address",
|
|
270
|
+
"name": "owner",
|
|
271
|
+
"type": "address"
|
|
272
|
+
},
|
|
132
273
|
{
|
|
133
274
|
"indexed": false,
|
|
134
|
-
"internalType": "
|
|
135
|
-
"name": "
|
|
136
|
-
"type": "
|
|
275
|
+
"internalType": "uint256",
|
|
276
|
+
"name": "assets",
|
|
277
|
+
"type": "uint256"
|
|
137
278
|
}
|
|
138
279
|
],
|
|
139
|
-
"name": "
|
|
280
|
+
"name": "DepositCancelled",
|
|
140
281
|
"type": "event"
|
|
141
282
|
},
|
|
142
283
|
{
|
|
143
284
|
"anonymous": false,
|
|
144
285
|
"inputs": [
|
|
145
286
|
{
|
|
146
|
-
"indexed":
|
|
147
|
-
"internalType": "uint32",
|
|
148
|
-
"name": "dstChain",
|
|
149
|
-
"type": "uint32"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"indexed": false,
|
|
153
|
-
"internalType": "bytes",
|
|
154
|
-
"name": "dstAddress",
|
|
155
|
-
"type": "bytes"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"indexed": false,
|
|
159
|
-
"internalType": "uint32",
|
|
160
|
-
"name": "dstToken",
|
|
161
|
-
"type": "uint32"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
"indexed": false,
|
|
287
|
+
"indexed": true,
|
|
165
288
|
"internalType": "uint256",
|
|
166
|
-
"name": "
|
|
289
|
+
"name": "depositId",
|
|
167
290
|
"type": "uint256"
|
|
168
291
|
},
|
|
169
292
|
{
|
|
170
293
|
"indexed": true,
|
|
171
294
|
"internalType": "address",
|
|
172
|
-
"name": "
|
|
295
|
+
"name": "owner",
|
|
173
296
|
"type": "address"
|
|
174
297
|
},
|
|
175
298
|
{
|
|
176
299
|
"indexed": false,
|
|
177
|
-
"internalType": "
|
|
178
|
-
"name": "
|
|
179
|
-
"type": "
|
|
300
|
+
"internalType": "uint256",
|
|
301
|
+
"name": "assets",
|
|
302
|
+
"type": "uint256"
|
|
180
303
|
}
|
|
181
304
|
],
|
|
182
|
-
"name": "
|
|
305
|
+
"name": "DepositRequested",
|
|
183
306
|
"type": "event"
|
|
184
307
|
},
|
|
185
308
|
{
|
|
186
309
|
"anonymous": false,
|
|
187
310
|
"inputs": [
|
|
188
311
|
{
|
|
189
|
-
"indexed":
|
|
190
|
-
"internalType": "
|
|
191
|
-
"name": "
|
|
192
|
-
"type": "
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"indexed": false,
|
|
196
|
-
"internalType": "bytes",
|
|
197
|
-
"name": "dstAddress",
|
|
198
|
-
"type": "bytes"
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
"indexed": false,
|
|
202
|
-
"internalType": "uint32",
|
|
203
|
-
"name": "dstToken",
|
|
204
|
-
"type": "uint32"
|
|
312
|
+
"indexed": true,
|
|
313
|
+
"internalType": "uint256",
|
|
314
|
+
"name": "depositId",
|
|
315
|
+
"type": "uint256"
|
|
205
316
|
},
|
|
206
317
|
{
|
|
207
|
-
"indexed":
|
|
318
|
+
"indexed": true,
|
|
208
319
|
"internalType": "address",
|
|
209
|
-
"name": "
|
|
320
|
+
"name": "owner",
|
|
210
321
|
"type": "address"
|
|
211
322
|
},
|
|
212
323
|
{
|
|
213
324
|
"indexed": false,
|
|
214
325
|
"internalType": "uint256",
|
|
215
|
-
"name": "
|
|
326
|
+
"name": "netAssets",
|
|
216
327
|
"type": "uint256"
|
|
217
328
|
},
|
|
218
|
-
{
|
|
219
|
-
"indexed": true,
|
|
220
|
-
"internalType": "address",
|
|
221
|
-
"name": "sender",
|
|
222
|
-
"type": "address"
|
|
223
|
-
},
|
|
224
329
|
{
|
|
225
330
|
"indexed": false,
|
|
226
|
-
"internalType": "
|
|
227
|
-
"name": "
|
|
228
|
-
"type": "
|
|
331
|
+
"internalType": "uint256",
|
|
332
|
+
"name": "shares",
|
|
333
|
+
"type": "uint256"
|
|
229
334
|
}
|
|
230
335
|
],
|
|
231
|
-
"name": "
|
|
336
|
+
"name": "DepositSettled",
|
|
232
337
|
"type": "event"
|
|
233
338
|
},
|
|
234
339
|
{
|
|
235
340
|
"anonymous": false,
|
|
236
341
|
"inputs": [
|
|
237
|
-
{
|
|
238
|
-
"indexed": true,
|
|
239
|
-
"internalType": "address payable",
|
|
240
|
-
"name": "recipient",
|
|
241
|
-
"type": "address"
|
|
242
|
-
},
|
|
243
342
|
{
|
|
244
343
|
"indexed": false,
|
|
245
344
|
"internalType": "uint256",
|
|
246
|
-
"name": "
|
|
345
|
+
"name": "size",
|
|
247
346
|
"type": "uint256"
|
|
248
347
|
}
|
|
249
348
|
],
|
|
250
|
-
"name": "
|
|
349
|
+
"name": "MaxSettlementBatchSizeSet",
|
|
251
350
|
"type": "event"
|
|
252
351
|
},
|
|
253
352
|
{
|
|
254
353
|
"anonymous": false,
|
|
255
354
|
"inputs": [
|
|
256
|
-
{
|
|
257
|
-
"indexed": true,
|
|
258
|
-
"internalType": "address payable",
|
|
259
|
-
"name": "recipient",
|
|
260
|
-
"type": "address"
|
|
261
|
-
},
|
|
262
355
|
{
|
|
263
356
|
"indexed": false,
|
|
264
357
|
"internalType": "uint256",
|
|
265
358
|
"name": "amount",
|
|
266
359
|
"type": "uint256"
|
|
267
|
-
}
|
|
360
|
+
}
|
|
361
|
+
],
|
|
362
|
+
"name": "MinDepositAssetsSet",
|
|
363
|
+
"type": "event"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"anonymous": false,
|
|
367
|
+
"inputs": [
|
|
268
368
|
{
|
|
269
369
|
"indexed": true,
|
|
270
370
|
"internalType": "address",
|
|
271
|
-
"name": "
|
|
371
|
+
"name": "oracle",
|
|
272
372
|
"type": "address"
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
"indexed": false,
|
|
276
|
-
"internalType": "bytes",
|
|
277
|
-
"name": "reason",
|
|
278
|
-
"type": "bytes"
|
|
279
373
|
}
|
|
280
374
|
],
|
|
281
|
-
"name": "
|
|
375
|
+
"name": "OracleSet",
|
|
282
376
|
"type": "event"
|
|
283
377
|
},
|
|
284
378
|
{
|
|
@@ -287,466 +381,458 @@ exports.Vault_jsonAbi = [
|
|
|
287
381
|
{
|
|
288
382
|
"indexed": false,
|
|
289
383
|
"internalType": "address",
|
|
290
|
-
"name": "
|
|
384
|
+
"name": "account",
|
|
291
385
|
"type": "address"
|
|
292
386
|
}
|
|
293
387
|
],
|
|
294
|
-
"name": "
|
|
388
|
+
"name": "Paused",
|
|
295
389
|
"type": "event"
|
|
296
390
|
},
|
|
297
391
|
{
|
|
298
392
|
"anonymous": false,
|
|
299
393
|
"inputs": [
|
|
300
|
-
{
|
|
301
|
-
"indexed": false,
|
|
302
|
-
"internalType": "uint32",
|
|
303
|
-
"name": "dstChain",
|
|
304
|
-
"type": "uint32"
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
"indexed": false,
|
|
308
|
-
"internalType": "bytes",
|
|
309
|
-
"name": "dstAddress",
|
|
310
|
-
"type": "bytes"
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
"indexed": false,
|
|
314
|
-
"internalType": "uint32",
|
|
315
|
-
"name": "dstToken",
|
|
316
|
-
"type": "uint32"
|
|
317
|
-
},
|
|
318
394
|
{
|
|
319
395
|
"indexed": false,
|
|
320
396
|
"internalType": "uint256",
|
|
321
|
-
"name": "
|
|
397
|
+
"name": "feeBps",
|
|
322
398
|
"type": "uint256"
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
399
|
+
}
|
|
400
|
+
],
|
|
401
|
+
"name": "PerformanceFeeSet",
|
|
402
|
+
"type": "event"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"anonymous": false,
|
|
406
|
+
"inputs": [
|
|
330
407
|
{
|
|
331
408
|
"indexed": false,
|
|
332
|
-
"internalType": "
|
|
333
|
-
"name": "
|
|
334
|
-
"type": "
|
|
409
|
+
"internalType": "uint256",
|
|
410
|
+
"name": "callCount",
|
|
411
|
+
"type": "uint256"
|
|
335
412
|
},
|
|
336
413
|
{
|
|
337
414
|
"indexed": false,
|
|
338
415
|
"internalType": "uint256",
|
|
339
|
-
"name": "
|
|
416
|
+
"name": "navBefore",
|
|
340
417
|
"type": "uint256"
|
|
341
418
|
},
|
|
342
419
|
{
|
|
343
420
|
"indexed": false,
|
|
344
|
-
"internalType": "
|
|
345
|
-
"name": "
|
|
346
|
-
"type": "
|
|
421
|
+
"internalType": "uint256",
|
|
422
|
+
"name": "navAfter",
|
|
423
|
+
"type": "uint256"
|
|
347
424
|
}
|
|
348
425
|
],
|
|
349
|
-
"name": "
|
|
426
|
+
"name": "Rebalanced",
|
|
350
427
|
"type": "event"
|
|
351
428
|
},
|
|
352
429
|
{
|
|
353
430
|
"anonymous": false,
|
|
354
431
|
"inputs": [
|
|
355
432
|
{
|
|
356
|
-
"indexed":
|
|
357
|
-
"internalType": "
|
|
358
|
-
"name": "
|
|
359
|
-
"type": "
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
"indexed": false,
|
|
363
|
-
"internalType": "bytes",
|
|
364
|
-
"name": "dstAddress",
|
|
365
|
-
"type": "bytes"
|
|
433
|
+
"indexed": true,
|
|
434
|
+
"internalType": "bytes32",
|
|
435
|
+
"name": "role",
|
|
436
|
+
"type": "bytes32"
|
|
366
437
|
},
|
|
367
438
|
{
|
|
368
|
-
"indexed":
|
|
369
|
-
"internalType": "
|
|
370
|
-
"name": "
|
|
371
|
-
"type": "
|
|
439
|
+
"indexed": true,
|
|
440
|
+
"internalType": "bytes32",
|
|
441
|
+
"name": "previousAdminRole",
|
|
442
|
+
"type": "bytes32"
|
|
372
443
|
},
|
|
373
444
|
{
|
|
374
|
-
"indexed":
|
|
445
|
+
"indexed": true,
|
|
446
|
+
"internalType": "bytes32",
|
|
447
|
+
"name": "newAdminRole",
|
|
448
|
+
"type": "bytes32"
|
|
449
|
+
}
|
|
450
|
+
],
|
|
451
|
+
"name": "RoleAdminChanged",
|
|
452
|
+
"type": "event"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"anonymous": false,
|
|
456
|
+
"inputs": [
|
|
457
|
+
{
|
|
458
|
+
"indexed": true,
|
|
459
|
+
"internalType": "bytes32",
|
|
460
|
+
"name": "role",
|
|
461
|
+
"type": "bytes32"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"indexed": true,
|
|
375
465
|
"internalType": "address",
|
|
376
|
-
"name": "
|
|
466
|
+
"name": "account",
|
|
377
467
|
"type": "address"
|
|
378
468
|
},
|
|
379
469
|
{
|
|
380
|
-
"indexed":
|
|
381
|
-
"internalType": "
|
|
382
|
-
"name": "
|
|
383
|
-
"type": "
|
|
470
|
+
"indexed": true,
|
|
471
|
+
"internalType": "address",
|
|
472
|
+
"name": "sender",
|
|
473
|
+
"type": "address"
|
|
474
|
+
}
|
|
475
|
+
],
|
|
476
|
+
"name": "RoleGranted",
|
|
477
|
+
"type": "event"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"anonymous": false,
|
|
481
|
+
"inputs": [
|
|
482
|
+
{
|
|
483
|
+
"indexed": true,
|
|
484
|
+
"internalType": "bytes32",
|
|
485
|
+
"name": "role",
|
|
486
|
+
"type": "bytes32"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"indexed": true,
|
|
490
|
+
"internalType": "address",
|
|
491
|
+
"name": "account",
|
|
492
|
+
"type": "address"
|
|
384
493
|
},
|
|
385
494
|
{
|
|
386
495
|
"indexed": true,
|
|
387
496
|
"internalType": "address",
|
|
388
497
|
"name": "sender",
|
|
389
498
|
"type": "address"
|
|
499
|
+
}
|
|
500
|
+
],
|
|
501
|
+
"name": "RoleRevoked",
|
|
502
|
+
"type": "event"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"anonymous": false,
|
|
506
|
+
"inputs": [
|
|
507
|
+
{
|
|
508
|
+
"indexed": false,
|
|
509
|
+
"internalType": "uint256",
|
|
510
|
+
"name": "oraclePriceCount",
|
|
511
|
+
"type": "uint256"
|
|
390
512
|
},
|
|
391
513
|
{
|
|
392
514
|
"indexed": false,
|
|
393
|
-
"internalType": "
|
|
394
|
-
"name": "
|
|
395
|
-
"type": "
|
|
515
|
+
"internalType": "uint256",
|
|
516
|
+
"name": "depositsSettled",
|
|
517
|
+
"type": "uint256"
|
|
396
518
|
},
|
|
397
519
|
{
|
|
398
520
|
"indexed": false,
|
|
399
521
|
"internalType": "uint256",
|
|
400
|
-
"name": "
|
|
522
|
+
"name": "depositsRefunded",
|
|
401
523
|
"type": "uint256"
|
|
402
524
|
},
|
|
403
525
|
{
|
|
404
526
|
"indexed": false,
|
|
405
|
-
"internalType": "
|
|
406
|
-
"name": "
|
|
407
|
-
"type": "
|
|
527
|
+
"internalType": "uint256",
|
|
528
|
+
"name": "withdrawalsProcessed",
|
|
529
|
+
"type": "uint256"
|
|
408
530
|
}
|
|
409
531
|
],
|
|
410
|
-
"name": "
|
|
532
|
+
"name": "Settled",
|
|
411
533
|
"type": "event"
|
|
412
534
|
},
|
|
413
535
|
{
|
|
536
|
+
"anonymous": false,
|
|
414
537
|
"inputs": [
|
|
415
538
|
{
|
|
416
|
-
"
|
|
417
|
-
"
|
|
418
|
-
"
|
|
539
|
+
"indexed": false,
|
|
540
|
+
"internalType": "uint256",
|
|
541
|
+
"name": "fee",
|
|
542
|
+
"type": "uint256"
|
|
419
543
|
}
|
|
420
544
|
],
|
|
421
|
-
"name": "
|
|
422
|
-
"
|
|
423
|
-
"stateMutability": "payable",
|
|
424
|
-
"type": "function"
|
|
545
|
+
"name": "SettlementFeeSet",
|
|
546
|
+
"type": "event"
|
|
425
547
|
},
|
|
426
548
|
{
|
|
549
|
+
"anonymous": false,
|
|
427
550
|
"inputs": [
|
|
428
551
|
{
|
|
429
|
-
"
|
|
430
|
-
"
|
|
431
|
-
"
|
|
552
|
+
"indexed": true,
|
|
553
|
+
"internalType": "address",
|
|
554
|
+
"name": "target",
|
|
555
|
+
"type": "address"
|
|
432
556
|
},
|
|
433
557
|
{
|
|
434
|
-
"
|
|
435
|
-
"
|
|
436
|
-
"
|
|
437
|
-
|
|
558
|
+
"indexed": false,
|
|
559
|
+
"internalType": "bool",
|
|
560
|
+
"name": "allowed",
|
|
561
|
+
"type": "bool"
|
|
562
|
+
}
|
|
563
|
+
],
|
|
564
|
+
"name": "TargetAllowed",
|
|
565
|
+
"type": "event"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"anonymous": false,
|
|
569
|
+
"inputs": [
|
|
438
570
|
{
|
|
439
|
-
"
|
|
571
|
+
"indexed": true,
|
|
572
|
+
"internalType": "address",
|
|
440
573
|
"name": "token",
|
|
441
574
|
"type": "address"
|
|
442
575
|
}
|
|
443
576
|
],
|
|
444
|
-
"name": "
|
|
445
|
-
"
|
|
446
|
-
"stateMutability": "nonpayable",
|
|
447
|
-
"type": "function"
|
|
577
|
+
"name": "TrackedTokenAdded",
|
|
578
|
+
"type": "event"
|
|
448
579
|
},
|
|
449
580
|
{
|
|
581
|
+
"anonymous": false,
|
|
450
582
|
"inputs": [
|
|
451
583
|
{
|
|
452
|
-
"
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
"internalType": "address",
|
|
465
|
-
"name": "kTimesGAddress",
|
|
466
|
-
"type": "address"
|
|
467
|
-
}
|
|
468
|
-
],
|
|
469
|
-
"internalType": "struct IShared.SigData",
|
|
470
|
-
"name": "sigData",
|
|
471
|
-
"type": "tuple"
|
|
472
|
-
},
|
|
584
|
+
"indexed": true,
|
|
585
|
+
"internalType": "address",
|
|
586
|
+
"name": "token",
|
|
587
|
+
"type": "address"
|
|
588
|
+
}
|
|
589
|
+
],
|
|
590
|
+
"name": "TrackedTokenRemoved",
|
|
591
|
+
"type": "event"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"anonymous": false,
|
|
595
|
+
"inputs": [
|
|
473
596
|
{
|
|
474
|
-
"
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
"
|
|
488
|
-
"
|
|
597
|
+
"indexed": false,
|
|
598
|
+
"internalType": "address",
|
|
599
|
+
"name": "account",
|
|
600
|
+
"type": "address"
|
|
601
|
+
}
|
|
602
|
+
],
|
|
603
|
+
"name": "Unpaused",
|
|
604
|
+
"type": "event"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"anonymous": false,
|
|
608
|
+
"inputs": [
|
|
609
|
+
{
|
|
610
|
+
"indexed": true,
|
|
611
|
+
"internalType": "uint256",
|
|
612
|
+
"name": "requestId",
|
|
613
|
+
"type": "uint256"
|
|
489
614
|
},
|
|
490
615
|
{
|
|
491
|
-
"
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
"type": "address"
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
"internalType": "address",
|
|
499
|
-
"name": "token",
|
|
500
|
-
"type": "address"
|
|
501
|
-
}
|
|
502
|
-
],
|
|
503
|
-
"internalType": "struct IShared.FetchParams[]",
|
|
504
|
-
"name": "fetchParamsArray",
|
|
505
|
-
"type": "tuple[]"
|
|
616
|
+
"indexed": true,
|
|
617
|
+
"internalType": "address",
|
|
618
|
+
"name": "owner",
|
|
619
|
+
"type": "address"
|
|
506
620
|
},
|
|
507
621
|
{
|
|
508
|
-
"
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
"type": "address"
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
"internalType": "address payable",
|
|
516
|
-
"name": "recipient",
|
|
517
|
-
"type": "address"
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
"internalType": "uint256",
|
|
521
|
-
"name": "amount",
|
|
522
|
-
"type": "uint256"
|
|
523
|
-
}
|
|
524
|
-
],
|
|
525
|
-
"internalType": "struct IShared.TransferParams[]",
|
|
526
|
-
"name": "transferParamsArray",
|
|
527
|
-
"type": "tuple[]"
|
|
622
|
+
"indexed": false,
|
|
623
|
+
"internalType": "uint256",
|
|
624
|
+
"name": "shares",
|
|
625
|
+
"type": "uint256"
|
|
528
626
|
}
|
|
529
627
|
],
|
|
530
|
-
"name": "
|
|
531
|
-
"
|
|
532
|
-
"stateMutability": "nonpayable",
|
|
533
|
-
"type": "function"
|
|
628
|
+
"name": "WithdrawCancelled",
|
|
629
|
+
"type": "event"
|
|
534
630
|
},
|
|
535
631
|
{
|
|
632
|
+
"anonymous": false,
|
|
536
633
|
"inputs": [
|
|
537
634
|
{
|
|
538
|
-
"
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
"type": "uint256"
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
"internalType": "uint256",
|
|
546
|
-
"name": "nonce",
|
|
547
|
-
"type": "uint256"
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
"internalType": "address",
|
|
551
|
-
"name": "kTimesGAddress",
|
|
552
|
-
"type": "address"
|
|
553
|
-
}
|
|
554
|
-
],
|
|
555
|
-
"internalType": "struct IShared.SigData",
|
|
556
|
-
"name": "sigData",
|
|
557
|
-
"type": "tuple"
|
|
635
|
+
"indexed": true,
|
|
636
|
+
"internalType": "uint256",
|
|
637
|
+
"name": "requestId",
|
|
638
|
+
"type": "uint256"
|
|
558
639
|
},
|
|
559
640
|
{
|
|
560
|
-
"
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
"type": "address"
|
|
565
|
-
},
|
|
566
|
-
{
|
|
567
|
-
"internalType": "address",
|
|
568
|
-
"name": "token",
|
|
569
|
-
"type": "address"
|
|
570
|
-
}
|
|
571
|
-
],
|
|
572
|
-
"internalType": "struct IShared.FetchParams[]",
|
|
573
|
-
"name": "fetchParamsArray",
|
|
574
|
-
"type": "tuple[]"
|
|
641
|
+
"indexed": true,
|
|
642
|
+
"internalType": "address",
|
|
643
|
+
"name": "owner",
|
|
644
|
+
"type": "address"
|
|
575
645
|
},
|
|
576
646
|
{
|
|
577
|
-
"
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
],
|
|
594
|
-
"internalType": "struct IShared.TransferParams[]",
|
|
595
|
-
"name": "transferParamsArray",
|
|
596
|
-
"type": "tuple[]"
|
|
647
|
+
"indexed": false,
|
|
648
|
+
"internalType": "uint256",
|
|
649
|
+
"name": "shares",
|
|
650
|
+
"type": "uint256"
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
"indexed": false,
|
|
654
|
+
"internalType": "uint256",
|
|
655
|
+
"name": "assetsPaid",
|
|
656
|
+
"type": "uint256"
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"indexed": false,
|
|
660
|
+
"internalType": "uint256",
|
|
661
|
+
"name": "fee",
|
|
662
|
+
"type": "uint256"
|
|
597
663
|
}
|
|
598
664
|
],
|
|
599
|
-
"name": "
|
|
600
|
-
"
|
|
601
|
-
"stateMutability": "nonpayable",
|
|
602
|
-
"type": "function"
|
|
665
|
+
"name": "WithdrawClaimed",
|
|
666
|
+
"type": "event"
|
|
603
667
|
},
|
|
604
668
|
{
|
|
669
|
+
"anonymous": false,
|
|
605
670
|
"inputs": [
|
|
606
671
|
{
|
|
607
|
-
"
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
"type": "uint256"
|
|
612
|
-
},
|
|
613
|
-
{
|
|
614
|
-
"internalType": "uint256",
|
|
615
|
-
"name": "nonce",
|
|
616
|
-
"type": "uint256"
|
|
617
|
-
},
|
|
618
|
-
{
|
|
619
|
-
"internalType": "address",
|
|
620
|
-
"name": "kTimesGAddress",
|
|
621
|
-
"type": "address"
|
|
622
|
-
}
|
|
623
|
-
],
|
|
624
|
-
"internalType": "struct IShared.SigData",
|
|
625
|
-
"name": "sigData",
|
|
626
|
-
"type": "tuple"
|
|
672
|
+
"indexed": true,
|
|
673
|
+
"internalType": "uint256",
|
|
674
|
+
"name": "requestId",
|
|
675
|
+
"type": "uint256"
|
|
627
676
|
},
|
|
628
677
|
{
|
|
629
|
-
"
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
"
|
|
642
|
-
"
|
|
643
|
-
"
|
|
678
|
+
"indexed": true,
|
|
679
|
+
"internalType": "address",
|
|
680
|
+
"name": "owner",
|
|
681
|
+
"type": "address"
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"indexed": false,
|
|
685
|
+
"internalType": "uint256",
|
|
686
|
+
"name": "shares",
|
|
687
|
+
"type": "uint256"
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"indexed": false,
|
|
691
|
+
"internalType": "uint64",
|
|
692
|
+
"name": "claimableAt",
|
|
693
|
+
"type": "uint64"
|
|
644
694
|
}
|
|
645
695
|
],
|
|
646
|
-
"name": "
|
|
647
|
-
"
|
|
648
|
-
|
|
696
|
+
"name": "WithdrawRequested",
|
|
697
|
+
"type": "event"
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"anonymous": false,
|
|
701
|
+
"inputs": [
|
|
702
|
+
{
|
|
703
|
+
"indexed": true,
|
|
704
|
+
"internalType": "uint256",
|
|
705
|
+
"name": "requestId",
|
|
706
|
+
"type": "uint256"
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
"indexed": true,
|
|
710
|
+
"internalType": "address",
|
|
711
|
+
"name": "owner",
|
|
712
|
+
"type": "address"
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"indexed": false,
|
|
716
|
+
"internalType": "uint256",
|
|
717
|
+
"name": "shares",
|
|
718
|
+
"type": "uint256"
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"indexed": false,
|
|
722
|
+
"internalType": "uint256",
|
|
723
|
+
"name": "assetsOut",
|
|
724
|
+
"type": "uint256"
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"indexed": false,
|
|
728
|
+
"internalType": "uint256",
|
|
729
|
+
"name": "fee",
|
|
730
|
+
"type": "uint256"
|
|
731
|
+
}
|
|
732
|
+
],
|
|
733
|
+
"name": "WithdrawalSettled",
|
|
734
|
+
"type": "event"
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"inputs": [],
|
|
738
|
+
"name": "BOT_ROLE",
|
|
739
|
+
"outputs": [
|
|
740
|
+
{
|
|
741
|
+
"internalType": "bytes32",
|
|
742
|
+
"name": "",
|
|
743
|
+
"type": "bytes32"
|
|
744
|
+
}
|
|
745
|
+
],
|
|
746
|
+
"stateMutability": "view",
|
|
649
747
|
"type": "function"
|
|
650
748
|
},
|
|
651
749
|
{
|
|
652
750
|
"inputs": [],
|
|
653
|
-
"name": "
|
|
654
|
-
"outputs": [
|
|
655
|
-
|
|
751
|
+
"name": "BPS",
|
|
752
|
+
"outputs": [
|
|
753
|
+
{
|
|
754
|
+
"internalType": "uint256",
|
|
755
|
+
"name": "",
|
|
756
|
+
"type": "uint256"
|
|
757
|
+
}
|
|
758
|
+
],
|
|
759
|
+
"stateMutability": "view",
|
|
656
760
|
"type": "function"
|
|
657
761
|
},
|
|
658
762
|
{
|
|
659
763
|
"inputs": [],
|
|
660
|
-
"name": "
|
|
661
|
-
"outputs": [
|
|
662
|
-
|
|
764
|
+
"name": "DEFAULT_ADMIN_ROLE",
|
|
765
|
+
"outputs": [
|
|
766
|
+
{
|
|
767
|
+
"internalType": "bytes32",
|
|
768
|
+
"name": "",
|
|
769
|
+
"type": "bytes32"
|
|
770
|
+
}
|
|
771
|
+
],
|
|
772
|
+
"stateMutability": "view",
|
|
663
773
|
"type": "function"
|
|
664
774
|
},
|
|
665
775
|
{
|
|
666
|
-
"inputs": [
|
|
776
|
+
"inputs": [],
|
|
777
|
+
"name": "GUARDIAN_ROLE",
|
|
778
|
+
"outputs": [
|
|
667
779
|
{
|
|
668
|
-
"
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
"internalType": "address",
|
|
681
|
-
"name": "kTimesGAddress",
|
|
682
|
-
"type": "address"
|
|
683
|
-
}
|
|
684
|
-
],
|
|
685
|
-
"internalType": "struct IShared.SigData",
|
|
686
|
-
"name": "sigData",
|
|
687
|
-
"type": "tuple"
|
|
688
|
-
},
|
|
780
|
+
"internalType": "bytes32",
|
|
781
|
+
"name": "",
|
|
782
|
+
"type": "bytes32"
|
|
783
|
+
}
|
|
784
|
+
],
|
|
785
|
+
"stateMutability": "view",
|
|
786
|
+
"type": "function"
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
"inputs": [],
|
|
790
|
+
"name": "MANAGER_ROLE",
|
|
791
|
+
"outputs": [
|
|
689
792
|
{
|
|
690
|
-
"
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
"internalType": "uint256",
|
|
703
|
-
"name": "amount",
|
|
704
|
-
"type": "uint256"
|
|
705
|
-
}
|
|
706
|
-
],
|
|
707
|
-
"internalType": "struct IShared.TransferParams",
|
|
708
|
-
"name": "transferParams",
|
|
709
|
-
"type": "tuple"
|
|
710
|
-
},
|
|
793
|
+
"internalType": "bytes32",
|
|
794
|
+
"name": "",
|
|
795
|
+
"type": "bytes32"
|
|
796
|
+
}
|
|
797
|
+
],
|
|
798
|
+
"stateMutability": "view",
|
|
799
|
+
"type": "function"
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
"inputs": [],
|
|
803
|
+
"name": "MAX_FEE_BPS",
|
|
804
|
+
"outputs": [
|
|
711
805
|
{
|
|
712
|
-
"
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
"internalType": "uint256",
|
|
725
|
-
"name": "value",
|
|
726
|
-
"type": "uint256"
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
"internalType": "bytes",
|
|
730
|
-
"name": "callData",
|
|
731
|
-
"type": "bytes"
|
|
732
|
-
},
|
|
733
|
-
{
|
|
734
|
-
"internalType": "bytes",
|
|
735
|
-
"name": "payload",
|
|
736
|
-
"type": "bytes"
|
|
737
|
-
}
|
|
738
|
-
],
|
|
739
|
-
"internalType": "struct IMulticall.Call[]",
|
|
740
|
-
"name": "calls",
|
|
741
|
-
"type": "tuple[]"
|
|
742
|
-
},
|
|
806
|
+
"internalType": "uint256",
|
|
807
|
+
"name": "",
|
|
808
|
+
"type": "uint256"
|
|
809
|
+
}
|
|
810
|
+
],
|
|
811
|
+
"stateMutability": "view",
|
|
812
|
+
"type": "function"
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
"inputs": [],
|
|
816
|
+
"name": "SHARE_SCALE",
|
|
817
|
+
"outputs": [
|
|
743
818
|
{
|
|
744
819
|
"internalType": "uint256",
|
|
745
|
-
"name": "
|
|
820
|
+
"name": "",
|
|
746
821
|
"type": "uint256"
|
|
747
822
|
}
|
|
748
823
|
],
|
|
749
|
-
"
|
|
824
|
+
"stateMutability": "view",
|
|
825
|
+
"type": "function"
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
"inputs": [
|
|
829
|
+
{
|
|
830
|
+
"internalType": "address",
|
|
831
|
+
"name": "token",
|
|
832
|
+
"type": "address"
|
|
833
|
+
}
|
|
834
|
+
],
|
|
835
|
+
"name": "addTrackedToken",
|
|
750
836
|
"outputs": [],
|
|
751
837
|
"stateMutability": "nonpayable",
|
|
752
838
|
"type": "function"
|
|
@@ -754,49 +840,22 @@ exports.Vault_jsonAbi = [
|
|
|
754
840
|
{
|
|
755
841
|
"inputs": [
|
|
756
842
|
{
|
|
757
|
-
"
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
"name": "sig",
|
|
761
|
-
"type": "uint256"
|
|
762
|
-
},
|
|
763
|
-
{
|
|
764
|
-
"internalType": "uint256",
|
|
765
|
-
"name": "nonce",
|
|
766
|
-
"type": "uint256"
|
|
767
|
-
},
|
|
768
|
-
{
|
|
769
|
-
"internalType": "address",
|
|
770
|
-
"name": "kTimesGAddress",
|
|
771
|
-
"type": "address"
|
|
772
|
-
}
|
|
773
|
-
],
|
|
774
|
-
"internalType": "struct IShared.SigData",
|
|
775
|
-
"name": "sigData",
|
|
776
|
-
"type": "tuple"
|
|
843
|
+
"internalType": "contract IERC20",
|
|
844
|
+
"name": "token",
|
|
845
|
+
"type": "address"
|
|
777
846
|
},
|
|
778
847
|
{
|
|
779
848
|
"internalType": "address",
|
|
780
|
-
"name": "
|
|
849
|
+
"name": "spender",
|
|
781
850
|
"type": "address"
|
|
782
851
|
},
|
|
783
852
|
{
|
|
784
|
-
"internalType": "
|
|
785
|
-
"name": "
|
|
786
|
-
"type": "
|
|
787
|
-
},
|
|
788
|
-
{
|
|
789
|
-
"internalType": "bytes",
|
|
790
|
-
"name": "srcAddress",
|
|
791
|
-
"type": "bytes"
|
|
792
|
-
},
|
|
793
|
-
{
|
|
794
|
-
"internalType": "bytes",
|
|
795
|
-
"name": "message",
|
|
796
|
-
"type": "bytes"
|
|
853
|
+
"internalType": "uint256",
|
|
854
|
+
"name": "amount",
|
|
855
|
+
"type": "uint256"
|
|
797
856
|
}
|
|
798
857
|
],
|
|
799
|
-
"name": "
|
|
858
|
+
"name": "approveERC20",
|
|
800
859
|
"outputs": [],
|
|
801
860
|
"stateMutability": "nonpayable",
|
|
802
861
|
"type": "function"
|
|
@@ -804,205 +863,840 @@ exports.Vault_jsonAbi = [
|
|
|
804
863
|
{
|
|
805
864
|
"inputs": [
|
|
806
865
|
{
|
|
807
|
-
"
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
"name": "sig",
|
|
811
|
-
"type": "uint256"
|
|
812
|
-
},
|
|
813
|
-
{
|
|
814
|
-
"internalType": "uint256",
|
|
815
|
-
"name": "nonce",
|
|
816
|
-
"type": "uint256"
|
|
817
|
-
},
|
|
818
|
-
{
|
|
819
|
-
"internalType": "address",
|
|
820
|
-
"name": "kTimesGAddress",
|
|
821
|
-
"type": "address"
|
|
822
|
-
}
|
|
823
|
-
],
|
|
824
|
-
"internalType": "struct IShared.SigData",
|
|
825
|
-
"name": "sigData",
|
|
826
|
-
"type": "tuple"
|
|
866
|
+
"internalType": "address",
|
|
867
|
+
"name": "permit2",
|
|
868
|
+
"type": "address"
|
|
827
869
|
},
|
|
828
870
|
{
|
|
829
|
-
"
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
"name": "token",
|
|
833
|
-
"type": "address"
|
|
834
|
-
},
|
|
835
|
-
{
|
|
836
|
-
"internalType": "address payable",
|
|
837
|
-
"name": "recipient",
|
|
838
|
-
"type": "address"
|
|
839
|
-
},
|
|
840
|
-
{
|
|
841
|
-
"internalType": "uint256",
|
|
842
|
-
"name": "amount",
|
|
843
|
-
"type": "uint256"
|
|
844
|
-
}
|
|
845
|
-
],
|
|
846
|
-
"internalType": "struct IShared.TransferParams",
|
|
847
|
-
"name": "transferParams",
|
|
848
|
-
"type": "tuple"
|
|
871
|
+
"internalType": "address",
|
|
872
|
+
"name": "token",
|
|
873
|
+
"type": "address"
|
|
849
874
|
},
|
|
850
875
|
{
|
|
851
|
-
"internalType": "
|
|
852
|
-
"name": "
|
|
853
|
-
"type": "
|
|
876
|
+
"internalType": "address",
|
|
877
|
+
"name": "spender",
|
|
878
|
+
"type": "address"
|
|
854
879
|
},
|
|
855
880
|
{
|
|
856
|
-
"internalType": "
|
|
857
|
-
"name": "
|
|
858
|
-
"type": "
|
|
881
|
+
"internalType": "uint160",
|
|
882
|
+
"name": "amount",
|
|
883
|
+
"type": "uint160"
|
|
859
884
|
},
|
|
860
885
|
{
|
|
861
|
-
"internalType": "
|
|
862
|
-
"name": "
|
|
863
|
-
"type": "
|
|
886
|
+
"internalType": "uint48",
|
|
887
|
+
"name": "expiration",
|
|
888
|
+
"type": "uint48"
|
|
864
889
|
}
|
|
865
890
|
],
|
|
866
|
-
"name": "
|
|
891
|
+
"name": "approvePermit2",
|
|
867
892
|
"outputs": [],
|
|
868
893
|
"stateMutability": "nonpayable",
|
|
869
894
|
"type": "function"
|
|
870
895
|
},
|
|
871
896
|
{
|
|
872
|
-
"inputs": [
|
|
897
|
+
"inputs": [],
|
|
898
|
+
"name": "asset",
|
|
899
|
+
"outputs": [
|
|
873
900
|
{
|
|
874
|
-
"
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
901
|
+
"internalType": "address",
|
|
902
|
+
"name": "",
|
|
903
|
+
"type": "address"
|
|
904
|
+
}
|
|
905
|
+
],
|
|
906
|
+
"stateMutability": "view",
|
|
907
|
+
"type": "function"
|
|
908
|
+
},
|
|
909
|
+
{
|
|
910
|
+
"inputs": [],
|
|
911
|
+
"name": "assetDecimals",
|
|
912
|
+
"outputs": [
|
|
913
|
+
{
|
|
914
|
+
"internalType": "uint8",
|
|
915
|
+
"name": "",
|
|
916
|
+
"type": "uint8"
|
|
917
|
+
}
|
|
918
|
+
],
|
|
919
|
+
"stateMutability": "view",
|
|
920
|
+
"type": "function"
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"inputs": [],
|
|
924
|
+
"name": "assetToken",
|
|
925
|
+
"outputs": [
|
|
926
|
+
{
|
|
927
|
+
"internalType": "contract IERC20",
|
|
928
|
+
"name": "",
|
|
929
|
+
"type": "address"
|
|
930
|
+
}
|
|
931
|
+
],
|
|
932
|
+
"stateMutability": "view",
|
|
933
|
+
"type": "function"
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
"inputs": [
|
|
937
|
+
{
|
|
938
|
+
"internalType": "uint256",
|
|
939
|
+
"name": "depositId",
|
|
940
|
+
"type": "uint256"
|
|
941
|
+
}
|
|
942
|
+
],
|
|
943
|
+
"name": "cancelDepositRequest",
|
|
944
|
+
"outputs": [],
|
|
945
|
+
"stateMutability": "nonpayable",
|
|
946
|
+
"type": "function"
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
"inputs": [
|
|
950
|
+
{
|
|
951
|
+
"internalType": "uint256",
|
|
952
|
+
"name": "maxCount",
|
|
953
|
+
"type": "uint256"
|
|
954
|
+
}
|
|
955
|
+
],
|
|
956
|
+
"name": "cancelPendingDeposits",
|
|
957
|
+
"outputs": [
|
|
958
|
+
{
|
|
959
|
+
"internalType": "uint256",
|
|
960
|
+
"name": "cancelled",
|
|
961
|
+
"type": "uint256"
|
|
962
|
+
}
|
|
963
|
+
],
|
|
964
|
+
"stateMutability": "nonpayable",
|
|
965
|
+
"type": "function"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
"inputs": [
|
|
969
|
+
{
|
|
970
|
+
"internalType": "uint256",
|
|
971
|
+
"name": "requestId",
|
|
972
|
+
"type": "uint256"
|
|
973
|
+
}
|
|
974
|
+
],
|
|
975
|
+
"name": "cancelWithdraw",
|
|
976
|
+
"outputs": [],
|
|
977
|
+
"stateMutability": "nonpayable",
|
|
978
|
+
"type": "function"
|
|
979
|
+
},
|
|
980
|
+
{
|
|
981
|
+
"inputs": [
|
|
982
|
+
{
|
|
983
|
+
"internalType": "uint256",
|
|
984
|
+
"name": "requestId",
|
|
985
|
+
"type": "uint256"
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
"internalType": "contract IVault",
|
|
989
|
+
"name": "newVault",
|
|
990
|
+
"type": "address"
|
|
991
|
+
}
|
|
992
|
+
],
|
|
993
|
+
"name": "claimAndDeposit",
|
|
994
|
+
"outputs": [
|
|
995
|
+
{
|
|
996
|
+
"internalType": "uint256",
|
|
997
|
+
"name": "depositId",
|
|
998
|
+
"type": "uint256"
|
|
999
|
+
}
|
|
1000
|
+
],
|
|
1001
|
+
"stateMutability": "nonpayable",
|
|
1002
|
+
"type": "function"
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"inputs": [
|
|
1006
|
+
{
|
|
1007
|
+
"internalType": "uint256",
|
|
1008
|
+
"name": "requestId",
|
|
1009
|
+
"type": "uint256"
|
|
1010
|
+
}
|
|
1011
|
+
],
|
|
1012
|
+
"name": "claimWithdraw",
|
|
1013
|
+
"outputs": [],
|
|
1014
|
+
"stateMutability": "nonpayable",
|
|
1015
|
+
"type": "function"
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
"inputs": [
|
|
1019
|
+
{
|
|
1020
|
+
"internalType": "uint256",
|
|
1021
|
+
"name": "requestId",
|
|
1022
|
+
"type": "uint256"
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"internalType": "address",
|
|
1026
|
+
"name": "recipient",
|
|
1027
|
+
"type": "address"
|
|
1028
|
+
}
|
|
1029
|
+
],
|
|
1030
|
+
"name": "claimWithdrawTo",
|
|
1031
|
+
"outputs": [],
|
|
1032
|
+
"stateMutability": "nonpayable",
|
|
1033
|
+
"type": "function"
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
"inputs": [
|
|
1037
|
+
{
|
|
1038
|
+
"internalType": "address",
|
|
1039
|
+
"name": "user",
|
|
1040
|
+
"type": "address"
|
|
1041
|
+
}
|
|
1042
|
+
],
|
|
1043
|
+
"name": "costBasisPerShare",
|
|
1044
|
+
"outputs": [
|
|
1045
|
+
{
|
|
1046
|
+
"internalType": "uint256",
|
|
1047
|
+
"name": "",
|
|
1048
|
+
"type": "uint256"
|
|
1049
|
+
}
|
|
1050
|
+
],
|
|
1051
|
+
"stateMutability": "view",
|
|
1052
|
+
"type": "function"
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"inputs": [
|
|
1056
|
+
{
|
|
1057
|
+
"internalType": "address",
|
|
1058
|
+
"name": "",
|
|
1059
|
+
"type": "address"
|
|
1060
|
+
}
|
|
1061
|
+
],
|
|
1062
|
+
"name": "costBasisValue",
|
|
1063
|
+
"outputs": [
|
|
1064
|
+
{
|
|
1065
|
+
"internalType": "uint256",
|
|
1066
|
+
"name": "",
|
|
1067
|
+
"type": "uint256"
|
|
1068
|
+
}
|
|
1069
|
+
],
|
|
1070
|
+
"stateMutability": "view",
|
|
1071
|
+
"type": "function"
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
"inputs": [],
|
|
1075
|
+
"name": "depositQueueLength",
|
|
1076
|
+
"outputs": [
|
|
1077
|
+
{
|
|
1078
|
+
"internalType": "uint256",
|
|
1079
|
+
"name": "",
|
|
1080
|
+
"type": "uint256"
|
|
1081
|
+
}
|
|
1082
|
+
],
|
|
1083
|
+
"stateMutability": "view",
|
|
1084
|
+
"type": "function"
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"inputs": [],
|
|
1088
|
+
"name": "feeRecipient",
|
|
1089
|
+
"outputs": [
|
|
1090
|
+
{
|
|
1091
|
+
"internalType": "address",
|
|
1092
|
+
"name": "",
|
|
1093
|
+
"type": "address"
|
|
1094
|
+
}
|
|
1095
|
+
],
|
|
1096
|
+
"stateMutability": "view",
|
|
1097
|
+
"type": "function"
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"inputs": [
|
|
1101
|
+
{
|
|
1102
|
+
"internalType": "uint256",
|
|
1103
|
+
"name": "depositId",
|
|
1104
|
+
"type": "uint256"
|
|
1105
|
+
}
|
|
1106
|
+
],
|
|
1107
|
+
"name": "getDepositRequest",
|
|
1108
|
+
"outputs": [
|
|
1109
|
+
{
|
|
1110
|
+
"components": [
|
|
1111
|
+
{
|
|
1112
|
+
"internalType": "address",
|
|
1113
|
+
"name": "owner",
|
|
1114
|
+
"type": "address"
|
|
879
1115
|
},
|
|
880
1116
|
{
|
|
881
1117
|
"internalType": "uint256",
|
|
882
|
-
"name": "
|
|
1118
|
+
"name": "assets",
|
|
883
1119
|
"type": "uint256"
|
|
884
1120
|
},
|
|
885
1121
|
{
|
|
886
|
-
"internalType": "
|
|
887
|
-
"name": "
|
|
888
|
-
"type": "
|
|
1122
|
+
"internalType": "enum IVault.DepositStatus",
|
|
1123
|
+
"name": "status",
|
|
1124
|
+
"type": "uint8"
|
|
889
1125
|
}
|
|
890
1126
|
],
|
|
891
|
-
"internalType": "struct
|
|
892
|
-
"name": "
|
|
1127
|
+
"internalType": "struct IVault.DepositRequest",
|
|
1128
|
+
"name": "",
|
|
893
1129
|
"type": "tuple"
|
|
894
|
-
}
|
|
1130
|
+
}
|
|
1131
|
+
],
|
|
1132
|
+
"stateMutability": "view",
|
|
1133
|
+
"type": "function"
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
"inputs": [
|
|
1137
|
+
{
|
|
1138
|
+
"internalType": "uint256",
|
|
1139
|
+
"name": "requestId",
|
|
1140
|
+
"type": "uint256"
|
|
1141
|
+
}
|
|
1142
|
+
],
|
|
1143
|
+
"name": "getRequest",
|
|
1144
|
+
"outputs": [
|
|
895
1145
|
{
|
|
896
1146
|
"components": [
|
|
897
1147
|
{
|
|
898
|
-
"internalType": "address
|
|
899
|
-
"name": "
|
|
1148
|
+
"internalType": "address",
|
|
1149
|
+
"name": "owner",
|
|
900
1150
|
"type": "address"
|
|
901
1151
|
},
|
|
902
1152
|
{
|
|
903
|
-
"internalType": "
|
|
904
|
-
"name": "
|
|
905
|
-
"type": "
|
|
1153
|
+
"internalType": "uint256",
|
|
1154
|
+
"name": "shares",
|
|
1155
|
+
"type": "uint256"
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
"internalType": "uint256",
|
|
1159
|
+
"name": "costBasisValueSnapshot",
|
|
1160
|
+
"type": "uint256"
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"internalType": "uint64",
|
|
1164
|
+
"name": "requestedAt",
|
|
1165
|
+
"type": "uint64"
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
"internalType": "uint64",
|
|
1169
|
+
"name": "claimableAt",
|
|
1170
|
+
"type": "uint64"
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
"internalType": "enum IVault.WithdrawStatus",
|
|
1174
|
+
"name": "status",
|
|
1175
|
+
"type": "uint8"
|
|
1176
|
+
},
|
|
1177
|
+
{
|
|
1178
|
+
"internalType": "uint256",
|
|
1179
|
+
"name": "assetsOut",
|
|
1180
|
+
"type": "uint256"
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
"internalType": "uint256",
|
|
1184
|
+
"name": "fee",
|
|
1185
|
+
"type": "uint256"
|
|
906
1186
|
}
|
|
907
1187
|
],
|
|
908
|
-
"internalType": "struct
|
|
909
|
-
"name": "
|
|
910
|
-
"type": "tuple
|
|
1188
|
+
"internalType": "struct IVault.WithdrawRequest",
|
|
1189
|
+
"name": "",
|
|
1190
|
+
"type": "tuple"
|
|
1191
|
+
}
|
|
1192
|
+
],
|
|
1193
|
+
"stateMutability": "view",
|
|
1194
|
+
"type": "function"
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
"inputs": [
|
|
1198
|
+
{
|
|
1199
|
+
"internalType": "bytes32",
|
|
1200
|
+
"name": "role",
|
|
1201
|
+
"type": "bytes32"
|
|
1202
|
+
}
|
|
1203
|
+
],
|
|
1204
|
+
"name": "getRoleAdmin",
|
|
1205
|
+
"outputs": [
|
|
1206
|
+
{
|
|
1207
|
+
"internalType": "bytes32",
|
|
1208
|
+
"name": "",
|
|
1209
|
+
"type": "bytes32"
|
|
1210
|
+
}
|
|
1211
|
+
],
|
|
1212
|
+
"stateMutability": "view",
|
|
1213
|
+
"type": "function"
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
"inputs": [
|
|
1217
|
+
{
|
|
1218
|
+
"internalType": "bytes32",
|
|
1219
|
+
"name": "role",
|
|
1220
|
+
"type": "bytes32"
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
"internalType": "address",
|
|
1224
|
+
"name": "account",
|
|
1225
|
+
"type": "address"
|
|
1226
|
+
}
|
|
1227
|
+
],
|
|
1228
|
+
"name": "grantRole",
|
|
1229
|
+
"outputs": [],
|
|
1230
|
+
"stateMutability": "nonpayable",
|
|
1231
|
+
"type": "function"
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
"inputs": [
|
|
1235
|
+
{
|
|
1236
|
+
"internalType": "bytes32",
|
|
1237
|
+
"name": "role",
|
|
1238
|
+
"type": "bytes32"
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
"internalType": "address",
|
|
1242
|
+
"name": "account",
|
|
1243
|
+
"type": "address"
|
|
1244
|
+
}
|
|
1245
|
+
],
|
|
1246
|
+
"name": "hasRole",
|
|
1247
|
+
"outputs": [
|
|
1248
|
+
{
|
|
1249
|
+
"internalType": "bool",
|
|
1250
|
+
"name": "",
|
|
1251
|
+
"type": "bool"
|
|
1252
|
+
}
|
|
1253
|
+
],
|
|
1254
|
+
"stateMutability": "view",
|
|
1255
|
+
"type": "function"
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
"inputs": [],
|
|
1259
|
+
"name": "hasSettleReadyWork",
|
|
1260
|
+
"outputs": [
|
|
1261
|
+
{
|
|
1262
|
+
"internalType": "bool",
|
|
1263
|
+
"name": "",
|
|
1264
|
+
"type": "bool"
|
|
1265
|
+
}
|
|
1266
|
+
],
|
|
1267
|
+
"stateMutability": "view",
|
|
1268
|
+
"type": "function"
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
"inputs": [
|
|
1272
|
+
{
|
|
1273
|
+
"internalType": "address",
|
|
1274
|
+
"name": "",
|
|
1275
|
+
"type": "address"
|
|
1276
|
+
}
|
|
1277
|
+
],
|
|
1278
|
+
"name": "isTracked",
|
|
1279
|
+
"outputs": [
|
|
1280
|
+
{
|
|
1281
|
+
"internalType": "bool",
|
|
1282
|
+
"name": "",
|
|
1283
|
+
"type": "bool"
|
|
1284
|
+
}
|
|
1285
|
+
],
|
|
1286
|
+
"stateMutability": "view",
|
|
1287
|
+
"type": "function"
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
"inputs": [],
|
|
1291
|
+
"name": "maxSettlementBatchSize",
|
|
1292
|
+
"outputs": [
|
|
1293
|
+
{
|
|
1294
|
+
"internalType": "uint256",
|
|
1295
|
+
"name": "",
|
|
1296
|
+
"type": "uint256"
|
|
1297
|
+
}
|
|
1298
|
+
],
|
|
1299
|
+
"stateMutability": "view",
|
|
1300
|
+
"type": "function"
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
"inputs": [],
|
|
1304
|
+
"name": "minDepositAssets",
|
|
1305
|
+
"outputs": [
|
|
1306
|
+
{
|
|
1307
|
+
"internalType": "uint256",
|
|
1308
|
+
"name": "",
|
|
1309
|
+
"type": "uint256"
|
|
1310
|
+
}
|
|
1311
|
+
],
|
|
1312
|
+
"stateMutability": "view",
|
|
1313
|
+
"type": "function"
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
"inputs": [
|
|
1317
|
+
{
|
|
1318
|
+
"internalType": "address",
|
|
1319
|
+
"name": "from",
|
|
1320
|
+
"type": "address"
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
"internalType": "address",
|
|
1324
|
+
"name": "to",
|
|
1325
|
+
"type": "address"
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
"internalType": "uint256",
|
|
1329
|
+
"name": "value",
|
|
1330
|
+
"type": "uint256"
|
|
1331
|
+
}
|
|
1332
|
+
],
|
|
1333
|
+
"name": "onShareTransfer",
|
|
1334
|
+
"outputs": [],
|
|
1335
|
+
"stateMutability": "nonpayable",
|
|
1336
|
+
"type": "function"
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
"inputs": [],
|
|
1340
|
+
"name": "oracle",
|
|
1341
|
+
"outputs": [
|
|
1342
|
+
{
|
|
1343
|
+
"internalType": "address",
|
|
1344
|
+
"name": "",
|
|
1345
|
+
"type": "address"
|
|
1346
|
+
}
|
|
1347
|
+
],
|
|
1348
|
+
"stateMutability": "view",
|
|
1349
|
+
"type": "function"
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
"inputs": [],
|
|
1353
|
+
"name": "oracleContract",
|
|
1354
|
+
"outputs": [
|
|
1355
|
+
{
|
|
1356
|
+
"internalType": "contract IOracle",
|
|
1357
|
+
"name": "",
|
|
1358
|
+
"type": "address"
|
|
1359
|
+
}
|
|
1360
|
+
],
|
|
1361
|
+
"stateMutability": "view",
|
|
1362
|
+
"type": "function"
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
"inputs": [],
|
|
1366
|
+
"name": "pause",
|
|
1367
|
+
"outputs": [],
|
|
1368
|
+
"stateMutability": "nonpayable",
|
|
1369
|
+
"type": "function"
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
"inputs": [],
|
|
1373
|
+
"name": "paused",
|
|
1374
|
+
"outputs": [
|
|
1375
|
+
{
|
|
1376
|
+
"internalType": "bool",
|
|
1377
|
+
"name": "",
|
|
1378
|
+
"type": "bool"
|
|
1379
|
+
}
|
|
1380
|
+
],
|
|
1381
|
+
"stateMutability": "view",
|
|
1382
|
+
"type": "function"
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
"inputs": [],
|
|
1386
|
+
"name": "pendingDepositTotal",
|
|
1387
|
+
"outputs": [
|
|
1388
|
+
{
|
|
1389
|
+
"internalType": "uint256",
|
|
1390
|
+
"name": "",
|
|
1391
|
+
"type": "uint256"
|
|
1392
|
+
}
|
|
1393
|
+
],
|
|
1394
|
+
"stateMutability": "view",
|
|
1395
|
+
"type": "function"
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
"inputs": [],
|
|
1399
|
+
"name": "pendingSettlementWithdrawShares",
|
|
1400
|
+
"outputs": [
|
|
1401
|
+
{
|
|
1402
|
+
"internalType": "uint256",
|
|
1403
|
+
"name": "",
|
|
1404
|
+
"type": "uint256"
|
|
1405
|
+
}
|
|
1406
|
+
],
|
|
1407
|
+
"stateMutability": "view",
|
|
1408
|
+
"type": "function"
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
"inputs": [],
|
|
1412
|
+
"name": "pendingWithdrawShares",
|
|
1413
|
+
"outputs": [
|
|
1414
|
+
{
|
|
1415
|
+
"internalType": "uint256",
|
|
1416
|
+
"name": "",
|
|
1417
|
+
"type": "uint256"
|
|
1418
|
+
}
|
|
1419
|
+
],
|
|
1420
|
+
"stateMutability": "view",
|
|
1421
|
+
"type": "function"
|
|
1422
|
+
},
|
|
1423
|
+
{
|
|
1424
|
+
"inputs": [],
|
|
1425
|
+
"name": "performanceFee",
|
|
1426
|
+
"outputs": [
|
|
1427
|
+
{
|
|
1428
|
+
"internalType": "uint256",
|
|
1429
|
+
"name": "",
|
|
1430
|
+
"type": "uint256"
|
|
1431
|
+
}
|
|
1432
|
+
],
|
|
1433
|
+
"stateMutability": "view",
|
|
1434
|
+
"type": "function"
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
"inputs": [
|
|
1438
|
+
{
|
|
1439
|
+
"internalType": "uint256",
|
|
1440
|
+
"name": "assets",
|
|
1441
|
+
"type": "uint256"
|
|
1442
|
+
}
|
|
1443
|
+
],
|
|
1444
|
+
"name": "previewDeposit",
|
|
1445
|
+
"outputs": [
|
|
1446
|
+
{
|
|
1447
|
+
"internalType": "uint256",
|
|
1448
|
+
"name": "",
|
|
1449
|
+
"type": "uint256"
|
|
1450
|
+
}
|
|
1451
|
+
],
|
|
1452
|
+
"stateMutability": "view",
|
|
1453
|
+
"type": "function"
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
"inputs": [
|
|
1457
|
+
{
|
|
1458
|
+
"internalType": "uint256",
|
|
1459
|
+
"name": "sharesIn",
|
|
1460
|
+
"type": "uint256"
|
|
1461
|
+
},
|
|
1462
|
+
{
|
|
1463
|
+
"internalType": "address",
|
|
1464
|
+
"name": "owner",
|
|
1465
|
+
"type": "address"
|
|
1466
|
+
}
|
|
1467
|
+
],
|
|
1468
|
+
"name": "previewWithdraw",
|
|
1469
|
+
"outputs": [
|
|
1470
|
+
{
|
|
1471
|
+
"internalType": "uint256",
|
|
1472
|
+
"name": "estimatedAssets",
|
|
1473
|
+
"type": "uint256"
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
"internalType": "uint256",
|
|
1477
|
+
"name": "estimatedFee",
|
|
1478
|
+
"type": "uint256"
|
|
1479
|
+
}
|
|
1480
|
+
],
|
|
1481
|
+
"stateMutability": "view",
|
|
1482
|
+
"type": "function"
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
"inputs": [],
|
|
1486
|
+
"name": "pricePerShare",
|
|
1487
|
+
"outputs": [
|
|
1488
|
+
{
|
|
1489
|
+
"internalType": "uint256",
|
|
1490
|
+
"name": "",
|
|
1491
|
+
"type": "uint256"
|
|
1492
|
+
}
|
|
1493
|
+
],
|
|
1494
|
+
"stateMutability": "view",
|
|
1495
|
+
"type": "function"
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
"inputs": [],
|
|
1499
|
+
"name": "queueLength",
|
|
1500
|
+
"outputs": [
|
|
1501
|
+
{
|
|
1502
|
+
"internalType": "uint256",
|
|
1503
|
+
"name": "",
|
|
1504
|
+
"type": "uint256"
|
|
1505
|
+
}
|
|
1506
|
+
],
|
|
1507
|
+
"stateMutability": "view",
|
|
1508
|
+
"type": "function"
|
|
1509
|
+
},
|
|
1510
|
+
{
|
|
1511
|
+
"inputs": [
|
|
1512
|
+
{
|
|
1513
|
+
"internalType": "address[]",
|
|
1514
|
+
"name": "targets",
|
|
1515
|
+
"type": "address[]"
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
"internalType": "bytes[]",
|
|
1519
|
+
"name": "calldatas",
|
|
1520
|
+
"type": "bytes[]"
|
|
1521
|
+
}
|
|
1522
|
+
],
|
|
1523
|
+
"name": "rebalance",
|
|
1524
|
+
"outputs": [],
|
|
1525
|
+
"stateMutability": "nonpayable",
|
|
1526
|
+
"type": "function"
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
"inputs": [
|
|
1530
|
+
{
|
|
1531
|
+
"internalType": "address",
|
|
1532
|
+
"name": "token",
|
|
1533
|
+
"type": "address"
|
|
1534
|
+
}
|
|
1535
|
+
],
|
|
1536
|
+
"name": "removeTrackedToken",
|
|
1537
|
+
"outputs": [],
|
|
1538
|
+
"stateMutability": "nonpayable",
|
|
1539
|
+
"type": "function"
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
"inputs": [
|
|
1543
|
+
{
|
|
1544
|
+
"internalType": "bytes32",
|
|
1545
|
+
"name": "role",
|
|
1546
|
+
"type": "bytes32"
|
|
1547
|
+
},
|
|
1548
|
+
{
|
|
1549
|
+
"internalType": "address",
|
|
1550
|
+
"name": "callerConfirmation",
|
|
1551
|
+
"type": "address"
|
|
1552
|
+
}
|
|
1553
|
+
],
|
|
1554
|
+
"name": "renounceRole",
|
|
1555
|
+
"outputs": [],
|
|
1556
|
+
"stateMutability": "nonpayable",
|
|
1557
|
+
"type": "function"
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
"inputs": [
|
|
1561
|
+
{
|
|
1562
|
+
"internalType": "uint256",
|
|
1563
|
+
"name": "assets",
|
|
1564
|
+
"type": "uint256"
|
|
1565
|
+
}
|
|
1566
|
+
],
|
|
1567
|
+
"name": "requestDeposit",
|
|
1568
|
+
"outputs": [
|
|
1569
|
+
{
|
|
1570
|
+
"internalType": "uint256",
|
|
1571
|
+
"name": "depositId",
|
|
1572
|
+
"type": "uint256"
|
|
911
1573
|
}
|
|
912
1574
|
],
|
|
913
|
-
"name": "fetchBatch",
|
|
914
|
-
"outputs": [],
|
|
915
1575
|
"stateMutability": "nonpayable",
|
|
916
1576
|
"type": "function"
|
|
917
1577
|
},
|
|
918
1578
|
{
|
|
919
|
-
"inputs": [
|
|
920
|
-
|
|
1579
|
+
"inputs": [
|
|
1580
|
+
{
|
|
1581
|
+
"internalType": "uint256",
|
|
1582
|
+
"name": "assets",
|
|
1583
|
+
"type": "uint256"
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
"internalType": "address",
|
|
1587
|
+
"name": "recipient",
|
|
1588
|
+
"type": "address"
|
|
1589
|
+
}
|
|
1590
|
+
],
|
|
1591
|
+
"name": "requestDepositFor",
|
|
921
1592
|
"outputs": [
|
|
922
1593
|
{
|
|
923
|
-
"internalType": "
|
|
924
|
-
"name": "",
|
|
925
|
-
"type": "
|
|
1594
|
+
"internalType": "uint256",
|
|
1595
|
+
"name": "depositId",
|
|
1596
|
+
"type": "uint256"
|
|
926
1597
|
}
|
|
927
1598
|
],
|
|
928
|
-
"stateMutability": "
|
|
1599
|
+
"stateMutability": "nonpayable",
|
|
929
1600
|
"type": "function"
|
|
930
1601
|
},
|
|
931
1602
|
{
|
|
932
|
-
"inputs": [
|
|
933
|
-
|
|
1603
|
+
"inputs": [
|
|
1604
|
+
{
|
|
1605
|
+
"internalType": "uint256",
|
|
1606
|
+
"name": "sharesIn",
|
|
1607
|
+
"type": "uint256"
|
|
1608
|
+
}
|
|
1609
|
+
],
|
|
1610
|
+
"name": "requestWithdraw",
|
|
934
1611
|
"outputs": [
|
|
935
1612
|
{
|
|
936
|
-
"internalType": "
|
|
937
|
-
"name": "",
|
|
938
|
-
"type": "
|
|
1613
|
+
"internalType": "uint256",
|
|
1614
|
+
"name": "requestId",
|
|
1615
|
+
"type": "uint256"
|
|
939
1616
|
}
|
|
940
1617
|
],
|
|
941
|
-
"stateMutability": "
|
|
1618
|
+
"stateMutability": "nonpayable",
|
|
942
1619
|
"type": "function"
|
|
943
1620
|
},
|
|
944
1621
|
{
|
|
945
|
-
"inputs": [
|
|
946
|
-
|
|
947
|
-
|
|
1622
|
+
"inputs": [
|
|
1623
|
+
{
|
|
1624
|
+
"internalType": "bytes32",
|
|
1625
|
+
"name": "role",
|
|
1626
|
+
"type": "bytes32"
|
|
1627
|
+
},
|
|
948
1628
|
{
|
|
949
1629
|
"internalType": "address",
|
|
950
|
-
"name": "",
|
|
1630
|
+
"name": "account",
|
|
951
1631
|
"type": "address"
|
|
952
1632
|
}
|
|
953
1633
|
],
|
|
954
|
-
"
|
|
1634
|
+
"name": "revokeRole",
|
|
1635
|
+
"outputs": [],
|
|
1636
|
+
"stateMutability": "nonpayable",
|
|
955
1637
|
"type": "function"
|
|
956
1638
|
},
|
|
957
1639
|
{
|
|
958
|
-
"inputs": [
|
|
959
|
-
"name": "getKeyManager",
|
|
960
|
-
"outputs": [
|
|
1640
|
+
"inputs": [
|
|
961
1641
|
{
|
|
962
|
-
"internalType": "
|
|
963
|
-
"name": "",
|
|
1642
|
+
"internalType": "address",
|
|
1643
|
+
"name": "recipient",
|
|
964
1644
|
"type": "address"
|
|
965
1645
|
}
|
|
966
1646
|
],
|
|
967
|
-
"
|
|
1647
|
+
"name": "setFeeRecipient",
|
|
1648
|
+
"outputs": [],
|
|
1649
|
+
"stateMutability": "nonpayable",
|
|
968
1650
|
"type": "function"
|
|
969
1651
|
},
|
|
970
1652
|
{
|
|
971
|
-
"inputs": [
|
|
972
|
-
"name": "getSuspendedState",
|
|
973
|
-
"outputs": [
|
|
1653
|
+
"inputs": [
|
|
974
1654
|
{
|
|
975
|
-
"internalType": "
|
|
976
|
-
"name": "",
|
|
977
|
-
"type": "
|
|
1655
|
+
"internalType": "uint256",
|
|
1656
|
+
"name": "size",
|
|
1657
|
+
"type": "uint256"
|
|
978
1658
|
}
|
|
979
1659
|
],
|
|
980
|
-
"
|
|
1660
|
+
"name": "setMaxSettlementBatchSize",
|
|
1661
|
+
"outputs": [],
|
|
1662
|
+
"stateMutability": "nonpayable",
|
|
981
1663
|
"type": "function"
|
|
982
1664
|
},
|
|
983
1665
|
{
|
|
984
1666
|
"inputs": [
|
|
985
1667
|
{
|
|
986
|
-
"internalType": "
|
|
987
|
-
"name": "
|
|
988
|
-
"type": "
|
|
1668
|
+
"internalType": "uint256",
|
|
1669
|
+
"name": "amount",
|
|
1670
|
+
"type": "uint256"
|
|
989
1671
|
}
|
|
990
1672
|
],
|
|
991
|
-
"name": "
|
|
1673
|
+
"name": "setMinDepositAssets",
|
|
992
1674
|
"outputs": [],
|
|
993
1675
|
"stateMutability": "nonpayable",
|
|
994
1676
|
"type": "function"
|
|
995
1677
|
},
|
|
996
1678
|
{
|
|
997
|
-
"inputs": [
|
|
998
|
-
|
|
1679
|
+
"inputs": [
|
|
1680
|
+
{
|
|
1681
|
+
"internalType": "contract IOracle",
|
|
1682
|
+
"name": "_oracle",
|
|
1683
|
+
"type": "address"
|
|
1684
|
+
}
|
|
1685
|
+
],
|
|
1686
|
+
"name": "setOracle",
|
|
999
1687
|
"outputs": [],
|
|
1000
1688
|
"stateMutability": "nonpayable",
|
|
1001
1689
|
"type": "function"
|
|
1002
1690
|
},
|
|
1003
1691
|
{
|
|
1004
|
-
"inputs": [
|
|
1005
|
-
|
|
1692
|
+
"inputs": [
|
|
1693
|
+
{
|
|
1694
|
+
"internalType": "uint256",
|
|
1695
|
+
"name": "feeBps",
|
|
1696
|
+
"type": "uint256"
|
|
1697
|
+
}
|
|
1698
|
+
],
|
|
1699
|
+
"name": "setPerformanceFee",
|
|
1006
1700
|
"outputs": [],
|
|
1007
1701
|
"stateMutability": "nonpayable",
|
|
1008
1702
|
"type": "function"
|
|
@@ -1010,51 +1704,12 @@ exports.Vault_jsonAbi = [
|
|
|
1010
1704
|
{
|
|
1011
1705
|
"inputs": [
|
|
1012
1706
|
{
|
|
1013
|
-
"
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
"name": "sig",
|
|
1017
|
-
"type": "uint256"
|
|
1018
|
-
},
|
|
1019
|
-
{
|
|
1020
|
-
"internalType": "uint256",
|
|
1021
|
-
"name": "nonce",
|
|
1022
|
-
"type": "uint256"
|
|
1023
|
-
},
|
|
1024
|
-
{
|
|
1025
|
-
"internalType": "address",
|
|
1026
|
-
"name": "kTimesGAddress",
|
|
1027
|
-
"type": "address"
|
|
1028
|
-
}
|
|
1029
|
-
],
|
|
1030
|
-
"internalType": "struct IShared.SigData",
|
|
1031
|
-
"name": "sigData",
|
|
1032
|
-
"type": "tuple"
|
|
1033
|
-
},
|
|
1034
|
-
{
|
|
1035
|
-
"components": [
|
|
1036
|
-
{
|
|
1037
|
-
"internalType": "address",
|
|
1038
|
-
"name": "token",
|
|
1039
|
-
"type": "address"
|
|
1040
|
-
},
|
|
1041
|
-
{
|
|
1042
|
-
"internalType": "address payable",
|
|
1043
|
-
"name": "recipient",
|
|
1044
|
-
"type": "address"
|
|
1045
|
-
},
|
|
1046
|
-
{
|
|
1047
|
-
"internalType": "uint256",
|
|
1048
|
-
"name": "amount",
|
|
1049
|
-
"type": "uint256"
|
|
1050
|
-
}
|
|
1051
|
-
],
|
|
1052
|
-
"internalType": "struct IShared.TransferParams",
|
|
1053
|
-
"name": "transferParams",
|
|
1054
|
-
"type": "tuple"
|
|
1707
|
+
"internalType": "uint256",
|
|
1708
|
+
"name": "fee",
|
|
1709
|
+
"type": "uint256"
|
|
1055
1710
|
}
|
|
1056
1711
|
],
|
|
1057
|
-
"name": "
|
|
1712
|
+
"name": "setSettlementFee",
|
|
1058
1713
|
"outputs": [],
|
|
1059
1714
|
"stateMutability": "nonpayable",
|
|
1060
1715
|
"type": "function"
|
|
@@ -1062,51 +1717,17 @@ exports.Vault_jsonAbi = [
|
|
|
1062
1717
|
{
|
|
1063
1718
|
"inputs": [
|
|
1064
1719
|
{
|
|
1065
|
-
"
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
"name": "sig",
|
|
1069
|
-
"type": "uint256"
|
|
1070
|
-
},
|
|
1071
|
-
{
|
|
1072
|
-
"internalType": "uint256",
|
|
1073
|
-
"name": "nonce",
|
|
1074
|
-
"type": "uint256"
|
|
1075
|
-
},
|
|
1076
|
-
{
|
|
1077
|
-
"internalType": "address",
|
|
1078
|
-
"name": "kTimesGAddress",
|
|
1079
|
-
"type": "address"
|
|
1080
|
-
}
|
|
1081
|
-
],
|
|
1082
|
-
"internalType": "struct IShared.SigData",
|
|
1083
|
-
"name": "sigData",
|
|
1084
|
-
"type": "tuple"
|
|
1720
|
+
"internalType": "address",
|
|
1721
|
+
"name": "target",
|
|
1722
|
+
"type": "address"
|
|
1085
1723
|
},
|
|
1086
1724
|
{
|
|
1087
|
-
"
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
"name": "token",
|
|
1091
|
-
"type": "address"
|
|
1092
|
-
},
|
|
1093
|
-
{
|
|
1094
|
-
"internalType": "address payable",
|
|
1095
|
-
"name": "recipient",
|
|
1096
|
-
"type": "address"
|
|
1097
|
-
},
|
|
1098
|
-
{
|
|
1099
|
-
"internalType": "uint256",
|
|
1100
|
-
"name": "amount",
|
|
1101
|
-
"type": "uint256"
|
|
1102
|
-
}
|
|
1103
|
-
],
|
|
1104
|
-
"internalType": "struct IShared.TransferParams[]",
|
|
1105
|
-
"name": "transferParamsArray",
|
|
1106
|
-
"type": "tuple[]"
|
|
1725
|
+
"internalType": "bool",
|
|
1726
|
+
"name": "allowed",
|
|
1727
|
+
"type": "bool"
|
|
1107
1728
|
}
|
|
1108
1729
|
],
|
|
1109
|
-
"name": "
|
|
1730
|
+
"name": "setTargetAllowed",
|
|
1110
1731
|
"outputs": [],
|
|
1111
1732
|
"stateMutability": "nonpayable",
|
|
1112
1733
|
"type": "function"
|
|
@@ -1114,177 +1735,159 @@ exports.Vault_jsonAbi = [
|
|
|
1114
1735
|
{
|
|
1115
1736
|
"inputs": [
|
|
1116
1737
|
{
|
|
1117
|
-
"
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
"name": "sig",
|
|
1121
|
-
"type": "uint256"
|
|
1122
|
-
},
|
|
1123
|
-
{
|
|
1124
|
-
"internalType": "uint256",
|
|
1125
|
-
"name": "nonce",
|
|
1126
|
-
"type": "uint256"
|
|
1127
|
-
},
|
|
1128
|
-
{
|
|
1129
|
-
"internalType": "address",
|
|
1130
|
-
"name": "kTimesGAddress",
|
|
1131
|
-
"type": "address"
|
|
1132
|
-
}
|
|
1133
|
-
],
|
|
1134
|
-
"internalType": "struct IShared.SigData",
|
|
1135
|
-
"name": "sigData",
|
|
1136
|
-
"type": "tuple"
|
|
1738
|
+
"internalType": "address[]",
|
|
1739
|
+
"name": "tokens",
|
|
1740
|
+
"type": "address[]"
|
|
1137
1741
|
},
|
|
1138
1742
|
{
|
|
1139
|
-
"
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
"name": "token",
|
|
1143
|
-
"type": "address"
|
|
1144
|
-
},
|
|
1145
|
-
{
|
|
1146
|
-
"internalType": "address payable",
|
|
1147
|
-
"name": "recipient",
|
|
1148
|
-
"type": "address"
|
|
1149
|
-
},
|
|
1150
|
-
{
|
|
1151
|
-
"internalType": "uint256",
|
|
1152
|
-
"name": "amount",
|
|
1153
|
-
"type": "uint256"
|
|
1154
|
-
}
|
|
1155
|
-
],
|
|
1156
|
-
"internalType": "struct IShared.TransferParams",
|
|
1157
|
-
"name": "transferParams",
|
|
1158
|
-
"type": "tuple"
|
|
1743
|
+
"internalType": "uint128[]",
|
|
1744
|
+
"name": "prices",
|
|
1745
|
+
"type": "uint128[]"
|
|
1159
1746
|
}
|
|
1160
1747
|
],
|
|
1161
|
-
"name": "
|
|
1748
|
+
"name": "settle",
|
|
1162
1749
|
"outputs": [],
|
|
1163
1750
|
"stateMutability": "nonpayable",
|
|
1164
1751
|
"type": "function"
|
|
1165
1752
|
},
|
|
1753
|
+
{
|
|
1754
|
+
"inputs": [],
|
|
1755
|
+
"name": "settledWithdrawalLiabilityTotal",
|
|
1756
|
+
"outputs": [
|
|
1757
|
+
{
|
|
1758
|
+
"internalType": "uint256",
|
|
1759
|
+
"name": "",
|
|
1760
|
+
"type": "uint256"
|
|
1761
|
+
}
|
|
1762
|
+
],
|
|
1763
|
+
"stateMutability": "view",
|
|
1764
|
+
"type": "function"
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
"inputs": [],
|
|
1768
|
+
"name": "settlementFeeAssets",
|
|
1769
|
+
"outputs": [
|
|
1770
|
+
{
|
|
1771
|
+
"internalType": "uint256",
|
|
1772
|
+
"name": "",
|
|
1773
|
+
"type": "uint256"
|
|
1774
|
+
}
|
|
1775
|
+
],
|
|
1776
|
+
"stateMutability": "view",
|
|
1777
|
+
"type": "function"
|
|
1778
|
+
},
|
|
1779
|
+
{
|
|
1780
|
+
"inputs": [],
|
|
1781
|
+
"name": "shareToken",
|
|
1782
|
+
"outputs": [
|
|
1783
|
+
{
|
|
1784
|
+
"internalType": "contract HPT",
|
|
1785
|
+
"name": "",
|
|
1786
|
+
"type": "address"
|
|
1787
|
+
}
|
|
1788
|
+
],
|
|
1789
|
+
"stateMutability": "view",
|
|
1790
|
+
"type": "function"
|
|
1791
|
+
},
|
|
1792
|
+
{
|
|
1793
|
+
"inputs": [],
|
|
1794
|
+
"name": "shares",
|
|
1795
|
+
"outputs": [
|
|
1796
|
+
{
|
|
1797
|
+
"internalType": "address",
|
|
1798
|
+
"name": "",
|
|
1799
|
+
"type": "address"
|
|
1800
|
+
}
|
|
1801
|
+
],
|
|
1802
|
+
"stateMutability": "view",
|
|
1803
|
+
"type": "function"
|
|
1804
|
+
},
|
|
1166
1805
|
{
|
|
1167
1806
|
"inputs": [
|
|
1168
1807
|
{
|
|
1169
|
-
"
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
"name": "sigData",
|
|
1188
|
-
"type": "tuple"
|
|
1189
|
-
},
|
|
1808
|
+
"internalType": "bytes4",
|
|
1809
|
+
"name": "interfaceId",
|
|
1810
|
+
"type": "bytes4"
|
|
1811
|
+
}
|
|
1812
|
+
],
|
|
1813
|
+
"name": "supportsInterface",
|
|
1814
|
+
"outputs": [
|
|
1815
|
+
{
|
|
1816
|
+
"internalType": "bool",
|
|
1817
|
+
"name": "",
|
|
1818
|
+
"type": "bool"
|
|
1819
|
+
}
|
|
1820
|
+
],
|
|
1821
|
+
"stateMutability": "view",
|
|
1822
|
+
"type": "function"
|
|
1823
|
+
},
|
|
1824
|
+
{
|
|
1825
|
+
"inputs": [
|
|
1190
1826
|
{
|
|
1191
|
-
"internalType": "
|
|
1192
|
-
"name": "
|
|
1827
|
+
"internalType": "address",
|
|
1828
|
+
"name": "",
|
|
1193
1829
|
"type": "address"
|
|
1194
|
-
}
|
|
1830
|
+
}
|
|
1831
|
+
],
|
|
1832
|
+
"name": "targetAllowed",
|
|
1833
|
+
"outputs": [
|
|
1195
1834
|
{
|
|
1196
1835
|
"internalType": "bool",
|
|
1197
|
-
"name": "
|
|
1836
|
+
"name": "",
|
|
1198
1837
|
"type": "bool"
|
|
1199
1838
|
}
|
|
1200
1839
|
],
|
|
1201
|
-
"
|
|
1202
|
-
"outputs": [],
|
|
1203
|
-
"stateMutability": "nonpayable",
|
|
1840
|
+
"stateMutability": "view",
|
|
1204
1841
|
"type": "function"
|
|
1205
1842
|
},
|
|
1206
1843
|
{
|
|
1207
1844
|
"inputs": [
|
|
1208
1845
|
{
|
|
1209
|
-
"internalType": "
|
|
1210
|
-
"name": "
|
|
1211
|
-
"type": "
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
"type": "bytes"
|
|
1217
|
-
},
|
|
1218
|
-
{
|
|
1219
|
-
"internalType": "uint32",
|
|
1220
|
-
"name": "dstToken",
|
|
1221
|
-
"type": "uint32"
|
|
1222
|
-
},
|
|
1223
|
-
{
|
|
1224
|
-
"internalType": "bytes",
|
|
1225
|
-
"name": "message",
|
|
1226
|
-
"type": "bytes"
|
|
1227
|
-
},
|
|
1228
|
-
{
|
|
1229
|
-
"internalType": "uint256",
|
|
1230
|
-
"name": "gasAmount",
|
|
1231
|
-
"type": "uint256"
|
|
1232
|
-
},
|
|
1846
|
+
"internalType": "address",
|
|
1847
|
+
"name": "",
|
|
1848
|
+
"type": "address"
|
|
1849
|
+
}
|
|
1850
|
+
],
|
|
1851
|
+
"name": "tokenDecimals",
|
|
1852
|
+
"outputs": [
|
|
1233
1853
|
{
|
|
1234
|
-
"internalType": "
|
|
1235
|
-
"name": "
|
|
1236
|
-
"type": "
|
|
1854
|
+
"internalType": "uint8",
|
|
1855
|
+
"name": "",
|
|
1856
|
+
"type": "uint8"
|
|
1237
1857
|
}
|
|
1238
1858
|
],
|
|
1239
|
-
"
|
|
1240
|
-
"outputs": [],
|
|
1241
|
-
"stateMutability": "payable",
|
|
1859
|
+
"stateMutability": "view",
|
|
1242
1860
|
"type": "function"
|
|
1243
1861
|
},
|
|
1244
1862
|
{
|
|
1245
|
-
"inputs": [
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
"name": "dstChain",
|
|
1249
|
-
"type": "uint32"
|
|
1250
|
-
},
|
|
1251
|
-
{
|
|
1252
|
-
"internalType": "bytes",
|
|
1253
|
-
"name": "dstAddress",
|
|
1254
|
-
"type": "bytes"
|
|
1255
|
-
},
|
|
1256
|
-
{
|
|
1257
|
-
"internalType": "uint32",
|
|
1258
|
-
"name": "dstToken",
|
|
1259
|
-
"type": "uint32"
|
|
1260
|
-
},
|
|
1261
|
-
{
|
|
1262
|
-
"internalType": "bytes",
|
|
1263
|
-
"name": "message",
|
|
1264
|
-
"type": "bytes"
|
|
1265
|
-
},
|
|
1266
|
-
{
|
|
1267
|
-
"internalType": "uint256",
|
|
1268
|
-
"name": "gasAmount",
|
|
1269
|
-
"type": "uint256"
|
|
1270
|
-
},
|
|
1271
|
-
{
|
|
1272
|
-
"internalType": "contract IERC20",
|
|
1273
|
-
"name": "srcToken",
|
|
1274
|
-
"type": "address"
|
|
1275
|
-
},
|
|
1863
|
+
"inputs": [],
|
|
1864
|
+
"name": "totalAssets",
|
|
1865
|
+
"outputs": [
|
|
1276
1866
|
{
|
|
1277
1867
|
"internalType": "uint256",
|
|
1278
|
-
"name": "
|
|
1868
|
+
"name": "",
|
|
1279
1869
|
"type": "uint256"
|
|
1280
|
-
}
|
|
1870
|
+
}
|
|
1871
|
+
],
|
|
1872
|
+
"stateMutability": "view",
|
|
1873
|
+
"type": "function"
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
"inputs": [],
|
|
1877
|
+
"name": "trackedTokens",
|
|
1878
|
+
"outputs": [
|
|
1281
1879
|
{
|
|
1282
|
-
"internalType": "
|
|
1283
|
-
"name": "
|
|
1284
|
-
"type": "
|
|
1880
|
+
"internalType": "address[]",
|
|
1881
|
+
"name": "",
|
|
1882
|
+
"type": "address[]"
|
|
1285
1883
|
}
|
|
1286
1884
|
],
|
|
1287
|
-
"
|
|
1885
|
+
"stateMutability": "view",
|
|
1886
|
+
"type": "function"
|
|
1887
|
+
},
|
|
1888
|
+
{
|
|
1889
|
+
"inputs": [],
|
|
1890
|
+
"name": "unpause",
|
|
1288
1891
|
"outputs": [],
|
|
1289
1892
|
"stateMutability": "nonpayable",
|
|
1290
1893
|
"type": "function"
|
|
@@ -1292,72 +1895,40 @@ exports.Vault_jsonAbi = [
|
|
|
1292
1895
|
{
|
|
1293
1896
|
"inputs": [
|
|
1294
1897
|
{
|
|
1295
|
-
"internalType": "
|
|
1296
|
-
"name": "
|
|
1297
|
-
"type": "
|
|
1298
|
-
}
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
"type": "bytes"
|
|
1303
|
-
},
|
|
1304
|
-
{
|
|
1305
|
-
"internalType": "uint32",
|
|
1306
|
-
"name": "dstToken",
|
|
1307
|
-
"type": "uint32"
|
|
1308
|
-
},
|
|
1898
|
+
"internalType": "address",
|
|
1899
|
+
"name": "user",
|
|
1900
|
+
"type": "address"
|
|
1901
|
+
}
|
|
1902
|
+
],
|
|
1903
|
+
"name": "userDepositIds",
|
|
1904
|
+
"outputs": [
|
|
1309
1905
|
{
|
|
1310
|
-
"internalType": "
|
|
1311
|
-
"name": "
|
|
1312
|
-
"type": "
|
|
1906
|
+
"internalType": "uint256[]",
|
|
1907
|
+
"name": "",
|
|
1908
|
+
"type": "uint256[]"
|
|
1313
1909
|
}
|
|
1314
1910
|
],
|
|
1315
|
-
"
|
|
1316
|
-
"outputs": [],
|
|
1317
|
-
"stateMutability": "payable",
|
|
1911
|
+
"stateMutability": "view",
|
|
1318
1912
|
"type": "function"
|
|
1319
1913
|
},
|
|
1320
1914
|
{
|
|
1321
1915
|
"inputs": [
|
|
1322
1916
|
{
|
|
1323
|
-
"internalType": "
|
|
1324
|
-
"name": "
|
|
1325
|
-
"type": "uint32"
|
|
1326
|
-
},
|
|
1327
|
-
{
|
|
1328
|
-
"internalType": "bytes",
|
|
1329
|
-
"name": "dstAddress",
|
|
1330
|
-
"type": "bytes"
|
|
1331
|
-
},
|
|
1332
|
-
{
|
|
1333
|
-
"internalType": "uint32",
|
|
1334
|
-
"name": "dstToken",
|
|
1335
|
-
"type": "uint32"
|
|
1336
|
-
},
|
|
1337
|
-
{
|
|
1338
|
-
"internalType": "contract IERC20",
|
|
1339
|
-
"name": "srcToken",
|
|
1917
|
+
"internalType": "address",
|
|
1918
|
+
"name": "user",
|
|
1340
1919
|
"type": "address"
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
"type": "uint256"
|
|
1346
|
-
},
|
|
1920
|
+
}
|
|
1921
|
+
],
|
|
1922
|
+
"name": "userRequestIds",
|
|
1923
|
+
"outputs": [
|
|
1347
1924
|
{
|
|
1348
|
-
"internalType": "
|
|
1349
|
-
"name": "
|
|
1350
|
-
"type": "
|
|
1925
|
+
"internalType": "uint256[]",
|
|
1926
|
+
"name": "",
|
|
1927
|
+
"type": "uint256[]"
|
|
1351
1928
|
}
|
|
1352
1929
|
],
|
|
1353
|
-
"
|
|
1354
|
-
"outputs": [],
|
|
1355
|
-
"stateMutability": "nonpayable",
|
|
1930
|
+
"stateMutability": "view",
|
|
1356
1931
|
"type": "function"
|
|
1357
|
-
},
|
|
1358
|
-
{
|
|
1359
|
-
"stateMutability": "payable",
|
|
1360
|
-
"type": "receive"
|
|
1361
1932
|
}
|
|
1362
1933
|
];
|
|
1363
1934
|
/**
|
|
@@ -1406,293 +1977,632 @@ class Vault_json {
|
|
|
1406
1977
|
});
|
|
1407
1978
|
}
|
|
1408
1979
|
/**
|
|
1409
|
-
* Get the contract address
|
|
1980
|
+
* Get the contract address
|
|
1981
|
+
*/
|
|
1982
|
+
get address() {
|
|
1983
|
+
return this.contractAddress;
|
|
1984
|
+
}
|
|
1985
|
+
/**
|
|
1986
|
+
* Get the underlying viem contract instance
|
|
1987
|
+
*/
|
|
1988
|
+
getContract() {
|
|
1989
|
+
return this.contract;
|
|
1990
|
+
}
|
|
1991
|
+
/**
|
|
1992
|
+
* BOT_ROLE
|
|
1993
|
+
* view
|
|
1994
|
+
*/
|
|
1995
|
+
async BOT_ROLE() {
|
|
1996
|
+
return this.contract.read.BOT_ROLE();
|
|
1997
|
+
}
|
|
1998
|
+
/**
|
|
1999
|
+
* BPS
|
|
2000
|
+
* view
|
|
2001
|
+
*/
|
|
2002
|
+
async BPS() {
|
|
2003
|
+
return this.contract.read.BPS();
|
|
2004
|
+
}
|
|
2005
|
+
/**
|
|
2006
|
+
* DEFAULT_ADMIN_ROLE
|
|
2007
|
+
* view
|
|
2008
|
+
*/
|
|
2009
|
+
async DEFAULT_ADMIN_ROLE() {
|
|
2010
|
+
return this.contract.read.DEFAULT_ADMIN_ROLE();
|
|
2011
|
+
}
|
|
2012
|
+
/**
|
|
2013
|
+
* GUARDIAN_ROLE
|
|
2014
|
+
* view
|
|
2015
|
+
*/
|
|
2016
|
+
async GUARDIAN_ROLE() {
|
|
2017
|
+
return this.contract.read.GUARDIAN_ROLE();
|
|
2018
|
+
}
|
|
2019
|
+
/**
|
|
2020
|
+
* MANAGER_ROLE
|
|
2021
|
+
* view
|
|
2022
|
+
*/
|
|
2023
|
+
async MANAGER_ROLE() {
|
|
2024
|
+
return this.contract.read.MANAGER_ROLE();
|
|
2025
|
+
}
|
|
2026
|
+
/**
|
|
2027
|
+
* MAX_FEE_BPS
|
|
2028
|
+
* view
|
|
2029
|
+
*/
|
|
2030
|
+
async MAX_FEE_BPS() {
|
|
2031
|
+
return this.contract.read.MAX_FEE_BPS();
|
|
2032
|
+
}
|
|
2033
|
+
/**
|
|
2034
|
+
* SHARE_SCALE
|
|
2035
|
+
* view
|
|
2036
|
+
*/
|
|
2037
|
+
async SHARE_SCALE() {
|
|
2038
|
+
return this.contract.read.SHARE_SCALE();
|
|
2039
|
+
}
|
|
2040
|
+
/**
|
|
2041
|
+
* asset
|
|
2042
|
+
* view
|
|
2043
|
+
*/
|
|
2044
|
+
async asset() {
|
|
2045
|
+
return this.contract.read.asset();
|
|
2046
|
+
}
|
|
2047
|
+
/**
|
|
2048
|
+
* assetDecimals
|
|
2049
|
+
* view
|
|
2050
|
+
*/
|
|
2051
|
+
async assetDecimals() {
|
|
2052
|
+
return this.contract.read.assetDecimals();
|
|
2053
|
+
}
|
|
2054
|
+
/**
|
|
2055
|
+
* assetToken
|
|
2056
|
+
* view
|
|
2057
|
+
*/
|
|
2058
|
+
async assetToken() {
|
|
2059
|
+
return this.contract.read.assetToken();
|
|
2060
|
+
}
|
|
2061
|
+
/**
|
|
2062
|
+
* costBasisPerShare
|
|
2063
|
+
* view
|
|
2064
|
+
*/
|
|
2065
|
+
async costBasisPerShare(user) {
|
|
2066
|
+
return this.contract.read.costBasisPerShare([user]);
|
|
2067
|
+
}
|
|
2068
|
+
/**
|
|
2069
|
+
* costBasisValue
|
|
2070
|
+
* view
|
|
2071
|
+
*/
|
|
2072
|
+
async costBasisValue(arg0) {
|
|
2073
|
+
return this.contract.read.costBasisValue([arg0]);
|
|
2074
|
+
}
|
|
2075
|
+
/**
|
|
2076
|
+
* depositQueueLength
|
|
2077
|
+
* view
|
|
2078
|
+
*/
|
|
2079
|
+
async depositQueueLength() {
|
|
2080
|
+
return this.contract.read.depositQueueLength();
|
|
2081
|
+
}
|
|
2082
|
+
/**
|
|
2083
|
+
* feeRecipient
|
|
2084
|
+
* view
|
|
2085
|
+
*/
|
|
2086
|
+
async feeRecipient() {
|
|
2087
|
+
return this.contract.read.feeRecipient();
|
|
2088
|
+
}
|
|
2089
|
+
/**
|
|
2090
|
+
* getDepositRequest
|
|
2091
|
+
* view
|
|
2092
|
+
*/
|
|
2093
|
+
async getDepositRequest(depositId) {
|
|
2094
|
+
return this.contract.read.getDepositRequest([depositId]);
|
|
2095
|
+
}
|
|
2096
|
+
/**
|
|
2097
|
+
* getRequest
|
|
2098
|
+
* view
|
|
2099
|
+
*/
|
|
2100
|
+
async getRequest(requestId) {
|
|
2101
|
+
return this.contract.read.getRequest([requestId]);
|
|
2102
|
+
}
|
|
2103
|
+
/**
|
|
2104
|
+
* getRoleAdmin
|
|
2105
|
+
* view
|
|
2106
|
+
*/
|
|
2107
|
+
async getRoleAdmin(role) {
|
|
2108
|
+
return this.contract.read.getRoleAdmin([role]);
|
|
2109
|
+
}
|
|
2110
|
+
/**
|
|
2111
|
+
* hasRole
|
|
2112
|
+
* view
|
|
2113
|
+
*/
|
|
2114
|
+
async hasRole(role, account) {
|
|
2115
|
+
return this.contract.read.hasRole([role, account]);
|
|
2116
|
+
}
|
|
2117
|
+
/**
|
|
2118
|
+
* hasSettleReadyWork
|
|
2119
|
+
* view
|
|
2120
|
+
*/
|
|
2121
|
+
async hasSettleReadyWork() {
|
|
2122
|
+
return this.contract.read.hasSettleReadyWork();
|
|
2123
|
+
}
|
|
2124
|
+
/**
|
|
2125
|
+
* isTracked
|
|
2126
|
+
* view
|
|
2127
|
+
*/
|
|
2128
|
+
async isTracked(arg0) {
|
|
2129
|
+
return this.contract.read.isTracked([arg0]);
|
|
2130
|
+
}
|
|
2131
|
+
/**
|
|
2132
|
+
* maxSettlementBatchSize
|
|
2133
|
+
* view
|
|
2134
|
+
*/
|
|
2135
|
+
async maxSettlementBatchSize() {
|
|
2136
|
+
return this.contract.read.maxSettlementBatchSize();
|
|
2137
|
+
}
|
|
2138
|
+
/**
|
|
2139
|
+
* minDepositAssets
|
|
2140
|
+
* view
|
|
2141
|
+
*/
|
|
2142
|
+
async minDepositAssets() {
|
|
2143
|
+
return this.contract.read.minDepositAssets();
|
|
2144
|
+
}
|
|
2145
|
+
/**
|
|
2146
|
+
* oracle
|
|
2147
|
+
* view
|
|
2148
|
+
*/
|
|
2149
|
+
async oracle() {
|
|
2150
|
+
return this.contract.read.oracle();
|
|
2151
|
+
}
|
|
2152
|
+
/**
|
|
2153
|
+
* oracleContract
|
|
2154
|
+
* view
|
|
2155
|
+
*/
|
|
2156
|
+
async oracleContract() {
|
|
2157
|
+
return this.contract.read.oracleContract();
|
|
2158
|
+
}
|
|
2159
|
+
/**
|
|
2160
|
+
* paused
|
|
2161
|
+
* view
|
|
2162
|
+
*/
|
|
2163
|
+
async paused() {
|
|
2164
|
+
return this.contract.read.paused();
|
|
2165
|
+
}
|
|
2166
|
+
/**
|
|
2167
|
+
* pendingDepositTotal
|
|
2168
|
+
* view
|
|
2169
|
+
*/
|
|
2170
|
+
async pendingDepositTotal() {
|
|
2171
|
+
return this.contract.read.pendingDepositTotal();
|
|
2172
|
+
}
|
|
2173
|
+
/**
|
|
2174
|
+
* pendingSettlementWithdrawShares
|
|
2175
|
+
* view
|
|
2176
|
+
*/
|
|
2177
|
+
async pendingSettlementWithdrawShares() {
|
|
2178
|
+
return this.contract.read.pendingSettlementWithdrawShares();
|
|
2179
|
+
}
|
|
2180
|
+
/**
|
|
2181
|
+
* pendingWithdrawShares
|
|
2182
|
+
* view
|
|
2183
|
+
*/
|
|
2184
|
+
async pendingWithdrawShares() {
|
|
2185
|
+
return this.contract.read.pendingWithdrawShares();
|
|
2186
|
+
}
|
|
2187
|
+
/**
|
|
2188
|
+
* performanceFee
|
|
2189
|
+
* view
|
|
2190
|
+
*/
|
|
2191
|
+
async performanceFee() {
|
|
2192
|
+
return this.contract.read.performanceFee();
|
|
2193
|
+
}
|
|
2194
|
+
/**
|
|
2195
|
+
* previewDeposit
|
|
2196
|
+
* view
|
|
2197
|
+
*/
|
|
2198
|
+
async previewDeposit(assets) {
|
|
2199
|
+
return this.contract.read.previewDeposit([assets]);
|
|
2200
|
+
}
|
|
2201
|
+
/**
|
|
2202
|
+
* previewWithdraw
|
|
2203
|
+
* view
|
|
2204
|
+
*/
|
|
2205
|
+
async previewWithdraw(sharesIn, owner) {
|
|
2206
|
+
return this.contract.read.previewWithdraw([sharesIn, owner]);
|
|
2207
|
+
}
|
|
2208
|
+
/**
|
|
2209
|
+
* pricePerShare
|
|
2210
|
+
* view
|
|
2211
|
+
*/
|
|
2212
|
+
async pricePerShare() {
|
|
2213
|
+
return this.contract.read.pricePerShare();
|
|
2214
|
+
}
|
|
2215
|
+
/**
|
|
2216
|
+
* queueLength
|
|
2217
|
+
* view
|
|
2218
|
+
*/
|
|
2219
|
+
async queueLength() {
|
|
2220
|
+
return this.contract.read.queueLength();
|
|
2221
|
+
}
|
|
2222
|
+
/**
|
|
2223
|
+
* settledWithdrawalLiabilityTotal
|
|
2224
|
+
* view
|
|
2225
|
+
*/
|
|
2226
|
+
async settledWithdrawalLiabilityTotal() {
|
|
2227
|
+
return this.contract.read.settledWithdrawalLiabilityTotal();
|
|
2228
|
+
}
|
|
2229
|
+
/**
|
|
2230
|
+
* settlementFeeAssets
|
|
2231
|
+
* view
|
|
2232
|
+
*/
|
|
2233
|
+
async settlementFeeAssets() {
|
|
2234
|
+
return this.contract.read.settlementFeeAssets();
|
|
2235
|
+
}
|
|
2236
|
+
/**
|
|
2237
|
+
* shareToken
|
|
2238
|
+
* view
|
|
1410
2239
|
*/
|
|
1411
|
-
|
|
1412
|
-
return this.
|
|
2240
|
+
async shareToken() {
|
|
2241
|
+
return this.contract.read.shareToken();
|
|
1413
2242
|
}
|
|
1414
2243
|
/**
|
|
1415
|
-
*
|
|
2244
|
+
* shares
|
|
2245
|
+
* view
|
|
1416
2246
|
*/
|
|
1417
|
-
|
|
1418
|
-
return this.contract;
|
|
2247
|
+
async shares() {
|
|
2248
|
+
return this.contract.read.shares();
|
|
2249
|
+
}
|
|
2250
|
+
/**
|
|
2251
|
+
* supportsInterface
|
|
2252
|
+
* view
|
|
2253
|
+
*/
|
|
2254
|
+
async supportsInterface(interfaceId) {
|
|
2255
|
+
return this.contract.read.supportsInterface([interfaceId]);
|
|
2256
|
+
}
|
|
2257
|
+
/**
|
|
2258
|
+
* targetAllowed
|
|
2259
|
+
* view
|
|
2260
|
+
*/
|
|
2261
|
+
async targetAllowed(arg0) {
|
|
2262
|
+
return this.contract.read.targetAllowed([arg0]);
|
|
1419
2263
|
}
|
|
1420
2264
|
/**
|
|
1421
|
-
*
|
|
2265
|
+
* tokenDecimals
|
|
1422
2266
|
* view
|
|
1423
2267
|
*/
|
|
1424
|
-
async
|
|
1425
|
-
return this.contract.read.
|
|
2268
|
+
async tokenDecimals(arg0) {
|
|
2269
|
+
return this.contract.read.tokenDecimals([arg0]);
|
|
1426
2270
|
}
|
|
1427
2271
|
/**
|
|
1428
|
-
*
|
|
2272
|
+
* totalAssets
|
|
1429
2273
|
* view
|
|
1430
2274
|
*/
|
|
1431
|
-
async
|
|
1432
|
-
return this.contract.read.
|
|
2275
|
+
async totalAssets() {
|
|
2276
|
+
return this.contract.read.totalAssets();
|
|
1433
2277
|
}
|
|
1434
2278
|
/**
|
|
1435
|
-
*
|
|
2279
|
+
* trackedTokens
|
|
1436
2280
|
* view
|
|
1437
2281
|
*/
|
|
1438
|
-
async
|
|
1439
|
-
return this.contract.read.
|
|
2282
|
+
async trackedTokens() {
|
|
2283
|
+
return this.contract.read.trackedTokens();
|
|
1440
2284
|
}
|
|
1441
2285
|
/**
|
|
1442
|
-
*
|
|
2286
|
+
* userDepositIds
|
|
1443
2287
|
* view
|
|
1444
2288
|
*/
|
|
1445
|
-
async
|
|
1446
|
-
return this.contract.read.
|
|
2289
|
+
async userDepositIds(user) {
|
|
2290
|
+
return this.contract.read.userDepositIds([user]);
|
|
1447
2291
|
}
|
|
1448
2292
|
/**
|
|
1449
|
-
*
|
|
2293
|
+
* userRequestIds
|
|
1450
2294
|
* view
|
|
1451
2295
|
*/
|
|
1452
|
-
async
|
|
1453
|
-
return this.contract.read.
|
|
2296
|
+
async userRequestIds(user) {
|
|
2297
|
+
return this.contract.read.userRequestIds([user]);
|
|
2298
|
+
}
|
|
2299
|
+
/**
|
|
2300
|
+
* addTrackedToken
|
|
2301
|
+
* nonpayable
|
|
2302
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2303
|
+
*/
|
|
2304
|
+
async addTrackedToken(token, options) {
|
|
2305
|
+
if (!this.contract.write) {
|
|
2306
|
+
throw new Error('Wallet client is required for write operations');
|
|
2307
|
+
}
|
|
2308
|
+
return this.contract.write.addTrackedToken([token], options);
|
|
2309
|
+
}
|
|
2310
|
+
/**
|
|
2311
|
+
* approveERC20
|
|
2312
|
+
* nonpayable
|
|
2313
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2314
|
+
*/
|
|
2315
|
+
async approveERC20(token, spender, amount, options) {
|
|
2316
|
+
if (!this.contract.write) {
|
|
2317
|
+
throw new Error('Wallet client is required for write operations');
|
|
2318
|
+
}
|
|
2319
|
+
return this.contract.write.approveERC20([token, spender, amount], options);
|
|
2320
|
+
}
|
|
2321
|
+
/**
|
|
2322
|
+
* approvePermit2
|
|
2323
|
+
* nonpayable
|
|
2324
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2325
|
+
*/
|
|
2326
|
+
async approvePermit2(permit2, token, spender, amount, expiration, options) {
|
|
2327
|
+
if (!this.contract.write) {
|
|
2328
|
+
throw new Error('Wallet client is required for write operations');
|
|
2329
|
+
}
|
|
2330
|
+
return this.contract.write.approvePermit2([permit2, token, spender, amount, expiration], options);
|
|
2331
|
+
}
|
|
2332
|
+
/**
|
|
2333
|
+
* cancelDepositRequest
|
|
2334
|
+
* nonpayable
|
|
2335
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2336
|
+
*/
|
|
2337
|
+
async cancelDepositRequest(depositId, options) {
|
|
2338
|
+
if (!this.contract.write) {
|
|
2339
|
+
throw new Error('Wallet client is required for write operations');
|
|
2340
|
+
}
|
|
2341
|
+
return this.contract.write.cancelDepositRequest([depositId], options);
|
|
2342
|
+
}
|
|
2343
|
+
/**
|
|
2344
|
+
* cancelPendingDeposits
|
|
2345
|
+
* nonpayable
|
|
2346
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2347
|
+
*/
|
|
2348
|
+
async cancelPendingDeposits(maxCount, options) {
|
|
2349
|
+
if (!this.contract.write) {
|
|
2350
|
+
throw new Error('Wallet client is required for write operations');
|
|
2351
|
+
}
|
|
2352
|
+
return this.contract.write.cancelPendingDeposits([maxCount], options);
|
|
2353
|
+
}
|
|
2354
|
+
/**
|
|
2355
|
+
* cancelWithdraw
|
|
2356
|
+
* nonpayable
|
|
2357
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2358
|
+
*/
|
|
2359
|
+
async cancelWithdraw(requestId, options) {
|
|
2360
|
+
if (!this.contract.write) {
|
|
2361
|
+
throw new Error('Wallet client is required for write operations');
|
|
2362
|
+
}
|
|
2363
|
+
return this.contract.write.cancelWithdraw([requestId], options);
|
|
1454
2364
|
}
|
|
1455
2365
|
/**
|
|
1456
|
-
*
|
|
1457
|
-
*
|
|
2366
|
+
* claimAndDeposit
|
|
2367
|
+
* nonpayable
|
|
1458
2368
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1459
2369
|
*/
|
|
1460
|
-
async
|
|
2370
|
+
async claimAndDeposit(requestId, newVault, options) {
|
|
1461
2371
|
if (!this.contract.write) {
|
|
1462
2372
|
throw new Error('Wallet client is required for write operations');
|
|
1463
2373
|
}
|
|
1464
|
-
return this.contract.write.
|
|
2374
|
+
return this.contract.write.claimAndDeposit([requestId, newVault], options);
|
|
1465
2375
|
}
|
|
1466
2376
|
/**
|
|
1467
|
-
*
|
|
2377
|
+
* claimWithdraw
|
|
1468
2378
|
* nonpayable
|
|
1469
2379
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1470
2380
|
*/
|
|
1471
|
-
async
|
|
2381
|
+
async claimWithdraw(requestId, options) {
|
|
1472
2382
|
if (!this.contract.write) {
|
|
1473
2383
|
throw new Error('Wallet client is required for write operations');
|
|
1474
2384
|
}
|
|
1475
|
-
return this.contract.write.
|
|
2385
|
+
return this.contract.write.claimWithdraw([requestId], options);
|
|
1476
2386
|
}
|
|
1477
2387
|
/**
|
|
1478
|
-
*
|
|
2388
|
+
* claimWithdrawTo
|
|
1479
2389
|
* nonpayable
|
|
1480
2390
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1481
2391
|
*/
|
|
1482
|
-
async
|
|
2392
|
+
async claimWithdrawTo(requestId, recipient, options) {
|
|
1483
2393
|
if (!this.contract.write) {
|
|
1484
2394
|
throw new Error('Wallet client is required for write operations');
|
|
1485
2395
|
}
|
|
1486
|
-
return this.contract.write.
|
|
2396
|
+
return this.contract.write.claimWithdrawTo([requestId, recipient], options);
|
|
1487
2397
|
}
|
|
1488
2398
|
/**
|
|
1489
|
-
*
|
|
2399
|
+
* grantRole
|
|
1490
2400
|
* nonpayable
|
|
1491
2401
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1492
2402
|
*/
|
|
1493
|
-
async
|
|
2403
|
+
async grantRole(role, account, options) {
|
|
1494
2404
|
if (!this.contract.write) {
|
|
1495
2405
|
throw new Error('Wallet client is required for write operations');
|
|
1496
2406
|
}
|
|
1497
|
-
return this.contract.write.
|
|
2407
|
+
return this.contract.write.grantRole([role, account], options);
|
|
1498
2408
|
}
|
|
1499
2409
|
/**
|
|
1500
|
-
*
|
|
2410
|
+
* onShareTransfer
|
|
1501
2411
|
* nonpayable
|
|
1502
2412
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1503
2413
|
*/
|
|
1504
|
-
async
|
|
2414
|
+
async onShareTransfer(from, to, value, options) {
|
|
1505
2415
|
if (!this.contract.write) {
|
|
1506
2416
|
throw new Error('Wallet client is required for write operations');
|
|
1507
2417
|
}
|
|
1508
|
-
return this.contract.write.
|
|
2418
|
+
return this.contract.write.onShareTransfer([from, to, value], options);
|
|
1509
2419
|
}
|
|
1510
2420
|
/**
|
|
1511
|
-
*
|
|
2421
|
+
* pause
|
|
1512
2422
|
* nonpayable
|
|
1513
2423
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1514
2424
|
*/
|
|
1515
|
-
async
|
|
2425
|
+
async pause(options) {
|
|
1516
2426
|
if (!this.contract.write) {
|
|
1517
2427
|
throw new Error('Wallet client is required for write operations');
|
|
1518
2428
|
}
|
|
1519
|
-
return this.contract.write.
|
|
2429
|
+
return this.contract.write.pause(options);
|
|
1520
2430
|
}
|
|
1521
2431
|
/**
|
|
1522
|
-
*
|
|
2432
|
+
* rebalance
|
|
1523
2433
|
* nonpayable
|
|
1524
2434
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1525
2435
|
*/
|
|
1526
|
-
async
|
|
2436
|
+
async rebalance(targets, calldatas, options) {
|
|
1527
2437
|
if (!this.contract.write) {
|
|
1528
2438
|
throw new Error('Wallet client is required for write operations');
|
|
1529
2439
|
}
|
|
1530
|
-
return this.contract.write.
|
|
2440
|
+
return this.contract.write.rebalance([targets, calldatas], options);
|
|
1531
2441
|
}
|
|
1532
2442
|
/**
|
|
1533
|
-
*
|
|
2443
|
+
* removeTrackedToken
|
|
1534
2444
|
* nonpayable
|
|
1535
2445
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1536
2446
|
*/
|
|
1537
|
-
async
|
|
2447
|
+
async removeTrackedToken(token, options) {
|
|
1538
2448
|
if (!this.contract.write) {
|
|
1539
2449
|
throw new Error('Wallet client is required for write operations');
|
|
1540
2450
|
}
|
|
1541
|
-
return this.contract.write.
|
|
2451
|
+
return this.contract.write.removeTrackedToken([token], options);
|
|
1542
2452
|
}
|
|
1543
2453
|
/**
|
|
1544
|
-
*
|
|
2454
|
+
* renounceRole
|
|
1545
2455
|
* nonpayable
|
|
1546
2456
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1547
2457
|
*/
|
|
1548
|
-
async
|
|
2458
|
+
async renounceRole(role, callerConfirmation, options) {
|
|
1549
2459
|
if (!this.contract.write) {
|
|
1550
2460
|
throw new Error('Wallet client is required for write operations');
|
|
1551
2461
|
}
|
|
1552
|
-
return this.contract.write.
|
|
2462
|
+
return this.contract.write.renounceRole([role, callerConfirmation], options);
|
|
1553
2463
|
}
|
|
1554
2464
|
/**
|
|
1555
|
-
*
|
|
2465
|
+
* requestDeposit
|
|
1556
2466
|
* nonpayable
|
|
1557
2467
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1558
2468
|
*/
|
|
1559
|
-
async
|
|
2469
|
+
async requestDeposit(assets, options) {
|
|
1560
2470
|
if (!this.contract.write) {
|
|
1561
2471
|
throw new Error('Wallet client is required for write operations');
|
|
1562
2472
|
}
|
|
1563
|
-
return this.contract.write.
|
|
2473
|
+
return this.contract.write.requestDeposit([assets], options);
|
|
1564
2474
|
}
|
|
1565
2475
|
/**
|
|
1566
|
-
*
|
|
2476
|
+
* requestDepositFor
|
|
1567
2477
|
* nonpayable
|
|
1568
2478
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1569
2479
|
*/
|
|
1570
|
-
async
|
|
2480
|
+
async requestDepositFor(assets, recipient, options) {
|
|
1571
2481
|
if (!this.contract.write) {
|
|
1572
2482
|
throw new Error('Wallet client is required for write operations');
|
|
1573
2483
|
}
|
|
1574
|
-
return this.contract.write.
|
|
2484
|
+
return this.contract.write.requestDepositFor([assets, recipient], options);
|
|
1575
2485
|
}
|
|
1576
2486
|
/**
|
|
1577
|
-
*
|
|
2487
|
+
* requestWithdraw
|
|
1578
2488
|
* nonpayable
|
|
1579
2489
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1580
2490
|
*/
|
|
1581
|
-
async
|
|
2491
|
+
async requestWithdraw(sharesIn, options) {
|
|
1582
2492
|
if (!this.contract.write) {
|
|
1583
2493
|
throw new Error('Wallet client is required for write operations');
|
|
1584
2494
|
}
|
|
1585
|
-
return this.contract.write.
|
|
2495
|
+
return this.contract.write.requestWithdraw([sharesIn], options);
|
|
1586
2496
|
}
|
|
1587
2497
|
/**
|
|
1588
|
-
*
|
|
2498
|
+
* revokeRole
|
|
1589
2499
|
* nonpayable
|
|
1590
2500
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1591
2501
|
*/
|
|
1592
|
-
async
|
|
2502
|
+
async revokeRole(role, account, options) {
|
|
1593
2503
|
if (!this.contract.write) {
|
|
1594
2504
|
throw new Error('Wallet client is required for write operations');
|
|
1595
2505
|
}
|
|
1596
|
-
return this.contract.write.
|
|
2506
|
+
return this.contract.write.revokeRole([role, account], options);
|
|
1597
2507
|
}
|
|
1598
2508
|
/**
|
|
1599
|
-
*
|
|
2509
|
+
* setFeeRecipient
|
|
1600
2510
|
* nonpayable
|
|
1601
2511
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1602
2512
|
*/
|
|
1603
|
-
async
|
|
2513
|
+
async setFeeRecipient(recipient, options) {
|
|
1604
2514
|
if (!this.contract.write) {
|
|
1605
2515
|
throw new Error('Wallet client is required for write operations');
|
|
1606
2516
|
}
|
|
1607
|
-
return this.contract.write.
|
|
2517
|
+
return this.contract.write.setFeeRecipient([recipient], options);
|
|
1608
2518
|
}
|
|
1609
2519
|
/**
|
|
1610
|
-
*
|
|
2520
|
+
* setMaxSettlementBatchSize
|
|
1611
2521
|
* nonpayable
|
|
1612
2522
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1613
2523
|
*/
|
|
1614
|
-
async
|
|
2524
|
+
async setMaxSettlementBatchSize(size, options) {
|
|
1615
2525
|
if (!this.contract.write) {
|
|
1616
2526
|
throw new Error('Wallet client is required for write operations');
|
|
1617
2527
|
}
|
|
1618
|
-
return this.contract.write.
|
|
2528
|
+
return this.contract.write.setMaxSettlementBatchSize([size], options);
|
|
1619
2529
|
}
|
|
1620
2530
|
/**
|
|
1621
|
-
*
|
|
2531
|
+
* setMinDepositAssets
|
|
1622
2532
|
* nonpayable
|
|
1623
2533
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1624
2534
|
*/
|
|
1625
|
-
async
|
|
2535
|
+
async setMinDepositAssets(amount, options) {
|
|
1626
2536
|
if (!this.contract.write) {
|
|
1627
2537
|
throw new Error('Wallet client is required for write operations');
|
|
1628
2538
|
}
|
|
1629
|
-
return this.contract.write.
|
|
2539
|
+
return this.contract.write.setMinDepositAssets([amount], options);
|
|
1630
2540
|
}
|
|
1631
2541
|
/**
|
|
1632
|
-
*
|
|
2542
|
+
* setOracle
|
|
1633
2543
|
* nonpayable
|
|
1634
2544
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1635
2545
|
*/
|
|
1636
|
-
async
|
|
2546
|
+
async setOracle(_oracle, options) {
|
|
1637
2547
|
if (!this.contract.write) {
|
|
1638
2548
|
throw new Error('Wallet client is required for write operations');
|
|
1639
2549
|
}
|
|
1640
|
-
return this.contract.write.
|
|
2550
|
+
return this.contract.write.setOracle([_oracle], options);
|
|
1641
2551
|
}
|
|
1642
2552
|
/**
|
|
1643
|
-
*
|
|
2553
|
+
* setPerformanceFee
|
|
1644
2554
|
* nonpayable
|
|
1645
2555
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1646
2556
|
*/
|
|
1647
|
-
async
|
|
2557
|
+
async setPerformanceFee(feeBps, options) {
|
|
1648
2558
|
if (!this.contract.write) {
|
|
1649
2559
|
throw new Error('Wallet client is required for write operations');
|
|
1650
2560
|
}
|
|
1651
|
-
return this.contract.write.
|
|
2561
|
+
return this.contract.write.setPerformanceFee([feeBps], options);
|
|
1652
2562
|
}
|
|
1653
2563
|
/**
|
|
1654
|
-
*
|
|
1655
|
-
*
|
|
2564
|
+
* setSettlementFee
|
|
2565
|
+
* nonpayable
|
|
1656
2566
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1657
2567
|
*/
|
|
1658
|
-
async
|
|
2568
|
+
async setSettlementFee(fee, options) {
|
|
1659
2569
|
if (!this.contract.write) {
|
|
1660
2570
|
throw new Error('Wallet client is required for write operations');
|
|
1661
2571
|
}
|
|
1662
|
-
return this.contract.write.
|
|
2572
|
+
return this.contract.write.setSettlementFee([fee], options);
|
|
1663
2573
|
}
|
|
1664
2574
|
/**
|
|
1665
|
-
*
|
|
2575
|
+
* setTargetAllowed
|
|
1666
2576
|
* nonpayable
|
|
1667
2577
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1668
2578
|
*/
|
|
1669
|
-
async
|
|
2579
|
+
async setTargetAllowed(target, allowed, options) {
|
|
1670
2580
|
if (!this.contract.write) {
|
|
1671
2581
|
throw new Error('Wallet client is required for write operations');
|
|
1672
2582
|
}
|
|
1673
|
-
return this.contract.write.
|
|
2583
|
+
return this.contract.write.setTargetAllowed([target, allowed], options);
|
|
1674
2584
|
}
|
|
1675
2585
|
/**
|
|
1676
|
-
*
|
|
1677
|
-
*
|
|
2586
|
+
* settle
|
|
2587
|
+
* nonpayable
|
|
1678
2588
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1679
2589
|
*/
|
|
1680
|
-
async
|
|
2590
|
+
async settle(tokens, prices, options) {
|
|
1681
2591
|
if (!this.contract.write) {
|
|
1682
2592
|
throw new Error('Wallet client is required for write operations');
|
|
1683
2593
|
}
|
|
1684
|
-
return this.contract.write.
|
|
2594
|
+
return this.contract.write.settle([tokens, prices], options);
|
|
1685
2595
|
}
|
|
1686
2596
|
/**
|
|
1687
|
-
*
|
|
2597
|
+
* unpause
|
|
1688
2598
|
* nonpayable
|
|
1689
2599
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1690
2600
|
*/
|
|
1691
|
-
async
|
|
2601
|
+
async unpause(options) {
|
|
1692
2602
|
if (!this.contract.write) {
|
|
1693
2603
|
throw new Error('Wallet client is required for write operations');
|
|
1694
2604
|
}
|
|
1695
|
-
return this.contract.write.
|
|
2605
|
+
return this.contract.write.unpause(options);
|
|
1696
2606
|
}
|
|
1697
2607
|
/**
|
|
1698
2608
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
@@ -1709,180 +2619,228 @@ class Vault_json {
|
|
|
1709
2619
|
}
|
|
1710
2620
|
return {
|
|
1711
2621
|
/**
|
|
1712
|
-
* Simulate
|
|
2622
|
+
* Simulate addTrackedToken
|
|
2623
|
+
* Returns gas estimate and result without sending transaction
|
|
2624
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2625
|
+
*/
|
|
2626
|
+
async addTrackedToken(token, options) {
|
|
2627
|
+
return contract.simulate.addTrackedToken([token], options);
|
|
2628
|
+
},
|
|
2629
|
+
/**
|
|
2630
|
+
* Simulate approveERC20
|
|
2631
|
+
* Returns gas estimate and result without sending transaction
|
|
2632
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2633
|
+
*/
|
|
2634
|
+
async approveERC20(token, spender, amount, options) {
|
|
2635
|
+
return contract.simulate.approveERC20([token, spender, amount], options);
|
|
2636
|
+
},
|
|
2637
|
+
/**
|
|
2638
|
+
* Simulate approvePermit2
|
|
2639
|
+
* Returns gas estimate and result without sending transaction
|
|
2640
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2641
|
+
*/
|
|
2642
|
+
async approvePermit2(permit2, token, spender, amount, expiration, options) {
|
|
2643
|
+
return contract.simulate.approvePermit2([permit2, token, spender, amount, expiration], options);
|
|
2644
|
+
},
|
|
2645
|
+
/**
|
|
2646
|
+
* Simulate cancelDepositRequest
|
|
2647
|
+
* Returns gas estimate and result without sending transaction
|
|
2648
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2649
|
+
*/
|
|
2650
|
+
async cancelDepositRequest(depositId, options) {
|
|
2651
|
+
return contract.simulate.cancelDepositRequest([depositId], options);
|
|
2652
|
+
},
|
|
2653
|
+
/**
|
|
2654
|
+
* Simulate cancelPendingDeposits
|
|
2655
|
+
* Returns gas estimate and result without sending transaction
|
|
2656
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2657
|
+
*/
|
|
2658
|
+
async cancelPendingDeposits(maxCount, options) {
|
|
2659
|
+
return contract.simulate.cancelPendingDeposits([maxCount], options);
|
|
2660
|
+
},
|
|
2661
|
+
/**
|
|
2662
|
+
* Simulate cancelWithdraw
|
|
2663
|
+
* Returns gas estimate and result without sending transaction
|
|
2664
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2665
|
+
*/
|
|
2666
|
+
async cancelWithdraw(requestId, options) {
|
|
2667
|
+
return contract.simulate.cancelWithdraw([requestId], options);
|
|
2668
|
+
},
|
|
2669
|
+
/**
|
|
2670
|
+
* Simulate claimAndDeposit
|
|
1713
2671
|
* Returns gas estimate and result without sending transaction
|
|
1714
2672
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1715
2673
|
*/
|
|
1716
|
-
async
|
|
1717
|
-
return contract.simulate.
|
|
2674
|
+
async claimAndDeposit(requestId, newVault, options) {
|
|
2675
|
+
return contract.simulate.claimAndDeposit([requestId, newVault], options);
|
|
1718
2676
|
},
|
|
1719
2677
|
/**
|
|
1720
|
-
* Simulate
|
|
2678
|
+
* Simulate claimWithdraw
|
|
1721
2679
|
* Returns gas estimate and result without sending transaction
|
|
1722
2680
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1723
2681
|
*/
|
|
1724
|
-
async
|
|
1725
|
-
return contract.simulate.
|
|
2682
|
+
async claimWithdraw(requestId, options) {
|
|
2683
|
+
return contract.simulate.claimWithdraw([requestId], options);
|
|
1726
2684
|
},
|
|
1727
2685
|
/**
|
|
1728
|
-
* Simulate
|
|
2686
|
+
* Simulate claimWithdrawTo
|
|
1729
2687
|
* Returns gas estimate and result without sending transaction
|
|
1730
2688
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1731
2689
|
*/
|
|
1732
|
-
async
|
|
1733
|
-
return contract.simulate.
|
|
2690
|
+
async claimWithdrawTo(requestId, recipient, options) {
|
|
2691
|
+
return contract.simulate.claimWithdrawTo([requestId, recipient], options);
|
|
1734
2692
|
},
|
|
1735
2693
|
/**
|
|
1736
|
-
* Simulate
|
|
2694
|
+
* Simulate grantRole
|
|
1737
2695
|
* Returns gas estimate and result without sending transaction
|
|
1738
2696
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1739
2697
|
*/
|
|
1740
|
-
async
|
|
1741
|
-
return contract.simulate.
|
|
2698
|
+
async grantRole(role, account, options) {
|
|
2699
|
+
return contract.simulate.grantRole([role, account], options);
|
|
1742
2700
|
},
|
|
1743
2701
|
/**
|
|
1744
|
-
* Simulate
|
|
2702
|
+
* Simulate onShareTransfer
|
|
1745
2703
|
* Returns gas estimate and result without sending transaction
|
|
1746
2704
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1747
2705
|
*/
|
|
1748
|
-
async
|
|
1749
|
-
return contract.simulate.
|
|
2706
|
+
async onShareTransfer(from, to, value, options) {
|
|
2707
|
+
return contract.simulate.onShareTransfer([from, to, value], options);
|
|
1750
2708
|
},
|
|
1751
2709
|
/**
|
|
1752
|
-
* Simulate
|
|
2710
|
+
* Simulate pause
|
|
1753
2711
|
* Returns gas estimate and result without sending transaction
|
|
1754
2712
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1755
2713
|
*/
|
|
1756
|
-
async
|
|
1757
|
-
return contract.simulate.
|
|
2714
|
+
async pause(options) {
|
|
2715
|
+
return contract.simulate.pause(options);
|
|
1758
2716
|
},
|
|
1759
2717
|
/**
|
|
1760
|
-
* Simulate
|
|
2718
|
+
* Simulate rebalance
|
|
1761
2719
|
* Returns gas estimate and result without sending transaction
|
|
1762
2720
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1763
2721
|
*/
|
|
1764
|
-
async
|
|
1765
|
-
return contract.simulate.
|
|
2722
|
+
async rebalance(targets, calldatas, options) {
|
|
2723
|
+
return contract.simulate.rebalance([targets, calldatas], options);
|
|
1766
2724
|
},
|
|
1767
2725
|
/**
|
|
1768
|
-
* Simulate
|
|
2726
|
+
* Simulate removeTrackedToken
|
|
1769
2727
|
* Returns gas estimate and result without sending transaction
|
|
1770
2728
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1771
2729
|
*/
|
|
1772
|
-
async
|
|
1773
|
-
return contract.simulate.
|
|
2730
|
+
async removeTrackedToken(token, options) {
|
|
2731
|
+
return contract.simulate.removeTrackedToken([token], options);
|
|
1774
2732
|
},
|
|
1775
2733
|
/**
|
|
1776
|
-
* Simulate
|
|
2734
|
+
* Simulate renounceRole
|
|
1777
2735
|
* Returns gas estimate and result without sending transaction
|
|
1778
2736
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1779
2737
|
*/
|
|
1780
|
-
async
|
|
1781
|
-
return contract.simulate.
|
|
2738
|
+
async renounceRole(role, callerConfirmation, options) {
|
|
2739
|
+
return contract.simulate.renounceRole([role, callerConfirmation], options);
|
|
1782
2740
|
},
|
|
1783
2741
|
/**
|
|
1784
|
-
* Simulate
|
|
2742
|
+
* Simulate requestDeposit
|
|
1785
2743
|
* Returns gas estimate and result without sending transaction
|
|
1786
2744
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1787
2745
|
*/
|
|
1788
|
-
async
|
|
1789
|
-
return contract.simulate.
|
|
2746
|
+
async requestDeposit(assets, options) {
|
|
2747
|
+
return contract.simulate.requestDeposit([assets], options);
|
|
1790
2748
|
},
|
|
1791
2749
|
/**
|
|
1792
|
-
* Simulate
|
|
2750
|
+
* Simulate requestDepositFor
|
|
1793
2751
|
* Returns gas estimate and result without sending transaction
|
|
1794
2752
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1795
2753
|
*/
|
|
1796
|
-
async
|
|
1797
|
-
return contract.simulate.
|
|
2754
|
+
async requestDepositFor(assets, recipient, options) {
|
|
2755
|
+
return contract.simulate.requestDepositFor([assets, recipient], options);
|
|
1798
2756
|
},
|
|
1799
2757
|
/**
|
|
1800
|
-
* Simulate
|
|
2758
|
+
* Simulate requestWithdraw
|
|
1801
2759
|
* Returns gas estimate and result without sending transaction
|
|
1802
2760
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1803
2761
|
*/
|
|
1804
|
-
async
|
|
1805
|
-
return contract.simulate.
|
|
2762
|
+
async requestWithdraw(sharesIn, options) {
|
|
2763
|
+
return contract.simulate.requestWithdraw([sharesIn], options);
|
|
1806
2764
|
},
|
|
1807
2765
|
/**
|
|
1808
|
-
* Simulate
|
|
2766
|
+
* Simulate revokeRole
|
|
1809
2767
|
* Returns gas estimate and result without sending transaction
|
|
1810
2768
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1811
2769
|
*/
|
|
1812
|
-
async
|
|
1813
|
-
return contract.simulate.
|
|
2770
|
+
async revokeRole(role, account, options) {
|
|
2771
|
+
return contract.simulate.revokeRole([role, account], options);
|
|
1814
2772
|
},
|
|
1815
2773
|
/**
|
|
1816
|
-
* Simulate
|
|
2774
|
+
* Simulate setFeeRecipient
|
|
1817
2775
|
* Returns gas estimate and result without sending transaction
|
|
1818
2776
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1819
2777
|
*/
|
|
1820
|
-
async
|
|
1821
|
-
return contract.simulate.
|
|
2778
|
+
async setFeeRecipient(recipient, options) {
|
|
2779
|
+
return contract.simulate.setFeeRecipient([recipient], options);
|
|
1822
2780
|
},
|
|
1823
2781
|
/**
|
|
1824
|
-
* Simulate
|
|
2782
|
+
* Simulate setMaxSettlementBatchSize
|
|
1825
2783
|
* Returns gas estimate and result without sending transaction
|
|
1826
2784
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1827
2785
|
*/
|
|
1828
|
-
async
|
|
1829
|
-
return contract.simulate.
|
|
2786
|
+
async setMaxSettlementBatchSize(size, options) {
|
|
2787
|
+
return contract.simulate.setMaxSettlementBatchSize([size], options);
|
|
1830
2788
|
},
|
|
1831
2789
|
/**
|
|
1832
|
-
* Simulate
|
|
2790
|
+
* Simulate setMinDepositAssets
|
|
1833
2791
|
* Returns gas estimate and result without sending transaction
|
|
1834
2792
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1835
2793
|
*/
|
|
1836
|
-
async
|
|
1837
|
-
return contract.simulate.
|
|
2794
|
+
async setMinDepositAssets(amount, options) {
|
|
2795
|
+
return contract.simulate.setMinDepositAssets([amount], options);
|
|
1838
2796
|
},
|
|
1839
2797
|
/**
|
|
1840
|
-
* Simulate
|
|
2798
|
+
* Simulate setOracle
|
|
1841
2799
|
* Returns gas estimate and result without sending transaction
|
|
1842
2800
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1843
2801
|
*/
|
|
1844
|
-
async
|
|
1845
|
-
return contract.simulate.
|
|
2802
|
+
async setOracle(_oracle, options) {
|
|
2803
|
+
return contract.simulate.setOracle([_oracle], options);
|
|
1846
2804
|
},
|
|
1847
2805
|
/**
|
|
1848
|
-
* Simulate
|
|
2806
|
+
* Simulate setPerformanceFee
|
|
1849
2807
|
* Returns gas estimate and result without sending transaction
|
|
1850
2808
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1851
2809
|
*/
|
|
1852
|
-
async
|
|
1853
|
-
return contract.simulate.
|
|
2810
|
+
async setPerformanceFee(feeBps, options) {
|
|
2811
|
+
return contract.simulate.setPerformanceFee([feeBps], options);
|
|
1854
2812
|
},
|
|
1855
2813
|
/**
|
|
1856
|
-
* Simulate
|
|
2814
|
+
* Simulate setSettlementFee
|
|
1857
2815
|
* Returns gas estimate and result without sending transaction
|
|
1858
2816
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1859
2817
|
*/
|
|
1860
|
-
async
|
|
1861
|
-
return contract.simulate.
|
|
2818
|
+
async setSettlementFee(fee, options) {
|
|
2819
|
+
return contract.simulate.setSettlementFee([fee], options);
|
|
1862
2820
|
},
|
|
1863
2821
|
/**
|
|
1864
|
-
* Simulate
|
|
2822
|
+
* Simulate setTargetAllowed
|
|
1865
2823
|
* Returns gas estimate and result without sending transaction
|
|
1866
2824
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1867
2825
|
*/
|
|
1868
|
-
async
|
|
1869
|
-
return contract.simulate.
|
|
2826
|
+
async setTargetAllowed(target, allowed, options) {
|
|
2827
|
+
return contract.simulate.setTargetAllowed([target, allowed], options);
|
|
1870
2828
|
},
|
|
1871
2829
|
/**
|
|
1872
|
-
* Simulate
|
|
2830
|
+
* Simulate settle
|
|
1873
2831
|
* Returns gas estimate and result without sending transaction
|
|
1874
2832
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1875
2833
|
*/
|
|
1876
|
-
async
|
|
1877
|
-
return contract.simulate.
|
|
2834
|
+
async settle(tokens, prices, options) {
|
|
2835
|
+
return contract.simulate.settle([tokens, prices], options);
|
|
1878
2836
|
},
|
|
1879
2837
|
/**
|
|
1880
|
-
* Simulate
|
|
2838
|
+
* Simulate unpause
|
|
1881
2839
|
* Returns gas estimate and result without sending transaction
|
|
1882
2840
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1883
2841
|
*/
|
|
1884
|
-
async
|
|
1885
|
-
return contract.simulate.
|
|
2842
|
+
async unpause(options) {
|
|
2843
|
+
return contract.simulate.unpause(options);
|
|
1886
2844
|
}
|
|
1887
2845
|
};
|
|
1888
2846
|
}
|
|
@@ -1901,16 +2859,165 @@ class Vault_json {
|
|
|
1901
2859
|
get watch() {
|
|
1902
2860
|
return {
|
|
1903
2861
|
/**
|
|
1904
|
-
* Watch
|
|
2862
|
+
* Watch DepositAutoRefunded events
|
|
2863
|
+
* @param callback Function to call when event is emitted
|
|
2864
|
+
* @param filter Optional filter for indexed parameters
|
|
2865
|
+
* @returns Unwatch function to stop listening
|
|
2866
|
+
*/
|
|
2867
|
+
DepositAutoRefunded: (callback, filter) => {
|
|
2868
|
+
return this.publicClient.watchContractEvent({
|
|
2869
|
+
address: this.contractAddress,
|
|
2870
|
+
abi: exports.Vault_jsonAbi,
|
|
2871
|
+
eventName: 'DepositAutoRefunded',
|
|
2872
|
+
args: filter,
|
|
2873
|
+
onLogs: (logs) => {
|
|
2874
|
+
logs.forEach((log) => {
|
|
2875
|
+
callback(log.args);
|
|
2876
|
+
});
|
|
2877
|
+
},
|
|
2878
|
+
});
|
|
2879
|
+
},
|
|
2880
|
+
/**
|
|
2881
|
+
* Watch DepositCancelled events
|
|
2882
|
+
* @param callback Function to call when event is emitted
|
|
2883
|
+
* @param filter Optional filter for indexed parameters
|
|
2884
|
+
* @returns Unwatch function to stop listening
|
|
2885
|
+
*/
|
|
2886
|
+
DepositCancelled: (callback, filter) => {
|
|
2887
|
+
return this.publicClient.watchContractEvent({
|
|
2888
|
+
address: this.contractAddress,
|
|
2889
|
+
abi: exports.Vault_jsonAbi,
|
|
2890
|
+
eventName: 'DepositCancelled',
|
|
2891
|
+
args: filter,
|
|
2892
|
+
onLogs: (logs) => {
|
|
2893
|
+
logs.forEach((log) => {
|
|
2894
|
+
callback(log.args);
|
|
2895
|
+
});
|
|
2896
|
+
},
|
|
2897
|
+
});
|
|
2898
|
+
},
|
|
2899
|
+
/**
|
|
2900
|
+
* Watch DepositRequested events
|
|
2901
|
+
* @param callback Function to call when event is emitted
|
|
2902
|
+
* @param filter Optional filter for indexed parameters
|
|
2903
|
+
* @returns Unwatch function to stop listening
|
|
2904
|
+
*/
|
|
2905
|
+
DepositRequested: (callback, filter) => {
|
|
2906
|
+
return this.publicClient.watchContractEvent({
|
|
2907
|
+
address: this.contractAddress,
|
|
2908
|
+
abi: exports.Vault_jsonAbi,
|
|
2909
|
+
eventName: 'DepositRequested',
|
|
2910
|
+
args: filter,
|
|
2911
|
+
onLogs: (logs) => {
|
|
2912
|
+
logs.forEach((log) => {
|
|
2913
|
+
callback(log.args);
|
|
2914
|
+
});
|
|
2915
|
+
},
|
|
2916
|
+
});
|
|
2917
|
+
},
|
|
2918
|
+
/**
|
|
2919
|
+
* Watch DepositSettled events
|
|
2920
|
+
* @param callback Function to call when event is emitted
|
|
2921
|
+
* @param filter Optional filter for indexed parameters
|
|
2922
|
+
* @returns Unwatch function to stop listening
|
|
2923
|
+
*/
|
|
2924
|
+
DepositSettled: (callback, filter) => {
|
|
2925
|
+
return this.publicClient.watchContractEvent({
|
|
2926
|
+
address: this.contractAddress,
|
|
2927
|
+
abi: exports.Vault_jsonAbi,
|
|
2928
|
+
eventName: 'DepositSettled',
|
|
2929
|
+
args: filter,
|
|
2930
|
+
onLogs: (logs) => {
|
|
2931
|
+
logs.forEach((log) => {
|
|
2932
|
+
callback(log.args);
|
|
2933
|
+
});
|
|
2934
|
+
},
|
|
2935
|
+
});
|
|
2936
|
+
},
|
|
2937
|
+
/**
|
|
2938
|
+
* Watch MaxSettlementBatchSizeSet events
|
|
2939
|
+
* @param callback Function to call when event is emitted
|
|
2940
|
+
* @param filter Optional filter for indexed parameters
|
|
2941
|
+
* @returns Unwatch function to stop listening
|
|
2942
|
+
*/
|
|
2943
|
+
MaxSettlementBatchSizeSet: (callback) => {
|
|
2944
|
+
return this.publicClient.watchContractEvent({
|
|
2945
|
+
address: this.contractAddress,
|
|
2946
|
+
abi: exports.Vault_jsonAbi,
|
|
2947
|
+
eventName: 'MaxSettlementBatchSizeSet',
|
|
2948
|
+
onLogs: (logs) => {
|
|
2949
|
+
logs.forEach((log) => {
|
|
2950
|
+
callback(log.args);
|
|
2951
|
+
});
|
|
2952
|
+
},
|
|
2953
|
+
});
|
|
2954
|
+
},
|
|
2955
|
+
/**
|
|
2956
|
+
* Watch MinDepositAssetsSet events
|
|
2957
|
+
* @param callback Function to call when event is emitted
|
|
2958
|
+
* @param filter Optional filter for indexed parameters
|
|
2959
|
+
* @returns Unwatch function to stop listening
|
|
2960
|
+
*/
|
|
2961
|
+
MinDepositAssetsSet: (callback) => {
|
|
2962
|
+
return this.publicClient.watchContractEvent({
|
|
2963
|
+
address: this.contractAddress,
|
|
2964
|
+
abi: exports.Vault_jsonAbi,
|
|
2965
|
+
eventName: 'MinDepositAssetsSet',
|
|
2966
|
+
onLogs: (logs) => {
|
|
2967
|
+
logs.forEach((log) => {
|
|
2968
|
+
callback(log.args);
|
|
2969
|
+
});
|
|
2970
|
+
},
|
|
2971
|
+
});
|
|
2972
|
+
},
|
|
2973
|
+
/**
|
|
2974
|
+
* Watch OracleSet events
|
|
2975
|
+
* @param callback Function to call when event is emitted
|
|
2976
|
+
* @param filter Optional filter for indexed parameters
|
|
2977
|
+
* @returns Unwatch function to stop listening
|
|
2978
|
+
*/
|
|
2979
|
+
OracleSet: (callback, filter) => {
|
|
2980
|
+
return this.publicClient.watchContractEvent({
|
|
2981
|
+
address: this.contractAddress,
|
|
2982
|
+
abi: exports.Vault_jsonAbi,
|
|
2983
|
+
eventName: 'OracleSet',
|
|
2984
|
+
args: filter,
|
|
2985
|
+
onLogs: (logs) => {
|
|
2986
|
+
logs.forEach((log) => {
|
|
2987
|
+
callback(log.args);
|
|
2988
|
+
});
|
|
2989
|
+
},
|
|
2990
|
+
});
|
|
2991
|
+
},
|
|
2992
|
+
/**
|
|
2993
|
+
* Watch Paused events
|
|
2994
|
+
* @param callback Function to call when event is emitted
|
|
2995
|
+
* @param filter Optional filter for indexed parameters
|
|
2996
|
+
* @returns Unwatch function to stop listening
|
|
2997
|
+
*/
|
|
2998
|
+
Paused: (callback) => {
|
|
2999
|
+
return this.publicClient.watchContractEvent({
|
|
3000
|
+
address: this.contractAddress,
|
|
3001
|
+
abi: exports.Vault_jsonAbi,
|
|
3002
|
+
eventName: 'Paused',
|
|
3003
|
+
onLogs: (logs) => {
|
|
3004
|
+
logs.forEach((log) => {
|
|
3005
|
+
callback(log.args);
|
|
3006
|
+
});
|
|
3007
|
+
},
|
|
3008
|
+
});
|
|
3009
|
+
},
|
|
3010
|
+
/**
|
|
3011
|
+
* Watch PerformanceFeeSet events
|
|
1905
3012
|
* @param callback Function to call when event is emitted
|
|
1906
3013
|
* @param filter Optional filter for indexed parameters
|
|
1907
3014
|
* @returns Unwatch function to stop listening
|
|
1908
3015
|
*/
|
|
1909
|
-
|
|
3016
|
+
PerformanceFeeSet: (callback) => {
|
|
1910
3017
|
return this.publicClient.watchContractEvent({
|
|
1911
3018
|
address: this.contractAddress,
|
|
1912
3019
|
abi: exports.Vault_jsonAbi,
|
|
1913
|
-
eventName: '
|
|
3020
|
+
eventName: 'PerformanceFeeSet',
|
|
1914
3021
|
onLogs: (logs) => {
|
|
1915
3022
|
logs.forEach((log) => {
|
|
1916
3023
|
callback(log.args);
|
|
@@ -1919,16 +3026,16 @@ class Vault_json {
|
|
|
1919
3026
|
});
|
|
1920
3027
|
},
|
|
1921
3028
|
/**
|
|
1922
|
-
* Watch
|
|
3029
|
+
* Watch Rebalanced events
|
|
1923
3030
|
* @param callback Function to call when event is emitted
|
|
1924
3031
|
* @param filter Optional filter for indexed parameters
|
|
1925
3032
|
* @returns Unwatch function to stop listening
|
|
1926
3033
|
*/
|
|
1927
|
-
|
|
3034
|
+
Rebalanced: (callback) => {
|
|
1928
3035
|
return this.publicClient.watchContractEvent({
|
|
1929
3036
|
address: this.contractAddress,
|
|
1930
3037
|
abi: exports.Vault_jsonAbi,
|
|
1931
|
-
eventName: '
|
|
3038
|
+
eventName: 'Rebalanced',
|
|
1932
3039
|
onLogs: (logs) => {
|
|
1933
3040
|
logs.forEach((log) => {
|
|
1934
3041
|
callback(log.args);
|
|
@@ -1937,16 +3044,17 @@ class Vault_json {
|
|
|
1937
3044
|
});
|
|
1938
3045
|
},
|
|
1939
3046
|
/**
|
|
1940
|
-
* Watch
|
|
3047
|
+
* Watch RoleAdminChanged events
|
|
1941
3048
|
* @param callback Function to call when event is emitted
|
|
1942
3049
|
* @param filter Optional filter for indexed parameters
|
|
1943
3050
|
* @returns Unwatch function to stop listening
|
|
1944
3051
|
*/
|
|
1945
|
-
|
|
3052
|
+
RoleAdminChanged: (callback, filter) => {
|
|
1946
3053
|
return this.publicClient.watchContractEvent({
|
|
1947
3054
|
address: this.contractAddress,
|
|
1948
3055
|
abi: exports.Vault_jsonAbi,
|
|
1949
|
-
eventName: '
|
|
3056
|
+
eventName: 'RoleAdminChanged',
|
|
3057
|
+
args: filter,
|
|
1950
3058
|
onLogs: (logs) => {
|
|
1951
3059
|
logs.forEach((log) => {
|
|
1952
3060
|
callback(log.args);
|
|
@@ -1955,16 +3063,16 @@ class Vault_json {
|
|
|
1955
3063
|
});
|
|
1956
3064
|
},
|
|
1957
3065
|
/**
|
|
1958
|
-
* Watch
|
|
3066
|
+
* Watch RoleGranted events
|
|
1959
3067
|
* @param callback Function to call when event is emitted
|
|
1960
3068
|
* @param filter Optional filter for indexed parameters
|
|
1961
3069
|
* @returns Unwatch function to stop listening
|
|
1962
3070
|
*/
|
|
1963
|
-
|
|
3071
|
+
RoleGranted: (callback, filter) => {
|
|
1964
3072
|
return this.publicClient.watchContractEvent({
|
|
1965
3073
|
address: this.contractAddress,
|
|
1966
3074
|
abi: exports.Vault_jsonAbi,
|
|
1967
|
-
eventName: '
|
|
3075
|
+
eventName: 'RoleGranted',
|
|
1968
3076
|
args: filter,
|
|
1969
3077
|
onLogs: (logs) => {
|
|
1970
3078
|
logs.forEach((log) => {
|
|
@@ -1974,16 +3082,16 @@ class Vault_json {
|
|
|
1974
3082
|
});
|
|
1975
3083
|
},
|
|
1976
3084
|
/**
|
|
1977
|
-
* Watch
|
|
3085
|
+
* Watch RoleRevoked events
|
|
1978
3086
|
* @param callback Function to call when event is emitted
|
|
1979
3087
|
* @param filter Optional filter for indexed parameters
|
|
1980
3088
|
* @returns Unwatch function to stop listening
|
|
1981
3089
|
*/
|
|
1982
|
-
|
|
3090
|
+
RoleRevoked: (callback, filter) => {
|
|
1983
3091
|
return this.publicClient.watchContractEvent({
|
|
1984
3092
|
address: this.contractAddress,
|
|
1985
3093
|
abi: exports.Vault_jsonAbi,
|
|
1986
|
-
eventName: '
|
|
3094
|
+
eventName: 'RoleRevoked',
|
|
1987
3095
|
args: filter,
|
|
1988
3096
|
onLogs: (logs) => {
|
|
1989
3097
|
logs.forEach((log) => {
|
|
@@ -1993,16 +3101,34 @@ class Vault_json {
|
|
|
1993
3101
|
});
|
|
1994
3102
|
},
|
|
1995
3103
|
/**
|
|
1996
|
-
* Watch
|
|
3104
|
+
* Watch Settled events
|
|
3105
|
+
* @param callback Function to call when event is emitted
|
|
3106
|
+
* @param filter Optional filter for indexed parameters
|
|
3107
|
+
* @returns Unwatch function to stop listening
|
|
3108
|
+
*/
|
|
3109
|
+
Settled: (callback) => {
|
|
3110
|
+
return this.publicClient.watchContractEvent({
|
|
3111
|
+
address: this.contractAddress,
|
|
3112
|
+
abi: exports.Vault_jsonAbi,
|
|
3113
|
+
eventName: 'Settled',
|
|
3114
|
+
onLogs: (logs) => {
|
|
3115
|
+
logs.forEach((log) => {
|
|
3116
|
+
callback(log.args);
|
|
3117
|
+
});
|
|
3118
|
+
},
|
|
3119
|
+
});
|
|
3120
|
+
},
|
|
3121
|
+
/**
|
|
3122
|
+
* Watch SettlementFeeSet events
|
|
1997
3123
|
* @param callback Function to call when event is emitted
|
|
1998
3124
|
* @param filter Optional filter for indexed parameters
|
|
1999
3125
|
* @returns Unwatch function to stop listening
|
|
2000
3126
|
*/
|
|
2001
|
-
|
|
3127
|
+
SettlementFeeSet: (callback) => {
|
|
2002
3128
|
return this.publicClient.watchContractEvent({
|
|
2003
3129
|
address: this.contractAddress,
|
|
2004
3130
|
abi: exports.Vault_jsonAbi,
|
|
2005
|
-
eventName: '
|
|
3131
|
+
eventName: 'SettlementFeeSet',
|
|
2006
3132
|
onLogs: (logs) => {
|
|
2007
3133
|
logs.forEach((log) => {
|
|
2008
3134
|
callback(log.args);
|
|
@@ -2011,16 +3137,16 @@ class Vault_json {
|
|
|
2011
3137
|
});
|
|
2012
3138
|
},
|
|
2013
3139
|
/**
|
|
2014
|
-
* Watch
|
|
3140
|
+
* Watch TargetAllowed events
|
|
2015
3141
|
* @param callback Function to call when event is emitted
|
|
2016
3142
|
* @param filter Optional filter for indexed parameters
|
|
2017
3143
|
* @returns Unwatch function to stop listening
|
|
2018
3144
|
*/
|
|
2019
|
-
|
|
3145
|
+
TargetAllowed: (callback, filter) => {
|
|
2020
3146
|
return this.publicClient.watchContractEvent({
|
|
2021
3147
|
address: this.contractAddress,
|
|
2022
3148
|
abi: exports.Vault_jsonAbi,
|
|
2023
|
-
eventName: '
|
|
3149
|
+
eventName: 'TargetAllowed',
|
|
2024
3150
|
args: filter,
|
|
2025
3151
|
onLogs: (logs) => {
|
|
2026
3152
|
logs.forEach((log) => {
|
|
@@ -2030,16 +3156,16 @@ class Vault_json {
|
|
|
2030
3156
|
});
|
|
2031
3157
|
},
|
|
2032
3158
|
/**
|
|
2033
|
-
* Watch
|
|
3159
|
+
* Watch TrackedTokenAdded events
|
|
2034
3160
|
* @param callback Function to call when event is emitted
|
|
2035
3161
|
* @param filter Optional filter for indexed parameters
|
|
2036
3162
|
* @returns Unwatch function to stop listening
|
|
2037
3163
|
*/
|
|
2038
|
-
|
|
3164
|
+
TrackedTokenAdded: (callback, filter) => {
|
|
2039
3165
|
return this.publicClient.watchContractEvent({
|
|
2040
3166
|
address: this.contractAddress,
|
|
2041
3167
|
abi: exports.Vault_jsonAbi,
|
|
2042
|
-
eventName: '
|
|
3168
|
+
eventName: 'TrackedTokenAdded',
|
|
2043
3169
|
args: filter,
|
|
2044
3170
|
onLogs: (logs) => {
|
|
2045
3171
|
logs.forEach((log) => {
|
|
@@ -2049,16 +3175,16 @@ class Vault_json {
|
|
|
2049
3175
|
});
|
|
2050
3176
|
},
|
|
2051
3177
|
/**
|
|
2052
|
-
* Watch
|
|
3178
|
+
* Watch TrackedTokenRemoved events
|
|
2053
3179
|
* @param callback Function to call when event is emitted
|
|
2054
3180
|
* @param filter Optional filter for indexed parameters
|
|
2055
3181
|
* @returns Unwatch function to stop listening
|
|
2056
3182
|
*/
|
|
2057
|
-
|
|
3183
|
+
TrackedTokenRemoved: (callback, filter) => {
|
|
2058
3184
|
return this.publicClient.watchContractEvent({
|
|
2059
3185
|
address: this.contractAddress,
|
|
2060
3186
|
abi: exports.Vault_jsonAbi,
|
|
2061
|
-
eventName: '
|
|
3187
|
+
eventName: 'TrackedTokenRemoved',
|
|
2062
3188
|
args: filter,
|
|
2063
3189
|
onLogs: (logs) => {
|
|
2064
3190
|
logs.forEach((log) => {
|
|
@@ -2068,16 +3194,34 @@ class Vault_json {
|
|
|
2068
3194
|
});
|
|
2069
3195
|
},
|
|
2070
3196
|
/**
|
|
2071
|
-
* Watch
|
|
3197
|
+
* Watch Unpaused events
|
|
2072
3198
|
* @param callback Function to call when event is emitted
|
|
2073
3199
|
* @param filter Optional filter for indexed parameters
|
|
2074
3200
|
* @returns Unwatch function to stop listening
|
|
2075
3201
|
*/
|
|
2076
|
-
|
|
3202
|
+
Unpaused: (callback) => {
|
|
2077
3203
|
return this.publicClient.watchContractEvent({
|
|
2078
3204
|
address: this.contractAddress,
|
|
2079
3205
|
abi: exports.Vault_jsonAbi,
|
|
2080
|
-
eventName: '
|
|
3206
|
+
eventName: 'Unpaused',
|
|
3207
|
+
onLogs: (logs) => {
|
|
3208
|
+
logs.forEach((log) => {
|
|
3209
|
+
callback(log.args);
|
|
3210
|
+
});
|
|
3211
|
+
},
|
|
3212
|
+
});
|
|
3213
|
+
},
|
|
3214
|
+
/**
|
|
3215
|
+
* Watch WithdrawCancelled events
|
|
3216
|
+
* @param callback Function to call when event is emitted
|
|
3217
|
+
* @param filter Optional filter for indexed parameters
|
|
3218
|
+
* @returns Unwatch function to stop listening
|
|
3219
|
+
*/
|
|
3220
|
+
WithdrawCancelled: (callback, filter) => {
|
|
3221
|
+
return this.publicClient.watchContractEvent({
|
|
3222
|
+
address: this.contractAddress,
|
|
3223
|
+
abi: exports.Vault_jsonAbi,
|
|
3224
|
+
eventName: 'WithdrawCancelled',
|
|
2081
3225
|
args: filter,
|
|
2082
3226
|
onLogs: (logs) => {
|
|
2083
3227
|
logs.forEach((log) => {
|
|
@@ -2087,16 +3231,17 @@ class Vault_json {
|
|
|
2087
3231
|
});
|
|
2088
3232
|
},
|
|
2089
3233
|
/**
|
|
2090
|
-
* Watch
|
|
3234
|
+
* Watch WithdrawClaimed events
|
|
2091
3235
|
* @param callback Function to call when event is emitted
|
|
2092
3236
|
* @param filter Optional filter for indexed parameters
|
|
2093
3237
|
* @returns Unwatch function to stop listening
|
|
2094
3238
|
*/
|
|
2095
|
-
|
|
3239
|
+
WithdrawClaimed: (callback, filter) => {
|
|
2096
3240
|
return this.publicClient.watchContractEvent({
|
|
2097
3241
|
address: this.contractAddress,
|
|
2098
3242
|
abi: exports.Vault_jsonAbi,
|
|
2099
|
-
eventName: '
|
|
3243
|
+
eventName: 'WithdrawClaimed',
|
|
3244
|
+
args: filter,
|
|
2100
3245
|
onLogs: (logs) => {
|
|
2101
3246
|
logs.forEach((log) => {
|
|
2102
3247
|
callback(log.args);
|
|
@@ -2105,16 +3250,16 @@ class Vault_json {
|
|
|
2105
3250
|
});
|
|
2106
3251
|
},
|
|
2107
3252
|
/**
|
|
2108
|
-
* Watch
|
|
3253
|
+
* Watch WithdrawRequested events
|
|
2109
3254
|
* @param callback Function to call when event is emitted
|
|
2110
3255
|
* @param filter Optional filter for indexed parameters
|
|
2111
3256
|
* @returns Unwatch function to stop listening
|
|
2112
3257
|
*/
|
|
2113
|
-
|
|
3258
|
+
WithdrawRequested: (callback, filter) => {
|
|
2114
3259
|
return this.publicClient.watchContractEvent({
|
|
2115
3260
|
address: this.contractAddress,
|
|
2116
3261
|
abi: exports.Vault_jsonAbi,
|
|
2117
|
-
eventName: '
|
|
3262
|
+
eventName: 'WithdrawRequested',
|
|
2118
3263
|
args: filter,
|
|
2119
3264
|
onLogs: (logs) => {
|
|
2120
3265
|
logs.forEach((log) => {
|
|
@@ -2124,16 +3269,16 @@ class Vault_json {
|
|
|
2124
3269
|
});
|
|
2125
3270
|
},
|
|
2126
3271
|
/**
|
|
2127
|
-
* Watch
|
|
3272
|
+
* Watch WithdrawalSettled events
|
|
2128
3273
|
* @param callback Function to call when event is emitted
|
|
2129
3274
|
* @param filter Optional filter for indexed parameters
|
|
2130
3275
|
* @returns Unwatch function to stop listening
|
|
2131
3276
|
*/
|
|
2132
|
-
|
|
3277
|
+
WithdrawalSettled: (callback, filter) => {
|
|
2133
3278
|
return this.publicClient.watchContractEvent({
|
|
2134
3279
|
address: this.contractAddress,
|
|
2135
3280
|
abi: exports.Vault_jsonAbi,
|
|
2136
|
-
eventName: '
|
|
3281
|
+
eventName: 'WithdrawalSettled',
|
|
2137
3282
|
args: filter,
|
|
2138
3283
|
onLogs: (logs) => {
|
|
2139
3284
|
logs.forEach((log) => {
|