@babylonlabs-io/ts-sdk 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/challengeAssert-BpzES0KW.cjs +2 -0
- package/dist/challengeAssert-BpzES0KW.cjs.map +1 -0
- package/dist/challengeAssert-CenzzhZU.js +724 -0
- package/dist/challengeAssert-CenzzhZU.js.map +1 -0
- package/dist/errors-B2aR9f2F.cjs +2 -0
- package/dist/errors-B2aR9f2F.cjs.map +1 -0
- package/dist/{errors-DOJdtNTD.js → errors-ZoUEvcDE.js} +162 -156
- package/dist/errors-ZoUEvcDE.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +59 -58
- package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts +15 -7
- package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts.map +1 -1
- package/dist/tbv/core/index.cjs +1 -1
- package/dist/tbv/core/index.d.ts +1 -1
- package/dist/tbv/core/index.d.ts.map +1 -1
- package/dist/tbv/core/index.js +59 -58
- package/dist/tbv/core/managers/PeginManager.d.ts +2 -2
- package/dist/tbv/core/managers/PeginManager.d.ts.map +1 -1
- package/dist/tbv/core/primitives/index.cjs +1 -1
- package/dist/tbv/core/primitives/index.d.ts +2 -0
- package/dist/tbv/core/primitives/index.d.ts.map +1 -1
- package/dist/tbv/core/primitives/index.js +21 -20
- package/dist/tbv/core/primitives/psbt/refund.d.ts +42 -0
- package/dist/tbv/core/primitives/psbt/refund.d.ts.map +1 -0
- package/dist/tbv/core/wots/__tests__/derivation.test.d.ts.map +1 -0
- package/dist/tbv/core/{lamport → wots}/derivation.d.ts +16 -16
- package/dist/tbv/core/wots/derivation.d.ts.map +1 -0
- package/dist/tbv/core/wots/deriveWotsPkHash.d.ts +9 -0
- package/dist/tbv/core/wots/deriveWotsPkHash.d.ts.map +1 -0
- package/dist/tbv/core/wots/errors.d.ts +7 -0
- package/dist/tbv/core/wots/errors.d.ts.map +1 -0
- package/dist/tbv/core/wots/index.d.ts +5 -0
- package/dist/tbv/core/wots/index.d.ts.map +1 -0
- package/dist/tbv/core/{lamport → wots}/types.d.ts +8 -8
- package/dist/tbv/core/wots/types.d.ts.map +1 -0
- package/dist/tbv/index.cjs +1 -1
- package/dist/tbv/index.js +59 -58
- package/dist/tbv/integrations/aave/clients/abis/AaveIntegrationAdapter.abi.json.d.ts +459 -485
- package/dist/tbv/integrations/aave/index.cjs +1 -1
- package/dist/tbv/integrations/aave/index.cjs.map +1 -1
- package/dist/tbv/integrations/aave/index.js +91 -91
- package/package.json +3 -3
- package/dist/challengeAssert-DW0sEUgn.cjs +0 -2
- package/dist/challengeAssert-DW0sEUgn.cjs.map +0 -1
- package/dist/challengeAssert-DnnliaRt.js +0 -645
- package/dist/challengeAssert-DnnliaRt.js.map +0 -1
- package/dist/errors-DOJdtNTD.js.map +0 -1
- package/dist/errors-DbATYfYA.cjs +0 -2
- package/dist/errors-DbATYfYA.cjs.map +0 -1
- package/dist/tbv/core/lamport/__tests__/derivation.test.d.ts.map +0 -1
- package/dist/tbv/core/lamport/derivation.d.ts.map +0 -1
- package/dist/tbv/core/lamport/deriveLamportPkHash.d.ts +0 -9
- package/dist/tbv/core/lamport/deriveLamportPkHash.d.ts.map +0 -1
- package/dist/tbv/core/lamport/errors.d.ts +0 -7
- package/dist/tbv/core/lamport/errors.d.ts.map +0 -1
- package/dist/tbv/core/lamport/index.d.ts +0 -5
- package/dist/tbv/core/lamport/index.d.ts.map +0 -1
- package/dist/tbv/core/lamport/types.d.ts.map +0 -1
- /package/dist/tbv/core/{lamport → wots}/__tests__/derivation.test.d.ts +0 -0
|
@@ -13,7 +13,7 @@ declare const _default: [
|
|
|
13
13
|
"internalType": "address"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
|
-
"name": "
|
|
16
|
+
"name": "btcVaultRegistry_",
|
|
17
17
|
"type": "address",
|
|
18
18
|
"internalType": "address"
|
|
19
19
|
},
|
|
@@ -23,7 +23,7 @@ declare const _default: [
|
|
|
23
23
|
"internalType": "address"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
"name": "
|
|
26
|
+
"name": "proxyManager_",
|
|
27
27
|
"type": "address",
|
|
28
28
|
"internalType": "address"
|
|
29
29
|
},
|
|
@@ -32,39 +32,23 @@ declare const _default: [
|
|
|
32
32
|
"type": "uint256",
|
|
33
33
|
"internalType": "uint256"
|
|
34
34
|
},
|
|
35
|
+
{
|
|
36
|
+
"name": "coreWbtcReserveId_",
|
|
37
|
+
"type": "uint256",
|
|
38
|
+
"internalType": "uint256"
|
|
39
|
+
},
|
|
35
40
|
{
|
|
36
41
|
"name": "protocolParams_",
|
|
37
42
|
"type": "address",
|
|
38
43
|
"internalType": "address"
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
"stateMutability": "nonpayable"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"type": "function",
|
|
45
|
-
"name": "APPLICATION_ADMIN",
|
|
46
|
-
"inputs": [],
|
|
47
|
-
"outputs": [
|
|
48
|
-
{
|
|
49
|
-
"name": "",
|
|
50
|
-
"type": "bytes32",
|
|
51
|
-
"internalType": "bytes32"
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
"stateMutability": "pure"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"type": "function",
|
|
58
|
-
"name": "APPLICATION_PAUSING_GUARDIAN",
|
|
59
|
-
"inputs": [],
|
|
60
|
-
"outputs": [
|
|
44
|
+
},
|
|
61
45
|
{
|
|
62
|
-
"name": "",
|
|
63
|
-
"type": "
|
|
64
|
-
"internalType": "
|
|
46
|
+
"name": "llpRegistry_",
|
|
47
|
+
"type": "address",
|
|
48
|
+
"internalType": "address"
|
|
65
49
|
}
|
|
66
50
|
],
|
|
67
|
-
"stateMutability": "
|
|
51
|
+
"stateMutability": "nonpayable"
|
|
68
52
|
},
|
|
69
53
|
{
|
|
70
54
|
"type": "function",
|
|
@@ -94,20 +78,20 @@ declare const _default: [
|
|
|
94
78
|
},
|
|
95
79
|
{
|
|
96
80
|
"type": "function",
|
|
97
|
-
"name": "
|
|
81
|
+
"name": "BTC_VAULT_CORE_VAULT_BTC_RESERVE_ID",
|
|
98
82
|
"inputs": [],
|
|
99
83
|
"outputs": [
|
|
100
84
|
{
|
|
101
85
|
"name": "",
|
|
102
|
-
"type": "
|
|
103
|
-
"internalType": "
|
|
86
|
+
"type": "uint256",
|
|
87
|
+
"internalType": "uint256"
|
|
104
88
|
}
|
|
105
89
|
],
|
|
106
90
|
"stateMutability": "view"
|
|
107
91
|
},
|
|
108
92
|
{
|
|
109
93
|
"type": "function",
|
|
110
|
-
"name": "
|
|
94
|
+
"name": "BTC_VAULT_CORE_WBTC_RESERVE_ID",
|
|
111
95
|
"inputs": [],
|
|
112
96
|
"outputs": [
|
|
113
97
|
{
|
|
@@ -120,13 +104,13 @@ declare const _default: [
|
|
|
120
104
|
},
|
|
121
105
|
{
|
|
122
106
|
"type": "function",
|
|
123
|
-
"name": "
|
|
107
|
+
"name": "BTC_VAULT_REGISTRY",
|
|
124
108
|
"inputs": [],
|
|
125
109
|
"outputs": [
|
|
126
110
|
{
|
|
127
111
|
"name": "",
|
|
128
112
|
"type": "address",
|
|
129
|
-
"internalType": "contract
|
|
113
|
+
"internalType": "contract IBTCVaultRegistry"
|
|
130
114
|
}
|
|
131
115
|
],
|
|
132
116
|
"stateMutability": "view"
|
|
@@ -144,19 +128,6 @@ declare const _default: [
|
|
|
144
128
|
],
|
|
145
129
|
"stateMutability": "view"
|
|
146
130
|
},
|
|
147
|
-
{
|
|
148
|
-
"type": "function",
|
|
149
|
-
"name": "PROTOCOL_PARAMS",
|
|
150
|
-
"inputs": [],
|
|
151
|
-
"outputs": [
|
|
152
|
-
{
|
|
153
|
-
"name": "",
|
|
154
|
-
"type": "address",
|
|
155
|
-
"internalType": "contract IProtocolParams"
|
|
156
|
-
}
|
|
157
|
-
],
|
|
158
|
-
"stateMutability": "view"
|
|
159
|
-
},
|
|
160
131
|
{
|
|
161
132
|
"type": "function",
|
|
162
133
|
"name": "TIMELOCK_UPGRADER",
|
|
@@ -208,7 +179,7 @@ declare const _default: [
|
|
|
208
179
|
{
|
|
209
180
|
"name": "vault",
|
|
210
181
|
"type": "tuple",
|
|
211
|
-
"internalType": "struct
|
|
182
|
+
"internalType": "struct IBTCVaultRegistry.BTCVault",
|
|
212
183
|
"components": [
|
|
213
184
|
{
|
|
214
185
|
"name": "depositor",
|
|
@@ -238,7 +209,7 @@ declare const _default: [
|
|
|
238
209
|
{
|
|
239
210
|
"name": "status",
|
|
240
211
|
"type": "uint8",
|
|
241
|
-
"internalType": "enum
|
|
212
|
+
"internalType": "enum IBTCVaultRegistry.BTCVaultStatus"
|
|
242
213
|
},
|
|
243
214
|
{
|
|
244
215
|
"name": "applicationEntryPoint",
|
|
@@ -260,11 +231,6 @@ declare const _default: [
|
|
|
260
231
|
"type": "uint16",
|
|
261
232
|
"internalType": "uint16"
|
|
262
233
|
},
|
|
263
|
-
{
|
|
264
|
-
"name": "proverProgramVersion",
|
|
265
|
-
"type": "uint16",
|
|
266
|
-
"internalType": "uint16"
|
|
267
|
-
},
|
|
268
234
|
{
|
|
269
235
|
"name": "createdAt",
|
|
270
236
|
"type": "uint256",
|
|
@@ -276,7 +242,7 @@ declare const _default: [
|
|
|
276
242
|
"internalType": "uint256"
|
|
277
243
|
},
|
|
278
244
|
{
|
|
279
|
-
"name": "
|
|
245
|
+
"name": "depositorWotsPkHash",
|
|
280
246
|
"type": "bytes32",
|
|
281
247
|
"internalType": "bytes32"
|
|
282
248
|
},
|
|
@@ -289,8 +255,23 @@ declare const _default: [
|
|
|
289
255
|
"name": "htlcVout",
|
|
290
256
|
"type": "uint8",
|
|
291
257
|
"internalType": "uint8"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "depositorPopSignature",
|
|
261
|
+
"type": "bytes",
|
|
262
|
+
"internalType": "bytes"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"name": "prePeginTxHash",
|
|
266
|
+
"type": "bytes32",
|
|
267
|
+
"internalType": "bytes32"
|
|
292
268
|
}
|
|
293
269
|
]
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"name": "activationMetadata",
|
|
273
|
+
"type": "bytes",
|
|
274
|
+
"internalType": "bytes"
|
|
294
275
|
}
|
|
295
276
|
],
|
|
296
277
|
"outputs": [],
|
|
@@ -298,7 +279,7 @@ declare const _default: [
|
|
|
298
279
|
},
|
|
299
280
|
{
|
|
300
281
|
"type": "function",
|
|
301
|
-
"name": "
|
|
282
|
+
"name": "applicationRecipient",
|
|
302
283
|
"inputs": [],
|
|
303
284
|
"outputs": [
|
|
304
285
|
{
|
|
@@ -345,129 +326,55 @@ declare const _default: [
|
|
|
345
326
|
},
|
|
346
327
|
{
|
|
347
328
|
"type": "function",
|
|
348
|
-
"name": "
|
|
349
|
-
"inputs": [
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
"type": "address",
|
|
353
|
-
"internalType": "address"
|
|
354
|
-
}
|
|
355
|
-
],
|
|
356
|
-
"outputs": [
|
|
357
|
-
{
|
|
358
|
-
"name": "fairnessPayment",
|
|
359
|
-
"type": "tuple",
|
|
360
|
-
"internalType": "struct TokenAmountLib.TokenAmount",
|
|
361
|
-
"components": [
|
|
362
|
-
{
|
|
363
|
-
"name": "token",
|
|
364
|
-
"type": "address",
|
|
365
|
-
"internalType": "address"
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
"name": "amount",
|
|
369
|
-
"type": "uint256",
|
|
370
|
-
"internalType": "uint256"
|
|
371
|
-
}
|
|
372
|
-
]
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
"name": "protocolFee",
|
|
376
|
-
"type": "tuple",
|
|
377
|
-
"internalType": "struct TokenAmountLib.TokenAmount",
|
|
378
|
-
"components": [
|
|
379
|
-
{
|
|
380
|
-
"name": "token",
|
|
381
|
-
"type": "address",
|
|
382
|
-
"internalType": "address"
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
"name": "amount",
|
|
386
|
-
"type": "uint256",
|
|
387
|
-
"internalType": "uint256"
|
|
388
|
-
}
|
|
389
|
-
]
|
|
390
|
-
}
|
|
391
|
-
],
|
|
392
|
-
"stateMutability": "view"
|
|
329
|
+
"name": "freeze",
|
|
330
|
+
"inputs": [],
|
|
331
|
+
"outputs": [],
|
|
332
|
+
"stateMutability": "nonpayable"
|
|
393
333
|
},
|
|
394
334
|
{
|
|
395
335
|
"type": "function",
|
|
396
|
-
"name": "
|
|
397
|
-
"inputs": [
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
"type": "address",
|
|
401
|
-
"internalType": "address"
|
|
402
|
-
}
|
|
403
|
-
],
|
|
404
|
-
"outputs": [
|
|
405
|
-
{
|
|
406
|
-
"name": "payments",
|
|
407
|
-
"type": "tuple[]",
|
|
408
|
-
"internalType": "struct TokenAmountLib.TokenAmount[]",
|
|
409
|
-
"components": [
|
|
410
|
-
{
|
|
411
|
-
"name": "token",
|
|
412
|
-
"type": "address",
|
|
413
|
-
"internalType": "address"
|
|
414
|
-
},
|
|
415
|
-
{
|
|
416
|
-
"name": "amount",
|
|
417
|
-
"type": "uint256",
|
|
418
|
-
"internalType": "uint256"
|
|
419
|
-
}
|
|
420
|
-
]
|
|
421
|
-
}
|
|
422
|
-
],
|
|
423
|
-
"stateMutability": "view"
|
|
336
|
+
"name": "fullPause",
|
|
337
|
+
"inputs": [],
|
|
338
|
+
"outputs": [],
|
|
339
|
+
"stateMutability": "nonpayable"
|
|
424
340
|
},
|
|
425
341
|
{
|
|
426
342
|
"type": "function",
|
|
427
|
-
"name": "
|
|
343
|
+
"name": "getFairnessPaymentTokenConfig",
|
|
428
344
|
"inputs": [],
|
|
429
345
|
"outputs": [
|
|
430
346
|
{
|
|
431
|
-
"name": "",
|
|
347
|
+
"name": "reserveId",
|
|
432
348
|
"type": "uint256",
|
|
433
349
|
"internalType": "uint256"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "token",
|
|
353
|
+
"type": "address",
|
|
354
|
+
"internalType": "address"
|
|
434
355
|
}
|
|
435
356
|
],
|
|
436
357
|
"stateMutability": "view"
|
|
437
358
|
},
|
|
438
359
|
{
|
|
439
360
|
"type": "function",
|
|
440
|
-
"name": "
|
|
441
|
-
"inputs": [
|
|
442
|
-
"outputs": [
|
|
361
|
+
"name": "getInterestFeeIndex",
|
|
362
|
+
"inputs": [
|
|
443
363
|
{
|
|
444
|
-
"name": "",
|
|
364
|
+
"name": "reserveId",
|
|
445
365
|
"type": "uint256",
|
|
446
366
|
"internalType": "uint256"
|
|
447
367
|
}
|
|
448
368
|
],
|
|
449
|
-
"stateMutability": "view"
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
"type": "function",
|
|
453
|
-
"name": "fairnessPaymentToken",
|
|
454
|
-
"inputs": [],
|
|
455
369
|
"outputs": [
|
|
456
370
|
{
|
|
457
|
-
"name": "",
|
|
458
|
-
"type": "
|
|
459
|
-
"internalType": "
|
|
371
|
+
"name": "interestFeeIndex",
|
|
372
|
+
"type": "uint256",
|
|
373
|
+
"internalType": "uint256"
|
|
460
374
|
}
|
|
461
375
|
],
|
|
462
376
|
"stateMutability": "view"
|
|
463
377
|
},
|
|
464
|
-
{
|
|
465
|
-
"type": "function",
|
|
466
|
-
"name": "fullPause",
|
|
467
|
-
"inputs": [],
|
|
468
|
-
"outputs": [],
|
|
469
|
-
"stateMutability": "nonpayable"
|
|
470
|
-
},
|
|
471
378
|
{
|
|
472
379
|
"type": "function",
|
|
473
380
|
"name": "getPosition",
|
|
@@ -482,13 +389,18 @@ declare const _default: [
|
|
|
482
389
|
{
|
|
483
390
|
"name": "position",
|
|
484
391
|
"type": "tuple",
|
|
485
|
-
"internalType": "struct
|
|
392
|
+
"internalType": "struct IAaveIntegrationAdapter.MarketPosition",
|
|
486
393
|
"components": [
|
|
487
394
|
{
|
|
488
395
|
"name": "vaultIds",
|
|
489
396
|
"type": "bytes32[]",
|
|
490
397
|
"internalType": "bytes32[]"
|
|
491
398
|
},
|
|
399
|
+
{
|
|
400
|
+
"name": "totalCollateralBTC",
|
|
401
|
+
"type": "uint256",
|
|
402
|
+
"internalType": "uint256"
|
|
403
|
+
},
|
|
492
404
|
{
|
|
493
405
|
"name": "proxyContract",
|
|
494
406
|
"type": "address",
|
|
@@ -499,35 +411,11 @@ declare const _default: [
|
|
|
499
411
|
],
|
|
500
412
|
"stateMutability": "view"
|
|
501
413
|
},
|
|
502
|
-
{
|
|
503
|
-
"type": "function",
|
|
504
|
-
"name": "getPositionCollateral",
|
|
505
|
-
"inputs": [
|
|
506
|
-
{
|
|
507
|
-
"name": "user",
|
|
508
|
-
"type": "address",
|
|
509
|
-
"internalType": "address"
|
|
510
|
-
}
|
|
511
|
-
],
|
|
512
|
-
"outputs": [
|
|
513
|
-
{
|
|
514
|
-
"name": "totalCollateral",
|
|
515
|
-
"type": "uint256",
|
|
516
|
-
"internalType": "uint256"
|
|
517
|
-
}
|
|
518
|
-
],
|
|
519
|
-
"stateMutability": "view"
|
|
520
|
-
},
|
|
521
414
|
{
|
|
522
415
|
"type": "function",
|
|
523
416
|
"name": "getPositionSizeParams",
|
|
524
417
|
"inputs": [],
|
|
525
418
|
"outputs": [
|
|
526
|
-
{
|
|
527
|
-
"name": "minPositionBTC",
|
|
528
|
-
"type": "uint256",
|
|
529
|
-
"internalType": "uint256"
|
|
530
|
-
},
|
|
531
419
|
{
|
|
532
420
|
"name": "maxPositionBTC",
|
|
533
421
|
"type": "uint256",
|
|
@@ -560,44 +448,6 @@ declare const _default: [
|
|
|
560
448
|
],
|
|
561
449
|
"stateMutability": "view"
|
|
562
450
|
},
|
|
563
|
-
{
|
|
564
|
-
"type": "function",
|
|
565
|
-
"name": "getUserOfProxy",
|
|
566
|
-
"inputs": [
|
|
567
|
-
{
|
|
568
|
-
"name": "proxy",
|
|
569
|
-
"type": "address",
|
|
570
|
-
"internalType": "address"
|
|
571
|
-
}
|
|
572
|
-
],
|
|
573
|
-
"outputs": [
|
|
574
|
-
{
|
|
575
|
-
"name": "user",
|
|
576
|
-
"type": "address",
|
|
577
|
-
"internalType": "address"
|
|
578
|
-
}
|
|
579
|
-
],
|
|
580
|
-
"stateMutability": "view"
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
"type": "function",
|
|
584
|
-
"name": "getVaultOwner",
|
|
585
|
-
"inputs": [
|
|
586
|
-
{
|
|
587
|
-
"name": "vaultId",
|
|
588
|
-
"type": "bytes32",
|
|
589
|
-
"internalType": "bytes32"
|
|
590
|
-
}
|
|
591
|
-
],
|
|
592
|
-
"outputs": [
|
|
593
|
-
{
|
|
594
|
-
"name": "owner",
|
|
595
|
-
"type": "address",
|
|
596
|
-
"internalType": "address"
|
|
597
|
-
}
|
|
598
|
-
],
|
|
599
|
-
"stateMutability": "view"
|
|
600
|
-
},
|
|
601
451
|
{
|
|
602
452
|
"type": "function",
|
|
603
453
|
"name": "getVaultUsageStatus",
|
|
@@ -669,14 +519,19 @@ declare const _default: [
|
|
|
669
519
|
"internalType": "address"
|
|
670
520
|
},
|
|
671
521
|
{
|
|
672
|
-
"name": "
|
|
522
|
+
"name": "_applicationRecipient",
|
|
523
|
+
"type": "address",
|
|
524
|
+
"internalType": "address"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"name": "_liquidationRedemptionFeeBps",
|
|
673
528
|
"type": "uint256",
|
|
674
529
|
"internalType": "uint256"
|
|
675
530
|
},
|
|
676
531
|
{
|
|
677
|
-
"name": "
|
|
678
|
-
"type": "
|
|
679
|
-
"internalType": "
|
|
532
|
+
"name": "_initialInterestFeeBps",
|
|
533
|
+
"type": "uint256",
|
|
534
|
+
"internalType": "uint256"
|
|
680
535
|
}
|
|
681
536
|
],
|
|
682
537
|
"outputs": [],
|
|
@@ -684,12 +539,25 @@ declare const _default: [
|
|
|
684
539
|
},
|
|
685
540
|
{
|
|
686
541
|
"type": "function",
|
|
687
|
-
"name": "
|
|
542
|
+
"name": "interestFeeBps",
|
|
543
|
+
"inputs": [],
|
|
544
|
+
"outputs": [
|
|
545
|
+
{
|
|
546
|
+
"name": "",
|
|
547
|
+
"type": "uint256",
|
|
548
|
+
"internalType": "uint256"
|
|
549
|
+
}
|
|
550
|
+
],
|
|
551
|
+
"stateMutability": "view"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"type": "function",
|
|
555
|
+
"name": "isValidPositionResolver",
|
|
688
556
|
"inputs": [
|
|
689
557
|
{
|
|
690
|
-
"name": "
|
|
691
|
-
"type": "
|
|
692
|
-
"internalType": "
|
|
558
|
+
"name": "resolver",
|
|
559
|
+
"type": "address",
|
|
560
|
+
"internalType": "address"
|
|
693
561
|
}
|
|
694
562
|
],
|
|
695
563
|
"outputs": [
|
|
@@ -703,26 +571,41 @@ declare const _default: [
|
|
|
703
571
|
},
|
|
704
572
|
{
|
|
705
573
|
"type": "function",
|
|
706
|
-
"name": "
|
|
574
|
+
"name": "liquidate",
|
|
707
575
|
"inputs": [
|
|
708
576
|
{
|
|
709
|
-
"name": "
|
|
577
|
+
"name": "borrower",
|
|
578
|
+
"type": "address",
|
|
579
|
+
"internalType": "address"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"name": "directBtcRedeemKey",
|
|
710
583
|
"type": "bytes32",
|
|
711
584
|
"internalType": "bytes32"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"name": "amounts",
|
|
588
|
+
"type": "uint256[]",
|
|
589
|
+
"internalType": "uint256[]"
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"name": "priorityOrder",
|
|
593
|
+
"type": "uint256[]",
|
|
594
|
+
"internalType": "uint256[]"
|
|
712
595
|
}
|
|
713
596
|
],
|
|
714
597
|
"outputs": [
|
|
715
598
|
{
|
|
716
|
-
"name": "",
|
|
717
|
-
"type": "
|
|
718
|
-
"internalType": "
|
|
599
|
+
"name": "vaultIds",
|
|
600
|
+
"type": "bytes32[]",
|
|
601
|
+
"internalType": "bytes32[]"
|
|
719
602
|
}
|
|
720
603
|
],
|
|
721
|
-
"stateMutability": "
|
|
604
|
+
"stateMutability": "nonpayable"
|
|
722
605
|
},
|
|
723
606
|
{
|
|
724
607
|
"type": "function",
|
|
725
|
-
"name": "
|
|
608
|
+
"name": "liquidateWithLLP",
|
|
726
609
|
"inputs": [
|
|
727
610
|
{
|
|
728
611
|
"name": "borrower",
|
|
@@ -730,52 +613,69 @@ declare const _default: [
|
|
|
730
613
|
"internalType": "address"
|
|
731
614
|
},
|
|
732
615
|
{
|
|
733
|
-
"name": "
|
|
734
|
-
"type": "
|
|
735
|
-
"internalType": "
|
|
616
|
+
"name": "llp",
|
|
617
|
+
"type": "address",
|
|
618
|
+
"internalType": "address"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"name": "amounts",
|
|
622
|
+
"type": "uint256[]",
|
|
623
|
+
"internalType": "uint256[]"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"name": "priorityOrder",
|
|
627
|
+
"type": "uint256[]",
|
|
628
|
+
"internalType": "uint256[]"
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"name": "requestedTokens",
|
|
632
|
+
"type": "tuple[]",
|
|
633
|
+
"internalType": "struct TokenAmountLib.TokenAmount[]",
|
|
634
|
+
"components": [
|
|
635
|
+
{
|
|
636
|
+
"name": "token",
|
|
637
|
+
"type": "address",
|
|
638
|
+
"internalType": "address"
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"name": "amount",
|
|
642
|
+
"type": "uint256",
|
|
643
|
+
"internalType": "uint256"
|
|
644
|
+
}
|
|
645
|
+
]
|
|
736
646
|
}
|
|
737
647
|
],
|
|
738
648
|
"outputs": [
|
|
739
649
|
{
|
|
740
|
-
"name": "
|
|
741
|
-
"type": "
|
|
742
|
-
"internalType": "
|
|
650
|
+
"name": "vaultIds",
|
|
651
|
+
"type": "bytes32[]",
|
|
652
|
+
"internalType": "bytes32[]"
|
|
743
653
|
}
|
|
744
654
|
],
|
|
745
655
|
"stateMutability": "nonpayable"
|
|
746
656
|
},
|
|
747
657
|
{
|
|
748
658
|
"type": "function",
|
|
749
|
-
"name": "
|
|
659
|
+
"name": "liquidationRedemptionFeeBps",
|
|
750
660
|
"inputs": [],
|
|
751
661
|
"outputs": [
|
|
752
662
|
{
|
|
753
663
|
"name": "",
|
|
754
|
-
"type": "
|
|
755
|
-
"internalType": "
|
|
664
|
+
"type": "uint256",
|
|
665
|
+
"internalType": "uint256"
|
|
756
666
|
}
|
|
757
667
|
],
|
|
758
668
|
"stateMutability": "view"
|
|
759
669
|
},
|
|
760
670
|
{
|
|
761
671
|
"type": "function",
|
|
762
|
-
"name": "
|
|
672
|
+
"name": "pauseState",
|
|
763
673
|
"inputs": [],
|
|
764
674
|
"outputs": [
|
|
765
675
|
{
|
|
766
|
-
"name": "
|
|
767
|
-
"type": "
|
|
768
|
-
"internalType": "
|
|
769
|
-
},
|
|
770
|
-
{
|
|
771
|
-
"name": "maxPositionBTC",
|
|
772
|
-
"type": "uint256",
|
|
773
|
-
"internalType": "uint256"
|
|
774
|
-
},
|
|
775
|
-
{
|
|
776
|
-
"name": "maxVaultsPerPosition",
|
|
777
|
-
"type": "uint256",
|
|
778
|
-
"internalType": "uint256"
|
|
676
|
+
"name": "",
|
|
677
|
+
"type": "uint8",
|
|
678
|
+
"internalType": "enum ITBVPausable.PauseState"
|
|
779
679
|
}
|
|
780
680
|
],
|
|
781
681
|
"stateMutability": "view"
|
|
@@ -795,7 +695,7 @@ declare const _default: [
|
|
|
795
695
|
},
|
|
796
696
|
{
|
|
797
697
|
"type": "function",
|
|
798
|
-
"name": "
|
|
698
|
+
"name": "redeemVaultFromLLP",
|
|
799
699
|
"inputs": [
|
|
800
700
|
{
|
|
801
701
|
"name": "vaultId",
|
|
@@ -811,6 +711,32 @@ declare const _default: [
|
|
|
811
711
|
"outputs": [],
|
|
812
712
|
"stateMutability": "nonpayable"
|
|
813
713
|
},
|
|
714
|
+
{
|
|
715
|
+
"type": "function",
|
|
716
|
+
"name": "registerResolver",
|
|
717
|
+
"inputs": [
|
|
718
|
+
{
|
|
719
|
+
"name": "resolver",
|
|
720
|
+
"type": "address",
|
|
721
|
+
"internalType": "address"
|
|
722
|
+
}
|
|
723
|
+
],
|
|
724
|
+
"outputs": [],
|
|
725
|
+
"stateMutability": "nonpayable"
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
"type": "function",
|
|
729
|
+
"name": "removeResolver",
|
|
730
|
+
"inputs": [
|
|
731
|
+
{
|
|
732
|
+
"name": "resolver",
|
|
733
|
+
"type": "address",
|
|
734
|
+
"internalType": "address"
|
|
735
|
+
}
|
|
736
|
+
],
|
|
737
|
+
"outputs": [],
|
|
738
|
+
"stateMutability": "nonpayable"
|
|
739
|
+
},
|
|
814
740
|
{
|
|
815
741
|
"type": "function",
|
|
816
742
|
"name": "renounceRole",
|
|
@@ -829,6 +755,19 @@ declare const _default: [
|
|
|
829
755
|
"outputs": [],
|
|
830
756
|
"stateMutability": "nonpayable"
|
|
831
757
|
},
|
|
758
|
+
{
|
|
759
|
+
"type": "function",
|
|
760
|
+
"name": "reorderVaults",
|
|
761
|
+
"inputs": [
|
|
762
|
+
{
|
|
763
|
+
"name": "permuted",
|
|
764
|
+
"type": "bytes32[]",
|
|
765
|
+
"internalType": "bytes32[]"
|
|
766
|
+
}
|
|
767
|
+
],
|
|
768
|
+
"outputs": [],
|
|
769
|
+
"stateMutability": "nonpayable"
|
|
770
|
+
},
|
|
832
771
|
{
|
|
833
772
|
"type": "function",
|
|
834
773
|
"name": "repayToCorePosition",
|
|
@@ -850,6 +789,11 @@ declare const _default: [
|
|
|
850
789
|
}
|
|
851
790
|
],
|
|
852
791
|
"outputs": [
|
|
792
|
+
{
|
|
793
|
+
"name": "repaidFee",
|
|
794
|
+
"type": "uint256",
|
|
795
|
+
"internalType": "uint256"
|
|
796
|
+
},
|
|
853
797
|
{
|
|
854
798
|
"name": "repaidShares",
|
|
855
799
|
"type": "uint256",
|
|
@@ -883,10 +827,10 @@ declare const _default: [
|
|
|
883
827
|
},
|
|
884
828
|
{
|
|
885
829
|
"type": "function",
|
|
886
|
-
"name": "
|
|
830
|
+
"name": "setApplicationRecipient",
|
|
887
831
|
"inputs": [
|
|
888
832
|
{
|
|
889
|
-
"name": "
|
|
833
|
+
"name": "_applicationRecipient",
|
|
890
834
|
"type": "address",
|
|
891
835
|
"internalType": "address"
|
|
892
836
|
}
|
|
@@ -896,10 +840,10 @@ declare const _default: [
|
|
|
896
840
|
},
|
|
897
841
|
{
|
|
898
842
|
"type": "function",
|
|
899
|
-
"name": "
|
|
843
|
+
"name": "setInterestFeeBps",
|
|
900
844
|
"inputs": [
|
|
901
845
|
{
|
|
902
|
-
"name": "
|
|
846
|
+
"name": "feeBps",
|
|
903
847
|
"type": "uint256",
|
|
904
848
|
"internalType": "uint256"
|
|
905
849
|
}
|
|
@@ -909,12 +853,12 @@ declare const _default: [
|
|
|
909
853
|
},
|
|
910
854
|
{
|
|
911
855
|
"type": "function",
|
|
912
|
-
"name": "
|
|
856
|
+
"name": "setLiquidationRedemptionFeeBps",
|
|
913
857
|
"inputs": [
|
|
914
858
|
{
|
|
915
|
-
"name": "
|
|
916
|
-
"type": "
|
|
917
|
-
"internalType": "
|
|
859
|
+
"name": "feeBps",
|
|
860
|
+
"type": "uint256",
|
|
861
|
+
"internalType": "uint256"
|
|
918
862
|
}
|
|
919
863
|
],
|
|
920
864
|
"outputs": [],
|
|
@@ -927,13 +871,8 @@ declare const _default: [
|
|
|
927
871
|
{
|
|
928
872
|
"name": "params",
|
|
929
873
|
"type": "tuple",
|
|
930
|
-
"internalType": "struct
|
|
874
|
+
"internalType": "struct IAaveIntegrationAdapter.PositionSizeParams",
|
|
931
875
|
"components": [
|
|
932
|
-
{
|
|
933
|
-
"name": "minPositionBTC",
|
|
934
|
-
"type": "uint256",
|
|
935
|
-
"internalType": "uint256"
|
|
936
|
-
},
|
|
937
876
|
{
|
|
938
877
|
"name": "maxPositionBTC",
|
|
939
878
|
"type": "uint256",
|
|
@@ -950,26 +889,6 @@ declare const _default: [
|
|
|
950
889
|
"outputs": [],
|
|
951
890
|
"stateMutability": "nonpayable"
|
|
952
891
|
},
|
|
953
|
-
{
|
|
954
|
-
"type": "function",
|
|
955
|
-
"name": "setVaultSwap",
|
|
956
|
-
"inputs": [
|
|
957
|
-
{
|
|
958
|
-
"name": "vaultSwap_",
|
|
959
|
-
"type": "address",
|
|
960
|
-
"internalType": "address"
|
|
961
|
-
}
|
|
962
|
-
],
|
|
963
|
-
"outputs": [],
|
|
964
|
-
"stateMutability": "nonpayable"
|
|
965
|
-
},
|
|
966
|
-
{
|
|
967
|
-
"type": "function",
|
|
968
|
-
"name": "softPause",
|
|
969
|
-
"inputs": [],
|
|
970
|
-
"outputs": [],
|
|
971
|
-
"stateMutability": "nonpayable"
|
|
972
|
-
},
|
|
973
892
|
{
|
|
974
893
|
"type": "function",
|
|
975
894
|
"name": "supportsInterface",
|
|
@@ -989,6 +908,13 @@ declare const _default: [
|
|
|
989
908
|
],
|
|
990
909
|
"stateMutability": "view"
|
|
991
910
|
},
|
|
911
|
+
{
|
|
912
|
+
"type": "function",
|
|
913
|
+
"name": "unfreeze",
|
|
914
|
+
"inputs": [],
|
|
915
|
+
"outputs": [],
|
|
916
|
+
"stateMutability": "nonpayable"
|
|
917
|
+
},
|
|
992
918
|
{
|
|
993
919
|
"type": "function",
|
|
994
920
|
"name": "unpause",
|
|
@@ -1035,48 +961,74 @@ declare const _default: [
|
|
|
1035
961
|
},
|
|
1036
962
|
{
|
|
1037
963
|
"type": "function",
|
|
1038
|
-
"name": "
|
|
1039
|
-
"inputs": [
|
|
964
|
+
"name": "withdrawCollaterals",
|
|
965
|
+
"inputs": [
|
|
966
|
+
{
|
|
967
|
+
"name": "vaultsToWithdraw",
|
|
968
|
+
"type": "bytes32[]",
|
|
969
|
+
"internalType": "bytes32[]"
|
|
970
|
+
}
|
|
971
|
+
],
|
|
1040
972
|
"outputs": [
|
|
1041
973
|
{
|
|
1042
|
-
"name": "",
|
|
974
|
+
"name": "amountWithdrawn",
|
|
975
|
+
"type": "uint256",
|
|
976
|
+
"internalType": "uint256"
|
|
977
|
+
}
|
|
978
|
+
],
|
|
979
|
+
"stateMutability": "nonpayable"
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
"type": "event",
|
|
983
|
+
"name": "AdapterApplicationRecipientUpdated",
|
|
984
|
+
"inputs": [
|
|
985
|
+
{
|
|
986
|
+
"name": "applicationFeeRecipient",
|
|
1043
987
|
"type": "address",
|
|
988
|
+
"indexed": false,
|
|
1044
989
|
"internalType": "address"
|
|
1045
990
|
}
|
|
1046
991
|
],
|
|
1047
|
-
"
|
|
992
|
+
"anonymous": false
|
|
1048
993
|
},
|
|
1049
994
|
{
|
|
1050
|
-
"type": "
|
|
1051
|
-
"name": "
|
|
1052
|
-
"inputs": [
|
|
1053
|
-
"outputs": [
|
|
995
|
+
"type": "event",
|
|
996
|
+
"name": "AdapterLiquidationRedemptionFeeUpdated",
|
|
997
|
+
"inputs": [
|
|
1054
998
|
{
|
|
1055
|
-
"name": "
|
|
999
|
+
"name": "liquidationRedemptionFeeBps",
|
|
1056
1000
|
"type": "uint256",
|
|
1001
|
+
"indexed": false,
|
|
1057
1002
|
"internalType": "uint256"
|
|
1058
1003
|
}
|
|
1059
1004
|
],
|
|
1060
|
-
"
|
|
1005
|
+
"anonymous": false
|
|
1061
1006
|
},
|
|
1062
1007
|
{
|
|
1063
|
-
"type": "
|
|
1064
|
-
"name": "
|
|
1008
|
+
"type": "event",
|
|
1009
|
+
"name": "AdapterPositionResolverAdded",
|
|
1065
1010
|
"inputs": [
|
|
1066
1011
|
{
|
|
1067
|
-
"name": "
|
|
1068
|
-
"type": "
|
|
1069
|
-
"
|
|
1012
|
+
"name": "positionResolver",
|
|
1013
|
+
"type": "address",
|
|
1014
|
+
"indexed": true,
|
|
1015
|
+
"internalType": "address"
|
|
1070
1016
|
}
|
|
1071
1017
|
],
|
|
1072
|
-
"
|
|
1018
|
+
"anonymous": false
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"type": "event",
|
|
1022
|
+
"name": "AdapterPositionResolverRemoved",
|
|
1023
|
+
"inputs": [
|
|
1073
1024
|
{
|
|
1074
|
-
"name": "
|
|
1075
|
-
"type": "
|
|
1076
|
-
"
|
|
1025
|
+
"name": "positionResolver",
|
|
1026
|
+
"type": "address",
|
|
1027
|
+
"indexed": true,
|
|
1028
|
+
"internalType": "address"
|
|
1077
1029
|
}
|
|
1078
1030
|
],
|
|
1079
|
-
"
|
|
1031
|
+
"anonymous": false
|
|
1080
1032
|
},
|
|
1081
1033
|
{
|
|
1082
1034
|
"type": "event",
|
|
@@ -1095,7 +1047,7 @@ declare const _default: [
|
|
|
1095
1047
|
"internalType": "address"
|
|
1096
1048
|
},
|
|
1097
1049
|
{
|
|
1098
|
-
"name": "
|
|
1050
|
+
"name": "amountCollateralSeized",
|
|
1099
1051
|
"type": "uint256",
|
|
1100
1052
|
"indexed": false,
|
|
1101
1053
|
"internalType": "uint256"
|
|
@@ -1107,13 +1059,7 @@ declare const _default: [
|
|
|
1107
1059
|
"internalType": "uint256"
|
|
1108
1060
|
},
|
|
1109
1061
|
{
|
|
1110
|
-
"name": "
|
|
1111
|
-
"type": "uint256",
|
|
1112
|
-
"indexed": false,
|
|
1113
|
-
"internalType": "uint256"
|
|
1114
|
-
},
|
|
1115
|
-
{
|
|
1116
|
-
"name": "protocolFee",
|
|
1062
|
+
"name": "valueDebtRepaid",
|
|
1117
1063
|
"type": "uint256",
|
|
1118
1064
|
"indexed": false,
|
|
1119
1065
|
"internalType": "uint256"
|
|
@@ -1157,7 +1103,7 @@ declare const _default: [
|
|
|
1157
1103
|
"name": "CollateralAdded",
|
|
1158
1104
|
"inputs": [
|
|
1159
1105
|
{
|
|
1160
|
-
"name": "
|
|
1106
|
+
"name": "positionAccount",
|
|
1161
1107
|
"type": "address",
|
|
1162
1108
|
"indexed": true,
|
|
1163
1109
|
"internalType": "address"
|
|
@@ -1176,7 +1122,7 @@ declare const _default: [
|
|
|
1176
1122
|
"name": "CollateralWithdrawn",
|
|
1177
1123
|
"inputs": [
|
|
1178
1124
|
{
|
|
1179
|
-
"name": "
|
|
1125
|
+
"name": "positionAccount",
|
|
1180
1126
|
"type": "address",
|
|
1181
1127
|
"indexed": true,
|
|
1182
1128
|
"internalType": "address"
|
|
@@ -1192,23 +1138,28 @@ declare const _default: [
|
|
|
1192
1138
|
},
|
|
1193
1139
|
{
|
|
1194
1140
|
"type": "event",
|
|
1195
|
-
"name": "
|
|
1141
|
+
"name": "FairnessPaymentFailed",
|
|
1196
1142
|
"inputs": [
|
|
1197
1143
|
{
|
|
1198
|
-
"name": "
|
|
1144
|
+
"name": "positionAccount",
|
|
1145
|
+
"type": "address",
|
|
1146
|
+
"indexed": true,
|
|
1147
|
+
"internalType": "address"
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
"name": "liquidator",
|
|
1151
|
+
"type": "address",
|
|
1152
|
+
"indexed": true,
|
|
1153
|
+
"internalType": "address"
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
"name": "protocolRecipient",
|
|
1199
1157
|
"type": "address",
|
|
1200
1158
|
"indexed": false,
|
|
1201
1159
|
"internalType": "address"
|
|
1202
|
-
}
|
|
1203
|
-
],
|
|
1204
|
-
"anonymous": false
|
|
1205
|
-
},
|
|
1206
|
-
{
|
|
1207
|
-
"type": "event",
|
|
1208
|
-
"name": "CoreSpokeLiquidationFeeBpsUpdated",
|
|
1209
|
-
"inputs": [
|
|
1160
|
+
},
|
|
1210
1161
|
{
|
|
1211
|
-
"name": "
|
|
1162
|
+
"name": "amount",
|
|
1212
1163
|
"type": "uint256",
|
|
1213
1164
|
"indexed": false,
|
|
1214
1165
|
"internalType": "uint256"
|
|
@@ -1218,10 +1169,10 @@ declare const _default: [
|
|
|
1218
1169
|
},
|
|
1219
1170
|
{
|
|
1220
1171
|
"type": "event",
|
|
1221
|
-
"name": "
|
|
1172
|
+
"name": "FairnessPaymentPaid",
|
|
1222
1173
|
"inputs": [
|
|
1223
1174
|
{
|
|
1224
|
-
"name": "
|
|
1175
|
+
"name": "positionAccount",
|
|
1225
1176
|
"type": "address",
|
|
1226
1177
|
"indexed": true,
|
|
1227
1178
|
"internalType": "address"
|
|
@@ -1233,13 +1184,33 @@ declare const _default: [
|
|
|
1233
1184
|
"internalType": "address"
|
|
1234
1185
|
},
|
|
1235
1186
|
{
|
|
1236
|
-
"name": "
|
|
1237
|
-
"type": "
|
|
1187
|
+
"name": "amount",
|
|
1188
|
+
"type": "uint256",
|
|
1189
|
+
"indexed": false,
|
|
1190
|
+
"internalType": "uint256"
|
|
1191
|
+
}
|
|
1192
|
+
],
|
|
1193
|
+
"anonymous": false
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
"type": "event",
|
|
1197
|
+
"name": "Initialized",
|
|
1198
|
+
"inputs": [
|
|
1199
|
+
{
|
|
1200
|
+
"name": "version",
|
|
1201
|
+
"type": "uint8",
|
|
1238
1202
|
"indexed": false,
|
|
1239
|
-
"internalType": "
|
|
1240
|
-
}
|
|
1203
|
+
"internalType": "uint8"
|
|
1204
|
+
}
|
|
1205
|
+
],
|
|
1206
|
+
"anonymous": false
|
|
1207
|
+
},
|
|
1208
|
+
{
|
|
1209
|
+
"type": "event",
|
|
1210
|
+
"name": "InterestFeeUpdated",
|
|
1211
|
+
"inputs": [
|
|
1241
1212
|
{
|
|
1242
|
-
"name": "
|
|
1213
|
+
"name": "newInterestFeeBps",
|
|
1243
1214
|
"type": "uint256",
|
|
1244
1215
|
"indexed": false,
|
|
1245
1216
|
"internalType": "uint256"
|
|
@@ -1249,10 +1220,10 @@ declare const _default: [
|
|
|
1249
1220
|
},
|
|
1250
1221
|
{
|
|
1251
1222
|
"type": "event",
|
|
1252
|
-
"name": "
|
|
1223
|
+
"name": "LiquidationSettledViaLLP",
|
|
1253
1224
|
"inputs": [
|
|
1254
1225
|
{
|
|
1255
|
-
"name": "
|
|
1226
|
+
"name": "llp",
|
|
1256
1227
|
"type": "address",
|
|
1257
1228
|
"indexed": true,
|
|
1258
1229
|
"internalType": "address"
|
|
@@ -1264,36 +1235,34 @@ declare const _default: [
|
|
|
1264
1235
|
"internalType": "address"
|
|
1265
1236
|
},
|
|
1266
1237
|
{
|
|
1267
|
-
"name": "
|
|
1268
|
-
"type": "uint256",
|
|
1269
|
-
"indexed": false,
|
|
1270
|
-
"internalType": "uint256"
|
|
1271
|
-
}
|
|
1272
|
-
],
|
|
1273
|
-
"anonymous": false
|
|
1274
|
-
},
|
|
1275
|
-
{
|
|
1276
|
-
"type": "event",
|
|
1277
|
-
"name": "FairnessPaymentTokenSet",
|
|
1278
|
-
"inputs": [
|
|
1279
|
-
{
|
|
1280
|
-
"name": "token",
|
|
1238
|
+
"name": "borrower",
|
|
1281
1239
|
"type": "address",
|
|
1282
1240
|
"indexed": true,
|
|
1283
1241
|
"internalType": "address"
|
|
1284
|
-
}
|
|
1285
|
-
],
|
|
1286
|
-
"anonymous": false
|
|
1287
|
-
},
|
|
1288
|
-
{
|
|
1289
|
-
"type": "event",
|
|
1290
|
-
"name": "Initialized",
|
|
1291
|
-
"inputs": [
|
|
1242
|
+
},
|
|
1292
1243
|
{
|
|
1293
|
-
"name": "
|
|
1294
|
-
"type": "
|
|
1244
|
+
"name": "vaultIds",
|
|
1245
|
+
"type": "bytes32[]",
|
|
1295
1246
|
"indexed": false,
|
|
1296
|
-
"internalType": "
|
|
1247
|
+
"internalType": "bytes32[]"
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
"name": "payouts",
|
|
1251
|
+
"type": "tuple[]",
|
|
1252
|
+
"indexed": false,
|
|
1253
|
+
"internalType": "struct TokenAmountLib.TokenAmount[]",
|
|
1254
|
+
"components": [
|
|
1255
|
+
{
|
|
1256
|
+
"name": "token",
|
|
1257
|
+
"type": "address",
|
|
1258
|
+
"internalType": "address"
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"name": "amount",
|
|
1262
|
+
"type": "uint256",
|
|
1263
|
+
"internalType": "uint256"
|
|
1264
|
+
}
|
|
1265
|
+
]
|
|
1297
1266
|
}
|
|
1298
1267
|
],
|
|
1299
1268
|
"anonymous": false
|
|
@@ -1322,40 +1291,22 @@ declare const _default: [
|
|
|
1322
1291
|
"name": "PositionSizeParamsUpdated",
|
|
1323
1292
|
"inputs": [
|
|
1324
1293
|
{
|
|
1325
|
-
"name": "
|
|
1326
|
-
"type": "
|
|
1327
|
-
"indexed": false,
|
|
1328
|
-
"internalType": "uint256"
|
|
1329
|
-
},
|
|
1330
|
-
{
|
|
1331
|
-
"name": "oldMaxPositionBTC",
|
|
1332
|
-
"type": "uint256",
|
|
1333
|
-
"indexed": false,
|
|
1334
|
-
"internalType": "uint256"
|
|
1335
|
-
},
|
|
1336
|
-
{
|
|
1337
|
-
"name": "oldMaxVaultsPerPosition",
|
|
1338
|
-
"type": "uint256",
|
|
1339
|
-
"indexed": false,
|
|
1340
|
-
"internalType": "uint256"
|
|
1341
|
-
},
|
|
1342
|
-
{
|
|
1343
|
-
"name": "newMinPositionBTC",
|
|
1344
|
-
"type": "uint256",
|
|
1345
|
-
"indexed": false,
|
|
1346
|
-
"internalType": "uint256"
|
|
1347
|
-
},
|
|
1348
|
-
{
|
|
1349
|
-
"name": "newMaxPositionBTC",
|
|
1350
|
-
"type": "uint256",
|
|
1351
|
-
"indexed": false,
|
|
1352
|
-
"internalType": "uint256"
|
|
1353
|
-
},
|
|
1354
|
-
{
|
|
1355
|
-
"name": "newMaxVaultsPerPosition",
|
|
1356
|
-
"type": "uint256",
|
|
1294
|
+
"name": "newParams",
|
|
1295
|
+
"type": "tuple",
|
|
1357
1296
|
"indexed": false,
|
|
1358
|
-
"internalType": "
|
|
1297
|
+
"internalType": "struct IAaveIntegrationAdapter.PositionSizeParams",
|
|
1298
|
+
"components": [
|
|
1299
|
+
{
|
|
1300
|
+
"name": "maxPositionBTC",
|
|
1301
|
+
"type": "uint256",
|
|
1302
|
+
"internalType": "uint256"
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
"name": "maxVaultsPerPosition",
|
|
1306
|
+
"type": "uint256",
|
|
1307
|
+
"internalType": "uint256"
|
|
1308
|
+
}
|
|
1309
|
+
]
|
|
1359
1310
|
}
|
|
1360
1311
|
],
|
|
1361
1312
|
"anonymous": false
|
|
@@ -1460,6 +1411,19 @@ declare const _default: [
|
|
|
1460
1411
|
],
|
|
1461
1412
|
"anonymous": false
|
|
1462
1413
|
},
|
|
1414
|
+
{
|
|
1415
|
+
"type": "event",
|
|
1416
|
+
"name": "Unfrozen",
|
|
1417
|
+
"inputs": [
|
|
1418
|
+
{
|
|
1419
|
+
"name": "pauser",
|
|
1420
|
+
"type": "address",
|
|
1421
|
+
"indexed": true,
|
|
1422
|
+
"internalType": "address"
|
|
1423
|
+
}
|
|
1424
|
+
],
|
|
1425
|
+
"anonymous": false
|
|
1426
|
+
},
|
|
1463
1427
|
{
|
|
1464
1428
|
"type": "event",
|
|
1465
1429
|
"name": "Unpaused",
|
|
@@ -1539,7 +1503,7 @@ declare const _default: [
|
|
|
1539
1503
|
},
|
|
1540
1504
|
{
|
|
1541
1505
|
"type": "event",
|
|
1542
|
-
"name": "
|
|
1506
|
+
"name": "VaultMarkedLLPOwned",
|
|
1543
1507
|
"inputs": [
|
|
1544
1508
|
{
|
|
1545
1509
|
"name": "vaultId",
|
|
@@ -1584,13 +1548,19 @@ declare const _default: [
|
|
|
1584
1548
|
},
|
|
1585
1549
|
{
|
|
1586
1550
|
"type": "event",
|
|
1587
|
-
"name": "
|
|
1551
|
+
"name": "VaultsReordered",
|
|
1588
1552
|
"inputs": [
|
|
1589
1553
|
{
|
|
1590
|
-
"name": "
|
|
1554
|
+
"name": "borrower",
|
|
1591
1555
|
"type": "address",
|
|
1592
1556
|
"indexed": true,
|
|
1593
1557
|
"internalType": "address"
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
"name": "newVaults",
|
|
1561
|
+
"type": "bytes32[]",
|
|
1562
|
+
"indexed": false,
|
|
1563
|
+
"internalType": "bytes32[]"
|
|
1594
1564
|
}
|
|
1595
1565
|
],
|
|
1596
1566
|
"anonymous": false
|
|
@@ -1606,16 +1576,6 @@ declare const _default: [
|
|
|
1606
1576
|
}
|
|
1607
1577
|
]
|
|
1608
1578
|
},
|
|
1609
|
-
{
|
|
1610
|
-
"type": "error",
|
|
1611
|
-
"name": "DebtMustBeRepaidFirst",
|
|
1612
|
-
"inputs": []
|
|
1613
|
-
},
|
|
1614
|
-
{
|
|
1615
|
-
"type": "error",
|
|
1616
|
-
"name": "EmptyArray",
|
|
1617
|
-
"inputs": []
|
|
1618
|
-
},
|
|
1619
1579
|
{
|
|
1620
1580
|
"type": "error",
|
|
1621
1581
|
"name": "ERC1967InvalidImplementation",
|
|
@@ -1634,20 +1594,20 @@ declare const _default: [
|
|
|
1634
1594
|
},
|
|
1635
1595
|
{
|
|
1636
1596
|
"type": "error",
|
|
1637
|
-
"name": "
|
|
1597
|
+
"name": "EmptyArray",
|
|
1638
1598
|
"inputs": []
|
|
1639
1599
|
},
|
|
1640
1600
|
{
|
|
1641
1601
|
"type": "error",
|
|
1642
|
-
"name": "
|
|
1602
|
+
"name": "FailedCall",
|
|
1643
1603
|
"inputs": []
|
|
1644
1604
|
},
|
|
1645
1605
|
{
|
|
1646
1606
|
"type": "error",
|
|
1647
|
-
"name": "
|
|
1607
|
+
"name": "FairnessDebtRepaymentTargetNotMet",
|
|
1648
1608
|
"inputs": [
|
|
1649
1609
|
{
|
|
1650
|
-
"name": "
|
|
1610
|
+
"name": "target",
|
|
1651
1611
|
"type": "uint256",
|
|
1652
1612
|
"internalType": "uint256"
|
|
1653
1613
|
},
|
|
@@ -1676,15 +1636,25 @@ declare const _default: [
|
|
|
1676
1636
|
},
|
|
1677
1637
|
{
|
|
1678
1638
|
"type": "error",
|
|
1679
|
-
"name": "
|
|
1639
|
+
"name": "InvalidActivationMetadataVersion",
|
|
1640
|
+
"inputs": []
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
"type": "error",
|
|
1644
|
+
"name": "InvalidAmount",
|
|
1645
|
+
"inputs": []
|
|
1646
|
+
},
|
|
1647
|
+
{
|
|
1648
|
+
"type": "error",
|
|
1649
|
+
"name": "InvalidAmountsLength",
|
|
1680
1650
|
"inputs": [
|
|
1681
1651
|
{
|
|
1682
|
-
"name": "
|
|
1652
|
+
"name": "amountsLength",
|
|
1683
1653
|
"type": "uint256",
|
|
1684
1654
|
"internalType": "uint256"
|
|
1685
1655
|
},
|
|
1686
1656
|
{
|
|
1687
|
-
"name": "
|
|
1657
|
+
"name": "reserveCount",
|
|
1688
1658
|
"type": "uint256",
|
|
1689
1659
|
"internalType": "uint256"
|
|
1690
1660
|
}
|
|
@@ -1692,35 +1662,30 @@ declare const _default: [
|
|
|
1692
1662
|
},
|
|
1693
1663
|
{
|
|
1694
1664
|
"type": "error",
|
|
1695
|
-
"name": "
|
|
1696
|
-
"inputs": []
|
|
1697
|
-
},
|
|
1698
|
-
{
|
|
1699
|
-
"type": "error",
|
|
1700
|
-
"name": "InvalidFairnessPaymentTokenDecimals",
|
|
1665
|
+
"name": "InvalidInterestFeeBps",
|
|
1701
1666
|
"inputs": []
|
|
1702
1667
|
},
|
|
1703
1668
|
{
|
|
1704
1669
|
"type": "error",
|
|
1705
|
-
"name": "
|
|
1670
|
+
"name": "InvalidOraclePrice",
|
|
1706
1671
|
"inputs": []
|
|
1707
1672
|
},
|
|
1708
1673
|
{
|
|
1709
1674
|
"type": "error",
|
|
1710
|
-
"name": "
|
|
1675
|
+
"name": "InvalidPositionResolver",
|
|
1711
1676
|
"inputs": []
|
|
1712
1677
|
},
|
|
1713
1678
|
{
|
|
1714
1679
|
"type": "error",
|
|
1715
|
-
"name": "
|
|
1680
|
+
"name": "InvalidPriorityOrderLength",
|
|
1716
1681
|
"inputs": [
|
|
1717
1682
|
{
|
|
1718
|
-
"name": "
|
|
1683
|
+
"name": "priorityOrderLength",
|
|
1719
1684
|
"type": "uint256",
|
|
1720
1685
|
"internalType": "uint256"
|
|
1721
1686
|
},
|
|
1722
1687
|
{
|
|
1723
|
-
"name": "
|
|
1688
|
+
"name": "amountsLength",
|
|
1724
1689
|
"type": "uint256",
|
|
1725
1690
|
"internalType": "uint256"
|
|
1726
1691
|
}
|
|
@@ -1728,36 +1693,57 @@ declare const _default: [
|
|
|
1728
1693
|
},
|
|
1729
1694
|
{
|
|
1730
1695
|
"type": "error",
|
|
1731
|
-
"name": "
|
|
1696
|
+
"name": "InvalidProxyContract",
|
|
1732
1697
|
"inputs": []
|
|
1733
1698
|
},
|
|
1734
1699
|
{
|
|
1735
1700
|
"type": "error",
|
|
1736
|
-
"name": "
|
|
1701
|
+
"name": "InvalidReserveId",
|
|
1737
1702
|
"inputs": [
|
|
1738
1703
|
{
|
|
1739
|
-
"name": "
|
|
1704
|
+
"name": "reserveId",
|
|
1740
1705
|
"type": "uint256",
|
|
1741
1706
|
"internalType": "uint256"
|
|
1742
|
-
}
|
|
1707
|
+
}
|
|
1708
|
+
]
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
"type": "error",
|
|
1712
|
+
"name": "InvalidVaultStatus",
|
|
1713
|
+
"inputs": []
|
|
1714
|
+
},
|
|
1715
|
+
{
|
|
1716
|
+
"type": "error",
|
|
1717
|
+
"name": "InvalidVaultsPermutation",
|
|
1718
|
+
"inputs": []
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
"type": "error",
|
|
1722
|
+
"name": "InvalidVaultsToRemove",
|
|
1723
|
+
"inputs": []
|
|
1724
|
+
},
|
|
1725
|
+
{
|
|
1726
|
+
"type": "error",
|
|
1727
|
+
"name": "LLPDisabled",
|
|
1728
|
+
"inputs": [
|
|
1743
1729
|
{
|
|
1744
|
-
"name": "
|
|
1745
|
-
"type": "
|
|
1746
|
-
"internalType": "
|
|
1730
|
+
"name": "llp",
|
|
1731
|
+
"type": "address",
|
|
1732
|
+
"internalType": "address"
|
|
1747
1733
|
}
|
|
1748
1734
|
]
|
|
1749
1735
|
},
|
|
1750
1736
|
{
|
|
1751
1737
|
"type": "error",
|
|
1752
|
-
"name": "
|
|
1738
|
+
"name": "MaxPositionBelowVaultMin",
|
|
1753
1739
|
"inputs": [
|
|
1754
1740
|
{
|
|
1755
|
-
"name": "
|
|
1741
|
+
"name": "maxPositionBTC",
|
|
1756
1742
|
"type": "uint256",
|
|
1757
1743
|
"internalType": "uint256"
|
|
1758
1744
|
},
|
|
1759
1745
|
{
|
|
1760
|
-
"name": "
|
|
1746
|
+
"name": "minimumPegInAmount",
|
|
1761
1747
|
"type": "uint256",
|
|
1762
1748
|
"internalType": "uint256"
|
|
1763
1749
|
}
|
|
@@ -1765,15 +1751,25 @@ declare const _default: [
|
|
|
1765
1751
|
},
|
|
1766
1752
|
{
|
|
1767
1753
|
"type": "error",
|
|
1768
|
-
"name": "
|
|
1754
|
+
"name": "NoDebtToLiquidate",
|
|
1755
|
+
"inputs": []
|
|
1756
|
+
},
|
|
1757
|
+
{
|
|
1758
|
+
"type": "error",
|
|
1759
|
+
"name": "OnlyApplicationEntryPoint",
|
|
1760
|
+
"inputs": []
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
"type": "error",
|
|
1764
|
+
"name": "PositionAboveMaximum",
|
|
1769
1765
|
"inputs": [
|
|
1770
1766
|
{
|
|
1771
|
-
"name": "
|
|
1767
|
+
"name": "actual",
|
|
1772
1768
|
"type": "uint256",
|
|
1773
1769
|
"internalType": "uint256"
|
|
1774
1770
|
},
|
|
1775
1771
|
{
|
|
1776
|
-
"name": "
|
|
1772
|
+
"name": "maximum",
|
|
1777
1773
|
"type": "uint256",
|
|
1778
1774
|
"internalType": "uint256"
|
|
1779
1775
|
}
|
|
@@ -1781,15 +1777,15 @@ declare const _default: [
|
|
|
1781
1777
|
},
|
|
1782
1778
|
{
|
|
1783
1779
|
"type": "error",
|
|
1784
|
-
"name": "
|
|
1780
|
+
"name": "PositionMaxBelowVaultMax",
|
|
1785
1781
|
"inputs": [
|
|
1786
1782
|
{
|
|
1787
|
-
"name": "
|
|
1783
|
+
"name": "maxPositionBTC",
|
|
1788
1784
|
"type": "uint256",
|
|
1789
1785
|
"internalType": "uint256"
|
|
1790
1786
|
},
|
|
1791
1787
|
{
|
|
1792
|
-
"name": "
|
|
1788
|
+
"name": "vaultMaximum",
|
|
1793
1789
|
"type": "uint256",
|
|
1794
1790
|
"internalType": "uint256"
|
|
1795
1791
|
}
|
|
@@ -1800,6 +1796,11 @@ declare const _default: [
|
|
|
1800
1796
|
"name": "PositionNotLiquidatable",
|
|
1801
1797
|
"inputs": []
|
|
1802
1798
|
},
|
|
1799
|
+
{
|
|
1800
|
+
"type": "error",
|
|
1801
|
+
"name": "PrefixLengthExceedsArray",
|
|
1802
|
+
"inputs": []
|
|
1803
|
+
},
|
|
1803
1804
|
{
|
|
1804
1805
|
"type": "error",
|
|
1805
1806
|
"name": "SafeERC20FailedOperation",
|
|
@@ -1811,11 +1812,26 @@ declare const _default: [
|
|
|
1811
1812
|
}
|
|
1812
1813
|
]
|
|
1813
1814
|
},
|
|
1815
|
+
{
|
|
1816
|
+
"type": "error",
|
|
1817
|
+
"name": "TBV_AlreadyFrozen",
|
|
1818
|
+
"inputs": []
|
|
1819
|
+
},
|
|
1814
1820
|
{
|
|
1815
1821
|
"type": "error",
|
|
1816
1822
|
"name": "TBV_AlreadyPaused",
|
|
1817
1823
|
"inputs": []
|
|
1818
1824
|
},
|
|
1825
|
+
{
|
|
1826
|
+
"type": "error",
|
|
1827
|
+
"name": "TBV_Frozen",
|
|
1828
|
+
"inputs": []
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
"type": "error",
|
|
1832
|
+
"name": "TBV_NotFrozen",
|
|
1833
|
+
"inputs": []
|
|
1834
|
+
},
|
|
1819
1835
|
{
|
|
1820
1836
|
"type": "error",
|
|
1821
1837
|
"name": "TBV_NotPaused",
|
|
@@ -1868,16 +1884,6 @@ declare const _default: [
|
|
|
1868
1884
|
}
|
|
1869
1885
|
]
|
|
1870
1886
|
},
|
|
1871
|
-
{
|
|
1872
|
-
"type": "error",
|
|
1873
|
-
"name": "VaultNotEscrowed",
|
|
1874
|
-
"inputs": []
|
|
1875
|
-
},
|
|
1876
|
-
{
|
|
1877
|
-
"type": "error",
|
|
1878
|
-
"name": "VaultSwapNotSet",
|
|
1879
|
-
"inputs": []
|
|
1880
|
-
},
|
|
1881
1887
|
{
|
|
1882
1888
|
"type": "error",
|
|
1883
1889
|
"name": "ZeroAddress",
|
|
@@ -1893,41 +1899,9 @@ declare const _default: [
|
|
|
1893
1899
|
"name": "ZeroBorrowAmount",
|
|
1894
1900
|
"inputs": []
|
|
1895
1901
|
},
|
|
1896
|
-
{
|
|
1897
|
-
"type": "function",
|
|
1898
|
-
"name": "reorderVaults",
|
|
1899
|
-
"inputs": [
|
|
1900
|
-
{
|
|
1901
|
-
"name": "permuted",
|
|
1902
|
-
"type": "bytes32[]",
|
|
1903
|
-
"internalType": "bytes32[]"
|
|
1904
|
-
}
|
|
1905
|
-
],
|
|
1906
|
-
"outputs": [],
|
|
1907
|
-
"stateMutability": "nonpayable"
|
|
1908
|
-
},
|
|
1909
|
-
{
|
|
1910
|
-
"type": "event",
|
|
1911
|
-
"name": "VaultsReordered",
|
|
1912
|
-
"inputs": [
|
|
1913
|
-
{
|
|
1914
|
-
"name": "borrower",
|
|
1915
|
-
"type": "address",
|
|
1916
|
-
"indexed": true,
|
|
1917
|
-
"internalType": "address"
|
|
1918
|
-
},
|
|
1919
|
-
{
|
|
1920
|
-
"name": "newVaults",
|
|
1921
|
-
"type": "bytes32[]",
|
|
1922
|
-
"indexed": false,
|
|
1923
|
-
"internalType": "bytes32[]"
|
|
1924
|
-
}
|
|
1925
|
-
],
|
|
1926
|
-
"anonymous": false
|
|
1927
|
-
},
|
|
1928
1902
|
{
|
|
1929
1903
|
"type": "error",
|
|
1930
|
-
"name": "
|
|
1904
|
+
"name": "ZeroBtcKey",
|
|
1931
1905
|
"inputs": []
|
|
1932
1906
|
}
|
|
1933
1907
|
]
|