@typus/typus-perp-sdk 1.1.19 → 1.1.20
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/dist/src/fetch.d.ts +2 -2
- package/dist/src/fetch.js +40 -38
- package/dist/src/index.js +1 -1
- package/dist/src/typus_stake_pool/admin/functions.d.ts +22 -22
- package/dist/src/typus_stake_pool/admin/functions.js +56 -56
- package/dist/src/typus_stake_pool/admin/structs.d.ts +216 -208
- package/dist/src/typus_stake_pool/admin/structs.js +286 -254
- package/dist/src/typus_stake_pool/init.js +18 -15
- package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +135 -113
- package/dist/src/typus_stake_pool/stake-pool/functions.js +202 -173
- package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +1393 -1243
- package/dist/src/typus_stake_pool/stake-pool/structs.js +2488 -2098
- package/dist/src/user/tlp.d.ts +1 -0
- package/dist/src/user/tlp.js +3 -3
- package/package.json +1 -1
|
@@ -7,783 +7,643 @@ import { FieldsWithTypes } from "../../_framework/util";
|
|
|
7
7
|
import { Vector } from "../../_framework/vector";
|
|
8
8
|
import { PKG_V1 } from "../index";
|
|
9
9
|
import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
|
|
10
|
-
export declare function
|
|
11
|
-
export interface
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
incentiveToken: ToField<TypeName>;
|
|
15
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
10
|
+
export declare function isStakePoolRegistry(type: string): boolean;
|
|
11
|
+
export interface StakePoolRegistryFields {
|
|
12
|
+
id: ToField<UID>;
|
|
13
|
+
numPool: ToField<"u64">;
|
|
16
14
|
}
|
|
17
|
-
export type
|
|
18
|
-
export declare class
|
|
15
|
+
export type StakePoolRegistryReified = Reified<StakePoolRegistry, StakePoolRegistryFields>;
|
|
16
|
+
export declare class StakePoolRegistry implements StructClass {
|
|
19
17
|
__StructClass: true;
|
|
20
18
|
static readonly $typeName: string;
|
|
21
19
|
static readonly $numTypeParams = 0;
|
|
22
20
|
static readonly $isPhantom: readonly [];
|
|
23
21
|
readonly $typeName: string;
|
|
24
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::
|
|
22
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::StakePoolRegistry`;
|
|
25
23
|
readonly $typeArgs: [];
|
|
26
24
|
readonly $isPhantom: readonly [];
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
29
|
-
readonly incentiveToken: ToField<TypeName>;
|
|
30
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
25
|
+
readonly id: ToField<UID>;
|
|
26
|
+
readonly numPool: ToField<"u64">;
|
|
31
27
|
private constructor();
|
|
32
|
-
static reified():
|
|
33
|
-
static get r(): reified.StructClassReified<
|
|
34
|
-
static phantom(): PhantomReified<ToTypeStr<
|
|
35
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::
|
|
28
|
+
static reified(): StakePoolRegistryReified;
|
|
29
|
+
static get r(): reified.StructClassReified<StakePoolRegistry, StakePoolRegistryFields>;
|
|
30
|
+
static phantom(): PhantomReified<ToTypeStr<StakePoolRegistry>>;
|
|
31
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::StakePoolRegistry" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::StakePoolRegistry">;
|
|
32
|
+
private static instantiateBcs;
|
|
33
|
+
private static cachedBcs;
|
|
36
34
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
name: {
|
|
41
|
-
bytes: number[];
|
|
35
|
+
id: {
|
|
36
|
+
id: {
|
|
37
|
+
bytes: string;
|
|
42
38
|
};
|
|
43
39
|
};
|
|
44
|
-
|
|
40
|
+
num_pool: string;
|
|
45
41
|
}, {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
name: {
|
|
50
|
-
bytes: Iterable<number> & {
|
|
51
|
-
length: number;
|
|
52
|
-
};
|
|
42
|
+
id: {
|
|
43
|
+
id: {
|
|
44
|
+
bytes: string;
|
|
53
45
|
};
|
|
54
46
|
};
|
|
55
|
-
|
|
56
|
-
length: number;
|
|
57
|
-
};
|
|
47
|
+
num_pool: string | number | bigint;
|
|
58
48
|
}>;
|
|
59
|
-
static fromFields(fields: Record<string, any>):
|
|
60
|
-
static fromFieldsWithTypes(item: FieldsWithTypes):
|
|
61
|
-
static fromBcs(data: Uint8Array):
|
|
49
|
+
static fromFields(fields: Record<string, any>): StakePoolRegistry;
|
|
50
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): StakePoolRegistry;
|
|
51
|
+
static fromBcs(data: Uint8Array): StakePoolRegistry;
|
|
62
52
|
toJSONField(): {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
incentiveToken: {
|
|
66
|
-
name: string;
|
|
67
|
-
};
|
|
68
|
-
u64Padding: string[];
|
|
53
|
+
id: string;
|
|
54
|
+
numPool: string;
|
|
69
55
|
};
|
|
70
56
|
toJSON(): {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
incentiveToken: {
|
|
74
|
-
name: string;
|
|
75
|
-
};
|
|
76
|
-
u64Padding: string[];
|
|
57
|
+
id: string;
|
|
58
|
+
numPool: string;
|
|
77
59
|
$typeName: string;
|
|
78
60
|
$typeArgs: [];
|
|
79
61
|
};
|
|
80
|
-
static fromJSONField(field: any):
|
|
81
|
-
static fromJSON(json: Record<string, any>):
|
|
82
|
-
static fromSuiParsedData(content: SuiParsedData):
|
|
83
|
-
static fromSuiObjectData(data: SuiObjectData):
|
|
84
|
-
static fetch(client: SuiClient, id: string): Promise<
|
|
62
|
+
static fromJSONField(field: any): StakePoolRegistry;
|
|
63
|
+
static fromJSON(json: Record<string, any>): StakePoolRegistry;
|
|
64
|
+
static fromSuiParsedData(content: SuiParsedData): StakePoolRegistry;
|
|
65
|
+
static fromSuiObjectData(data: SuiObjectData): StakePoolRegistry;
|
|
66
|
+
static fetch(client: SuiClient, id: string): Promise<StakePoolRegistry>;
|
|
85
67
|
}
|
|
86
|
-
export declare function
|
|
87
|
-
export interface
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
incentiveConfig: ToField<IncentiveConfig>;
|
|
68
|
+
export declare function isStakePool(type: string): boolean;
|
|
69
|
+
export interface StakePoolFields {
|
|
70
|
+
id: ToField<UID>;
|
|
71
|
+
poolInfo: ToField<StakePoolInfo>;
|
|
72
|
+
config: ToField<StakePoolConfig>;
|
|
73
|
+
incentives: ToField<Vector<Incentive>>;
|
|
93
74
|
u64Padding: ToField<Vector<"u64">>;
|
|
94
75
|
}
|
|
95
|
-
export type
|
|
96
|
-
export declare class
|
|
76
|
+
export type StakePoolReified = Reified<StakePool, StakePoolFields>;
|
|
77
|
+
export declare class StakePool implements StructClass {
|
|
97
78
|
__StructClass: true;
|
|
98
79
|
static readonly $typeName: string;
|
|
99
80
|
static readonly $numTypeParams = 0;
|
|
100
81
|
static readonly $isPhantom: readonly [];
|
|
101
82
|
readonly $typeName: string;
|
|
102
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::
|
|
83
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::StakePool`;
|
|
103
84
|
readonly $typeArgs: [];
|
|
104
85
|
readonly $isPhantom: readonly [];
|
|
105
|
-
readonly
|
|
106
|
-
readonly
|
|
107
|
-
readonly
|
|
108
|
-
readonly
|
|
109
|
-
readonly incentiveConfig: ToField<IncentiveConfig>;
|
|
86
|
+
readonly id: ToField<UID>;
|
|
87
|
+
readonly poolInfo: ToField<StakePoolInfo>;
|
|
88
|
+
readonly config: ToField<StakePoolConfig>;
|
|
89
|
+
readonly incentives: ToField<Vector<Incentive>>;
|
|
110
90
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
111
91
|
private constructor();
|
|
112
|
-
static reified():
|
|
113
|
-
static get r(): reified.StructClassReified<
|
|
114
|
-
static phantom(): PhantomReified<ToTypeStr<
|
|
115
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::
|
|
92
|
+
static reified(): StakePoolReified;
|
|
93
|
+
static get r(): reified.StructClassReified<StakePool, StakePoolFields>;
|
|
94
|
+
static phantom(): PhantomReified<ToTypeStr<StakePool>>;
|
|
95
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::StakePool" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::StakePool">;
|
|
96
|
+
private static instantiateBcs;
|
|
97
|
+
private static cachedBcs;
|
|
116
98
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
name: {
|
|
121
|
-
bytes: number[];
|
|
99
|
+
id: {
|
|
100
|
+
id: {
|
|
101
|
+
bytes: string;
|
|
122
102
|
};
|
|
123
103
|
};
|
|
124
|
-
|
|
104
|
+
pool_info: {
|
|
105
|
+
stake_token: {
|
|
106
|
+
name: {
|
|
107
|
+
bytes: number[];
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
index: string;
|
|
111
|
+
next_user_share_id: string;
|
|
112
|
+
total_share: string;
|
|
125
113
|
active: boolean;
|
|
126
|
-
last_allocate_ts_ms: string;
|
|
127
|
-
incentive_price_index: string;
|
|
128
|
-
unallocated_amount: string;
|
|
129
114
|
u64_padding: string[];
|
|
130
115
|
};
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
incentive_interval_ts_ms: string;
|
|
116
|
+
config: {
|
|
117
|
+
unlock_countdown_ts_ms: string;
|
|
134
118
|
u64_padding: string[];
|
|
135
119
|
};
|
|
120
|
+
incentives: {
|
|
121
|
+
token_type: {
|
|
122
|
+
name: {
|
|
123
|
+
bytes: number[];
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
config: {
|
|
127
|
+
period_incentive_amount: string;
|
|
128
|
+
incentive_interval_ts_ms: string;
|
|
129
|
+
u64_padding: string[];
|
|
130
|
+
};
|
|
131
|
+
info: {
|
|
132
|
+
active: boolean;
|
|
133
|
+
last_allocate_ts_ms: string;
|
|
134
|
+
incentive_price_index: string;
|
|
135
|
+
unallocated_amount: string;
|
|
136
|
+
u64_padding: string[];
|
|
137
|
+
};
|
|
138
|
+
}[];
|
|
136
139
|
u64_padding: string[];
|
|
137
140
|
}, {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
name: {
|
|
142
|
-
bytes: Iterable<number> & {
|
|
143
|
-
length: number;
|
|
144
|
-
};
|
|
141
|
+
id: {
|
|
142
|
+
id: {
|
|
143
|
+
bytes: string;
|
|
145
144
|
};
|
|
146
145
|
};
|
|
147
|
-
|
|
146
|
+
pool_info: {
|
|
147
|
+
stake_token: {
|
|
148
|
+
name: {
|
|
149
|
+
bytes: Iterable<number> & {
|
|
150
|
+
length: number;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
index: string | number | bigint;
|
|
155
|
+
next_user_share_id: string | number | bigint;
|
|
156
|
+
total_share: string | number | bigint;
|
|
148
157
|
active: boolean;
|
|
149
|
-
last_allocate_ts_ms: string | number | bigint;
|
|
150
|
-
incentive_price_index: string | number | bigint;
|
|
151
|
-
unallocated_amount: string | number | bigint;
|
|
152
158
|
u64_padding: Iterable<string | number | bigint> & {
|
|
153
159
|
length: number;
|
|
154
160
|
};
|
|
155
161
|
};
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
incentive_interval_ts_ms: string | number | bigint;
|
|
162
|
+
config: {
|
|
163
|
+
unlock_countdown_ts_ms: string | number | bigint;
|
|
159
164
|
u64_padding: Iterable<string | number | bigint> & {
|
|
160
165
|
length: number;
|
|
161
166
|
};
|
|
162
167
|
};
|
|
168
|
+
incentives: Iterable<{
|
|
169
|
+
token_type: {
|
|
170
|
+
name: {
|
|
171
|
+
bytes: Iterable<number> & {
|
|
172
|
+
length: number;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
config: {
|
|
177
|
+
period_incentive_amount: string | number | bigint;
|
|
178
|
+
incentive_interval_ts_ms: string | number | bigint;
|
|
179
|
+
u64_padding: Iterable<string | number | bigint> & {
|
|
180
|
+
length: number;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
info: {
|
|
184
|
+
active: boolean;
|
|
185
|
+
last_allocate_ts_ms: string | number | bigint;
|
|
186
|
+
incentive_price_index: string | number | bigint;
|
|
187
|
+
unallocated_amount: string | number | bigint;
|
|
188
|
+
u64_padding: Iterable<string | number | bigint> & {
|
|
189
|
+
length: number;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
}> & {
|
|
193
|
+
length: number;
|
|
194
|
+
};
|
|
163
195
|
u64_padding: Iterable<string | number | bigint> & {
|
|
164
196
|
length: number;
|
|
165
197
|
};
|
|
166
198
|
}>;
|
|
167
|
-
static fromFields(fields: Record<string, any>):
|
|
168
|
-
static fromFieldsWithTypes(item: FieldsWithTypes):
|
|
169
|
-
static fromBcs(data: Uint8Array):
|
|
199
|
+
static fromFields(fields: Record<string, any>): StakePool;
|
|
200
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): StakePool;
|
|
201
|
+
static fromBcs(data: Uint8Array): StakePool;
|
|
170
202
|
toJSONField(): {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
203
|
+
id: string;
|
|
204
|
+
poolInfo: {
|
|
205
|
+
stakeToken: {
|
|
206
|
+
name: string;
|
|
207
|
+
};
|
|
208
|
+
index: string;
|
|
209
|
+
nextUserShareId: string;
|
|
210
|
+
totalShare: string;
|
|
177
211
|
active: boolean;
|
|
178
|
-
lastAllocateTsMs: string;
|
|
179
|
-
incentivePriceIndex: string;
|
|
180
|
-
unallocatedAmount: string;
|
|
181
212
|
u64Padding: string[];
|
|
182
213
|
};
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
incentiveIntervalTsMs: string;
|
|
214
|
+
config: {
|
|
215
|
+
unlockCountdownTsMs: string;
|
|
186
216
|
u64Padding: string[];
|
|
187
217
|
};
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
218
|
+
incentives: {
|
|
219
|
+
tokenType: {
|
|
220
|
+
name: string;
|
|
221
|
+
};
|
|
222
|
+
config: {
|
|
223
|
+
periodIncentiveAmount: string;
|
|
224
|
+
incentiveIntervalTsMs: string;
|
|
225
|
+
u64Padding: string[];
|
|
226
|
+
};
|
|
227
|
+
info: {
|
|
228
|
+
active: boolean;
|
|
229
|
+
lastAllocateTsMs: string;
|
|
230
|
+
incentivePriceIndex: string;
|
|
231
|
+
unallocatedAmount: string;
|
|
232
|
+
u64Padding: string[];
|
|
233
|
+
};
|
|
234
|
+
}[];
|
|
235
|
+
u64Padding: string[];
|
|
236
|
+
};
|
|
237
|
+
toJSON(): {
|
|
238
|
+
id: string;
|
|
239
|
+
poolInfo: {
|
|
240
|
+
stakeToken: {
|
|
241
|
+
name: string;
|
|
242
|
+
};
|
|
243
|
+
index: string;
|
|
244
|
+
nextUserShareId: string;
|
|
245
|
+
totalShare: string;
|
|
246
|
+
active: boolean;
|
|
247
|
+
u64Padding: string[];
|
|
248
|
+
};
|
|
249
|
+
config: {
|
|
250
|
+
unlockCountdownTsMs: string;
|
|
251
|
+
u64Padding: string[];
|
|
252
|
+
};
|
|
253
|
+
incentives: {
|
|
254
|
+
tokenType: {
|
|
255
|
+
name: string;
|
|
256
|
+
};
|
|
257
|
+
config: {
|
|
258
|
+
periodIncentiveAmount: string;
|
|
259
|
+
incentiveIntervalTsMs: string;
|
|
260
|
+
u64Padding: string[];
|
|
261
|
+
};
|
|
262
|
+
info: {
|
|
263
|
+
active: boolean;
|
|
264
|
+
lastAllocateTsMs: string;
|
|
265
|
+
incentivePriceIndex: string;
|
|
266
|
+
unallocatedAmount: string;
|
|
267
|
+
u64Padding: string[];
|
|
268
|
+
};
|
|
269
|
+
}[];
|
|
270
|
+
u64Padding: string[];
|
|
271
|
+
$typeName: string;
|
|
272
|
+
$typeArgs: [];
|
|
273
|
+
};
|
|
274
|
+
static fromJSONField(field: any): StakePool;
|
|
275
|
+
static fromJSON(json: Record<string, any>): StakePool;
|
|
276
|
+
static fromSuiParsedData(content: SuiParsedData): StakePool;
|
|
277
|
+
static fromSuiObjectData(data: SuiObjectData): StakePool;
|
|
278
|
+
static fetch(client: SuiClient, id: string): Promise<StakePool>;
|
|
279
|
+
}
|
|
280
|
+
export declare function isIncentive(type: string): boolean;
|
|
281
|
+
export interface IncentiveFields {
|
|
282
|
+
tokenType: ToField<TypeName>;
|
|
283
|
+
config: ToField<IncentiveConfig>;
|
|
284
|
+
info: ToField<IncentiveInfo>;
|
|
285
|
+
}
|
|
286
|
+
export type IncentiveReified = Reified<Incentive, IncentiveFields>;
|
|
287
|
+
export declare class Incentive implements StructClass {
|
|
288
|
+
__StructClass: true;
|
|
289
|
+
static readonly $typeName: string;
|
|
290
|
+
static readonly $numTypeParams = 0;
|
|
291
|
+
static readonly $isPhantom: readonly [];
|
|
292
|
+
readonly $typeName: string;
|
|
293
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::Incentive`;
|
|
294
|
+
readonly $typeArgs: [];
|
|
295
|
+
readonly $isPhantom: readonly [];
|
|
296
|
+
readonly tokenType: ToField<TypeName>;
|
|
297
|
+
readonly config: ToField<IncentiveConfig>;
|
|
298
|
+
readonly info: ToField<IncentiveInfo>;
|
|
299
|
+
private constructor();
|
|
300
|
+
static reified(): IncentiveReified;
|
|
301
|
+
static get r(): reified.StructClassReified<Incentive, IncentiveFields>;
|
|
302
|
+
static phantom(): PhantomReified<ToTypeStr<Incentive>>;
|
|
303
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::Incentive" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::Incentive">;
|
|
304
|
+
private static instantiateBcs;
|
|
305
|
+
private static cachedBcs;
|
|
306
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
307
|
+
token_type: {
|
|
308
|
+
name: {
|
|
309
|
+
bytes: number[];
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
config: {
|
|
313
|
+
period_incentive_amount: string;
|
|
314
|
+
incentive_interval_ts_ms: string;
|
|
315
|
+
u64_padding: string[];
|
|
316
|
+
};
|
|
317
|
+
info: {
|
|
318
|
+
active: boolean;
|
|
319
|
+
last_allocate_ts_ms: string;
|
|
320
|
+
incentive_price_index: string;
|
|
321
|
+
unallocated_amount: string;
|
|
322
|
+
u64_padding: string[];
|
|
323
|
+
};
|
|
324
|
+
}, {
|
|
325
|
+
token_type: {
|
|
326
|
+
name: {
|
|
327
|
+
bytes: Iterable<number> & {
|
|
328
|
+
length: number;
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
config: {
|
|
333
|
+
period_incentive_amount: string | number | bigint;
|
|
334
|
+
incentive_interval_ts_ms: string | number | bigint;
|
|
335
|
+
u64_padding: Iterable<string | number | bigint> & {
|
|
336
|
+
length: number;
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
info: {
|
|
340
|
+
active: boolean;
|
|
341
|
+
last_allocate_ts_ms: string | number | bigint;
|
|
342
|
+
incentive_price_index: string | number | bigint;
|
|
343
|
+
unallocated_amount: string | number | bigint;
|
|
344
|
+
u64_padding: Iterable<string | number | bigint> & {
|
|
345
|
+
length: number;
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
}>;
|
|
349
|
+
static fromFields(fields: Record<string, any>): Incentive;
|
|
350
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): Incentive;
|
|
351
|
+
static fromBcs(data: Uint8Array): Incentive;
|
|
352
|
+
toJSONField(): {
|
|
353
|
+
tokenType: {
|
|
194
354
|
name: string;
|
|
195
355
|
};
|
|
196
|
-
|
|
356
|
+
config: {
|
|
357
|
+
periodIncentiveAmount: string;
|
|
358
|
+
incentiveIntervalTsMs: string;
|
|
359
|
+
u64Padding: string[];
|
|
360
|
+
};
|
|
361
|
+
info: {
|
|
197
362
|
active: boolean;
|
|
198
363
|
lastAllocateTsMs: string;
|
|
199
364
|
incentivePriceIndex: string;
|
|
200
365
|
unallocatedAmount: string;
|
|
201
366
|
u64Padding: string[];
|
|
202
367
|
};
|
|
203
|
-
|
|
368
|
+
};
|
|
369
|
+
toJSON(): {
|
|
370
|
+
tokenType: {
|
|
371
|
+
name: string;
|
|
372
|
+
};
|
|
373
|
+
config: {
|
|
204
374
|
periodIncentiveAmount: string;
|
|
205
375
|
incentiveIntervalTsMs: string;
|
|
206
376
|
u64Padding: string[];
|
|
207
377
|
};
|
|
208
|
-
|
|
378
|
+
info: {
|
|
379
|
+
active: boolean;
|
|
380
|
+
lastAllocateTsMs: string;
|
|
381
|
+
incentivePriceIndex: string;
|
|
382
|
+
unallocatedAmount: string;
|
|
383
|
+
u64Padding: string[];
|
|
384
|
+
};
|
|
209
385
|
$typeName: string;
|
|
210
386
|
$typeArgs: [];
|
|
211
387
|
};
|
|
212
|
-
static fromJSONField(field: any):
|
|
213
|
-
static fromJSON(json: Record<string, any>):
|
|
214
|
-
static fromSuiParsedData(content: SuiParsedData):
|
|
215
|
-
static fromSuiObjectData(data: SuiObjectData):
|
|
216
|
-
static fetch(client: SuiClient, id: string): Promise<
|
|
388
|
+
static fromJSONField(field: any): Incentive;
|
|
389
|
+
static fromJSON(json: Record<string, any>): Incentive;
|
|
390
|
+
static fromSuiParsedData(content: SuiParsedData): Incentive;
|
|
391
|
+
static fromSuiObjectData(data: SuiObjectData): Incentive;
|
|
392
|
+
static fetch(client: SuiClient, id: string): Promise<Incentive>;
|
|
217
393
|
}
|
|
218
|
-
export declare function
|
|
219
|
-
export interface
|
|
220
|
-
|
|
394
|
+
export declare function isStakePoolInfo(type: string): boolean;
|
|
395
|
+
export interface StakePoolInfoFields {
|
|
396
|
+
stakeToken: ToField<TypeName>;
|
|
221
397
|
index: ToField<"u64">;
|
|
222
|
-
|
|
398
|
+
nextUserShareId: ToField<"u64">;
|
|
399
|
+
totalShare: ToField<"u64">;
|
|
400
|
+
active: ToField<"bool">;
|
|
223
401
|
u64Padding: ToField<Vector<"u64">>;
|
|
224
402
|
}
|
|
225
|
-
export type
|
|
226
|
-
export declare class
|
|
403
|
+
export type StakePoolInfoReified = Reified<StakePoolInfo, StakePoolInfoFields>;
|
|
404
|
+
export declare class StakePoolInfo implements StructClass {
|
|
227
405
|
__StructClass: true;
|
|
228
406
|
static readonly $typeName: string;
|
|
229
407
|
static readonly $numTypeParams = 0;
|
|
230
408
|
static readonly $isPhantom: readonly [];
|
|
231
409
|
readonly $typeName: string;
|
|
232
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::
|
|
410
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::StakePoolInfo`;
|
|
233
411
|
readonly $typeArgs: [];
|
|
234
412
|
readonly $isPhantom: readonly [];
|
|
235
|
-
readonly
|
|
413
|
+
readonly stakeToken: ToField<TypeName>;
|
|
236
414
|
readonly index: ToField<"u64">;
|
|
237
|
-
readonly
|
|
415
|
+
readonly nextUserShareId: ToField<"u64">;
|
|
416
|
+
readonly totalShare: ToField<"u64">;
|
|
417
|
+
readonly active: ToField<"bool">;
|
|
238
418
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
239
419
|
private constructor();
|
|
240
|
-
static reified():
|
|
241
|
-
static get r(): reified.StructClassReified<
|
|
242
|
-
static phantom(): PhantomReified<ToTypeStr<
|
|
243
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::
|
|
420
|
+
static reified(): StakePoolInfoReified;
|
|
421
|
+
static get r(): reified.StructClassReified<StakePoolInfo, StakePoolInfoFields>;
|
|
422
|
+
static phantom(): PhantomReified<ToTypeStr<StakePoolInfo>>;
|
|
423
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::StakePoolInfo" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::StakePoolInfo">;
|
|
424
|
+
private static instantiateBcs;
|
|
425
|
+
private static cachedBcs;
|
|
244
426
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
245
|
-
|
|
246
|
-
index: string;
|
|
247
|
-
incentive_token: {
|
|
427
|
+
stake_token: {
|
|
248
428
|
name: {
|
|
249
429
|
bytes: number[];
|
|
250
430
|
};
|
|
251
431
|
};
|
|
432
|
+
index: string;
|
|
433
|
+
next_user_share_id: string;
|
|
434
|
+
total_share: string;
|
|
435
|
+
active: boolean;
|
|
252
436
|
u64_padding: string[];
|
|
253
437
|
}, {
|
|
254
|
-
|
|
255
|
-
index: string | number | bigint;
|
|
256
|
-
incentive_token: {
|
|
438
|
+
stake_token: {
|
|
257
439
|
name: {
|
|
258
440
|
bytes: Iterable<number> & {
|
|
259
441
|
length: number;
|
|
260
442
|
};
|
|
261
443
|
};
|
|
262
444
|
};
|
|
445
|
+
index: string | number | bigint;
|
|
446
|
+
next_user_share_id: string | number | bigint;
|
|
447
|
+
total_share: string | number | bigint;
|
|
448
|
+
active: boolean;
|
|
263
449
|
u64_padding: Iterable<string | number | bigint> & {
|
|
264
450
|
length: number;
|
|
265
451
|
};
|
|
266
452
|
}>;
|
|
267
|
-
static fromFields(fields: Record<string, any>):
|
|
268
|
-
static fromFieldsWithTypes(item: FieldsWithTypes):
|
|
269
|
-
static fromBcs(data: Uint8Array):
|
|
453
|
+
static fromFields(fields: Record<string, any>): StakePoolInfo;
|
|
454
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): StakePoolInfo;
|
|
455
|
+
static fromBcs(data: Uint8Array): StakePoolInfo;
|
|
270
456
|
toJSONField(): {
|
|
271
|
-
|
|
272
|
-
index: string;
|
|
273
|
-
incentiveToken: {
|
|
457
|
+
stakeToken: {
|
|
274
458
|
name: string;
|
|
275
459
|
};
|
|
460
|
+
index: string;
|
|
461
|
+
nextUserShareId: string;
|
|
462
|
+
totalShare: string;
|
|
463
|
+
active: boolean;
|
|
276
464
|
u64Padding: string[];
|
|
277
465
|
};
|
|
278
466
|
toJSON(): {
|
|
279
|
-
|
|
280
|
-
index: string;
|
|
281
|
-
incentiveToken: {
|
|
467
|
+
stakeToken: {
|
|
282
468
|
name: string;
|
|
283
469
|
};
|
|
470
|
+
index: string;
|
|
471
|
+
nextUserShareId: string;
|
|
472
|
+
totalShare: string;
|
|
473
|
+
active: boolean;
|
|
284
474
|
u64Padding: string[];
|
|
285
475
|
$typeName: string;
|
|
286
476
|
$typeArgs: [];
|
|
287
477
|
};
|
|
288
|
-
static fromJSONField(field: any):
|
|
289
|
-
static fromJSON(json: Record<string, any>):
|
|
290
|
-
static fromSuiParsedData(content: SuiParsedData):
|
|
291
|
-
static fromSuiObjectData(data: SuiObjectData):
|
|
292
|
-
static fetch(client: SuiClient, id: string): Promise<
|
|
478
|
+
static fromJSONField(field: any): StakePoolInfo;
|
|
479
|
+
static fromJSON(json: Record<string, any>): StakePoolInfo;
|
|
480
|
+
static fromSuiParsedData(content: SuiParsedData): StakePoolInfo;
|
|
481
|
+
static fromSuiObjectData(data: SuiObjectData): StakePoolInfo;
|
|
482
|
+
static fetch(client: SuiClient, id: string): Promise<StakePoolInfo>;
|
|
293
483
|
}
|
|
294
|
-
export declare function
|
|
295
|
-
export interface
|
|
296
|
-
|
|
297
|
-
unsubscribedTsMs: ToField<"u64">;
|
|
298
|
-
unlockedTsMs: ToField<"u64">;
|
|
299
|
-
unsubscribedIncentivePriceIndex: ToField<VecMap<TypeName, "u64">>;
|
|
484
|
+
export declare function isStakePoolConfig(type: string): boolean;
|
|
485
|
+
export interface StakePoolConfigFields {
|
|
486
|
+
unlockCountdownTsMs: ToField<"u64">;
|
|
300
487
|
u64Padding: ToField<Vector<"u64">>;
|
|
301
488
|
}
|
|
302
|
-
export type
|
|
303
|
-
export declare class
|
|
489
|
+
export type StakePoolConfigReified = Reified<StakePoolConfig, StakePoolConfigFields>;
|
|
490
|
+
export declare class StakePoolConfig implements StructClass {
|
|
304
491
|
__StructClass: true;
|
|
305
492
|
static readonly $typeName: string;
|
|
306
493
|
static readonly $numTypeParams = 0;
|
|
307
494
|
static readonly $isPhantom: readonly [];
|
|
308
495
|
readonly $typeName: string;
|
|
309
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::
|
|
496
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::StakePoolConfig`;
|
|
310
497
|
readonly $typeArgs: [];
|
|
311
498
|
readonly $isPhantom: readonly [];
|
|
312
|
-
readonly
|
|
313
|
-
readonly unsubscribedTsMs: ToField<"u64">;
|
|
314
|
-
readonly unlockedTsMs: ToField<"u64">;
|
|
315
|
-
readonly unsubscribedIncentivePriceIndex: ToField<VecMap<TypeName, "u64">>;
|
|
499
|
+
readonly unlockCountdownTsMs: ToField<"u64">;
|
|
316
500
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
317
501
|
private constructor();
|
|
318
|
-
static reified():
|
|
319
|
-
static get r(): reified.StructClassReified<
|
|
320
|
-
static phantom(): PhantomReified<ToTypeStr<
|
|
321
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::
|
|
502
|
+
static reified(): StakePoolConfigReified;
|
|
503
|
+
static get r(): reified.StructClassReified<StakePoolConfig, StakePoolConfigFields>;
|
|
504
|
+
static phantom(): PhantomReified<ToTypeStr<StakePoolConfig>>;
|
|
505
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::StakePoolConfig" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::StakePoolConfig">;
|
|
506
|
+
private static instantiateBcs;
|
|
507
|
+
private static cachedBcs;
|
|
322
508
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
323
|
-
|
|
324
|
-
unsubscribed_ts_ms: string;
|
|
325
|
-
unlocked_ts_ms: string;
|
|
326
|
-
unsubscribed_incentive_price_index: {
|
|
327
|
-
contents: {
|
|
328
|
-
key: {
|
|
329
|
-
name: {
|
|
330
|
-
bytes: number[];
|
|
331
|
-
};
|
|
332
|
-
};
|
|
333
|
-
value: string;
|
|
334
|
-
}[];
|
|
335
|
-
};
|
|
509
|
+
unlock_countdown_ts_ms: string;
|
|
336
510
|
u64_padding: string[];
|
|
337
511
|
}, {
|
|
338
|
-
|
|
339
|
-
unsubscribed_ts_ms: string | number | bigint;
|
|
340
|
-
unlocked_ts_ms: string | number | bigint;
|
|
341
|
-
unsubscribed_incentive_price_index: {
|
|
342
|
-
contents: Iterable<{
|
|
343
|
-
key: {
|
|
344
|
-
name: {
|
|
345
|
-
bytes: Iterable<number> & {
|
|
346
|
-
length: number;
|
|
347
|
-
};
|
|
348
|
-
};
|
|
349
|
-
};
|
|
350
|
-
value: string | number | bigint;
|
|
351
|
-
}> & {
|
|
352
|
-
length: number;
|
|
353
|
-
};
|
|
354
|
-
};
|
|
512
|
+
unlock_countdown_ts_ms: string | number | bigint;
|
|
355
513
|
u64_padding: Iterable<string | number | bigint> & {
|
|
356
514
|
length: number;
|
|
357
515
|
};
|
|
358
516
|
}>;
|
|
359
|
-
static fromFields(fields: Record<string, any>):
|
|
360
|
-
static fromFieldsWithTypes(item: FieldsWithTypes):
|
|
361
|
-
static fromBcs(data: Uint8Array):
|
|
517
|
+
static fromFields(fields: Record<string, any>): StakePoolConfig;
|
|
518
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): StakePoolConfig;
|
|
519
|
+
static fromBcs(data: Uint8Array): StakePoolConfig;
|
|
362
520
|
toJSONField(): {
|
|
363
|
-
|
|
364
|
-
unsubscribedTsMs: string;
|
|
365
|
-
unlockedTsMs: string;
|
|
366
|
-
unsubscribedIncentivePriceIndex: {
|
|
367
|
-
contents: {
|
|
368
|
-
key: {
|
|
369
|
-
name: string;
|
|
370
|
-
};
|
|
371
|
-
value: string;
|
|
372
|
-
}[];
|
|
373
|
-
};
|
|
521
|
+
unlockCountdownTsMs: string;
|
|
374
522
|
u64Padding: string[];
|
|
375
523
|
};
|
|
376
524
|
toJSON(): {
|
|
377
|
-
|
|
378
|
-
unsubscribedTsMs: string;
|
|
379
|
-
unlockedTsMs: string;
|
|
380
|
-
unsubscribedIncentivePriceIndex: {
|
|
381
|
-
contents: {
|
|
382
|
-
key: {
|
|
383
|
-
name: string;
|
|
384
|
-
};
|
|
385
|
-
value: string;
|
|
386
|
-
}[];
|
|
387
|
-
};
|
|
525
|
+
unlockCountdownTsMs: string;
|
|
388
526
|
u64Padding: string[];
|
|
389
527
|
$typeName: string;
|
|
390
528
|
$typeArgs: [];
|
|
391
529
|
};
|
|
392
|
-
static fromJSONField(field: any):
|
|
393
|
-
static fromJSON(json: Record<string, any>):
|
|
394
|
-
static fromSuiParsedData(content: SuiParsedData):
|
|
395
|
-
static fromSuiObjectData(data: SuiObjectData):
|
|
396
|
-
static fetch(client: SuiClient, id: string): Promise<
|
|
530
|
+
static fromJSONField(field: any): StakePoolConfig;
|
|
531
|
+
static fromJSON(json: Record<string, any>): StakePoolConfig;
|
|
532
|
+
static fromSuiParsedData(content: SuiParsedData): StakePoolConfig;
|
|
533
|
+
static fromSuiObjectData(data: SuiObjectData): StakePoolConfig;
|
|
534
|
+
static fetch(client: SuiClient, id: string): Promise<StakePoolConfig>;
|
|
397
535
|
}
|
|
398
|
-
export declare function
|
|
399
|
-
export interface
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
incentiveTokenType: ToField<TypeName>;
|
|
403
|
-
depositAmount: ToField<"u64">;
|
|
536
|
+
export declare function isIncentiveConfig(type: string): boolean;
|
|
537
|
+
export interface IncentiveConfigFields {
|
|
538
|
+
periodIncentiveAmount: ToField<"u64">;
|
|
539
|
+
incentiveIntervalTsMs: ToField<"u64">;
|
|
404
540
|
u64Padding: ToField<Vector<"u64">>;
|
|
405
541
|
}
|
|
406
|
-
export type
|
|
407
|
-
export declare class
|
|
542
|
+
export type IncentiveConfigReified = Reified<IncentiveConfig, IncentiveConfigFields>;
|
|
543
|
+
export declare class IncentiveConfig implements StructClass {
|
|
408
544
|
__StructClass: true;
|
|
409
545
|
static readonly $typeName: string;
|
|
410
546
|
static readonly $numTypeParams = 0;
|
|
411
547
|
static readonly $isPhantom: readonly [];
|
|
412
548
|
readonly $typeName: string;
|
|
413
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::
|
|
549
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::IncentiveConfig`;
|
|
414
550
|
readonly $typeArgs: [];
|
|
415
551
|
readonly $isPhantom: readonly [];
|
|
416
|
-
readonly
|
|
417
|
-
readonly
|
|
418
|
-
readonly incentiveTokenType: ToField<TypeName>;
|
|
419
|
-
readonly depositAmount: ToField<"u64">;
|
|
552
|
+
readonly periodIncentiveAmount: ToField<"u64">;
|
|
553
|
+
readonly incentiveIntervalTsMs: ToField<"u64">;
|
|
420
554
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
421
555
|
private constructor();
|
|
422
|
-
static reified():
|
|
423
|
-
static get r(): reified.StructClassReified<
|
|
424
|
-
static phantom(): PhantomReified<ToTypeStr<
|
|
425
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::
|
|
556
|
+
static reified(): IncentiveConfigReified;
|
|
557
|
+
static get r(): reified.StructClassReified<IncentiveConfig, IncentiveConfigFields>;
|
|
558
|
+
static phantom(): PhantomReified<ToTypeStr<IncentiveConfig>>;
|
|
559
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::IncentiveConfig" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::IncentiveConfig">;
|
|
560
|
+
private static instantiateBcs;
|
|
561
|
+
private static cachedBcs;
|
|
426
562
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
incentive_token_type: {
|
|
430
|
-
name: {
|
|
431
|
-
bytes: number[];
|
|
432
|
-
};
|
|
433
|
-
};
|
|
434
|
-
deposit_amount: string;
|
|
563
|
+
period_incentive_amount: string;
|
|
564
|
+
incentive_interval_ts_ms: string;
|
|
435
565
|
u64_padding: string[];
|
|
436
566
|
}, {
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
incentive_token_type: {
|
|
440
|
-
name: {
|
|
441
|
-
bytes: Iterable<number> & {
|
|
442
|
-
length: number;
|
|
443
|
-
};
|
|
444
|
-
};
|
|
445
|
-
};
|
|
446
|
-
deposit_amount: string | number | bigint;
|
|
567
|
+
period_incentive_amount: string | number | bigint;
|
|
568
|
+
incentive_interval_ts_ms: string | number | bigint;
|
|
447
569
|
u64_padding: Iterable<string | number | bigint> & {
|
|
448
570
|
length: number;
|
|
449
571
|
};
|
|
450
572
|
}>;
|
|
451
|
-
static fromFields(fields: Record<string, any>):
|
|
452
|
-
static fromFieldsWithTypes(item: FieldsWithTypes):
|
|
453
|
-
static fromBcs(data: Uint8Array):
|
|
573
|
+
static fromFields(fields: Record<string, any>): IncentiveConfig;
|
|
574
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): IncentiveConfig;
|
|
575
|
+
static fromBcs(data: Uint8Array): IncentiveConfig;
|
|
454
576
|
toJSONField(): {
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
incentiveTokenType: {
|
|
458
|
-
name: string;
|
|
459
|
-
};
|
|
460
|
-
depositAmount: string;
|
|
577
|
+
periodIncentiveAmount: string;
|
|
578
|
+
incentiveIntervalTsMs: string;
|
|
461
579
|
u64Padding: string[];
|
|
462
580
|
};
|
|
463
581
|
toJSON(): {
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
incentiveTokenType: {
|
|
467
|
-
name: string;
|
|
468
|
-
};
|
|
469
|
-
depositAmount: string;
|
|
582
|
+
periodIncentiveAmount: string;
|
|
583
|
+
incentiveIntervalTsMs: string;
|
|
470
584
|
u64Padding: string[];
|
|
471
585
|
$typeName: string;
|
|
472
586
|
$typeArgs: [];
|
|
473
587
|
};
|
|
474
|
-
static fromJSONField(field: any):
|
|
475
|
-
static fromJSON(json: Record<string, any>):
|
|
476
|
-
static fromSuiParsedData(content: SuiParsedData):
|
|
477
|
-
static fromSuiObjectData(data: SuiObjectData):
|
|
478
|
-
static fetch(client: SuiClient, id: string): Promise<
|
|
588
|
+
static fromJSONField(field: any): IncentiveConfig;
|
|
589
|
+
static fromJSON(json: Record<string, any>): IncentiveConfig;
|
|
590
|
+
static fromSuiParsedData(content: SuiParsedData): IncentiveConfig;
|
|
591
|
+
static fromSuiObjectData(data: SuiObjectData): IncentiveConfig;
|
|
592
|
+
static fetch(client: SuiClient, id: string): Promise<IncentiveConfig>;
|
|
479
593
|
}
|
|
480
|
-
export declare function
|
|
481
|
-
export interface
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
userShareId: ToField<"u64">;
|
|
594
|
+
export declare function isIncentiveInfo(type: string): boolean;
|
|
595
|
+
export interface IncentiveInfoFields {
|
|
596
|
+
active: ToField<"bool">;
|
|
597
|
+
lastAllocateTsMs: ToField<"u64">;
|
|
598
|
+
incentivePriceIndex: ToField<"u64">;
|
|
599
|
+
unallocatedAmount: ToField<"u64">;
|
|
487
600
|
u64Padding: ToField<Vector<"u64">>;
|
|
488
601
|
}
|
|
489
|
-
export type
|
|
490
|
-
export declare class
|
|
602
|
+
export type IncentiveInfoReified = Reified<IncentiveInfo, IncentiveInfoFields>;
|
|
603
|
+
export declare class IncentiveInfo implements StructClass {
|
|
491
604
|
__StructClass: true;
|
|
492
605
|
static readonly $typeName: string;
|
|
493
606
|
static readonly $numTypeParams = 0;
|
|
494
607
|
static readonly $isPhantom: readonly [];
|
|
495
608
|
readonly $typeName: string;
|
|
496
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::
|
|
609
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::IncentiveInfo`;
|
|
497
610
|
readonly $typeArgs: [];
|
|
498
611
|
readonly $isPhantom: readonly [];
|
|
499
|
-
readonly
|
|
500
|
-
readonly
|
|
501
|
-
readonly
|
|
502
|
-
readonly
|
|
503
|
-
readonly userShareId: ToField<"u64">;
|
|
612
|
+
readonly active: ToField<"bool">;
|
|
613
|
+
readonly lastAllocateTsMs: ToField<"u64">;
|
|
614
|
+
readonly incentivePriceIndex: ToField<"u64">;
|
|
615
|
+
readonly unallocatedAmount: ToField<"u64">;
|
|
504
616
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
505
617
|
private constructor();
|
|
506
|
-
static reified():
|
|
507
|
-
static get r(): reified.StructClassReified<
|
|
508
|
-
static phantom(): PhantomReified<ToTypeStr<
|
|
509
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::
|
|
618
|
+
static reified(): IncentiveInfoReified;
|
|
619
|
+
static get r(): reified.StructClassReified<IncentiveInfo, IncentiveInfoFields>;
|
|
620
|
+
static phantom(): PhantomReified<ToTypeStr<IncentiveInfo>>;
|
|
621
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::IncentiveInfo" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::IncentiveInfo">;
|
|
622
|
+
private static instantiateBcs;
|
|
623
|
+
private static cachedBcs;
|
|
510
624
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
bytes: number[];
|
|
516
|
-
};
|
|
517
|
-
};
|
|
518
|
-
harvest_amount: string;
|
|
519
|
-
user_share_id: string;
|
|
625
|
+
active: boolean;
|
|
626
|
+
last_allocate_ts_ms: string;
|
|
627
|
+
incentive_price_index: string;
|
|
628
|
+
unallocated_amount: string;
|
|
520
629
|
u64_padding: string[];
|
|
521
630
|
}, {
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
bytes: Iterable<number> & {
|
|
527
|
-
length: number;
|
|
528
|
-
};
|
|
529
|
-
};
|
|
530
|
-
};
|
|
531
|
-
harvest_amount: string | number | bigint;
|
|
532
|
-
user_share_id: string | number | bigint;
|
|
631
|
+
active: boolean;
|
|
632
|
+
last_allocate_ts_ms: string | number | bigint;
|
|
633
|
+
incentive_price_index: string | number | bigint;
|
|
634
|
+
unallocated_amount: string | number | bigint;
|
|
533
635
|
u64_padding: Iterable<string | number | bigint> & {
|
|
534
636
|
length: number;
|
|
535
637
|
};
|
|
536
638
|
}>;
|
|
537
|
-
static fromFields(fields: Record<string, any>):
|
|
538
|
-
static fromFieldsWithTypes(item: FieldsWithTypes):
|
|
539
|
-
static fromBcs(data: Uint8Array):
|
|
639
|
+
static fromFields(fields: Record<string, any>): IncentiveInfo;
|
|
640
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): IncentiveInfo;
|
|
641
|
+
static fromBcs(data: Uint8Array): IncentiveInfo;
|
|
540
642
|
toJSONField(): {
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
};
|
|
546
|
-
harvestAmount: string;
|
|
547
|
-
userShareId: string;
|
|
548
|
-
u64Padding: string[];
|
|
549
|
-
};
|
|
550
|
-
toJSON(): {
|
|
551
|
-
sender: string;
|
|
552
|
-
index: string;
|
|
553
|
-
incentiveTokenType: {
|
|
554
|
-
name: string;
|
|
555
|
-
};
|
|
556
|
-
harvestAmount: string;
|
|
557
|
-
userShareId: string;
|
|
558
|
-
u64Padding: string[];
|
|
559
|
-
$typeName: string;
|
|
560
|
-
$typeArgs: [];
|
|
561
|
-
};
|
|
562
|
-
static fromJSONField(field: any): HarvestPerUserShareEvent;
|
|
563
|
-
static fromJSON(json: Record<string, any>): HarvestPerUserShareEvent;
|
|
564
|
-
static fromSuiParsedData(content: SuiParsedData): HarvestPerUserShareEvent;
|
|
565
|
-
static fromSuiObjectData(data: SuiObjectData): HarvestPerUserShareEvent;
|
|
566
|
-
static fetch(client: SuiClient, id: string): Promise<HarvestPerUserShareEvent>;
|
|
567
|
-
}
|
|
568
|
-
export declare function isIncentive(type: string): boolean;
|
|
569
|
-
export interface IncentiveFields {
|
|
570
|
-
tokenType: ToField<TypeName>;
|
|
571
|
-
config: ToField<IncentiveConfig>;
|
|
572
|
-
info: ToField<IncentiveInfo>;
|
|
573
|
-
}
|
|
574
|
-
export type IncentiveReified = Reified<Incentive, IncentiveFields>;
|
|
575
|
-
export declare class Incentive implements StructClass {
|
|
576
|
-
__StructClass: true;
|
|
577
|
-
static readonly $typeName: string;
|
|
578
|
-
static readonly $numTypeParams = 0;
|
|
579
|
-
static readonly $isPhantom: readonly [];
|
|
580
|
-
readonly $typeName: string;
|
|
581
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::Incentive`;
|
|
582
|
-
readonly $typeArgs: [];
|
|
583
|
-
readonly $isPhantom: readonly [];
|
|
584
|
-
readonly tokenType: ToField<TypeName>;
|
|
585
|
-
readonly config: ToField<IncentiveConfig>;
|
|
586
|
-
readonly info: ToField<IncentiveInfo>;
|
|
587
|
-
private constructor();
|
|
588
|
-
static reified(): IncentiveReified;
|
|
589
|
-
static get r(): reified.StructClassReified<Incentive, IncentiveFields>;
|
|
590
|
-
static phantom(): PhantomReified<ToTypeStr<Incentive>>;
|
|
591
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::Incentive" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::Incentive">;
|
|
592
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
593
|
-
token_type: {
|
|
594
|
-
name: {
|
|
595
|
-
bytes: number[];
|
|
596
|
-
};
|
|
597
|
-
};
|
|
598
|
-
config: {
|
|
599
|
-
period_incentive_amount: string;
|
|
600
|
-
incentive_interval_ts_ms: string;
|
|
601
|
-
u64_padding: string[];
|
|
602
|
-
};
|
|
603
|
-
info: {
|
|
604
|
-
active: boolean;
|
|
605
|
-
last_allocate_ts_ms: string;
|
|
606
|
-
incentive_price_index: string;
|
|
607
|
-
unallocated_amount: string;
|
|
608
|
-
u64_padding: string[];
|
|
609
|
-
};
|
|
610
|
-
}, {
|
|
611
|
-
token_type: {
|
|
612
|
-
name: {
|
|
613
|
-
bytes: Iterable<number> & {
|
|
614
|
-
length: number;
|
|
615
|
-
};
|
|
616
|
-
};
|
|
617
|
-
};
|
|
618
|
-
config: {
|
|
619
|
-
period_incentive_amount: string | number | bigint;
|
|
620
|
-
incentive_interval_ts_ms: string | number | bigint;
|
|
621
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
622
|
-
length: number;
|
|
623
|
-
};
|
|
624
|
-
};
|
|
625
|
-
info: {
|
|
626
|
-
active: boolean;
|
|
627
|
-
last_allocate_ts_ms: string | number | bigint;
|
|
628
|
-
incentive_price_index: string | number | bigint;
|
|
629
|
-
unallocated_amount: string | number | bigint;
|
|
630
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
631
|
-
length: number;
|
|
632
|
-
};
|
|
633
|
-
};
|
|
634
|
-
}>;
|
|
635
|
-
static fromFields(fields: Record<string, any>): Incentive;
|
|
636
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): Incentive;
|
|
637
|
-
static fromBcs(data: Uint8Array): Incentive;
|
|
638
|
-
toJSONField(): {
|
|
639
|
-
tokenType: {
|
|
640
|
-
name: string;
|
|
641
|
-
};
|
|
642
|
-
config: {
|
|
643
|
-
periodIncentiveAmount: string;
|
|
644
|
-
incentiveIntervalTsMs: string;
|
|
645
|
-
u64Padding: string[];
|
|
646
|
-
};
|
|
647
|
-
info: {
|
|
648
|
-
active: boolean;
|
|
649
|
-
lastAllocateTsMs: string;
|
|
650
|
-
incentivePriceIndex: string;
|
|
651
|
-
unallocatedAmount: string;
|
|
652
|
-
u64Padding: string[];
|
|
653
|
-
};
|
|
654
|
-
};
|
|
655
|
-
toJSON(): {
|
|
656
|
-
tokenType: {
|
|
657
|
-
name: string;
|
|
658
|
-
};
|
|
659
|
-
config: {
|
|
660
|
-
periodIncentiveAmount: string;
|
|
661
|
-
incentiveIntervalTsMs: string;
|
|
662
|
-
u64Padding: string[];
|
|
663
|
-
};
|
|
664
|
-
info: {
|
|
665
|
-
active: boolean;
|
|
666
|
-
lastAllocateTsMs: string;
|
|
667
|
-
incentivePriceIndex: string;
|
|
668
|
-
unallocatedAmount: string;
|
|
669
|
-
u64Padding: string[];
|
|
670
|
-
};
|
|
671
|
-
$typeName: string;
|
|
672
|
-
$typeArgs: [];
|
|
673
|
-
};
|
|
674
|
-
static fromJSONField(field: any): Incentive;
|
|
675
|
-
static fromJSON(json: Record<string, any>): Incentive;
|
|
676
|
-
static fromSuiParsedData(content: SuiParsedData): Incentive;
|
|
677
|
-
static fromSuiObjectData(data: SuiObjectData): Incentive;
|
|
678
|
-
static fetch(client: SuiClient, id: string): Promise<Incentive>;
|
|
679
|
-
}
|
|
680
|
-
export declare function isIncentiveConfig(type: string): boolean;
|
|
681
|
-
export interface IncentiveConfigFields {
|
|
682
|
-
periodIncentiveAmount: ToField<"u64">;
|
|
683
|
-
incentiveIntervalTsMs: ToField<"u64">;
|
|
684
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
685
|
-
}
|
|
686
|
-
export type IncentiveConfigReified = Reified<IncentiveConfig, IncentiveConfigFields>;
|
|
687
|
-
export declare class IncentiveConfig implements StructClass {
|
|
688
|
-
__StructClass: true;
|
|
689
|
-
static readonly $typeName: string;
|
|
690
|
-
static readonly $numTypeParams = 0;
|
|
691
|
-
static readonly $isPhantom: readonly [];
|
|
692
|
-
readonly $typeName: string;
|
|
693
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::IncentiveConfig`;
|
|
694
|
-
readonly $typeArgs: [];
|
|
695
|
-
readonly $isPhantom: readonly [];
|
|
696
|
-
readonly periodIncentiveAmount: ToField<"u64">;
|
|
697
|
-
readonly incentiveIntervalTsMs: ToField<"u64">;
|
|
698
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
699
|
-
private constructor();
|
|
700
|
-
static reified(): IncentiveConfigReified;
|
|
701
|
-
static get r(): reified.StructClassReified<IncentiveConfig, IncentiveConfigFields>;
|
|
702
|
-
static phantom(): PhantomReified<ToTypeStr<IncentiveConfig>>;
|
|
703
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::IncentiveConfig" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::IncentiveConfig">;
|
|
704
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
705
|
-
period_incentive_amount: string;
|
|
706
|
-
incentive_interval_ts_ms: string;
|
|
707
|
-
u64_padding: string[];
|
|
708
|
-
}, {
|
|
709
|
-
period_incentive_amount: string | number | bigint;
|
|
710
|
-
incentive_interval_ts_ms: string | number | bigint;
|
|
711
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
712
|
-
length: number;
|
|
713
|
-
};
|
|
714
|
-
}>;
|
|
715
|
-
static fromFields(fields: Record<string, any>): IncentiveConfig;
|
|
716
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): IncentiveConfig;
|
|
717
|
-
static fromBcs(data: Uint8Array): IncentiveConfig;
|
|
718
|
-
toJSONField(): {
|
|
719
|
-
periodIncentiveAmount: string;
|
|
720
|
-
incentiveIntervalTsMs: string;
|
|
721
|
-
u64Padding: string[];
|
|
722
|
-
};
|
|
723
|
-
toJSON(): {
|
|
724
|
-
periodIncentiveAmount: string;
|
|
725
|
-
incentiveIntervalTsMs: string;
|
|
726
|
-
u64Padding: string[];
|
|
727
|
-
$typeName: string;
|
|
728
|
-
$typeArgs: [];
|
|
729
|
-
};
|
|
730
|
-
static fromJSONField(field: any): IncentiveConfig;
|
|
731
|
-
static fromJSON(json: Record<string, any>): IncentiveConfig;
|
|
732
|
-
static fromSuiParsedData(content: SuiParsedData): IncentiveConfig;
|
|
733
|
-
static fromSuiObjectData(data: SuiObjectData): IncentiveConfig;
|
|
734
|
-
static fetch(client: SuiClient, id: string): Promise<IncentiveConfig>;
|
|
735
|
-
}
|
|
736
|
-
export declare function isIncentiveInfo(type: string): boolean;
|
|
737
|
-
export interface IncentiveInfoFields {
|
|
738
|
-
active: ToField<"bool">;
|
|
739
|
-
lastAllocateTsMs: ToField<"u64">;
|
|
740
|
-
incentivePriceIndex: ToField<"u64">;
|
|
741
|
-
unallocatedAmount: ToField<"u64">;
|
|
742
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
743
|
-
}
|
|
744
|
-
export type IncentiveInfoReified = Reified<IncentiveInfo, IncentiveInfoFields>;
|
|
745
|
-
export declare class IncentiveInfo implements StructClass {
|
|
746
|
-
__StructClass: true;
|
|
747
|
-
static readonly $typeName: string;
|
|
748
|
-
static readonly $numTypeParams = 0;
|
|
749
|
-
static readonly $isPhantom: readonly [];
|
|
750
|
-
readonly $typeName: string;
|
|
751
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::IncentiveInfo`;
|
|
752
|
-
readonly $typeArgs: [];
|
|
753
|
-
readonly $isPhantom: readonly [];
|
|
754
|
-
readonly active: ToField<"bool">;
|
|
755
|
-
readonly lastAllocateTsMs: ToField<"u64">;
|
|
756
|
-
readonly incentivePriceIndex: ToField<"u64">;
|
|
757
|
-
readonly unallocatedAmount: ToField<"u64">;
|
|
758
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
759
|
-
private constructor();
|
|
760
|
-
static reified(): IncentiveInfoReified;
|
|
761
|
-
static get r(): reified.StructClassReified<IncentiveInfo, IncentiveInfoFields>;
|
|
762
|
-
static phantom(): PhantomReified<ToTypeStr<IncentiveInfo>>;
|
|
763
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::IncentiveInfo" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::IncentiveInfo">;
|
|
764
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
765
|
-
active: boolean;
|
|
766
|
-
last_allocate_ts_ms: string;
|
|
767
|
-
incentive_price_index: string;
|
|
768
|
-
unallocated_amount: string;
|
|
769
|
-
u64_padding: string[];
|
|
770
|
-
}, {
|
|
771
|
-
active: boolean;
|
|
772
|
-
last_allocate_ts_ms: string | number | bigint;
|
|
773
|
-
incentive_price_index: string | number | bigint;
|
|
774
|
-
unallocated_amount: string | number | bigint;
|
|
775
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
776
|
-
length: number;
|
|
777
|
-
};
|
|
778
|
-
}>;
|
|
779
|
-
static fromFields(fields: Record<string, any>): IncentiveInfo;
|
|
780
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): IncentiveInfo;
|
|
781
|
-
static fromBcs(data: Uint8Array): IncentiveInfo;
|
|
782
|
-
toJSONField(): {
|
|
783
|
-
active: boolean;
|
|
784
|
-
lastAllocateTsMs: string;
|
|
785
|
-
incentivePriceIndex: string;
|
|
786
|
-
unallocatedAmount: string;
|
|
643
|
+
active: boolean;
|
|
644
|
+
lastAllocateTsMs: string;
|
|
645
|
+
incentivePriceIndex: string;
|
|
646
|
+
unallocatedAmount: string;
|
|
787
647
|
u64Padding: string[];
|
|
788
648
|
};
|
|
789
649
|
toJSON(): {
|
|
@@ -835,6 +695,8 @@ export declare class LpUserShare implements StructClass {
|
|
|
835
695
|
static get r(): reified.StructClassReified<LpUserShare, LpUserShareFields>;
|
|
836
696
|
static phantom(): PhantomReified<ToTypeStr<LpUserShare>>;
|
|
837
697
|
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::LpUserShare" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::LpUserShare">;
|
|
698
|
+
private static instantiateBcs;
|
|
699
|
+
private static cachedBcs;
|
|
838
700
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
839
701
|
user: string;
|
|
840
702
|
user_share_id: string;
|
|
@@ -987,24 +849,130 @@ export declare class LpUserShare implements StructClass {
|
|
|
987
849
|
static fromSuiObjectData(data: SuiObjectData): LpUserShare;
|
|
988
850
|
static fetch(client: SuiClient, id: string): Promise<LpUserShare>;
|
|
989
851
|
}
|
|
990
|
-
export declare function
|
|
991
|
-
export interface
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
852
|
+
export declare function isDeactivatingShares(type: string): boolean;
|
|
853
|
+
export interface DeactivatingSharesFields {
|
|
854
|
+
shares: ToField<"u64">;
|
|
855
|
+
unsubscribedTsMs: ToField<"u64">;
|
|
856
|
+
unlockedTsMs: ToField<"u64">;
|
|
857
|
+
unsubscribedIncentivePriceIndex: ToField<VecMap<TypeName, "u64">>;
|
|
995
858
|
u64Padding: ToField<Vector<"u64">>;
|
|
996
859
|
}
|
|
997
|
-
export type
|
|
998
|
-
export declare class
|
|
860
|
+
export type DeactivatingSharesReified = Reified<DeactivatingShares, DeactivatingSharesFields>;
|
|
861
|
+
export declare class DeactivatingShares implements StructClass {
|
|
999
862
|
__StructClass: true;
|
|
1000
863
|
static readonly $typeName: string;
|
|
1001
864
|
static readonly $numTypeParams = 0;
|
|
1002
865
|
static readonly $isPhantom: readonly [];
|
|
1003
866
|
readonly $typeName: string;
|
|
1004
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::
|
|
867
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::DeactivatingShares`;
|
|
1005
868
|
readonly $typeArgs: [];
|
|
1006
869
|
readonly $isPhantom: readonly [];
|
|
1007
|
-
readonly
|
|
870
|
+
readonly shares: ToField<"u64">;
|
|
871
|
+
readonly unsubscribedTsMs: ToField<"u64">;
|
|
872
|
+
readonly unlockedTsMs: ToField<"u64">;
|
|
873
|
+
readonly unsubscribedIncentivePriceIndex: ToField<VecMap<TypeName, "u64">>;
|
|
874
|
+
readonly u64Padding: ToField<Vector<"u64">>;
|
|
875
|
+
private constructor();
|
|
876
|
+
static reified(): DeactivatingSharesReified;
|
|
877
|
+
static get r(): reified.StructClassReified<DeactivatingShares, DeactivatingSharesFields>;
|
|
878
|
+
static phantom(): PhantomReified<ToTypeStr<DeactivatingShares>>;
|
|
879
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::DeactivatingShares" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::DeactivatingShares">;
|
|
880
|
+
private static instantiateBcs;
|
|
881
|
+
private static cachedBcs;
|
|
882
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
883
|
+
shares: string;
|
|
884
|
+
unsubscribed_ts_ms: string;
|
|
885
|
+
unlocked_ts_ms: string;
|
|
886
|
+
unsubscribed_incentive_price_index: {
|
|
887
|
+
contents: {
|
|
888
|
+
key: {
|
|
889
|
+
name: {
|
|
890
|
+
bytes: number[];
|
|
891
|
+
};
|
|
892
|
+
};
|
|
893
|
+
value: string;
|
|
894
|
+
}[];
|
|
895
|
+
};
|
|
896
|
+
u64_padding: string[];
|
|
897
|
+
}, {
|
|
898
|
+
shares: string | number | bigint;
|
|
899
|
+
unsubscribed_ts_ms: string | number | bigint;
|
|
900
|
+
unlocked_ts_ms: string | number | bigint;
|
|
901
|
+
unsubscribed_incentive_price_index: {
|
|
902
|
+
contents: Iterable<{
|
|
903
|
+
key: {
|
|
904
|
+
name: {
|
|
905
|
+
bytes: Iterable<number> & {
|
|
906
|
+
length: number;
|
|
907
|
+
};
|
|
908
|
+
};
|
|
909
|
+
};
|
|
910
|
+
value: string | number | bigint;
|
|
911
|
+
}> & {
|
|
912
|
+
length: number;
|
|
913
|
+
};
|
|
914
|
+
};
|
|
915
|
+
u64_padding: Iterable<string | number | bigint> & {
|
|
916
|
+
length: number;
|
|
917
|
+
};
|
|
918
|
+
}>;
|
|
919
|
+
static fromFields(fields: Record<string, any>): DeactivatingShares;
|
|
920
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): DeactivatingShares;
|
|
921
|
+
static fromBcs(data: Uint8Array): DeactivatingShares;
|
|
922
|
+
toJSONField(): {
|
|
923
|
+
shares: string;
|
|
924
|
+
unsubscribedTsMs: string;
|
|
925
|
+
unlockedTsMs: string;
|
|
926
|
+
unsubscribedIncentivePriceIndex: {
|
|
927
|
+
contents: {
|
|
928
|
+
key: {
|
|
929
|
+
name: string;
|
|
930
|
+
};
|
|
931
|
+
value: string;
|
|
932
|
+
}[];
|
|
933
|
+
};
|
|
934
|
+
u64Padding: string[];
|
|
935
|
+
};
|
|
936
|
+
toJSON(): {
|
|
937
|
+
shares: string;
|
|
938
|
+
unsubscribedTsMs: string;
|
|
939
|
+
unlockedTsMs: string;
|
|
940
|
+
unsubscribedIncentivePriceIndex: {
|
|
941
|
+
contents: {
|
|
942
|
+
key: {
|
|
943
|
+
name: string;
|
|
944
|
+
};
|
|
945
|
+
value: string;
|
|
946
|
+
}[];
|
|
947
|
+
};
|
|
948
|
+
u64Padding: string[];
|
|
949
|
+
$typeName: string;
|
|
950
|
+
$typeArgs: [];
|
|
951
|
+
};
|
|
952
|
+
static fromJSONField(field: any): DeactivatingShares;
|
|
953
|
+
static fromJSON(json: Record<string, any>): DeactivatingShares;
|
|
954
|
+
static fromSuiParsedData(content: SuiParsedData): DeactivatingShares;
|
|
955
|
+
static fromSuiObjectData(data: SuiObjectData): DeactivatingShares;
|
|
956
|
+
static fetch(client: SuiClient, id: string): Promise<DeactivatingShares>;
|
|
957
|
+
}
|
|
958
|
+
export declare function isNewStakePoolEvent(type: string): boolean;
|
|
959
|
+
export interface NewStakePoolEventFields {
|
|
960
|
+
sender: ToField<"address">;
|
|
961
|
+
stakePoolInfo: ToField<StakePoolInfo>;
|
|
962
|
+
stakePoolConfig: ToField<StakePoolConfig>;
|
|
963
|
+
u64Padding: ToField<Vector<"u64">>;
|
|
964
|
+
}
|
|
965
|
+
export type NewStakePoolEventReified = Reified<NewStakePoolEvent, NewStakePoolEventFields>;
|
|
966
|
+
export declare class NewStakePoolEvent implements StructClass {
|
|
967
|
+
__StructClass: true;
|
|
968
|
+
static readonly $typeName: string;
|
|
969
|
+
static readonly $numTypeParams = 0;
|
|
970
|
+
static readonly $isPhantom: readonly [];
|
|
971
|
+
readonly $typeName: string;
|
|
972
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::NewStakePoolEvent`;
|
|
973
|
+
readonly $typeArgs: [];
|
|
974
|
+
readonly $isPhantom: readonly [];
|
|
975
|
+
readonly sender: ToField<"address">;
|
|
1008
976
|
readonly stakePoolInfo: ToField<StakePoolInfo>;
|
|
1009
977
|
readonly stakePoolConfig: ToField<StakePoolConfig>;
|
|
1010
978
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
@@ -1013,6 +981,8 @@ export declare class NewStakePoolEvent implements StructClass {
|
|
|
1013
981
|
static get r(): reified.StructClassReified<NewStakePoolEvent, NewStakePoolEventFields>;
|
|
1014
982
|
static phantom(): PhantomReified<ToTypeStr<NewStakePoolEvent>>;
|
|
1015
983
|
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::NewStakePoolEvent" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::NewStakePoolEvent">;
|
|
984
|
+
private static instantiateBcs;
|
|
985
|
+
private static cachedBcs;
|
|
1016
986
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1017
987
|
sender: string;
|
|
1018
988
|
stake_pool_info: {
|
|
@@ -1107,34 +1077,42 @@ export declare class NewStakePoolEvent implements StructClass {
|
|
|
1107
1077
|
static fromSuiObjectData(data: SuiObjectData): NewStakePoolEvent;
|
|
1108
1078
|
static fetch(client: SuiClient, id: string): Promise<NewStakePoolEvent>;
|
|
1109
1079
|
}
|
|
1110
|
-
export declare function
|
|
1111
|
-
export interface
|
|
1080
|
+
export declare function isAutoCompoundEvent(type: string): boolean;
|
|
1081
|
+
export interface AutoCompoundEventFields {
|
|
1112
1082
|
sender: ToField<"address">;
|
|
1113
1083
|
index: ToField<"u64">;
|
|
1114
1084
|
incentiveToken: ToField<TypeName>;
|
|
1115
|
-
|
|
1085
|
+
incentivePriceIndex: ToField<"u64">;
|
|
1086
|
+
totalAmount: ToField<"u64">;
|
|
1087
|
+
compoundUsers: ToField<"u64">;
|
|
1088
|
+
totalUsers: ToField<"u64">;
|
|
1116
1089
|
u64Padding: ToField<Vector<"u64">>;
|
|
1117
1090
|
}
|
|
1118
|
-
export type
|
|
1119
|
-
export declare class
|
|
1091
|
+
export type AutoCompoundEventReified = Reified<AutoCompoundEvent, AutoCompoundEventFields>;
|
|
1092
|
+
export declare class AutoCompoundEvent implements StructClass {
|
|
1120
1093
|
__StructClass: true;
|
|
1121
1094
|
static readonly $typeName: string;
|
|
1122
1095
|
static readonly $numTypeParams = 0;
|
|
1123
1096
|
static readonly $isPhantom: readonly [];
|
|
1124
1097
|
readonly $typeName: string;
|
|
1125
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::
|
|
1098
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::AutoCompoundEvent`;
|
|
1126
1099
|
readonly $typeArgs: [];
|
|
1127
1100
|
readonly $isPhantom: readonly [];
|
|
1128
1101
|
readonly sender: ToField<"address">;
|
|
1129
1102
|
readonly index: ToField<"u64">;
|
|
1130
1103
|
readonly incentiveToken: ToField<TypeName>;
|
|
1131
|
-
readonly
|
|
1104
|
+
readonly incentivePriceIndex: ToField<"u64">;
|
|
1105
|
+
readonly totalAmount: ToField<"u64">;
|
|
1106
|
+
readonly compoundUsers: ToField<"u64">;
|
|
1107
|
+
readonly totalUsers: ToField<"u64">;
|
|
1132
1108
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
1133
1109
|
private constructor();
|
|
1134
|
-
static reified():
|
|
1135
|
-
static get r(): reified.StructClassReified<
|
|
1136
|
-
static phantom(): PhantomReified<ToTypeStr<
|
|
1137
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::
|
|
1110
|
+
static reified(): AutoCompoundEventReified;
|
|
1111
|
+
static get r(): reified.StructClassReified<AutoCompoundEvent, AutoCompoundEventFields>;
|
|
1112
|
+
static phantom(): PhantomReified<ToTypeStr<AutoCompoundEvent>>;
|
|
1113
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::AutoCompoundEvent" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::AutoCompoundEvent">;
|
|
1114
|
+
private static instantiateBcs;
|
|
1115
|
+
private static cachedBcs;
|
|
1138
1116
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1139
1117
|
sender: string;
|
|
1140
1118
|
index: string;
|
|
@@ -1143,7 +1121,10 @@ export declare class RemoveIncentiveTokenEvent implements StructClass {
|
|
|
1143
1121
|
bytes: number[];
|
|
1144
1122
|
};
|
|
1145
1123
|
};
|
|
1146
|
-
|
|
1124
|
+
incentive_price_index: string;
|
|
1125
|
+
total_amount: string;
|
|
1126
|
+
compound_users: string;
|
|
1127
|
+
total_users: string;
|
|
1147
1128
|
u64_padding: string[];
|
|
1148
1129
|
}, {
|
|
1149
1130
|
sender: string;
|
|
@@ -1155,21 +1136,27 @@ export declare class RemoveIncentiveTokenEvent implements StructClass {
|
|
|
1155
1136
|
};
|
|
1156
1137
|
};
|
|
1157
1138
|
};
|
|
1158
|
-
|
|
1139
|
+
incentive_price_index: string | number | bigint;
|
|
1140
|
+
total_amount: string | number | bigint;
|
|
1141
|
+
compound_users: string | number | bigint;
|
|
1142
|
+
total_users: string | number | bigint;
|
|
1159
1143
|
u64_padding: Iterable<string | number | bigint> & {
|
|
1160
1144
|
length: number;
|
|
1161
1145
|
};
|
|
1162
1146
|
}>;
|
|
1163
|
-
static fromFields(fields: Record<string, any>):
|
|
1164
|
-
static fromFieldsWithTypes(item: FieldsWithTypes):
|
|
1165
|
-
static fromBcs(data: Uint8Array):
|
|
1147
|
+
static fromFields(fields: Record<string, any>): AutoCompoundEvent;
|
|
1148
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): AutoCompoundEvent;
|
|
1149
|
+
static fromBcs(data: Uint8Array): AutoCompoundEvent;
|
|
1166
1150
|
toJSONField(): {
|
|
1167
1151
|
sender: string;
|
|
1168
1152
|
index: string;
|
|
1169
1153
|
incentiveToken: {
|
|
1170
1154
|
name: string;
|
|
1171
1155
|
};
|
|
1172
|
-
|
|
1156
|
+
incentivePriceIndex: string;
|
|
1157
|
+
totalAmount: string;
|
|
1158
|
+
compoundUsers: string;
|
|
1159
|
+
totalUsers: string;
|
|
1173
1160
|
u64Padding: string[];
|
|
1174
1161
|
};
|
|
1175
1162
|
toJSON(): {
|
|
@@ -1178,681 +1165,774 @@ export declare class RemoveIncentiveTokenEvent implements StructClass {
|
|
|
1178
1165
|
incentiveToken: {
|
|
1179
1166
|
name: string;
|
|
1180
1167
|
};
|
|
1181
|
-
|
|
1168
|
+
incentivePriceIndex: string;
|
|
1169
|
+
totalAmount: string;
|
|
1170
|
+
compoundUsers: string;
|
|
1171
|
+
totalUsers: string;
|
|
1182
1172
|
u64Padding: string[];
|
|
1183
1173
|
$typeName: string;
|
|
1184
1174
|
$typeArgs: [];
|
|
1185
1175
|
};
|
|
1186
|
-
static fromJSONField(field: any):
|
|
1187
|
-
static fromJSON(json: Record<string, any>):
|
|
1188
|
-
static fromSuiParsedData(content: SuiParsedData):
|
|
1189
|
-
static fromSuiObjectData(data: SuiObjectData):
|
|
1190
|
-
static fetch(client: SuiClient, id: string): Promise<
|
|
1176
|
+
static fromJSONField(field: any): AutoCompoundEvent;
|
|
1177
|
+
static fromJSON(json: Record<string, any>): AutoCompoundEvent;
|
|
1178
|
+
static fromSuiParsedData(content: SuiParsedData): AutoCompoundEvent;
|
|
1179
|
+
static fromSuiObjectData(data: SuiObjectData): AutoCompoundEvent;
|
|
1180
|
+
static fetch(client: SuiClient, id: string): Promise<AutoCompoundEvent>;
|
|
1191
1181
|
}
|
|
1192
|
-
export declare function
|
|
1193
|
-
export interface
|
|
1182
|
+
export declare function isAddIncentiveTokenEvent(type: string): boolean;
|
|
1183
|
+
export interface AddIncentiveTokenEventFields {
|
|
1194
1184
|
sender: ToField<"address">;
|
|
1195
1185
|
index: ToField<"u64">;
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
lastTsMs: ToField<"u64">;
|
|
1200
|
-
currentTsMs: ToField<"u64">;
|
|
1201
|
-
exp: ToField<"u64">;
|
|
1186
|
+
incentiveToken: ToField<TypeName>;
|
|
1187
|
+
incentiveInfo: ToField<IncentiveInfo>;
|
|
1188
|
+
incentiveConfig: ToField<IncentiveConfig>;
|
|
1202
1189
|
u64Padding: ToField<Vector<"u64">>;
|
|
1203
1190
|
}
|
|
1204
|
-
export type
|
|
1205
|
-
export declare class
|
|
1191
|
+
export type AddIncentiveTokenEventReified = Reified<AddIncentiveTokenEvent, AddIncentiveTokenEventFields>;
|
|
1192
|
+
export declare class AddIncentiveTokenEvent implements StructClass {
|
|
1206
1193
|
__StructClass: true;
|
|
1207
1194
|
static readonly $typeName: string;
|
|
1208
1195
|
static readonly $numTypeParams = 0;
|
|
1209
1196
|
static readonly $isPhantom: readonly [];
|
|
1210
1197
|
readonly $typeName: string;
|
|
1211
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::
|
|
1198
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::AddIncentiveTokenEvent`;
|
|
1212
1199
|
readonly $typeArgs: [];
|
|
1213
1200
|
readonly $isPhantom: readonly [];
|
|
1214
1201
|
readonly sender: ToField<"address">;
|
|
1215
1202
|
readonly index: ToField<"u64">;
|
|
1216
|
-
readonly
|
|
1217
|
-
readonly
|
|
1218
|
-
readonly
|
|
1219
|
-
readonly lastTsMs: ToField<"u64">;
|
|
1220
|
-
readonly currentTsMs: ToField<"u64">;
|
|
1221
|
-
readonly exp: ToField<"u64">;
|
|
1203
|
+
readonly incentiveToken: ToField<TypeName>;
|
|
1204
|
+
readonly incentiveInfo: ToField<IncentiveInfo>;
|
|
1205
|
+
readonly incentiveConfig: ToField<IncentiveConfig>;
|
|
1222
1206
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
1223
1207
|
private constructor();
|
|
1224
|
-
static reified():
|
|
1225
|
-
static get r(): reified.StructClassReified<
|
|
1226
|
-
static phantom(): PhantomReified<ToTypeStr<
|
|
1227
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::
|
|
1208
|
+
static reified(): AddIncentiveTokenEventReified;
|
|
1209
|
+
static get r(): reified.StructClassReified<AddIncentiveTokenEvent, AddIncentiveTokenEventFields>;
|
|
1210
|
+
static phantom(): PhantomReified<ToTypeStr<AddIncentiveTokenEvent>>;
|
|
1211
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::AddIncentiveTokenEvent" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::AddIncentiveTokenEvent">;
|
|
1212
|
+
private static instantiateBcs;
|
|
1213
|
+
private static cachedBcs;
|
|
1228
1214
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1229
1215
|
sender: string;
|
|
1230
1216
|
index: string;
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1217
|
+
incentive_token: {
|
|
1218
|
+
name: {
|
|
1219
|
+
bytes: number[];
|
|
1220
|
+
};
|
|
1221
|
+
};
|
|
1222
|
+
incentive_info: {
|
|
1223
|
+
active: boolean;
|
|
1224
|
+
last_allocate_ts_ms: string;
|
|
1225
|
+
incentive_price_index: string;
|
|
1226
|
+
unallocated_amount: string;
|
|
1227
|
+
u64_padding: string[];
|
|
1228
|
+
};
|
|
1229
|
+
incentive_config: {
|
|
1230
|
+
period_incentive_amount: string;
|
|
1231
|
+
incentive_interval_ts_ms: string;
|
|
1232
|
+
u64_padding: string[];
|
|
1233
|
+
};
|
|
1237
1234
|
u64_padding: string[];
|
|
1238
1235
|
}, {
|
|
1239
1236
|
sender: string;
|
|
1240
1237
|
index: string | number | bigint;
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1238
|
+
incentive_token: {
|
|
1239
|
+
name: {
|
|
1240
|
+
bytes: Iterable<number> & {
|
|
1241
|
+
length: number;
|
|
1242
|
+
};
|
|
1243
|
+
};
|
|
1244
|
+
};
|
|
1245
|
+
incentive_info: {
|
|
1246
|
+
active: boolean;
|
|
1247
|
+
last_allocate_ts_ms: string | number | bigint;
|
|
1248
|
+
incentive_price_index: string | number | bigint;
|
|
1249
|
+
unallocated_amount: string | number | bigint;
|
|
1250
|
+
u64_padding: Iterable<string | number | bigint> & {
|
|
1251
|
+
length: number;
|
|
1252
|
+
};
|
|
1253
|
+
};
|
|
1254
|
+
incentive_config: {
|
|
1255
|
+
period_incentive_amount: string | number | bigint;
|
|
1256
|
+
incentive_interval_ts_ms: string | number | bigint;
|
|
1257
|
+
u64_padding: Iterable<string | number | bigint> & {
|
|
1258
|
+
length: number;
|
|
1259
|
+
};
|
|
1260
|
+
};
|
|
1247
1261
|
u64_padding: Iterable<string | number | bigint> & {
|
|
1248
1262
|
length: number;
|
|
1249
1263
|
};
|
|
1250
1264
|
}>;
|
|
1251
|
-
static fromFields(fields: Record<string, any>):
|
|
1252
|
-
static fromFieldsWithTypes(item: FieldsWithTypes):
|
|
1253
|
-
static fromBcs(data: Uint8Array):
|
|
1265
|
+
static fromFields(fields: Record<string, any>): AddIncentiveTokenEvent;
|
|
1266
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): AddIncentiveTokenEvent;
|
|
1267
|
+
static fromBcs(data: Uint8Array): AddIncentiveTokenEvent;
|
|
1254
1268
|
toJSONField(): {
|
|
1255
1269
|
sender: string;
|
|
1256
1270
|
index: string;
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1271
|
+
incentiveToken: {
|
|
1272
|
+
name: string;
|
|
1273
|
+
};
|
|
1274
|
+
incentiveInfo: {
|
|
1275
|
+
active: boolean;
|
|
1276
|
+
lastAllocateTsMs: string;
|
|
1277
|
+
incentivePriceIndex: string;
|
|
1278
|
+
unallocatedAmount: string;
|
|
1279
|
+
u64Padding: string[];
|
|
1280
|
+
};
|
|
1281
|
+
incentiveConfig: {
|
|
1282
|
+
periodIncentiveAmount: string;
|
|
1283
|
+
incentiveIntervalTsMs: string;
|
|
1284
|
+
u64Padding: string[];
|
|
1285
|
+
};
|
|
1263
1286
|
u64Padding: string[];
|
|
1264
1287
|
};
|
|
1265
1288
|
toJSON(): {
|
|
1266
1289
|
sender: string;
|
|
1267
1290
|
index: string;
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1291
|
+
incentiveToken: {
|
|
1292
|
+
name: string;
|
|
1293
|
+
};
|
|
1294
|
+
incentiveInfo: {
|
|
1295
|
+
active: boolean;
|
|
1296
|
+
lastAllocateTsMs: string;
|
|
1297
|
+
incentivePriceIndex: string;
|
|
1298
|
+
unallocatedAmount: string;
|
|
1299
|
+
u64Padding: string[];
|
|
1300
|
+
};
|
|
1301
|
+
incentiveConfig: {
|
|
1302
|
+
periodIncentiveAmount: string;
|
|
1303
|
+
incentiveIntervalTsMs: string;
|
|
1304
|
+
u64Padding: string[];
|
|
1305
|
+
};
|
|
1306
|
+
u64Padding: string[];
|
|
1307
|
+
$typeName: string;
|
|
1276
1308
|
$typeArgs: [];
|
|
1277
1309
|
};
|
|
1278
|
-
static fromJSONField(field: any):
|
|
1279
|
-
static fromJSON(json: Record<string, any>):
|
|
1280
|
-
static fromSuiParsedData(content: SuiParsedData):
|
|
1281
|
-
static fromSuiObjectData(data: SuiObjectData):
|
|
1282
|
-
static fetch(client: SuiClient, id: string): Promise<
|
|
1310
|
+
static fromJSONField(field: any): AddIncentiveTokenEvent;
|
|
1311
|
+
static fromJSON(json: Record<string, any>): AddIncentiveTokenEvent;
|
|
1312
|
+
static fromSuiParsedData(content: SuiParsedData): AddIncentiveTokenEvent;
|
|
1313
|
+
static fromSuiObjectData(data: SuiObjectData): AddIncentiveTokenEvent;
|
|
1314
|
+
static fetch(client: SuiClient, id: string): Promise<AddIncentiveTokenEvent>;
|
|
1283
1315
|
}
|
|
1284
|
-
export declare function
|
|
1285
|
-
export interface
|
|
1316
|
+
export declare function isDeactivateIncentiveTokenEvent(type: string): boolean;
|
|
1317
|
+
export interface DeactivateIncentiveTokenEventFields {
|
|
1286
1318
|
sender: ToField<"address">;
|
|
1287
1319
|
index: ToField<"u64">;
|
|
1288
|
-
|
|
1289
|
-
stakeAmount: ToField<"u64">;
|
|
1290
|
-
userShareId: ToField<"u64">;
|
|
1291
|
-
stakeTsMs: ToField<"u64">;
|
|
1292
|
-
lastIncentivePriceIndex: ToField<VecMap<TypeName, "u64">>;
|
|
1320
|
+
incentiveToken: ToField<TypeName>;
|
|
1293
1321
|
u64Padding: ToField<Vector<"u64">>;
|
|
1294
1322
|
}
|
|
1295
|
-
export type
|
|
1296
|
-
export declare class
|
|
1323
|
+
export type DeactivateIncentiveTokenEventReified = Reified<DeactivateIncentiveTokenEvent, DeactivateIncentiveTokenEventFields>;
|
|
1324
|
+
export declare class DeactivateIncentiveTokenEvent implements StructClass {
|
|
1297
1325
|
__StructClass: true;
|
|
1298
1326
|
static readonly $typeName: string;
|
|
1299
1327
|
static readonly $numTypeParams = 0;
|
|
1300
1328
|
static readonly $isPhantom: readonly [];
|
|
1301
1329
|
readonly $typeName: string;
|
|
1302
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::
|
|
1330
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::DeactivateIncentiveTokenEvent`;
|
|
1303
1331
|
readonly $typeArgs: [];
|
|
1304
1332
|
readonly $isPhantom: readonly [];
|
|
1305
1333
|
readonly sender: ToField<"address">;
|
|
1306
1334
|
readonly index: ToField<"u64">;
|
|
1307
|
-
readonly
|
|
1308
|
-
readonly stakeAmount: ToField<"u64">;
|
|
1309
|
-
readonly userShareId: ToField<"u64">;
|
|
1310
|
-
readonly stakeTsMs: ToField<"u64">;
|
|
1311
|
-
readonly lastIncentivePriceIndex: ToField<VecMap<TypeName, "u64">>;
|
|
1335
|
+
readonly incentiveToken: ToField<TypeName>;
|
|
1312
1336
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
1313
1337
|
private constructor();
|
|
1314
|
-
static reified():
|
|
1315
|
-
static get r(): reified.StructClassReified<
|
|
1316
|
-
static phantom(): PhantomReified<ToTypeStr<
|
|
1317
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::
|
|
1338
|
+
static reified(): DeactivateIncentiveTokenEventReified;
|
|
1339
|
+
static get r(): reified.StructClassReified<DeactivateIncentiveTokenEvent, DeactivateIncentiveTokenEventFields>;
|
|
1340
|
+
static phantom(): PhantomReified<ToTypeStr<DeactivateIncentiveTokenEvent>>;
|
|
1341
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::DeactivateIncentiveTokenEvent" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::DeactivateIncentiveTokenEvent">;
|
|
1342
|
+
private static instantiateBcs;
|
|
1343
|
+
private static cachedBcs;
|
|
1318
1344
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1319
1345
|
sender: string;
|
|
1320
1346
|
index: string;
|
|
1321
|
-
|
|
1347
|
+
incentive_token: {
|
|
1322
1348
|
name: {
|
|
1323
1349
|
bytes: number[];
|
|
1324
1350
|
};
|
|
1325
1351
|
};
|
|
1326
|
-
stake_amount: string;
|
|
1327
|
-
user_share_id: string;
|
|
1328
|
-
stake_ts_ms: string;
|
|
1329
|
-
last_incentive_price_index: {
|
|
1330
|
-
contents: {
|
|
1331
|
-
key: {
|
|
1332
|
-
name: {
|
|
1333
|
-
bytes: number[];
|
|
1334
|
-
};
|
|
1335
|
-
};
|
|
1336
|
-
value: string;
|
|
1337
|
-
}[];
|
|
1338
|
-
};
|
|
1339
1352
|
u64_padding: string[];
|
|
1340
1353
|
}, {
|
|
1341
1354
|
sender: string;
|
|
1342
1355
|
index: string | number | bigint;
|
|
1343
|
-
|
|
1356
|
+
incentive_token: {
|
|
1344
1357
|
name: {
|
|
1345
1358
|
bytes: Iterable<number> & {
|
|
1346
1359
|
length: number;
|
|
1347
1360
|
};
|
|
1348
1361
|
};
|
|
1349
1362
|
};
|
|
1350
|
-
stake_amount: string | number | bigint;
|
|
1351
|
-
user_share_id: string | number | bigint;
|
|
1352
|
-
stake_ts_ms: string | number | bigint;
|
|
1353
|
-
last_incentive_price_index: {
|
|
1354
|
-
contents: Iterable<{
|
|
1355
|
-
key: {
|
|
1356
|
-
name: {
|
|
1357
|
-
bytes: Iterable<number> & {
|
|
1358
|
-
length: number;
|
|
1359
|
-
};
|
|
1360
|
-
};
|
|
1361
|
-
};
|
|
1362
|
-
value: string | number | bigint;
|
|
1363
|
-
}> & {
|
|
1364
|
-
length: number;
|
|
1365
|
-
};
|
|
1366
|
-
};
|
|
1367
1363
|
u64_padding: Iterable<string | number | bigint> & {
|
|
1368
1364
|
length: number;
|
|
1369
1365
|
};
|
|
1370
1366
|
}>;
|
|
1371
|
-
static fromFields(fields: Record<string, any>):
|
|
1372
|
-
static fromFieldsWithTypes(item: FieldsWithTypes):
|
|
1373
|
-
static fromBcs(data: Uint8Array):
|
|
1367
|
+
static fromFields(fields: Record<string, any>): DeactivateIncentiveTokenEvent;
|
|
1368
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): DeactivateIncentiveTokenEvent;
|
|
1369
|
+
static fromBcs(data: Uint8Array): DeactivateIncentiveTokenEvent;
|
|
1374
1370
|
toJSONField(): {
|
|
1375
1371
|
sender: string;
|
|
1376
1372
|
index: string;
|
|
1377
|
-
|
|
1373
|
+
incentiveToken: {
|
|
1378
1374
|
name: string;
|
|
1379
1375
|
};
|
|
1380
|
-
stakeAmount: string;
|
|
1381
|
-
userShareId: string;
|
|
1382
|
-
stakeTsMs: string;
|
|
1383
|
-
lastIncentivePriceIndex: {
|
|
1384
|
-
contents: {
|
|
1385
|
-
key: {
|
|
1386
|
-
name: string;
|
|
1387
|
-
};
|
|
1388
|
-
value: string;
|
|
1389
|
-
}[];
|
|
1390
|
-
};
|
|
1391
1376
|
u64Padding: string[];
|
|
1392
1377
|
};
|
|
1393
1378
|
toJSON(): {
|
|
1394
1379
|
sender: string;
|
|
1395
1380
|
index: string;
|
|
1396
|
-
|
|
1381
|
+
incentiveToken: {
|
|
1397
1382
|
name: string;
|
|
1398
1383
|
};
|
|
1399
|
-
stakeAmount: string;
|
|
1400
|
-
userShareId: string;
|
|
1401
|
-
stakeTsMs: string;
|
|
1402
|
-
lastIncentivePriceIndex: {
|
|
1403
|
-
contents: {
|
|
1404
|
-
key: {
|
|
1405
|
-
name: string;
|
|
1406
|
-
};
|
|
1407
|
-
value: string;
|
|
1408
|
-
}[];
|
|
1409
|
-
};
|
|
1410
1384
|
u64Padding: string[];
|
|
1411
1385
|
$typeName: string;
|
|
1412
1386
|
$typeArgs: [];
|
|
1413
1387
|
};
|
|
1414
|
-
static fromJSONField(field: any):
|
|
1415
|
-
static fromJSON(json: Record<string, any>):
|
|
1416
|
-
static fromSuiParsedData(content: SuiParsedData):
|
|
1417
|
-
static fromSuiObjectData(data: SuiObjectData):
|
|
1418
|
-
static fetch(client: SuiClient, id: string): Promise<
|
|
1388
|
+
static fromJSONField(field: any): DeactivateIncentiveTokenEvent;
|
|
1389
|
+
static fromJSON(json: Record<string, any>): DeactivateIncentiveTokenEvent;
|
|
1390
|
+
static fromSuiParsedData(content: SuiParsedData): DeactivateIncentiveTokenEvent;
|
|
1391
|
+
static fromSuiObjectData(data: SuiObjectData): DeactivateIncentiveTokenEvent;
|
|
1392
|
+
static fetch(client: SuiClient, id: string): Promise<DeactivateIncentiveTokenEvent>;
|
|
1419
1393
|
}
|
|
1420
|
-
export declare function
|
|
1421
|
-
export interface
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
incentives: ToField<Vector<Incentive>>;
|
|
1394
|
+
export declare function isActivateIncentiveTokenEvent(type: string): boolean;
|
|
1395
|
+
export interface ActivateIncentiveTokenEventFields {
|
|
1396
|
+
sender: ToField<"address">;
|
|
1397
|
+
index: ToField<"u64">;
|
|
1398
|
+
incentiveToken: ToField<TypeName>;
|
|
1426
1399
|
u64Padding: ToField<Vector<"u64">>;
|
|
1427
1400
|
}
|
|
1428
|
-
export type
|
|
1429
|
-
export declare class
|
|
1401
|
+
export type ActivateIncentiveTokenEventReified = Reified<ActivateIncentiveTokenEvent, ActivateIncentiveTokenEventFields>;
|
|
1402
|
+
export declare class ActivateIncentiveTokenEvent implements StructClass {
|
|
1430
1403
|
__StructClass: true;
|
|
1431
1404
|
static readonly $typeName: string;
|
|
1432
1405
|
static readonly $numTypeParams = 0;
|
|
1433
1406
|
static readonly $isPhantom: readonly [];
|
|
1434
1407
|
readonly $typeName: string;
|
|
1435
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::
|
|
1408
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::ActivateIncentiveTokenEvent`;
|
|
1436
1409
|
readonly $typeArgs: [];
|
|
1437
1410
|
readonly $isPhantom: readonly [];
|
|
1438
|
-
readonly
|
|
1439
|
-
readonly
|
|
1440
|
-
readonly
|
|
1441
|
-
readonly incentives: ToField<Vector<Incentive>>;
|
|
1411
|
+
readonly sender: ToField<"address">;
|
|
1412
|
+
readonly index: ToField<"u64">;
|
|
1413
|
+
readonly incentiveToken: ToField<TypeName>;
|
|
1442
1414
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
1443
1415
|
private constructor();
|
|
1444
|
-
static reified():
|
|
1445
|
-
static get r(): reified.StructClassReified<
|
|
1446
|
-
static phantom(): PhantomReified<ToTypeStr<
|
|
1447
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::
|
|
1416
|
+
static reified(): ActivateIncentiveTokenEventReified;
|
|
1417
|
+
static get r(): reified.StructClassReified<ActivateIncentiveTokenEvent, ActivateIncentiveTokenEventFields>;
|
|
1418
|
+
static phantom(): PhantomReified<ToTypeStr<ActivateIncentiveTokenEvent>>;
|
|
1419
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::ActivateIncentiveTokenEvent" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::ActivateIncentiveTokenEvent">;
|
|
1420
|
+
private static instantiateBcs;
|
|
1421
|
+
private static cachedBcs;
|
|
1448
1422
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1423
|
+
sender: string;
|
|
1424
|
+
index: string;
|
|
1425
|
+
incentive_token: {
|
|
1426
|
+
name: {
|
|
1427
|
+
bytes: number[];
|
|
1452
1428
|
};
|
|
1453
1429
|
};
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1430
|
+
u64_padding: string[];
|
|
1431
|
+
}, {
|
|
1432
|
+
sender: string;
|
|
1433
|
+
index: string | number | bigint;
|
|
1434
|
+
incentive_token: {
|
|
1435
|
+
name: {
|
|
1436
|
+
bytes: Iterable<number> & {
|
|
1437
|
+
length: number;
|
|
1458
1438
|
};
|
|
1459
1439
|
};
|
|
1460
|
-
index: string;
|
|
1461
|
-
next_user_share_id: string;
|
|
1462
|
-
total_share: string;
|
|
1463
|
-
active: boolean;
|
|
1464
|
-
u64_padding: string[];
|
|
1465
1440
|
};
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
u64_padding: string[];
|
|
1441
|
+
u64_padding: Iterable<string | number | bigint> & {
|
|
1442
|
+
length: number;
|
|
1469
1443
|
};
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
u64_padding: string[];
|
|
1480
|
-
};
|
|
1481
|
-
info: {
|
|
1482
|
-
active: boolean;
|
|
1483
|
-
last_allocate_ts_ms: string;
|
|
1484
|
-
incentive_price_index: string;
|
|
1485
|
-
unallocated_amount: string;
|
|
1486
|
-
u64_padding: string[];
|
|
1487
|
-
};
|
|
1488
|
-
}[];
|
|
1489
|
-
u64_padding: string[];
|
|
1490
|
-
}, {
|
|
1491
|
-
id: {
|
|
1492
|
-
id: {
|
|
1493
|
-
bytes: string;
|
|
1494
|
-
};
|
|
1444
|
+
}>;
|
|
1445
|
+
static fromFields(fields: Record<string, any>): ActivateIncentiveTokenEvent;
|
|
1446
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): ActivateIncentiveTokenEvent;
|
|
1447
|
+
static fromBcs(data: Uint8Array): ActivateIncentiveTokenEvent;
|
|
1448
|
+
toJSONField(): {
|
|
1449
|
+
sender: string;
|
|
1450
|
+
index: string;
|
|
1451
|
+
incentiveToken: {
|
|
1452
|
+
name: string;
|
|
1495
1453
|
};
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
};
|
|
1504
|
-
index: string | number | bigint;
|
|
1505
|
-
next_user_share_id: string | number | bigint;
|
|
1506
|
-
total_share: string | number | bigint;
|
|
1507
|
-
active: boolean;
|
|
1508
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
1509
|
-
length: number;
|
|
1510
|
-
};
|
|
1454
|
+
u64Padding: string[];
|
|
1455
|
+
};
|
|
1456
|
+
toJSON(): {
|
|
1457
|
+
sender: string;
|
|
1458
|
+
index: string;
|
|
1459
|
+
incentiveToken: {
|
|
1460
|
+
name: string;
|
|
1511
1461
|
};
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1462
|
+
u64Padding: string[];
|
|
1463
|
+
$typeName: string;
|
|
1464
|
+
$typeArgs: [];
|
|
1465
|
+
};
|
|
1466
|
+
static fromJSONField(field: any): ActivateIncentiveTokenEvent;
|
|
1467
|
+
static fromJSON(json: Record<string, any>): ActivateIncentiveTokenEvent;
|
|
1468
|
+
static fromSuiParsedData(content: SuiParsedData): ActivateIncentiveTokenEvent;
|
|
1469
|
+
static fromSuiObjectData(data: SuiObjectData): ActivateIncentiveTokenEvent;
|
|
1470
|
+
static fetch(client: SuiClient, id: string): Promise<ActivateIncentiveTokenEvent>;
|
|
1471
|
+
}
|
|
1472
|
+
export declare function isRemoveIncentiveTokenEvent(type: string): boolean;
|
|
1473
|
+
export interface RemoveIncentiveTokenEventFields {
|
|
1474
|
+
sender: ToField<"address">;
|
|
1475
|
+
index: ToField<"u64">;
|
|
1476
|
+
incentiveToken: ToField<TypeName>;
|
|
1477
|
+
incentiveBalanceValue: ToField<"u64">;
|
|
1478
|
+
u64Padding: ToField<Vector<"u64">>;
|
|
1479
|
+
}
|
|
1480
|
+
export type RemoveIncentiveTokenEventReified = Reified<RemoveIncentiveTokenEvent, RemoveIncentiveTokenEventFields>;
|
|
1481
|
+
export declare class RemoveIncentiveTokenEvent implements StructClass {
|
|
1482
|
+
__StructClass: true;
|
|
1483
|
+
static readonly $typeName: string;
|
|
1484
|
+
static readonly $numTypeParams = 0;
|
|
1485
|
+
static readonly $isPhantom: readonly [];
|
|
1486
|
+
readonly $typeName: string;
|
|
1487
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::RemoveIncentiveTokenEvent`;
|
|
1488
|
+
readonly $typeArgs: [];
|
|
1489
|
+
readonly $isPhantom: readonly [];
|
|
1490
|
+
readonly sender: ToField<"address">;
|
|
1491
|
+
readonly index: ToField<"u64">;
|
|
1492
|
+
readonly incentiveToken: ToField<TypeName>;
|
|
1493
|
+
readonly incentiveBalanceValue: ToField<"u64">;
|
|
1494
|
+
readonly u64Padding: ToField<Vector<"u64">>;
|
|
1495
|
+
private constructor();
|
|
1496
|
+
static reified(): RemoveIncentiveTokenEventReified;
|
|
1497
|
+
static get r(): reified.StructClassReified<RemoveIncentiveTokenEvent, RemoveIncentiveTokenEventFields>;
|
|
1498
|
+
static phantom(): PhantomReified<ToTypeStr<RemoveIncentiveTokenEvent>>;
|
|
1499
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::RemoveIncentiveTokenEvent" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::RemoveIncentiveTokenEvent">;
|
|
1500
|
+
private static instantiateBcs;
|
|
1501
|
+
private static cachedBcs;
|
|
1502
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1503
|
+
sender: string;
|
|
1504
|
+
index: string;
|
|
1505
|
+
incentive_token: {
|
|
1506
|
+
name: {
|
|
1507
|
+
bytes: number[];
|
|
1516
1508
|
};
|
|
1517
1509
|
};
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
config: {
|
|
1527
|
-
period_incentive_amount: string | number | bigint;
|
|
1528
|
-
incentive_interval_ts_ms: string | number | bigint;
|
|
1529
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
1530
|
-
length: number;
|
|
1531
|
-
};
|
|
1532
|
-
};
|
|
1533
|
-
info: {
|
|
1534
|
-
active: boolean;
|
|
1535
|
-
last_allocate_ts_ms: string | number | bigint;
|
|
1536
|
-
incentive_price_index: string | number | bigint;
|
|
1537
|
-
unallocated_amount: string | number | bigint;
|
|
1538
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
1510
|
+
incentive_balance_value: string;
|
|
1511
|
+
u64_padding: string[];
|
|
1512
|
+
}, {
|
|
1513
|
+
sender: string;
|
|
1514
|
+
index: string | number | bigint;
|
|
1515
|
+
incentive_token: {
|
|
1516
|
+
name: {
|
|
1517
|
+
bytes: Iterable<number> & {
|
|
1539
1518
|
length: number;
|
|
1540
1519
|
};
|
|
1541
1520
|
};
|
|
1542
|
-
}> & {
|
|
1543
|
-
length: number;
|
|
1544
1521
|
};
|
|
1522
|
+
incentive_balance_value: string | number | bigint;
|
|
1545
1523
|
u64_padding: Iterable<string | number | bigint> & {
|
|
1546
1524
|
length: number;
|
|
1547
1525
|
};
|
|
1548
1526
|
}>;
|
|
1549
|
-
static fromFields(fields: Record<string, any>):
|
|
1550
|
-
static fromFieldsWithTypes(item: FieldsWithTypes):
|
|
1551
|
-
static fromBcs(data: Uint8Array):
|
|
1527
|
+
static fromFields(fields: Record<string, any>): RemoveIncentiveTokenEvent;
|
|
1528
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): RemoveIncentiveTokenEvent;
|
|
1529
|
+
static fromBcs(data: Uint8Array): RemoveIncentiveTokenEvent;
|
|
1552
1530
|
toJSONField(): {
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
};
|
|
1558
|
-
index: string;
|
|
1559
|
-
nextUserShareId: string;
|
|
1560
|
-
totalShare: string;
|
|
1561
|
-
active: boolean;
|
|
1562
|
-
u64Padding: string[];
|
|
1563
|
-
};
|
|
1564
|
-
config: {
|
|
1565
|
-
unlockCountdownTsMs: string;
|
|
1566
|
-
u64Padding: string[];
|
|
1531
|
+
sender: string;
|
|
1532
|
+
index: string;
|
|
1533
|
+
incentiveToken: {
|
|
1534
|
+
name: string;
|
|
1567
1535
|
};
|
|
1568
|
-
|
|
1569
|
-
tokenType: {
|
|
1570
|
-
name: string;
|
|
1571
|
-
};
|
|
1572
|
-
config: {
|
|
1573
|
-
periodIncentiveAmount: string;
|
|
1574
|
-
incentiveIntervalTsMs: string;
|
|
1575
|
-
u64Padding: string[];
|
|
1576
|
-
};
|
|
1577
|
-
info: {
|
|
1578
|
-
active: boolean;
|
|
1579
|
-
lastAllocateTsMs: string;
|
|
1580
|
-
incentivePriceIndex: string;
|
|
1581
|
-
unallocatedAmount: string;
|
|
1582
|
-
u64Padding: string[];
|
|
1583
|
-
};
|
|
1584
|
-
}[];
|
|
1536
|
+
incentiveBalanceValue: string;
|
|
1585
1537
|
u64Padding: string[];
|
|
1586
1538
|
};
|
|
1587
1539
|
toJSON(): {
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
};
|
|
1593
|
-
index: string;
|
|
1594
|
-
nextUserShareId: string;
|
|
1595
|
-
totalShare: string;
|
|
1596
|
-
active: boolean;
|
|
1597
|
-
u64Padding: string[];
|
|
1540
|
+
sender: string;
|
|
1541
|
+
index: string;
|
|
1542
|
+
incentiveToken: {
|
|
1543
|
+
name: string;
|
|
1598
1544
|
};
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1545
|
+
incentiveBalanceValue: string;
|
|
1546
|
+
u64Padding: string[];
|
|
1547
|
+
$typeName: string;
|
|
1548
|
+
$typeArgs: [];
|
|
1549
|
+
};
|
|
1550
|
+
static fromJSONField(field: any): RemoveIncentiveTokenEvent;
|
|
1551
|
+
static fromJSON(json: Record<string, any>): RemoveIncentiveTokenEvent;
|
|
1552
|
+
static fromSuiParsedData(content: SuiParsedData): RemoveIncentiveTokenEvent;
|
|
1553
|
+
static fromSuiObjectData(data: SuiObjectData): RemoveIncentiveTokenEvent;
|
|
1554
|
+
static fetch(client: SuiClient, id: string): Promise<RemoveIncentiveTokenEvent>;
|
|
1555
|
+
}
|
|
1556
|
+
export declare function isUpdateUnlockCountdownTsMsEvent(type: string): boolean;
|
|
1557
|
+
export interface UpdateUnlockCountdownTsMsEventFields {
|
|
1558
|
+
sender: ToField<"address">;
|
|
1559
|
+
index: ToField<"u64">;
|
|
1560
|
+
previousUnlockCountdownTsMs: ToField<"u64">;
|
|
1561
|
+
newUnlockCountdownTsMs: ToField<"u64">;
|
|
1562
|
+
u64Padding: ToField<Vector<"u64">>;
|
|
1563
|
+
}
|
|
1564
|
+
export type UpdateUnlockCountdownTsMsEventReified = Reified<UpdateUnlockCountdownTsMsEvent, UpdateUnlockCountdownTsMsEventFields>;
|
|
1565
|
+
export declare class UpdateUnlockCountdownTsMsEvent implements StructClass {
|
|
1566
|
+
__StructClass: true;
|
|
1567
|
+
static readonly $typeName: string;
|
|
1568
|
+
static readonly $numTypeParams = 0;
|
|
1569
|
+
static readonly $isPhantom: readonly [];
|
|
1570
|
+
readonly $typeName: string;
|
|
1571
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::UpdateUnlockCountdownTsMsEvent`;
|
|
1572
|
+
readonly $typeArgs: [];
|
|
1573
|
+
readonly $isPhantom: readonly [];
|
|
1574
|
+
readonly sender: ToField<"address">;
|
|
1575
|
+
readonly index: ToField<"u64">;
|
|
1576
|
+
readonly previousUnlockCountdownTsMs: ToField<"u64">;
|
|
1577
|
+
readonly newUnlockCountdownTsMs: ToField<"u64">;
|
|
1578
|
+
readonly u64Padding: ToField<Vector<"u64">>;
|
|
1579
|
+
private constructor();
|
|
1580
|
+
static reified(): UpdateUnlockCountdownTsMsEventReified;
|
|
1581
|
+
static get r(): reified.StructClassReified<UpdateUnlockCountdownTsMsEvent, UpdateUnlockCountdownTsMsEventFields>;
|
|
1582
|
+
static phantom(): PhantomReified<ToTypeStr<UpdateUnlockCountdownTsMsEvent>>;
|
|
1583
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::UpdateUnlockCountdownTsMsEvent" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::UpdateUnlockCountdownTsMsEvent">;
|
|
1584
|
+
private static instantiateBcs;
|
|
1585
|
+
private static cachedBcs;
|
|
1586
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1587
|
+
sender: string;
|
|
1588
|
+
index: string;
|
|
1589
|
+
previous_unlock_countdown_ts_ms: string;
|
|
1590
|
+
new_unlock_countdown_ts_ms: string;
|
|
1591
|
+
u64_padding: string[];
|
|
1592
|
+
}, {
|
|
1593
|
+
sender: string;
|
|
1594
|
+
index: string | number | bigint;
|
|
1595
|
+
previous_unlock_countdown_ts_ms: string | number | bigint;
|
|
1596
|
+
new_unlock_countdown_ts_ms: string | number | bigint;
|
|
1597
|
+
u64_padding: Iterable<string | number | bigint> & {
|
|
1598
|
+
length: number;
|
|
1602
1599
|
};
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
}[];
|
|
1600
|
+
}>;
|
|
1601
|
+
static fromFields(fields: Record<string, any>): UpdateUnlockCountdownTsMsEvent;
|
|
1602
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): UpdateUnlockCountdownTsMsEvent;
|
|
1603
|
+
static fromBcs(data: Uint8Array): UpdateUnlockCountdownTsMsEvent;
|
|
1604
|
+
toJSONField(): {
|
|
1605
|
+
sender: string;
|
|
1606
|
+
index: string;
|
|
1607
|
+
previousUnlockCountdownTsMs: string;
|
|
1608
|
+
newUnlockCountdownTsMs: string;
|
|
1609
|
+
u64Padding: string[];
|
|
1610
|
+
};
|
|
1611
|
+
toJSON(): {
|
|
1612
|
+
sender: string;
|
|
1613
|
+
index: string;
|
|
1614
|
+
previousUnlockCountdownTsMs: string;
|
|
1615
|
+
newUnlockCountdownTsMs: string;
|
|
1620
1616
|
u64Padding: string[];
|
|
1621
1617
|
$typeName: string;
|
|
1622
1618
|
$typeArgs: [];
|
|
1623
1619
|
};
|
|
1624
|
-
static fromJSONField(field: any):
|
|
1625
|
-
static fromJSON(json: Record<string, any>):
|
|
1626
|
-
static fromSuiParsedData(content: SuiParsedData):
|
|
1627
|
-
static fromSuiObjectData(data: SuiObjectData):
|
|
1628
|
-
static fetch(client: SuiClient, id: string): Promise<
|
|
1620
|
+
static fromJSONField(field: any): UpdateUnlockCountdownTsMsEvent;
|
|
1621
|
+
static fromJSON(json: Record<string, any>): UpdateUnlockCountdownTsMsEvent;
|
|
1622
|
+
static fromSuiParsedData(content: SuiParsedData): UpdateUnlockCountdownTsMsEvent;
|
|
1623
|
+
static fromSuiObjectData(data: SuiObjectData): UpdateUnlockCountdownTsMsEvent;
|
|
1624
|
+
static fetch(client: SuiClient, id: string): Promise<UpdateUnlockCountdownTsMsEvent>;
|
|
1629
1625
|
}
|
|
1630
|
-
export declare function
|
|
1631
|
-
export interface
|
|
1632
|
-
|
|
1626
|
+
export declare function isUpdateIncentiveConfigEvent(type: string): boolean;
|
|
1627
|
+
export interface UpdateIncentiveConfigEventFields {
|
|
1628
|
+
sender: ToField<"address">;
|
|
1629
|
+
index: ToField<"u64">;
|
|
1630
|
+
previousIncentiveConfig: ToField<IncentiveConfig>;
|
|
1631
|
+
newIncentiveConfig: ToField<IncentiveConfig>;
|
|
1633
1632
|
u64Padding: ToField<Vector<"u64">>;
|
|
1634
1633
|
}
|
|
1635
|
-
export type
|
|
1636
|
-
export declare class
|
|
1634
|
+
export type UpdateIncentiveConfigEventReified = Reified<UpdateIncentiveConfigEvent, UpdateIncentiveConfigEventFields>;
|
|
1635
|
+
export declare class UpdateIncentiveConfigEvent implements StructClass {
|
|
1637
1636
|
__StructClass: true;
|
|
1638
1637
|
static readonly $typeName: string;
|
|
1639
1638
|
static readonly $numTypeParams = 0;
|
|
1640
1639
|
static readonly $isPhantom: readonly [];
|
|
1641
1640
|
readonly $typeName: string;
|
|
1642
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::
|
|
1641
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::UpdateIncentiveConfigEvent`;
|
|
1643
1642
|
readonly $typeArgs: [];
|
|
1644
1643
|
readonly $isPhantom: readonly [];
|
|
1645
|
-
readonly
|
|
1644
|
+
readonly sender: ToField<"address">;
|
|
1645
|
+
readonly index: ToField<"u64">;
|
|
1646
|
+
readonly previousIncentiveConfig: ToField<IncentiveConfig>;
|
|
1647
|
+
readonly newIncentiveConfig: ToField<IncentiveConfig>;
|
|
1646
1648
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
1647
1649
|
private constructor();
|
|
1648
|
-
static reified():
|
|
1649
|
-
static get r(): reified.StructClassReified<
|
|
1650
|
-
static phantom(): PhantomReified<ToTypeStr<
|
|
1651
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::
|
|
1650
|
+
static reified(): UpdateIncentiveConfigEventReified;
|
|
1651
|
+
static get r(): reified.StructClassReified<UpdateIncentiveConfigEvent, UpdateIncentiveConfigEventFields>;
|
|
1652
|
+
static phantom(): PhantomReified<ToTypeStr<UpdateIncentiveConfigEvent>>;
|
|
1653
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::UpdateIncentiveConfigEvent" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::UpdateIncentiveConfigEvent">;
|
|
1654
|
+
private static instantiateBcs;
|
|
1655
|
+
private static cachedBcs;
|
|
1652
1656
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1653
|
-
|
|
1657
|
+
sender: string;
|
|
1658
|
+
index: string;
|
|
1659
|
+
previous_incentive_config: {
|
|
1660
|
+
period_incentive_amount: string;
|
|
1661
|
+
incentive_interval_ts_ms: string;
|
|
1662
|
+
u64_padding: string[];
|
|
1663
|
+
};
|
|
1664
|
+
new_incentive_config: {
|
|
1665
|
+
period_incentive_amount: string;
|
|
1666
|
+
incentive_interval_ts_ms: string;
|
|
1667
|
+
u64_padding: string[];
|
|
1668
|
+
};
|
|
1654
1669
|
u64_padding: string[];
|
|
1655
1670
|
}, {
|
|
1656
|
-
|
|
1671
|
+
sender: string;
|
|
1672
|
+
index: string | number | bigint;
|
|
1673
|
+
previous_incentive_config: {
|
|
1674
|
+
period_incentive_amount: string | number | bigint;
|
|
1675
|
+
incentive_interval_ts_ms: string | number | bigint;
|
|
1676
|
+
u64_padding: Iterable<string | number | bigint> & {
|
|
1677
|
+
length: number;
|
|
1678
|
+
};
|
|
1679
|
+
};
|
|
1680
|
+
new_incentive_config: {
|
|
1681
|
+
period_incentive_amount: string | number | bigint;
|
|
1682
|
+
incentive_interval_ts_ms: string | number | bigint;
|
|
1683
|
+
u64_padding: Iterable<string | number | bigint> & {
|
|
1684
|
+
length: number;
|
|
1685
|
+
};
|
|
1686
|
+
};
|
|
1657
1687
|
u64_padding: Iterable<string | number | bigint> & {
|
|
1658
1688
|
length: number;
|
|
1659
1689
|
};
|
|
1660
1690
|
}>;
|
|
1661
|
-
static fromFields(fields: Record<string, any>):
|
|
1662
|
-
static fromFieldsWithTypes(item: FieldsWithTypes):
|
|
1663
|
-
static fromBcs(data: Uint8Array):
|
|
1691
|
+
static fromFields(fields: Record<string, any>): UpdateIncentiveConfigEvent;
|
|
1692
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): UpdateIncentiveConfigEvent;
|
|
1693
|
+
static fromBcs(data: Uint8Array): UpdateIncentiveConfigEvent;
|
|
1664
1694
|
toJSONField(): {
|
|
1665
|
-
|
|
1695
|
+
sender: string;
|
|
1696
|
+
index: string;
|
|
1697
|
+
previousIncentiveConfig: {
|
|
1698
|
+
periodIncentiveAmount: string;
|
|
1699
|
+
incentiveIntervalTsMs: string;
|
|
1700
|
+
u64Padding: string[];
|
|
1701
|
+
};
|
|
1702
|
+
newIncentiveConfig: {
|
|
1703
|
+
periodIncentiveAmount: string;
|
|
1704
|
+
incentiveIntervalTsMs: string;
|
|
1705
|
+
u64Padding: string[];
|
|
1706
|
+
};
|
|
1666
1707
|
u64Padding: string[];
|
|
1667
1708
|
};
|
|
1668
1709
|
toJSON(): {
|
|
1669
|
-
|
|
1710
|
+
sender: string;
|
|
1711
|
+
index: string;
|
|
1712
|
+
previousIncentiveConfig: {
|
|
1713
|
+
periodIncentiveAmount: string;
|
|
1714
|
+
incentiveIntervalTsMs: string;
|
|
1715
|
+
u64Padding: string[];
|
|
1716
|
+
};
|
|
1717
|
+
newIncentiveConfig: {
|
|
1718
|
+
periodIncentiveAmount: string;
|
|
1719
|
+
incentiveIntervalTsMs: string;
|
|
1720
|
+
u64Padding: string[];
|
|
1721
|
+
};
|
|
1670
1722
|
u64Padding: string[];
|
|
1671
1723
|
$typeName: string;
|
|
1672
1724
|
$typeArgs: [];
|
|
1673
1725
|
};
|
|
1674
|
-
static fromJSONField(field: any):
|
|
1675
|
-
static fromJSON(json: Record<string, any>):
|
|
1676
|
-
static fromSuiParsedData(content: SuiParsedData):
|
|
1677
|
-
static fromSuiObjectData(data: SuiObjectData):
|
|
1678
|
-
static fetch(client: SuiClient, id: string): Promise<
|
|
1726
|
+
static fromJSONField(field: any): UpdateIncentiveConfigEvent;
|
|
1727
|
+
static fromJSON(json: Record<string, any>): UpdateIncentiveConfigEvent;
|
|
1728
|
+
static fromSuiParsedData(content: SuiParsedData): UpdateIncentiveConfigEvent;
|
|
1729
|
+
static fromSuiObjectData(data: SuiObjectData): UpdateIncentiveConfigEvent;
|
|
1730
|
+
static fetch(client: SuiClient, id: string): Promise<UpdateIncentiveConfigEvent>;
|
|
1679
1731
|
}
|
|
1680
|
-
export declare function
|
|
1681
|
-
export interface
|
|
1682
|
-
|
|
1732
|
+
export declare function isDepositIncentiveEvent(type: string): boolean;
|
|
1733
|
+
export interface DepositIncentiveEventFields {
|
|
1734
|
+
sender: ToField<"address">;
|
|
1683
1735
|
index: ToField<"u64">;
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
active: ToField<"bool">;
|
|
1736
|
+
incentiveTokenType: ToField<TypeName>;
|
|
1737
|
+
depositAmount: ToField<"u64">;
|
|
1687
1738
|
u64Padding: ToField<Vector<"u64">>;
|
|
1688
1739
|
}
|
|
1689
|
-
export type
|
|
1690
|
-
export declare class
|
|
1740
|
+
export type DepositIncentiveEventReified = Reified<DepositIncentiveEvent, DepositIncentiveEventFields>;
|
|
1741
|
+
export declare class DepositIncentiveEvent implements StructClass {
|
|
1691
1742
|
__StructClass: true;
|
|
1692
1743
|
static readonly $typeName: string;
|
|
1693
1744
|
static readonly $numTypeParams = 0;
|
|
1694
1745
|
static readonly $isPhantom: readonly [];
|
|
1695
1746
|
readonly $typeName: string;
|
|
1696
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::
|
|
1747
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::DepositIncentiveEvent`;
|
|
1697
1748
|
readonly $typeArgs: [];
|
|
1698
1749
|
readonly $isPhantom: readonly [];
|
|
1699
|
-
readonly
|
|
1750
|
+
readonly sender: ToField<"address">;
|
|
1700
1751
|
readonly index: ToField<"u64">;
|
|
1701
|
-
readonly
|
|
1702
|
-
readonly
|
|
1703
|
-
readonly active: ToField<"bool">;
|
|
1752
|
+
readonly incentiveTokenType: ToField<TypeName>;
|
|
1753
|
+
readonly depositAmount: ToField<"u64">;
|
|
1704
1754
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
1705
1755
|
private constructor();
|
|
1706
|
-
static reified():
|
|
1707
|
-
static get r(): reified.StructClassReified<
|
|
1708
|
-
static phantom(): PhantomReified<ToTypeStr<
|
|
1709
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::
|
|
1756
|
+
static reified(): DepositIncentiveEventReified;
|
|
1757
|
+
static get r(): reified.StructClassReified<DepositIncentiveEvent, DepositIncentiveEventFields>;
|
|
1758
|
+
static phantom(): PhantomReified<ToTypeStr<DepositIncentiveEvent>>;
|
|
1759
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::DepositIncentiveEvent" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::DepositIncentiveEvent">;
|
|
1760
|
+
private static instantiateBcs;
|
|
1761
|
+
private static cachedBcs;
|
|
1710
1762
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1711
|
-
|
|
1763
|
+
sender: string;
|
|
1764
|
+
index: string;
|
|
1765
|
+
incentive_token_type: {
|
|
1712
1766
|
name: {
|
|
1713
1767
|
bytes: number[];
|
|
1714
1768
|
};
|
|
1715
1769
|
};
|
|
1716
|
-
|
|
1717
|
-
next_user_share_id: string;
|
|
1718
|
-
total_share: string;
|
|
1719
|
-
active: boolean;
|
|
1770
|
+
deposit_amount: string;
|
|
1720
1771
|
u64_padding: string[];
|
|
1721
1772
|
}, {
|
|
1722
|
-
|
|
1773
|
+
sender: string;
|
|
1774
|
+
index: string | number | bigint;
|
|
1775
|
+
incentive_token_type: {
|
|
1723
1776
|
name: {
|
|
1724
1777
|
bytes: Iterable<number> & {
|
|
1725
1778
|
length: number;
|
|
1726
1779
|
};
|
|
1727
1780
|
};
|
|
1728
1781
|
};
|
|
1729
|
-
|
|
1730
|
-
next_user_share_id: string | number | bigint;
|
|
1731
|
-
total_share: string | number | bigint;
|
|
1732
|
-
active: boolean;
|
|
1782
|
+
deposit_amount: string | number | bigint;
|
|
1733
1783
|
u64_padding: Iterable<string | number | bigint> & {
|
|
1734
1784
|
length: number;
|
|
1735
1785
|
};
|
|
1736
1786
|
}>;
|
|
1737
|
-
static fromFields(fields: Record<string, any>):
|
|
1738
|
-
static fromFieldsWithTypes(item: FieldsWithTypes):
|
|
1739
|
-
static fromBcs(data: Uint8Array):
|
|
1787
|
+
static fromFields(fields: Record<string, any>): DepositIncentiveEvent;
|
|
1788
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): DepositIncentiveEvent;
|
|
1789
|
+
static fromBcs(data: Uint8Array): DepositIncentiveEvent;
|
|
1740
1790
|
toJSONField(): {
|
|
1741
|
-
|
|
1791
|
+
sender: string;
|
|
1792
|
+
index: string;
|
|
1793
|
+
incentiveTokenType: {
|
|
1742
1794
|
name: string;
|
|
1743
1795
|
};
|
|
1744
|
-
|
|
1745
|
-
nextUserShareId: string;
|
|
1746
|
-
totalShare: string;
|
|
1747
|
-
active: boolean;
|
|
1796
|
+
depositAmount: string;
|
|
1748
1797
|
u64Padding: string[];
|
|
1749
1798
|
};
|
|
1750
1799
|
toJSON(): {
|
|
1751
|
-
|
|
1800
|
+
sender: string;
|
|
1801
|
+
index: string;
|
|
1802
|
+
incentiveTokenType: {
|
|
1752
1803
|
name: string;
|
|
1753
1804
|
};
|
|
1754
|
-
|
|
1755
|
-
nextUserShareId: string;
|
|
1756
|
-
totalShare: string;
|
|
1757
|
-
active: boolean;
|
|
1805
|
+
depositAmount: string;
|
|
1758
1806
|
u64Padding: string[];
|
|
1759
1807
|
$typeName: string;
|
|
1760
1808
|
$typeArgs: [];
|
|
1761
1809
|
};
|
|
1762
|
-
static fromJSONField(field: any):
|
|
1763
|
-
static fromJSON(json: Record<string, any>):
|
|
1764
|
-
static fromSuiParsedData(content: SuiParsedData):
|
|
1765
|
-
static fromSuiObjectData(data: SuiObjectData):
|
|
1766
|
-
static fetch(client: SuiClient, id: string): Promise<
|
|
1810
|
+
static fromJSONField(field: any): DepositIncentiveEvent;
|
|
1811
|
+
static fromJSON(json: Record<string, any>): DepositIncentiveEvent;
|
|
1812
|
+
static fromSuiParsedData(content: SuiParsedData): DepositIncentiveEvent;
|
|
1813
|
+
static fromSuiObjectData(data: SuiObjectData): DepositIncentiveEvent;
|
|
1814
|
+
static fetch(client: SuiClient, id: string): Promise<DepositIncentiveEvent>;
|
|
1767
1815
|
}
|
|
1768
|
-
export declare function
|
|
1769
|
-
export interface
|
|
1770
|
-
|
|
1771
|
-
|
|
1816
|
+
export declare function isWithdrawIncentiveEvent(type: string): boolean;
|
|
1817
|
+
export interface WithdrawIncentiveEventFields {
|
|
1818
|
+
sender: ToField<"address">;
|
|
1819
|
+
index: ToField<"u64">;
|
|
1820
|
+
incentiveTokenType: ToField<TypeName>;
|
|
1821
|
+
withdrawalAmount: ToField<"u64">;
|
|
1822
|
+
u64Padding: ToField<Vector<"u64">>;
|
|
1772
1823
|
}
|
|
1773
|
-
export type
|
|
1774
|
-
export declare class
|
|
1824
|
+
export type WithdrawIncentiveEventReified = Reified<WithdrawIncentiveEvent, WithdrawIncentiveEventFields>;
|
|
1825
|
+
export declare class WithdrawIncentiveEvent implements StructClass {
|
|
1775
1826
|
__StructClass: true;
|
|
1776
1827
|
static readonly $typeName: string;
|
|
1777
1828
|
static readonly $numTypeParams = 0;
|
|
1778
1829
|
static readonly $isPhantom: readonly [];
|
|
1779
1830
|
readonly $typeName: string;
|
|
1780
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::
|
|
1831
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::WithdrawIncentiveEvent`;
|
|
1781
1832
|
readonly $typeArgs: [];
|
|
1782
1833
|
readonly $isPhantom: readonly [];
|
|
1783
|
-
readonly
|
|
1784
|
-
readonly
|
|
1834
|
+
readonly sender: ToField<"address">;
|
|
1835
|
+
readonly index: ToField<"u64">;
|
|
1836
|
+
readonly incentiveTokenType: ToField<TypeName>;
|
|
1837
|
+
readonly withdrawalAmount: ToField<"u64">;
|
|
1838
|
+
readonly u64Padding: ToField<Vector<"u64">>;
|
|
1785
1839
|
private constructor();
|
|
1786
|
-
static reified():
|
|
1787
|
-
static get r(): reified.StructClassReified<
|
|
1788
|
-
static phantom(): PhantomReified<ToTypeStr<
|
|
1789
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::
|
|
1840
|
+
static reified(): WithdrawIncentiveEventReified;
|
|
1841
|
+
static get r(): reified.StructClassReified<WithdrawIncentiveEvent, WithdrawIncentiveEventFields>;
|
|
1842
|
+
static phantom(): PhantomReified<ToTypeStr<WithdrawIncentiveEvent>>;
|
|
1843
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::WithdrawIncentiveEvent" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::WithdrawIncentiveEvent">;
|
|
1844
|
+
private static instantiateBcs;
|
|
1845
|
+
private static cachedBcs;
|
|
1790
1846
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1847
|
+
sender: string;
|
|
1848
|
+
index: string;
|
|
1849
|
+
incentive_token_type: {
|
|
1850
|
+
name: {
|
|
1851
|
+
bytes: number[];
|
|
1794
1852
|
};
|
|
1795
1853
|
};
|
|
1796
|
-
|
|
1854
|
+
withdrawal_amount: string;
|
|
1855
|
+
u64_padding: string[];
|
|
1797
1856
|
}, {
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1857
|
+
sender: string;
|
|
1858
|
+
index: string | number | bigint;
|
|
1859
|
+
incentive_token_type: {
|
|
1860
|
+
name: {
|
|
1861
|
+
bytes: Iterable<number> & {
|
|
1862
|
+
length: number;
|
|
1863
|
+
};
|
|
1801
1864
|
};
|
|
1802
1865
|
};
|
|
1803
|
-
|
|
1866
|
+
withdrawal_amount: string | number | bigint;
|
|
1867
|
+
u64_padding: Iterable<string | number | bigint> & {
|
|
1868
|
+
length: number;
|
|
1869
|
+
};
|
|
1804
1870
|
}>;
|
|
1805
|
-
static fromFields(fields: Record<string, any>):
|
|
1806
|
-
static fromFieldsWithTypes(item: FieldsWithTypes):
|
|
1807
|
-
static fromBcs(data: Uint8Array):
|
|
1871
|
+
static fromFields(fields: Record<string, any>): WithdrawIncentiveEvent;
|
|
1872
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): WithdrawIncentiveEvent;
|
|
1873
|
+
static fromBcs(data: Uint8Array): WithdrawIncentiveEvent;
|
|
1808
1874
|
toJSONField(): {
|
|
1809
|
-
|
|
1810
|
-
|
|
1875
|
+
sender: string;
|
|
1876
|
+
index: string;
|
|
1877
|
+
incentiveTokenType: {
|
|
1878
|
+
name: string;
|
|
1879
|
+
};
|
|
1880
|
+
withdrawalAmount: string;
|
|
1881
|
+
u64Padding: string[];
|
|
1811
1882
|
};
|
|
1812
1883
|
toJSON(): {
|
|
1813
|
-
|
|
1814
|
-
|
|
1884
|
+
sender: string;
|
|
1885
|
+
index: string;
|
|
1886
|
+
incentiveTokenType: {
|
|
1887
|
+
name: string;
|
|
1888
|
+
};
|
|
1889
|
+
withdrawalAmount: string;
|
|
1890
|
+
u64Padding: string[];
|
|
1815
1891
|
$typeName: string;
|
|
1816
1892
|
$typeArgs: [];
|
|
1817
1893
|
};
|
|
1818
|
-
static fromJSONField(field: any):
|
|
1819
|
-
static fromJSON(json: Record<string, any>):
|
|
1820
|
-
static fromSuiParsedData(content: SuiParsedData):
|
|
1821
|
-
static fromSuiObjectData(data: SuiObjectData):
|
|
1822
|
-
static fetch(client: SuiClient, id: string): Promise<
|
|
1894
|
+
static fromJSONField(field: any): WithdrawIncentiveEvent;
|
|
1895
|
+
static fromJSON(json: Record<string, any>): WithdrawIncentiveEvent;
|
|
1896
|
+
static fromSuiParsedData(content: SuiParsedData): WithdrawIncentiveEvent;
|
|
1897
|
+
static fromSuiObjectData(data: SuiObjectData): WithdrawIncentiveEvent;
|
|
1898
|
+
static fetch(client: SuiClient, id: string): Promise<WithdrawIncentiveEvent>;
|
|
1823
1899
|
}
|
|
1824
|
-
export declare function
|
|
1825
|
-
export interface
|
|
1900
|
+
export declare function isStakeEvent(type: string): boolean;
|
|
1901
|
+
export interface StakeEventFields {
|
|
1826
1902
|
sender: ToField<"address">;
|
|
1827
1903
|
index: ToField<"u64">;
|
|
1828
1904
|
lpTokenType: ToField<TypeName>;
|
|
1905
|
+
stakeAmount: ToField<"u64">;
|
|
1829
1906
|
userShareId: ToField<"u64">;
|
|
1830
|
-
|
|
1831
|
-
|
|
1907
|
+
stakeTsMs: ToField<"u64">;
|
|
1908
|
+
lastIncentivePriceIndex: ToField<VecMap<TypeName, "u64">>;
|
|
1832
1909
|
u64Padding: ToField<Vector<"u64">>;
|
|
1833
1910
|
}
|
|
1834
|
-
export type
|
|
1835
|
-
export declare class
|
|
1911
|
+
export type StakeEventReified = Reified<StakeEvent, StakeEventFields>;
|
|
1912
|
+
export declare class StakeEvent implements StructClass {
|
|
1836
1913
|
__StructClass: true;
|
|
1837
1914
|
static readonly $typeName: string;
|
|
1838
1915
|
static readonly $numTypeParams = 0;
|
|
1839
1916
|
static readonly $isPhantom: readonly [];
|
|
1840
1917
|
readonly $typeName: string;
|
|
1841
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::
|
|
1918
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::StakeEvent`;
|
|
1842
1919
|
readonly $typeArgs: [];
|
|
1843
1920
|
readonly $isPhantom: readonly [];
|
|
1844
1921
|
readonly sender: ToField<"address">;
|
|
1845
1922
|
readonly index: ToField<"u64">;
|
|
1846
1923
|
readonly lpTokenType: ToField<TypeName>;
|
|
1924
|
+
readonly stakeAmount: ToField<"u64">;
|
|
1847
1925
|
readonly userShareId: ToField<"u64">;
|
|
1848
|
-
readonly
|
|
1849
|
-
readonly
|
|
1926
|
+
readonly stakeTsMs: ToField<"u64">;
|
|
1927
|
+
readonly lastIncentivePriceIndex: ToField<VecMap<TypeName, "u64">>;
|
|
1850
1928
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
1851
1929
|
private constructor();
|
|
1852
|
-
static reified():
|
|
1853
|
-
static get r(): reified.StructClassReified<
|
|
1854
|
-
static phantom(): PhantomReified<ToTypeStr<
|
|
1855
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::
|
|
1930
|
+
static reified(): StakeEventReified;
|
|
1931
|
+
static get r(): reified.StructClassReified<StakeEvent, StakeEventFields>;
|
|
1932
|
+
static phantom(): PhantomReified<ToTypeStr<StakeEvent>>;
|
|
1933
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::StakeEvent" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::StakeEvent">;
|
|
1934
|
+
private static instantiateBcs;
|
|
1935
|
+
private static cachedBcs;
|
|
1856
1936
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1857
1937
|
sender: string;
|
|
1858
1938
|
index: string;
|
|
@@ -1861,9 +1941,19 @@ export declare class UnstakeEvent implements StructClass {
|
|
|
1861
1941
|
bytes: number[];
|
|
1862
1942
|
};
|
|
1863
1943
|
};
|
|
1944
|
+
stake_amount: string;
|
|
1864
1945
|
user_share_id: string;
|
|
1865
|
-
|
|
1866
|
-
|
|
1946
|
+
stake_ts_ms: string;
|
|
1947
|
+
last_incentive_price_index: {
|
|
1948
|
+
contents: {
|
|
1949
|
+
key: {
|
|
1950
|
+
name: {
|
|
1951
|
+
bytes: number[];
|
|
1952
|
+
};
|
|
1953
|
+
};
|
|
1954
|
+
value: string;
|
|
1955
|
+
}[];
|
|
1956
|
+
};
|
|
1867
1957
|
u64_padding: string[];
|
|
1868
1958
|
}, {
|
|
1869
1959
|
sender: string;
|
|
@@ -1875,25 +1965,47 @@ export declare class UnstakeEvent implements StructClass {
|
|
|
1875
1965
|
};
|
|
1876
1966
|
};
|
|
1877
1967
|
};
|
|
1968
|
+
stake_amount: string | number | bigint;
|
|
1878
1969
|
user_share_id: string | number | bigint;
|
|
1879
|
-
|
|
1880
|
-
|
|
1970
|
+
stake_ts_ms: string | number | bigint;
|
|
1971
|
+
last_incentive_price_index: {
|
|
1972
|
+
contents: Iterable<{
|
|
1973
|
+
key: {
|
|
1974
|
+
name: {
|
|
1975
|
+
bytes: Iterable<number> & {
|
|
1976
|
+
length: number;
|
|
1977
|
+
};
|
|
1978
|
+
};
|
|
1979
|
+
};
|
|
1980
|
+
value: string | number | bigint;
|
|
1981
|
+
}> & {
|
|
1982
|
+
length: number;
|
|
1983
|
+
};
|
|
1984
|
+
};
|
|
1881
1985
|
u64_padding: Iterable<string | number | bigint> & {
|
|
1882
1986
|
length: number;
|
|
1883
1987
|
};
|
|
1884
1988
|
}>;
|
|
1885
|
-
static fromFields(fields: Record<string, any>):
|
|
1886
|
-
static fromFieldsWithTypes(item: FieldsWithTypes):
|
|
1887
|
-
static fromBcs(data: Uint8Array):
|
|
1989
|
+
static fromFields(fields: Record<string, any>): StakeEvent;
|
|
1990
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): StakeEvent;
|
|
1991
|
+
static fromBcs(data: Uint8Array): StakeEvent;
|
|
1888
1992
|
toJSONField(): {
|
|
1889
1993
|
sender: string;
|
|
1890
1994
|
index: string;
|
|
1891
1995
|
lpTokenType: {
|
|
1892
1996
|
name: string;
|
|
1893
1997
|
};
|
|
1998
|
+
stakeAmount: string;
|
|
1894
1999
|
userShareId: string;
|
|
1895
|
-
|
|
1896
|
-
|
|
2000
|
+
stakeTsMs: string;
|
|
2001
|
+
lastIncentivePriceIndex: {
|
|
2002
|
+
contents: {
|
|
2003
|
+
key: {
|
|
2004
|
+
name: string;
|
|
2005
|
+
};
|
|
2006
|
+
value: string;
|
|
2007
|
+
}[];
|
|
2008
|
+
};
|
|
1897
2009
|
u64Padding: string[];
|
|
1898
2010
|
};
|
|
1899
2011
|
toJSON(): {
|
|
@@ -1902,375 +2014,409 @@ export declare class UnstakeEvent implements StructClass {
|
|
|
1902
2014
|
lpTokenType: {
|
|
1903
2015
|
name: string;
|
|
1904
2016
|
};
|
|
2017
|
+
stakeAmount: string;
|
|
1905
2018
|
userShareId: string;
|
|
1906
|
-
|
|
1907
|
-
|
|
2019
|
+
stakeTsMs: string;
|
|
2020
|
+
lastIncentivePriceIndex: {
|
|
2021
|
+
contents: {
|
|
2022
|
+
key: {
|
|
2023
|
+
name: string;
|
|
2024
|
+
};
|
|
2025
|
+
value: string;
|
|
2026
|
+
}[];
|
|
2027
|
+
};
|
|
1908
2028
|
u64Padding: string[];
|
|
1909
2029
|
$typeName: string;
|
|
1910
2030
|
$typeArgs: [];
|
|
1911
2031
|
};
|
|
1912
|
-
static fromJSONField(field: any):
|
|
1913
|
-
static fromJSON(json: Record<string, any>):
|
|
1914
|
-
static fromSuiParsedData(content: SuiParsedData):
|
|
1915
|
-
static fromSuiObjectData(data: SuiObjectData):
|
|
1916
|
-
static fetch(client: SuiClient, id: string): Promise<
|
|
2032
|
+
static fromJSONField(field: any): StakeEvent;
|
|
2033
|
+
static fromJSON(json: Record<string, any>): StakeEvent;
|
|
2034
|
+
static fromSuiParsedData(content: SuiParsedData): StakeEvent;
|
|
2035
|
+
static fromSuiObjectData(data: SuiObjectData): StakeEvent;
|
|
2036
|
+
static fetch(client: SuiClient, id: string): Promise<StakeEvent>;
|
|
1917
2037
|
}
|
|
1918
|
-
export declare function
|
|
1919
|
-
export interface
|
|
2038
|
+
export declare function isUpdatePoolInfoU64PaddingEvent(type: string): boolean;
|
|
2039
|
+
export interface UpdatePoolInfoU64PaddingEventFields {
|
|
1920
2040
|
sender: ToField<"address">;
|
|
1921
2041
|
index: ToField<"u64">;
|
|
1922
|
-
lpTokenType: ToField<TypeName>;
|
|
1923
|
-
userShareId: ToField<"u64">;
|
|
1924
|
-
unsubscribedShares: ToField<"u64">;
|
|
1925
|
-
unsubscribeTsMs: ToField<"u64">;
|
|
1926
|
-
unlockedTsMs: ToField<"u64">;
|
|
1927
2042
|
u64Padding: ToField<Vector<"u64">>;
|
|
1928
2043
|
}
|
|
1929
|
-
export type
|
|
1930
|
-
export declare class
|
|
2044
|
+
export type UpdatePoolInfoU64PaddingEventReified = Reified<UpdatePoolInfoU64PaddingEvent, UpdatePoolInfoU64PaddingEventFields>;
|
|
2045
|
+
export declare class UpdatePoolInfoU64PaddingEvent implements StructClass {
|
|
1931
2046
|
__StructClass: true;
|
|
1932
2047
|
static readonly $typeName: string;
|
|
1933
2048
|
static readonly $numTypeParams = 0;
|
|
1934
2049
|
static readonly $isPhantom: readonly [];
|
|
1935
2050
|
readonly $typeName: string;
|
|
1936
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::
|
|
2051
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::UpdatePoolInfoU64PaddingEvent`;
|
|
1937
2052
|
readonly $typeArgs: [];
|
|
1938
2053
|
readonly $isPhantom: readonly [];
|
|
1939
2054
|
readonly sender: ToField<"address">;
|
|
1940
2055
|
readonly index: ToField<"u64">;
|
|
1941
|
-
readonly lpTokenType: ToField<TypeName>;
|
|
1942
|
-
readonly userShareId: ToField<"u64">;
|
|
1943
|
-
readonly unsubscribedShares: ToField<"u64">;
|
|
1944
|
-
readonly unsubscribeTsMs: ToField<"u64">;
|
|
1945
|
-
readonly unlockedTsMs: ToField<"u64">;
|
|
1946
2056
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
1947
2057
|
private constructor();
|
|
1948
|
-
static reified():
|
|
1949
|
-
static get r(): reified.StructClassReified<
|
|
1950
|
-
static phantom(): PhantomReified<ToTypeStr<
|
|
1951
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::
|
|
2058
|
+
static reified(): UpdatePoolInfoU64PaddingEventReified;
|
|
2059
|
+
static get r(): reified.StructClassReified<UpdatePoolInfoU64PaddingEvent, UpdatePoolInfoU64PaddingEventFields>;
|
|
2060
|
+
static phantom(): PhantomReified<ToTypeStr<UpdatePoolInfoU64PaddingEvent>>;
|
|
2061
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::UpdatePoolInfoU64PaddingEvent" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::UpdatePoolInfoU64PaddingEvent">;
|
|
2062
|
+
private static instantiateBcs;
|
|
2063
|
+
private static cachedBcs;
|
|
1952
2064
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1953
2065
|
sender: string;
|
|
1954
2066
|
index: string;
|
|
1955
|
-
lp_token_type: {
|
|
1956
|
-
name: {
|
|
1957
|
-
bytes: number[];
|
|
1958
|
-
};
|
|
1959
|
-
};
|
|
1960
|
-
user_share_id: string;
|
|
1961
|
-
unsubscribed_shares: string;
|
|
1962
|
-
unsubscribe_ts_ms: string;
|
|
1963
|
-
unlocked_ts_ms: string;
|
|
1964
2067
|
u64_padding: string[];
|
|
1965
2068
|
}, {
|
|
1966
2069
|
sender: string;
|
|
1967
2070
|
index: string | number | bigint;
|
|
1968
|
-
lp_token_type: {
|
|
1969
|
-
name: {
|
|
1970
|
-
bytes: Iterable<number> & {
|
|
1971
|
-
length: number;
|
|
1972
|
-
};
|
|
1973
|
-
};
|
|
1974
|
-
};
|
|
1975
|
-
user_share_id: string | number | bigint;
|
|
1976
|
-
unsubscribed_shares: string | number | bigint;
|
|
1977
|
-
unsubscribe_ts_ms: string | number | bigint;
|
|
1978
|
-
unlocked_ts_ms: string | number | bigint;
|
|
1979
2071
|
u64_padding: Iterable<string | number | bigint> & {
|
|
1980
2072
|
length: number;
|
|
1981
2073
|
};
|
|
1982
2074
|
}>;
|
|
1983
|
-
static fromFields(fields: Record<string, any>):
|
|
1984
|
-
static fromFieldsWithTypes(item: FieldsWithTypes):
|
|
1985
|
-
static fromBcs(data: Uint8Array):
|
|
2075
|
+
static fromFields(fields: Record<string, any>): UpdatePoolInfoU64PaddingEvent;
|
|
2076
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): UpdatePoolInfoU64PaddingEvent;
|
|
2077
|
+
static fromBcs(data: Uint8Array): UpdatePoolInfoU64PaddingEvent;
|
|
1986
2078
|
toJSONField(): {
|
|
1987
2079
|
sender: string;
|
|
1988
2080
|
index: string;
|
|
1989
|
-
lpTokenType: {
|
|
1990
|
-
name: string;
|
|
1991
|
-
};
|
|
1992
|
-
userShareId: string;
|
|
1993
|
-
unsubscribedShares: string;
|
|
1994
|
-
unsubscribeTsMs: string;
|
|
1995
|
-
unlockedTsMs: string;
|
|
1996
2081
|
u64Padding: string[];
|
|
1997
2082
|
};
|
|
1998
2083
|
toJSON(): {
|
|
1999
2084
|
sender: string;
|
|
2000
2085
|
index: string;
|
|
2001
|
-
lpTokenType: {
|
|
2002
|
-
name: string;
|
|
2003
|
-
};
|
|
2004
|
-
userShareId: string;
|
|
2005
|
-
unsubscribedShares: string;
|
|
2006
|
-
unsubscribeTsMs: string;
|
|
2007
|
-
unlockedTsMs: string;
|
|
2008
2086
|
u64Padding: string[];
|
|
2009
2087
|
$typeName: string;
|
|
2010
2088
|
$typeArgs: [];
|
|
2011
2089
|
};
|
|
2012
|
-
static fromJSONField(field: any):
|
|
2013
|
-
static fromJSON(json: Record<string, any>):
|
|
2014
|
-
static fromSuiParsedData(content: SuiParsedData):
|
|
2015
|
-
static fromSuiObjectData(data: SuiObjectData):
|
|
2016
|
-
static fetch(client: SuiClient, id: string): Promise<
|
|
2090
|
+
static fromJSONField(field: any): UpdatePoolInfoU64PaddingEvent;
|
|
2091
|
+
static fromJSON(json: Record<string, any>): UpdatePoolInfoU64PaddingEvent;
|
|
2092
|
+
static fromSuiParsedData(content: SuiParsedData): UpdatePoolInfoU64PaddingEvent;
|
|
2093
|
+
static fromSuiObjectData(data: SuiObjectData): UpdatePoolInfoU64PaddingEvent;
|
|
2094
|
+
static fetch(client: SuiClient, id: string): Promise<UpdatePoolInfoU64PaddingEvent>;
|
|
2017
2095
|
}
|
|
2018
|
-
export declare function
|
|
2019
|
-
export interface
|
|
2096
|
+
export declare function isSnapshotEvent(type: string): boolean;
|
|
2097
|
+
export interface SnapshotEventFields {
|
|
2020
2098
|
sender: ToField<"address">;
|
|
2021
2099
|
index: ToField<"u64">;
|
|
2022
|
-
|
|
2023
|
-
|
|
2100
|
+
userShareId: ToField<"u64">;
|
|
2101
|
+
shares: ToField<"u64">;
|
|
2102
|
+
tlpPrice: ToField<"u64">;
|
|
2103
|
+
lastTsMs: ToField<"u64">;
|
|
2104
|
+
currentTsMs: ToField<"u64">;
|
|
2105
|
+
exp: ToField<"u64">;
|
|
2024
2106
|
u64Padding: ToField<Vector<"u64">>;
|
|
2025
2107
|
}
|
|
2026
|
-
export type
|
|
2027
|
-
export declare class
|
|
2108
|
+
export type SnapshotEventReified = Reified<SnapshotEvent, SnapshotEventFields>;
|
|
2109
|
+
export declare class SnapshotEvent implements StructClass {
|
|
2028
2110
|
__StructClass: true;
|
|
2029
2111
|
static readonly $typeName: string;
|
|
2030
2112
|
static readonly $numTypeParams = 0;
|
|
2031
2113
|
static readonly $isPhantom: readonly [];
|
|
2032
2114
|
readonly $typeName: string;
|
|
2033
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::
|
|
2115
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::SnapshotEvent`;
|
|
2034
2116
|
readonly $typeArgs: [];
|
|
2035
2117
|
readonly $isPhantom: readonly [];
|
|
2036
2118
|
readonly sender: ToField<"address">;
|
|
2037
2119
|
readonly index: ToField<"u64">;
|
|
2038
|
-
readonly
|
|
2039
|
-
readonly
|
|
2120
|
+
readonly userShareId: ToField<"u64">;
|
|
2121
|
+
readonly shares: ToField<"u64">;
|
|
2122
|
+
readonly tlpPrice: ToField<"u64">;
|
|
2123
|
+
readonly lastTsMs: ToField<"u64">;
|
|
2124
|
+
readonly currentTsMs: ToField<"u64">;
|
|
2125
|
+
readonly exp: ToField<"u64">;
|
|
2040
2126
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
2041
2127
|
private constructor();
|
|
2042
|
-
static reified():
|
|
2043
|
-
static get r(): reified.StructClassReified<
|
|
2044
|
-
static phantom(): PhantomReified<ToTypeStr<
|
|
2045
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::
|
|
2128
|
+
static reified(): SnapshotEventReified;
|
|
2129
|
+
static get r(): reified.StructClassReified<SnapshotEvent, SnapshotEventFields>;
|
|
2130
|
+
static phantom(): PhantomReified<ToTypeStr<SnapshotEvent>>;
|
|
2131
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::SnapshotEvent" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::SnapshotEvent">;
|
|
2132
|
+
private static instantiateBcs;
|
|
2133
|
+
private static cachedBcs;
|
|
2046
2134
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2047
2135
|
sender: string;
|
|
2048
2136
|
index: string;
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
period_incentive_amount: string;
|
|
2056
|
-
incentive_interval_ts_ms: string;
|
|
2057
|
-
u64_padding: string[];
|
|
2058
|
-
};
|
|
2137
|
+
user_share_id: string;
|
|
2138
|
+
shares: string;
|
|
2139
|
+
tlp_price: string;
|
|
2140
|
+
last_ts_ms: string;
|
|
2141
|
+
current_ts_ms: string;
|
|
2142
|
+
exp: string;
|
|
2059
2143
|
u64_padding: string[];
|
|
2060
2144
|
}, {
|
|
2061
2145
|
sender: string;
|
|
2062
2146
|
index: string | number | bigint;
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
};
|
|
2070
|
-
new_incentive_config: {
|
|
2071
|
-
period_incentive_amount: string | number | bigint;
|
|
2072
|
-
incentive_interval_ts_ms: string | number | bigint;
|
|
2073
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
2074
|
-
length: number;
|
|
2075
|
-
};
|
|
2076
|
-
};
|
|
2147
|
+
user_share_id: string | number | bigint;
|
|
2148
|
+
shares: string | number | bigint;
|
|
2149
|
+
tlp_price: string | number | bigint;
|
|
2150
|
+
last_ts_ms: string | number | bigint;
|
|
2151
|
+
current_ts_ms: string | number | bigint;
|
|
2152
|
+
exp: string | number | bigint;
|
|
2077
2153
|
u64_padding: Iterable<string | number | bigint> & {
|
|
2078
2154
|
length: number;
|
|
2079
2155
|
};
|
|
2080
2156
|
}>;
|
|
2081
|
-
static fromFields(fields: Record<string, any>):
|
|
2082
|
-
static fromFieldsWithTypes(item: FieldsWithTypes):
|
|
2083
|
-
static fromBcs(data: Uint8Array):
|
|
2157
|
+
static fromFields(fields: Record<string, any>): SnapshotEvent;
|
|
2158
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): SnapshotEvent;
|
|
2159
|
+
static fromBcs(data: Uint8Array): SnapshotEvent;
|
|
2084
2160
|
toJSONField(): {
|
|
2085
2161
|
sender: string;
|
|
2086
2162
|
index: string;
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
periodIncentiveAmount: string;
|
|
2094
|
-
incentiveIntervalTsMs: string;
|
|
2095
|
-
u64Padding: string[];
|
|
2096
|
-
};
|
|
2163
|
+
userShareId: string;
|
|
2164
|
+
shares: string;
|
|
2165
|
+
tlpPrice: string;
|
|
2166
|
+
lastTsMs: string;
|
|
2167
|
+
currentTsMs: string;
|
|
2168
|
+
exp: string;
|
|
2097
2169
|
u64Padding: string[];
|
|
2098
2170
|
};
|
|
2099
2171
|
toJSON(): {
|
|
2100
2172
|
sender: string;
|
|
2101
2173
|
index: string;
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
periodIncentiveAmount: string;
|
|
2109
|
-
incentiveIntervalTsMs: string;
|
|
2110
|
-
u64Padding: string[];
|
|
2111
|
-
};
|
|
2174
|
+
userShareId: string;
|
|
2175
|
+
shares: string;
|
|
2176
|
+
tlpPrice: string;
|
|
2177
|
+
lastTsMs: string;
|
|
2178
|
+
currentTsMs: string;
|
|
2179
|
+
exp: string;
|
|
2112
2180
|
u64Padding: string[];
|
|
2113
2181
|
$typeName: string;
|
|
2114
2182
|
$typeArgs: [];
|
|
2115
2183
|
};
|
|
2116
|
-
static fromJSONField(field: any):
|
|
2117
|
-
static fromJSON(json: Record<string, any>):
|
|
2118
|
-
static fromSuiParsedData(content: SuiParsedData):
|
|
2119
|
-
static fromSuiObjectData(data: SuiObjectData):
|
|
2120
|
-
static fetch(client: SuiClient, id: string): Promise<
|
|
2184
|
+
static fromJSONField(field: any): SnapshotEvent;
|
|
2185
|
+
static fromJSON(json: Record<string, any>): SnapshotEvent;
|
|
2186
|
+
static fromSuiParsedData(content: SuiParsedData): SnapshotEvent;
|
|
2187
|
+
static fromSuiObjectData(data: SuiObjectData): SnapshotEvent;
|
|
2188
|
+
static fetch(client: SuiClient, id: string): Promise<SnapshotEvent>;
|
|
2121
2189
|
}
|
|
2122
|
-
export declare function
|
|
2123
|
-
export interface
|
|
2190
|
+
export declare function isUnsubscribeEvent(type: string): boolean;
|
|
2191
|
+
export interface UnsubscribeEventFields {
|
|
2124
2192
|
sender: ToField<"address">;
|
|
2125
2193
|
index: ToField<"u64">;
|
|
2194
|
+
lpTokenType: ToField<TypeName>;
|
|
2195
|
+
userShareId: ToField<"u64">;
|
|
2196
|
+
unsubscribedShares: ToField<"u64">;
|
|
2197
|
+
unsubscribeTsMs: ToField<"u64">;
|
|
2198
|
+
unlockedTsMs: ToField<"u64">;
|
|
2126
2199
|
u64Padding: ToField<Vector<"u64">>;
|
|
2127
2200
|
}
|
|
2128
|
-
export type
|
|
2129
|
-
export declare class
|
|
2201
|
+
export type UnsubscribeEventReified = Reified<UnsubscribeEvent, UnsubscribeEventFields>;
|
|
2202
|
+
export declare class UnsubscribeEvent implements StructClass {
|
|
2130
2203
|
__StructClass: true;
|
|
2131
2204
|
static readonly $typeName: string;
|
|
2132
2205
|
static readonly $numTypeParams = 0;
|
|
2133
2206
|
static readonly $isPhantom: readonly [];
|
|
2134
2207
|
readonly $typeName: string;
|
|
2135
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::
|
|
2208
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::UnsubscribeEvent`;
|
|
2136
2209
|
readonly $typeArgs: [];
|
|
2137
2210
|
readonly $isPhantom: readonly [];
|
|
2138
2211
|
readonly sender: ToField<"address">;
|
|
2139
2212
|
readonly index: ToField<"u64">;
|
|
2213
|
+
readonly lpTokenType: ToField<TypeName>;
|
|
2214
|
+
readonly userShareId: ToField<"u64">;
|
|
2215
|
+
readonly unsubscribedShares: ToField<"u64">;
|
|
2216
|
+
readonly unsubscribeTsMs: ToField<"u64">;
|
|
2217
|
+
readonly unlockedTsMs: ToField<"u64">;
|
|
2140
2218
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
2141
2219
|
private constructor();
|
|
2142
|
-
static reified():
|
|
2143
|
-
static get r(): reified.StructClassReified<
|
|
2144
|
-
static phantom(): PhantomReified<ToTypeStr<
|
|
2145
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::
|
|
2220
|
+
static reified(): UnsubscribeEventReified;
|
|
2221
|
+
static get r(): reified.StructClassReified<UnsubscribeEvent, UnsubscribeEventFields>;
|
|
2222
|
+
static phantom(): PhantomReified<ToTypeStr<UnsubscribeEvent>>;
|
|
2223
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::UnsubscribeEvent" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::UnsubscribeEvent">;
|
|
2224
|
+
private static instantiateBcs;
|
|
2225
|
+
private static cachedBcs;
|
|
2146
2226
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2147
2227
|
sender: string;
|
|
2148
2228
|
index: string;
|
|
2229
|
+
lp_token_type: {
|
|
2230
|
+
name: {
|
|
2231
|
+
bytes: number[];
|
|
2232
|
+
};
|
|
2233
|
+
};
|
|
2234
|
+
user_share_id: string;
|
|
2235
|
+
unsubscribed_shares: string;
|
|
2236
|
+
unsubscribe_ts_ms: string;
|
|
2237
|
+
unlocked_ts_ms: string;
|
|
2149
2238
|
u64_padding: string[];
|
|
2150
2239
|
}, {
|
|
2151
2240
|
sender: string;
|
|
2152
2241
|
index: string | number | bigint;
|
|
2242
|
+
lp_token_type: {
|
|
2243
|
+
name: {
|
|
2244
|
+
bytes: Iterable<number> & {
|
|
2245
|
+
length: number;
|
|
2246
|
+
};
|
|
2247
|
+
};
|
|
2248
|
+
};
|
|
2249
|
+
user_share_id: string | number | bigint;
|
|
2250
|
+
unsubscribed_shares: string | number | bigint;
|
|
2251
|
+
unsubscribe_ts_ms: string | number | bigint;
|
|
2252
|
+
unlocked_ts_ms: string | number | bigint;
|
|
2153
2253
|
u64_padding: Iterable<string | number | bigint> & {
|
|
2154
2254
|
length: number;
|
|
2155
2255
|
};
|
|
2156
2256
|
}>;
|
|
2157
|
-
static fromFields(fields: Record<string, any>):
|
|
2158
|
-
static fromFieldsWithTypes(item: FieldsWithTypes):
|
|
2159
|
-
static fromBcs(data: Uint8Array):
|
|
2257
|
+
static fromFields(fields: Record<string, any>): UnsubscribeEvent;
|
|
2258
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): UnsubscribeEvent;
|
|
2259
|
+
static fromBcs(data: Uint8Array): UnsubscribeEvent;
|
|
2160
2260
|
toJSONField(): {
|
|
2161
2261
|
sender: string;
|
|
2162
2262
|
index: string;
|
|
2263
|
+
lpTokenType: {
|
|
2264
|
+
name: string;
|
|
2265
|
+
};
|
|
2266
|
+
userShareId: string;
|
|
2267
|
+
unsubscribedShares: string;
|
|
2268
|
+
unsubscribeTsMs: string;
|
|
2269
|
+
unlockedTsMs: string;
|
|
2163
2270
|
u64Padding: string[];
|
|
2164
2271
|
};
|
|
2165
2272
|
toJSON(): {
|
|
2166
2273
|
sender: string;
|
|
2167
2274
|
index: string;
|
|
2275
|
+
lpTokenType: {
|
|
2276
|
+
name: string;
|
|
2277
|
+
};
|
|
2278
|
+
userShareId: string;
|
|
2279
|
+
unsubscribedShares: string;
|
|
2280
|
+
unsubscribeTsMs: string;
|
|
2281
|
+
unlockedTsMs: string;
|
|
2168
2282
|
u64Padding: string[];
|
|
2169
2283
|
$typeName: string;
|
|
2170
2284
|
$typeArgs: [];
|
|
2171
2285
|
};
|
|
2172
|
-
static fromJSONField(field: any):
|
|
2173
|
-
static fromJSON(json: Record<string, any>):
|
|
2174
|
-
static fromSuiParsedData(content: SuiParsedData):
|
|
2175
|
-
static fromSuiObjectData(data: SuiObjectData):
|
|
2176
|
-
static fetch(client: SuiClient, id: string): Promise<
|
|
2286
|
+
static fromJSONField(field: any): UnsubscribeEvent;
|
|
2287
|
+
static fromJSON(json: Record<string, any>): UnsubscribeEvent;
|
|
2288
|
+
static fromSuiParsedData(content: SuiParsedData): UnsubscribeEvent;
|
|
2289
|
+
static fromSuiObjectData(data: SuiObjectData): UnsubscribeEvent;
|
|
2290
|
+
static fetch(client: SuiClient, id: string): Promise<UnsubscribeEvent>;
|
|
2177
2291
|
}
|
|
2178
|
-
export declare function
|
|
2179
|
-
export interface
|
|
2292
|
+
export declare function isUnstakeEvent(type: string): boolean;
|
|
2293
|
+
export interface UnstakeEventFields {
|
|
2180
2294
|
sender: ToField<"address">;
|
|
2181
2295
|
index: ToField<"u64">;
|
|
2182
|
-
|
|
2183
|
-
|
|
2296
|
+
lpTokenType: ToField<TypeName>;
|
|
2297
|
+
userShareId: ToField<"u64">;
|
|
2298
|
+
unstakeAmount: ToField<"u64">;
|
|
2299
|
+
unstakeTsMs: ToField<"u64">;
|
|
2184
2300
|
u64Padding: ToField<Vector<"u64">>;
|
|
2185
2301
|
}
|
|
2186
|
-
export type
|
|
2187
|
-
export declare class
|
|
2302
|
+
export type UnstakeEventReified = Reified<UnstakeEvent, UnstakeEventFields>;
|
|
2303
|
+
export declare class UnstakeEvent implements StructClass {
|
|
2188
2304
|
__StructClass: true;
|
|
2189
2305
|
static readonly $typeName: string;
|
|
2190
2306
|
static readonly $numTypeParams = 0;
|
|
2191
2307
|
static readonly $isPhantom: readonly [];
|
|
2192
2308
|
readonly $typeName: string;
|
|
2193
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::
|
|
2309
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::UnstakeEvent`;
|
|
2194
2310
|
readonly $typeArgs: [];
|
|
2195
2311
|
readonly $isPhantom: readonly [];
|
|
2196
2312
|
readonly sender: ToField<"address">;
|
|
2197
2313
|
readonly index: ToField<"u64">;
|
|
2198
|
-
readonly
|
|
2199
|
-
readonly
|
|
2314
|
+
readonly lpTokenType: ToField<TypeName>;
|
|
2315
|
+
readonly userShareId: ToField<"u64">;
|
|
2316
|
+
readonly unstakeAmount: ToField<"u64">;
|
|
2317
|
+
readonly unstakeTsMs: ToField<"u64">;
|
|
2200
2318
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
2201
2319
|
private constructor();
|
|
2202
|
-
static reified():
|
|
2203
|
-
static get r(): reified.StructClassReified<
|
|
2204
|
-
static phantom(): PhantomReified<ToTypeStr<
|
|
2205
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::
|
|
2320
|
+
static reified(): UnstakeEventReified;
|
|
2321
|
+
static get r(): reified.StructClassReified<UnstakeEvent, UnstakeEventFields>;
|
|
2322
|
+
static phantom(): PhantomReified<ToTypeStr<UnstakeEvent>>;
|
|
2323
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::UnstakeEvent" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::UnstakeEvent">;
|
|
2324
|
+
private static instantiateBcs;
|
|
2325
|
+
private static cachedBcs;
|
|
2206
2326
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2207
2327
|
sender: string;
|
|
2208
2328
|
index: string;
|
|
2209
|
-
|
|
2210
|
-
|
|
2329
|
+
lp_token_type: {
|
|
2330
|
+
name: {
|
|
2331
|
+
bytes: number[];
|
|
2332
|
+
};
|
|
2333
|
+
};
|
|
2334
|
+
user_share_id: string;
|
|
2335
|
+
unstake_amount: string;
|
|
2336
|
+
unstake_ts_ms: string;
|
|
2211
2337
|
u64_padding: string[];
|
|
2212
2338
|
}, {
|
|
2213
2339
|
sender: string;
|
|
2214
2340
|
index: string | number | bigint;
|
|
2215
|
-
|
|
2216
|
-
|
|
2341
|
+
lp_token_type: {
|
|
2342
|
+
name: {
|
|
2343
|
+
bytes: Iterable<number> & {
|
|
2344
|
+
length: number;
|
|
2345
|
+
};
|
|
2346
|
+
};
|
|
2347
|
+
};
|
|
2348
|
+
user_share_id: string | number | bigint;
|
|
2349
|
+
unstake_amount: string | number | bigint;
|
|
2350
|
+
unstake_ts_ms: string | number | bigint;
|
|
2217
2351
|
u64_padding: Iterable<string | number | bigint> & {
|
|
2218
2352
|
length: number;
|
|
2219
2353
|
};
|
|
2220
2354
|
}>;
|
|
2221
|
-
static fromFields(fields: Record<string, any>):
|
|
2222
|
-
static fromFieldsWithTypes(item: FieldsWithTypes):
|
|
2223
|
-
static fromBcs(data: Uint8Array):
|
|
2355
|
+
static fromFields(fields: Record<string, any>): UnstakeEvent;
|
|
2356
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): UnstakeEvent;
|
|
2357
|
+
static fromBcs(data: Uint8Array): UnstakeEvent;
|
|
2224
2358
|
toJSONField(): {
|
|
2225
2359
|
sender: string;
|
|
2226
2360
|
index: string;
|
|
2227
|
-
|
|
2228
|
-
|
|
2361
|
+
lpTokenType: {
|
|
2362
|
+
name: string;
|
|
2363
|
+
};
|
|
2364
|
+
userShareId: string;
|
|
2365
|
+
unstakeAmount: string;
|
|
2366
|
+
unstakeTsMs: string;
|
|
2229
2367
|
u64Padding: string[];
|
|
2230
2368
|
};
|
|
2231
2369
|
toJSON(): {
|
|
2232
2370
|
sender: string;
|
|
2233
2371
|
index: string;
|
|
2234
|
-
|
|
2235
|
-
|
|
2372
|
+
lpTokenType: {
|
|
2373
|
+
name: string;
|
|
2374
|
+
};
|
|
2375
|
+
userShareId: string;
|
|
2376
|
+
unstakeAmount: string;
|
|
2377
|
+
unstakeTsMs: string;
|
|
2236
2378
|
u64Padding: string[];
|
|
2237
2379
|
$typeName: string;
|
|
2238
2380
|
$typeArgs: [];
|
|
2239
2381
|
};
|
|
2240
|
-
static fromJSONField(field: any):
|
|
2241
|
-
static fromJSON(json: Record<string, any>):
|
|
2242
|
-
static fromSuiParsedData(content: SuiParsedData):
|
|
2243
|
-
static fromSuiObjectData(data: SuiObjectData):
|
|
2244
|
-
static fetch(client: SuiClient, id: string): Promise<
|
|
2382
|
+
static fromJSONField(field: any): UnstakeEvent;
|
|
2383
|
+
static fromJSON(json: Record<string, any>): UnstakeEvent;
|
|
2384
|
+
static fromSuiParsedData(content: SuiParsedData): UnstakeEvent;
|
|
2385
|
+
static fromSuiObjectData(data: SuiObjectData): UnstakeEvent;
|
|
2386
|
+
static fetch(client: SuiClient, id: string): Promise<UnstakeEvent>;
|
|
2245
2387
|
}
|
|
2246
|
-
export declare function
|
|
2247
|
-
export interface
|
|
2388
|
+
export declare function isHarvestPerUserShareEvent(type: string): boolean;
|
|
2389
|
+
export interface HarvestPerUserShareEventFields {
|
|
2248
2390
|
sender: ToField<"address">;
|
|
2249
2391
|
index: ToField<"u64">;
|
|
2250
2392
|
incentiveTokenType: ToField<TypeName>;
|
|
2251
|
-
|
|
2393
|
+
harvestAmount: ToField<"u64">;
|
|
2394
|
+
userShareId: ToField<"u64">;
|
|
2252
2395
|
u64Padding: ToField<Vector<"u64">>;
|
|
2253
2396
|
}
|
|
2254
|
-
export type
|
|
2255
|
-
export declare class
|
|
2397
|
+
export type HarvestPerUserShareEventReified = Reified<HarvestPerUserShareEvent, HarvestPerUserShareEventFields>;
|
|
2398
|
+
export declare class HarvestPerUserShareEvent implements StructClass {
|
|
2256
2399
|
__StructClass: true;
|
|
2257
2400
|
static readonly $typeName: string;
|
|
2258
2401
|
static readonly $numTypeParams = 0;
|
|
2259
2402
|
static readonly $isPhantom: readonly [];
|
|
2260
2403
|
readonly $typeName: string;
|
|
2261
|
-
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::
|
|
2404
|
+
readonly $fullTypeName: `${typeof PKG_V1}::stake_pool::HarvestPerUserShareEvent`;
|
|
2262
2405
|
readonly $typeArgs: [];
|
|
2263
2406
|
readonly $isPhantom: readonly [];
|
|
2264
2407
|
readonly sender: ToField<"address">;
|
|
2265
2408
|
readonly index: ToField<"u64">;
|
|
2266
2409
|
readonly incentiveTokenType: ToField<TypeName>;
|
|
2267
|
-
readonly
|
|
2410
|
+
readonly harvestAmount: ToField<"u64">;
|
|
2411
|
+
readonly userShareId: ToField<"u64">;
|
|
2268
2412
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
2269
2413
|
private constructor();
|
|
2270
|
-
static reified():
|
|
2271
|
-
static get r(): reified.StructClassReified<
|
|
2272
|
-
static phantom(): PhantomReified<ToTypeStr<
|
|
2273
|
-
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::
|
|
2414
|
+
static reified(): HarvestPerUserShareEventReified;
|
|
2415
|
+
static get r(): reified.StructClassReified<HarvestPerUserShareEvent, HarvestPerUserShareEventFields>;
|
|
2416
|
+
static phantom(): PhantomReified<ToTypeStr<HarvestPerUserShareEvent>>;
|
|
2417
|
+
static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::stake_pool::HarvestPerUserShareEvent" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::stake_pool::HarvestPerUserShareEvent">;
|
|
2418
|
+
private static instantiateBcs;
|
|
2419
|
+
private static cachedBcs;
|
|
2274
2420
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2275
2421
|
sender: string;
|
|
2276
2422
|
index: string;
|
|
@@ -2279,7 +2425,8 @@ export declare class WithdrawIncentiveEvent implements StructClass {
|
|
|
2279
2425
|
bytes: number[];
|
|
2280
2426
|
};
|
|
2281
2427
|
};
|
|
2282
|
-
|
|
2428
|
+
harvest_amount: string;
|
|
2429
|
+
user_share_id: string;
|
|
2283
2430
|
u64_padding: string[];
|
|
2284
2431
|
}, {
|
|
2285
2432
|
sender: string;
|
|
@@ -2291,21 +2438,23 @@ export declare class WithdrawIncentiveEvent implements StructClass {
|
|
|
2291
2438
|
};
|
|
2292
2439
|
};
|
|
2293
2440
|
};
|
|
2294
|
-
|
|
2441
|
+
harvest_amount: string | number | bigint;
|
|
2442
|
+
user_share_id: string | number | bigint;
|
|
2295
2443
|
u64_padding: Iterable<string | number | bigint> & {
|
|
2296
2444
|
length: number;
|
|
2297
2445
|
};
|
|
2298
2446
|
}>;
|
|
2299
|
-
static fromFields(fields: Record<string, any>):
|
|
2300
|
-
static fromFieldsWithTypes(item: FieldsWithTypes):
|
|
2301
|
-
static fromBcs(data: Uint8Array):
|
|
2447
|
+
static fromFields(fields: Record<string, any>): HarvestPerUserShareEvent;
|
|
2448
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): HarvestPerUserShareEvent;
|
|
2449
|
+
static fromBcs(data: Uint8Array): HarvestPerUserShareEvent;
|
|
2302
2450
|
toJSONField(): {
|
|
2303
2451
|
sender: string;
|
|
2304
2452
|
index: string;
|
|
2305
2453
|
incentiveTokenType: {
|
|
2306
2454
|
name: string;
|
|
2307
2455
|
};
|
|
2308
|
-
|
|
2456
|
+
harvestAmount: string;
|
|
2457
|
+
userShareId: string;
|
|
2309
2458
|
u64Padding: string[];
|
|
2310
2459
|
};
|
|
2311
2460
|
toJSON(): {
|
|
@@ -2314,14 +2463,15 @@ export declare class WithdrawIncentiveEvent implements StructClass {
|
|
|
2314
2463
|
incentiveTokenType: {
|
|
2315
2464
|
name: string;
|
|
2316
2465
|
};
|
|
2317
|
-
|
|
2466
|
+
harvestAmount: string;
|
|
2467
|
+
userShareId: string;
|
|
2318
2468
|
u64Padding: string[];
|
|
2319
2469
|
$typeName: string;
|
|
2320
2470
|
$typeArgs: [];
|
|
2321
2471
|
};
|
|
2322
|
-
static fromJSONField(field: any):
|
|
2323
|
-
static fromJSON(json: Record<string, any>):
|
|
2324
|
-
static fromSuiParsedData(content: SuiParsedData):
|
|
2325
|
-
static fromSuiObjectData(data: SuiObjectData):
|
|
2326
|
-
static fetch(client: SuiClient, id: string): Promise<
|
|
2472
|
+
static fromJSONField(field: any): HarvestPerUserShareEvent;
|
|
2473
|
+
static fromJSON(json: Record<string, any>): HarvestPerUserShareEvent;
|
|
2474
|
+
static fromSuiParsedData(content: SuiParsedData): HarvestPerUserShareEvent;
|
|
2475
|
+
static fromSuiObjectData(data: SuiObjectData): HarvestPerUserShareEvent;
|
|
2476
|
+
static fetch(client: SuiClient, id: string): Promise<HarvestPerUserShareEvent>;
|
|
2327
2477
|
}
|