gondi 0.63.1 → 0.64.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/index.mjs +746 -145
- package/dist/index.mjs.map +3 -3
- package/dist/src/clients/api/index.d.ts +2 -58
- package/dist/src/clients/contracts/MslV6.d.ts +7 -0
- package/dist/src/generated/graphql/index.d.ts +799 -196
- package/dist/src/gondi.d.ts +73 -104
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
|
@@ -870,28 +870,12 @@ export declare class Api {
|
|
|
870
870
|
principalAddress: Address;
|
|
871
871
|
duration: bigint;
|
|
872
872
|
status: string;
|
|
873
|
+
offerIds: Array<string>;
|
|
873
874
|
principalAmount: bigint;
|
|
874
875
|
blendedAprBps: number;
|
|
875
876
|
totalOriginationFee: bigint;
|
|
876
877
|
protocolFee: bigint;
|
|
877
878
|
lenderRefinanceDisabled: boolean;
|
|
878
|
-
offer: {
|
|
879
|
-
__typename?: "CollectionOffer";
|
|
880
|
-
offerId: bigint;
|
|
881
|
-
signerAddress?: Address | null;
|
|
882
|
-
} | {
|
|
883
|
-
__typename?: "SetOffer";
|
|
884
|
-
offerId: bigint;
|
|
885
|
-
signerAddress?: Address | null;
|
|
886
|
-
} | {
|
|
887
|
-
__typename?: "SingleNFTOffer";
|
|
888
|
-
offerId: bigint;
|
|
889
|
-
signerAddress?: Address | null;
|
|
890
|
-
} | {
|
|
891
|
-
__typename?: "TraitOffer";
|
|
892
|
-
offerId: bigint;
|
|
893
|
-
signerAddress?: Address | null;
|
|
894
|
-
};
|
|
895
879
|
currency: {
|
|
896
880
|
__typename?: "Currency";
|
|
897
881
|
symbol: string;
|
|
@@ -973,28 +957,12 @@ export declare class Api {
|
|
|
973
957
|
principalAddress: Address;
|
|
974
958
|
duration: bigint;
|
|
975
959
|
status: string;
|
|
960
|
+
offerIds: Array<string>;
|
|
976
961
|
principalAmount: bigint;
|
|
977
962
|
blendedAprBps: number;
|
|
978
963
|
totalOriginationFee: bigint;
|
|
979
964
|
protocolFee: bigint;
|
|
980
965
|
lenderRefinanceDisabled: boolean;
|
|
981
|
-
offer: {
|
|
982
|
-
__typename?: "CollectionOffer";
|
|
983
|
-
offerId: bigint;
|
|
984
|
-
signerAddress?: Address | null;
|
|
985
|
-
} | {
|
|
986
|
-
__typename?: "SetOffer";
|
|
987
|
-
offerId: bigint;
|
|
988
|
-
signerAddress?: Address | null;
|
|
989
|
-
} | {
|
|
990
|
-
__typename?: "SingleNFTOffer";
|
|
991
|
-
offerId: bigint;
|
|
992
|
-
signerAddress?: Address | null;
|
|
993
|
-
} | {
|
|
994
|
-
__typename?: "TraitOffer";
|
|
995
|
-
offerId: bigint;
|
|
996
|
-
signerAddress?: Address | null;
|
|
997
|
-
};
|
|
998
966
|
currency: {
|
|
999
967
|
__typename?: "Currency";
|
|
1000
968
|
symbol: string;
|
|
@@ -1111,7 +1079,6 @@ export declare class Api {
|
|
|
1111
1079
|
__typename: "BuyNowPayLaterOrder";
|
|
1112
1080
|
id: string;
|
|
1113
1081
|
price: bigint;
|
|
1114
|
-
steppedPrice?: bigint | null;
|
|
1115
1082
|
currencyAddress: Address;
|
|
1116
1083
|
maker: Address;
|
|
1117
1084
|
isAsk: boolean;
|
|
@@ -1128,7 +1095,6 @@ export declare class Api {
|
|
|
1128
1095
|
collectionId: number;
|
|
1129
1096
|
id: string;
|
|
1130
1097
|
price: bigint;
|
|
1131
|
-
steppedPrice?: bigint | null;
|
|
1132
1098
|
currencyAddress: Address;
|
|
1133
1099
|
maker: Address;
|
|
1134
1100
|
isAsk: boolean;
|
|
@@ -1145,7 +1111,6 @@ export declare class Api {
|
|
|
1145
1111
|
collectionId: number;
|
|
1146
1112
|
id: string;
|
|
1147
1113
|
price: bigint;
|
|
1148
|
-
steppedPrice?: bigint | null;
|
|
1149
1114
|
currencyAddress: Address;
|
|
1150
1115
|
maker: Address;
|
|
1151
1116
|
isAsk: boolean;
|
|
@@ -1161,7 +1126,6 @@ export declare class Api {
|
|
|
1161
1126
|
__typename: "SellAndRepayOrder";
|
|
1162
1127
|
id: string;
|
|
1163
1128
|
price: bigint;
|
|
1164
|
-
steppedPrice?: bigint | null;
|
|
1165
1129
|
currencyAddress: Address;
|
|
1166
1130
|
maker: Address;
|
|
1167
1131
|
isAsk: boolean;
|
|
@@ -1178,7 +1142,6 @@ export declare class Api {
|
|
|
1178
1142
|
collectionId: number;
|
|
1179
1143
|
id: string;
|
|
1180
1144
|
price: bigint;
|
|
1181
|
-
steppedPrice?: bigint | null;
|
|
1182
1145
|
currencyAddress: Address;
|
|
1183
1146
|
maker: Address;
|
|
1184
1147
|
isAsk: boolean;
|
|
@@ -1194,7 +1157,6 @@ export declare class Api {
|
|
|
1194
1157
|
__typename: "SingleNFTOrder";
|
|
1195
1158
|
id: string;
|
|
1196
1159
|
price: bigint;
|
|
1197
|
-
steppedPrice?: bigint | null;
|
|
1198
1160
|
currencyAddress: Address;
|
|
1199
1161
|
maker: Address;
|
|
1200
1162
|
isAsk: boolean;
|
|
@@ -1219,7 +1181,6 @@ export declare class Api {
|
|
|
1219
1181
|
__typename: "StealthMaskedOrder";
|
|
1220
1182
|
id: string;
|
|
1221
1183
|
price: bigint;
|
|
1222
|
-
steppedPrice?: bigint | null;
|
|
1223
1184
|
currencyAddress: Address;
|
|
1224
1185
|
maker: Address;
|
|
1225
1186
|
isAsk: boolean;
|
|
@@ -1236,7 +1197,6 @@ export declare class Api {
|
|
|
1236
1197
|
collectionId: number;
|
|
1237
1198
|
id: string;
|
|
1238
1199
|
price: bigint;
|
|
1239
|
-
steppedPrice?: bigint | null;
|
|
1240
1200
|
currencyAddress: Address;
|
|
1241
1201
|
maker: Address;
|
|
1242
1202
|
isAsk: boolean;
|
|
@@ -1256,7 +1216,6 @@ export declare class Api {
|
|
|
1256
1216
|
__typename: "BuyNowPayLaterOrder";
|
|
1257
1217
|
id: string;
|
|
1258
1218
|
price: bigint;
|
|
1259
|
-
steppedPrice?: bigint | null;
|
|
1260
1219
|
currencyAddress: Address;
|
|
1261
1220
|
maker: Address;
|
|
1262
1221
|
isAsk: boolean;
|
|
@@ -1273,7 +1232,6 @@ export declare class Api {
|
|
|
1273
1232
|
collectionId: number;
|
|
1274
1233
|
id: string;
|
|
1275
1234
|
price: bigint;
|
|
1276
|
-
steppedPrice?: bigint | null;
|
|
1277
1235
|
currencyAddress: Address;
|
|
1278
1236
|
maker: Address;
|
|
1279
1237
|
isAsk: boolean;
|
|
@@ -1290,7 +1248,6 @@ export declare class Api {
|
|
|
1290
1248
|
collectionId: number;
|
|
1291
1249
|
id: string;
|
|
1292
1250
|
price: bigint;
|
|
1293
|
-
steppedPrice?: bigint | null;
|
|
1294
1251
|
currencyAddress: Address;
|
|
1295
1252
|
maker: Address;
|
|
1296
1253
|
isAsk: boolean;
|
|
@@ -1306,7 +1263,6 @@ export declare class Api {
|
|
|
1306
1263
|
__typename: "SellAndRepayOrder";
|
|
1307
1264
|
id: string;
|
|
1308
1265
|
price: bigint;
|
|
1309
|
-
steppedPrice?: bigint | null;
|
|
1310
1266
|
currencyAddress: Address;
|
|
1311
1267
|
maker: Address;
|
|
1312
1268
|
isAsk: boolean;
|
|
@@ -1323,7 +1279,6 @@ export declare class Api {
|
|
|
1323
1279
|
collectionId: number;
|
|
1324
1280
|
id: string;
|
|
1325
1281
|
price: bigint;
|
|
1326
|
-
steppedPrice?: bigint | null;
|
|
1327
1282
|
currencyAddress: Address;
|
|
1328
1283
|
maker: Address;
|
|
1329
1284
|
isAsk: boolean;
|
|
@@ -1339,7 +1294,6 @@ export declare class Api {
|
|
|
1339
1294
|
__typename: "SingleNFTOrder";
|
|
1340
1295
|
id: string;
|
|
1341
1296
|
price: bigint;
|
|
1342
|
-
steppedPrice?: bigint | null;
|
|
1343
1297
|
currencyAddress: Address;
|
|
1344
1298
|
maker: Address;
|
|
1345
1299
|
isAsk: boolean;
|
|
@@ -1364,7 +1318,6 @@ export declare class Api {
|
|
|
1364
1318
|
__typename: "StealthMaskedOrder";
|
|
1365
1319
|
id: string;
|
|
1366
1320
|
price: bigint;
|
|
1367
|
-
steppedPrice?: bigint | null;
|
|
1368
1321
|
currencyAddress: Address;
|
|
1369
1322
|
maker: Address;
|
|
1370
1323
|
isAsk: boolean;
|
|
@@ -1381,7 +1334,6 @@ export declare class Api {
|
|
|
1381
1334
|
collectionId: number;
|
|
1382
1335
|
id: string;
|
|
1383
1336
|
price: bigint;
|
|
1384
|
-
steppedPrice?: bigint | null;
|
|
1385
1337
|
currencyAddress: Address;
|
|
1386
1338
|
maker: Address;
|
|
1387
1339
|
isAsk: boolean;
|
|
@@ -1429,7 +1381,6 @@ export declare class Api {
|
|
|
1429
1381
|
__typename: "BuyNowPayLaterOrder";
|
|
1430
1382
|
id: string;
|
|
1431
1383
|
price: bigint;
|
|
1432
|
-
steppedPrice?: bigint | null;
|
|
1433
1384
|
currencyAddress: Address;
|
|
1434
1385
|
maker: Address;
|
|
1435
1386
|
isAsk: boolean;
|
|
@@ -1446,7 +1397,6 @@ export declare class Api {
|
|
|
1446
1397
|
collectionId: number;
|
|
1447
1398
|
id: string;
|
|
1448
1399
|
price: bigint;
|
|
1449
|
-
steppedPrice?: bigint | null;
|
|
1450
1400
|
currencyAddress: Address;
|
|
1451
1401
|
maker: Address;
|
|
1452
1402
|
isAsk: boolean;
|
|
@@ -1463,7 +1413,6 @@ export declare class Api {
|
|
|
1463
1413
|
collectionId: number;
|
|
1464
1414
|
id: string;
|
|
1465
1415
|
price: bigint;
|
|
1466
|
-
steppedPrice?: bigint | null;
|
|
1467
1416
|
currencyAddress: Address;
|
|
1468
1417
|
maker: Address;
|
|
1469
1418
|
isAsk: boolean;
|
|
@@ -1479,7 +1428,6 @@ export declare class Api {
|
|
|
1479
1428
|
__typename: "SellAndRepayOrder";
|
|
1480
1429
|
id: string;
|
|
1481
1430
|
price: bigint;
|
|
1482
|
-
steppedPrice?: bigint | null;
|
|
1483
1431
|
currencyAddress: Address;
|
|
1484
1432
|
maker: Address;
|
|
1485
1433
|
isAsk: boolean;
|
|
@@ -1496,7 +1444,6 @@ export declare class Api {
|
|
|
1496
1444
|
collectionId: number;
|
|
1497
1445
|
id: string;
|
|
1498
1446
|
price: bigint;
|
|
1499
|
-
steppedPrice?: bigint | null;
|
|
1500
1447
|
currencyAddress: Address;
|
|
1501
1448
|
maker: Address;
|
|
1502
1449
|
isAsk: boolean;
|
|
@@ -1512,7 +1459,6 @@ export declare class Api {
|
|
|
1512
1459
|
__typename: "SingleNFTOrder";
|
|
1513
1460
|
id: string;
|
|
1514
1461
|
price: bigint;
|
|
1515
|
-
steppedPrice?: bigint | null;
|
|
1516
1462
|
currencyAddress: Address;
|
|
1517
1463
|
maker: Address;
|
|
1518
1464
|
isAsk: boolean;
|
|
@@ -1537,7 +1483,6 @@ export declare class Api {
|
|
|
1537
1483
|
__typename: "StealthMaskedOrder";
|
|
1538
1484
|
id: string;
|
|
1539
1485
|
price: bigint;
|
|
1540
|
-
steppedPrice?: bigint | null;
|
|
1541
1486
|
currencyAddress: Address;
|
|
1542
1487
|
maker: Address;
|
|
1543
1488
|
isAsk: boolean;
|
|
@@ -1554,7 +1499,6 @@ export declare class Api {
|
|
|
1554
1499
|
collectionId: number;
|
|
1555
1500
|
id: string;
|
|
1556
1501
|
price: bigint;
|
|
1557
|
-
steppedPrice?: bigint | null;
|
|
1558
1502
|
currencyAddress: Address;
|
|
1559
1503
|
maker: Address;
|
|
1560
1504
|
isAsk: boolean;
|
|
@@ -9446,6 +9446,13 @@ export declare class MslV6 extends BaseContract<typeof multiSourceLoanAbiV6 | ty
|
|
|
9446
9446
|
getRemainingLockupSeconds({ loan }: {
|
|
9447
9447
|
loan: LoanV6;
|
|
9448
9448
|
}): Promise<number>;
|
|
9449
|
+
/**
|
|
9450
|
+
* Whether the loan is inside its end lockup, sized from the API's
|
|
9451
|
+
* `durationFromRenegotiationOrStart` rather than the contract's start time.
|
|
9452
|
+
* On v3/v3.1 this deliberately locks longer than the contract, whose start
|
|
9453
|
+
* time lender refinances also reset, so lenders aren't refinanced out at the
|
|
9454
|
+
* last moment; it matches the API's `isEndLockedUp`.
|
|
9455
|
+
*/
|
|
9449
9456
|
isEndLockedUp({ loan, }: {
|
|
9450
9457
|
loan: LoanToMslLoanType & {
|
|
9451
9458
|
durationFromRenegotiationOrStart: bigint;
|