@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
|
@@ -1,104 +1,92 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
exports.collectFees = collectFees;
|
|
5
|
-
exports.init = init;
|
|
6
|
-
exports.updateFees = updateFees;
|
|
7
|
-
exports.addToRegistry = addToRegistry;
|
|
8
|
-
exports.adminCap = adminCap;
|
|
9
|
-
exports.eject = eject;
|
|
10
|
-
exports.rebalance = rebalance;
|
|
11
|
-
exports.setValidatorAddressesAndWeights = setValidatorAddressesAndWeights;
|
|
12
|
-
exports.weightHookId = weightHookId;
|
|
13
|
-
const __1 = require("..");
|
|
14
|
-
const util_1 = require("../../_framework/util");
|
|
15
|
-
function new_(tx, typeArg, adminCap) {
|
|
1
|
+
import { PUBLISHED_AT } from "..";
|
|
2
|
+
import { obj } from "../../_framework/util";
|
|
3
|
+
export function new_(tx, typeArg, adminCap) {
|
|
16
4
|
return tx.moveCall({
|
|
17
|
-
target: `${
|
|
5
|
+
target: `${PUBLISHED_AT}::weight::new`,
|
|
18
6
|
typeArguments: [typeArg],
|
|
19
|
-
arguments: [
|
|
7
|
+
arguments: [obj(tx, adminCap)],
|
|
20
8
|
});
|
|
21
9
|
}
|
|
22
|
-
function collectFees(tx, typeArg, args) {
|
|
10
|
+
export function collectFees(tx, typeArg, args) {
|
|
23
11
|
return tx.moveCall({
|
|
24
|
-
target: `${
|
|
12
|
+
target: `${PUBLISHED_AT}::weight::collect_fees`,
|
|
25
13
|
typeArguments: [typeArg],
|
|
26
14
|
arguments: [
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
15
|
+
obj(tx, args.self),
|
|
16
|
+
obj(tx, args.weightHookAdminCap),
|
|
17
|
+
obj(tx, args.liquidStakingInfo),
|
|
18
|
+
obj(tx, args.systemState),
|
|
31
19
|
],
|
|
32
20
|
});
|
|
33
21
|
}
|
|
34
|
-
function init(tx, otw) {
|
|
22
|
+
export function init(tx, otw) {
|
|
35
23
|
return tx.moveCall({
|
|
36
|
-
target: `${
|
|
37
|
-
arguments: [
|
|
24
|
+
target: `${PUBLISHED_AT}::weight::init`,
|
|
25
|
+
arguments: [obj(tx, otw)],
|
|
38
26
|
});
|
|
39
27
|
}
|
|
40
|
-
function updateFees(tx, typeArg, args) {
|
|
28
|
+
export function updateFees(tx, typeArg, args) {
|
|
41
29
|
return tx.moveCall({
|
|
42
|
-
target: `${
|
|
30
|
+
target: `${PUBLISHED_AT}::weight::update_fees`,
|
|
43
31
|
typeArguments: [typeArg],
|
|
44
32
|
arguments: [
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
33
|
+
obj(tx, args.self),
|
|
34
|
+
obj(tx, args.weightHookAdminCap),
|
|
35
|
+
obj(tx, args.liquidStakingInfo),
|
|
36
|
+
obj(tx, args.feeConfig),
|
|
49
37
|
],
|
|
50
38
|
});
|
|
51
39
|
}
|
|
52
|
-
function addToRegistry(tx, typeArg, args) {
|
|
40
|
+
export function addToRegistry(tx, typeArg, args) {
|
|
53
41
|
return tx.moveCall({
|
|
54
|
-
target: `${
|
|
42
|
+
target: `${PUBLISHED_AT}::weight::add_to_registry`,
|
|
55
43
|
typeArguments: [typeArg],
|
|
56
44
|
arguments: [
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
45
|
+
obj(tx, args.self),
|
|
46
|
+
obj(tx, args.registry),
|
|
47
|
+
obj(tx, args.liquidStakingInfo),
|
|
60
48
|
],
|
|
61
49
|
});
|
|
62
50
|
}
|
|
63
|
-
function adminCap(tx, typeArg, args) {
|
|
51
|
+
export function adminCap(tx, typeArg, args) {
|
|
64
52
|
return tx.moveCall({
|
|
65
|
-
target: `${
|
|
53
|
+
target: `${PUBLISHED_AT}::weight::admin_cap`,
|
|
66
54
|
typeArguments: [typeArg],
|
|
67
|
-
arguments: [
|
|
55
|
+
arguments: [obj(tx, args.self), obj(tx, args.weightHookAdminCap)],
|
|
68
56
|
});
|
|
69
57
|
}
|
|
70
|
-
function eject(tx, typeArg, args) {
|
|
58
|
+
export function eject(tx, typeArg, args) {
|
|
71
59
|
return tx.moveCall({
|
|
72
|
-
target: `${
|
|
60
|
+
target: `${PUBLISHED_AT}::weight::eject`,
|
|
73
61
|
typeArguments: [typeArg],
|
|
74
|
-
arguments: [
|
|
62
|
+
arguments: [obj(tx, args.self), obj(tx, args.adminCap)],
|
|
75
63
|
});
|
|
76
64
|
}
|
|
77
|
-
function rebalance(tx, typeArg, args) {
|
|
65
|
+
export function rebalance(tx, typeArg, args) {
|
|
78
66
|
return tx.moveCall({
|
|
79
|
-
target: `${
|
|
67
|
+
target: `${PUBLISHED_AT}::weight::rebalance`,
|
|
80
68
|
typeArguments: [typeArg],
|
|
81
69
|
arguments: [
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
70
|
+
obj(tx, args.self),
|
|
71
|
+
obj(tx, args.systemState),
|
|
72
|
+
obj(tx, args.liquidStakingInfo),
|
|
85
73
|
],
|
|
86
74
|
});
|
|
87
75
|
}
|
|
88
|
-
function setValidatorAddressesAndWeights(tx, typeArg, args) {
|
|
76
|
+
export function setValidatorAddressesAndWeights(tx, typeArg, args) {
|
|
89
77
|
return tx.moveCall({
|
|
90
|
-
target: `${
|
|
78
|
+
target: `${PUBLISHED_AT}::weight::set_validator_addresses_and_weights`,
|
|
91
79
|
typeArguments: [typeArg],
|
|
92
80
|
arguments: [
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
81
|
+
obj(tx, args.self),
|
|
82
|
+
obj(tx, args.weightHookAdminCap),
|
|
83
|
+
obj(tx, args.validatorAddressesAndWeights),
|
|
96
84
|
],
|
|
97
85
|
});
|
|
98
86
|
}
|
|
99
|
-
function weightHookId(tx, self) {
|
|
87
|
+
export function weightHookId(tx, self) {
|
|
100
88
|
return tx.moveCall({
|
|
101
|
-
target: `${
|
|
102
|
-
arguments: [
|
|
89
|
+
target: `${PUBLISHED_AT}::weight::weight_hook_id`,
|
|
90
|
+
arguments: [obj(tx, self)],
|
|
103
91
|
});
|
|
104
92
|
}
|
|
@@ -7,7 +7,7 @@ import { FieldsWithTypes } from "../../_framework/util";
|
|
|
7
7
|
import { PKG_V1, PKG_V5 } from "../index";
|
|
8
8
|
import { AdminCap } from "../liquid-staking/structs";
|
|
9
9
|
import { Version } from "../version/structs";
|
|
10
|
-
import {
|
|
10
|
+
import { SuiJsonRpcClient, SuiObjectData, SuiParsedData } from "@mysten/sui/jsonRpc";
|
|
11
11
|
export declare function isCreateEvent(type: string): boolean;
|
|
12
12
|
export interface CreateEventFields {
|
|
13
13
|
typename: ToField<TypeName>;
|
|
@@ -32,19 +32,19 @@ 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/
|
|
36
|
-
typename: import("@mysten/
|
|
37
|
-
name: import("@mysten/
|
|
38
|
-
bytes: import("@mysten/
|
|
35
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
36
|
+
typename: import("@mysten/bcs").BcsStruct<{
|
|
37
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
38
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
39
39
|
length: number;
|
|
40
40
|
}, string>;
|
|
41
41
|
}, string>;
|
|
42
42
|
}, string>;
|
|
43
|
-
weight_hook_id: import("@mysten/
|
|
44
|
-
bytes: import("@mysten/
|
|
43
|
+
weight_hook_id: import("@mysten/bcs").BcsStruct<{
|
|
44
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
45
45
|
}, string>;
|
|
46
|
-
weight_hook_admin_cap_id: import("@mysten/
|
|
47
|
-
bytes: import("@mysten/
|
|
46
|
+
weight_hook_admin_cap_id: import("@mysten/bcs").BcsStruct<{
|
|
47
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
48
48
|
}, string>;
|
|
49
49
|
}, string>;
|
|
50
50
|
static fromFields(fields: Record<string, any>): CreateEvent;
|
|
@@ -70,7 +70,7 @@ export declare class CreateEvent implements StructClass {
|
|
|
70
70
|
static fromJSON(json: Record<string, any>): CreateEvent;
|
|
71
71
|
static fromSuiParsedData(content: SuiParsedData): CreateEvent;
|
|
72
72
|
static fromSuiObjectData(data: SuiObjectData): CreateEvent;
|
|
73
|
-
static fetch(client:
|
|
73
|
+
static fetch(client: SuiJsonRpcClient, id: string): Promise<CreateEvent>;
|
|
74
74
|
}
|
|
75
75
|
export declare function isRegistryInfo(type: string): boolean;
|
|
76
76
|
export interface RegistryInfoFields {
|
|
@@ -92,9 +92,9 @@ export declare class RegistryInfo implements StructClass {
|
|
|
92
92
|
static get r(): import("../../_framework/reified").StructClassReified<RegistryInfo, RegistryInfoFields>;
|
|
93
93
|
static phantom(): PhantomReified<ToTypeStr<RegistryInfo>>;
|
|
94
94
|
static get p(): PhantomReified<"0x8d196820b321bb3c56863b3eb0dd90a49f9eb52e3473373efcebf4388bf04416::weight::RegistryInfo">;
|
|
95
|
-
static get bcs(): import("@mysten/
|
|
96
|
-
weight_hook_id: import("@mysten/
|
|
97
|
-
bytes: import("@mysten/
|
|
95
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
96
|
+
weight_hook_id: import("@mysten/bcs").BcsStruct<{
|
|
97
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
98
98
|
}, string>;
|
|
99
99
|
}, string>;
|
|
100
100
|
static fromFields(fields: Record<string, any>): RegistryInfo;
|
|
@@ -112,7 +112,7 @@ export declare class RegistryInfo implements StructClass {
|
|
|
112
112
|
static fromJSON(json: Record<string, any>): RegistryInfo;
|
|
113
113
|
static fromSuiParsedData(content: SuiParsedData): RegistryInfo;
|
|
114
114
|
static fromSuiObjectData(data: SuiObjectData): RegistryInfo;
|
|
115
|
-
static fetch(client:
|
|
115
|
+
static fetch(client: SuiJsonRpcClient, id: string): Promise<RegistryInfo>;
|
|
116
116
|
}
|
|
117
117
|
export declare function isWEIGHT(type: string): boolean;
|
|
118
118
|
export interface WEIGHTFields {
|
|
@@ -134,8 +134,8 @@ export declare class WEIGHT implements StructClass {
|
|
|
134
134
|
static get r(): import("../../_framework/reified").StructClassReified<WEIGHT, WEIGHTFields>;
|
|
135
135
|
static phantom(): PhantomReified<ToTypeStr<WEIGHT>>;
|
|
136
136
|
static get p(): PhantomReified<"0xb0575765166030556a6eafd3b1b970eba8183ff748860680245b9edd41c716e7::weight::WEIGHT">;
|
|
137
|
-
static get bcs(): import("@mysten/
|
|
138
|
-
dummy_field: import("@mysten/
|
|
137
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
138
|
+
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
139
139
|
}, string>;
|
|
140
140
|
static fromFields(fields: Record<string, any>): WEIGHT;
|
|
141
141
|
static fromFieldsWithTypes(item: FieldsWithTypes): WEIGHT;
|
|
@@ -152,7 +152,7 @@ export declare class WEIGHT implements StructClass {
|
|
|
152
152
|
static fromJSON(json: Record<string, any>): WEIGHT;
|
|
153
153
|
static fromSuiParsedData(content: SuiParsedData): WEIGHT;
|
|
154
154
|
static fromSuiObjectData(data: SuiObjectData): WEIGHT;
|
|
155
|
-
static fetch(client:
|
|
155
|
+
static fetch(client: SuiJsonRpcClient, id: string): Promise<WEIGHT>;
|
|
156
156
|
}
|
|
157
157
|
export declare function isWeightHook(type: string): boolean;
|
|
158
158
|
export interface WeightHookFields<P extends PhantomTypeArgument> {
|
|
@@ -184,14 +184,14 @@ export declare class WeightHook<P extends PhantomTypeArgument> implements Struct
|
|
|
184
184
|
static get r(): typeof WeightHook.reified;
|
|
185
185
|
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<WeightHook<ToPhantomTypeArgument<P>>>>;
|
|
186
186
|
static get p(): typeof WeightHook.phantom;
|
|
187
|
-
static get bcs(): import("@mysten/
|
|
188
|
-
id: import("@mysten/
|
|
189
|
-
id: import("@mysten/
|
|
190
|
-
bytes: import("@mysten/
|
|
187
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
188
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
189
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
190
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
191
191
|
}, string>;
|
|
192
192
|
}, string>;
|
|
193
|
-
validator_addresses_and_weights: import("@mysten/
|
|
194
|
-
contents: import("@mysten/
|
|
193
|
+
validator_addresses_and_weights: import("@mysten/bcs").BcsStruct<{
|
|
194
|
+
contents: import("@mysten/bcs").BcsType<{
|
|
195
195
|
key: string;
|
|
196
196
|
value: string;
|
|
197
197
|
}[], Iterable<{
|
|
@@ -201,24 +201,24 @@ export declare class WeightHook<P extends PhantomTypeArgument> implements Struct
|
|
|
201
201
|
length: number;
|
|
202
202
|
}, string>;
|
|
203
203
|
}, string>;
|
|
204
|
-
total_weight: import("@mysten/
|
|
205
|
-
admin_cap: import("@mysten/
|
|
206
|
-
id: import("@mysten/
|
|
207
|
-
id: import("@mysten/
|
|
208
|
-
bytes: import("@mysten/
|
|
204
|
+
total_weight: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
205
|
+
admin_cap: import("@mysten/bcs").BcsStruct<{
|
|
206
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
207
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
208
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
209
209
|
}, string>;
|
|
210
210
|
}, string>;
|
|
211
211
|
}, string>;
|
|
212
|
-
version: import("@mysten/
|
|
213
|
-
pos0: import("@mysten/
|
|
212
|
+
version: import("@mysten/bcs").BcsStruct<{
|
|
213
|
+
pos0: import("@mysten/bcs").BcsType<number, number, "u16">;
|
|
214
214
|
}, string>;
|
|
215
|
-
extra_fields: import("@mysten/
|
|
216
|
-
id: import("@mysten/
|
|
217
|
-
id: import("@mysten/
|
|
218
|
-
bytes: import("@mysten/
|
|
215
|
+
extra_fields: import("@mysten/bcs").BcsStruct<{
|
|
216
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
217
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
218
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
219
219
|
}, string>;
|
|
220
220
|
}, string>;
|
|
221
|
-
size: import("@mysten/
|
|
221
|
+
size: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
222
222
|
}, string>;
|
|
223
223
|
}, string>;
|
|
224
224
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): WeightHook<ToPhantomTypeArgument<P>>;
|
|
@@ -270,7 +270,7 @@ export declare class WeightHook<P extends PhantomTypeArgument> implements Struct
|
|
|
270
270
|
static fromJSON<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, json: Record<string, any>): WeightHook<ToPhantomTypeArgument<P>>;
|
|
271
271
|
static fromSuiParsedData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, content: SuiParsedData): WeightHook<ToPhantomTypeArgument<P>>;
|
|
272
272
|
static fromSuiObjectData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: SuiObjectData): WeightHook<ToPhantomTypeArgument<P>>;
|
|
273
|
-
static fetch<P extends PhantomReified<PhantomTypeArgument>>(client:
|
|
273
|
+
static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArg: P, id: string): Promise<WeightHook<ToPhantomTypeArgument<P>>>;
|
|
274
274
|
}
|
|
275
275
|
export declare function isWeightHookAdminCap(type: string): boolean;
|
|
276
276
|
export interface WeightHookAdminCapFields<P extends PhantomTypeArgument> {
|
|
@@ -292,10 +292,10 @@ export declare class WeightHookAdminCap<P extends PhantomTypeArgument> implement
|
|
|
292
292
|
static get r(): typeof WeightHookAdminCap.reified;
|
|
293
293
|
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<WeightHookAdminCap<ToPhantomTypeArgument<P>>>>;
|
|
294
294
|
static get p(): typeof WeightHookAdminCap.phantom;
|
|
295
|
-
static get bcs(): import("@mysten/
|
|
296
|
-
id: import("@mysten/
|
|
297
|
-
id: import("@mysten/
|
|
298
|
-
bytes: import("@mysten/
|
|
295
|
+
static get bcs(): import("@mysten/bcs").BcsStruct<{
|
|
296
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
297
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
298
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
299
299
|
}, string>;
|
|
300
300
|
}, string>;
|
|
301
301
|
}, string>;
|
|
@@ -314,5 +314,5 @@ export declare class WeightHookAdminCap<P extends PhantomTypeArgument> implement
|
|
|
314
314
|
static fromJSON<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, json: Record<string, any>): WeightHookAdminCap<ToPhantomTypeArgument<P>>;
|
|
315
315
|
static fromSuiParsedData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, content: SuiParsedData): WeightHookAdminCap<ToPhantomTypeArgument<P>>;
|
|
316
316
|
static fromSuiObjectData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: SuiObjectData): WeightHookAdminCap<ToPhantomTypeArgument<P>>;
|
|
317
|
-
static fetch<P extends PhantomReified<PhantomTypeArgument>>(client:
|
|
317
|
+
static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArg: P, id: string): Promise<WeightHookAdminCap<ToPhantomTypeArgument<P>>>;
|
|
318
318
|
}
|