@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
@@ -24,11 +24,9 @@ export declare class Char implements StructClass {
24
24
  static get r(): reified.StructClassReified<Char, CharFields>;
25
25
  static phantom(): PhantomReified<ToTypeStr<Char>>;
26
26
  static get p(): reified.PhantomReified<"0x1::ascii::Char">;
27
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
28
- byte: number;
29
- }, {
30
- byte: number;
31
- }>;
27
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
28
+ byte: import("@mysten/sui/bcs").BcsType<number, number, "u8">;
29
+ }, string>;
32
30
  static fromFields(fields: Record<string, any>): Char;
33
31
  static fromFieldsWithTypes(item: FieldsWithTypes): Char;
34
32
  static fromBcs(data: Uint8Array): Char;
@@ -66,13 +64,11 @@ export declare class String implements StructClass {
66
64
  static get r(): reified.StructClassReified<String, StringFields>;
67
65
  static phantom(): PhantomReified<ToTypeStr<String>>;
68
66
  static get p(): reified.PhantomReified<"0x1::ascii::String">;
69
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
70
- bytes: number[];
71
- }, {
72
- bytes: Iterable<number> & {
67
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
68
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
73
69
  length: number;
74
- };
75
- }>;
70
+ }, string>;
71
+ }, string>;
76
72
  static fromFields(fields: Record<string, any>): String;
77
73
  static fromFieldsWithTypes(item: FieldsWithTypes): String;
78
74
  static fromBcs(data: Uint8Array): String;
@@ -26,13 +26,11 @@ export declare class Option<Element extends TypeArgument> implements StructClass
26
26
  static get r(): typeof Option.reified;
27
27
  static phantom<Element extends Reified<TypeArgument, any>>(Element: Element): PhantomReified<ToTypeStr<Option<ToTypeArgument<Element>>>>;
28
28
  static get p(): typeof Option.phantom;
29
- static get bcs(): <Element extends BcsType<any>>(Element: Element) => BcsType<{
30
- vec: any[];
31
- }, {
32
- vec: Iterable<any> & {
29
+ static get bcs(): <Element extends BcsType<any>>(Element: Element) => import("@mysten/sui/bcs").BcsStruct<{
30
+ vec: BcsType<import("@mysten/bcs").InferBcsType<Element>[], Iterable<import("@mysten/bcs").InferBcsInput<Element>> & {
33
31
  length: number;
34
- };
35
- }>;
32
+ }, string>;
33
+ }, string>;
36
34
  static fromFields<Element extends Reified<TypeArgument, any>>(typeArg: Element, fields: Record<string, any>): Option<ToTypeArgument<Element>>;
37
35
  static fromFieldsWithTypes<Element extends Reified<TypeArgument, any>>(typeArg: Element, item: FieldsWithTypes): Option<ToTypeArgument<Element>>;
38
36
  static fromBcs<Element extends Reified<TypeArgument, any>>(typeArg: Element, data: Uint8Array): Option<ToTypeArgument<Element>>;
@@ -24,13 +24,11 @@ export declare class String implements StructClass {
24
24
  static get r(): reified.StructClassReified<String, StringFields>;
25
25
  static phantom(): PhantomReified<ToTypeStr<String>>;
26
26
  static get p(): reified.PhantomReified<"0x1::string::String">;
27
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
28
- bytes: number[];
29
- }, {
30
- bytes: Iterable<number> & {
27
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
28
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
31
29
  length: number;
32
- };
33
- }>;
30
+ }, string>;
31
+ }, string>;
34
32
  static fromFields(fields: Record<string, any>): String;
35
33
  static fromFieldsWithTypes(item: FieldsWithTypes): String;
36
34
  static fromBcs(data: Uint8Array): String;
@@ -23,17 +23,13 @@ export declare class TypeName implements StructClass {
23
23
  static get r(): import("../../../../_framework/reified").StructClassReified<TypeName, TypeNameFields>;
24
24
  static phantom(): PhantomReified<ToTypeStr<TypeName>>;
25
25
  static get p(): PhantomReified<"0x1::type_name::TypeName">;
26
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
27
- name: {
28
- bytes: number[];
29
- };
30
- }, {
31
- name: {
32
- bytes: Iterable<number> & {
26
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
27
+ name: import("@mysten/sui/bcs").BcsStruct<{
28
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
33
29
  length: number;
34
- };
35
- };
36
- }>;
30
+ }, string>;
31
+ }, string>;
32
+ }, string>;
37
33
  static fromFields(fields: Record<string, any>): TypeName;
38
34
  static fromFieldsWithTypes(item: FieldsWithTypes): TypeName;
39
35
  static fromBcs(data: Uint8Array): TypeName;
@@ -25,21 +25,14 @@ export declare class Bag implements StructClass {
25
25
  static get r(): import("../../../../_framework/reified").StructClassReified<Bag, BagFields>;
26
26
  static phantom(): PhantomReified<ToTypeStr<Bag>>;
27
27
  static get p(): PhantomReified<"0x2::bag::Bag">;
28
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
29
- id: {
30
- id: {
31
- bytes: string;
32
- };
33
- };
34
- size: string;
35
- }, {
36
- id: {
37
- id: {
38
- bytes: string;
39
- };
40
- };
41
- size: string | number | bigint;
42
- }>;
28
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
29
+ id: import("@mysten/sui/bcs").BcsStruct<{
30
+ id: import("@mysten/sui/bcs").BcsStruct<{
31
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
32
+ }, string>;
33
+ }, string>;
34
+ size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
35
+ }, string>;
43
36
  static fromFields(fields: Record<string, any>): Bag;
44
37
  static fromFieldsWithTypes(item: FieldsWithTypes): Bag;
45
38
  static fromBcs(data: Uint8Array): Bag;
@@ -22,11 +22,9 @@ export declare class Balance<T extends PhantomTypeArgument> implements StructCla
22
22
  static get r(): typeof Balance.reified;
23
23
  static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<Balance<ToPhantomTypeArgument<T>>>>;
24
24
  static get p(): typeof Balance.phantom;
25
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
26
- value: string;
27
- }, {
28
- value: string | number | bigint;
29
- }>;
25
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
26
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
27
+ }, string>;
30
28
  static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): Balance<ToPhantomTypeArgument<T>>;
31
29
  static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): Balance<ToPhantomTypeArgument<T>>;
32
30
  static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): Balance<ToPhantomTypeArgument<T>>;
@@ -64,11 +62,9 @@ export declare class Supply<T extends PhantomTypeArgument> implements StructClas
64
62
  static get r(): typeof Supply.reified;
65
63
  static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<Supply<ToPhantomTypeArgument<T>>>>;
66
64
  static get p(): typeof Supply.phantom;
67
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
68
- value: string;
69
- }, {
70
- value: string | number | bigint;
71
- }>;
65
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
66
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
67
+ }, string>;
72
68
  static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): Supply<ToPhantomTypeArgument<T>>;
73
69
  static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): Supply<ToPhantomTypeArgument<T>>;
74
70
  static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): Supply<ToPhantomTypeArgument<T>>;
@@ -30,25 +30,16 @@ export declare class Coin<T extends PhantomTypeArgument> implements StructClass
30
30
  static get r(): typeof Coin.reified;
31
31
  static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<Coin<ToPhantomTypeArgument<T>>>>;
32
32
  static get p(): typeof Coin.phantom;
33
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
34
- id: {
35
- id: {
36
- bytes: string;
37
- };
38
- };
39
- balance: {
40
- value: string;
41
- };
42
- }, {
43
- id: {
44
- id: {
45
- bytes: string;
46
- };
47
- };
48
- balance: {
49
- value: string | number | bigint;
50
- };
51
- }>;
33
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
34
+ id: import("@mysten/sui/bcs").BcsStruct<{
35
+ id: import("@mysten/sui/bcs").BcsStruct<{
36
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
37
+ }, string>;
38
+ }, string>;
39
+ balance: import("@mysten/sui/bcs").BcsStruct<{
40
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
41
+ }, string>;
42
+ }, string>;
52
43
  static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): Coin<ToPhantomTypeArgument<T>>;
53
44
  static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): Coin<ToPhantomTypeArgument<T>>;
54
45
  static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): Coin<ToPhantomTypeArgument<T>>;
@@ -102,53 +93,44 @@ export declare class CoinMetadata<T extends PhantomTypeArgument> implements Stru
102
93
  static get r(): typeof CoinMetadata.reified;
103
94
  static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<CoinMetadata<ToPhantomTypeArgument<T>>>>;
104
95
  static get p(): typeof CoinMetadata.phantom;
105
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
106
- id: {
107
- id: {
108
- bytes: string;
109
- };
110
- };
111
- decimals: number;
112
- name: {
113
- bytes: number[];
114
- };
115
- symbol: {
116
- bytes: number[];
117
- };
118
- description: {
119
- bytes: number[];
120
- };
121
- icon_url: {
122
- vec: any[];
123
- };
124
- }, {
125
- id: {
126
- id: {
127
- bytes: string;
128
- };
129
- };
130
- decimals: number;
131
- name: {
132
- bytes: Iterable<number> & {
96
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
97
+ id: import("@mysten/sui/bcs").BcsStruct<{
98
+ id: import("@mysten/sui/bcs").BcsStruct<{
99
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
100
+ }, string>;
101
+ }, string>;
102
+ decimals: import("@mysten/sui/bcs").BcsType<number, number, "u8">;
103
+ name: import("@mysten/sui/bcs").BcsStruct<{
104
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
133
105
  length: number;
134
- };
135
- };
136
- symbol: {
137
- bytes: Iterable<number> & {
106
+ }, string>;
107
+ }, string>;
108
+ symbol: import("@mysten/sui/bcs").BcsStruct<{
109
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
138
110
  length: number;
139
- };
140
- };
141
- description: {
142
- bytes: Iterable<number> & {
111
+ }, string>;
112
+ }, string>;
113
+ description: import("@mysten/sui/bcs").BcsStruct<{
114
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
143
115
  length: number;
144
- };
145
- };
146
- icon_url: {
147
- vec: Iterable<any> & {
116
+ }, string>;
117
+ }, string>;
118
+ icon_url: import("@mysten/sui/bcs").BcsStruct<{
119
+ vec: import("@mysten/sui/bcs").BcsType<{
120
+ url: {
121
+ bytes: number[];
122
+ };
123
+ }[], Iterable<{
124
+ url: {
125
+ bytes: Iterable<number> & {
126
+ length: number;
127
+ };
128
+ };
129
+ }> & {
148
130
  length: number;
149
- };
150
- };
151
- }>;
131
+ }, string>;
132
+ }, string>;
133
+ }, string>;
152
134
  static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): CoinMetadata<ToPhantomTypeArgument<T>>;
153
135
  static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): CoinMetadata<ToPhantomTypeArgument<T>>;
154
136
  static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): CoinMetadata<ToPhantomTypeArgument<T>>;
@@ -196,11 +178,9 @@ export declare class CurrencyCreated<T extends PhantomTypeArgument> implements S
196
178
  static get r(): typeof CurrencyCreated.reified;
197
179
  static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<CurrencyCreated<ToPhantomTypeArgument<T>>>>;
198
180
  static get p(): typeof CurrencyCreated.phantom;
199
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
200
- decimals: number;
201
- }, {
202
- decimals: number;
203
- }>;
181
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
182
+ decimals: import("@mysten/sui/bcs").BcsType<number, number, "u8">;
183
+ }, string>;
204
184
  static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): CurrencyCreated<ToPhantomTypeArgument<T>>;
205
185
  static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): CurrencyCreated<ToPhantomTypeArgument<T>>;
206
186
  static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): CurrencyCreated<ToPhantomTypeArgument<T>>;
@@ -238,19 +218,13 @@ export declare class DenyCap<T extends PhantomTypeArgument> implements StructCla
238
218
  static get r(): typeof DenyCap.reified;
239
219
  static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<DenyCap<ToPhantomTypeArgument<T>>>>;
240
220
  static get p(): typeof DenyCap.phantom;
241
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
242
- id: {
243
- id: {
244
- bytes: string;
245
- };
246
- };
247
- }, {
248
- id: {
249
- id: {
250
- bytes: string;
251
- };
252
- };
253
- }>;
221
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
222
+ id: import("@mysten/sui/bcs").BcsStruct<{
223
+ id: import("@mysten/sui/bcs").BcsStruct<{
224
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
225
+ }, string>;
226
+ }, string>;
227
+ }, string>;
254
228
  static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): DenyCap<ToPhantomTypeArgument<T>>;
255
229
  static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): DenyCap<ToPhantomTypeArgument<T>>;
256
230
  static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): DenyCap<ToPhantomTypeArgument<T>>;
@@ -290,21 +264,14 @@ export declare class DenyCapV2<T extends PhantomTypeArgument> implements StructC
290
264
  static get r(): typeof DenyCapV2.reified;
291
265
  static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<DenyCapV2<ToPhantomTypeArgument<T>>>>;
292
266
  static get p(): typeof DenyCapV2.phantom;
293
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
294
- id: {
295
- id: {
296
- bytes: string;
297
- };
298
- };
299
- allow_global_pause: boolean;
300
- }, {
301
- id: {
302
- id: {
303
- bytes: string;
304
- };
305
- };
306
- allow_global_pause: boolean;
307
- }>;
267
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
268
+ id: import("@mysten/sui/bcs").BcsStruct<{
269
+ id: import("@mysten/sui/bcs").BcsStruct<{
270
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
271
+ }, string>;
272
+ }, string>;
273
+ allow_global_pause: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
274
+ }, string>;
308
275
  static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): DenyCapV2<ToPhantomTypeArgument<T>>;
309
276
  static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): DenyCapV2<ToPhantomTypeArgument<T>>;
310
277
  static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): DenyCapV2<ToPhantomTypeArgument<T>>;
@@ -348,31 +315,19 @@ export declare class RegulatedCoinMetadata<T extends PhantomTypeArgument> implem
348
315
  static get r(): typeof RegulatedCoinMetadata.reified;
349
316
  static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<RegulatedCoinMetadata<ToPhantomTypeArgument<T>>>>;
350
317
  static get p(): typeof RegulatedCoinMetadata.phantom;
351
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
352
- id: {
353
- id: {
354
- bytes: string;
355
- };
356
- };
357
- coin_metadata_object: {
358
- bytes: string;
359
- };
360
- deny_cap_object: {
361
- bytes: string;
362
- };
363
- }, {
364
- id: {
365
- id: {
366
- bytes: string;
367
- };
368
- };
369
- coin_metadata_object: {
370
- bytes: string;
371
- };
372
- deny_cap_object: {
373
- bytes: string;
374
- };
375
- }>;
318
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
319
+ id: import("@mysten/sui/bcs").BcsStruct<{
320
+ id: import("@mysten/sui/bcs").BcsStruct<{
321
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
322
+ }, string>;
323
+ }, string>;
324
+ coin_metadata_object: import("@mysten/sui/bcs").BcsStruct<{
325
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
326
+ }, string>;
327
+ deny_cap_object: import("@mysten/sui/bcs").BcsStruct<{
328
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
329
+ }, string>;
330
+ }, string>;
376
331
  static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): RegulatedCoinMetadata<ToPhantomTypeArgument<T>>;
377
332
  static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): RegulatedCoinMetadata<ToPhantomTypeArgument<T>>;
378
333
  static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): RegulatedCoinMetadata<ToPhantomTypeArgument<T>>;
@@ -416,25 +371,16 @@ export declare class TreasuryCap<T extends PhantomTypeArgument> implements Struc
416
371
  static get r(): typeof TreasuryCap.reified;
417
372
  static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<TreasuryCap<ToPhantomTypeArgument<T>>>>;
418
373
  static get p(): typeof TreasuryCap.phantom;
419
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
420
- id: {
421
- id: {
422
- bytes: string;
423
- };
424
- };
425
- total_supply: {
426
- value: string;
427
- };
428
- }, {
429
- id: {
430
- id: {
431
- bytes: string;
432
- };
433
- };
434
- total_supply: {
435
- value: string | number | bigint;
436
- };
437
- }>;
374
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
375
+ id: import("@mysten/sui/bcs").BcsStruct<{
376
+ id: import("@mysten/sui/bcs").BcsStruct<{
377
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
378
+ }, string>;
379
+ }, string>;
380
+ total_supply: import("@mysten/sui/bcs").BcsStruct<{
381
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
382
+ }, string>;
383
+ }, string>;
438
384
  static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): TreasuryCap<ToPhantomTypeArgument<T>>;
439
385
  static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): TreasuryCap<ToPhantomTypeArgument<T>>;
440
386
  static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): TreasuryCap<ToPhantomTypeArgument<T>>;
@@ -31,37 +31,24 @@ export declare class LinkedTable<K extends TypeArgument, V extends PhantomTypeAr
31
31
  static get r(): typeof LinkedTable.reified;
32
32
  static phantom<K extends Reified<TypeArgument, any>, V extends PhantomReified<PhantomTypeArgument>>(K: K, V: V): PhantomReified<ToTypeStr<LinkedTable<ToTypeArgument<K>, ToPhantomTypeArgument<V>>>>;
33
33
  static get p(): typeof LinkedTable.phantom;
34
- static get bcs(): <K extends BcsType<any>>(K: K) => BcsType<{
35
- id: {
36
- id: {
37
- bytes: string;
38
- };
39
- };
40
- size: string;
41
- head: {
42
- vec: any[];
43
- };
44
- tail: {
45
- vec: any[];
46
- };
47
- }, {
48
- id: {
49
- id: {
50
- bytes: string;
51
- };
52
- };
53
- size: string | number | bigint;
54
- head: {
55
- vec: Iterable<any> & {
34
+ static get bcs(): <K extends BcsType<any>>(K: K) => import("@mysten/sui/bcs").BcsStruct<{
35
+ id: import("@mysten/sui/bcs").BcsStruct<{
36
+ id: import("@mysten/sui/bcs").BcsStruct<{
37
+ bytes: BcsType<string, string, string>;
38
+ }, string>;
39
+ }, string>;
40
+ size: BcsType<string, string | number | bigint, "u64">;
41
+ head: import("@mysten/sui/bcs").BcsStruct<{
42
+ vec: BcsType<import("@mysten/bcs").InferBcsType<K>[], Iterable<import("@mysten/bcs").InferBcsInput<K>> & {
56
43
  length: number;
57
- };
58
- };
59
- tail: {
60
- vec: Iterable<any> & {
44
+ }, string>;
45
+ }, string>;
46
+ tail: import("@mysten/sui/bcs").BcsStruct<{
47
+ vec: BcsType<import("@mysten/bcs").InferBcsType<K>[], Iterable<import("@mysten/bcs").InferBcsInput<K>> & {
61
48
  length: number;
62
- };
63
- };
64
- }>;
49
+ }, string>;
50
+ }, string>;
51
+ }, string>;
65
52
  static fromFields<K extends Reified<TypeArgument, any>, V extends PhantomReified<PhantomTypeArgument>>(typeArgs: [K, V], fields: Record<string, any>): LinkedTable<ToTypeArgument<K>, ToPhantomTypeArgument<V>>;
66
53
  static fromFieldsWithTypes<K extends Reified<TypeArgument, any>, V extends PhantomReified<PhantomTypeArgument>>(typeArgs: [K, V], item: FieldsWithTypes): LinkedTable<ToTypeArgument<K>, ToPhantomTypeArgument<V>>;
67
54
  static fromBcs<K extends Reified<TypeArgument, any>, V extends PhantomReified<PhantomTypeArgument>>(typeArgs: [K, V], data: Uint8Array): LinkedTable<ToTypeArgument<K>, ToPhantomTypeArgument<V>>;
@@ -109,27 +96,19 @@ export declare class Node<K extends TypeArgument, V extends TypeArgument> implem
109
96
  static get r(): typeof Node.reified;
110
97
  static phantom<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(K: K, V: V): PhantomReified<ToTypeStr<Node<ToTypeArgument<K>, ToTypeArgument<V>>>>;
111
98
  static get p(): typeof Node.phantom;
112
- static get bcs(): <K extends BcsType<any>, V extends BcsType<any>>(K: K, V: V) => BcsType<{
113
- prev: {
114
- vec: any[];
115
- };
116
- next: {
117
- vec: any[];
118
- };
119
- value: V extends BcsType<infer U, any> ? U : never;
120
- }, {
121
- prev: {
122
- vec: Iterable<any> & {
99
+ static get bcs(): <K extends BcsType<any>, V extends BcsType<any>>(K: K, V: V) => import("@mysten/sui/bcs").BcsStruct<{
100
+ prev: import("@mysten/sui/bcs").BcsStruct<{
101
+ vec: BcsType<import("@mysten/bcs").InferBcsType<K>[], Iterable<import("@mysten/bcs").InferBcsInput<K>> & {
123
102
  length: number;
124
- };
125
- };
126
- next: {
127
- vec: Iterable<any> & {
103
+ }, string>;
104
+ }, string>;
105
+ next: import("@mysten/sui/bcs").BcsStruct<{
106
+ vec: BcsType<import("@mysten/bcs").InferBcsType<K>[], Iterable<import("@mysten/bcs").InferBcsInput<K>> & {
128
107
  length: number;
129
- };
130
- };
131
- value: V extends BcsType<any, infer U_1> ? U_1 : never;
132
- }>;
108
+ }, string>;
109
+ }, string>;
110
+ value: V;
111
+ }, string>;
133
112
  static fromFields<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(typeArgs: [K, V], fields: Record<string, any>): Node<ToTypeArgument<K>, ToTypeArgument<V>>;
134
113
  static fromFieldsWithTypes<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(typeArgs: [K, V], item: FieldsWithTypes): Node<ToTypeArgument<K>, ToTypeArgument<V>>;
135
114
  static fromBcs<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(typeArgs: [K, V], data: Uint8Array): Node<ToTypeArgument<K>, ToTypeArgument<V>>;
@@ -22,11 +22,9 @@ export declare class ID implements StructClass {
22
22
  static get r(): import("../../../../_framework/reified").StructClassReified<ID, IDFields>;
23
23
  static phantom(): PhantomReified<ToTypeStr<ID>>;
24
24
  static get p(): PhantomReified<"0x2::object::ID">;
25
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
26
- bytes: string;
27
- }, {
28
- bytes: string;
29
- }>;
25
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
26
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
27
+ }, string>;
30
28
  static fromFields(fields: Record<string, any>): ID;
31
29
  static fromFieldsWithTypes(item: FieldsWithTypes): ID;
32
30
  static fromBcs(data: Uint8Array): ID;
@@ -64,15 +62,11 @@ export declare class UID implements StructClass {
64
62
  static get r(): import("../../../../_framework/reified").StructClassReified<UID, UIDFields>;
65
63
  static phantom(): PhantomReified<ToTypeStr<UID>>;
66
64
  static get p(): PhantomReified<"0x2::object::UID">;
67
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
68
- id: {
69
- bytes: string;
70
- };
71
- }, {
72
- id: {
73
- bytes: string;
74
- };
75
- }>;
65
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
66
+ id: import("@mysten/sui/bcs").BcsStruct<{
67
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
68
+ }, string>;
69
+ }, string>;
76
70
  static fromFields(fields: Record<string, any>): UID;
77
71
  static fromFieldsWithTypes(item: FieldsWithTypes): UID;
78
72
  static fromBcs(data: Uint8Array): UID;
@@ -25,21 +25,14 @@ export declare class ObjectTable<K extends PhantomTypeArgument, V extends Phanto
25
25
  static get r(): typeof ObjectTable.reified;
26
26
  static phantom<K extends PhantomReified<PhantomTypeArgument>, V extends PhantomReified<PhantomTypeArgument>>(K: K, V: V): PhantomReified<ToTypeStr<ObjectTable<ToPhantomTypeArgument<K>, ToPhantomTypeArgument<V>>>>;
27
27
  static get p(): typeof ObjectTable.phantom;
28
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
29
- id: {
30
- id: {
31
- bytes: string;
32
- };
33
- };
34
- size: string;
35
- }, {
36
- id: {
37
- id: {
38
- bytes: string;
39
- };
40
- };
41
- size: string | number | bigint;
42
- }>;
28
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
29
+ id: import("@mysten/sui/bcs").BcsStruct<{
30
+ id: import("@mysten/sui/bcs").BcsStruct<{
31
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
32
+ }, string>;
33
+ }, string>;
34
+ size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
35
+ }, string>;
43
36
  static fromFields<K extends PhantomReified<PhantomTypeArgument>, V extends PhantomReified<PhantomTypeArgument>>(typeArgs: [K, V], fields: Record<string, any>): ObjectTable<ToPhantomTypeArgument<K>, ToPhantomTypeArgument<V>>;
44
37
  static fromFieldsWithTypes<K extends PhantomReified<PhantomTypeArgument>, V extends PhantomReified<PhantomTypeArgument>>(typeArgs: [K, V], item: FieldsWithTypes): ObjectTable<ToPhantomTypeArgument<K>, ToPhantomTypeArgument<V>>;
45
38
  static fromBcs<K extends PhantomReified<PhantomTypeArgument>, V extends PhantomReified<PhantomTypeArgument>>(typeArgs: [K, V], data: Uint8Array): ObjectTable<ToPhantomTypeArgument<K>, ToPhantomTypeArgument<V>>;
@@ -22,11 +22,9 @@ export declare class SUI implements StructClass {
22
22
  static get r(): import("../../../../_framework/reified").StructClassReified<SUI, SUIFields>;
23
23
  static phantom(): PhantomReified<ToTypeStr<SUI>>;
24
24
  static get p(): PhantomReified<"0x2::sui::SUI">;
25
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
26
- dummy_field: boolean;
27
- }, {
28
- dummy_field: boolean;
29
- }>;
25
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
26
+ dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
27
+ }, string>;
30
28
  static fromFields(fields: Record<string, any>): SUI;
31
29
  static fromFieldsWithTypes(item: FieldsWithTypes): SUI;
32
30
  static fromBcs(data: Uint8Array): SUI;