@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.
Files changed (60) hide show
  1. package/cli/src/bytecode.js +28 -30
  2. package/cli/src/index.js +51 -86
  3. package/package.json +1 -1
  4. package/sdk/src/_generated/_dependencies/source/0x1/ascii/structs.d.ts +7 -7
  5. package/sdk/src/_generated/_dependencies/source/0x1/ascii/structs.js +35 -75
  6. package/sdk/src/_generated/_dependencies/source/0x1/index.js +3 -6
  7. package/sdk/src/_generated/_dependencies/source/0x1/option/structs.d.ts +3 -3
  8. package/sdk/src/_generated/_dependencies/source/0x1/option/structs.js +31 -69
  9. package/sdk/src/_generated/_dependencies/source/0x1/string/structs.d.ts +4 -4
  10. package/sdk/src/_generated/_dependencies/source/0x1/string/structs.js +21 -59
  11. package/sdk/src/_generated/_dependencies/source/0x1/type-name/structs.d.ts +5 -5
  12. package/sdk/src/_generated/_dependencies/source/0x1/type-name/structs.js +20 -25
  13. package/sdk/src/_generated/_dependencies/source/0x2/bag/structs.d.ts +7 -7
  14. package/sdk/src/_generated/_dependencies/source/0x2/bag/structs.js +24 -29
  15. package/sdk/src/_generated/_dependencies/source/0x2/balance/structs.d.ts +7 -7
  16. package/sdk/src/_generated/_dependencies/source/0x2/balance/structs.js +49 -56
  17. package/sdk/src/_generated/_dependencies/source/0x2/coin/structs.d.ts +52 -52
  18. package/sdk/src/_generated/_dependencies/source/0x2/coin/structs.js +206 -223
  19. package/sdk/src/_generated/_dependencies/source/0x2/index.js +3 -6
  20. package/sdk/src/_generated/_dependencies/source/0x2/object/structs.d.ts +8 -8
  21. package/sdk/src/_generated/_dependencies/source/0x2/object/structs.js +34 -41
  22. package/sdk/src/_generated/_dependencies/source/0x2/sui/structs.d.ts +4 -4
  23. package/sdk/src/_generated/_dependencies/source/0x2/sui/structs.js +19 -24
  24. package/sdk/src/_generated/_dependencies/source/0x2/table/structs.d.ts +7 -7
  25. package/sdk/src/_generated/_dependencies/source/0x2/table/structs.js +31 -36
  26. package/sdk/src/_generated/_dependencies/source/0x2/url/structs.d.ts +5 -5
  27. package/sdk/src/_generated/_dependencies/source/0x2/url/structs.js +20 -25
  28. package/sdk/src/_generated/_dependencies/source/0x2/vec-map/structs.d.ts +5 -5
  29. package/sdk/src/_generated/_dependencies/source/0x2/vec-map/structs.js +57 -97
  30. package/sdk/src/_generated/_dependencies/source/0x3/index.js +3 -6
  31. package/sdk/src/_generated/_dependencies/source/0x3/staking-pool/structs.d.ts +60 -60
  32. package/sdk/src/_generated/_dependencies/source/0x3/staking-pool/structs.js +170 -218
  33. package/sdk/src/_generated/_framework/reified.d.ts +2 -2
  34. package/sdk/src/_generated/_framework/reified.js +27 -40
  35. package/sdk/src/_generated/_framework/util.d.ts +2 -14
  36. package/sdk/src/_generated/_framework/util.js +26 -40
  37. package/sdk/src/_generated/_framework/vector.d.ts +4 -4
  38. package/sdk/src/_generated/_framework/vector.js +16 -21
  39. package/sdk/src/_generated/liquid_staking/cell/structs.d.ts +4 -4
  40. package/sdk/src/_generated/liquid_staking/cell/structs.js +31 -36
  41. package/sdk/src/_generated/liquid_staking/fees/functions.js +55 -75
  42. package/sdk/src/_generated/liquid_staking/fees/structs.d.ts +21 -21
  43. package/sdk/src/_generated/liquid_staking/fees/structs.js +58 -65
  44. package/sdk/src/_generated/liquid_staking/index.js +6 -10
  45. package/sdk/src/_generated/liquid_staking/liquid-staking/functions.js +86 -107
  46. package/sdk/src/_generated/liquid_staking/liquid-staking/structs.d.ts +98 -98
  47. package/sdk/src/_generated/liquid_staking/liquid-staking/structs.js +264 -320
  48. package/sdk/src/_generated/liquid_staking/storage/structs.d.ts +31 -31
  49. package/sdk/src/_generated/liquid_staking/storage/structs.js +85 -125
  50. package/sdk/src/_generated/liquid_staking/version/structs.d.ts +4 -4
  51. package/sdk/src/_generated/liquid_staking/version/structs.js +19 -24
  52. package/sdk/src/_generated/liquid_staking/weight/functions.js +44 -56
  53. package/sdk/src/_generated/liquid_staking/weight/structs.d.ts +41 -41
  54. package/sdk/src/_generated/liquid_staking/weight/structs.js +128 -141
  55. package/sdk/src/client.d.ts +16 -16
  56. package/sdk/src/client.js +39 -82
  57. package/sdk/src/index.js +2 -18
  58. package/sdk/src/lib/index.js +1 -17
  59. package/sdk/src/lib/transactions.d.ts +1 -1
  60. package/sdk/src/lib/transactions.js +3 -8
@@ -1,104 +1,92 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.new_ = new_;
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: `${__1.PUBLISHED_AT}::weight::new`,
5
+ target: `${PUBLISHED_AT}::weight::new`,
18
6
  typeArguments: [typeArg],
19
- arguments: [(0, util_1.obj)(tx, adminCap)],
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: `${__1.PUBLISHED_AT}::weight::collect_fees`,
12
+ target: `${PUBLISHED_AT}::weight::collect_fees`,
25
13
  typeArguments: [typeArg],
26
14
  arguments: [
27
- (0, util_1.obj)(tx, args.self),
28
- (0, util_1.obj)(tx, args.weightHookAdminCap),
29
- (0, util_1.obj)(tx, args.liquidStakingInfo),
30
- (0, util_1.obj)(tx, args.systemState),
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: `${__1.PUBLISHED_AT}::weight::init`,
37
- arguments: [(0, util_1.obj)(tx, otw)],
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: `${__1.PUBLISHED_AT}::weight::update_fees`,
30
+ target: `${PUBLISHED_AT}::weight::update_fees`,
43
31
  typeArguments: [typeArg],
44
32
  arguments: [
45
- (0, util_1.obj)(tx, args.self),
46
- (0, util_1.obj)(tx, args.weightHookAdminCap),
47
- (0, util_1.obj)(tx, args.liquidStakingInfo),
48
- (0, util_1.obj)(tx, args.feeConfig),
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: `${__1.PUBLISHED_AT}::weight::add_to_registry`,
42
+ target: `${PUBLISHED_AT}::weight::add_to_registry`,
55
43
  typeArguments: [typeArg],
56
44
  arguments: [
57
- (0, util_1.obj)(tx, args.self),
58
- (0, util_1.obj)(tx, args.registry),
59
- (0, util_1.obj)(tx, args.liquidStakingInfo),
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: `${__1.PUBLISHED_AT}::weight::admin_cap`,
53
+ target: `${PUBLISHED_AT}::weight::admin_cap`,
66
54
  typeArguments: [typeArg],
67
- arguments: [(0, util_1.obj)(tx, args.self), (0, util_1.obj)(tx, args.weightHookAdminCap)],
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: `${__1.PUBLISHED_AT}::weight::eject`,
60
+ target: `${PUBLISHED_AT}::weight::eject`,
73
61
  typeArguments: [typeArg],
74
- arguments: [(0, util_1.obj)(tx, args.self), (0, util_1.obj)(tx, args.adminCap)],
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: `${__1.PUBLISHED_AT}::weight::rebalance`,
67
+ target: `${PUBLISHED_AT}::weight::rebalance`,
80
68
  typeArguments: [typeArg],
81
69
  arguments: [
82
- (0, util_1.obj)(tx, args.self),
83
- (0, util_1.obj)(tx, args.systemState),
84
- (0, util_1.obj)(tx, args.liquidStakingInfo),
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: `${__1.PUBLISHED_AT}::weight::set_validator_addresses_and_weights`,
78
+ target: `${PUBLISHED_AT}::weight::set_validator_addresses_and_weights`,
91
79
  typeArguments: [typeArg],
92
80
  arguments: [
93
- (0, util_1.obj)(tx, args.self),
94
- (0, util_1.obj)(tx, args.weightHookAdminCap),
95
- (0, util_1.obj)(tx, args.validatorAddressesAndWeights),
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: `${__1.PUBLISHED_AT}::weight::weight_hook_id`,
102
- arguments: [(0, util_1.obj)(tx, self)],
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 { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
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/sui/bcs").BcsStruct<{
36
- typename: import("@mysten/sui/bcs").BcsStruct<{
37
- name: import("@mysten/sui/bcs").BcsStruct<{
38
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
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/sui/bcs").BcsStruct<{
44
- bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
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/sui/bcs").BcsStruct<{
47
- bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
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: SuiClient, id: string): Promise<CreateEvent>;
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/sui/bcs").BcsStruct<{
96
- weight_hook_id: import("@mysten/sui/bcs").BcsStruct<{
97
- bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
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: SuiClient, id: string): Promise<RegistryInfo>;
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/sui/bcs").BcsStruct<{
138
- dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
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: SuiClient, id: string): Promise<WEIGHT>;
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/sui/bcs").BcsStruct<{
188
- id: import("@mysten/sui/bcs").BcsStruct<{
189
- id: import("@mysten/sui/bcs").BcsStruct<{
190
- bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
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/sui/bcs").BcsStruct<{
194
- contents: import("@mysten/sui/bcs").BcsType<{
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/sui/bcs").BcsType<string, string | number | bigint, "u64">;
205
- admin_cap: import("@mysten/sui/bcs").BcsStruct<{
206
- id: import("@mysten/sui/bcs").BcsStruct<{
207
- id: import("@mysten/sui/bcs").BcsStruct<{
208
- bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
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/sui/bcs").BcsStruct<{
213
- pos0: import("@mysten/sui/bcs").BcsType<number, number, "u16">;
212
+ version: import("@mysten/bcs").BcsStruct<{
213
+ pos0: import("@mysten/bcs").BcsType<number, number, "u16">;
214
214
  }, string>;
215
- extra_fields: import("@mysten/sui/bcs").BcsStruct<{
216
- id: import("@mysten/sui/bcs").BcsStruct<{
217
- id: import("@mysten/sui/bcs").BcsStruct<{
218
- bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
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/sui/bcs").BcsType<string, string | number | bigint, "u64">;
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: SuiClient, typeArg: P, id: string): Promise<WeightHook<ToPhantomTypeArgument<P>>>;
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/sui/bcs").BcsStruct<{
296
- id: import("@mysten/sui/bcs").BcsStruct<{
297
- id: import("@mysten/sui/bcs").BcsStruct<{
298
- bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
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: SuiClient, typeArg: P, id: string): Promise<WeightHookAdminCap<ToPhantomTypeArgument<P>>>;
317
+ static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArg: P, id: string): Promise<WeightHookAdminCap<ToPhantomTypeArgument<P>>>;
318
318
  }