@deriverse/kit 1.0.24 → 1.0.25

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.
@@ -35,7 +35,6 @@ var AccountType;
35
35
  AccountType[AccountType["spotAsksTree"] = 15] = "spotAsksTree";
36
36
  AccountType[AccountType["spotBidOrders"] = 16] = "spotBidOrders";
37
37
  AccountType[AccountType["spotBidsTree"] = 14] = "spotBidsTree";
38
- AccountType[AccountType["spotClientAccounts"] = 11] = "spotClientAccounts";
39
38
  AccountType[AccountType["spotClientInfos"] = 12] = "spotClientInfos";
40
39
  AccountType[AccountType["spotClientInfos2"] = 13] = "spotClientInfos2";
41
40
  AccountType[AccountType["spotDayCandles"] = 21] = "spotDayCandles";
@@ -46,7 +45,6 @@ var AccountType;
46
45
  AccountType[AccountType["perpAsksTree"] = 37] = "perpAsksTree";
47
46
  AccountType[AccountType["perpBidOrders"] = 38] = "perpBidOrders";
48
47
  AccountType[AccountType["perpBidsTree"] = 39] = "perpBidsTree";
49
- AccountType[AccountType["perpClientAccounts"] = 40] = "perpClientAccounts";
50
48
  AccountType[AccountType["perpClientInfos"] = 41] = "perpClientInfos";
51
49
  AccountType[AccountType["perpClientInfos2"] = 42] = "perpClientInfos2";
52
50
  AccountType[AccountType["perpClientInfos3"] = 43] = "perpClientInfos3";
@@ -57,7 +55,6 @@ var AccountType;
57
55
  AccountType[AccountType["perpLongPxTree"] = 48] = "perpLongPxTree";
58
56
  AccountType[AccountType["perpShortPxTree"] = 49] = "perpShortPxTree";
59
57
  AccountType[AccountType["perpRebalanceTimeTree"] = 50] = "perpRebalanceTimeTree";
60
- AccountType[AccountType["perpPriorityTree"] = 51] = "perpPriorityTree";
61
58
  })(AccountType || (exports.AccountType = AccountType = {}));
62
59
  class ClientCommunityRecordModel {
63
60
  static fromBuffer(data, offset) {
@@ -67,6 +64,7 @@ class ClientCommunityRecordModel {
67
64
  result.dividendsValue = autoData.readI64();
68
65
  result.feesPrepayment = autoData.readI64();
69
66
  result.feesRatio = autoData.readF64();
67
+ result.refRewards = autoData.readI64();
70
68
  result.refPayments = autoData.readI64();
71
69
  result.lastFeesPrepaymentTime = autoData.readU32();
72
70
  result.crncyTokenId = autoData.readU32();
@@ -74,14 +72,15 @@ class ClientCommunityRecordModel {
74
72
  }
75
73
  }
76
74
  exports.ClientCommunityRecordModel = ClientCommunityRecordModel;
77
- ClientCommunityRecordModel.LENGTH = 2 * 4 + 5 * 8; // 48 bytes
75
+ ClientCommunityRecordModel.LENGTH = 2 * 4 + 6 * 8; // 56 bytes
78
76
  ClientCommunityRecordModel.OFFSET_DIVIDENDS_RATE = 0;
79
77
  ClientCommunityRecordModel.OFFSET_DIVIDENDS_VALUE = 8;
80
78
  ClientCommunityRecordModel.OFFSET_FEES_PREPAYMENT = 16;
81
79
  ClientCommunityRecordModel.OFFSET_FEES_RATIO = 24;
82
- ClientCommunityRecordModel.OFFSET_REF_PAYMENTS = 32;
83
- ClientCommunityRecordModel.OFFSET_LAST_FEES_PREPAYMENT_TIME = 40;
84
- ClientCommunityRecordModel.OFFSET_CRNCY_TOKEN_ID = 44;
80
+ ClientCommunityRecordModel.OFFSET_REF_REWARDS = 32;
81
+ ClientCommunityRecordModel.OFFSET_REF_PAYMENTS = 40;
82
+ ClientCommunityRecordModel.OFFSET_LAST_FEES_PREPAYMENT_TIME = 48;
83
+ ClientCommunityRecordModel.OFFSET_CRNCY_TOKEN_ID = 52;
85
84
  class ClientCommunityAccountHeaderModel {
86
85
  static fromBuffer(data, offset) {
87
86
  const result = new ClientCommunityAccountHeaderModel();
@@ -138,18 +137,24 @@ class CommunityAccountHeaderModel {
138
137
  result.votingEndTime = autoData.readU32();
139
138
  result.spotFeeRate = autoData.readU32();
140
139
  result.perpFeeRate = autoData.readU32();
141
- result.futuresFeeRate = autoData.readU32();
142
- result.optionsFeeRate = autoData.readU32();
143
140
  result.spotPoolRatio = autoData.readU32();
144
- result.optionsPoolRatio = autoData.readU32();
145
141
  result.marginCallPenaltyRate = autoData.readU32();
146
142
  result.feesPrepaymentForMaxDiscount = autoData.readU32();
143
+ result.maxDiscount = autoData.readU32();
144
+ result.reservedValue1 = autoData.readU32();
145
+ result.reservedValue2 = autoData.readU32();
146
+ result.reservedValue3 = autoData.readU32();
147
+ result.reservedValue4 = autoData.readU32();
148
+ result.reservedValue5 = autoData.readU32();
149
+ result.reservedValue6 = autoData.readU32();
150
+ result.reservedValue7 = autoData.readU32();
151
+ result.reservedValue8 = autoData.readU32();
147
152
  result.count = autoData.readU32();
148
153
  return result;
149
154
  }
150
155
  }
151
156
  exports.CommunityAccountHeaderModel = CommunityAccountHeaderModel;
152
- CommunityAccountHeaderModel.LENGTH = 14 * 4 + 10 * 8; // 136 bytes
157
+ CommunityAccountHeaderModel.LENGTH = 20 * 4 + 10 * 8; // 160 bytes
153
158
  CommunityAccountHeaderModel.OFFSET_TAG = 0;
154
159
  CommunityAccountHeaderModel.OFFSET_VERSION = 4;
155
160
  CommunityAccountHeaderModel.OFFSET_DRVS_TOKENS = 8;
@@ -167,13 +172,19 @@ CommunityAccountHeaderModel.OFFSET_VOTING_START_SLOT = 92;
167
172
  CommunityAccountHeaderModel.OFFSET_VOTING_END_TIME = 96;
168
173
  CommunityAccountHeaderModel.OFFSET_SPOT_FEE_RATE = 100;
169
174
  CommunityAccountHeaderModel.OFFSET_PERP_FEE_RATE = 104;
170
- CommunityAccountHeaderModel.OFFSET_FUTURES_FEE_RATE = 108;
171
- CommunityAccountHeaderModel.OFFSET_OPTIONS_FEE_RATE = 112;
172
- CommunityAccountHeaderModel.OFFSET_SPOT_POOL_RATIO = 116;
173
- CommunityAccountHeaderModel.OFFSET_OPTIONS_POOL_RATIO = 120;
174
- CommunityAccountHeaderModel.OFFSET_MARGIN_CALL_PENALTY_RATE = 124;
175
- CommunityAccountHeaderModel.OFFSET_FEES_PREPAYMENT_FOR_MAX_DISCOUNT = 128;
176
- CommunityAccountHeaderModel.OFFSET_COUNT = 132;
175
+ CommunityAccountHeaderModel.OFFSET_SPOT_POOL_RATIO = 108;
176
+ CommunityAccountHeaderModel.OFFSET_MARGIN_CALL_PENALTY_RATE = 112;
177
+ CommunityAccountHeaderModel.OFFSET_FEES_PREPAYMENT_FOR_MAX_DISCOUNT = 116;
178
+ CommunityAccountHeaderModel.OFFSET_MAX_DISCOUNT = 120;
179
+ CommunityAccountHeaderModel.OFFSET_RESERVED_VALUE1 = 124;
180
+ CommunityAccountHeaderModel.OFFSET_RESERVED_VALUE2 = 128;
181
+ CommunityAccountHeaderModel.OFFSET_RESERVED_VALUE3 = 132;
182
+ CommunityAccountHeaderModel.OFFSET_RESERVED_VALUE4 = 136;
183
+ CommunityAccountHeaderModel.OFFSET_RESERVED_VALUE5 = 140;
184
+ CommunityAccountHeaderModel.OFFSET_RESERVED_VALUE6 = 144;
185
+ CommunityAccountHeaderModel.OFFSET_RESERVED_VALUE7 = 148;
186
+ CommunityAccountHeaderModel.OFFSET_RESERVED_VALUE8 = 152;
187
+ CommunityAccountHeaderModel.OFFSET_COUNT = 156;
177
188
  class SpotTradeAccountHeaderModel {
178
189
  static fromBuffer(data, offset) {
179
190
  const result = new SpotTradeAccountHeaderModel();
@@ -247,18 +258,16 @@ class OperatorModel {
247
258
  const result = new OperatorModel();
248
259
  let autoData = new auto_data_1.AutoData(data, offset);
249
260
  result.operatorAddress = autoData.readAddress();
250
- result.rootAddress = autoData.readAddress();
251
261
  result.version = autoData.readU32();
252
262
  result.reserved = autoData.readU32();
253
263
  return result;
254
264
  }
255
265
  }
256
266
  exports.OperatorModel = OperatorModel;
257
- OperatorModel.LENGTH = 2 * 4 + 2 * 32; // 72 bytes
267
+ OperatorModel.LENGTH = 2 * 4 + 1 * 32; // 40 bytes
258
268
  OperatorModel.OFFSET_OPERATOR_ADDRESS = 0;
259
- OperatorModel.OFFSET_ROOT_ADDRESS = 32;
260
- OperatorModel.OFFSET_VERSION = 64;
261
- OperatorModel.OFFSET_RESERVED = 68;
269
+ OperatorModel.OFFSET_VERSION = 32;
270
+ OperatorModel.OFFSET_RESERVED = 36;
262
271
  class LineQuotesModel {
263
272
  static fromBuffer(data, offset) {
264
273
  const result = new LineQuotesModel();
@@ -341,7 +350,7 @@ class InstrAccountHeaderModel {
341
350
  let autoData = new auto_data_1.AutoData(data, offset);
342
351
  result.tag = autoData.readU32();
343
352
  result.version = autoData.readU32();
344
- result.id = autoData.readU32();
353
+ result.instrId = autoData.readU32();
345
354
  result.assetTokenId = autoData.readU32();
346
355
  result.crncyTokenId = autoData.readU32();
347
356
  result.mask = autoData.readU32();
@@ -389,7 +398,6 @@ class InstrAccountHeaderModel {
389
398
  result.bestBid = autoData.readI64();
390
399
  result.bestAsk = autoData.readI64();
391
400
  result.fixingPx = autoData.readI64();
392
- result.lastHourPx = autoData.readI64();
393
401
  result.variance = autoData.readF64();
394
402
  result.avgSpread = autoData.readF64();
395
403
  result.lastSpread = autoData.readF64();
@@ -410,14 +418,6 @@ class InstrAccountHeaderModel {
410
418
  result.lpPrevDayTrades = autoData.readU32();
411
419
  result.alltimeTrades = autoData.readI64();
412
420
  result.decFactor = autoData.readI64();
413
- result.optionsPoolTokenId = autoData.readU32();
414
- result.optionsPoolClientId = autoData.readU32();
415
- result.optionsPoolSupply = autoData.readI64();
416
- result.optionsPoolExposure = autoData.readI64();
417
- result.optionsPoolEstPayoff = autoData.readI64();
418
- result.optionsPoolFinalPayoff = autoData.readI64();
419
- result.optionsPoolFunds = autoData.readI64();
420
- result.optionsPoolTokenPx = autoData.readI64();
421
421
  result.perpClientsCount = autoData.readU32();
422
422
  result.perpSlot = autoData.readU32();
423
423
  result.perpTime = autoData.readU32();
@@ -429,8 +429,6 @@ class InstrAccountHeaderModel {
429
429
  result.perpShortPxTreeEntry = autoData.readU32();
430
430
  result.perpRebalanceTimeTreeNodesCount = autoData.readU32();
431
431
  result.perpRebalanceTimeTreeEntry = autoData.readU32();
432
- result.perpPriorityTreeNodesCount = autoData.readU32();
433
- result.perpPriorityTreeEntry = autoData.readU32();
434
432
  result.perpBidsTreeNodesCount = autoData.readU32();
435
433
  result.perpBidsTreeLinesEntry = autoData.readU32();
436
434
  result.perpBidsTreeOrdersEntry = autoData.readU32();
@@ -472,14 +470,28 @@ class InstrAccountHeaderModel {
472
470
  result.perpPrevDayCrncyTokens = autoData.readI64();
473
471
  result.perpAlltimeAssetTokens = autoData.readF64();
474
472
  result.perpAlltimeCrncyTokens = autoData.readF64();
473
+ result.maxLeverage = autoData.readF64();
474
+ result.dayVolatility = autoData.readF64();
475
+ result.liquidationThreshold = autoData.readF64();
476
+ result.reservedValue1 = autoData.readI64();
477
+ result.reservedValue2 = autoData.readI64();
478
+ result.reservedValue3 = autoData.readI64();
479
+ result.reservedValue4 = autoData.readI64();
480
+ result.reservedValue5 = autoData.readI64();
481
+ result.reservedValue6 = autoData.readI64();
482
+ result.reservedValue7 = autoData.readI64();
483
+ result.reservedValue8 = autoData.readI64();
484
+ result.reservedValue9 = autoData.readI64();
485
+ result.reservedValue10 = autoData.readI64();
486
+ result.seatsReserve = autoData.readI64();
475
487
  return result;
476
488
  }
477
489
  }
478
490
  exports.InstrAccountHeaderModel = InstrAccountHeaderModel;
479
- InstrAccountHeaderModel.LENGTH = 68 * 4 + 61 * 8 + 4 * 32; // 888 bytes
491
+ InstrAccountHeaderModel.LENGTH = 64 * 4 + 68 * 8 + 4 * 32; // 928 bytes
480
492
  InstrAccountHeaderModel.OFFSET_TAG = 0;
481
493
  InstrAccountHeaderModel.OFFSET_VERSION = 4;
482
- InstrAccountHeaderModel.OFFSET_ID = 8;
494
+ InstrAccountHeaderModel.OFFSET_INSTR_ID = 8;
483
495
  InstrAccountHeaderModel.OFFSET_ASSET_TOKEN_ID = 12;
484
496
  InstrAccountHeaderModel.OFFSET_CRNCY_TOKEN_ID = 16;
485
497
  InstrAccountHeaderModel.OFFSET_MASK = 20;
@@ -527,89 +539,92 @@ InstrAccountHeaderModel.OFFSET_LAST_PX = 344;
527
539
  InstrAccountHeaderModel.OFFSET_BEST_BID = 352;
528
540
  InstrAccountHeaderModel.OFFSET_BEST_ASK = 360;
529
541
  InstrAccountHeaderModel.OFFSET_FIXING_PX = 368;
530
- InstrAccountHeaderModel.OFFSET_LAST_HOUR_PX = 376;
531
- InstrAccountHeaderModel.OFFSET_VARIANCE = 384;
532
- InstrAccountHeaderModel.OFFSET_AVG_SPREAD = 392;
533
- InstrAccountHeaderModel.OFFSET_LAST_SPREAD = 400;
534
- InstrAccountHeaderModel.OFFSET_LAST_SPREAD_TIME = 408;
535
- InstrAccountHeaderModel.OFFSET_TOTAL_SPREAD_PERIOD = 412;
536
- InstrAccountHeaderModel.OFFSET_LAST_CLOSE = 416;
537
- InstrAccountHeaderModel.OFFSET_DAY_ASSET_TOKENS = 424;
538
- InstrAccountHeaderModel.OFFSET_DAY_CRNCY_TOKENS = 432;
539
- InstrAccountHeaderModel.OFFSET_DAY_LOW = 440;
540
- InstrAccountHeaderModel.OFFSET_DAY_HIGH = 448;
541
- InstrAccountHeaderModel.OFFSET_PREV_DAY_ASSET_TOKENS = 456;
542
- InstrAccountHeaderModel.OFFSET_PREV_DAY_CRNCY_TOKENS = 464;
543
- InstrAccountHeaderModel.OFFSET_ALLTIME_ASSET_TOKENS = 472;
544
- InstrAccountHeaderModel.OFFSET_ALLTIME_CRNCY_TOKENS = 480;
545
- InstrAccountHeaderModel.OFFSET_DAY_TRADES = 488;
546
- InstrAccountHeaderModel.OFFSET_PREV_DAY_TRADES = 492;
547
- InstrAccountHeaderModel.OFFSET_LP_DAY_TRADES = 496;
548
- InstrAccountHeaderModel.OFFSET_LP_PREV_DAY_TRADES = 500;
549
- InstrAccountHeaderModel.OFFSET_ALLTIME_TRADES = 504;
550
- InstrAccountHeaderModel.OFFSET_DEC_FACTOR = 512;
551
- InstrAccountHeaderModel.OFFSET_OPTIONS_POOL_TOKEN_ID = 520;
552
- InstrAccountHeaderModel.OFFSET_OPTIONS_POOL_CLIENT_ID = 524;
553
- InstrAccountHeaderModel.OFFSET_OPTIONS_POOL_SUPPLY = 528;
554
- InstrAccountHeaderModel.OFFSET_OPTIONS_POOL_EXPOSURE = 536;
555
- InstrAccountHeaderModel.OFFSET_OPTIONS_POOL_EST_PAYOFF = 544;
556
- InstrAccountHeaderModel.OFFSET_OPTIONS_POOL_FINAL_PAYOFF = 552;
557
- InstrAccountHeaderModel.OFFSET_OPTIONS_POOL_FUNDS = 560;
558
- InstrAccountHeaderModel.OFFSET_OPTIONS_POOL_TOKEN_PX = 568;
559
- InstrAccountHeaderModel.OFFSET_PERP_CLIENTS_COUNT = 576;
560
- InstrAccountHeaderModel.OFFSET_PERP_SLOT = 580;
561
- InstrAccountHeaderModel.OFFSET_PERP_TIME = 584;
562
- InstrAccountHeaderModel.OFFSET_PERP_FUNDING_RATE_SLOT = 588;
563
- InstrAccountHeaderModel.OFFSET_PERP_FUNDING_RATE_TIME = 592;
564
- InstrAccountHeaderModel.OFFSET_PERP_LONG_PX_TREE_NODES_COUNT = 596;
565
- InstrAccountHeaderModel.OFFSET_PERP_LONG_PX_TREE_ENTRY = 600;
566
- InstrAccountHeaderModel.OFFSET_PERP_SHORT_PX_TREE_NODES_COUNT = 604;
567
- InstrAccountHeaderModel.OFFSET_PERP_SHORT_PX_TREE_ENTRY = 608;
568
- InstrAccountHeaderModel.OFFSET_PERP_REBALANCE_TIME_TREE_NODES_COUNT = 612;
569
- InstrAccountHeaderModel.OFFSET_PERP_REBALANCE_TIME_TREE_ENTRY = 616;
570
- InstrAccountHeaderModel.OFFSET_PERP_PRIORITY_TREE_NODES_COUNT = 620;
571
- InstrAccountHeaderModel.OFFSET_PERP_PRIORITY_TREE_ENTRY = 624;
572
- InstrAccountHeaderModel.OFFSET_PERP_BIDS_TREE_NODES_COUNT = 628;
573
- InstrAccountHeaderModel.OFFSET_PERP_BIDS_TREE_LINES_ENTRY = 632;
574
- InstrAccountHeaderModel.OFFSET_PERP_BIDS_TREE_ORDERS_ENTRY = 636;
575
- InstrAccountHeaderModel.OFFSET_PERP_ASKS_TREE_NODES_COUNT = 640;
576
- InstrAccountHeaderModel.OFFSET_PERP_ASKS_TREE_LINES_ENTRY = 644;
577
- InstrAccountHeaderModel.OFFSET_PERP_ASKS_TREE_ORDERS_ENTRY = 648;
578
- InstrAccountHeaderModel.OFFSET_PERP_BID_LINES_BEGIN = 652;
579
- InstrAccountHeaderModel.OFFSET_PERP_BID_LINES_END = 656;
580
- InstrAccountHeaderModel.OFFSET_PERP_BID_LINES_COUNT = 660;
581
- InstrAccountHeaderModel.OFFSET_PERP_ASK_LINES_BEGIN = 664;
582
- InstrAccountHeaderModel.OFFSET_PERP_ASK_LINES_END = 668;
583
- InstrAccountHeaderModel.OFFSET_PERP_ASK_LINES_COUNT = 672;
584
- InstrAccountHeaderModel.OFFSET_PERP_BID_ORDERS_COUNT = 676;
585
- InstrAccountHeaderModel.OFFSET_PERP_ASK_ORDERS_COUNT = 680;
586
- InstrAccountHeaderModel.OFFSET_PERP_DAY_TRADES = 684;
587
- InstrAccountHeaderModel.OFFSET_PERP_PREV_DAY_TRADES = 688;
588
- InstrAccountHeaderModel.OFFSET_RESERVED = 692;
589
- InstrAccountHeaderModel.OFFSET_PERP_ALLTIME_TRADES = 696;
590
- InstrAccountHeaderModel.OFFSET_PERP_SPOT_PRICE_FOR_WITHDROWAL = 704;
591
- InstrAccountHeaderModel.OFFSET_PERP_SOC_LOSS_LONG_RATE = 712;
592
- InstrAccountHeaderModel.OFFSET_PERP_SOC_LOSS_SHORT_RATE = 720;
593
- InstrAccountHeaderModel.OFFSET_PERP_OPEN_INT = 728;
594
- InstrAccountHeaderModel.OFFSET_PERP_PRICE_DELTA = 736;
595
- InstrAccountHeaderModel.OFFSET_PERP_FUNDING_RATE = 744;
596
- InstrAccountHeaderModel.OFFSET_PERP_FUNDING_FUNDS = 752;
597
- InstrAccountHeaderModel.OFFSET_PERP_SOC_LOSS_FUNDS = 760;
598
- InstrAccountHeaderModel.OFFSET_PERP_INSURANCE_FUND = 768;
599
- InstrAccountHeaderModel.OFFSET_PERP_LAST_CLOSE = 776;
600
- InstrAccountHeaderModel.OFFSET_PERP_LAST_ASSET_TOKENS = 784;
601
- InstrAccountHeaderModel.OFFSET_PERP_LAST_CRNCY_TOKENS = 792;
602
- InstrAccountHeaderModel.OFFSET_PERP_LAST_PX = 800;
603
- InstrAccountHeaderModel.OFFSET_PERP_BEST_BID = 808;
604
- InstrAccountHeaderModel.OFFSET_PERP_BEST_ASK = 816;
605
- InstrAccountHeaderModel.OFFSET_PERP_DAY_ASSET_TOKENS = 824;
606
- InstrAccountHeaderModel.OFFSET_PERP_DAY_CRNCY_TOKENS = 832;
607
- InstrAccountHeaderModel.OFFSET_PERP_DAY_LOW = 840;
608
- InstrAccountHeaderModel.OFFSET_PERP_DAY_HIGH = 848;
609
- InstrAccountHeaderModel.OFFSET_PERP_PREV_DAY_ASSET_TOKENS = 856;
610
- InstrAccountHeaderModel.OFFSET_PERP_PREV_DAY_CRNCY_TOKENS = 864;
611
- InstrAccountHeaderModel.OFFSET_PERP_ALLTIME_ASSET_TOKENS = 872;
612
- InstrAccountHeaderModel.OFFSET_PERP_ALLTIME_CRNCY_TOKENS = 880;
542
+ InstrAccountHeaderModel.OFFSET_VARIANCE = 376;
543
+ InstrAccountHeaderModel.OFFSET_AVG_SPREAD = 384;
544
+ InstrAccountHeaderModel.OFFSET_LAST_SPREAD = 392;
545
+ InstrAccountHeaderModel.OFFSET_LAST_SPREAD_TIME = 400;
546
+ InstrAccountHeaderModel.OFFSET_TOTAL_SPREAD_PERIOD = 404;
547
+ InstrAccountHeaderModel.OFFSET_LAST_CLOSE = 408;
548
+ InstrAccountHeaderModel.OFFSET_DAY_ASSET_TOKENS = 416;
549
+ InstrAccountHeaderModel.OFFSET_DAY_CRNCY_TOKENS = 424;
550
+ InstrAccountHeaderModel.OFFSET_DAY_LOW = 432;
551
+ InstrAccountHeaderModel.OFFSET_DAY_HIGH = 440;
552
+ InstrAccountHeaderModel.OFFSET_PREV_DAY_ASSET_TOKENS = 448;
553
+ InstrAccountHeaderModel.OFFSET_PREV_DAY_CRNCY_TOKENS = 456;
554
+ InstrAccountHeaderModel.OFFSET_ALLTIME_ASSET_TOKENS = 464;
555
+ InstrAccountHeaderModel.OFFSET_ALLTIME_CRNCY_TOKENS = 472;
556
+ InstrAccountHeaderModel.OFFSET_DAY_TRADES = 480;
557
+ InstrAccountHeaderModel.OFFSET_PREV_DAY_TRADES = 484;
558
+ InstrAccountHeaderModel.OFFSET_LP_DAY_TRADES = 488;
559
+ InstrAccountHeaderModel.OFFSET_LP_PREV_DAY_TRADES = 492;
560
+ InstrAccountHeaderModel.OFFSET_ALLTIME_TRADES = 496;
561
+ InstrAccountHeaderModel.OFFSET_DEC_FACTOR = 504;
562
+ InstrAccountHeaderModel.OFFSET_PERP_CLIENTS_COUNT = 512;
563
+ InstrAccountHeaderModel.OFFSET_PERP_SLOT = 516;
564
+ InstrAccountHeaderModel.OFFSET_PERP_TIME = 520;
565
+ InstrAccountHeaderModel.OFFSET_PERP_FUNDING_RATE_SLOT = 524;
566
+ InstrAccountHeaderModel.OFFSET_PERP_FUNDING_RATE_TIME = 528;
567
+ InstrAccountHeaderModel.OFFSET_PERP_LONG_PX_TREE_NODES_COUNT = 532;
568
+ InstrAccountHeaderModel.OFFSET_PERP_LONG_PX_TREE_ENTRY = 536;
569
+ InstrAccountHeaderModel.OFFSET_PERP_SHORT_PX_TREE_NODES_COUNT = 540;
570
+ InstrAccountHeaderModel.OFFSET_PERP_SHORT_PX_TREE_ENTRY = 544;
571
+ InstrAccountHeaderModel.OFFSET_PERP_REBALANCE_TIME_TREE_NODES_COUNT = 548;
572
+ InstrAccountHeaderModel.OFFSET_PERP_REBALANCE_TIME_TREE_ENTRY = 552;
573
+ InstrAccountHeaderModel.OFFSET_PERP_BIDS_TREE_NODES_COUNT = 556;
574
+ InstrAccountHeaderModel.OFFSET_PERP_BIDS_TREE_LINES_ENTRY = 560;
575
+ InstrAccountHeaderModel.OFFSET_PERP_BIDS_TREE_ORDERS_ENTRY = 564;
576
+ InstrAccountHeaderModel.OFFSET_PERP_ASKS_TREE_NODES_COUNT = 568;
577
+ InstrAccountHeaderModel.OFFSET_PERP_ASKS_TREE_LINES_ENTRY = 572;
578
+ InstrAccountHeaderModel.OFFSET_PERP_ASKS_TREE_ORDERS_ENTRY = 576;
579
+ InstrAccountHeaderModel.OFFSET_PERP_BID_LINES_BEGIN = 580;
580
+ InstrAccountHeaderModel.OFFSET_PERP_BID_LINES_END = 584;
581
+ InstrAccountHeaderModel.OFFSET_PERP_BID_LINES_COUNT = 588;
582
+ InstrAccountHeaderModel.OFFSET_PERP_ASK_LINES_BEGIN = 592;
583
+ InstrAccountHeaderModel.OFFSET_PERP_ASK_LINES_END = 596;
584
+ InstrAccountHeaderModel.OFFSET_PERP_ASK_LINES_COUNT = 600;
585
+ InstrAccountHeaderModel.OFFSET_PERP_BID_ORDERS_COUNT = 604;
586
+ InstrAccountHeaderModel.OFFSET_PERP_ASK_ORDERS_COUNT = 608;
587
+ InstrAccountHeaderModel.OFFSET_PERP_DAY_TRADES = 612;
588
+ InstrAccountHeaderModel.OFFSET_PERP_PREV_DAY_TRADES = 616;
589
+ InstrAccountHeaderModel.OFFSET_RESERVED = 620;
590
+ InstrAccountHeaderModel.OFFSET_PERP_ALLTIME_TRADES = 624;
591
+ InstrAccountHeaderModel.OFFSET_PERP_SPOT_PRICE_FOR_WITHDROWAL = 632;
592
+ InstrAccountHeaderModel.OFFSET_PERP_SOC_LOSS_LONG_RATE = 640;
593
+ InstrAccountHeaderModel.OFFSET_PERP_SOC_LOSS_SHORT_RATE = 648;
594
+ InstrAccountHeaderModel.OFFSET_PERP_OPEN_INT = 656;
595
+ InstrAccountHeaderModel.OFFSET_PERP_PRICE_DELTA = 664;
596
+ InstrAccountHeaderModel.OFFSET_PERP_FUNDING_RATE = 672;
597
+ InstrAccountHeaderModel.OFFSET_PERP_FUNDING_FUNDS = 680;
598
+ InstrAccountHeaderModel.OFFSET_PERP_SOC_LOSS_FUNDS = 688;
599
+ InstrAccountHeaderModel.OFFSET_PERP_INSURANCE_FUND = 696;
600
+ InstrAccountHeaderModel.OFFSET_PERP_LAST_CLOSE = 704;
601
+ InstrAccountHeaderModel.OFFSET_PERP_LAST_ASSET_TOKENS = 712;
602
+ InstrAccountHeaderModel.OFFSET_PERP_LAST_CRNCY_TOKENS = 720;
603
+ InstrAccountHeaderModel.OFFSET_PERP_LAST_PX = 728;
604
+ InstrAccountHeaderModel.OFFSET_PERP_BEST_BID = 736;
605
+ InstrAccountHeaderModel.OFFSET_PERP_BEST_ASK = 744;
606
+ InstrAccountHeaderModel.OFFSET_PERP_DAY_ASSET_TOKENS = 752;
607
+ InstrAccountHeaderModel.OFFSET_PERP_DAY_CRNCY_TOKENS = 760;
608
+ InstrAccountHeaderModel.OFFSET_PERP_DAY_LOW = 768;
609
+ InstrAccountHeaderModel.OFFSET_PERP_DAY_HIGH = 776;
610
+ InstrAccountHeaderModel.OFFSET_PERP_PREV_DAY_ASSET_TOKENS = 784;
611
+ InstrAccountHeaderModel.OFFSET_PERP_PREV_DAY_CRNCY_TOKENS = 792;
612
+ InstrAccountHeaderModel.OFFSET_PERP_ALLTIME_ASSET_TOKENS = 800;
613
+ InstrAccountHeaderModel.OFFSET_PERP_ALLTIME_CRNCY_TOKENS = 808;
614
+ InstrAccountHeaderModel.OFFSET_MAX_LEVERAGE = 816;
615
+ InstrAccountHeaderModel.OFFSET_DAY_VOLATILITY = 824;
616
+ InstrAccountHeaderModel.OFFSET_LIQUIDATION_THRESHOLD = 832;
617
+ InstrAccountHeaderModel.OFFSET_RESERVED_VALUE1 = 840;
618
+ InstrAccountHeaderModel.OFFSET_RESERVED_VALUE2 = 848;
619
+ InstrAccountHeaderModel.OFFSET_RESERVED_VALUE3 = 856;
620
+ InstrAccountHeaderModel.OFFSET_RESERVED_VALUE4 = 864;
621
+ InstrAccountHeaderModel.OFFSET_RESERVED_VALUE5 = 872;
622
+ InstrAccountHeaderModel.OFFSET_RESERVED_VALUE6 = 880;
623
+ InstrAccountHeaderModel.OFFSET_RESERVED_VALUE7 = 888;
624
+ InstrAccountHeaderModel.OFFSET_RESERVED_VALUE8 = 896;
625
+ InstrAccountHeaderModel.OFFSET_RESERVED_VALUE9 = 904;
626
+ InstrAccountHeaderModel.OFFSET_RESERVED_VALUE10 = 912;
627
+ InstrAccountHeaderModel.OFFSET_SEATS_RESERVE = 920;
613
628
  class RootStateModel {
614
629
  static fromBuffer(data, offset) {
615
630
  const result = new RootStateModel();
@@ -907,16 +922,22 @@ class ClientPrimaryAccountHeaderModel {
907
922
  result.spotTrades = autoData.readU32();
908
923
  result.perpTrades = autoData.readU32();
909
924
  result.lpTrades = autoData.readU32();
910
- result.futuresTrades = autoData.readU32();
911
- result.optionsTrades = autoData.readU32();
912
925
  result.points = autoData.readU32();
913
926
  result.slot = autoData.readU32();
914
927
  result.assetsCount = autoData.readU32();
928
+ result.reservedValue1 = autoData.readI64();
929
+ result.reservedValue2 = autoData.readI64();
930
+ result.reservedValue3 = autoData.readI64();
931
+ result.reservedValue4 = autoData.readI64();
932
+ result.reservedValue5 = autoData.readI64();
933
+ result.reservedValue6 = autoData.readI64();
934
+ result.reservedValue7 = autoData.readI64();
935
+ result.reservedValue8 = autoData.readI64();
915
936
  return result;
916
937
  }
917
938
  }
918
939
  exports.ClientPrimaryAccountHeaderModel = ClientPrimaryAccountHeaderModel;
919
- ClientPrimaryAccountHeaderModel.LENGTH = 18 * 4 + 8 * 8 + 5 * 32; // 296 bytes
940
+ ClientPrimaryAccountHeaderModel.LENGTH = 16 * 4 + 16 * 8 + 5 * 32; // 352 bytes
920
941
  ClientPrimaryAccountHeaderModel.OFFSET_TAG = 0;
921
942
  ClientPrimaryAccountHeaderModel.OFFSET_VERSION = 4;
922
943
  ClientPrimaryAccountHeaderModel.OFFSET_WALLET_ADDRESS = 8;
@@ -943,11 +964,17 @@ ClientPrimaryAccountHeaderModel.OFFSET_REF_PROGRAM_EXPIRATION = 260;
943
964
  ClientPrimaryAccountHeaderModel.OFFSET_SPOT_TRADES = 264;
944
965
  ClientPrimaryAccountHeaderModel.OFFSET_PERP_TRADES = 268;
945
966
  ClientPrimaryAccountHeaderModel.OFFSET_LP_TRADES = 272;
946
- ClientPrimaryAccountHeaderModel.OFFSET_FUTURES_TRADES = 276;
947
- ClientPrimaryAccountHeaderModel.OFFSET_OPTIONS_TRADES = 280;
948
- ClientPrimaryAccountHeaderModel.OFFSET_POINTS = 284;
949
- ClientPrimaryAccountHeaderModel.OFFSET_SLOT = 288;
950
- ClientPrimaryAccountHeaderModel.OFFSET_ASSETS_COUNT = 292;
967
+ ClientPrimaryAccountHeaderModel.OFFSET_POINTS = 276;
968
+ ClientPrimaryAccountHeaderModel.OFFSET_SLOT = 280;
969
+ ClientPrimaryAccountHeaderModel.OFFSET_ASSETS_COUNT = 284;
970
+ ClientPrimaryAccountHeaderModel.OFFSET_RESERVED_VALUE1 = 288;
971
+ ClientPrimaryAccountHeaderModel.OFFSET_RESERVED_VALUE2 = 296;
972
+ ClientPrimaryAccountHeaderModel.OFFSET_RESERVED_VALUE3 = 304;
973
+ ClientPrimaryAccountHeaderModel.OFFSET_RESERVED_VALUE4 = 312;
974
+ ClientPrimaryAccountHeaderModel.OFFSET_RESERVED_VALUE5 = 320;
975
+ ClientPrimaryAccountHeaderModel.OFFSET_RESERVED_VALUE6 = 328;
976
+ ClientPrimaryAccountHeaderModel.OFFSET_RESERVED_VALUE7 = 336;
977
+ ClientPrimaryAccountHeaderModel.OFFSET_RESERVED_VALUE8 = 344;
951
978
  class ClientDrvAccountHeaderModel {
952
979
  static fromBuffer(data, offset) {
953
980
  const result = new ClientDrvAccountHeaderModel();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deriverse/kit",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",