@suilend/springsui-cli 1.0.13 → 2.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.
- package/cli/src/bytecode.js +28 -30
- package/cli/src/index.js +51 -86
- package/package.json +1 -1
- package/sdk/src/_generated/_dependencies/source/0x1/ascii/structs.d.ts +7 -7
- package/sdk/src/_generated/_dependencies/source/0x1/ascii/structs.js +35 -75
- package/sdk/src/_generated/_dependencies/source/0x1/index.js +3 -6
- package/sdk/src/_generated/_dependencies/source/0x1/option/structs.d.ts +3 -3
- package/sdk/src/_generated/_dependencies/source/0x1/option/structs.js +31 -69
- package/sdk/src/_generated/_dependencies/source/0x1/string/structs.d.ts +4 -4
- package/sdk/src/_generated/_dependencies/source/0x1/string/structs.js +21 -59
- package/sdk/src/_generated/_dependencies/source/0x1/type-name/structs.d.ts +5 -5
- package/sdk/src/_generated/_dependencies/source/0x1/type-name/structs.js +20 -25
- package/sdk/src/_generated/_dependencies/source/0x2/bag/structs.d.ts +7 -7
- package/sdk/src/_generated/_dependencies/source/0x2/bag/structs.js +24 -29
- package/sdk/src/_generated/_dependencies/source/0x2/balance/structs.d.ts +7 -7
- package/sdk/src/_generated/_dependencies/source/0x2/balance/structs.js +49 -56
- package/sdk/src/_generated/_dependencies/source/0x2/coin/structs.d.ts +52 -52
- package/sdk/src/_generated/_dependencies/source/0x2/coin/structs.js +206 -223
- package/sdk/src/_generated/_dependencies/source/0x2/index.js +3 -6
- package/sdk/src/_generated/_dependencies/source/0x2/object/structs.d.ts +8 -8
- package/sdk/src/_generated/_dependencies/source/0x2/object/structs.js +34 -41
- package/sdk/src/_generated/_dependencies/source/0x2/sui/structs.d.ts +4 -4
- package/sdk/src/_generated/_dependencies/source/0x2/sui/structs.js +19 -24
- package/sdk/src/_generated/_dependencies/source/0x2/table/structs.d.ts +7 -7
- package/sdk/src/_generated/_dependencies/source/0x2/table/structs.js +31 -36
- package/sdk/src/_generated/_dependencies/source/0x2/url/structs.d.ts +5 -5
- package/sdk/src/_generated/_dependencies/source/0x2/url/structs.js +20 -25
- package/sdk/src/_generated/_dependencies/source/0x2/vec-map/structs.d.ts +5 -5
- package/sdk/src/_generated/_dependencies/source/0x2/vec-map/structs.js +57 -97
- package/sdk/src/_generated/_dependencies/source/0x3/index.js +3 -6
- package/sdk/src/_generated/_dependencies/source/0x3/staking-pool/structs.d.ts +60 -60
- package/sdk/src/_generated/_dependencies/source/0x3/staking-pool/structs.js +170 -218
- package/sdk/src/_generated/_framework/reified.d.ts +2 -2
- package/sdk/src/_generated/_framework/reified.js +27 -40
- package/sdk/src/_generated/_framework/util.d.ts +2 -14
- package/sdk/src/_generated/_framework/util.js +26 -40
- package/sdk/src/_generated/_framework/vector.d.ts +4 -4
- package/sdk/src/_generated/_framework/vector.js +16 -21
- package/sdk/src/_generated/liquid_staking/cell/structs.d.ts +4 -4
- package/sdk/src/_generated/liquid_staking/cell/structs.js +31 -36
- package/sdk/src/_generated/liquid_staking/fees/functions.js +55 -75
- package/sdk/src/_generated/liquid_staking/fees/structs.d.ts +21 -21
- package/sdk/src/_generated/liquid_staking/fees/structs.js +58 -65
- package/sdk/src/_generated/liquid_staking/index.js +6 -10
- package/sdk/src/_generated/liquid_staking/liquid-staking/functions.js +86 -107
- package/sdk/src/_generated/liquid_staking/liquid-staking/structs.d.ts +98 -98
- package/sdk/src/_generated/liquid_staking/liquid-staking/structs.js +264 -320
- package/sdk/src/_generated/liquid_staking/storage/structs.d.ts +31 -31
- package/sdk/src/_generated/liquid_staking/storage/structs.js +85 -125
- package/sdk/src/_generated/liquid_staking/version/structs.d.ts +4 -4
- package/sdk/src/_generated/liquid_staking/version/structs.js +19 -24
- package/sdk/src/_generated/liquid_staking/weight/functions.js +44 -56
- package/sdk/src/_generated/liquid_staking/weight/structs.d.ts +41 -41
- package/sdk/src/_generated/liquid_staking/weight/structs.js +128 -141
- package/sdk/src/client.d.ts +16 -16
- package/sdk/src/client.js +39 -82
- package/sdk/src/index.js +2 -18
- package/sdk/src/lib/index.js +1 -17
- package/sdk/src/lib/transactions.d.ts +1 -1
- package/sdk/src/lib/transactions.js +3 -8
|
@@ -8,7 +8,7 @@ import { ID, UID } from "../../0x2/object/structs";
|
|
|
8
8
|
import { SUI } from "../../0x2/sui/structs";
|
|
9
9
|
import { Table } from "../../0x2/table/structs";
|
|
10
10
|
import { PKG_V19 } from "../index";
|
|
11
|
-
import {
|
|
11
|
+
import { SuiJsonRpcClient, SuiObjectData, SuiParsedData } from "@mysten/sui/jsonRpc";
|
|
12
12
|
export declare function isFungibleStakedSui(type: string): boolean;
|
|
13
13
|
export interface FungibleStakedSuiFields {
|
|
14
14
|
id: ToField<UID>;
|
|
@@ -33,16 +33,16 @@ export declare class FungibleStakedSui implements StructClass {
|
|
|
33
33
|
static get r(): reified.StructClassReified<FungibleStakedSui, FungibleStakedSuiFields>;
|
|
34
34
|
static phantom(): PhantomReified<ToTypeStr<FungibleStakedSui>>;
|
|
35
35
|
static get p(): reified.PhantomReified<"0x3::staking_pool::FungibleStakedSui">;
|
|
36
|
-
static get bcs(): import("@mysten/
|
|
37
|
-
id: import("@mysten/
|
|
38
|
-
id: import("@mysten/
|
|
39
|
-
bytes: import("@mysten/
|
|
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
|
-
pool_id: import("@mysten/
|
|
43
|
-
bytes: import("@mysten/
|
|
42
|
+
pool_id: import("@mysten/bcs").BcsStruct<{
|
|
43
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
44
44
|
}, string>;
|
|
45
|
-
value: import("@mysten/
|
|
45
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
46
46
|
}, string>;
|
|
47
47
|
static fromFields(fields: Record<string, any>): FungibleStakedSui;
|
|
48
48
|
static fromFieldsWithTypes(item: FieldsWithTypes): FungibleStakedSui;
|
|
@@ -63,7 +63,7 @@ export declare class FungibleStakedSui implements StructClass {
|
|
|
63
63
|
static fromJSON(json: Record<string, any>): FungibleStakedSui;
|
|
64
64
|
static fromSuiParsedData(content: SuiParsedData): FungibleStakedSui;
|
|
65
65
|
static fromSuiObjectData(data: SuiObjectData): FungibleStakedSui;
|
|
66
|
-
static fetch(client:
|
|
66
|
+
static fetch(client: SuiJsonRpcClient, id: string): Promise<FungibleStakedSui>;
|
|
67
67
|
}
|
|
68
68
|
export declare function isFungibleStakedSuiData(type: string): boolean;
|
|
69
69
|
export interface FungibleStakedSuiDataFields {
|
|
@@ -89,15 +89,15 @@ export declare class FungibleStakedSuiData implements StructClass {
|
|
|
89
89
|
static get r(): reified.StructClassReified<FungibleStakedSuiData, FungibleStakedSuiDataFields>;
|
|
90
90
|
static phantom(): PhantomReified<ToTypeStr<FungibleStakedSuiData>>;
|
|
91
91
|
static get p(): reified.PhantomReified<"0x3::staking_pool::FungibleStakedSuiData">;
|
|
92
|
-
static get bcs(): import("@mysten/
|
|
93
|
-
id: import("@mysten/
|
|
94
|
-
id: import("@mysten/
|
|
95
|
-
bytes: import("@mysten/
|
|
92
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
93
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
94
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
95
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
96
96
|
}, string>;
|
|
97
97
|
}, string>;
|
|
98
|
-
total_supply: import("@mysten/
|
|
99
|
-
principal: import("@mysten/
|
|
100
|
-
value: import("@mysten/
|
|
98
|
+
total_supply: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
99
|
+
principal: import("@mysten/bcs").BcsStruct<{
|
|
100
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
101
101
|
}, string>;
|
|
102
102
|
}, string>;
|
|
103
103
|
static fromFields(fields: Record<string, any>): FungibleStakedSuiData;
|
|
@@ -123,7 +123,7 @@ export declare class FungibleStakedSuiData implements StructClass {
|
|
|
123
123
|
static fromJSON(json: Record<string, any>): FungibleStakedSuiData;
|
|
124
124
|
static fromSuiParsedData(content: SuiParsedData): FungibleStakedSuiData;
|
|
125
125
|
static fromSuiObjectData(data: SuiObjectData): FungibleStakedSuiData;
|
|
126
|
-
static fetch(client:
|
|
126
|
+
static fetch(client: SuiJsonRpcClient, id: string): Promise<FungibleStakedSuiData>;
|
|
127
127
|
}
|
|
128
128
|
export declare function isFungibleStakedSuiDataKey(type: string): boolean;
|
|
129
129
|
export interface FungibleStakedSuiDataKeyFields {
|
|
@@ -145,8 +145,8 @@ export declare class FungibleStakedSuiDataKey implements StructClass {
|
|
|
145
145
|
static get r(): reified.StructClassReified<FungibleStakedSuiDataKey, FungibleStakedSuiDataKeyFields>;
|
|
146
146
|
static phantom(): PhantomReified<ToTypeStr<FungibleStakedSuiDataKey>>;
|
|
147
147
|
static get p(): reified.PhantomReified<"0x3::staking_pool::FungibleStakedSuiDataKey">;
|
|
148
|
-
static get bcs(): import("@mysten/
|
|
149
|
-
dummy_field: import("@mysten/
|
|
148
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
149
|
+
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
150
150
|
}, string>;
|
|
151
151
|
static fromFields(fields: Record<string, any>): FungibleStakedSuiDataKey;
|
|
152
152
|
static fromFieldsWithTypes(item: FieldsWithTypes): FungibleStakedSuiDataKey;
|
|
@@ -163,7 +163,7 @@ export declare class FungibleStakedSuiDataKey implements StructClass {
|
|
|
163
163
|
static fromJSON(json: Record<string, any>): FungibleStakedSuiDataKey;
|
|
164
164
|
static fromSuiParsedData(content: SuiParsedData): FungibleStakedSuiDataKey;
|
|
165
165
|
static fromSuiObjectData(data: SuiObjectData): FungibleStakedSuiDataKey;
|
|
166
|
-
static fetch(client:
|
|
166
|
+
static fetch(client: SuiJsonRpcClient, id: string): Promise<FungibleStakedSuiDataKey>;
|
|
167
167
|
}
|
|
168
168
|
export declare function isPoolTokenExchangeRate(type: string): boolean;
|
|
169
169
|
export interface PoolTokenExchangeRateFields {
|
|
@@ -187,9 +187,9 @@ export declare class PoolTokenExchangeRate implements StructClass {
|
|
|
187
187
|
static get r(): reified.StructClassReified<PoolTokenExchangeRate, PoolTokenExchangeRateFields>;
|
|
188
188
|
static phantom(): PhantomReified<ToTypeStr<PoolTokenExchangeRate>>;
|
|
189
189
|
static get p(): reified.PhantomReified<"0x3::staking_pool::PoolTokenExchangeRate">;
|
|
190
|
-
static get bcs(): import("@mysten/
|
|
191
|
-
sui_amount: import("@mysten/
|
|
192
|
-
pool_token_amount: import("@mysten/
|
|
190
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
191
|
+
sui_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
192
|
+
pool_token_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
193
193
|
}, string>;
|
|
194
194
|
static fromFields(fields: Record<string, any>): PoolTokenExchangeRate;
|
|
195
195
|
static fromFieldsWithTypes(item: FieldsWithTypes): PoolTokenExchangeRate;
|
|
@@ -208,7 +208,7 @@ export declare class PoolTokenExchangeRate implements StructClass {
|
|
|
208
208
|
static fromJSON(json: Record<string, any>): PoolTokenExchangeRate;
|
|
209
209
|
static fromSuiParsedData(content: SuiParsedData): PoolTokenExchangeRate;
|
|
210
210
|
static fromSuiObjectData(data: SuiObjectData): PoolTokenExchangeRate;
|
|
211
|
-
static fetch(client:
|
|
211
|
+
static fetch(client: SuiJsonRpcClient, id: string): Promise<PoolTokenExchangeRate>;
|
|
212
212
|
}
|
|
213
213
|
export declare function isStakedSui(type: string): boolean;
|
|
214
214
|
export interface StakedSuiFields {
|
|
@@ -236,18 +236,18 @@ export declare class StakedSui implements StructClass {
|
|
|
236
236
|
static get r(): reified.StructClassReified<StakedSui, StakedSuiFields>;
|
|
237
237
|
static phantom(): PhantomReified<ToTypeStr<StakedSui>>;
|
|
238
238
|
static get p(): reified.PhantomReified<"0x3::staking_pool::StakedSui">;
|
|
239
|
-
static get bcs(): import("@mysten/
|
|
240
|
-
id: import("@mysten/
|
|
241
|
-
id: import("@mysten/
|
|
242
|
-
bytes: import("@mysten/
|
|
239
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
240
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
241
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
242
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
243
243
|
}, string>;
|
|
244
244
|
}, string>;
|
|
245
|
-
pool_id: import("@mysten/
|
|
246
|
-
bytes: import("@mysten/
|
|
245
|
+
pool_id: import("@mysten/bcs").BcsStruct<{
|
|
246
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
247
247
|
}, string>;
|
|
248
|
-
stake_activation_epoch: import("@mysten/
|
|
249
|
-
principal: import("@mysten/
|
|
250
|
-
value: import("@mysten/
|
|
248
|
+
stake_activation_epoch: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
249
|
+
principal: import("@mysten/bcs").BcsStruct<{
|
|
250
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
251
251
|
}, string>;
|
|
252
252
|
}, string>;
|
|
253
253
|
static fromFields(fields: Record<string, any>): StakedSui;
|
|
@@ -275,7 +275,7 @@ export declare class StakedSui implements StructClass {
|
|
|
275
275
|
static fromJSON(json: Record<string, any>): StakedSui;
|
|
276
276
|
static fromSuiParsedData(content: SuiParsedData): StakedSui;
|
|
277
277
|
static fromSuiObjectData(data: SuiObjectData): StakedSui;
|
|
278
|
-
static fetch(client:
|
|
278
|
+
static fetch(client: SuiJsonRpcClient, id: string): Promise<StakedSui>;
|
|
279
279
|
}
|
|
280
280
|
export declare function isStakingPool(type: string): boolean;
|
|
281
281
|
export interface StakingPoolFields {
|
|
@@ -317,45 +317,45 @@ export declare class StakingPool implements StructClass {
|
|
|
317
317
|
static get r(): reified.StructClassReified<StakingPool, StakingPoolFields>;
|
|
318
318
|
static phantom(): PhantomReified<ToTypeStr<StakingPool>>;
|
|
319
319
|
static get p(): reified.PhantomReified<"0x3::staking_pool::StakingPool">;
|
|
320
|
-
static get bcs(): import("@mysten/
|
|
321
|
-
id: import("@mysten/
|
|
322
|
-
id: import("@mysten/
|
|
323
|
-
bytes: import("@mysten/
|
|
320
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
321
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
322
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
323
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
324
324
|
}, string>;
|
|
325
325
|
}, string>;
|
|
326
|
-
activation_epoch: import("@mysten/
|
|
327
|
-
vec: import("@mysten/
|
|
326
|
+
activation_epoch: import("@mysten/bcs").BcsStruct<{
|
|
327
|
+
vec: import("@mysten/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
328
328
|
length: number;
|
|
329
329
|
}, string>;
|
|
330
330
|
}, string>;
|
|
331
|
-
deactivation_epoch: import("@mysten/
|
|
332
|
-
vec: import("@mysten/
|
|
331
|
+
deactivation_epoch: import("@mysten/bcs").BcsStruct<{
|
|
332
|
+
vec: import("@mysten/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
333
333
|
length: number;
|
|
334
334
|
}, string>;
|
|
335
335
|
}, string>;
|
|
336
|
-
sui_balance: import("@mysten/
|
|
337
|
-
rewards_pool: import("@mysten/
|
|
338
|
-
value: import("@mysten/
|
|
336
|
+
sui_balance: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
337
|
+
rewards_pool: import("@mysten/bcs").BcsStruct<{
|
|
338
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
339
339
|
}, string>;
|
|
340
|
-
pool_token_balance: import("@mysten/
|
|
341
|
-
exchange_rates: import("@mysten/
|
|
342
|
-
id: import("@mysten/
|
|
343
|
-
id: import("@mysten/
|
|
344
|
-
bytes: import("@mysten/
|
|
340
|
+
pool_token_balance: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
341
|
+
exchange_rates: import("@mysten/bcs").BcsStruct<{
|
|
342
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
343
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
344
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
345
345
|
}, string>;
|
|
346
346
|
}, string>;
|
|
347
|
-
size: import("@mysten/
|
|
347
|
+
size: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
348
348
|
}, string>;
|
|
349
|
-
pending_stake: import("@mysten/
|
|
350
|
-
pending_total_sui_withdraw: import("@mysten/
|
|
351
|
-
pending_pool_token_withdraw: import("@mysten/
|
|
352
|
-
extra_fields: import("@mysten/
|
|
353
|
-
id: import("@mysten/
|
|
354
|
-
id: import("@mysten/
|
|
355
|
-
bytes: import("@mysten/
|
|
349
|
+
pending_stake: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
350
|
+
pending_total_sui_withdraw: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
351
|
+
pending_pool_token_withdraw: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
352
|
+
extra_fields: import("@mysten/bcs").BcsStruct<{
|
|
353
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
354
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
355
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
356
356
|
}, string>;
|
|
357
357
|
}, string>;
|
|
358
|
-
size: import("@mysten/
|
|
358
|
+
size: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
359
359
|
}, string>;
|
|
360
360
|
}, string>;
|
|
361
361
|
static fromFields(fields: Record<string, any>): StakingPool;
|
|
@@ -409,5 +409,5 @@ export declare class StakingPool implements StructClass {
|
|
|
409
409
|
static fromJSON(json: Record<string, any>): StakingPool;
|
|
410
410
|
static fromSuiParsedData(content: SuiParsedData): StakingPool;
|
|
411
411
|
static fromSuiObjectData(data: SuiObjectData): StakingPool;
|
|
412
|
-
static fetch(client:
|
|
412
|
+
static fetch(client: SuiJsonRpcClient, id: string): Promise<StakingPool>;
|
|
413
413
|
}
|