@typus/typus-perp-sdk 1.3.0 → 1.3.1

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.
@@ -338,6 +338,7 @@ export declare function getMarkets(client: TypusClient, input: {
338
338
  basic_funding_rate: string;
339
339
  funding_interval_ts_ms: string;
340
340
  exp_multiplier: string;
341
+ cool_down_threshold_ts_ms: string;
341
342
  u64_padding: string[];
342
343
  };
343
344
  }[]][]>;
@@ -445,6 +446,7 @@ export declare function getAllPositions(client: TypusClient, input: {
445
446
  id: string;
446
447
  };
447
448
  create_ts_ms: string;
449
+ update_ts_ms: string;
448
450
  position_id: string;
449
451
  linked_order_ids: string[];
450
452
  linked_order_prices: string[];
@@ -495,6 +497,7 @@ export declare function getAllPositionsWithTradingSymbol(client: TypusClient, in
495
497
  id: string;
496
498
  };
497
499
  create_ts_ms: string;
500
+ update_ts_ms: string;
498
501
  position_id: string;
499
502
  linked_order_ids: string[];
500
503
  linked_order_prices: string[];
@@ -28,6 +28,8 @@ export declare const Position: MoveStruct<{
28
28
  }, "0x2::object::UID">;
29
29
  /** The timestamp when the position was created. */
30
30
  create_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
31
+ /** The timestamp when the position was last updated. */
32
+ update_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
31
33
  /** The ID of the position. */
32
34
  position_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
33
35
  /** A vector of the linked order IDs. */
@@ -124,6 +124,8 @@ exports.Position = new index_1.MoveStruct({ name: `${$moduleName}::Position`, fi
124
124
  id: object.UID,
125
125
  /** The timestamp when the position was created. */
126
126
  create_ts_ms: bcs_1.bcs.u64(),
127
+ /** The timestamp when the position was last updated. */
128
+ update_ts_ms: bcs_1.bcs.u64(),
127
129
  /** The ID of the position. */
128
130
  position_id: bcs_1.bcs.u64(),
129
131
  /** A vector of the linked order IDs. */
@@ -123,6 +123,8 @@ export declare const MarketConfig: MoveStruct<{
123
123
  funding_interval_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
124
124
  /** The experience multiplier. */
125
125
  exp_multiplier: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
126
+ /** The cool-down threshold in milliseconds. */
127
+ cool_down_threshold_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
126
128
  /** Padding for future use. */
127
129
  u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
128
130
  length: number;
@@ -212,6 +214,8 @@ export declare const SymbolMarket: MoveStruct<{
212
214
  funding_interval_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
213
215
  /** The experience multiplier. */
214
216
  exp_multiplier: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
217
+ /** The cool-down threshold in milliseconds. */
218
+ cool_down_threshold_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
215
219
  /** Padding for future use. */
216
220
  u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
217
221
  length: number;
@@ -321,6 +325,8 @@ export declare const AddTradingSymbolEvent: MoveStruct<{
321
325
  funding_interval_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
322
326
  /** The experience multiplier. */
323
327
  exp_multiplier: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
328
+ /** The cool-down threshold in milliseconds. */
329
+ cool_down_threshold_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
324
330
  /** Padding for future use. */
325
331
  u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
326
332
  length: number;
@@ -364,6 +370,8 @@ export declare const UpdateMarketConfigEvent: MoveStruct<{
364
370
  funding_interval_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
365
371
  /** The experience multiplier. */
366
372
  exp_multiplier: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
373
+ /** The cool-down threshold in milliseconds. */
374
+ cool_down_threshold_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
367
375
  /** Padding for future use. */
368
376
  u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
369
377
  length: number;
@@ -390,6 +398,8 @@ export declare const UpdateMarketConfigEvent: MoveStruct<{
390
398
  funding_interval_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
391
399
  /** The experience multiplier. */
392
400
  exp_multiplier: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
401
+ /** The cool-down threshold in milliseconds. */
402
+ cool_down_threshold_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
393
403
  /** Padding for future use. */
394
404
  u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
395
405
  length: number;
@@ -448,6 +458,7 @@ export declare const CreateTradingOrderEvent: MoveStruct<{
448
458
  is_stop_order: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
449
459
  size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
450
460
  trigger_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
461
+ trading_pair_oracle_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
451
462
  filled: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
452
463
  filled_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
453
464
  u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
@@ -463,15 +474,9 @@ export declare const ManagerCancelOrdersEvent: MoveStruct<{
463
474
  name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
464
475
  }, "std::type_name::TypeName">;
465
476
  order_type_tag: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<number, number, "u8">;
466
- order_ids: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
467
- length: number;
468
- }, string>;
469
- order_sizes: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
470
- length: number;
471
- }, string>;
472
- order_prices: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
473
- length: number;
474
- }, string>;
477
+ order_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
478
+ order_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
479
+ order_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
475
480
  u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
476
481
  length: number;
477
482
  }, string>;
@@ -212,6 +212,8 @@ exports.MarketConfig = new index_1.MoveStruct({ name: `${$moduleName}::MarketCon
212
212
  funding_interval_ts_ms: bcs_1.bcs.u64(),
213
213
  /** The experience multiplier. */
214
214
  exp_multiplier: bcs_1.bcs.u64(),
215
+ /** The cool-down threshold in milliseconds. */
216
+ cool_down_threshold_ts_ms: bcs_1.bcs.u64(),
215
217
  /** Padding for future use. */
216
218
  u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64())
217
219
  } });
@@ -302,6 +304,7 @@ exports.CreateTradingOrderEvent = new index_1.MoveStruct({ name: `${$moduleName}
302
304
  is_stop_order: bcs_1.bcs.bool(),
303
305
  size: bcs_1.bcs.u64(),
304
306
  trigger_price: bcs_1.bcs.u64(),
307
+ trading_pair_oracle_price: bcs_1.bcs.u64(),
305
308
  filled: bcs_1.bcs.bool(),
306
309
  filled_price: bcs_1.bcs.option(bcs_1.bcs.u64()),
307
310
  u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64())
@@ -311,9 +314,9 @@ exports.ManagerCancelOrdersEvent = new index_1.MoveStruct({ name: `${$moduleName
311
314
  collateral_token: type_name.TypeName,
312
315
  base_token: type_name.TypeName,
313
316
  order_type_tag: bcs_1.bcs.u8(),
314
- order_ids: bcs_1.bcs.vector(bcs_1.bcs.u64()),
315
- order_sizes: bcs_1.bcs.vector(bcs_1.bcs.u64()),
316
- order_prices: bcs_1.bcs.vector(bcs_1.bcs.u64()),
317
+ order_id: bcs_1.bcs.u64(),
318
+ order_size: bcs_1.bcs.u64(),
319
+ order_price: bcs_1.bcs.u64(),
317
320
  u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64())
318
321
  } });
319
322
  exports.CancelTradingOrderEvent = new index_1.MoveStruct({ name: `${$moduleName}::CancelTradingOrderEvent`, fields: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typus/typus-perp-sdk",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "repository": "https://github.com/Typus-Lab/typus-perp-sdk.git",
5
5
  "author": "Typus",
6
6
  "description": "typus perp sdk",
@@ -9,7 +9,7 @@
9
9
  "@mysten/bcs": "2.0.3",
10
10
  "@mysten/sui": "2.13.2",
11
11
  "@pythnetwork/pyth-lazer-sdk": "6.2.2",
12
- "@typus/typus-sdk": "file:../typus-sdk",
12
+ "@typus/typus-sdk": "1.10.1",
13
13
  "dotenv": "16.4.5"
14
14
  },
15
15
  "resolutions": {
@@ -39,5 +39,10 @@
39
39
  "url": "https://github.com/Typus-Lab/typus-perp-sdk/issues"
40
40
  },
41
41
  "homepage": "https://github.com/Typus-Lab/typus-perp-sdk#readme",
42
- "packageManager": "pnpm@10.33.2+sha512.a90faf6feeab71ad6c6e57f94e0fe1a12f5dcc22cd754db40ae9593eb6a3e0b6b12e3540218bb37ae083404b1f2ce6db2a4121e979829b4aff94b99f49da1cf8"
42
+ "packageManager": "pnpm@10.33.2+sha512.a90faf6feeab71ad6c6e57f94e0fe1a12f5dcc22cd754db40ae9593eb6a3e0b6b12e3540218bb37ae083404b1f2ce6db2a4121e979829b4aff94b99f49da1cf8",
43
+ "pnpm": {
44
+ "overrides": {
45
+ "@typus/typus-sdk": "link:../typus-sdk"
46
+ }
47
+ }
43
48
  }