@suilend/sdk 2.0.4 → 3.0.1

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 +7 -11
  2. package/_generated/_dependencies/source/0x1/ascii/structs.js +6 -63
  3. package/_generated/_dependencies/source/0x1/option/structs.d.ts +3 -9
  4. package/_generated/_dependencies/source/0x1/option/structs.js +4 -42
  5. package/_generated/_dependencies/source/0x1/type-name/structs.d.ts +5 -7
  6. package/_generated/_dependencies/source/0x1/type-name/structs.js +3 -32
  7. package/_generated/_dependencies/source/0x2/bag/structs.d.ts +7 -9
  8. package/_generated/_dependencies/source/0x2/bag/structs.js +3 -31
  9. package/_generated/_dependencies/source/0x2/balance/structs.d.ts +7 -11
  10. package/_generated/_dependencies/source/0x2/balance/structs.js +7 -82
  11. package/_generated/_dependencies/source/0x2/object/structs.d.ts +8 -12
  12. package/_generated/_dependencies/source/0x2/object/structs.js +7 -61
  13. package/_generated/_dependencies/source/0x2/object-table/structs.d.ts +7 -9
  14. package/_generated/_dependencies/source/0x2/object-table/structs.js +4 -44
  15. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/i64/structs.d.ts +5 -7
  16. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/i64/structs.js +3 -31
  17. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price/structs.d.ts +11 -13
  18. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price/structs.js +3 -32
  19. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-feed/structs.d.ts +23 -25
  20. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-feed/structs.js +3 -32
  21. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-identifier/structs.d.ts +4 -6
  22. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-identifier/structs.js +3 -33
  23. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-info/structs.d.ts +55 -59
  24. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-info/structs.js +6 -64
  25. package/_generated/_framework/reified.d.ts +2 -4
  26. package/_generated/_framework/vector.d.ts +2 -12
  27. package/_generated/suilend/cell/structs.d.ts +4 -10
  28. package/_generated/suilend/cell/structs.js +4 -42
  29. package/_generated/suilend/decimal/structs.d.ts +4 -6
  30. package/_generated/suilend/decimal/structs.js +3 -32
  31. package/_generated/suilend/lending-market/structs.d.ts +152 -392
  32. package/_generated/suilend/lending-market/structs.js +50 -548
  33. package/_generated/suilend/liquidity-mining/structs.d.ts +50 -158
  34. package/_generated/suilend/liquidity-mining/structs.js +16 -169
  35. package/_generated/suilend/obligation/structs.d.ts +108 -148
  36. package/_generated/suilend/obligation/structs.js +23 -232
  37. package/_generated/suilend/rate-limiter/structs.d.ts +15 -19
  38. package/_generated/suilend/rate-limiter/structs.js +6 -64
  39. package/_generated/suilend/reserve/structs.d.ts +138 -362
  40. package/_generated/suilend/reserve/structs.js +29 -327
  41. package/_generated/suilend/reserve-config/structs.d.ts +33 -37
  42. package/_generated/suilend/reserve-config/structs.js +6 -65
  43. package/client.d.ts +8 -8
  44. package/client.js +55 -88
  45. package/lib/initialize.d.ts +29 -28
  46. package/lib/initialize.js +16 -12
  47. package/lib/liquidityMining.d.ts +3 -3
  48. package/lib/pythAdapter.d.ts +9 -0
  49. package/lib/pythAdapter.js +121 -0
  50. package/lib/strategyOwnerCap.d.ts +12 -7
  51. package/lib/strategyOwnerCap.js +159 -156
  52. package/margin/margin/admin_cap.d.ts +2 -2
  53. package/margin/margin/deps/std/type_name.d.ts +1 -1
  54. package/margin/margin/deps/sui/vec_set.d.ts +3 -5
  55. package/margin/margin/deps/suilend/lending_market.d.ts +2 -2
  56. package/margin/margin/market.d.ts +21 -38
  57. package/margin/margin/position.d.ts +47 -47
  58. package/margin/margin/router.d.ts +5 -5
  59. package/margin/margin/version.d.ts +1 -1
  60. package/package.json +1 -1
  61. package/parsers/lendingMarket.d.ts +6 -6
  62. package/parsers/obligation.d.ts +8 -8
  63. package/parsers/reserve.d.ts +8 -8
  64. package/strategies.d.ts +38 -21
  65. package/strategies.js +239 -79
  66. package/swap/quote.d.ts +1 -9
  67. package/swap/quote.js +1 -52
  68. package/swap/transaction.d.ts +2 -4
  69. package/swap/transaction.js +9 -25
  70. package/utils/events.d.ts +6 -5
  71. package/utils/events.js +11 -8
  72. package/utils/obligation.d.ts +6 -5
  73. package/utils/obligation.js +118 -117
@@ -10,7 +10,7 @@ import { PKG_V1, PKG_V10 } from "../index";
10
10
  import { Obligation } from "../obligation/structs";
11
11
  import { RateLimiter } from "../rate-limiter/structs";
12
12
  import { Reserve } from "../reserve/structs";
13
- import { SuiJsonRpcClient, SuiObjectData, SuiParsedData } from "@mysten/sui/jsonRpc";
13
+ import { SuiGrpcClient } from "@mysten/sui/grpc";
14
14
  export declare function isMintEvent(type: string): boolean;
15
15
  export interface MintEventFields {
16
16
  lendingMarketId: ToField<"address">;
@@ -39,18 +39,18 @@ 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/bcs").BcsStruct<{
43
- lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
44
- coin_type: import("@mysten/bcs").BcsStruct<{
45
- name: import("@mysten/bcs").BcsStruct<{
46
- bytes: import("@mysten/bcs").BcsType<number[], 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> & {
47
47
  length: number;
48
48
  }, string>;
49
49
  }, string>;
50
50
  }, string>;
51
- reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
52
- liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
53
- ctoken_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
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
54
  }, string>;
55
55
  static fromFields(fields: Record<string, any>): MintEvent;
56
56
  static fromFieldsWithTypes(item: FieldsWithTypes): MintEvent;
@@ -77,9 +77,7 @@ export declare class MintEvent implements StructClass {
77
77
  };
78
78
  static fromJSONField(field: any): MintEvent;
79
79
  static fromJSON(json: Record<string, any>): MintEvent;
80
- static fromSuiParsedData(content: SuiParsedData): MintEvent;
81
- static fromSuiObjectData(data: SuiObjectData): MintEvent;
82
- static fetch(client: SuiJsonRpcClient, id: string): Promise<MintEvent>;
80
+ static fetch(client: SuiGrpcClient, id: string): Promise<MintEvent>;
83
81
  }
84
82
  export declare function isRedeemEvent(type: string): boolean;
85
83
  export interface RedeemEventFields {
@@ -109,18 +107,18 @@ export declare class RedeemEvent implements StructClass {
109
107
  static get r(): reified.StructClassReified<RedeemEvent, RedeemEventFields>;
110
108
  static phantom(): PhantomReified<ToTypeStr<RedeemEvent>>;
111
109
  static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::RedeemEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::RedeemEvent">;
112
- static get bcs(): import("@mysten/bcs").BcsStruct<{
113
- lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
114
- coin_type: import("@mysten/bcs").BcsStruct<{
115
- name: import("@mysten/bcs").BcsStruct<{
116
- bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
110
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
111
+ lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
112
+ coin_type: import("@mysten/sui/bcs").BcsStruct<{
113
+ name: import("@mysten/sui/bcs").BcsStruct<{
114
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
117
115
  length: number;
118
116
  }, string>;
119
117
  }, string>;
120
118
  }, string>;
121
- reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
122
- ctoken_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
123
- liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
119
+ reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
120
+ ctoken_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
121
+ liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
124
122
  }, string>;
125
123
  static fromFields(fields: Record<string, any>): RedeemEvent;
126
124
  static fromFieldsWithTypes(item: FieldsWithTypes): RedeemEvent;
@@ -147,9 +145,7 @@ export declare class RedeemEvent implements StructClass {
147
145
  };
148
146
  static fromJSONField(field: any): RedeemEvent;
149
147
  static fromJSON(json: Record<string, any>): RedeemEvent;
150
- static fromSuiParsedData(content: SuiParsedData): RedeemEvent;
151
- static fromSuiObjectData(data: SuiObjectData): RedeemEvent;
152
- static fetch(client: SuiJsonRpcClient, id: string): Promise<RedeemEvent>;
148
+ static fetch(client: SuiGrpcClient, id: string): Promise<RedeemEvent>;
153
149
  }
154
150
  export declare function isBorrowEvent(type: string): boolean;
155
151
  export interface BorrowEventFields {
@@ -181,19 +177,19 @@ export declare class BorrowEvent implements StructClass {
181
177
  static get r(): reified.StructClassReified<BorrowEvent, BorrowEventFields>;
182
178
  static phantom(): PhantomReified<ToTypeStr<BorrowEvent>>;
183
179
  static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::BorrowEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::BorrowEvent">;
184
- static get bcs(): import("@mysten/bcs").BcsStruct<{
185
- lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
186
- coin_type: import("@mysten/bcs").BcsStruct<{
187
- name: import("@mysten/bcs").BcsStruct<{
188
- bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
180
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
181
+ lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
182
+ coin_type: import("@mysten/sui/bcs").BcsStruct<{
183
+ name: import("@mysten/sui/bcs").BcsStruct<{
184
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
189
185
  length: number;
190
186
  }, string>;
191
187
  }, string>;
192
188
  }, string>;
193
- reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
194
- obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
195
- liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
196
- origination_fee_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
189
+ reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
190
+ obligation_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
191
+ liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
192
+ origination_fee_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
197
193
  }, string>;
198
194
  static fromFields(fields: Record<string, any>): BorrowEvent;
199
195
  static fromFieldsWithTypes(item: FieldsWithTypes): BorrowEvent;
@@ -222,9 +218,7 @@ export declare class BorrowEvent implements StructClass {
222
218
  };
223
219
  static fromJSONField(field: any): BorrowEvent;
224
220
  static fromJSON(json: Record<string, any>): BorrowEvent;
225
- static fromSuiParsedData(content: SuiParsedData): BorrowEvent;
226
- static fromSuiObjectData(data: SuiObjectData): BorrowEvent;
227
- static fetch(client: SuiJsonRpcClient, id: string): Promise<BorrowEvent>;
221
+ static fetch(client: SuiGrpcClient, id: string): Promise<BorrowEvent>;
228
222
  }
229
223
  export declare function isClaimRewardEvent(type: string): boolean;
230
224
  export interface ClaimRewardEventFields {
@@ -258,20 +252,20 @@ export declare class ClaimRewardEvent implements StructClass {
258
252
  static get r(): reified.StructClassReified<ClaimRewardEvent, ClaimRewardEventFields>;
259
253
  static phantom(): PhantomReified<ToTypeStr<ClaimRewardEvent>>;
260
254
  static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::ClaimRewardEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::ClaimRewardEvent">;
261
- static get bcs(): import("@mysten/bcs").BcsStruct<{
262
- lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
263
- reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
264
- obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
265
- is_deposit_reward: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
266
- pool_reward_id: import("@mysten/bcs").BcsType<string, string, string>;
267
- coin_type: import("@mysten/bcs").BcsStruct<{
268
- name: import("@mysten/bcs").BcsStruct<{
269
- bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
255
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
256
+ lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
257
+ reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
258
+ obligation_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
259
+ is_deposit_reward: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
260
+ pool_reward_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
261
+ coin_type: import("@mysten/sui/bcs").BcsStruct<{
262
+ name: import("@mysten/sui/bcs").BcsStruct<{
263
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
270
264
  length: number;
271
265
  }, string>;
272
266
  }, string>;
273
267
  }, string>;
274
- liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
268
+ liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
275
269
  }, string>;
276
270
  static fromFields(fields: Record<string, any>): ClaimRewardEvent;
277
271
  static fromFieldsWithTypes(item: FieldsWithTypes): ClaimRewardEvent;
@@ -302,9 +296,7 @@ export declare class ClaimRewardEvent implements StructClass {
302
296
  };
303
297
  static fromJSONField(field: any): ClaimRewardEvent;
304
298
  static fromJSON(json: Record<string, any>): ClaimRewardEvent;
305
- static fromSuiParsedData(content: SuiParsedData): ClaimRewardEvent;
306
- static fromSuiObjectData(data: SuiObjectData): ClaimRewardEvent;
307
- static fetch(client: SuiJsonRpcClient, id: string): Promise<ClaimRewardEvent>;
299
+ static fetch(client: SuiGrpcClient, id: string): Promise<ClaimRewardEvent>;
308
300
  }
309
301
  export declare function isDepositEvent(type: string): boolean;
310
302
  export interface DepositEventFields {
@@ -334,18 +326,18 @@ export declare class DepositEvent implements StructClass {
334
326
  static get r(): reified.StructClassReified<DepositEvent, DepositEventFields>;
335
327
  static phantom(): PhantomReified<ToTypeStr<DepositEvent>>;
336
328
  static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::DepositEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::DepositEvent">;
337
- static get bcs(): import("@mysten/bcs").BcsStruct<{
338
- lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
339
- coin_type: import("@mysten/bcs").BcsStruct<{
340
- name: import("@mysten/bcs").BcsStruct<{
341
- bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
329
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
330
+ lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
331
+ coin_type: import("@mysten/sui/bcs").BcsStruct<{
332
+ name: import("@mysten/sui/bcs").BcsStruct<{
333
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
342
334
  length: number;
343
335
  }, string>;
344
336
  }, string>;
345
337
  }, string>;
346
- reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
347
- obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
348
- ctoken_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
338
+ reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
339
+ obligation_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
340
+ ctoken_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
349
341
  }, string>;
350
342
  static fromFields(fields: Record<string, any>): DepositEvent;
351
343
  static fromFieldsWithTypes(item: FieldsWithTypes): DepositEvent;
@@ -372,9 +364,7 @@ export declare class DepositEvent implements StructClass {
372
364
  };
373
365
  static fromJSONField(field: any): DepositEvent;
374
366
  static fromJSON(json: Record<string, any>): DepositEvent;
375
- static fromSuiParsedData(content: SuiParsedData): DepositEvent;
376
- static fromSuiObjectData(data: SuiObjectData): DepositEvent;
377
- static fetch(client: SuiJsonRpcClient, id: string): Promise<DepositEvent>;
367
+ static fetch(client: SuiGrpcClient, id: string): Promise<DepositEvent>;
378
368
  }
379
369
  export declare function isFeeReceivers(type: string): boolean;
380
370
  export interface FeeReceiversFields {
@@ -400,14 +390,14 @@ export declare class FeeReceivers implements StructClass {
400
390
  static get r(): reified.StructClassReified<FeeReceivers, FeeReceiversFields>;
401
391
  static phantom(): PhantomReified<ToTypeStr<FeeReceivers>>;
402
392
  static get p(): reified.PhantomReified<"0xe37cc7bb50fd9b6dbd3873df66fa2c554e973697f50ef97707311dc78bd08444::lending_market::FeeReceivers" | "0xe5ed361add4433f4d23e56fc0e3bacab39b93592d5e65d508e33fd19ff696669::lending_market::FeeReceivers">;
403
- static get bcs(): import("@mysten/bcs").BcsStruct<{
404
- receivers: import("@mysten/bcs").BcsType<string[], Iterable<string> & {
393
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
394
+ receivers: import("@mysten/sui/bcs").BcsType<string[], Iterable<string> & {
405
395
  length: number;
406
396
  }, string>;
407
- weights: import("@mysten/bcs").BcsType<string[], Iterable<string | number | bigint> & {
397
+ weights: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
408
398
  length: number;
409
399
  }, string>;
410
- total_weight: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
400
+ total_weight: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
411
401
  }, string>;
412
402
  static fromFields(fields: Record<string, any>): FeeReceivers;
413
403
  static fromFieldsWithTypes(item: FieldsWithTypes): FeeReceivers;
@@ -426,9 +416,7 @@ export declare class FeeReceivers implements StructClass {
426
416
  };
427
417
  static fromJSONField(field: any): FeeReceivers;
428
418
  static fromJSON(json: Record<string, any>): FeeReceivers;
429
- static fromSuiParsedData(content: SuiParsedData): FeeReceivers;
430
- static fromSuiObjectData(data: SuiObjectData): FeeReceivers;
431
- static fetch(client: SuiJsonRpcClient, id: string): Promise<FeeReceivers>;
419
+ static fetch(client: SuiGrpcClient, id: string): Promise<FeeReceivers>;
432
420
  }
433
421
  export declare function isFeeReceiversKey(type: string): boolean;
434
422
  export interface FeeReceiversKeyFields {
@@ -450,8 +438,8 @@ export declare class FeeReceiversKey implements StructClass {
450
438
  static get r(): reified.StructClassReified<FeeReceiversKey, FeeReceiversKeyFields>;
451
439
  static phantom(): PhantomReified<ToTypeStr<FeeReceiversKey>>;
452
440
  static get p(): reified.PhantomReified<"0xe37cc7bb50fd9b6dbd3873df66fa2c554e973697f50ef97707311dc78bd08444::lending_market::FeeReceiversKey" | "0xe5ed361add4433f4d23e56fc0e3bacab39b93592d5e65d508e33fd19ff696669::lending_market::FeeReceiversKey">;
453
- static get bcs(): import("@mysten/bcs").BcsStruct<{
454
- dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
441
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
442
+ dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
455
443
  }, string>;
456
444
  static fromFields(fields: Record<string, any>): FeeReceiversKey;
457
445
  static fromFieldsWithTypes(item: FieldsWithTypes): FeeReceiversKey;
@@ -466,9 +454,7 @@ export declare class FeeReceiversKey implements StructClass {
466
454
  };
467
455
  static fromJSONField(field: any): FeeReceiversKey;
468
456
  static fromJSON(json: Record<string, any>): FeeReceiversKey;
469
- static fromSuiParsedData(content: SuiParsedData): FeeReceiversKey;
470
- static fromSuiObjectData(data: SuiObjectData): FeeReceiversKey;
471
- static fetch(client: SuiJsonRpcClient, id: string): Promise<FeeReceiversKey>;
457
+ static fetch(client: SuiGrpcClient, id: string): Promise<FeeReceiversKey>;
472
458
  }
473
459
  export declare function isForgiveEvent(type: string): boolean;
474
460
  export interface ForgiveEventFields {
@@ -498,18 +484,18 @@ export declare class ForgiveEvent implements StructClass {
498
484
  static get r(): reified.StructClassReified<ForgiveEvent, ForgiveEventFields>;
499
485
  static phantom(): PhantomReified<ToTypeStr<ForgiveEvent>>;
500
486
  static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::ForgiveEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::ForgiveEvent">;
501
- static get bcs(): import("@mysten/bcs").BcsStruct<{
502
- lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
503
- coin_type: import("@mysten/bcs").BcsStruct<{
504
- name: import("@mysten/bcs").BcsStruct<{
505
- bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
487
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
488
+ lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
489
+ coin_type: import("@mysten/sui/bcs").BcsStruct<{
490
+ name: import("@mysten/sui/bcs").BcsStruct<{
491
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
506
492
  length: number;
507
493
  }, string>;
508
494
  }, string>;
509
495
  }, string>;
510
- reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
511
- obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
512
- liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
496
+ reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
497
+ obligation_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
498
+ liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
513
499
  }, string>;
514
500
  static fromFields(fields: Record<string, any>): ForgiveEvent;
515
501
  static fromFieldsWithTypes(item: FieldsWithTypes): ForgiveEvent;
@@ -536,9 +522,7 @@ export declare class ForgiveEvent implements StructClass {
536
522
  };
537
523
  static fromJSONField(field: any): ForgiveEvent;
538
524
  static fromJSON(json: Record<string, any>): ForgiveEvent;
539
- static fromSuiParsedData(content: SuiParsedData): ForgiveEvent;
540
- static fromSuiObjectData(data: SuiObjectData): ForgiveEvent;
541
- static fetch(client: SuiJsonRpcClient, id: string): Promise<ForgiveEvent>;
525
+ static fetch(client: SuiGrpcClient, id: string): Promise<ForgiveEvent>;
542
526
  }
543
527
  export declare function isLENDING_MARKET(type: string): boolean;
544
528
  export interface LENDING_MARKETFields {
@@ -560,8 +544,8 @@ export declare class LENDING_MARKET implements StructClass {
560
544
  static get r(): reified.StructClassReified<LENDING_MARKET, LENDING_MARKETFields>;
561
545
  static phantom(): PhantomReified<ToTypeStr<LENDING_MARKET>>;
562
546
  static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::LENDING_MARKET" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::LENDING_MARKET">;
563
- static get bcs(): import("@mysten/bcs").BcsStruct<{
564
- dummy_field: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
547
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
548
+ dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
565
549
  }, string>;
566
550
  static fromFields(fields: Record<string, any>): LENDING_MARKET;
567
551
  static fromFieldsWithTypes(item: FieldsWithTypes): LENDING_MARKET;
@@ -576,9 +560,7 @@ export declare class LENDING_MARKET implements StructClass {
576
560
  };
577
561
  static fromJSONField(field: any): LENDING_MARKET;
578
562
  static fromJSON(json: Record<string, any>): LENDING_MARKET;
579
- static fromSuiParsedData(content: SuiParsedData): LENDING_MARKET;
580
- static fromSuiObjectData(data: SuiObjectData): LENDING_MARKET;
581
- static fetch(client: SuiJsonRpcClient, id: string): Promise<LENDING_MARKET>;
563
+ static fetch(client: SuiGrpcClient, id: string): Promise<LENDING_MARKET>;
582
564
  }
583
565
  export declare function isLendingMarket(type: string): boolean;
584
566
  export interface LendingMarketFields<P extends PhantomTypeArgument> {
@@ -614,14 +596,14 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
614
596
  static get r(): typeof LendingMarket.reified;
615
597
  static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<LendingMarket<ToPhantomTypeArgument<P>>>>;
616
598
  static get p(): typeof LendingMarket.phantom;
617
- static get bcs(): import("@mysten/bcs").BcsStruct<{
618
- id: import("@mysten/bcs").BcsStruct<{
619
- id: import("@mysten/bcs").BcsStruct<{
620
- bytes: import("@mysten/bcs").BcsType<string, string, string>;
599
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
600
+ id: import("@mysten/sui/bcs").BcsStruct<{
601
+ id: import("@mysten/sui/bcs").BcsStruct<{
602
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
621
603
  }, string>;
622
604
  }, string>;
623
- version: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
624
- reserves: import("@mysten/bcs").BcsType<{
605
+ version: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
606
+ reserves: import("@mysten/sui/bcs").BcsType<{
625
607
  id: {
626
608
  id: {
627
609
  bytes: string;
@@ -637,36 +619,7 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
637
619
  };
638
620
  };
639
621
  config: {
640
- element: {
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
- }[];
669
- };
622
+ element: any;
670
623
  };
671
624
  mint_decimals: number;
672
625
  price_identifier: {
@@ -701,41 +654,7 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
701
654
  };
702
655
  };
703
656
  total_shares: string;
704
- pool_rewards: {
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
- }[];
738
- }[];
657
+ pool_rewards: any[];
739
658
  last_update_time_ms: string;
740
659
  };
741
660
  borrows_pool_reward_manager: {
@@ -745,41 +664,7 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
745
664
  };
746
665
  };
747
666
  total_shares: string;
748
- pool_rewards: {
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
- }[];
782
- }[];
667
+ pool_rewards: any[];
783
668
  last_update_time_ms: string;
784
669
  };
785
670
  }[], Iterable<{
@@ -800,42 +685,7 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
800
685
  };
801
686
  };
802
687
  config: {
803
- element: {
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
- }> & {
836
- length: number;
837
- };
838
- };
688
+ element: any;
839
689
  };
840
690
  mint_decimals: number;
841
691
  price_identifier: {
@@ -872,45 +722,7 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
872
722
  };
873
723
  };
874
724
  total_shares: string | number | bigint;
875
- pool_rewards: 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
- }> & {
911
- length: number;
912
- };
913
- }> & {
725
+ pool_rewards: Iterable<any> & {
914
726
  length: number;
915
727
  };
916
728
  last_update_time_ms: string | number | bigint;
@@ -922,45 +734,7 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
922
734
  };
923
735
  };
924
736
  total_shares: string | number | bigint;
925
- pool_rewards: 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
- }> & {
961
- length: number;
962
- };
963
- }> & {
737
+ pool_rewards: Iterable<any> & {
964
738
  length: number;
965
739
  };
966
740
  last_update_time_ms: string | number | bigint;
@@ -968,33 +742,33 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
968
742
  }> & {
969
743
  length: number;
970
744
  }, string>;
971
- obligations: import("@mysten/bcs").BcsStruct<{
972
- id: import("@mysten/bcs").BcsStruct<{
973
- id: import("@mysten/bcs").BcsStruct<{
974
- bytes: import("@mysten/bcs").BcsType<string, string, string>;
745
+ obligations: import("@mysten/sui/bcs").BcsStruct<{
746
+ id: import("@mysten/sui/bcs").BcsStruct<{
747
+ id: import("@mysten/sui/bcs").BcsStruct<{
748
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
975
749
  }, string>;
976
750
  }, string>;
977
- size: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
751
+ size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
978
752
  }, string>;
979
- rate_limiter: import("@mysten/bcs").BcsStruct<{
980
- config: import("@mysten/bcs").BcsStruct<{
981
- window_duration: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
982
- max_outflow: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
753
+ rate_limiter: import("@mysten/sui/bcs").BcsStruct<{
754
+ config: import("@mysten/sui/bcs").BcsStruct<{
755
+ window_duration: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
756
+ max_outflow: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
983
757
  }, string>;
984
- prev_qty: import("@mysten/bcs").BcsStruct<{
985
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
758
+ prev_qty: import("@mysten/sui/bcs").BcsStruct<{
759
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
986
760
  }, string>;
987
- window_start: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
988
- cur_qty: import("@mysten/bcs").BcsStruct<{
989
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
761
+ window_start: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
762
+ cur_qty: import("@mysten/sui/bcs").BcsStruct<{
763
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
990
764
  }, string>;
991
765
  }, string>;
992
- fee_receiver: import("@mysten/bcs").BcsType<string, string, string>;
993
- bad_debt_usd: import("@mysten/bcs").BcsStruct<{
994
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
766
+ fee_receiver: import("@mysten/sui/bcs").BcsType<string, string, string>;
767
+ bad_debt_usd: import("@mysten/sui/bcs").BcsStruct<{
768
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
995
769
  }, string>;
996
- bad_debt_limit_usd: import("@mysten/bcs").BcsStruct<{
997
- value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
770
+ bad_debt_limit_usd: import("@mysten/sui/bcs").BcsStruct<{
771
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
998
772
  }, string>;
999
773
  }, string>;
1000
774
  static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): LendingMarket<ToPhantomTypeArgument<P>>;
@@ -1284,9 +1058,7 @@ export declare class LendingMarket<P extends PhantomTypeArgument> implements Str
1284
1058
  };
1285
1059
  static fromJSONField<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, field: any): LendingMarket<ToPhantomTypeArgument<P>>;
1286
1060
  static fromJSON<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, json: Record<string, any>): LendingMarket<ToPhantomTypeArgument<P>>;
1287
- static fromSuiParsedData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, content: SuiParsedData): LendingMarket<ToPhantomTypeArgument<P>>;
1288
- static fromSuiObjectData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: SuiObjectData): LendingMarket<ToPhantomTypeArgument<P>>;
1289
- static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArg: P, id: string): Promise<LendingMarket<ToPhantomTypeArgument<P>>>;
1061
+ static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: SuiGrpcClient, typeArg: P, id: string): Promise<LendingMarket<ToPhantomTypeArgument<P>>>;
1290
1062
  }
1291
1063
  export declare function isLendingMarketOwnerCap(type: string): boolean;
1292
1064
  export interface LendingMarketOwnerCapFields<P extends PhantomTypeArgument> {
@@ -1310,14 +1082,14 @@ export declare class LendingMarketOwnerCap<P extends PhantomTypeArgument> implem
1310
1082
  static get r(): typeof LendingMarketOwnerCap.reified;
1311
1083
  static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<LendingMarketOwnerCap<ToPhantomTypeArgument<P>>>>;
1312
1084
  static get p(): typeof LendingMarketOwnerCap.phantom;
1313
- static get bcs(): import("@mysten/bcs").BcsStruct<{
1314
- id: import("@mysten/bcs").BcsStruct<{
1315
- id: import("@mysten/bcs").BcsStruct<{
1316
- bytes: import("@mysten/bcs").BcsType<string, string, string>;
1085
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
1086
+ id: import("@mysten/sui/bcs").BcsStruct<{
1087
+ id: import("@mysten/sui/bcs").BcsStruct<{
1088
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
1317
1089
  }, string>;
1318
1090
  }, string>;
1319
- lending_market_id: import("@mysten/bcs").BcsStruct<{
1320
- bytes: import("@mysten/bcs").BcsType<string, string, string>;
1091
+ lending_market_id: import("@mysten/sui/bcs").BcsStruct<{
1092
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
1321
1093
  }, string>;
1322
1094
  }, string>;
1323
1095
  static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): LendingMarketOwnerCap<ToPhantomTypeArgument<P>>;
@@ -1335,9 +1107,7 @@ export declare class LendingMarketOwnerCap<P extends PhantomTypeArgument> implem
1335
1107
  };
1336
1108
  static fromJSONField<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, field: any): LendingMarketOwnerCap<ToPhantomTypeArgument<P>>;
1337
1109
  static fromJSON<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, json: Record<string, any>): LendingMarketOwnerCap<ToPhantomTypeArgument<P>>;
1338
- static fromSuiParsedData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, content: SuiParsedData): LendingMarketOwnerCap<ToPhantomTypeArgument<P>>;
1339
- static fromSuiObjectData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: SuiObjectData): LendingMarketOwnerCap<ToPhantomTypeArgument<P>>;
1340
- static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArg: P, id: string): Promise<LendingMarketOwnerCap<ToPhantomTypeArgument<P>>>;
1110
+ static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: SuiGrpcClient, typeArg: P, id: string): Promise<LendingMarketOwnerCap<ToPhantomTypeArgument<P>>>;
1341
1111
  }
1342
1112
  export declare function isLiquidateEvent(type: string): boolean;
1343
1113
  export interface LiquidateEventFields {
@@ -1377,29 +1147,29 @@ export declare class LiquidateEvent implements StructClass {
1377
1147
  static get r(): reified.StructClassReified<LiquidateEvent, LiquidateEventFields>;
1378
1148
  static phantom(): PhantomReified<ToTypeStr<LiquidateEvent>>;
1379
1149
  static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::LiquidateEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::LiquidateEvent">;
1380
- static get bcs(): import("@mysten/bcs").BcsStruct<{
1381
- lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
1382
- repay_reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
1383
- withdraw_reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
1384
- obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
1385
- repay_coin_type: import("@mysten/bcs").BcsStruct<{
1386
- name: import("@mysten/bcs").BcsStruct<{
1387
- bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
1150
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
1151
+ lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
1152
+ repay_reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
1153
+ withdraw_reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
1154
+ obligation_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
1155
+ repay_coin_type: import("@mysten/sui/bcs").BcsStruct<{
1156
+ name: import("@mysten/sui/bcs").BcsStruct<{
1157
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
1388
1158
  length: number;
1389
1159
  }, string>;
1390
1160
  }, string>;
1391
1161
  }, string>;
1392
- withdraw_coin_type: import("@mysten/bcs").BcsStruct<{
1393
- name: import("@mysten/bcs").BcsStruct<{
1394
- bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
1162
+ withdraw_coin_type: import("@mysten/sui/bcs").BcsStruct<{
1163
+ name: import("@mysten/sui/bcs").BcsStruct<{
1164
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
1395
1165
  length: number;
1396
1166
  }, string>;
1397
1167
  }, string>;
1398
1168
  }, string>;
1399
- repay_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
1400
- withdraw_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
1401
- protocol_fee_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
1402
- liquidator_bonus_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
1169
+ repay_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1170
+ withdraw_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1171
+ protocol_fee_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1172
+ liquidator_bonus_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1403
1173
  }, string>;
1404
1174
  static fromFields(fields: Record<string, any>): LiquidateEvent;
1405
1175
  static fromFieldsWithTypes(item: FieldsWithTypes): LiquidateEvent;
@@ -1440,9 +1210,7 @@ export declare class LiquidateEvent implements StructClass {
1440
1210
  };
1441
1211
  static fromJSONField(field: any): LiquidateEvent;
1442
1212
  static fromJSON(json: Record<string, any>): LiquidateEvent;
1443
- static fromSuiParsedData(content: SuiParsedData): LiquidateEvent;
1444
- static fromSuiObjectData(data: SuiObjectData): LiquidateEvent;
1445
- static fetch(client: SuiJsonRpcClient, id: string): Promise<LiquidateEvent>;
1213
+ static fetch(client: SuiGrpcClient, id: string): Promise<LiquidateEvent>;
1446
1214
  }
1447
1215
  export declare function isObligationOwnerCap(type: string): boolean;
1448
1216
  export interface ObligationOwnerCapFields<P extends PhantomTypeArgument> {
@@ -1466,14 +1234,14 @@ export declare class ObligationOwnerCap<P extends PhantomTypeArgument> implement
1466
1234
  static get r(): typeof ObligationOwnerCap.reified;
1467
1235
  static phantom<P extends PhantomReified<PhantomTypeArgument>>(P: P): PhantomReified<ToTypeStr<ObligationOwnerCap<ToPhantomTypeArgument<P>>>>;
1468
1236
  static get p(): typeof ObligationOwnerCap.phantom;
1469
- static get bcs(): import("@mysten/bcs").BcsStruct<{
1470
- id: import("@mysten/bcs").BcsStruct<{
1471
- id: import("@mysten/bcs").BcsStruct<{
1472
- bytes: import("@mysten/bcs").BcsType<string, string, string>;
1237
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
1238
+ id: import("@mysten/sui/bcs").BcsStruct<{
1239
+ id: import("@mysten/sui/bcs").BcsStruct<{
1240
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
1473
1241
  }, string>;
1474
1242
  }, string>;
1475
- obligation_id: import("@mysten/bcs").BcsStruct<{
1476
- bytes: import("@mysten/bcs").BcsType<string, string, string>;
1243
+ obligation_id: import("@mysten/sui/bcs").BcsStruct<{
1244
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
1477
1245
  }, string>;
1478
1246
  }, string>;
1479
1247
  static fromFields<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, fields: Record<string, any>): ObligationOwnerCap<ToPhantomTypeArgument<P>>;
@@ -1491,9 +1259,7 @@ export declare class ObligationOwnerCap<P extends PhantomTypeArgument> implement
1491
1259
  };
1492
1260
  static fromJSONField<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, field: any): ObligationOwnerCap<ToPhantomTypeArgument<P>>;
1493
1261
  static fromJSON<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, json: Record<string, any>): ObligationOwnerCap<ToPhantomTypeArgument<P>>;
1494
- static fromSuiParsedData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, content: SuiParsedData): ObligationOwnerCap<ToPhantomTypeArgument<P>>;
1495
- static fromSuiObjectData<P extends PhantomReified<PhantomTypeArgument>>(typeArg: P, data: SuiObjectData): ObligationOwnerCap<ToPhantomTypeArgument<P>>;
1496
- static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArg: P, id: string): Promise<ObligationOwnerCap<ToPhantomTypeArgument<P>>>;
1262
+ static fetch<P extends PhantomReified<PhantomTypeArgument>>(client: SuiGrpcClient, typeArg: P, id: string): Promise<ObligationOwnerCap<ToPhantomTypeArgument<P>>>;
1497
1263
  }
1498
1264
  export declare function isRateLimiterExemption(type: string): boolean;
1499
1265
  export interface RateLimiterExemptionFields<P extends PhantomTypeArgument, T extends PhantomTypeArgument> {
@@ -1515,8 +1281,8 @@ export declare class RateLimiterExemption<P extends PhantomTypeArgument, T exten
1515
1281
  static get r(): typeof RateLimiterExemption.reified;
1516
1282
  static phantom<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(P: P, T: T): PhantomReified<ToTypeStr<RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>>;
1517
1283
  static get p(): typeof RateLimiterExemption.phantom;
1518
- static get bcs(): import("@mysten/bcs").BcsStruct<{
1519
- amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
1284
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
1285
+ amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1520
1286
  }, string>;
1521
1287
  static fromFields<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], fields: Record<string, any>): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
1522
1288
  static fromFieldsWithTypes<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], item: FieldsWithTypes): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
@@ -1531,9 +1297,7 @@ export declare class RateLimiterExemption<P extends PhantomTypeArgument, T exten
1531
1297
  };
1532
1298
  static fromJSONField<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], field: any): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
1533
1299
  static fromJSON<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], json: Record<string, any>): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
1534
- static fromSuiParsedData<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], content: SuiParsedData): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
1535
- static fromSuiObjectData<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(typeArgs: [P, T], data: SuiObjectData): RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>;
1536
- static fetch<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(client: SuiJsonRpcClient, typeArgs: [P, T], id: string): Promise<RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>;
1300
+ static fetch<P extends PhantomReified<PhantomTypeArgument>, T extends PhantomReified<PhantomTypeArgument>>(client: SuiGrpcClient, typeArgs: [P, T], id: string): Promise<RateLimiterExemption<ToPhantomTypeArgument<P>, ToPhantomTypeArgument<T>>>;
1537
1301
  }
1538
1302
  export declare function isRepayEvent(type: string): boolean;
1539
1303
  export interface RepayEventFields {
@@ -1563,18 +1327,18 @@ export declare class RepayEvent implements StructClass {
1563
1327
  static get r(): reified.StructClassReified<RepayEvent, RepayEventFields>;
1564
1328
  static phantom(): PhantomReified<ToTypeStr<RepayEvent>>;
1565
1329
  static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::RepayEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::RepayEvent">;
1566
- static get bcs(): import("@mysten/bcs").BcsStruct<{
1567
- lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
1568
- coin_type: import("@mysten/bcs").BcsStruct<{
1569
- name: import("@mysten/bcs").BcsStruct<{
1570
- bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
1330
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
1331
+ lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
1332
+ coin_type: import("@mysten/sui/bcs").BcsStruct<{
1333
+ name: import("@mysten/sui/bcs").BcsStruct<{
1334
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
1571
1335
  length: number;
1572
1336
  }, string>;
1573
1337
  }, string>;
1574
1338
  }, string>;
1575
- reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
1576
- obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
1577
- liquidity_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
1339
+ reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
1340
+ obligation_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
1341
+ liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1578
1342
  }, string>;
1579
1343
  static fromFields(fields: Record<string, any>): RepayEvent;
1580
1344
  static fromFieldsWithTypes(item: FieldsWithTypes): RepayEvent;
@@ -1601,9 +1365,7 @@ export declare class RepayEvent implements StructClass {
1601
1365
  };
1602
1366
  static fromJSONField(field: any): RepayEvent;
1603
1367
  static fromJSON(json: Record<string, any>): RepayEvent;
1604
- static fromSuiParsedData(content: SuiParsedData): RepayEvent;
1605
- static fromSuiObjectData(data: SuiObjectData): RepayEvent;
1606
- static fetch(client: SuiJsonRpcClient, id: string): Promise<RepayEvent>;
1368
+ static fetch(client: SuiGrpcClient, id: string): Promise<RepayEvent>;
1607
1369
  }
1608
1370
  export declare function isWithdrawEvent(type: string): boolean;
1609
1371
  export interface WithdrawEventFields {
@@ -1633,18 +1395,18 @@ export declare class WithdrawEvent implements StructClass {
1633
1395
  static get r(): reified.StructClassReified<WithdrawEvent, WithdrawEventFields>;
1634
1396
  static phantom(): PhantomReified<ToTypeStr<WithdrawEvent>>;
1635
1397
  static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::lending_market::WithdrawEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::lending_market::WithdrawEvent">;
1636
- static get bcs(): import("@mysten/bcs").BcsStruct<{
1637
- lending_market_id: import("@mysten/bcs").BcsType<string, string, string>;
1638
- coin_type: import("@mysten/bcs").BcsStruct<{
1639
- name: import("@mysten/bcs").BcsStruct<{
1640
- bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
1398
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
1399
+ lending_market_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
1400
+ coin_type: import("@mysten/sui/bcs").BcsStruct<{
1401
+ name: import("@mysten/sui/bcs").BcsStruct<{
1402
+ bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
1641
1403
  length: number;
1642
1404
  }, string>;
1643
1405
  }, string>;
1644
1406
  }, string>;
1645
- reserve_id: import("@mysten/bcs").BcsType<string, string, string>;
1646
- obligation_id: import("@mysten/bcs").BcsType<string, string, string>;
1647
- ctoken_amount: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
1407
+ reserve_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
1408
+ obligation_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
1409
+ ctoken_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1648
1410
  }, string>;
1649
1411
  static fromFields(fields: Record<string, any>): WithdrawEvent;
1650
1412
  static fromFieldsWithTypes(item: FieldsWithTypes): WithdrawEvent;
@@ -1671,7 +1433,5 @@ export declare class WithdrawEvent implements StructClass {
1671
1433
  };
1672
1434
  static fromJSONField(field: any): WithdrawEvent;
1673
1435
  static fromJSON(json: Record<string, any>): WithdrawEvent;
1674
- static fromSuiParsedData(content: SuiParsedData): WithdrawEvent;
1675
- static fromSuiObjectData(data: SuiObjectData): WithdrawEvent;
1676
- static fetch(client: SuiJsonRpcClient, id: string): Promise<WithdrawEvent>;
1436
+ static fetch(client: SuiGrpcClient, id: string): Promise<WithdrawEvent>;
1677
1437
  }