@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,358 @@
1
+ import * as reified from "../../_framework/reified";
2
+ import { Option } from "../../_dependencies/source/0x1/option/structs";
3
+ import { Bag } from "../../_dependencies/source/0x2/bag/structs";
4
+ import { Balance } from "../../_dependencies/source/0x2/balance/structs";
5
+ import { ID } from "../../_dependencies/source/0x2/object/structs";
6
+ import { SUI } from "../../_dependencies/source/0x2/sui/structs";
7
+ import { FungibleStakedSui, PoolTokenExchangeRate, StakedSui } from "../../_dependencies/source/0x3/staking-pool/structs";
8
+ import { PhantomReified, Reified, StructClass, ToField, ToTypeStr, ToTypeStr as ToPhantom } from "../../_framework/reified";
9
+ import { FieldsWithTypes } from "../../_framework/util";
10
+ import { Vector } from "../../_framework/vector";
11
+ import { PKG_V1 } from "../index";
12
+ import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
13
+ export declare function isStorage(type: string): boolean;
14
+ export interface StorageFields {
15
+ suiPool: ToField<Balance<ToPhantom<SUI>>>;
16
+ validatorInfos: ToField<Vector<ValidatorInfo>>;
17
+ totalSuiSupply: ToField<"u64">;
18
+ lastRefreshEpoch: ToField<"u64">;
19
+ extraFields: ToField<Bag>;
20
+ }
21
+ export type StorageReified = Reified<Storage, StorageFields>;
22
+ export declare class Storage implements StructClass {
23
+ __StructClass: true;
24
+ static readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::storage::Storage";
25
+ static readonly $numTypeParams = 0;
26
+ static readonly $isPhantom: readonly [];
27
+ readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::storage::Storage";
28
+ readonly $fullTypeName: `${typeof PKG_V1}::storage::Storage`;
29
+ readonly $typeArgs: [];
30
+ readonly $isPhantom: readonly [];
31
+ readonly suiPool: ToField<Balance<ToPhantom<SUI>>>;
32
+ readonly validatorInfos: ToField<Vector<ValidatorInfo>>;
33
+ readonly totalSuiSupply: ToField<"u64">;
34
+ readonly lastRefreshEpoch: ToField<"u64">;
35
+ readonly extraFields: ToField<Bag>;
36
+ private constructor();
37
+ static reified(): StorageReified;
38
+ static get r(): reified.StructClassReified<Storage, StorageFields>;
39
+ static phantom(): PhantomReified<ToTypeStr<Storage>>;
40
+ static get p(): reified.PhantomReified<"0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::storage::Storage">;
41
+ static get bcs(): import("@mysten/sui/bcs").BcsType<{
42
+ sui_pool: {
43
+ value: string;
44
+ };
45
+ validator_infos: {
46
+ staking_pool_id: {
47
+ bytes: string;
48
+ };
49
+ validator_address: string;
50
+ active_stake: {
51
+ vec: any[];
52
+ };
53
+ inactive_stake: {
54
+ vec: any[];
55
+ };
56
+ exchange_rate: {
57
+ sui_amount: string;
58
+ pool_token_amount: string;
59
+ };
60
+ total_sui_amount: string;
61
+ extra_fields: {
62
+ id: {
63
+ id: {
64
+ bytes: string;
65
+ };
66
+ };
67
+ size: string;
68
+ };
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<{
85
+ staking_pool_id: {
86
+ bytes: string;
87
+ };
88
+ validator_address: string;
89
+ active_stake: {
90
+ vec: Iterable<any> & {
91
+ length: number;
92
+ };
93
+ };
94
+ inactive_stake: {
95
+ vec: Iterable<any> & {
96
+ length: number;
97
+ };
98
+ };
99
+ exchange_rate: {
100
+ sui_amount: string | number | bigint;
101
+ pool_token_amount: string | number | bigint;
102
+ };
103
+ total_sui_amount: string | number | bigint;
104
+ extra_fields: {
105
+ id: {
106
+ id: {
107
+ bytes: string;
108
+ };
109
+ };
110
+ size: string | number | bigint;
111
+ };
112
+ }> & {
113
+ 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
+ }>;
126
+ static fromFields(fields: Record<string, any>): Storage;
127
+ static fromFieldsWithTypes(item: FieldsWithTypes): Storage;
128
+ static fromBcs(data: Uint8Array): Storage;
129
+ toJSONField(): {
130
+ suiPool: {
131
+ value: string;
132
+ };
133
+ validatorInfos: {
134
+ stakingPoolId: string;
135
+ validatorAddress: string;
136
+ activeStake: {
137
+ id: string;
138
+ poolId: string;
139
+ value: string;
140
+ } | null;
141
+ inactiveStake: {
142
+ id: string;
143
+ poolId: string;
144
+ stakeActivationEpoch: string;
145
+ principal: {
146
+ value: string;
147
+ };
148
+ } | null;
149
+ exchangeRate: {
150
+ suiAmount: string;
151
+ poolTokenAmount: string;
152
+ };
153
+ totalSuiAmount: string;
154
+ extraFields: {
155
+ id: string;
156
+ size: string;
157
+ };
158
+ }[];
159
+ totalSuiSupply: string;
160
+ lastRefreshEpoch: string;
161
+ extraFields: {
162
+ id: string;
163
+ size: string;
164
+ };
165
+ };
166
+ toJSON(): {
167
+ suiPool: {
168
+ value: string;
169
+ };
170
+ validatorInfos: {
171
+ stakingPoolId: string;
172
+ validatorAddress: string;
173
+ activeStake: {
174
+ id: string;
175
+ poolId: string;
176
+ value: string;
177
+ } | null;
178
+ inactiveStake: {
179
+ id: string;
180
+ poolId: string;
181
+ stakeActivationEpoch: string;
182
+ principal: {
183
+ value: string;
184
+ };
185
+ } | null;
186
+ exchangeRate: {
187
+ suiAmount: string;
188
+ poolTokenAmount: string;
189
+ };
190
+ totalSuiAmount: string;
191
+ extraFields: {
192
+ id: string;
193
+ size: string;
194
+ };
195
+ }[];
196
+ totalSuiSupply: string;
197
+ lastRefreshEpoch: string;
198
+ extraFields: {
199
+ id: string;
200
+ size: string;
201
+ };
202
+ $typeName: string;
203
+ $typeArgs: [];
204
+ };
205
+ static fromJSONField(field: any): Storage;
206
+ static fromJSON(json: Record<string, any>): Storage;
207
+ static fromSuiParsedData(content: SuiParsedData): Storage;
208
+ static fromSuiObjectData(data: SuiObjectData): Storage;
209
+ static fetch(client: SuiClient, id: string): Promise<Storage>;
210
+ }
211
+ export declare function isValidatorInfo(type: string): boolean;
212
+ export interface ValidatorInfoFields {
213
+ stakingPoolId: ToField<ID>;
214
+ validatorAddress: ToField<"address">;
215
+ activeStake: ToField<Option<FungibleStakedSui>>;
216
+ inactiveStake: ToField<Option<StakedSui>>;
217
+ exchangeRate: ToField<PoolTokenExchangeRate>;
218
+ totalSuiAmount: ToField<"u64">;
219
+ extraFields: ToField<Bag>;
220
+ }
221
+ export type ValidatorInfoReified = Reified<ValidatorInfo, ValidatorInfoFields>;
222
+ export declare class ValidatorInfo implements StructClass {
223
+ __StructClass: true;
224
+ static readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::storage::ValidatorInfo";
225
+ static readonly $numTypeParams = 0;
226
+ static readonly $isPhantom: readonly [];
227
+ readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::storage::ValidatorInfo";
228
+ readonly $fullTypeName: `${typeof PKG_V1}::storage::ValidatorInfo`;
229
+ readonly $typeArgs: [];
230
+ readonly $isPhantom: readonly [];
231
+ readonly stakingPoolId: ToField<ID>;
232
+ readonly validatorAddress: ToField<"address">;
233
+ readonly activeStake: ToField<Option<FungibleStakedSui>>;
234
+ readonly inactiveStake: ToField<Option<StakedSui>>;
235
+ readonly exchangeRate: ToField<PoolTokenExchangeRate>;
236
+ readonly totalSuiAmount: ToField<"u64">;
237
+ readonly extraFields: ToField<Bag>;
238
+ private constructor();
239
+ static reified(): ValidatorInfoReified;
240
+ static get r(): reified.StructClassReified<ValidatorInfo, ValidatorInfoFields>;
241
+ static phantom(): PhantomReified<ToTypeStr<ValidatorInfo>>;
242
+ static get p(): reified.PhantomReified<"0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::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: {
261
+ id: {
262
+ bytes: string;
263
+ };
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> & {
274
+ 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: {
289
+ id: {
290
+ bytes: string;
291
+ };
292
+ };
293
+ size: string | number | bigint;
294
+ };
295
+ }>;
296
+ static fromFields(fields: Record<string, any>): ValidatorInfo;
297
+ static fromFieldsWithTypes(item: FieldsWithTypes): ValidatorInfo;
298
+ static fromBcs(data: Uint8Array): ValidatorInfo;
299
+ toJSONField(): {
300
+ stakingPoolId: string;
301
+ validatorAddress: string;
302
+ activeStake: {
303
+ id: string;
304
+ poolId: string;
305
+ value: string;
306
+ } | null;
307
+ inactiveStake: {
308
+ id: string;
309
+ poolId: string;
310
+ stakeActivationEpoch: string;
311
+ principal: {
312
+ value: string;
313
+ };
314
+ } | null;
315
+ exchangeRate: {
316
+ suiAmount: string;
317
+ poolTokenAmount: string;
318
+ };
319
+ totalSuiAmount: string;
320
+ extraFields: {
321
+ id: string;
322
+ size: string;
323
+ };
324
+ };
325
+ toJSON(): {
326
+ stakingPoolId: string;
327
+ validatorAddress: string;
328
+ activeStake: {
329
+ id: string;
330
+ poolId: string;
331
+ value: string;
332
+ } | null;
333
+ inactiveStake: {
334
+ id: string;
335
+ poolId: string;
336
+ stakeActivationEpoch: string;
337
+ principal: {
338
+ value: string;
339
+ };
340
+ } | null;
341
+ exchangeRate: {
342
+ suiAmount: string;
343
+ poolTokenAmount: string;
344
+ };
345
+ totalSuiAmount: string;
346
+ extraFields: {
347
+ id: string;
348
+ size: string;
349
+ };
350
+ $typeName: string;
351
+ $typeArgs: [];
352
+ };
353
+ static fromJSONField(field: any): ValidatorInfo;
354
+ static fromJSON(json: Record<string, any>): ValidatorInfo;
355
+ static fromSuiParsedData(content: SuiParsedData): ValidatorInfo;
356
+ static fromSuiObjectData(data: SuiObjectData): ValidatorInfo;
357
+ static fetch(client: SuiClient, id: string): Promise<ValidatorInfo>;
358
+ }