@suilend/sdk 15.0.0 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_generated/_dependencies/pyth-2/price-identifier/structs.d.ts +5 -1
- package/_generated/_dependencies/std/ascii/structs.d.ts +8 -2
- package/_generated/_dependencies/std/option/structs.d.ts +6 -1
- package/_generated/_dependencies/std/type-name/structs.d.ts +7 -1
- package/_generated/_dependencies/sui/bag/structs.d.ts +8 -1
- package/_generated/_dependencies/sui/balance/structs.d.ts +6 -2
- package/_generated/_dependencies/sui/object/structs.d.ts +8 -2
- package/_generated/_dependencies/sui/object-table/structs.d.ts +8 -1
- package/_generated/_envs/mainnet.js +39 -3
- package/_generated/suilend/cell/structs.d.ts +8 -1
- package/_generated/suilend/decimal/structs.d.ts +3 -1
- package/_generated/suilend/lending-market/functions.d.ts +185 -64
- package/_generated/suilend/lending-market/functions.js +227 -65
- package/_generated/suilend/lending-market/structs.d.ts +764 -25
- package/_generated/suilend/lending-market/structs.js +491 -3
- package/_generated/suilend/liquidity-mining/structs.d.ts +169 -5
- package/_generated/suilend/obligation/structs.d.ts +338 -7
- package/_generated/suilend/rate-limiter/functions.d.ts +6 -0
- package/_generated/suilend/rate-limiter/functions.js +12 -0
- package/_generated/suilend/rate-limiter/structs.d.ts +17 -2
- package/_generated/suilend/reserve/structs.d.ts +664 -17
- package/_generated/suilend/reserve/structs.js +623 -4
- package/_generated/suilend/reserve-config/functions.d.ts +64 -9
- package/_generated/suilend/reserve-config/functions.js +88 -11
- package/_generated/suilend/reserve-config/structs.d.ts +45 -3
- package/package.json +1 -1
|
@@ -93,7 +93,285 @@ export declare class Reserve<P extends PhantomTypeArgument> implements StructCla
|
|
|
93
93
|
static get r(): typeof Reserve.reified;
|
|
94
94
|
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<Reserve<ToPhantomTypeArgument<P>>>>;
|
|
95
95
|
static get p(): typeof Reserve.phantom;
|
|
96
|
-
|
|
96
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
97
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
98
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
99
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
100
|
+
}, string>;
|
|
101
|
+
}, string>;
|
|
102
|
+
lending_market_id: import("@mysten/bcs").BcsStruct<{
|
|
103
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
104
|
+
}, string>;
|
|
105
|
+
array_index: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
106
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
107
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
108
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
109
|
+
length: number;
|
|
110
|
+
}, string>;
|
|
111
|
+
}, string>;
|
|
112
|
+
}, string>;
|
|
113
|
+
config: import("@mysten/bcs").BcsStruct<{
|
|
114
|
+
element: import("@mysten/bcs").BcsStruct<{
|
|
115
|
+
vec: import("@mysten/bcs").BcsType<{
|
|
116
|
+
open_ltv_pct: number;
|
|
117
|
+
close_ltv_pct: number;
|
|
118
|
+
max_close_ltv_pct: number;
|
|
119
|
+
borrow_weight_bps: string;
|
|
120
|
+
deposit_limit: string;
|
|
121
|
+
borrow_limit: string;
|
|
122
|
+
liquidation_bonus_bps: string;
|
|
123
|
+
max_liquidation_bonus_bps: string;
|
|
124
|
+
deposit_limit_usd: string;
|
|
125
|
+
borrow_limit_usd: string;
|
|
126
|
+
interest_rate_utils: number[];
|
|
127
|
+
interest_rate_aprs: string[];
|
|
128
|
+
borrow_fee_bps: string;
|
|
129
|
+
spread_fee_bps: string;
|
|
130
|
+
protocol_liquidation_fee_bps: string;
|
|
131
|
+
isolated: boolean;
|
|
132
|
+
open_attributed_borrow_limit_usd: string;
|
|
133
|
+
close_attributed_borrow_limit_usd: string;
|
|
134
|
+
additional_fields: {
|
|
135
|
+
id: {
|
|
136
|
+
id: {
|
|
137
|
+
bytes: string;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
size: string;
|
|
141
|
+
};
|
|
142
|
+
}[], Iterable<{
|
|
143
|
+
open_ltv_pct: number;
|
|
144
|
+
close_ltv_pct: number;
|
|
145
|
+
max_close_ltv_pct: number;
|
|
146
|
+
borrow_weight_bps: string | number | bigint;
|
|
147
|
+
deposit_limit: string | number | bigint;
|
|
148
|
+
borrow_limit: string | number | bigint;
|
|
149
|
+
liquidation_bonus_bps: string | number | bigint;
|
|
150
|
+
max_liquidation_bonus_bps: string | number | bigint;
|
|
151
|
+
deposit_limit_usd: string | number | bigint;
|
|
152
|
+
borrow_limit_usd: string | number | bigint;
|
|
153
|
+
interest_rate_utils: Iterable<number> & {
|
|
154
|
+
length: number;
|
|
155
|
+
};
|
|
156
|
+
interest_rate_aprs: Iterable<string | number | bigint> & {
|
|
157
|
+
length: number;
|
|
158
|
+
};
|
|
159
|
+
borrow_fee_bps: string | number | bigint;
|
|
160
|
+
spread_fee_bps: string | number | bigint;
|
|
161
|
+
protocol_liquidation_fee_bps: string | number | bigint;
|
|
162
|
+
isolated: boolean;
|
|
163
|
+
open_attributed_borrow_limit_usd: string | number | bigint;
|
|
164
|
+
close_attributed_borrow_limit_usd: string | number | bigint;
|
|
165
|
+
additional_fields: {
|
|
166
|
+
id: {
|
|
167
|
+
id: {
|
|
168
|
+
bytes: string;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
size: string | number | bigint;
|
|
172
|
+
};
|
|
173
|
+
}> & {
|
|
174
|
+
length: number;
|
|
175
|
+
}, string>;
|
|
176
|
+
}, string>;
|
|
177
|
+
}, string>;
|
|
178
|
+
mint_decimals: import("@mysten/bcs").BcsType<number, number, "u8">;
|
|
179
|
+
price_identifier: import("@mysten/bcs").BcsStruct<{
|
|
180
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
181
|
+
length: number;
|
|
182
|
+
}, string>;
|
|
183
|
+
}, string>;
|
|
184
|
+
price: import("@mysten/bcs").BcsStruct<{
|
|
185
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
186
|
+
}, string>;
|
|
187
|
+
smoothed_price: import("@mysten/bcs").BcsStruct<{
|
|
188
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
189
|
+
}, string>;
|
|
190
|
+
price_last_update_timestamp_s: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
191
|
+
available_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
192
|
+
ctoken_supply: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
193
|
+
borrowed_amount: import("@mysten/bcs").BcsStruct<{
|
|
194
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
195
|
+
}, string>;
|
|
196
|
+
cumulative_borrow_rate: import("@mysten/bcs").BcsStruct<{
|
|
197
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
198
|
+
}, string>;
|
|
199
|
+
interest_last_update_timestamp_s: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
200
|
+
unclaimed_spread_fees: import("@mysten/bcs").BcsStruct<{
|
|
201
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
202
|
+
}, string>;
|
|
203
|
+
attributed_borrow_value: import("@mysten/bcs").BcsStruct<{
|
|
204
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
205
|
+
}, string>;
|
|
206
|
+
deposits_pool_reward_manager: import("@mysten/bcs").BcsStruct<{
|
|
207
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
208
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
209
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
210
|
+
}, string>;
|
|
211
|
+
}, string>;
|
|
212
|
+
total_shares: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
213
|
+
pool_rewards: import("@mysten/bcs").BcsType<{
|
|
214
|
+
vec: {
|
|
215
|
+
id: {
|
|
216
|
+
id: {
|
|
217
|
+
bytes: string;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
pool_reward_manager_id: {
|
|
221
|
+
bytes: string;
|
|
222
|
+
};
|
|
223
|
+
coin_type: {
|
|
224
|
+
name: {
|
|
225
|
+
bytes: number[];
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
start_time_ms: string;
|
|
229
|
+
end_time_ms: string;
|
|
230
|
+
total_rewards: string;
|
|
231
|
+
allocated_rewards: {
|
|
232
|
+
value: string;
|
|
233
|
+
};
|
|
234
|
+
cumulative_rewards_per_share: {
|
|
235
|
+
value: string;
|
|
236
|
+
};
|
|
237
|
+
num_user_reward_managers: string;
|
|
238
|
+
additional_fields: {
|
|
239
|
+
id: {
|
|
240
|
+
id: {
|
|
241
|
+
bytes: string;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
size: string;
|
|
245
|
+
};
|
|
246
|
+
}[];
|
|
247
|
+
}[], Iterable<{
|
|
248
|
+
vec: Iterable<{
|
|
249
|
+
id: {
|
|
250
|
+
id: {
|
|
251
|
+
bytes: string;
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
pool_reward_manager_id: {
|
|
255
|
+
bytes: string;
|
|
256
|
+
};
|
|
257
|
+
coin_type: {
|
|
258
|
+
name: {
|
|
259
|
+
bytes: Iterable<number> & {
|
|
260
|
+
length: number;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
start_time_ms: string | number | bigint;
|
|
265
|
+
end_time_ms: string | number | bigint;
|
|
266
|
+
total_rewards: string | number | bigint;
|
|
267
|
+
allocated_rewards: {
|
|
268
|
+
value: string | number | bigint;
|
|
269
|
+
};
|
|
270
|
+
cumulative_rewards_per_share: {
|
|
271
|
+
value: string | number | bigint;
|
|
272
|
+
};
|
|
273
|
+
num_user_reward_managers: string | number | bigint;
|
|
274
|
+
additional_fields: {
|
|
275
|
+
id: {
|
|
276
|
+
id: {
|
|
277
|
+
bytes: string;
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
size: string | number | bigint;
|
|
281
|
+
};
|
|
282
|
+
}> & {
|
|
283
|
+
length: number;
|
|
284
|
+
};
|
|
285
|
+
}> & {
|
|
286
|
+
length: number;
|
|
287
|
+
}, string>;
|
|
288
|
+
last_update_time_ms: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
289
|
+
}, string>;
|
|
290
|
+
borrows_pool_reward_manager: import("@mysten/bcs").BcsStruct<{
|
|
291
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
292
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
293
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
294
|
+
}, string>;
|
|
295
|
+
}, string>;
|
|
296
|
+
total_shares: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
297
|
+
pool_rewards: import("@mysten/bcs").BcsType<{
|
|
298
|
+
vec: {
|
|
299
|
+
id: {
|
|
300
|
+
id: {
|
|
301
|
+
bytes: string;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
pool_reward_manager_id: {
|
|
305
|
+
bytes: string;
|
|
306
|
+
};
|
|
307
|
+
coin_type: {
|
|
308
|
+
name: {
|
|
309
|
+
bytes: number[];
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
start_time_ms: string;
|
|
313
|
+
end_time_ms: string;
|
|
314
|
+
total_rewards: string;
|
|
315
|
+
allocated_rewards: {
|
|
316
|
+
value: string;
|
|
317
|
+
};
|
|
318
|
+
cumulative_rewards_per_share: {
|
|
319
|
+
value: string;
|
|
320
|
+
};
|
|
321
|
+
num_user_reward_managers: string;
|
|
322
|
+
additional_fields: {
|
|
323
|
+
id: {
|
|
324
|
+
id: {
|
|
325
|
+
bytes: string;
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
size: string;
|
|
329
|
+
};
|
|
330
|
+
}[];
|
|
331
|
+
}[], Iterable<{
|
|
332
|
+
vec: Iterable<{
|
|
333
|
+
id: {
|
|
334
|
+
id: {
|
|
335
|
+
bytes: string;
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
pool_reward_manager_id: {
|
|
339
|
+
bytes: string;
|
|
340
|
+
};
|
|
341
|
+
coin_type: {
|
|
342
|
+
name: {
|
|
343
|
+
bytes: Iterable<number> & {
|
|
344
|
+
length: number;
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
start_time_ms: string | number | bigint;
|
|
349
|
+
end_time_ms: string | number | bigint;
|
|
350
|
+
total_rewards: string | number | bigint;
|
|
351
|
+
allocated_rewards: {
|
|
352
|
+
value: string | number | bigint;
|
|
353
|
+
};
|
|
354
|
+
cumulative_rewards_per_share: {
|
|
355
|
+
value: string | number | bigint;
|
|
356
|
+
};
|
|
357
|
+
num_user_reward_managers: string | number | bigint;
|
|
358
|
+
additional_fields: {
|
|
359
|
+
id: {
|
|
360
|
+
id: {
|
|
361
|
+
bytes: string;
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
size: string | number | bigint;
|
|
365
|
+
};
|
|
366
|
+
}> & {
|
|
367
|
+
length: number;
|
|
368
|
+
};
|
|
369
|
+
}> & {
|
|
370
|
+
length: number;
|
|
371
|
+
}, string>;
|
|
372
|
+
last_update_time_ms: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
373
|
+
}, string>;
|
|
374
|
+
}, string>;
|
|
97
375
|
private static cachedBcs;
|
|
98
376
|
static get bcs(): ReturnType<typeof Reserve.instantiateBcs>;
|
|
99
377
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): Reserve<ToPhantomTypeArgument<P>>;
|
|
@@ -139,7 +417,9 @@ export declare class CToken<P extends PhantomTypeArgument, T extends PhantomType
|
|
|
139
417
|
static get r(): typeof CToken.reified;
|
|
140
418
|
static phantom<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): PhantomReified<ToTypeStr<CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>>;
|
|
141
419
|
static get p(): typeof CToken.phantom;
|
|
142
|
-
|
|
420
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
421
|
+
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
422
|
+
}, string>;
|
|
143
423
|
private static cachedBcs;
|
|
144
424
|
static get bcs(): ReturnType<typeof CToken.instantiateBcs>;
|
|
145
425
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], fields: Record<string, any>): CToken<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
@@ -185,7 +465,10 @@ export declare class LiquidityRequest<P extends PhantomTypeArgument, T extends P
|
|
|
185
465
|
static get r(): typeof LiquidityRequest.reified;
|
|
186
466
|
static phantom<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): PhantomReified<ToTypeStr<LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>>;
|
|
187
467
|
static get p(): typeof LiquidityRequest.phantom;
|
|
188
|
-
|
|
468
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
469
|
+
amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
470
|
+
fee: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
471
|
+
}, string>;
|
|
189
472
|
private static cachedBcs;
|
|
190
473
|
static get bcs(): ReturnType<typeof LiquidityRequest.instantiateBcs>;
|
|
191
474
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], fields: Record<string, any>): LiquidityRequest<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
@@ -227,7 +510,9 @@ export declare class BalanceKey implements StructClass {
|
|
|
227
510
|
static get r(): BalanceKeyReified;
|
|
228
511
|
static phantom(): PhantomReified<ToTypeStr<BalanceKey>>;
|
|
229
512
|
static get p(): PhantomReified<ToTypeStr<BalanceKey>>;
|
|
230
|
-
|
|
513
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
514
|
+
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
515
|
+
}, string>;
|
|
231
516
|
private static cachedBcs;
|
|
232
517
|
static get bcs(): ReturnType<typeof BalanceKey.instantiateBcs>;
|
|
233
518
|
static fromFields(fields: Record<string, any>): BalanceKey;
|
|
@@ -269,7 +554,9 @@ export declare class StakerKey implements StructClass {
|
|
|
269
554
|
static get r(): StakerKeyReified;
|
|
270
555
|
static phantom(): PhantomReified<ToTypeStr<StakerKey>>;
|
|
271
556
|
static get p(): PhantomReified<ToTypeStr<StakerKey>>;
|
|
272
|
-
|
|
557
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
558
|
+
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
559
|
+
}, string>;
|
|
273
560
|
private static cachedBcs;
|
|
274
561
|
static get bcs(): ReturnType<typeof StakerKey.instantiateBcs>;
|
|
275
562
|
static fromFields(fields: Record<string, any>): StakerKey;
|
|
@@ -284,6 +571,50 @@ export declare class StakerKey implements StructClass {
|
|
|
284
571
|
}>): StakerKey;
|
|
285
572
|
static fetch(client: ClientWithCoreApi, id: string): Promise<StakerKey>;
|
|
286
573
|
}
|
|
574
|
+
export declare function isStakerValidatorKey(type: string): boolean;
|
|
575
|
+
export interface StakerValidatorKeyFields {
|
|
576
|
+
dummyField: ToField<'bool'>;
|
|
577
|
+
}
|
|
578
|
+
export type StakerValidatorKeyReified = Reified<StakerValidatorKey, StakerValidatorKeyFields>;
|
|
579
|
+
export type StakerValidatorKeyJSONField = {
|
|
580
|
+
dummyField: boolean;
|
|
581
|
+
};
|
|
582
|
+
export type StakerValidatorKeyJSON = {
|
|
583
|
+
$typeName: typeof StakerValidatorKey.$typeName;
|
|
584
|
+
$typeArgs: [];
|
|
585
|
+
} & StakerValidatorKeyJSONField;
|
|
586
|
+
export declare class StakerValidatorKey implements StructClass {
|
|
587
|
+
__StructClass: true;
|
|
588
|
+
static get $typeName(): `${string}::reserve::StakerValidatorKey`;
|
|
589
|
+
static readonly $numTypeParams = 0;
|
|
590
|
+
static readonly $isPhantom: readonly [];
|
|
591
|
+
readonly $typeName: typeof StakerValidatorKey.$typeName;
|
|
592
|
+
readonly $fullTypeName: `${string}::reserve::StakerValidatorKey`;
|
|
593
|
+
readonly $typeArgs: [];
|
|
594
|
+
readonly $isPhantom: typeof StakerValidatorKey.$isPhantom;
|
|
595
|
+
readonly dummyField: ToField<'bool'>;
|
|
596
|
+
private constructor();
|
|
597
|
+
static reified(): StakerValidatorKeyReified;
|
|
598
|
+
static get r(): StakerValidatorKeyReified;
|
|
599
|
+
static phantom(): PhantomReified<ToTypeStr<StakerValidatorKey>>;
|
|
600
|
+
static get p(): PhantomReified<ToTypeStr<StakerValidatorKey>>;
|
|
601
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
602
|
+
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
603
|
+
}, string>;
|
|
604
|
+
private static cachedBcs;
|
|
605
|
+
static get bcs(): ReturnType<typeof StakerValidatorKey.instantiateBcs>;
|
|
606
|
+
static fromFields(fields: Record<string, any>): StakerValidatorKey;
|
|
607
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): StakerValidatorKey;
|
|
608
|
+
static fromBcs(data: Uint8Array): StakerValidatorKey;
|
|
609
|
+
toJSONField(): StakerValidatorKeyJSONField;
|
|
610
|
+
toJSON(): StakerValidatorKeyJSON;
|
|
611
|
+
static fromJSONField(field: any): StakerValidatorKey;
|
|
612
|
+
static fromJSON(json: Record<string, any>): StakerValidatorKey;
|
|
613
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
614
|
+
content: true;
|
|
615
|
+
}>): StakerValidatorKey;
|
|
616
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<StakerValidatorKey>;
|
|
617
|
+
}
|
|
287
618
|
export declare function isReservePauseKey(type: string): boolean;
|
|
288
619
|
export interface ReservePauseKeyFields {
|
|
289
620
|
dummyField: ToField<'bool'>;
|
|
@@ -311,7 +642,9 @@ export declare class ReservePauseKey implements StructClass {
|
|
|
311
642
|
static get r(): ReservePauseKeyReified;
|
|
312
643
|
static phantom(): PhantomReified<ToTypeStr<ReservePauseKey>>;
|
|
313
644
|
static get p(): PhantomReified<ToTypeStr<ReservePauseKey>>;
|
|
314
|
-
|
|
645
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
646
|
+
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
647
|
+
}, string>;
|
|
315
648
|
private static cachedBcs;
|
|
316
649
|
static get bcs(): ReturnType<typeof ReservePauseKey.instantiateBcs>;
|
|
317
650
|
static fromFields(fields: Record<string, any>): ReservePauseKey;
|
|
@@ -326,6 +659,50 @@ export declare class ReservePauseKey implements StructClass {
|
|
|
326
659
|
}>): ReservePauseKey;
|
|
327
660
|
static fetch(client: ClientWithCoreApi, id: string): Promise<ReservePauseKey>;
|
|
328
661
|
}
|
|
662
|
+
export declare function isRateLimiterExemptKey(type: string): boolean;
|
|
663
|
+
export interface RateLimiterExemptKeyFields {
|
|
664
|
+
dummyField: ToField<'bool'>;
|
|
665
|
+
}
|
|
666
|
+
export type RateLimiterExemptKeyReified = Reified<RateLimiterExemptKey, RateLimiterExemptKeyFields>;
|
|
667
|
+
export type RateLimiterExemptKeyJSONField = {
|
|
668
|
+
dummyField: boolean;
|
|
669
|
+
};
|
|
670
|
+
export type RateLimiterExemptKeyJSON = {
|
|
671
|
+
$typeName: typeof RateLimiterExemptKey.$typeName;
|
|
672
|
+
$typeArgs: [];
|
|
673
|
+
} & RateLimiterExemptKeyJSONField;
|
|
674
|
+
export declare class RateLimiterExemptKey implements StructClass {
|
|
675
|
+
__StructClass: true;
|
|
676
|
+
static get $typeName(): `${string}::reserve::RateLimiterExemptKey`;
|
|
677
|
+
static readonly $numTypeParams = 0;
|
|
678
|
+
static readonly $isPhantom: readonly [];
|
|
679
|
+
readonly $typeName: typeof RateLimiterExemptKey.$typeName;
|
|
680
|
+
readonly $fullTypeName: `${string}::reserve::RateLimiterExemptKey`;
|
|
681
|
+
readonly $typeArgs: [];
|
|
682
|
+
readonly $isPhantom: typeof RateLimiterExemptKey.$isPhantom;
|
|
683
|
+
readonly dummyField: ToField<'bool'>;
|
|
684
|
+
private constructor();
|
|
685
|
+
static reified(): RateLimiterExemptKeyReified;
|
|
686
|
+
static get r(): RateLimiterExemptKeyReified;
|
|
687
|
+
static phantom(): PhantomReified<ToTypeStr<RateLimiterExemptKey>>;
|
|
688
|
+
static get p(): PhantomReified<ToTypeStr<RateLimiterExemptKey>>;
|
|
689
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
690
|
+
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
691
|
+
}, string>;
|
|
692
|
+
private static cachedBcs;
|
|
693
|
+
static get bcs(): ReturnType<typeof RateLimiterExemptKey.instantiateBcs>;
|
|
694
|
+
static fromFields(fields: Record<string, any>): RateLimiterExemptKey;
|
|
695
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): RateLimiterExemptKey;
|
|
696
|
+
static fromBcs(data: Uint8Array): RateLimiterExemptKey;
|
|
697
|
+
toJSONField(): RateLimiterExemptKeyJSONField;
|
|
698
|
+
toJSON(): RateLimiterExemptKeyJSON;
|
|
699
|
+
static fromJSONField(field: any): RateLimiterExemptKey;
|
|
700
|
+
static fromJSON(json: Record<string, any>): RateLimiterExemptKey;
|
|
701
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
702
|
+
content: true;
|
|
703
|
+
}>): RateLimiterExemptKey;
|
|
704
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<RateLimiterExemptKey>;
|
|
705
|
+
}
|
|
329
706
|
export declare function isPriceGuardKey(type: string): boolean;
|
|
330
707
|
export interface PriceGuardKeyFields {
|
|
331
708
|
dummyField: ToField<'bool'>;
|
|
@@ -353,7 +730,9 @@ export declare class PriceGuardKey implements StructClass {
|
|
|
353
730
|
static get r(): PriceGuardKeyReified;
|
|
354
731
|
static phantom(): PhantomReified<ToTypeStr<PriceGuardKey>>;
|
|
355
732
|
static get p(): PhantomReified<ToTypeStr<PriceGuardKey>>;
|
|
356
|
-
|
|
733
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
734
|
+
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
735
|
+
}, string>;
|
|
357
736
|
private static cachedBcs;
|
|
358
737
|
static get bcs(): ReturnType<typeof PriceGuardKey.instantiateBcs>;
|
|
359
738
|
static fromFields(fields: Record<string, any>): PriceGuardKey;
|
|
@@ -395,7 +774,9 @@ export declare class ConfidenceKey implements StructClass {
|
|
|
395
774
|
static get r(): ConfidenceKeyReified;
|
|
396
775
|
static phantom(): PhantomReified<ToTypeStr<ConfidenceKey>>;
|
|
397
776
|
static get p(): PhantomReified<ToTypeStr<ConfidenceKey>>;
|
|
398
|
-
|
|
777
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
778
|
+
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
779
|
+
}, string>;
|
|
399
780
|
private static cachedBcs;
|
|
400
781
|
static get bcs(): ReturnType<typeof ConfidenceKey.instantiateBcs>;
|
|
401
782
|
static fromFields(fields: Record<string, any>): ConfidenceKey;
|
|
@@ -410,6 +791,50 @@ export declare class ConfidenceKey implements StructClass {
|
|
|
410
791
|
}>): ConfidenceKey;
|
|
411
792
|
static fetch(client: ClientWithCoreApi, id: string): Promise<ConfidenceKey>;
|
|
412
793
|
}
|
|
794
|
+
export declare function isRawPriceKey(type: string): boolean;
|
|
795
|
+
export interface RawPriceKeyFields {
|
|
796
|
+
dummyField: ToField<'bool'>;
|
|
797
|
+
}
|
|
798
|
+
export type RawPriceKeyReified = Reified<RawPriceKey, RawPriceKeyFields>;
|
|
799
|
+
export type RawPriceKeyJSONField = {
|
|
800
|
+
dummyField: boolean;
|
|
801
|
+
};
|
|
802
|
+
export type RawPriceKeyJSON = {
|
|
803
|
+
$typeName: typeof RawPriceKey.$typeName;
|
|
804
|
+
$typeArgs: [];
|
|
805
|
+
} & RawPriceKeyJSONField;
|
|
806
|
+
export declare class RawPriceKey implements StructClass {
|
|
807
|
+
__StructClass: true;
|
|
808
|
+
static get $typeName(): `${string}::reserve::RawPriceKey`;
|
|
809
|
+
static readonly $numTypeParams = 0;
|
|
810
|
+
static readonly $isPhantom: readonly [];
|
|
811
|
+
readonly $typeName: typeof RawPriceKey.$typeName;
|
|
812
|
+
readonly $fullTypeName: `${string}::reserve::RawPriceKey`;
|
|
813
|
+
readonly $typeArgs: [];
|
|
814
|
+
readonly $isPhantom: typeof RawPriceKey.$isPhantom;
|
|
815
|
+
readonly dummyField: ToField<'bool'>;
|
|
816
|
+
private constructor();
|
|
817
|
+
static reified(): RawPriceKeyReified;
|
|
818
|
+
static get r(): RawPriceKeyReified;
|
|
819
|
+
static phantom(): PhantomReified<ToTypeStr<RawPriceKey>>;
|
|
820
|
+
static get p(): PhantomReified<ToTypeStr<RawPriceKey>>;
|
|
821
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
822
|
+
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
823
|
+
}, string>;
|
|
824
|
+
private static cachedBcs;
|
|
825
|
+
static get bcs(): ReturnType<typeof RawPriceKey.instantiateBcs>;
|
|
826
|
+
static fromFields(fields: Record<string, any>): RawPriceKey;
|
|
827
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): RawPriceKey;
|
|
828
|
+
static fromBcs(data: Uint8Array): RawPriceKey;
|
|
829
|
+
toJSONField(): RawPriceKeyJSONField;
|
|
830
|
+
toJSON(): RawPriceKeyJSON;
|
|
831
|
+
static fromJSONField(field: any): RawPriceKey;
|
|
832
|
+
static fromJSON(json: Record<string, any>): RawPriceKey;
|
|
833
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
834
|
+
content: true;
|
|
835
|
+
}>): RawPriceKey;
|
|
836
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<RawPriceKey>;
|
|
837
|
+
}
|
|
413
838
|
export declare function isPriceGuard(type: string): boolean;
|
|
414
839
|
export interface PriceGuardFields {
|
|
415
840
|
maxPriceChangeBps: ToField<'u64'>;
|
|
@@ -431,10 +856,11 @@ export type PriceGuardJSON = {
|
|
|
431
856
|
$typeArgs: [];
|
|
432
857
|
} & PriceGuardJSONField;
|
|
433
858
|
/**
|
|
434
|
-
* Bounds how far `price` and `smoothed_price`
|
|
435
|
-
*
|
|
436
|
-
*
|
|
437
|
-
* either
|
|
859
|
+
* Bounds how far `price` and `smoothed_price` move per `min_update_interval_s`. An elapsed
|
|
860
|
+
* interval opens each anchor on the price stored then, and every refresh until the next
|
|
861
|
+
* one clamps against it. One PTB stays within one band of the anchor, and two refreshes
|
|
862
|
+
* either side of a boundary within three bands, the walk
|
|
863
|
+
* `assert_band_below_liquidation_buffer` bounds.
|
|
438
864
|
*/
|
|
439
865
|
export declare class PriceGuard implements StructClass {
|
|
440
866
|
__StructClass: true;
|
|
@@ -455,7 +881,17 @@ export declare class PriceGuard implements StructClass {
|
|
|
455
881
|
static get r(): PriceGuardReified;
|
|
456
882
|
static phantom(): PhantomReified<ToTypeStr<PriceGuard>>;
|
|
457
883
|
static get p(): PhantomReified<ToTypeStr<PriceGuard>>;
|
|
458
|
-
|
|
884
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
885
|
+
max_price_change_bps: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
886
|
+
min_update_interval_s: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
887
|
+
price_anchor: import("@mysten/bcs").BcsStruct<{
|
|
888
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
889
|
+
}, string>;
|
|
890
|
+
smoothed_price_anchor: import("@mysten/bcs").BcsStruct<{
|
|
891
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
892
|
+
}, string>;
|
|
893
|
+
anchor_timestamp_s: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
894
|
+
}, string>;
|
|
459
895
|
private static cachedBcs;
|
|
460
896
|
static get bcs(): ReturnType<typeof PriceGuard.instantiateBcs>;
|
|
461
897
|
static fromFields(fields: Record<string, any>): PriceGuard;
|
|
@@ -470,6 +906,62 @@ export declare class PriceGuard implements StructClass {
|
|
|
470
906
|
}>): PriceGuard;
|
|
471
907
|
static fetch(client: ClientWithCoreApi, id: string): Promise<PriceGuard>;
|
|
472
908
|
}
|
|
909
|
+
export declare function isRawPrice(type: string): boolean;
|
|
910
|
+
export interface RawPriceFields {
|
|
911
|
+
price: ToField<Decimal>;
|
|
912
|
+
smoothedPrice: ToField<Decimal>;
|
|
913
|
+
}
|
|
914
|
+
export type RawPriceReified = Reified<RawPrice, RawPriceFields>;
|
|
915
|
+
export type RawPriceJSONField = {
|
|
916
|
+
price: ToJSON<Decimal>;
|
|
917
|
+
smoothedPrice: ToJSON<Decimal>;
|
|
918
|
+
};
|
|
919
|
+
export type RawPriceJSON = {
|
|
920
|
+
$typeName: typeof RawPrice.$typeName;
|
|
921
|
+
$typeArgs: [];
|
|
922
|
+
} & RawPriceJSONField;
|
|
923
|
+
/**
|
|
924
|
+
* While a clamp lags the market, the stored price overvalues falling collateral and
|
|
925
|
+
* undervalues rising debt, so the borrow and withdraw bounds also range over these.
|
|
926
|
+
*/
|
|
927
|
+
export declare class RawPrice implements StructClass {
|
|
928
|
+
__StructClass: true;
|
|
929
|
+
static get $typeName(): `${string}::reserve::RawPrice`;
|
|
930
|
+
static readonly $numTypeParams = 0;
|
|
931
|
+
static readonly $isPhantom: readonly [];
|
|
932
|
+
readonly $typeName: typeof RawPrice.$typeName;
|
|
933
|
+
readonly $fullTypeName: `${string}::reserve::RawPrice`;
|
|
934
|
+
readonly $typeArgs: [];
|
|
935
|
+
readonly $isPhantom: typeof RawPrice.$isPhantom;
|
|
936
|
+
readonly price: ToField<Decimal>;
|
|
937
|
+
readonly smoothedPrice: ToField<Decimal>;
|
|
938
|
+
private constructor();
|
|
939
|
+
static reified(): RawPriceReified;
|
|
940
|
+
static get r(): RawPriceReified;
|
|
941
|
+
static phantom(): PhantomReified<ToTypeStr<RawPrice>>;
|
|
942
|
+
static get p(): PhantomReified<ToTypeStr<RawPrice>>;
|
|
943
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
944
|
+
price: import("@mysten/bcs").BcsStruct<{
|
|
945
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
946
|
+
}, string>;
|
|
947
|
+
smoothed_price: import("@mysten/bcs").BcsStruct<{
|
|
948
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
949
|
+
}, string>;
|
|
950
|
+
}, string>;
|
|
951
|
+
private static cachedBcs;
|
|
952
|
+
static get bcs(): ReturnType<typeof RawPrice.instantiateBcs>;
|
|
953
|
+
static fromFields(fields: Record<string, any>): RawPrice;
|
|
954
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): RawPrice;
|
|
955
|
+
static fromBcs(data: Uint8Array): RawPrice;
|
|
956
|
+
toJSONField(): RawPriceJSONField;
|
|
957
|
+
toJSON(): RawPriceJSON;
|
|
958
|
+
static fromJSONField(field: any): RawPrice;
|
|
959
|
+
static fromJSON(json: Record<string, any>): RawPrice;
|
|
960
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
961
|
+
content: true;
|
|
962
|
+
}>): RawPrice;
|
|
963
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<RawPrice>;
|
|
964
|
+
}
|
|
473
965
|
export declare function isBalances(type: string): boolean;
|
|
474
966
|
export interface BalancesFields<P extends PhantomTypeArgument, T extends PhantomTypeArgument> {
|
|
475
967
|
availableAmount: ToField<Balance<T>>;
|
|
@@ -510,7 +1002,23 @@ export declare class Balances<P extends PhantomTypeArgument, T extends PhantomTy
|
|
|
510
1002
|
static get r(): typeof Balances.reified;
|
|
511
1003
|
static phantom<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): PhantomReified<ToTypeStr<Balances<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>>;
|
|
512
1004
|
static get p(): typeof Balances.phantom;
|
|
513
|
-
|
|
1005
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
1006
|
+
available_amount: import("@mysten/bcs").BcsStruct<{
|
|
1007
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1008
|
+
}, string>;
|
|
1009
|
+
ctoken_supply: import("@mysten/bcs").BcsStruct<{
|
|
1010
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1011
|
+
}, string>;
|
|
1012
|
+
fees: import("@mysten/bcs").BcsStruct<{
|
|
1013
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1014
|
+
}, string>;
|
|
1015
|
+
ctoken_fees: import("@mysten/bcs").BcsStruct<{
|
|
1016
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1017
|
+
}, string>;
|
|
1018
|
+
deposited_ctokens: import("@mysten/bcs").BcsStruct<{
|
|
1019
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1020
|
+
}, string>;
|
|
1021
|
+
}, string>;
|
|
514
1022
|
private static cachedBcs;
|
|
515
1023
|
static get bcs(): ReturnType<typeof Balances.instantiateBcs>;
|
|
516
1024
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], fields: Record<string, any>): Balances<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
@@ -591,7 +1099,46 @@ export declare class InterestUpdateEvent implements StructClass {
|
|
|
591
1099
|
static get r(): InterestUpdateEventReified;
|
|
592
1100
|
static phantom(): PhantomReified<ToTypeStr<InterestUpdateEvent>>;
|
|
593
1101
|
static get p(): PhantomReified<ToTypeStr<InterestUpdateEvent>>;
|
|
594
|
-
|
|
1102
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
1103
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1104
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1105
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
1106
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1107
|
+
length: number;
|
|
1108
|
+
}, string>;
|
|
1109
|
+
}, string>;
|
|
1110
|
+
}, string>;
|
|
1111
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1112
|
+
cumulative_borrow_rate: import("@mysten/bcs").BcsStruct<{
|
|
1113
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1114
|
+
}, string>;
|
|
1115
|
+
available_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1116
|
+
borrowed_amount: import("@mysten/bcs").BcsStruct<{
|
|
1117
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1118
|
+
}, string>;
|
|
1119
|
+
unclaimed_spread_fees: import("@mysten/bcs").BcsStruct<{
|
|
1120
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1121
|
+
}, string>;
|
|
1122
|
+
ctoken_supply: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1123
|
+
borrow_interest_paid: import("@mysten/bcs").BcsStruct<{
|
|
1124
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1125
|
+
}, string>;
|
|
1126
|
+
spread_fee: import("@mysten/bcs").BcsStruct<{
|
|
1127
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1128
|
+
}, string>;
|
|
1129
|
+
supply_interest_earned: import("@mysten/bcs").BcsStruct<{
|
|
1130
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1131
|
+
}, string>;
|
|
1132
|
+
borrow_interest_paid_usd_estimate: import("@mysten/bcs").BcsStruct<{
|
|
1133
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1134
|
+
}, string>;
|
|
1135
|
+
protocol_fee_usd_estimate: import("@mysten/bcs").BcsStruct<{
|
|
1136
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1137
|
+
}, string>;
|
|
1138
|
+
supply_interest_earned_usd_estimate: import("@mysten/bcs").BcsStruct<{
|
|
1139
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1140
|
+
}, string>;
|
|
1141
|
+
}, string>;
|
|
595
1142
|
private static cachedBcs;
|
|
596
1143
|
static get bcs(): ReturnType<typeof InterestUpdateEvent.instantiateBcs>;
|
|
597
1144
|
static fromFields(fields: Record<string, any>): InterestUpdateEvent;
|
|
@@ -683,7 +1230,52 @@ export declare class ReserveAssetDataEvent implements StructClass {
|
|
|
683
1230
|
static get r(): ReserveAssetDataEventReified;
|
|
684
1231
|
static phantom(): PhantomReified<ToTypeStr<ReserveAssetDataEvent>>;
|
|
685
1232
|
static get p(): PhantomReified<ToTypeStr<ReserveAssetDataEvent>>;
|
|
686
|
-
|
|
1233
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
1234
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1235
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1236
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
1237
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1238
|
+
length: number;
|
|
1239
|
+
}, string>;
|
|
1240
|
+
}, string>;
|
|
1241
|
+
}, string>;
|
|
1242
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1243
|
+
available_amount: import("@mysten/bcs").BcsStruct<{
|
|
1244
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1245
|
+
}, string>;
|
|
1246
|
+
supply_amount: import("@mysten/bcs").BcsStruct<{
|
|
1247
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1248
|
+
}, string>;
|
|
1249
|
+
borrowed_amount: import("@mysten/bcs").BcsStruct<{
|
|
1250
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1251
|
+
}, string>;
|
|
1252
|
+
available_amount_usd_estimate: import("@mysten/bcs").BcsStruct<{
|
|
1253
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1254
|
+
}, string>;
|
|
1255
|
+
supply_amount_usd_estimate: import("@mysten/bcs").BcsStruct<{
|
|
1256
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1257
|
+
}, string>;
|
|
1258
|
+
borrowed_amount_usd_estimate: import("@mysten/bcs").BcsStruct<{
|
|
1259
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1260
|
+
}, string>;
|
|
1261
|
+
borrow_apr: import("@mysten/bcs").BcsStruct<{
|
|
1262
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1263
|
+
}, string>;
|
|
1264
|
+
supply_apr: import("@mysten/bcs").BcsStruct<{
|
|
1265
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1266
|
+
}, string>;
|
|
1267
|
+
ctoken_supply: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1268
|
+
cumulative_borrow_rate: import("@mysten/bcs").BcsStruct<{
|
|
1269
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1270
|
+
}, string>;
|
|
1271
|
+
price: import("@mysten/bcs").BcsStruct<{
|
|
1272
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1273
|
+
}, string>;
|
|
1274
|
+
smoothed_price: import("@mysten/bcs").BcsStruct<{
|
|
1275
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
1276
|
+
}, string>;
|
|
1277
|
+
price_last_update_timestamp_s: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1278
|
+
}, string>;
|
|
687
1279
|
private static cachedBcs;
|
|
688
1280
|
static get bcs(): ReturnType<typeof ReserveAssetDataEvent.instantiateBcs>;
|
|
689
1281
|
static fromFields(fields: Record<string, any>): ReserveAssetDataEvent;
|
|
@@ -698,6 +1290,50 @@ export declare class ReserveAssetDataEvent implements StructClass {
|
|
|
698
1290
|
}>): ReserveAssetDataEvent;
|
|
699
1291
|
static fetch(client: ClientWithCoreApi, id: string): Promise<ReserveAssetDataEvent>;
|
|
700
1292
|
}
|
|
1293
|
+
export declare function isReserveWitness(type: string): boolean;
|
|
1294
|
+
export interface ReserveWitnessFields {
|
|
1295
|
+
dummyField: ToField<'bool'>;
|
|
1296
|
+
}
|
|
1297
|
+
export type ReserveWitnessReified = Reified<ReserveWitness, ReserveWitnessFields>;
|
|
1298
|
+
export type ReserveWitnessJSONField = {
|
|
1299
|
+
dummyField: boolean;
|
|
1300
|
+
};
|
|
1301
|
+
export type ReserveWitnessJSON = {
|
|
1302
|
+
$typeName: typeof ReserveWitness.$typeName;
|
|
1303
|
+
$typeArgs: [];
|
|
1304
|
+
} & ReserveWitnessJSONField;
|
|
1305
|
+
export declare class ReserveWitness implements StructClass {
|
|
1306
|
+
__StructClass: true;
|
|
1307
|
+
static get $typeName(): `${string}::reserve::ReserveWitness`;
|
|
1308
|
+
static readonly $numTypeParams = 0;
|
|
1309
|
+
static readonly $isPhantom: readonly [];
|
|
1310
|
+
readonly $typeName: typeof ReserveWitness.$typeName;
|
|
1311
|
+
readonly $fullTypeName: `${string}::reserve::ReserveWitness`;
|
|
1312
|
+
readonly $typeArgs: [];
|
|
1313
|
+
readonly $isPhantom: typeof ReserveWitness.$isPhantom;
|
|
1314
|
+
readonly dummyField: ToField<'bool'>;
|
|
1315
|
+
private constructor();
|
|
1316
|
+
static reified(): ReserveWitnessReified;
|
|
1317
|
+
static get r(): ReserveWitnessReified;
|
|
1318
|
+
static phantom(): PhantomReified<ToTypeStr<ReserveWitness>>;
|
|
1319
|
+
static get p(): PhantomReified<ToTypeStr<ReserveWitness>>;
|
|
1320
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
1321
|
+
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
1322
|
+
}, string>;
|
|
1323
|
+
private static cachedBcs;
|
|
1324
|
+
static get bcs(): ReturnType<typeof ReserveWitness.instantiateBcs>;
|
|
1325
|
+
static fromFields(fields: Record<string, any>): ReserveWitness;
|
|
1326
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): ReserveWitness;
|
|
1327
|
+
static fromBcs(data: Uint8Array): ReserveWitness;
|
|
1328
|
+
toJSONField(): ReserveWitnessJSONField;
|
|
1329
|
+
toJSON(): ReserveWitnessJSON;
|
|
1330
|
+
static fromJSONField(field: any): ReserveWitness;
|
|
1331
|
+
static fromJSON(json: Record<string, any>): ReserveWitness;
|
|
1332
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
1333
|
+
content: true;
|
|
1334
|
+
}>): ReserveWitness;
|
|
1335
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<ReserveWitness>;
|
|
1336
|
+
}
|
|
701
1337
|
export declare function isClaimStakingRewardsEvent(type: string): boolean;
|
|
702
1338
|
export interface ClaimStakingRewardsEventFields {
|
|
703
1339
|
lendingMarketId: ToField<'address'>;
|
|
@@ -734,7 +1370,18 @@ export declare class ClaimStakingRewardsEvent implements StructClass {
|
|
|
734
1370
|
static get r(): ClaimStakingRewardsEventReified;
|
|
735
1371
|
static phantom(): PhantomReified<ToTypeStr<ClaimStakingRewardsEvent>>;
|
|
736
1372
|
static get p(): PhantomReified<ToTypeStr<ClaimStakingRewardsEvent>>;
|
|
737
|
-
|
|
1373
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
1374
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1375
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1376
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
1377
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1378
|
+
length: number;
|
|
1379
|
+
}, string>;
|
|
1380
|
+
}, string>;
|
|
1381
|
+
}, string>;
|
|
1382
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1383
|
+
amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1384
|
+
}, string>;
|
|
738
1385
|
private static cachedBcs;
|
|
739
1386
|
static get bcs(): ReturnType<typeof ClaimStakingRewardsEvent.instantiateBcs>;
|
|
740
1387
|
static fromFields(fields: Record<string, any>): ClaimStakingRewardsEvent;
|