@typus/typus-perp-sdk 1.1.32-codegen-exp33 → 1.1.32-codegen-exp35

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").BcsType<string, string | number | bigint, "u64">;
31
+ /** The timestamp when the position was last updated. */
32
+ update_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
31
33
  /** The ID of the position. */
32
34
  position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
33
35
  /** A vector of the linked order IDs. */
@@ -129,6 +129,8 @@ exports.Position = new index_1.MoveStruct({
129
129
  id: object.UID,
130
130
  /** The timestamp when the position was created. */
131
131
  create_ts_ms: bcs_1.bcs.u64(),
132
+ /** The timestamp when the position was last updated. */
133
+ update_ts_ms: bcs_1.bcs.u64(),
132
134
  /** The ID of the position. */
133
135
  position_id: bcs_1.bcs.u64(),
134
136
  /** 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").BcsType<string, string | number | bigint, "u64">;
124
124
  /** The experience multiplier. */
125
125
  exp_multiplier: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
126
+ /** The cool down threshold in milliseconds. */
127
+ cool_down_threshold_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
126
128
  /** Padding for future use. */
127
129
  u64_padding: import("@mysten/sui/bcs").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").BcsType<string, string | number | bigint, "u64">;
213
215
  /** The experience multiplier. */
214
216
  exp_multiplier: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
217
+ /** The cool down threshold in milliseconds. */
218
+ cool_down_threshold_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
215
219
  /** Padding for future use. */
216
220
  u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
217
221
  length: number;
@@ -294,6 +298,8 @@ export declare const AddTradingSymbolEvent: MoveStruct<{
294
298
  funding_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
295
299
  /** The experience multiplier. */
296
300
  exp_multiplier: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
301
+ /** The cool down threshold in milliseconds. */
302
+ cool_down_threshold_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
297
303
  /** Padding for future use. */
298
304
  u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
299
305
  length: number;
@@ -337,6 +343,8 @@ export declare const UpdateMarketConfigEvent: MoveStruct<{
337
343
  funding_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
338
344
  /** The experience multiplier. */
339
345
  exp_multiplier: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
346
+ /** The cool down threshold in milliseconds. */
347
+ cool_down_threshold_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
340
348
  /** Padding for future use. */
341
349
  u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
342
350
  length: number;
@@ -363,6 +371,8 @@ export declare const UpdateMarketConfigEvent: MoveStruct<{
363
371
  funding_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
364
372
  /** The experience multiplier. */
365
373
  exp_multiplier: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
374
+ /** The cool down threshold in milliseconds. */
375
+ cool_down_threshold_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
366
376
  /** Padding for future use. */
367
377
  u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
368
378
  length: number;
@@ -202,6 +202,8 @@ exports.MarketConfig = new index_1.MoveStruct({
202
202
  funding_interval_ts_ms: bcs_1.bcs.u64(),
203
203
  /** The experience multiplier. */
204
204
  exp_multiplier: bcs_1.bcs.u64(),
205
+ /** The cool down threshold in milliseconds. */
206
+ cool_down_threshold_ts_ms: bcs_1.bcs.u64(),
205
207
  /** Padding for future use. */
206
208
  u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
207
209
  },
package/dist/src/index.js CHANGED
@@ -26,42 +26,42 @@ dotenv_1.default.config();
26
26
  // default MAINNET
27
27
  exports.NETWORK = process.env.NEXT_PUBLIC_CLUSTER == "testnet" ? "TESTNET" : "MAINNET";
28
28
  exports.PERP_PACKAGE_ID = exports.NETWORK == "MAINNET"
29
- ? "0x46acca74c6bbba9d0f286e9741444485808f2be493a8baeee1bf7a6ea067c670"
29
+ ? "0x9003219180252ae6b81d2893b41d430488669027219537236675c0c2924c94d9"
30
30
  : "0x94cd358f552e9dd5df837de85939a9d1d682e97480740a203121e6f4c0078853";
31
31
  exports.STAKE_PACKAGE_ID = exports.NETWORK == "MAINNET"
32
- ? "0x39addbf74f24fc4dcef507a229be8ba6dcbc7ffce34bc1c0b4225ba4cd1677a7"
32
+ ? "0xd280f3a072bca4b7b5b450f40c82a30b3935cd1d12d927eb9d1f790520a83d3b"
33
33
  : "0x02b94b340a8810f6c451bc244dc2dd8d9d50cf86d727798969ca2c287c3186aa";
34
34
  // lp_pool::Registry
35
35
  exports.LP_POOL = exports.NETWORK == "MAINNET"
36
- ? "0x9e9855b4ac00e407a0719a6542b9be76d886b499bf1d763a79f56d139830fd3a"
36
+ ? "0x46ef530d3ad13037ac54b77be324e5ab063124af8a119e86f1f59be8a16a22a2"
37
37
  : "0x85fa3cc6dc0fa8b47dda95ba0335fe1cec61dde4a2a8486ccd040f94d399b4c3";
38
38
  // liquidity_pool_registry
39
39
  exports.LIQUIDITY_POOL = exports.NETWORK == "MAINNET"
40
- ? "0x32db917d2ed873a5bd8664efb220bfc7af4175638e30c8fc2b69b80888aab5d2"
40
+ ? "0x9090a55fea75d0b135dfa53e6bbe234c0b0e9d0e0b21c615f32f0048bc35aca4"
41
41
  : "0xe034d157764f273df5a1e264a3c0f78d8f922c37f942c340dabb1d66244c72ba";
42
42
  // MarketRegistry
43
43
  exports.MARKET = exports.NETWORK == "MAINNET"
44
- ? "0xdcc27865c3668dcad62fecee867e219a2d3a8f7920bcfe2ffe5f0949442adf37"
44
+ ? "0x327c8a176055400e9aacde8553a897898b5da969d6dcdb55eee268bb501a2c3a"
45
45
  : "0xd0685e3eca9530f0618625d4a617a80db09f000609285b32a85f863da6baf811";
46
46
  exports.PERP_VERSION = exports.NETWORK == "MAINNET"
47
- ? "0x70abe0418b654d6bae8f860aeebb8912c05534ededf67289a61cd48de679b450"
47
+ ? "0x7c30204bd3f4dc37918281907308e0d7d09a75a6826473aec0caa1712ee149e5"
48
48
  : "0xbb0615832168e64e301db2ebd6ad71b3fe170d7e217ccd0c08714de56b41676b";
49
49
  exports.TLP_TREASURY_CAP = exports.NETWORK == "MAINNET"
50
- ? "0x791498ed6eea0680052f262b388e0bea46e1dfdb976f2ca7ab9183142f5d2045"
50
+ ? "0x99071a9fb7e40546d3279dffac2ff15a278ab90229c3fe06610e1540dcafa7af"
51
51
  : "0x1b39c2a5bc109ac520787c62f924da9244343e869bad755157e6e3e22bd7b7ae";
52
52
  // StakePoolRegistry
53
53
  exports.STAKE_POOL = exports.NETWORK == "MAINNET"
54
- ? "0xf26906bd797b32a55c4ec479102c1b74eea5b3795d4a9af0bbb29c171c110826"
54
+ ? "0xdbd23ed1bfe214a61bce1ba711b86e62048913f2069e845c9ff69119628f41a3"
55
55
  : "0x8e5e5435c3fcd77f07cf097c5fbd381af7c2b394420ea035685662215471e578";
56
56
  exports.STAKE_POOL_VERSION = exports.NETWORK == "MAINNET"
57
- ? "0x2f33ef6920dd63ab2089aa28f91c564cf15c008e507ceb915c286f3fc28e06a8"
57
+ ? "0x64d09fec0002837abc4bb283410034c991710234c4d5b9013eabe38b54cad561"
58
58
  : "0x02b94b340a8810f6c451bc244dc2dd8d9d50cf86d727798969ca2c287c3186aa";
59
59
  exports.COMPETITION_CONFIG = exports.NETWORK == "MAINNET"
60
- ? "0xd9f4468854e5e352072a9c9e023eaea096b5314e75832c49e23555c5f0a00472"
60
+ ? "0xe896530a778adedc1b38e4fc31059a6557146caa7b1da56950b671a433de5f08"
61
61
  : "0x2b811b120177839555aabdc2c28b28078170e663e855d29aa9072013d4fc918d";
62
62
  exports.PROFIT_VAULT = exports.NETWORK == "MAINNET"
63
- ? "0xc7cc07321b9b34339f65c8b7dbfa31503421c261069df907bbde265f16e74c80" // TODO: Add mainnet PROFIT_VAULT address
63
+ ? "0xd24222307ba17ee1a08fe46ac587b1106e585e53f314ffffb525a4d4158b64c3" // TODO: Add mainnet PROFIT_VAULT address
64
64
  : "0xb1d603139b24db2c46f6a423c8613ce677f329a0b159ff6e57672f3b663aec47"; // TODO: Add testnet PROFIT_VAULT address
65
65
  exports.LOCK_VAULT = exports.NETWORK == "MAINNET"
66
- ? "0xb4a67eafb124ad2d27c464de47e47eacc1d054bf04f38ee5be92add2d3010d92" // TODO: Add mainnet LOCK_VAULT address
66
+ ? "0x585355900351dd1915b77f31c06ae9e6d58b187de848d4e6e6a55d3789e281d6" // TODO: Add mainnet LOCK_VAULT address
67
67
  : "0x25dd9540f031b9a62b83784a727e1ef410f9aa91ecf7e3bb27a0c61f8ceecbfb"; // TODO: Add testnet LOCK_VAULT address
@@ -578,7 +578,7 @@ async function getOrderMatchFromSentio(userAddress, startTimestamp, events) {
578
578
  ? "Order Filled (Open Position)"
579
579
  : x.sender == "0x978f65df8570a075298598a9965c18de9087f9e888eb3430fe20334f5c554cfd"
580
580
  ? "Force Close Position"
581
- : "Order Filled (Close Position)",
581
+ : x.order_type == "Increase" ? "Order Filled (Increase Position)" : "Order Filled (Close Position)",
582
582
  typeName: "OrderFilledEvent",
583
583
  order_id: x.order_id,
584
584
  position_id: x.position_id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typus/typus-perp-sdk",
3
- "version": "1.1.32-codegen-exp33",
3
+ "version": "1.1.32-codegen-exp35",
4
4
  "repository": "https://github.com/Typus-Lab/typus-perp-sdk.git",
5
5
  "author": "Typus",
6
6
  "description": "typus perp sdk",