@suilend/springsui-cli 1.0.0

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 (63) hide show
  1. package/cli/src/index.d.ts +1 -0
  2. package/cli/src/index.js +304 -0
  3. package/package.json +1 -0
  4. package/sdk/src/_generated/_dependencies/source/0x1/ascii/structs.d.ts +92 -0
  5. package/sdk/src/_generated/_dependencies/source/0x1/ascii/structs.js +289 -0
  6. package/sdk/src/_generated/_dependencies/source/0x1/index.d.ts +3 -0
  7. package/sdk/src/_generated/_dependencies/source/0x1/index.js +6 -0
  8. package/sdk/src/_generated/_dependencies/source/0x1/option/structs.d.ts +52 -0
  9. package/sdk/src/_generated/_dependencies/source/0x1/option/structs.js +180 -0
  10. package/sdk/src/_generated/_dependencies/source/0x1/string/structs.d.ts +50 -0
  11. package/sdk/src/_generated/_dependencies/source/0x1/string/structs.js +167 -0
  12. package/sdk/src/_generated/_dependencies/source/0x1/type-name/structs.d.ts +53 -0
  13. package/sdk/src/_generated/_dependencies/source/0x1/type-name/structs.js +144 -0
  14. package/sdk/src/_generated/_dependencies/source/0x2/bag/structs.d.ts +61 -0
  15. package/sdk/src/_generated/_dependencies/source/0x2/bag/structs.js +149 -0
  16. package/sdk/src/_generated/_dependencies/source/0x2/balance/structs.d.ts +88 -0
  17. package/sdk/src/_generated/_dependencies/source/0x2/balance/structs.js +291 -0
  18. package/sdk/src/_generated/_dependencies/source/0x2/coin/structs.d.ts +460 -0
  19. package/sdk/src/_generated/_dependencies/source/0x2/coin/structs.js +1045 -0
  20. package/sdk/src/_generated/_dependencies/source/0x2/index.d.ts +3 -0
  21. package/sdk/src/_generated/_dependencies/source/0x2/index.js +6 -0
  22. package/sdk/src/_generated/_dependencies/source/0x2/object/structs.d.ts +92 -0
  23. package/sdk/src/_generated/_dependencies/source/0x2/object/structs.js +270 -0
  24. package/sdk/src/_generated/_dependencies/source/0x2/sui/structs.d.ts +46 -0
  25. package/sdk/src/_generated/_dependencies/source/0x2/sui/structs.js +142 -0
  26. package/sdk/src/_generated/_dependencies/source/0x2/table/structs.d.ts +61 -0
  27. package/sdk/src/_generated/_dependencies/source/0x2/table/structs.js +163 -0
  28. package/sdk/src/_generated/_dependencies/source/0x2/url/structs.d.ts +53 -0
  29. package/sdk/src/_generated/_dependencies/source/0x2/url/structs.js +143 -0
  30. package/sdk/src/_generated/_dependencies/source/0x2/vec-map/structs.d.ts +111 -0
  31. package/sdk/src/_generated/_dependencies/source/0x2/vec-map/structs.js +325 -0
  32. package/sdk/src/_generated/_dependencies/source/0x3/index.d.ts +3 -0
  33. package/sdk/src/_generated/_dependencies/source/0x3/index.js +6 -0
  34. package/sdk/src/_generated/_dependencies/source/0x3/staking-pool/structs.d.ts +487 -0
  35. package/sdk/src/_generated/_dependencies/source/0x3/staking-pool/structs.js +915 -0
  36. package/sdk/src/_generated/_framework/reified.d.ts +108 -0
  37. package/sdk/src/_generated/_framework/reified.js +240 -0
  38. package/sdk/src/_generated/_framework/util.d.ts +35 -0
  39. package/sdk/src/_generated/_framework/util.js +334 -0
  40. package/sdk/src/_generated/_framework/vector.d.ts +35 -0
  41. package/sdk/src/_generated/_framework/vector.js +77 -0
  42. package/sdk/src/_generated/liquid_staking/cell/structs.d.ts +54 -0
  43. package/sdk/src/_generated/liquid_staking/cell/structs.js +156 -0
  44. package/sdk/src/_generated/liquid_staking/fees/functions.d.ts +51 -0
  45. package/sdk/src/_generated/liquid_staking/fees/functions.js +130 -0
  46. package/sdk/src/_generated/liquid_staking/fees/structs.d.ts +165 -0
  47. package/sdk/src/_generated/liquid_staking/fees/structs.js +307 -0
  48. package/sdk/src/_generated/liquid_staking/index.d.ts +4 -0
  49. package/sdk/src/_generated/liquid_staking/index.js +10 -0
  50. package/sdk/src/_generated/liquid_staking/liquid-staking/functions.d.ts +88 -0
  51. package/sdk/src/_generated/liquid_staking/liquid-staking/functions.js +199 -0
  52. package/sdk/src/_generated/liquid_staking/liquid-staking/structs.d.ts +955 -0
  53. package/sdk/src/_generated/liquid_staking/liquid-staking/structs.js +1477 -0
  54. package/sdk/src/_generated/liquid_staking/storage/structs.d.ts +358 -0
  55. package/sdk/src/_generated/liquid_staking/storage/structs.js +365 -0
  56. package/sdk/src/_generated/liquid_staking/version/structs.d.ts +46 -0
  57. package/sdk/src/_generated/liquid_staking/version/structs.js +143 -0
  58. package/sdk/src/_generated/liquid_staking/weight/functions.d.ts +19 -0
  59. package/sdk/src/_generated/liquid_staking/weight/functions.js +44 -0
  60. package/sdk/src/_generated/liquid_staking/weight/structs.d.ts +205 -0
  61. package/sdk/src/_generated/liquid_staking/weight/structs.js +332 -0
  62. package/sdk/src/index.d.ts +44 -0
  63. package/sdk/src/index.js +234 -0
@@ -0,0 +1,487 @@
1
+ import * as reified from "../../../../_framework/reified";
2
+ import { PhantomReified, Reified, StructClass, ToField, ToTypeStr, ToTypeStr as ToPhantom } from "../../../../_framework/reified";
3
+ import { FieldsWithTypes } from "../../../../_framework/util";
4
+ import { Option } from "../../0x1/option/structs";
5
+ import { Bag } from "../../0x2/bag/structs";
6
+ import { Balance } from "../../0x2/balance/structs";
7
+ import { ID, UID } from "../../0x2/object/structs";
8
+ import { SUI } from "../../0x2/sui/structs";
9
+ import { Table } from "../../0x2/table/structs";
10
+ import { PKG_V16 } from "../index";
11
+ import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
12
+ export declare function isFungibleStakedSui(type: string): boolean;
13
+ export interface FungibleStakedSuiFields {
14
+ id: ToField<UID>;
15
+ poolId: ToField<ID>;
16
+ value: ToField<"u64">;
17
+ }
18
+ export type FungibleStakedSuiReified = Reified<FungibleStakedSui, FungibleStakedSuiFields>;
19
+ export declare class FungibleStakedSui implements StructClass {
20
+ __StructClass: true;
21
+ static readonly $typeName = "0x3::staking_pool::FungibleStakedSui";
22
+ static readonly $numTypeParams = 0;
23
+ static readonly $isPhantom: readonly [];
24
+ readonly $typeName = "0x3::staking_pool::FungibleStakedSui";
25
+ readonly $fullTypeName: `${typeof PKG_V16}::staking_pool::FungibleStakedSui`;
26
+ readonly $typeArgs: [];
27
+ readonly $isPhantom: readonly [];
28
+ readonly id: ToField<UID>;
29
+ readonly poolId: ToField<ID>;
30
+ readonly value: ToField<"u64">;
31
+ private constructor();
32
+ static reified(): FungibleStakedSuiReified;
33
+ static get r(): reified.StructClassReified<FungibleStakedSui, FungibleStakedSuiFields>;
34
+ static phantom(): PhantomReified<ToTypeStr<FungibleStakedSui>>;
35
+ static get p(): reified.PhantomReified<"0x3::staking_pool::FungibleStakedSui">;
36
+ static get bcs(): import("@mysten/sui/bcs").BcsType<{
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
+ }>;
57
+ static fromFields(fields: Record<string, any>): FungibleStakedSui;
58
+ static fromFieldsWithTypes(item: FieldsWithTypes): FungibleStakedSui;
59
+ static fromBcs(data: Uint8Array): FungibleStakedSui;
60
+ toJSONField(): {
61
+ id: string;
62
+ poolId: string;
63
+ value: string;
64
+ };
65
+ toJSON(): {
66
+ id: string;
67
+ poolId: string;
68
+ value: string;
69
+ $typeName: string;
70
+ $typeArgs: [];
71
+ };
72
+ static fromJSONField(field: any): FungibleStakedSui;
73
+ static fromJSON(json: Record<string, any>): FungibleStakedSui;
74
+ static fromSuiParsedData(content: SuiParsedData): FungibleStakedSui;
75
+ static fromSuiObjectData(data: SuiObjectData): FungibleStakedSui;
76
+ static fetch(client: SuiClient, id: string): Promise<FungibleStakedSui>;
77
+ }
78
+ export declare function isFungibleStakedSuiData(type: string): boolean;
79
+ export interface FungibleStakedSuiDataFields {
80
+ id: ToField<UID>;
81
+ totalSupply: ToField<"u64">;
82
+ principal: ToField<Balance<ToPhantom<SUI>>>;
83
+ }
84
+ export type FungibleStakedSuiDataReified = Reified<FungibleStakedSuiData, FungibleStakedSuiDataFields>;
85
+ export declare class FungibleStakedSuiData implements StructClass {
86
+ __StructClass: true;
87
+ static readonly $typeName = "0x3::staking_pool::FungibleStakedSuiData";
88
+ static readonly $numTypeParams = 0;
89
+ static readonly $isPhantom: readonly [];
90
+ readonly $typeName = "0x3::staking_pool::FungibleStakedSuiData";
91
+ readonly $fullTypeName: `${typeof PKG_V16}::staking_pool::FungibleStakedSuiData`;
92
+ readonly $typeArgs: [];
93
+ readonly $isPhantom: readonly [];
94
+ readonly id: ToField<UID>;
95
+ readonly totalSupply: ToField<"u64">;
96
+ readonly principal: ToField<Balance<ToPhantom<SUI>>>;
97
+ private constructor();
98
+ static reified(): FungibleStakedSuiDataReified;
99
+ static get r(): reified.StructClassReified<FungibleStakedSuiData, FungibleStakedSuiDataFields>;
100
+ static phantom(): PhantomReified<ToTypeStr<FungibleStakedSuiData>>;
101
+ static get p(): reified.PhantomReified<"0x3::staking_pool::FungibleStakedSuiData">;
102
+ static get bcs(): import("@mysten/sui/bcs").BcsType<{
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
+ }>;
123
+ static fromFields(fields: Record<string, any>): FungibleStakedSuiData;
124
+ static fromFieldsWithTypes(item: FieldsWithTypes): FungibleStakedSuiData;
125
+ static fromBcs(data: Uint8Array): FungibleStakedSuiData;
126
+ toJSONField(): {
127
+ id: string;
128
+ totalSupply: string;
129
+ principal: {
130
+ value: string;
131
+ };
132
+ };
133
+ toJSON(): {
134
+ id: string;
135
+ totalSupply: string;
136
+ principal: {
137
+ value: string;
138
+ };
139
+ $typeName: string;
140
+ $typeArgs: [];
141
+ };
142
+ static fromJSONField(field: any): FungibleStakedSuiData;
143
+ static fromJSON(json: Record<string, any>): FungibleStakedSuiData;
144
+ static fromSuiParsedData(content: SuiParsedData): FungibleStakedSuiData;
145
+ static fromSuiObjectData(data: SuiObjectData): FungibleStakedSuiData;
146
+ static fetch(client: SuiClient, id: string): Promise<FungibleStakedSuiData>;
147
+ }
148
+ export declare function isFungibleStakedSuiDataKey(type: string): boolean;
149
+ export interface FungibleStakedSuiDataKeyFields {
150
+ dummyField: ToField<"bool">;
151
+ }
152
+ export type FungibleStakedSuiDataKeyReified = Reified<FungibleStakedSuiDataKey, FungibleStakedSuiDataKeyFields>;
153
+ export declare class FungibleStakedSuiDataKey implements StructClass {
154
+ __StructClass: true;
155
+ static readonly $typeName = "0x3::staking_pool::FungibleStakedSuiDataKey";
156
+ static readonly $numTypeParams = 0;
157
+ static readonly $isPhantom: readonly [];
158
+ readonly $typeName = "0x3::staking_pool::FungibleStakedSuiDataKey";
159
+ readonly $fullTypeName: `${typeof PKG_V16}::staking_pool::FungibleStakedSuiDataKey`;
160
+ readonly $typeArgs: [];
161
+ readonly $isPhantom: readonly [];
162
+ readonly dummyField: ToField<"bool">;
163
+ private constructor();
164
+ static reified(): FungibleStakedSuiDataKeyReified;
165
+ static get r(): reified.StructClassReified<FungibleStakedSuiDataKey, FungibleStakedSuiDataKeyFields>;
166
+ static phantom(): PhantomReified<ToTypeStr<FungibleStakedSuiDataKey>>;
167
+ static get p(): reified.PhantomReified<"0x3::staking_pool::FungibleStakedSuiDataKey">;
168
+ static get bcs(): import("@mysten/sui/bcs").BcsType<{
169
+ dummy_field: boolean;
170
+ }, {
171
+ dummy_field: boolean;
172
+ }>;
173
+ static fromFields(fields: Record<string, any>): FungibleStakedSuiDataKey;
174
+ static fromFieldsWithTypes(item: FieldsWithTypes): FungibleStakedSuiDataKey;
175
+ static fromBcs(data: Uint8Array): FungibleStakedSuiDataKey;
176
+ toJSONField(): {
177
+ dummyField: boolean;
178
+ };
179
+ toJSON(): {
180
+ dummyField: boolean;
181
+ $typeName: string;
182
+ $typeArgs: [];
183
+ };
184
+ static fromJSONField(field: any): FungibleStakedSuiDataKey;
185
+ static fromJSON(json: Record<string, any>): FungibleStakedSuiDataKey;
186
+ static fromSuiParsedData(content: SuiParsedData): FungibleStakedSuiDataKey;
187
+ static fromSuiObjectData(data: SuiObjectData): FungibleStakedSuiDataKey;
188
+ static fetch(client: SuiClient, id: string): Promise<FungibleStakedSuiDataKey>;
189
+ }
190
+ export declare function isPoolTokenExchangeRate(type: string): boolean;
191
+ export interface PoolTokenExchangeRateFields {
192
+ suiAmount: ToField<"u64">;
193
+ poolTokenAmount: ToField<"u64">;
194
+ }
195
+ export type PoolTokenExchangeRateReified = Reified<PoolTokenExchangeRate, PoolTokenExchangeRateFields>;
196
+ export declare class PoolTokenExchangeRate implements StructClass {
197
+ __StructClass: true;
198
+ static readonly $typeName = "0x3::staking_pool::PoolTokenExchangeRate";
199
+ static readonly $numTypeParams = 0;
200
+ static readonly $isPhantom: readonly [];
201
+ readonly $typeName = "0x3::staking_pool::PoolTokenExchangeRate";
202
+ readonly $fullTypeName: `${typeof PKG_V16}::staking_pool::PoolTokenExchangeRate`;
203
+ readonly $typeArgs: [];
204
+ readonly $isPhantom: readonly [];
205
+ readonly suiAmount: ToField<"u64">;
206
+ readonly poolTokenAmount: ToField<"u64">;
207
+ private constructor();
208
+ static reified(): PoolTokenExchangeRateReified;
209
+ static get r(): reified.StructClassReified<PoolTokenExchangeRate, PoolTokenExchangeRateFields>;
210
+ static phantom(): PhantomReified<ToTypeStr<PoolTokenExchangeRate>>;
211
+ static get p(): reified.PhantomReified<"0x3::staking_pool::PoolTokenExchangeRate">;
212
+ static get bcs(): import("@mysten/sui/bcs").BcsType<{
213
+ sui_amount: string;
214
+ pool_token_amount: string;
215
+ }, {
216
+ sui_amount: string | number | bigint;
217
+ pool_token_amount: string | number | bigint;
218
+ }>;
219
+ static fromFields(fields: Record<string, any>): PoolTokenExchangeRate;
220
+ static fromFieldsWithTypes(item: FieldsWithTypes): PoolTokenExchangeRate;
221
+ static fromBcs(data: Uint8Array): PoolTokenExchangeRate;
222
+ toJSONField(): {
223
+ suiAmount: string;
224
+ poolTokenAmount: string;
225
+ };
226
+ toJSON(): {
227
+ suiAmount: string;
228
+ poolTokenAmount: string;
229
+ $typeName: string;
230
+ $typeArgs: [];
231
+ };
232
+ static fromJSONField(field: any): PoolTokenExchangeRate;
233
+ static fromJSON(json: Record<string, any>): PoolTokenExchangeRate;
234
+ static fromSuiParsedData(content: SuiParsedData): PoolTokenExchangeRate;
235
+ static fromSuiObjectData(data: SuiObjectData): PoolTokenExchangeRate;
236
+ static fetch(client: SuiClient, id: string): Promise<PoolTokenExchangeRate>;
237
+ }
238
+ export declare function isStakedSui(type: string): boolean;
239
+ export interface StakedSuiFields {
240
+ id: ToField<UID>;
241
+ poolId: ToField<ID>;
242
+ stakeActivationEpoch: ToField<"u64">;
243
+ principal: ToField<Balance<ToPhantom<SUI>>>;
244
+ }
245
+ export type StakedSuiReified = Reified<StakedSui, StakedSuiFields>;
246
+ export declare class StakedSui implements StructClass {
247
+ __StructClass: true;
248
+ static readonly $typeName = "0x3::staking_pool::StakedSui";
249
+ static readonly $numTypeParams = 0;
250
+ static readonly $isPhantom: readonly [];
251
+ readonly $typeName = "0x3::staking_pool::StakedSui";
252
+ readonly $fullTypeName: `${typeof PKG_V16}::staking_pool::StakedSui`;
253
+ readonly $typeArgs: [];
254
+ readonly $isPhantom: readonly [];
255
+ readonly id: ToField<UID>;
256
+ readonly poolId: ToField<ID>;
257
+ readonly stakeActivationEpoch: ToField<"u64">;
258
+ readonly principal: ToField<Balance<ToPhantom<SUI>>>;
259
+ private constructor();
260
+ static reified(): StakedSuiReified;
261
+ static get r(): reified.StructClassReified<StakedSui, StakedSuiFields>;
262
+ static phantom(): PhantomReified<ToTypeStr<StakedSui>>;
263
+ static get p(): reified.PhantomReified<"0x3::staking_pool::StakedSui">;
264
+ static get bcs(): import("@mysten/sui/bcs").BcsType<{
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
+ }>;
291
+ static fromFields(fields: Record<string, any>): StakedSui;
292
+ static fromFieldsWithTypes(item: FieldsWithTypes): StakedSui;
293
+ static fromBcs(data: Uint8Array): StakedSui;
294
+ toJSONField(): {
295
+ id: string;
296
+ poolId: string;
297
+ stakeActivationEpoch: string;
298
+ principal: {
299
+ value: string;
300
+ };
301
+ };
302
+ toJSON(): {
303
+ id: string;
304
+ poolId: string;
305
+ stakeActivationEpoch: string;
306
+ principal: {
307
+ value: string;
308
+ };
309
+ $typeName: string;
310
+ $typeArgs: [];
311
+ };
312
+ static fromJSONField(field: any): StakedSui;
313
+ static fromJSON(json: Record<string, any>): StakedSui;
314
+ static fromSuiParsedData(content: SuiParsedData): StakedSui;
315
+ static fromSuiObjectData(data: SuiObjectData): StakedSui;
316
+ static fetch(client: SuiClient, id: string): Promise<StakedSui>;
317
+ }
318
+ export declare function isStakingPool(type: string): boolean;
319
+ export interface StakingPoolFields {
320
+ id: ToField<UID>;
321
+ activationEpoch: ToField<Option<"u64">>;
322
+ deactivationEpoch: ToField<Option<"u64">>;
323
+ suiBalance: ToField<"u64">;
324
+ rewardsPool: ToField<Balance<ToPhantom<SUI>>>;
325
+ poolTokenBalance: ToField<"u64">;
326
+ exchangeRates: ToField<Table<"u64", ToPhantom<PoolTokenExchangeRate>>>;
327
+ pendingStake: ToField<"u64">;
328
+ pendingTotalSuiWithdraw: ToField<"u64">;
329
+ pendingPoolTokenWithdraw: ToField<"u64">;
330
+ extraFields: ToField<Bag>;
331
+ }
332
+ export type StakingPoolReified = Reified<StakingPool, StakingPoolFields>;
333
+ export declare class StakingPool implements StructClass {
334
+ __StructClass: true;
335
+ static readonly $typeName = "0x3::staking_pool::StakingPool";
336
+ static readonly $numTypeParams = 0;
337
+ static readonly $isPhantom: readonly [];
338
+ readonly $typeName = "0x3::staking_pool::StakingPool";
339
+ readonly $fullTypeName: `${typeof PKG_V16}::staking_pool::StakingPool`;
340
+ readonly $typeArgs: [];
341
+ readonly $isPhantom: readonly [];
342
+ readonly id: ToField<UID>;
343
+ readonly activationEpoch: ToField<Option<"u64">>;
344
+ readonly deactivationEpoch: ToField<Option<"u64">>;
345
+ readonly suiBalance: ToField<"u64">;
346
+ readonly rewardsPool: ToField<Balance<ToPhantom<SUI>>>;
347
+ readonly poolTokenBalance: ToField<"u64">;
348
+ readonly exchangeRates: ToField<Table<"u64", ToPhantom<PoolTokenExchangeRate>>>;
349
+ readonly pendingStake: ToField<"u64">;
350
+ readonly pendingTotalSuiWithdraw: ToField<"u64">;
351
+ readonly pendingPoolTokenWithdraw: ToField<"u64">;
352
+ readonly extraFields: ToField<Bag>;
353
+ private constructor();
354
+ static reified(): StakingPoolReified;
355
+ static get r(): reified.StructClassReified<StakingPool, StakingPoolFields>;
356
+ static phantom(): PhantomReified<ToTypeStr<StakingPool>>;
357
+ static get p(): reified.PhantomReified<"0x3::staking_pool::StakingPool">;
358
+ static get bcs(): import("@mysten/sui/bcs").BcsType<{
359
+ id: {
360
+ id: {
361
+ bytes: string;
362
+ };
363
+ };
364
+ activation_epoch: {
365
+ vec: any[];
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> & {
402
+ length: number;
403
+ };
404
+ };
405
+ deactivation_epoch: {
406
+ vec: Iterable<any> & {
407
+ 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
+ }>;
435
+ static fromFields(fields: Record<string, any>): StakingPool;
436
+ static fromFieldsWithTypes(item: FieldsWithTypes): StakingPool;
437
+ static fromBcs(data: Uint8Array): StakingPool;
438
+ toJSONField(): {
439
+ id: string;
440
+ activationEpoch: string | null;
441
+ deactivationEpoch: string | null;
442
+ suiBalance: string;
443
+ rewardsPool: {
444
+ value: string;
445
+ };
446
+ poolTokenBalance: string;
447
+ exchangeRates: {
448
+ id: string;
449
+ size: string;
450
+ };
451
+ pendingStake: string;
452
+ pendingTotalSuiWithdraw: string;
453
+ pendingPoolTokenWithdraw: string;
454
+ extraFields: {
455
+ id: string;
456
+ size: string;
457
+ };
458
+ };
459
+ toJSON(): {
460
+ id: string;
461
+ activationEpoch: string | null;
462
+ deactivationEpoch: string | null;
463
+ suiBalance: string;
464
+ rewardsPool: {
465
+ value: string;
466
+ };
467
+ poolTokenBalance: string;
468
+ exchangeRates: {
469
+ id: string;
470
+ size: string;
471
+ };
472
+ pendingStake: string;
473
+ pendingTotalSuiWithdraw: string;
474
+ pendingPoolTokenWithdraw: string;
475
+ extraFields: {
476
+ id: string;
477
+ size: string;
478
+ };
479
+ $typeName: string;
480
+ $typeArgs: [];
481
+ };
482
+ static fromJSONField(field: any): StakingPool;
483
+ static fromJSON(json: Record<string, any>): StakingPool;
484
+ static fromSuiParsedData(content: SuiParsedData): StakingPool;
485
+ static fromSuiObjectData(data: SuiObjectData): StakingPool;
486
+ static fetch(client: SuiClient, id: string): Promise<StakingPool>;
487
+ }