@deriverse/kit 1.0.39 → 1.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auto_buffer.d.ts +0 -2
- package/dist/auto_data.d.ts +0 -2
- package/dist/constants.d.ts +14 -0
- package/dist/constants.js +28 -0
- package/dist/engine/account-helpers.d.ts +59 -0
- package/dist/engine/account-helpers.js +177 -0
- package/dist/engine/account-helpers.test.d.ts +1 -0
- package/dist/engine/account-helpers.test.js +199 -0
- package/dist/engine/client-queries.d.ts +36 -0
- package/dist/engine/client-queries.js +498 -0
- package/dist/engine/client-queries.test.d.ts +1 -0
- package/dist/engine/client-queries.test.js +341 -0
- package/dist/engine/context-builders.d.ts +16 -0
- package/dist/engine/context-builders.js +158 -0
- package/dist/engine/context-builders.test.d.ts +1 -0
- package/dist/engine/context-builders.test.js +156 -0
- package/dist/engine/index.d.ts +101 -0
- package/dist/engine/index.js +745 -0
- package/dist/engine/index.test.d.ts +1 -0
- package/dist/engine/index.test.js +685 -0
- package/dist/engine/logs-decoder.d.ts +18 -0
- package/dist/engine/logs-decoder.js +525 -0
- package/dist/engine/logs-decoder.test.d.ts +1 -0
- package/dist/engine/logs-decoder.test.js +836 -0
- package/dist/engine/perp-instructions.d.ts +68 -0
- package/dist/engine/perp-instructions.js +497 -0
- package/dist/engine/perp-instructions.test.d.ts +1 -0
- package/dist/engine/perp-instructions.test.js +292 -0
- package/dist/engine/spot-instructions.d.ts +52 -0
- package/dist/engine/spot-instructions.js +399 -0
- package/dist/engine/spot-instructions.test.d.ts +1 -0
- package/dist/engine/spot-instructions.test.js +221 -0
- package/dist/engine/utils.d.ts +23 -0
- package/dist/engine/utils.js +332 -0
- package/dist/engine/utils.test.d.ts +1 -0
- package/dist/engine/utils.test.js +120 -0
- package/dist/index.d.ts +6 -247
- package/dist/index.js +14 -2923
- package/dist/instruction_models.d.ts +10 -9
- package/dist/instruction_models.js +88 -69
- package/dist/logs_models.d.ts +147 -5
- package/dist/logs_models.js +243 -13
- package/dist/structure_models.d.ts +104 -99
- package/dist/structure_models.js +152 -129
- package/dist/types/engine-args.d.ts +32 -0
- package/dist/types/engine-args.js +2 -0
- package/dist/types/enums.d.ts +43 -0
- package/dist/{types.js → types/enums.js} +3 -5
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.js +38 -0
- package/dist/types/log-message.d.ts +2 -0
- package/dist/types/log-message.js +2 -0
- package/dist/types/responses.d.ts +248 -0
- package/dist/types/responses.js +2 -0
- package/dist/types/schemas.d.ts +168 -0
- package/dist/types/schemas.js +239 -0
- package/dist/types/schemas.test.d.ts +1 -0
- package/dist/types/schemas.test.js +93 -0
- package/dist/utils.d.ts +0 -0
- package/dist/utils.js +1 -0
- package/package.json +26 -6
- package/dist/types.d.ts +0 -565
package/dist/structure_models.js
CHANGED
|
@@ -1,28 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PrivateClientModel = exports.PrivateClientHeaderModel = exports.
|
|
3
|
+
exports.PrivateClientModel = exports.PrivateClientHeaderModel = exports.QuoteMaskModel = exports.QuoteOrderModel = exports.SlotFlagsModel = exports.VmMaskModel = exports.PxOrdersModel = exports.OrderModel = exports.AssetRecordModel = exports.BaseCrncyRecordModel = exports.LineQuotesModel = exports.OperatorModel = exports.DiscriminatorModel = exports.ClientPrimaryAccountHeaderModel = exports.PerpClientInfo5Model = exports.PerpClientInfo4Model = exports.PerpClientInfo3Model = exports.PerpClientInfo2Model = exports.PerpClientInfoModel = exports.SpotClientInfo2Model = exports.SpotClientInfoModel = exports.TokenStateModel = exports.RootStateModel = exports.InstrAccountHeaderModel = exports.CandlesAccountHeaderModel = exports.CandleModel = exports.HolderAccountHeaderModel = exports.PerpTradeAccountHeaderModel = exports.SpotTradeAccountHeaderModel = exports.CommunityAccountHeaderModel = exports.ClientCommunityAccountHeaderModel = exports.ClientCommunityRecordModel = exports.AccountType = exports.SlotFlag = exports.VmFlag = exports.AssetType = exports.OrderType = void 0;
|
|
4
4
|
const auto_data_1 = require("./auto_data");
|
|
5
5
|
var OrderType;
|
|
6
6
|
(function (OrderType) {
|
|
7
7
|
OrderType[OrderType["limit"] = 0] = "limit";
|
|
8
8
|
OrderType[OrderType["market"] = 1] = "market";
|
|
9
9
|
OrderType[OrderType["marginCall"] = 2] = "marginCall";
|
|
10
|
-
OrderType[OrderType["forcedClose"] = 3] = "forcedClose";
|
|
11
10
|
})(OrderType || (exports.OrderType = OrderType = {}));
|
|
11
|
+
var AssetType;
|
|
12
|
+
(function (AssetType) {
|
|
13
|
+
AssetType[AssetType["token"] = 268435456] = "token";
|
|
14
|
+
AssetType[AssetType["spotLp"] = 536870912] = "spotLp";
|
|
15
|
+
AssetType[AssetType["spotOrders"] = 805306368] = "spotOrders";
|
|
16
|
+
AssetType[AssetType["perp"] = 1073741824] = "perp";
|
|
17
|
+
})(AssetType || (exports.AssetType = AssetType = {}));
|
|
18
|
+
var VmFlag;
|
|
19
|
+
(function (VmFlag) {
|
|
20
|
+
VmFlag[VmFlag["active"] = 2147483648] = "active";
|
|
21
|
+
VmFlag[VmFlag["change"] = 1073741824] = "change";
|
|
22
|
+
VmFlag[VmFlag["withdraw"] = 536870912] = "withdraw";
|
|
23
|
+
})(VmFlag || (exports.VmFlag = VmFlag = {}));
|
|
24
|
+
var SlotFlag;
|
|
25
|
+
(function (SlotFlag) {
|
|
26
|
+
SlotFlag[SlotFlag["spot"] = 1] = "spot";
|
|
27
|
+
SlotFlag[SlotFlag["perp"] = 2] = "perp";
|
|
28
|
+
SlotFlag[SlotFlag["option"] = 4] = "option";
|
|
29
|
+
})(SlotFlag || (exports.SlotFlag = SlotFlag = {}));
|
|
12
30
|
var AccountType;
|
|
13
31
|
(function (AccountType) {
|
|
14
32
|
AccountType[AccountType["clientCommunity"] = 35] = "clientCommunity";
|
|
33
|
+
AccountType[AccountType["clientDrv"] = 32] = "clientDrv";
|
|
15
34
|
AccountType[AccountType["clientPrimary"] = 31] = "clientPrimary";
|
|
16
35
|
AccountType[AccountType["community"] = 34] = "community";
|
|
17
|
-
AccountType[AccountType["futuresAskOrders"] = 29] = "futuresAskOrders";
|
|
18
|
-
AccountType[AccountType["futuresAsksTree"] = 27] = "futuresAsksTree";
|
|
19
|
-
AccountType[AccountType["futuresBidOrders"] = 28] = "futuresBidOrders";
|
|
20
|
-
AccountType[AccountType["futuresBidsTree"] = 26] = "futuresBidsTree";
|
|
21
|
-
AccountType[AccountType["futuresClientAccounts"] = 23] = "futuresClientAccounts";
|
|
22
|
-
AccountType[AccountType["futuresClientInfos"] = 24] = "futuresClientInfos";
|
|
23
|
-
AccountType[AccountType["futuresClientInfos2"] = 25] = "futuresClientInfos2";
|
|
24
|
-
AccountType[AccountType["futuresLines"] = 30] = "futuresLines";
|
|
25
|
-
AccountType[AccountType["futuresMaps"] = 22] = "futuresMaps";
|
|
26
36
|
AccountType[AccountType["holder"] = 1] = "holder";
|
|
27
37
|
AccountType[AccountType["root"] = 2] = "root";
|
|
28
38
|
AccountType[AccountType["instr"] = 7] = "instr";
|
|
@@ -238,34 +248,6 @@ exports.HolderAccountHeaderModel = HolderAccountHeaderModel;
|
|
|
238
248
|
HolderAccountHeaderModel.LENGTH = 2 * 4; // 8 bytes
|
|
239
249
|
HolderAccountHeaderModel.OFFSET_TAG = 0;
|
|
240
250
|
HolderAccountHeaderModel.OFFSET_OPERATORS_COUNT = 4;
|
|
241
|
-
class OperatorModel {
|
|
242
|
-
static fromBuffer(data, offset) {
|
|
243
|
-
const result = new OperatorModel();
|
|
244
|
-
let autoData = new auto_data_1.AutoData(data, offset);
|
|
245
|
-
result.operatorAddress = autoData.readAddress();
|
|
246
|
-
result.version = autoData.readU32();
|
|
247
|
-
result.reserved = autoData.readU32();
|
|
248
|
-
return result;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
exports.OperatorModel = OperatorModel;
|
|
252
|
-
OperatorModel.LENGTH = 2 * 4 + 1 * 32; // 40 bytes
|
|
253
|
-
OperatorModel.OFFSET_OPERATOR_ADDRESS = 0;
|
|
254
|
-
OperatorModel.OFFSET_VERSION = 32;
|
|
255
|
-
OperatorModel.OFFSET_RESERVED = 36;
|
|
256
|
-
class LineQuotesModel {
|
|
257
|
-
static fromBuffer(data, offset) {
|
|
258
|
-
const result = new LineQuotesModel();
|
|
259
|
-
let autoData = new auto_data_1.AutoData(data, offset);
|
|
260
|
-
result.px = autoData.readI64();
|
|
261
|
-
result.qty = autoData.readI64();
|
|
262
|
-
return result;
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
exports.LineQuotesModel = LineQuotesModel;
|
|
266
|
-
LineQuotesModel.LENGTH = 2 * 8; // 16 bytes
|
|
267
|
-
LineQuotesModel.OFFSET_PX = 0;
|
|
268
|
-
LineQuotesModel.OFFSET_QTY = 8;
|
|
269
251
|
class CandleModel {
|
|
270
252
|
static fromBuffer(data, offset) {
|
|
271
253
|
const result = new CandleModel();
|
|
@@ -687,80 +669,6 @@ TokenStateModel.OFFSET_ID = 72;
|
|
|
687
669
|
TokenStateModel.OFFSET_MASK = 76;
|
|
688
670
|
TokenStateModel.OFFSET_RESERVED = 80;
|
|
689
671
|
TokenStateModel.OFFSET_BASE_CRNCY_INDEX = 84;
|
|
690
|
-
class BaseCrncyRecordModel {
|
|
691
|
-
static fromBuffer(data, offset) {
|
|
692
|
-
const result = new BaseCrncyRecordModel();
|
|
693
|
-
let autoData = new auto_data_1.AutoData(data, offset);
|
|
694
|
-
result.crncyTokenId = autoData.readU32();
|
|
695
|
-
result.decsCount = autoData.readU32();
|
|
696
|
-
result.funds = autoData.readI64();
|
|
697
|
-
result.rate = autoData.readF64();
|
|
698
|
-
result.denominator = autoData.readF64();
|
|
699
|
-
result.lockedDrvsAmount = autoData.readI64();
|
|
700
|
-
result.lockedDrvsDividendsValue = autoData.readI64();
|
|
701
|
-
result.mask = autoData.readI64();
|
|
702
|
-
return result;
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
exports.BaseCrncyRecordModel = BaseCrncyRecordModel;
|
|
706
|
-
BaseCrncyRecordModel.LENGTH = 2 * 4 + 6 * 8; // 56 bytes
|
|
707
|
-
BaseCrncyRecordModel.OFFSET_CRNCY_TOKEN_ID = 0;
|
|
708
|
-
BaseCrncyRecordModel.OFFSET_DECS_COUNT = 4;
|
|
709
|
-
BaseCrncyRecordModel.OFFSET_FUNDS = 8;
|
|
710
|
-
BaseCrncyRecordModel.OFFSET_RATE = 16;
|
|
711
|
-
BaseCrncyRecordModel.OFFSET_DENOMINATOR = 24;
|
|
712
|
-
BaseCrncyRecordModel.OFFSET_LOCKED_DRVS_AMOUNT = 32;
|
|
713
|
-
BaseCrncyRecordModel.OFFSET_LOCKED_DRVS_DIVIDENDS_VALUE = 40;
|
|
714
|
-
BaseCrncyRecordModel.OFFSET_MASK = 48;
|
|
715
|
-
class ClientSpotModel {
|
|
716
|
-
static fromBuffer(data, offset) {
|
|
717
|
-
const result = new ClientSpotModel();
|
|
718
|
-
let autoData = new auto_data_1.AutoData(data, offset);
|
|
719
|
-
result.assetId = autoData.readU32();
|
|
720
|
-
result.tempClientId = autoData.readU32();
|
|
721
|
-
result.slot = autoData.readU32();
|
|
722
|
-
result.padding = autoData.readU32();
|
|
723
|
-
return result;
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
exports.ClientSpotModel = ClientSpotModel;
|
|
727
|
-
ClientSpotModel.LENGTH = 4 * 4; // 16 bytes
|
|
728
|
-
ClientSpotModel.OFFSET_ASSET_ID = 0;
|
|
729
|
-
ClientSpotModel.OFFSET_TEMP_CLIENT_ID = 4;
|
|
730
|
-
ClientSpotModel.OFFSET_SLOT = 8;
|
|
731
|
-
ClientSpotModel.OFFSET_PADDING = 12;
|
|
732
|
-
class ClientPerpModel {
|
|
733
|
-
static fromBuffer(data, offset) {
|
|
734
|
-
const result = new ClientPerpModel();
|
|
735
|
-
let autoData = new auto_data_1.AutoData(data, offset);
|
|
736
|
-
result.assetId = autoData.readU32();
|
|
737
|
-
result.tempClientId = autoData.readU32();
|
|
738
|
-
result.slot = autoData.readU32();
|
|
739
|
-
result.padding = autoData.readU32();
|
|
740
|
-
return result;
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
exports.ClientPerpModel = ClientPerpModel;
|
|
744
|
-
ClientPerpModel.LENGTH = 4 * 4; // 16 bytes
|
|
745
|
-
ClientPerpModel.OFFSET_ASSET_ID = 0;
|
|
746
|
-
ClientPerpModel.OFFSET_TEMP_CLIENT_ID = 4;
|
|
747
|
-
ClientPerpModel.OFFSET_SLOT = 8;
|
|
748
|
-
ClientPerpModel.OFFSET_PADDING = 12;
|
|
749
|
-
class AssetRecordModel {
|
|
750
|
-
static fromBuffer(data, offset) {
|
|
751
|
-
const result = new AssetRecordModel();
|
|
752
|
-
let autoData = new auto_data_1.AutoData(data, offset);
|
|
753
|
-
result.assetId = autoData.readU32();
|
|
754
|
-
result.tempId = autoData.readU32();
|
|
755
|
-
result.value = autoData.readI64();
|
|
756
|
-
return result;
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
exports.AssetRecordModel = AssetRecordModel;
|
|
760
|
-
AssetRecordModel.LENGTH = 2 * 4 + 1 * 8; // 16 bytes
|
|
761
|
-
AssetRecordModel.OFFSET_ASSET_ID = 0;
|
|
762
|
-
AssetRecordModel.OFFSET_TEMP_ID = 4;
|
|
763
|
-
AssetRecordModel.OFFSET_VALUE = 8;
|
|
764
672
|
class SpotClientInfoModel {
|
|
765
673
|
static fromBuffer(data, offset) {
|
|
766
674
|
const result = new SpotClientInfoModel();
|
|
@@ -906,14 +814,7 @@ class ClientPrimaryAccountHeaderModel {
|
|
|
906
814
|
result.lutAddress = autoData.readAddress();
|
|
907
815
|
result.refAddress = autoData.readAddress();
|
|
908
816
|
result.vmWalletAddress = autoData.readAddress();
|
|
909
|
-
result.
|
|
910
|
-
result.vmInstr1 = autoData.readU32();
|
|
911
|
-
result.vmInstr2 = autoData.readU32();
|
|
912
|
-
result.vmInstr3 = autoData.readU32();
|
|
913
|
-
result.vmInstr4 = autoData.readU32();
|
|
914
|
-
result.vmInstr5 = autoData.readU32();
|
|
915
|
-
result.vmInstr6 = autoData.readU32();
|
|
916
|
-
result.vmInstr7 = autoData.readU32();
|
|
817
|
+
result.vmInstrs = Array.from({ length: 8 }, () => autoData.readU32());
|
|
917
818
|
result.vmWithdrawTokenId = autoData.readU32();
|
|
918
819
|
result.vmMask = autoData.readU32();
|
|
919
820
|
result.vmWithdrawAmount = autoData.readI64();
|
|
@@ -960,14 +861,7 @@ ClientPrimaryAccountHeaderModel.OFFSET_WALLET_ADDRESS = 8;
|
|
|
960
861
|
ClientPrimaryAccountHeaderModel.OFFSET_LUT_ADDRESS = 40;
|
|
961
862
|
ClientPrimaryAccountHeaderModel.OFFSET_REF_ADDRESS = 72;
|
|
962
863
|
ClientPrimaryAccountHeaderModel.OFFSET_VM_WALLET_ADDRESS = 104;
|
|
963
|
-
ClientPrimaryAccountHeaderModel.
|
|
964
|
-
ClientPrimaryAccountHeaderModel.OFFSET_VM_INSTR_1 = 140;
|
|
965
|
-
ClientPrimaryAccountHeaderModel.OFFSET_VM_INSTR_2 = 144;
|
|
966
|
-
ClientPrimaryAccountHeaderModel.OFFSET_VM_INSTR_3 = 148;
|
|
967
|
-
ClientPrimaryAccountHeaderModel.OFFSET_VM_INSTR_4 = 152;
|
|
968
|
-
ClientPrimaryAccountHeaderModel.OFFSET_VM_INSTR_5 = 156;
|
|
969
|
-
ClientPrimaryAccountHeaderModel.OFFSET_VM_INSTR_6 = 160;
|
|
970
|
-
ClientPrimaryAccountHeaderModel.OFFSET_VM_INSTR_7 = 164;
|
|
864
|
+
ClientPrimaryAccountHeaderModel.OFFSET_VM_INSTRS = 136;
|
|
971
865
|
ClientPrimaryAccountHeaderModel.OFFSET_VM_WITHDRAW_TOKEN_ID = 168;
|
|
972
866
|
ClientPrimaryAccountHeaderModel.OFFSET_VM_MASK = 172;
|
|
973
867
|
ClientPrimaryAccountHeaderModel.OFFSET_VM_WITHDRAW_AMOUNT = 176;
|
|
@@ -1003,6 +897,87 @@ ClientPrimaryAccountHeaderModel.OFFSET_RESERVED_VALUE5 = 344;
|
|
|
1003
897
|
ClientPrimaryAccountHeaderModel.OFFSET_RESERVED_VALUE6 = 352;
|
|
1004
898
|
ClientPrimaryAccountHeaderModel.OFFSET_RESERVED_VALUE7 = 360;
|
|
1005
899
|
ClientPrimaryAccountHeaderModel.OFFSET_RESERVED_VALUE8 = 368;
|
|
900
|
+
class DiscriminatorModel {
|
|
901
|
+
static fromBuffer(data, offset) {
|
|
902
|
+
const result = new DiscriminatorModel();
|
|
903
|
+
let autoData = new auto_data_1.AutoData(data, offset);
|
|
904
|
+
result.tag = autoData.readU32();
|
|
905
|
+
result.version = autoData.readU32();
|
|
906
|
+
return result;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
exports.DiscriminatorModel = DiscriminatorModel;
|
|
910
|
+
DiscriminatorModel.LENGTH = 2 * 4; // 8 bytes
|
|
911
|
+
DiscriminatorModel.OFFSET_TAG = 0;
|
|
912
|
+
DiscriminatorModel.OFFSET_VERSION = 4;
|
|
913
|
+
class OperatorModel {
|
|
914
|
+
static fromBuffer(data, offset) {
|
|
915
|
+
const result = new OperatorModel();
|
|
916
|
+
let autoData = new auto_data_1.AutoData(data, offset);
|
|
917
|
+
result.operatorAddress = autoData.readAddress();
|
|
918
|
+
result.version = autoData.readU32();
|
|
919
|
+
result.reserved = autoData.readU32();
|
|
920
|
+
return result;
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
exports.OperatorModel = OperatorModel;
|
|
924
|
+
OperatorModel.LENGTH = 2 * 4 + 1 * 32; // 40 bytes
|
|
925
|
+
OperatorModel.OFFSET_OPERATOR_ADDRESS = 0;
|
|
926
|
+
OperatorModel.OFFSET_VERSION = 32;
|
|
927
|
+
OperatorModel.OFFSET_RESERVED = 36;
|
|
928
|
+
class LineQuotesModel {
|
|
929
|
+
static fromBuffer(data, offset) {
|
|
930
|
+
const result = new LineQuotesModel();
|
|
931
|
+
let autoData = new auto_data_1.AutoData(data, offset);
|
|
932
|
+
result.px = autoData.readI64();
|
|
933
|
+
result.qty = autoData.readI64();
|
|
934
|
+
return result;
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
exports.LineQuotesModel = LineQuotesModel;
|
|
938
|
+
LineQuotesModel.LENGTH = 2 * 8; // 16 bytes
|
|
939
|
+
LineQuotesModel.OFFSET_PX = 0;
|
|
940
|
+
LineQuotesModel.OFFSET_QTY = 8;
|
|
941
|
+
class BaseCrncyRecordModel {
|
|
942
|
+
static fromBuffer(data, offset) {
|
|
943
|
+
const result = new BaseCrncyRecordModel();
|
|
944
|
+
let autoData = new auto_data_1.AutoData(data, offset);
|
|
945
|
+
result.crncyTokenId = autoData.readU32();
|
|
946
|
+
result.decsCount = autoData.readU32();
|
|
947
|
+
result.funds = autoData.readI64();
|
|
948
|
+
result.rate = autoData.readF64();
|
|
949
|
+
result.denominator = autoData.readF64();
|
|
950
|
+
result.lockedDrvsAmount = autoData.readI64();
|
|
951
|
+
result.lockedDrvsDividendsValue = autoData.readI64();
|
|
952
|
+
result.mask = autoData.readI64();
|
|
953
|
+
return result;
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
exports.BaseCrncyRecordModel = BaseCrncyRecordModel;
|
|
957
|
+
BaseCrncyRecordModel.LENGTH = 2 * 4 + 6 * 8; // 56 bytes
|
|
958
|
+
BaseCrncyRecordModel.OFFSET_CRNCY_TOKEN_ID = 0;
|
|
959
|
+
BaseCrncyRecordModel.OFFSET_DECS_COUNT = 4;
|
|
960
|
+
BaseCrncyRecordModel.OFFSET_FUNDS = 8;
|
|
961
|
+
BaseCrncyRecordModel.OFFSET_RATE = 16;
|
|
962
|
+
BaseCrncyRecordModel.OFFSET_DENOMINATOR = 24;
|
|
963
|
+
BaseCrncyRecordModel.OFFSET_LOCKED_DRVS_AMOUNT = 32;
|
|
964
|
+
BaseCrncyRecordModel.OFFSET_LOCKED_DRVS_DIVIDENDS_VALUE = 40;
|
|
965
|
+
BaseCrncyRecordModel.OFFSET_MASK = 48;
|
|
966
|
+
class AssetRecordModel {
|
|
967
|
+
static fromBuffer(data, offset) {
|
|
968
|
+
const result = new AssetRecordModel();
|
|
969
|
+
let autoData = new auto_data_1.AutoData(data, offset);
|
|
970
|
+
result.assetId = autoData.readU32();
|
|
971
|
+
result.tempId = autoData.readU32();
|
|
972
|
+
result.value = autoData.readI64();
|
|
973
|
+
return result;
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
exports.AssetRecordModel = AssetRecordModel;
|
|
977
|
+
AssetRecordModel.LENGTH = 2 * 4 + 1 * 8; // 16 bytes
|
|
978
|
+
AssetRecordModel.OFFSET_ASSET_ID = 0;
|
|
979
|
+
AssetRecordModel.OFFSET_TEMP_ID = 4;
|
|
980
|
+
AssetRecordModel.OFFSET_VALUE = 8;
|
|
1006
981
|
class OrderModel {
|
|
1007
982
|
static fromBuffer(data, offset) {
|
|
1008
983
|
const result = new OrderModel();
|
|
@@ -1063,6 +1038,54 @@ PxOrdersModel.OFFSET_SREF = 24;
|
|
|
1063
1038
|
PxOrdersModel.OFFSET_LINK = 28;
|
|
1064
1039
|
PxOrdersModel.OFFSET_BEGIN = 32;
|
|
1065
1040
|
PxOrdersModel.OFFSET_END = 36;
|
|
1041
|
+
class VmMaskModel {
|
|
1042
|
+
static fromBuffer(data, offset) {
|
|
1043
|
+
const result = new VmMaskModel();
|
|
1044
|
+
let autoData = new auto_data_1.AutoData(data, offset);
|
|
1045
|
+
result.value = autoData.readU32();
|
|
1046
|
+
return result;
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
exports.VmMaskModel = VmMaskModel;
|
|
1050
|
+
VmMaskModel.LENGTH = 1 * 4; // 4 bytes
|
|
1051
|
+
VmMaskModel.OFFSET_VALUE = 0;
|
|
1052
|
+
class SlotFlagsModel {
|
|
1053
|
+
static fromBuffer(data, offset) {
|
|
1054
|
+
const result = new SlotFlagsModel();
|
|
1055
|
+
let autoData = new auto_data_1.AutoData(data, offset);
|
|
1056
|
+
result.value = autoData.readU8();
|
|
1057
|
+
return result;
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
exports.SlotFlagsModel = SlotFlagsModel;
|
|
1061
|
+
SlotFlagsModel.LENGTH = 1 * 1; // 1 bytes
|
|
1062
|
+
SlotFlagsModel.OFFSET_VALUE = 0;
|
|
1063
|
+
class QuoteOrderModel {
|
|
1064
|
+
static fromBuffer(data, offset) {
|
|
1065
|
+
const result = new QuoteOrderModel();
|
|
1066
|
+
let autoData = new auto_data_1.AutoData(data, offset);
|
|
1067
|
+
result.newPrice = autoData.readI64();
|
|
1068
|
+
result.newQty = autoData.readI64();
|
|
1069
|
+
result.oldId = autoData.readI64();
|
|
1070
|
+
return result;
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
exports.QuoteOrderModel = QuoteOrderModel;
|
|
1074
|
+
QuoteOrderModel.LENGTH = 3 * 8; // 24 bytes
|
|
1075
|
+
QuoteOrderModel.OFFSET_NEW_PRICE = 0;
|
|
1076
|
+
QuoteOrderModel.OFFSET_NEW_QTY = 8;
|
|
1077
|
+
QuoteOrderModel.OFFSET_OLD_ID = 16;
|
|
1078
|
+
class QuoteMaskModel {
|
|
1079
|
+
static fromBuffer(data, offset) {
|
|
1080
|
+
const result = new QuoteMaskModel();
|
|
1081
|
+
let autoData = new auto_data_1.AutoData(data, offset);
|
|
1082
|
+
result.value = autoData.readU16();
|
|
1083
|
+
return result;
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
exports.QuoteMaskModel = QuoteMaskModel;
|
|
1087
|
+
QuoteMaskModel.LENGTH = 1 * 2; // 2 bytes
|
|
1088
|
+
QuoteMaskModel.OFFSET_VALUE = 0;
|
|
1066
1089
|
class PrivateClientHeaderModel {
|
|
1067
1090
|
static fromBuffer(data, offset) {
|
|
1068
1091
|
const result = new PrivateClientHeaderModel();
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { EngineArgsSchema, InstrIdSchema, DepositArgsSchema, WithdrawArgsSchema, NewSpotOrderArgsSchema, SpotQuotesReplaceArgsSchema, SwapArgsSchema, SpotOrderCancelArgsSchema, SpotMassCancelArgsSchema, SpotLpArgsSchema, PerpDepositArgsSchema, PerpBuySeatArgsSchema, PerpSellSeatArgsSchema, NewPerpOrderArgsSchema, PerpQuotesReplaceArgsSchema, PerpOrderCancelArgsSchema, PerpMassCancelArgsSchema, PerpChangeLeverageArgsSchema, PerpStatisticsResetArgsSchema, PerpForcedCloseArgsSchema, NewInstrumentArgsSchema, GetInstrIdArgsSchema, GetSpotContextArgsSchema, GetInstrAccountByTagArgsSchema, UpdateInstrDataArgsSchema, DistribDividendsArgsSchema, GetClientSpotOrdersInfoArgsSchema, GetClientPerpOrdersInfoArgsSchema, GetClientSpotOrdersArgsSchema, GetClientPerpOrdersArgsSchema } from './schemas';
|
|
3
|
+
export type EngineArgs = z.infer<typeof EngineArgsSchema>;
|
|
4
|
+
export type InstrId = z.infer<typeof InstrIdSchema>;
|
|
5
|
+
export type DepositArgs = z.infer<typeof DepositArgsSchema>;
|
|
6
|
+
export type WithdrawArgs = z.infer<typeof WithdrawArgsSchema>;
|
|
7
|
+
export type NewSpotOrderArgs = z.infer<typeof NewSpotOrderArgsSchema>;
|
|
8
|
+
export type SpotQuotesReplaceArgs = z.infer<typeof SpotQuotesReplaceArgsSchema>;
|
|
9
|
+
export type SwapArgs = z.infer<typeof SwapArgsSchema>;
|
|
10
|
+
export type SpotOrderCancelArgs = z.infer<typeof SpotOrderCancelArgsSchema>;
|
|
11
|
+
export type SpotMassCancelArgs = z.infer<typeof SpotMassCancelArgsSchema>;
|
|
12
|
+
export type SpotLpArgs = z.infer<typeof SpotLpArgsSchema>;
|
|
13
|
+
export type PerpDepositArgs = z.infer<typeof PerpDepositArgsSchema>;
|
|
14
|
+
export type PerpBuySeatArgs = z.infer<typeof PerpBuySeatArgsSchema>;
|
|
15
|
+
export type PerpSellSeatArgs = z.infer<typeof PerpSellSeatArgsSchema>;
|
|
16
|
+
export type NewPerpOrderArgs = z.infer<typeof NewPerpOrderArgsSchema>;
|
|
17
|
+
export type PerpQuotesReplaceArgs = z.infer<typeof PerpQuotesReplaceArgsSchema>;
|
|
18
|
+
export type PerpOrderCancelArgs = z.infer<typeof PerpOrderCancelArgsSchema>;
|
|
19
|
+
export type PerpMassCancelArgs = z.infer<typeof PerpMassCancelArgsSchema>;
|
|
20
|
+
export type PerpChangeLeverageArgs = z.infer<typeof PerpChangeLeverageArgsSchema>;
|
|
21
|
+
export type PerpStatisticsResetArgs = z.infer<typeof PerpStatisticsResetArgsSchema>;
|
|
22
|
+
export type PerpForcedCloseArgs = z.infer<typeof PerpForcedCloseArgsSchema>;
|
|
23
|
+
export type NewInstrumentArgs = z.infer<typeof NewInstrumentArgsSchema>;
|
|
24
|
+
export type GetInstrIdArgs = z.infer<typeof GetInstrIdArgsSchema>;
|
|
25
|
+
export type GetSpotContextArgs = z.infer<typeof GetSpotContextArgsSchema>;
|
|
26
|
+
export type getInstrAccountByTagArgs = z.infer<typeof GetInstrAccountByTagArgsSchema>;
|
|
27
|
+
export type updateInstrDataArgs = z.infer<typeof UpdateInstrDataArgsSchema>;
|
|
28
|
+
export type DistribDividendsArgs = z.infer<typeof DistribDividendsArgsSchema>;
|
|
29
|
+
export type GetClientSpotOrdersInfoArgs = z.infer<typeof GetClientSpotOrdersInfoArgsSchema>;
|
|
30
|
+
export type GetClientPerpOrdersInfoArgs = z.infer<typeof GetClientPerpOrdersInfoArgsSchema>;
|
|
31
|
+
export type GetClientSpotOrdersArgs = z.infer<typeof GetClientSpotOrdersArgsSchema>;
|
|
32
|
+
export type GetClientPerpOrdersArgs = z.infer<typeof GetClientPerpOrdersArgsSchema>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export { LogType } from '../logs_models';
|
|
2
|
+
export declare enum InstrMask {
|
|
3
|
+
DRV = 268435456,
|
|
4
|
+
READY_TO_DRV_UPGRADE = 536870912,
|
|
5
|
+
PERP = 1073741824,
|
|
6
|
+
ORACLE = 2147483648,
|
|
7
|
+
READY_TO_PERP_UPGRADE = 16777216
|
|
8
|
+
}
|
|
9
|
+
export declare enum AccountType {
|
|
10
|
+
CLIENT_COMMUNITY = 35,
|
|
11
|
+
CLIENT_PRIMARY = 31,
|
|
12
|
+
COMMUNITY = 34,
|
|
13
|
+
HOLDER = 1,
|
|
14
|
+
ROOT = 2,
|
|
15
|
+
INSTR = 7,
|
|
16
|
+
SPOT_15M_CANDLES = 20,
|
|
17
|
+
SPOT_1M_CANDLES = 19,
|
|
18
|
+
SPOT_ASK_ORDERS = 17,
|
|
19
|
+
SPOT_ASKS_TREE = 15,
|
|
20
|
+
SPOT_BID_ORDERS = 16,
|
|
21
|
+
SPOT_BIDS_TREE = 14,
|
|
22
|
+
SPOT_CLIENT_INFOS = 12,
|
|
23
|
+
SPOT_CLIENT_INFOS2 = 13,
|
|
24
|
+
SPOT_DAY_CANDLES = 21,
|
|
25
|
+
SPOT_LINES = 18,
|
|
26
|
+
SPOT_MAPS = 10,
|
|
27
|
+
TOKEN = 4,
|
|
28
|
+
PERP_ASK_ORDERS = 36,
|
|
29
|
+
PERP_ASKS_TREE = 37,
|
|
30
|
+
PERP_BID_ORDERS = 38,
|
|
31
|
+
PERP_BIDS_TREE = 39,
|
|
32
|
+
PERP_CLIENT_INFOS = 41,
|
|
33
|
+
PERP_CLIENT_INFOS2 = 42,
|
|
34
|
+
PERP_CLIENT_INFOS3 = 43,
|
|
35
|
+
PERP_CLIENT_INFOS4 = 44,
|
|
36
|
+
PERP_CLIENT_INFOS5 = 45,
|
|
37
|
+
PERP_LINES = 46,
|
|
38
|
+
PERP_MAPS = 47,
|
|
39
|
+
PERP_LONG_PX_TREE = 48,
|
|
40
|
+
PERP_SHORT_PX_TREE = 49,
|
|
41
|
+
PERP_REBALANCE_TIME_TREE = 50,
|
|
42
|
+
PRIVATE_CLIENTS = 51
|
|
43
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
3
|
+
exports.AccountType = exports.InstrMask = exports.LogType = void 0;
|
|
4
|
+
var logs_models_1 = require("../logs_models");
|
|
5
|
+
Object.defineProperty(exports, "LogType", { enumerable: true, get: function () { return logs_models_1.LogType; } });
|
|
5
6
|
var InstrMask;
|
|
6
7
|
(function (InstrMask) {
|
|
7
8
|
InstrMask[InstrMask["DRV"] = 268435456] = "DRV";
|
|
@@ -46,6 +47,3 @@ var AccountType;
|
|
|
46
47
|
AccountType[AccountType["PERP_REBALANCE_TIME_TREE"] = 50] = "PERP_REBALANCE_TIME_TREE";
|
|
47
48
|
AccountType[AccountType["PRIVATE_CLIENTS"] = 51] = "PRIVATE_CLIENTS";
|
|
48
49
|
})(AccountType || (exports.AccountType = AccountType = {}));
|
|
49
|
-
exports.VERSION = 1;
|
|
50
|
-
exports.PROGRAM_ID = (0, kit_1.address)("DRVSpZ2YUYYKgZP8XtLhAGtT1zYSCKzeHfb4DgRnrgqD");
|
|
51
|
-
exports.MARKET_DEPTH = 20;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IAccountMeta, IInstruction } from '@solana/kit';
|
|
2
|
+
export { InstrMask, AccountType, LogType } from './enums';
|
|
3
|
+
export { EngineArgs, InstrId, DepositArgs, WithdrawArgs, NewSpotOrderArgs, SpotQuotesReplaceArgs, SwapArgs, PerpQuotesReplaceArgs, SpotOrderCancelArgs, PerpOrderCancelArgs, SpotMassCancelArgs, PerpMassCancelArgs, PerpStatisticsResetArgs, PerpChangeLeverageArgs, PerpForcedCloseArgs, GetInstrIdArgs, GetSpotContextArgs, getInstrAccountByTagArgs, updateInstrDataArgs, SpotLpArgs, DistribDividendsArgs, PerpDepositArgs, PerpBuySeatArgs, PerpSellSeatArgs, NewPerpOrderArgs, NewInstrumentArgs, GetClientSpotOrdersInfoArgs, GetClientPerpOrdersInfoArgs, GetClientSpotOrdersArgs, GetClientPerpOrdersArgs, } from './engine-args';
|
|
4
|
+
export { LinePx, Instrument, Token, GetClientSpotOrdersInfoResponse, GetClientPerpOrdersInfoResponse, GetClientSpotOrdersResponse, GetClientPerpOrdersResponse, ClientTokenData, ClientLpData, ClientSpotData, ClientPerpData, RefLink, CommunityData, ClientCommunityData, ClientRefProgramData, GetClientDataResponse, } from './responses';
|
|
5
|
+
export { LogMessage } from './log-message';
|
|
6
|
+
export { EngineArgsSchema, InstrIdSchema, DepositArgsSchema, WithdrawArgsSchema, NewSpotOrderArgsSchema, SpotQuotesReplaceArgsSchema, SwapArgsSchema, SpotOrderCancelArgsSchema, SpotMassCancelArgsSchema, SpotLpArgsSchema, PerpDepositArgsSchema, PerpBuySeatArgsSchema, PerpSellSeatArgsSchema, NewPerpOrderArgsSchema, PerpQuotesReplaceArgsSchema, PerpOrderCancelArgsSchema, PerpMassCancelArgsSchema, PerpChangeLeverageArgsSchema, PerpStatisticsResetArgsSchema, PerpForcedCloseArgsSchema, NewInstrumentArgsSchema, GetInstrIdArgsSchema, GetClientSpotOrdersInfoArgsSchema, GetClientPerpOrdersInfoArgsSchema, GetClientSpotOrdersArgsSchema, GetClientPerpOrdersArgsSchema, DistribDividendsArgsSchema, GetSpotContextArgsSchema, GetInstrAccountByTagArgsSchema, UpdateInstrDataArgsSchema, } from './schemas';
|
|
7
|
+
export type Instruction = IInstruction;
|
|
8
|
+
export type AccountMeta = IAccountMeta;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateInstrDataArgsSchema = exports.GetInstrAccountByTagArgsSchema = exports.GetSpotContextArgsSchema = exports.DistribDividendsArgsSchema = exports.GetClientPerpOrdersArgsSchema = exports.GetClientSpotOrdersArgsSchema = exports.GetClientPerpOrdersInfoArgsSchema = exports.GetClientSpotOrdersInfoArgsSchema = exports.GetInstrIdArgsSchema = exports.NewInstrumentArgsSchema = exports.PerpForcedCloseArgsSchema = exports.PerpStatisticsResetArgsSchema = exports.PerpChangeLeverageArgsSchema = exports.PerpMassCancelArgsSchema = exports.PerpOrderCancelArgsSchema = exports.PerpQuotesReplaceArgsSchema = exports.NewPerpOrderArgsSchema = exports.PerpSellSeatArgsSchema = exports.PerpBuySeatArgsSchema = exports.PerpDepositArgsSchema = exports.SpotLpArgsSchema = exports.SpotMassCancelArgsSchema = exports.SpotOrderCancelArgsSchema = exports.SwapArgsSchema = exports.SpotQuotesReplaceArgsSchema = exports.NewSpotOrderArgsSchema = exports.WithdrawArgsSchema = exports.DepositArgsSchema = exports.InstrIdSchema = exports.EngineArgsSchema = exports.LogType = exports.AccountType = exports.InstrMask = void 0;
|
|
4
|
+
var enums_1 = require("./enums");
|
|
5
|
+
Object.defineProperty(exports, "InstrMask", { enumerable: true, get: function () { return enums_1.InstrMask; } });
|
|
6
|
+
Object.defineProperty(exports, "AccountType", { enumerable: true, get: function () { return enums_1.AccountType; } });
|
|
7
|
+
Object.defineProperty(exports, "LogType", { enumerable: true, get: function () { return enums_1.LogType; } });
|
|
8
|
+
var schemas_1 = require("./schemas");
|
|
9
|
+
Object.defineProperty(exports, "EngineArgsSchema", { enumerable: true, get: function () { return schemas_1.EngineArgsSchema; } });
|
|
10
|
+
Object.defineProperty(exports, "InstrIdSchema", { enumerable: true, get: function () { return schemas_1.InstrIdSchema; } });
|
|
11
|
+
Object.defineProperty(exports, "DepositArgsSchema", { enumerable: true, get: function () { return schemas_1.DepositArgsSchema; } });
|
|
12
|
+
Object.defineProperty(exports, "WithdrawArgsSchema", { enumerable: true, get: function () { return schemas_1.WithdrawArgsSchema; } });
|
|
13
|
+
Object.defineProperty(exports, "NewSpotOrderArgsSchema", { enumerable: true, get: function () { return schemas_1.NewSpotOrderArgsSchema; } });
|
|
14
|
+
Object.defineProperty(exports, "SpotQuotesReplaceArgsSchema", { enumerable: true, get: function () { return schemas_1.SpotQuotesReplaceArgsSchema; } });
|
|
15
|
+
Object.defineProperty(exports, "SwapArgsSchema", { enumerable: true, get: function () { return schemas_1.SwapArgsSchema; } });
|
|
16
|
+
Object.defineProperty(exports, "SpotOrderCancelArgsSchema", { enumerable: true, get: function () { return schemas_1.SpotOrderCancelArgsSchema; } });
|
|
17
|
+
Object.defineProperty(exports, "SpotMassCancelArgsSchema", { enumerable: true, get: function () { return schemas_1.SpotMassCancelArgsSchema; } });
|
|
18
|
+
Object.defineProperty(exports, "SpotLpArgsSchema", { enumerable: true, get: function () { return schemas_1.SpotLpArgsSchema; } });
|
|
19
|
+
Object.defineProperty(exports, "PerpDepositArgsSchema", { enumerable: true, get: function () { return schemas_1.PerpDepositArgsSchema; } });
|
|
20
|
+
Object.defineProperty(exports, "PerpBuySeatArgsSchema", { enumerable: true, get: function () { return schemas_1.PerpBuySeatArgsSchema; } });
|
|
21
|
+
Object.defineProperty(exports, "PerpSellSeatArgsSchema", { enumerable: true, get: function () { return schemas_1.PerpSellSeatArgsSchema; } });
|
|
22
|
+
Object.defineProperty(exports, "NewPerpOrderArgsSchema", { enumerable: true, get: function () { return schemas_1.NewPerpOrderArgsSchema; } });
|
|
23
|
+
Object.defineProperty(exports, "PerpQuotesReplaceArgsSchema", { enumerable: true, get: function () { return schemas_1.PerpQuotesReplaceArgsSchema; } });
|
|
24
|
+
Object.defineProperty(exports, "PerpOrderCancelArgsSchema", { enumerable: true, get: function () { return schemas_1.PerpOrderCancelArgsSchema; } });
|
|
25
|
+
Object.defineProperty(exports, "PerpMassCancelArgsSchema", { enumerable: true, get: function () { return schemas_1.PerpMassCancelArgsSchema; } });
|
|
26
|
+
Object.defineProperty(exports, "PerpChangeLeverageArgsSchema", { enumerable: true, get: function () { return schemas_1.PerpChangeLeverageArgsSchema; } });
|
|
27
|
+
Object.defineProperty(exports, "PerpStatisticsResetArgsSchema", { enumerable: true, get: function () { return schemas_1.PerpStatisticsResetArgsSchema; } });
|
|
28
|
+
Object.defineProperty(exports, "PerpForcedCloseArgsSchema", { enumerable: true, get: function () { return schemas_1.PerpForcedCloseArgsSchema; } });
|
|
29
|
+
Object.defineProperty(exports, "NewInstrumentArgsSchema", { enumerable: true, get: function () { return schemas_1.NewInstrumentArgsSchema; } });
|
|
30
|
+
Object.defineProperty(exports, "GetInstrIdArgsSchema", { enumerable: true, get: function () { return schemas_1.GetInstrIdArgsSchema; } });
|
|
31
|
+
Object.defineProperty(exports, "GetClientSpotOrdersInfoArgsSchema", { enumerable: true, get: function () { return schemas_1.GetClientSpotOrdersInfoArgsSchema; } });
|
|
32
|
+
Object.defineProperty(exports, "GetClientPerpOrdersInfoArgsSchema", { enumerable: true, get: function () { return schemas_1.GetClientPerpOrdersInfoArgsSchema; } });
|
|
33
|
+
Object.defineProperty(exports, "GetClientSpotOrdersArgsSchema", { enumerable: true, get: function () { return schemas_1.GetClientSpotOrdersArgsSchema; } });
|
|
34
|
+
Object.defineProperty(exports, "GetClientPerpOrdersArgsSchema", { enumerable: true, get: function () { return schemas_1.GetClientPerpOrdersArgsSchema; } });
|
|
35
|
+
Object.defineProperty(exports, "DistribDividendsArgsSchema", { enumerable: true, get: function () { return schemas_1.DistribDividendsArgsSchema; } });
|
|
36
|
+
Object.defineProperty(exports, "GetSpotContextArgsSchema", { enumerable: true, get: function () { return schemas_1.GetSpotContextArgsSchema; } });
|
|
37
|
+
Object.defineProperty(exports, "GetInstrAccountByTagArgsSchema", { enumerable: true, get: function () { return schemas_1.GetInstrAccountByTagArgsSchema; } });
|
|
38
|
+
Object.defineProperty(exports, "UpdateInstrDataArgsSchema", { enumerable: true, get: function () { return schemas_1.UpdateInstrDataArgsSchema; } });
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { BuyMarketSeatReportModel, DepositReportModel, DrvsAirdropReportModel, EarningsReportModel, FeesDepositReportModel, FeesWithdrawReportModel, PerpChangeLeverageReportModel, PerpDepositReportModel, PerpFeesReportModel, PerpFillOrderReportModel, PerpFundingReportModel, PerpMassCancelReportModel, PerpNewOrderReportModel, PerpOrderCancelReportModel, PerpOrderRevokeReportModel, PerpPlaceMassCancelReportModel, PerpPlaceOrderReportModel, PerpSocLossReportModel, PerpWithdrawReportModel, ChangePointsRecordModel, MoveSpotAvailFundsReportModel, PlaceSwapOrderReportModel, SellMarketSeatReportModel, SpotFeesReportModel, SpotFillOrderReportModel, SpotlpTradeReportModel, SpotMassCancelReportModel, SpotNewOrderReportModel, SpotOrderCancelReportModel, SpotOrderRevokeReportModel, SpotPlaceMassCancelReportModel, SpotPlaceOrderReportModel, SwapRefFeesReportModel, VmChangeListReportModel, VmFinalizeActivateReportModel, VmFinalizeDeactivateReportModel, VmInitActivateCancelReportModel, VmInitActivateReportModel, VmInitDeactivateCancelReportModel, VmInitDeactivateReportModel, VmInitWithdrawCancelReportModel, VmInitWithdrawFinalizeReportModel, VmInitWithdrawReportModel, WithdrawReportModel } from '../logs_models';
|
|
2
|
+
export type LogMessage = DepositReportModel | WithdrawReportModel | PerpDepositReportModel | PerpWithdrawReportModel | FeesDepositReportModel | FeesWithdrawReportModel | SpotlpTradeReportModel | EarningsReportModel | DrvsAirdropReportModel | SpotPlaceOrderReportModel | SpotFillOrderReportModel | SpotNewOrderReportModel | SpotOrderCancelReportModel | SpotOrderRevokeReportModel | SpotFeesReportModel | SpotPlaceMassCancelReportModel | SpotMassCancelReportModel | PerpPlaceOrderReportModel | PerpFillOrderReportModel | PerpNewOrderReportModel | PerpOrderCancelReportModel | PerpOrderRevokeReportModel | PerpFeesReportModel | PerpPlaceMassCancelReportModel | PerpMassCancelReportModel | PerpFundingReportModel | PerpSocLossReportModel | PerpChangeLeverageReportModel | BuyMarketSeatReportModel | SellMarketSeatReportModel | PlaceSwapOrderReportModel | MoveSpotAvailFundsReportModel | ChangePointsRecordModel | SwapRefFeesReportModel | VmInitActivateReportModel | VmInitActivateCancelReportModel | VmFinalizeActivateReportModel | VmInitDeactivateReportModel | VmInitDeactivateCancelReportModel | VmFinalizeDeactivateReportModel | VmChangeListReportModel | VmInitWithdrawReportModel | VmInitWithdrawCancelReportModel | VmInitWithdrawFinalizeReportModel;
|