@typus/typus-perp-sdk 1.1.29 → 1.1.30

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 +5 -4
@@ -31,13 +31,10 @@ export declare class Airdrop implements StructClass {
31
31
  static get r(): reified.StructClassReified<Airdrop, AirdropFields>;
32
32
  static phantom(): PhantomReified<ToTypeStr<Airdrop>>;
33
33
  static get p(): reified.PhantomReified<"0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::Airdrop">;
34
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
35
- user: string;
36
- value: string;
37
- }, {
38
- user: string;
39
- value: string | number | bigint;
40
- }>;
34
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
35
+ user: import("@mysten/sui/bcs").BcsType<string, string, string>;
36
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
37
+ }, string>;
41
38
  static fromFields(fields: Record<string, any>): Airdrop;
42
39
  static fromFieldsWithTypes(item: FieldsWithTypes): Airdrop;
43
40
  static fromBcs(data: Uint8Array): Airdrop;
@@ -81,57 +78,33 @@ export declare class AirdropInfo<TOKEN extends PhantomTypeArgument> implements S
81
78
  static get r(): typeof AirdropInfo.reified;
82
79
  static phantom<TOKEN extends PhantomReified<PhantomTypeArgument>>(TOKEN: TOKEN): PhantomReified<ToTypeStr<AirdropInfo<ToPhantomTypeArgument<TOKEN>>>>;
83
80
  static get p(): typeof AirdropInfo.phantom;
84
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
85
- id: {
86
- id: {
87
- bytes: string;
88
- };
89
- };
90
- balance: {
91
- value: string;
92
- };
93
- airdrops: {
94
- id: {
95
- id: {
96
- bytes: string;
97
- };
98
- };
99
- element_type: {
100
- name: {
101
- bytes: number[];
102
- };
103
- };
104
- slice_idx: string;
105
- slice_size: number;
106
- length: string;
107
- };
108
- }, {
109
- id: {
110
- id: {
111
- bytes: string;
112
- };
113
- };
114
- balance: {
115
- value: string | number | bigint;
116
- };
117
- airdrops: {
118
- id: {
119
- id: {
120
- bytes: string;
121
- };
122
- };
123
- element_type: {
124
- name: {
125
- bytes: Iterable<number> & {
81
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
82
+ id: import("@mysten/sui/bcs").BcsStruct<{
83
+ id: import("@mysten/sui/bcs").BcsStruct<{
84
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
85
+ }, string>;
86
+ }, string>;
87
+ balance: import("@mysten/sui/bcs").BcsStruct<{
88
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
89
+ }, string>;
90
+ airdrops: import("@mysten/sui/bcs").BcsStruct<{
91
+ id: import("@mysten/sui/bcs").BcsStruct<{
92
+ id: import("@mysten/sui/bcs").BcsStruct<{
93
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
94
+ }, string>;
95
+ }, string>;
96
+ element_type: import("@mysten/sui/bcs").BcsStruct<{
97
+ name: import("@mysten/sui/bcs").BcsStruct<{
98
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
126
99
  length: number;
127
- };
128
- };
129
- };
130
- slice_idx: string | number | bigint;
131
- slice_size: number;
132
- length: string | number | bigint;
133
- };
134
- }>;
100
+ }, string>;
101
+ }, string>;
102
+ }, string>;
103
+ slice_idx: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
104
+ slice_size: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
105
+ length: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
106
+ }, string>;
107
+ }, string>;
135
108
  static fromFields<TOKEN extends PhantomReified<PhantomTypeArgument>>(typeArg: TOKEN, fields: Record<string, any>): AirdropInfo<ToPhantomTypeArgument<TOKEN>>;
136
109
  static fromFieldsWithTypes<TOKEN extends PhantomReified<PhantomTypeArgument>>(typeArg: TOKEN, item: FieldsWithTypes): AirdropInfo<ToPhantomTypeArgument<TOKEN>>;
137
110
  static fromBcs<TOKEN extends PhantomReified<PhantomTypeArgument>>(typeArg: TOKEN, data: Uint8Array): AirdropInfo<ToPhantomTypeArgument<TOKEN>>;
@@ -201,41 +174,29 @@ export declare class ClaimAirdropEvent implements StructClass {
201
174
  static get r(): reified.StructClassReified<ClaimAirdropEvent, ClaimAirdropEventFields>;
202
175
  static phantom(): PhantomReified<ToTypeStr<ClaimAirdropEvent>>;
203
176
  static get p(): reified.PhantomReified<"0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::ClaimAirdropEvent">;
204
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
205
- token: {
206
- name: {
207
- bytes: number[];
208
- };
209
- };
210
- key: {
211
- bytes: number[];
212
- };
213
- user: string;
214
- log: string[];
215
- bcs_padding: number[][];
216
- }, {
217
- token: {
218
- name: {
219
- bytes: Iterable<number> & {
177
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
178
+ token: import("@mysten/sui/bcs").BcsStruct<{
179
+ name: import("@mysten/sui/bcs").BcsStruct<{
180
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
220
181
  length: number;
221
- };
222
- };
223
- };
224
- key: {
225
- bytes: Iterable<number> & {
182
+ }, string>;
183
+ }, string>;
184
+ }, string>;
185
+ key: import("@mysten/sui/bcs").BcsStruct<{
186
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
226
187
  length: number;
227
- };
228
- };
229
- user: string;
230
- log: Iterable<string | number | bigint> & {
188
+ }, string>;
189
+ }, string>;
190
+ user: import("@mysten/sui/bcs").BcsType<string, string, string>;
191
+ log: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
231
192
  length: number;
232
- };
233
- bcs_padding: Iterable<Iterable<number> & {
193
+ }, string>;
194
+ bcs_padding: import("@mysten/sui/bcs").BcsType<number[][], Iterable<Iterable<number> & {
234
195
  length: number;
235
196
  }> & {
236
197
  length: number;
237
- };
238
- }>;
198
+ }, string>;
199
+ }, string>;
239
200
  static fromFields(fields: Record<string, any>): ClaimAirdropEvent;
240
201
  static fromFieldsWithTypes(item: FieldsWithTypes): ClaimAirdropEvent;
241
202
  static fromBcs(data: Uint8Array): ClaimAirdropEvent;
@@ -291,39 +252,28 @@ export declare class RemoveAirdropEvent implements StructClass {
291
252
  static get r(): reified.StructClassReified<RemoveAirdropEvent, RemoveAirdropEventFields>;
292
253
  static phantom(): PhantomReified<ToTypeStr<RemoveAirdropEvent>>;
293
254
  static get p(): reified.PhantomReified<"0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::RemoveAirdropEvent">;
294
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
295
- token: {
296
- name: {
297
- bytes: number[];
298
- };
299
- };
300
- key: {
301
- bytes: number[];
302
- };
303
- log: string[];
304
- bcs_padding: number[][];
305
- }, {
306
- token: {
307
- name: {
308
- bytes: Iterable<number> & {
255
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
256
+ token: import("@mysten/sui/bcs").BcsStruct<{
257
+ name: import("@mysten/sui/bcs").BcsStruct<{
258
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
309
259
  length: number;
310
- };
311
- };
312
- };
313
- key: {
314
- bytes: Iterable<number> & {
260
+ }, string>;
261
+ }, string>;
262
+ }, string>;
263
+ key: import("@mysten/sui/bcs").BcsStruct<{
264
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
315
265
  length: number;
316
- };
317
- };
318
- log: Iterable<string | number | bigint> & {
266
+ }, string>;
267
+ }, string>;
268
+ log: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
319
269
  length: number;
320
- };
321
- bcs_padding: Iterable<Iterable<number> & {
270
+ }, string>;
271
+ bcs_padding: import("@mysten/sui/bcs").BcsType<number[][], Iterable<Iterable<number> & {
322
272
  length: number;
323
273
  }> & {
324
274
  length: number;
325
- };
326
- }>;
275
+ }, string>;
276
+ }, string>;
327
277
  static fromFields(fields: Record<string, any>): RemoveAirdropEvent;
328
278
  static fromFieldsWithTypes(item: FieldsWithTypes): RemoveAirdropEvent;
329
279
  static fromBcs(data: Uint8Array): RemoveAirdropEvent;
@@ -377,39 +327,28 @@ export declare class SetAirdropEvent implements StructClass {
377
327
  static get r(): reified.StructClassReified<SetAirdropEvent, SetAirdropEventFields>;
378
328
  static phantom(): PhantomReified<ToTypeStr<SetAirdropEvent>>;
379
329
  static get p(): reified.PhantomReified<"0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::SetAirdropEvent">;
380
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
381
- token: {
382
- name: {
383
- bytes: number[];
384
- };
385
- };
386
- key: {
387
- bytes: number[];
388
- };
389
- log: string[];
390
- bcs_padding: number[][];
391
- }, {
392
- token: {
393
- name: {
394
- bytes: Iterable<number> & {
330
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
331
+ token: import("@mysten/sui/bcs").BcsStruct<{
332
+ name: import("@mysten/sui/bcs").BcsStruct<{
333
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
395
334
  length: number;
396
- };
397
- };
398
- };
399
- key: {
400
- bytes: Iterable<number> & {
335
+ }, string>;
336
+ }, string>;
337
+ }, string>;
338
+ key: import("@mysten/sui/bcs").BcsStruct<{
339
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
401
340
  length: number;
402
- };
403
- };
404
- log: Iterable<string | number | bigint> & {
341
+ }, string>;
342
+ }, string>;
343
+ log: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
405
344
  length: number;
406
- };
407
- bcs_padding: Iterable<Iterable<number> & {
345
+ }, string>;
346
+ bcs_padding: import("@mysten/sui/bcs").BcsType<number[][], Iterable<Iterable<number> & {
408
347
  length: number;
409
348
  }> & {
410
349
  length: number;
411
- };
412
- }>;
350
+ }, string>;
351
+ }, string>;
413
352
  static fromFields(fields: Record<string, any>): SetAirdropEvent;
414
353
  static fromFieldsWithTypes(item: FieldsWithTypes): SetAirdropEvent;
415
354
  static fromBcs(data: Uint8Array): SetAirdropEvent;
@@ -457,19 +396,13 @@ export declare class TypusAirdropRegistry implements StructClass {
457
396
  static get r(): reified.StructClassReified<TypusAirdropRegistry, TypusAirdropRegistryFields>;
458
397
  static phantom(): PhantomReified<ToTypeStr<TypusAirdropRegistry>>;
459
398
  static get p(): reified.PhantomReified<"0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::TypusAirdropRegistry">;
460
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
461
- id: {
462
- id: {
463
- bytes: string;
464
- };
465
- };
466
- }, {
467
- id: {
468
- id: {
469
- bytes: string;
470
- };
471
- };
472
- }>;
399
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
400
+ id: import("@mysten/sui/bcs").BcsStruct<{
401
+ id: import("@mysten/sui/bcs").BcsStruct<{
402
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
403
+ }, string>;
404
+ }, string>;
405
+ }, string>;
473
406
  static fromFields(fields: Record<string, any>): TypusAirdropRegistry;
474
407
  static fromFieldsWithTypes(item: FieldsWithTypes): TypusAirdropRegistry;
475
408
  static fromBcs(data: Uint8Array): TypusAirdropRegistry;
@@ -35,37 +35,23 @@ export declare class BigVector implements StructClass {
35
35
  static get r(): reified.StructClassReified<BigVector, BigVectorFields>;
36
36
  static phantom(): PhantomReified<ToTypeStr<BigVector>>;
37
37
  static get p(): reified.PhantomReified<"0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::big_vector::BigVector">;
38
- static get bcs(): BcsType<{
39
- id: {
40
- id: {
41
- bytes: string;
42
- };
43
- };
44
- element_type: {
45
- name: {
46
- bytes: number[];
47
- };
48
- };
49
- slice_idx: string;
50
- slice_size: number;
51
- length: string;
52
- }, {
53
- id: {
54
- id: {
55
- bytes: string;
56
- };
57
- };
58
- element_type: {
59
- name: {
60
- bytes: Iterable<number> & {
38
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
39
+ id: import("@mysten/sui/bcs").BcsStruct<{
40
+ id: import("@mysten/sui/bcs").BcsStruct<{
41
+ bytes: BcsType<string, string, string>;
42
+ }, string>;
43
+ }, string>;
44
+ element_type: import("@mysten/sui/bcs").BcsStruct<{
45
+ name: import("@mysten/sui/bcs").BcsStruct<{
46
+ bytes: BcsType<number[], Iterable<number> & {
61
47
  length: number;
62
- };
63
- };
64
- };
65
- slice_idx: string | number | bigint;
66
- slice_size: number;
67
- length: string | number | bigint;
68
- }>;
48
+ }, string>;
49
+ }, string>;
50
+ }, string>;
51
+ slice_idx: BcsType<string, string | number | bigint, "u64">;
52
+ slice_size: BcsType<number, number, "u32">;
53
+ length: BcsType<string, string | number | bigint, "u64">;
54
+ }, string>;
69
55
  static fromFields(fields: Record<string, any>): BigVector;
70
56
  static fromFieldsWithTypes(item: FieldsWithTypes): BigVector;
71
57
  static fromBcs(data: Uint8Array): BigVector;
@@ -117,15 +103,12 @@ export declare class Slice<Element extends TypeArgument> implements StructClass
117
103
  static get r(): typeof Slice.reified;
118
104
  static phantom<Element extends Reified<TypeArgument, any>>(Element: Element): PhantomReified<ToTypeStr<Slice<ToTypeArgument<Element>>>>;
119
105
  static get p(): typeof Slice.phantom;
120
- static get bcs(): <Element extends BcsType<any>>(Element: Element) => BcsType<{
121
- idx: string;
122
- vector: any[];
123
- }, {
124
- idx: string | number | bigint;
125
- vector: Iterable<any> & {
106
+ static get bcs(): <Element extends BcsType<any>>(Element: Element) => import("@mysten/sui/bcs").BcsStruct<{
107
+ idx: BcsType<string, string | number | bigint, "u64">;
108
+ vector: BcsType<import("@mysten/bcs").InferBcsType<Element>[], Iterable<import("@mysten/bcs").InferBcsInput<Element>> & {
126
109
  length: number;
127
- };
128
- }>;
110
+ }, string>;
111
+ }, string>;
129
112
  static fromFields<Element extends Reified<TypeArgument, any>>(typeArg: Element, fields: Record<string, any>): Slice<ToTypeArgument<Element>>;
130
113
  static fromFieldsWithTypes<Element extends Reified<TypeArgument, any>>(typeArg: Element, item: FieldsWithTypes): Slice<ToTypeArgument<Element>>;
131
114
  static fromBcs<Element extends Reified<TypeArgument, any>>(typeArg: Element, data: Uint8Array): Slice<ToTypeArgument<Element>>;
@@ -37,51 +37,29 @@ export declare class CritbitTree<V extends TypeArgument> implements StructClass
37
37
  static get r(): typeof CritbitTree.reified;
38
38
  static phantom<V extends Reified<TypeArgument, any>>(V: V): PhantomReified<ToTypeStr<CritbitTree<ToTypeArgument<V>>>>;
39
39
  static get p(): typeof CritbitTree.phantom;
40
- static get bcs(): <V extends BcsType<any>>(V: V) => BcsType<{
41
- root: string;
42
- internal_nodes: {
43
- id: {
44
- id: {
45
- bytes: string;
46
- };
47
- };
48
- size: string;
49
- };
50
- leaves: {
51
- id: {
52
- id: {
53
- bytes: string;
54
- };
55
- };
56
- size: string;
57
- };
58
- min_leaf_index: string;
59
- max_leaf_index: string;
60
- next_internal_node_index: string;
61
- next_leaf_index: string;
62
- }, {
63
- root: string | number | bigint;
64
- internal_nodes: {
65
- id: {
66
- id: {
67
- bytes: string;
68
- };
69
- };
70
- size: string | number | bigint;
71
- };
72
- leaves: {
73
- id: {
74
- id: {
75
- bytes: string;
76
- };
77
- };
78
- size: string | number | bigint;
79
- };
80
- min_leaf_index: string | number | bigint;
81
- max_leaf_index: string | number | bigint;
82
- next_internal_node_index: string | number | bigint;
83
- next_leaf_index: string | number | bigint;
84
- }>;
40
+ static get bcs(): <V extends BcsType<any>>(V: V) => import("@mysten/sui/bcs").BcsStruct<{
41
+ root: BcsType<string, string | number | bigint, "u64">;
42
+ internal_nodes: import("@mysten/sui/bcs").BcsStruct<{
43
+ id: import("@mysten/sui/bcs").BcsStruct<{
44
+ id: import("@mysten/sui/bcs").BcsStruct<{
45
+ bytes: BcsType<string, string, string>;
46
+ }, string>;
47
+ }, string>;
48
+ size: BcsType<string, string | number | bigint, "u64">;
49
+ }, string>;
50
+ leaves: import("@mysten/sui/bcs").BcsStruct<{
51
+ id: import("@mysten/sui/bcs").BcsStruct<{
52
+ id: import("@mysten/sui/bcs").BcsStruct<{
53
+ bytes: BcsType<string, string, string>;
54
+ }, string>;
55
+ }, string>;
56
+ size: BcsType<string, string | number | bigint, "u64">;
57
+ }, string>;
58
+ min_leaf_index: BcsType<string, string | number | bigint, "u64">;
59
+ max_leaf_index: BcsType<string, string | number | bigint, "u64">;
60
+ next_internal_node_index: BcsType<string, string | number | bigint, "u64">;
61
+ next_leaf_index: BcsType<string, string | number | bigint, "u64">;
62
+ }, string>;
85
63
  static fromFields<V extends Reified<TypeArgument, any>>(typeArg: V, fields: Record<string, any>): CritbitTree<ToTypeArgument<V>>;
86
64
  static fromFieldsWithTypes<V extends Reified<TypeArgument, any>>(typeArg: V, item: FieldsWithTypes): CritbitTree<ToTypeArgument<V>>;
87
65
  static fromBcs<V extends Reified<TypeArgument, any>>(typeArg: V, data: Uint8Array): CritbitTree<ToTypeArgument<V>>;
@@ -149,17 +127,12 @@ export declare class InternalNode implements StructClass {
149
127
  static get r(): reified.StructClassReified<InternalNode, InternalNodeFields>;
150
128
  static phantom(): PhantomReified<ToTypeStr<InternalNode>>;
151
129
  static get p(): reified.PhantomReified<"0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::critbit::InternalNode">;
152
- static get bcs(): BcsType<{
153
- mask: string;
154
- left_child: string;
155
- right_child: string;
156
- parent: string;
157
- }, {
158
- mask: string | number | bigint;
159
- left_child: string | number | bigint;
160
- right_child: string | number | bigint;
161
- parent: string | number | bigint;
162
- }>;
130
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
131
+ mask: BcsType<string, string | number | bigint, "u64">;
132
+ left_child: BcsType<string, string | number | bigint, "u64">;
133
+ right_child: BcsType<string, string | number | bigint, "u64">;
134
+ parent: BcsType<string, string | number | bigint, "u64">;
135
+ }, string>;
163
136
  static fromFields(fields: Record<string, any>): InternalNode;
164
137
  static fromFieldsWithTypes(item: FieldsWithTypes): InternalNode;
165
138
  static fromBcs(data: Uint8Array): InternalNode;
@@ -207,15 +180,11 @@ export declare class Leaf<V extends TypeArgument> implements StructClass {
207
180
  static get r(): typeof Leaf.reified;
208
181
  static phantom<V extends Reified<TypeArgument, any>>(V: V): PhantomReified<ToTypeStr<Leaf<ToTypeArgument<V>>>>;
209
182
  static get p(): typeof Leaf.phantom;
210
- static get bcs(): <V extends BcsType<any>>(V: V) => BcsType<{
211
- key: string;
212
- value: V extends BcsType<infer U, any> ? U : never;
213
- parent: string;
214
- }, {
215
- key: string | number | bigint;
216
- value: V extends BcsType<any, infer U_1> ? U_1 : never;
217
- parent: string | number | bigint;
218
- }>;
183
+ static get bcs(): <V extends BcsType<any>>(V: V) => import("@mysten/sui/bcs").BcsStruct<{
184
+ key: BcsType<string, string | number | bigint, "u64">;
185
+ value: V;
186
+ parent: BcsType<string, string | number | bigint, "u64">;
187
+ }, string>;
219
188
  static fromFields<V extends Reified<TypeArgument, any>>(typeArg: V, fields: Record<string, any>): Leaf<ToTypeArgument<V>>;
220
189
  static fromFieldsWithTypes<V extends Reified<TypeArgument, any>>(typeArg: V, item: FieldsWithTypes): Leaf<ToTypeArgument<V>>;
221
190
  static fromBcs<V extends Reified<TypeArgument, any>>(typeArg: V, data: Uint8Array): Leaf<ToTypeArgument<V>>;