@deriverse/kit 1.0.27 → 1.0.29
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.d.ts +8 -2
- package/dist/index.js +94 -24
- package/dist/instruction_models.d.ts +4 -3
- package/dist/instruction_models.js +18 -11
- package/dist/logs_models.d.ts +43 -4
- package/dist/logs_models.js +57 -4
- package/dist/structure_models.d.ts +202 -244
- package/dist/structure_models.js +222 -263
- package/dist/types.d.ts +11 -18
- package/dist/types.js +18 -16
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address, Commitment } from "@solana/kit";
|
|
2
2
|
import { BaseCrncyRecordModel, ClientCommunityAccountHeaderModel, ClientCommunityRecordModel, CommunityAccountHeaderModel, InstrAccountHeaderModel, LineQuotesModel, OrderModel } from "./structure_models";
|
|
3
|
-
import { DepositReportModel, DrvsAirdropReportModel, EarningsReportModel, FeesDepositReportModel, FeesWithdrawReportModel, PerpChangeLeverageReportModel, PerpDepositReportModel, PerpFeesReportModel, PerpFillOrderReportModel, PerpFundingReportModel, PerpMassCancelReportModel, PerpNewOrderReportModel, PerpOrderCancelReportModel, PerpOrderRevokeReportModel, PerpPlaceMassCancelReportModel, PerpPlaceOrderReportModel, PerpSocLossReportModel, PerpWithdrawReportModel, SpotFeesReportModel, SpotFillOrderReportModel, SpotlpTradeReportModel, SpotMassCancelReportModel, SpotNewOrderReportModel, SpotOrderCancelReportModel, SpotOrderRevokeReportModel, SpotPlaceMassCancelReportModel, SpotPlaceOrderReportModel, WithdrawReportModel } from "./logs_models";
|
|
3
|
+
import { BuyMarketSeatReportModel, DepositReportModel, DrvsAirdropReportModel, EarningsReportModel, FeesDepositReportModel, FeesWithdrawReportModel, PerpChangeLeverageReportModel, PerpDepositReportModel, PerpFeesReportModel, PerpFillOrderReportModel, PerpFundingReportModel, PerpMassCancelReportModel, PerpNewOrderReportModel, PerpOrderCancelReportModel, PerpOrderRevokeReportModel, PerpPlaceMassCancelReportModel, PerpPlaceOrderReportModel, PerpSocLossReportModel, PerpWithdrawReportModel, SellMarketSeatReportModel, SpotFeesReportModel, SpotFillOrderReportModel, SpotlpTradeReportModel, SpotMassCancelReportModel, SpotNewOrderReportModel, SpotOrderCancelReportModel, SpotOrderRevokeReportModel, SpotPlaceMassCancelReportModel, SpotPlaceOrderReportModel, WithdrawReportModel } from "./logs_models";
|
|
4
4
|
export declare enum InstrMask {
|
|
5
5
|
DRV = 268435456,
|
|
6
6
|
READY_TO_DRV_UPGRADE = 536870912,
|
|
@@ -10,30 +10,17 @@ export declare enum InstrMask {
|
|
|
10
10
|
}
|
|
11
11
|
export declare enum AccountType {
|
|
12
12
|
CLIENT_COMMUNITY = 35,
|
|
13
|
-
CLIENT_DRV = 32,
|
|
14
13
|
CLIENT_PRIMARY = 31,
|
|
15
14
|
COMMUNITY = 34,
|
|
16
|
-
PDF = 33,
|
|
17
|
-
FUTURES_ASK_ORDERS = 29,
|
|
18
|
-
FUTURES_ASKS_TREE = 27,
|
|
19
|
-
FUTURES_BID_ORDERS = 28,
|
|
20
|
-
FUTURES_BIDS_TREE = 26,
|
|
21
|
-
FUTURES_CLIENT_ACCOUNTS = 23,
|
|
22
|
-
FUTURES_CLIENT_INFOS = 24,
|
|
23
|
-
FUTURES_CLIENT_INFOS2 = 25,
|
|
24
|
-
FUTURES_LINES = 30,
|
|
25
|
-
FUTURES_MAPS = 22,
|
|
26
15
|
HOLDER = 1,
|
|
27
16
|
ROOT = 2,
|
|
28
17
|
INSTR = 7,
|
|
29
|
-
INSTR_TRACE = 8,
|
|
30
18
|
SPOT_15M_CANDLES = 20,
|
|
31
19
|
SPOT_1M_CANDLES = 19,
|
|
32
20
|
SPOT_ASK_ORDERS = 17,
|
|
33
21
|
SPOT_ASKS_TREE = 15,
|
|
34
22
|
SPOT_BID_ORDERS = 16,
|
|
35
23
|
SPOT_BIDS_TREE = 14,
|
|
36
|
-
SPOT_CLIENT_ACCOUNTS = 11,
|
|
37
24
|
SPOT_CLIENT_INFOS = 12,
|
|
38
25
|
SPOT_CLIENT_INFOS2 = 13,
|
|
39
26
|
SPOT_DAY_CANDLES = 21,
|
|
@@ -44,7 +31,6 @@ export declare enum AccountType {
|
|
|
44
31
|
PERP_ASKS_TREE = 37,
|
|
45
32
|
PERP_BID_ORDERS = 38,
|
|
46
33
|
PERP_BIDS_TREE = 39,
|
|
47
|
-
PERP_CLIENT_ACCOUNTS = 40,
|
|
48
34
|
PERP_CLIENT_INFOS = 41,
|
|
49
35
|
PERP_CLIENT_INFOS2 = 42,
|
|
50
36
|
PERP_CLIENT_INFOS3 = 43,
|
|
@@ -57,8 +43,8 @@ export declare enum AccountType {
|
|
|
57
43
|
PERP_REBALANCE_TIME_TREE = 50,
|
|
58
44
|
PERP_PRIORITY_TREE = 51
|
|
59
45
|
}
|
|
60
|
-
export declare const VERSION =
|
|
61
|
-
export declare const PROGRAM_ID: Address<"
|
|
46
|
+
export declare const VERSION = 1;
|
|
47
|
+
export declare const PROGRAM_ID: Address<"2M1irQU4JmQzxBGrQDi8cWAhdAATSPCeGYV43uvGwsDX ">;
|
|
62
48
|
export declare const MARKET_DEPTH = 20;
|
|
63
49
|
export interface EngineArgs {
|
|
64
50
|
programId?: Address<any>;
|
|
@@ -544,6 +530,13 @@ export interface PerpDepositArgs {
|
|
|
544
530
|
instrId: number;
|
|
545
531
|
amount: number;
|
|
546
532
|
}
|
|
533
|
+
export interface PerpBuySeatArgs {
|
|
534
|
+
instrId: number;
|
|
535
|
+
amount: number;
|
|
536
|
+
}
|
|
537
|
+
export interface PerpSellSeatArgs {
|
|
538
|
+
instrId: number;
|
|
539
|
+
}
|
|
547
540
|
export interface NewPerpOrderArgs {
|
|
548
541
|
instrId: number;
|
|
549
542
|
ioc?: number;
|
|
@@ -559,4 +552,4 @@ export interface NewInstrumentArgs {
|
|
|
559
552
|
newProgramAccountAddress?: Address<any>;
|
|
560
553
|
initialPrice: number;
|
|
561
554
|
}
|
|
562
|
-
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;
|
|
555
|
+
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;
|
package/dist/types.js
CHANGED
|
@@ -13,30 +13,32 @@ var InstrMask;
|
|
|
13
13
|
var AccountType;
|
|
14
14
|
(function (AccountType) {
|
|
15
15
|
AccountType[AccountType["CLIENT_COMMUNITY"] = 35] = "CLIENT_COMMUNITY";
|
|
16
|
-
|
|
16
|
+
//CLIENT_DRV = 32,
|
|
17
17
|
AccountType[AccountType["CLIENT_PRIMARY"] = 31] = "CLIENT_PRIMARY";
|
|
18
18
|
AccountType[AccountType["COMMUNITY"] = 34] = "COMMUNITY";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
/*
|
|
20
|
+
PDF = 33,
|
|
21
|
+
FUTURES_ASK_ORDERS = 29,
|
|
22
|
+
FUTURES_ASKS_TREE = 27,
|
|
23
|
+
FUTURES_BID_ORDERS = 28,
|
|
24
|
+
FUTURES_BIDS_TREE = 26,
|
|
25
|
+
FUTURES_CLIENT_ACCOUNTS = 23,
|
|
26
|
+
FUTURES_CLIENT_INFOS = 24,
|
|
27
|
+
FUTURES_CLIENT_INFOS2 = 25,
|
|
28
|
+
FUTURES_LINES = 30,
|
|
29
|
+
FUTURES_MAPS = 22,
|
|
30
|
+
*/
|
|
29
31
|
AccountType[AccountType["HOLDER"] = 1] = "HOLDER";
|
|
30
32
|
AccountType[AccountType["ROOT"] = 2] = "ROOT";
|
|
31
33
|
AccountType[AccountType["INSTR"] = 7] = "INSTR";
|
|
32
|
-
|
|
34
|
+
//INSTR_TRACE = 8,
|
|
33
35
|
AccountType[AccountType["SPOT_15M_CANDLES"] = 20] = "SPOT_15M_CANDLES";
|
|
34
36
|
AccountType[AccountType["SPOT_1M_CANDLES"] = 19] = "SPOT_1M_CANDLES";
|
|
35
37
|
AccountType[AccountType["SPOT_ASK_ORDERS"] = 17] = "SPOT_ASK_ORDERS";
|
|
36
38
|
AccountType[AccountType["SPOT_ASKS_TREE"] = 15] = "SPOT_ASKS_TREE";
|
|
37
39
|
AccountType[AccountType["SPOT_BID_ORDERS"] = 16] = "SPOT_BID_ORDERS";
|
|
38
40
|
AccountType[AccountType["SPOT_BIDS_TREE"] = 14] = "SPOT_BIDS_TREE";
|
|
39
|
-
|
|
41
|
+
//SPOT_CLIENT_ACCOUNTS = 11,
|
|
40
42
|
AccountType[AccountType["SPOT_CLIENT_INFOS"] = 12] = "SPOT_CLIENT_INFOS";
|
|
41
43
|
AccountType[AccountType["SPOT_CLIENT_INFOS2"] = 13] = "SPOT_CLIENT_INFOS2";
|
|
42
44
|
AccountType[AccountType["SPOT_DAY_CANDLES"] = 21] = "SPOT_DAY_CANDLES";
|
|
@@ -47,7 +49,7 @@ var AccountType;
|
|
|
47
49
|
AccountType[AccountType["PERP_ASKS_TREE"] = 37] = "PERP_ASKS_TREE";
|
|
48
50
|
AccountType[AccountType["PERP_BID_ORDERS"] = 38] = "PERP_BID_ORDERS";
|
|
49
51
|
AccountType[AccountType["PERP_BIDS_TREE"] = 39] = "PERP_BIDS_TREE";
|
|
50
|
-
|
|
52
|
+
//PERP_CLIENT_ACCOUNTS = 40,
|
|
51
53
|
AccountType[AccountType["PERP_CLIENT_INFOS"] = 41] = "PERP_CLIENT_INFOS";
|
|
52
54
|
AccountType[AccountType["PERP_CLIENT_INFOS2"] = 42] = "PERP_CLIENT_INFOS2";
|
|
53
55
|
AccountType[AccountType["PERP_CLIENT_INFOS3"] = 43] = "PERP_CLIENT_INFOS3";
|
|
@@ -60,6 +62,6 @@ var AccountType;
|
|
|
60
62
|
AccountType[AccountType["PERP_REBALANCE_TIME_TREE"] = 50] = "PERP_REBALANCE_TIME_TREE";
|
|
61
63
|
AccountType[AccountType["PERP_PRIORITY_TREE"] = 51] = "PERP_PRIORITY_TREE";
|
|
62
64
|
})(AccountType || (exports.AccountType = AccountType = {}));
|
|
63
|
-
exports.VERSION =
|
|
64
|
-
exports.PROGRAM_ID = (0, kit_1.address)("
|
|
65
|
+
exports.VERSION = 1;
|
|
66
|
+
exports.PROGRAM_ID = (0, kit_1.address)("2M1irQU4JmQzxBGrQDi8cWAhdAATSPCeGYV43uvGwsDX ");
|
|
65
67
|
exports.MARKET_DEPTH = 20;
|