@typus/typus-perp-sdk 1.1.29 → 1.1.30-testnet

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.
Files changed (58) hide show
  1. package/dist/src/_dependencies/source/0x1/ascii/structs.d.ts +7 -11
  2. package/dist/src/_dependencies/source/0x1/option/structs.d.ts +4 -6
  3. package/dist/src/_dependencies/source/0x1/string/structs.d.ts +4 -6
  4. package/dist/src/_dependencies/source/0x1/type-name/structs.d.ts +6 -10
  5. package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +8 -15
  6. package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +6 -10
  7. package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +85 -139
  8. package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +27 -48
  9. package/dist/src/_dependencies/source/0x2/object/structs.d.ts +8 -14
  10. package/dist/src/_dependencies/source/0x2/object-table/structs.d.ts +8 -15
  11. package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +3 -5
  12. package/dist/src/_dependencies/source/0x2/table/structs.d.ts +8 -15
  13. package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +10 -19
  14. package/dist/src/_dependencies/source/0x2/token/structs.d.ts +90 -118
  15. package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +70 -92
  16. package/dist/src/_dependencies/source/0x2/url/structs.d.ts +6 -10
  17. package/dist/src/_dependencies/source/0x2/vec-map/structs.d.ts +13 -18
  18. package/dist/src/_dependencies/source/0x2/vec-set/structs.d.ts +4 -6
  19. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.d.ts +86 -153
  20. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.d.ts +21 -38
  21. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.d.ts +34 -65
  22. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.d.ts +58 -101
  23. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.d.ts +36 -61
  24. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.d.ts +125 -224
  25. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.d.ts +31 -56
  26. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.d.ts +26 -46
  27. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.d.ts +186 -300
  28. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.d.ts +43 -78
  29. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.d.ts +48 -82
  30. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.d.ts +18 -33
  31. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.d.ts +65 -118
  32. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.d.ts +10 -19
  33. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.d.ts +133 -253
  34. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.d.ts +3 -5
  35. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.d.ts +26 -46
  36. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.d.ts +433 -713
  37. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.d.ts +69 -125
  38. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.d.ts +7 -12
  39. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.d.ts +87 -155
  40. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.d.ts +10 -19
  41. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.d.ts +183 -326
  42. package/dist/src/_framework/util.d.ts +1 -1
  43. package/dist/src/_framework/vector.d.ts +12 -5
  44. package/dist/src/typus_perp/admin/structs.d.ts +85 -147
  45. package/dist/src/typus_perp/competition/structs.d.ts +16 -28
  46. package/dist/src/typus_perp/escrow/structs.d.ts +20 -32
  47. package/dist/src/typus_perp/lp-pool/structs.d.ts +736 -1299
  48. package/dist/src/typus_perp/position/structs.d.ts +236 -395
  49. package/dist/src/typus_perp/symbol/structs.d.ts +14 -25
  50. package/dist/src/typus_perp/tlp/structs.d.ts +10 -18
  51. package/dist/src/typus_perp/trading/structs.d.ts +714 -1267
  52. package/dist/src/typus_perp/treasury-caps/structs.d.ts +7 -13
  53. package/dist/src/typus_perp/user-account/structs.d.ts +27 -47
  54. package/dist/src/typus_stake_pool/admin/structs.d.ts +67 -115
  55. package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +371 -649
  56. package/dist/src/user/orderWithBidReceipt.d.ts +1 -0
  57. package/dist/src/user/orderWithBidReceipt.js +1 -0
  58. package/package.json +4 -3
@@ -23,19 +23,13 @@ export declare class TreasuryCaps implements StructClass {
23
23
  static get r(): import("../../_framework/reified").StructClassReified<TreasuryCaps, TreasuryCapsFields>;
24
24
  static phantom(): PhantomReified<ToTypeStr<TreasuryCaps>>;
25
25
  static get p(): PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::treasury_caps::TreasuryCaps" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::treasury_caps::TreasuryCaps">;
26
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
27
- id: {
28
- id: {
29
- bytes: string;
30
- };
31
- };
32
- }, {
33
- id: {
34
- id: {
35
- bytes: string;
36
- };
37
- };
38
- }>;
26
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
27
+ id: import("@mysten/sui/bcs").BcsStruct<{
28
+ id: import("@mysten/sui/bcs").BcsStruct<{
29
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
30
+ }, string>;
31
+ }, string>;
32
+ }, string>;
39
33
  static fromFields(fields: Record<string, any>): TreasuryCaps;
40
34
  static fromFieldsWithTypes(item: FieldsWithTypes): TreasuryCaps;
41
35
  static fromBcs(data: Uint8Array): TreasuryCaps;
@@ -34,31 +34,21 @@ export declare class UserAccount implements StructClass {
34
34
  static get r(): reified.StructClassReified<UserAccount, UserAccountFields>;
35
35
  static phantom(): PhantomReified<ToTypeStr<UserAccount>>;
36
36
  static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::user_account::UserAccount" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::user_account::UserAccount">;
37
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
38
- id: {
39
- id: {
40
- bytes: string;
41
- };
42
- };
43
- owner: string;
44
- delegate_user: string[];
45
- symbols: {
37
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
38
+ id: import("@mysten/sui/bcs").BcsStruct<{
39
+ id: import("@mysten/sui/bcs").BcsStruct<{
40
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
41
+ }, string>;
42
+ }, string>;
43
+ owner: import("@mysten/sui/bcs").BcsType<string, string, string>;
44
+ delegate_user: import("@mysten/sui/bcs").BcsType<string[], Iterable<string> & {
45
+ length: number;
46
+ }, string>;
47
+ symbols: import("@mysten/sui/bcs").BcsType<{
46
48
  name: {
47
49
  bytes: number[];
48
50
  };
49
- }[];
50
- u64_padding: string[];
51
- }, {
52
- id: {
53
- id: {
54
- bytes: string;
55
- };
56
- };
57
- owner: string;
58
- delegate_user: Iterable<string> & {
59
- length: number;
60
- };
61
- symbols: Iterable<{
51
+ }[], Iterable<{
62
52
  name: {
63
53
  bytes: Iterable<number> & {
64
54
  length: number;
@@ -66,11 +56,11 @@ export declare class UserAccount implements StructClass {
66
56
  };
67
57
  }> & {
68
58
  length: number;
69
- };
70
- u64_padding: Iterable<string | number | bigint> & {
59
+ }, string>;
60
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
71
61
  length: number;
72
- };
73
- }>;
62
+ }, string>;
63
+ }, string>;
74
64
  static fromFields(fields: Record<string, any>): UserAccount;
75
65
  static fromFieldsWithTypes(item: FieldsWithTypes): UserAccount;
76
66
  static fromBcs(data: Uint8Array): UserAccount;
@@ -124,27 +114,17 @@ export declare class UserAccountCap implements StructClass {
124
114
  static get r(): reified.StructClassReified<UserAccountCap, UserAccountCapFields>;
125
115
  static phantom(): PhantomReified<ToTypeStr<UserAccountCap>>;
126
116
  static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::user_account::UserAccountCap" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::user_account::UserAccountCap">;
127
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
128
- id: {
129
- id: {
130
- bytes: string;
131
- };
132
- };
133
- owner: string;
134
- user_account_id: {
135
- bytes: string;
136
- };
137
- }, {
138
- id: {
139
- id: {
140
- bytes: string;
141
- };
142
- };
143
- owner: string;
144
- user_account_id: {
145
- bytes: string;
146
- };
147
- }>;
117
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
118
+ id: import("@mysten/sui/bcs").BcsStruct<{
119
+ id: import("@mysten/sui/bcs").BcsStruct<{
120
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
121
+ }, string>;
122
+ }, string>;
123
+ owner: import("@mysten/sui/bcs").BcsType<string, string, string>;
124
+ user_account_id: import("@mysten/sui/bcs").BcsStruct<{
125
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
126
+ }, string>;
127
+ }, string>;
148
128
  static fromFields(fields: Record<string, any>): UserAccountCap;
149
129
  static fromFieldsWithTypes(item: FieldsWithTypes): UserAccountCap;
150
130
  static fromBcs(data: Uint8Array): UserAccountCap;
@@ -39,61 +39,27 @@ export declare class Version implements StructClass {
39
39
  static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::admin::Version" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::admin::Version">;
40
40
  private static instantiateBcs;
41
41
  private static cachedBcs;
42
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
43
- id: {
44
- id: {
45
- bytes: string;
46
- };
47
- };
48
- value: string;
49
- fee_pool: {
50
- id: {
51
- id: {
52
- bytes: string;
53
- };
54
- };
55
- fee_infos: {
56
- token: {
57
- name: {
58
- bytes: number[];
59
- };
60
- };
61
- value: string;
62
- }[];
63
- };
64
- liquidator_fee_pool: {
65
- id: {
66
- id: {
67
- bytes: string;
68
- };
69
- };
70
- fee_infos: {
42
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
43
+ id: import("@mysten/sui/bcs").BcsStruct<{
44
+ id: import("@mysten/sui/bcs").BcsStruct<{
45
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
46
+ }, string>;
47
+ }, string>;
48
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
49
+ fee_pool: import("@mysten/sui/bcs").BcsStruct<{
50
+ id: import("@mysten/sui/bcs").BcsStruct<{
51
+ id: import("@mysten/sui/bcs").BcsStruct<{
52
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
53
+ }, string>;
54
+ }, string>;
55
+ fee_infos: import("@mysten/sui/bcs").BcsType<{
71
56
  token: {
72
57
  name: {
73
58
  bytes: number[];
74
59
  };
75
60
  };
76
61
  value: string;
77
- }[];
78
- };
79
- authority: {
80
- contents: any[];
81
- };
82
- u64_padding: string[];
83
- }, {
84
- id: {
85
- id: {
86
- bytes: string;
87
- };
88
- };
89
- value: string | number | bigint;
90
- fee_pool: {
91
- id: {
92
- id: {
93
- bytes: string;
94
- };
95
- };
96
- fee_infos: Iterable<{
62
+ }[], Iterable<{
97
63
  token: {
98
64
  name: {
99
65
  bytes: Iterable<number> & {
@@ -104,15 +70,22 @@ export declare class Version implements StructClass {
104
70
  value: string | number | bigint;
105
71
  }> & {
106
72
  length: number;
107
- };
108
- };
109
- liquidator_fee_pool: {
110
- id: {
111
- id: {
112
- bytes: string;
73
+ }, string>;
74
+ }, string>;
75
+ liquidator_fee_pool: import("@mysten/sui/bcs").BcsStruct<{
76
+ id: import("@mysten/sui/bcs").BcsStruct<{
77
+ id: import("@mysten/sui/bcs").BcsStruct<{
78
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
79
+ }, string>;
80
+ }, string>;
81
+ fee_infos: import("@mysten/sui/bcs").BcsType<{
82
+ token: {
83
+ name: {
84
+ bytes: number[];
85
+ };
113
86
  };
114
- };
115
- fee_infos: Iterable<{
87
+ value: string;
88
+ }[], Iterable<{
116
89
  token: {
117
90
  name: {
118
91
  bytes: Iterable<number> & {
@@ -123,17 +96,17 @@ export declare class Version implements StructClass {
123
96
  value: string | number | bigint;
124
97
  }> & {
125
98
  length: number;
126
- };
127
- };
128
- authority: {
129
- contents: Iterable<any> & {
99
+ }, string>;
100
+ }, string>;
101
+ authority: import("@mysten/sui/bcs").BcsStruct<{
102
+ contents: import("@mysten/sui/bcs").BcsType<string[], Iterable<string> & {
130
103
  length: number;
131
- };
132
- };
133
- u64_padding: Iterable<string | number | bigint> & {
104
+ }, string>;
105
+ }, string>;
106
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
134
107
  length: number;
135
- };
136
- }>;
108
+ }, string>;
109
+ }, string>;
137
110
  static fromFields(fields: Record<string, any>): Version;
138
111
  static fromFieldsWithTypes(item: FieldsWithTypes): Version;
139
112
  static fromBcs(data: Uint8Array): Version;
@@ -221,27 +194,20 @@ export declare class FeePool implements StructClass {
221
194
  static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::admin::FeePool" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::admin::FeePool">;
222
195
  private static instantiateBcs;
223
196
  private static cachedBcs;
224
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
225
- id: {
226
- id: {
227
- bytes: string;
228
- };
229
- };
230
- fee_infos: {
197
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
198
+ id: import("@mysten/sui/bcs").BcsStruct<{
199
+ id: import("@mysten/sui/bcs").BcsStruct<{
200
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
201
+ }, string>;
202
+ }, string>;
203
+ fee_infos: import("@mysten/sui/bcs").BcsType<{
231
204
  token: {
232
205
  name: {
233
206
  bytes: number[];
234
207
  };
235
208
  };
236
209
  value: string;
237
- }[];
238
- }, {
239
- id: {
240
- id: {
241
- bytes: string;
242
- };
243
- };
244
- fee_infos: Iterable<{
210
+ }[], Iterable<{
245
211
  token: {
246
212
  name: {
247
213
  bytes: Iterable<number> & {
@@ -252,8 +218,8 @@ export declare class FeePool implements StructClass {
252
218
  value: string | number | bigint;
253
219
  }> & {
254
220
  length: number;
255
- };
256
- }>;
221
+ }, string>;
222
+ }, string>;
257
223
  static fromFields(fields: Record<string, any>): FeePool;
258
224
  static fromFieldsWithTypes(item: FieldsWithTypes): FeePool;
259
225
  static fromBcs(data: Uint8Array): FeePool;
@@ -307,23 +273,16 @@ export declare class FeeInfo implements StructClass {
307
273
  static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::admin::FeeInfo" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::admin::FeeInfo">;
308
274
  private static instantiateBcs;
309
275
  private static cachedBcs;
310
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
311
- token: {
312
- name: {
313
- bytes: number[];
314
- };
315
- };
316
- value: string;
317
- }, {
318
- token: {
319
- name: {
320
- bytes: Iterable<number> & {
276
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
277
+ token: import("@mysten/sui/bcs").BcsStruct<{
278
+ name: import("@mysten/sui/bcs").BcsStruct<{
279
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
321
280
  length: number;
322
- };
323
- };
324
- };
325
- value: string | number | bigint;
326
- }>;
281
+ }, string>;
282
+ }, string>;
283
+ }, string>;
284
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
285
+ }, string>;
327
286
  static fromFields(fields: Record<string, any>): FeeInfo;
328
287
  static fromFieldsWithTypes(item: FieldsWithTypes): FeeInfo;
329
288
  static fromBcs(data: Uint8Array): FeeInfo;
@@ -371,23 +330,16 @@ export declare class SendFeeEvent implements StructClass {
371
330
  static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::admin::SendFeeEvent" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::admin::SendFeeEvent">;
372
331
  private static instantiateBcs;
373
332
  private static cachedBcs;
374
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
375
- token: {
376
- name: {
377
- bytes: number[];
378
- };
379
- };
380
- amount: string;
381
- }, {
382
- token: {
383
- name: {
384
- bytes: Iterable<number> & {
333
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
334
+ token: import("@mysten/sui/bcs").BcsStruct<{
335
+ name: import("@mysten/sui/bcs").BcsStruct<{
336
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
385
337
  length: number;
386
- };
387
- };
388
- };
389
- amount: string | number | bigint;
390
- }>;
338
+ }, string>;
339
+ }, string>;
340
+ }, string>;
341
+ amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
342
+ }, string>;
391
343
  static fromFields(fields: Record<string, any>): SendFeeEvent;
392
344
  static fromFieldsWithTypes(item: FieldsWithTypes): SendFeeEvent;
393
345
  static fromBcs(data: Uint8Array): SendFeeEvent;