@gearbox-protocol/sdk 14.12.0-next.47 → 14.12.0-next.49
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/cjs/abi/ILiquidationCompressorV313.js +103 -0
- package/dist/cjs/abi/compressors/liquidationCompressor.js +215 -0
- package/dist/cjs/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.js +104 -0
- package/dist/cjs/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.js +104 -0
- package/dist/cjs/dev/withdrawalAbi.js +104 -66
- package/dist/cjs/plugins/adapters/abi/adapters/iMidasGatewayAdapterV311.js +2 -306
- package/dist/cjs/plugins/adapters/abi/index.js +2 -0
- package/dist/cjs/plugins/adapters/abi/midas/iMidasGatewayV311.js +194 -0
- package/dist/cjs/plugins/adapters/abi/midas/index.js +22 -0
- package/dist/cjs/plugins/adapters/abi/securitize/iSecuritizeRedemptionGatewayV311.js +184 -24
- package/dist/cjs/plugins/adapters/contracts/MidasGatewayAdapterContract.js +2 -1
- package/dist/cjs/sdk/accounts/liquidations/LiquidationsService.js +81 -58
- package/dist/cjs/sdk/accounts/liquidations/MultichainLiquidationsService.js +6 -0
- package/dist/cjs/sdk/accounts/liquidations/constants.js +29 -0
- package/dist/cjs/sdk/accounts/liquidations/helpers.js +49 -2
- package/dist/cjs/sdk/accounts/liquidations/index.js +2 -2
- package/dist/esm/abi/ILiquidationCompressorV313.js +79 -0
- package/dist/esm/abi/compressors/liquidationCompressor.js +191 -0
- package/dist/esm/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.js +80 -0
- package/dist/esm/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.js +80 -0
- package/dist/esm/dev/withdrawalAbi.js +104 -66
- package/dist/esm/plugins/adapters/abi/adapters/iMidasGatewayAdapterV311.js +1 -304
- package/dist/esm/plugins/adapters/abi/index.js +1 -0
- package/dist/esm/plugins/adapters/abi/midas/iMidasGatewayV311.js +170 -0
- package/dist/esm/plugins/adapters/abi/midas/index.js +1 -0
- package/dist/esm/plugins/adapters/abi/securitize/iSecuritizeRedemptionGatewayV311.js +184 -24
- package/dist/esm/plugins/adapters/contracts/MidasGatewayAdapterContract.js +2 -4
- package/dist/esm/sdk/accounts/liquidations/LiquidationsService.js +87 -61
- package/dist/esm/sdk/accounts/liquidations/MultichainLiquidationsService.js +6 -0
- package/dist/esm/sdk/accounts/liquidations/constants.js +5 -0
- package/dist/esm/sdk/accounts/liquidations/helpers.js +46 -2
- package/dist/esm/sdk/accounts/liquidations/index.js +1 -1
- package/dist/types/abi/ILiquidationCompressorV313.d.ts +107 -0
- package/dist/types/abi/compressors/liquidationCompressor.d.ts +262 -0
- package/dist/types/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.d.ts +111 -0
- package/dist/types/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.d.ts +111 -0
- package/dist/types/dev/withdrawalAbi.d.ts +81 -53
- package/dist/types/plugins/adapters/abi/adapters/iMidasGatewayAdapterV311.d.ts +0 -233
- package/dist/types/plugins/adapters/abi/index.d.ts +1 -0
- package/dist/types/plugins/adapters/abi/midas/iMidasGatewayV311.d.ts +261 -0
- package/dist/types/plugins/adapters/abi/midas/index.d.ts +1 -0
- package/dist/types/plugins/adapters/abi/securitize/iSecuritizeRedemptionGatewayV311.d.ts +24 -0
- package/dist/types/plugins/adapters/contracts/MidasGatewayAdapterContract.d.ts +28 -0
- package/dist/types/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +24 -0
- package/dist/types/rewards/rewards/merkl-api.d.ts +1 -1
- package/dist/types/sdk/MultichainSDK.d.ts +1 -1
- package/dist/types/sdk/accounts/liquidations/LiquidationsService.d.ts +6 -1
- package/dist/types/sdk/accounts/liquidations/MultichainLiquidationsService.d.ts +11 -6
- package/dist/types/sdk/accounts/liquidations/constants.d.ts +6 -0
- package/dist/types/sdk/accounts/liquidations/helpers.d.ts +73 -2
- package/dist/types/sdk/accounts/liquidations/index.d.ts +1 -1
- package/dist/types/sdk/accounts/liquidations/types.d.ts +142 -30
- package/package.json +9 -9
package/dist/esm/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
const securitizeLiquidationSubcompressorAbi = [
|
|
2
|
+
{
|
|
3
|
+
type: "function",
|
|
4
|
+
name: "contractType",
|
|
5
|
+
inputs: [],
|
|
6
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
7
|
+
stateMutability: "view"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
type: "function",
|
|
11
|
+
name: "getLiquidationData",
|
|
12
|
+
inputs: [
|
|
13
|
+
{ name: "liquidator", type: "address", internalType: "address" },
|
|
14
|
+
{ name: "creditAccount", type: "address", internalType: "address" },
|
|
15
|
+
{ name: "phantomToken", type: "address", internalType: "address" },
|
|
16
|
+
{
|
|
17
|
+
name: "priceUpdates",
|
|
18
|
+
type: "tuple[]",
|
|
19
|
+
internalType: "struct PriceUpdate[]",
|
|
20
|
+
components: [
|
|
21
|
+
{ name: "priceFeed", type: "address", internalType: "address" },
|
|
22
|
+
{ name: "data", type: "bytes", internalType: "bytes" }
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
outputs: [
|
|
27
|
+
{
|
|
28
|
+
name: "data",
|
|
29
|
+
type: "tuple",
|
|
30
|
+
internalType: "struct LiquidationData",
|
|
31
|
+
components: [
|
|
32
|
+
{
|
|
33
|
+
name: "requiredUnderlyingAmount",
|
|
34
|
+
type: "uint256",
|
|
35
|
+
internalType: "uint256"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: "expectedOutputs",
|
|
39
|
+
type: "tuple[]",
|
|
40
|
+
internalType: "struct LiquidationOutput[]",
|
|
41
|
+
components: [
|
|
42
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
43
|
+
{ name: "amount", type: "uint256", internalType: "uint256" },
|
|
44
|
+
{ name: "delayed", type: "bool", internalType: "bool" },
|
|
45
|
+
{
|
|
46
|
+
name: "redeemerAddress",
|
|
47
|
+
type: "address",
|
|
48
|
+
internalType: "address"
|
|
49
|
+
},
|
|
50
|
+
{ name: "claimableAt", type: "uint256", internalType: "uint256" }
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: "liquidationCall",
|
|
55
|
+
type: "tuple",
|
|
56
|
+
internalType: "struct MultiCall",
|
|
57
|
+
components: [
|
|
58
|
+
{ name: "target", type: "address", internalType: "address" },
|
|
59
|
+
{ name: "callData", type: "bytes", internalType: "bytes" }
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{ name: "isLiquidatorEligible", type: "bool", internalType: "bool" },
|
|
63
|
+
{ name: "kycProtocol", type: "string", internalType: "string" },
|
|
64
|
+
{ name: "kycToken", type: "address", internalType: "address" }
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
stateMutability: "nonpayable"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
type: "function",
|
|
72
|
+
name: "version",
|
|
73
|
+
inputs: [],
|
|
74
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
75
|
+
stateMutability: "view"
|
|
76
|
+
}
|
|
77
|
+
];
|
|
78
|
+
export {
|
|
79
|
+
securitizeLiquidationSubcompressorAbi
|
|
80
|
+
};
|
|
@@ -18,34 +18,29 @@ const midasGatewayAbi = [
|
|
|
18
18
|
internalType: "address"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
|
-
name: "
|
|
22
|
-
type: "
|
|
23
|
-
internalType: "
|
|
21
|
+
name: "_mode",
|
|
22
|
+
type: "uint8",
|
|
23
|
+
internalType: "enum MidasMode"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
name: "_allowedMarketConfigurator",
|
|
27
27
|
type: "address",
|
|
28
28
|
internalType: "address"
|
|
29
29
|
},
|
|
30
|
-
{
|
|
31
|
-
name: "_checkBorrowerGreenlist",
|
|
32
|
-
type: "bool",
|
|
33
|
-
internalType: "bool"
|
|
34
|
-
},
|
|
35
30
|
{
|
|
36
31
|
name: "_expectedRedemptionDuration",
|
|
37
32
|
type: "uint256",
|
|
38
33
|
internalType: "uint256"
|
|
39
34
|
},
|
|
40
|
-
{
|
|
41
|
-
name: "_redemptionLogger",
|
|
42
|
-
type: "address",
|
|
43
|
-
internalType: "address"
|
|
44
|
-
},
|
|
45
35
|
{
|
|
46
36
|
name: "_withDelayedWithdrawals",
|
|
47
37
|
type: "bool",
|
|
48
38
|
internalType: "bool"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: "_addressProvider",
|
|
42
|
+
type: "address",
|
|
43
|
+
internalType: "address"
|
|
49
44
|
}
|
|
50
45
|
],
|
|
51
46
|
stateMutability: "nonpayable"
|
|
@@ -76,19 +71,6 @@ const midasGatewayAbi = [
|
|
|
76
71
|
],
|
|
77
72
|
stateMutability: "view"
|
|
78
73
|
},
|
|
79
|
-
{
|
|
80
|
-
type: "function",
|
|
81
|
-
name: "checkBorrowerGreenlist",
|
|
82
|
-
inputs: [],
|
|
83
|
-
outputs: [
|
|
84
|
-
{
|
|
85
|
-
name: "",
|
|
86
|
-
type: "bool",
|
|
87
|
-
internalType: "bool"
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
stateMutability: "view"
|
|
91
|
-
},
|
|
92
74
|
{
|
|
93
75
|
type: "function",
|
|
94
76
|
name: "contractType",
|
|
@@ -138,6 +120,25 @@ const midasGatewayAbi = [
|
|
|
138
120
|
],
|
|
139
121
|
stateMutability: "view"
|
|
140
122
|
},
|
|
123
|
+
{
|
|
124
|
+
type: "function",
|
|
125
|
+
name: "isEligibleAccountOwner",
|
|
126
|
+
inputs: [
|
|
127
|
+
{
|
|
128
|
+
name: "account",
|
|
129
|
+
type: "address",
|
|
130
|
+
internalType: "address"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
outputs: [
|
|
134
|
+
{
|
|
135
|
+
name: "",
|
|
136
|
+
type: "bool",
|
|
137
|
+
internalType: "bool"
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
stateMutability: "view"
|
|
141
|
+
},
|
|
141
142
|
{
|
|
142
143
|
type: "function",
|
|
143
144
|
name: "mToken",
|
|
@@ -190,6 +191,19 @@ const midasGatewayAbi = [
|
|
|
190
191
|
],
|
|
191
192
|
stateMutability: "view"
|
|
192
193
|
},
|
|
194
|
+
{
|
|
195
|
+
type: "function",
|
|
196
|
+
name: "mode",
|
|
197
|
+
inputs: [],
|
|
198
|
+
outputs: [
|
|
199
|
+
{
|
|
200
|
+
name: "",
|
|
201
|
+
type: "uint8",
|
|
202
|
+
internalType: "enum MidasMode"
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
stateMutability: "view"
|
|
206
|
+
},
|
|
193
207
|
{
|
|
194
208
|
type: "function",
|
|
195
209
|
name: "pendingAndClaimableTokenOutAmounts",
|
|
@@ -388,6 +402,11 @@ const midasGatewayAbi = [
|
|
|
388
402
|
name: "AccessControlNotSetException",
|
|
389
403
|
inputs: []
|
|
390
404
|
},
|
|
405
|
+
{
|
|
406
|
+
type: "error",
|
|
407
|
+
name: "ArbitraryCAAllowedInPermissionedModeException",
|
|
408
|
+
inputs: []
|
|
409
|
+
},
|
|
391
410
|
{
|
|
392
411
|
type: "error",
|
|
393
412
|
name: "CreditAccountNotEligibleException",
|
|
@@ -461,7 +480,7 @@ const midasRedeemerAbi = [
|
|
|
461
480
|
},
|
|
462
481
|
{
|
|
463
482
|
type: "function",
|
|
464
|
-
name: "
|
|
483
|
+
name: "alreadyRequested",
|
|
465
484
|
inputs: [],
|
|
466
485
|
outputs: [
|
|
467
486
|
{
|
|
@@ -485,19 +504,6 @@ const midasRedeemerAbi = [
|
|
|
485
504
|
],
|
|
486
505
|
stateMutability: "view"
|
|
487
506
|
},
|
|
488
|
-
{
|
|
489
|
-
type: "function",
|
|
490
|
-
name: "clearCancelledRequest",
|
|
491
|
-
inputs: [
|
|
492
|
-
{
|
|
493
|
-
name: "amount",
|
|
494
|
-
type: "uint256",
|
|
495
|
-
internalType: "uint256"
|
|
496
|
-
}
|
|
497
|
-
],
|
|
498
|
-
outputs: [],
|
|
499
|
-
stateMutability: "nonpayable"
|
|
500
|
-
},
|
|
501
507
|
{
|
|
502
508
|
type: "function",
|
|
503
509
|
name: "gateway",
|
|
@@ -511,19 +517,6 @@ const midasRedeemerAbi = [
|
|
|
511
517
|
],
|
|
512
518
|
stateMutability: "view"
|
|
513
519
|
},
|
|
514
|
-
{
|
|
515
|
-
type: "function",
|
|
516
|
-
name: "isManuallyCleared",
|
|
517
|
-
inputs: [],
|
|
518
|
-
outputs: [
|
|
519
|
-
{
|
|
520
|
-
name: "",
|
|
521
|
-
type: "bool",
|
|
522
|
-
internalType: "bool"
|
|
523
|
-
}
|
|
524
|
-
],
|
|
525
|
-
stateMutability: "view"
|
|
526
|
-
},
|
|
527
520
|
{
|
|
528
521
|
type: "function",
|
|
529
522
|
name: "mToken",
|
|
@@ -656,12 +649,7 @@ const midasRedeemerAbi = [
|
|
|
656
649
|
},
|
|
657
650
|
{
|
|
658
651
|
type: "error",
|
|
659
|
-
name: "
|
|
660
|
-
inputs: []
|
|
661
|
-
},
|
|
662
|
-
{
|
|
663
|
-
type: "error",
|
|
664
|
-
name: "AmountIsLessThanRequiredException",
|
|
652
|
+
name: "AlreadyRequestedException",
|
|
665
653
|
inputs: []
|
|
666
654
|
},
|
|
667
655
|
{
|
|
@@ -673,11 +661,6 @@ const midasRedeemerAbi = [
|
|
|
673
661
|
type: "error",
|
|
674
662
|
name: "InsufficientBalanceException",
|
|
675
663
|
inputs: []
|
|
676
|
-
},
|
|
677
|
-
{
|
|
678
|
-
type: "error",
|
|
679
|
-
name: "RequestNotCancelledOrManuallyClearedException",
|
|
680
|
-
inputs: []
|
|
681
664
|
}
|
|
682
665
|
];
|
|
683
666
|
const midasRedemptionVaultPhantomTokenAbi = [
|
|
@@ -1024,6 +1007,19 @@ const iMidasDataFeedAbi = [
|
|
|
1024
1007
|
}
|
|
1025
1008
|
];
|
|
1026
1009
|
const iMidasRedemptionVaultAbi = [
|
|
1010
|
+
{
|
|
1011
|
+
type: "function",
|
|
1012
|
+
name: "accessControl",
|
|
1013
|
+
inputs: [],
|
|
1014
|
+
outputs: [
|
|
1015
|
+
{
|
|
1016
|
+
name: "",
|
|
1017
|
+
type: "address",
|
|
1018
|
+
internalType: "address"
|
|
1019
|
+
}
|
|
1020
|
+
],
|
|
1021
|
+
stateMutability: "view"
|
|
1022
|
+
},
|
|
1027
1023
|
{
|
|
1028
1024
|
type: "function",
|
|
1029
1025
|
name: "currentRequestId",
|
|
@@ -1134,7 +1130,7 @@ const iMidasRedemptionVaultAbi = [
|
|
|
1134
1130
|
{
|
|
1135
1131
|
name: "status",
|
|
1136
1132
|
type: "uint8",
|
|
1137
|
-
internalType: "
|
|
1133
|
+
internalType: "enum RedemptionStatus"
|
|
1138
1134
|
},
|
|
1139
1135
|
{
|
|
1140
1136
|
name: "amountMTokenIn",
|
|
@@ -1195,7 +1191,7 @@ const securitizeRedemptionGatewayAbi = [
|
|
|
1195
1191
|
internalType: "address"
|
|
1196
1192
|
},
|
|
1197
1193
|
{
|
|
1198
|
-
name: "
|
|
1194
|
+
name: "_addressProvider",
|
|
1199
1195
|
type: "address",
|
|
1200
1196
|
internalType: "address"
|
|
1201
1197
|
}
|
|
@@ -1298,6 +1294,25 @@ const securitizeRedemptionGatewayAbi = [
|
|
|
1298
1294
|
],
|
|
1299
1295
|
stateMutability: "view"
|
|
1300
1296
|
},
|
|
1297
|
+
{
|
|
1298
|
+
type: "function",
|
|
1299
|
+
name: "isEligibleAccountOwner",
|
|
1300
|
+
inputs: [
|
|
1301
|
+
{
|
|
1302
|
+
name: "account",
|
|
1303
|
+
type: "address",
|
|
1304
|
+
internalType: "address"
|
|
1305
|
+
}
|
|
1306
|
+
],
|
|
1307
|
+
outputs: [
|
|
1308
|
+
{
|
|
1309
|
+
name: "",
|
|
1310
|
+
type: "bool",
|
|
1311
|
+
internalType: "bool"
|
|
1312
|
+
}
|
|
1313
|
+
],
|
|
1314
|
+
stateMutability: "view"
|
|
1315
|
+
},
|
|
1301
1316
|
{
|
|
1302
1317
|
type: "function",
|
|
1303
1318
|
name: "masterRedeemer",
|
|
@@ -1324,6 +1339,19 @@ const securitizeRedemptionGatewayAbi = [
|
|
|
1324
1339
|
],
|
|
1325
1340
|
stateMutability: "view"
|
|
1326
1341
|
},
|
|
1342
|
+
{
|
|
1343
|
+
type: "function",
|
|
1344
|
+
name: "phantomToken",
|
|
1345
|
+
inputs: [],
|
|
1346
|
+
outputs: [
|
|
1347
|
+
{
|
|
1348
|
+
name: "",
|
|
1349
|
+
type: "address",
|
|
1350
|
+
internalType: "address"
|
|
1351
|
+
}
|
|
1352
|
+
],
|
|
1353
|
+
stateMutability: "view"
|
|
1354
|
+
},
|
|
1327
1355
|
{
|
|
1328
1356
|
type: "function",
|
|
1329
1357
|
name: "redeem",
|
|
@@ -1480,6 +1508,16 @@ const securitizeRedemptionPhantomTokenAbi = [
|
|
|
1480
1508
|
name: "_redemptionGateway",
|
|
1481
1509
|
type: "address",
|
|
1482
1510
|
internalType: "address"
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
name: "_dsToken",
|
|
1514
|
+
type: "address",
|
|
1515
|
+
internalType: "address"
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
name: "_stableCoinToken",
|
|
1519
|
+
type: "address",
|
|
1520
|
+
internalType: "address"
|
|
1483
1521
|
}
|
|
1484
1522
|
],
|
|
1485
1523
|
stateMutability: "nonpayable"
|
|
@@ -442,309 +442,6 @@ const iMidasGatewayAdapterV311Abi = [
|
|
|
442
442
|
inputs: []
|
|
443
443
|
}
|
|
444
444
|
];
|
|
445
|
-
const iMidasGatewayV311Abi = [
|
|
446
|
-
{
|
|
447
|
-
type: "function",
|
|
448
|
-
name: "accessControl",
|
|
449
|
-
inputs: [],
|
|
450
|
-
outputs: [
|
|
451
|
-
{
|
|
452
|
-
name: "",
|
|
453
|
-
type: "address",
|
|
454
|
-
internalType: "address"
|
|
455
|
-
}
|
|
456
|
-
],
|
|
457
|
-
stateMutability: "view"
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
type: "function",
|
|
461
|
-
name: "contractType",
|
|
462
|
-
inputs: [],
|
|
463
|
-
outputs: [
|
|
464
|
-
{
|
|
465
|
-
name: "",
|
|
466
|
-
type: "bytes32",
|
|
467
|
-
internalType: "bytes32"
|
|
468
|
-
}
|
|
469
|
-
],
|
|
470
|
-
stateMutability: "view"
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
type: "function",
|
|
474
|
-
name: "depositInstant",
|
|
475
|
-
inputs: [
|
|
476
|
-
{
|
|
477
|
-
name: "amountToken",
|
|
478
|
-
type: "uint256",
|
|
479
|
-
internalType: "uint256"
|
|
480
|
-
},
|
|
481
|
-
{
|
|
482
|
-
name: "minReceiveAmount",
|
|
483
|
-
type: "uint256",
|
|
484
|
-
internalType: "uint256"
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
name: "referrerId",
|
|
488
|
-
type: "bytes32",
|
|
489
|
-
internalType: "bytes32"
|
|
490
|
-
}
|
|
491
|
-
],
|
|
492
|
-
outputs: [],
|
|
493
|
-
stateMutability: "nonpayable"
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
type: "function",
|
|
497
|
-
name: "mToken",
|
|
498
|
-
inputs: [],
|
|
499
|
-
outputs: [
|
|
500
|
-
{
|
|
501
|
-
name: "",
|
|
502
|
-
type: "address",
|
|
503
|
-
internalType: "address"
|
|
504
|
-
}
|
|
505
|
-
],
|
|
506
|
-
stateMutability: "view"
|
|
507
|
-
},
|
|
508
|
-
{
|
|
509
|
-
type: "function",
|
|
510
|
-
name: "pendingAndClaimableTokenOutAmounts",
|
|
511
|
-
inputs: [
|
|
512
|
-
{
|
|
513
|
-
name: "account",
|
|
514
|
-
type: "address",
|
|
515
|
-
internalType: "address"
|
|
516
|
-
}
|
|
517
|
-
],
|
|
518
|
-
outputs: [
|
|
519
|
-
{
|
|
520
|
-
name: "pendingAmount",
|
|
521
|
-
type: "uint256",
|
|
522
|
-
internalType: "uint256"
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
name: "claimableAmount",
|
|
526
|
-
type: "uint256",
|
|
527
|
-
internalType: "uint256"
|
|
528
|
-
}
|
|
529
|
-
],
|
|
530
|
-
stateMutability: "view"
|
|
531
|
-
},
|
|
532
|
-
{
|
|
533
|
-
type: "function",
|
|
534
|
-
name: "pendingRedeemers",
|
|
535
|
-
inputs: [
|
|
536
|
-
{
|
|
537
|
-
name: "account",
|
|
538
|
-
type: "address",
|
|
539
|
-
internalType: "address"
|
|
540
|
-
}
|
|
541
|
-
],
|
|
542
|
-
outputs: [
|
|
543
|
-
{
|
|
544
|
-
name: "redeemers",
|
|
545
|
-
type: "address[]",
|
|
546
|
-
internalType: "address[]"
|
|
547
|
-
}
|
|
548
|
-
],
|
|
549
|
-
stateMutability: "view"
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
type: "function",
|
|
553
|
-
name: "phantomToken",
|
|
554
|
-
inputs: [],
|
|
555
|
-
outputs: [
|
|
556
|
-
{
|
|
557
|
-
name: "",
|
|
558
|
-
type: "address",
|
|
559
|
-
internalType: "address"
|
|
560
|
-
}
|
|
561
|
-
],
|
|
562
|
-
stateMutability: "view"
|
|
563
|
-
},
|
|
564
|
-
{
|
|
565
|
-
type: "function",
|
|
566
|
-
name: "quoteToken",
|
|
567
|
-
inputs: [],
|
|
568
|
-
outputs: [
|
|
569
|
-
{
|
|
570
|
-
name: "",
|
|
571
|
-
type: "address",
|
|
572
|
-
internalType: "address"
|
|
573
|
-
}
|
|
574
|
-
],
|
|
575
|
-
stateMutability: "view"
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
type: "function",
|
|
579
|
-
name: "redeemInstant",
|
|
580
|
-
inputs: [
|
|
581
|
-
{
|
|
582
|
-
name: "amountMTokenIn",
|
|
583
|
-
type: "uint256",
|
|
584
|
-
internalType: "uint256"
|
|
585
|
-
},
|
|
586
|
-
{
|
|
587
|
-
name: "minReceiveAmount",
|
|
588
|
-
type: "uint256",
|
|
589
|
-
internalType: "uint256"
|
|
590
|
-
}
|
|
591
|
-
],
|
|
592
|
-
outputs: [],
|
|
593
|
-
stateMutability: "nonpayable"
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
type: "function",
|
|
597
|
-
name: "redemptionLogger",
|
|
598
|
-
inputs: [],
|
|
599
|
-
outputs: [
|
|
600
|
-
{
|
|
601
|
-
name: "",
|
|
602
|
-
type: "address",
|
|
603
|
-
internalType: "address"
|
|
604
|
-
}
|
|
605
|
-
],
|
|
606
|
-
stateMutability: "view"
|
|
607
|
-
},
|
|
608
|
-
{
|
|
609
|
-
type: "function",
|
|
610
|
-
name: "requestRedeem",
|
|
611
|
-
inputs: [
|
|
612
|
-
{
|
|
613
|
-
name: "amountMTokenIn",
|
|
614
|
-
type: "uint256",
|
|
615
|
-
internalType: "uint256"
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
name: "extraData",
|
|
619
|
-
type: "bytes",
|
|
620
|
-
internalType: "bytes"
|
|
621
|
-
}
|
|
622
|
-
],
|
|
623
|
-
outputs: [],
|
|
624
|
-
stateMutability: "nonpayable"
|
|
625
|
-
},
|
|
626
|
-
{
|
|
627
|
-
type: "function",
|
|
628
|
-
name: "transferMaster",
|
|
629
|
-
inputs: [],
|
|
630
|
-
outputs: [
|
|
631
|
-
{
|
|
632
|
-
name: "",
|
|
633
|
-
type: "address",
|
|
634
|
-
internalType: "address"
|
|
635
|
-
}
|
|
636
|
-
],
|
|
637
|
-
stateMutability: "view"
|
|
638
|
-
},
|
|
639
|
-
{
|
|
640
|
-
type: "function",
|
|
641
|
-
name: "transferRedeemer",
|
|
642
|
-
inputs: [
|
|
643
|
-
{
|
|
644
|
-
name: "redeemer",
|
|
645
|
-
type: "address",
|
|
646
|
-
internalType: "address"
|
|
647
|
-
},
|
|
648
|
-
{
|
|
649
|
-
name: "newAccount",
|
|
650
|
-
type: "address",
|
|
651
|
-
internalType: "address"
|
|
652
|
-
}
|
|
653
|
-
],
|
|
654
|
-
outputs: [],
|
|
655
|
-
stateMutability: "nonpayable"
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
type: "function",
|
|
659
|
-
name: "version",
|
|
660
|
-
inputs: [],
|
|
661
|
-
outputs: [
|
|
662
|
-
{
|
|
663
|
-
name: "",
|
|
664
|
-
type: "uint256",
|
|
665
|
-
internalType: "uint256"
|
|
666
|
-
}
|
|
667
|
-
],
|
|
668
|
-
stateMutability: "view"
|
|
669
|
-
},
|
|
670
|
-
{
|
|
671
|
-
type: "function",
|
|
672
|
-
name: "withdraw",
|
|
673
|
-
inputs: [
|
|
674
|
-
{
|
|
675
|
-
name: "amount",
|
|
676
|
-
type: "uint256",
|
|
677
|
-
internalType: "uint256"
|
|
678
|
-
}
|
|
679
|
-
],
|
|
680
|
-
outputs: [],
|
|
681
|
-
stateMutability: "nonpayable"
|
|
682
|
-
},
|
|
683
|
-
{
|
|
684
|
-
type: "function",
|
|
685
|
-
name: "withdrawFromRedeemer",
|
|
686
|
-
inputs: [
|
|
687
|
-
{
|
|
688
|
-
name: "redeemer",
|
|
689
|
-
type: "address",
|
|
690
|
-
internalType: "address"
|
|
691
|
-
},
|
|
692
|
-
{
|
|
693
|
-
name: "amount",
|
|
694
|
-
type: "uint256",
|
|
695
|
-
internalType: "uint256"
|
|
696
|
-
}
|
|
697
|
-
],
|
|
698
|
-
outputs: [],
|
|
699
|
-
stateMutability: "nonpayable"
|
|
700
|
-
},
|
|
701
|
-
{
|
|
702
|
-
type: "error",
|
|
703
|
-
name: "AccessControlNotSetException",
|
|
704
|
-
inputs: []
|
|
705
|
-
},
|
|
706
|
-
{
|
|
707
|
-
type: "error",
|
|
708
|
-
name: "CreditAccountNotEligibleException",
|
|
709
|
-
inputs: []
|
|
710
|
-
},
|
|
711
|
-
{
|
|
712
|
-
type: "error",
|
|
713
|
-
name: "IncompatibleAccessControlsException",
|
|
714
|
-
inputs: []
|
|
715
|
-
},
|
|
716
|
-
{
|
|
717
|
-
type: "error",
|
|
718
|
-
name: "IncompatibleIssuanceAndRedemptionVaultsException",
|
|
719
|
-
inputs: []
|
|
720
|
-
},
|
|
721
|
-
{
|
|
722
|
-
type: "error",
|
|
723
|
-
name: "InsufficientBalanceException",
|
|
724
|
-
inputs: []
|
|
725
|
-
},
|
|
726
|
-
{
|
|
727
|
-
type: "error",
|
|
728
|
-
name: "MaxPendingRedeemersPerAccountException",
|
|
729
|
-
inputs: []
|
|
730
|
-
},
|
|
731
|
-
{
|
|
732
|
-
type: "error",
|
|
733
|
-
name: "NewAccountNotGreenlistedException",
|
|
734
|
-
inputs: []
|
|
735
|
-
},
|
|
736
|
-
{
|
|
737
|
-
type: "error",
|
|
738
|
-
name: "RedeemerNotOwnedByAccountException",
|
|
739
|
-
inputs: []
|
|
740
|
-
},
|
|
741
|
-
{
|
|
742
|
-
type: "error",
|
|
743
|
-
name: "RedeemerTransferNotAllowedException",
|
|
744
|
-
inputs: []
|
|
745
|
-
}
|
|
746
|
-
];
|
|
747
445
|
export {
|
|
748
|
-
iMidasGatewayAdapterV311Abi
|
|
749
|
-
iMidasGatewayV311Abi
|
|
446
|
+
iMidasGatewayAdapterV311Abi
|
|
750
447
|
};
|