@typus/typus-perp-sdk 1.1.27 → 1.1.28-codegen

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 (60) 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/fetch.js +7 -7
  45. package/dist/src/index.js +16 -15
  46. package/dist/src/typus_perp/admin/structs.d.ts +85 -147
  47. package/dist/src/typus_perp/competition/structs.d.ts +16 -28
  48. package/dist/src/typus_perp/escrow/structs.d.ts +20 -32
  49. package/dist/src/typus_perp/lp-pool/structs.d.ts +736 -1299
  50. package/dist/src/typus_perp/position/structs.d.ts +236 -395
  51. package/dist/src/typus_perp/symbol/structs.d.ts +14 -25
  52. package/dist/src/typus_perp/tlp/structs.d.ts +10 -18
  53. package/dist/src/typus_perp/trading/structs.d.ts +714 -1267
  54. package/dist/src/typus_perp/treasury-caps/structs.d.ts +7 -13
  55. package/dist/src/typus_perp/user-account/structs.d.ts +27 -47
  56. package/dist/src/typus_stake_pool/admin/structs.d.ts +67 -115
  57. package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +371 -649
  58. package/dist/src/user/history.js +1 -1
  59. package/dist/src/user/orderWithBidReceipt.d.ts +1 -0
  60. package/package.json +13 -4
@@ -32,29 +32,21 @@ export declare class OptionCollateralInfo implements StructClass {
32
32
  static get r(): reified.StructClassReified<OptionCollateralInfo, OptionCollateralInfoFields>;
33
33
  static phantom(): PhantomReified<ToTypeStr<OptionCollateralInfo>>;
34
34
  static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::position::OptionCollateralInfo" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::position::OptionCollateralInfo">;
35
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
36
- index: string;
37
- bid_token: {
38
- name: {
39
- bytes: number[];
40
- };
41
- };
42
- bid_receipts_bcs: number[][];
43
- }, {
44
- index: string | number | bigint;
45
- bid_token: {
46
- name: {
47
- bytes: Iterable<number> & {
35
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
36
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
37
+ bid_token: import("@mysten/sui/bcs").BcsStruct<{
38
+ name: import("@mysten/sui/bcs").BcsStruct<{
39
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
48
40
  length: number;
49
- };
50
- };
51
- };
52
- bid_receipts_bcs: Iterable<Iterable<number> & {
41
+ }, string>;
42
+ }, string>;
43
+ }, string>;
44
+ bid_receipts_bcs: import("@mysten/sui/bcs").BcsType<number[][], Iterable<Iterable<number> & {
53
45
  length: number;
54
46
  }> & {
55
47
  length: number;
56
- };
57
- }>;
48
+ }, string>;
49
+ }, string>;
58
50
  static fromFields(fields: Record<string, any>): OptionCollateralInfo;
59
51
  static fromFieldsWithTypes(item: FieldsWithTypes): OptionCollateralInfo;
60
52
  static fromBcs(data: Uint8Array): OptionCollateralInfo;
@@ -132,93 +124,56 @@ export declare class OrderFilledEvent implements StructClass {
132
124
  static get r(): reified.StructClassReified<OrderFilledEvent, OrderFilledEventFields>;
133
125
  static phantom(): PhantomReified<ToTypeStr<OrderFilledEvent>>;
134
126
  static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::position::OrderFilledEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::position::OrderFilledEvent">;
135
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
136
- user: string;
137
- collateral_token: {
138
- name: {
139
- bytes: number[];
140
- };
141
- };
142
- symbol: {
143
- base_token: {
144
- name: {
145
- bytes: number[];
146
- };
147
- };
148
- quote_token: {
149
- name: {
150
- bytes: number[];
151
- };
152
- };
153
- };
154
- order_id: string;
155
- linked_position_id: {
156
- vec: any[];
157
- };
158
- new_position_id: {
159
- vec: any[];
160
- };
161
- filled_size: string;
162
- filled_price: string;
163
- position_side: boolean;
164
- position_size: string;
165
- position_average_price: string;
166
- realized_trading_fee: string;
167
- realized_borrow_fee: string;
168
- realized_fee_in_usd: string;
169
- realized_amount: string;
170
- realized_amount_sign: boolean;
171
- u64_padding: string[];
172
- }, {
173
- user: string;
174
- collateral_token: {
175
- name: {
176
- bytes: Iterable<number> & {
127
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
128
+ user: import("@mysten/sui/bcs").BcsType<string, string, string>;
129
+ collateral_token: import("@mysten/sui/bcs").BcsStruct<{
130
+ name: import("@mysten/sui/bcs").BcsStruct<{
131
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
177
132
  length: number;
178
- };
179
- };
180
- };
181
- symbol: {
182
- base_token: {
183
- name: {
184
- bytes: Iterable<number> & {
133
+ }, string>;
134
+ }, string>;
135
+ }, string>;
136
+ symbol: import("@mysten/sui/bcs").BcsStruct<{
137
+ base_token: import("@mysten/sui/bcs").BcsStruct<{
138
+ name: import("@mysten/sui/bcs").BcsStruct<{
139
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
185
140
  length: number;
186
- };
187
- };
188
- };
189
- quote_token: {
190
- name: {
191
- bytes: Iterable<number> & {
141
+ }, string>;
142
+ }, string>;
143
+ }, string>;
144
+ quote_token: import("@mysten/sui/bcs").BcsStruct<{
145
+ name: import("@mysten/sui/bcs").BcsStruct<{
146
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
192
147
  length: number;
193
- };
194
- };
195
- };
196
- };
197
- order_id: string | number | bigint;
198
- linked_position_id: {
199
- vec: Iterable<any> & {
148
+ }, string>;
149
+ }, string>;
150
+ }, string>;
151
+ }, string>;
152
+ order_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
153
+ linked_position_id: import("@mysten/sui/bcs").BcsStruct<{
154
+ vec: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
200
155
  length: number;
201
- };
202
- };
203
- new_position_id: {
204
- vec: Iterable<any> & {
156
+ }, string>;
157
+ }, string>;
158
+ new_position_id: import("@mysten/sui/bcs").BcsStruct<{
159
+ vec: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
205
160
  length: number;
206
- };
207
- };
208
- filled_size: string | number | bigint;
209
- filled_price: string | number | bigint;
210
- position_side: boolean;
211
- position_size: string | number | bigint;
212
- position_average_price: string | number | bigint;
213
- realized_trading_fee: string | number | bigint;
214
- realized_borrow_fee: string | number | bigint;
215
- realized_fee_in_usd: string | number | bigint;
216
- realized_amount: string | number | bigint;
217
- realized_amount_sign: boolean;
218
- u64_padding: Iterable<string | number | bigint> & {
161
+ }, string>;
162
+ }, string>;
163
+ filled_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
164
+ filled_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
165
+ position_side: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
166
+ position_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
167
+ position_average_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
168
+ realized_trading_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
169
+ realized_borrow_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
170
+ realized_fee_in_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
171
+ realized_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
172
+ realized_amount_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
173
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
219
174
  length: number;
220
- };
221
- }>;
175
+ }, string>;
176
+ }, string>;
222
177
  static fromFields(fields: Record<string, any>): OrderFilledEvent;
223
178
  static fromFieldsWithTypes(item: FieldsWithTypes): OrderFilledEvent;
224
179
  static fromBcs(data: Uint8Array): OrderFilledEvent;
@@ -356,117 +311,91 @@ export declare class Position implements StructClass {
356
311
  static get r(): reified.StructClassReified<Position, PositionFields>;
357
312
  static phantom(): PhantomReified<ToTypeStr<Position>>;
358
313
  static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::position::Position" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::position::Position">;
359
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
360
- id: {
361
- id: {
362
- bytes: string;
363
- };
364
- };
365
- create_ts_ms: string;
366
- position_id: string;
367
- linked_order_ids: string[];
368
- linked_order_prices: string[];
369
- user: string;
370
- is_long: boolean;
371
- size: string;
372
- size_decimal: string;
373
- collateral_token: {
374
- name: {
375
- bytes: number[];
376
- };
377
- };
378
- collateral_token_decimal: string;
379
- symbol: {
380
- base_token: {
381
- name: {
382
- bytes: number[];
383
- };
384
- };
385
- quote_token: {
386
- name: {
387
- bytes: number[];
388
- };
389
- };
390
- };
391
- collateral_amount: string;
392
- reserve_amount: string;
393
- average_price: string;
394
- entry_borrow_index: string;
395
- entry_funding_rate_index_sign: boolean;
396
- entry_funding_rate_index: string;
397
- unrealized_loss: string;
398
- unrealized_funding_sign: boolean;
399
- unrealized_funding_fee: string;
400
- unrealized_trading_fee: string;
401
- unrealized_borrow_fee: string;
402
- unrealized_rebate: string;
403
- option_collateral_info: {
404
- vec: any[];
405
- };
406
- u64_padding: string[];
407
- }, {
408
- id: {
409
- id: {
410
- bytes: string;
411
- };
412
- };
413
- create_ts_ms: string | number | bigint;
414
- position_id: string | number | bigint;
415
- linked_order_ids: Iterable<string | number | bigint> & {
314
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
315
+ id: import("@mysten/sui/bcs").BcsStruct<{
316
+ id: import("@mysten/sui/bcs").BcsStruct<{
317
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
318
+ }, string>;
319
+ }, string>;
320
+ create_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
321
+ position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
322
+ linked_order_ids: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
416
323
  length: number;
417
- };
418
- linked_order_prices: Iterable<string | number | bigint> & {
324
+ }, string>;
325
+ linked_order_prices: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
419
326
  length: number;
420
- };
421
- user: string;
422
- is_long: boolean;
423
- size: string | number | bigint;
424
- size_decimal: string | number | bigint;
425
- collateral_token: {
426
- name: {
427
- bytes: Iterable<number> & {
327
+ }, string>;
328
+ user: import("@mysten/sui/bcs").BcsType<string, string, string>;
329
+ is_long: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
330
+ size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
331
+ size_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
332
+ collateral_token: import("@mysten/sui/bcs").BcsStruct<{
333
+ name: import("@mysten/sui/bcs").BcsStruct<{
334
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
428
335
  length: number;
429
- };
430
- };
431
- };
432
- collateral_token_decimal: string | number | bigint;
433
- symbol: {
434
- base_token: {
435
- name: {
436
- bytes: Iterable<number> & {
336
+ }, string>;
337
+ }, string>;
338
+ }, string>;
339
+ collateral_token_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
340
+ symbol: import("@mysten/sui/bcs").BcsStruct<{
341
+ base_token: import("@mysten/sui/bcs").BcsStruct<{
342
+ name: import("@mysten/sui/bcs").BcsStruct<{
343
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
437
344
  length: number;
345
+ }, string>;
346
+ }, string>;
347
+ }, string>;
348
+ quote_token: import("@mysten/sui/bcs").BcsStruct<{
349
+ name: import("@mysten/sui/bcs").BcsStruct<{
350
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
351
+ length: number;
352
+ }, string>;
353
+ }, string>;
354
+ }, string>;
355
+ }, string>;
356
+ collateral_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
357
+ reserve_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
358
+ average_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
359
+ entry_borrow_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
360
+ entry_funding_rate_index_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
361
+ entry_funding_rate_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
362
+ unrealized_loss: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
363
+ unrealized_funding_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
364
+ unrealized_funding_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
365
+ unrealized_trading_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
366
+ unrealized_borrow_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
367
+ unrealized_rebate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
368
+ option_collateral_info: import("@mysten/sui/bcs").BcsStruct<{
369
+ vec: import("@mysten/sui/bcs").BcsType<{
370
+ index: string;
371
+ bid_token: {
372
+ name: {
373
+ bytes: number[];
438
374
  };
439
375
  };
440
- };
441
- quote_token: {
442
- name: {
443
- bytes: Iterable<number> & {
444
- length: number;
376
+ bid_receipts_bcs: number[][];
377
+ }[], Iterable<{
378
+ index: string | number | bigint;
379
+ bid_token: {
380
+ name: {
381
+ bytes: Iterable<number> & {
382
+ length: number;
383
+ };
445
384
  };
446
385
  };
447
- };
448
- };
449
- collateral_amount: string | number | bigint;
450
- reserve_amount: string | number | bigint;
451
- average_price: string | number | bigint;
452
- entry_borrow_index: string | number | bigint;
453
- entry_funding_rate_index_sign: boolean;
454
- entry_funding_rate_index: string | number | bigint;
455
- unrealized_loss: string | number | bigint;
456
- unrealized_funding_sign: boolean;
457
- unrealized_funding_fee: string | number | bigint;
458
- unrealized_trading_fee: string | number | bigint;
459
- unrealized_borrow_fee: string | number | bigint;
460
- unrealized_rebate: string | number | bigint;
461
- option_collateral_info: {
462
- vec: Iterable<any> & {
386
+ bid_receipts_bcs: Iterable<Iterable<number> & {
387
+ length: number;
388
+ }> & {
389
+ length: number;
390
+ };
391
+ }> & {
463
392
  length: number;
464
- };
465
- };
466
- u64_padding: Iterable<string | number | bigint> & {
393
+ }, string>;
394
+ }, string>;
395
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
467
396
  length: number;
468
- };
469
- }>;
397
+ }, string>;
398
+ }, string>;
470
399
  static fromFields(fields: Record<string, any>): Position;
471
400
  static fromFieldsWithTypes(item: FieldsWithTypes): Position;
472
401
  static fromBcs(data: Uint8Array): Position;
@@ -598,63 +527,39 @@ export declare class RealizeFundingEvent implements StructClass {
598
527
  static get r(): reified.StructClassReified<RealizeFundingEvent, RealizeFundingEventFields>;
599
528
  static phantom(): PhantomReified<ToTypeStr<RealizeFundingEvent>>;
600
529
  static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::position::RealizeFundingEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::position::RealizeFundingEvent">;
601
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
602
- user: string;
603
- collateral_token: {
604
- name: {
605
- bytes: number[];
606
- };
607
- };
608
- symbol: {
609
- base_token: {
610
- name: {
611
- bytes: number[];
612
- };
613
- };
614
- quote_token: {
615
- name: {
616
- bytes: number[];
617
- };
618
- };
619
- };
620
- position_id: string;
621
- realized_funding_sign: boolean;
622
- realized_funding_fee: string;
623
- realized_funding_fee_usd: string;
624
- u64_padding: string[];
625
- }, {
626
- user: string;
627
- collateral_token: {
628
- name: {
629
- bytes: Iterable<number> & {
530
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
531
+ user: import("@mysten/sui/bcs").BcsType<string, string, string>;
532
+ collateral_token: import("@mysten/sui/bcs").BcsStruct<{
533
+ name: import("@mysten/sui/bcs").BcsStruct<{
534
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
630
535
  length: number;
631
- };
632
- };
633
- };
634
- symbol: {
635
- base_token: {
636
- name: {
637
- bytes: Iterable<number> & {
536
+ }, string>;
537
+ }, string>;
538
+ }, string>;
539
+ symbol: import("@mysten/sui/bcs").BcsStruct<{
540
+ base_token: import("@mysten/sui/bcs").BcsStruct<{
541
+ name: import("@mysten/sui/bcs").BcsStruct<{
542
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
638
543
  length: number;
639
- };
640
- };
641
- };
642
- quote_token: {
643
- name: {
644
- bytes: Iterable<number> & {
544
+ }, string>;
545
+ }, string>;
546
+ }, string>;
547
+ quote_token: import("@mysten/sui/bcs").BcsStruct<{
548
+ name: import("@mysten/sui/bcs").BcsStruct<{
549
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
645
550
  length: number;
646
- };
647
- };
648
- };
649
- };
650
- position_id: string | number | bigint;
651
- realized_funding_sign: boolean;
652
- realized_funding_fee: string | number | bigint;
653
- realized_funding_fee_usd: string | number | bigint;
654
- u64_padding: Iterable<string | number | bigint> & {
551
+ }, string>;
552
+ }, string>;
553
+ }, string>;
554
+ }, string>;
555
+ position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
556
+ realized_funding_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
557
+ realized_funding_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
558
+ realized_funding_fee_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
559
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
655
560
  length: number;
656
- };
657
- }>;
561
+ }, string>;
562
+ }, string>;
658
563
  static fromFields(fields: Record<string, any>): RealizeFundingEvent;
659
564
  static fromFieldsWithTypes(item: FieldsWithTypes): RealizeFundingEvent;
660
565
  static fromBcs(data: Uint8Array): RealizeFundingEvent;
@@ -740,69 +645,44 @@ export declare class RemovePositionEvent implements StructClass {
740
645
  static get r(): reified.StructClassReified<RemovePositionEvent, RemovePositionEventFields>;
741
646
  static phantom(): PhantomReified<ToTypeStr<RemovePositionEvent>>;
742
647
  static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::position::RemovePositionEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::position::RemovePositionEvent">;
743
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
744
- user: string;
745
- collateral_token: {
746
- name: {
747
- bytes: number[];
748
- };
749
- };
750
- symbol: {
751
- base_token: {
752
- name: {
753
- bytes: number[];
754
- };
755
- };
756
- quote_token: {
757
- name: {
758
- bytes: number[];
759
- };
760
- };
761
- };
762
- linked_order_ids: string[];
763
- linked_order_prices: string[];
764
- remaining_collateral_amount: string;
765
- realized_trading_fee_amount: string;
766
- realized_borrow_fee_amount: string;
767
- u64_padding: string[];
768
- }, {
769
- user: string;
770
- collateral_token: {
771
- name: {
772
- bytes: Iterable<number> & {
648
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
649
+ user: import("@mysten/sui/bcs").BcsType<string, string, string>;
650
+ collateral_token: import("@mysten/sui/bcs").BcsStruct<{
651
+ name: import("@mysten/sui/bcs").BcsStruct<{
652
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
773
653
  length: number;
774
- };
775
- };
776
- };
777
- symbol: {
778
- base_token: {
779
- name: {
780
- bytes: Iterable<number> & {
654
+ }, string>;
655
+ }, string>;
656
+ }, string>;
657
+ symbol: import("@mysten/sui/bcs").BcsStruct<{
658
+ base_token: import("@mysten/sui/bcs").BcsStruct<{
659
+ name: import("@mysten/sui/bcs").BcsStruct<{
660
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
781
661
  length: number;
782
- };
783
- };
784
- };
785
- quote_token: {
786
- name: {
787
- bytes: Iterable<number> & {
662
+ }, string>;
663
+ }, string>;
664
+ }, string>;
665
+ quote_token: import("@mysten/sui/bcs").BcsStruct<{
666
+ name: import("@mysten/sui/bcs").BcsStruct<{
667
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
788
668
  length: number;
789
- };
790
- };
791
- };
792
- };
793
- linked_order_ids: Iterable<string | number | bigint> & {
669
+ }, string>;
670
+ }, string>;
671
+ }, string>;
672
+ }, string>;
673
+ linked_order_ids: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
794
674
  length: number;
795
- };
796
- linked_order_prices: Iterable<string | number | bigint> & {
675
+ }, string>;
676
+ linked_order_prices: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
797
677
  length: number;
798
- };
799
- remaining_collateral_amount: string | number | bigint;
800
- realized_trading_fee_amount: string | number | bigint;
801
- realized_borrow_fee_amount: string | number | bigint;
802
- u64_padding: Iterable<string | number | bigint> & {
678
+ }, string>;
679
+ remaining_collateral_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
680
+ realized_trading_fee_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
681
+ realized_borrow_fee_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
682
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
803
683
  length: number;
804
- };
805
- }>;
684
+ }, string>;
685
+ }, string>;
806
686
  static fromFields(fields: Record<string, any>): RemovePositionEvent;
807
687
  static fromFieldsWithTypes(item: FieldsWithTypes): RemovePositionEvent;
808
688
  static fromBcs(data: Uint8Array): RemovePositionEvent;
@@ -906,95 +786,56 @@ export declare class TradingOrder implements StructClass {
906
786
  static get r(): reified.StructClassReified<TradingOrder, TradingOrderFields>;
907
787
  static phantom(): PhantomReified<ToTypeStr<TradingOrder>>;
908
788
  static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::position::TradingOrder" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::position::TradingOrder">;
909
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
910
- id: {
911
- id: {
912
- bytes: string;
913
- };
914
- };
915
- create_ts_ms: string;
916
- order_id: string;
917
- linked_position_id: {
918
- vec: any[];
919
- };
920
- user: string;
921
- collateral_token: {
922
- name: {
923
- bytes: number[];
924
- };
925
- };
926
- collateral_token_decimal: string;
927
- symbol: {
928
- base_token: {
929
- name: {
930
- bytes: number[];
931
- };
932
- };
933
- quote_token: {
934
- name: {
935
- bytes: number[];
936
- };
937
- };
938
- };
939
- leverage_mbp: string;
940
- reduce_only: boolean;
941
- is_long: boolean;
942
- is_stop_order: boolean;
943
- size: string;
944
- size_decimal: string;
945
- trigger_price: string;
946
- oracle_price_when_placing: string;
947
- u64_padding: string[];
948
- }, {
949
- id: {
950
- id: {
951
- bytes: string;
952
- };
953
- };
954
- create_ts_ms: string | number | bigint;
955
- order_id: string | number | bigint;
956
- linked_position_id: {
957
- vec: Iterable<any> & {
789
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
790
+ id: import("@mysten/sui/bcs").BcsStruct<{
791
+ id: import("@mysten/sui/bcs").BcsStruct<{
792
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
793
+ }, string>;
794
+ }, string>;
795
+ create_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
796
+ order_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
797
+ linked_position_id: import("@mysten/sui/bcs").BcsStruct<{
798
+ vec: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
958
799
  length: number;
959
- };
960
- };
961
- user: string;
962
- collateral_token: {
963
- name: {
964
- bytes: Iterable<number> & {
800
+ }, string>;
801
+ }, string>;
802
+ user: import("@mysten/sui/bcs").BcsType<string, string, string>;
803
+ collateral_token: import("@mysten/sui/bcs").BcsStruct<{
804
+ name: import("@mysten/sui/bcs").BcsStruct<{
805
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
965
806
  length: number;
966
- };
967
- };
968
- };
969
- collateral_token_decimal: string | number | bigint;
970
- symbol: {
971
- base_token: {
972
- name: {
973
- bytes: Iterable<number> & {
807
+ }, string>;
808
+ }, string>;
809
+ }, string>;
810
+ collateral_token_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
811
+ symbol: import("@mysten/sui/bcs").BcsStruct<{
812
+ base_token: import("@mysten/sui/bcs").BcsStruct<{
813
+ name: import("@mysten/sui/bcs").BcsStruct<{
814
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
974
815
  length: number;
975
- };
976
- };
977
- };
978
- quote_token: {
979
- name: {
980
- bytes: Iterable<number> & {
816
+ }, string>;
817
+ }, string>;
818
+ }, string>;
819
+ quote_token: import("@mysten/sui/bcs").BcsStruct<{
820
+ name: import("@mysten/sui/bcs").BcsStruct<{
821
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
981
822
  length: number;
982
- };
983
- };
984
- };
985
- };
986
- leverage_mbp: string | number | bigint;
987
- reduce_only: boolean;
988
- is_long: boolean;
989
- is_stop_order: boolean;
990
- size: string | number | bigint;
991
- size_decimal: string | number | bigint;
992
- trigger_price: string | number | bigint;
993
- oracle_price_when_placing: string | number | bigint;
994
- u64_padding: Iterable<string | number | bigint> & {
823
+ }, string>;
824
+ }, string>;
825
+ }, string>;
826
+ }, string>;
827
+ leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
828
+ reduce_only: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
829
+ is_long: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
830
+ is_stop_order: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
831
+ size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
832
+ size_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
833
+ trigger_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
834
+ oracle_price_when_placing: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
835
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
995
836
  length: number;
996
- };
997
- }>;
837
+ }, string>;
838
+ }, string>;
998
839
  static fromFields(fields: Record<string, any>): TradingOrder;
999
840
  static fromFieldsWithTypes(item: FieldsWithTypes): TradingOrder;
1000
841
  static fromBcs(data: Uint8Array): TradingOrder;