@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.
- package/cli/src/index.d.ts +1 -0
- package/cli/src/index.js +304 -0
- package/package.json +1 -0
- package/sdk/src/_generated/_dependencies/source/0x1/ascii/structs.d.ts +92 -0
- package/sdk/src/_generated/_dependencies/source/0x1/ascii/structs.js +289 -0
- package/sdk/src/_generated/_dependencies/source/0x1/index.d.ts +3 -0
- package/sdk/src/_generated/_dependencies/source/0x1/index.js +6 -0
- package/sdk/src/_generated/_dependencies/source/0x1/option/structs.d.ts +52 -0
- package/sdk/src/_generated/_dependencies/source/0x1/option/structs.js +180 -0
- package/sdk/src/_generated/_dependencies/source/0x1/string/structs.d.ts +50 -0
- package/sdk/src/_generated/_dependencies/source/0x1/string/structs.js +167 -0
- package/sdk/src/_generated/_dependencies/source/0x1/type-name/structs.d.ts +53 -0
- package/sdk/src/_generated/_dependencies/source/0x1/type-name/structs.js +144 -0
- package/sdk/src/_generated/_dependencies/source/0x2/bag/structs.d.ts +61 -0
- package/sdk/src/_generated/_dependencies/source/0x2/bag/structs.js +149 -0
- package/sdk/src/_generated/_dependencies/source/0x2/balance/structs.d.ts +88 -0
- package/sdk/src/_generated/_dependencies/source/0x2/balance/structs.js +291 -0
- package/sdk/src/_generated/_dependencies/source/0x2/coin/structs.d.ts +460 -0
- package/sdk/src/_generated/_dependencies/source/0x2/coin/structs.js +1045 -0
- package/sdk/src/_generated/_dependencies/source/0x2/index.d.ts +3 -0
- package/sdk/src/_generated/_dependencies/source/0x2/index.js +6 -0
- package/sdk/src/_generated/_dependencies/source/0x2/object/structs.d.ts +92 -0
- package/sdk/src/_generated/_dependencies/source/0x2/object/structs.js +270 -0
- package/sdk/src/_generated/_dependencies/source/0x2/sui/structs.d.ts +46 -0
- package/sdk/src/_generated/_dependencies/source/0x2/sui/structs.js +142 -0
- package/sdk/src/_generated/_dependencies/source/0x2/table/structs.d.ts +61 -0
- package/sdk/src/_generated/_dependencies/source/0x2/table/structs.js +163 -0
- package/sdk/src/_generated/_dependencies/source/0x2/url/structs.d.ts +53 -0
- package/sdk/src/_generated/_dependencies/source/0x2/url/structs.js +143 -0
- package/sdk/src/_generated/_dependencies/source/0x2/vec-map/structs.d.ts +111 -0
- package/sdk/src/_generated/_dependencies/source/0x2/vec-map/structs.js +325 -0
- package/sdk/src/_generated/_dependencies/source/0x3/index.d.ts +3 -0
- package/sdk/src/_generated/_dependencies/source/0x3/index.js +6 -0
- package/sdk/src/_generated/_dependencies/source/0x3/staking-pool/structs.d.ts +487 -0
- package/sdk/src/_generated/_dependencies/source/0x3/staking-pool/structs.js +915 -0
- package/sdk/src/_generated/_framework/reified.d.ts +108 -0
- package/sdk/src/_generated/_framework/reified.js +240 -0
- package/sdk/src/_generated/_framework/util.d.ts +35 -0
- package/sdk/src/_generated/_framework/util.js +334 -0
- package/sdk/src/_generated/_framework/vector.d.ts +35 -0
- package/sdk/src/_generated/_framework/vector.js +77 -0
- package/sdk/src/_generated/liquid_staking/cell/structs.d.ts +54 -0
- package/sdk/src/_generated/liquid_staking/cell/structs.js +156 -0
- package/sdk/src/_generated/liquid_staking/fees/functions.d.ts +51 -0
- package/sdk/src/_generated/liquid_staking/fees/functions.js +130 -0
- package/sdk/src/_generated/liquid_staking/fees/structs.d.ts +165 -0
- package/sdk/src/_generated/liquid_staking/fees/structs.js +307 -0
- package/sdk/src/_generated/liquid_staking/index.d.ts +4 -0
- package/sdk/src/_generated/liquid_staking/index.js +10 -0
- package/sdk/src/_generated/liquid_staking/liquid-staking/functions.d.ts +88 -0
- package/sdk/src/_generated/liquid_staking/liquid-staking/functions.js +199 -0
- package/sdk/src/_generated/liquid_staking/liquid-staking/structs.d.ts +955 -0
- package/sdk/src/_generated/liquid_staking/liquid-staking/structs.js +1477 -0
- package/sdk/src/_generated/liquid_staking/storage/structs.d.ts +358 -0
- package/sdk/src/_generated/liquid_staking/storage/structs.js +365 -0
- package/sdk/src/_generated/liquid_staking/version/structs.d.ts +46 -0
- package/sdk/src/_generated/liquid_staking/version/structs.js +143 -0
- package/sdk/src/_generated/liquid_staking/weight/functions.d.ts +19 -0
- package/sdk/src/_generated/liquid_staking/weight/functions.js +44 -0
- package/sdk/src/_generated/liquid_staking/weight/structs.d.ts +205 -0
- package/sdk/src/_generated/liquid_staking/weight/structs.js +332 -0
- package/sdk/src/index.d.ts +44 -0
- package/sdk/src/index.js +234 -0
|
@@ -0,0 +1,955 @@
|
|
|
1
|
+
import * as reified from "../../_framework/reified";
|
|
2
|
+
import { TypeName } from "../../_dependencies/source/0x1/type-name/structs";
|
|
3
|
+
import { Bag } from "../../_dependencies/source/0x2/bag/structs";
|
|
4
|
+
import { Balance } from "../../_dependencies/source/0x2/balance/structs";
|
|
5
|
+
import { TreasuryCap } from "../../_dependencies/source/0x2/coin/structs";
|
|
6
|
+
import { ID, UID } from "../../_dependencies/source/0x2/object/structs";
|
|
7
|
+
import { SUI } from "../../_dependencies/source/0x2/sui/structs";
|
|
8
|
+
import { PhantomReified, PhantomToTypeStr, PhantomTypeArgument, Reified, StructClass, ToField, ToPhantomTypeArgument, ToTypeStr, ToTypeStr as ToPhantom } from "../../_framework/reified";
|
|
9
|
+
import { FieldsWithTypes } from "../../_framework/util";
|
|
10
|
+
import { Cell } from "../cell/structs";
|
|
11
|
+
import { FeeConfig } from "../fees/structs";
|
|
12
|
+
import { PKG_V1 } from "../index";
|
|
13
|
+
import { Storage } from "../storage/structs";
|
|
14
|
+
import { Version } from "../version/structs";
|
|
15
|
+
import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
|
|
16
|
+
export declare function isAdminCap(type: string): boolean;
|
|
17
|
+
export interface AdminCapFields<P extends PhantomTypeArgument> {
|
|
18
|
+
id: ToField<UID>;
|
|
19
|
+
}
|
|
20
|
+
export type AdminCapReified<P extends PhantomTypeArgument> = Reified<AdminCap<P>, AdminCapFields<P>>;
|
|
21
|
+
export declare class AdminCap<P extends PhantomTypeArgument> implements StructClass {
|
|
22
|
+
__StructClass: true;
|
|
23
|
+
static readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::AdminCap";
|
|
24
|
+
static readonly $numTypeParams = 1;
|
|
25
|
+
static readonly $isPhantom: readonly [true];
|
|
26
|
+
readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::AdminCap";
|
|
27
|
+
readonly $fullTypeName: `${typeof PKG_V1}::liquid_staking::AdminCap<${PhantomToTypeStr<P>}>`;
|
|
28
|
+
readonly $typeArgs: [PhantomToTypeStr<P>];
|
|
29
|
+
readonly $isPhantom: readonly [true];
|
|
30
|
+
readonly id: ToField<UID>;
|
|
31
|
+
private constructor();
|
|
32
|
+
static reified<P extends PhantomReified<PhantomTypeArgument>>(P: P): AdminCapReified<ToPhantomTypeArgument<P>>;
|
|
33
|
+
static get r(): typeof AdminCap.reified;
|
|
34
|
+
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<AdminCap<ToPhantomTypeArgument<P>>>>;
|
|
35
|
+
static get p(): typeof AdminCap.phantom;
|
|
36
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
37
|
+
id: {
|
|
38
|
+
id: {
|
|
39
|
+
bytes: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}, {
|
|
43
|
+
id: {
|
|
44
|
+
id: {
|
|
45
|
+
bytes: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}>;
|
|
49
|
+
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): AdminCap<ToPhantomTypeArgument<P>>;
|
|
50
|
+
static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, item: FieldsWithTypes): AdminCap<ToPhantomTypeArgument<P>>;
|
|
51
|
+
static fromBcs<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: Uint8Array): AdminCap<ToPhantomTypeArgument<P>>;
|
|
52
|
+
toJSONField(): {
|
|
53
|
+
id: string;
|
|
54
|
+
};
|
|
55
|
+
toJSON(): {
|
|
56
|
+
id: string;
|
|
57
|
+
$typeName: string;
|
|
58
|
+
$typeArgs: [reified.PhantomToTypeStr<P>];
|
|
59
|
+
};
|
|
60
|
+
static fromJSONField<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, field: any): AdminCap<ToPhantomTypeArgument<P>>;
|
|
61
|
+
static fromJSON<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, json: Record<string, any>): AdminCap<ToPhantomTypeArgument<P>>;
|
|
62
|
+
static fromSuiParsedData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, content: SuiParsedData): AdminCap<ToPhantomTypeArgument<P>>;
|
|
63
|
+
static fromSuiObjectData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: SuiObjectData): AdminCap<ToPhantomTypeArgument<P>>;
|
|
64
|
+
static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: P, id: string): Promise<AdminCap<ToPhantomTypeArgument<P>>>;
|
|
65
|
+
}
|
|
66
|
+
export declare function isCollectFeesEvent(type: string): boolean;
|
|
67
|
+
export interface CollectFeesEventFields {
|
|
68
|
+
typename: ToField<TypeName>;
|
|
69
|
+
amount: ToField<"u64">;
|
|
70
|
+
}
|
|
71
|
+
export type CollectFeesEventReified = Reified<CollectFeesEvent, CollectFeesEventFields>;
|
|
72
|
+
export declare class CollectFeesEvent implements StructClass {
|
|
73
|
+
__StructClass: true;
|
|
74
|
+
static readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::CollectFeesEvent";
|
|
75
|
+
static readonly $numTypeParams = 0;
|
|
76
|
+
static readonly $isPhantom: readonly [];
|
|
77
|
+
readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::CollectFeesEvent";
|
|
78
|
+
readonly $fullTypeName: `${typeof PKG_V1}::liquid_staking::CollectFeesEvent`;
|
|
79
|
+
readonly $typeArgs: [];
|
|
80
|
+
readonly $isPhantom: readonly [];
|
|
81
|
+
readonly typename: ToField<TypeName>;
|
|
82
|
+
readonly amount: ToField<"u64">;
|
|
83
|
+
private constructor();
|
|
84
|
+
static reified(): CollectFeesEventReified;
|
|
85
|
+
static get r(): reified.StructClassReified<CollectFeesEvent, CollectFeesEventFields>;
|
|
86
|
+
static phantom(): PhantomReified<ToTypeStr<CollectFeesEvent>>;
|
|
87
|
+
static get p(): reified.PhantomReified<"0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::CollectFeesEvent">;
|
|
88
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
89
|
+
typename: {
|
|
90
|
+
name: {
|
|
91
|
+
bytes: number[];
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
amount: string;
|
|
95
|
+
}, {
|
|
96
|
+
typename: {
|
|
97
|
+
name: {
|
|
98
|
+
bytes: Iterable<number> & {
|
|
99
|
+
length: number;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
amount: string | number | bigint;
|
|
104
|
+
}>;
|
|
105
|
+
static fromFields(fields: Record<string, any>): CollectFeesEvent;
|
|
106
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): CollectFeesEvent;
|
|
107
|
+
static fromBcs(data: Uint8Array): CollectFeesEvent;
|
|
108
|
+
toJSONField(): {
|
|
109
|
+
typename: {
|
|
110
|
+
name: string;
|
|
111
|
+
};
|
|
112
|
+
amount: string;
|
|
113
|
+
};
|
|
114
|
+
toJSON(): {
|
|
115
|
+
typename: {
|
|
116
|
+
name: string;
|
|
117
|
+
};
|
|
118
|
+
amount: string;
|
|
119
|
+
$typeName: string;
|
|
120
|
+
$typeArgs: [];
|
|
121
|
+
};
|
|
122
|
+
static fromJSONField(field: any): CollectFeesEvent;
|
|
123
|
+
static fromJSON(json: Record<string, any>): CollectFeesEvent;
|
|
124
|
+
static fromSuiParsedData(content: SuiParsedData): CollectFeesEvent;
|
|
125
|
+
static fromSuiObjectData(data: SuiObjectData): CollectFeesEvent;
|
|
126
|
+
static fetch(client: SuiClient, id: string): Promise<CollectFeesEvent>;
|
|
127
|
+
}
|
|
128
|
+
export declare function isCreateEvent(type: string): boolean;
|
|
129
|
+
export interface CreateEventFields {
|
|
130
|
+
typename: ToField<TypeName>;
|
|
131
|
+
liquidStakingInfoId: ToField<ID>;
|
|
132
|
+
}
|
|
133
|
+
export type CreateEventReified = Reified<CreateEvent, CreateEventFields>;
|
|
134
|
+
export declare class CreateEvent implements StructClass {
|
|
135
|
+
__StructClass: true;
|
|
136
|
+
static readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::CreateEvent";
|
|
137
|
+
static readonly $numTypeParams = 0;
|
|
138
|
+
static readonly $isPhantom: readonly [];
|
|
139
|
+
readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::CreateEvent";
|
|
140
|
+
readonly $fullTypeName: `${typeof PKG_V1}::liquid_staking::CreateEvent`;
|
|
141
|
+
readonly $typeArgs: [];
|
|
142
|
+
readonly $isPhantom: readonly [];
|
|
143
|
+
readonly typename: ToField<TypeName>;
|
|
144
|
+
readonly liquidStakingInfoId: ToField<ID>;
|
|
145
|
+
private constructor();
|
|
146
|
+
static reified(): CreateEventReified;
|
|
147
|
+
static get r(): reified.StructClassReified<CreateEvent, CreateEventFields>;
|
|
148
|
+
static phantom(): PhantomReified<ToTypeStr<CreateEvent>>;
|
|
149
|
+
static get p(): reified.PhantomReified<"0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::CreateEvent">;
|
|
150
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
151
|
+
typename: {
|
|
152
|
+
name: {
|
|
153
|
+
bytes: number[];
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
liquid_staking_info_id: {
|
|
157
|
+
bytes: string;
|
|
158
|
+
};
|
|
159
|
+
}, {
|
|
160
|
+
typename: {
|
|
161
|
+
name: {
|
|
162
|
+
bytes: Iterable<number> & {
|
|
163
|
+
length: number;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
liquid_staking_info_id: {
|
|
168
|
+
bytes: string;
|
|
169
|
+
};
|
|
170
|
+
}>;
|
|
171
|
+
static fromFields(fields: Record<string, any>): CreateEvent;
|
|
172
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): CreateEvent;
|
|
173
|
+
static fromBcs(data: Uint8Array): CreateEvent;
|
|
174
|
+
toJSONField(): {
|
|
175
|
+
typename: {
|
|
176
|
+
name: string;
|
|
177
|
+
};
|
|
178
|
+
liquidStakingInfoId: string;
|
|
179
|
+
};
|
|
180
|
+
toJSON(): {
|
|
181
|
+
typename: {
|
|
182
|
+
name: string;
|
|
183
|
+
};
|
|
184
|
+
liquidStakingInfoId: string;
|
|
185
|
+
$typeName: string;
|
|
186
|
+
$typeArgs: [];
|
|
187
|
+
};
|
|
188
|
+
static fromJSONField(field: any): CreateEvent;
|
|
189
|
+
static fromJSON(json: Record<string, any>): CreateEvent;
|
|
190
|
+
static fromSuiParsedData(content: SuiParsedData): CreateEvent;
|
|
191
|
+
static fromSuiObjectData(data: SuiObjectData): CreateEvent;
|
|
192
|
+
static fetch(client: SuiClient, id: string): Promise<CreateEvent>;
|
|
193
|
+
}
|
|
194
|
+
export declare function isDecreaseValidatorStakeEvent(type: string): boolean;
|
|
195
|
+
export interface DecreaseValidatorStakeEventFields {
|
|
196
|
+
typename: ToField<TypeName>;
|
|
197
|
+
stakingPoolId: ToField<ID>;
|
|
198
|
+
amount: ToField<"u64">;
|
|
199
|
+
}
|
|
200
|
+
export type DecreaseValidatorStakeEventReified = Reified<DecreaseValidatorStakeEvent, DecreaseValidatorStakeEventFields>;
|
|
201
|
+
export declare class DecreaseValidatorStakeEvent implements StructClass {
|
|
202
|
+
__StructClass: true;
|
|
203
|
+
static readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::DecreaseValidatorStakeEvent";
|
|
204
|
+
static readonly $numTypeParams = 0;
|
|
205
|
+
static readonly $isPhantom: readonly [];
|
|
206
|
+
readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::DecreaseValidatorStakeEvent";
|
|
207
|
+
readonly $fullTypeName: `${typeof PKG_V1}::liquid_staking::DecreaseValidatorStakeEvent`;
|
|
208
|
+
readonly $typeArgs: [];
|
|
209
|
+
readonly $isPhantom: readonly [];
|
|
210
|
+
readonly typename: ToField<TypeName>;
|
|
211
|
+
readonly stakingPoolId: ToField<ID>;
|
|
212
|
+
readonly amount: ToField<"u64">;
|
|
213
|
+
private constructor();
|
|
214
|
+
static reified(): DecreaseValidatorStakeEventReified;
|
|
215
|
+
static get r(): reified.StructClassReified<DecreaseValidatorStakeEvent, DecreaseValidatorStakeEventFields>;
|
|
216
|
+
static phantom(): PhantomReified<ToTypeStr<DecreaseValidatorStakeEvent>>;
|
|
217
|
+
static get p(): reified.PhantomReified<"0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::DecreaseValidatorStakeEvent">;
|
|
218
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
219
|
+
typename: {
|
|
220
|
+
name: {
|
|
221
|
+
bytes: number[];
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
staking_pool_id: {
|
|
225
|
+
bytes: string;
|
|
226
|
+
};
|
|
227
|
+
amount: string;
|
|
228
|
+
}, {
|
|
229
|
+
typename: {
|
|
230
|
+
name: {
|
|
231
|
+
bytes: Iterable<number> & {
|
|
232
|
+
length: number;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
staking_pool_id: {
|
|
237
|
+
bytes: string;
|
|
238
|
+
};
|
|
239
|
+
amount: string | number | bigint;
|
|
240
|
+
}>;
|
|
241
|
+
static fromFields(fields: Record<string, any>): DecreaseValidatorStakeEvent;
|
|
242
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): DecreaseValidatorStakeEvent;
|
|
243
|
+
static fromBcs(data: Uint8Array): DecreaseValidatorStakeEvent;
|
|
244
|
+
toJSONField(): {
|
|
245
|
+
typename: {
|
|
246
|
+
name: string;
|
|
247
|
+
};
|
|
248
|
+
stakingPoolId: string;
|
|
249
|
+
amount: string;
|
|
250
|
+
};
|
|
251
|
+
toJSON(): {
|
|
252
|
+
typename: {
|
|
253
|
+
name: string;
|
|
254
|
+
};
|
|
255
|
+
stakingPoolId: string;
|
|
256
|
+
amount: string;
|
|
257
|
+
$typeName: string;
|
|
258
|
+
$typeArgs: [];
|
|
259
|
+
};
|
|
260
|
+
static fromJSONField(field: any): DecreaseValidatorStakeEvent;
|
|
261
|
+
static fromJSON(json: Record<string, any>): DecreaseValidatorStakeEvent;
|
|
262
|
+
static fromSuiParsedData(content: SuiParsedData): DecreaseValidatorStakeEvent;
|
|
263
|
+
static fromSuiObjectData(data: SuiObjectData): DecreaseValidatorStakeEvent;
|
|
264
|
+
static fetch(client: SuiClient, id: string): Promise<DecreaseValidatorStakeEvent>;
|
|
265
|
+
}
|
|
266
|
+
export declare function isEpochChangedEvent(type: string): boolean;
|
|
267
|
+
export interface EpochChangedEventFields {
|
|
268
|
+
typename: ToField<TypeName>;
|
|
269
|
+
oldSuiSupply: ToField<"u64">;
|
|
270
|
+
newSuiSupply: ToField<"u64">;
|
|
271
|
+
lstSupply: ToField<"u64">;
|
|
272
|
+
spreadFee: ToField<"u64">;
|
|
273
|
+
}
|
|
274
|
+
export type EpochChangedEventReified = Reified<EpochChangedEvent, EpochChangedEventFields>;
|
|
275
|
+
export declare class EpochChangedEvent implements StructClass {
|
|
276
|
+
__StructClass: true;
|
|
277
|
+
static readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::EpochChangedEvent";
|
|
278
|
+
static readonly $numTypeParams = 0;
|
|
279
|
+
static readonly $isPhantom: readonly [];
|
|
280
|
+
readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::EpochChangedEvent";
|
|
281
|
+
readonly $fullTypeName: `${typeof PKG_V1}::liquid_staking::EpochChangedEvent`;
|
|
282
|
+
readonly $typeArgs: [];
|
|
283
|
+
readonly $isPhantom: readonly [];
|
|
284
|
+
readonly typename: ToField<TypeName>;
|
|
285
|
+
readonly oldSuiSupply: ToField<"u64">;
|
|
286
|
+
readonly newSuiSupply: ToField<"u64">;
|
|
287
|
+
readonly lstSupply: ToField<"u64">;
|
|
288
|
+
readonly spreadFee: ToField<"u64">;
|
|
289
|
+
private constructor();
|
|
290
|
+
static reified(): EpochChangedEventReified;
|
|
291
|
+
static get r(): reified.StructClassReified<EpochChangedEvent, EpochChangedEventFields>;
|
|
292
|
+
static phantom(): PhantomReified<ToTypeStr<EpochChangedEvent>>;
|
|
293
|
+
static get p(): reified.PhantomReified<"0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::EpochChangedEvent">;
|
|
294
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
295
|
+
typename: {
|
|
296
|
+
name: {
|
|
297
|
+
bytes: number[];
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
old_sui_supply: string;
|
|
301
|
+
new_sui_supply: string;
|
|
302
|
+
lst_supply: string;
|
|
303
|
+
spread_fee: string;
|
|
304
|
+
}, {
|
|
305
|
+
typename: {
|
|
306
|
+
name: {
|
|
307
|
+
bytes: Iterable<number> & {
|
|
308
|
+
length: number;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
old_sui_supply: string | number | bigint;
|
|
313
|
+
new_sui_supply: string | number | bigint;
|
|
314
|
+
lst_supply: string | number | bigint;
|
|
315
|
+
spread_fee: string | number | bigint;
|
|
316
|
+
}>;
|
|
317
|
+
static fromFields(fields: Record<string, any>): EpochChangedEvent;
|
|
318
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): EpochChangedEvent;
|
|
319
|
+
static fromBcs(data: Uint8Array): EpochChangedEvent;
|
|
320
|
+
toJSONField(): {
|
|
321
|
+
typename: {
|
|
322
|
+
name: string;
|
|
323
|
+
};
|
|
324
|
+
oldSuiSupply: string;
|
|
325
|
+
newSuiSupply: string;
|
|
326
|
+
lstSupply: string;
|
|
327
|
+
spreadFee: string;
|
|
328
|
+
};
|
|
329
|
+
toJSON(): {
|
|
330
|
+
typename: {
|
|
331
|
+
name: string;
|
|
332
|
+
};
|
|
333
|
+
oldSuiSupply: string;
|
|
334
|
+
newSuiSupply: string;
|
|
335
|
+
lstSupply: string;
|
|
336
|
+
spreadFee: string;
|
|
337
|
+
$typeName: string;
|
|
338
|
+
$typeArgs: [];
|
|
339
|
+
};
|
|
340
|
+
static fromJSONField(field: any): EpochChangedEvent;
|
|
341
|
+
static fromJSON(json: Record<string, any>): EpochChangedEvent;
|
|
342
|
+
static fromSuiParsedData(content: SuiParsedData): EpochChangedEvent;
|
|
343
|
+
static fromSuiObjectData(data: SuiObjectData): EpochChangedEvent;
|
|
344
|
+
static fetch(client: SuiClient, id: string): Promise<EpochChangedEvent>;
|
|
345
|
+
}
|
|
346
|
+
export declare function isIncreaseValidatorStakeEvent(type: string): boolean;
|
|
347
|
+
export interface IncreaseValidatorStakeEventFields {
|
|
348
|
+
typename: ToField<TypeName>;
|
|
349
|
+
stakingPoolId: ToField<ID>;
|
|
350
|
+
amount: ToField<"u64">;
|
|
351
|
+
}
|
|
352
|
+
export type IncreaseValidatorStakeEventReified = Reified<IncreaseValidatorStakeEvent, IncreaseValidatorStakeEventFields>;
|
|
353
|
+
export declare class IncreaseValidatorStakeEvent implements StructClass {
|
|
354
|
+
__StructClass: true;
|
|
355
|
+
static readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::IncreaseValidatorStakeEvent";
|
|
356
|
+
static readonly $numTypeParams = 0;
|
|
357
|
+
static readonly $isPhantom: readonly [];
|
|
358
|
+
readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::IncreaseValidatorStakeEvent";
|
|
359
|
+
readonly $fullTypeName: `${typeof PKG_V1}::liquid_staking::IncreaseValidatorStakeEvent`;
|
|
360
|
+
readonly $typeArgs: [];
|
|
361
|
+
readonly $isPhantom: readonly [];
|
|
362
|
+
readonly typename: ToField<TypeName>;
|
|
363
|
+
readonly stakingPoolId: ToField<ID>;
|
|
364
|
+
readonly amount: ToField<"u64">;
|
|
365
|
+
private constructor();
|
|
366
|
+
static reified(): IncreaseValidatorStakeEventReified;
|
|
367
|
+
static get r(): reified.StructClassReified<IncreaseValidatorStakeEvent, IncreaseValidatorStakeEventFields>;
|
|
368
|
+
static phantom(): PhantomReified<ToTypeStr<IncreaseValidatorStakeEvent>>;
|
|
369
|
+
static get p(): reified.PhantomReified<"0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::IncreaseValidatorStakeEvent">;
|
|
370
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
371
|
+
typename: {
|
|
372
|
+
name: {
|
|
373
|
+
bytes: number[];
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
staking_pool_id: {
|
|
377
|
+
bytes: string;
|
|
378
|
+
};
|
|
379
|
+
amount: string;
|
|
380
|
+
}, {
|
|
381
|
+
typename: {
|
|
382
|
+
name: {
|
|
383
|
+
bytes: Iterable<number> & {
|
|
384
|
+
length: number;
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
staking_pool_id: {
|
|
389
|
+
bytes: string;
|
|
390
|
+
};
|
|
391
|
+
amount: string | number | bigint;
|
|
392
|
+
}>;
|
|
393
|
+
static fromFields(fields: Record<string, any>): IncreaseValidatorStakeEvent;
|
|
394
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): IncreaseValidatorStakeEvent;
|
|
395
|
+
static fromBcs(data: Uint8Array): IncreaseValidatorStakeEvent;
|
|
396
|
+
toJSONField(): {
|
|
397
|
+
typename: {
|
|
398
|
+
name: string;
|
|
399
|
+
};
|
|
400
|
+
stakingPoolId: string;
|
|
401
|
+
amount: string;
|
|
402
|
+
};
|
|
403
|
+
toJSON(): {
|
|
404
|
+
typename: {
|
|
405
|
+
name: string;
|
|
406
|
+
};
|
|
407
|
+
stakingPoolId: string;
|
|
408
|
+
amount: string;
|
|
409
|
+
$typeName: string;
|
|
410
|
+
$typeArgs: [];
|
|
411
|
+
};
|
|
412
|
+
static fromJSONField(field: any): IncreaseValidatorStakeEvent;
|
|
413
|
+
static fromJSON(json: Record<string, any>): IncreaseValidatorStakeEvent;
|
|
414
|
+
static fromSuiParsedData(content: SuiParsedData): IncreaseValidatorStakeEvent;
|
|
415
|
+
static fromSuiObjectData(data: SuiObjectData): IncreaseValidatorStakeEvent;
|
|
416
|
+
static fetch(client: SuiClient, id: string): Promise<IncreaseValidatorStakeEvent>;
|
|
417
|
+
}
|
|
418
|
+
export declare function isLIQUID_STAKING(type: string): boolean;
|
|
419
|
+
export interface LIQUID_STAKINGFields {
|
|
420
|
+
dummyField: ToField<"bool">;
|
|
421
|
+
}
|
|
422
|
+
export type LIQUID_STAKINGReified = Reified<LIQUID_STAKING, LIQUID_STAKINGFields>;
|
|
423
|
+
export declare class LIQUID_STAKING implements StructClass {
|
|
424
|
+
__StructClass: true;
|
|
425
|
+
static readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::LIQUID_STAKING";
|
|
426
|
+
static readonly $numTypeParams = 0;
|
|
427
|
+
static readonly $isPhantom: readonly [];
|
|
428
|
+
readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::LIQUID_STAKING";
|
|
429
|
+
readonly $fullTypeName: `${typeof PKG_V1}::liquid_staking::LIQUID_STAKING`;
|
|
430
|
+
readonly $typeArgs: [];
|
|
431
|
+
readonly $isPhantom: readonly [];
|
|
432
|
+
readonly dummyField: ToField<"bool">;
|
|
433
|
+
private constructor();
|
|
434
|
+
static reified(): LIQUID_STAKINGReified;
|
|
435
|
+
static get r(): reified.StructClassReified<LIQUID_STAKING, LIQUID_STAKINGFields>;
|
|
436
|
+
static phantom(): PhantomReified<ToTypeStr<LIQUID_STAKING>>;
|
|
437
|
+
static get p(): reified.PhantomReified<"0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::LIQUID_STAKING">;
|
|
438
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
439
|
+
dummy_field: boolean;
|
|
440
|
+
}, {
|
|
441
|
+
dummy_field: boolean;
|
|
442
|
+
}>;
|
|
443
|
+
static fromFields(fields: Record<string, any>): LIQUID_STAKING;
|
|
444
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): LIQUID_STAKING;
|
|
445
|
+
static fromBcs(data: Uint8Array): LIQUID_STAKING;
|
|
446
|
+
toJSONField(): {
|
|
447
|
+
dummyField: boolean;
|
|
448
|
+
};
|
|
449
|
+
toJSON(): {
|
|
450
|
+
dummyField: boolean;
|
|
451
|
+
$typeName: string;
|
|
452
|
+
$typeArgs: [];
|
|
453
|
+
};
|
|
454
|
+
static fromJSONField(field: any): LIQUID_STAKING;
|
|
455
|
+
static fromJSON(json: Record<string, any>): LIQUID_STAKING;
|
|
456
|
+
static fromSuiParsedData(content: SuiParsedData): LIQUID_STAKING;
|
|
457
|
+
static fromSuiObjectData(data: SuiObjectData): LIQUID_STAKING;
|
|
458
|
+
static fetch(client: SuiClient, id: string): Promise<LIQUID_STAKING>;
|
|
459
|
+
}
|
|
460
|
+
export declare function isLiquidStakingInfo(type: string): boolean;
|
|
461
|
+
export interface LiquidStakingInfoFields<P extends PhantomTypeArgument> {
|
|
462
|
+
id: ToField<UID>;
|
|
463
|
+
lstTreasuryCap: ToField<TreasuryCap<P>>;
|
|
464
|
+
feeConfig: ToField<Cell<FeeConfig>>;
|
|
465
|
+
fees: ToField<Balance<ToPhantom<SUI>>>;
|
|
466
|
+
accruedSpreadFees: ToField<"u64">;
|
|
467
|
+
storage: ToField<Storage>;
|
|
468
|
+
version: ToField<Version>;
|
|
469
|
+
extraFields: ToField<Bag>;
|
|
470
|
+
}
|
|
471
|
+
export type LiquidStakingInfoReified<P extends PhantomTypeArgument> = Reified<LiquidStakingInfo<P>, LiquidStakingInfoFields<P>>;
|
|
472
|
+
export declare class LiquidStakingInfo<P extends PhantomTypeArgument> implements StructClass {
|
|
473
|
+
__StructClass: true;
|
|
474
|
+
static readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::LiquidStakingInfo";
|
|
475
|
+
static readonly $numTypeParams = 1;
|
|
476
|
+
static readonly $isPhantom: readonly [true];
|
|
477
|
+
readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::LiquidStakingInfo";
|
|
478
|
+
readonly $fullTypeName: `${typeof PKG_V1}::liquid_staking::LiquidStakingInfo<${PhantomToTypeStr<P>}>`;
|
|
479
|
+
readonly $typeArgs: [PhantomToTypeStr<P>];
|
|
480
|
+
readonly $isPhantom: readonly [true];
|
|
481
|
+
readonly id: ToField<UID>;
|
|
482
|
+
readonly lstTreasuryCap: ToField<TreasuryCap<P>>;
|
|
483
|
+
readonly feeConfig: ToField<Cell<FeeConfig>>;
|
|
484
|
+
readonly fees: ToField<Balance<ToPhantom<SUI>>>;
|
|
485
|
+
readonly accruedSpreadFees: ToField<"u64">;
|
|
486
|
+
readonly storage: ToField<Storage>;
|
|
487
|
+
readonly version: ToField<Version>;
|
|
488
|
+
readonly extraFields: ToField<Bag>;
|
|
489
|
+
private constructor();
|
|
490
|
+
static reified<P extends PhantomReified<PhantomTypeArgument>>(P: P): LiquidStakingInfoReified<ToPhantomTypeArgument<P>>;
|
|
491
|
+
static get r(): typeof LiquidStakingInfo.reified;
|
|
492
|
+
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<LiquidStakingInfo<ToPhantomTypeArgument<P>>>>;
|
|
493
|
+
static get p(): typeof LiquidStakingInfo.phantom;
|
|
494
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
495
|
+
id: {
|
|
496
|
+
id: {
|
|
497
|
+
bytes: string;
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
lst_treasury_cap: {
|
|
501
|
+
id: {
|
|
502
|
+
id: {
|
|
503
|
+
bytes: string;
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
total_supply: {
|
|
507
|
+
value: string;
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
fee_config: {
|
|
511
|
+
element: {
|
|
512
|
+
vec: any[];
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
fees: {
|
|
516
|
+
value: string;
|
|
517
|
+
};
|
|
518
|
+
accrued_spread_fees: string;
|
|
519
|
+
storage: {
|
|
520
|
+
sui_pool: {
|
|
521
|
+
value: string;
|
|
522
|
+
};
|
|
523
|
+
validator_infos: {
|
|
524
|
+
staking_pool_id: {
|
|
525
|
+
bytes: string;
|
|
526
|
+
};
|
|
527
|
+
validator_address: string;
|
|
528
|
+
active_stake: {
|
|
529
|
+
vec: any[];
|
|
530
|
+
};
|
|
531
|
+
inactive_stake: {
|
|
532
|
+
vec: any[];
|
|
533
|
+
};
|
|
534
|
+
exchange_rate: {
|
|
535
|
+
sui_amount: string;
|
|
536
|
+
pool_token_amount: string;
|
|
537
|
+
};
|
|
538
|
+
total_sui_amount: string;
|
|
539
|
+
extra_fields: {
|
|
540
|
+
id: {
|
|
541
|
+
id: {
|
|
542
|
+
bytes: string;
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
size: string;
|
|
546
|
+
};
|
|
547
|
+
}[];
|
|
548
|
+
total_sui_supply: string;
|
|
549
|
+
last_refresh_epoch: string;
|
|
550
|
+
extra_fields: {
|
|
551
|
+
id: {
|
|
552
|
+
id: {
|
|
553
|
+
bytes: string;
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
size: string;
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
version: {
|
|
560
|
+
pos0: number;
|
|
561
|
+
};
|
|
562
|
+
extra_fields: {
|
|
563
|
+
id: {
|
|
564
|
+
id: {
|
|
565
|
+
bytes: string;
|
|
566
|
+
};
|
|
567
|
+
};
|
|
568
|
+
size: string;
|
|
569
|
+
};
|
|
570
|
+
}, {
|
|
571
|
+
id: {
|
|
572
|
+
id: {
|
|
573
|
+
bytes: string;
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
lst_treasury_cap: {
|
|
577
|
+
id: {
|
|
578
|
+
id: {
|
|
579
|
+
bytes: string;
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
total_supply: {
|
|
583
|
+
value: string | number | bigint;
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
fee_config: {
|
|
587
|
+
element: {
|
|
588
|
+
vec: Iterable<any> & {
|
|
589
|
+
length: number;
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
fees: {
|
|
594
|
+
value: string | number | bigint;
|
|
595
|
+
};
|
|
596
|
+
accrued_spread_fees: string | number | bigint;
|
|
597
|
+
storage: {
|
|
598
|
+
sui_pool: {
|
|
599
|
+
value: string | number | bigint;
|
|
600
|
+
};
|
|
601
|
+
validator_infos: Iterable<{
|
|
602
|
+
staking_pool_id: {
|
|
603
|
+
bytes: string;
|
|
604
|
+
};
|
|
605
|
+
validator_address: string;
|
|
606
|
+
active_stake: {
|
|
607
|
+
vec: Iterable<any> & {
|
|
608
|
+
length: number;
|
|
609
|
+
};
|
|
610
|
+
};
|
|
611
|
+
inactive_stake: {
|
|
612
|
+
vec: Iterable<any> & {
|
|
613
|
+
length: number;
|
|
614
|
+
};
|
|
615
|
+
};
|
|
616
|
+
exchange_rate: {
|
|
617
|
+
sui_amount: string | number | bigint;
|
|
618
|
+
pool_token_amount: string | number | bigint;
|
|
619
|
+
};
|
|
620
|
+
total_sui_amount: string | number | bigint;
|
|
621
|
+
extra_fields: {
|
|
622
|
+
id: {
|
|
623
|
+
id: {
|
|
624
|
+
bytes: string;
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
size: string | number | bigint;
|
|
628
|
+
};
|
|
629
|
+
}> & {
|
|
630
|
+
length: number;
|
|
631
|
+
};
|
|
632
|
+
total_sui_supply: string | number | bigint;
|
|
633
|
+
last_refresh_epoch: string | number | bigint;
|
|
634
|
+
extra_fields: {
|
|
635
|
+
id: {
|
|
636
|
+
id: {
|
|
637
|
+
bytes: string;
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
size: string | number | bigint;
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
version: {
|
|
644
|
+
pos0: number;
|
|
645
|
+
};
|
|
646
|
+
extra_fields: {
|
|
647
|
+
id: {
|
|
648
|
+
id: {
|
|
649
|
+
bytes: string;
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
size: string | number | bigint;
|
|
653
|
+
};
|
|
654
|
+
}>;
|
|
655
|
+
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): LiquidStakingInfo<ToPhantomTypeArgument<P>>;
|
|
656
|
+
static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, item: FieldsWithTypes): LiquidStakingInfo<ToPhantomTypeArgument<P>>;
|
|
657
|
+
static fromBcs<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: Uint8Array): LiquidStakingInfo<ToPhantomTypeArgument<P>>;
|
|
658
|
+
toJSONField(): {
|
|
659
|
+
id: string;
|
|
660
|
+
lstTreasuryCap: {
|
|
661
|
+
id: string;
|
|
662
|
+
totalSupply: {
|
|
663
|
+
value: string;
|
|
664
|
+
};
|
|
665
|
+
};
|
|
666
|
+
feeConfig: {
|
|
667
|
+
element: {
|
|
668
|
+
suiMintFeeBps: string;
|
|
669
|
+
stakedSuiMintFeeBps: string;
|
|
670
|
+
redeemFeeBps: string;
|
|
671
|
+
stakedSuiRedeemFeeBps: string;
|
|
672
|
+
spreadFeeBps: string;
|
|
673
|
+
customRedeemFeeBps: string;
|
|
674
|
+
extraFields: {
|
|
675
|
+
id: string;
|
|
676
|
+
size: string;
|
|
677
|
+
};
|
|
678
|
+
} | null;
|
|
679
|
+
};
|
|
680
|
+
fees: {
|
|
681
|
+
value: string;
|
|
682
|
+
};
|
|
683
|
+
accruedSpreadFees: string;
|
|
684
|
+
storage: {
|
|
685
|
+
suiPool: {
|
|
686
|
+
value: string;
|
|
687
|
+
};
|
|
688
|
+
validatorInfos: {
|
|
689
|
+
stakingPoolId: string;
|
|
690
|
+
validatorAddress: string;
|
|
691
|
+
activeStake: {
|
|
692
|
+
id: string;
|
|
693
|
+
poolId: string;
|
|
694
|
+
value: string;
|
|
695
|
+
} | null;
|
|
696
|
+
inactiveStake: {
|
|
697
|
+
id: string;
|
|
698
|
+
poolId: string;
|
|
699
|
+
stakeActivationEpoch: string;
|
|
700
|
+
principal: {
|
|
701
|
+
value: string;
|
|
702
|
+
};
|
|
703
|
+
} | null;
|
|
704
|
+
exchangeRate: {
|
|
705
|
+
suiAmount: string;
|
|
706
|
+
poolTokenAmount: string;
|
|
707
|
+
};
|
|
708
|
+
totalSuiAmount: string;
|
|
709
|
+
extraFields: {
|
|
710
|
+
id: string;
|
|
711
|
+
size: string;
|
|
712
|
+
};
|
|
713
|
+
}[];
|
|
714
|
+
totalSuiSupply: string;
|
|
715
|
+
lastRefreshEpoch: string;
|
|
716
|
+
extraFields: {
|
|
717
|
+
id: string;
|
|
718
|
+
size: string;
|
|
719
|
+
};
|
|
720
|
+
};
|
|
721
|
+
version: {
|
|
722
|
+
pos0: number;
|
|
723
|
+
};
|
|
724
|
+
extraFields: {
|
|
725
|
+
id: string;
|
|
726
|
+
size: string;
|
|
727
|
+
};
|
|
728
|
+
};
|
|
729
|
+
toJSON(): {
|
|
730
|
+
id: string;
|
|
731
|
+
lstTreasuryCap: {
|
|
732
|
+
id: string;
|
|
733
|
+
totalSupply: {
|
|
734
|
+
value: string;
|
|
735
|
+
};
|
|
736
|
+
};
|
|
737
|
+
feeConfig: {
|
|
738
|
+
element: {
|
|
739
|
+
suiMintFeeBps: string;
|
|
740
|
+
stakedSuiMintFeeBps: string;
|
|
741
|
+
redeemFeeBps: string;
|
|
742
|
+
stakedSuiRedeemFeeBps: string;
|
|
743
|
+
spreadFeeBps: string;
|
|
744
|
+
customRedeemFeeBps: string;
|
|
745
|
+
extraFields: {
|
|
746
|
+
id: string;
|
|
747
|
+
size: string;
|
|
748
|
+
};
|
|
749
|
+
} | null;
|
|
750
|
+
};
|
|
751
|
+
fees: {
|
|
752
|
+
value: string;
|
|
753
|
+
};
|
|
754
|
+
accruedSpreadFees: string;
|
|
755
|
+
storage: {
|
|
756
|
+
suiPool: {
|
|
757
|
+
value: string;
|
|
758
|
+
};
|
|
759
|
+
validatorInfos: {
|
|
760
|
+
stakingPoolId: string;
|
|
761
|
+
validatorAddress: string;
|
|
762
|
+
activeStake: {
|
|
763
|
+
id: string;
|
|
764
|
+
poolId: string;
|
|
765
|
+
value: string;
|
|
766
|
+
} | null;
|
|
767
|
+
inactiveStake: {
|
|
768
|
+
id: string;
|
|
769
|
+
poolId: string;
|
|
770
|
+
stakeActivationEpoch: string;
|
|
771
|
+
principal: {
|
|
772
|
+
value: string;
|
|
773
|
+
};
|
|
774
|
+
} | null;
|
|
775
|
+
exchangeRate: {
|
|
776
|
+
suiAmount: string;
|
|
777
|
+
poolTokenAmount: string;
|
|
778
|
+
};
|
|
779
|
+
totalSuiAmount: string;
|
|
780
|
+
extraFields: {
|
|
781
|
+
id: string;
|
|
782
|
+
size: string;
|
|
783
|
+
};
|
|
784
|
+
}[];
|
|
785
|
+
totalSuiSupply: string;
|
|
786
|
+
lastRefreshEpoch: string;
|
|
787
|
+
extraFields: {
|
|
788
|
+
id: string;
|
|
789
|
+
size: string;
|
|
790
|
+
};
|
|
791
|
+
};
|
|
792
|
+
version: {
|
|
793
|
+
pos0: number;
|
|
794
|
+
};
|
|
795
|
+
extraFields: {
|
|
796
|
+
id: string;
|
|
797
|
+
size: string;
|
|
798
|
+
};
|
|
799
|
+
$typeName: string;
|
|
800
|
+
$typeArgs: [reified.PhantomToTypeStr<P>];
|
|
801
|
+
};
|
|
802
|
+
static fromJSONField<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, field: any): LiquidStakingInfo<ToPhantomTypeArgument<P>>;
|
|
803
|
+
static fromJSON<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, json: Record<string, any>): LiquidStakingInfo<ToPhantomTypeArgument<P>>;
|
|
804
|
+
static fromSuiParsedData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, content: SuiParsedData): LiquidStakingInfo<ToPhantomTypeArgument<P>>;
|
|
805
|
+
static fromSuiObjectData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: SuiObjectData): LiquidStakingInfo<ToPhantomTypeArgument<P>>;
|
|
806
|
+
static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: P, id: string): Promise<LiquidStakingInfo<ToPhantomTypeArgument<P>>>;
|
|
807
|
+
}
|
|
808
|
+
export declare function isMintEvent(type: string): boolean;
|
|
809
|
+
export interface MintEventFields {
|
|
810
|
+
typename: ToField<TypeName>;
|
|
811
|
+
suiAmountIn: ToField<"u64">;
|
|
812
|
+
lstAmountOut: ToField<"u64">;
|
|
813
|
+
feeAmount: ToField<"u64">;
|
|
814
|
+
}
|
|
815
|
+
export type MintEventReified = Reified<MintEvent, MintEventFields>;
|
|
816
|
+
export declare class MintEvent implements StructClass {
|
|
817
|
+
__StructClass: true;
|
|
818
|
+
static readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::MintEvent";
|
|
819
|
+
static readonly $numTypeParams = 0;
|
|
820
|
+
static readonly $isPhantom: readonly [];
|
|
821
|
+
readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::MintEvent";
|
|
822
|
+
readonly $fullTypeName: `${typeof PKG_V1}::liquid_staking::MintEvent`;
|
|
823
|
+
readonly $typeArgs: [];
|
|
824
|
+
readonly $isPhantom: readonly [];
|
|
825
|
+
readonly typename: ToField<TypeName>;
|
|
826
|
+
readonly suiAmountIn: ToField<"u64">;
|
|
827
|
+
readonly lstAmountOut: ToField<"u64">;
|
|
828
|
+
readonly feeAmount: ToField<"u64">;
|
|
829
|
+
private constructor();
|
|
830
|
+
static reified(): MintEventReified;
|
|
831
|
+
static get r(): reified.StructClassReified<MintEvent, MintEventFields>;
|
|
832
|
+
static phantom(): PhantomReified<ToTypeStr<MintEvent>>;
|
|
833
|
+
static get p(): reified.PhantomReified<"0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::MintEvent">;
|
|
834
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
835
|
+
typename: {
|
|
836
|
+
name: {
|
|
837
|
+
bytes: number[];
|
|
838
|
+
};
|
|
839
|
+
};
|
|
840
|
+
sui_amount_in: string;
|
|
841
|
+
lst_amount_out: string;
|
|
842
|
+
fee_amount: string;
|
|
843
|
+
}, {
|
|
844
|
+
typename: {
|
|
845
|
+
name: {
|
|
846
|
+
bytes: Iterable<number> & {
|
|
847
|
+
length: number;
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
};
|
|
851
|
+
sui_amount_in: string | number | bigint;
|
|
852
|
+
lst_amount_out: string | number | bigint;
|
|
853
|
+
fee_amount: string | number | bigint;
|
|
854
|
+
}>;
|
|
855
|
+
static fromFields(fields: Record<string, any>): MintEvent;
|
|
856
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): MintEvent;
|
|
857
|
+
static fromBcs(data: Uint8Array): MintEvent;
|
|
858
|
+
toJSONField(): {
|
|
859
|
+
typename: {
|
|
860
|
+
name: string;
|
|
861
|
+
};
|
|
862
|
+
suiAmountIn: string;
|
|
863
|
+
lstAmountOut: string;
|
|
864
|
+
feeAmount: string;
|
|
865
|
+
};
|
|
866
|
+
toJSON(): {
|
|
867
|
+
typename: {
|
|
868
|
+
name: string;
|
|
869
|
+
};
|
|
870
|
+
suiAmountIn: string;
|
|
871
|
+
lstAmountOut: string;
|
|
872
|
+
feeAmount: string;
|
|
873
|
+
$typeName: string;
|
|
874
|
+
$typeArgs: [];
|
|
875
|
+
};
|
|
876
|
+
static fromJSONField(field: any): MintEvent;
|
|
877
|
+
static fromJSON(json: Record<string, any>): MintEvent;
|
|
878
|
+
static fromSuiParsedData(content: SuiParsedData): MintEvent;
|
|
879
|
+
static fromSuiObjectData(data: SuiObjectData): MintEvent;
|
|
880
|
+
static fetch(client: SuiClient, id: string): Promise<MintEvent>;
|
|
881
|
+
}
|
|
882
|
+
export declare function isRedeemEvent(type: string): boolean;
|
|
883
|
+
export interface RedeemEventFields {
|
|
884
|
+
typename: ToField<TypeName>;
|
|
885
|
+
lstAmountIn: ToField<"u64">;
|
|
886
|
+
suiAmountOut: ToField<"u64">;
|
|
887
|
+
feeAmount: ToField<"u64">;
|
|
888
|
+
}
|
|
889
|
+
export type RedeemEventReified = Reified<RedeemEvent, RedeemEventFields>;
|
|
890
|
+
export declare class RedeemEvent implements StructClass {
|
|
891
|
+
__StructClass: true;
|
|
892
|
+
static readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::RedeemEvent";
|
|
893
|
+
static readonly $numTypeParams = 0;
|
|
894
|
+
static readonly $isPhantom: readonly [];
|
|
895
|
+
readonly $typeName = "0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::RedeemEvent";
|
|
896
|
+
readonly $fullTypeName: `${typeof PKG_V1}::liquid_staking::RedeemEvent`;
|
|
897
|
+
readonly $typeArgs: [];
|
|
898
|
+
readonly $isPhantom: readonly [];
|
|
899
|
+
readonly typename: ToField<TypeName>;
|
|
900
|
+
readonly lstAmountIn: ToField<"u64">;
|
|
901
|
+
readonly suiAmountOut: ToField<"u64">;
|
|
902
|
+
readonly feeAmount: ToField<"u64">;
|
|
903
|
+
private constructor();
|
|
904
|
+
static reified(): RedeemEventReified;
|
|
905
|
+
static get r(): reified.StructClassReified<RedeemEvent, RedeemEventFields>;
|
|
906
|
+
static phantom(): PhantomReified<ToTypeStr<RedeemEvent>>;
|
|
907
|
+
static get p(): reified.PhantomReified<"0xcfbcad8e0444ca85ad7ee28054585d12a7487bdbd83569ded988ca13441bf16e::liquid_staking::RedeemEvent">;
|
|
908
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
909
|
+
typename: {
|
|
910
|
+
name: {
|
|
911
|
+
bytes: number[];
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
lst_amount_in: string;
|
|
915
|
+
sui_amount_out: string;
|
|
916
|
+
fee_amount: string;
|
|
917
|
+
}, {
|
|
918
|
+
typename: {
|
|
919
|
+
name: {
|
|
920
|
+
bytes: Iterable<number> & {
|
|
921
|
+
length: number;
|
|
922
|
+
};
|
|
923
|
+
};
|
|
924
|
+
};
|
|
925
|
+
lst_amount_in: string | number | bigint;
|
|
926
|
+
sui_amount_out: string | number | bigint;
|
|
927
|
+
fee_amount: string | number | bigint;
|
|
928
|
+
}>;
|
|
929
|
+
static fromFields(fields: Record<string, any>): RedeemEvent;
|
|
930
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): RedeemEvent;
|
|
931
|
+
static fromBcs(data: Uint8Array): RedeemEvent;
|
|
932
|
+
toJSONField(): {
|
|
933
|
+
typename: {
|
|
934
|
+
name: string;
|
|
935
|
+
};
|
|
936
|
+
lstAmountIn: string;
|
|
937
|
+
suiAmountOut: string;
|
|
938
|
+
feeAmount: string;
|
|
939
|
+
};
|
|
940
|
+
toJSON(): {
|
|
941
|
+
typename: {
|
|
942
|
+
name: string;
|
|
943
|
+
};
|
|
944
|
+
lstAmountIn: string;
|
|
945
|
+
suiAmountOut: string;
|
|
946
|
+
feeAmount: string;
|
|
947
|
+
$typeName: string;
|
|
948
|
+
$typeArgs: [];
|
|
949
|
+
};
|
|
950
|
+
static fromJSONField(field: any): RedeemEvent;
|
|
951
|
+
static fromJSON(json: Record<string, any>): RedeemEvent;
|
|
952
|
+
static fromSuiParsedData(content: SuiParsedData): RedeemEvent;
|
|
953
|
+
static fromSuiObjectData(data: SuiObjectData): RedeemEvent;
|
|
954
|
+
static fetch(client: SuiClient, id: string): Promise<RedeemEvent>;
|
|
955
|
+
}
|