@suilend/sdk 3.0.8 → 5.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.
Files changed (73) hide show
  1. package/_generated/_dependencies/source/0x1/ascii/structs.d.ts +4 -4
  2. package/_generated/_dependencies/source/0x1/ascii/structs.js +42 -41
  3. package/_generated/_dependencies/source/0x1/option/structs.js +22 -26
  4. package/_generated/_dependencies/source/0x1/type-name/structs.d.ts +3 -3
  5. package/_generated/_dependencies/source/0x1/type-name/structs.js +21 -25
  6. package/_generated/_dependencies/source/0x2/bag/structs.d.ts +5 -5
  7. package/_generated/_dependencies/source/0x2/bag/structs.js +22 -25
  8. package/_generated/_dependencies/source/0x2/balance/structs.d.ts +4 -4
  9. package/_generated/_dependencies/source/0x2/balance/structs.js +42 -41
  10. package/_generated/_dependencies/source/0x2/object/structs.d.ts +5 -5
  11. package/_generated/_dependencies/source/0x2/object/structs.js +42 -41
  12. package/_generated/_dependencies/source/0x2/object-table/structs.d.ts +5 -5
  13. package/_generated/_dependencies/source/0x2/object-table/structs.js +22 -25
  14. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/i64/structs.d.ts +3 -3
  15. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/i64/structs.js +22 -25
  16. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price/structs.d.ts +9 -9
  17. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price/structs.js +24 -25
  18. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-feed/structs.d.ts +21 -21
  19. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-feed/structs.js +23 -25
  20. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-identifier/structs.d.ts +2 -2
  21. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-identifier/structs.js +21 -25
  22. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-info/structs.d.ts +52 -52
  23. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-info/structs.js +45 -41
  24. package/_generated/_framework/vector.js +9 -6
  25. package/_generated/suilend/cell/structs.d.ts +1 -1
  26. package/_generated/suilend/cell/structs.js +21 -25
  27. package/_generated/suilend/decimal/structs.d.ts +2 -2
  28. package/_generated/suilend/decimal/structs.js +21 -25
  29. package/_generated/suilend/lending-market/structs.d.ts +129 -129
  30. package/_generated/suilend/lending-market/structs.js +391 -265
  31. package/_generated/suilend/liquidity-mining/structs.d.ts +44 -44
  32. package/_generated/suilend/liquidity-mining/structs.js +122 -89
  33. package/_generated/suilend/obligation/structs.d.ts +98 -98
  34. package/_generated/suilend/obligation/structs.js +194 -121
  35. package/_generated/suilend/rate-limiter/structs.d.ts +12 -12
  36. package/_generated/suilend/rate-limiter/structs.js +46 -41
  37. package/_generated/suilend/reserve/structs.d.ts +128 -128
  38. package/_generated/suilend/reserve/structs.js +243 -153
  39. package/_generated/suilend/reserve-config/structs.d.ts +30 -30
  40. package/_generated/suilend/reserve-config/structs.js +60 -41
  41. package/api/events.js +5 -14
  42. package/client.js +267 -319
  43. package/lib/initialize.d.ts +85 -3
  44. package/lib/initialize.js +119 -52
  45. package/lib/liquidityMining.js +15 -19
  46. package/lib/pyth.d.ts +16 -0
  47. package/lib/pyth.js +30 -15
  48. package/lib/pythAdapter.js +96 -112
  49. package/lib/strategyOwnerCap.js +8 -17
  50. package/margin/margin/admin_cap.d.ts +2 -2
  51. package/margin/margin/deps/std/type_name.d.ts +1 -1
  52. package/margin/margin/deps/suilend/lending_market.d.ts +2 -2
  53. package/margin/margin/market.d.ts +11 -11
  54. package/margin/margin/market.js +22 -22
  55. package/margin/margin/permissions.js +14 -14
  56. package/margin/margin/position.d.ts +47 -47
  57. package/margin/margin/position.js +10 -10
  58. package/margin/margin/router.d.ts +5 -5
  59. package/margin/margin/router.js +16 -16
  60. package/margin/margin/version.d.ts +1 -1
  61. package/margin/utils/index.js +22 -36
  62. package/package.json +1 -1
  63. package/parsers/apiReserveAssetDataEvent.js +4 -1
  64. package/parsers/lendingMarket.js +3 -4
  65. package/parsers/reserve.js +4 -1
  66. package/strategies.js +188 -204
  67. package/swap/quote.d.ts +1 -1
  68. package/swap/quote.js +28 -39
  69. package/swap/transaction.js +17 -26
  70. package/utils/events.js +20 -32
  71. package/utils/obligation.js +111 -135
  72. package/utils/simulate.d.ts +68 -1
  73. package/utils/simulate.js +149 -31
@@ -38,25 +38,25 @@ 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").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> & {
41
+ static get bcs(): import("@mysten/bcs").BcsStruct<{
42
+ coin_type: import("@mysten/bcs").BcsStruct<{
43
+ name: import("@mysten/bcs").BcsStruct<{
44
+ bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
45
45
  length: number;
46
46
  }, string>;
47
47
  }, string>;
48
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">;
49
+ reserve_array_index: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
50
+ borrowed_amount: import("@mysten/bcs").BcsStruct<{
51
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
52
52
  }, string>;
53
- cumulative_borrow_rate: import("@mysten/sui/bcs").BcsStruct<{
54
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
53
+ cumulative_borrow_rate: import("@mysten/bcs").BcsStruct<{
54
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
55
55
  }, string>;
56
- market_value: import("@mysten/sui/bcs").BcsStruct<{
57
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
56
+ market_value: import("@mysten/bcs").BcsStruct<{
57
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
58
58
  }, string>;
59
- user_reward_manager_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
59
+ user_reward_manager_index: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
60
60
  }, string>;
61
61
  static fromFields(fields: Record<string, any>): Borrow;
62
62
  static fromFieldsWithTypes(item: FieldsWithTypes): Borrow;
@@ -129,25 +129,25 @@ export declare class BorrowRecord implements StructClass {
129
129
  static get r(): reified.StructClassReified<BorrowRecord, BorrowRecordFields>;
130
130
  static phantom(): PhantomReified<ToTypeStr<BorrowRecord>>;
131
131
  static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::obligation::BorrowRecord" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::BorrowRecord">;
132
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
133
- coin_type: import("@mysten/sui/bcs").BcsStruct<{
134
- name: import("@mysten/sui/bcs").BcsStruct<{
135
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
132
+ static get bcs(): import("@mysten/bcs").BcsStruct<{
133
+ coin_type: import("@mysten/bcs").BcsStruct<{
134
+ name: import("@mysten/bcs").BcsStruct<{
135
+ bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
136
136
  length: number;
137
137
  }, string>;
138
138
  }, string>;
139
139
  }, string>;
140
- reserve_array_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
141
- borrowed_amount: import("@mysten/sui/bcs").BcsStruct<{
142
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
140
+ reserve_array_index: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
141
+ borrowed_amount: import("@mysten/bcs").BcsStruct<{
142
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
143
143
  }, string>;
144
- cumulative_borrow_rate: import("@mysten/sui/bcs").BcsStruct<{
145
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
144
+ cumulative_borrow_rate: import("@mysten/bcs").BcsStruct<{
145
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
146
146
  }, string>;
147
- market_value: import("@mysten/sui/bcs").BcsStruct<{
148
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
147
+ market_value: import("@mysten/bcs").BcsStruct<{
148
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
149
149
  }, string>;
150
- user_reward_manager_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
150
+ user_reward_manager_index: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
151
151
  }, string>;
152
152
  static fromFields(fields: Record<string, any>): BorrowRecord;
153
153
  static fromFieldsWithTypes(item: FieldsWithTypes): BorrowRecord;
@@ -220,22 +220,22 @@ export declare class Deposit implements StructClass {
220
220
  static get r(): reified.StructClassReified<Deposit, DepositFields>;
221
221
  static phantom(): PhantomReified<ToTypeStr<Deposit>>;
222
222
  static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::obligation::Deposit" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::Deposit">;
223
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
224
- coin_type: import("@mysten/sui/bcs").BcsStruct<{
225
- name: import("@mysten/sui/bcs").BcsStruct<{
226
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
223
+ static get bcs(): import("@mysten/bcs").BcsStruct<{
224
+ coin_type: import("@mysten/bcs").BcsStruct<{
225
+ name: import("@mysten/bcs").BcsStruct<{
226
+ bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
227
227
  length: number;
228
228
  }, string>;
229
229
  }, string>;
230
230
  }, string>;
231
- reserve_array_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
232
- deposited_ctoken_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
233
- market_value: import("@mysten/sui/bcs").BcsStruct<{
234
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
231
+ reserve_array_index: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
232
+ deposited_ctoken_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
233
+ market_value: import("@mysten/bcs").BcsStruct<{
234
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
235
235
  }, string>;
236
- user_reward_manager_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
237
- attributed_borrow_value: import("@mysten/sui/bcs").BcsStruct<{
238
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
236
+ user_reward_manager_index: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
237
+ attributed_borrow_value: import("@mysten/bcs").BcsStruct<{
238
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
239
239
  }, string>;
240
240
  }, string>;
241
241
  static fromFields(fields: Record<string, any>): Deposit;
@@ -305,22 +305,22 @@ export declare class DepositRecord implements StructClass {
305
305
  static get r(): reified.StructClassReified<DepositRecord, DepositRecordFields>;
306
306
  static phantom(): PhantomReified<ToTypeStr<DepositRecord>>;
307
307
  static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::obligation::DepositRecord" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::DepositRecord">;
308
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
309
- coin_type: import("@mysten/sui/bcs").BcsStruct<{
310
- name: import("@mysten/sui/bcs").BcsStruct<{
311
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
308
+ static get bcs(): import("@mysten/bcs").BcsStruct<{
309
+ coin_type: import("@mysten/bcs").BcsStruct<{
310
+ name: import("@mysten/bcs").BcsStruct<{
311
+ bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
312
312
  length: number;
313
313
  }, string>;
314
314
  }, string>;
315
315
  }, string>;
316
- reserve_array_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
317
- deposited_ctoken_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
318
- market_value: import("@mysten/sui/bcs").BcsStruct<{
319
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
316
+ reserve_array_index: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
317
+ deposited_ctoken_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
318
+ market_value: import("@mysten/bcs").BcsStruct<{
319
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
320
320
  }, string>;
321
- user_reward_manager_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
322
- attributed_borrow_value: import("@mysten/sui/bcs").BcsStruct<{
323
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
321
+ user_reward_manager_index: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
322
+ attributed_borrow_value: import("@mysten/bcs").BcsStruct<{
323
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
324
324
  }, string>;
325
325
  }, string>;
326
326
  static fromFields(fields: Record<string, any>): DepositRecord;
@@ -380,8 +380,8 @@ export declare class ExistStaleOracles implements StructClass {
380
380
  static get r(): reified.StructClassReified<ExistStaleOracles, ExistStaleOraclesFields>;
381
381
  static phantom(): PhantomReified<ToTypeStr<ExistStaleOracles>>;
382
382
  static get p(): reified.PhantomReified<"0xe5ed361add4433f4d23e56fc0e3bacab39b93592d5e65d508e33fd19ff696669::obligation::ExistStaleOracles" | "0xd2a67633ccb8de063163e25bcfca242929caf5cf1a26c2929dab519ee0b8f331::obligation::ExistStaleOracles">;
383
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
384
- dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
383
+ static get bcs(): import("@mysten/bcs").BcsStruct<{
384
+ dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
385
385
  }, string>;
386
386
  static fromFields(fields: Record<string, any>): ExistStaleOracles;
387
387
  static fromFieldsWithTypes(item: FieldsWithTypes): ExistStaleOracles;
@@ -446,16 +446,16 @@ export declare class Obligation<P extends PhantomTypeArgument> implements Struct
446
446
  static get r(): typeof Obligation.reified;
447
447
  static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<Obligation<ToPhantomTypeArgument<P>>>>;
448
448
  static get p(): typeof Obligation.phantom;
449
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
450
- id: import("@mysten/sui/bcs").BcsStruct<{
451
- id: import("@mysten/sui/bcs").BcsStruct<{
452
- bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
449
+ static get bcs(): import("@mysten/bcs").BcsStruct<{
450
+ id: import("@mysten/bcs").BcsStruct<{
451
+ id: import("@mysten/bcs").BcsStruct<{
452
+ bytes: import("@mysten/bcs").BcsType<string, string, string>;
453
453
  }, string>;
454
454
  }, string>;
455
- lending_market_id: import("@mysten/sui/bcs").BcsStruct<{
456
- bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
455
+ lending_market_id: import("@mysten/bcs").BcsStruct<{
456
+ bytes: import("@mysten/bcs").BcsType<string, string, string>;
457
457
  }, string>;
458
- deposits: import("@mysten/sui/bcs").BcsType<{
458
+ deposits: import("@mysten/bcs").BcsType<{
459
459
  coin_type: {
460
460
  name: {
461
461
  bytes: number[];
@@ -490,7 +490,7 @@ export declare class Obligation<P extends PhantomTypeArgument> implements Struct
490
490
  }> & {
491
491
  length: number;
492
492
  }, string>;
493
- borrows: import("@mysten/sui/bcs").BcsType<{
493
+ borrows: import("@mysten/bcs").BcsType<{
494
494
  coin_type: {
495
495
  name: {
496
496
  bytes: number[];
@@ -529,29 +529,29 @@ export declare class Obligation<P extends PhantomTypeArgument> implements Struct
529
529
  }> & {
530
530
  length: number;
531
531
  }, string>;
532
- deposited_value_usd: import("@mysten/sui/bcs").BcsStruct<{
533
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
532
+ deposited_value_usd: import("@mysten/bcs").BcsStruct<{
533
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
534
534
  }, string>;
535
- allowed_borrow_value_usd: import("@mysten/sui/bcs").BcsStruct<{
536
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
535
+ allowed_borrow_value_usd: import("@mysten/bcs").BcsStruct<{
536
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
537
537
  }, string>;
538
- unhealthy_borrow_value_usd: import("@mysten/sui/bcs").BcsStruct<{
539
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
538
+ unhealthy_borrow_value_usd: import("@mysten/bcs").BcsStruct<{
539
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
540
540
  }, string>;
541
- super_unhealthy_borrow_value_usd: import("@mysten/sui/bcs").BcsStruct<{
542
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
541
+ super_unhealthy_borrow_value_usd: import("@mysten/bcs").BcsStruct<{
542
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
543
543
  }, string>;
544
- unweighted_borrowed_value_usd: import("@mysten/sui/bcs").BcsStruct<{
545
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
544
+ unweighted_borrowed_value_usd: import("@mysten/bcs").BcsStruct<{
545
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
546
546
  }, string>;
547
- weighted_borrowed_value_usd: import("@mysten/sui/bcs").BcsStruct<{
548
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
547
+ weighted_borrowed_value_usd: import("@mysten/bcs").BcsStruct<{
548
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
549
549
  }, string>;
550
- weighted_borrowed_value_upper_bound_usd: import("@mysten/sui/bcs").BcsStruct<{
551
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
550
+ weighted_borrowed_value_upper_bound_usd: import("@mysten/bcs").BcsStruct<{
551
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
552
552
  }, string>;
553
- borrowing_isolated_asset: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
554
- user_reward_managers: import("@mysten/sui/bcs").BcsType<{
553
+ borrowing_isolated_asset: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
554
+ user_reward_managers: import("@mysten/bcs").BcsType<{
555
555
  pool_reward_manager_id: {
556
556
  bytes: string;
557
557
  };
@@ -570,10 +570,10 @@ export declare class Obligation<P extends PhantomTypeArgument> implements Struct
570
570
  }> & {
571
571
  length: number;
572
572
  }, string>;
573
- bad_debt_usd: import("@mysten/sui/bcs").BcsStruct<{
574
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
573
+ bad_debt_usd: import("@mysten/bcs").BcsStruct<{
574
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
575
575
  }, string>;
576
- closable: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
576
+ closable: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
577
577
  }, string>;
578
578
  static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): Obligation<ToPhantomTypeArgument<P>>;
579
579
  static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, item: FieldsWithTypes): Obligation<ToPhantomTypeArgument<P>>;
@@ -778,10 +778,10 @@ export declare class ObligationDataEvent implements StructClass {
778
778
  static get r(): reified.StructClassReified<ObligationDataEvent, ObligationDataEventFields>;
779
779
  static phantom(): PhantomReified<ToTypeStr<ObligationDataEvent>>;
780
780
  static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::obligation::ObligationDataEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::ObligationDataEvent">;
781
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
782
- lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
783
- obligation_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
784
- deposits: import("@mysten/sui/bcs").BcsType<{
781
+ static get bcs(): import("@mysten/bcs").BcsStruct<{
782
+ lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
783
+ obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
784
+ deposits: import("@mysten/bcs").BcsType<{
785
785
  coin_type: {
786
786
  name: {
787
787
  bytes: number[];
@@ -816,7 +816,7 @@ export declare class ObligationDataEvent implements StructClass {
816
816
  }> & {
817
817
  length: number;
818
818
  }, string>;
819
- borrows: import("@mysten/sui/bcs").BcsType<{
819
+ borrows: import("@mysten/bcs").BcsType<{
820
820
  coin_type: {
821
821
  name: {
822
822
  bytes: number[];
@@ -855,32 +855,32 @@ export declare class ObligationDataEvent implements StructClass {
855
855
  }> & {
856
856
  length: number;
857
857
  }, string>;
858
- deposited_value_usd: import("@mysten/sui/bcs").BcsStruct<{
859
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
858
+ deposited_value_usd: import("@mysten/bcs").BcsStruct<{
859
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
860
860
  }, string>;
861
- allowed_borrow_value_usd: import("@mysten/sui/bcs").BcsStruct<{
862
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
861
+ allowed_borrow_value_usd: import("@mysten/bcs").BcsStruct<{
862
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
863
863
  }, string>;
864
- unhealthy_borrow_value_usd: import("@mysten/sui/bcs").BcsStruct<{
865
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
864
+ unhealthy_borrow_value_usd: import("@mysten/bcs").BcsStruct<{
865
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
866
866
  }, string>;
867
- super_unhealthy_borrow_value_usd: import("@mysten/sui/bcs").BcsStruct<{
868
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
867
+ super_unhealthy_borrow_value_usd: import("@mysten/bcs").BcsStruct<{
868
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
869
869
  }, string>;
870
- unweighted_borrowed_value_usd: import("@mysten/sui/bcs").BcsStruct<{
871
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
870
+ unweighted_borrowed_value_usd: import("@mysten/bcs").BcsStruct<{
871
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
872
872
  }, string>;
873
- weighted_borrowed_value_usd: import("@mysten/sui/bcs").BcsStruct<{
874
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
873
+ weighted_borrowed_value_usd: import("@mysten/bcs").BcsStruct<{
874
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
875
875
  }, string>;
876
- weighted_borrowed_value_upper_bound_usd: import("@mysten/sui/bcs").BcsStruct<{
877
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
876
+ weighted_borrowed_value_upper_bound_usd: import("@mysten/bcs").BcsStruct<{
877
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
878
878
  }, string>;
879
- borrowing_isolated_asset: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
880
- bad_debt_usd: import("@mysten/sui/bcs").BcsStruct<{
881
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
879
+ borrowing_isolated_asset: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
880
+ bad_debt_usd: import("@mysten/bcs").BcsStruct<{
881
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
882
882
  }, string>;
883
- closable: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
883
+ closable: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
884
884
  }, string>;
885
885
  static fromFields(fields: Record<string, any>): ObligationDataEvent;
886
886
  static fromFieldsWithTypes(item: FieldsWithTypes): ObligationDataEvent;