@drift-labs/common 1.0.18 → 1.0.20
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/lib/actions/actionHelpers/actionHelpers.d.ts +9 -9
- package/lib/common-ui-utils/commonUiUtils.d.ts +4 -1
- package/lib/common-ui-utils/commonUiUtils.js.map +1 -1
- package/lib/common-ui-utils/user.js +3 -1
- package/lib/common-ui-utils/user.js.map +1 -1
- package/lib/constants/predictionMarket.d.ts +1 -1
- package/lib/drift/Drift/clients/AuthorityDrift/DriftL2OrderbookManager.d.ts +10 -10
- package/lib/drift/Drift/clients/AuthorityDrift/DriftOperations/index.js +4 -0
- package/lib/drift/Drift/clients/AuthorityDrift/DriftOperations/index.js.map +1 -1
- package/lib/drift/Drift/clients/AuthorityDrift/DriftOperations/types.d.ts +2 -1
- package/lib/drift/Drift/clients/AuthorityDrift/DriftOperations/types.js.map +1 -1
- package/lib/drift/Drift/clients/CentralServerDrift/index.d.ts +5 -0
- package/lib/drift/Drift/clients/CentralServerDrift/index.js +9 -3
- package/lib/drift/Drift/clients/CentralServerDrift/index.js.map +1 -1
- package/lib/drift/base/actions/trade/openPerpOrder/index.d.ts +1 -0
- package/lib/drift/base/actions/trade/openPerpOrder/index.js +1 -0
- package/lib/drift/base/actions/trade/openPerpOrder/index.js.map +1 -1
- package/lib/drift/base/actions/trade/openPerpOrder/isolatedPositionDeposit.d.ts +34 -0
- package/lib/drift/base/actions/trade/openPerpOrder/isolatedPositionDeposit.js +45 -0
- package/lib/drift/base/actions/trade/openPerpOrder/isolatedPositionDeposit.js.map +1 -0
- package/lib/drift/base/actions/trade/openPerpOrder/openPerpMarketOrder/index.d.ts +8 -2
- package/lib/drift/base/actions/trade/openPerpOrder/openPerpMarketOrder/index.js +8 -2
- package/lib/drift/base/actions/trade/openPerpOrder/openPerpMarketOrder/index.js.map +1 -1
- package/lib/drift/base/actions/trade/openPerpOrder/openPerpNonMarketOrder/index.js +8 -2
- package/lib/drift/base/actions/trade/openPerpOrder/openPerpNonMarketOrder/index.js.map +1 -1
- package/lib/drift/base/actions/trade/openPerpOrder/openSwiftOrder/index.d.ts +6 -0
- package/lib/drift/base/actions/trade/openPerpOrder/openSwiftOrder/index.js +5 -3
- package/lib/drift/base/actions/trade/openPerpOrder/openSwiftOrder/index.js.map +1 -1
- package/lib/drift/base/actions/trade/openPerpOrder/types.d.ts +1 -0
- package/lib/drift/base/actions/trade/openPerpOrder/types.js.map +1 -1
- package/lib/drift/base/actions/user/create.d.ts +9 -2
- package/lib/drift/base/actions/user/create.js +10 -6
- package/lib/drift/base/actions/user/create.js.map +1 -1
- package/lib/drift/base/details/user/balances.d.ts +1 -1
- package/lib/drift/base/details/user/positions.d.ts +1 -1
- package/lib/drift/cli.js +28 -6
- package/lib/drift/cli.js.map +1 -1
- package/lib/drift/utils/funding.d.ts +0 -1
- package/lib/serializableTypes.d.ts +10 -0
- package/lib/serializableTypes.js +317 -217
- package/lib/serializableTypes.js.map +1 -1
- package/lib/types/UIMarket.d.ts +2 -2
- package/lib/utils/NumLib.d.ts +4 -4
- package/lib/utils/ResultSlotIncrementer.d.ts +4 -0
- package/lib/utils/ResultSlotIncrementer.js +8 -0
- package/lib/utils/ResultSlotIncrementer.js.map +1 -1
- package/lib/utils/index.d.ts +2 -2
- package/lib/utils/math.d.ts +3 -3
- package/package.json +8 -5
package/lib/serializableTypes.js
CHANGED
|
@@ -8,9 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96, _97, _98, _99, _100, _101, _102, _103, _104, _105, _106, _107, _108, _109, _110, _111, _112, _113, _114, _115, _116, _117, _118, _119, _120, _121, _122, _123, _124, _125, _126, _127, _128, _129, _130, _131, _132, _133, _134, _135, _136, _137, _138, _139, _140, _141, _142, _143, _144, _145, _146, _147, _148, _149, _150, _151, _152, _153, _154, _155, _156, _157, _158, _159, _160, _161, _162, _163, _164, _165, _166, _167, _168, _169, _170, _171, _172, _173, _174, _175, _176, _177, _178, _179, _180, _181, _182, _183, _184, _185, _186, _187, _188, _189, _190, _191;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.SerializableDlobOrder = exports.UISerializableAccountSnapshot = exports.SerializableAccountSnapshot = exports.SerializableNewUserRecord = exports.UISerializableLeaderboardResult = exports.SerializableLeaderboardResult = exports.UIMatchedOrderRecordAndAction = exports.UISerializableAllTimePnlData = exports.UISerializableRollingPnlData = exports.SerializableAllTimePnlData = exports.SerializableRollingPnlData = exports.UISerializableCandle = exports.SerializableCandle = exports.UISerializableUserSnapshotRecord = exports.SerializableUserSnapshotRecord = exports.UISerializableLiquidationRecordV2 = exports.UISerializableLiquidationRecord = exports.SerializableLiquidationRecord = exports.UISerializableSpotBankruptcyRecord = exports.SerializableSpotBankruptcyRecord = exports.UISerializablePerpBankrupcyRecord = exports.SerializablePerpBankrupcyRecord = exports.UISerializableLiquidatePerpPnlForDepositRecord = exports.SerializableLiquidatePerpPnlForDepositRecord = exports.UISerializableLiquidateBorrowForPerpPnlRecord = exports.SerializableLiquidateBorrowForPerpPnlRecord = exports.UISerializableLiquidateSpotRecord = exports.SerializableLiquidateSpotRecord = exports.UISerializableLiquidatePerpRecord = exports.SerializableLiquidatePerpRecord = exports.UISerializableFundingPaymentRecord = exports.SerializableFundingPaymentRecord = exports.UISerializableFundingRateRecord = exports.SerializableFundingRateRecord = exports.UISerializableSettlePnlRecord = exports.SerializableSettlePnlRecord = exports.SerializableCurveRecord = exports.SerializableSpotInterestRecord = exports.UISerializableDepositRecord = exports.SerializableDepositRecord = exports.UISerializablePositionHistoryRecord = exports.UISerializableOrderActionRecordV2 = exports.UISerializableOrderActionRecordBase = exports.UISerializableOrderRecordV2 = exports.UISerializableOrderActionRecord = exports.SerializableOrderActionRecord = exports.UISerializableOrderRecord = exports.SerializableOrderRecord = exports.UISerializableOrder = exports.SerializableOrder = void 0;
|
|
13
|
-
exports.Serializer = exports.transformDataApiOrderActionRecordToSerializableOrderActionRecord = exports.transformDataApiPositionHistoryRecordToUISerializablePositionHistoryRecord = exports.transformDataApiOrderActionRecordToUISerializableOrderActionRecord = exports.transformDataApiOrderRecordToSerializableOrderRecord = exports.transformDataApiOrderRecordToUISerializableOrderRecord = exports.UISerializableSwapRecord = exports.SerializableSwapRecord = exports.UISerializableLPRecord = exports.SerializableLPRecord = exports.UISerializableInsuranceFundStakeRecord = exports.SerializableInsuranceFundStakeRecord = exports.UISerializableInsuranceFundRecord = exports.SerializableInsuranceFundRecord = exports.CompetitionResult = exports.CompetitionResultEntry = exports.SerializableDLOBState = exports.SerializableDlobOracleInfo = void 0;
|
|
14
|
+
exports.Serializer = exports.transformDataApiLiquidationRecordToUISerializableLiquidationRecord = exports.transformDataApiOrderActionRecordToSerializableOrderActionRecord = exports.transformDataApiPositionHistoryRecordToUISerializablePositionHistoryRecord = exports.transformDataApiOrderActionRecordToUISerializableOrderActionRecord = exports.transformDataApiOrderRecordToSerializableOrderRecord = exports.transformDataApiOrderRecordToUISerializableOrderRecord = exports.UISerializableSwapRecord = exports.SerializableSwapRecord = exports.UISerializableLPRecord = exports.SerializableLPRecord = exports.UISerializableInsuranceFundStakeRecord = exports.SerializableInsuranceFundStakeRecord = exports.UISerializableInsuranceFundRecord = exports.SerializableInsuranceFundRecord = exports.CompetitionResult = exports.CompetitionResultEntry = exports.SerializableDLOBState = exports.SerializableDlobOracleInfo = void 0;
|
|
14
15
|
const sdk_1 = require("@drift-labs/sdk");
|
|
15
16
|
const cerializr_1 = require("cerializr");
|
|
16
17
|
const assert_1 = require("./utils/assert");
|
|
@@ -240,7 +241,7 @@ __decorate([
|
|
|
240
241
|
], SerializableOrder.prototype, "orderType", void 0);
|
|
241
242
|
__decorate([
|
|
242
243
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
243
|
-
__metadata("design:type", sdk_1.BN)
|
|
244
|
+
__metadata("design:type", typeof (_a = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _a : Object)
|
|
244
245
|
], SerializableOrder.prototype, "ts", void 0);
|
|
245
246
|
__decorate([
|
|
246
247
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -256,23 +257,23 @@ __decorate([
|
|
|
256
257
|
], SerializableOrder.prototype, "marketIndex", void 0);
|
|
257
258
|
__decorate([
|
|
258
259
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
259
|
-
__metadata("design:type", sdk_1.BN)
|
|
260
|
+
__metadata("design:type", typeof (_b = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _b : Object)
|
|
260
261
|
], SerializableOrder.prototype, "price", void 0);
|
|
261
262
|
__decorate([
|
|
262
263
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
263
|
-
__metadata("design:type", sdk_1.BN)
|
|
264
|
+
__metadata("design:type", typeof (_c = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _c : Object)
|
|
264
265
|
], SerializableOrder.prototype, "baseAssetAmount", void 0);
|
|
265
266
|
__decorate([
|
|
266
267
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
267
|
-
__metadata("design:type", sdk_1.BN)
|
|
268
|
+
__metadata("design:type", typeof (_d = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _d : Object)
|
|
268
269
|
], SerializableOrder.prototype, "baseAssetAmountFilled", void 0);
|
|
269
270
|
__decorate([
|
|
270
271
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
271
|
-
__metadata("design:type", sdk_1.BN)
|
|
272
|
+
__metadata("design:type", typeof (_e = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _e : Object)
|
|
272
273
|
], SerializableOrder.prototype, "quoteAssetAmount", void 0);
|
|
273
274
|
__decorate([
|
|
274
275
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
275
|
-
__metadata("design:type", sdk_1.BN)
|
|
276
|
+
__metadata("design:type", typeof (_f = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _f : Object)
|
|
276
277
|
], SerializableOrder.prototype, "quoteAssetAmountFilled", void 0);
|
|
277
278
|
__decorate([
|
|
278
279
|
(0, cerializr_1.autoserializeUsing)(EnumSerializeAndDeserializeFns),
|
|
@@ -284,7 +285,7 @@ __decorate([
|
|
|
284
285
|
], SerializableOrder.prototype, "reduceOnly", void 0);
|
|
285
286
|
__decorate([
|
|
286
287
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
287
|
-
__metadata("design:type", sdk_1.BN)
|
|
288
|
+
__metadata("design:type", typeof (_g = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _g : Object)
|
|
288
289
|
], SerializableOrder.prototype, "triggerPrice", void 0);
|
|
289
290
|
__decorate([
|
|
290
291
|
(0, cerializr_1.autoserializeUsing)(EnumSerializeAndDeserializeFns),
|
|
@@ -304,11 +305,11 @@ __decorate([
|
|
|
304
305
|
], SerializableOrder.prototype, "oraclePriceOffset", void 0);
|
|
305
306
|
__decorate([
|
|
306
307
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
307
|
-
__metadata("design:type", sdk_1.BN)
|
|
308
|
+
__metadata("design:type", typeof (_h = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _h : Object)
|
|
308
309
|
], SerializableOrder.prototype, "auctionStartPrice", void 0);
|
|
309
310
|
__decorate([
|
|
310
311
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
311
|
-
__metadata("design:type", sdk_1.BN)
|
|
312
|
+
__metadata("design:type", typeof (_j = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _j : Object)
|
|
312
313
|
], SerializableOrder.prototype, "auctionEndPrice", void 0);
|
|
313
314
|
__decorate([
|
|
314
315
|
(0, cerializr_1.autoserializeUsing)(EnumSerializeAndDeserializeFns),
|
|
@@ -316,7 +317,7 @@ __decorate([
|
|
|
316
317
|
], SerializableOrder.prototype, "existingPositionDirection", void 0);
|
|
317
318
|
__decorate([
|
|
318
319
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
319
|
-
__metadata("design:type", sdk_1.BN)
|
|
320
|
+
__metadata("design:type", typeof (_k = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _k : Object)
|
|
320
321
|
], SerializableOrder.prototype, "slot", void 0);
|
|
321
322
|
__decorate([
|
|
322
323
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -328,7 +329,7 @@ __decorate([
|
|
|
328
329
|
], SerializableOrder.prototype, "marketType", void 0);
|
|
329
330
|
__decorate([
|
|
330
331
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
331
|
-
__metadata("design:type", sdk_1.BN)
|
|
332
|
+
__metadata("design:type", typeof (_l = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _l : Object)
|
|
332
333
|
], SerializableOrder.prototype, "maxTs", void 0);
|
|
333
334
|
__decorate([
|
|
334
335
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -432,7 +433,7 @@ __decorate([
|
|
|
432
433
|
], SerializableOrderRecord.prototype, "slot", void 0);
|
|
433
434
|
__decorate([
|
|
434
435
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
435
|
-
__metadata("design:type", sdk_1.BN)
|
|
436
|
+
__metadata("design:type", typeof (_m = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _m : Object)
|
|
436
437
|
], SerializableOrderRecord.prototype, "ts", void 0);
|
|
437
438
|
__decorate([
|
|
438
439
|
(0, cerializr_1.autoserializeUsing)(PublicKeySerializeAndDeserializeFns),
|
|
@@ -485,7 +486,7 @@ __decorate([
|
|
|
485
486
|
], SerializableOrderActionRecord.prototype, "txSigIndex", void 0);
|
|
486
487
|
__decorate([
|
|
487
488
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
488
|
-
__metadata("design:type", sdk_1.BN)
|
|
489
|
+
__metadata("design:type", typeof (_o = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _o : Object)
|
|
489
490
|
], SerializableOrderActionRecord.prototype, "ts", void 0);
|
|
490
491
|
__decorate([
|
|
491
492
|
(0, cerializr_1.autoserializeUsing)(EnumSerializeAndDeserializeFns),
|
|
@@ -509,27 +510,27 @@ __decorate([
|
|
|
509
510
|
], SerializableOrderActionRecord.prototype, "filler", void 0);
|
|
510
511
|
__decorate([
|
|
511
512
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
512
|
-
__metadata("design:type", sdk_1.BN)
|
|
513
|
+
__metadata("design:type", typeof (_p = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _p : Object)
|
|
513
514
|
], SerializableOrderActionRecord.prototype, "fillerReward", void 0);
|
|
514
515
|
__decorate([
|
|
515
516
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
516
|
-
__metadata("design:type", sdk_1.BN)
|
|
517
|
+
__metadata("design:type", typeof (_q = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _q : Object)
|
|
517
518
|
], SerializableOrderActionRecord.prototype, "fillRecordId", void 0);
|
|
518
519
|
__decorate([
|
|
519
520
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
520
|
-
__metadata("design:type", sdk_1.BN)
|
|
521
|
+
__metadata("design:type", typeof (_r = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _r : Object)
|
|
521
522
|
], SerializableOrderActionRecord.prototype, "baseAssetAmountFilled", void 0);
|
|
522
523
|
__decorate([
|
|
523
524
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
524
|
-
__metadata("design:type", sdk_1.BN)
|
|
525
|
+
__metadata("design:type", typeof (_s = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _s : Object)
|
|
525
526
|
], SerializableOrderActionRecord.prototype, "quoteAssetAmountFilled", void 0);
|
|
526
527
|
__decorate([
|
|
527
528
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
528
|
-
__metadata("design:type", sdk_1.BN)
|
|
529
|
+
__metadata("design:type", typeof (_t = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _t : Object)
|
|
529
530
|
], SerializableOrderActionRecord.prototype, "takerFee", void 0);
|
|
530
531
|
__decorate([
|
|
531
532
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
532
|
-
__metadata("design:type", sdk_1.BN)
|
|
533
|
+
__metadata("design:type", typeof (_u = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _u : Object)
|
|
533
534
|
], SerializableOrderActionRecord.prototype, "makerRebate", void 0);
|
|
534
535
|
__decorate([
|
|
535
536
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -537,7 +538,7 @@ __decorate([
|
|
|
537
538
|
], SerializableOrderActionRecord.prototype, "referrerReward", void 0);
|
|
538
539
|
__decorate([
|
|
539
540
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
540
|
-
__metadata("design:type", sdk_1.BN)
|
|
541
|
+
__metadata("design:type", typeof (_v = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _v : Object)
|
|
541
542
|
], SerializableOrderActionRecord.prototype, "quoteAssetAmountSurplus", void 0);
|
|
542
543
|
__decorate([
|
|
543
544
|
(0, cerializr_1.autoserializeUsing)(PublicKeySerializeAndDeserializeFns),
|
|
@@ -553,15 +554,15 @@ __decorate([
|
|
|
553
554
|
], SerializableOrderActionRecord.prototype, "takerOrderDirection", void 0);
|
|
554
555
|
__decorate([
|
|
555
556
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
556
|
-
__metadata("design:type", sdk_1.BN)
|
|
557
|
+
__metadata("design:type", typeof (_w = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _w : Object)
|
|
557
558
|
], SerializableOrderActionRecord.prototype, "takerOrderBaseAssetAmount", void 0);
|
|
558
559
|
__decorate([
|
|
559
560
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
560
|
-
__metadata("design:type", sdk_1.BN)
|
|
561
|
+
__metadata("design:type", typeof (_x = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _x : Object)
|
|
561
562
|
], SerializableOrderActionRecord.prototype, "takerOrderCumulativeBaseAssetAmountFilled", void 0);
|
|
562
563
|
__decorate([
|
|
563
564
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
564
|
-
__metadata("design:type", sdk_1.BN)
|
|
565
|
+
__metadata("design:type", typeof (_y = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _y : Object)
|
|
565
566
|
], SerializableOrderActionRecord.prototype, "takerOrderCumulativeQuoteAssetAmountFilled", void 0);
|
|
566
567
|
__decorate([
|
|
567
568
|
(0, cerializr_1.autoserializeUsing)(PublicKeySerializeAndDeserializeFns),
|
|
@@ -577,27 +578,27 @@ __decorate([
|
|
|
577
578
|
], SerializableOrderActionRecord.prototype, "makerOrderDirection", void 0);
|
|
578
579
|
__decorate([
|
|
579
580
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
580
|
-
__metadata("design:type", sdk_1.BN)
|
|
581
|
+
__metadata("design:type", typeof (_z = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _z : Object)
|
|
581
582
|
], SerializableOrderActionRecord.prototype, "makerOrderBaseAssetAmount", void 0);
|
|
582
583
|
__decorate([
|
|
583
584
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
584
|
-
__metadata("design:type", sdk_1.BN)
|
|
585
|
+
__metadata("design:type", typeof (_0 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _0 : Object)
|
|
585
586
|
], SerializableOrderActionRecord.prototype, "makerOrderCumulativeBaseAssetAmountFilled", void 0);
|
|
586
587
|
__decorate([
|
|
587
588
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
588
|
-
__metadata("design:type", sdk_1.BN)
|
|
589
|
+
__metadata("design:type", typeof (_1 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _1 : Object)
|
|
589
590
|
], SerializableOrderActionRecord.prototype, "makerOrderCumulativeQuoteAssetAmountFilled", void 0);
|
|
590
591
|
__decorate([
|
|
591
592
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
592
|
-
__metadata("design:type", sdk_1.BN)
|
|
593
|
+
__metadata("design:type", typeof (_2 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _2 : Object)
|
|
593
594
|
], SerializableOrderActionRecord.prototype, "oraclePrice", void 0);
|
|
594
595
|
__decorate([
|
|
595
596
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
596
|
-
__metadata("design:type", sdk_1.BN)
|
|
597
|
+
__metadata("design:type", typeof (_3 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _3 : Object)
|
|
597
598
|
], SerializableOrderActionRecord.prototype, "makerFee", void 0);
|
|
598
599
|
__decorate([
|
|
599
600
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
600
|
-
__metadata("design:type", sdk_1.BN)
|
|
601
|
+
__metadata("design:type", typeof (_4 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _4 : Object)
|
|
601
602
|
], SerializableOrderActionRecord.prototype, "spotFulfillmentMethodFee", void 0);
|
|
602
603
|
__decorate([
|
|
603
604
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -605,19 +606,19 @@ __decorate([
|
|
|
605
606
|
], SerializableOrderActionRecord.prototype, "bitFlags", void 0);
|
|
606
607
|
__decorate([
|
|
607
608
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
608
|
-
__metadata("design:type", sdk_1.BN)
|
|
609
|
+
__metadata("design:type", typeof (_5 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _5 : Object)
|
|
609
610
|
], SerializableOrderActionRecord.prototype, "takerExistingQuoteEntryAmount", void 0);
|
|
610
611
|
__decorate([
|
|
611
612
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
612
|
-
__metadata("design:type", sdk_1.BN)
|
|
613
|
+
__metadata("design:type", typeof (_6 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _6 : Object)
|
|
613
614
|
], SerializableOrderActionRecord.prototype, "takerExistingBaseAssetAmount", void 0);
|
|
614
615
|
__decorate([
|
|
615
616
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
616
|
-
__metadata("design:type", sdk_1.BN)
|
|
617
|
+
__metadata("design:type", typeof (_7 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _7 : Object)
|
|
617
618
|
], SerializableOrderActionRecord.prototype, "makerExistingQuoteEntryAmount", void 0);
|
|
618
619
|
__decorate([
|
|
619
620
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
620
|
-
__metadata("design:type", sdk_1.BN)
|
|
621
|
+
__metadata("design:type", typeof (_8 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _8 : Object)
|
|
621
622
|
], SerializableOrderActionRecord.prototype, "makerExistingBaseAssetAmount", void 0);
|
|
622
623
|
let UISerializableOrderActionRecord = class UISerializableOrderActionRecord extends SerializableOrderActionRecord {
|
|
623
624
|
static onDeserialized(data, instance) {
|
|
@@ -768,7 +769,7 @@ class UISerializableOrderRecordV2 {
|
|
|
768
769
|
exports.UISerializableOrderRecordV2 = UISerializableOrderRecordV2;
|
|
769
770
|
__decorate([
|
|
770
771
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
771
|
-
__metadata("design:type", sdk_1.BN)
|
|
772
|
+
__metadata("design:type", typeof (_9 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _9 : Object)
|
|
772
773
|
], UISerializableOrderRecordV2.prototype, "ts", void 0);
|
|
773
774
|
__decorate([
|
|
774
775
|
(0, cerializr_1.autoserializeAs)(String),
|
|
@@ -872,7 +873,7 @@ __decorate([
|
|
|
872
873
|
], UISerializableOrderRecordV2.prototype, "auctionEndPrice", void 0);
|
|
873
874
|
__decorate([
|
|
874
875
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
875
|
-
__metadata("design:type", sdk_1.BN)
|
|
876
|
+
__metadata("design:type", typeof (_10 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _10 : Object)
|
|
876
877
|
], UISerializableOrderRecordV2.prototype, "maxTs", void 0);
|
|
877
878
|
__decorate([
|
|
878
879
|
(0, cerializr_1.autoserializeAs)(String),
|
|
@@ -880,7 +881,7 @@ __decorate([
|
|
|
880
881
|
], UISerializableOrderRecordV2.prototype, "symbol", void 0);
|
|
881
882
|
__decorate([
|
|
882
883
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
883
|
-
__metadata("design:type", sdk_1.BN)
|
|
884
|
+
__metadata("design:type", typeof (_11 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _11 : Object)
|
|
884
885
|
], UISerializableOrderRecordV2.prototype, "lastUpdatedTs", void 0);
|
|
885
886
|
__decorate([
|
|
886
887
|
(0, cerializr_1.autoserializeUsing)(EnumSerializeAndDeserializeFns),
|
|
@@ -903,7 +904,7 @@ class UISerializableOrderActionRecordBase {
|
|
|
903
904
|
exports.UISerializableOrderActionRecordBase = UISerializableOrderActionRecordBase;
|
|
904
905
|
__decorate([
|
|
905
906
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
906
|
-
__metadata("design:type", sdk_1.BN)
|
|
907
|
+
__metadata("design:type", typeof (_12 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _12 : Object)
|
|
907
908
|
], UISerializableOrderActionRecordBase.prototype, "ts", void 0);
|
|
908
909
|
__decorate([
|
|
909
910
|
(0, cerializr_1.autoserializeAs)(String),
|
|
@@ -999,7 +1000,7 @@ __decorate([
|
|
|
999
1000
|
], UISerializableOrderActionRecordBase.prototype, "filler", void 0);
|
|
1000
1001
|
__decorate([
|
|
1001
1002
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1002
|
-
__metadata("design:type", sdk_1.BN)
|
|
1003
|
+
__metadata("design:type", typeof (_13 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _13 : Object)
|
|
1003
1004
|
], UISerializableOrderActionRecordBase.prototype, "fillRecordId", void 0);
|
|
1004
1005
|
__decorate([
|
|
1005
1006
|
(0, cerializr_1.autoserializeUsing)(PublicKeySerializeAndDeserializeFns),
|
|
@@ -1150,11 +1151,11 @@ __decorate([
|
|
|
1150
1151
|
], SerializableDepositRecord.prototype, "slot", void 0);
|
|
1151
1152
|
__decorate([
|
|
1152
1153
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1153
|
-
__metadata("design:type", sdk_1.BN)
|
|
1154
|
+
__metadata("design:type", typeof (_14 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _14 : Object)
|
|
1154
1155
|
], SerializableDepositRecord.prototype, "ts", void 0);
|
|
1155
1156
|
__decorate([
|
|
1156
1157
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1157
|
-
__metadata("design:type", sdk_1.BN)
|
|
1158
|
+
__metadata("design:type", typeof (_15 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _15 : Object)
|
|
1158
1159
|
], SerializableDepositRecord.prototype, "depositRecordId", void 0);
|
|
1159
1160
|
__decorate([
|
|
1160
1161
|
(0, cerializr_1.autoserializeUsing)(PublicKeySerializeAndDeserializeFns),
|
|
@@ -1174,27 +1175,27 @@ __decorate([
|
|
|
1174
1175
|
], SerializableDepositRecord.prototype, "marketIndex", void 0);
|
|
1175
1176
|
__decorate([
|
|
1176
1177
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1177
|
-
__metadata("design:type", sdk_1.BN)
|
|
1178
|
+
__metadata("design:type", typeof (_16 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _16 : Object)
|
|
1178
1179
|
], SerializableDepositRecord.prototype, "amount", void 0);
|
|
1179
1180
|
__decorate([
|
|
1180
1181
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1181
|
-
__metadata("design:type", sdk_1.BN)
|
|
1182
|
+
__metadata("design:type", typeof (_17 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _17 : Object)
|
|
1182
1183
|
], SerializableDepositRecord.prototype, "oraclePrice", void 0);
|
|
1183
1184
|
__decorate([
|
|
1184
1185
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1185
|
-
__metadata("design:type", sdk_1.BN)
|
|
1186
|
+
__metadata("design:type", typeof (_18 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _18 : Object)
|
|
1186
1187
|
], SerializableDepositRecord.prototype, "marketDepositBalance", void 0);
|
|
1187
1188
|
__decorate([
|
|
1188
1189
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1189
|
-
__metadata("design:type", sdk_1.BN)
|
|
1190
|
+
__metadata("design:type", typeof (_19 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _19 : Object)
|
|
1190
1191
|
], SerializableDepositRecord.prototype, "marketWithdrawBalance", void 0);
|
|
1191
1192
|
__decorate([
|
|
1192
1193
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1193
|
-
__metadata("design:type", sdk_1.BN)
|
|
1194
|
+
__metadata("design:type", typeof (_20 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _20 : Object)
|
|
1194
1195
|
], SerializableDepositRecord.prototype, "marketCumulativeDepositInterest", void 0);
|
|
1195
1196
|
__decorate([
|
|
1196
1197
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1197
|
-
__metadata("design:type", sdk_1.BN)
|
|
1198
|
+
__metadata("design:type", typeof (_21 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _21 : Object)
|
|
1198
1199
|
], SerializableDepositRecord.prototype, "marketCumulativeBorrowInterest", void 0);
|
|
1199
1200
|
__decorate([
|
|
1200
1201
|
(0, cerializr_1.autoserializeUsing)(PublicKeySerializeAndDeserializeFns),
|
|
@@ -1202,11 +1203,11 @@ __decorate([
|
|
|
1202
1203
|
], SerializableDepositRecord.prototype, "transferUser", void 0);
|
|
1203
1204
|
__decorate([
|
|
1204
1205
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1205
|
-
__metadata("design:type", sdk_1.BN)
|
|
1206
|
+
__metadata("design:type", typeof (_22 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _22 : Object)
|
|
1206
1207
|
], SerializableDepositRecord.prototype, "totalDepositsAfter", void 0);
|
|
1207
1208
|
__decorate([
|
|
1208
1209
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1209
|
-
__metadata("design:type", sdk_1.BN)
|
|
1210
|
+
__metadata("design:type", typeof (_23 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _23 : Object)
|
|
1210
1211
|
], SerializableDepositRecord.prototype, "totalWithdrawsAfter", void 0);
|
|
1211
1212
|
__decorate([
|
|
1212
1213
|
(0, cerializr_1.autoserializeUsing)(EnumSerializeAndDeserializeFns),
|
|
@@ -1291,7 +1292,7 @@ __decorate([
|
|
|
1291
1292
|
], SerializableSpotInterestRecord.prototype, "slot", void 0);
|
|
1292
1293
|
__decorate([
|
|
1293
1294
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1294
|
-
__metadata("design:type", sdk_1.BN)
|
|
1295
|
+
__metadata("design:type", typeof (_24 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _24 : Object)
|
|
1295
1296
|
], SerializableSpotInterestRecord.prototype, "ts", void 0);
|
|
1296
1297
|
__decorate([
|
|
1297
1298
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -1299,19 +1300,19 @@ __decorate([
|
|
|
1299
1300
|
], SerializableSpotInterestRecord.prototype, "marketIndex", void 0);
|
|
1300
1301
|
__decorate([
|
|
1301
1302
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1302
|
-
__metadata("design:type", sdk_1.BN)
|
|
1303
|
+
__metadata("design:type", typeof (_25 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _25 : Object)
|
|
1303
1304
|
], SerializableSpotInterestRecord.prototype, "depositBalance", void 0);
|
|
1304
1305
|
__decorate([
|
|
1305
1306
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1306
|
-
__metadata("design:type", sdk_1.BN)
|
|
1307
|
+
__metadata("design:type", typeof (_26 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _26 : Object)
|
|
1307
1308
|
], SerializableSpotInterestRecord.prototype, "cumulativeDepositInterest", void 0);
|
|
1308
1309
|
__decorate([
|
|
1309
1310
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1310
|
-
__metadata("design:type", sdk_1.BN)
|
|
1311
|
+
__metadata("design:type", typeof (_27 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _27 : Object)
|
|
1311
1312
|
], SerializableSpotInterestRecord.prototype, "borrowBalance", void 0);
|
|
1312
1313
|
__decorate([
|
|
1313
1314
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1314
|
-
__metadata("design:type", sdk_1.BN)
|
|
1315
|
+
__metadata("design:type", typeof (_28 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _28 : Object)
|
|
1315
1316
|
], SerializableSpotInterestRecord.prototype, "cumulativeBorrowInterest", void 0);
|
|
1316
1317
|
__decorate([
|
|
1317
1318
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -1346,11 +1347,11 @@ __decorate([
|
|
|
1346
1347
|
], SerializableCurveRecord.prototype, "slot", void 0);
|
|
1347
1348
|
__decorate([
|
|
1348
1349
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1349
|
-
__metadata("design:type", sdk_1.BN)
|
|
1350
|
+
__metadata("design:type", typeof (_29 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _29 : Object)
|
|
1350
1351
|
], SerializableCurveRecord.prototype, "ts", void 0);
|
|
1351
1352
|
__decorate([
|
|
1352
1353
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1353
|
-
__metadata("design:type", sdk_1.BN)
|
|
1354
|
+
__metadata("design:type", typeof (_30 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _30 : Object)
|
|
1354
1355
|
], SerializableCurveRecord.prototype, "recordId", void 0);
|
|
1355
1356
|
__decorate([
|
|
1356
1357
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -1358,71 +1359,71 @@ __decorate([
|
|
|
1358
1359
|
], SerializableCurveRecord.prototype, "marketIndex", void 0);
|
|
1359
1360
|
__decorate([
|
|
1360
1361
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1361
|
-
__metadata("design:type", sdk_1.BN)
|
|
1362
|
+
__metadata("design:type", typeof (_31 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _31 : Object)
|
|
1362
1363
|
], SerializableCurveRecord.prototype, "pegMultiplierBefore", void 0);
|
|
1363
1364
|
__decorate([
|
|
1364
1365
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1365
|
-
__metadata("design:type", sdk_1.BN)
|
|
1366
|
+
__metadata("design:type", typeof (_32 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _32 : Object)
|
|
1366
1367
|
], SerializableCurveRecord.prototype, "baseAssetReserveBefore", void 0);
|
|
1367
1368
|
__decorate([
|
|
1368
1369
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1369
|
-
__metadata("design:type", sdk_1.BN)
|
|
1370
|
+
__metadata("design:type", typeof (_33 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _33 : Object)
|
|
1370
1371
|
], SerializableCurveRecord.prototype, "quoteAssetReserveBefore", void 0);
|
|
1371
1372
|
__decorate([
|
|
1372
1373
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1373
|
-
__metadata("design:type", sdk_1.BN)
|
|
1374
|
+
__metadata("design:type", typeof (_34 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _34 : Object)
|
|
1374
1375
|
], SerializableCurveRecord.prototype, "sqrtKBefore", void 0);
|
|
1375
1376
|
__decorate([
|
|
1376
1377
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1377
|
-
__metadata("design:type", sdk_1.BN)
|
|
1378
|
+
__metadata("design:type", typeof (_35 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _35 : Object)
|
|
1378
1379
|
], SerializableCurveRecord.prototype, "pegMultiplierAfter", void 0);
|
|
1379
1380
|
__decorate([
|
|
1380
1381
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1381
|
-
__metadata("design:type", sdk_1.BN)
|
|
1382
|
+
__metadata("design:type", typeof (_36 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _36 : Object)
|
|
1382
1383
|
], SerializableCurveRecord.prototype, "baseAssetReserveAfter", void 0);
|
|
1383
1384
|
__decorate([
|
|
1384
1385
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1385
|
-
__metadata("design:type", sdk_1.BN)
|
|
1386
|
+
__metadata("design:type", typeof (_37 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _37 : Object)
|
|
1386
1387
|
], SerializableCurveRecord.prototype, "quoteAssetReserveAfter", void 0);
|
|
1387
1388
|
__decorate([
|
|
1388
1389
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1389
|
-
__metadata("design:type", sdk_1.BN)
|
|
1390
|
+
__metadata("design:type", typeof (_38 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _38 : Object)
|
|
1390
1391
|
], SerializableCurveRecord.prototype, "sqrtKAfter", void 0);
|
|
1391
1392
|
__decorate([
|
|
1392
1393
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1393
|
-
__metadata("design:type", sdk_1.BN)
|
|
1394
|
+
__metadata("design:type", typeof (_39 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _39 : Object)
|
|
1394
1395
|
], SerializableCurveRecord.prototype, "baseAssetAmountLong", void 0);
|
|
1395
1396
|
__decorate([
|
|
1396
1397
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1397
|
-
__metadata("design:type", sdk_1.BN)
|
|
1398
|
+
__metadata("design:type", typeof (_40 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _40 : Object)
|
|
1398
1399
|
], SerializableCurveRecord.prototype, "baseAssetAmountShort", void 0);
|
|
1399
1400
|
__decorate([
|
|
1400
1401
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1401
|
-
__metadata("design:type", sdk_1.BN)
|
|
1402
|
+
__metadata("design:type", typeof (_41 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _41 : Object)
|
|
1402
1403
|
], SerializableCurveRecord.prototype, "baseAssetAmountWithAmm", void 0);
|
|
1403
1404
|
__decorate([
|
|
1404
1405
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1405
|
-
__metadata("design:type", sdk_1.BN)
|
|
1406
|
+
__metadata("design:type", typeof (_42 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _42 : Object)
|
|
1406
1407
|
], SerializableCurveRecord.prototype, "totalFee", void 0);
|
|
1407
1408
|
__decorate([
|
|
1408
1409
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1409
|
-
__metadata("design:type", sdk_1.BN)
|
|
1410
|
+
__metadata("design:type", typeof (_43 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _43 : Object)
|
|
1410
1411
|
], SerializableCurveRecord.prototype, "totalFeeMinusDistributions", void 0);
|
|
1411
1412
|
__decorate([
|
|
1412
1413
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1413
|
-
__metadata("design:type", sdk_1.BN)
|
|
1414
|
+
__metadata("design:type", typeof (_44 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _44 : Object)
|
|
1414
1415
|
], SerializableCurveRecord.prototype, "adjustmentCost", void 0);
|
|
1415
1416
|
__decorate([
|
|
1416
1417
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1417
|
-
__metadata("design:type", sdk_1.BN)
|
|
1418
|
+
__metadata("design:type", typeof (_45 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _45 : Object)
|
|
1418
1419
|
], SerializableCurveRecord.prototype, "numberOfUsers", void 0);
|
|
1419
1420
|
__decorate([
|
|
1420
1421
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1421
|
-
__metadata("design:type", sdk_1.BN)
|
|
1422
|
+
__metadata("design:type", typeof (_46 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _46 : Object)
|
|
1422
1423
|
], SerializableCurveRecord.prototype, "oraclePrice", void 0);
|
|
1423
1424
|
__decorate([
|
|
1424
1425
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1425
|
-
__metadata("design:type", sdk_1.BN)
|
|
1426
|
+
__metadata("design:type", typeof (_47 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _47 : Object)
|
|
1426
1427
|
], SerializableCurveRecord.prototype, "fillRecord", void 0);
|
|
1427
1428
|
class SerializableSettlePnlRecord {
|
|
1428
1429
|
}
|
|
@@ -1449,7 +1450,7 @@ __decorate([
|
|
|
1449
1450
|
], SerializableSettlePnlRecord.prototype, "user", void 0);
|
|
1450
1451
|
__decorate([
|
|
1451
1452
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1452
|
-
__metadata("design:type", sdk_1.BN)
|
|
1453
|
+
__metadata("design:type", typeof (_48 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _48 : Object)
|
|
1453
1454
|
], SerializableSettlePnlRecord.prototype, "ts", void 0);
|
|
1454
1455
|
__decorate([
|
|
1455
1456
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -1457,27 +1458,27 @@ __decorate([
|
|
|
1457
1458
|
], SerializableSettlePnlRecord.prototype, "marketIndex", void 0);
|
|
1458
1459
|
__decorate([
|
|
1459
1460
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1460
|
-
__metadata("design:type", sdk_1.BN)
|
|
1461
|
+
__metadata("design:type", typeof (_49 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _49 : Object)
|
|
1461
1462
|
], SerializableSettlePnlRecord.prototype, "pnl", void 0);
|
|
1462
1463
|
__decorate([
|
|
1463
1464
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1464
|
-
__metadata("design:type", sdk_1.BN)
|
|
1465
|
+
__metadata("design:type", typeof (_50 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _50 : Object)
|
|
1465
1466
|
], SerializableSettlePnlRecord.prototype, "baseAssetAmount", void 0);
|
|
1466
1467
|
__decorate([
|
|
1467
1468
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1468
|
-
__metadata("design:type", sdk_1.BN)
|
|
1469
|
+
__metadata("design:type", typeof (_51 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _51 : Object)
|
|
1469
1470
|
], SerializableSettlePnlRecord.prototype, "quoteAssetAmountAfter", void 0);
|
|
1470
1471
|
__decorate([
|
|
1471
1472
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1472
|
-
__metadata("design:type", sdk_1.BN)
|
|
1473
|
+
__metadata("design:type", typeof (_52 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _52 : Object)
|
|
1473
1474
|
], SerializableSettlePnlRecord.prototype, "quoteEntryAmount", void 0);
|
|
1474
1475
|
__decorate([
|
|
1475
1476
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1476
|
-
__metadata("design:type", sdk_1.BN)
|
|
1477
|
+
__metadata("design:type", typeof (_53 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _53 : Object)
|
|
1477
1478
|
], SerializableSettlePnlRecord.prototype, "settlePrice", void 0);
|
|
1478
1479
|
__decorate([
|
|
1479
1480
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1480
|
-
__metadata("design:type", sdk_1.BN)
|
|
1481
|
+
__metadata("design:type", typeof (_54 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _54 : Object)
|
|
1481
1482
|
], SerializableSettlePnlRecord.prototype, "oraclePrice", void 0);
|
|
1482
1483
|
__decorate([
|
|
1483
1484
|
(0, cerializr_1.autoserializeUsing)(EnumSerializeAndDeserializeFns),
|
|
@@ -1537,11 +1538,11 @@ __decorate([
|
|
|
1537
1538
|
], SerializableFundingRateRecord.prototype, "slot", void 0);
|
|
1538
1539
|
__decorate([
|
|
1539
1540
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1540
|
-
__metadata("design:type", sdk_1.BN)
|
|
1541
|
+
__metadata("design:type", typeof (_55 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _55 : Object)
|
|
1541
1542
|
], SerializableFundingRateRecord.prototype, "ts", void 0);
|
|
1542
1543
|
__decorate([
|
|
1543
1544
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1544
|
-
__metadata("design:type", sdk_1.BN)
|
|
1545
|
+
__metadata("design:type", typeof (_56 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _56 : Object)
|
|
1545
1546
|
], SerializableFundingRateRecord.prototype, "recordId", void 0);
|
|
1546
1547
|
__decorate([
|
|
1547
1548
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -1549,43 +1550,43 @@ __decorate([
|
|
|
1549
1550
|
], SerializableFundingRateRecord.prototype, "marketIndex", void 0);
|
|
1550
1551
|
__decorate([
|
|
1551
1552
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1552
|
-
__metadata("design:type", sdk_1.BN)
|
|
1553
|
+
__metadata("design:type", typeof (_57 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _57 : Object)
|
|
1553
1554
|
], SerializableFundingRateRecord.prototype, "fundingRate", void 0);
|
|
1554
1555
|
__decorate([
|
|
1555
1556
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1556
|
-
__metadata("design:type", sdk_1.BN)
|
|
1557
|
+
__metadata("design:type", typeof (_58 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _58 : Object)
|
|
1557
1558
|
], SerializableFundingRateRecord.prototype, "cumulativeFundingRateLong", void 0);
|
|
1558
1559
|
__decorate([
|
|
1559
1560
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1560
|
-
__metadata("design:type", sdk_1.BN)
|
|
1561
|
+
__metadata("design:type", typeof (_59 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _59 : Object)
|
|
1561
1562
|
], SerializableFundingRateRecord.prototype, "cumulativeFundingRateShort", void 0);
|
|
1562
1563
|
__decorate([
|
|
1563
1564
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1564
|
-
__metadata("design:type", sdk_1.BN)
|
|
1565
|
+
__metadata("design:type", typeof (_60 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _60 : Object)
|
|
1565
1566
|
], SerializableFundingRateRecord.prototype, "oraclePriceTwap", void 0);
|
|
1566
1567
|
__decorate([
|
|
1567
1568
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1568
|
-
__metadata("design:type", sdk_1.BN)
|
|
1569
|
+
__metadata("design:type", typeof (_61 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _61 : Object)
|
|
1569
1570
|
], SerializableFundingRateRecord.prototype, "markPriceTwap", void 0);
|
|
1570
1571
|
__decorate([
|
|
1571
1572
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1572
|
-
__metadata("design:type", sdk_1.BN)
|
|
1573
|
+
__metadata("design:type", typeof (_62 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _62 : Object)
|
|
1573
1574
|
], SerializableFundingRateRecord.prototype, "fundingRateLong", void 0);
|
|
1574
1575
|
__decorate([
|
|
1575
1576
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1576
|
-
__metadata("design:type", sdk_1.BN)
|
|
1577
|
+
__metadata("design:type", typeof (_63 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _63 : Object)
|
|
1577
1578
|
], SerializableFundingRateRecord.prototype, "fundingRateShort", void 0);
|
|
1578
1579
|
__decorate([
|
|
1579
1580
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1580
|
-
__metadata("design:type", sdk_1.BN)
|
|
1581
|
+
__metadata("design:type", typeof (_64 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _64 : Object)
|
|
1581
1582
|
], SerializableFundingRateRecord.prototype, "periodRevenue", void 0);
|
|
1582
1583
|
__decorate([
|
|
1583
1584
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1584
|
-
__metadata("design:type", sdk_1.BN)
|
|
1585
|
+
__metadata("design:type", typeof (_65 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _65 : Object)
|
|
1585
1586
|
], SerializableFundingRateRecord.prototype, "baseAssetAmountWithAmm", void 0);
|
|
1586
1587
|
__decorate([
|
|
1587
1588
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1588
|
-
__metadata("design:type", sdk_1.BN)
|
|
1589
|
+
__metadata("design:type", typeof (_66 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _66 : Object)
|
|
1589
1590
|
], SerializableFundingRateRecord.prototype, "baseAssetAmountWithUnsettledLp", void 0);
|
|
1590
1591
|
let UISerializableFundingRateRecord = class UISerializableFundingRateRecord extends SerializableFundingRateRecord {
|
|
1591
1592
|
};
|
|
@@ -1674,7 +1675,7 @@ __decorate([
|
|
|
1674
1675
|
], SerializableFundingPaymentRecord.prototype, "slot", void 0);
|
|
1675
1676
|
__decorate([
|
|
1676
1677
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1677
|
-
__metadata("design:type", sdk_1.BN)
|
|
1678
|
+
__metadata("design:type", typeof (_67 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _67 : Object)
|
|
1678
1679
|
], SerializableFundingPaymentRecord.prototype, "ts", void 0);
|
|
1679
1680
|
__decorate([
|
|
1680
1681
|
(0, cerializr_1.autoserializeUsing)(PublicKeySerializeAndDeserializeFns),
|
|
@@ -1690,23 +1691,23 @@ __decorate([
|
|
|
1690
1691
|
], SerializableFundingPaymentRecord.prototype, "marketIndex", void 0);
|
|
1691
1692
|
__decorate([
|
|
1692
1693
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1693
|
-
__metadata("design:type", sdk_1.BN)
|
|
1694
|
+
__metadata("design:type", typeof (_68 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _68 : Object)
|
|
1694
1695
|
], SerializableFundingPaymentRecord.prototype, "fundingPayment", void 0);
|
|
1695
1696
|
__decorate([
|
|
1696
1697
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1697
|
-
__metadata("design:type", sdk_1.BN)
|
|
1698
|
+
__metadata("design:type", typeof (_69 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _69 : Object)
|
|
1698
1699
|
], SerializableFundingPaymentRecord.prototype, "baseAssetAmount", void 0);
|
|
1699
1700
|
__decorate([
|
|
1700
1701
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1701
|
-
__metadata("design:type", sdk_1.BN)
|
|
1702
|
+
__metadata("design:type", typeof (_70 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _70 : Object)
|
|
1702
1703
|
], SerializableFundingPaymentRecord.prototype, "userLastCumulativeFunding", void 0);
|
|
1703
1704
|
__decorate([
|
|
1704
1705
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1705
|
-
__metadata("design:type", sdk_1.BN)
|
|
1706
|
+
__metadata("design:type", typeof (_71 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _71 : Object)
|
|
1706
1707
|
], SerializableFundingPaymentRecord.prototype, "ammCumulativeFundingLong", void 0);
|
|
1707
1708
|
__decorate([
|
|
1708
1709
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1709
|
-
__metadata("design:type", sdk_1.BN)
|
|
1710
|
+
__metadata("design:type", typeof (_72 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _72 : Object)
|
|
1710
1711
|
], SerializableFundingPaymentRecord.prototype, "ammCumulativeFundingShort", void 0);
|
|
1711
1712
|
let UISerializableFundingPaymentRecord = class UISerializableFundingPaymentRecord extends SerializableFundingPaymentRecord {
|
|
1712
1713
|
};
|
|
@@ -1759,51 +1760,51 @@ __decorate([
|
|
|
1759
1760
|
], SerializableLiquidatePerpRecord.prototype, "orderIds", void 0);
|
|
1760
1761
|
__decorate([
|
|
1761
1762
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1762
|
-
__metadata("design:type", sdk_1.BN)
|
|
1763
|
+
__metadata("design:type", typeof (_73 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _73 : Object)
|
|
1763
1764
|
], SerializableLiquidatePerpRecord.prototype, "oraclePrice", void 0);
|
|
1764
1765
|
__decorate([
|
|
1765
1766
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1766
|
-
__metadata("design:type", sdk_1.BN)
|
|
1767
|
+
__metadata("design:type", typeof (_74 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _74 : Object)
|
|
1767
1768
|
], SerializableLiquidatePerpRecord.prototype, "baseAssetAmount", void 0);
|
|
1768
1769
|
__decorate([
|
|
1769
1770
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1770
|
-
__metadata("design:type", sdk_1.BN)
|
|
1771
|
+
__metadata("design:type", typeof (_75 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _75 : Object)
|
|
1771
1772
|
], SerializableLiquidatePerpRecord.prototype, "quoteAssetAmount", void 0);
|
|
1772
1773
|
__decorate([
|
|
1773
1774
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1774
|
-
__metadata("design:type", sdk_1.BN)
|
|
1775
|
+
__metadata("design:type", typeof (_76 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _76 : Object)
|
|
1775
1776
|
], SerializableLiquidatePerpRecord.prototype, "userPnl", void 0);
|
|
1776
1777
|
__decorate([
|
|
1777
1778
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1778
|
-
__metadata("design:type", sdk_1.BN)
|
|
1779
|
+
__metadata("design:type", typeof (_77 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _77 : Object)
|
|
1779
1780
|
], SerializableLiquidatePerpRecord.prototype, "liquidatorPnl", void 0);
|
|
1780
1781
|
__decorate([
|
|
1781
1782
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1782
|
-
__metadata("design:type", sdk_1.BN)
|
|
1783
|
+
__metadata("design:type", typeof (_78 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _78 : Object)
|
|
1783
1784
|
], SerializableLiquidatePerpRecord.prototype, "canceledOrdersFee", void 0);
|
|
1784
1785
|
__decorate([
|
|
1785
1786
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1786
|
-
__metadata("design:type", sdk_1.BN)
|
|
1787
|
+
__metadata("design:type", typeof (_79 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _79 : Object)
|
|
1787
1788
|
], SerializableLiquidatePerpRecord.prototype, "userOrderId", void 0);
|
|
1788
1789
|
__decorate([
|
|
1789
1790
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1790
|
-
__metadata("design:type", sdk_1.BN)
|
|
1791
|
+
__metadata("design:type", typeof (_80 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _80 : Object)
|
|
1791
1792
|
], SerializableLiquidatePerpRecord.prototype, "liquidatorOrderId", void 0);
|
|
1792
1793
|
__decorate([
|
|
1793
1794
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1794
|
-
__metadata("design:type", sdk_1.BN)
|
|
1795
|
+
__metadata("design:type", typeof (_81 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _81 : Object)
|
|
1795
1796
|
], SerializableLiquidatePerpRecord.prototype, "fillRecordId", void 0);
|
|
1796
1797
|
__decorate([
|
|
1797
1798
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1798
|
-
__metadata("design:type", sdk_1.BN)
|
|
1799
|
+
__metadata("design:type", typeof (_82 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _82 : Object)
|
|
1799
1800
|
], SerializableLiquidatePerpRecord.prototype, "lpShares", void 0);
|
|
1800
1801
|
__decorate([
|
|
1801
1802
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1802
|
-
__metadata("design:type", sdk_1.BN)
|
|
1803
|
+
__metadata("design:type", typeof (_83 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _83 : Object)
|
|
1803
1804
|
], SerializableLiquidatePerpRecord.prototype, "liquidatorFee", void 0);
|
|
1804
1805
|
__decorate([
|
|
1805
1806
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1806
|
-
__metadata("design:type", sdk_1.BN)
|
|
1807
|
+
__metadata("design:type", typeof (_84 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _84 : Object)
|
|
1807
1808
|
], SerializableLiquidatePerpRecord.prototype, "ifFee", void 0);
|
|
1808
1809
|
let UISerializableLiquidatePerpRecord = class UISerializableLiquidatePerpRecord extends SerializableLiquidatePerpRecord {
|
|
1809
1810
|
};
|
|
@@ -1872,11 +1873,11 @@ __decorate([
|
|
|
1872
1873
|
], SerializableLiquidateSpotRecord.prototype, "assetMarketIndex", void 0);
|
|
1873
1874
|
__decorate([
|
|
1874
1875
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1875
|
-
__metadata("design:type", sdk_1.BN)
|
|
1876
|
+
__metadata("design:type", typeof (_85 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _85 : Object)
|
|
1876
1877
|
], SerializableLiquidateSpotRecord.prototype, "assetPrice", void 0);
|
|
1877
1878
|
__decorate([
|
|
1878
1879
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1879
|
-
__metadata("design:type", sdk_1.BN)
|
|
1880
|
+
__metadata("design:type", typeof (_86 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _86 : Object)
|
|
1880
1881
|
], SerializableLiquidateSpotRecord.prototype, "assetTransfer", void 0);
|
|
1881
1882
|
__decorate([
|
|
1882
1883
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -1884,15 +1885,15 @@ __decorate([
|
|
|
1884
1885
|
], SerializableLiquidateSpotRecord.prototype, "liabilityMarketIndex", void 0);
|
|
1885
1886
|
__decorate([
|
|
1886
1887
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1887
|
-
__metadata("design:type", sdk_1.BN)
|
|
1888
|
+
__metadata("design:type", typeof (_87 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _87 : Object)
|
|
1888
1889
|
], SerializableLiquidateSpotRecord.prototype, "liabilityPrice", void 0);
|
|
1889
1890
|
__decorate([
|
|
1890
1891
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1891
|
-
__metadata("design:type", sdk_1.BN)
|
|
1892
|
+
__metadata("design:type", typeof (_88 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _88 : Object)
|
|
1892
1893
|
], SerializableLiquidateSpotRecord.prototype, "liabilityTransfer", void 0);
|
|
1893
1894
|
__decorate([
|
|
1894
1895
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1895
|
-
__metadata("design:type", sdk_1.BN)
|
|
1896
|
+
__metadata("design:type", typeof (_89 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _89 : Object)
|
|
1896
1897
|
], SerializableLiquidateSpotRecord.prototype, "ifFee", void 0);
|
|
1897
1898
|
let UISerializableLiquidateSpotRecord = class UISerializableLiquidateSpotRecord extends SerializableLiquidateSpotRecord {
|
|
1898
1899
|
static onDeserialized(data, instance) {
|
|
@@ -1936,11 +1937,11 @@ class SerializableLiquidateBorrowForPerpPnlRecord {
|
|
|
1936
1937
|
exports.SerializableLiquidateBorrowForPerpPnlRecord = SerializableLiquidateBorrowForPerpPnlRecord;
|
|
1937
1938
|
__decorate([
|
|
1938
1939
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1939
|
-
__metadata("design:type", sdk_1.BN)
|
|
1940
|
+
__metadata("design:type", typeof (_90 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _90 : Object)
|
|
1940
1941
|
], SerializableLiquidateBorrowForPerpPnlRecord.prototype, "marketOraclePrice", void 0);
|
|
1941
1942
|
__decorate([
|
|
1942
1943
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1943
|
-
__metadata("design:type", sdk_1.BN)
|
|
1944
|
+
__metadata("design:type", typeof (_91 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _91 : Object)
|
|
1944
1945
|
], SerializableLiquidateBorrowForPerpPnlRecord.prototype, "pnlTransfer", void 0);
|
|
1945
1946
|
__decorate([
|
|
1946
1947
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -1948,11 +1949,11 @@ __decorate([
|
|
|
1948
1949
|
], SerializableLiquidateBorrowForPerpPnlRecord.prototype, "liabilityMarketIndex", void 0);
|
|
1949
1950
|
__decorate([
|
|
1950
1951
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1951
|
-
__metadata("design:type", sdk_1.BN)
|
|
1952
|
+
__metadata("design:type", typeof (_92 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _92 : Object)
|
|
1952
1953
|
], SerializableLiquidateBorrowForPerpPnlRecord.prototype, "liabilityPrice", void 0);
|
|
1953
1954
|
__decorate([
|
|
1954
1955
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
1955
|
-
__metadata("design:type", sdk_1.BN)
|
|
1956
|
+
__metadata("design:type", typeof (_93 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _93 : Object)
|
|
1956
1957
|
], SerializableLiquidateBorrowForPerpPnlRecord.prototype, "liabilityTransfer", void 0);
|
|
1957
1958
|
__decorate([
|
|
1958
1959
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -1998,11 +1999,11 @@ class SerializableLiquidatePerpPnlForDepositRecord {
|
|
|
1998
1999
|
exports.SerializableLiquidatePerpPnlForDepositRecord = SerializableLiquidatePerpPnlForDepositRecord;
|
|
1999
2000
|
__decorate([
|
|
2000
2001
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2001
|
-
__metadata("design:type", sdk_1.BN)
|
|
2002
|
+
__metadata("design:type", typeof (_94 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _94 : Object)
|
|
2002
2003
|
], SerializableLiquidatePerpPnlForDepositRecord.prototype, "marketOraclePrice", void 0);
|
|
2003
2004
|
__decorate([
|
|
2004
2005
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2005
|
-
__metadata("design:type", sdk_1.BN)
|
|
2006
|
+
__metadata("design:type", typeof (_95 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _95 : Object)
|
|
2006
2007
|
], SerializableLiquidatePerpPnlForDepositRecord.prototype, "pnlTransfer", void 0);
|
|
2007
2008
|
__decorate([
|
|
2008
2009
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -2010,11 +2011,11 @@ __decorate([
|
|
|
2010
2011
|
], SerializableLiquidatePerpPnlForDepositRecord.prototype, "assetMarketIndex", void 0);
|
|
2011
2012
|
__decorate([
|
|
2012
2013
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2013
|
-
__metadata("design:type", sdk_1.BN)
|
|
2014
|
+
__metadata("design:type", typeof (_96 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _96 : Object)
|
|
2014
2015
|
], SerializableLiquidatePerpPnlForDepositRecord.prototype, "assetPrice", void 0);
|
|
2015
2016
|
__decorate([
|
|
2016
2017
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2017
|
-
__metadata("design:type", sdk_1.BN)
|
|
2018
|
+
__metadata("design:type", typeof (_97 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _97 : Object)
|
|
2018
2019
|
], SerializableLiquidatePerpPnlForDepositRecord.prototype, "assetTransfer", void 0);
|
|
2019
2020
|
__decorate([
|
|
2020
2021
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -2064,15 +2065,15 @@ __decorate([
|
|
|
2064
2065
|
], SerializablePerpBankrupcyRecord.prototype, "marketIndex", void 0);
|
|
2065
2066
|
__decorate([
|
|
2066
2067
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2067
|
-
__metadata("design:type", sdk_1.BN)
|
|
2068
|
+
__metadata("design:type", typeof (_98 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _98 : Object)
|
|
2068
2069
|
], SerializablePerpBankrupcyRecord.prototype, "pnl", void 0);
|
|
2069
2070
|
__decorate([
|
|
2070
2071
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2071
|
-
__metadata("design:type", sdk_1.BN)
|
|
2072
|
+
__metadata("design:type", typeof (_99 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _99 : Object)
|
|
2072
2073
|
], SerializablePerpBankrupcyRecord.prototype, "cumulativeFundingRateDelta", void 0);
|
|
2073
2074
|
__decorate([
|
|
2074
2075
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2075
|
-
__metadata("design:type", sdk_1.BN)
|
|
2076
|
+
__metadata("design:type", typeof (_100 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _100 : Object)
|
|
2076
2077
|
], SerializablePerpBankrupcyRecord.prototype, "ifPayment", void 0);
|
|
2077
2078
|
__decorate([
|
|
2078
2079
|
(0, cerializr_1.autoserializeUsing)(PublicKeySerializeAndDeserializeFns),
|
|
@@ -2080,7 +2081,7 @@ __decorate([
|
|
|
2080
2081
|
], SerializablePerpBankrupcyRecord.prototype, "clawbackUser", void 0);
|
|
2081
2082
|
__decorate([
|
|
2082
2083
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2083
|
-
__metadata("design:type", sdk_1.BN)
|
|
2084
|
+
__metadata("design:type", typeof (_101 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _101 : Object)
|
|
2084
2085
|
], SerializablePerpBankrupcyRecord.prototype, "clawbackUserPayment", void 0);
|
|
2085
2086
|
class UISerializablePerpBankrupcyRecord extends SerializablePerpBankrupcyRecord {
|
|
2086
2087
|
}
|
|
@@ -2101,7 +2102,7 @@ __decorate([
|
|
|
2101
2102
|
], UISerializablePerpBankrupcyRecord.prototype, "ifPayment", void 0);
|
|
2102
2103
|
__decorate([
|
|
2103
2104
|
(0, cerializr_1.autoserializeUsing)(QuoteBigNumSerializeAndDeserializeFns),
|
|
2104
|
-
__metadata("design:type", sdk_1.BN)
|
|
2105
|
+
__metadata("design:type", typeof (_102 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _102 : Object)
|
|
2105
2106
|
], UISerializablePerpBankrupcyRecord.prototype, "clawbackUserPayment", void 0);
|
|
2106
2107
|
class SerializableSpotBankruptcyRecord {
|
|
2107
2108
|
}
|
|
@@ -2112,15 +2113,15 @@ __decorate([
|
|
|
2112
2113
|
], SerializableSpotBankruptcyRecord.prototype, "marketIndex", void 0);
|
|
2113
2114
|
__decorate([
|
|
2114
2115
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2115
|
-
__metadata("design:type", sdk_1.BN)
|
|
2116
|
+
__metadata("design:type", typeof (_103 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _103 : Object)
|
|
2116
2117
|
], SerializableSpotBankruptcyRecord.prototype, "borrowAmount", void 0);
|
|
2117
2118
|
__decorate([
|
|
2118
2119
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2119
|
-
__metadata("design:type", sdk_1.BN)
|
|
2120
|
+
__metadata("design:type", typeof (_104 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _104 : Object)
|
|
2120
2121
|
], SerializableSpotBankruptcyRecord.prototype, "cumulativeDepositInterestDelta", void 0);
|
|
2121
2122
|
__decorate([
|
|
2122
2123
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2123
|
-
__metadata("design:type", sdk_1.BN)
|
|
2124
|
+
__metadata("design:type", typeof (_105 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _105 : Object)
|
|
2124
2125
|
], SerializableSpotBankruptcyRecord.prototype, "ifPayment", void 0);
|
|
2125
2126
|
class UISerializableSpotBankruptcyRecord extends SerializableSpotBankruptcyRecord {
|
|
2126
2127
|
static onDeserialized(data, instance) {
|
|
@@ -2167,7 +2168,7 @@ __decorate([
|
|
|
2167
2168
|
], SerializableLiquidationRecord.prototype, "slot", void 0);
|
|
2168
2169
|
__decorate([
|
|
2169
2170
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2170
|
-
__metadata("design:type", sdk_1.BN)
|
|
2171
|
+
__metadata("design:type", typeof (_106 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _106 : Object)
|
|
2171
2172
|
], SerializableLiquidationRecord.prototype, "ts", void 0);
|
|
2172
2173
|
__decorate([
|
|
2173
2174
|
(0, cerializr_1.autoserializeUsing)(PublicKeySerializeAndDeserializeFns),
|
|
@@ -2179,7 +2180,7 @@ __decorate([
|
|
|
2179
2180
|
], SerializableLiquidationRecord.prototype, "liquidator", void 0);
|
|
2180
2181
|
__decorate([
|
|
2181
2182
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2182
|
-
__metadata("design:type", sdk_1.BN)
|
|
2183
|
+
__metadata("design:type", typeof (_107 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _107 : Object)
|
|
2183
2184
|
], SerializableLiquidationRecord.prototype, "totalCollateral", void 0);
|
|
2184
2185
|
__decorate([
|
|
2185
2186
|
(0, cerializr_1.autoserializeUsing)(EnumSerializeAndDeserializeFns),
|
|
@@ -2187,7 +2188,7 @@ __decorate([
|
|
|
2187
2188
|
], SerializableLiquidationRecord.prototype, "liquidationType", void 0);
|
|
2188
2189
|
__decorate([
|
|
2189
2190
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2190
|
-
__metadata("design:type", sdk_1.BN)
|
|
2191
|
+
__metadata("design:type", typeof (_108 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _108 : Object)
|
|
2191
2192
|
], SerializableLiquidationRecord.prototype, "marginRequirement", void 0);
|
|
2192
2193
|
__decorate([
|
|
2193
2194
|
(0, cerializr_1.autoserializeAs)(SerializableLiquidatePerpRecord),
|
|
@@ -2219,7 +2220,7 @@ __decorate([
|
|
|
2219
2220
|
], SerializableLiquidationRecord.prototype, "canceledOrderIds", void 0);
|
|
2220
2221
|
__decorate([
|
|
2221
2222
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2222
|
-
__metadata("design:type", sdk_1.BN)
|
|
2223
|
+
__metadata("design:type", typeof (_109 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _109 : Object)
|
|
2223
2224
|
], SerializableLiquidationRecord.prototype, "marginFreed", void 0);
|
|
2224
2225
|
__decorate([
|
|
2225
2226
|
(0, cerializr_1.autoserializeAs)(Boolean),
|
|
@@ -2293,7 +2294,7 @@ class UISerializableLiquidationRecordV2 {
|
|
|
2293
2294
|
exports.UISerializableLiquidationRecordV2 = UISerializableLiquidationRecordV2;
|
|
2294
2295
|
__decorate([
|
|
2295
2296
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2296
|
-
__metadata("design:type", sdk_1.BN)
|
|
2297
|
+
__metadata("design:type", typeof (_110 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _110 : Object)
|
|
2297
2298
|
], UISerializableLiquidationRecordV2.prototype, "ts", void 0);
|
|
2298
2299
|
__decorate([
|
|
2299
2300
|
(0, cerializr_1.autoserializeAs)(String),
|
|
@@ -2329,7 +2330,7 @@ __decorate([
|
|
|
2329
2330
|
], UISerializableLiquidationRecordV2.prototype, "totalCollateral", void 0);
|
|
2330
2331
|
__decorate([
|
|
2331
2332
|
(0, cerializr_1.autoserializeUsing)(QuoteBigNumSerializeAndDeserializeFns),
|
|
2332
|
-
__metadata("design:type", sdk_1.BN)
|
|
2333
|
+
__metadata("design:type", typeof (_111 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _111 : Object)
|
|
2333
2334
|
], UISerializableLiquidationRecordV2.prototype, "marginFreed", void 0);
|
|
2334
2335
|
__decorate([
|
|
2335
2336
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -2365,15 +2366,15 @@ __decorate([
|
|
|
2365
2366
|
], UISerializableLiquidationRecordV2.prototype, "liquidatePerp_lpShares", void 0);
|
|
2366
2367
|
__decorate([
|
|
2367
2368
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2368
|
-
__metadata("design:type", sdk_1.BN)
|
|
2369
|
+
__metadata("design:type", typeof (_112 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _112 : Object)
|
|
2369
2370
|
], UISerializableLiquidationRecordV2.prototype, "liquidatePerp_fillRecordId", void 0);
|
|
2370
2371
|
__decorate([
|
|
2371
2372
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2372
|
-
__metadata("design:type", sdk_1.BN)
|
|
2373
|
+
__metadata("design:type", typeof (_113 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _113 : Object)
|
|
2373
2374
|
], UISerializableLiquidationRecordV2.prototype, "liquidatePerp_userOrderId", void 0);
|
|
2374
2375
|
__decorate([
|
|
2375
2376
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2376
|
-
__metadata("design:type", sdk_1.BN)
|
|
2377
|
+
__metadata("design:type", typeof (_114 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _114 : Object)
|
|
2377
2378
|
], UISerializableLiquidationRecordV2.prototype, "liquidatePerp_liquidatorOrderId", void 0);
|
|
2378
2379
|
__decorate([
|
|
2379
2380
|
(0, cerializr_1.autoserializeUsing)(QuoteBigNumSerializeAndDeserializeFns),
|
|
@@ -2383,6 +2384,22 @@ __decorate([
|
|
|
2383
2384
|
(0, cerializr_1.autoserializeUsing)(QuoteBigNumSerializeAndDeserializeFns),
|
|
2384
2385
|
__metadata("design:type", sdk_1.BigNum)
|
|
2385
2386
|
], UISerializableLiquidationRecordV2.prototype, "liquidatePerp_ifFee", void 0);
|
|
2387
|
+
__decorate([
|
|
2388
|
+
(0, cerializr_1.autoserializeUsing)(BNArraySerializeAndDeserializeFns),
|
|
2389
|
+
__metadata("design:type", Array)
|
|
2390
|
+
], UISerializableLiquidationRecordV2.prototype, "liquidatePerp_orderIds", void 0);
|
|
2391
|
+
__decorate([
|
|
2392
|
+
(0, cerializr_1.autoserializeUsing)(QuoteBigNumSerializeAndDeserializeFns),
|
|
2393
|
+
__metadata("design:type", sdk_1.BigNum)
|
|
2394
|
+
], UISerializableLiquidationRecordV2.prototype, "liquidatePerp_userPnl", void 0);
|
|
2395
|
+
__decorate([
|
|
2396
|
+
(0, cerializr_1.autoserializeUsing)(QuoteBigNumSerializeAndDeserializeFns),
|
|
2397
|
+
__metadata("design:type", sdk_1.BigNum)
|
|
2398
|
+
], UISerializableLiquidationRecordV2.prototype, "liquidatePerp_liquidatorPnl", void 0);
|
|
2399
|
+
__decorate([
|
|
2400
|
+
(0, cerializr_1.autoserializeUsing)(QuoteBigNumSerializeAndDeserializeFns),
|
|
2401
|
+
__metadata("design:type", sdk_1.BigNum)
|
|
2402
|
+
], UISerializableLiquidationRecordV2.prototype, "liquidatePerp_canceledOrdersFee", void 0);
|
|
2386
2403
|
__decorate([
|
|
2387
2404
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
2388
2405
|
__metadata("design:type", Number)
|
|
@@ -2503,15 +2520,15 @@ class SerializableUserPerpPositionSnapshot {
|
|
|
2503
2520
|
}
|
|
2504
2521
|
__decorate([
|
|
2505
2522
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2506
|
-
__metadata("design:type", sdk_1.BN)
|
|
2523
|
+
__metadata("design:type", typeof (_115 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _115 : Object)
|
|
2507
2524
|
], SerializableUserPerpPositionSnapshot.prototype, "lpShares", void 0);
|
|
2508
2525
|
__decorate([
|
|
2509
2526
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2510
|
-
__metadata("design:type", sdk_1.BN)
|
|
2527
|
+
__metadata("design:type", typeof (_116 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _116 : Object)
|
|
2511
2528
|
], SerializableUserPerpPositionSnapshot.prototype, "quoteAssetAmount", void 0);
|
|
2512
2529
|
__decorate([
|
|
2513
2530
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2514
|
-
__metadata("design:type", sdk_1.BN)
|
|
2531
|
+
__metadata("design:type", typeof (_117 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _117 : Object)
|
|
2515
2532
|
], SerializableUserPerpPositionSnapshot.prototype, "baseAssetAmount", void 0);
|
|
2516
2533
|
__decorate([
|
|
2517
2534
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -2521,19 +2538,19 @@ class SerializableUserSpotPositionSnapshot {
|
|
|
2521
2538
|
}
|
|
2522
2539
|
__decorate([
|
|
2523
2540
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2524
|
-
__metadata("design:type", sdk_1.BN)
|
|
2541
|
+
__metadata("design:type", typeof (_118 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _118 : Object)
|
|
2525
2542
|
], SerializableUserSpotPositionSnapshot.prototype, "tokenValue", void 0);
|
|
2526
2543
|
__decorate([
|
|
2527
2544
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2528
|
-
__metadata("design:type", sdk_1.BN)
|
|
2545
|
+
__metadata("design:type", typeof (_119 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _119 : Object)
|
|
2529
2546
|
], SerializableUserSpotPositionSnapshot.prototype, "tokenAmount", void 0);
|
|
2530
2547
|
__decorate([
|
|
2531
2548
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2532
|
-
__metadata("design:type", sdk_1.BN)
|
|
2549
|
+
__metadata("design:type", typeof (_120 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _120 : Object)
|
|
2533
2550
|
], SerializableUserSpotPositionSnapshot.prototype, "cumulativeDeposits", void 0);
|
|
2534
2551
|
__decorate([
|
|
2535
2552
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2536
|
-
__metadata("design:type", sdk_1.BN)
|
|
2553
|
+
__metadata("design:type", typeof (_121 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _121 : Object)
|
|
2537
2554
|
], SerializableUserSpotPositionSnapshot.prototype, "balanceInterestDelta", void 0);
|
|
2538
2555
|
__decorate([
|
|
2539
2556
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -2568,31 +2585,31 @@ __decorate([
|
|
|
2568
2585
|
], SerializableUserSnapshotRecord.prototype, "ts", void 0);
|
|
2569
2586
|
__decorate([
|
|
2570
2587
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2571
|
-
__metadata("design:type", sdk_1.BN)
|
|
2588
|
+
__metadata("design:type", typeof (_122 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _122 : Object)
|
|
2572
2589
|
], SerializableUserSnapshotRecord.prototype, "perpPositionUpnl", void 0);
|
|
2573
2590
|
__decorate([
|
|
2574
2591
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2575
|
-
__metadata("design:type", sdk_1.BN)
|
|
2592
|
+
__metadata("design:type", typeof (_123 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _123 : Object)
|
|
2576
2593
|
], SerializableUserSnapshotRecord.prototype, "totalAccountValue", void 0);
|
|
2577
2594
|
__decorate([
|
|
2578
2595
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2579
|
-
__metadata("design:type", sdk_1.BN)
|
|
2596
|
+
__metadata("design:type", typeof (_124 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _124 : Object)
|
|
2580
2597
|
], SerializableUserSnapshotRecord.prototype, "cumulativeDepositQuoteValue", void 0);
|
|
2581
2598
|
__decorate([
|
|
2582
2599
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2583
|
-
__metadata("design:type", sdk_1.BN)
|
|
2600
|
+
__metadata("design:type", typeof (_125 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _125 : Object)
|
|
2584
2601
|
], SerializableUserSnapshotRecord.prototype, "cumulativeWithdrawalQuoteValue", void 0);
|
|
2585
2602
|
__decorate([
|
|
2586
2603
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2587
|
-
__metadata("design:type", sdk_1.BN)
|
|
2604
|
+
__metadata("design:type", typeof (_126 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _126 : Object)
|
|
2588
2605
|
], SerializableUserSnapshotRecord.prototype, "cumulativeSettledPerpPnl", void 0);
|
|
2589
2606
|
__decorate([
|
|
2590
2607
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2591
|
-
__metadata("design:type", sdk_1.BN)
|
|
2608
|
+
__metadata("design:type", typeof (_127 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _127 : Object)
|
|
2592
2609
|
], SerializableUserSnapshotRecord.prototype, "cumulativeReferralReward", void 0);
|
|
2593
2610
|
__decorate([
|
|
2594
2611
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2595
|
-
__metadata("design:type", sdk_1.BN)
|
|
2612
|
+
__metadata("design:type", typeof (_128 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _128 : Object)
|
|
2596
2613
|
], SerializableUserSnapshotRecord.prototype, "cumulativeReferralVolume", void 0);
|
|
2597
2614
|
__decorate([
|
|
2598
2615
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -2645,47 +2662,47 @@ class SerializableCandle {
|
|
|
2645
2662
|
exports.SerializableCandle = SerializableCandle;
|
|
2646
2663
|
__decorate([
|
|
2647
2664
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2648
|
-
__metadata("design:type", sdk_1.BN)
|
|
2665
|
+
__metadata("design:type", typeof (_129 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _129 : Object)
|
|
2649
2666
|
], SerializableCandle.prototype, "fillOpen", void 0);
|
|
2650
2667
|
__decorate([
|
|
2651
2668
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2652
|
-
__metadata("design:type", sdk_1.BN)
|
|
2669
|
+
__metadata("design:type", typeof (_130 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _130 : Object)
|
|
2653
2670
|
], SerializableCandle.prototype, "fillClose", void 0);
|
|
2654
2671
|
__decorate([
|
|
2655
2672
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2656
|
-
__metadata("design:type", sdk_1.BN)
|
|
2673
|
+
__metadata("design:type", typeof (_131 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _131 : Object)
|
|
2657
2674
|
], SerializableCandle.prototype, "fillHigh", void 0);
|
|
2658
2675
|
__decorate([
|
|
2659
2676
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2660
|
-
__metadata("design:type", sdk_1.BN)
|
|
2677
|
+
__metadata("design:type", typeof (_132 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _132 : Object)
|
|
2661
2678
|
], SerializableCandle.prototype, "fillLow", void 0);
|
|
2662
2679
|
__decorate([
|
|
2663
2680
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2664
|
-
__metadata("design:type", sdk_1.BN)
|
|
2681
|
+
__metadata("design:type", typeof (_133 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _133 : Object)
|
|
2665
2682
|
], SerializableCandle.prototype, "oracleOpen", void 0);
|
|
2666
2683
|
__decorate([
|
|
2667
2684
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2668
|
-
__metadata("design:type", sdk_1.BN)
|
|
2685
|
+
__metadata("design:type", typeof (_134 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _134 : Object)
|
|
2669
2686
|
], SerializableCandle.prototype, "oracleClose", void 0);
|
|
2670
2687
|
__decorate([
|
|
2671
2688
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2672
|
-
__metadata("design:type", sdk_1.BN)
|
|
2689
|
+
__metadata("design:type", typeof (_135 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _135 : Object)
|
|
2673
2690
|
], SerializableCandle.prototype, "oracleHigh", void 0);
|
|
2674
2691
|
__decorate([
|
|
2675
2692
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2676
|
-
__metadata("design:type", sdk_1.BN)
|
|
2693
|
+
__metadata("design:type", typeof (_136 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _136 : Object)
|
|
2677
2694
|
], SerializableCandle.prototype, "oracleLow", void 0);
|
|
2678
2695
|
__decorate([
|
|
2679
2696
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2680
|
-
__metadata("design:type", sdk_1.BN)
|
|
2697
|
+
__metadata("design:type", typeof (_137 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _137 : Object)
|
|
2681
2698
|
], SerializableCandle.prototype, "quoteVolume", void 0);
|
|
2682
2699
|
__decorate([
|
|
2683
2700
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2684
|
-
__metadata("design:type", sdk_1.BN)
|
|
2701
|
+
__metadata("design:type", typeof (_138 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _138 : Object)
|
|
2685
2702
|
], SerializableCandle.prototype, "baseVolume", void 0);
|
|
2686
2703
|
__decorate([
|
|
2687
2704
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2688
|
-
__metadata("design:type", sdk_1.BN)
|
|
2705
|
+
__metadata("design:type", typeof (_139 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _139 : Object)
|
|
2689
2706
|
], SerializableCandle.prototype, "start", void 0);
|
|
2690
2707
|
__decorate([
|
|
2691
2708
|
(0, cerializr_1.autoserializeAs)(String),
|
|
@@ -2750,27 +2767,27 @@ class SerializableRollingPnlData {
|
|
|
2750
2767
|
exports.SerializableRollingPnlData = SerializableRollingPnlData;
|
|
2751
2768
|
__decorate([
|
|
2752
2769
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2753
|
-
__metadata("design:type", sdk_1.BN)
|
|
2770
|
+
__metadata("design:type", typeof (_140 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _140 : Object)
|
|
2754
2771
|
], SerializableRollingPnlData.prototype, "spotPnlQuote", void 0);
|
|
2755
2772
|
__decorate([
|
|
2756
2773
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2757
|
-
__metadata("design:type", sdk_1.BN)
|
|
2774
|
+
__metadata("design:type", typeof (_141 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _141 : Object)
|
|
2758
2775
|
], SerializableRollingPnlData.prototype, "spotPnlPct", void 0);
|
|
2759
2776
|
__decorate([
|
|
2760
2777
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2761
|
-
__metadata("design:type", sdk_1.BN)
|
|
2778
|
+
__metadata("design:type", typeof (_142 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _142 : Object)
|
|
2762
2779
|
], SerializableRollingPnlData.prototype, "perpPnlQuote", void 0);
|
|
2763
2780
|
__decorate([
|
|
2764
2781
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2765
|
-
__metadata("design:type", sdk_1.BN)
|
|
2782
|
+
__metadata("design:type", typeof (_143 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _143 : Object)
|
|
2766
2783
|
], SerializableRollingPnlData.prototype, "perpPnlPct", void 0);
|
|
2767
2784
|
__decorate([
|
|
2768
2785
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2769
|
-
__metadata("design:type", sdk_1.BN)
|
|
2786
|
+
__metadata("design:type", typeof (_144 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _144 : Object)
|
|
2770
2787
|
], SerializableRollingPnlData.prototype, "totalPnlQuote", void 0);
|
|
2771
2788
|
__decorate([
|
|
2772
2789
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2773
|
-
__metadata("design:type", sdk_1.BN)
|
|
2790
|
+
__metadata("design:type", typeof (_145 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _145 : Object)
|
|
2774
2791
|
], SerializableRollingPnlData.prototype, "totalPnlPct", void 0);
|
|
2775
2792
|
class SerializableAllTimePnlData extends SerializableRollingPnlData {
|
|
2776
2793
|
}
|
|
@@ -2781,27 +2798,27 @@ __decorate([
|
|
|
2781
2798
|
], SerializableAllTimePnlData.prototype, "epochTs", void 0);
|
|
2782
2799
|
__decorate([
|
|
2783
2800
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2784
|
-
__metadata("design:type", sdk_1.BN)
|
|
2801
|
+
__metadata("design:type", typeof (_146 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _146 : Object)
|
|
2785
2802
|
], SerializableAllTimePnlData.prototype, "spotPnlQuote", void 0);
|
|
2786
2803
|
__decorate([
|
|
2787
2804
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2788
|
-
__metadata("design:type", sdk_1.BN)
|
|
2805
|
+
__metadata("design:type", typeof (_147 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _147 : Object)
|
|
2789
2806
|
], SerializableAllTimePnlData.prototype, "spotPnlPct", void 0);
|
|
2790
2807
|
__decorate([
|
|
2791
2808
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2792
|
-
__metadata("design:type", sdk_1.BN)
|
|
2809
|
+
__metadata("design:type", typeof (_148 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _148 : Object)
|
|
2793
2810
|
], SerializableAllTimePnlData.prototype, "perpPnlQuote", void 0);
|
|
2794
2811
|
__decorate([
|
|
2795
2812
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2796
|
-
__metadata("design:type", sdk_1.BN)
|
|
2813
|
+
__metadata("design:type", typeof (_149 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _149 : Object)
|
|
2797
2814
|
], SerializableAllTimePnlData.prototype, "perpPnlPct", void 0);
|
|
2798
2815
|
__decorate([
|
|
2799
2816
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2800
|
-
__metadata("design:type", sdk_1.BN)
|
|
2817
|
+
__metadata("design:type", typeof (_150 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _150 : Object)
|
|
2801
2818
|
], SerializableAllTimePnlData.prototype, "totalPnlQuote", void 0);
|
|
2802
2819
|
__decorate([
|
|
2803
2820
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2804
|
-
__metadata("design:type", sdk_1.BN)
|
|
2821
|
+
__metadata("design:type", typeof (_151 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _151 : Object)
|
|
2805
2822
|
], SerializableAllTimePnlData.prototype, "totalPnlPct", void 0);
|
|
2806
2823
|
class UISerializableRollingPnlData extends SerializableRollingPnlData {
|
|
2807
2824
|
}
|
|
@@ -2977,7 +2994,7 @@ __decorate([
|
|
|
2977
2994
|
], SerializableNewUserRecord.prototype, "slot", void 0);
|
|
2978
2995
|
__decorate([
|
|
2979
2996
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
2980
|
-
__metadata("design:type", sdk_1.BN)
|
|
2997
|
+
__metadata("design:type", typeof (_152 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _152 : Object)
|
|
2981
2998
|
], SerializableNewUserRecord.prototype, "ts", void 0);
|
|
2982
2999
|
__decorate([
|
|
2983
3000
|
(0, cerializr_1.autoserializeUsing)(PublicKeySerializeAndDeserializeFns),
|
|
@@ -3020,31 +3037,31 @@ __decorate([
|
|
|
3020
3037
|
], SerializableAccountSnapshot.prototype, "epochTs", void 0);
|
|
3021
3038
|
__decorate([
|
|
3022
3039
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3023
|
-
__metadata("design:type", sdk_1.BN)
|
|
3040
|
+
__metadata("design:type", typeof (_153 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _153 : Object)
|
|
3024
3041
|
], SerializableAccountSnapshot.prototype, "totalAccountValue", void 0);
|
|
3025
3042
|
__decorate([
|
|
3026
3043
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3027
|
-
__metadata("design:type", sdk_1.BN)
|
|
3044
|
+
__metadata("design:type", typeof (_154 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _154 : Object)
|
|
3028
3045
|
], SerializableAccountSnapshot.prototype, "cumulativeDepositQuoteValue", void 0);
|
|
3029
3046
|
__decorate([
|
|
3030
3047
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3031
|
-
__metadata("design:type", sdk_1.BN)
|
|
3048
|
+
__metadata("design:type", typeof (_155 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _155 : Object)
|
|
3032
3049
|
], SerializableAccountSnapshot.prototype, "cumulativeWithdrawalQuoteValue", void 0);
|
|
3033
3050
|
__decorate([
|
|
3034
3051
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3035
|
-
__metadata("design:type", sdk_1.BN)
|
|
3052
|
+
__metadata("design:type", typeof (_156 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _156 : Object)
|
|
3036
3053
|
], SerializableAccountSnapshot.prototype, "allTimeTotalPnlPct", void 0);
|
|
3037
3054
|
__decorate([
|
|
3038
3055
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3039
|
-
__metadata("design:type", sdk_1.BN)
|
|
3056
|
+
__metadata("design:type", typeof (_157 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _157 : Object)
|
|
3040
3057
|
], SerializableAccountSnapshot.prototype, "allTimeTotalPnl", void 0);
|
|
3041
3058
|
__decorate([
|
|
3042
3059
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3043
|
-
__metadata("design:type", sdk_1.BN)
|
|
3060
|
+
__metadata("design:type", typeof (_158 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _158 : Object)
|
|
3044
3061
|
], SerializableAccountSnapshot.prototype, "cumulativeReferralReward", void 0);
|
|
3045
3062
|
__decorate([
|
|
3046
3063
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3047
|
-
__metadata("design:type", sdk_1.BN)
|
|
3064
|
+
__metadata("design:type", typeof (_159 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _159 : Object)
|
|
3048
3065
|
], SerializableAccountSnapshot.prototype, "cumulativeReferralVolume", void 0);
|
|
3049
3066
|
__decorate([
|
|
3050
3067
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -3052,7 +3069,7 @@ __decorate([
|
|
|
3052
3069
|
], SerializableAccountSnapshot.prototype, "cumulativeReferralCount", void 0);
|
|
3053
3070
|
__decorate([
|
|
3054
3071
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3055
|
-
__metadata("design:type", sdk_1.BN)
|
|
3072
|
+
__metadata("design:type", typeof (_160 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _160 : Object)
|
|
3056
3073
|
], SerializableAccountSnapshot.prototype, "cumulativeSettledPerpPnl", void 0);
|
|
3057
3074
|
class UISerializableAccountSnapshot {
|
|
3058
3075
|
}
|
|
@@ -3145,11 +3162,11 @@ __decorate([
|
|
|
3145
3162
|
], SerializableDlobOracleInfo.prototype, "price", void 0);
|
|
3146
3163
|
__decorate([
|
|
3147
3164
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3148
|
-
__metadata("design:type", sdk_1.BN)
|
|
3165
|
+
__metadata("design:type", typeof (_161 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _161 : Object)
|
|
3149
3166
|
], SerializableDlobOracleInfo.prototype, "slot", void 0);
|
|
3150
3167
|
__decorate([
|
|
3151
3168
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3152
|
-
__metadata("design:type", sdk_1.BN)
|
|
3169
|
+
__metadata("design:type", typeof (_162 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _162 : Object)
|
|
3153
3170
|
], SerializableDlobOracleInfo.prototype, "confidence", void 0);
|
|
3154
3171
|
__decorate([
|
|
3155
3172
|
(0, cerializr_1.autoserializeAs)(Boolean),
|
|
@@ -3157,15 +3174,15 @@ __decorate([
|
|
|
3157
3174
|
], SerializableDlobOracleInfo.prototype, "hasSufficientNumberOfDataPoints", void 0);
|
|
3158
3175
|
__decorate([
|
|
3159
3176
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3160
|
-
__metadata("design:type", sdk_1.BN)
|
|
3177
|
+
__metadata("design:type", typeof (_163 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _163 : Object)
|
|
3161
3178
|
], SerializableDlobOracleInfo.prototype, "twap", void 0);
|
|
3162
3179
|
__decorate([
|
|
3163
3180
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3164
|
-
__metadata("design:type", sdk_1.BN)
|
|
3181
|
+
__metadata("design:type", typeof (_164 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _164 : Object)
|
|
3165
3182
|
], SerializableDlobOracleInfo.prototype, "twapConfidence", void 0);
|
|
3166
3183
|
__decorate([
|
|
3167
3184
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3168
|
-
__metadata("design:type", sdk_1.BN)
|
|
3185
|
+
__metadata("design:type", typeof (_165 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _165 : Object)
|
|
3169
3186
|
], SerializableDlobOracleInfo.prototype, "maxPrice", void 0);
|
|
3170
3187
|
class SerializableDLOBState {
|
|
3171
3188
|
}
|
|
@@ -3237,7 +3254,7 @@ class SerializableInsuranceFundRecord {
|
|
|
3237
3254
|
exports.SerializableInsuranceFundRecord = SerializableInsuranceFundRecord;
|
|
3238
3255
|
__decorate([
|
|
3239
3256
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3240
|
-
__metadata("design:type", sdk_1.BN)
|
|
3257
|
+
__metadata("design:type", typeof (_166 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _166 : Object)
|
|
3241
3258
|
], SerializableInsuranceFundRecord.prototype, "ts", void 0);
|
|
3242
3259
|
__decorate([
|
|
3243
3260
|
(0, cerializr_1.autoserializeAs)(String),
|
|
@@ -3269,23 +3286,23 @@ __decorate([
|
|
|
3269
3286
|
], SerializableInsuranceFundRecord.prototype, "totalIfFactor", void 0);
|
|
3270
3287
|
__decorate([
|
|
3271
3288
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3272
|
-
__metadata("design:type", sdk_1.BN)
|
|
3289
|
+
__metadata("design:type", typeof (_167 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _167 : Object)
|
|
3273
3290
|
], SerializableInsuranceFundRecord.prototype, "vaultAmountBefore", void 0);
|
|
3274
3291
|
__decorate([
|
|
3275
3292
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3276
|
-
__metadata("design:type", sdk_1.BN)
|
|
3293
|
+
__metadata("design:type", typeof (_168 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _168 : Object)
|
|
3277
3294
|
], SerializableInsuranceFundRecord.prototype, "insuranceVaultAmountBefore", void 0);
|
|
3278
3295
|
__decorate([
|
|
3279
3296
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3280
|
-
__metadata("design:type", sdk_1.BN)
|
|
3297
|
+
__metadata("design:type", typeof (_169 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _169 : Object)
|
|
3281
3298
|
], SerializableInsuranceFundRecord.prototype, "totalIfSharesBefore", void 0);
|
|
3282
3299
|
__decorate([
|
|
3283
3300
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3284
|
-
__metadata("design:type", sdk_1.BN)
|
|
3301
|
+
__metadata("design:type", typeof (_170 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _170 : Object)
|
|
3285
3302
|
], SerializableInsuranceFundRecord.prototype, "totalIfSharesAfter", void 0);
|
|
3286
3303
|
__decorate([
|
|
3287
3304
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3288
|
-
__metadata("design:type", sdk_1.BN)
|
|
3305
|
+
__metadata("design:type", typeof (_171 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _171 : Object)
|
|
3289
3306
|
], SerializableInsuranceFundRecord.prototype, "amount", void 0);
|
|
3290
3307
|
let UISerializableInsuranceFundRecord = class UISerializableInsuranceFundRecord extends SerializableInsuranceFundRecord {
|
|
3291
3308
|
static onDeserialized(_data, instance) {
|
|
@@ -3340,7 +3357,7 @@ class SerializableInsuranceFundStakeRecord {
|
|
|
3340
3357
|
exports.SerializableInsuranceFundStakeRecord = SerializableInsuranceFundStakeRecord;
|
|
3341
3358
|
__decorate([
|
|
3342
3359
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3343
|
-
__metadata("design:type", sdk_1.BN)
|
|
3360
|
+
__metadata("design:type", typeof (_172 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _172 : Object)
|
|
3344
3361
|
], SerializableInsuranceFundStakeRecord.prototype, "ts", void 0);
|
|
3345
3362
|
__decorate([
|
|
3346
3363
|
(0, cerializr_1.autoserializeAs)(String),
|
|
@@ -3364,7 +3381,7 @@ __decorate([
|
|
|
3364
3381
|
], SerializableInsuranceFundStakeRecord.prototype, "action", void 0);
|
|
3365
3382
|
__decorate([
|
|
3366
3383
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3367
|
-
__metadata("design:type", sdk_1.BN)
|
|
3384
|
+
__metadata("design:type", typeof (_173 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _173 : Object)
|
|
3368
3385
|
], SerializableInsuranceFundStakeRecord.prototype, "amount", void 0);
|
|
3369
3386
|
__decorate([
|
|
3370
3387
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -3372,31 +3389,31 @@ __decorate([
|
|
|
3372
3389
|
], SerializableInsuranceFundStakeRecord.prototype, "marketIndex", void 0);
|
|
3373
3390
|
__decorate([
|
|
3374
3391
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3375
|
-
__metadata("design:type", sdk_1.BN)
|
|
3392
|
+
__metadata("design:type", typeof (_174 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _174 : Object)
|
|
3376
3393
|
], SerializableInsuranceFundStakeRecord.prototype, "insuranceVaultAmountBefore", void 0);
|
|
3377
3394
|
__decorate([
|
|
3378
3395
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3379
|
-
__metadata("design:type", sdk_1.BN)
|
|
3396
|
+
__metadata("design:type", typeof (_175 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _175 : Object)
|
|
3380
3397
|
], SerializableInsuranceFundStakeRecord.prototype, "ifSharesBefore", void 0);
|
|
3381
3398
|
__decorate([
|
|
3382
3399
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3383
|
-
__metadata("design:type", sdk_1.BN)
|
|
3400
|
+
__metadata("design:type", typeof (_176 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _176 : Object)
|
|
3384
3401
|
], SerializableInsuranceFundStakeRecord.prototype, "userIfSharesBefore", void 0);
|
|
3385
3402
|
__decorate([
|
|
3386
3403
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3387
|
-
__metadata("design:type", sdk_1.BN)
|
|
3404
|
+
__metadata("design:type", typeof (_177 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _177 : Object)
|
|
3388
3405
|
], SerializableInsuranceFundStakeRecord.prototype, "totalIfSharesBefore", void 0);
|
|
3389
3406
|
__decorate([
|
|
3390
3407
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3391
|
-
__metadata("design:type", sdk_1.BN)
|
|
3408
|
+
__metadata("design:type", typeof (_178 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _178 : Object)
|
|
3392
3409
|
], SerializableInsuranceFundStakeRecord.prototype, "ifSharesAfter", void 0);
|
|
3393
3410
|
__decorate([
|
|
3394
3411
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3395
|
-
__metadata("design:type", sdk_1.BN)
|
|
3412
|
+
__metadata("design:type", typeof (_179 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _179 : Object)
|
|
3396
3413
|
], SerializableInsuranceFundStakeRecord.prototype, "userIfSharesAfter", void 0);
|
|
3397
3414
|
__decorate([
|
|
3398
3415
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3399
|
-
__metadata("design:type", sdk_1.BN)
|
|
3416
|
+
__metadata("design:type", typeof (_180 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _180 : Object)
|
|
3400
3417
|
], SerializableInsuranceFundStakeRecord.prototype, "totalIfSharesAfter", void 0);
|
|
3401
3418
|
let UISerializableInsuranceFundStakeRecord = class UISerializableInsuranceFundStakeRecord extends SerializableInsuranceFundStakeRecord {
|
|
3402
3419
|
static onDeserialized(data, instance) {
|
|
@@ -3461,7 +3478,7 @@ class SerializableLPRecord {
|
|
|
3461
3478
|
exports.SerializableLPRecord = SerializableLPRecord;
|
|
3462
3479
|
__decorate([
|
|
3463
3480
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3464
|
-
__metadata("design:type", sdk_1.BN)
|
|
3481
|
+
__metadata("design:type", typeof (_181 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _181 : Object)
|
|
3465
3482
|
], SerializableLPRecord.prototype, "ts", void 0);
|
|
3466
3483
|
__decorate([
|
|
3467
3484
|
(0, cerializr_1.autoserializeAs)(String),
|
|
@@ -3485,7 +3502,7 @@ __decorate([
|
|
|
3485
3502
|
], SerializableLPRecord.prototype, "action", void 0);
|
|
3486
3503
|
__decorate([
|
|
3487
3504
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3488
|
-
__metadata("design:type", sdk_1.BN)
|
|
3505
|
+
__metadata("design:type", typeof (_182 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _182 : Object)
|
|
3489
3506
|
], SerializableLPRecord.prototype, "nShares", void 0);
|
|
3490
3507
|
__decorate([
|
|
3491
3508
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -3493,15 +3510,15 @@ __decorate([
|
|
|
3493
3510
|
], SerializableLPRecord.prototype, "marketIndex", void 0);
|
|
3494
3511
|
__decorate([
|
|
3495
3512
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3496
|
-
__metadata("design:type", sdk_1.BN)
|
|
3513
|
+
__metadata("design:type", typeof (_183 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _183 : Object)
|
|
3497
3514
|
], SerializableLPRecord.prototype, "deltaBaseAssetAmount", void 0);
|
|
3498
3515
|
__decorate([
|
|
3499
3516
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3500
|
-
__metadata("design:type", sdk_1.BN)
|
|
3517
|
+
__metadata("design:type", typeof (_184 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _184 : Object)
|
|
3501
3518
|
], SerializableLPRecord.prototype, "deltaQuoteAssetAmount", void 0);
|
|
3502
3519
|
__decorate([
|
|
3503
3520
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3504
|
-
__metadata("design:type", sdk_1.BN)
|
|
3521
|
+
__metadata("design:type", typeof (_185 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _185 : Object)
|
|
3505
3522
|
], SerializableLPRecord.prototype, "pnl", void 0);
|
|
3506
3523
|
let UISerializableLPRecord = class UISerializableLPRecord extends SerializableLPRecord {
|
|
3507
3524
|
};
|
|
@@ -3554,7 +3571,7 @@ __decorate([
|
|
|
3554
3571
|
], SerializableSwapRecord.prototype, "slot", void 0);
|
|
3555
3572
|
__decorate([
|
|
3556
3573
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3557
|
-
__metadata("design:type", sdk_1.BN)
|
|
3574
|
+
__metadata("design:type", typeof (_186 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _186 : Object)
|
|
3558
3575
|
], SerializableSwapRecord.prototype, "ts", void 0);
|
|
3559
3576
|
__decorate([
|
|
3560
3577
|
(0, cerializr_1.autoserializeUsing)(PublicKeySerializeAndDeserializeFns),
|
|
@@ -3562,11 +3579,11 @@ __decorate([
|
|
|
3562
3579
|
], SerializableSwapRecord.prototype, "user", void 0);
|
|
3563
3580
|
__decorate([
|
|
3564
3581
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3565
|
-
__metadata("design:type", sdk_1.BN)
|
|
3582
|
+
__metadata("design:type", typeof (_187 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _187 : Object)
|
|
3566
3583
|
], SerializableSwapRecord.prototype, "amountOut", void 0);
|
|
3567
3584
|
__decorate([
|
|
3568
3585
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3569
|
-
__metadata("design:type", sdk_1.BN)
|
|
3586
|
+
__metadata("design:type", typeof (_188 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _188 : Object)
|
|
3570
3587
|
], SerializableSwapRecord.prototype, "amountIn", void 0);
|
|
3571
3588
|
__decorate([
|
|
3572
3589
|
(0, cerializr_1.autoserializeAs)(Number),
|
|
@@ -3578,15 +3595,15 @@ __decorate([
|
|
|
3578
3595
|
], SerializableSwapRecord.prototype, "inMarketIndex", void 0);
|
|
3579
3596
|
__decorate([
|
|
3580
3597
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3581
|
-
__metadata("design:type", sdk_1.BN)
|
|
3598
|
+
__metadata("design:type", typeof (_189 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _189 : Object)
|
|
3582
3599
|
], SerializableSwapRecord.prototype, "outOraclePrice", void 0);
|
|
3583
3600
|
__decorate([
|
|
3584
3601
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3585
|
-
__metadata("design:type", sdk_1.BN)
|
|
3602
|
+
__metadata("design:type", typeof (_190 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _190 : Object)
|
|
3586
3603
|
], SerializableSwapRecord.prototype, "inOraclePrice", void 0);
|
|
3587
3604
|
__decorate([
|
|
3588
3605
|
(0, cerializr_1.autoserializeUsing)(BNSerializeAndDeserializeFns),
|
|
3589
|
-
__metadata("design:type", sdk_1.BN)
|
|
3606
|
+
__metadata("design:type", typeof (_191 = typeof sdk_1.BN !== "undefined" && sdk_1.BN) === "function" ? _191 : Object)
|
|
3590
3607
|
], SerializableSwapRecord.prototype, "fee", void 0);
|
|
3591
3608
|
let UISerializableSwapRecord = class UISerializableSwapRecord extends SerializableSwapRecord {
|
|
3592
3609
|
static onDeserialized(_data, instance) {
|
|
@@ -3778,6 +3795,88 @@ function transformDataApiOrderActionRecordToSerializableOrderActionRecord(v2Reco
|
|
|
3778
3795
|
return transformedRecord;
|
|
3779
3796
|
}
|
|
3780
3797
|
exports.transformDataApiOrderActionRecordToSerializableOrderActionRecord = transformDataApiOrderActionRecordToSerializableOrderActionRecord;
|
|
3798
|
+
/**
|
|
3799
|
+
* Transforms a Data API liquidation record (V2 flattened format) to V1 nested format
|
|
3800
|
+
* Used by the all liquidations table which expects nested UISerializableLiquidationRecord
|
|
3801
|
+
*/
|
|
3802
|
+
function transformDataApiLiquidationRecordToUISerializableLiquidationRecord(v2Record) {
|
|
3803
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3804
|
+
const deserializedV2Record = (0, cerializr_1.Deserialize)(v2Record, UISerializableLiquidationRecordV2);
|
|
3805
|
+
const transformedRecord = {
|
|
3806
|
+
liquidationId: deserializedV2Record.liquidationId,
|
|
3807
|
+
txSig: deserializedV2Record.txSig,
|
|
3808
|
+
txSigIndex: deserializedV2Record.txSigIndex,
|
|
3809
|
+
slot: deserializedV2Record.slot,
|
|
3810
|
+
ts: deserializedV2Record.ts,
|
|
3811
|
+
user: deserializedV2Record.user,
|
|
3812
|
+
liquidator: deserializedV2Record.liquidator,
|
|
3813
|
+
totalCollateral: deserializedV2Record.totalCollateral,
|
|
3814
|
+
liquidationType: deserializedV2Record.liquidationType,
|
|
3815
|
+
marginRequirement: deserializedV2Record.marginRequirement,
|
|
3816
|
+
marginFreed: deserializedV2Record.marginFreed,
|
|
3817
|
+
bankrupt: deserializedV2Record.bankrupt,
|
|
3818
|
+
canceledOrderIds: deserializedV2Record.canceledOrderIds,
|
|
3819
|
+
liquidatePerp: {
|
|
3820
|
+
marketIndex: deserializedV2Record.liquidatePerp_marketIndex,
|
|
3821
|
+
oraclePrice: deserializedV2Record.liquidatePerp_oraclePrice,
|
|
3822
|
+
baseAssetAmount: deserializedV2Record.liquidatePerp_baseAssetAmount,
|
|
3823
|
+
quoteAssetAmount: deserializedV2Record.liquidatePerp_quoteAssetAmount,
|
|
3824
|
+
lpShares: deserializedV2Record.liquidatePerp_lpShares,
|
|
3825
|
+
fillRecordId: deserializedV2Record.liquidatePerp_fillRecordId,
|
|
3826
|
+
userOrderId: deserializedV2Record.liquidatePerp_userOrderId,
|
|
3827
|
+
liquidatorOrderId: deserializedV2Record.liquidatePerp_liquidatorOrderId,
|
|
3828
|
+
liquidatorFee: deserializedV2Record.liquidatePerp_liquidatorFee,
|
|
3829
|
+
ifFee: deserializedV2Record.liquidatePerp_ifFee,
|
|
3830
|
+
orderIds: deserializedV2Record.liquidatePerp_orderIds,
|
|
3831
|
+
userPnl: deserializedV2Record.liquidatePerp_userPnl,
|
|
3832
|
+
liquidatorPnl: deserializedV2Record.liquidatePerp_liquidatorPnl,
|
|
3833
|
+
canceledOrdersFee: deserializedV2Record.liquidatePerp_canceledOrdersFee,
|
|
3834
|
+
},
|
|
3835
|
+
liquidateSpot: {
|
|
3836
|
+
assetMarketIndex: deserializedV2Record.liquidateSpot_assetMarketIndex,
|
|
3837
|
+
assetPrice: deserializedV2Record.liquidateSpot_assetPrice,
|
|
3838
|
+
assetTransfer: deserializedV2Record.liquidateSpot_assetTransfer,
|
|
3839
|
+
liabilityMarketIndex: deserializedV2Record.liquidateSpot_liabilityMarketIndex,
|
|
3840
|
+
liabilityPrice: deserializedV2Record.liquidateSpot_liabilityPrice,
|
|
3841
|
+
liabilityTransfer: deserializedV2Record.liquidateSpot_liabilityTransfer,
|
|
3842
|
+
// V2 has ifFee as BigNum, V1 expects BN
|
|
3843
|
+
ifFee: (_a = deserializedV2Record.liquidateSpot_ifFee) === null || _a === void 0 ? void 0 : _a.val,
|
|
3844
|
+
},
|
|
3845
|
+
liquidateBorrowForPerpPnl: {
|
|
3846
|
+
perpMarketIndex: deserializedV2Record.liquidateBorrowForPerpPnl_perpMarketIndex,
|
|
3847
|
+
marketOraclePrice: deserializedV2Record.liquidateBorrowForPerpPnl_marketOraclePrice,
|
|
3848
|
+
pnlTransfer: deserializedV2Record.liquidateBorrowForPerpPnl_pnlTransfer,
|
|
3849
|
+
liabilityMarketIndex: deserializedV2Record.liquidateBorrowForPerpPnl_liabilityMarketIndex,
|
|
3850
|
+
liabilityPrice: deserializedV2Record.liquidateBorrowForPerpPnl_liabilityPrice,
|
|
3851
|
+
liabilityTransfer: deserializedV2Record.liquidateBorrowForPerpPnl_liabilityTransfer,
|
|
3852
|
+
},
|
|
3853
|
+
liquidatePerpPnlForDeposit: {
|
|
3854
|
+
perpMarketIndex: deserializedV2Record.liquidatePerpPnlForDeposit_perpMarketIndex,
|
|
3855
|
+
marketOraclePrice: deserializedV2Record.liquidatePerpPnlForDeposit_marketOraclePrice,
|
|
3856
|
+
pnlTransfer: deserializedV2Record.liquidatePerpPnlForDeposit_pnlTransfer,
|
|
3857
|
+
assetMarketIndex: deserializedV2Record.liquidatePerpPnlForDeposit_assetMarketIndex,
|
|
3858
|
+
assetPrice: deserializedV2Record.liquidatePerpPnlForDeposit_assetPrice,
|
|
3859
|
+
assetTransfer: deserializedV2Record.liquidatePerpPnlForDeposit_assetTransfer,
|
|
3860
|
+
},
|
|
3861
|
+
// V1 doesn't override perpBankruptcy/spotBankruptcy, so they use BN fields
|
|
3862
|
+
perpBankruptcy: {
|
|
3863
|
+
marketIndex: deserializedV2Record.perpBankruptcy_marketIndex,
|
|
3864
|
+
pnl: (_b = deserializedV2Record.perpBankruptcy_pnl) === null || _b === void 0 ? void 0 : _b.val,
|
|
3865
|
+
ifPayment: (_c = deserializedV2Record.perpBankruptcy_ifPayment) === null || _c === void 0 ? void 0 : _c.val,
|
|
3866
|
+
clawbackUser: deserializedV2Record.perpBankruptcy_clawbackUser,
|
|
3867
|
+
clawbackUserPayment: (_d = deserializedV2Record.perpBankruptcy_clawbackUserPayment) === null || _d === void 0 ? void 0 : _d.val,
|
|
3868
|
+
cumulativeFundingRateDelta: (_e = deserializedV2Record.perpBankruptcy_cumulativeFundingRateDelta) === null || _e === void 0 ? void 0 : _e.val,
|
|
3869
|
+
},
|
|
3870
|
+
spotBankruptcy: {
|
|
3871
|
+
marketIndex: deserializedV2Record.spotBankruptcy_marketIndex,
|
|
3872
|
+
borrowAmount: (_f = deserializedV2Record.spotBankruptcy_borrowAmount) === null || _f === void 0 ? void 0 : _f.val,
|
|
3873
|
+
ifPayment: (_g = deserializedV2Record.spotBankruptcy_ifPayment) === null || _g === void 0 ? void 0 : _g.val,
|
|
3874
|
+
cumulativeDepositInterestDelta: (_h = deserializedV2Record.spotBankruptcy_cumulativeDepositInterestDelta) === null || _h === void 0 ? void 0 : _h.val,
|
|
3875
|
+
},
|
|
3876
|
+
};
|
|
3877
|
+
return transformedRecord;
|
|
3878
|
+
}
|
|
3879
|
+
exports.transformDataApiLiquidationRecordToUISerializableLiquidationRecord = transformDataApiLiquidationRecordToUISerializableLiquidationRecord;
|
|
3781
3880
|
// Serializer
|
|
3782
3881
|
exports.Serializer = {
|
|
3783
3882
|
Serialize: {
|
|
@@ -3848,6 +3947,7 @@ exports.Serializer = {
|
|
|
3848
3947
|
Liquidation: (cls) => (0, cerializr_1.Deserialize)(cls, SerializableLiquidationRecord),
|
|
3849
3948
|
UILiquidation: (cls) => (0, cerializr_1.Deserialize)(cls, UISerializableLiquidationRecord),
|
|
3850
3949
|
UILiquidationV2: (cls) => (0, cerializr_1.Deserialize)(cls, UISerializableLiquidationRecordV2),
|
|
3950
|
+
DataApiUILiquidation: (cls) => transformDataApiLiquidationRecordToUISerializableLiquidationRecord(cls),
|
|
3851
3951
|
SettlePnl: (cls) => (0, cerializr_1.Deserialize)(cls, SerializableSettlePnlRecord),
|
|
3852
3952
|
SpotInterest: (cls) => (0, cerializr_1.Deserialize)(cls, SerializableSpotInterestRecord),
|
|
3853
3953
|
CurveRecord: (cls) => (0, cerializr_1.Deserialize)(cls, SerializableCurveRecord),
|