@gearbox-protocol/sdk 3.0.0-next.29 → 3.0.0-next.30
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.
|
@@ -491,17 +491,19 @@ export interface IDataCompressorV3_00Interface extends utils.Interface {
|
|
|
491
491
|
"getCreditManagerData(address)": FunctionFragment;
|
|
492
492
|
"getCreditManagersV3List()": FunctionFragment;
|
|
493
493
|
"getGaugesV3Data(address)": FunctionFragment;
|
|
494
|
+
"getLiquidatableCreditAccounts((address,bytes)[])": FunctionFragment;
|
|
494
495
|
"getPoolData(address)": FunctionFragment;
|
|
495
496
|
"getPoolsV3List()": FunctionFragment;
|
|
496
497
|
"version()": FunctionFragment;
|
|
497
498
|
};
|
|
498
|
-
getFunction(nameOrSignatureOrTopic: "getCreditAccountData" | "getCreditAccountsByBorrower" | "getCreditAccountsByCreditManager" | "getCreditManagerData" | "getCreditManagersV3List" | "getGaugesV3Data" | "getPoolData" | "getPoolsV3List" | "version"): FunctionFragment;
|
|
499
|
+
getFunction(nameOrSignatureOrTopic: "getCreditAccountData" | "getCreditAccountsByBorrower" | "getCreditAccountsByCreditManager" | "getCreditManagerData" | "getCreditManagersV3List" | "getGaugesV3Data" | "getLiquidatableCreditAccounts" | "getPoolData" | "getPoolsV3List" | "version"): FunctionFragment;
|
|
499
500
|
encodeFunctionData(functionFragment: "getCreditAccountData", values: [PromiseOrValue<string>, PriceOnDemandStruct[]]): string;
|
|
500
501
|
encodeFunctionData(functionFragment: "getCreditAccountsByBorrower", values: [PromiseOrValue<string>, PriceOnDemandStruct[]]): string;
|
|
501
502
|
encodeFunctionData(functionFragment: "getCreditAccountsByCreditManager", values: [PromiseOrValue<string>, PriceOnDemandStruct[]]): string;
|
|
502
503
|
encodeFunctionData(functionFragment: "getCreditManagerData", values: [PromiseOrValue<string>]): string;
|
|
503
504
|
encodeFunctionData(functionFragment: "getCreditManagersV3List", values?: undefined): string;
|
|
504
505
|
encodeFunctionData(functionFragment: "getGaugesV3Data", values: [PromiseOrValue<string>]): string;
|
|
506
|
+
encodeFunctionData(functionFragment: "getLiquidatableCreditAccounts", values: [PriceOnDemandStruct[]]): string;
|
|
505
507
|
encodeFunctionData(functionFragment: "getPoolData", values: [PromiseOrValue<string>]): string;
|
|
506
508
|
encodeFunctionData(functionFragment: "getPoolsV3List", values?: undefined): string;
|
|
507
509
|
encodeFunctionData(functionFragment: "version", values?: undefined): string;
|
|
@@ -511,6 +513,7 @@ export interface IDataCompressorV3_00Interface extends utils.Interface {
|
|
|
511
513
|
decodeFunctionResult(functionFragment: "getCreditManagerData", data: BytesLike): Result;
|
|
512
514
|
decodeFunctionResult(functionFragment: "getCreditManagersV3List", data: BytesLike): Result;
|
|
513
515
|
decodeFunctionResult(functionFragment: "getGaugesV3Data", data: BytesLike): Result;
|
|
516
|
+
decodeFunctionResult(functionFragment: "getLiquidatableCreditAccounts", data: BytesLike): Result;
|
|
514
517
|
decodeFunctionResult(functionFragment: "getPoolData", data: BytesLike): Result;
|
|
515
518
|
decodeFunctionResult(functionFragment: "getPoolsV3List", data: BytesLike): Result;
|
|
516
519
|
decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
|
|
@@ -545,6 +548,9 @@ export interface IDataCompressorV3_00 extends BaseContract {
|
|
|
545
548
|
getGaugesV3Data(staker: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[GaugeInfoStructOutput[]] & {
|
|
546
549
|
result: GaugeInfoStructOutput[];
|
|
547
550
|
}>;
|
|
551
|
+
getLiquidatableCreditAccounts(priceUpdates: PriceOnDemandStruct[], overrides?: Overrides & {
|
|
552
|
+
from?: PromiseOrValue<string>;
|
|
553
|
+
}): Promise<ContractTransaction>;
|
|
548
554
|
getPoolData(_pool: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[PoolDataStructOutput]>;
|
|
549
555
|
getPoolsV3List(overrides?: CallOverrides): Promise<[PoolDataStructOutput[]]>;
|
|
550
556
|
version(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
@@ -561,6 +567,9 @@ export interface IDataCompressorV3_00 extends BaseContract {
|
|
|
561
567
|
getCreditManagerData(creditManager: PromiseOrValue<string>, overrides?: CallOverrides): Promise<CreditManagerDataStructOutput>;
|
|
562
568
|
getCreditManagersV3List(overrides?: CallOverrides): Promise<CreditManagerDataStructOutput[]>;
|
|
563
569
|
getGaugesV3Data(staker: PromiseOrValue<string>, overrides?: CallOverrides): Promise<GaugeInfoStructOutput[]>;
|
|
570
|
+
getLiquidatableCreditAccounts(priceUpdates: PriceOnDemandStruct[], overrides?: Overrides & {
|
|
571
|
+
from?: PromiseOrValue<string>;
|
|
572
|
+
}): Promise<ContractTransaction>;
|
|
564
573
|
getPoolData(_pool: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PoolDataStructOutput>;
|
|
565
574
|
getPoolsV3List(overrides?: CallOverrides): Promise<PoolDataStructOutput[]>;
|
|
566
575
|
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -571,6 +580,7 @@ export interface IDataCompressorV3_00 extends BaseContract {
|
|
|
571
580
|
getCreditManagerData(creditManager: PromiseOrValue<string>, overrides?: CallOverrides): Promise<CreditManagerDataStructOutput>;
|
|
572
581
|
getCreditManagersV3List(overrides?: CallOverrides): Promise<CreditManagerDataStructOutput[]>;
|
|
573
582
|
getGaugesV3Data(staker: PromiseOrValue<string>, overrides?: CallOverrides): Promise<GaugeInfoStructOutput[]>;
|
|
583
|
+
getLiquidatableCreditAccounts(priceUpdates: PriceOnDemandStruct[], overrides?: CallOverrides): Promise<CreditAccountDataStructOutput[]>;
|
|
574
584
|
getPoolData(_pool: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PoolDataStructOutput>;
|
|
575
585
|
getPoolsV3List(overrides?: CallOverrides): Promise<PoolDataStructOutput[]>;
|
|
576
586
|
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -589,6 +599,9 @@ export interface IDataCompressorV3_00 extends BaseContract {
|
|
|
589
599
|
getCreditManagerData(creditManager: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
590
600
|
getCreditManagersV3List(overrides?: CallOverrides): Promise<BigNumber>;
|
|
591
601
|
getGaugesV3Data(staker: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
602
|
+
getLiquidatableCreditAccounts(priceUpdates: PriceOnDemandStruct[], overrides?: Overrides & {
|
|
603
|
+
from?: PromiseOrValue<string>;
|
|
604
|
+
}): Promise<BigNumber>;
|
|
592
605
|
getPoolData(_pool: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
593
606
|
getPoolsV3List(overrides?: CallOverrides): Promise<BigNumber>;
|
|
594
607
|
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -606,6 +619,9 @@ export interface IDataCompressorV3_00 extends BaseContract {
|
|
|
606
619
|
getCreditManagerData(creditManager: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
607
620
|
getCreditManagersV3List(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
608
621
|
getGaugesV3Data(staker: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
622
|
+
getLiquidatableCreditAccounts(priceUpdates: PriceOnDemandStruct[], overrides?: Overrides & {
|
|
623
|
+
from?: PromiseOrValue<string>;
|
|
624
|
+
}): Promise<PopulatedTransaction>;
|
|
609
625
|
getPoolData(_pool: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
610
626
|
getPoolsV3List(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
611
627
|
version(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
@@ -1068,6 +1068,196 @@ export declare class IDataCompressorV3_00__factory {
|
|
|
1068
1068
|
}];
|
|
1069
1069
|
readonly stateMutability: "view";
|
|
1070
1070
|
readonly type: "function";
|
|
1071
|
+
}, {
|
|
1072
|
+
readonly inputs: readonly [{
|
|
1073
|
+
readonly components: readonly [{
|
|
1074
|
+
readonly internalType: "address";
|
|
1075
|
+
readonly name: "token";
|
|
1076
|
+
readonly type: "address";
|
|
1077
|
+
}, {
|
|
1078
|
+
readonly internalType: "bytes";
|
|
1079
|
+
readonly name: "callData";
|
|
1080
|
+
readonly type: "bytes";
|
|
1081
|
+
}];
|
|
1082
|
+
readonly internalType: "struct PriceOnDemand[]";
|
|
1083
|
+
readonly name: "priceUpdates";
|
|
1084
|
+
readonly type: "tuple[]";
|
|
1085
|
+
}];
|
|
1086
|
+
readonly name: "getLiquidatableCreditAccounts";
|
|
1087
|
+
readonly outputs: readonly [{
|
|
1088
|
+
readonly components: readonly [{
|
|
1089
|
+
readonly internalType: "bool";
|
|
1090
|
+
readonly name: "isSuccessful";
|
|
1091
|
+
readonly type: "bool";
|
|
1092
|
+
}, {
|
|
1093
|
+
readonly internalType: "address[]";
|
|
1094
|
+
readonly name: "priceFeedsNeeded";
|
|
1095
|
+
readonly type: "address[]";
|
|
1096
|
+
}, {
|
|
1097
|
+
readonly internalType: "address";
|
|
1098
|
+
readonly name: "addr";
|
|
1099
|
+
readonly type: "address";
|
|
1100
|
+
}, {
|
|
1101
|
+
readonly internalType: "address";
|
|
1102
|
+
readonly name: "borrower";
|
|
1103
|
+
readonly type: "address";
|
|
1104
|
+
}, {
|
|
1105
|
+
readonly internalType: "address";
|
|
1106
|
+
readonly name: "creditManager";
|
|
1107
|
+
readonly type: "address";
|
|
1108
|
+
}, {
|
|
1109
|
+
readonly internalType: "string";
|
|
1110
|
+
readonly name: "cmDescription";
|
|
1111
|
+
readonly type: "string";
|
|
1112
|
+
}, {
|
|
1113
|
+
readonly internalType: "address";
|
|
1114
|
+
readonly name: "creditFacade";
|
|
1115
|
+
readonly type: "address";
|
|
1116
|
+
}, {
|
|
1117
|
+
readonly internalType: "address";
|
|
1118
|
+
readonly name: "underlying";
|
|
1119
|
+
readonly type: "address";
|
|
1120
|
+
}, {
|
|
1121
|
+
readonly internalType: "uint256";
|
|
1122
|
+
readonly name: "debt";
|
|
1123
|
+
readonly type: "uint256";
|
|
1124
|
+
}, {
|
|
1125
|
+
readonly internalType: "uint256";
|
|
1126
|
+
readonly name: "cumulativeIndexNow";
|
|
1127
|
+
readonly type: "uint256";
|
|
1128
|
+
}, {
|
|
1129
|
+
readonly internalType: "uint256";
|
|
1130
|
+
readonly name: "cumulativeIndexLastUpdate";
|
|
1131
|
+
readonly type: "uint256";
|
|
1132
|
+
}, {
|
|
1133
|
+
readonly internalType: "uint128";
|
|
1134
|
+
readonly name: "cumulativeQuotaInterest";
|
|
1135
|
+
readonly type: "uint128";
|
|
1136
|
+
}, {
|
|
1137
|
+
readonly internalType: "uint256";
|
|
1138
|
+
readonly name: "accruedInterest";
|
|
1139
|
+
readonly type: "uint256";
|
|
1140
|
+
}, {
|
|
1141
|
+
readonly internalType: "uint256";
|
|
1142
|
+
readonly name: "accruedFees";
|
|
1143
|
+
readonly type: "uint256";
|
|
1144
|
+
}, {
|
|
1145
|
+
readonly internalType: "uint256";
|
|
1146
|
+
readonly name: "totalDebtUSD";
|
|
1147
|
+
readonly type: "uint256";
|
|
1148
|
+
}, {
|
|
1149
|
+
readonly internalType: "uint256";
|
|
1150
|
+
readonly name: "totalValue";
|
|
1151
|
+
readonly type: "uint256";
|
|
1152
|
+
}, {
|
|
1153
|
+
readonly internalType: "uint256";
|
|
1154
|
+
readonly name: "totalValueUSD";
|
|
1155
|
+
readonly type: "uint256";
|
|
1156
|
+
}, {
|
|
1157
|
+
readonly internalType: "uint256";
|
|
1158
|
+
readonly name: "twvUSD";
|
|
1159
|
+
readonly type: "uint256";
|
|
1160
|
+
}, {
|
|
1161
|
+
readonly internalType: "uint256";
|
|
1162
|
+
readonly name: "enabledTokensMask";
|
|
1163
|
+
readonly type: "uint256";
|
|
1164
|
+
}, {
|
|
1165
|
+
readonly internalType: "uint256";
|
|
1166
|
+
readonly name: "healthFactor";
|
|
1167
|
+
readonly type: "uint256";
|
|
1168
|
+
}, {
|
|
1169
|
+
readonly internalType: "uint256";
|
|
1170
|
+
readonly name: "baseBorrowRate";
|
|
1171
|
+
readonly type: "uint256";
|
|
1172
|
+
}, {
|
|
1173
|
+
readonly internalType: "uint256";
|
|
1174
|
+
readonly name: "aggregatedBorrowRate";
|
|
1175
|
+
readonly type: "uint256";
|
|
1176
|
+
}, {
|
|
1177
|
+
readonly components: readonly [{
|
|
1178
|
+
readonly internalType: "address";
|
|
1179
|
+
readonly name: "token";
|
|
1180
|
+
readonly type: "address";
|
|
1181
|
+
}, {
|
|
1182
|
+
readonly internalType: "uint256";
|
|
1183
|
+
readonly name: "balance";
|
|
1184
|
+
readonly type: "uint256";
|
|
1185
|
+
}, {
|
|
1186
|
+
readonly internalType: "bool";
|
|
1187
|
+
readonly name: "isForbidden";
|
|
1188
|
+
readonly type: "bool";
|
|
1189
|
+
}, {
|
|
1190
|
+
readonly internalType: "bool";
|
|
1191
|
+
readonly name: "isEnabled";
|
|
1192
|
+
readonly type: "bool";
|
|
1193
|
+
}, {
|
|
1194
|
+
readonly internalType: "bool";
|
|
1195
|
+
readonly name: "isQuoted";
|
|
1196
|
+
readonly type: "bool";
|
|
1197
|
+
}, {
|
|
1198
|
+
readonly internalType: "uint256";
|
|
1199
|
+
readonly name: "quota";
|
|
1200
|
+
readonly type: "uint256";
|
|
1201
|
+
}, {
|
|
1202
|
+
readonly internalType: "uint16";
|
|
1203
|
+
readonly name: "quotaRate";
|
|
1204
|
+
readonly type: "uint16";
|
|
1205
|
+
}, {
|
|
1206
|
+
readonly internalType: "uint256";
|
|
1207
|
+
readonly name: "quotaCumulativeIndexLU";
|
|
1208
|
+
readonly type: "uint256";
|
|
1209
|
+
}];
|
|
1210
|
+
readonly internalType: "struct TokenBalance[]";
|
|
1211
|
+
readonly name: "balances";
|
|
1212
|
+
readonly type: "tuple[]";
|
|
1213
|
+
}, {
|
|
1214
|
+
readonly internalType: "uint64";
|
|
1215
|
+
readonly name: "since";
|
|
1216
|
+
readonly type: "uint64";
|
|
1217
|
+
}, {
|
|
1218
|
+
readonly internalType: "uint256";
|
|
1219
|
+
readonly name: "cfVersion";
|
|
1220
|
+
readonly type: "uint256";
|
|
1221
|
+
}, {
|
|
1222
|
+
readonly internalType: "uint40";
|
|
1223
|
+
readonly name: "expirationDate";
|
|
1224
|
+
readonly type: "uint40";
|
|
1225
|
+
}, {
|
|
1226
|
+
readonly internalType: "address[]";
|
|
1227
|
+
readonly name: "activeBots";
|
|
1228
|
+
readonly type: "address[]";
|
|
1229
|
+
}, {
|
|
1230
|
+
readonly internalType: "uint256";
|
|
1231
|
+
readonly name: "maxApprovedBots";
|
|
1232
|
+
readonly type: "uint256";
|
|
1233
|
+
}, {
|
|
1234
|
+
readonly components: readonly [{
|
|
1235
|
+
readonly internalType: "uint8";
|
|
1236
|
+
readonly name: "tokenIndex";
|
|
1237
|
+
readonly type: "uint8";
|
|
1238
|
+
}, {
|
|
1239
|
+
readonly internalType: "uint40";
|
|
1240
|
+
readonly name: "maturity";
|
|
1241
|
+
readonly type: "uint40";
|
|
1242
|
+
}, {
|
|
1243
|
+
readonly internalType: "address";
|
|
1244
|
+
readonly name: "token";
|
|
1245
|
+
readonly type: "address";
|
|
1246
|
+
}, {
|
|
1247
|
+
readonly internalType: "uint256";
|
|
1248
|
+
readonly name: "amount";
|
|
1249
|
+
readonly type: "uint256";
|
|
1250
|
+
}];
|
|
1251
|
+
readonly internalType: "struct ScheduledWithdrawal[2]";
|
|
1252
|
+
readonly name: "schedultedWithdrawals";
|
|
1253
|
+
readonly type: "tuple[2]";
|
|
1254
|
+
}];
|
|
1255
|
+
readonly internalType: "struct CreditAccountData[]";
|
|
1256
|
+
readonly name: "result";
|
|
1257
|
+
readonly type: "tuple[]";
|
|
1258
|
+
}];
|
|
1259
|
+
readonly stateMutability: "nonpayable";
|
|
1260
|
+
readonly type: "function";
|
|
1071
1261
|
}, {
|
|
1072
1262
|
readonly inputs: readonly [{
|
|
1073
1263
|
readonly internalType: "address";
|
|
@@ -1363,6 +1363,248 @@ const _abi = [
|
|
|
1363
1363
|
stateMutability: "view",
|
|
1364
1364
|
type: "function",
|
|
1365
1365
|
},
|
|
1366
|
+
{
|
|
1367
|
+
inputs: [
|
|
1368
|
+
{
|
|
1369
|
+
components: [
|
|
1370
|
+
{
|
|
1371
|
+
internalType: "address",
|
|
1372
|
+
name: "token",
|
|
1373
|
+
type: "address",
|
|
1374
|
+
},
|
|
1375
|
+
{
|
|
1376
|
+
internalType: "bytes",
|
|
1377
|
+
name: "callData",
|
|
1378
|
+
type: "bytes",
|
|
1379
|
+
},
|
|
1380
|
+
],
|
|
1381
|
+
internalType: "struct PriceOnDemand[]",
|
|
1382
|
+
name: "priceUpdates",
|
|
1383
|
+
type: "tuple[]",
|
|
1384
|
+
},
|
|
1385
|
+
],
|
|
1386
|
+
name: "getLiquidatableCreditAccounts",
|
|
1387
|
+
outputs: [
|
|
1388
|
+
{
|
|
1389
|
+
components: [
|
|
1390
|
+
{
|
|
1391
|
+
internalType: "bool",
|
|
1392
|
+
name: "isSuccessful",
|
|
1393
|
+
type: "bool",
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
internalType: "address[]",
|
|
1397
|
+
name: "priceFeedsNeeded",
|
|
1398
|
+
type: "address[]",
|
|
1399
|
+
},
|
|
1400
|
+
{
|
|
1401
|
+
internalType: "address",
|
|
1402
|
+
name: "addr",
|
|
1403
|
+
type: "address",
|
|
1404
|
+
},
|
|
1405
|
+
{
|
|
1406
|
+
internalType: "address",
|
|
1407
|
+
name: "borrower",
|
|
1408
|
+
type: "address",
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
internalType: "address",
|
|
1412
|
+
name: "creditManager",
|
|
1413
|
+
type: "address",
|
|
1414
|
+
},
|
|
1415
|
+
{
|
|
1416
|
+
internalType: "string",
|
|
1417
|
+
name: "cmDescription",
|
|
1418
|
+
type: "string",
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
internalType: "address",
|
|
1422
|
+
name: "creditFacade",
|
|
1423
|
+
type: "address",
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
internalType: "address",
|
|
1427
|
+
name: "underlying",
|
|
1428
|
+
type: "address",
|
|
1429
|
+
},
|
|
1430
|
+
{
|
|
1431
|
+
internalType: "uint256",
|
|
1432
|
+
name: "debt",
|
|
1433
|
+
type: "uint256",
|
|
1434
|
+
},
|
|
1435
|
+
{
|
|
1436
|
+
internalType: "uint256",
|
|
1437
|
+
name: "cumulativeIndexNow",
|
|
1438
|
+
type: "uint256",
|
|
1439
|
+
},
|
|
1440
|
+
{
|
|
1441
|
+
internalType: "uint256",
|
|
1442
|
+
name: "cumulativeIndexLastUpdate",
|
|
1443
|
+
type: "uint256",
|
|
1444
|
+
},
|
|
1445
|
+
{
|
|
1446
|
+
internalType: "uint128",
|
|
1447
|
+
name: "cumulativeQuotaInterest",
|
|
1448
|
+
type: "uint128",
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
internalType: "uint256",
|
|
1452
|
+
name: "accruedInterest",
|
|
1453
|
+
type: "uint256",
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
internalType: "uint256",
|
|
1457
|
+
name: "accruedFees",
|
|
1458
|
+
type: "uint256",
|
|
1459
|
+
},
|
|
1460
|
+
{
|
|
1461
|
+
internalType: "uint256",
|
|
1462
|
+
name: "totalDebtUSD",
|
|
1463
|
+
type: "uint256",
|
|
1464
|
+
},
|
|
1465
|
+
{
|
|
1466
|
+
internalType: "uint256",
|
|
1467
|
+
name: "totalValue",
|
|
1468
|
+
type: "uint256",
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
internalType: "uint256",
|
|
1472
|
+
name: "totalValueUSD",
|
|
1473
|
+
type: "uint256",
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
internalType: "uint256",
|
|
1477
|
+
name: "twvUSD",
|
|
1478
|
+
type: "uint256",
|
|
1479
|
+
},
|
|
1480
|
+
{
|
|
1481
|
+
internalType: "uint256",
|
|
1482
|
+
name: "enabledTokensMask",
|
|
1483
|
+
type: "uint256",
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
internalType: "uint256",
|
|
1487
|
+
name: "healthFactor",
|
|
1488
|
+
type: "uint256",
|
|
1489
|
+
},
|
|
1490
|
+
{
|
|
1491
|
+
internalType: "uint256",
|
|
1492
|
+
name: "baseBorrowRate",
|
|
1493
|
+
type: "uint256",
|
|
1494
|
+
},
|
|
1495
|
+
{
|
|
1496
|
+
internalType: "uint256",
|
|
1497
|
+
name: "aggregatedBorrowRate",
|
|
1498
|
+
type: "uint256",
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
components: [
|
|
1502
|
+
{
|
|
1503
|
+
internalType: "address",
|
|
1504
|
+
name: "token",
|
|
1505
|
+
type: "address",
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
internalType: "uint256",
|
|
1509
|
+
name: "balance",
|
|
1510
|
+
type: "uint256",
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
internalType: "bool",
|
|
1514
|
+
name: "isForbidden",
|
|
1515
|
+
type: "bool",
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
internalType: "bool",
|
|
1519
|
+
name: "isEnabled",
|
|
1520
|
+
type: "bool",
|
|
1521
|
+
},
|
|
1522
|
+
{
|
|
1523
|
+
internalType: "bool",
|
|
1524
|
+
name: "isQuoted",
|
|
1525
|
+
type: "bool",
|
|
1526
|
+
},
|
|
1527
|
+
{
|
|
1528
|
+
internalType: "uint256",
|
|
1529
|
+
name: "quota",
|
|
1530
|
+
type: "uint256",
|
|
1531
|
+
},
|
|
1532
|
+
{
|
|
1533
|
+
internalType: "uint16",
|
|
1534
|
+
name: "quotaRate",
|
|
1535
|
+
type: "uint16",
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
internalType: "uint256",
|
|
1539
|
+
name: "quotaCumulativeIndexLU",
|
|
1540
|
+
type: "uint256",
|
|
1541
|
+
},
|
|
1542
|
+
],
|
|
1543
|
+
internalType: "struct TokenBalance[]",
|
|
1544
|
+
name: "balances",
|
|
1545
|
+
type: "tuple[]",
|
|
1546
|
+
},
|
|
1547
|
+
{
|
|
1548
|
+
internalType: "uint64",
|
|
1549
|
+
name: "since",
|
|
1550
|
+
type: "uint64",
|
|
1551
|
+
},
|
|
1552
|
+
{
|
|
1553
|
+
internalType: "uint256",
|
|
1554
|
+
name: "cfVersion",
|
|
1555
|
+
type: "uint256",
|
|
1556
|
+
},
|
|
1557
|
+
{
|
|
1558
|
+
internalType: "uint40",
|
|
1559
|
+
name: "expirationDate",
|
|
1560
|
+
type: "uint40",
|
|
1561
|
+
},
|
|
1562
|
+
{
|
|
1563
|
+
internalType: "address[]",
|
|
1564
|
+
name: "activeBots",
|
|
1565
|
+
type: "address[]",
|
|
1566
|
+
},
|
|
1567
|
+
{
|
|
1568
|
+
internalType: "uint256",
|
|
1569
|
+
name: "maxApprovedBots",
|
|
1570
|
+
type: "uint256",
|
|
1571
|
+
},
|
|
1572
|
+
{
|
|
1573
|
+
components: [
|
|
1574
|
+
{
|
|
1575
|
+
internalType: "uint8",
|
|
1576
|
+
name: "tokenIndex",
|
|
1577
|
+
type: "uint8",
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
internalType: "uint40",
|
|
1581
|
+
name: "maturity",
|
|
1582
|
+
type: "uint40",
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
internalType: "address",
|
|
1586
|
+
name: "token",
|
|
1587
|
+
type: "address",
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
internalType: "uint256",
|
|
1591
|
+
name: "amount",
|
|
1592
|
+
type: "uint256",
|
|
1593
|
+
},
|
|
1594
|
+
],
|
|
1595
|
+
internalType: "struct ScheduledWithdrawal[2]",
|
|
1596
|
+
name: "schedultedWithdrawals",
|
|
1597
|
+
type: "tuple[2]",
|
|
1598
|
+
},
|
|
1599
|
+
],
|
|
1600
|
+
internalType: "struct CreditAccountData[]",
|
|
1601
|
+
name: "result",
|
|
1602
|
+
type: "tuple[]",
|
|
1603
|
+
},
|
|
1604
|
+
],
|
|
1605
|
+
stateMutability: "nonpayable",
|
|
1606
|
+
type: "function",
|
|
1607
|
+
},
|
|
1366
1608
|
{
|
|
1367
1609
|
inputs: [
|
|
1368
1610
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/sdk",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.30",
|
|
4
4
|
"description": "Gearbox SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@gearbox-protocol/eslint-config": "^1.4.1",
|
|
46
46
|
"@gearbox-protocol/integrations-v3": "^1.19.0",
|
|
47
47
|
"@gearbox-protocol/oracles-v3": "^1.7.6",
|
|
48
|
-
"@gearbox-protocol/periphery-v3": "^1.3.
|
|
48
|
+
"@gearbox-protocol/periphery-v3": "^1.3.4",
|
|
49
49
|
"@gearbox-protocol/prettier-config": "^1.4.1",
|
|
50
50
|
"@openzeppelin/contracts": "^4.9.3",
|
|
51
51
|
"@typechain/ethers-v5": "^10.1.0",
|