@suilend/sdk 1.1.85 → 1.1.86
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/source/0x1/ascii/structs.d.ts +7 -11
- package/_generated/_dependencies/source/0x1/option/structs.d.ts +4 -6
- package/_generated/_dependencies/source/0x1/type-name/structs.d.ts +6 -10
- package/_generated/_dependencies/source/0x2/bag/structs.d.ts +8 -15
- package/_generated/_dependencies/source/0x2/balance/structs.d.ts +6 -10
- package/_generated/_dependencies/source/0x2/object/structs.d.ts +8 -14
- package/_generated/_dependencies/source/0x2/object-table/structs.d.ts +8 -15
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/i64/structs.d.ts +4 -7
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price/structs.d.ts +12 -23
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-feed/structs.d.ts +30 -58
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-identifier/structs.d.ts +4 -6
- package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-info/structs.d.ts +75 -146
- package/_generated/_framework/util.d.ts +4 -16
- package/_generated/_framework/vector.d.ts +12 -5
- package/_generated/suilend/cell/structs.d.ts +6 -10
- package/_generated/suilend/decimal/structs.d.ts +3 -5
- package/_generated/suilend/lending-market/structs.d.ts +392 -368
- package/_generated/suilend/liquidity-mining/structs.d.ts +160 -134
- package/_generated/suilend/obligation/structs.d.ts +217 -332
- package/_generated/suilend/rate-limiter/structs.d.ts +17 -32
- package/_generated/suilend/reserve/structs.d.ts +393 -383
- package/_generated/suilend/reserve-config/structs.d.ts +40 -76
- package/client.d.ts +1 -1
- package/client.js +2 -2
- package/lib/initialize.d.ts +1 -2
- package/lib/initialize.js +62 -54
- package/lib/strategyOwnerCap.js +24 -16
- package/lib/types.d.ts +0 -1
- package/package.json +1 -1
- package/parsers/lendingMarket.d.ts +0 -1
- package/parsers/lendingMarket.js +2 -3
|
@@ -39,29 +39,19 @@ export declare class MintEvent implements StructClass {
|
|
|
39
39
|
static get r(): reified.StructClassReified<MintEvent, MintEventFields>;
|
|
40
40
|
static phantom(): PhantomReified<ToTypeStr<MintEvent>>;
|
|
41
41
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::MintEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::MintEvent">;
|
|
42
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
43
|
-
lending_market_id: string
|
|
44
|
-
coin_type: {
|
|
45
|
-
name: {
|
|
46
|
-
bytes: number[]
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
reserve_id: string;
|
|
50
|
-
liquidity_amount: string;
|
|
51
|
-
ctoken_amount: string;
|
|
52
|
-
}, {
|
|
53
|
-
lending_market_id: string;
|
|
54
|
-
coin_type: {
|
|
55
|
-
name: {
|
|
56
|
-
bytes: Iterable<number> & {
|
|
42
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
43
|
+
lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
44
|
+
coin_type: import("@mysten/sui/bcs").BcsStruct<{
|
|
45
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
46
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
57
47
|
length: number;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
reserve_id: string
|
|
62
|
-
liquidity_amount: string | number | bigint
|
|
63
|
-
ctoken_amount: string | number | bigint
|
|
64
|
-
}>;
|
|
48
|
+
}, string>;
|
|
49
|
+
}, string>;
|
|
50
|
+
}, string>;
|
|
51
|
+
reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
52
|
+
liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
53
|
+
ctoken_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
54
|
+
}, string>;
|
|
65
55
|
static fromFields(fields: Record<string, any>): MintEvent;
|
|
66
56
|
static fromFieldsWithTypes(item: FieldsWithTypes): MintEvent;
|
|
67
57
|
static fromBcs(data: Uint8Array): MintEvent;
|
|
@@ -119,29 +109,19 @@ export declare class RedeemEvent implements StructClass {
|
|
|
119
109
|
static get r(): reified.StructClassReified<RedeemEvent, RedeemEventFields>;
|
|
120
110
|
static phantom(): PhantomReified<ToTypeStr<RedeemEvent>>;
|
|
121
111
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::RedeemEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::RedeemEvent">;
|
|
122
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
123
|
-
lending_market_id: string
|
|
124
|
-
coin_type: {
|
|
125
|
-
name: {
|
|
126
|
-
bytes: number[]
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
reserve_id: string;
|
|
130
|
-
ctoken_amount: string;
|
|
131
|
-
liquidity_amount: string;
|
|
132
|
-
}, {
|
|
133
|
-
lending_market_id: string;
|
|
134
|
-
coin_type: {
|
|
135
|
-
name: {
|
|
136
|
-
bytes: Iterable<number> & {
|
|
112
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
113
|
+
lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
114
|
+
coin_type: import("@mysten/sui/bcs").BcsStruct<{
|
|
115
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
116
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
137
117
|
length: number;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
reserve_id: string
|
|
142
|
-
ctoken_amount: string | number | bigint
|
|
143
|
-
liquidity_amount: string | number | bigint
|
|
144
|
-
}>;
|
|
118
|
+
}, string>;
|
|
119
|
+
}, string>;
|
|
120
|
+
}, string>;
|
|
121
|
+
reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
122
|
+
ctoken_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
123
|
+
liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
124
|
+
}, string>;
|
|
145
125
|
static fromFields(fields: Record<string, any>): RedeemEvent;
|
|
146
126
|
static fromFieldsWithTypes(item: FieldsWithTypes): RedeemEvent;
|
|
147
127
|
static fromBcs(data: Uint8Array): RedeemEvent;
|
|
@@ -201,31 +181,20 @@ export declare class BorrowEvent implements StructClass {
|
|
|
201
181
|
static get r(): reified.StructClassReified<BorrowEvent, BorrowEventFields>;
|
|
202
182
|
static phantom(): PhantomReified<ToTypeStr<BorrowEvent>>;
|
|
203
183
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::BorrowEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::BorrowEvent">;
|
|
204
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
205
|
-
lending_market_id: string
|
|
206
|
-
coin_type: {
|
|
207
|
-
name: {
|
|
208
|
-
bytes: number[]
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
reserve_id: string;
|
|
212
|
-
obligation_id: string;
|
|
213
|
-
liquidity_amount: string;
|
|
214
|
-
origination_fee_amount: string;
|
|
215
|
-
}, {
|
|
216
|
-
lending_market_id: string;
|
|
217
|
-
coin_type: {
|
|
218
|
-
name: {
|
|
219
|
-
bytes: Iterable<number> & {
|
|
184
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
185
|
+
lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
186
|
+
coin_type: import("@mysten/sui/bcs").BcsStruct<{
|
|
187
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
188
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
220
189
|
length: number;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
reserve_id: string
|
|
225
|
-
obligation_id: string
|
|
226
|
-
liquidity_amount: string | number | bigint
|
|
227
|
-
origination_fee_amount: string | number | bigint
|
|
228
|
-
}>;
|
|
190
|
+
}, string>;
|
|
191
|
+
}, string>;
|
|
192
|
+
}, string>;
|
|
193
|
+
reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
194
|
+
obligation_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
195
|
+
liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
196
|
+
origination_fee_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
197
|
+
}, string>;
|
|
229
198
|
static fromFields(fields: Record<string, any>): BorrowEvent;
|
|
230
199
|
static fromFieldsWithTypes(item: FieldsWithTypes): BorrowEvent;
|
|
231
200
|
static fromBcs(data: Uint8Array): BorrowEvent;
|
|
@@ -289,33 +258,21 @@ export declare class ClaimRewardEvent implements StructClass {
|
|
|
289
258
|
static get r(): reified.StructClassReified<ClaimRewardEvent, ClaimRewardEventFields>;
|
|
290
259
|
static phantom(): PhantomReified<ToTypeStr<ClaimRewardEvent>>;
|
|
291
260
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::ClaimRewardEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::ClaimRewardEvent">;
|
|
292
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
293
|
-
lending_market_id: string
|
|
294
|
-
reserve_id: string
|
|
295
|
-
obligation_id: string
|
|
296
|
-
is_deposit_reward: boolean
|
|
297
|
-
pool_reward_id: string
|
|
298
|
-
coin_type: {
|
|
299
|
-
name: {
|
|
300
|
-
bytes: number[]
|
|
301
|
-
};
|
|
302
|
-
};
|
|
303
|
-
liquidity_amount: string;
|
|
304
|
-
}, {
|
|
305
|
-
lending_market_id: string;
|
|
306
|
-
reserve_id: string;
|
|
307
|
-
obligation_id: string;
|
|
308
|
-
is_deposit_reward: boolean;
|
|
309
|
-
pool_reward_id: string;
|
|
310
|
-
coin_type: {
|
|
311
|
-
name: {
|
|
312
|
-
bytes: Iterable<number> & {
|
|
261
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
262
|
+
lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
263
|
+
reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
264
|
+
obligation_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
265
|
+
is_deposit_reward: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
266
|
+
pool_reward_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
267
|
+
coin_type: import("@mysten/sui/bcs").BcsStruct<{
|
|
268
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
269
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
313
270
|
length: number;
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
liquidity_amount: string | number | bigint
|
|
318
|
-
}>;
|
|
271
|
+
}, string>;
|
|
272
|
+
}, string>;
|
|
273
|
+
}, string>;
|
|
274
|
+
liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
275
|
+
}, string>;
|
|
319
276
|
static fromFields(fields: Record<string, any>): ClaimRewardEvent;
|
|
320
277
|
static fromFieldsWithTypes(item: FieldsWithTypes): ClaimRewardEvent;
|
|
321
278
|
static fromBcs(data: Uint8Array): ClaimRewardEvent;
|
|
@@ -377,29 +334,19 @@ export declare class DepositEvent implements StructClass {
|
|
|
377
334
|
static get r(): reified.StructClassReified<DepositEvent, DepositEventFields>;
|
|
378
335
|
static phantom(): PhantomReified<ToTypeStr<DepositEvent>>;
|
|
379
336
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::DepositEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::DepositEvent">;
|
|
380
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
381
|
-
lending_market_id: string
|
|
382
|
-
coin_type: {
|
|
383
|
-
name: {
|
|
384
|
-
bytes: number[]
|
|
385
|
-
};
|
|
386
|
-
};
|
|
387
|
-
reserve_id: string;
|
|
388
|
-
obligation_id: string;
|
|
389
|
-
ctoken_amount: string;
|
|
390
|
-
}, {
|
|
391
|
-
lending_market_id: string;
|
|
392
|
-
coin_type: {
|
|
393
|
-
name: {
|
|
394
|
-
bytes: Iterable<number> & {
|
|
337
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
338
|
+
lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
339
|
+
coin_type: import("@mysten/sui/bcs").BcsStruct<{
|
|
340
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
341
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
395
342
|
length: number;
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
reserve_id: string
|
|
400
|
-
obligation_id: string
|
|
401
|
-
ctoken_amount: string | number | bigint
|
|
402
|
-
}>;
|
|
343
|
+
}, string>;
|
|
344
|
+
}, string>;
|
|
345
|
+
}, string>;
|
|
346
|
+
reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
347
|
+
obligation_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
348
|
+
ctoken_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
349
|
+
}, string>;
|
|
403
350
|
static fromFields(fields: Record<string, any>): DepositEvent;
|
|
404
351
|
static fromFieldsWithTypes(item: FieldsWithTypes): DepositEvent;
|
|
405
352
|
static fromBcs(data: Uint8Array): DepositEvent;
|
|
@@ -453,19 +400,15 @@ export declare class FeeReceivers implements StructClass {
|
|
|
453
400
|
static get r(): reified.StructClassReified<FeeReceivers, FeeReceiversFields>;
|
|
454
401
|
static phantom(): PhantomReified<ToTypeStr<FeeReceivers>>;
|
|
455
402
|
static get p(): reified.PhantomReified<"0xe37cc7bb50fd9b6dbd3873df66fa2c554e973697f50ef97707311dc78bd08444::lending_market::FeeReceivers" | "0xe5ed361add4433f4d23e56fc0e3bacab39b93592d5e65d508e33fd19ff696669::lending_market::FeeReceivers">;
|
|
456
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
457
|
-
receivers: string[]
|
|
458
|
-
weights: string[];
|
|
459
|
-
total_weight: string;
|
|
460
|
-
}, {
|
|
461
|
-
receivers: Iterable<string> & {
|
|
403
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
404
|
+
receivers: import("@mysten/sui/bcs").BcsType<string[], Iterable<string> & {
|
|
462
405
|
length: number;
|
|
463
|
-
}
|
|
464
|
-
weights: Iterable<string | number | bigint> & {
|
|
406
|
+
}, string>;
|
|
407
|
+
weights: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
465
408
|
length: number;
|
|
466
|
-
}
|
|
467
|
-
total_weight: string | number | bigint
|
|
468
|
-
}>;
|
|
409
|
+
}, string>;
|
|
410
|
+
total_weight: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
411
|
+
}, string>;
|
|
469
412
|
static fromFields(fields: Record<string, any>): FeeReceivers;
|
|
470
413
|
static fromFieldsWithTypes(item: FieldsWithTypes): FeeReceivers;
|
|
471
414
|
static fromBcs(data: Uint8Array): FeeReceivers;
|
|
@@ -507,11 +450,9 @@ export declare class FeeReceiversKey implements StructClass {
|
|
|
507
450
|
static get r(): reified.StructClassReified<FeeReceiversKey, FeeReceiversKeyFields>;
|
|
508
451
|
static phantom(): PhantomReified<ToTypeStr<FeeReceiversKey>>;
|
|
509
452
|
static get p(): reified.PhantomReified<"0xe37cc7bb50fd9b6dbd3873df66fa2c554e973697f50ef97707311dc78bd08444::lending_market::FeeReceiversKey" | "0xe5ed361add4433f4d23e56fc0e3bacab39b93592d5e65d508e33fd19ff696669::lending_market::FeeReceiversKey">;
|
|
510
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
511
|
-
dummy_field: boolean
|
|
512
|
-
},
|
|
513
|
-
dummy_field: boolean;
|
|
514
|
-
}>;
|
|
453
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
454
|
+
dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
455
|
+
}, string>;
|
|
515
456
|
static fromFields(fields: Record<string, any>): FeeReceiversKey;
|
|
516
457
|
static fromFieldsWithTypes(item: FieldsWithTypes): FeeReceiversKey;
|
|
517
458
|
static fromBcs(data: Uint8Array): FeeReceiversKey;
|
|
@@ -557,29 +498,19 @@ export declare class ForgiveEvent implements StructClass {
|
|
|
557
498
|
static get r(): reified.StructClassReified<ForgiveEvent, ForgiveEventFields>;
|
|
558
499
|
static phantom(): PhantomReified<ToTypeStr<ForgiveEvent>>;
|
|
559
500
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::ForgiveEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::ForgiveEvent">;
|
|
560
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
561
|
-
lending_market_id: string
|
|
562
|
-
coin_type: {
|
|
563
|
-
name: {
|
|
564
|
-
bytes: number[]
|
|
565
|
-
};
|
|
566
|
-
};
|
|
567
|
-
reserve_id: string;
|
|
568
|
-
obligation_id: string;
|
|
569
|
-
liquidity_amount: string;
|
|
570
|
-
}, {
|
|
571
|
-
lending_market_id: string;
|
|
572
|
-
coin_type: {
|
|
573
|
-
name: {
|
|
574
|
-
bytes: Iterable<number> & {
|
|
501
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
502
|
+
lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
503
|
+
coin_type: import("@mysten/sui/bcs").BcsStruct<{
|
|
504
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
505
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
575
506
|
length: number;
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
reserve_id: string
|
|
580
|
-
obligation_id: string
|
|
581
|
-
liquidity_amount: string | number | bigint
|
|
582
|
-
}>;
|
|
507
|
+
}, string>;
|
|
508
|
+
}, string>;
|
|
509
|
+
}, string>;
|
|
510
|
+
reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
511
|
+
obligation_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
512
|
+
liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
513
|
+
}, string>;
|
|
583
514
|
static fromFields(fields: Record<string, any>): ForgiveEvent;
|
|
584
515
|
static fromFieldsWithTypes(item: FieldsWithTypes): ForgiveEvent;
|
|
585
516
|
static fromBcs(data: Uint8Array): ForgiveEvent;
|
|
@@ -629,11 +560,9 @@ export declare class LENDING_MARKET implements StructClass {
|
|
|
629
560
|
static get r(): reified.StructClassReified<LENDING_MARKET, LENDING_MARKETFields>;
|
|
630
561
|
static phantom(): PhantomReified<ToTypeStr<LENDING_MARKET>>;
|
|
631
562
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::LENDING_MARKET" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::LENDING_MARKET">;
|
|
632
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
633
|
-
dummy_field: boolean
|
|
634
|
-
},
|
|
635
|
-
dummy_field: boolean;
|
|
636
|
-
}>;
|
|
563
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
564
|
+
dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
565
|
+
}, string>;
|
|
637
566
|
static fromFields(fields: Record<string, any>): LENDING_MARKET;
|
|
638
567
|
static fromFieldsWithTypes(item: FieldsWithTypes): LENDING_MARKET;
|
|
639
568
|
static fromBcs(data: Uint8Array): LENDING_MARKET;
|
|
@@ -685,14 +614,14 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
|
|
|
685
614
|
static get r(): typeof LendingMarket.reified;
|
|
686
615
|
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<LendingMarket<ToPhantomTypeArgument<P>>>>;
|
|
687
616
|
static get p(): typeof LendingMarket.phantom;
|
|
688
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
689
|
-
id: {
|
|
690
|
-
id: {
|
|
691
|
-
bytes: string
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
version: string
|
|
695
|
-
reserves: {
|
|
617
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
618
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
619
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
620
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
621
|
+
}, string>;
|
|
622
|
+
}, string>;
|
|
623
|
+
version: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
624
|
+
reserves: import("@mysten/sui/bcs").BcsType<{
|
|
696
625
|
id: {
|
|
697
626
|
id: {
|
|
698
627
|
bytes: string;
|
|
@@ -709,7 +638,34 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
|
|
|
709
638
|
};
|
|
710
639
|
config: {
|
|
711
640
|
element: {
|
|
712
|
-
vec:
|
|
641
|
+
vec: {
|
|
642
|
+
open_ltv_pct: number;
|
|
643
|
+
close_ltv_pct: number;
|
|
644
|
+
max_close_ltv_pct: number;
|
|
645
|
+
borrow_weight_bps: string;
|
|
646
|
+
deposit_limit: string;
|
|
647
|
+
borrow_limit: string;
|
|
648
|
+
liquidation_bonus_bps: string;
|
|
649
|
+
max_liquidation_bonus_bps: string;
|
|
650
|
+
deposit_limit_usd: string;
|
|
651
|
+
borrow_limit_usd: string;
|
|
652
|
+
interest_rate_utils: number[];
|
|
653
|
+
interest_rate_aprs: string[];
|
|
654
|
+
borrow_fee_bps: string;
|
|
655
|
+
spread_fee_bps: string;
|
|
656
|
+
protocol_liquidation_fee_bps: string;
|
|
657
|
+
isolated: boolean;
|
|
658
|
+
open_attributed_borrow_limit_usd: string;
|
|
659
|
+
close_attributed_borrow_limit_usd: string;
|
|
660
|
+
additional_fields: {
|
|
661
|
+
id: {
|
|
662
|
+
id: {
|
|
663
|
+
bytes: string;
|
|
664
|
+
};
|
|
665
|
+
};
|
|
666
|
+
size: string;
|
|
667
|
+
};
|
|
668
|
+
}[];
|
|
713
669
|
};
|
|
714
670
|
};
|
|
715
671
|
mint_decimals: number;
|
|
@@ -746,7 +702,39 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
|
|
|
746
702
|
};
|
|
747
703
|
total_shares: string;
|
|
748
704
|
pool_rewards: {
|
|
749
|
-
vec:
|
|
705
|
+
vec: {
|
|
706
|
+
id: {
|
|
707
|
+
id: {
|
|
708
|
+
bytes: string;
|
|
709
|
+
};
|
|
710
|
+
};
|
|
711
|
+
pool_reward_manager_id: {
|
|
712
|
+
bytes: string;
|
|
713
|
+
};
|
|
714
|
+
coin_type: {
|
|
715
|
+
name: {
|
|
716
|
+
bytes: number[];
|
|
717
|
+
};
|
|
718
|
+
};
|
|
719
|
+
start_time_ms: string;
|
|
720
|
+
end_time_ms: string;
|
|
721
|
+
total_rewards: string;
|
|
722
|
+
allocated_rewards: {
|
|
723
|
+
value: string;
|
|
724
|
+
};
|
|
725
|
+
cumulative_rewards_per_share: {
|
|
726
|
+
value: string;
|
|
727
|
+
};
|
|
728
|
+
num_user_reward_managers: string;
|
|
729
|
+
additional_fields: {
|
|
730
|
+
id: {
|
|
731
|
+
id: {
|
|
732
|
+
bytes: string;
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
size: string;
|
|
736
|
+
};
|
|
737
|
+
}[];
|
|
750
738
|
}[];
|
|
751
739
|
last_update_time_ms: string;
|
|
752
740
|
};
|
|
@@ -758,47 +746,43 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
|
|
|
758
746
|
};
|
|
759
747
|
total_shares: string;
|
|
760
748
|
pool_rewards: {
|
|
761
|
-
vec:
|
|
749
|
+
vec: {
|
|
750
|
+
id: {
|
|
751
|
+
id: {
|
|
752
|
+
bytes: string;
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
pool_reward_manager_id: {
|
|
756
|
+
bytes: string;
|
|
757
|
+
};
|
|
758
|
+
coin_type: {
|
|
759
|
+
name: {
|
|
760
|
+
bytes: number[];
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
start_time_ms: string;
|
|
764
|
+
end_time_ms: string;
|
|
765
|
+
total_rewards: string;
|
|
766
|
+
allocated_rewards: {
|
|
767
|
+
value: string;
|
|
768
|
+
};
|
|
769
|
+
cumulative_rewards_per_share: {
|
|
770
|
+
value: string;
|
|
771
|
+
};
|
|
772
|
+
num_user_reward_managers: string;
|
|
773
|
+
additional_fields: {
|
|
774
|
+
id: {
|
|
775
|
+
id: {
|
|
776
|
+
bytes: string;
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
size: string;
|
|
780
|
+
};
|
|
781
|
+
}[];
|
|
762
782
|
}[];
|
|
763
783
|
last_update_time_ms: string;
|
|
764
784
|
};
|
|
765
|
-
}[]
|
|
766
|
-
obligations: {
|
|
767
|
-
id: {
|
|
768
|
-
id: {
|
|
769
|
-
bytes: string;
|
|
770
|
-
};
|
|
771
|
-
};
|
|
772
|
-
size: string;
|
|
773
|
-
};
|
|
774
|
-
rate_limiter: {
|
|
775
|
-
config: {
|
|
776
|
-
window_duration: string;
|
|
777
|
-
max_outflow: string;
|
|
778
|
-
};
|
|
779
|
-
prev_qty: {
|
|
780
|
-
value: string;
|
|
781
|
-
};
|
|
782
|
-
window_start: string;
|
|
783
|
-
cur_qty: {
|
|
784
|
-
value: string;
|
|
785
|
-
};
|
|
786
|
-
};
|
|
787
|
-
fee_receiver: string;
|
|
788
|
-
bad_debt_usd: {
|
|
789
|
-
value: string;
|
|
790
|
-
};
|
|
791
|
-
bad_debt_limit_usd: {
|
|
792
|
-
value: string;
|
|
793
|
-
};
|
|
794
|
-
}, {
|
|
795
|
-
id: {
|
|
796
|
-
id: {
|
|
797
|
-
bytes: string;
|
|
798
|
-
};
|
|
799
|
-
};
|
|
800
|
-
version: string | number | bigint;
|
|
801
|
-
reserves: Iterable<{
|
|
785
|
+
}[], Iterable<{
|
|
802
786
|
id: {
|
|
803
787
|
id: {
|
|
804
788
|
bytes: string;
|
|
@@ -817,7 +801,38 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
|
|
|
817
801
|
};
|
|
818
802
|
config: {
|
|
819
803
|
element: {
|
|
820
|
-
vec: Iterable<
|
|
804
|
+
vec: Iterable<{
|
|
805
|
+
open_ltv_pct: number;
|
|
806
|
+
close_ltv_pct: number;
|
|
807
|
+
max_close_ltv_pct: number;
|
|
808
|
+
borrow_weight_bps: string | number | bigint;
|
|
809
|
+
deposit_limit: string | number | bigint;
|
|
810
|
+
borrow_limit: string | number | bigint;
|
|
811
|
+
liquidation_bonus_bps: string | number | bigint;
|
|
812
|
+
max_liquidation_bonus_bps: string | number | bigint;
|
|
813
|
+
deposit_limit_usd: string | number | bigint;
|
|
814
|
+
borrow_limit_usd: string | number | bigint;
|
|
815
|
+
interest_rate_utils: Iterable<number> & {
|
|
816
|
+
length: number;
|
|
817
|
+
};
|
|
818
|
+
interest_rate_aprs: Iterable<string | number | bigint> & {
|
|
819
|
+
length: number;
|
|
820
|
+
};
|
|
821
|
+
borrow_fee_bps: string | number | bigint;
|
|
822
|
+
spread_fee_bps: string | number | bigint;
|
|
823
|
+
protocol_liquidation_fee_bps: string | number | bigint;
|
|
824
|
+
isolated: boolean;
|
|
825
|
+
open_attributed_borrow_limit_usd: string | number | bigint;
|
|
826
|
+
close_attributed_borrow_limit_usd: string | number | bigint;
|
|
827
|
+
additional_fields: {
|
|
828
|
+
id: {
|
|
829
|
+
id: {
|
|
830
|
+
bytes: string;
|
|
831
|
+
};
|
|
832
|
+
};
|
|
833
|
+
size: string | number | bigint;
|
|
834
|
+
};
|
|
835
|
+
}> & {
|
|
821
836
|
length: number;
|
|
822
837
|
};
|
|
823
838
|
};
|
|
@@ -858,7 +873,41 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
|
|
|
858
873
|
};
|
|
859
874
|
total_shares: string | number | bigint;
|
|
860
875
|
pool_rewards: Iterable<{
|
|
861
|
-
vec: Iterable<
|
|
876
|
+
vec: Iterable<{
|
|
877
|
+
id: {
|
|
878
|
+
id: {
|
|
879
|
+
bytes: string;
|
|
880
|
+
};
|
|
881
|
+
};
|
|
882
|
+
pool_reward_manager_id: {
|
|
883
|
+
bytes: string;
|
|
884
|
+
};
|
|
885
|
+
coin_type: {
|
|
886
|
+
name: {
|
|
887
|
+
bytes: Iterable<number> & {
|
|
888
|
+
length: number;
|
|
889
|
+
};
|
|
890
|
+
};
|
|
891
|
+
};
|
|
892
|
+
start_time_ms: string | number | bigint;
|
|
893
|
+
end_time_ms: string | number | bigint;
|
|
894
|
+
total_rewards: string | number | bigint;
|
|
895
|
+
allocated_rewards: {
|
|
896
|
+
value: string | number | bigint;
|
|
897
|
+
};
|
|
898
|
+
cumulative_rewards_per_share: {
|
|
899
|
+
value: string | number | bigint;
|
|
900
|
+
};
|
|
901
|
+
num_user_reward_managers: string | number | bigint;
|
|
902
|
+
additional_fields: {
|
|
903
|
+
id: {
|
|
904
|
+
id: {
|
|
905
|
+
bytes: string;
|
|
906
|
+
};
|
|
907
|
+
};
|
|
908
|
+
size: string | number | bigint;
|
|
909
|
+
};
|
|
910
|
+
}> & {
|
|
862
911
|
length: number;
|
|
863
912
|
};
|
|
864
913
|
}> & {
|
|
@@ -874,7 +923,41 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
|
|
|
874
923
|
};
|
|
875
924
|
total_shares: string | number | bigint;
|
|
876
925
|
pool_rewards: Iterable<{
|
|
877
|
-
vec: Iterable<
|
|
926
|
+
vec: Iterable<{
|
|
927
|
+
id: {
|
|
928
|
+
id: {
|
|
929
|
+
bytes: string;
|
|
930
|
+
};
|
|
931
|
+
};
|
|
932
|
+
pool_reward_manager_id: {
|
|
933
|
+
bytes: string;
|
|
934
|
+
};
|
|
935
|
+
coin_type: {
|
|
936
|
+
name: {
|
|
937
|
+
bytes: Iterable<number> & {
|
|
938
|
+
length: number;
|
|
939
|
+
};
|
|
940
|
+
};
|
|
941
|
+
};
|
|
942
|
+
start_time_ms: string | number | bigint;
|
|
943
|
+
end_time_ms: string | number | bigint;
|
|
944
|
+
total_rewards: string | number | bigint;
|
|
945
|
+
allocated_rewards: {
|
|
946
|
+
value: string | number | bigint;
|
|
947
|
+
};
|
|
948
|
+
cumulative_rewards_per_share: {
|
|
949
|
+
value: string | number | bigint;
|
|
950
|
+
};
|
|
951
|
+
num_user_reward_managers: string | number | bigint;
|
|
952
|
+
additional_fields: {
|
|
953
|
+
id: {
|
|
954
|
+
id: {
|
|
955
|
+
bytes: string;
|
|
956
|
+
};
|
|
957
|
+
};
|
|
958
|
+
size: string | number | bigint;
|
|
959
|
+
};
|
|
960
|
+
}> & {
|
|
878
961
|
length: number;
|
|
879
962
|
};
|
|
880
963
|
}> & {
|
|
@@ -884,36 +967,36 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
|
|
|
884
967
|
};
|
|
885
968
|
}> & {
|
|
886
969
|
length: number;
|
|
887
|
-
}
|
|
888
|
-
obligations: {
|
|
889
|
-
id: {
|
|
890
|
-
id: {
|
|
891
|
-
bytes: string
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
size: string | number | bigint
|
|
895
|
-
}
|
|
896
|
-
rate_limiter: {
|
|
897
|
-
config: {
|
|
898
|
-
window_duration: string | number | bigint
|
|
899
|
-
max_outflow: string | number | bigint
|
|
900
|
-
}
|
|
901
|
-
prev_qty: {
|
|
902
|
-
value: string | number | bigint
|
|
903
|
-
}
|
|
904
|
-
window_start: string | number | bigint
|
|
905
|
-
cur_qty: {
|
|
906
|
-
value: string | number | bigint
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
fee_receiver: string
|
|
910
|
-
bad_debt_usd: {
|
|
911
|
-
value: string | number | bigint
|
|
912
|
-
}
|
|
913
|
-
bad_debt_limit_usd: {
|
|
914
|
-
value: string | number | bigint
|
|
915
|
-
}
|
|
916
|
-
}>;
|
|
970
|
+
}, string>;
|
|
971
|
+
obligations: import("@mysten/sui/bcs").BcsStruct<{
|
|
972
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
973
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
974
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
975
|
+
}, string>;
|
|
976
|
+
}, string>;
|
|
977
|
+
size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
978
|
+
}, string>;
|
|
979
|
+
rate_limiter: import("@mysten/sui/bcs").BcsStruct<{
|
|
980
|
+
config: import("@mysten/sui/bcs").BcsStruct<{
|
|
981
|
+
window_duration: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
982
|
+
max_outflow: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
983
|
+
}, string>;
|
|
984
|
+
prev_qty: import("@mysten/sui/bcs").BcsStruct<{
|
|
985
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
986
|
+
}, string>;
|
|
987
|
+
window_start: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
988
|
+
cur_qty: import("@mysten/sui/bcs").BcsStruct<{
|
|
989
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
990
|
+
}, string>;
|
|
991
|
+
}, string>;
|
|
992
|
+
fee_receiver: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
993
|
+
bad_debt_usd: import("@mysten/sui/bcs").BcsStruct<{
|
|
994
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
995
|
+
}, string>;
|
|
996
|
+
bad_debt_limit_usd: import("@mysten/sui/bcs").BcsStruct<{
|
|
997
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
998
|
+
}, string>;
|
|
999
|
+
}, string>;
|
|
917
1000
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): LendingMarket<ToPhantomTypeArgument<P>>;
|
|
918
1001
|
static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, item: FieldsWithTypes): LendingMarket<ToPhantomTypeArgument<P>>;
|
|
919
1002
|
static fromBcs<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: Uint8Array): LendingMarket<ToPhantomTypeArgument<P>>;
|
|
@@ -1227,25 +1310,16 @@ export declare class LendingMarketOwnerCap<P extends PhantomTypeArgument> implem
|
|
|
1227
1310
|
static get r(): typeof LendingMarketOwnerCap.reified;
|
|
1228
1311
|
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<LendingMarketOwnerCap<ToPhantomTypeArgument<P>>>>;
|
|
1229
1312
|
static get p(): typeof LendingMarketOwnerCap.phantom;
|
|
1230
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
1231
|
-
id: {
|
|
1232
|
-
id: {
|
|
1233
|
-
bytes: string
|
|
1234
|
-
}
|
|
1235
|
-
}
|
|
1236
|
-
lending_market_id: {
|
|
1237
|
-
bytes: string
|
|
1238
|
-
}
|
|
1239
|
-
},
|
|
1240
|
-
id: {
|
|
1241
|
-
id: {
|
|
1242
|
-
bytes: string;
|
|
1243
|
-
};
|
|
1244
|
-
};
|
|
1245
|
-
lending_market_id: {
|
|
1246
|
-
bytes: string;
|
|
1247
|
-
};
|
|
1248
|
-
}>;
|
|
1313
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
1314
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
1315
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
1316
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
1317
|
+
}, string>;
|
|
1318
|
+
}, string>;
|
|
1319
|
+
lending_market_id: import("@mysten/sui/bcs").BcsStruct<{
|
|
1320
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
1321
|
+
}, string>;
|
|
1322
|
+
}, string>;
|
|
1249
1323
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): LendingMarketOwnerCap<ToPhantomTypeArgument<P>>;
|
|
1250
1324
|
static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, item: FieldsWithTypes): LendingMarketOwnerCap<ToPhantomTypeArgument<P>>;
|
|
1251
1325
|
static fromBcs<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: Uint8Array): LendingMarketOwnerCap<ToPhantomTypeArgument<P>>;
|
|
@@ -1303,49 +1377,30 @@ export declare class LiquidateEvent implements StructClass {
|
|
|
1303
1377
|
static get r(): reified.StructClassReified<LiquidateEvent, LiquidateEventFields>;
|
|
1304
1378
|
static phantom(): PhantomReified<ToTypeStr<LiquidateEvent>>;
|
|
1305
1379
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::LiquidateEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::LiquidateEvent">;
|
|
1306
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
1307
|
-
lending_market_id: string
|
|
1308
|
-
repay_reserve_id: string
|
|
1309
|
-
withdraw_reserve_id: string
|
|
1310
|
-
obligation_id: string
|
|
1311
|
-
repay_coin_type: {
|
|
1312
|
-
name: {
|
|
1313
|
-
bytes: number[]
|
|
1314
|
-
};
|
|
1315
|
-
};
|
|
1316
|
-
withdraw_coin_type: {
|
|
1317
|
-
name: {
|
|
1318
|
-
bytes: number[];
|
|
1319
|
-
};
|
|
1320
|
-
};
|
|
1321
|
-
repay_amount: string;
|
|
1322
|
-
withdraw_amount: string;
|
|
1323
|
-
protocol_fee_amount: string;
|
|
1324
|
-
liquidator_bonus_amount: string;
|
|
1325
|
-
}, {
|
|
1326
|
-
lending_market_id: string;
|
|
1327
|
-
repay_reserve_id: string;
|
|
1328
|
-
withdraw_reserve_id: string;
|
|
1329
|
-
obligation_id: string;
|
|
1330
|
-
repay_coin_type: {
|
|
1331
|
-
name: {
|
|
1332
|
-
bytes: Iterable<number> & {
|
|
1380
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
1381
|
+
lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
1382
|
+
repay_reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
1383
|
+
withdraw_reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
1384
|
+
obligation_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
1385
|
+
repay_coin_type: import("@mysten/sui/bcs").BcsStruct<{
|
|
1386
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
1387
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
1333
1388
|
length: number;
|
|
1334
|
-
}
|
|
1335
|
-
}
|
|
1336
|
-
}
|
|
1337
|
-
withdraw_coin_type: {
|
|
1338
|
-
name: {
|
|
1339
|
-
bytes: Iterable<number> & {
|
|
1389
|
+
}, string>;
|
|
1390
|
+
}, string>;
|
|
1391
|
+
}, string>;
|
|
1392
|
+
withdraw_coin_type: import("@mysten/sui/bcs").BcsStruct<{
|
|
1393
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
1394
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
1340
1395
|
length: number;
|
|
1341
|
-
}
|
|
1342
|
-
}
|
|
1343
|
-
}
|
|
1344
|
-
repay_amount: string | number | bigint
|
|
1345
|
-
withdraw_amount: string | number | bigint
|
|
1346
|
-
protocol_fee_amount: string | number | bigint
|
|
1347
|
-
liquidator_bonus_amount: string | number | bigint
|
|
1348
|
-
}>;
|
|
1396
|
+
}, string>;
|
|
1397
|
+
}, string>;
|
|
1398
|
+
}, string>;
|
|
1399
|
+
repay_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1400
|
+
withdraw_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1401
|
+
protocol_fee_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1402
|
+
liquidator_bonus_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1403
|
+
}, string>;
|
|
1349
1404
|
static fromFields(fields: Record<string, any>): LiquidateEvent;
|
|
1350
1405
|
static fromFieldsWithTypes(item: FieldsWithTypes): LiquidateEvent;
|
|
1351
1406
|
static fromBcs(data: Uint8Array): LiquidateEvent;
|
|
@@ -1411,25 +1466,16 @@ export declare class ObligationOwnerCap<P extends PhantomTypeArgument> implement
|
|
|
1411
1466
|
static get r(): typeof ObligationOwnerCap.reified;
|
|
1412
1467
|
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<ObligationOwnerCap<ToPhantomTypeArgument<P>>>>;
|
|
1413
1468
|
static get p(): typeof ObligationOwnerCap.phantom;
|
|
1414
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
1415
|
-
id: {
|
|
1416
|
-
id: {
|
|
1417
|
-
bytes: string
|
|
1418
|
-
}
|
|
1419
|
-
}
|
|
1420
|
-
obligation_id: {
|
|
1421
|
-
bytes: string
|
|
1422
|
-
}
|
|
1423
|
-
},
|
|
1424
|
-
id: {
|
|
1425
|
-
id: {
|
|
1426
|
-
bytes: string;
|
|
1427
|
-
};
|
|
1428
|
-
};
|
|
1429
|
-
obligation_id: {
|
|
1430
|
-
bytes: string;
|
|
1431
|
-
};
|
|
1432
|
-
}>;
|
|
1469
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
1470
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
1471
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
1472
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
1473
|
+
}, string>;
|
|
1474
|
+
}, string>;
|
|
1475
|
+
obligation_id: import("@mysten/sui/bcs").BcsStruct<{
|
|
1476
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
1477
|
+
}, string>;
|
|
1478
|
+
}, string>;
|
|
1433
1479
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): ObligationOwnerCap<ToPhantomTypeArgument<P>>;
|
|
1434
1480
|
static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, item: FieldsWithTypes): ObligationOwnerCap<ToPhantomTypeArgument<P>>;
|
|
1435
1481
|
static fromBcs<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: Uint8Array): ObligationOwnerCap<ToPhantomTypeArgument<P>>;
|
|
@@ -1469,11 +1515,9 @@ export declare class RateLimiterExemption<P extends PhantomTypeArgument, T exten
|
|
|
1469
1515
|
static get r(): typeof RateLimiterExemption.reified;
|
|
1470
1516
|
static phantom<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): PhantomReified<ToTypeStr<RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>>;
|
|
1471
1517
|
static get p(): typeof RateLimiterExemption.phantom;
|
|
1472
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
1473
|
-
amount: string
|
|
1474
|
-
},
|
|
1475
|
-
amount: string | number | bigint;
|
|
1476
|
-
}>;
|
|
1518
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
1519
|
+
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1520
|
+
}, string>;
|
|
1477
1521
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], fields: Record<string, any>): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
1478
1522
|
static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], item: FieldsWithTypes): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
1479
1523
|
static fromBcs<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], data: Uint8Array): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
|
|
@@ -1519,29 +1563,19 @@ export declare class RepayEvent implements StructClass {
|
|
|
1519
1563
|
static get r(): reified.StructClassReified<RepayEvent, RepayEventFields>;
|
|
1520
1564
|
static phantom(): PhantomReified<ToTypeStr<RepayEvent>>;
|
|
1521
1565
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::RepayEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::RepayEvent">;
|
|
1522
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
1523
|
-
lending_market_id: string
|
|
1524
|
-
coin_type: {
|
|
1525
|
-
name: {
|
|
1526
|
-
bytes: number[]
|
|
1527
|
-
};
|
|
1528
|
-
};
|
|
1529
|
-
reserve_id: string;
|
|
1530
|
-
obligation_id: string;
|
|
1531
|
-
liquidity_amount: string;
|
|
1532
|
-
}, {
|
|
1533
|
-
lending_market_id: string;
|
|
1534
|
-
coin_type: {
|
|
1535
|
-
name: {
|
|
1536
|
-
bytes: Iterable<number> & {
|
|
1566
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
1567
|
+
lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
1568
|
+
coin_type: import("@mysten/sui/bcs").BcsStruct<{
|
|
1569
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
1570
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
1537
1571
|
length: number;
|
|
1538
|
-
}
|
|
1539
|
-
}
|
|
1540
|
-
}
|
|
1541
|
-
reserve_id: string
|
|
1542
|
-
obligation_id: string
|
|
1543
|
-
liquidity_amount: string | number | bigint
|
|
1544
|
-
}>;
|
|
1572
|
+
}, string>;
|
|
1573
|
+
}, string>;
|
|
1574
|
+
}, string>;
|
|
1575
|
+
reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
1576
|
+
obligation_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
1577
|
+
liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1578
|
+
}, string>;
|
|
1545
1579
|
static fromFields(fields: Record<string, any>): RepayEvent;
|
|
1546
1580
|
static fromFieldsWithTypes(item: FieldsWithTypes): RepayEvent;
|
|
1547
1581
|
static fromBcs(data: Uint8Array): RepayEvent;
|
|
@@ -1599,29 +1633,19 @@ export declare class WithdrawEvent implements StructClass {
|
|
|
1599
1633
|
static get r(): reified.StructClassReified<WithdrawEvent, WithdrawEventFields>;
|
|
1600
1634
|
static phantom(): PhantomReified<ToTypeStr<WithdrawEvent>>;
|
|
1601
1635
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::WithdrawEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::WithdrawEvent">;
|
|
1602
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
1603
|
-
lending_market_id: string
|
|
1604
|
-
coin_type: {
|
|
1605
|
-
name: {
|
|
1606
|
-
bytes: number[]
|
|
1607
|
-
};
|
|
1608
|
-
};
|
|
1609
|
-
reserve_id: string;
|
|
1610
|
-
obligation_id: string;
|
|
1611
|
-
ctoken_amount: string;
|
|
1612
|
-
}, {
|
|
1613
|
-
lending_market_id: string;
|
|
1614
|
-
coin_type: {
|
|
1615
|
-
name: {
|
|
1616
|
-
bytes: Iterable<number> & {
|
|
1636
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
1637
|
+
lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
1638
|
+
coin_type: import("@mysten/sui/bcs").BcsStruct<{
|
|
1639
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
1640
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
1617
1641
|
length: number;
|
|
1618
|
-
}
|
|
1619
|
-
}
|
|
1620
|
-
}
|
|
1621
|
-
reserve_id: string
|
|
1622
|
-
obligation_id: string
|
|
1623
|
-
ctoken_amount: string | number | bigint
|
|
1624
|
-
}>;
|
|
1642
|
+
}, string>;
|
|
1643
|
+
}, string>;
|
|
1644
|
+
}, string>;
|
|
1645
|
+
reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
1646
|
+
obligation_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
1647
|
+
ctoken_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
1648
|
+
}, string>;
|
|
1625
1649
|
static fromFields(fields: Record<string, any>): WithdrawEvent;
|
|
1626
1650
|
static fromFieldsWithTypes(item: FieldsWithTypes): WithdrawEvent;
|
|
1627
1651
|
static fromBcs(data: Uint8Array): WithdrawEvent;
|