@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
|
@@ -36,7 +36,9 @@ export declare class LENDING_MARKET implements StructClass {
|
|
|
36
36
|
static get r(): LENDING_MARKETReified;
|
|
37
37
|
static phantom(): PhantomReified<ToTypeStr<LENDING_MARKET>>;
|
|
38
38
|
static get p(): PhantomReified<ToTypeStr<LENDING_MARKET>>;
|
|
39
|
-
|
|
39
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
40
|
+
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
41
|
+
}, string>;
|
|
40
42
|
private static cachedBcs;
|
|
41
43
|
static get bcs(): ReturnType<typeof LENDING_MARKET.instantiateBcs>;
|
|
42
44
|
static fromFields(fields: Record<string, any>): LENDING_MARKET;
|
|
@@ -103,7 +105,389 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
|
|
|
103
105
|
static get r(): typeof LendingMarket.reified;
|
|
104
106
|
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<LendingMarket<ToPhantomTypeArgument<P>>>>;
|
|
105
107
|
static get p(): typeof LendingMarket.phantom;
|
|
106
|
-
|
|
108
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
109
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
110
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
111
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
112
|
+
}, string>;
|
|
113
|
+
}, string>;
|
|
114
|
+
version: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
115
|
+
reserves: import("@mysten/bcs").BcsType<{
|
|
116
|
+
id: {
|
|
117
|
+
id: {
|
|
118
|
+
bytes: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
lending_market_id: {
|
|
122
|
+
bytes: string;
|
|
123
|
+
};
|
|
124
|
+
array_index: string;
|
|
125
|
+
coin_type: {
|
|
126
|
+
name: {
|
|
127
|
+
bytes: number[];
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
config: {
|
|
131
|
+
element: {
|
|
132
|
+
vec: {
|
|
133
|
+
open_ltv_pct: number;
|
|
134
|
+
close_ltv_pct: number;
|
|
135
|
+
max_close_ltv_pct: number;
|
|
136
|
+
borrow_weight_bps: string;
|
|
137
|
+
deposit_limit: string;
|
|
138
|
+
borrow_limit: string;
|
|
139
|
+
liquidation_bonus_bps: string;
|
|
140
|
+
max_liquidation_bonus_bps: string;
|
|
141
|
+
deposit_limit_usd: string;
|
|
142
|
+
borrow_limit_usd: string;
|
|
143
|
+
interest_rate_utils: number[];
|
|
144
|
+
interest_rate_aprs: string[];
|
|
145
|
+
borrow_fee_bps: string;
|
|
146
|
+
spread_fee_bps: string;
|
|
147
|
+
protocol_liquidation_fee_bps: string;
|
|
148
|
+
isolated: boolean;
|
|
149
|
+
open_attributed_borrow_limit_usd: string;
|
|
150
|
+
close_attributed_borrow_limit_usd: string;
|
|
151
|
+
additional_fields: {
|
|
152
|
+
id: {
|
|
153
|
+
id: {
|
|
154
|
+
bytes: string;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
size: string;
|
|
158
|
+
};
|
|
159
|
+
}[];
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
mint_decimals: number;
|
|
163
|
+
price_identifier: {
|
|
164
|
+
bytes: number[];
|
|
165
|
+
};
|
|
166
|
+
price: {
|
|
167
|
+
value: string;
|
|
168
|
+
};
|
|
169
|
+
smoothed_price: {
|
|
170
|
+
value: string;
|
|
171
|
+
};
|
|
172
|
+
price_last_update_timestamp_s: string;
|
|
173
|
+
available_amount: string;
|
|
174
|
+
ctoken_supply: string;
|
|
175
|
+
borrowed_amount: {
|
|
176
|
+
value: string;
|
|
177
|
+
};
|
|
178
|
+
cumulative_borrow_rate: {
|
|
179
|
+
value: string;
|
|
180
|
+
};
|
|
181
|
+
interest_last_update_timestamp_s: string;
|
|
182
|
+
unclaimed_spread_fees: {
|
|
183
|
+
value: string;
|
|
184
|
+
};
|
|
185
|
+
attributed_borrow_value: {
|
|
186
|
+
value: string;
|
|
187
|
+
};
|
|
188
|
+
deposits_pool_reward_manager: {
|
|
189
|
+
id: {
|
|
190
|
+
id: {
|
|
191
|
+
bytes: string;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
total_shares: string;
|
|
195
|
+
pool_rewards: {
|
|
196
|
+
vec: {
|
|
197
|
+
id: {
|
|
198
|
+
id: {
|
|
199
|
+
bytes: string;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
pool_reward_manager_id: {
|
|
203
|
+
bytes: string;
|
|
204
|
+
};
|
|
205
|
+
coin_type: {
|
|
206
|
+
name: {
|
|
207
|
+
bytes: number[];
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
start_time_ms: string;
|
|
211
|
+
end_time_ms: string;
|
|
212
|
+
total_rewards: string;
|
|
213
|
+
allocated_rewards: {
|
|
214
|
+
value: string;
|
|
215
|
+
};
|
|
216
|
+
cumulative_rewards_per_share: {
|
|
217
|
+
value: string;
|
|
218
|
+
};
|
|
219
|
+
num_user_reward_managers: string;
|
|
220
|
+
additional_fields: {
|
|
221
|
+
id: {
|
|
222
|
+
id: {
|
|
223
|
+
bytes: string;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
size: string;
|
|
227
|
+
};
|
|
228
|
+
}[];
|
|
229
|
+
}[];
|
|
230
|
+
last_update_time_ms: string;
|
|
231
|
+
};
|
|
232
|
+
borrows_pool_reward_manager: {
|
|
233
|
+
id: {
|
|
234
|
+
id: {
|
|
235
|
+
bytes: string;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
total_shares: string;
|
|
239
|
+
pool_rewards: {
|
|
240
|
+
vec: {
|
|
241
|
+
id: {
|
|
242
|
+
id: {
|
|
243
|
+
bytes: string;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
pool_reward_manager_id: {
|
|
247
|
+
bytes: string;
|
|
248
|
+
};
|
|
249
|
+
coin_type: {
|
|
250
|
+
name: {
|
|
251
|
+
bytes: number[];
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
start_time_ms: string;
|
|
255
|
+
end_time_ms: string;
|
|
256
|
+
total_rewards: string;
|
|
257
|
+
allocated_rewards: {
|
|
258
|
+
value: string;
|
|
259
|
+
};
|
|
260
|
+
cumulative_rewards_per_share: {
|
|
261
|
+
value: string;
|
|
262
|
+
};
|
|
263
|
+
num_user_reward_managers: string;
|
|
264
|
+
additional_fields: {
|
|
265
|
+
id: {
|
|
266
|
+
id: {
|
|
267
|
+
bytes: string;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
size: string;
|
|
271
|
+
};
|
|
272
|
+
}[];
|
|
273
|
+
}[];
|
|
274
|
+
last_update_time_ms: string;
|
|
275
|
+
};
|
|
276
|
+
}[], Iterable<{
|
|
277
|
+
id: {
|
|
278
|
+
id: {
|
|
279
|
+
bytes: string;
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
lending_market_id: {
|
|
283
|
+
bytes: string;
|
|
284
|
+
};
|
|
285
|
+
array_index: string | number | bigint;
|
|
286
|
+
coin_type: {
|
|
287
|
+
name: {
|
|
288
|
+
bytes: Iterable<number> & {
|
|
289
|
+
length: number;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
config: {
|
|
294
|
+
element: {
|
|
295
|
+
vec: Iterable<{
|
|
296
|
+
open_ltv_pct: number;
|
|
297
|
+
close_ltv_pct: number;
|
|
298
|
+
max_close_ltv_pct: number;
|
|
299
|
+
borrow_weight_bps: string | number | bigint;
|
|
300
|
+
deposit_limit: string | number | bigint;
|
|
301
|
+
borrow_limit: string | number | bigint;
|
|
302
|
+
liquidation_bonus_bps: string | number | bigint;
|
|
303
|
+
max_liquidation_bonus_bps: string | number | bigint;
|
|
304
|
+
deposit_limit_usd: string | number | bigint;
|
|
305
|
+
borrow_limit_usd: string | number | bigint;
|
|
306
|
+
interest_rate_utils: Iterable<number> & {
|
|
307
|
+
length: number;
|
|
308
|
+
};
|
|
309
|
+
interest_rate_aprs: Iterable<string | number | bigint> & {
|
|
310
|
+
length: number;
|
|
311
|
+
};
|
|
312
|
+
borrow_fee_bps: string | number | bigint;
|
|
313
|
+
spread_fee_bps: string | number | bigint;
|
|
314
|
+
protocol_liquidation_fee_bps: string | number | bigint;
|
|
315
|
+
isolated: boolean;
|
|
316
|
+
open_attributed_borrow_limit_usd: string | number | bigint;
|
|
317
|
+
close_attributed_borrow_limit_usd: string | number | bigint;
|
|
318
|
+
additional_fields: {
|
|
319
|
+
id: {
|
|
320
|
+
id: {
|
|
321
|
+
bytes: string;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
size: string | number | bigint;
|
|
325
|
+
};
|
|
326
|
+
}> & {
|
|
327
|
+
length: number;
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
mint_decimals: number;
|
|
332
|
+
price_identifier: {
|
|
333
|
+
bytes: Iterable<number> & {
|
|
334
|
+
length: number;
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
price: {
|
|
338
|
+
value: string | number | bigint;
|
|
339
|
+
};
|
|
340
|
+
smoothed_price: {
|
|
341
|
+
value: string | number | bigint;
|
|
342
|
+
};
|
|
343
|
+
price_last_update_timestamp_s: string | number | bigint;
|
|
344
|
+
available_amount: string | number | bigint;
|
|
345
|
+
ctoken_supply: string | number | bigint;
|
|
346
|
+
borrowed_amount: {
|
|
347
|
+
value: string | number | bigint;
|
|
348
|
+
};
|
|
349
|
+
cumulative_borrow_rate: {
|
|
350
|
+
value: string | number | bigint;
|
|
351
|
+
};
|
|
352
|
+
interest_last_update_timestamp_s: string | number | bigint;
|
|
353
|
+
unclaimed_spread_fees: {
|
|
354
|
+
value: string | number | bigint;
|
|
355
|
+
};
|
|
356
|
+
attributed_borrow_value: {
|
|
357
|
+
value: string | number | bigint;
|
|
358
|
+
};
|
|
359
|
+
deposits_pool_reward_manager: {
|
|
360
|
+
id: {
|
|
361
|
+
id: {
|
|
362
|
+
bytes: string;
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
total_shares: string | number | bigint;
|
|
366
|
+
pool_rewards: Iterable<{
|
|
367
|
+
vec: Iterable<{
|
|
368
|
+
id: {
|
|
369
|
+
id: {
|
|
370
|
+
bytes: string;
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
pool_reward_manager_id: {
|
|
374
|
+
bytes: string;
|
|
375
|
+
};
|
|
376
|
+
coin_type: {
|
|
377
|
+
name: {
|
|
378
|
+
bytes: Iterable<number> & {
|
|
379
|
+
length: number;
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
start_time_ms: string | number | bigint;
|
|
384
|
+
end_time_ms: string | number | bigint;
|
|
385
|
+
total_rewards: string | number | bigint;
|
|
386
|
+
allocated_rewards: {
|
|
387
|
+
value: string | number | bigint;
|
|
388
|
+
};
|
|
389
|
+
cumulative_rewards_per_share: {
|
|
390
|
+
value: string | number | bigint;
|
|
391
|
+
};
|
|
392
|
+
num_user_reward_managers: string | number | bigint;
|
|
393
|
+
additional_fields: {
|
|
394
|
+
id: {
|
|
395
|
+
id: {
|
|
396
|
+
bytes: string;
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
size: string | number | bigint;
|
|
400
|
+
};
|
|
401
|
+
}> & {
|
|
402
|
+
length: number;
|
|
403
|
+
};
|
|
404
|
+
}> & {
|
|
405
|
+
length: number;
|
|
406
|
+
};
|
|
407
|
+
last_update_time_ms: string | number | bigint;
|
|
408
|
+
};
|
|
409
|
+
borrows_pool_reward_manager: {
|
|
410
|
+
id: {
|
|
411
|
+
id: {
|
|
412
|
+
bytes: string;
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
total_shares: string | number | bigint;
|
|
416
|
+
pool_rewards: Iterable<{
|
|
417
|
+
vec: Iterable<{
|
|
418
|
+
id: {
|
|
419
|
+
id: {
|
|
420
|
+
bytes: string;
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
pool_reward_manager_id: {
|
|
424
|
+
bytes: string;
|
|
425
|
+
};
|
|
426
|
+
coin_type: {
|
|
427
|
+
name: {
|
|
428
|
+
bytes: Iterable<number> & {
|
|
429
|
+
length: number;
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
start_time_ms: string | number | bigint;
|
|
434
|
+
end_time_ms: string | number | bigint;
|
|
435
|
+
total_rewards: string | number | bigint;
|
|
436
|
+
allocated_rewards: {
|
|
437
|
+
value: string | number | bigint;
|
|
438
|
+
};
|
|
439
|
+
cumulative_rewards_per_share: {
|
|
440
|
+
value: string | number | bigint;
|
|
441
|
+
};
|
|
442
|
+
num_user_reward_managers: string | number | bigint;
|
|
443
|
+
additional_fields: {
|
|
444
|
+
id: {
|
|
445
|
+
id: {
|
|
446
|
+
bytes: string;
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
size: string | number | bigint;
|
|
450
|
+
};
|
|
451
|
+
}> & {
|
|
452
|
+
length: number;
|
|
453
|
+
};
|
|
454
|
+
}> & {
|
|
455
|
+
length: number;
|
|
456
|
+
};
|
|
457
|
+
last_update_time_ms: string | number | bigint;
|
|
458
|
+
};
|
|
459
|
+
}> & {
|
|
460
|
+
length: number;
|
|
461
|
+
}, string>;
|
|
462
|
+
obligations: import("@mysten/bcs").BcsStruct<{
|
|
463
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
464
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
465
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
466
|
+
}, string>;
|
|
467
|
+
}, string>;
|
|
468
|
+
size: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
469
|
+
}, string>;
|
|
470
|
+
rate_limiter: import("@mysten/bcs").BcsStruct<{
|
|
471
|
+
config: import("@mysten/bcs").BcsStruct<{
|
|
472
|
+
window_duration: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
473
|
+
max_outflow: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
474
|
+
}, string>;
|
|
475
|
+
prev_qty: import("@mysten/bcs").BcsStruct<{
|
|
476
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
477
|
+
}, string>;
|
|
478
|
+
window_start: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
479
|
+
cur_qty: import("@mysten/bcs").BcsStruct<{
|
|
480
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
481
|
+
}, string>;
|
|
482
|
+
}, string>;
|
|
483
|
+
fee_receiver: import("@mysten/bcs").BcsType<string, string, string>;
|
|
484
|
+
bad_debt_usd: import("@mysten/bcs").BcsStruct<{
|
|
485
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
486
|
+
}, string>;
|
|
487
|
+
bad_debt_limit_usd: import("@mysten/bcs").BcsStruct<{
|
|
488
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
489
|
+
}, string>;
|
|
490
|
+
}, string>;
|
|
107
491
|
private static cachedBcs;
|
|
108
492
|
static get bcs(): ReturnType<typeof LendingMarket.instantiateBcs>;
|
|
109
493
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): LendingMarket<ToPhantomTypeArgument<P>>;
|
|
@@ -148,7 +532,16 @@ export declare class LendingMarketOwnerCap<P extends PhantomTypeArgument> implem
|
|
|
148
532
|
static get r(): typeof LendingMarketOwnerCap.reified;
|
|
149
533
|
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<LendingMarketOwnerCap<ToPhantomTypeArgument<P>>>>;
|
|
150
534
|
static get p(): typeof LendingMarketOwnerCap.phantom;
|
|
151
|
-
|
|
535
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
536
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
537
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
538
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
539
|
+
}, string>;
|
|
540
|
+
}, string>;
|
|
541
|
+
lending_market_id: import("@mysten/bcs").BcsStruct<{
|
|
542
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
543
|
+
}, string>;
|
|
544
|
+
}, string>;
|
|
152
545
|
private static cachedBcs;
|
|
153
546
|
static get bcs(): ReturnType<typeof LendingMarketOwnerCap.instantiateBcs>;
|
|
154
547
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): LendingMarketOwnerCap<ToPhantomTypeArgument<P>>;
|
|
@@ -193,7 +586,16 @@ export declare class ObligationOwnerCap<P extends PhantomTypeArgument> implement
|
|
|
193
586
|
static get r(): typeof ObligationOwnerCap.reified;
|
|
194
587
|
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<ObligationOwnerCap<ToPhantomTypeArgument<P>>>>;
|
|
195
588
|
static get p(): typeof ObligationOwnerCap.phantom;
|
|
196
|
-
|
|
589
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
590
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
591
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
592
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
593
|
+
}, string>;
|
|
594
|
+
}, string>;
|
|
595
|
+
obligation_id: import("@mysten/bcs").BcsStruct<{
|
|
596
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
597
|
+
}, string>;
|
|
598
|
+
}, string>;
|
|
197
599
|
private static cachedBcs;
|
|
198
600
|
static get bcs(): ReturnType<typeof ObligationOwnerCap.instantiateBcs>;
|
|
199
601
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): ObligationOwnerCap<ToPhantomTypeArgument<P>>;
|
|
@@ -227,9 +629,9 @@ export type EmergencyPauseCapJSON<P extends PhantomTypeArgument> = {
|
|
|
227
629
|
/**
|
|
228
630
|
* No `store`: can only be held directly by an address, never wrapped into another
|
|
229
631
|
* object, and can never satisfy a `&LendingMarketOwnerCap<P>` parameter -- so it is
|
|
230
|
-
* compile-time incapable of minting an `ObligationOwnerCap
|
|
231
|
-
* config
|
|
232
|
-
* no package upgrade needed.
|
|
632
|
+
* compile-time incapable of minting an `ObligationOwnerCap`, changing price feeds, or
|
|
633
|
+
* touching reserve config beyond lowering a protocol liquidation fee. Revocation is
|
|
634
|
+
* minting the next generation via `new_pause_cap`, no package upgrade needed.
|
|
233
635
|
*/
|
|
234
636
|
export declare class EmergencyPauseCap<P extends PhantomTypeArgument> implements StructClass {
|
|
235
637
|
__StructClass: true;
|
|
@@ -248,7 +650,17 @@ export declare class EmergencyPauseCap<P extends PhantomTypeArgument> implements
|
|
|
248
650
|
static get r(): typeof EmergencyPauseCap.reified;
|
|
249
651
|
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<EmergencyPauseCap<ToPhantomTypeArgument<P>>>>;
|
|
250
652
|
static get p(): typeof EmergencyPauseCap.phantom;
|
|
251
|
-
|
|
653
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
654
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
655
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
656
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
657
|
+
}, string>;
|
|
658
|
+
}, string>;
|
|
659
|
+
lending_market_id: import("@mysten/bcs").BcsStruct<{
|
|
660
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
661
|
+
}, string>;
|
|
662
|
+
generation: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
663
|
+
}, string>;
|
|
252
664
|
private static cachedBcs;
|
|
253
665
|
static get bcs(): ReturnType<typeof EmergencyPauseCap.instantiateBcs>;
|
|
254
666
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): EmergencyPauseCap<ToPhantomTypeArgument<P>>;
|
|
@@ -290,7 +702,9 @@ export declare class FeeReceiversKey implements StructClass {
|
|
|
290
702
|
static get r(): FeeReceiversKeyReified;
|
|
291
703
|
static phantom(): PhantomReified<ToTypeStr<FeeReceiversKey>>;
|
|
292
704
|
static get p(): PhantomReified<ToTypeStr<FeeReceiversKey>>;
|
|
293
|
-
|
|
705
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
706
|
+
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
707
|
+
}, string>;
|
|
294
708
|
private static cachedBcs;
|
|
295
709
|
static get bcs(): ReturnType<typeof FeeReceiversKey.instantiateBcs>;
|
|
296
710
|
static fromFields(fields: Record<string, any>): FeeReceiversKey;
|
|
@@ -332,7 +746,9 @@ export declare class PauseKey implements StructClass {
|
|
|
332
746
|
static get r(): PauseKeyReified;
|
|
333
747
|
static phantom(): PhantomReified<ToTypeStr<PauseKey>>;
|
|
334
748
|
static get p(): PhantomReified<ToTypeStr<PauseKey>>;
|
|
335
|
-
|
|
749
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
750
|
+
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
751
|
+
}, string>;
|
|
336
752
|
private static cachedBcs;
|
|
337
753
|
static get bcs(): ReturnType<typeof PauseKey.instantiateBcs>;
|
|
338
754
|
static fromFields(fields: Record<string, any>): PauseKey;
|
|
@@ -347,6 +763,140 @@ export declare class PauseKey implements StructClass {
|
|
|
347
763
|
}>): PauseKey;
|
|
348
764
|
static fetch(client: ClientWithCoreApi, id: string): Promise<PauseKey>;
|
|
349
765
|
}
|
|
766
|
+
export declare function isOperationHoldKey(type: string): boolean;
|
|
767
|
+
export interface OperationHoldKeyFields {
|
|
768
|
+
operation: ToField<'u8'>;
|
|
769
|
+
}
|
|
770
|
+
export type OperationHoldKeyReified = Reified<OperationHoldKey, OperationHoldKeyFields>;
|
|
771
|
+
export type OperationHoldKeyJSONField = {
|
|
772
|
+
operation: number;
|
|
773
|
+
};
|
|
774
|
+
export type OperationHoldKeyJSON = {
|
|
775
|
+
$typeName: typeof OperationHoldKey.$typeName;
|
|
776
|
+
$typeArgs: [];
|
|
777
|
+
} & OperationHoldKeyJSONField;
|
|
778
|
+
export declare class OperationHoldKey implements StructClass {
|
|
779
|
+
__StructClass: true;
|
|
780
|
+
static get $typeName(): `${string}::lending_market::OperationHoldKey`;
|
|
781
|
+
static readonly $numTypeParams = 0;
|
|
782
|
+
static readonly $isPhantom: readonly [];
|
|
783
|
+
readonly $typeName: typeof OperationHoldKey.$typeName;
|
|
784
|
+
readonly $fullTypeName: `${string}::lending_market::OperationHoldKey`;
|
|
785
|
+
readonly $typeArgs: [];
|
|
786
|
+
readonly $isPhantom: typeof OperationHoldKey.$isPhantom;
|
|
787
|
+
readonly operation: ToField<'u8'>;
|
|
788
|
+
private constructor();
|
|
789
|
+
static reified(): OperationHoldKeyReified;
|
|
790
|
+
static get r(): OperationHoldKeyReified;
|
|
791
|
+
static phantom(): PhantomReified<ToTypeStr<OperationHoldKey>>;
|
|
792
|
+
static get p(): PhantomReified<ToTypeStr<OperationHoldKey>>;
|
|
793
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
794
|
+
operation: import("@mysten/bcs").BcsType<number, number, "u8">;
|
|
795
|
+
}, string>;
|
|
796
|
+
private static cachedBcs;
|
|
797
|
+
static get bcs(): ReturnType<typeof OperationHoldKey.instantiateBcs>;
|
|
798
|
+
static fromFields(fields: Record<string, any>): OperationHoldKey;
|
|
799
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): OperationHoldKey;
|
|
800
|
+
static fromBcs(data: Uint8Array): OperationHoldKey;
|
|
801
|
+
toJSONField(): OperationHoldKeyJSONField;
|
|
802
|
+
toJSON(): OperationHoldKeyJSON;
|
|
803
|
+
static fromJSONField(field: any): OperationHoldKey;
|
|
804
|
+
static fromJSON(json: Record<string, any>): OperationHoldKey;
|
|
805
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
806
|
+
content: true;
|
|
807
|
+
}>): OperationHoldKey;
|
|
808
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<OperationHoldKey>;
|
|
809
|
+
}
|
|
810
|
+
export declare function isOperationHoldGenerationKey(type: string): boolean;
|
|
811
|
+
export interface OperationHoldGenerationKeyFields {
|
|
812
|
+
operation: ToField<'u8'>;
|
|
813
|
+
}
|
|
814
|
+
export type OperationHoldGenerationKeyReified = Reified<OperationHoldGenerationKey, OperationHoldGenerationKeyFields>;
|
|
815
|
+
export type OperationHoldGenerationKeyJSONField = {
|
|
816
|
+
operation: number;
|
|
817
|
+
};
|
|
818
|
+
export type OperationHoldGenerationKeyJSON = {
|
|
819
|
+
$typeName: typeof OperationHoldGenerationKey.$typeName;
|
|
820
|
+
$typeArgs: [];
|
|
821
|
+
} & OperationHoldGenerationKeyJSONField;
|
|
822
|
+
export declare class OperationHoldGenerationKey implements StructClass {
|
|
823
|
+
__StructClass: true;
|
|
824
|
+
static get $typeName(): `${string}::lending_market::OperationHoldGenerationKey`;
|
|
825
|
+
static readonly $numTypeParams = 0;
|
|
826
|
+
static readonly $isPhantom: readonly [];
|
|
827
|
+
readonly $typeName: typeof OperationHoldGenerationKey.$typeName;
|
|
828
|
+
readonly $fullTypeName: `${string}::lending_market::OperationHoldGenerationKey`;
|
|
829
|
+
readonly $typeArgs: [];
|
|
830
|
+
readonly $isPhantom: typeof OperationHoldGenerationKey.$isPhantom;
|
|
831
|
+
readonly operation: ToField<'u8'>;
|
|
832
|
+
private constructor();
|
|
833
|
+
static reified(): OperationHoldGenerationKeyReified;
|
|
834
|
+
static get r(): OperationHoldGenerationKeyReified;
|
|
835
|
+
static phantom(): PhantomReified<ToTypeStr<OperationHoldGenerationKey>>;
|
|
836
|
+
static get p(): PhantomReified<ToTypeStr<OperationHoldGenerationKey>>;
|
|
837
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
838
|
+
operation: import("@mysten/bcs").BcsType<number, number, "u8">;
|
|
839
|
+
}, string>;
|
|
840
|
+
private static cachedBcs;
|
|
841
|
+
static get bcs(): ReturnType<typeof OperationHoldGenerationKey.instantiateBcs>;
|
|
842
|
+
static fromFields(fields: Record<string, any>): OperationHoldGenerationKey;
|
|
843
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): OperationHoldGenerationKey;
|
|
844
|
+
static fromBcs(data: Uint8Array): OperationHoldGenerationKey;
|
|
845
|
+
toJSONField(): OperationHoldGenerationKeyJSONField;
|
|
846
|
+
toJSON(): OperationHoldGenerationKeyJSON;
|
|
847
|
+
static fromJSONField(field: any): OperationHoldGenerationKey;
|
|
848
|
+
static fromJSON(json: Record<string, any>): OperationHoldGenerationKey;
|
|
849
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
850
|
+
content: true;
|
|
851
|
+
}>): OperationHoldGenerationKey;
|
|
852
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<OperationHoldGenerationKey>;
|
|
853
|
+
}
|
|
854
|
+
export declare function isWithdrawHoldExemptKey(type: string): boolean;
|
|
855
|
+
export interface WithdrawHoldExemptKeyFields {
|
|
856
|
+
obligationId: ToField<ID>;
|
|
857
|
+
}
|
|
858
|
+
export type WithdrawHoldExemptKeyReified = Reified<WithdrawHoldExemptKey, WithdrawHoldExemptKeyFields>;
|
|
859
|
+
export type WithdrawHoldExemptKeyJSONField = {
|
|
860
|
+
obligationId: string;
|
|
861
|
+
};
|
|
862
|
+
export type WithdrawHoldExemptKeyJSON = {
|
|
863
|
+
$typeName: typeof WithdrawHoldExemptKey.$typeName;
|
|
864
|
+
$typeArgs: [];
|
|
865
|
+
} & WithdrawHoldExemptKeyJSONField;
|
|
866
|
+
export declare class WithdrawHoldExemptKey implements StructClass {
|
|
867
|
+
__StructClass: true;
|
|
868
|
+
static get $typeName(): `${string}::lending_market::WithdrawHoldExemptKey`;
|
|
869
|
+
static readonly $numTypeParams = 0;
|
|
870
|
+
static readonly $isPhantom: readonly [];
|
|
871
|
+
readonly $typeName: typeof WithdrawHoldExemptKey.$typeName;
|
|
872
|
+
readonly $fullTypeName: `${string}::lending_market::WithdrawHoldExemptKey`;
|
|
873
|
+
readonly $typeArgs: [];
|
|
874
|
+
readonly $isPhantom: typeof WithdrawHoldExemptKey.$isPhantom;
|
|
875
|
+
readonly obligationId: ToField<ID>;
|
|
876
|
+
private constructor();
|
|
877
|
+
static reified(): WithdrawHoldExemptKeyReified;
|
|
878
|
+
static get r(): WithdrawHoldExemptKeyReified;
|
|
879
|
+
static phantom(): PhantomReified<ToTypeStr<WithdrawHoldExemptKey>>;
|
|
880
|
+
static get p(): PhantomReified<ToTypeStr<WithdrawHoldExemptKey>>;
|
|
881
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
882
|
+
obligation_id: import("@mysten/bcs").BcsStruct<{
|
|
883
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
884
|
+
}, string>;
|
|
885
|
+
}, string>;
|
|
886
|
+
private static cachedBcs;
|
|
887
|
+
static get bcs(): ReturnType<typeof WithdrawHoldExemptKey.instantiateBcs>;
|
|
888
|
+
static fromFields(fields: Record<string, any>): WithdrawHoldExemptKey;
|
|
889
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): WithdrawHoldExemptKey;
|
|
890
|
+
static fromBcs(data: Uint8Array): WithdrawHoldExemptKey;
|
|
891
|
+
toJSONField(): WithdrawHoldExemptKeyJSONField;
|
|
892
|
+
toJSON(): WithdrawHoldExemptKeyJSON;
|
|
893
|
+
static fromJSONField(field: any): WithdrawHoldExemptKey;
|
|
894
|
+
static fromJSON(json: Record<string, any>): WithdrawHoldExemptKey;
|
|
895
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
896
|
+
content: true;
|
|
897
|
+
}>): WithdrawHoldExemptKey;
|
|
898
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<WithdrawHoldExemptKey>;
|
|
899
|
+
}
|
|
350
900
|
export declare function isPauseCapGenerationKey(type: string): boolean;
|
|
351
901
|
export interface PauseCapGenerationKeyFields {
|
|
352
902
|
dummyField: ToField<'bool'>;
|
|
@@ -374,7 +924,9 @@ export declare class PauseCapGenerationKey implements StructClass {
|
|
|
374
924
|
static get r(): PauseCapGenerationKeyReified;
|
|
375
925
|
static phantom(): PhantomReified<ToTypeStr<PauseCapGenerationKey>>;
|
|
376
926
|
static get p(): PhantomReified<ToTypeStr<PauseCapGenerationKey>>;
|
|
377
|
-
|
|
927
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
928
|
+
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
929
|
+
}, string>;
|
|
378
930
|
private static cachedBcs;
|
|
379
931
|
static get bcs(): ReturnType<typeof PauseCapGenerationKey.instantiateBcs>;
|
|
380
932
|
static fromFields(fields: Record<string, any>): PauseCapGenerationKey;
|
|
@@ -422,7 +974,15 @@ export declare class FeeReceivers implements StructClass {
|
|
|
422
974
|
static get r(): FeeReceiversReified;
|
|
423
975
|
static phantom(): PhantomReified<ToTypeStr<FeeReceivers>>;
|
|
424
976
|
static get p(): PhantomReified<ToTypeStr<FeeReceivers>>;
|
|
425
|
-
|
|
977
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
978
|
+
receivers: import("@mysten/bcs").BcsType<string[], Iterable<string> & {
|
|
979
|
+
length: number;
|
|
980
|
+
}, string>;
|
|
981
|
+
weights: import("@mysten/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
982
|
+
length: number;
|
|
983
|
+
}, string>;
|
|
984
|
+
total_weight: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
985
|
+
}, string>;
|
|
426
986
|
private static cachedBcs;
|
|
427
987
|
static get bcs(): ReturnType<typeof FeeReceivers.instantiateBcs>;
|
|
428
988
|
static fromFields(fields: Record<string, any>): FeeReceivers;
|
|
@@ -464,7 +1024,9 @@ export declare class RateLimiterExemption<P extends PhantomTypeArgument, T exten
|
|
|
464
1024
|
static get r(): typeof RateLimiterExemption.reified;
|
|
465
1025
|
static phantom<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): PhantomReified<ToTypeStr<RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>>;
|
|
466
1026
|
static get p(): typeof RateLimiterExemption.phantom;
|
|
467
|
-
|
|
1027
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
1028
|
+
amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1029
|
+
}, string>;
|
|
468
1030
|
private static cachedBcs;
|
|
469
1031
|
static get bcs(): ReturnType<typeof RateLimiterExemption.instantiateBcs>;
|
|
470
1032
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], fields: Record<string, any>): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
@@ -479,6 +1041,50 @@ export declare class RateLimiterExemption<P extends PhantomTypeArgument, T exten
|
|
|
479
1041
|
}>): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
480
1042
|
static fetch<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(client: ClientWithCoreApi, typeArgs: [P, T], id: string): Promise<RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>;
|
|
481
1043
|
}
|
|
1044
|
+
export declare function isAdminWitness(type: string): boolean;
|
|
1045
|
+
export interface AdminWitnessFields {
|
|
1046
|
+
dummyField: ToField<'bool'>;
|
|
1047
|
+
}
|
|
1048
|
+
export type AdminWitnessReified = Reified<AdminWitness, AdminWitnessFields>;
|
|
1049
|
+
export type AdminWitnessJSONField = {
|
|
1050
|
+
dummyField: boolean;
|
|
1051
|
+
};
|
|
1052
|
+
export type AdminWitnessJSON = {
|
|
1053
|
+
$typeName: typeof AdminWitness.$typeName;
|
|
1054
|
+
$typeArgs: [];
|
|
1055
|
+
} & AdminWitnessJSONField;
|
|
1056
|
+
export declare class AdminWitness implements StructClass {
|
|
1057
|
+
__StructClass: true;
|
|
1058
|
+
static get $typeName(): `${string}::lending_market::AdminWitness`;
|
|
1059
|
+
static readonly $numTypeParams = 0;
|
|
1060
|
+
static readonly $isPhantom: readonly [];
|
|
1061
|
+
readonly $typeName: typeof AdminWitness.$typeName;
|
|
1062
|
+
readonly $fullTypeName: `${string}::lending_market::AdminWitness`;
|
|
1063
|
+
readonly $typeArgs: [];
|
|
1064
|
+
readonly $isPhantom: typeof AdminWitness.$isPhantom;
|
|
1065
|
+
readonly dummyField: ToField<'bool'>;
|
|
1066
|
+
private constructor();
|
|
1067
|
+
static reified(): AdminWitnessReified;
|
|
1068
|
+
static get r(): AdminWitnessReified;
|
|
1069
|
+
static phantom(): PhantomReified<ToTypeStr<AdminWitness>>;
|
|
1070
|
+
static get p(): PhantomReified<ToTypeStr<AdminWitness>>;
|
|
1071
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
1072
|
+
dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
1073
|
+
}, string>;
|
|
1074
|
+
private static cachedBcs;
|
|
1075
|
+
static get bcs(): ReturnType<typeof AdminWitness.instantiateBcs>;
|
|
1076
|
+
static fromFields(fields: Record<string, any>): AdminWitness;
|
|
1077
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): AdminWitness;
|
|
1078
|
+
static fromBcs(data: Uint8Array): AdminWitness;
|
|
1079
|
+
toJSONField(): AdminWitnessJSONField;
|
|
1080
|
+
toJSON(): AdminWitnessJSON;
|
|
1081
|
+
static fromJSONField(field: any): AdminWitness;
|
|
1082
|
+
static fromJSON(json: Record<string, any>): AdminWitness;
|
|
1083
|
+
static fromCoreObject(obj: SuiClientTypes.Object<{
|
|
1084
|
+
content: true;
|
|
1085
|
+
}>): AdminWitness;
|
|
1086
|
+
static fetch(client: ClientWithCoreApi, id: string): Promise<AdminWitness>;
|
|
1087
|
+
}
|
|
482
1088
|
export declare function isMintEvent(type: string): boolean;
|
|
483
1089
|
export interface MintEventFields {
|
|
484
1090
|
lendingMarketId: ToField<'address'>;
|
|
@@ -518,7 +1124,19 @@ export declare class MintEvent implements StructClass {
|
|
|
518
1124
|
static get r(): MintEventReified;
|
|
519
1125
|
static phantom(): PhantomReified<ToTypeStr<MintEvent>>;
|
|
520
1126
|
static get p(): PhantomReified<ToTypeStr<MintEvent>>;
|
|
521
|
-
|
|
1127
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
1128
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1129
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1130
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
1131
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1132
|
+
length: number;
|
|
1133
|
+
}, string>;
|
|
1134
|
+
}, string>;
|
|
1135
|
+
}, string>;
|
|
1136
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1137
|
+
liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1138
|
+
ctoken_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1139
|
+
}, string>;
|
|
522
1140
|
private static cachedBcs;
|
|
523
1141
|
static get bcs(): ReturnType<typeof MintEvent.instantiateBcs>;
|
|
524
1142
|
static fromFields(fields: Record<string, any>): MintEvent;
|
|
@@ -572,7 +1190,19 @@ export declare class RedeemEvent implements StructClass {
|
|
|
572
1190
|
static get r(): RedeemEventReified;
|
|
573
1191
|
static phantom(): PhantomReified<ToTypeStr<RedeemEvent>>;
|
|
574
1192
|
static get p(): PhantomReified<ToTypeStr<RedeemEvent>>;
|
|
575
|
-
|
|
1193
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
1194
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1195
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1196
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
1197
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1198
|
+
length: number;
|
|
1199
|
+
}, string>;
|
|
1200
|
+
}, string>;
|
|
1201
|
+
}, string>;
|
|
1202
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1203
|
+
ctoken_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1204
|
+
liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1205
|
+
}, string>;
|
|
576
1206
|
private static cachedBcs;
|
|
577
1207
|
static get bcs(): ReturnType<typeof RedeemEvent.instantiateBcs>;
|
|
578
1208
|
static fromFields(fields: Record<string, any>): RedeemEvent;
|
|
@@ -626,7 +1256,19 @@ export declare class DepositEvent implements StructClass {
|
|
|
626
1256
|
static get r(): DepositEventReified;
|
|
627
1257
|
static phantom(): PhantomReified<ToTypeStr<DepositEvent>>;
|
|
628
1258
|
static get p(): PhantomReified<ToTypeStr<DepositEvent>>;
|
|
629
|
-
|
|
1259
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
1260
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1261
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1262
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
1263
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1264
|
+
length: number;
|
|
1265
|
+
}, string>;
|
|
1266
|
+
}, string>;
|
|
1267
|
+
}, string>;
|
|
1268
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1269
|
+
obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1270
|
+
ctoken_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1271
|
+
}, string>;
|
|
630
1272
|
private static cachedBcs;
|
|
631
1273
|
static get bcs(): ReturnType<typeof DepositEvent.instantiateBcs>;
|
|
632
1274
|
static fromFields(fields: Record<string, any>): DepositEvent;
|
|
@@ -680,7 +1322,19 @@ export declare class WithdrawEvent implements StructClass {
|
|
|
680
1322
|
static get r(): WithdrawEventReified;
|
|
681
1323
|
static phantom(): PhantomReified<ToTypeStr<WithdrawEvent>>;
|
|
682
1324
|
static get p(): PhantomReified<ToTypeStr<WithdrawEvent>>;
|
|
683
|
-
|
|
1325
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
1326
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1327
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1328
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
1329
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1330
|
+
length: number;
|
|
1331
|
+
}, string>;
|
|
1332
|
+
}, string>;
|
|
1333
|
+
}, string>;
|
|
1334
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1335
|
+
obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1336
|
+
ctoken_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1337
|
+
}, string>;
|
|
684
1338
|
private static cachedBcs;
|
|
685
1339
|
static get bcs(): ReturnType<typeof WithdrawEvent.instantiateBcs>;
|
|
686
1340
|
static fromFields(fields: Record<string, any>): WithdrawEvent;
|
|
@@ -737,7 +1391,20 @@ export declare class BorrowEvent implements StructClass {
|
|
|
737
1391
|
static get r(): BorrowEventReified;
|
|
738
1392
|
static phantom(): PhantomReified<ToTypeStr<BorrowEvent>>;
|
|
739
1393
|
static get p(): PhantomReified<ToTypeStr<BorrowEvent>>;
|
|
740
|
-
|
|
1394
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
1395
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1396
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1397
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
1398
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1399
|
+
length: number;
|
|
1400
|
+
}, string>;
|
|
1401
|
+
}, string>;
|
|
1402
|
+
}, string>;
|
|
1403
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1404
|
+
obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1405
|
+
liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1406
|
+
origination_fee_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1407
|
+
}, string>;
|
|
741
1408
|
private static cachedBcs;
|
|
742
1409
|
static get bcs(): ReturnType<typeof BorrowEvent.instantiateBcs>;
|
|
743
1410
|
static fromFields(fields: Record<string, any>): BorrowEvent;
|
|
@@ -791,7 +1458,19 @@ export declare class RepayEvent implements StructClass {
|
|
|
791
1458
|
static get r(): RepayEventReified;
|
|
792
1459
|
static phantom(): PhantomReified<ToTypeStr<RepayEvent>>;
|
|
793
1460
|
static get p(): PhantomReified<ToTypeStr<RepayEvent>>;
|
|
794
|
-
|
|
1461
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
1462
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1463
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1464
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
1465
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1466
|
+
length: number;
|
|
1467
|
+
}, string>;
|
|
1468
|
+
}, string>;
|
|
1469
|
+
}, string>;
|
|
1470
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1471
|
+
obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1472
|
+
liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1473
|
+
}, string>;
|
|
795
1474
|
private static cachedBcs;
|
|
796
1475
|
static get bcs(): ReturnType<typeof RepayEvent.instantiateBcs>;
|
|
797
1476
|
static fromFields(fields: Record<string, any>): RepayEvent;
|
|
@@ -845,7 +1524,19 @@ export declare class ForgiveEvent implements StructClass {
|
|
|
845
1524
|
static get r(): ForgiveEventReified;
|
|
846
1525
|
static phantom(): PhantomReified<ToTypeStr<ForgiveEvent>>;
|
|
847
1526
|
static get p(): PhantomReified<ToTypeStr<ForgiveEvent>>;
|
|
848
|
-
|
|
1527
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
1528
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1529
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1530
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
1531
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1532
|
+
length: number;
|
|
1533
|
+
}, string>;
|
|
1534
|
+
}, string>;
|
|
1535
|
+
}, string>;
|
|
1536
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1537
|
+
obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1538
|
+
liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1539
|
+
}, string>;
|
|
849
1540
|
private static cachedBcs;
|
|
850
1541
|
static get bcs(): ReturnType<typeof ForgiveEvent.instantiateBcs>;
|
|
851
1542
|
static fromFields(fields: Record<string, any>): ForgiveEvent;
|
|
@@ -914,7 +1605,30 @@ export declare class LiquidateEvent implements StructClass {
|
|
|
914
1605
|
static get r(): LiquidateEventReified;
|
|
915
1606
|
static phantom(): PhantomReified<ToTypeStr<LiquidateEvent>>;
|
|
916
1607
|
static get p(): PhantomReified<ToTypeStr<LiquidateEvent>>;
|
|
917
|
-
|
|
1608
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
1609
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1610
|
+
repay_reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1611
|
+
withdraw_reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1612
|
+
obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1613
|
+
repay_coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1614
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
1615
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1616
|
+
length: number;
|
|
1617
|
+
}, string>;
|
|
1618
|
+
}, string>;
|
|
1619
|
+
}, string>;
|
|
1620
|
+
withdraw_coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1621
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
1622
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1623
|
+
length: number;
|
|
1624
|
+
}, string>;
|
|
1625
|
+
}, string>;
|
|
1626
|
+
}, string>;
|
|
1627
|
+
repay_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1628
|
+
withdraw_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1629
|
+
protocol_fee_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1630
|
+
liquidator_bonus_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1631
|
+
}, string>;
|
|
918
1632
|
private static cachedBcs;
|
|
919
1633
|
static get bcs(): ReturnType<typeof LiquidateEvent.instantiateBcs>;
|
|
920
1634
|
static fromFields(fields: Record<string, any>): LiquidateEvent;
|
|
@@ -974,7 +1688,21 @@ export declare class ClaimRewardEvent implements StructClass {
|
|
|
974
1688
|
static get r(): ClaimRewardEventReified;
|
|
975
1689
|
static phantom(): PhantomReified<ToTypeStr<ClaimRewardEvent>>;
|
|
976
1690
|
static get p(): PhantomReified<ToTypeStr<ClaimRewardEvent>>;
|
|
977
|
-
|
|
1691
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
1692
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1693
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1694
|
+
obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1695
|
+
is_deposit_reward: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
1696
|
+
pool_reward_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1697
|
+
coin_type: import("@mysten/bcs").BcsStruct<{
|
|
1698
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
1699
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
1700
|
+
length: number;
|
|
1701
|
+
}, string>;
|
|
1702
|
+
}, string>;
|
|
1703
|
+
}, string>;
|
|
1704
|
+
liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1705
|
+
}, string>;
|
|
978
1706
|
private static cachedBcs;
|
|
979
1707
|
static get bcs(): ReturnType<typeof ClaimRewardEvent.instantiateBcs>;
|
|
980
1708
|
static fromFields(fields: Record<string, any>): ClaimRewardEvent;
|
|
@@ -1019,7 +1747,10 @@ export declare class MarketPauseEvent implements StructClass {
|
|
|
1019
1747
|
static get r(): MarketPauseEventReified;
|
|
1020
1748
|
static phantom(): PhantomReified<ToTypeStr<MarketPauseEvent>>;
|
|
1021
1749
|
static get p(): PhantomReified<ToTypeStr<MarketPauseEvent>>;
|
|
1022
|
-
|
|
1750
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
1751
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1752
|
+
paused: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
1753
|
+
}, string>;
|
|
1023
1754
|
private static cachedBcs;
|
|
1024
1755
|
static get bcs(): ReturnType<typeof MarketPauseEvent.instantiateBcs>;
|
|
1025
1756
|
static fromFields(fields: Record<string, any>): MarketPauseEvent;
|
|
@@ -1067,7 +1798,11 @@ export declare class ReservePauseEvent implements StructClass {
|
|
|
1067
1798
|
static get r(): ReservePauseEventReified;
|
|
1068
1799
|
static phantom(): PhantomReified<ToTypeStr<ReservePauseEvent>>;
|
|
1069
1800
|
static get p(): PhantomReified<ToTypeStr<ReservePauseEvent>>;
|
|
1070
|
-
|
|
1801
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
1802
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1803
|
+
reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1804
|
+
paused: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
1805
|
+
}, string>;
|
|
1071
1806
|
private static cachedBcs;
|
|
1072
1807
|
static get bcs(): ReturnType<typeof ReservePauseEvent.instantiateBcs>;
|
|
1073
1808
|
static fromFields(fields: Record<string, any>): ReservePauseEvent;
|
|
@@ -1115,7 +1850,11 @@ export declare class PauseCapRotatedEvent implements StructClass {
|
|
|
1115
1850
|
static get r(): PauseCapRotatedEventReified;
|
|
1116
1851
|
static phantom(): PhantomReified<ToTypeStr<PauseCapRotatedEvent>>;
|
|
1117
1852
|
static get p(): PhantomReified<ToTypeStr<PauseCapRotatedEvent>>;
|
|
1118
|
-
|
|
1853
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
1854
|
+
lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1855
|
+
new_cap_id: import("@mysten/bcs").BcsType<string, string, string>;
|
|
1856
|
+
generation: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1857
|
+
}, string>;
|
|
1119
1858
|
private static cachedBcs;
|
|
1120
1859
|
static get bcs(): ReturnType<typeof PauseCapRotatedEvent.instantiateBcs>;
|
|
1121
1860
|
static fromFields(fields: Record<string, any>): PauseCapRotatedEvent;
|