@deriverse/kit 1.0.41 → 1.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants.d.ts +2 -0
- package/dist/constants.js +3 -1
- package/dist/engine/index.test.js +34 -12
- package/dist/engine/logs-decoder.js +111 -0
- package/dist/engine/perp-instructions.js +24 -5
- package/dist/engine/perp-instructions.test.js +8 -12
- package/dist/engine/spot-instructions.js +28 -5
- package/dist/engine/utils.js +6 -3
- package/dist/instruction_models.d.ts +10 -7
- package/dist/instruction_models.js +49 -29
- package/dist/logs_models.d.ts +147 -3
- package/dist/logs_models.js +243 -13
- package/dist/structure_models.d.ts +104 -99
- package/dist/structure_models.js +152 -129
- package/dist/types/log-message.d.ts +2 -2
- package/dist/types/schemas.d.ts +15 -12
- package/dist/types/schemas.js +19 -34
- package/dist/types/schemas.test.js +11 -12
- package/package.json +1 -1
package/dist/logs_models.d.ts
CHANGED
|
@@ -31,7 +31,19 @@ export declare enum LogType {
|
|
|
31
31
|
sellMarketSeat = 30,
|
|
32
32
|
swapOrder = 31,
|
|
33
33
|
moveSpot = 32,
|
|
34
|
-
newPrivateClient = 33
|
|
34
|
+
newPrivateClient = 33,
|
|
35
|
+
changedPoints = 34,
|
|
36
|
+
swapFees = 35,
|
|
37
|
+
vmInitActivate = 36,
|
|
38
|
+
vmInitActivateCancel = 37,
|
|
39
|
+
vmFinalizeActivate = 38,
|
|
40
|
+
vmInitDeactivate = 39,
|
|
41
|
+
vmInitDeactivateCancel = 40,
|
|
42
|
+
vmFinalizeDeactivate = 41,
|
|
43
|
+
vmChangeList = 42,
|
|
44
|
+
vmInitWithdraw = 43,
|
|
45
|
+
vmInitWithdrawCancel = 44,
|
|
46
|
+
vmInitWithdrawFinalize = 45
|
|
35
47
|
}
|
|
36
48
|
export declare class PerpChangeLeverageReportModel {
|
|
37
49
|
static readonly LENGTH: number;
|
|
@@ -299,7 +311,7 @@ export declare class SpotPlaceOrderReportModel {
|
|
|
299
311
|
time: number;
|
|
300
312
|
static fromBuffer(buffer: Buffer, offset?: number): SpotPlaceOrderReportModel;
|
|
301
313
|
}
|
|
302
|
-
export declare class
|
|
314
|
+
export declare class PlaceSwapOrderReportModel {
|
|
303
315
|
static readonly LENGTH: number;
|
|
304
316
|
static readonly OFFSET_TAG = 0;
|
|
305
317
|
static readonly OFFSET_SIDE = 1;
|
|
@@ -309,6 +321,7 @@ export declare class SwapOrderReportModel {
|
|
|
309
321
|
static readonly OFFSET_PRICE = 24;
|
|
310
322
|
static readonly OFFSET_TIME = 32;
|
|
311
323
|
static readonly OFFSET_INSTR_ID = 36;
|
|
324
|
+
static readonly OFFSET_SWAP_REF_RATE = 40;
|
|
312
325
|
tag: number;
|
|
313
326
|
side: number;
|
|
314
327
|
orderType: number;
|
|
@@ -317,7 +330,8 @@ export declare class SwapOrderReportModel {
|
|
|
317
330
|
price: number;
|
|
318
331
|
time: number;
|
|
319
332
|
instrId: number;
|
|
320
|
-
|
|
333
|
+
swapRefRate: number;
|
|
334
|
+
static fromBuffer(buffer: Buffer, offset?: number): PlaceSwapOrderReportModel;
|
|
321
335
|
}
|
|
322
336
|
export declare class PerpPlaceMassCancelReportModel {
|
|
323
337
|
static readonly LENGTH: number;
|
|
@@ -535,3 +549,133 @@ export declare class MoveSpotAvailFundsReportModel {
|
|
|
535
549
|
crncy: number;
|
|
536
550
|
static fromBuffer(buffer: Buffer, offset?: number): MoveSpotAvailFundsReportModel;
|
|
537
551
|
}
|
|
552
|
+
export declare class ChangePointsRecordModel {
|
|
553
|
+
static readonly LENGTH: number;
|
|
554
|
+
static readonly OFFSET_TAG = 0;
|
|
555
|
+
static readonly OFFSET_CLIENT_ID = 4;
|
|
556
|
+
static readonly OFFSET_POINTS = 8;
|
|
557
|
+
static readonly OFFSET_TIME = 12;
|
|
558
|
+
tag: number;
|
|
559
|
+
clientId: number;
|
|
560
|
+
points: number;
|
|
561
|
+
time: number;
|
|
562
|
+
static fromBuffer(buffer: Buffer, offset?: number): ChangePointsRecordModel;
|
|
563
|
+
}
|
|
564
|
+
export declare class SwapRefFeesReportModel {
|
|
565
|
+
static readonly LENGTH: number;
|
|
566
|
+
static readonly OFFSET_TAG = 0;
|
|
567
|
+
static readonly OFFSET_FEES = 8;
|
|
568
|
+
tag: number;
|
|
569
|
+
fees: number;
|
|
570
|
+
static fromBuffer(buffer: Buffer, offset?: number): SwapRefFeesReportModel;
|
|
571
|
+
}
|
|
572
|
+
export declare class VmInitActivateReportModel {
|
|
573
|
+
static readonly LENGTH: number;
|
|
574
|
+
static readonly OFFSET_TAG = 0;
|
|
575
|
+
static readonly OFFSET_CLIENT_ID = 4;
|
|
576
|
+
static readonly OFFSET_TIME = 8;
|
|
577
|
+
tag: number;
|
|
578
|
+
clientId: number;
|
|
579
|
+
time: number;
|
|
580
|
+
static fromBuffer(buffer: Buffer, offset?: number): VmInitActivateReportModel;
|
|
581
|
+
}
|
|
582
|
+
export declare class VmInitActivateCancelReportModel {
|
|
583
|
+
static readonly LENGTH: number;
|
|
584
|
+
static readonly OFFSET_TAG = 0;
|
|
585
|
+
static readonly OFFSET_CLIENT_ID = 4;
|
|
586
|
+
static readonly OFFSET_TIME = 8;
|
|
587
|
+
tag: number;
|
|
588
|
+
clientId: number;
|
|
589
|
+
time: number;
|
|
590
|
+
static fromBuffer(buffer: Buffer, offset?: number): VmInitActivateCancelReportModel;
|
|
591
|
+
}
|
|
592
|
+
export declare class VmFinalizeActivateReportModel {
|
|
593
|
+
static readonly LENGTH: number;
|
|
594
|
+
static readonly OFFSET_TAG = 0;
|
|
595
|
+
static readonly OFFSET_CLIENT_ID = 4;
|
|
596
|
+
static readonly OFFSET_TIME = 8;
|
|
597
|
+
tag: number;
|
|
598
|
+
clientId: number;
|
|
599
|
+
time: number;
|
|
600
|
+
static fromBuffer(buffer: Buffer, offset?: number): VmFinalizeActivateReportModel;
|
|
601
|
+
}
|
|
602
|
+
export declare class VmInitDeactivateReportModel {
|
|
603
|
+
static readonly LENGTH: number;
|
|
604
|
+
static readonly OFFSET_TAG = 0;
|
|
605
|
+
static readonly OFFSET_CLIENT_ID = 4;
|
|
606
|
+
static readonly OFFSET_TIME = 8;
|
|
607
|
+
tag: number;
|
|
608
|
+
clientId: number;
|
|
609
|
+
time: number;
|
|
610
|
+
static fromBuffer(buffer: Buffer, offset?: number): VmInitDeactivateReportModel;
|
|
611
|
+
}
|
|
612
|
+
export declare class VmInitDeactivateCancelReportModel {
|
|
613
|
+
static readonly LENGTH: number;
|
|
614
|
+
static readonly OFFSET_TAG = 0;
|
|
615
|
+
static readonly OFFSET_CLIENT_ID = 4;
|
|
616
|
+
static readonly OFFSET_TIME = 8;
|
|
617
|
+
tag: number;
|
|
618
|
+
clientId: number;
|
|
619
|
+
time: number;
|
|
620
|
+
static fromBuffer(buffer: Buffer, offset?: number): VmInitDeactivateCancelReportModel;
|
|
621
|
+
}
|
|
622
|
+
export declare class VmFinalizeDeactivateReportModel {
|
|
623
|
+
static readonly LENGTH: number;
|
|
624
|
+
static readonly OFFSET_TAG = 0;
|
|
625
|
+
static readonly OFFSET_CLIENT_ID = 4;
|
|
626
|
+
static readonly OFFSET_TIME = 8;
|
|
627
|
+
tag: number;
|
|
628
|
+
clientId: number;
|
|
629
|
+
time: number;
|
|
630
|
+
static fromBuffer(buffer: Buffer, offset?: number): VmFinalizeDeactivateReportModel;
|
|
631
|
+
}
|
|
632
|
+
export declare class VmChangeListReportModel {
|
|
633
|
+
static readonly LENGTH: number;
|
|
634
|
+
static readonly OFFSET_TAG = 0;
|
|
635
|
+
static readonly OFFSET_CLIENT_ID = 4;
|
|
636
|
+
static readonly OFFSET_TIME = 8;
|
|
637
|
+
tag: number;
|
|
638
|
+
clientId: number;
|
|
639
|
+
time: number;
|
|
640
|
+
static fromBuffer(buffer: Buffer, offset?: number): VmChangeListReportModel;
|
|
641
|
+
}
|
|
642
|
+
export declare class VmInitWithdrawReportModel {
|
|
643
|
+
static readonly LENGTH: number;
|
|
644
|
+
static readonly OFFSET_TAG = 0;
|
|
645
|
+
static readonly OFFSET_CLIENT_ID = 4;
|
|
646
|
+
static readonly OFFSET_TOKEN_ID = 8;
|
|
647
|
+
static readonly OFFSET_TIME = 12;
|
|
648
|
+
static readonly OFFSET_AMOUNT = 16;
|
|
649
|
+
tag: number;
|
|
650
|
+
clientId: number;
|
|
651
|
+
tokenId: number;
|
|
652
|
+
time: number;
|
|
653
|
+
amount: number;
|
|
654
|
+
static fromBuffer(buffer: Buffer, offset?: number): VmInitWithdrawReportModel;
|
|
655
|
+
}
|
|
656
|
+
export declare class VmInitWithdrawCancelReportModel {
|
|
657
|
+
static readonly LENGTH: number;
|
|
658
|
+
static readonly OFFSET_TAG = 0;
|
|
659
|
+
static readonly OFFSET_CLIENT_ID = 4;
|
|
660
|
+
static readonly OFFSET_TOKEN_ID = 8;
|
|
661
|
+
static readonly OFFSET_TIME = 12;
|
|
662
|
+
tag: number;
|
|
663
|
+
clientId: number;
|
|
664
|
+
tokenId: number;
|
|
665
|
+
time: number;
|
|
666
|
+
static fromBuffer(buffer: Buffer, offset?: number): VmInitWithdrawCancelReportModel;
|
|
667
|
+
}
|
|
668
|
+
export declare class VmInitWithdrawFinalizeReportModel {
|
|
669
|
+
static readonly LENGTH: number;
|
|
670
|
+
static readonly OFFSET_TAG = 0;
|
|
671
|
+
static readonly OFFSET_CLIENT_ID = 4;
|
|
672
|
+
static readonly OFFSET_TOKEN_ID = 8;
|
|
673
|
+
static readonly OFFSET_TIME = 12;
|
|
674
|
+
static readonly OFFSET_AMOUNT = 16;
|
|
675
|
+
tag: number;
|
|
676
|
+
clientId: number;
|
|
677
|
+
tokenId: number;
|
|
678
|
+
time: number;
|
|
679
|
+
amount: number;
|
|
680
|
+
static fromBuffer(buffer: Buffer, offset?: number): VmInitWithdrawFinalizeReportModel;
|
|
681
|
+
}
|
package/dist/logs_models.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MoveSpotAvailFundsReportModel = exports.SpotOrderRevokeReportModel = exports.PerpOrderRevokeReportModel = exports.SpotOrderCancelReportModel = exports.PerpOrderCancelReportModel = exports.SpotNewOrderReportModel = exports.PerpNewOrderReportModel = exports.PerpSocLossReportModel = exports.PerpFundingReportModel = exports.SpotFeesReportModel = exports.PerpFeesReportModel = exports.SpotMassCancelReportModel = exports.PerpMassCancelReportModel = exports.SpotPlaceMassCancelReportModel = exports.PerpPlaceMassCancelReportModel = exports.
|
|
3
|
+
exports.VmInitWithdrawFinalizeReportModel = exports.VmInitWithdrawCancelReportModel = exports.VmInitWithdrawReportModel = exports.VmChangeListReportModel = exports.VmFinalizeDeactivateReportModel = exports.VmInitDeactivateCancelReportModel = exports.VmInitDeactivateReportModel = exports.VmFinalizeActivateReportModel = exports.VmInitActivateCancelReportModel = exports.VmInitActivateReportModel = exports.SwapRefFeesReportModel = exports.ChangePointsRecordModel = exports.MoveSpotAvailFundsReportModel = exports.SpotOrderRevokeReportModel = exports.PerpOrderRevokeReportModel = exports.SpotOrderCancelReportModel = exports.PerpOrderCancelReportModel = exports.SpotNewOrderReportModel = exports.PerpNewOrderReportModel = exports.PerpSocLossReportModel = exports.PerpFundingReportModel = exports.SpotFeesReportModel = exports.PerpFeesReportModel = exports.SpotMassCancelReportModel = exports.PerpMassCancelReportModel = exports.SpotPlaceMassCancelReportModel = exports.PerpPlaceMassCancelReportModel = exports.PlaceSwapOrderReportModel = exports.SpotPlaceOrderReportModel = exports.PerpPlaceOrderReportModel = exports.SpotFillOrderReportModel = exports.PerpFillOrderReportModel = exports.SpotlpTradeReportModel = exports.PerpWithdrawReportModel = exports.WithdrawReportModel = exports.SellMarketSeatReportModel = exports.BuyMarketSeatReportModel = exports.PerpDepositReportModel = exports.FeesWithdrawReportModel = exports.FeesDepositReportModel = exports.DepositReportModel = exports.EarningsReportModel = exports.DrvsAirdropReportModel = exports.PerpChangeLeverageReportModel = exports.LogType = void 0;
|
|
4
4
|
const auto_buffer_1 = require("./auto_buffer");
|
|
5
5
|
var LogType;
|
|
6
6
|
(function (LogType) {
|
|
@@ -37,6 +37,18 @@ var LogType;
|
|
|
37
37
|
LogType[LogType["swapOrder"] = 31] = "swapOrder";
|
|
38
38
|
LogType[LogType["moveSpot"] = 32] = "moveSpot";
|
|
39
39
|
LogType[LogType["newPrivateClient"] = 33] = "newPrivateClient";
|
|
40
|
+
LogType[LogType["changedPoints"] = 34] = "changedPoints";
|
|
41
|
+
LogType[LogType["swapFees"] = 35] = "swapFees";
|
|
42
|
+
LogType[LogType["vmInitActivate"] = 36] = "vmInitActivate";
|
|
43
|
+
LogType[LogType["vmInitActivateCancel"] = 37] = "vmInitActivateCancel";
|
|
44
|
+
LogType[LogType["vmFinalizeActivate"] = 38] = "vmFinalizeActivate";
|
|
45
|
+
LogType[LogType["vmInitDeactivate"] = 39] = "vmInitDeactivate";
|
|
46
|
+
LogType[LogType["vmInitDeactivateCancel"] = 40] = "vmInitDeactivateCancel";
|
|
47
|
+
LogType[LogType["vmFinalizeDeactivate"] = 41] = "vmFinalizeDeactivate";
|
|
48
|
+
LogType[LogType["vmChangeList"] = 42] = "vmChangeList";
|
|
49
|
+
LogType[LogType["vmInitWithdraw"] = 43] = "vmInitWithdraw";
|
|
50
|
+
LogType[LogType["vmInitWithdrawCancel"] = 44] = "vmInitWithdrawCancel";
|
|
51
|
+
LogType[LogType["vmInitWithdrawFinalize"] = 45] = "vmInitWithdrawFinalize";
|
|
40
52
|
})(LogType || (exports.LogType = LogType = {}));
|
|
41
53
|
class PerpChangeLeverageReportModel {
|
|
42
54
|
static fromBuffer(buffer, offset) {
|
|
@@ -410,9 +422,9 @@ SpotPlaceOrderReportModel.OFFSET_QTY = 16;
|
|
|
410
422
|
SpotPlaceOrderReportModel.OFFSET_PRICE = 24;
|
|
411
423
|
SpotPlaceOrderReportModel.OFFSET_INSTR_ID = 32;
|
|
412
424
|
SpotPlaceOrderReportModel.OFFSET_TIME = 36;
|
|
413
|
-
class
|
|
425
|
+
class PlaceSwapOrderReportModel {
|
|
414
426
|
static fromBuffer(buffer, offset) {
|
|
415
|
-
const result = new
|
|
427
|
+
const result = new PlaceSwapOrderReportModel();
|
|
416
428
|
let autoBuffer = new auto_buffer_1.AutoBuffer(buffer, offset);
|
|
417
429
|
result.tag = autoBuffer.readU8();
|
|
418
430
|
result.side = autoBuffer.readU8();
|
|
@@ -424,19 +436,21 @@ class SwapOrderReportModel {
|
|
|
424
436
|
result.price = autoBuffer.readI64();
|
|
425
437
|
result.time = autoBuffer.readU32();
|
|
426
438
|
result.instrId = autoBuffer.readU32();
|
|
439
|
+
result.swapRefRate = autoBuffer.readF64();
|
|
427
440
|
return result;
|
|
428
441
|
}
|
|
429
442
|
}
|
|
430
|
-
exports.
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
443
|
+
exports.PlaceSwapOrderReportModel = PlaceSwapOrderReportModel;
|
|
444
|
+
PlaceSwapOrderReportModel.LENGTH = 4 * 1 + 3 * 4 + 4 * 8; // 48 bytes
|
|
445
|
+
PlaceSwapOrderReportModel.OFFSET_TAG = 0;
|
|
446
|
+
PlaceSwapOrderReportModel.OFFSET_SIDE = 1;
|
|
447
|
+
PlaceSwapOrderReportModel.OFFSET_ORDER_TYPE = 2;
|
|
448
|
+
PlaceSwapOrderReportModel.OFFSET_ORDER_ID = 8;
|
|
449
|
+
PlaceSwapOrderReportModel.OFFSET_QTY = 16;
|
|
450
|
+
PlaceSwapOrderReportModel.OFFSET_PRICE = 24;
|
|
451
|
+
PlaceSwapOrderReportModel.OFFSET_TIME = 32;
|
|
452
|
+
PlaceSwapOrderReportModel.OFFSET_INSTR_ID = 36;
|
|
453
|
+
PlaceSwapOrderReportModel.OFFSET_SWAP_REF_RATE = 40;
|
|
440
454
|
class PerpPlaceMassCancelReportModel {
|
|
441
455
|
static fromBuffer(buffer, offset) {
|
|
442
456
|
const result = new PerpPlaceMassCancelReportModel();
|
|
@@ -754,3 +768,219 @@ MoveSpotAvailFundsReportModel.OFFSET_INSTR_ID = 8;
|
|
|
754
768
|
MoveSpotAvailFundsReportModel.OFFSET_TIME = 12;
|
|
755
769
|
MoveSpotAvailFundsReportModel.OFFSET_QTY = 16;
|
|
756
770
|
MoveSpotAvailFundsReportModel.OFFSET_CRNCY = 24;
|
|
771
|
+
class ChangePointsRecordModel {
|
|
772
|
+
static fromBuffer(buffer, offset) {
|
|
773
|
+
const result = new ChangePointsRecordModel();
|
|
774
|
+
let autoBuffer = new auto_buffer_1.AutoBuffer(buffer, offset);
|
|
775
|
+
result.tag = autoBuffer.readU8();
|
|
776
|
+
autoBuffer.readU8();
|
|
777
|
+
autoBuffer.readU16();
|
|
778
|
+
result.clientId = autoBuffer.readU32();
|
|
779
|
+
result.points = autoBuffer.readU32();
|
|
780
|
+
result.time = autoBuffer.readU32();
|
|
781
|
+
return result;
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
exports.ChangePointsRecordModel = ChangePointsRecordModel;
|
|
785
|
+
ChangePointsRecordModel.LENGTH = 2 * 1 + 1 * 2 + 3 * 4; // 16 bytes
|
|
786
|
+
ChangePointsRecordModel.OFFSET_TAG = 0;
|
|
787
|
+
ChangePointsRecordModel.OFFSET_CLIENT_ID = 4;
|
|
788
|
+
ChangePointsRecordModel.OFFSET_POINTS = 8;
|
|
789
|
+
ChangePointsRecordModel.OFFSET_TIME = 12;
|
|
790
|
+
class SwapRefFeesReportModel {
|
|
791
|
+
static fromBuffer(buffer, offset) {
|
|
792
|
+
const result = new SwapRefFeesReportModel();
|
|
793
|
+
let autoBuffer = new auto_buffer_1.AutoBuffer(buffer, offset);
|
|
794
|
+
result.tag = autoBuffer.readU8();
|
|
795
|
+
autoBuffer.readU8();
|
|
796
|
+
autoBuffer.readU16();
|
|
797
|
+
autoBuffer.readU32();
|
|
798
|
+
result.fees = autoBuffer.readI64();
|
|
799
|
+
return result;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
exports.SwapRefFeesReportModel = SwapRefFeesReportModel;
|
|
803
|
+
SwapRefFeesReportModel.LENGTH = 2 * 1 + 1 * 2 + 1 * 4 + 1 * 8; // 16 bytes
|
|
804
|
+
SwapRefFeesReportModel.OFFSET_TAG = 0;
|
|
805
|
+
SwapRefFeesReportModel.OFFSET_FEES = 8;
|
|
806
|
+
class VmInitActivateReportModel {
|
|
807
|
+
static fromBuffer(buffer, offset) {
|
|
808
|
+
const result = new VmInitActivateReportModel();
|
|
809
|
+
let autoBuffer = new auto_buffer_1.AutoBuffer(buffer, offset);
|
|
810
|
+
result.tag = autoBuffer.readU8();
|
|
811
|
+
autoBuffer.readU8();
|
|
812
|
+
autoBuffer.readU16();
|
|
813
|
+
result.clientId = autoBuffer.readU32();
|
|
814
|
+
result.time = autoBuffer.readU32();
|
|
815
|
+
autoBuffer.readU32();
|
|
816
|
+
return result;
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
exports.VmInitActivateReportModel = VmInitActivateReportModel;
|
|
820
|
+
VmInitActivateReportModel.LENGTH = 2 * 1 + 1 * 2 + 3 * 4; // 16 bytes
|
|
821
|
+
VmInitActivateReportModel.OFFSET_TAG = 0;
|
|
822
|
+
VmInitActivateReportModel.OFFSET_CLIENT_ID = 4;
|
|
823
|
+
VmInitActivateReportModel.OFFSET_TIME = 8;
|
|
824
|
+
class VmInitActivateCancelReportModel {
|
|
825
|
+
static fromBuffer(buffer, offset) {
|
|
826
|
+
const result = new VmInitActivateCancelReportModel();
|
|
827
|
+
let autoBuffer = new auto_buffer_1.AutoBuffer(buffer, offset);
|
|
828
|
+
result.tag = autoBuffer.readU8();
|
|
829
|
+
autoBuffer.readU8();
|
|
830
|
+
autoBuffer.readU16();
|
|
831
|
+
result.clientId = autoBuffer.readU32();
|
|
832
|
+
result.time = autoBuffer.readU32();
|
|
833
|
+
return result;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
exports.VmInitActivateCancelReportModel = VmInitActivateCancelReportModel;
|
|
837
|
+
VmInitActivateCancelReportModel.LENGTH = 2 * 1 + 1 * 2 + 2 * 4; // 12 bytes
|
|
838
|
+
VmInitActivateCancelReportModel.OFFSET_TAG = 0;
|
|
839
|
+
VmInitActivateCancelReportModel.OFFSET_CLIENT_ID = 4;
|
|
840
|
+
VmInitActivateCancelReportModel.OFFSET_TIME = 8;
|
|
841
|
+
class VmFinalizeActivateReportModel {
|
|
842
|
+
static fromBuffer(buffer, offset) {
|
|
843
|
+
const result = new VmFinalizeActivateReportModel();
|
|
844
|
+
let autoBuffer = new auto_buffer_1.AutoBuffer(buffer, offset);
|
|
845
|
+
result.tag = autoBuffer.readU8();
|
|
846
|
+
autoBuffer.readU8();
|
|
847
|
+
autoBuffer.readU16();
|
|
848
|
+
result.clientId = autoBuffer.readU32();
|
|
849
|
+
result.time = autoBuffer.readU32();
|
|
850
|
+
return result;
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
exports.VmFinalizeActivateReportModel = VmFinalizeActivateReportModel;
|
|
854
|
+
VmFinalizeActivateReportModel.LENGTH = 2 * 1 + 1 * 2 + 2 * 4; // 12 bytes
|
|
855
|
+
VmFinalizeActivateReportModel.OFFSET_TAG = 0;
|
|
856
|
+
VmFinalizeActivateReportModel.OFFSET_CLIENT_ID = 4;
|
|
857
|
+
VmFinalizeActivateReportModel.OFFSET_TIME = 8;
|
|
858
|
+
class VmInitDeactivateReportModel {
|
|
859
|
+
static fromBuffer(buffer, offset) {
|
|
860
|
+
const result = new VmInitDeactivateReportModel();
|
|
861
|
+
let autoBuffer = new auto_buffer_1.AutoBuffer(buffer, offset);
|
|
862
|
+
result.tag = autoBuffer.readU8();
|
|
863
|
+
autoBuffer.readU8();
|
|
864
|
+
autoBuffer.readU16();
|
|
865
|
+
result.clientId = autoBuffer.readU32();
|
|
866
|
+
result.time = autoBuffer.readU32();
|
|
867
|
+
return result;
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
exports.VmInitDeactivateReportModel = VmInitDeactivateReportModel;
|
|
871
|
+
VmInitDeactivateReportModel.LENGTH = 2 * 1 + 1 * 2 + 2 * 4; // 12 bytes
|
|
872
|
+
VmInitDeactivateReportModel.OFFSET_TAG = 0;
|
|
873
|
+
VmInitDeactivateReportModel.OFFSET_CLIENT_ID = 4;
|
|
874
|
+
VmInitDeactivateReportModel.OFFSET_TIME = 8;
|
|
875
|
+
class VmInitDeactivateCancelReportModel {
|
|
876
|
+
static fromBuffer(buffer, offset) {
|
|
877
|
+
const result = new VmInitDeactivateCancelReportModel();
|
|
878
|
+
let autoBuffer = new auto_buffer_1.AutoBuffer(buffer, offset);
|
|
879
|
+
result.tag = autoBuffer.readU8();
|
|
880
|
+
autoBuffer.readU8();
|
|
881
|
+
autoBuffer.readU16();
|
|
882
|
+
result.clientId = autoBuffer.readU32();
|
|
883
|
+
result.time = autoBuffer.readU32();
|
|
884
|
+
return result;
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
exports.VmInitDeactivateCancelReportModel = VmInitDeactivateCancelReportModel;
|
|
888
|
+
VmInitDeactivateCancelReportModel.LENGTH = 2 * 1 + 1 * 2 + 2 * 4; // 12 bytes
|
|
889
|
+
VmInitDeactivateCancelReportModel.OFFSET_TAG = 0;
|
|
890
|
+
VmInitDeactivateCancelReportModel.OFFSET_CLIENT_ID = 4;
|
|
891
|
+
VmInitDeactivateCancelReportModel.OFFSET_TIME = 8;
|
|
892
|
+
class VmFinalizeDeactivateReportModel {
|
|
893
|
+
static fromBuffer(buffer, offset) {
|
|
894
|
+
const result = new VmFinalizeDeactivateReportModel();
|
|
895
|
+
let autoBuffer = new auto_buffer_1.AutoBuffer(buffer, offset);
|
|
896
|
+
result.tag = autoBuffer.readU8();
|
|
897
|
+
autoBuffer.readU8();
|
|
898
|
+
autoBuffer.readU16();
|
|
899
|
+
result.clientId = autoBuffer.readU32();
|
|
900
|
+
result.time = autoBuffer.readU32();
|
|
901
|
+
return result;
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
exports.VmFinalizeDeactivateReportModel = VmFinalizeDeactivateReportModel;
|
|
905
|
+
VmFinalizeDeactivateReportModel.LENGTH = 2 * 1 + 1 * 2 + 2 * 4; // 12 bytes
|
|
906
|
+
VmFinalizeDeactivateReportModel.OFFSET_TAG = 0;
|
|
907
|
+
VmFinalizeDeactivateReportModel.OFFSET_CLIENT_ID = 4;
|
|
908
|
+
VmFinalizeDeactivateReportModel.OFFSET_TIME = 8;
|
|
909
|
+
class VmChangeListReportModel {
|
|
910
|
+
static fromBuffer(buffer, offset) {
|
|
911
|
+
const result = new VmChangeListReportModel();
|
|
912
|
+
let autoBuffer = new auto_buffer_1.AutoBuffer(buffer, offset);
|
|
913
|
+
result.tag = autoBuffer.readU8();
|
|
914
|
+
autoBuffer.readU8();
|
|
915
|
+
autoBuffer.readU16();
|
|
916
|
+
result.clientId = autoBuffer.readU32();
|
|
917
|
+
result.time = autoBuffer.readU32();
|
|
918
|
+
return result;
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
exports.VmChangeListReportModel = VmChangeListReportModel;
|
|
922
|
+
VmChangeListReportModel.LENGTH = 2 * 1 + 1 * 2 + 2 * 4; // 12 bytes
|
|
923
|
+
VmChangeListReportModel.OFFSET_TAG = 0;
|
|
924
|
+
VmChangeListReportModel.OFFSET_CLIENT_ID = 4;
|
|
925
|
+
VmChangeListReportModel.OFFSET_TIME = 8;
|
|
926
|
+
class VmInitWithdrawReportModel {
|
|
927
|
+
static fromBuffer(buffer, offset) {
|
|
928
|
+
const result = new VmInitWithdrawReportModel();
|
|
929
|
+
let autoBuffer = new auto_buffer_1.AutoBuffer(buffer, offset);
|
|
930
|
+
result.tag = autoBuffer.readU8();
|
|
931
|
+
autoBuffer.readU8();
|
|
932
|
+
autoBuffer.readU16();
|
|
933
|
+
result.clientId = autoBuffer.readU32();
|
|
934
|
+
result.tokenId = autoBuffer.readU32();
|
|
935
|
+
result.time = autoBuffer.readU32();
|
|
936
|
+
result.amount = autoBuffer.readI64();
|
|
937
|
+
return result;
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
exports.VmInitWithdrawReportModel = VmInitWithdrawReportModel;
|
|
941
|
+
VmInitWithdrawReportModel.LENGTH = 2 * 1 + 1 * 2 + 3 * 4 + 1 * 8; // 24 bytes
|
|
942
|
+
VmInitWithdrawReportModel.OFFSET_TAG = 0;
|
|
943
|
+
VmInitWithdrawReportModel.OFFSET_CLIENT_ID = 4;
|
|
944
|
+
VmInitWithdrawReportModel.OFFSET_TOKEN_ID = 8;
|
|
945
|
+
VmInitWithdrawReportModel.OFFSET_TIME = 12;
|
|
946
|
+
VmInitWithdrawReportModel.OFFSET_AMOUNT = 16;
|
|
947
|
+
class VmInitWithdrawCancelReportModel {
|
|
948
|
+
static fromBuffer(buffer, offset) {
|
|
949
|
+
const result = new VmInitWithdrawCancelReportModel();
|
|
950
|
+
let autoBuffer = new auto_buffer_1.AutoBuffer(buffer, offset);
|
|
951
|
+
result.tag = autoBuffer.readU8();
|
|
952
|
+
autoBuffer.readU8();
|
|
953
|
+
autoBuffer.readU16();
|
|
954
|
+
result.clientId = autoBuffer.readU32();
|
|
955
|
+
result.tokenId = autoBuffer.readU32();
|
|
956
|
+
result.time = autoBuffer.readU32();
|
|
957
|
+
return result;
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
exports.VmInitWithdrawCancelReportModel = VmInitWithdrawCancelReportModel;
|
|
961
|
+
VmInitWithdrawCancelReportModel.LENGTH = 2 * 1 + 1 * 2 + 3 * 4; // 16 bytes
|
|
962
|
+
VmInitWithdrawCancelReportModel.OFFSET_TAG = 0;
|
|
963
|
+
VmInitWithdrawCancelReportModel.OFFSET_CLIENT_ID = 4;
|
|
964
|
+
VmInitWithdrawCancelReportModel.OFFSET_TOKEN_ID = 8;
|
|
965
|
+
VmInitWithdrawCancelReportModel.OFFSET_TIME = 12;
|
|
966
|
+
class VmInitWithdrawFinalizeReportModel {
|
|
967
|
+
static fromBuffer(buffer, offset) {
|
|
968
|
+
const result = new VmInitWithdrawFinalizeReportModel();
|
|
969
|
+
let autoBuffer = new auto_buffer_1.AutoBuffer(buffer, offset);
|
|
970
|
+
result.tag = autoBuffer.readU8();
|
|
971
|
+
autoBuffer.readU8();
|
|
972
|
+
autoBuffer.readU16();
|
|
973
|
+
result.clientId = autoBuffer.readU32();
|
|
974
|
+
result.tokenId = autoBuffer.readU32();
|
|
975
|
+
result.time = autoBuffer.readU32();
|
|
976
|
+
result.amount = autoBuffer.readI64();
|
|
977
|
+
return result;
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
exports.VmInitWithdrawFinalizeReportModel = VmInitWithdrawFinalizeReportModel;
|
|
981
|
+
VmInitWithdrawFinalizeReportModel.LENGTH = 2 * 1 + 1 * 2 + 3 * 4 + 1 * 8; // 24 bytes
|
|
982
|
+
VmInitWithdrawFinalizeReportModel.OFFSET_TAG = 0;
|
|
983
|
+
VmInitWithdrawFinalizeReportModel.OFFSET_CLIENT_ID = 4;
|
|
984
|
+
VmInitWithdrawFinalizeReportModel.OFFSET_TOKEN_ID = 8;
|
|
985
|
+
VmInitWithdrawFinalizeReportModel.OFFSET_TIME = 12;
|
|
986
|
+
VmInitWithdrawFinalizeReportModel.OFFSET_AMOUNT = 16;
|