@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/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 = 9;
61
- export declare const PROGRAM_ID: Address<"Drvrseg8AQLP8B96DBGmHRjFGviFNYTkHueY9g3k27Gu">;
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
- AccountType[AccountType["CLIENT_DRV"] = 32] = "CLIENT_DRV";
16
+ //CLIENT_DRV = 32,
17
17
  AccountType[AccountType["CLIENT_PRIMARY"] = 31] = "CLIENT_PRIMARY";
18
18
  AccountType[AccountType["COMMUNITY"] = 34] = "COMMUNITY";
19
- AccountType[AccountType["PDF"] = 33] = "PDF";
20
- AccountType[AccountType["FUTURES_ASK_ORDERS"] = 29] = "FUTURES_ASK_ORDERS";
21
- AccountType[AccountType["FUTURES_ASKS_TREE"] = 27] = "FUTURES_ASKS_TREE";
22
- AccountType[AccountType["FUTURES_BID_ORDERS"] = 28] = "FUTURES_BID_ORDERS";
23
- AccountType[AccountType["FUTURES_BIDS_TREE"] = 26] = "FUTURES_BIDS_TREE";
24
- AccountType[AccountType["FUTURES_CLIENT_ACCOUNTS"] = 23] = "FUTURES_CLIENT_ACCOUNTS";
25
- AccountType[AccountType["FUTURES_CLIENT_INFOS"] = 24] = "FUTURES_CLIENT_INFOS";
26
- AccountType[AccountType["FUTURES_CLIENT_INFOS2"] = 25] = "FUTURES_CLIENT_INFOS2";
27
- AccountType[AccountType["FUTURES_LINES"] = 30] = "FUTURES_LINES";
28
- AccountType[AccountType["FUTURES_MAPS"] = 22] = "FUTURES_MAPS";
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
- AccountType[AccountType["INSTR_TRACE"] = 8] = "INSTR_TRACE";
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
- AccountType[AccountType["SPOT_CLIENT_ACCOUNTS"] = 11] = "SPOT_CLIENT_ACCOUNTS";
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
- AccountType[AccountType["PERP_CLIENT_ACCOUNTS"] = 40] = "PERP_CLIENT_ACCOUNTS";
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 = 9;
64
- exports.PROGRAM_ID = (0, kit_1.address)("Drvrseg8AQLP8B96DBGmHRjFGviFNYTkHueY9g3k27Gu");
65
+ exports.VERSION = 1;
66
+ exports.PROGRAM_ID = (0, kit_1.address)("2M1irQU4JmQzxBGrQDi8cWAhdAATSPCeGYV43uvGwsDX ");
65
67
  exports.MARKET_DEPTH = 20;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deriverse/kit",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",