@suilend/springsui-cli 1.0.11 → 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.
Files changed (27) hide show
  1. package/cli/src/bytecode.js +4 -8
  2. package/package.json +1 -1
  3. package/sdk/src/_generated/_dependencies/source/0x1/ascii/structs.d.ts +7 -11
  4. package/sdk/src/_generated/_dependencies/source/0x1/option/structs.d.ts +4 -6
  5. package/sdk/src/_generated/_dependencies/source/0x1/string/structs.d.ts +4 -6
  6. package/sdk/src/_generated/_dependencies/source/0x1/type-name/structs.d.ts +6 -10
  7. package/sdk/src/_generated/_dependencies/source/0x2/bag/structs.d.ts +8 -15
  8. package/sdk/src/_generated/_dependencies/source/0x2/balance/structs.d.ts +6 -10
  9. package/sdk/src/_generated/_dependencies/source/0x2/coin/structs.d.ts +85 -139
  10. package/sdk/src/_generated/_dependencies/source/0x2/object/structs.d.ts +8 -14
  11. package/sdk/src/_generated/_dependencies/source/0x2/sui/structs.d.ts +3 -5
  12. package/sdk/src/_generated/_dependencies/source/0x2/table/structs.d.ts +8 -15
  13. package/sdk/src/_generated/_dependencies/source/0x2/url/structs.d.ts +6 -10
  14. package/sdk/src/_generated/_dependencies/source/0x2/vec-map/structs.d.ts +13 -18
  15. package/sdk/src/_generated/_dependencies/source/0x3/staking-pool/structs.d.ts +82 -156
  16. package/sdk/src/_generated/_framework/util.d.ts +2 -2
  17. package/sdk/src/_generated/_framework/vector.d.ts +12 -5
  18. package/sdk/src/_generated/liquid_staking/cell/structs.d.ts +6 -10
  19. package/sdk/src/_generated/liquid_staking/fees/structs.d.ts +26 -50
  20. package/sdk/src/_generated/liquid_staking/liquid-staking/structs.d.ts +225 -273
  21. package/sdk/src/_generated/liquid_staking/storage/structs.d.ts +136 -83
  22. package/sdk/src/_generated/liquid_staking/version/structs.d.ts +3 -5
  23. package/sdk/src/_generated/liquid_staking/weight/structs.d.ts +60 -112
  24. package/sdk/src/client.d.ts +10 -7
  25. package/sdk/src/client.js +50 -26
  26. package/sdk/src/lib/transactions.d.ts +3 -3
  27. package/sdk/src/lib/transactions.js +18 -9
@@ -38,20 +38,43 @@ export declare class Storage implements StructClass {
38
38
  static get r(): reified.StructClassReified<Storage, StorageFields>;
39
39
  static phantom(): PhantomReified<ToTypeStr<Storage>>;
40
40
  static get p(): reified.PhantomReified<"0xb0575765166030556a6eafd3b1b970eba8183ff748860680245b9edd41c716e7::storage::Storage">;
41
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
42
- sui_pool: {
43
- value: string;
44
- };
45
- validator_infos: {
41
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
42
+ sui_pool: import("@mysten/sui/bcs").BcsStruct<{
43
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
44
+ }, string>;
45
+ validator_infos: import("@mysten/sui/bcs").BcsType<{
46
46
  staking_pool_id: {
47
47
  bytes: string;
48
48
  };
49
49
  validator_address: string;
50
50
  active_stake: {
51
- vec: any[];
51
+ vec: {
52
+ id: {
53
+ id: {
54
+ bytes: string;
55
+ };
56
+ };
57
+ pool_id: {
58
+ bytes: string;
59
+ };
60
+ value: string;
61
+ }[];
52
62
  };
53
63
  inactive_stake: {
54
- vec: any[];
64
+ vec: {
65
+ id: {
66
+ id: {
67
+ bytes: string;
68
+ };
69
+ };
70
+ pool_id: {
71
+ bytes: string;
72
+ };
73
+ stake_activation_epoch: string;
74
+ principal: {
75
+ value: string;
76
+ };
77
+ }[];
55
78
  };
56
79
  exchange_rate: {
57
80
  sui_amount: string;
@@ -66,33 +89,41 @@ export declare class Storage implements StructClass {
66
89
  };
67
90
  size: string;
68
91
  };
69
- }[];
70
- total_sui_supply: string;
71
- last_refresh_epoch: string;
72
- extra_fields: {
73
- id: {
74
- id: {
75
- bytes: string;
76
- };
77
- };
78
- size: string;
79
- };
80
- }, {
81
- sui_pool: {
82
- value: string | number | bigint;
83
- };
84
- validator_infos: Iterable<{
92
+ }[], Iterable<{
85
93
  staking_pool_id: {
86
94
  bytes: string;
87
95
  };
88
96
  validator_address: string;
89
97
  active_stake: {
90
- vec: Iterable<any> & {
98
+ vec: Iterable<{
99
+ id: {
100
+ id: {
101
+ bytes: string;
102
+ };
103
+ };
104
+ pool_id: {
105
+ bytes: string;
106
+ };
107
+ value: string | number | bigint;
108
+ }> & {
91
109
  length: number;
92
110
  };
93
111
  };
94
112
  inactive_stake: {
95
- vec: Iterable<any> & {
113
+ vec: Iterable<{
114
+ id: {
115
+ id: {
116
+ bytes: string;
117
+ };
118
+ };
119
+ pool_id: {
120
+ bytes: string;
121
+ };
122
+ stake_activation_epoch: string | number | bigint;
123
+ principal: {
124
+ value: string | number | bigint;
125
+ };
126
+ }> & {
96
127
  length: number;
97
128
  };
98
129
  };
@@ -111,18 +142,18 @@ export declare class Storage implements StructClass {
111
142
  };
112
143
  }> & {
113
144
  length: number;
114
- };
115
- total_sui_supply: string | number | bigint;
116
- last_refresh_epoch: string | number | bigint;
117
- extra_fields: {
118
- id: {
119
- id: {
120
- bytes: string;
121
- };
122
- };
123
- size: string | number | bigint;
124
- };
125
- }>;
145
+ }, string>;
146
+ total_sui_supply: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
147
+ last_refresh_epoch: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
148
+ extra_fields: import("@mysten/sui/bcs").BcsStruct<{
149
+ id: import("@mysten/sui/bcs").BcsStruct<{
150
+ id: import("@mysten/sui/bcs").BcsStruct<{
151
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
152
+ }, string>;
153
+ }, string>;
154
+ size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
155
+ }, string>;
156
+ }, string>;
126
157
  static fromFields(fields: Record<string, any>): Storage;
127
158
  static fromFieldsWithTypes(item: FieldsWithTypes): Storage;
128
159
  static fromBcs(data: Uint8Array): Storage;
@@ -240,59 +271,81 @@ export declare class ValidatorInfo implements StructClass {
240
271
  static get r(): reified.StructClassReified<ValidatorInfo, ValidatorInfoFields>;
241
272
  static phantom(): PhantomReified<ToTypeStr<ValidatorInfo>>;
242
273
  static get p(): reified.PhantomReified<"0xb0575765166030556a6eafd3b1b970eba8183ff748860680245b9edd41c716e7::storage::ValidatorInfo">;
243
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
244
- staking_pool_id: {
245
- bytes: string;
246
- };
247
- validator_address: string;
248
- active_stake: {
249
- vec: any[];
250
- };
251
- inactive_stake: {
252
- vec: any[];
253
- };
254
- exchange_rate: {
255
- sui_amount: string;
256
- pool_token_amount: string;
257
- };
258
- total_sui_amount: string;
259
- extra_fields: {
260
- id: {
274
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
275
+ staking_pool_id: import("@mysten/sui/bcs").BcsStruct<{
276
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
277
+ }, string>;
278
+ validator_address: import("@mysten/sui/bcs").BcsType<string, string, string>;
279
+ active_stake: import("@mysten/sui/bcs").BcsStruct<{
280
+ vec: import("@mysten/sui/bcs").BcsType<{
281
+ id: {
282
+ id: {
283
+ bytes: string;
284
+ };
285
+ };
286
+ pool_id: {
287
+ bytes: string;
288
+ };
289
+ value: string;
290
+ }[], Iterable<{
261
291
  id: {
292
+ id: {
293
+ bytes: string;
294
+ };
295
+ };
296
+ pool_id: {
262
297
  bytes: string;
263
298
  };
264
- };
265
- size: string;
266
- };
267
- }, {
268
- staking_pool_id: {
269
- bytes: string;
270
- };
271
- validator_address: string;
272
- active_stake: {
273
- vec: Iterable<any> & {
299
+ value: string | number | bigint;
300
+ }> & {
274
301
  length: number;
275
- };
276
- };
277
- inactive_stake: {
278
- vec: Iterable<any> & {
279
- length: number;
280
- };
281
- };
282
- exchange_rate: {
283
- sui_amount: string | number | bigint;
284
- pool_token_amount: string | number | bigint;
285
- };
286
- total_sui_amount: string | number | bigint;
287
- extra_fields: {
288
- id: {
302
+ }, string>;
303
+ }, string>;
304
+ inactive_stake: import("@mysten/sui/bcs").BcsStruct<{
305
+ vec: import("@mysten/sui/bcs").BcsType<{
289
306
  id: {
307
+ id: {
308
+ bytes: string;
309
+ };
310
+ };
311
+ pool_id: {
290
312
  bytes: string;
291
313
  };
292
- };
293
- size: string | number | bigint;
294
- };
295
- }>;
314
+ stake_activation_epoch: string;
315
+ principal: {
316
+ value: string;
317
+ };
318
+ }[], Iterable<{
319
+ id: {
320
+ id: {
321
+ bytes: string;
322
+ };
323
+ };
324
+ pool_id: {
325
+ bytes: string;
326
+ };
327
+ stake_activation_epoch: string | number | bigint;
328
+ principal: {
329
+ value: string | number | bigint;
330
+ };
331
+ }> & {
332
+ length: number;
333
+ }, string>;
334
+ }, string>;
335
+ exchange_rate: import("@mysten/sui/bcs").BcsStruct<{
336
+ sui_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
337
+ pool_token_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
338
+ }, string>;
339
+ total_sui_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
340
+ extra_fields: import("@mysten/sui/bcs").BcsStruct<{
341
+ id: import("@mysten/sui/bcs").BcsStruct<{
342
+ id: import("@mysten/sui/bcs").BcsStruct<{
343
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
344
+ }, string>;
345
+ }, string>;
346
+ size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
347
+ }, string>;
348
+ }, string>;
296
349
  static fromFields(fields: Record<string, any>): ValidatorInfo;
297
350
  static fromFieldsWithTypes(item: FieldsWithTypes): ValidatorInfo;
298
351
  static fromBcs(data: Uint8Array): ValidatorInfo;
@@ -22,11 +22,9 @@ export declare class Version implements StructClass {
22
22
  static get r(): import("../../_framework/reified").StructClassReified<Version, VersionFields>;
23
23
  static phantom(): PhantomReified<ToTypeStr<Version>>;
24
24
  static get p(): PhantomReified<"0xb0575765166030556a6eafd3b1b970eba8183ff748860680245b9edd41c716e7::version::Version">;
25
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
26
- pos0: number;
27
- }, {
28
- pos0: number;
29
- }>;
25
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
26
+ pos0: import("@mysten/sui/bcs").BcsType<number, number, "u16">;
27
+ }, string>;
30
28
  static fromFields(fields: Record<string, any>): Version;
31
29
  static fromFieldsWithTypes(item: FieldsWithTypes): Version;
32
30
  static fromBcs(data: Uint8Array): Version;
@@ -32,33 +32,21 @@ export declare class CreateEvent implements StructClass {
32
32
  static get r(): import("../../_framework/reified").StructClassReified<CreateEvent, CreateEventFields>;
33
33
  static phantom(): PhantomReified<ToTypeStr<CreateEvent>>;
34
34
  static get p(): PhantomReified<"0x8d196820b321bb3c56863b3eb0dd90a49f9eb52e3473373efcebf4388bf04416::weight::CreateEvent">;
35
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
36
- typename: {
37
- name: {
38
- bytes: number[];
39
- };
40
- };
41
- weight_hook_id: {
42
- bytes: string;
43
- };
44
- weight_hook_admin_cap_id: {
45
- bytes: string;
46
- };
47
- }, {
48
- typename: {
49
- name: {
50
- bytes: Iterable<number> & {
35
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
36
+ typename: import("@mysten/sui/bcs").BcsStruct<{
37
+ name: import("@mysten/sui/bcs").BcsStruct<{
38
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
51
39
  length: number;
52
- };
53
- };
54
- };
55
- weight_hook_id: {
56
- bytes: string;
57
- };
58
- weight_hook_admin_cap_id: {
59
- bytes: string;
60
- };
61
- }>;
40
+ }, string>;
41
+ }, string>;
42
+ }, string>;
43
+ weight_hook_id: import("@mysten/sui/bcs").BcsStruct<{
44
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
45
+ }, string>;
46
+ weight_hook_admin_cap_id: import("@mysten/sui/bcs").BcsStruct<{
47
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
48
+ }, string>;
49
+ }, string>;
62
50
  static fromFields(fields: Record<string, any>): CreateEvent;
63
51
  static fromFieldsWithTypes(item: FieldsWithTypes): CreateEvent;
64
52
  static fromBcs(data: Uint8Array): CreateEvent;
@@ -104,15 +92,11 @@ export declare class RegistryInfo implements StructClass {
104
92
  static get r(): import("../../_framework/reified").StructClassReified<RegistryInfo, RegistryInfoFields>;
105
93
  static phantom(): PhantomReified<ToTypeStr<RegistryInfo>>;
106
94
  static get p(): PhantomReified<"0x8d196820b321bb3c56863b3eb0dd90a49f9eb52e3473373efcebf4388bf04416::weight::RegistryInfo">;
107
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
108
- weight_hook_id: {
109
- bytes: string;
110
- };
111
- }, {
112
- weight_hook_id: {
113
- bytes: string;
114
- };
115
- }>;
95
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
96
+ weight_hook_id: import("@mysten/sui/bcs").BcsStruct<{
97
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
98
+ }, string>;
99
+ }, string>;
116
100
  static fromFields(fields: Record<string, any>): RegistryInfo;
117
101
  static fromFieldsWithTypes(item: FieldsWithTypes): RegistryInfo;
118
102
  static fromBcs(data: Uint8Array): RegistryInfo;
@@ -150,11 +134,9 @@ export declare class WEIGHT implements StructClass {
150
134
  static get r(): import("../../_framework/reified").StructClassReified<WEIGHT, WEIGHTFields>;
151
135
  static phantom(): PhantomReified<ToTypeStr<WEIGHT>>;
152
136
  static get p(): PhantomReified<"0xb0575765166030556a6eafd3b1b970eba8183ff748860680245b9edd41c716e7::weight::WEIGHT">;
153
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
154
- dummy_field: boolean;
155
- }, {
156
- dummy_field: boolean;
157
- }>;
137
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
138
+ dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
139
+ }, string>;
158
140
  static fromFields(fields: Record<string, any>): WEIGHT;
159
141
  static fromFieldsWithTypes(item: FieldsWithTypes): WEIGHT;
160
142
  static fromBcs(data: Uint8Array): WEIGHT;
@@ -202,71 +184,43 @@ export declare class WeightHook<P extends PhantomTypeArgument> implements Struct
202
184
  static get r(): typeof WeightHook.reified;
203
185
  static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<WeightHook<ToPhantomTypeArgument<P>>>>;
204
186
  static get p(): typeof WeightHook.phantom;
205
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
206
- id: {
207
- id: {
208
- bytes: string;
209
- };
210
- };
211
- validator_addresses_and_weights: {
212
- contents: {
187
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
188
+ id: import("@mysten/sui/bcs").BcsStruct<{
189
+ id: import("@mysten/sui/bcs").BcsStruct<{
190
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
191
+ }, string>;
192
+ }, string>;
193
+ validator_addresses_and_weights: import("@mysten/sui/bcs").BcsStruct<{
194
+ contents: import("@mysten/sui/bcs").BcsType<{
213
195
  key: string;
214
196
  value: string;
215
- }[];
216
- };
217
- total_weight: string;
218
- admin_cap: {
219
- id: {
220
- id: {
221
- bytes: string;
222
- };
223
- };
224
- };
225
- version: {
226
- pos0: number;
227
- };
228
- extra_fields: {
229
- id: {
230
- id: {
231
- bytes: string;
232
- };
233
- };
234
- size: string;
235
- };
236
- }, {
237
- id: {
238
- id: {
239
- bytes: string;
240
- };
241
- };
242
- validator_addresses_and_weights: {
243
- contents: Iterable<{
197
+ }[], Iterable<{
244
198
  key: string;
245
199
  value: string | number | bigint;
246
200
  }> & {
247
201
  length: number;
248
- };
249
- };
250
- total_weight: string | number | bigint;
251
- admin_cap: {
252
- id: {
253
- id: {
254
- bytes: string;
255
- };
256
- };
257
- };
258
- version: {
259
- pos0: number;
260
- };
261
- extra_fields: {
262
- id: {
263
- id: {
264
- bytes: string;
265
- };
266
- };
267
- size: string | number | bigint;
268
- };
269
- }>;
202
+ }, string>;
203
+ }, string>;
204
+ total_weight: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
205
+ admin_cap: import("@mysten/sui/bcs").BcsStruct<{
206
+ id: import("@mysten/sui/bcs").BcsStruct<{
207
+ id: import("@mysten/sui/bcs").BcsStruct<{
208
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
209
+ }, string>;
210
+ }, string>;
211
+ }, string>;
212
+ version: import("@mysten/sui/bcs").BcsStruct<{
213
+ pos0: import("@mysten/sui/bcs").BcsType<number, number, "u16">;
214
+ }, string>;
215
+ extra_fields: import("@mysten/sui/bcs").BcsStruct<{
216
+ id: import("@mysten/sui/bcs").BcsStruct<{
217
+ id: import("@mysten/sui/bcs").BcsStruct<{
218
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
219
+ }, string>;
220
+ }, string>;
221
+ size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
222
+ }, string>;
223
+ }, string>;
270
224
  static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): WeightHook<ToPhantomTypeArgument<P>>;
271
225
  static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, item: FieldsWithTypes): WeightHook<ToPhantomTypeArgument<P>>;
272
226
  static fromBcs<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: Uint8Array): WeightHook<ToPhantomTypeArgument<P>>;
@@ -338,19 +292,13 @@ export declare class WeightHookAdminCap<P extends PhantomTypeArgument> implement
338
292
  static get r(): typeof WeightHookAdminCap.reified;
339
293
  static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<WeightHookAdminCap<ToPhantomTypeArgument<P>>>>;
340
294
  static get p(): typeof WeightHookAdminCap.phantom;
341
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
342
- id: {
343
- id: {
344
- bytes: string;
345
- };
346
- };
347
- }, {
348
- id: {
349
- id: {
350
- bytes: string;
351
- };
352
- };
353
- }>;
295
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
296
+ id: import("@mysten/sui/bcs").BcsStruct<{
297
+ id: import("@mysten/sui/bcs").BcsStruct<{
298
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
299
+ }, string>;
300
+ }, string>;
301
+ }, string>;
354
302
  static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): WeightHookAdminCap<ToPhantomTypeArgument<P>>;
355
303
  static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, item: FieldsWithTypes): WeightHookAdminCap<ToPhantomTypeArgument<P>>;
356
304
  static fromBcs<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: Uint8Array): WeightHookAdminCap<ToPhantomTypeArgument<P>>;
@@ -1,4 +1,4 @@
1
- import { SuiClient } from "@mysten/sui/client";
1
+ import { SuiClient, ValidatorApy } from "@mysten/sui/client";
2
2
  import { Transaction, TransactionObjectInput } from "@mysten/sui/transactions";
3
3
  import BigNumber from "bignumber.js";
4
4
  import { LiquidStakingInfo } from "./_generated/liquid_staking/liquid-staking/structs";
@@ -13,12 +13,15 @@ export interface FeeConfigArgs {
13
13
  spreadFeeBps?: number;
14
14
  }
15
15
  export declare const SUILEND_VALIDATOR_ADDRESS = "0xce8e537664ba5d1d5a6a857b17bd142097138706281882be6805e17065ecde89";
16
+ export declare const SPRING_SUI_UPGRADE_CAP_ID = "0x4dc657b6c0fe896f4b94fee1ceac96312dde0a36b94e799caaec30deb53dcd67";
17
+ export declare const ADMIN_ADDRESS = "0xb1ffbc2e1915f44b8f271a703becc1bf8aa79bc22431a58900a102892b783c25";
18
+ export declare function getLatestPackageId(client: SuiClient, upgradeCapId: string): Promise<string>;
16
19
  export declare class LstClient {
17
20
  liquidStakingObject: LiquidStakingObjectInfo;
18
21
  client: SuiClient;
19
- static initialize(client: SuiClient, liquidStakingObjectInfo: LiquidStakingObjectInfo): Promise<LstClient>;
22
+ static initialize(client: SuiClient, liquidStakingObjectInfo: LiquidStakingObjectInfo, _publishedAt?: string, logPackageId?: boolean): Promise<LstClient>;
20
23
  static createNewLst(tx: Transaction, treasuryCap: string, coinType: string): TransactionObjectInput;
21
- static getWeightHookAdminCapId(client: SuiClient, address: string, weightHookAdminCapId: string): Promise<string | null | undefined>;
24
+ static getWeightHookAdminCapId(client: SuiClient, address: string, coinType: string): Promise<string | null | undefined>;
22
25
  constructor(liquidStakingObject: LiquidStakingObjectInfo, client: SuiClient);
23
26
  getAdminCapId(address: string): Promise<string | null | undefined>;
24
27
  mint(tx: Transaction, suiCoinId: TransactionObjectInput): {
@@ -34,11 +37,11 @@ export declare class LstClient {
34
37
  $kind: "NestedResult";
35
38
  NestedResult: [number, number];
36
39
  };
37
- redeemAmount(tx: Transaction, address: string, amount: string): {
40
+ redeemAmountAndRebalance(tx: Transaction, address: string, amount: string, client: SuiClient): Promise<{
38
41
  $kind: "NestedResult";
39
42
  NestedResult: [number, number];
40
- };
41
- redeemAmountAndSendToUser(tx: Transaction, address: string, amount: string): void;
43
+ }>;
44
+ redeemAmountAndRebalanceAndSendToUser(tx: Transaction, address: string, amount: string, client: SuiClient): Promise<void>;
42
45
  increaseValidatorStake(tx: Transaction, adminCapId: TransactionObjectInput, validatorAddress: string, suiAmount: number): void;
43
46
  decreaseValidatorStake(tx: Transaction, adminCapId: TransactionObjectInput, validatorAddress: string, targetUnstakeSuiAmount: bigint): void;
44
47
  collectFees(tx: Transaction, weightHookAdminCapId: TransactionObjectInput): {
@@ -53,7 +56,7 @@ export declare class LstClient {
53
56
  };
54
57
  setValidatorAddressesAndWeights(tx: Transaction, weightHookId: TransactionObjectInput, weightHookAdminCap: TransactionObjectInput, validatorAddressesAndWeights: Record<string, number>): void;
55
58
  rebalance(tx: Transaction, weightHookId: TransactionObjectInput): void;
56
- getSpringSuiApy(): Promise<BigNumber>;
59
+ getSpringSuiApy(_validatorApys?: ValidatorApy[]): Promise<BigNumber>;
57
60
  }
58
61
  export declare const fetchLiquidStakingInfo: (info: LiquidStakingObjectInfo, client: SuiClient) => Promise<LiquidStakingInfo<any>>;
59
62
  export declare const fetchRegistryLiquidStakingInfoMap: (client: SuiClient) => Promise<{