@deriverse/kit 1.0.25 → 1.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2254,13 +2254,16 @@ class Engine {
2254
2254
  tag: types_1.AccountType.PERP_CLIENT_INFOS5
2255
2255
  }), role: kit_1.AccountRole.WRITABLE
2256
2256
  },
2257
+ /*
2257
2258
  {
2258
- address: yield this.getInstrAccountByTag({
2259
- assetTokenId: instr.header.assetTokenId,
2260
- crncyTokenId: instr.header.crncyTokenId,
2261
- tag: types_1.AccountType.PERP_CLIENT_ACCOUNTS
2262
- }), role: kit_1.AccountRole.WRITABLE
2259
+ address: await this.getInstrAccountByTag(
2260
+ {
2261
+ assetTokenId: instr.header.assetTokenId,
2262
+ crncyTokenId: instr.header.crncyTokenId,
2263
+ tag: AccountType.PERP_CLIENT_ACCOUNTS
2264
+ }), role: AccountRole.WRITABLE
2263
2265
  },
2266
+ */
2264
2267
  {
2265
2268
  address: yield this.getInstrAccountByTag({
2266
2269
  assetTokenId: instr.header.assetTokenId,
@@ -2282,13 +2285,16 @@ class Engine {
2282
2285
  tag: types_1.AccountType.PERP_REBALANCE_TIME_TREE
2283
2286
  }), role: kit_1.AccountRole.WRITABLE
2284
2287
  },
2288
+ /*
2285
2289
  {
2286
- address: yield this.getInstrAccountByTag({
2287
- assetTokenId: instr.header.assetTokenId,
2288
- crncyTokenId: instr.header.crncyTokenId,
2289
- tag: types_1.AccountType.PERP_PRIORITY_TREE
2290
- }), role: kit_1.AccountRole.WRITABLE
2290
+ address: await this.getInstrAccountByTag(
2291
+ {
2292
+ assetTokenId: instr.header.assetTokenId,
2293
+ crncyTokenId: instr.header.crncyTokenId,
2294
+ tag: AccountType.PERP_PRIORITY_TREE
2295
+ }), role: AccountRole.WRITABLE
2291
2296
  },
2297
+ */
2292
2298
  ];
2293
2299
  const upgradeIx = {
2294
2300
  accounts: keys,
@@ -2659,13 +2665,16 @@ class Engine {
2659
2665
  tag: types_1.AccountType.SPOT_CLIENT_INFOS2
2660
2666
  }), role: kit_1.AccountRole.WRITABLE
2661
2667
  },
2668
+ /*
2662
2669
  {
2663
- address: yield this.getInstrAccountByTag({
2664
- assetTokenId: assetTokenId,
2665
- crncyTokenId: crncyTokenId,
2666
- tag: types_1.AccountType.SPOT_CLIENT_ACCOUNTS
2667
- }), role: kit_1.AccountRole.WRITABLE
2670
+ address: await this.getInstrAccountByTag(
2671
+ {
2672
+ assetTokenId: assetTokenId,
2673
+ crncyTokenId: crncyTokenId,
2674
+ tag: AccountType.SPOT_CLIENT_ACCOUNTS
2675
+ }), role: AccountRole.WRITABLE
2668
2676
  },
2677
+ */
2669
2678
  {
2670
2679
  address: yield this.getInstrAccountByTag({
2671
2680
  assetTokenId: assetTokenId,
@@ -24,7 +24,7 @@ export declare function votingData(tag: number, choice: number, votingCounter: n
24
24
  export declare function airdropData(tag: number, ratio: number): Buffer;
25
25
  export declare function upgradeToPerpData(tag: number, instrId: number): Buffer;
26
26
  export declare function setInstrOracleFeedData(tag: number, instrId: number, variance: number): Buffer;
27
- export declare function setInstrReadyForPerpUpgradeData(tag: number, instrId: number): Buffer;
27
+ export declare function setInstrReadyForPerpUpgradeData(tag: number, instrId: number, variance: number): Buffer;
28
28
  export declare function newTokenData(tag: number, crncy: number, needInitialization: number): Buffer;
29
29
  export declare function perpOrderCancelData(tag: number, side: number, instrId: number, orderId: number): Buffer;
30
30
  export declare function perpMassCancelData(tag: number, instrId: number): Buffer;
@@ -256,8 +256,8 @@ function setInstrOracleFeedData(tag, instrId, variance) {
256
256
  return buf;
257
257
  }
258
258
  exports.setInstrOracleFeedData = setInstrOracleFeedData;
259
- function setInstrReadyForPerpUpgradeData(tag, instrId) {
260
- let buf = Buffer.alloc(8);
259
+ function setInstrReadyForPerpUpgradeData(tag, instrId, variance) {
260
+ let buf = Buffer.alloc(16);
261
261
  buf.writeUint8(tag, 0);
262
262
  buf.writeUint8(0, 1);
263
263
  buf.writeUint16LE(0, 2);
@@ -295,128 +295,129 @@ export declare class InstrAccountHeaderModel {
295
295
  static readonly OFFSET_ASSET_TOKEN_DECS_COUNT = 156;
296
296
  static readonly OFFSET_CRNCY_TOKEN_DECS_COUNT = 160;
297
297
  static readonly OFFSET_SLOT = 164;
298
- static readonly OFFSET_LAST_TIME = 168;
299
- static readonly OFFSET_DISTRIB_TIME = 172;
300
- static readonly OFFSET_BASE_CRNCY_INDEX = 176;
301
- static readonly OFFSET_INSTANCE_COUNTER = 180;
302
- static readonly OFFSET_VARIANCE_COUNTER = 184;
303
- static readonly OFFSET_BIDS_TREE_NODES_COUNT = 188;
304
- static readonly OFFSET_BIDS_TREE_LINES_ENTRY = 192;
305
- static readonly OFFSET_BIDS_TREE_ORDERS_ENTRY = 196;
306
- static readonly OFFSET_ASKS_TREE_NODES_COUNT = 200;
307
- static readonly OFFSET_ASKS_TREE_LINES_ENTRY = 204;
308
- static readonly OFFSET_ASKS_TREE_ORDERS_ENTRY = 208;
309
- static readonly OFFSET_BID_LINES_BEGIN = 212;
310
- static readonly OFFSET_BID_LINES_END = 216;
311
- static readonly OFFSET_BID_LINES_COUNT = 220;
312
- static readonly OFFSET_ASK_LINES_BEGIN = 224;
313
- static readonly OFFSET_ASK_LINES_END = 228;
314
- static readonly OFFSET_ASK_LINES_COUNT = 232;
315
- static readonly OFFSET_BID_ORDERS_COUNT = 236;
316
- static readonly OFFSET_ASK_ORDERS_COUNT = 240;
317
- static readonly OFFSET_FIXING_TIME = 244;
318
- static readonly OFFSET_FIXING_CRNCY_TOKENS = 248;
319
- static readonly OFFSET_FIXING_ASSET_TOKENS = 256;
320
- static readonly OFFSET_COUNTER = 264;
321
- static readonly OFFSET_ASSET_TOKENS = 272;
322
- static readonly OFFSET_CRNCY_TOKENS = 280;
323
- static readonly OFFSET_POOL_FEES = 288;
324
- static readonly OFFSET_PS = 296;
325
- static readonly OFFSET_PROTOCOL_FEES = 304;
326
- static readonly OFFSET_HITS_COUNTER = 312;
327
- static readonly OFFSET_LAST_ASSET_TOKENS = 320;
328
- static readonly OFFSET_LAST_CRNCY_TOKENS = 328;
329
- static readonly OFFSET_PERP_UNDERLYING_PX = 336;
330
- static readonly OFFSET_LAST_PX = 344;
331
- static readonly OFFSET_BEST_BID = 352;
332
- static readonly OFFSET_BEST_ASK = 360;
333
- static readonly OFFSET_FIXING_PX = 368;
334
- static readonly OFFSET_VARIANCE = 376;
335
- static readonly OFFSET_AVG_SPREAD = 384;
336
- static readonly OFFSET_LAST_SPREAD = 392;
337
- static readonly OFFSET_LAST_SPREAD_TIME = 400;
338
- static readonly OFFSET_TOTAL_SPREAD_PERIOD = 404;
339
- static readonly OFFSET_LAST_CLOSE = 408;
340
- static readonly OFFSET_DAY_ASSET_TOKENS = 416;
341
- static readonly OFFSET_DAY_CRNCY_TOKENS = 424;
342
- static readonly OFFSET_DAY_LOW = 432;
343
- static readonly OFFSET_DAY_HIGH = 440;
344
- static readonly OFFSET_PREV_DAY_ASSET_TOKENS = 448;
345
- static readonly OFFSET_PREV_DAY_CRNCY_TOKENS = 456;
346
- static readonly OFFSET_ALLTIME_ASSET_TOKENS = 464;
347
- static readonly OFFSET_ALLTIME_CRNCY_TOKENS = 472;
348
- static readonly OFFSET_DAY_TRADES = 480;
349
- static readonly OFFSET_PREV_DAY_TRADES = 484;
350
- static readonly OFFSET_LP_DAY_TRADES = 488;
351
- static readonly OFFSET_LP_PREV_DAY_TRADES = 492;
352
- static readonly OFFSET_ALLTIME_TRADES = 496;
353
- static readonly OFFSET_DEC_FACTOR = 504;
354
- static readonly OFFSET_PERP_CLIENTS_COUNT = 512;
355
- static readonly OFFSET_PERP_SLOT = 516;
356
- static readonly OFFSET_PERP_TIME = 520;
357
- static readonly OFFSET_PERP_FUNDING_RATE_SLOT = 524;
358
- static readonly OFFSET_PERP_FUNDING_RATE_TIME = 528;
359
- static readonly OFFSET_PERP_LONG_PX_TREE_NODES_COUNT = 532;
360
- static readonly OFFSET_PERP_LONG_PX_TREE_ENTRY = 536;
361
- static readonly OFFSET_PERP_SHORT_PX_TREE_NODES_COUNT = 540;
362
- static readonly OFFSET_PERP_SHORT_PX_TREE_ENTRY = 544;
363
- static readonly OFFSET_PERP_REBALANCE_TIME_TREE_NODES_COUNT = 548;
364
- static readonly OFFSET_PERP_REBALANCE_TIME_TREE_ENTRY = 552;
365
- static readonly OFFSET_PERP_BIDS_TREE_NODES_COUNT = 556;
366
- static readonly OFFSET_PERP_BIDS_TREE_LINES_ENTRY = 560;
367
- static readonly OFFSET_PERP_BIDS_TREE_ORDERS_ENTRY = 564;
368
- static readonly OFFSET_PERP_ASKS_TREE_NODES_COUNT = 568;
369
- static readonly OFFSET_PERP_ASKS_TREE_LINES_ENTRY = 572;
370
- static readonly OFFSET_PERP_ASKS_TREE_ORDERS_ENTRY = 576;
371
- static readonly OFFSET_PERP_BID_LINES_BEGIN = 580;
372
- static readonly OFFSET_PERP_BID_LINES_END = 584;
373
- static readonly OFFSET_PERP_BID_LINES_COUNT = 588;
374
- static readonly OFFSET_PERP_ASK_LINES_BEGIN = 592;
375
- static readonly OFFSET_PERP_ASK_LINES_END = 596;
376
- static readonly OFFSET_PERP_ASK_LINES_COUNT = 600;
377
- static readonly OFFSET_PERP_BID_ORDERS_COUNT = 604;
378
- static readonly OFFSET_PERP_ASK_ORDERS_COUNT = 608;
379
- static readonly OFFSET_PERP_DAY_TRADES = 612;
380
- static readonly OFFSET_PERP_PREV_DAY_TRADES = 616;
381
- static readonly OFFSET_RESERVED = 620;
382
- static readonly OFFSET_PERP_ALLTIME_TRADES = 624;
383
- static readonly OFFSET_PERP_SPOT_PRICE_FOR_WITHDROWAL = 632;
384
- static readonly OFFSET_PERP_SOC_LOSS_LONG_RATE = 640;
385
- static readonly OFFSET_PERP_SOC_LOSS_SHORT_RATE = 648;
386
- static readonly OFFSET_PERP_OPEN_INT = 656;
387
- static readonly OFFSET_PERP_PRICE_DELTA = 664;
388
- static readonly OFFSET_PERP_FUNDING_RATE = 672;
389
- static readonly OFFSET_PERP_FUNDING_FUNDS = 680;
390
- static readonly OFFSET_PERP_SOC_LOSS_FUNDS = 688;
391
- static readonly OFFSET_PERP_INSURANCE_FUND = 696;
392
- static readonly OFFSET_PERP_LAST_CLOSE = 704;
393
- static readonly OFFSET_PERP_LAST_ASSET_TOKENS = 712;
394
- static readonly OFFSET_PERP_LAST_CRNCY_TOKENS = 720;
395
- static readonly OFFSET_PERP_LAST_PX = 728;
396
- static readonly OFFSET_PERP_BEST_BID = 736;
397
- static readonly OFFSET_PERP_BEST_ASK = 744;
398
- static readonly OFFSET_PERP_DAY_ASSET_TOKENS = 752;
399
- static readonly OFFSET_PERP_DAY_CRNCY_TOKENS = 760;
400
- static readonly OFFSET_PERP_DAY_LOW = 768;
401
- static readonly OFFSET_PERP_DAY_HIGH = 776;
402
- static readonly OFFSET_PERP_PREV_DAY_ASSET_TOKENS = 784;
403
- static readonly OFFSET_PERP_PREV_DAY_CRNCY_TOKENS = 792;
404
- static readonly OFFSET_PERP_ALLTIME_ASSET_TOKENS = 800;
405
- static readonly OFFSET_PERP_ALLTIME_CRNCY_TOKENS = 808;
406
- static readonly OFFSET_MAX_LEVERAGE = 816;
407
- static readonly OFFSET_DAY_VOLATILITY = 824;
408
- static readonly OFFSET_LIQUIDATION_THRESHOLD = 832;
409
- static readonly OFFSET_RESERVED_VALUE1 = 840;
410
- static readonly OFFSET_RESERVED_VALUE2 = 848;
411
- static readonly OFFSET_RESERVED_VALUE3 = 856;
412
- static readonly OFFSET_RESERVED_VALUE4 = 864;
413
- static readonly OFFSET_RESERVED_VALUE5 = 872;
414
- static readonly OFFSET_RESERVED_VALUE6 = 880;
415
- static readonly OFFSET_RESERVED_VALUE7 = 888;
416
- static readonly OFFSET_RESERVED_VALUE8 = 896;
417
- static readonly OFFSET_RESERVED_VALUE9 = 904;
418
- static readonly OFFSET_RESERVED_VALUE10 = 912;
419
- static readonly OFFSET_SEATS_RESERVE = 920;
298
+ static readonly OFFSET_CREATOR = 168;
299
+ static readonly OFFSET_LAST_TIME = 200;
300
+ static readonly OFFSET_DISTRIB_TIME = 204;
301
+ static readonly OFFSET_BASE_CRNCY_INDEX = 208;
302
+ static readonly OFFSET_INSTANCE_COUNTER = 212;
303
+ static readonly OFFSET_VARIANCE_COUNTER = 216;
304
+ static readonly OFFSET_BIDS_TREE_NODES_COUNT = 220;
305
+ static readonly OFFSET_BIDS_TREE_LINES_ENTRY = 224;
306
+ static readonly OFFSET_BIDS_TREE_ORDERS_ENTRY = 228;
307
+ static readonly OFFSET_ASKS_TREE_NODES_COUNT = 232;
308
+ static readonly OFFSET_ASKS_TREE_LINES_ENTRY = 236;
309
+ static readonly OFFSET_ASKS_TREE_ORDERS_ENTRY = 240;
310
+ static readonly OFFSET_BID_LINES_BEGIN = 244;
311
+ static readonly OFFSET_BID_LINES_END = 248;
312
+ static readonly OFFSET_BID_LINES_COUNT = 252;
313
+ static readonly OFFSET_ASK_LINES_BEGIN = 256;
314
+ static readonly OFFSET_ASK_LINES_END = 260;
315
+ static readonly OFFSET_ASK_LINES_COUNT = 264;
316
+ static readonly OFFSET_BID_ORDERS_COUNT = 268;
317
+ static readonly OFFSET_ASK_ORDERS_COUNT = 272;
318
+ static readonly OFFSET_FIXING_TIME = 276;
319
+ static readonly OFFSET_FIXING_CRNCY_TOKENS = 280;
320
+ static readonly OFFSET_FIXING_ASSET_TOKENS = 288;
321
+ static readonly OFFSET_COUNTER = 296;
322
+ static readonly OFFSET_ASSET_TOKENS = 304;
323
+ static readonly OFFSET_CRNCY_TOKENS = 312;
324
+ static readonly OFFSET_POOL_FEES = 320;
325
+ static readonly OFFSET_PS = 328;
326
+ static readonly OFFSET_PROTOCOL_FEES = 336;
327
+ static readonly OFFSET_HITS_COUNTER = 344;
328
+ static readonly OFFSET_LAST_ASSET_TOKENS = 352;
329
+ static readonly OFFSET_LAST_CRNCY_TOKENS = 360;
330
+ static readonly OFFSET_PERP_UNDERLYING_PX = 368;
331
+ static readonly OFFSET_LAST_PX = 376;
332
+ static readonly OFFSET_BEST_BID = 384;
333
+ static readonly OFFSET_BEST_ASK = 392;
334
+ static readonly OFFSET_FIXING_PX = 400;
335
+ static readonly OFFSET_VARIANCE = 408;
336
+ static readonly OFFSET_AVG_SPREAD = 416;
337
+ static readonly OFFSET_LAST_SPREAD = 424;
338
+ static readonly OFFSET_LAST_SPREAD_TIME = 432;
339
+ static readonly OFFSET_TOTAL_SPREAD_PERIOD = 436;
340
+ static readonly OFFSET_LAST_CLOSE = 440;
341
+ static readonly OFFSET_DAY_ASSET_TOKENS = 448;
342
+ static readonly OFFSET_DAY_CRNCY_TOKENS = 456;
343
+ static readonly OFFSET_DAY_LOW = 464;
344
+ static readonly OFFSET_DAY_HIGH = 472;
345
+ static readonly OFFSET_PREV_DAY_ASSET_TOKENS = 480;
346
+ static readonly OFFSET_PREV_DAY_CRNCY_TOKENS = 488;
347
+ static readonly OFFSET_ALLTIME_ASSET_TOKENS = 496;
348
+ static readonly OFFSET_ALLTIME_CRNCY_TOKENS = 504;
349
+ static readonly OFFSET_DAY_TRADES = 512;
350
+ static readonly OFFSET_PREV_DAY_TRADES = 516;
351
+ static readonly OFFSET_LP_DAY_TRADES = 520;
352
+ static readonly OFFSET_LP_PREV_DAY_TRADES = 524;
353
+ static readonly OFFSET_ALLTIME_TRADES = 528;
354
+ static readonly OFFSET_DEC_FACTOR = 536;
355
+ static readonly OFFSET_PERP_CLIENTS_COUNT = 544;
356
+ static readonly OFFSET_PERP_SLOT = 548;
357
+ static readonly OFFSET_PERP_TIME = 552;
358
+ static readonly OFFSET_PERP_FUNDING_RATE_SLOT = 556;
359
+ static readonly OFFSET_PERP_FUNDING_RATE_TIME = 560;
360
+ static readonly OFFSET_PERP_LONG_PX_TREE_NODES_COUNT = 564;
361
+ static readonly OFFSET_PERP_LONG_PX_TREE_ENTRY = 568;
362
+ static readonly OFFSET_PERP_SHORT_PX_TREE_NODES_COUNT = 572;
363
+ static readonly OFFSET_PERP_SHORT_PX_TREE_ENTRY = 576;
364
+ static readonly OFFSET_PERP_REBALANCE_TIME_TREE_NODES_COUNT = 580;
365
+ static readonly OFFSET_PERP_REBALANCE_TIME_TREE_ENTRY = 584;
366
+ static readonly OFFSET_PERP_BIDS_TREE_NODES_COUNT = 588;
367
+ static readonly OFFSET_PERP_BIDS_TREE_LINES_ENTRY = 592;
368
+ static readonly OFFSET_PERP_BIDS_TREE_ORDERS_ENTRY = 596;
369
+ static readonly OFFSET_PERP_ASKS_TREE_NODES_COUNT = 600;
370
+ static readonly OFFSET_PERP_ASKS_TREE_LINES_ENTRY = 604;
371
+ static readonly OFFSET_PERP_ASKS_TREE_ORDERS_ENTRY = 608;
372
+ static readonly OFFSET_PERP_BID_LINES_BEGIN = 612;
373
+ static readonly OFFSET_PERP_BID_LINES_END = 616;
374
+ static readonly OFFSET_PERP_BID_LINES_COUNT = 620;
375
+ static readonly OFFSET_PERP_ASK_LINES_BEGIN = 624;
376
+ static readonly OFFSET_PERP_ASK_LINES_END = 628;
377
+ static readonly OFFSET_PERP_ASK_LINES_COUNT = 632;
378
+ static readonly OFFSET_PERP_BID_ORDERS_COUNT = 636;
379
+ static readonly OFFSET_PERP_ASK_ORDERS_COUNT = 640;
380
+ static readonly OFFSET_PERP_DAY_TRADES = 644;
381
+ static readonly OFFSET_PERP_PREV_DAY_TRADES = 648;
382
+ static readonly OFFSET_CREATION_TIME = 652;
383
+ static readonly OFFSET_PERP_ALLTIME_TRADES = 656;
384
+ static readonly OFFSET_PERP_SPOT_PRICE_FOR_WITHDROWAL = 664;
385
+ static readonly OFFSET_PERP_SOC_LOSS_LONG_RATE = 672;
386
+ static readonly OFFSET_PERP_SOC_LOSS_SHORT_RATE = 680;
387
+ static readonly OFFSET_PERP_OPEN_INT = 688;
388
+ static readonly OFFSET_PERP_PRICE_DELTA = 696;
389
+ static readonly OFFSET_PERP_FUNDING_RATE = 704;
390
+ static readonly OFFSET_PERP_FUNDING_FUNDS = 712;
391
+ static readonly OFFSET_PERP_SOC_LOSS_FUNDS = 720;
392
+ static readonly OFFSET_PERP_INSURANCE_FUND = 728;
393
+ static readonly OFFSET_PERP_LAST_CLOSE = 736;
394
+ static readonly OFFSET_PERP_LAST_ASSET_TOKENS = 744;
395
+ static readonly OFFSET_PERP_LAST_CRNCY_TOKENS = 752;
396
+ static readonly OFFSET_PERP_LAST_PX = 760;
397
+ static readonly OFFSET_PERP_BEST_BID = 768;
398
+ static readonly OFFSET_PERP_BEST_ASK = 776;
399
+ static readonly OFFSET_PERP_DAY_ASSET_TOKENS = 784;
400
+ static readonly OFFSET_PERP_DAY_CRNCY_TOKENS = 792;
401
+ static readonly OFFSET_PERP_DAY_LOW = 800;
402
+ static readonly OFFSET_PERP_DAY_HIGH = 808;
403
+ static readonly OFFSET_PERP_PREV_DAY_ASSET_TOKENS = 816;
404
+ static readonly OFFSET_PERP_PREV_DAY_CRNCY_TOKENS = 824;
405
+ static readonly OFFSET_PERP_ALLTIME_ASSET_TOKENS = 832;
406
+ static readonly OFFSET_PERP_ALLTIME_CRNCY_TOKENS = 840;
407
+ static readonly OFFSET_MAX_LEVERAGE = 848;
408
+ static readonly OFFSET_DAY_VOLATILITY = 856;
409
+ static readonly OFFSET_LIQUIDATION_THRESHOLD = 864;
410
+ static readonly OFFSET_SEATS_RESERVE = 872;
411
+ static readonly OFFSET_RESERVED_VALUE1 = 880;
412
+ static readonly OFFSET_RESERVED_VALUE2 = 888;
413
+ static readonly OFFSET_RESERVED_VALUE3 = 896;
414
+ static readonly OFFSET_RESERVED_VALUE4 = 904;
415
+ static readonly OFFSET_RESERVED_VALUE5 = 912;
416
+ static readonly OFFSET_RESERVED_VALUE6 = 920;
417
+ static readonly OFFSET_RESERVED_VALUE7 = 928;
418
+ static readonly OFFSET_RESERVED_VALUE8 = 936;
419
+ static readonly OFFSET_RESERVED_VALUE9 = 944;
420
+ static readonly OFFSET_RESERVED_VALUE10 = 952;
420
421
  tag: number;
421
422
  version: number;
422
423
  instrId: number;
@@ -431,6 +432,7 @@ export declare class InstrAccountHeaderModel {
431
432
  assetTokenDecsCount: number;
432
433
  crncyTokenDecsCount: number;
433
434
  slot: number;
435
+ creator: Address<any>;
434
436
  lastTime: number;
435
437
  distribTime: number;
436
438
  baseCrncyIndex: number;
@@ -514,7 +516,7 @@ export declare class InstrAccountHeaderModel {
514
516
  perpAskOrdersCount: number;
515
517
  perpDayTrades: number;
516
518
  perpPrevDayTrades: number;
517
- reserved: number;
519
+ creationTime: number;
518
520
  perpAlltimeTrades: number;
519
521
  perpSpotPriceForWithdrowal: number;
520
522
  perpSocLossLongRate: number;
@@ -542,6 +544,7 @@ export declare class InstrAccountHeaderModel {
542
544
  maxLeverage: number;
543
545
  dayVolatility: number;
544
546
  liquidationThreshold: number;
547
+ seatsReserve: number;
545
548
  reservedValue1: number;
546
549
  reservedValue2: number;
547
550
  reservedValue3: number;
@@ -552,7 +555,6 @@ export declare class InstrAccountHeaderModel {
552
555
  reservedValue8: number;
553
556
  reservedValue9: number;
554
557
  reservedValue10: number;
555
- seatsReserve: number;
556
558
  static fromBuffer(data: Base64EncodedDataResponse, offset?: number): InstrAccountHeaderModel;
557
559
  }
558
560
  export declare class RootStateModel {
@@ -362,6 +362,7 @@ class InstrAccountHeaderModel {
362
362
  result.assetTokenDecsCount = autoData.readU32();
363
363
  result.crncyTokenDecsCount = autoData.readU32();
364
364
  result.slot = autoData.readU32();
365
+ result.creator = autoData.readAddress();
365
366
  result.lastTime = autoData.readU32();
366
367
  result.distribTime = autoData.readU32();
367
368
  result.baseCrncyIndex = autoData.readU32();
@@ -445,7 +446,7 @@ class InstrAccountHeaderModel {
445
446
  result.perpAskOrdersCount = autoData.readU32();
446
447
  result.perpDayTrades = autoData.readU32();
447
448
  result.perpPrevDayTrades = autoData.readU32();
448
- result.reserved = autoData.readU32();
449
+ result.creationTime = autoData.readU32();
449
450
  result.perpAlltimeTrades = autoData.readI64();
450
451
  result.perpSpotPriceForWithdrowal = autoData.readI64();
451
452
  result.perpSocLossLongRate = autoData.readF64();
@@ -473,6 +474,7 @@ class InstrAccountHeaderModel {
473
474
  result.maxLeverage = autoData.readF64();
474
475
  result.dayVolatility = autoData.readF64();
475
476
  result.liquidationThreshold = autoData.readF64();
477
+ result.seatsReserve = autoData.readI64();
476
478
  result.reservedValue1 = autoData.readI64();
477
479
  result.reservedValue2 = autoData.readI64();
478
480
  result.reservedValue3 = autoData.readI64();
@@ -483,12 +485,11 @@ class InstrAccountHeaderModel {
483
485
  result.reservedValue8 = autoData.readI64();
484
486
  result.reservedValue9 = autoData.readI64();
485
487
  result.reservedValue10 = autoData.readI64();
486
- result.seatsReserve = autoData.readI64();
487
488
  return result;
488
489
  }
489
490
  }
490
491
  exports.InstrAccountHeaderModel = InstrAccountHeaderModel;
491
- InstrAccountHeaderModel.LENGTH = 64 * 4 + 68 * 8 + 4 * 32; // 928 bytes
492
+ InstrAccountHeaderModel.LENGTH = 64 * 4 + 68 * 8 + 5 * 32; // 960 bytes
492
493
  InstrAccountHeaderModel.OFFSET_TAG = 0;
493
494
  InstrAccountHeaderModel.OFFSET_VERSION = 4;
494
495
  InstrAccountHeaderModel.OFFSET_INSTR_ID = 8;
@@ -503,128 +504,129 @@ InstrAccountHeaderModel.OFFSET_DRV_COUNT = 152;
503
504
  InstrAccountHeaderModel.OFFSET_ASSET_TOKEN_DECS_COUNT = 156;
504
505
  InstrAccountHeaderModel.OFFSET_CRNCY_TOKEN_DECS_COUNT = 160;
505
506
  InstrAccountHeaderModel.OFFSET_SLOT = 164;
506
- InstrAccountHeaderModel.OFFSET_LAST_TIME = 168;
507
- InstrAccountHeaderModel.OFFSET_DISTRIB_TIME = 172;
508
- InstrAccountHeaderModel.OFFSET_BASE_CRNCY_INDEX = 176;
509
- InstrAccountHeaderModel.OFFSET_INSTANCE_COUNTER = 180;
510
- InstrAccountHeaderModel.OFFSET_VARIANCE_COUNTER = 184;
511
- InstrAccountHeaderModel.OFFSET_BIDS_TREE_NODES_COUNT = 188;
512
- InstrAccountHeaderModel.OFFSET_BIDS_TREE_LINES_ENTRY = 192;
513
- InstrAccountHeaderModel.OFFSET_BIDS_TREE_ORDERS_ENTRY = 196;
514
- InstrAccountHeaderModel.OFFSET_ASKS_TREE_NODES_COUNT = 200;
515
- InstrAccountHeaderModel.OFFSET_ASKS_TREE_LINES_ENTRY = 204;
516
- InstrAccountHeaderModel.OFFSET_ASKS_TREE_ORDERS_ENTRY = 208;
517
- InstrAccountHeaderModel.OFFSET_BID_LINES_BEGIN = 212;
518
- InstrAccountHeaderModel.OFFSET_BID_LINES_END = 216;
519
- InstrAccountHeaderModel.OFFSET_BID_LINES_COUNT = 220;
520
- InstrAccountHeaderModel.OFFSET_ASK_LINES_BEGIN = 224;
521
- InstrAccountHeaderModel.OFFSET_ASK_LINES_END = 228;
522
- InstrAccountHeaderModel.OFFSET_ASK_LINES_COUNT = 232;
523
- InstrAccountHeaderModel.OFFSET_BID_ORDERS_COUNT = 236;
524
- InstrAccountHeaderModel.OFFSET_ASK_ORDERS_COUNT = 240;
525
- InstrAccountHeaderModel.OFFSET_FIXING_TIME = 244;
526
- InstrAccountHeaderModel.OFFSET_FIXING_CRNCY_TOKENS = 248;
527
- InstrAccountHeaderModel.OFFSET_FIXING_ASSET_TOKENS = 256;
528
- InstrAccountHeaderModel.OFFSET_COUNTER = 264;
529
- InstrAccountHeaderModel.OFFSET_ASSET_TOKENS = 272;
530
- InstrAccountHeaderModel.OFFSET_CRNCY_TOKENS = 280;
531
- InstrAccountHeaderModel.OFFSET_POOL_FEES = 288;
532
- InstrAccountHeaderModel.OFFSET_PS = 296;
533
- InstrAccountHeaderModel.OFFSET_PROTOCOL_FEES = 304;
534
- InstrAccountHeaderModel.OFFSET_HITS_COUNTER = 312;
535
- InstrAccountHeaderModel.OFFSET_LAST_ASSET_TOKENS = 320;
536
- InstrAccountHeaderModel.OFFSET_LAST_CRNCY_TOKENS = 328;
537
- InstrAccountHeaderModel.OFFSET_PERP_UNDERLYING_PX = 336;
538
- InstrAccountHeaderModel.OFFSET_LAST_PX = 344;
539
- InstrAccountHeaderModel.OFFSET_BEST_BID = 352;
540
- InstrAccountHeaderModel.OFFSET_BEST_ASK = 360;
541
- InstrAccountHeaderModel.OFFSET_FIXING_PX = 368;
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;
507
+ InstrAccountHeaderModel.OFFSET_CREATOR = 168;
508
+ InstrAccountHeaderModel.OFFSET_LAST_TIME = 200;
509
+ InstrAccountHeaderModel.OFFSET_DISTRIB_TIME = 204;
510
+ InstrAccountHeaderModel.OFFSET_BASE_CRNCY_INDEX = 208;
511
+ InstrAccountHeaderModel.OFFSET_INSTANCE_COUNTER = 212;
512
+ InstrAccountHeaderModel.OFFSET_VARIANCE_COUNTER = 216;
513
+ InstrAccountHeaderModel.OFFSET_BIDS_TREE_NODES_COUNT = 220;
514
+ InstrAccountHeaderModel.OFFSET_BIDS_TREE_LINES_ENTRY = 224;
515
+ InstrAccountHeaderModel.OFFSET_BIDS_TREE_ORDERS_ENTRY = 228;
516
+ InstrAccountHeaderModel.OFFSET_ASKS_TREE_NODES_COUNT = 232;
517
+ InstrAccountHeaderModel.OFFSET_ASKS_TREE_LINES_ENTRY = 236;
518
+ InstrAccountHeaderModel.OFFSET_ASKS_TREE_ORDERS_ENTRY = 240;
519
+ InstrAccountHeaderModel.OFFSET_BID_LINES_BEGIN = 244;
520
+ InstrAccountHeaderModel.OFFSET_BID_LINES_END = 248;
521
+ InstrAccountHeaderModel.OFFSET_BID_LINES_COUNT = 252;
522
+ InstrAccountHeaderModel.OFFSET_ASK_LINES_BEGIN = 256;
523
+ InstrAccountHeaderModel.OFFSET_ASK_LINES_END = 260;
524
+ InstrAccountHeaderModel.OFFSET_ASK_LINES_COUNT = 264;
525
+ InstrAccountHeaderModel.OFFSET_BID_ORDERS_COUNT = 268;
526
+ InstrAccountHeaderModel.OFFSET_ASK_ORDERS_COUNT = 272;
527
+ InstrAccountHeaderModel.OFFSET_FIXING_TIME = 276;
528
+ InstrAccountHeaderModel.OFFSET_FIXING_CRNCY_TOKENS = 280;
529
+ InstrAccountHeaderModel.OFFSET_FIXING_ASSET_TOKENS = 288;
530
+ InstrAccountHeaderModel.OFFSET_COUNTER = 296;
531
+ InstrAccountHeaderModel.OFFSET_ASSET_TOKENS = 304;
532
+ InstrAccountHeaderModel.OFFSET_CRNCY_TOKENS = 312;
533
+ InstrAccountHeaderModel.OFFSET_POOL_FEES = 320;
534
+ InstrAccountHeaderModel.OFFSET_PS = 328;
535
+ InstrAccountHeaderModel.OFFSET_PROTOCOL_FEES = 336;
536
+ InstrAccountHeaderModel.OFFSET_HITS_COUNTER = 344;
537
+ InstrAccountHeaderModel.OFFSET_LAST_ASSET_TOKENS = 352;
538
+ InstrAccountHeaderModel.OFFSET_LAST_CRNCY_TOKENS = 360;
539
+ InstrAccountHeaderModel.OFFSET_PERP_UNDERLYING_PX = 368;
540
+ InstrAccountHeaderModel.OFFSET_LAST_PX = 376;
541
+ InstrAccountHeaderModel.OFFSET_BEST_BID = 384;
542
+ InstrAccountHeaderModel.OFFSET_BEST_ASK = 392;
543
+ InstrAccountHeaderModel.OFFSET_FIXING_PX = 400;
544
+ InstrAccountHeaderModel.OFFSET_VARIANCE = 408;
545
+ InstrAccountHeaderModel.OFFSET_AVG_SPREAD = 416;
546
+ InstrAccountHeaderModel.OFFSET_LAST_SPREAD = 424;
547
+ InstrAccountHeaderModel.OFFSET_LAST_SPREAD_TIME = 432;
548
+ InstrAccountHeaderModel.OFFSET_TOTAL_SPREAD_PERIOD = 436;
549
+ InstrAccountHeaderModel.OFFSET_LAST_CLOSE = 440;
550
+ InstrAccountHeaderModel.OFFSET_DAY_ASSET_TOKENS = 448;
551
+ InstrAccountHeaderModel.OFFSET_DAY_CRNCY_TOKENS = 456;
552
+ InstrAccountHeaderModel.OFFSET_DAY_LOW = 464;
553
+ InstrAccountHeaderModel.OFFSET_DAY_HIGH = 472;
554
+ InstrAccountHeaderModel.OFFSET_PREV_DAY_ASSET_TOKENS = 480;
555
+ InstrAccountHeaderModel.OFFSET_PREV_DAY_CRNCY_TOKENS = 488;
556
+ InstrAccountHeaderModel.OFFSET_ALLTIME_ASSET_TOKENS = 496;
557
+ InstrAccountHeaderModel.OFFSET_ALLTIME_CRNCY_TOKENS = 504;
558
+ InstrAccountHeaderModel.OFFSET_DAY_TRADES = 512;
559
+ InstrAccountHeaderModel.OFFSET_PREV_DAY_TRADES = 516;
560
+ InstrAccountHeaderModel.OFFSET_LP_DAY_TRADES = 520;
561
+ InstrAccountHeaderModel.OFFSET_LP_PREV_DAY_TRADES = 524;
562
+ InstrAccountHeaderModel.OFFSET_ALLTIME_TRADES = 528;
563
+ InstrAccountHeaderModel.OFFSET_DEC_FACTOR = 536;
564
+ InstrAccountHeaderModel.OFFSET_PERP_CLIENTS_COUNT = 544;
565
+ InstrAccountHeaderModel.OFFSET_PERP_SLOT = 548;
566
+ InstrAccountHeaderModel.OFFSET_PERP_TIME = 552;
567
+ InstrAccountHeaderModel.OFFSET_PERP_FUNDING_RATE_SLOT = 556;
568
+ InstrAccountHeaderModel.OFFSET_PERP_FUNDING_RATE_TIME = 560;
569
+ InstrAccountHeaderModel.OFFSET_PERP_LONG_PX_TREE_NODES_COUNT = 564;
570
+ InstrAccountHeaderModel.OFFSET_PERP_LONG_PX_TREE_ENTRY = 568;
571
+ InstrAccountHeaderModel.OFFSET_PERP_SHORT_PX_TREE_NODES_COUNT = 572;
572
+ InstrAccountHeaderModel.OFFSET_PERP_SHORT_PX_TREE_ENTRY = 576;
573
+ InstrAccountHeaderModel.OFFSET_PERP_REBALANCE_TIME_TREE_NODES_COUNT = 580;
574
+ InstrAccountHeaderModel.OFFSET_PERP_REBALANCE_TIME_TREE_ENTRY = 584;
575
+ InstrAccountHeaderModel.OFFSET_PERP_BIDS_TREE_NODES_COUNT = 588;
576
+ InstrAccountHeaderModel.OFFSET_PERP_BIDS_TREE_LINES_ENTRY = 592;
577
+ InstrAccountHeaderModel.OFFSET_PERP_BIDS_TREE_ORDERS_ENTRY = 596;
578
+ InstrAccountHeaderModel.OFFSET_PERP_ASKS_TREE_NODES_COUNT = 600;
579
+ InstrAccountHeaderModel.OFFSET_PERP_ASKS_TREE_LINES_ENTRY = 604;
580
+ InstrAccountHeaderModel.OFFSET_PERP_ASKS_TREE_ORDERS_ENTRY = 608;
581
+ InstrAccountHeaderModel.OFFSET_PERP_BID_LINES_BEGIN = 612;
582
+ InstrAccountHeaderModel.OFFSET_PERP_BID_LINES_END = 616;
583
+ InstrAccountHeaderModel.OFFSET_PERP_BID_LINES_COUNT = 620;
584
+ InstrAccountHeaderModel.OFFSET_PERP_ASK_LINES_BEGIN = 624;
585
+ InstrAccountHeaderModel.OFFSET_PERP_ASK_LINES_END = 628;
586
+ InstrAccountHeaderModel.OFFSET_PERP_ASK_LINES_COUNT = 632;
587
+ InstrAccountHeaderModel.OFFSET_PERP_BID_ORDERS_COUNT = 636;
588
+ InstrAccountHeaderModel.OFFSET_PERP_ASK_ORDERS_COUNT = 640;
589
+ InstrAccountHeaderModel.OFFSET_PERP_DAY_TRADES = 644;
590
+ InstrAccountHeaderModel.OFFSET_PERP_PREV_DAY_TRADES = 648;
591
+ InstrAccountHeaderModel.OFFSET_CREATION_TIME = 652;
592
+ InstrAccountHeaderModel.OFFSET_PERP_ALLTIME_TRADES = 656;
593
+ InstrAccountHeaderModel.OFFSET_PERP_SPOT_PRICE_FOR_WITHDROWAL = 664;
594
+ InstrAccountHeaderModel.OFFSET_PERP_SOC_LOSS_LONG_RATE = 672;
595
+ InstrAccountHeaderModel.OFFSET_PERP_SOC_LOSS_SHORT_RATE = 680;
596
+ InstrAccountHeaderModel.OFFSET_PERP_OPEN_INT = 688;
597
+ InstrAccountHeaderModel.OFFSET_PERP_PRICE_DELTA = 696;
598
+ InstrAccountHeaderModel.OFFSET_PERP_FUNDING_RATE = 704;
599
+ InstrAccountHeaderModel.OFFSET_PERP_FUNDING_FUNDS = 712;
600
+ InstrAccountHeaderModel.OFFSET_PERP_SOC_LOSS_FUNDS = 720;
601
+ InstrAccountHeaderModel.OFFSET_PERP_INSURANCE_FUND = 728;
602
+ InstrAccountHeaderModel.OFFSET_PERP_LAST_CLOSE = 736;
603
+ InstrAccountHeaderModel.OFFSET_PERP_LAST_ASSET_TOKENS = 744;
604
+ InstrAccountHeaderModel.OFFSET_PERP_LAST_CRNCY_TOKENS = 752;
605
+ InstrAccountHeaderModel.OFFSET_PERP_LAST_PX = 760;
606
+ InstrAccountHeaderModel.OFFSET_PERP_BEST_BID = 768;
607
+ InstrAccountHeaderModel.OFFSET_PERP_BEST_ASK = 776;
608
+ InstrAccountHeaderModel.OFFSET_PERP_DAY_ASSET_TOKENS = 784;
609
+ InstrAccountHeaderModel.OFFSET_PERP_DAY_CRNCY_TOKENS = 792;
610
+ InstrAccountHeaderModel.OFFSET_PERP_DAY_LOW = 800;
611
+ InstrAccountHeaderModel.OFFSET_PERP_DAY_HIGH = 808;
612
+ InstrAccountHeaderModel.OFFSET_PERP_PREV_DAY_ASSET_TOKENS = 816;
613
+ InstrAccountHeaderModel.OFFSET_PERP_PREV_DAY_CRNCY_TOKENS = 824;
614
+ InstrAccountHeaderModel.OFFSET_PERP_ALLTIME_ASSET_TOKENS = 832;
615
+ InstrAccountHeaderModel.OFFSET_PERP_ALLTIME_CRNCY_TOKENS = 840;
616
+ InstrAccountHeaderModel.OFFSET_MAX_LEVERAGE = 848;
617
+ InstrAccountHeaderModel.OFFSET_DAY_VOLATILITY = 856;
618
+ InstrAccountHeaderModel.OFFSET_LIQUIDATION_THRESHOLD = 864;
619
+ InstrAccountHeaderModel.OFFSET_SEATS_RESERVE = 872;
620
+ InstrAccountHeaderModel.OFFSET_RESERVED_VALUE1 = 880;
621
+ InstrAccountHeaderModel.OFFSET_RESERVED_VALUE2 = 888;
622
+ InstrAccountHeaderModel.OFFSET_RESERVED_VALUE3 = 896;
623
+ InstrAccountHeaderModel.OFFSET_RESERVED_VALUE4 = 904;
624
+ InstrAccountHeaderModel.OFFSET_RESERVED_VALUE5 = 912;
625
+ InstrAccountHeaderModel.OFFSET_RESERVED_VALUE6 = 920;
626
+ InstrAccountHeaderModel.OFFSET_RESERVED_VALUE7 = 928;
627
+ InstrAccountHeaderModel.OFFSET_RESERVED_VALUE8 = 936;
628
+ InstrAccountHeaderModel.OFFSET_RESERVED_VALUE9 = 944;
629
+ InstrAccountHeaderModel.OFFSET_RESERVED_VALUE10 = 952;
628
630
  class RootStateModel {
629
631
  static fromBuffer(data, offset) {
630
632
  const result = new RootStateModel();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deriverse/kit",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",