@suilend/springsui-cli 1.0.14 → 2.0.1

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 (57) hide show
  1. package/cli/src/bytecode.js +23 -25
  2. package/cli/src/index.js +80 -134
  3. package/package.json +1 -1
  4. package/sdk/src/_generated/_dependencies/source/0x1/ascii/structs.d.ts +7 -7
  5. package/sdk/src/_generated/_dependencies/source/0x1/ascii/structs.js +4 -4
  6. package/sdk/src/_generated/_dependencies/source/0x1/option/structs.d.ts +8 -3
  7. package/sdk/src/_generated/_dependencies/source/0x1/option/structs.js +3 -3
  8. package/sdk/src/_generated/_dependencies/source/0x1/string/structs.d.ts +4 -4
  9. package/sdk/src/_generated/_dependencies/source/0x1/string/structs.js +3 -3
  10. package/sdk/src/_generated/_dependencies/source/0x1/type-name/structs.d.ts +5 -5
  11. package/sdk/src/_generated/_dependencies/source/0x1/type-name/structs.js +3 -3
  12. package/sdk/src/_generated/_dependencies/source/0x2/bag/structs.d.ts +7 -7
  13. package/sdk/src/_generated/_dependencies/source/0x2/bag/structs.js +3 -3
  14. package/sdk/src/_generated/_dependencies/source/0x2/balance/structs.d.ts +7 -7
  15. package/sdk/src/_generated/_dependencies/source/0x2/balance/structs.js +4 -4
  16. package/sdk/src/_generated/_dependencies/source/0x2/coin/structs.d.ts +65 -51
  17. package/sdk/src/_generated/_dependencies/source/0x2/coin/structs.js +9 -9
  18. package/sdk/src/_generated/_dependencies/source/0x2/object/structs.d.ts +8 -8
  19. package/sdk/src/_generated/_dependencies/source/0x2/object/structs.js +6 -6
  20. package/sdk/src/_generated/_dependencies/source/0x2/sui/structs.d.ts +4 -4
  21. package/sdk/src/_generated/_dependencies/source/0x2/sui/structs.js +3 -3
  22. package/sdk/src/_generated/_dependencies/source/0x2/table/structs.d.ts +7 -7
  23. package/sdk/src/_generated/_dependencies/source/0x2/table/structs.js +3 -3
  24. package/sdk/src/_generated/_dependencies/source/0x2/url/structs.d.ts +5 -5
  25. package/sdk/src/_generated/_dependencies/source/0x2/url/structs.js +3 -3
  26. package/sdk/src/_generated/_dependencies/source/0x2/vec-map/structs.d.ts +6 -6
  27. package/sdk/src/_generated/_dependencies/source/0x2/vec-map/structs.js +4 -4
  28. package/sdk/src/_generated/_dependencies/source/0x3/staking-pool/structs.d.ts +66 -58
  29. package/sdk/src/_generated/_dependencies/source/0x3/staking-pool/structs.js +8 -8
  30. package/sdk/src/_generated/_framework/reified.d.ts +3 -3
  31. package/sdk/src/_generated/_framework/reified.js +4 -4
  32. package/sdk/src/_generated/_framework/util.d.ts +4 -4
  33. package/sdk/src/_generated/_framework/util.js +1 -1
  34. package/sdk/src/_generated/_framework/vector.d.ts +12 -1
  35. package/sdk/src/_generated/_framework/vector.js +1 -1
  36. package/sdk/src/_generated/liquid_staking/cell/structs.d.ts +10 -3
  37. package/sdk/src/_generated/liquid_staking/cell/structs.js +3 -3
  38. package/sdk/src/_generated/liquid_staking/fees/functions.d.ts +19 -19
  39. package/sdk/src/_generated/liquid_staking/fees/structs.d.ts +21 -21
  40. package/sdk/src/_generated/liquid_staking/fees/structs.js +4 -4
  41. package/sdk/src/_generated/liquid_staking/liquid-staking/functions.d.ts +20 -20
  42. package/sdk/src/_generated/liquid_staking/liquid-staking/structs.d.ts +194 -100
  43. package/sdk/src/_generated/liquid_staking/liquid-staking/structs.js +12 -12
  44. package/sdk/src/_generated/liquid_staking/storage/structs.d.ts +145 -33
  45. package/sdk/src/_generated/liquid_staking/storage/structs.js +6 -6
  46. package/sdk/src/_generated/liquid_staking/version/structs.d.ts +4 -4
  47. package/sdk/src/_generated/liquid_staking/version/structs.js +3 -3
  48. package/sdk/src/_generated/liquid_staking/weight/functions.d.ts +11 -11
  49. package/sdk/src/_generated/liquid_staking/weight/structs.d.ts +41 -41
  50. package/sdk/src/_generated/liquid_staking/weight/structs.js +9 -9
  51. package/sdk/src/client.d.ts +35 -25
  52. package/sdk/src/client.js +52 -59
  53. package/sdk/src/index.d.ts +0 -1
  54. package/sdk/src/index.js +0 -1
  55. package/sdk/src/lib/transactions.d.ts +4 -1
  56. package/sdk/src/grpcAdapter.d.ts +0 -50
  57. package/sdk/src/grpcAdapter.js +0 -75
@@ -12,7 +12,7 @@ import { FeeConfig } from "../fees/structs";
12
12
  import { PKG_V1 } from "../index";
13
13
  import { Storage } from "../storage/structs";
14
14
  import { Version } from "../version/structs";
15
- import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui-v1/client";
15
+ import { SuiJsonRpcClient, SuiObjectData, SuiParsedData } from "@mysten/sui/jsonRpc";
16
16
  export declare function isAdminCap(type: string): boolean;
17
17
  export interface AdminCapFields<P extends PhantomTypeArgument> {
18
18
  id: ToField<UID>;
@@ -33,10 +33,10 @@ export declare class AdminCap<P extends PhantomTypeArgument> implements StructCl
33
33
  static get r(): typeof AdminCap.reified;
34
34
  static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<AdminCap<ToPhantomTypeArgument<P>>>>;
35
35
  static get p(): typeof AdminCap.phantom;
36
- static get bcs(): import("@mysten/sui-v1/bcs").BcsStruct<{
37
- id: import("@mysten/sui-v1/bcs").BcsStruct<{
38
- id: import("@mysten/sui-v1/bcs").BcsStruct<{
39
- bytes: import("@mysten/sui-v1/bcs").BcsType<string, string, string>;
36
+ static get bcs(): import("@mysten/bcs").BcsStruct<{
37
+ id: import("@mysten/bcs").BcsStruct<{
38
+ id: import("@mysten/bcs").BcsStruct<{
39
+ bytes: import("@mysten/bcs").BcsType<string, string, string>;
40
40
  }, string>;
41
41
  }, string>;
42
42
  }, string>;
@@ -55,7 +55,7 @@ export declare class AdminCap<P extends PhantomTypeArgument> implements StructCl
55
55
  static fromJSON<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, json: Record<string, any>): AdminCap<ToPhantomTypeArgument<P>>;
56
56
  static fromSuiParsedData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, content: SuiParsedData): AdminCap<ToPhantomTypeArgument<P>>;
57
57
  static fromSuiObjectData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: SuiObjectData): AdminCap<ToPhantomTypeArgument<P>>;
58
- static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: P, id: string): Promise<AdminCap<ToPhantomTypeArgument<P>>>;
58
+ static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArg: P, id: string): Promise<AdminCap<ToPhantomTypeArgument<P>>>;
59
59
  }
60
60
  export declare function isCollectFeesEvent(type: string): boolean;
61
61
  export interface CollectFeesEventFields {
@@ -79,15 +79,15 @@ export declare class CollectFeesEvent implements StructClass {
79
79
  static get r(): reified.StructClassReified<CollectFeesEvent, CollectFeesEventFields>;
80
80
  static phantom(): PhantomReified<ToTypeStr<CollectFeesEvent>>;
81
81
  static get p(): reified.PhantomReified<"0xb0575765166030556a6eafd3b1b970eba8183ff748860680245b9edd41c716e7::liquid_staking::CollectFeesEvent">;
82
- static get bcs(): import("@mysten/sui-v1/bcs").BcsStruct<{
83
- typename: import("@mysten/sui-v1/bcs").BcsStruct<{
84
- name: import("@mysten/sui-v1/bcs").BcsStruct<{
85
- bytes: import("@mysten/sui-v1/bcs").BcsType<number[], Iterable<number> & {
82
+ static get bcs(): import("@mysten/bcs").BcsStruct<{
83
+ typename: import("@mysten/bcs").BcsStruct<{
84
+ name: import("@mysten/bcs").BcsStruct<{
85
+ bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
86
86
  length: number;
87
87
  }, string>;
88
88
  }, string>;
89
89
  }, string>;
90
- amount: import("@mysten/sui-v1/bcs").BcsType<string, string | number | bigint, "u64">;
90
+ amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
91
91
  }, string>;
92
92
  static fromFields(fields: Record<string, any>): CollectFeesEvent;
93
93
  static fromFieldsWithTypes(item: FieldsWithTypes): CollectFeesEvent;
@@ -110,7 +110,7 @@ export declare class CollectFeesEvent implements StructClass {
110
110
  static fromJSON(json: Record<string, any>): CollectFeesEvent;
111
111
  static fromSuiParsedData(content: SuiParsedData): CollectFeesEvent;
112
112
  static fromSuiObjectData(data: SuiObjectData): CollectFeesEvent;
113
- static fetch(client: SuiClient, id: string): Promise<CollectFeesEvent>;
113
+ static fetch(client: SuiJsonRpcClient, id: string): Promise<CollectFeesEvent>;
114
114
  }
115
115
  export declare function isCreateEvent(type: string): boolean;
116
116
  export interface CreateEventFields {
@@ -134,16 +134,16 @@ export declare class CreateEvent implements StructClass {
134
134
  static get r(): reified.StructClassReified<CreateEvent, CreateEventFields>;
135
135
  static phantom(): PhantomReified<ToTypeStr<CreateEvent>>;
136
136
  static get p(): reified.PhantomReified<"0xb0575765166030556a6eafd3b1b970eba8183ff748860680245b9edd41c716e7::liquid_staking::CreateEvent">;
137
- static get bcs(): import("@mysten/sui-v1/bcs").BcsStruct<{
138
- typename: import("@mysten/sui-v1/bcs").BcsStruct<{
139
- name: import("@mysten/sui-v1/bcs").BcsStruct<{
140
- bytes: import("@mysten/sui-v1/bcs").BcsType<number[], Iterable<number> & {
137
+ static get bcs(): import("@mysten/bcs").BcsStruct<{
138
+ typename: import("@mysten/bcs").BcsStruct<{
139
+ name: import("@mysten/bcs").BcsStruct<{
140
+ bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
141
141
  length: number;
142
142
  }, string>;
143
143
  }, string>;
144
144
  }, string>;
145
- liquid_staking_info_id: import("@mysten/sui-v1/bcs").BcsStruct<{
146
- bytes: import("@mysten/sui-v1/bcs").BcsType<string, string, string>;
145
+ liquid_staking_info_id: import("@mysten/bcs").BcsStruct<{
146
+ bytes: import("@mysten/bcs").BcsType<string, string, string>;
147
147
  }, string>;
148
148
  }, string>;
149
149
  static fromFields(fields: Record<string, any>): CreateEvent;
@@ -167,7 +167,7 @@ export declare class CreateEvent implements StructClass {
167
167
  static fromJSON(json: Record<string, any>): CreateEvent;
168
168
  static fromSuiParsedData(content: SuiParsedData): CreateEvent;
169
169
  static fromSuiObjectData(data: SuiObjectData): CreateEvent;
170
- static fetch(client: SuiClient, id: string): Promise<CreateEvent>;
170
+ static fetch(client: SuiJsonRpcClient, id: string): Promise<CreateEvent>;
171
171
  }
172
172
  export declare function isDecreaseValidatorStakeEvent(type: string): boolean;
173
173
  export interface DecreaseValidatorStakeEventFields {
@@ -193,18 +193,18 @@ export declare class DecreaseValidatorStakeEvent implements StructClass {
193
193
  static get r(): reified.StructClassReified<DecreaseValidatorStakeEvent, DecreaseValidatorStakeEventFields>;
194
194
  static phantom(): PhantomReified<ToTypeStr<DecreaseValidatorStakeEvent>>;
195
195
  static get p(): reified.PhantomReified<"0xb0575765166030556a6eafd3b1b970eba8183ff748860680245b9edd41c716e7::liquid_staking::DecreaseValidatorStakeEvent">;
196
- static get bcs(): import("@mysten/sui-v1/bcs").BcsStruct<{
197
- typename: import("@mysten/sui-v1/bcs").BcsStruct<{
198
- name: import("@mysten/sui-v1/bcs").BcsStruct<{
199
- bytes: import("@mysten/sui-v1/bcs").BcsType<number[], Iterable<number> & {
196
+ static get bcs(): import("@mysten/bcs").BcsStruct<{
197
+ typename: import("@mysten/bcs").BcsStruct<{
198
+ name: import("@mysten/bcs").BcsStruct<{
199
+ bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
200
200
  length: number;
201
201
  }, string>;
202
202
  }, string>;
203
203
  }, string>;
204
- staking_pool_id: import("@mysten/sui-v1/bcs").BcsStruct<{
205
- bytes: import("@mysten/sui-v1/bcs").BcsType<string, string, string>;
204
+ staking_pool_id: import("@mysten/bcs").BcsStruct<{
205
+ bytes: import("@mysten/bcs").BcsType<string, string, string>;
206
206
  }, string>;
207
- amount: import("@mysten/sui-v1/bcs").BcsType<string, string | number | bigint, "u64">;
207
+ amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
208
208
  }, string>;
209
209
  static fromFields(fields: Record<string, any>): DecreaseValidatorStakeEvent;
210
210
  static fromFieldsWithTypes(item: FieldsWithTypes): DecreaseValidatorStakeEvent;
@@ -229,7 +229,7 @@ export declare class DecreaseValidatorStakeEvent implements StructClass {
229
229
  static fromJSON(json: Record<string, any>): DecreaseValidatorStakeEvent;
230
230
  static fromSuiParsedData(content: SuiParsedData): DecreaseValidatorStakeEvent;
231
231
  static fromSuiObjectData(data: SuiObjectData): DecreaseValidatorStakeEvent;
232
- static fetch(client: SuiClient, id: string): Promise<DecreaseValidatorStakeEvent>;
232
+ static fetch(client: SuiJsonRpcClient, id: string): Promise<DecreaseValidatorStakeEvent>;
233
233
  }
234
234
  export declare function isEpochChangedEvent(type: string): boolean;
235
235
  export interface EpochChangedEventFields {
@@ -259,18 +259,18 @@ export declare class EpochChangedEvent implements StructClass {
259
259
  static get r(): reified.StructClassReified<EpochChangedEvent, EpochChangedEventFields>;
260
260
  static phantom(): PhantomReified<ToTypeStr<EpochChangedEvent>>;
261
261
  static get p(): reified.PhantomReified<"0xb0575765166030556a6eafd3b1b970eba8183ff748860680245b9edd41c716e7::liquid_staking::EpochChangedEvent">;
262
- static get bcs(): import("@mysten/sui-v1/bcs").BcsStruct<{
263
- typename: import("@mysten/sui-v1/bcs").BcsStruct<{
264
- name: import("@mysten/sui-v1/bcs").BcsStruct<{
265
- bytes: import("@mysten/sui-v1/bcs").BcsType<number[], Iterable<number> & {
262
+ static get bcs(): import("@mysten/bcs").BcsStruct<{
263
+ typename: import("@mysten/bcs").BcsStruct<{
264
+ name: import("@mysten/bcs").BcsStruct<{
265
+ bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
266
266
  length: number;
267
267
  }, string>;
268
268
  }, string>;
269
269
  }, string>;
270
- old_sui_supply: import("@mysten/sui-v1/bcs").BcsType<string, string | number | bigint, "u64">;
271
- new_sui_supply: import("@mysten/sui-v1/bcs").BcsType<string, string | number | bigint, "u64">;
272
- lst_supply: import("@mysten/sui-v1/bcs").BcsType<string, string | number | bigint, "u64">;
273
- spread_fee: import("@mysten/sui-v1/bcs").BcsType<string, string | number | bigint, "u64">;
270
+ old_sui_supply: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
271
+ new_sui_supply: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
272
+ lst_supply: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
273
+ spread_fee: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
274
274
  }, string>;
275
275
  static fromFields(fields: Record<string, any>): EpochChangedEvent;
276
276
  static fromFieldsWithTypes(item: FieldsWithTypes): EpochChangedEvent;
@@ -299,7 +299,7 @@ export declare class EpochChangedEvent implements StructClass {
299
299
  static fromJSON(json: Record<string, any>): EpochChangedEvent;
300
300
  static fromSuiParsedData(content: SuiParsedData): EpochChangedEvent;
301
301
  static fromSuiObjectData(data: SuiObjectData): EpochChangedEvent;
302
- static fetch(client: SuiClient, id: string): Promise<EpochChangedEvent>;
302
+ static fetch(client: SuiJsonRpcClient, id: string): Promise<EpochChangedEvent>;
303
303
  }
304
304
  export declare function isIncreaseValidatorStakeEvent(type: string): boolean;
305
305
  export interface IncreaseValidatorStakeEventFields {
@@ -325,18 +325,18 @@ export declare class IncreaseValidatorStakeEvent implements StructClass {
325
325
  static get r(): reified.StructClassReified<IncreaseValidatorStakeEvent, IncreaseValidatorStakeEventFields>;
326
326
  static phantom(): PhantomReified<ToTypeStr<IncreaseValidatorStakeEvent>>;
327
327
  static get p(): reified.PhantomReified<"0xb0575765166030556a6eafd3b1b970eba8183ff748860680245b9edd41c716e7::liquid_staking::IncreaseValidatorStakeEvent">;
328
- static get bcs(): import("@mysten/sui-v1/bcs").BcsStruct<{
329
- typename: import("@mysten/sui-v1/bcs").BcsStruct<{
330
- name: import("@mysten/sui-v1/bcs").BcsStruct<{
331
- bytes: import("@mysten/sui-v1/bcs").BcsType<number[], Iterable<number> & {
328
+ static get bcs(): import("@mysten/bcs").BcsStruct<{
329
+ typename: import("@mysten/bcs").BcsStruct<{
330
+ name: import("@mysten/bcs").BcsStruct<{
331
+ bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
332
332
  length: number;
333
333
  }, string>;
334
334
  }, string>;
335
335
  }, string>;
336
- staking_pool_id: import("@mysten/sui-v1/bcs").BcsStruct<{
337
- bytes: import("@mysten/sui-v1/bcs").BcsType<string, string, string>;
336
+ staking_pool_id: import("@mysten/bcs").BcsStruct<{
337
+ bytes: import("@mysten/bcs").BcsType<string, string, string>;
338
338
  }, string>;
339
- amount: import("@mysten/sui-v1/bcs").BcsType<string, string | number | bigint, "u64">;
339
+ amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
340
340
  }, string>;
341
341
  static fromFields(fields: Record<string, any>): IncreaseValidatorStakeEvent;
342
342
  static fromFieldsWithTypes(item: FieldsWithTypes): IncreaseValidatorStakeEvent;
@@ -361,7 +361,7 @@ export declare class IncreaseValidatorStakeEvent implements StructClass {
361
361
  static fromJSON(json: Record<string, any>): IncreaseValidatorStakeEvent;
362
362
  static fromSuiParsedData(content: SuiParsedData): IncreaseValidatorStakeEvent;
363
363
  static fromSuiObjectData(data: SuiObjectData): IncreaseValidatorStakeEvent;
364
- static fetch(client: SuiClient, id: string): Promise<IncreaseValidatorStakeEvent>;
364
+ static fetch(client: SuiJsonRpcClient, id: string): Promise<IncreaseValidatorStakeEvent>;
365
365
  }
366
366
  export declare function isLIQUID_STAKING(type: string): boolean;
367
367
  export interface LIQUID_STAKINGFields {
@@ -383,8 +383,8 @@ export declare class LIQUID_STAKING implements StructClass {
383
383
  static get r(): reified.StructClassReified<LIQUID_STAKING, LIQUID_STAKINGFields>;
384
384
  static phantom(): PhantomReified<ToTypeStr<LIQUID_STAKING>>;
385
385
  static get p(): reified.PhantomReified<"0xb0575765166030556a6eafd3b1b970eba8183ff748860680245b9edd41c716e7::liquid_staking::LIQUID_STAKING">;
386
- static get bcs(): import("@mysten/sui-v1/bcs").BcsStruct<{
387
- dummy_field: import("@mysten/sui-v1/bcs").BcsType<boolean, boolean, "bool">;
386
+ static get bcs(): import("@mysten/bcs").BcsStruct<{
387
+ dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
388
388
  }, string>;
389
389
  static fromFields(fields: Record<string, any>): LIQUID_STAKING;
390
390
  static fromFieldsWithTypes(item: FieldsWithTypes): LIQUID_STAKING;
@@ -401,7 +401,7 @@ export declare class LIQUID_STAKING implements StructClass {
401
401
  static fromJSON(json: Record<string, any>): LIQUID_STAKING;
402
402
  static fromSuiParsedData(content: SuiParsedData): LIQUID_STAKING;
403
403
  static fromSuiObjectData(data: SuiObjectData): LIQUID_STAKING;
404
- static fetch(client: SuiClient, id: string): Promise<LIQUID_STAKING>;
404
+ static fetch(client: SuiJsonRpcClient, id: string): Promise<LIQUID_STAKING>;
405
405
  }
406
406
  export declare function isLiquidStakingInfo(type: string): boolean;
407
407
  export interface LiquidStakingInfoFields<P extends PhantomTypeArgument> {
@@ -437,38 +437,101 @@ export declare class LiquidStakingInfo<P extends PhantomTypeArgument> implements
437
437
  static get r(): typeof LiquidStakingInfo.reified;
438
438
  static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<LiquidStakingInfo<ToPhantomTypeArgument<P>>>>;
439
439
  static get p(): typeof LiquidStakingInfo.phantom;
440
- static get bcs(): import("@mysten/sui-v1/bcs").BcsStruct<{
441
- id: import("@mysten/sui-v1/bcs").BcsStruct<{
442
- id: import("@mysten/sui-v1/bcs").BcsStruct<{
443
- bytes: import("@mysten/sui-v1/bcs").BcsType<string, string, string>;
440
+ static get bcs(): import("@mysten/bcs").BcsStruct<{
441
+ id: import("@mysten/bcs").BcsStruct<{
442
+ id: import("@mysten/bcs").BcsStruct<{
443
+ bytes: import("@mysten/bcs").BcsType<string, string, string>;
444
444
  }, string>;
445
445
  }, string>;
446
- lst_treasury_cap: import("@mysten/sui-v1/bcs").BcsStruct<{
447
- id: import("@mysten/sui-v1/bcs").BcsStruct<{
448
- id: import("@mysten/sui-v1/bcs").BcsStruct<{
449
- bytes: import("@mysten/sui-v1/bcs").BcsType<string, string, string>;
446
+ lst_treasury_cap: import("@mysten/bcs").BcsStruct<{
447
+ id: import("@mysten/bcs").BcsStruct<{
448
+ id: import("@mysten/bcs").BcsStruct<{
449
+ bytes: import("@mysten/bcs").BcsType<string, string, string>;
450
450
  }, string>;
451
451
  }, string>;
452
- total_supply: import("@mysten/sui-v1/bcs").BcsStruct<{
453
- value: import("@mysten/sui-v1/bcs").BcsType<string, string | number | bigint, "u64">;
452
+ total_supply: import("@mysten/bcs").BcsStruct<{
453
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
454
454
  }, string>;
455
455
  }, string>;
456
- fee_config: any;
457
- fees: import("@mysten/sui-v1/bcs").BcsStruct<{
458
- value: import("@mysten/sui-v1/bcs").BcsType<string, string | number | bigint, "u64">;
456
+ fee_config: import("@mysten/bcs").BcsStruct<{
457
+ element: import("@mysten/bcs").BcsStruct<{
458
+ vec: import("@mysten/bcs").BcsType<{
459
+ sui_mint_fee_bps: string;
460
+ staked_sui_mint_fee_bps: string;
461
+ redeem_fee_bps: string;
462
+ staked_sui_redeem_fee_bps: string;
463
+ spread_fee_bps: string;
464
+ custom_redeem_fee_bps: string;
465
+ extra_fields: {
466
+ id: {
467
+ id: {
468
+ bytes: string;
469
+ };
470
+ };
471
+ size: string;
472
+ };
473
+ }[], Iterable<{
474
+ sui_mint_fee_bps: string | number | bigint;
475
+ staked_sui_mint_fee_bps: string | number | bigint;
476
+ redeem_fee_bps: string | number | bigint;
477
+ staked_sui_redeem_fee_bps: string | number | bigint;
478
+ spread_fee_bps: string | number | bigint;
479
+ custom_redeem_fee_bps: string | number | bigint;
480
+ extra_fields: {
481
+ id: {
482
+ id: {
483
+ bytes: string;
484
+ };
485
+ };
486
+ size: string | number | bigint;
487
+ };
488
+ }> & {
489
+ length: number;
490
+ }, string>;
491
+ }, string>;
459
492
  }, string>;
460
- accrued_spread_fees: import("@mysten/sui-v1/bcs").BcsType<string, string | number | bigint, "u64">;
461
- storage: import("@mysten/sui-v1/bcs").BcsStruct<{
462
- sui_pool: import("@mysten/sui-v1/bcs").BcsStruct<{
463
- value: import("@mysten/sui-v1/bcs").BcsType<string, string | number | bigint, "u64">;
493
+ fees: import("@mysten/bcs").BcsStruct<{
494
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
495
+ }, string>;
496
+ accrued_spread_fees: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
497
+ storage: import("@mysten/bcs").BcsStruct<{
498
+ sui_pool: import("@mysten/bcs").BcsStruct<{
499
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
464
500
  }, string>;
465
- validator_infos: import("@mysten/sui-v1/bcs").BcsType<{
501
+ validator_infos: import("@mysten/bcs").BcsType<{
466
502
  staking_pool_id: {
467
503
  bytes: string;
468
504
  };
469
505
  validator_address: string;
470
- active_stake: unknown;
471
- inactive_stake: unknown;
506
+ active_stake: {
507
+ vec: {
508
+ id: {
509
+ id: {
510
+ bytes: string;
511
+ };
512
+ };
513
+ pool_id: {
514
+ bytes: string;
515
+ };
516
+ value: string;
517
+ }[];
518
+ };
519
+ inactive_stake: {
520
+ vec: {
521
+ id: {
522
+ id: {
523
+ bytes: string;
524
+ };
525
+ };
526
+ pool_id: {
527
+ bytes: string;
528
+ };
529
+ stake_activation_epoch: string;
530
+ principal: {
531
+ value: string;
532
+ };
533
+ }[];
534
+ };
472
535
  exchange_rate: {
473
536
  sui_amount: string;
474
537
  pool_token_amount: string;
@@ -487,8 +550,39 @@ export declare class LiquidStakingInfo<P extends PhantomTypeArgument> implements
487
550
  bytes: string;
488
551
  };
489
552
  validator_address: string;
490
- active_stake: unknown;
491
- inactive_stake: unknown;
553
+ active_stake: {
554
+ vec: Iterable<{
555
+ id: {
556
+ id: {
557
+ bytes: string;
558
+ };
559
+ };
560
+ pool_id: {
561
+ bytes: string;
562
+ };
563
+ value: string | number | bigint;
564
+ }> & {
565
+ length: number;
566
+ };
567
+ };
568
+ inactive_stake: {
569
+ vec: Iterable<{
570
+ id: {
571
+ id: {
572
+ bytes: string;
573
+ };
574
+ };
575
+ pool_id: {
576
+ bytes: string;
577
+ };
578
+ stake_activation_epoch: string | number | bigint;
579
+ principal: {
580
+ value: string | number | bigint;
581
+ };
582
+ }> & {
583
+ length: number;
584
+ };
585
+ };
492
586
  exchange_rate: {
493
587
  sui_amount: string | number | bigint;
494
588
  pool_token_amount: string | number | bigint;
@@ -505,27 +599,27 @@ export declare class LiquidStakingInfo<P extends PhantomTypeArgument> implements
505
599
  }> & {
506
600
  length: number;
507
601
  }, string>;
508
- total_sui_supply: import("@mysten/sui-v1/bcs").BcsType<string, string | number | bigint, "u64">;
509
- last_refresh_epoch: import("@mysten/sui-v1/bcs").BcsType<string, string | number | bigint, "u64">;
510
- extra_fields: import("@mysten/sui-v1/bcs").BcsStruct<{
511
- id: import("@mysten/sui-v1/bcs").BcsStruct<{
512
- id: import("@mysten/sui-v1/bcs").BcsStruct<{
513
- bytes: import("@mysten/sui-v1/bcs").BcsType<string, string, string>;
602
+ total_sui_supply: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
603
+ last_refresh_epoch: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
604
+ extra_fields: import("@mysten/bcs").BcsStruct<{
605
+ id: import("@mysten/bcs").BcsStruct<{
606
+ id: import("@mysten/bcs").BcsStruct<{
607
+ bytes: import("@mysten/bcs").BcsType<string, string, string>;
514
608
  }, string>;
515
609
  }, string>;
516
- size: import("@mysten/sui-v1/bcs").BcsType<string, string | number | bigint, "u64">;
610
+ size: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
517
611
  }, string>;
518
612
  }, string>;
519
- version: import("@mysten/sui-v1/bcs").BcsStruct<{
520
- pos0: import("@mysten/sui-v1/bcs").BcsType<number, number, "u16">;
613
+ version: import("@mysten/bcs").BcsStruct<{
614
+ pos0: import("@mysten/bcs").BcsType<number, number, "u16">;
521
615
  }, string>;
522
- extra_fields: import("@mysten/sui-v1/bcs").BcsStruct<{
523
- id: import("@mysten/sui-v1/bcs").BcsStruct<{
524
- id: import("@mysten/sui-v1/bcs").BcsStruct<{
525
- bytes: import("@mysten/sui-v1/bcs").BcsType<string, string, string>;
616
+ extra_fields: import("@mysten/bcs").BcsStruct<{
617
+ id: import("@mysten/bcs").BcsStruct<{
618
+ id: import("@mysten/bcs").BcsStruct<{
619
+ bytes: import("@mysten/bcs").BcsType<string, string, string>;
526
620
  }, string>;
527
621
  }, string>;
528
- size: import("@mysten/sui-v1/bcs").BcsType<string, string | number | bigint, "u64">;
622
+ size: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
529
623
  }, string>;
530
624
  }, string>;
531
625
  static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): LiquidStakingInfo<ToPhantomTypeArgument<P>>;
@@ -679,7 +773,7 @@ export declare class LiquidStakingInfo<P extends PhantomTypeArgument> implements
679
773
  static fromJSON<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, json: Record<string, any>): LiquidStakingInfo<ToPhantomTypeArgument<P>>;
680
774
  static fromSuiParsedData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, content: SuiParsedData): LiquidStakingInfo<ToPhantomTypeArgument<P>>;
681
775
  static fromSuiObjectData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: SuiObjectData): LiquidStakingInfo<ToPhantomTypeArgument<P>>;
682
- static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: P, id: string): Promise<LiquidStakingInfo<ToPhantomTypeArgument<P>>>;
776
+ static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArg: P, id: string): Promise<LiquidStakingInfo<ToPhantomTypeArgument<P>>>;
683
777
  }
684
778
  export declare function isMintEvent(type: string): boolean;
685
779
  export interface MintEventFields {
@@ -707,17 +801,17 @@ export declare class MintEvent implements StructClass {
707
801
  static get r(): reified.StructClassReified<MintEvent, MintEventFields>;
708
802
  static phantom(): PhantomReified<ToTypeStr<MintEvent>>;
709
803
  static get p(): reified.PhantomReified<"0xb0575765166030556a6eafd3b1b970eba8183ff748860680245b9edd41c716e7::liquid_staking::MintEvent">;
710
- static get bcs(): import("@mysten/sui-v1/bcs").BcsStruct<{
711
- typename: import("@mysten/sui-v1/bcs").BcsStruct<{
712
- name: import("@mysten/sui-v1/bcs").BcsStruct<{
713
- bytes: import("@mysten/sui-v1/bcs").BcsType<number[], Iterable<number> & {
804
+ static get bcs(): import("@mysten/bcs").BcsStruct<{
805
+ typename: import("@mysten/bcs").BcsStruct<{
806
+ name: import("@mysten/bcs").BcsStruct<{
807
+ bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
714
808
  length: number;
715
809
  }, string>;
716
810
  }, string>;
717
811
  }, string>;
718
- sui_amount_in: import("@mysten/sui-v1/bcs").BcsType<string, string | number | bigint, "u64">;
719
- lst_amount_out: import("@mysten/sui-v1/bcs").BcsType<string, string | number | bigint, "u64">;
720
- fee_amount: import("@mysten/sui-v1/bcs").BcsType<string, string | number | bigint, "u64">;
812
+ sui_amount_in: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
813
+ lst_amount_out: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
814
+ fee_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
721
815
  }, string>;
722
816
  static fromFields(fields: Record<string, any>): MintEvent;
723
817
  static fromFieldsWithTypes(item: FieldsWithTypes): MintEvent;
@@ -744,7 +838,7 @@ export declare class MintEvent implements StructClass {
744
838
  static fromJSON(json: Record<string, any>): MintEvent;
745
839
  static fromSuiParsedData(content: SuiParsedData): MintEvent;
746
840
  static fromSuiObjectData(data: SuiObjectData): MintEvent;
747
- static fetch(client: SuiClient, id: string): Promise<MintEvent>;
841
+ static fetch(client: SuiJsonRpcClient, id: string): Promise<MintEvent>;
748
842
  }
749
843
  export declare function isRedeemEvent(type: string): boolean;
750
844
  export interface RedeemEventFields {
@@ -772,17 +866,17 @@ export declare class RedeemEvent implements StructClass {
772
866
  static get r(): reified.StructClassReified<RedeemEvent, RedeemEventFields>;
773
867
  static phantom(): PhantomReified<ToTypeStr<RedeemEvent>>;
774
868
  static get p(): reified.PhantomReified<"0xb0575765166030556a6eafd3b1b970eba8183ff748860680245b9edd41c716e7::liquid_staking::RedeemEvent">;
775
- static get bcs(): import("@mysten/sui-v1/bcs").BcsStruct<{
776
- typename: import("@mysten/sui-v1/bcs").BcsStruct<{
777
- name: import("@mysten/sui-v1/bcs").BcsStruct<{
778
- bytes: import("@mysten/sui-v1/bcs").BcsType<number[], Iterable<number> & {
869
+ static get bcs(): import("@mysten/bcs").BcsStruct<{
870
+ typename: import("@mysten/bcs").BcsStruct<{
871
+ name: import("@mysten/bcs").BcsStruct<{
872
+ bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
779
873
  length: number;
780
874
  }, string>;
781
875
  }, string>;
782
876
  }, string>;
783
- lst_amount_in: import("@mysten/sui-v1/bcs").BcsType<string, string | number | bigint, "u64">;
784
- sui_amount_out: import("@mysten/sui-v1/bcs").BcsType<string, string | number | bigint, "u64">;
785
- fee_amount: import("@mysten/sui-v1/bcs").BcsType<string, string | number | bigint, "u64">;
877
+ lst_amount_in: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
878
+ sui_amount_out: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
879
+ fee_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
786
880
  }, string>;
787
881
  static fromFields(fields: Record<string, any>): RedeemEvent;
788
882
  static fromFieldsWithTypes(item: FieldsWithTypes): RedeemEvent;
@@ -809,5 +903,5 @@ export declare class RedeemEvent implements StructClass {
809
903
  static fromJSON(json: Record<string, any>): RedeemEvent;
810
904
  static fromSuiParsedData(content: SuiParsedData): RedeemEvent;
811
905
  static fromSuiObjectData(data: SuiObjectData): RedeemEvent;
812
- static fetch(client: SuiClient, id: string): Promise<RedeemEvent>;
906
+ static fetch(client: SuiJsonRpcClient, id: string): Promise<RedeemEvent>;
813
907
  }
@@ -21,8 +21,8 @@ import { FeeConfig } from "../fees/structs";
21
21
  import { PKG_V1 } from "../index";
22
22
  import { Storage } from "../storage/structs";
23
23
  import { Version } from "../version/structs";
24
- import { bcs } from "@mysten/sui-v1/bcs";
25
- import { fromB64 } from "@mysten/sui-v1/utils";
24
+ import { bcs } from "@mysten/sui/bcs";
25
+ import { fromBase64 } from "@mysten/sui/utils";
26
26
  /* ============================== AdminCap =============================== */
27
27
  export function isAdminCap(type) {
28
28
  type = compressSuiType(type);
@@ -133,7 +133,7 @@ export class AdminCap {
133
133
  if (gotTypeArg !== compressSuiType(extractType(typeArg))) {
134
134
  throw new Error(`type argument mismatch: expected '${expectedTypeArg}' but got '${gotTypeArg}'`);
135
135
  }
136
- return AdminCap.fromBcs(typeArg, fromB64(data.bcs.bcsBytes));
136
+ return AdminCap.fromBcs(typeArg, fromBase64(data.bcs.bcsBytes));
137
137
  }
138
138
  if (data.content) {
139
139
  return AdminCap.fromSuiParsedData(typeArg, data.content);
@@ -264,7 +264,7 @@ export class CollectFeesEvent {
264
264
  !isCollectFeesEvent(data.bcs.type)) {
265
265
  throw new Error(`object at is not a CollectFeesEvent object`);
266
266
  }
267
- return CollectFeesEvent.fromBcs(fromB64(data.bcs.bcsBytes));
267
+ return CollectFeesEvent.fromBcs(fromBase64(data.bcs.bcsBytes));
268
268
  }
269
269
  if (data.content) {
270
270
  return CollectFeesEvent.fromSuiParsedData(data.content);
@@ -394,7 +394,7 @@ export class CreateEvent {
394
394
  if (data.bcs.dataType !== "moveObject" || !isCreateEvent(data.bcs.type)) {
395
395
  throw new Error(`object at is not a CreateEvent object`);
396
396
  }
397
- return CreateEvent.fromBcs(fromB64(data.bcs.bcsBytes));
397
+ return CreateEvent.fromBcs(fromBase64(data.bcs.bcsBytes));
398
398
  }
399
399
  if (data.content) {
400
400
  return CreateEvent.fromSuiParsedData(data.content);
@@ -531,7 +531,7 @@ export class DecreaseValidatorStakeEvent {
531
531
  !isDecreaseValidatorStakeEvent(data.bcs.type)) {
532
532
  throw new Error(`object at is not a DecreaseValidatorStakeEvent object`);
533
533
  }
534
- return DecreaseValidatorStakeEvent.fromBcs(fromB64(data.bcs.bcsBytes));
534
+ return DecreaseValidatorStakeEvent.fromBcs(fromBase64(data.bcs.bcsBytes));
535
535
  }
536
536
  if (data.content) {
537
537
  return DecreaseValidatorStakeEvent.fromSuiParsedData(data.content);
@@ -680,7 +680,7 @@ export class EpochChangedEvent {
680
680
  !isEpochChangedEvent(data.bcs.type)) {
681
681
  throw new Error(`object at is not a EpochChangedEvent object`);
682
682
  }
683
- return EpochChangedEvent.fromBcs(fromB64(data.bcs.bcsBytes));
683
+ return EpochChangedEvent.fromBcs(fromBase64(data.bcs.bcsBytes));
684
684
  }
685
685
  if (data.content) {
686
686
  return EpochChangedEvent.fromSuiParsedData(data.content);
@@ -817,7 +817,7 @@ export class IncreaseValidatorStakeEvent {
817
817
  !isIncreaseValidatorStakeEvent(data.bcs.type)) {
818
818
  throw new Error(`object at is not a IncreaseValidatorStakeEvent object`);
819
819
  }
820
- return IncreaseValidatorStakeEvent.fromBcs(fromB64(data.bcs.bcsBytes));
820
+ return IncreaseValidatorStakeEvent.fromBcs(fromBase64(data.bcs.bcsBytes));
821
821
  }
822
822
  if (data.content) {
823
823
  return IncreaseValidatorStakeEvent.fromSuiParsedData(data.content);
@@ -942,7 +942,7 @@ export class LIQUID_STAKING {
942
942
  !isLIQUID_STAKING(data.bcs.type)) {
943
943
  throw new Error(`object at is not a LIQUID_STAKING object`);
944
944
  }
945
- return LIQUID_STAKING.fromBcs(fromB64(data.bcs.bcsBytes));
945
+ return LIQUID_STAKING.fromBcs(fromBase64(data.bcs.bcsBytes));
946
946
  }
947
947
  if (data.content) {
948
948
  return LIQUID_STAKING.fromSuiParsedData(data.content);
@@ -1120,7 +1120,7 @@ export class LiquidStakingInfo {
1120
1120
  if (gotTypeArg !== compressSuiType(extractType(typeArg))) {
1121
1121
  throw new Error(`type argument mismatch: expected '${expectedTypeArg}' but got '${gotTypeArg}'`);
1122
1122
  }
1123
- return LiquidStakingInfo.fromBcs(typeArg, fromB64(data.bcs.bcsBytes));
1123
+ return LiquidStakingInfo.fromBcs(typeArg, fromBase64(data.bcs.bcsBytes));
1124
1124
  }
1125
1125
  if (data.content) {
1126
1126
  return LiquidStakingInfo.fromSuiParsedData(typeArg, data.content);
@@ -1262,7 +1262,7 @@ export class MintEvent {
1262
1262
  if (data.bcs.dataType !== "moveObject" || !isMintEvent(data.bcs.type)) {
1263
1263
  throw new Error(`object at is not a MintEvent object`);
1264
1264
  }
1265
- return MintEvent.fromBcs(fromB64(data.bcs.bcsBytes));
1265
+ return MintEvent.fromBcs(fromBase64(data.bcs.bcsBytes));
1266
1266
  }
1267
1267
  if (data.content) {
1268
1268
  return MintEvent.fromSuiParsedData(data.content);
@@ -1404,7 +1404,7 @@ export class RedeemEvent {
1404
1404
  if (data.bcs.dataType !== "moveObject" || !isRedeemEvent(data.bcs.type)) {
1405
1405
  throw new Error(`object at is not a RedeemEvent object`);
1406
1406
  }
1407
- return RedeemEvent.fromBcs(fromB64(data.bcs.bcsBytes));
1407
+ return RedeemEvent.fromBcs(fromBase64(data.bcs.bcsBytes));
1408
1408
  }
1409
1409
  if (data.content) {
1410
1410
  return RedeemEvent.fromSuiParsedData(data.content);