@suilend/springsui-cli 1.0.12 → 1.0.13
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.
- package/cli/src/bytecode.js +4 -8
- package/package.json +1 -1
- package/sdk/src/_generated/_dependencies/source/0x1/ascii/structs.d.ts +7 -11
- package/sdk/src/_generated/_dependencies/source/0x1/option/structs.d.ts +4 -6
- package/sdk/src/_generated/_dependencies/source/0x1/string/structs.d.ts +4 -6
- package/sdk/src/_generated/_dependencies/source/0x1/type-name/structs.d.ts +6 -10
- package/sdk/src/_generated/_dependencies/source/0x2/bag/structs.d.ts +8 -15
- package/sdk/src/_generated/_dependencies/source/0x2/balance/structs.d.ts +6 -10
- package/sdk/src/_generated/_dependencies/source/0x2/coin/structs.d.ts +85 -139
- package/sdk/src/_generated/_dependencies/source/0x2/object/structs.d.ts +8 -14
- package/sdk/src/_generated/_dependencies/source/0x2/sui/structs.d.ts +3 -5
- package/sdk/src/_generated/_dependencies/source/0x2/table/structs.d.ts +8 -15
- package/sdk/src/_generated/_dependencies/source/0x2/url/structs.d.ts +6 -10
- package/sdk/src/_generated/_dependencies/source/0x2/vec-map/structs.d.ts +13 -18
- package/sdk/src/_generated/_dependencies/source/0x3/staking-pool/structs.d.ts +82 -156
- package/sdk/src/_generated/_framework/util.d.ts +2 -2
- package/sdk/src/_generated/_framework/vector.d.ts +12 -5
- package/sdk/src/_generated/liquid_staking/cell/structs.d.ts +6 -10
- package/sdk/src/_generated/liquid_staking/fees/structs.d.ts +26 -50
- package/sdk/src/_generated/liquid_staking/liquid-staking/structs.d.ts +225 -273
- package/sdk/src/_generated/liquid_staking/storage/structs.d.ts +136 -83
- package/sdk/src/_generated/liquid_staking/version/structs.d.ts +3 -5
- package/sdk/src/_generated/liquid_staking/weight/structs.d.ts +60 -112
|
@@ -27,13 +27,10 @@ export declare class Entry<K extends TypeArgument, V extends TypeArgument> imple
|
|
|
27
27
|
static get r(): typeof Entry.reified;
|
|
28
28
|
static phantom<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(K: K, V: V): PhantomReified<ToTypeStr<Entry<ToTypeArgument<K>, ToTypeArgument<V>>>>;
|
|
29
29
|
static get p(): typeof Entry.phantom;
|
|
30
|
-
static get bcs(): <K extends BcsType<any>, V extends BcsType<any>>(K: K, V: V) =>
|
|
31
|
-
key: K
|
|
32
|
-
value: V
|
|
33
|
-
},
|
|
34
|
-
key: K extends BcsType<any, infer U_1> ? U_1 : never;
|
|
35
|
-
value: V extends BcsType<any, infer U_1> ? U_1 : never;
|
|
36
|
-
}>;
|
|
30
|
+
static get bcs(): <K extends BcsType<any>, V extends BcsType<any>>(K: K, V: V) => import("@mysten/sui/bcs").BcsStruct<{
|
|
31
|
+
key: K;
|
|
32
|
+
value: V;
|
|
33
|
+
}, string>;
|
|
37
34
|
static fromFields<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(typeArgs: [K, V], fields: Record<string, any>): Entry<ToTypeArgument<K>, ToTypeArgument<V>>;
|
|
38
35
|
static fromFieldsWithTypes<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(typeArgs: [K, V], item: FieldsWithTypes): Entry<ToTypeArgument<K>, ToTypeArgument<V>>;
|
|
39
36
|
static fromBcs<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(typeArgs: [K, V], data: Uint8Array): Entry<ToTypeArgument<K>, ToTypeArgument<V>>;
|
|
@@ -73,19 +70,17 @@ export declare class VecMap<K extends TypeArgument, V extends TypeArgument> impl
|
|
|
73
70
|
static get r(): typeof VecMap.reified;
|
|
74
71
|
static phantom<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(K: K, V: V): PhantomReified<ToTypeStr<VecMap<ToTypeArgument<K>, ToTypeArgument<V>>>>;
|
|
75
72
|
static get p(): typeof VecMap.phantom;
|
|
76
|
-
static get bcs(): <K extends BcsType<any>, V extends BcsType<any>>(K: K, V: V) =>
|
|
77
|
-
contents: {
|
|
78
|
-
key: K extends BcsType<infer U, any> ? U : never;
|
|
79
|
-
value: V extends BcsType<infer U, any> ? U : never;
|
|
80
|
-
}[]
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
key: K extends BcsType<any, infer U_1> ? U_1 : never;
|
|
84
|
-
value: V extends BcsType<any, infer U_1> ? U_1 : never;
|
|
73
|
+
static get bcs(): <K extends BcsType<any>, V extends BcsType<any>>(K: K, V: V) => import("@mysten/sui/bcs").BcsStruct<{
|
|
74
|
+
contents: BcsType<{
|
|
75
|
+
key: K extends BcsType<infer U, any, string> ? U : never;
|
|
76
|
+
value: V extends BcsType<infer U, any, string> ? U : never;
|
|
77
|
+
}[], Iterable<{
|
|
78
|
+
key: K extends BcsType<any, infer U_1, string> ? U_1 : never;
|
|
79
|
+
value: V extends BcsType<any, infer U_1, string> ? U_1 : never;
|
|
85
80
|
}> & {
|
|
86
81
|
length: number;
|
|
87
|
-
}
|
|
88
|
-
}>;
|
|
82
|
+
}, string>;
|
|
83
|
+
}, string>;
|
|
89
84
|
static fromFields<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(typeArgs: [K, V], fields: Record<string, any>): VecMap<ToTypeArgument<K>, ToTypeArgument<V>>;
|
|
90
85
|
static fromFieldsWithTypes<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(typeArgs: [K, V], item: FieldsWithTypes): VecMap<ToTypeArgument<K>, ToTypeArgument<V>>;
|
|
91
86
|
static fromBcs<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(typeArgs: [K, V], data: Uint8Array): VecMap<ToTypeArgument<K>, ToTypeArgument<V>>;
|
|
@@ -33,27 +33,17 @@ export declare class FungibleStakedSui implements StructClass {
|
|
|
33
33
|
static get r(): reified.StructClassReified<FungibleStakedSui, FungibleStakedSuiFields>;
|
|
34
34
|
static phantom(): PhantomReified<ToTypeStr<FungibleStakedSui>>;
|
|
35
35
|
static get p(): reified.PhantomReified<"0x3::staking_pool::FungibleStakedSui">;
|
|
36
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
37
|
-
id: {
|
|
38
|
-
id: {
|
|
39
|
-
bytes: string
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
pool_id: {
|
|
43
|
-
bytes: string
|
|
44
|
-
}
|
|
45
|
-
value: string
|
|
46
|
-
},
|
|
47
|
-
id: {
|
|
48
|
-
id: {
|
|
49
|
-
bytes: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
pool_id: {
|
|
53
|
-
bytes: string;
|
|
54
|
-
};
|
|
55
|
-
value: string | number | bigint;
|
|
56
|
-
}>;
|
|
36
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
37
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
38
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
39
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
40
|
+
}, string>;
|
|
41
|
+
}, string>;
|
|
42
|
+
pool_id: import("@mysten/sui/bcs").BcsStruct<{
|
|
43
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
44
|
+
}, string>;
|
|
45
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
46
|
+
}, string>;
|
|
57
47
|
static fromFields(fields: Record<string, any>): FungibleStakedSui;
|
|
58
48
|
static fromFieldsWithTypes(item: FieldsWithTypes): FungibleStakedSui;
|
|
59
49
|
static fromBcs(data: Uint8Array): FungibleStakedSui;
|
|
@@ -99,27 +89,17 @@ export declare class FungibleStakedSuiData implements StructClass {
|
|
|
99
89
|
static get r(): reified.StructClassReified<FungibleStakedSuiData, FungibleStakedSuiDataFields>;
|
|
100
90
|
static phantom(): PhantomReified<ToTypeStr<FungibleStakedSuiData>>;
|
|
101
91
|
static get p(): reified.PhantomReified<"0x3::staking_pool::FungibleStakedSuiData">;
|
|
102
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
103
|
-
id: {
|
|
104
|
-
id: {
|
|
105
|
-
bytes: string
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
total_supply: string
|
|
109
|
-
principal: {
|
|
110
|
-
value: string
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
id: {
|
|
114
|
-
id: {
|
|
115
|
-
bytes: string;
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
total_supply: string | number | bigint;
|
|
119
|
-
principal: {
|
|
120
|
-
value: string | number | bigint;
|
|
121
|
-
};
|
|
122
|
-
}>;
|
|
92
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
93
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
94
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
95
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
96
|
+
}, string>;
|
|
97
|
+
}, string>;
|
|
98
|
+
total_supply: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
99
|
+
principal: import("@mysten/sui/bcs").BcsStruct<{
|
|
100
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
101
|
+
}, string>;
|
|
102
|
+
}, string>;
|
|
123
103
|
static fromFields(fields: Record<string, any>): FungibleStakedSuiData;
|
|
124
104
|
static fromFieldsWithTypes(item: FieldsWithTypes): FungibleStakedSuiData;
|
|
125
105
|
static fromBcs(data: Uint8Array): FungibleStakedSuiData;
|
|
@@ -165,11 +145,9 @@ export declare class FungibleStakedSuiDataKey implements StructClass {
|
|
|
165
145
|
static get r(): reified.StructClassReified<FungibleStakedSuiDataKey, FungibleStakedSuiDataKeyFields>;
|
|
166
146
|
static phantom(): PhantomReified<ToTypeStr<FungibleStakedSuiDataKey>>;
|
|
167
147
|
static get p(): reified.PhantomReified<"0x3::staking_pool::FungibleStakedSuiDataKey">;
|
|
168
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
169
|
-
dummy_field: boolean
|
|
170
|
-
},
|
|
171
|
-
dummy_field: boolean;
|
|
172
|
-
}>;
|
|
148
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
149
|
+
dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
150
|
+
}, string>;
|
|
173
151
|
static fromFields(fields: Record<string, any>): FungibleStakedSuiDataKey;
|
|
174
152
|
static fromFieldsWithTypes(item: FieldsWithTypes): FungibleStakedSuiDataKey;
|
|
175
153
|
static fromBcs(data: Uint8Array): FungibleStakedSuiDataKey;
|
|
@@ -209,13 +187,10 @@ export declare class PoolTokenExchangeRate implements StructClass {
|
|
|
209
187
|
static get r(): reified.StructClassReified<PoolTokenExchangeRate, PoolTokenExchangeRateFields>;
|
|
210
188
|
static phantom(): PhantomReified<ToTypeStr<PoolTokenExchangeRate>>;
|
|
211
189
|
static get p(): reified.PhantomReified<"0x3::staking_pool::PoolTokenExchangeRate">;
|
|
212
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
213
|
-
sui_amount: string
|
|
214
|
-
pool_token_amount: string
|
|
215
|
-
},
|
|
216
|
-
sui_amount: string | number | bigint;
|
|
217
|
-
pool_token_amount: string | number | bigint;
|
|
218
|
-
}>;
|
|
190
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
191
|
+
sui_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
192
|
+
pool_token_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
193
|
+
}, string>;
|
|
219
194
|
static fromFields(fields: Record<string, any>): PoolTokenExchangeRate;
|
|
220
195
|
static fromFieldsWithTypes(item: FieldsWithTypes): PoolTokenExchangeRate;
|
|
221
196
|
static fromBcs(data: Uint8Array): PoolTokenExchangeRate;
|
|
@@ -261,33 +236,20 @@ export declare class StakedSui implements StructClass {
|
|
|
261
236
|
static get r(): reified.StructClassReified<StakedSui, StakedSuiFields>;
|
|
262
237
|
static phantom(): PhantomReified<ToTypeStr<StakedSui>>;
|
|
263
238
|
static get p(): reified.PhantomReified<"0x3::staking_pool::StakedSui">;
|
|
264
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
265
|
-
id: {
|
|
266
|
-
id: {
|
|
267
|
-
bytes: string
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
pool_id: {
|
|
271
|
-
bytes: string
|
|
272
|
-
}
|
|
273
|
-
stake_activation_epoch: string
|
|
274
|
-
principal: {
|
|
275
|
-
value: string
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
id: {
|
|
279
|
-
id: {
|
|
280
|
-
bytes: string;
|
|
281
|
-
};
|
|
282
|
-
};
|
|
283
|
-
pool_id: {
|
|
284
|
-
bytes: string;
|
|
285
|
-
};
|
|
286
|
-
stake_activation_epoch: string | number | bigint;
|
|
287
|
-
principal: {
|
|
288
|
-
value: string | number | bigint;
|
|
289
|
-
};
|
|
290
|
-
}>;
|
|
239
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
240
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
241
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
242
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
243
|
+
}, string>;
|
|
244
|
+
}, string>;
|
|
245
|
+
pool_id: import("@mysten/sui/bcs").BcsStruct<{
|
|
246
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
247
|
+
}, string>;
|
|
248
|
+
stake_activation_epoch: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
249
|
+
principal: import("@mysten/sui/bcs").BcsStruct<{
|
|
250
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
251
|
+
}, string>;
|
|
252
|
+
}, string>;
|
|
291
253
|
static fromFields(fields: Record<string, any>): StakedSui;
|
|
292
254
|
static fromFieldsWithTypes(item: FieldsWithTypes): StakedSui;
|
|
293
255
|
static fromBcs(data: Uint8Array): StakedSui;
|
|
@@ -355,83 +317,47 @@ export declare class StakingPool implements StructClass {
|
|
|
355
317
|
static get r(): reified.StructClassReified<StakingPool, StakingPoolFields>;
|
|
356
318
|
static phantom(): PhantomReified<ToTypeStr<StakingPool>>;
|
|
357
319
|
static get p(): reified.PhantomReified<"0x3::staking_pool::StakingPool">;
|
|
358
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
359
|
-
id: {
|
|
360
|
-
id: {
|
|
361
|
-
bytes: string
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
activation_epoch: {
|
|
365
|
-
vec:
|
|
366
|
-
};
|
|
367
|
-
deactivation_epoch: {
|
|
368
|
-
vec: any[];
|
|
369
|
-
};
|
|
370
|
-
sui_balance: string;
|
|
371
|
-
rewards_pool: {
|
|
372
|
-
value: string;
|
|
373
|
-
};
|
|
374
|
-
pool_token_balance: string;
|
|
375
|
-
exchange_rates: {
|
|
376
|
-
id: {
|
|
377
|
-
id: {
|
|
378
|
-
bytes: string;
|
|
379
|
-
};
|
|
380
|
-
};
|
|
381
|
-
size: string;
|
|
382
|
-
};
|
|
383
|
-
pending_stake: string;
|
|
384
|
-
pending_total_sui_withdraw: string;
|
|
385
|
-
pending_pool_token_withdraw: string;
|
|
386
|
-
extra_fields: {
|
|
387
|
-
id: {
|
|
388
|
-
id: {
|
|
389
|
-
bytes: string;
|
|
390
|
-
};
|
|
391
|
-
};
|
|
392
|
-
size: string;
|
|
393
|
-
};
|
|
394
|
-
}, {
|
|
395
|
-
id: {
|
|
396
|
-
id: {
|
|
397
|
-
bytes: string;
|
|
398
|
-
};
|
|
399
|
-
};
|
|
400
|
-
activation_epoch: {
|
|
401
|
-
vec: Iterable<any> & {
|
|
320
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
321
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
322
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
323
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
324
|
+
}, string>;
|
|
325
|
+
}, string>;
|
|
326
|
+
activation_epoch: import("@mysten/sui/bcs").BcsStruct<{
|
|
327
|
+
vec: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
402
328
|
length: number;
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
deactivation_epoch: {
|
|
406
|
-
vec: Iterable<
|
|
329
|
+
}, string>;
|
|
330
|
+
}, string>;
|
|
331
|
+
deactivation_epoch: import("@mysten/sui/bcs").BcsStruct<{
|
|
332
|
+
vec: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
407
333
|
length: number;
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
sui_balance: string | number | bigint
|
|
411
|
-
rewards_pool: {
|
|
412
|
-
value: string | number | bigint
|
|
413
|
-
}
|
|
414
|
-
pool_token_balance: string | number | bigint
|
|
415
|
-
exchange_rates: {
|
|
416
|
-
id: {
|
|
417
|
-
id: {
|
|
418
|
-
bytes: string
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
size: string | number | bigint
|
|
422
|
-
}
|
|
423
|
-
pending_stake: string | number | bigint
|
|
424
|
-
pending_total_sui_withdraw: string | number | bigint
|
|
425
|
-
pending_pool_token_withdraw: string | number | bigint
|
|
426
|
-
extra_fields: {
|
|
427
|
-
id: {
|
|
428
|
-
id: {
|
|
429
|
-
bytes: string
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
size: string | number | bigint
|
|
433
|
-
}
|
|
434
|
-
}>;
|
|
334
|
+
}, string>;
|
|
335
|
+
}, string>;
|
|
336
|
+
sui_balance: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
337
|
+
rewards_pool: import("@mysten/sui/bcs").BcsStruct<{
|
|
338
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
339
|
+
}, string>;
|
|
340
|
+
pool_token_balance: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
341
|
+
exchange_rates: import("@mysten/sui/bcs").BcsStruct<{
|
|
342
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
343
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
344
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
345
|
+
}, string>;
|
|
346
|
+
}, string>;
|
|
347
|
+
size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
348
|
+
}, string>;
|
|
349
|
+
pending_stake: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
350
|
+
pending_total_sui_withdraw: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
351
|
+
pending_pool_token_withdraw: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
352
|
+
extra_fields: import("@mysten/sui/bcs").BcsStruct<{
|
|
353
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
354
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
355
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
356
|
+
}, string>;
|
|
357
|
+
}, string>;
|
|
358
|
+
size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
359
|
+
}, string>;
|
|
360
|
+
}, string>;
|
|
435
361
|
static fromFields(fields: Record<string, any>): StakingPool;
|
|
436
362
|
static fromFieldsWithTypes(item: FieldsWithTypes): StakingPool;
|
|
437
363
|
static fromBcs(data: Uint8Array): StakingPool;
|
|
@@ -21,10 +21,10 @@ export declare function obj(tx: Transaction, arg: TransactionObjectInput): {
|
|
|
21
21
|
Result: number;
|
|
22
22
|
} | {
|
|
23
23
|
NestedResult: [number, number];
|
|
24
|
-
} | ((tx: Transaction) => Exclude<import("valibot").InferInput<typeof import("@mysten/sui/transactions").
|
|
24
|
+
} | ((tx: Transaction) => Exclude<import("valibot").InferInput<typeof import("@mysten/sui/dist/cjs/transactions/data/internal").ArgumentSchema>, {
|
|
25
25
|
Input: unknown;
|
|
26
26
|
type?: "pure";
|
|
27
|
-
}>)
|
|
27
|
+
}>) | import("@mysten/sui/dist/cjs/transactions/Transaction").AsyncTransactionThunk<import("@mysten/sui/dist/cjs/transactions/Transaction").TransactionResultArgument>;
|
|
28
28
|
export declare function pure(tx: Transaction, arg: PureArg, type: string): TransactionArgument;
|
|
29
29
|
export declare function option(tx: Transaction, type: string, arg: GenericArg | null): TransactionArgument;
|
|
30
30
|
export declare function generic(tx: Transaction, type: string, arg: GenericArg): TransactionArgument;
|
|
@@ -15,11 +15,18 @@ export declare class Vector<T extends TypeArgument> implements VectorClass {
|
|
|
15
15
|
constructor(typeArgs: [ToTypeStr<T>], elements: VectorElements<T>);
|
|
16
16
|
static reified<T extends Reified<TypeArgument, any>>(T: T): VectorReified<ToTypeArgument<T>>;
|
|
17
17
|
static get r(): typeof Vector.reified;
|
|
18
|
-
static get bcs():
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
static get bcs(): {
|
|
19
|
+
<T extends import("@mysten/sui/bcs").BcsType<any>, Name extends string = `vector<${T["name"]}>`>(type: T, options?: import("@mysten/sui/bcs").BcsTypeOptions<import("@mysten/bcs").InferBcsType<T>[], Iterable<import("@mysten/bcs").InferBcsInput<T>> & {
|
|
20
|
+
length: number;
|
|
21
|
+
}, Name>): import("@mysten/sui/bcs").BcsType<import("@mysten/bcs").InferBcsType<T>[], Iterable<import("@mysten/bcs").InferBcsInput<T>> & {
|
|
22
|
+
length: number;
|
|
23
|
+
}, Name>;
|
|
24
|
+
<T, Input, Name extends string = string>(type: import("@mysten/sui/bcs").BcsType<T, Input, Name>, options?: import("@mysten/sui/bcs").BcsTypeOptions<T[], Iterable<Input> & {
|
|
25
|
+
length: number;
|
|
26
|
+
}, `vector<${Name}>`>): import("@mysten/sui/bcs").BcsType<T[], Iterable<Input> & {
|
|
27
|
+
length: number;
|
|
28
|
+
}, `vector<${Name}>`>;
|
|
29
|
+
};
|
|
23
30
|
static fromFields<T extends Reified<TypeArgument, any>>(typeArg: T, elements: any[]): Vector<ToTypeArgument<T>>;
|
|
24
31
|
static fromFieldsWithTypes<T extends Reified<TypeArgument, any>>(typeArg: T, item: FieldsWithTypes): Vector<ToTypeArgument<T>>;
|
|
25
32
|
static fromBcs<T extends Reified<TypeArgument, any>>(typeArg: T, data: Uint8Array): Vector<ToTypeArgument<T>>;
|
|
@@ -24,17 +24,13 @@ export declare class Cell<Element extends TypeArgument> implements StructClass {
|
|
|
24
24
|
static get r(): typeof Cell.reified;
|
|
25
25
|
static phantom<Element extends Reified<TypeArgument, any>>(Element: Element): PhantomReified<ToTypeStr<Cell<ToTypeArgument<Element>>>>;
|
|
26
26
|
static get p(): typeof Cell.phantom;
|
|
27
|
-
static get bcs(): <Element extends BcsType<any>>(Element: Element) =>
|
|
28
|
-
element: {
|
|
29
|
-
vec:
|
|
30
|
-
};
|
|
31
|
-
}, {
|
|
32
|
-
element: {
|
|
33
|
-
vec: Iterable<any> & {
|
|
27
|
+
static get bcs(): <Element extends BcsType<any>>(Element: Element) => import("@mysten/sui/bcs").BcsStruct<{
|
|
28
|
+
element: import("@mysten/sui/bcs").BcsStruct<{
|
|
29
|
+
vec: BcsType<import("@mysten/bcs").InferBcsType<Element>[], Iterable<import("@mysten/bcs").InferBcsInput<Element>> & {
|
|
34
30
|
length: number;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}>;
|
|
31
|
+
}, string>;
|
|
32
|
+
}, string>;
|
|
33
|
+
}, string>;
|
|
38
34
|
static fromFields<Element extends Reified<TypeArgument, any>>(typeArg: Element, fields: Record<string, any>): Cell<ToTypeArgument<Element>>;
|
|
39
35
|
static fromFieldsWithTypes<Element extends Reified<TypeArgument, any>>(typeArg: Element, item: FieldsWithTypes): Cell<ToTypeArgument<Element>>;
|
|
40
36
|
static fromBcs<Element extends Reified<TypeArgument, any>>(typeArg: Element, data: Uint8Array): Cell<ToTypeArgument<Element>>;
|
|
@@ -35,37 +35,22 @@ export declare class FeeConfig implements StructClass {
|
|
|
35
35
|
static get r(): import("../../_framework/reified").StructClassReified<FeeConfig, FeeConfigFields>;
|
|
36
36
|
static phantom(): PhantomReified<ToTypeStr<FeeConfig>>;
|
|
37
37
|
static get p(): PhantomReified<"0xb0575765166030556a6eafd3b1b970eba8183ff748860680245b9edd41c716e7::fees::FeeConfig">;
|
|
38
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
39
|
-
sui_mint_fee_bps: string
|
|
40
|
-
staked_sui_mint_fee_bps: string
|
|
41
|
-
redeem_fee_bps: string
|
|
42
|
-
staked_sui_redeem_fee_bps: string
|
|
43
|
-
spread_fee_bps: string
|
|
44
|
-
custom_redeem_fee_bps: string
|
|
45
|
-
extra_fields: {
|
|
46
|
-
id: {
|
|
47
|
-
id: {
|
|
48
|
-
bytes: string
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
size: string
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
sui_mint_fee_bps: string | number | bigint;
|
|
55
|
-
staked_sui_mint_fee_bps: string | number | bigint;
|
|
56
|
-
redeem_fee_bps: string | number | bigint;
|
|
57
|
-
staked_sui_redeem_fee_bps: string | number | bigint;
|
|
58
|
-
spread_fee_bps: string | number | bigint;
|
|
59
|
-
custom_redeem_fee_bps: string | number | bigint;
|
|
60
|
-
extra_fields: {
|
|
61
|
-
id: {
|
|
62
|
-
id: {
|
|
63
|
-
bytes: string;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
size: string | number | bigint;
|
|
67
|
-
};
|
|
68
|
-
}>;
|
|
38
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
39
|
+
sui_mint_fee_bps: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
40
|
+
staked_sui_mint_fee_bps: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
41
|
+
redeem_fee_bps: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
42
|
+
staked_sui_redeem_fee_bps: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
43
|
+
spread_fee_bps: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
44
|
+
custom_redeem_fee_bps: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
45
|
+
extra_fields: import("@mysten/sui/bcs").BcsStruct<{
|
|
46
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
47
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
48
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
49
|
+
}, string>;
|
|
50
|
+
}, string>;
|
|
51
|
+
size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
52
|
+
}, string>;
|
|
53
|
+
}, string>;
|
|
69
54
|
static fromFields(fields: Record<string, any>): FeeConfig;
|
|
70
55
|
static fromFieldsWithTypes(item: FieldsWithTypes): FeeConfig;
|
|
71
56
|
static fromBcs(data: Uint8Array): FeeConfig;
|
|
@@ -121,25 +106,16 @@ export declare class FeeConfigBuilder implements StructClass {
|
|
|
121
106
|
static get r(): import("../../_framework/reified").StructClassReified<FeeConfigBuilder, FeeConfigBuilderFields>;
|
|
122
107
|
static phantom(): PhantomReified<ToTypeStr<FeeConfigBuilder>>;
|
|
123
108
|
static get p(): PhantomReified<"0xb0575765166030556a6eafd3b1b970eba8183ff748860680245b9edd41c716e7::fees::FeeConfigBuilder">;
|
|
124
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
125
|
-
fields: {
|
|
126
|
-
id: {
|
|
127
|
-
id: {
|
|
128
|
-
bytes: string
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
size: string
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
fields: {
|
|
135
|
-
id: {
|
|
136
|
-
id: {
|
|
137
|
-
bytes: string;
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
size: string | number | bigint;
|
|
141
|
-
};
|
|
142
|
-
}>;
|
|
109
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
110
|
+
fields: import("@mysten/sui/bcs").BcsStruct<{
|
|
111
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
112
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
113
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
114
|
+
}, string>;
|
|
115
|
+
}, string>;
|
|
116
|
+
size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
117
|
+
}, string>;
|
|
118
|
+
}, string>;
|
|
143
119
|
static fromFields(fields: Record<string, any>): FeeConfigBuilder;
|
|
144
120
|
static fromFieldsWithTypes(item: FieldsWithTypes): FeeConfigBuilder;
|
|
145
121
|
static fromBcs(data: Uint8Array): FeeConfigBuilder;
|