@deriverse/kit 1.0.26 → 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/instruction_models.d.ts +1 -1
- package/dist/instruction_models.js +2 -2
- package/dist/structure_models.d.ts +126 -124
- package/dist/structure_models.js +127 -125
- package/package.json +1 -1
|
@@ -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(
|
|
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
|
|
299
|
-
static readonly
|
|
300
|
-
static readonly
|
|
301
|
-
static readonly
|
|
302
|
-
static readonly
|
|
303
|
-
static readonly
|
|
304
|
-
static readonly
|
|
305
|
-
static readonly
|
|
306
|
-
static readonly
|
|
307
|
-
static readonly
|
|
308
|
-
static readonly
|
|
309
|
-
static readonly
|
|
310
|
-
static readonly
|
|
311
|
-
static readonly
|
|
312
|
-
static readonly
|
|
313
|
-
static readonly
|
|
314
|
-
static readonly
|
|
315
|
-
static readonly
|
|
316
|
-
static readonly
|
|
317
|
-
static readonly
|
|
318
|
-
static readonly
|
|
319
|
-
static readonly
|
|
320
|
-
static readonly
|
|
321
|
-
static readonly
|
|
322
|
-
static readonly
|
|
323
|
-
static readonly
|
|
324
|
-
static readonly
|
|
325
|
-
static readonly
|
|
326
|
-
static readonly
|
|
327
|
-
static readonly
|
|
328
|
-
static readonly
|
|
329
|
-
static readonly
|
|
330
|
-
static readonly
|
|
331
|
-
static readonly
|
|
332
|
-
static readonly
|
|
333
|
-
static readonly
|
|
334
|
-
static readonly
|
|
335
|
-
static readonly
|
|
336
|
-
static readonly
|
|
337
|
-
static readonly
|
|
338
|
-
static readonly
|
|
339
|
-
static readonly
|
|
340
|
-
static readonly
|
|
341
|
-
static readonly
|
|
342
|
-
static readonly
|
|
343
|
-
static readonly
|
|
344
|
-
static readonly
|
|
345
|
-
static readonly
|
|
346
|
-
static readonly
|
|
347
|
-
static readonly
|
|
348
|
-
static readonly
|
|
349
|
-
static readonly
|
|
350
|
-
static readonly
|
|
351
|
-
static readonly
|
|
352
|
-
static readonly
|
|
353
|
-
static readonly
|
|
354
|
-
static readonly
|
|
355
|
-
static readonly
|
|
356
|
-
static readonly
|
|
357
|
-
static readonly
|
|
358
|
-
static readonly
|
|
359
|
-
static readonly
|
|
360
|
-
static readonly
|
|
361
|
-
static readonly
|
|
362
|
-
static readonly
|
|
363
|
-
static readonly
|
|
364
|
-
static readonly
|
|
365
|
-
static readonly
|
|
366
|
-
static readonly
|
|
367
|
-
static readonly
|
|
368
|
-
static readonly
|
|
369
|
-
static readonly
|
|
370
|
-
static readonly
|
|
371
|
-
static readonly
|
|
372
|
-
static readonly
|
|
373
|
-
static readonly
|
|
374
|
-
static readonly
|
|
375
|
-
static readonly
|
|
376
|
-
static readonly
|
|
377
|
-
static readonly
|
|
378
|
-
static readonly
|
|
379
|
-
static readonly
|
|
380
|
-
static readonly
|
|
381
|
-
static readonly
|
|
382
|
-
static readonly
|
|
383
|
-
static readonly
|
|
384
|
-
static readonly
|
|
385
|
-
static readonly
|
|
386
|
-
static readonly
|
|
387
|
-
static readonly
|
|
388
|
-
static readonly
|
|
389
|
-
static readonly
|
|
390
|
-
static readonly
|
|
391
|
-
static readonly
|
|
392
|
-
static readonly
|
|
393
|
-
static readonly
|
|
394
|
-
static readonly
|
|
395
|
-
static readonly
|
|
396
|
-
static readonly
|
|
397
|
-
static readonly
|
|
398
|
-
static readonly
|
|
399
|
-
static readonly
|
|
400
|
-
static readonly
|
|
401
|
-
static readonly
|
|
402
|
-
static readonly
|
|
403
|
-
static readonly
|
|
404
|
-
static readonly
|
|
405
|
-
static readonly
|
|
406
|
-
static readonly
|
|
407
|
-
static readonly
|
|
408
|
-
static readonly
|
|
409
|
-
static readonly
|
|
410
|
-
static readonly
|
|
411
|
-
static readonly
|
|
412
|
-
static readonly
|
|
413
|
-
static readonly
|
|
414
|
-
static readonly
|
|
415
|
-
static readonly
|
|
416
|
-
static readonly
|
|
417
|
-
static readonly
|
|
418
|
-
static readonly
|
|
419
|
-
static readonly
|
|
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
|
-
|
|
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 {
|
package/dist/structure_models.js
CHANGED
|
@@ -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.
|
|
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 +
|
|
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.
|
|
507
|
-
InstrAccountHeaderModel.
|
|
508
|
-
InstrAccountHeaderModel.
|
|
509
|
-
InstrAccountHeaderModel.
|
|
510
|
-
InstrAccountHeaderModel.
|
|
511
|
-
InstrAccountHeaderModel.
|
|
512
|
-
InstrAccountHeaderModel.
|
|
513
|
-
InstrAccountHeaderModel.
|
|
514
|
-
InstrAccountHeaderModel.
|
|
515
|
-
InstrAccountHeaderModel.
|
|
516
|
-
InstrAccountHeaderModel.
|
|
517
|
-
InstrAccountHeaderModel.
|
|
518
|
-
InstrAccountHeaderModel.
|
|
519
|
-
InstrAccountHeaderModel.
|
|
520
|
-
InstrAccountHeaderModel.
|
|
521
|
-
InstrAccountHeaderModel.
|
|
522
|
-
InstrAccountHeaderModel.
|
|
523
|
-
InstrAccountHeaderModel.
|
|
524
|
-
InstrAccountHeaderModel.
|
|
525
|
-
InstrAccountHeaderModel.
|
|
526
|
-
InstrAccountHeaderModel.
|
|
527
|
-
InstrAccountHeaderModel.
|
|
528
|
-
InstrAccountHeaderModel.
|
|
529
|
-
InstrAccountHeaderModel.
|
|
530
|
-
InstrAccountHeaderModel.
|
|
531
|
-
InstrAccountHeaderModel.
|
|
532
|
-
InstrAccountHeaderModel.
|
|
533
|
-
InstrAccountHeaderModel.
|
|
534
|
-
InstrAccountHeaderModel.
|
|
535
|
-
InstrAccountHeaderModel.
|
|
536
|
-
InstrAccountHeaderModel.
|
|
537
|
-
InstrAccountHeaderModel.
|
|
538
|
-
InstrAccountHeaderModel.
|
|
539
|
-
InstrAccountHeaderModel.
|
|
540
|
-
InstrAccountHeaderModel.
|
|
541
|
-
InstrAccountHeaderModel.
|
|
542
|
-
InstrAccountHeaderModel.
|
|
543
|
-
InstrAccountHeaderModel.
|
|
544
|
-
InstrAccountHeaderModel.
|
|
545
|
-
InstrAccountHeaderModel.
|
|
546
|
-
InstrAccountHeaderModel.
|
|
547
|
-
InstrAccountHeaderModel.
|
|
548
|
-
InstrAccountHeaderModel.
|
|
549
|
-
InstrAccountHeaderModel.
|
|
550
|
-
InstrAccountHeaderModel.
|
|
551
|
-
InstrAccountHeaderModel.
|
|
552
|
-
InstrAccountHeaderModel.
|
|
553
|
-
InstrAccountHeaderModel.
|
|
554
|
-
InstrAccountHeaderModel.
|
|
555
|
-
InstrAccountHeaderModel.
|
|
556
|
-
InstrAccountHeaderModel.
|
|
557
|
-
InstrAccountHeaderModel.
|
|
558
|
-
InstrAccountHeaderModel.
|
|
559
|
-
InstrAccountHeaderModel.
|
|
560
|
-
InstrAccountHeaderModel.
|
|
561
|
-
InstrAccountHeaderModel.
|
|
562
|
-
InstrAccountHeaderModel.
|
|
563
|
-
InstrAccountHeaderModel.
|
|
564
|
-
InstrAccountHeaderModel.
|
|
565
|
-
InstrAccountHeaderModel.
|
|
566
|
-
InstrAccountHeaderModel.
|
|
567
|
-
InstrAccountHeaderModel.
|
|
568
|
-
InstrAccountHeaderModel.
|
|
569
|
-
InstrAccountHeaderModel.
|
|
570
|
-
InstrAccountHeaderModel.
|
|
571
|
-
InstrAccountHeaderModel.
|
|
572
|
-
InstrAccountHeaderModel.
|
|
573
|
-
InstrAccountHeaderModel.
|
|
574
|
-
InstrAccountHeaderModel.
|
|
575
|
-
InstrAccountHeaderModel.
|
|
576
|
-
InstrAccountHeaderModel.
|
|
577
|
-
InstrAccountHeaderModel.
|
|
578
|
-
InstrAccountHeaderModel.
|
|
579
|
-
InstrAccountHeaderModel.
|
|
580
|
-
InstrAccountHeaderModel.
|
|
581
|
-
InstrAccountHeaderModel.
|
|
582
|
-
InstrAccountHeaderModel.
|
|
583
|
-
InstrAccountHeaderModel.
|
|
584
|
-
InstrAccountHeaderModel.
|
|
585
|
-
InstrAccountHeaderModel.
|
|
586
|
-
InstrAccountHeaderModel.
|
|
587
|
-
InstrAccountHeaderModel.
|
|
588
|
-
InstrAccountHeaderModel.
|
|
589
|
-
InstrAccountHeaderModel.
|
|
590
|
-
InstrAccountHeaderModel.
|
|
591
|
-
InstrAccountHeaderModel.
|
|
592
|
-
InstrAccountHeaderModel.
|
|
593
|
-
InstrAccountHeaderModel.
|
|
594
|
-
InstrAccountHeaderModel.
|
|
595
|
-
InstrAccountHeaderModel.
|
|
596
|
-
InstrAccountHeaderModel.
|
|
597
|
-
InstrAccountHeaderModel.
|
|
598
|
-
InstrAccountHeaderModel.
|
|
599
|
-
InstrAccountHeaderModel.
|
|
600
|
-
InstrAccountHeaderModel.
|
|
601
|
-
InstrAccountHeaderModel.
|
|
602
|
-
InstrAccountHeaderModel.
|
|
603
|
-
InstrAccountHeaderModel.
|
|
604
|
-
InstrAccountHeaderModel.
|
|
605
|
-
InstrAccountHeaderModel.
|
|
606
|
-
InstrAccountHeaderModel.
|
|
607
|
-
InstrAccountHeaderModel.
|
|
608
|
-
InstrAccountHeaderModel.
|
|
609
|
-
InstrAccountHeaderModel.
|
|
610
|
-
InstrAccountHeaderModel.
|
|
611
|
-
InstrAccountHeaderModel.
|
|
612
|
-
InstrAccountHeaderModel.
|
|
613
|
-
InstrAccountHeaderModel.
|
|
614
|
-
InstrAccountHeaderModel.
|
|
615
|
-
InstrAccountHeaderModel.
|
|
616
|
-
InstrAccountHeaderModel.
|
|
617
|
-
InstrAccountHeaderModel.
|
|
618
|
-
InstrAccountHeaderModel.
|
|
619
|
-
InstrAccountHeaderModel.
|
|
620
|
-
InstrAccountHeaderModel.
|
|
621
|
-
InstrAccountHeaderModel.
|
|
622
|
-
InstrAccountHeaderModel.
|
|
623
|
-
InstrAccountHeaderModel.
|
|
624
|
-
InstrAccountHeaderModel.
|
|
625
|
-
InstrAccountHeaderModel.
|
|
626
|
-
InstrAccountHeaderModel.
|
|
627
|
-
InstrAccountHeaderModel.
|
|
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();
|