@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
|
@@ -7,7 +7,7 @@ import { Balance, Supply } from "../balance/structs";
|
|
|
7
7
|
import { PKG_V31 } from "../index";
|
|
8
8
|
import { ID, UID } from "../object/structs";
|
|
9
9
|
import { Url } from "../url/structs";
|
|
10
|
-
import {
|
|
10
|
+
import { SuiJsonRpcClient, SuiObjectData, SuiParsedData } from "@mysten/sui/jsonRpc";
|
|
11
11
|
export declare function isCoin(type: string): boolean;
|
|
12
12
|
export interface CoinFields<T extends PhantomTypeArgument> {
|
|
13
13
|
id: ToField<UID>;
|
|
@@ -30,14 +30,14 @@ export declare class Coin<T extends PhantomTypeArgument> implements StructClass
|
|
|
30
30
|
static get r(): typeof Coin.reified;
|
|
31
31
|
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<Coin<ToPhantomTypeArgument<T>>>>;
|
|
32
32
|
static get p(): typeof Coin.phantom;
|
|
33
|
-
static get bcs(): import("@mysten/
|
|
34
|
-
id: import("@mysten/
|
|
35
|
-
id: import("@mysten/
|
|
36
|
-
bytes: import("@mysten/
|
|
33
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
34
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
35
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
36
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
37
37
|
}, string>;
|
|
38
38
|
}, string>;
|
|
39
|
-
balance: import("@mysten/
|
|
40
|
-
value: import("@mysten/
|
|
39
|
+
balance: import("@mysten/bcs").BcsStruct<{
|
|
40
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
41
41
|
}, string>;
|
|
42
42
|
}, string>;
|
|
43
43
|
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): Coin<ToPhantomTypeArgument<T>>;
|
|
@@ -61,7 +61,7 @@ export declare class Coin<T extends PhantomTypeArgument> implements StructClass
|
|
|
61
61
|
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): Coin<ToPhantomTypeArgument<T>>;
|
|
62
62
|
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): Coin<ToPhantomTypeArgument<T>>;
|
|
63
63
|
static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): Coin<ToPhantomTypeArgument<T>>;
|
|
64
|
-
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client:
|
|
64
|
+
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArg: T, id: string): Promise<Coin<ToPhantomTypeArgument<T>>>;
|
|
65
65
|
}
|
|
66
66
|
export declare function isCoinMetadata(type: string): boolean;
|
|
67
67
|
export interface CoinMetadataFields<T extends PhantomTypeArgument> {
|
|
@@ -93,30 +93,30 @@ export declare class CoinMetadata<T extends PhantomTypeArgument> implements Stru
|
|
|
93
93
|
static get r(): typeof CoinMetadata.reified;
|
|
94
94
|
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<CoinMetadata<ToPhantomTypeArgument<T>>>>;
|
|
95
95
|
static get p(): typeof CoinMetadata.phantom;
|
|
96
|
-
static get bcs(): import("@mysten/
|
|
97
|
-
id: import("@mysten/
|
|
98
|
-
id: import("@mysten/
|
|
99
|
-
bytes: import("@mysten/
|
|
96
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
97
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
98
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
99
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
100
100
|
}, string>;
|
|
101
101
|
}, string>;
|
|
102
|
-
decimals: import("@mysten/
|
|
103
|
-
name: import("@mysten/
|
|
104
|
-
bytes: import("@mysten/
|
|
102
|
+
decimals: import("@mysten/bcs").BcsType<number, number, "u8">;
|
|
103
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
104
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
105
105
|
length: number;
|
|
106
106
|
}, string>;
|
|
107
107
|
}, string>;
|
|
108
|
-
symbol: import("@mysten/
|
|
109
|
-
bytes: import("@mysten/
|
|
108
|
+
symbol: import("@mysten/bcs").BcsStruct<{
|
|
109
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
110
110
|
length: number;
|
|
111
111
|
}, string>;
|
|
112
112
|
}, string>;
|
|
113
|
-
description: import("@mysten/
|
|
114
|
-
bytes: import("@mysten/
|
|
113
|
+
description: import("@mysten/bcs").BcsStruct<{
|
|
114
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
115
115
|
length: number;
|
|
116
116
|
}, string>;
|
|
117
117
|
}, string>;
|
|
118
|
-
icon_url: import("@mysten/
|
|
119
|
-
vec: import("@mysten/
|
|
118
|
+
icon_url: import("@mysten/bcs").BcsStruct<{
|
|
119
|
+
vec: import("@mysten/bcs").BcsType<{
|
|
120
120
|
url: {
|
|
121
121
|
bytes: number[];
|
|
122
122
|
};
|
|
@@ -156,7 +156,7 @@ export declare class CoinMetadata<T extends PhantomTypeArgument> implements Stru
|
|
|
156
156
|
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): CoinMetadata<ToPhantomTypeArgument<T>>;
|
|
157
157
|
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): CoinMetadata<ToPhantomTypeArgument<T>>;
|
|
158
158
|
static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): CoinMetadata<ToPhantomTypeArgument<T>>;
|
|
159
|
-
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client:
|
|
159
|
+
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArg: T, id: string): Promise<CoinMetadata<ToPhantomTypeArgument<T>>>;
|
|
160
160
|
}
|
|
161
161
|
export declare function isCurrencyCreated(type: string): boolean;
|
|
162
162
|
export interface CurrencyCreatedFields<T extends PhantomTypeArgument> {
|
|
@@ -178,8 +178,8 @@ export declare class CurrencyCreated<T extends PhantomTypeArgument> implements S
|
|
|
178
178
|
static get r(): typeof CurrencyCreated.reified;
|
|
179
179
|
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<CurrencyCreated<ToPhantomTypeArgument<T>>>>;
|
|
180
180
|
static get p(): typeof CurrencyCreated.phantom;
|
|
181
|
-
static get bcs(): import("@mysten/
|
|
182
|
-
decimals: import("@mysten/
|
|
181
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
182
|
+
decimals: import("@mysten/bcs").BcsType<number, number, "u8">;
|
|
183
183
|
}, string>;
|
|
184
184
|
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): CurrencyCreated<ToPhantomTypeArgument<T>>;
|
|
185
185
|
static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): CurrencyCreated<ToPhantomTypeArgument<T>>;
|
|
@@ -196,7 +196,7 @@ export declare class CurrencyCreated<T extends PhantomTypeArgument> implements S
|
|
|
196
196
|
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): CurrencyCreated<ToPhantomTypeArgument<T>>;
|
|
197
197
|
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): CurrencyCreated<ToPhantomTypeArgument<T>>;
|
|
198
198
|
static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): CurrencyCreated<ToPhantomTypeArgument<T>>;
|
|
199
|
-
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client:
|
|
199
|
+
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArg: T, id: string): Promise<CurrencyCreated<ToPhantomTypeArgument<T>>>;
|
|
200
200
|
}
|
|
201
201
|
export declare function isDenyCap(type: string): boolean;
|
|
202
202
|
export interface DenyCapFields<T extends PhantomTypeArgument> {
|
|
@@ -218,10 +218,10 @@ export declare class DenyCap<T extends PhantomTypeArgument> implements StructCla
|
|
|
218
218
|
static get r(): typeof DenyCap.reified;
|
|
219
219
|
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<DenyCap<ToPhantomTypeArgument<T>>>>;
|
|
220
220
|
static get p(): typeof DenyCap.phantom;
|
|
221
|
-
static get bcs(): import("@mysten/
|
|
222
|
-
id: import("@mysten/
|
|
223
|
-
id: import("@mysten/
|
|
224
|
-
bytes: import("@mysten/
|
|
221
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
222
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
223
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
224
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
225
225
|
}, string>;
|
|
226
226
|
}, string>;
|
|
227
227
|
}, string>;
|
|
@@ -240,7 +240,7 @@ export declare class DenyCap<T extends PhantomTypeArgument> implements StructCla
|
|
|
240
240
|
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): DenyCap<ToPhantomTypeArgument<T>>;
|
|
241
241
|
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): DenyCap<ToPhantomTypeArgument<T>>;
|
|
242
242
|
static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): DenyCap<ToPhantomTypeArgument<T>>;
|
|
243
|
-
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client:
|
|
243
|
+
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArg: T, id: string): Promise<DenyCap<ToPhantomTypeArgument<T>>>;
|
|
244
244
|
}
|
|
245
245
|
export declare function isDenyCapV2(type: string): boolean;
|
|
246
246
|
export interface DenyCapV2Fields<T extends PhantomTypeArgument> {
|
|
@@ -264,13 +264,13 @@ export declare class DenyCapV2<T extends PhantomTypeArgument> implements StructC
|
|
|
264
264
|
static get r(): typeof DenyCapV2.reified;
|
|
265
265
|
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<DenyCapV2<ToPhantomTypeArgument<T>>>>;
|
|
266
266
|
static get p(): typeof DenyCapV2.phantom;
|
|
267
|
-
static get bcs(): import("@mysten/
|
|
268
|
-
id: import("@mysten/
|
|
269
|
-
id: import("@mysten/
|
|
270
|
-
bytes: import("@mysten/
|
|
267
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
268
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
269
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
270
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
271
271
|
}, string>;
|
|
272
272
|
}, string>;
|
|
273
|
-
allow_global_pause: import("@mysten/
|
|
273
|
+
allow_global_pause: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
274
274
|
}, string>;
|
|
275
275
|
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): DenyCapV2<ToPhantomTypeArgument<T>>;
|
|
276
276
|
static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): DenyCapV2<ToPhantomTypeArgument<T>>;
|
|
@@ -289,7 +289,7 @@ export declare class DenyCapV2<T extends PhantomTypeArgument> implements StructC
|
|
|
289
289
|
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): DenyCapV2<ToPhantomTypeArgument<T>>;
|
|
290
290
|
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): DenyCapV2<ToPhantomTypeArgument<T>>;
|
|
291
291
|
static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): DenyCapV2<ToPhantomTypeArgument<T>>;
|
|
292
|
-
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client:
|
|
292
|
+
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArg: T, id: string): Promise<DenyCapV2<ToPhantomTypeArgument<T>>>;
|
|
293
293
|
}
|
|
294
294
|
export declare function isRegulatedCoinMetadata(type: string): boolean;
|
|
295
295
|
export interface RegulatedCoinMetadataFields<T extends PhantomTypeArgument> {
|
|
@@ -315,17 +315,17 @@ export declare class RegulatedCoinMetadata<T extends PhantomTypeArgument> implem
|
|
|
315
315
|
static get r(): typeof RegulatedCoinMetadata.reified;
|
|
316
316
|
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<RegulatedCoinMetadata<ToPhantomTypeArgument<T>>>>;
|
|
317
317
|
static get p(): typeof RegulatedCoinMetadata.phantom;
|
|
318
|
-
static get bcs(): import("@mysten/
|
|
319
|
-
id: import("@mysten/
|
|
320
|
-
id: import("@mysten/
|
|
321
|
-
bytes: import("@mysten/
|
|
318
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
319
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
320
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
321
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
322
322
|
}, string>;
|
|
323
323
|
}, string>;
|
|
324
|
-
coin_metadata_object: import("@mysten/
|
|
325
|
-
bytes: import("@mysten/
|
|
324
|
+
coin_metadata_object: import("@mysten/bcs").BcsStruct<{
|
|
325
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
326
326
|
}, string>;
|
|
327
|
-
deny_cap_object: import("@mysten/
|
|
328
|
-
bytes: import("@mysten/
|
|
327
|
+
deny_cap_object: import("@mysten/bcs").BcsStruct<{
|
|
328
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
329
329
|
}, string>;
|
|
330
330
|
}, string>;
|
|
331
331
|
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): RegulatedCoinMetadata<ToPhantomTypeArgument<T>>;
|
|
@@ -347,7 +347,7 @@ export declare class RegulatedCoinMetadata<T extends PhantomTypeArgument> implem
|
|
|
347
347
|
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): RegulatedCoinMetadata<ToPhantomTypeArgument<T>>;
|
|
348
348
|
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): RegulatedCoinMetadata<ToPhantomTypeArgument<T>>;
|
|
349
349
|
static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): RegulatedCoinMetadata<ToPhantomTypeArgument<T>>;
|
|
350
|
-
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client:
|
|
350
|
+
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArg: T, id: string): Promise<RegulatedCoinMetadata<ToPhantomTypeArgument<T>>>;
|
|
351
351
|
}
|
|
352
352
|
export declare function isTreasuryCap(type: string): boolean;
|
|
353
353
|
export interface TreasuryCapFields<T extends PhantomTypeArgument> {
|
|
@@ -371,14 +371,14 @@ export declare class TreasuryCap<T extends PhantomTypeArgument> implements Struc
|
|
|
371
371
|
static get r(): typeof TreasuryCap.reified;
|
|
372
372
|
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<TreasuryCap<ToPhantomTypeArgument<T>>>>;
|
|
373
373
|
static get p(): typeof TreasuryCap.phantom;
|
|
374
|
-
static get bcs(): import("@mysten/
|
|
375
|
-
id: import("@mysten/
|
|
376
|
-
id: import("@mysten/
|
|
377
|
-
bytes: import("@mysten/
|
|
374
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
375
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
376
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
377
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
378
378
|
}, string>;
|
|
379
379
|
}, string>;
|
|
380
|
-
total_supply: import("@mysten/
|
|
381
|
-
value: import("@mysten/
|
|
380
|
+
total_supply: import("@mysten/bcs").BcsStruct<{
|
|
381
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
382
382
|
}, string>;
|
|
383
383
|
}, string>;
|
|
384
384
|
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): TreasuryCap<ToPhantomTypeArgument<T>>;
|
|
@@ -402,5 +402,5 @@ export declare class TreasuryCap<T extends PhantomTypeArgument> implements Struc
|
|
|
402
402
|
static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): TreasuryCap<ToPhantomTypeArgument<T>>;
|
|
403
403
|
static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): TreasuryCap<ToPhantomTypeArgument<T>>;
|
|
404
404
|
static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): TreasuryCap<ToPhantomTypeArgument<T>>;
|
|
405
|
-
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client:
|
|
405
|
+
static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArg: T, id: string): Promise<TreasuryCap<ToPhantomTypeArgument<T>>>;
|
|
406
406
|
}
|