@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
|
@@ -38,43 +38,26 @@ export declare class Borrow implements StructClass {
|
|
|
38
38
|
static get r(): reified.StructClassReified<Borrow, BorrowFields>;
|
|
39
39
|
static phantom(): PhantomReified<ToTypeStr<Borrow>>;
|
|
40
40
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::obligation::Borrow" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::Borrow">;
|
|
41
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
42
|
-
coin_type: {
|
|
43
|
-
name: {
|
|
44
|
-
bytes: number[]
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
reserve_array_index: string;
|
|
48
|
-
borrowed_amount: {
|
|
49
|
-
value: string;
|
|
50
|
-
};
|
|
51
|
-
cumulative_borrow_rate: {
|
|
52
|
-
value: string;
|
|
53
|
-
};
|
|
54
|
-
market_value: {
|
|
55
|
-
value: string;
|
|
56
|
-
};
|
|
57
|
-
user_reward_manager_index: string;
|
|
58
|
-
}, {
|
|
59
|
-
coin_type: {
|
|
60
|
-
name: {
|
|
61
|
-
bytes: Iterable<number> & {
|
|
41
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
42
|
+
coin_type: import("@mysten/sui/bcs").BcsStruct<{
|
|
43
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
44
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
62
45
|
length: number;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
reserve_array_index: string | number | bigint
|
|
67
|
-
borrowed_amount: {
|
|
68
|
-
value: string | number | bigint
|
|
69
|
-
}
|
|
70
|
-
cumulative_borrow_rate: {
|
|
71
|
-
value: string | number | bigint
|
|
72
|
-
}
|
|
73
|
-
market_value: {
|
|
74
|
-
value: string | number | bigint
|
|
75
|
-
}
|
|
76
|
-
user_reward_manager_index: string | number | bigint
|
|
77
|
-
}>;
|
|
46
|
+
}, string>;
|
|
47
|
+
}, string>;
|
|
48
|
+
}, string>;
|
|
49
|
+
reserve_array_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
50
|
+
borrowed_amount: import("@mysten/sui/bcs").BcsStruct<{
|
|
51
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
52
|
+
}, string>;
|
|
53
|
+
cumulative_borrow_rate: import("@mysten/sui/bcs").BcsStruct<{
|
|
54
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
55
|
+
}, string>;
|
|
56
|
+
market_value: import("@mysten/sui/bcs").BcsStruct<{
|
|
57
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
58
|
+
}, string>;
|
|
59
|
+
user_reward_manager_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
60
|
+
}, string>;
|
|
78
61
|
static fromFields(fields: Record<string, any>): Borrow;
|
|
79
62
|
static fromFieldsWithTypes(item: FieldsWithTypes): Borrow;
|
|
80
63
|
static fromBcs(data: Uint8Array): Borrow;
|
|
@@ -148,43 +131,26 @@ export declare class BorrowRecord implements StructClass {
|
|
|
148
131
|
static get r(): reified.StructClassReified<BorrowRecord, BorrowRecordFields>;
|
|
149
132
|
static phantom(): PhantomReified<ToTypeStr<BorrowRecord>>;
|
|
150
133
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::obligation::BorrowRecord" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::BorrowRecord">;
|
|
151
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
152
|
-
coin_type: {
|
|
153
|
-
name: {
|
|
154
|
-
bytes: number[]
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
reserve_array_index: string;
|
|
158
|
-
borrowed_amount: {
|
|
159
|
-
value: string;
|
|
160
|
-
};
|
|
161
|
-
cumulative_borrow_rate: {
|
|
162
|
-
value: string;
|
|
163
|
-
};
|
|
164
|
-
market_value: {
|
|
165
|
-
value: string;
|
|
166
|
-
};
|
|
167
|
-
user_reward_manager_index: string;
|
|
168
|
-
}, {
|
|
169
|
-
coin_type: {
|
|
170
|
-
name: {
|
|
171
|
-
bytes: Iterable<number> & {
|
|
134
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
135
|
+
coin_type: import("@mysten/sui/bcs").BcsStruct<{
|
|
136
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
137
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
172
138
|
length: number;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
reserve_array_index: string | number | bigint
|
|
177
|
-
borrowed_amount: {
|
|
178
|
-
value: string | number | bigint
|
|
179
|
-
}
|
|
180
|
-
cumulative_borrow_rate: {
|
|
181
|
-
value: string | number | bigint
|
|
182
|
-
}
|
|
183
|
-
market_value: {
|
|
184
|
-
value: string | number | bigint
|
|
185
|
-
}
|
|
186
|
-
user_reward_manager_index: string | number | bigint
|
|
187
|
-
}>;
|
|
139
|
+
}, string>;
|
|
140
|
+
}, string>;
|
|
141
|
+
}, string>;
|
|
142
|
+
reserve_array_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
143
|
+
borrowed_amount: import("@mysten/sui/bcs").BcsStruct<{
|
|
144
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
145
|
+
}, string>;
|
|
146
|
+
cumulative_borrow_rate: import("@mysten/sui/bcs").BcsStruct<{
|
|
147
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
148
|
+
}, string>;
|
|
149
|
+
market_value: import("@mysten/sui/bcs").BcsStruct<{
|
|
150
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
151
|
+
}, string>;
|
|
152
|
+
user_reward_manager_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
153
|
+
}, string>;
|
|
188
154
|
static fromFields(fields: Record<string, any>): BorrowRecord;
|
|
189
155
|
static fromFieldsWithTypes(item: FieldsWithTypes): BorrowRecord;
|
|
190
156
|
static fromBcs(data: Uint8Array): BorrowRecord;
|
|
@@ -258,39 +224,24 @@ export declare class Deposit implements StructClass {
|
|
|
258
224
|
static get r(): reified.StructClassReified<Deposit, DepositFields>;
|
|
259
225
|
static phantom(): PhantomReified<ToTypeStr<Deposit>>;
|
|
260
226
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::obligation::Deposit" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::Deposit">;
|
|
261
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
262
|
-
coin_type: {
|
|
263
|
-
name: {
|
|
264
|
-
bytes: number[]
|
|
265
|
-
};
|
|
266
|
-
};
|
|
267
|
-
reserve_array_index: string;
|
|
268
|
-
deposited_ctoken_amount: string;
|
|
269
|
-
market_value: {
|
|
270
|
-
value: string;
|
|
271
|
-
};
|
|
272
|
-
user_reward_manager_index: string;
|
|
273
|
-
attributed_borrow_value: {
|
|
274
|
-
value: string;
|
|
275
|
-
};
|
|
276
|
-
}, {
|
|
277
|
-
coin_type: {
|
|
278
|
-
name: {
|
|
279
|
-
bytes: Iterable<number> & {
|
|
227
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
228
|
+
coin_type: import("@mysten/sui/bcs").BcsStruct<{
|
|
229
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
230
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
280
231
|
length: number;
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
reserve_array_index: string | number | bigint
|
|
285
|
-
deposited_ctoken_amount: string | number | bigint
|
|
286
|
-
market_value: {
|
|
287
|
-
value: string | number | bigint
|
|
288
|
-
}
|
|
289
|
-
user_reward_manager_index: string | number | bigint
|
|
290
|
-
attributed_borrow_value: {
|
|
291
|
-
value: string | number | bigint
|
|
292
|
-
}
|
|
293
|
-
}>;
|
|
232
|
+
}, string>;
|
|
233
|
+
}, string>;
|
|
234
|
+
}, string>;
|
|
235
|
+
reserve_array_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
236
|
+
deposited_ctoken_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
237
|
+
market_value: import("@mysten/sui/bcs").BcsStruct<{
|
|
238
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
239
|
+
}, string>;
|
|
240
|
+
user_reward_manager_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
241
|
+
attributed_borrow_value: import("@mysten/sui/bcs").BcsStruct<{
|
|
242
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
243
|
+
}, string>;
|
|
244
|
+
}, string>;
|
|
294
245
|
static fromFields(fields: Record<string, any>): Deposit;
|
|
295
246
|
static fromFieldsWithTypes(item: FieldsWithTypes): Deposit;
|
|
296
247
|
static fromBcs(data: Uint8Array): Deposit;
|
|
@@ -360,39 +311,24 @@ export declare class DepositRecord implements StructClass {
|
|
|
360
311
|
static get r(): reified.StructClassReified<DepositRecord, DepositRecordFields>;
|
|
361
312
|
static phantom(): PhantomReified<ToTypeStr<DepositRecord>>;
|
|
362
313
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::obligation::DepositRecord" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::DepositRecord">;
|
|
363
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
364
|
-
coin_type: {
|
|
365
|
-
name: {
|
|
366
|
-
bytes: number[]
|
|
367
|
-
};
|
|
368
|
-
};
|
|
369
|
-
reserve_array_index: string;
|
|
370
|
-
deposited_ctoken_amount: string;
|
|
371
|
-
market_value: {
|
|
372
|
-
value: string;
|
|
373
|
-
};
|
|
374
|
-
user_reward_manager_index: string;
|
|
375
|
-
attributed_borrow_value: {
|
|
376
|
-
value: string;
|
|
377
|
-
};
|
|
378
|
-
}, {
|
|
379
|
-
coin_type: {
|
|
380
|
-
name: {
|
|
381
|
-
bytes: Iterable<number> & {
|
|
314
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
315
|
+
coin_type: import("@mysten/sui/bcs").BcsStruct<{
|
|
316
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
317
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
382
318
|
length: number;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
reserve_array_index: string | number | bigint
|
|
387
|
-
deposited_ctoken_amount: string | number | bigint
|
|
388
|
-
market_value: {
|
|
389
|
-
value: string | number | bigint
|
|
390
|
-
}
|
|
391
|
-
user_reward_manager_index: string | number | bigint
|
|
392
|
-
attributed_borrow_value: {
|
|
393
|
-
value: string | number | bigint
|
|
394
|
-
}
|
|
395
|
-
}>;
|
|
319
|
+
}, string>;
|
|
320
|
+
}, string>;
|
|
321
|
+
}, string>;
|
|
322
|
+
reserve_array_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
323
|
+
deposited_ctoken_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
324
|
+
market_value: import("@mysten/sui/bcs").BcsStruct<{
|
|
325
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
326
|
+
}, string>;
|
|
327
|
+
user_reward_manager_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
328
|
+
attributed_borrow_value: import("@mysten/sui/bcs").BcsStruct<{
|
|
329
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
330
|
+
}, string>;
|
|
331
|
+
}, string>;
|
|
396
332
|
static fromFields(fields: Record<string, any>): DepositRecord;
|
|
397
333
|
static fromFieldsWithTypes(item: FieldsWithTypes): DepositRecord;
|
|
398
334
|
static fromBcs(data: Uint8Array): DepositRecord;
|
|
@@ -452,11 +388,9 @@ export declare class ExistStaleOracles implements StructClass {
|
|
|
452
388
|
static get r(): reified.StructClassReified<ExistStaleOracles, ExistStaleOraclesFields>;
|
|
453
389
|
static phantom(): PhantomReified<ToTypeStr<ExistStaleOracles>>;
|
|
454
390
|
static get p(): reified.PhantomReified<"0xe5ed361add4433f4d23e56fc0e3bacab39b93592d5e65d508e33fd19ff696669::obligation::ExistStaleOracles" | "0xd2a67633ccb8de063163e25bcfca242929caf5cf1a26c2929dab519ee0b8f331::obligation::ExistStaleOracles">;
|
|
455
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
456
|
-
dummy_field: boolean
|
|
457
|
-
},
|
|
458
|
-
dummy_field: boolean;
|
|
459
|
-
}>;
|
|
391
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
392
|
+
dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
393
|
+
}, string>;
|
|
460
394
|
static fromFields(fields: Record<string, any>): ExistStaleOracles;
|
|
461
395
|
static fromFieldsWithTypes(item: FieldsWithTypes): ExistStaleOracles;
|
|
462
396
|
static fromBcs(data: Uint8Array): ExistStaleOracles;
|
|
@@ -522,16 +456,16 @@ export declare class Obligation<P extends PhantomTypeArgument> implements Struct
|
|
|
522
456
|
static get r(): typeof Obligation.reified;
|
|
523
457
|
static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<Obligation<ToPhantomTypeArgument<P>>>>;
|
|
524
458
|
static get p(): typeof Obligation.phantom;
|
|
525
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
526
|
-
id: {
|
|
527
|
-
id: {
|
|
528
|
-
bytes: string
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
lending_market_id: {
|
|
532
|
-
bytes: string
|
|
533
|
-
}
|
|
534
|
-
deposits: {
|
|
459
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
460
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
461
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
462
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
463
|
+
}, string>;
|
|
464
|
+
}, string>;
|
|
465
|
+
lending_market_id: import("@mysten/sui/bcs").BcsStruct<{
|
|
466
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
467
|
+
}, string>;
|
|
468
|
+
deposits: import("@mysten/sui/bcs").BcsType<{
|
|
535
469
|
coin_type: {
|
|
536
470
|
name: {
|
|
537
471
|
bytes: number[];
|
|
@@ -546,71 +480,7 @@ export declare class Obligation<P extends PhantomTypeArgument> implements Struct
|
|
|
546
480
|
attributed_borrow_value: {
|
|
547
481
|
value: string;
|
|
548
482
|
};
|
|
549
|
-
}[]
|
|
550
|
-
borrows: {
|
|
551
|
-
coin_type: {
|
|
552
|
-
name: {
|
|
553
|
-
bytes: number[];
|
|
554
|
-
};
|
|
555
|
-
};
|
|
556
|
-
reserve_array_index: string;
|
|
557
|
-
borrowed_amount: {
|
|
558
|
-
value: string;
|
|
559
|
-
};
|
|
560
|
-
cumulative_borrow_rate: {
|
|
561
|
-
value: string;
|
|
562
|
-
};
|
|
563
|
-
market_value: {
|
|
564
|
-
value: string;
|
|
565
|
-
};
|
|
566
|
-
user_reward_manager_index: string;
|
|
567
|
-
}[];
|
|
568
|
-
deposited_value_usd: {
|
|
569
|
-
value: string;
|
|
570
|
-
};
|
|
571
|
-
allowed_borrow_value_usd: {
|
|
572
|
-
value: string;
|
|
573
|
-
};
|
|
574
|
-
unhealthy_borrow_value_usd: {
|
|
575
|
-
value: string;
|
|
576
|
-
};
|
|
577
|
-
super_unhealthy_borrow_value_usd: {
|
|
578
|
-
value: string;
|
|
579
|
-
};
|
|
580
|
-
unweighted_borrowed_value_usd: {
|
|
581
|
-
value: string;
|
|
582
|
-
};
|
|
583
|
-
weighted_borrowed_value_usd: {
|
|
584
|
-
value: string;
|
|
585
|
-
};
|
|
586
|
-
weighted_borrowed_value_upper_bound_usd: {
|
|
587
|
-
value: string;
|
|
588
|
-
};
|
|
589
|
-
borrowing_isolated_asset: boolean;
|
|
590
|
-
user_reward_managers: {
|
|
591
|
-
pool_reward_manager_id: {
|
|
592
|
-
bytes: string;
|
|
593
|
-
};
|
|
594
|
-
share: string;
|
|
595
|
-
rewards: {
|
|
596
|
-
vec: any[];
|
|
597
|
-
}[];
|
|
598
|
-
last_update_time_ms: string;
|
|
599
|
-
}[];
|
|
600
|
-
bad_debt_usd: {
|
|
601
|
-
value: string;
|
|
602
|
-
};
|
|
603
|
-
closable: boolean;
|
|
604
|
-
}, {
|
|
605
|
-
id: {
|
|
606
|
-
id: {
|
|
607
|
-
bytes: string;
|
|
608
|
-
};
|
|
609
|
-
};
|
|
610
|
-
lending_market_id: {
|
|
611
|
-
bytes: string;
|
|
612
|
-
};
|
|
613
|
-
deposits: Iterable<{
|
|
483
|
+
}[], Iterable<{
|
|
614
484
|
coin_type: {
|
|
615
485
|
name: {
|
|
616
486
|
bytes: Iterable<number> & {
|
|
@@ -629,8 +499,25 @@ export declare class Obligation<P extends PhantomTypeArgument> implements Struct
|
|
|
629
499
|
};
|
|
630
500
|
}> & {
|
|
631
501
|
length: number;
|
|
632
|
-
}
|
|
633
|
-
borrows:
|
|
502
|
+
}, string>;
|
|
503
|
+
borrows: import("@mysten/sui/bcs").BcsType<{
|
|
504
|
+
coin_type: {
|
|
505
|
+
name: {
|
|
506
|
+
bytes: number[];
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
reserve_array_index: string;
|
|
510
|
+
borrowed_amount: {
|
|
511
|
+
value: string;
|
|
512
|
+
};
|
|
513
|
+
cumulative_borrow_rate: {
|
|
514
|
+
value: string;
|
|
515
|
+
};
|
|
516
|
+
market_value: {
|
|
517
|
+
value: string;
|
|
518
|
+
};
|
|
519
|
+
user_reward_manager_index: string;
|
|
520
|
+
}[], Iterable<{
|
|
634
521
|
coin_type: {
|
|
635
522
|
name: {
|
|
636
523
|
bytes: Iterable<number> & {
|
|
@@ -651,36 +538,65 @@ export declare class Obligation<P extends PhantomTypeArgument> implements Struct
|
|
|
651
538
|
user_reward_manager_index: string | number | bigint;
|
|
652
539
|
}> & {
|
|
653
540
|
length: number;
|
|
654
|
-
}
|
|
655
|
-
deposited_value_usd: {
|
|
656
|
-
value: string | number | bigint
|
|
657
|
-
}
|
|
658
|
-
allowed_borrow_value_usd: {
|
|
659
|
-
value: string | number | bigint
|
|
660
|
-
}
|
|
661
|
-
unhealthy_borrow_value_usd: {
|
|
662
|
-
value: string | number | bigint
|
|
663
|
-
}
|
|
664
|
-
super_unhealthy_borrow_value_usd: {
|
|
665
|
-
value: string | number | bigint
|
|
666
|
-
}
|
|
667
|
-
unweighted_borrowed_value_usd: {
|
|
668
|
-
value: string | number | bigint
|
|
669
|
-
}
|
|
670
|
-
weighted_borrowed_value_usd: {
|
|
671
|
-
value: string | number | bigint
|
|
672
|
-
}
|
|
673
|
-
weighted_borrowed_value_upper_bound_usd: {
|
|
674
|
-
value: string | number | bigint
|
|
675
|
-
}
|
|
676
|
-
borrowing_isolated_asset: boolean
|
|
677
|
-
user_reward_managers:
|
|
541
|
+
}, string>;
|
|
542
|
+
deposited_value_usd: import("@mysten/sui/bcs").BcsStruct<{
|
|
543
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
544
|
+
}, string>;
|
|
545
|
+
allowed_borrow_value_usd: import("@mysten/sui/bcs").BcsStruct<{
|
|
546
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
547
|
+
}, string>;
|
|
548
|
+
unhealthy_borrow_value_usd: import("@mysten/sui/bcs").BcsStruct<{
|
|
549
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
550
|
+
}, string>;
|
|
551
|
+
super_unhealthy_borrow_value_usd: import("@mysten/sui/bcs").BcsStruct<{
|
|
552
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
553
|
+
}, string>;
|
|
554
|
+
unweighted_borrowed_value_usd: import("@mysten/sui/bcs").BcsStruct<{
|
|
555
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
556
|
+
}, string>;
|
|
557
|
+
weighted_borrowed_value_usd: import("@mysten/sui/bcs").BcsStruct<{
|
|
558
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
559
|
+
}, string>;
|
|
560
|
+
weighted_borrowed_value_upper_bound_usd: import("@mysten/sui/bcs").BcsStruct<{
|
|
561
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
562
|
+
}, string>;
|
|
563
|
+
borrowing_isolated_asset: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
564
|
+
user_reward_managers: import("@mysten/sui/bcs").BcsType<{
|
|
565
|
+
pool_reward_manager_id: {
|
|
566
|
+
bytes: string;
|
|
567
|
+
};
|
|
568
|
+
share: string;
|
|
569
|
+
rewards: {
|
|
570
|
+
vec: {
|
|
571
|
+
pool_reward_id: {
|
|
572
|
+
bytes: string;
|
|
573
|
+
};
|
|
574
|
+
earned_rewards: {
|
|
575
|
+
value: string;
|
|
576
|
+
};
|
|
577
|
+
cumulative_rewards_per_share: {
|
|
578
|
+
value: string;
|
|
579
|
+
};
|
|
580
|
+
}[];
|
|
581
|
+
}[];
|
|
582
|
+
last_update_time_ms: string;
|
|
583
|
+
}[], Iterable<{
|
|
678
584
|
pool_reward_manager_id: {
|
|
679
585
|
bytes: string;
|
|
680
586
|
};
|
|
681
587
|
share: string | number | bigint;
|
|
682
588
|
rewards: Iterable<{
|
|
683
|
-
vec: Iterable<
|
|
589
|
+
vec: Iterable<{
|
|
590
|
+
pool_reward_id: {
|
|
591
|
+
bytes: string;
|
|
592
|
+
};
|
|
593
|
+
earned_rewards: {
|
|
594
|
+
value: string | number | bigint;
|
|
595
|
+
};
|
|
596
|
+
cumulative_rewards_per_share: {
|
|
597
|
+
value: string | number | bigint;
|
|
598
|
+
};
|
|
599
|
+
}> & {
|
|
684
600
|
length: number;
|
|
685
601
|
};
|
|
686
602
|
}> & {
|
|
@@ -689,12 +605,12 @@ export declare class Obligation<P extends PhantomTypeArgument> implements Struct
|
|
|
689
605
|
last_update_time_ms: string | number | bigint;
|
|
690
606
|
}> & {
|
|
691
607
|
length: number;
|
|
692
|
-
}
|
|
693
|
-
bad_debt_usd: {
|
|
694
|
-
value: string | number | bigint
|
|
695
|
-
}
|
|
696
|
-
closable: boolean
|
|
697
|
-
}>;
|
|
608
|
+
}, string>;
|
|
609
|
+
bad_debt_usd: import("@mysten/sui/bcs").BcsStruct<{
|
|
610
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
611
|
+
}, string>;
|
|
612
|
+
closable: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
613
|
+
}, string>;
|
|
698
614
|
static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): Obligation<ToPhantomTypeArgument<P>>;
|
|
699
615
|
static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, item: FieldsWithTypes): Obligation<ToPhantomTypeArgument<P>>;
|
|
700
616
|
static fromBcs<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: Uint8Array): Obligation<ToPhantomTypeArgument<P>>;
|
|
@@ -900,10 +816,10 @@ export declare class ObligationDataEvent implements StructClass {
|
|
|
900
816
|
static get r(): reified.StructClassReified<ObligationDataEvent, ObligationDataEventFields>;
|
|
901
817
|
static phantom(): PhantomReified<ToTypeStr<ObligationDataEvent>>;
|
|
902
818
|
static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::obligation::ObligationDataEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::ObligationDataEvent">;
|
|
903
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
904
|
-
lending_market_id: string
|
|
905
|
-
obligation_id: string
|
|
906
|
-
deposits: {
|
|
819
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
820
|
+
lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
821
|
+
obligation_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
822
|
+
deposits: import("@mysten/sui/bcs").BcsType<{
|
|
907
823
|
coin_type: {
|
|
908
824
|
name: {
|
|
909
825
|
bytes: number[];
|
|
@@ -918,55 +834,7 @@ export declare class ObligationDataEvent implements StructClass {
|
|
|
918
834
|
attributed_borrow_value: {
|
|
919
835
|
value: string;
|
|
920
836
|
};
|
|
921
|
-
}[]
|
|
922
|
-
borrows: {
|
|
923
|
-
coin_type: {
|
|
924
|
-
name: {
|
|
925
|
-
bytes: number[];
|
|
926
|
-
};
|
|
927
|
-
};
|
|
928
|
-
reserve_array_index: string;
|
|
929
|
-
borrowed_amount: {
|
|
930
|
-
value: string;
|
|
931
|
-
};
|
|
932
|
-
cumulative_borrow_rate: {
|
|
933
|
-
value: string;
|
|
934
|
-
};
|
|
935
|
-
market_value: {
|
|
936
|
-
value: string;
|
|
937
|
-
};
|
|
938
|
-
user_reward_manager_index: string;
|
|
939
|
-
}[];
|
|
940
|
-
deposited_value_usd: {
|
|
941
|
-
value: string;
|
|
942
|
-
};
|
|
943
|
-
allowed_borrow_value_usd: {
|
|
944
|
-
value: string;
|
|
945
|
-
};
|
|
946
|
-
unhealthy_borrow_value_usd: {
|
|
947
|
-
value: string;
|
|
948
|
-
};
|
|
949
|
-
super_unhealthy_borrow_value_usd: {
|
|
950
|
-
value: string;
|
|
951
|
-
};
|
|
952
|
-
unweighted_borrowed_value_usd: {
|
|
953
|
-
value: string;
|
|
954
|
-
};
|
|
955
|
-
weighted_borrowed_value_usd: {
|
|
956
|
-
value: string;
|
|
957
|
-
};
|
|
958
|
-
weighted_borrowed_value_upper_bound_usd: {
|
|
959
|
-
value: string;
|
|
960
|
-
};
|
|
961
|
-
borrowing_isolated_asset: boolean;
|
|
962
|
-
bad_debt_usd: {
|
|
963
|
-
value: string;
|
|
964
|
-
};
|
|
965
|
-
closable: boolean;
|
|
966
|
-
}, {
|
|
967
|
-
lending_market_id: string;
|
|
968
|
-
obligation_id: string;
|
|
969
|
-
deposits: Iterable<{
|
|
837
|
+
}[], Iterable<{
|
|
970
838
|
coin_type: {
|
|
971
839
|
name: {
|
|
972
840
|
bytes: Iterable<number> & {
|
|
@@ -985,8 +853,25 @@ export declare class ObligationDataEvent implements StructClass {
|
|
|
985
853
|
};
|
|
986
854
|
}> & {
|
|
987
855
|
length: number;
|
|
988
|
-
}
|
|
989
|
-
borrows:
|
|
856
|
+
}, string>;
|
|
857
|
+
borrows: import("@mysten/sui/bcs").BcsType<{
|
|
858
|
+
coin_type: {
|
|
859
|
+
name: {
|
|
860
|
+
bytes: number[];
|
|
861
|
+
};
|
|
862
|
+
};
|
|
863
|
+
reserve_array_index: string;
|
|
864
|
+
borrowed_amount: {
|
|
865
|
+
value: string;
|
|
866
|
+
};
|
|
867
|
+
cumulative_borrow_rate: {
|
|
868
|
+
value: string;
|
|
869
|
+
};
|
|
870
|
+
market_value: {
|
|
871
|
+
value: string;
|
|
872
|
+
};
|
|
873
|
+
user_reward_manager_index: string;
|
|
874
|
+
}[], Iterable<{
|
|
990
875
|
coin_type: {
|
|
991
876
|
name: {
|
|
992
877
|
bytes: Iterable<number> & {
|
|
@@ -1007,34 +892,34 @@ export declare class ObligationDataEvent implements StructClass {
|
|
|
1007
892
|
user_reward_manager_index: string | number | bigint;
|
|
1008
893
|
}> & {
|
|
1009
894
|
length: number;
|
|
1010
|
-
}
|
|
1011
|
-
deposited_value_usd: {
|
|
1012
|
-
value: string | number | bigint
|
|
1013
|
-
}
|
|
1014
|
-
allowed_borrow_value_usd: {
|
|
1015
|
-
value: string | number | bigint
|
|
1016
|
-
}
|
|
1017
|
-
unhealthy_borrow_value_usd: {
|
|
1018
|
-
value: string | number | bigint
|
|
1019
|
-
}
|
|
1020
|
-
super_unhealthy_borrow_value_usd: {
|
|
1021
|
-
value: string | number | bigint
|
|
1022
|
-
}
|
|
1023
|
-
unweighted_borrowed_value_usd: {
|
|
1024
|
-
value: string | number | bigint
|
|
1025
|
-
}
|
|
1026
|
-
weighted_borrowed_value_usd: {
|
|
1027
|
-
value: string | number | bigint
|
|
1028
|
-
}
|
|
1029
|
-
weighted_borrowed_value_upper_bound_usd: {
|
|
1030
|
-
value: string | number | bigint
|
|
1031
|
-
}
|
|
1032
|
-
borrowing_isolated_asset: boolean
|
|
1033
|
-
bad_debt_usd: {
|
|
1034
|
-
value: string | number | bigint
|
|
1035
|
-
}
|
|
1036
|
-
closable: boolean
|
|
1037
|
-
}>;
|
|
895
|
+
}, string>;
|
|
896
|
+
deposited_value_usd: import("@mysten/sui/bcs").BcsStruct<{
|
|
897
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
898
|
+
}, string>;
|
|
899
|
+
allowed_borrow_value_usd: import("@mysten/sui/bcs").BcsStruct<{
|
|
900
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
901
|
+
}, string>;
|
|
902
|
+
unhealthy_borrow_value_usd: import("@mysten/sui/bcs").BcsStruct<{
|
|
903
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
904
|
+
}, string>;
|
|
905
|
+
super_unhealthy_borrow_value_usd: import("@mysten/sui/bcs").BcsStruct<{
|
|
906
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
907
|
+
}, string>;
|
|
908
|
+
unweighted_borrowed_value_usd: import("@mysten/sui/bcs").BcsStruct<{
|
|
909
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
910
|
+
}, string>;
|
|
911
|
+
weighted_borrowed_value_usd: import("@mysten/sui/bcs").BcsStruct<{
|
|
912
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
913
|
+
}, string>;
|
|
914
|
+
weighted_borrowed_value_upper_bound_usd: import("@mysten/sui/bcs").BcsStruct<{
|
|
915
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
916
|
+
}, string>;
|
|
917
|
+
borrowing_isolated_asset: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
918
|
+
bad_debt_usd: import("@mysten/sui/bcs").BcsStruct<{
|
|
919
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
920
|
+
}, string>;
|
|
921
|
+
closable: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
922
|
+
}, string>;
|
|
1038
923
|
static fromFields(fields: Record<string, any>): ObligationDataEvent;
|
|
1039
924
|
static fromFieldsWithTypes(item: FieldsWithTypes): ObligationDataEvent;
|
|
1040
925
|
static fromBcs(data: Uint8Array): ObligationDataEvent;
|