@suilend/sdk 1.1.19 → 1.1.21

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 (50) hide show
  1. package/_generated/_dependencies/source/0x1/ascii/structs.d.ts +3 -3
  2. package/_generated/_dependencies/source/0x1/ascii/structs.js +7 -7
  3. package/_generated/_dependencies/source/0x1/index.d.ts +1 -1
  4. package/_generated/_dependencies/source/0x1/index.js +2 -2
  5. package/_generated/_dependencies/source/0x1/option/structs.d.ts +3 -3
  6. package/_generated/_dependencies/source/0x1/option/structs.js +4 -4
  7. package/_generated/_dependencies/source/0x1/type-name/structs.d.ts +2 -2
  8. package/_generated/_dependencies/source/0x1/type-name/structs.js +4 -4
  9. package/_generated/_dependencies/source/0x2/bag/structs.js +2 -2
  10. package/_generated/_dependencies/source/0x2/balance/structs.js +3 -3
  11. package/_generated/_dependencies/source/0x2/object/structs.js +3 -3
  12. package/_generated/_dependencies/source/0x2/object-table/structs.js +2 -2
  13. package/_generated/_dependencies/source/0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e/price-identifier/structs.js +2 -2
  14. package/_generated/_framework/reified.js +10 -10
  15. package/_generated/_framework/util.d.ts +11 -5
  16. package/_generated/_framework/util.js +13 -12
  17. package/_generated/_framework/vector.d.ts +1 -1
  18. package/_generated/_framework/vector.js +2 -2
  19. package/_generated/suilend/cell/structs.d.ts +3 -3
  20. package/_generated/suilend/cell/structs.js +2 -2
  21. package/_generated/suilend/decimal/structs.d.ts +3 -3
  22. package/_generated/suilend/decimal/structs.js +2 -2
  23. package/_generated/suilend/index.d.ts +3 -3
  24. package/_generated/suilend/index.js +11 -5
  25. package/_generated/suilend/lending-market/functions.d.ts +50 -6
  26. package/_generated/suilend/lending-market/functions.js +136 -41
  27. package/_generated/suilend/lending-market/structs.d.ts +192 -192
  28. package/_generated/suilend/lending-market/structs.js +392 -392
  29. package/_generated/suilend/lending-market-registry/functions.js +3 -2
  30. package/_generated/suilend/liquidity-mining/structs.d.ts +14 -14
  31. package/_generated/suilend/liquidity-mining/structs.js +6 -6
  32. package/_generated/suilend/obligation/structs.d.ts +17 -17
  33. package/_generated/suilend/obligation/structs.js +7 -7
  34. package/_generated/suilend/rate-limiter/functions.js +7 -6
  35. package/_generated/suilend/rate-limiter/structs.d.ts +6 -6
  36. package/_generated/suilend/rate-limiter/structs.js +3 -3
  37. package/_generated/suilend/reserve/structs.d.ts +179 -15
  38. package/_generated/suilend/reserve/structs.js +434 -7
  39. package/_generated/suilend/reserve-config/functions.d.ts +7 -7
  40. package/_generated/suilend/reserve-config/functions.js +54 -53
  41. package/_generated/suilend/reserve-config/structs.d.ts +6 -6
  42. package/_generated/suilend/reserve-config/structs.js +3 -3
  43. package/client.d.ts +3 -2
  44. package/client.js +52 -31
  45. package/package.json +1 -1
  46. package/parsers/lendingMarket.d.ts +3 -3
  47. package/parsers/obligation.d.ts +4 -4
  48. package/parsers/reserve.d.ts +2 -2
  49. package/utils/events.js +3 -3
  50. package/utils/obligation.js +6 -5
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.init = init;
4
- exports.createLendingMarket = createLendingMarket;
3
+ exports.createLendingMarket = exports.init = void 0;
5
4
  const __1 = require("..");
6
5
  const util_1 = require("../../_framework/util");
7
6
  function init(tx) {
@@ -10,6 +9,7 @@ function init(tx) {
10
9
  arguments: [],
11
10
  });
12
11
  }
12
+ exports.init = init;
13
13
  function createLendingMarket(tx, typeArg, registry) {
14
14
  return tx.moveCall({
15
15
  target: `${__1.PUBLISHED_AT}::lending_market_registry::create_lending_market`,
@@ -17,3 +17,4 @@ function createLendingMarket(tx, typeArg, registry) {
17
17
  arguments: [(0, util_1.obj)(tx, registry)],
18
18
  });
19
19
  }
20
+ exports.createLendingMarket = createLendingMarket;
@@ -25,10 +25,10 @@ export interface PoolRewardFields {
25
25
  export type PoolRewardReified = Reified<PoolReward, PoolRewardFields>;
26
26
  export declare class PoolReward implements StructClass {
27
27
  __StructClass: true;
28
- static readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::PoolReward";
28
+ static readonly $typeName: string;
29
29
  static readonly $numTypeParams = 0;
30
30
  static readonly $isPhantom: readonly [];
31
- readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::PoolReward";
31
+ readonly $typeName: string;
32
32
  readonly $fullTypeName: `${typeof PKG_V1}::liquidity_mining::PoolReward`;
33
33
  readonly $typeArgs: [];
34
34
  readonly $isPhantom: readonly [];
@@ -46,7 +46,7 @@ export declare class PoolReward implements StructClass {
46
46
  static reified(): PoolRewardReified;
47
47
  static get r(): reified.StructClassReified<PoolReward, PoolRewardFields>;
48
48
  static phantom(): PhantomReified<ToTypeStr<PoolReward>>;
49
- static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::PoolReward">;
49
+ static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::liquidity_mining::PoolReward" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::PoolReward">;
50
50
  static get bcs(): import("@mysten/sui/bcs").BcsType<{
51
51
  id: {
52
52
  id: {
@@ -177,10 +177,10 @@ export interface PoolRewardManagerFields {
177
177
  export type PoolRewardManagerReified = Reified<PoolRewardManager, PoolRewardManagerFields>;
178
178
  export declare class PoolRewardManager implements StructClass {
179
179
  __StructClass: true;
180
- static readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::PoolRewardManager";
180
+ static readonly $typeName: string;
181
181
  static readonly $numTypeParams = 0;
182
182
  static readonly $isPhantom: readonly [];
183
- readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::PoolRewardManager";
183
+ readonly $typeName: string;
184
184
  readonly $fullTypeName: `${typeof PKG_V1}::liquidity_mining::PoolRewardManager`;
185
185
  readonly $typeArgs: [];
186
186
  readonly $isPhantom: readonly [];
@@ -192,7 +192,7 @@ export declare class PoolRewardManager implements StructClass {
192
192
  static reified(): PoolRewardManagerReified;
193
193
  static get r(): reified.StructClassReified<PoolRewardManager, PoolRewardManagerFields>;
194
194
  static phantom(): PhantomReified<ToTypeStr<PoolRewardManager>>;
195
- static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::PoolRewardManager">;
195
+ static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::liquidity_mining::PoolRewardManager" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::PoolRewardManager">;
196
196
  static get bcs(): import("@mysten/sui/bcs").BcsType<{
197
197
  id: {
198
198
  id: {
@@ -290,10 +290,10 @@ export interface RewardBalanceFields<T extends PhantomTypeArgument> {
290
290
  export type RewardBalanceReified<T extends PhantomTypeArgument> = Reified<RewardBalance<T>, RewardBalanceFields<T>>;
291
291
  export declare class RewardBalance<T extends PhantomTypeArgument> implements StructClass {
292
292
  __StructClass: true;
293
- static readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::RewardBalance";
293
+ static readonly $typeName: string;
294
294
  static readonly $numTypeParams = 1;
295
295
  static readonly $isPhantom: readonly [true];
296
- readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::RewardBalance";
296
+ readonly $typeName: string;
297
297
  readonly $fullTypeName: `${typeof PKG_V1}::liquidity_mining::RewardBalance<${PhantomToTypeStr<T>}>`;
298
298
  readonly $typeArgs: [PhantomToTypeStr<T>];
299
299
  readonly $isPhantom: readonly [true];
@@ -334,10 +334,10 @@ export interface UserRewardFields {
334
334
  export type UserRewardReified = Reified<UserReward, UserRewardFields>;
335
335
  export declare class UserReward implements StructClass {
336
336
  __StructClass: true;
337
- static readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::UserReward";
337
+ static readonly $typeName: string;
338
338
  static readonly $numTypeParams = 0;
339
339
  static readonly $isPhantom: readonly [];
340
- readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::UserReward";
340
+ readonly $typeName: string;
341
341
  readonly $fullTypeName: `${typeof PKG_V1}::liquidity_mining::UserReward`;
342
342
  readonly $typeArgs: [];
343
343
  readonly $isPhantom: readonly [];
@@ -348,7 +348,7 @@ export declare class UserReward implements StructClass {
348
348
  static reified(): UserRewardReified;
349
349
  static get r(): reified.StructClassReified<UserReward, UserRewardFields>;
350
350
  static phantom(): PhantomReified<ToTypeStr<UserReward>>;
351
- static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::UserReward">;
351
+ static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::liquidity_mining::UserReward" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::UserReward">;
352
352
  static get bcs(): import("@mysten/sui/bcs").BcsType<{
353
353
  pool_reward_id: {
354
354
  bytes: string;
@@ -409,10 +409,10 @@ export interface UserRewardManagerFields {
409
409
  export type UserRewardManagerReified = Reified<UserRewardManager, UserRewardManagerFields>;
410
410
  export declare class UserRewardManager implements StructClass {
411
411
  __StructClass: true;
412
- static readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::UserRewardManager";
412
+ static readonly $typeName: string;
413
413
  static readonly $numTypeParams = 0;
414
414
  static readonly $isPhantom: readonly [];
415
- readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::UserRewardManager";
415
+ readonly $typeName: string;
416
416
  readonly $fullTypeName: `${typeof PKG_V1}::liquidity_mining::UserRewardManager`;
417
417
  readonly $typeArgs: [];
418
418
  readonly $isPhantom: readonly [];
@@ -424,7 +424,7 @@ export declare class UserRewardManager implements StructClass {
424
424
  static reified(): UserRewardManagerReified;
425
425
  static get r(): reified.StructClassReified<UserRewardManager, UserRewardManagerFields>;
426
426
  static phantom(): PhantomReified<ToTypeStr<UserRewardManager>>;
427
- static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::UserRewardManager">;
427
+ static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::liquidity_mining::UserRewardManager" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::liquidity_mining::UserRewardManager">;
428
428
  static get bcs(): import("@mysten/sui/bcs").BcsType<{
429
429
  pool_reward_manager_id: {
430
430
  bytes: string;
@@ -32,12 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
32
32
  });
33
33
  };
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
- exports.UserRewardManager = exports.UserReward = exports.RewardBalance = exports.PoolRewardManager = exports.PoolReward = void 0;
36
- exports.isPoolReward = isPoolReward;
37
- exports.isPoolRewardManager = isPoolRewardManager;
38
- exports.isRewardBalance = isRewardBalance;
39
- exports.isUserReward = isUserReward;
40
- exports.isUserRewardManager = isUserRewardManager;
35
+ exports.UserRewardManager = exports.isUserRewardManager = exports.UserReward = exports.isUserReward = exports.RewardBalance = exports.isRewardBalance = exports.PoolRewardManager = exports.isPoolRewardManager = exports.PoolReward = exports.isPoolReward = void 0;
41
36
  const reified = __importStar(require("../../_framework/reified"));
42
37
  const structs_1 = require("../../_dependencies/source/0x1/option/structs");
43
38
  const structs_2 = require("../../_dependencies/source/0x1/type-name/structs");
@@ -54,6 +49,7 @@ function isPoolReward(type) {
54
49
  type = (0, util_1.compressSuiType)(type);
55
50
  return type === `${index_1.PKG_V1}::liquidity_mining::PoolReward`;
56
51
  }
52
+ exports.isPoolReward = isPoolReward;
57
53
  class PoolReward {
58
54
  constructor(typeArgs, fields) {
59
55
  this.__StructClass = true;
@@ -233,6 +229,7 @@ function isPoolRewardManager(type) {
233
229
  type = (0, util_1.compressSuiType)(type);
234
230
  return type === `${index_1.PKG_V1}::liquidity_mining::PoolRewardManager`;
235
231
  }
232
+ exports.isPoolRewardManager = isPoolRewardManager;
236
233
  class PoolRewardManager {
237
234
  constructor(typeArgs, fields) {
238
235
  this.__StructClass = true;
@@ -377,6 +374,7 @@ function isRewardBalance(type) {
377
374
  type = (0, util_1.compressSuiType)(type);
378
375
  return type.startsWith(`${index_1.PKG_V1}::liquidity_mining::RewardBalance` + "<");
379
376
  }
377
+ exports.isRewardBalance = isRewardBalance;
380
378
  class RewardBalance {
381
379
  constructor(typeArgs, fields) {
382
380
  this.__StructClass = true;
@@ -514,6 +512,7 @@ function isUserReward(type) {
514
512
  type = (0, util_1.compressSuiType)(type);
515
513
  return type === `${index_1.PKG_V1}::liquidity_mining::UserReward`;
516
514
  }
515
+ exports.isUserReward = isUserReward;
517
516
  class UserReward {
518
517
  constructor(typeArgs, fields) {
519
518
  this.__StructClass = true;
@@ -651,6 +650,7 @@ function isUserRewardManager(type) {
651
650
  type = (0, util_1.compressSuiType)(type);
652
651
  return type === `${index_1.PKG_V1}::liquidity_mining::UserRewardManager`;
653
652
  }
653
+ exports.isUserRewardManager = isUserRewardManager;
654
654
  class UserRewardManager {
655
655
  constructor(typeArgs, fields) {
656
656
  this.__StructClass = true;
@@ -20,10 +20,10 @@ export interface BorrowFields {
20
20
  export type BorrowReified = Reified<Borrow, BorrowFields>;
21
21
  export declare class Borrow implements StructClass {
22
22
  __StructClass: true;
23
- static readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::Borrow";
23
+ static readonly $typeName: string;
24
24
  static readonly $numTypeParams = 0;
25
25
  static readonly $isPhantom: readonly [];
26
- readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::Borrow";
26
+ readonly $typeName: string;
27
27
  readonly $fullTypeName: `${typeof PKG_V1}::obligation::Borrow`;
28
28
  readonly $typeArgs: [];
29
29
  readonly $isPhantom: readonly [];
@@ -37,7 +37,7 @@ export declare class Borrow implements StructClass {
37
37
  static reified(): BorrowReified;
38
38
  static get r(): reified.StructClassReified<Borrow, BorrowFields>;
39
39
  static phantom(): PhantomReified<ToTypeStr<Borrow>>;
40
- static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::Borrow">;
40
+ static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::obligation::Borrow" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::Borrow">;
41
41
  static get bcs(): import("@mysten/sui/bcs").BcsType<{
42
42
  coin_type: {
43
43
  name: {
@@ -130,10 +130,10 @@ export interface BorrowRecordFields {
130
130
  export type BorrowRecordReified = Reified<BorrowRecord, BorrowRecordFields>;
131
131
  export declare class BorrowRecord implements StructClass {
132
132
  __StructClass: true;
133
- static readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::BorrowRecord";
133
+ static readonly $typeName: string;
134
134
  static readonly $numTypeParams = 0;
135
135
  static readonly $isPhantom: readonly [];
136
- readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::BorrowRecord";
136
+ readonly $typeName: string;
137
137
  readonly $fullTypeName: `${typeof PKG_V1}::obligation::BorrowRecord`;
138
138
  readonly $typeArgs: [];
139
139
  readonly $isPhantom: readonly [];
@@ -147,7 +147,7 @@ export declare class BorrowRecord implements StructClass {
147
147
  static reified(): BorrowRecordReified;
148
148
  static get r(): reified.StructClassReified<BorrowRecord, BorrowRecordFields>;
149
149
  static phantom(): PhantomReified<ToTypeStr<BorrowRecord>>;
150
- static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::BorrowRecord">;
150
+ static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::obligation::BorrowRecord" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::BorrowRecord">;
151
151
  static get bcs(): import("@mysten/sui/bcs").BcsType<{
152
152
  coin_type: {
153
153
  name: {
@@ -240,10 +240,10 @@ export interface DepositFields {
240
240
  export type DepositReified = Reified<Deposit, DepositFields>;
241
241
  export declare class Deposit implements StructClass {
242
242
  __StructClass: true;
243
- static readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::Deposit";
243
+ static readonly $typeName: string;
244
244
  static readonly $numTypeParams = 0;
245
245
  static readonly $isPhantom: readonly [];
246
- readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::Deposit";
246
+ readonly $typeName: string;
247
247
  readonly $fullTypeName: `${typeof PKG_V1}::obligation::Deposit`;
248
248
  readonly $typeArgs: [];
249
249
  readonly $isPhantom: readonly [];
@@ -257,7 +257,7 @@ export declare class Deposit implements StructClass {
257
257
  static reified(): DepositReified;
258
258
  static get r(): reified.StructClassReified<Deposit, DepositFields>;
259
259
  static phantom(): PhantomReified<ToTypeStr<Deposit>>;
260
- static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::Deposit">;
260
+ static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::obligation::Deposit" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::Deposit">;
261
261
  static get bcs(): import("@mysten/sui/bcs").BcsType<{
262
262
  coin_type: {
263
263
  name: {
@@ -342,10 +342,10 @@ export interface DepositRecordFields {
342
342
  export type DepositRecordReified = Reified<DepositRecord, DepositRecordFields>;
343
343
  export declare class DepositRecord implements StructClass {
344
344
  __StructClass: true;
345
- static readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::DepositRecord";
345
+ static readonly $typeName: string;
346
346
  static readonly $numTypeParams = 0;
347
347
  static readonly $isPhantom: readonly [];
348
- readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::DepositRecord";
348
+ readonly $typeName: string;
349
349
  readonly $fullTypeName: `${typeof PKG_V1}::obligation::DepositRecord`;
350
350
  readonly $typeArgs: [];
351
351
  readonly $isPhantom: readonly [];
@@ -359,7 +359,7 @@ export declare class DepositRecord implements StructClass {
359
359
  static reified(): DepositRecordReified;
360
360
  static get r(): reified.StructClassReified<DepositRecord, DepositRecordFields>;
361
361
  static phantom(): PhantomReified<ToTypeStr<DepositRecord>>;
362
- static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::DepositRecord">;
362
+ static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::obligation::DepositRecord" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::DepositRecord">;
363
363
  static get bcs(): import("@mysten/sui/bcs").BcsType<{
364
364
  coin_type: {
365
365
  name: {
@@ -453,10 +453,10 @@ export interface ObligationFields<P extends PhantomTypeArgument> {
453
453
  export type ObligationReified<P extends PhantomTypeArgument> = Reified<Obligation<P>, ObligationFields<P>>;
454
454
  export declare class Obligation<P extends PhantomTypeArgument> implements StructClass {
455
455
  __StructClass: true;
456
- static readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::Obligation";
456
+ static readonly $typeName: string;
457
457
  static readonly $numTypeParams = 1;
458
458
  static readonly $isPhantom: readonly [true];
459
- readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::Obligation";
459
+ readonly $typeName: string;
460
460
  readonly $fullTypeName: `${typeof PKG_V1}::obligation::Obligation<${PhantomToTypeStr<P>}>`;
461
461
  readonly $typeArgs: [PhantomToTypeStr<P>];
462
462
  readonly $isPhantom: readonly [true];
@@ -832,10 +832,10 @@ export interface ObligationDataEventFields {
832
832
  export type ObligationDataEventReified = Reified<ObligationDataEvent, ObligationDataEventFields>;
833
833
  export declare class ObligationDataEvent implements StructClass {
834
834
  __StructClass: true;
835
- static readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::ObligationDataEvent";
835
+ static readonly $typeName: string;
836
836
  static readonly $numTypeParams = 0;
837
837
  static readonly $isPhantom: readonly [];
838
- readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::ObligationDataEvent";
838
+ readonly $typeName: string;
839
839
  readonly $fullTypeName: `${typeof PKG_V1}::obligation::ObligationDataEvent`;
840
840
  readonly $typeArgs: [];
841
841
  readonly $isPhantom: readonly [];
@@ -857,7 +857,7 @@ export declare class ObligationDataEvent implements StructClass {
857
857
  static reified(): ObligationDataEventReified;
858
858
  static get r(): reified.StructClassReified<ObligationDataEvent, ObligationDataEventFields>;
859
859
  static phantom(): PhantomReified<ToTypeStr<ObligationDataEvent>>;
860
- static get p(): reified.PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::ObligationDataEvent">;
860
+ static get p(): reified.PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::obligation::ObligationDataEvent" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::obligation::ObligationDataEvent">;
861
861
  static get bcs(): import("@mysten/sui/bcs").BcsType<{
862
862
  lending_market_id: string;
863
863
  obligation_id: string;
@@ -32,13 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
32
32
  });
33
33
  };
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
- exports.ObligationDataEvent = exports.Obligation = exports.DepositRecord = exports.Deposit = exports.BorrowRecord = exports.Borrow = void 0;
36
- exports.isBorrow = isBorrow;
37
- exports.isBorrowRecord = isBorrowRecord;
38
- exports.isDeposit = isDeposit;
39
- exports.isDepositRecord = isDepositRecord;
40
- exports.isObligation = isObligation;
41
- exports.isObligationDataEvent = isObligationDataEvent;
35
+ exports.ObligationDataEvent = exports.isObligationDataEvent = exports.Obligation = exports.isObligation = exports.DepositRecord = exports.isDepositRecord = exports.Deposit = exports.isDeposit = exports.BorrowRecord = exports.isBorrowRecord = exports.Borrow = exports.isBorrow = void 0;
42
36
  const reified = __importStar(require("../../_framework/reified"));
43
37
  const structs_1 = require("../../_dependencies/source/0x1/type-name/structs");
44
38
  const structs_2 = require("../../_dependencies/source/0x2/object/structs");
@@ -54,6 +48,7 @@ function isBorrow(type) {
54
48
  type = (0, util_1.compressSuiType)(type);
55
49
  return type === `${index_1.PKG_V1}::obligation::Borrow`;
56
50
  }
51
+ exports.isBorrow = isBorrow;
57
52
  class Borrow {
58
53
  constructor(typeArgs, fields) {
59
54
  this.__StructClass = true;
@@ -209,6 +204,7 @@ function isBorrowRecord(type) {
209
204
  type = (0, util_1.compressSuiType)(type);
210
205
  return type === `${index_1.PKG_V1}::obligation::BorrowRecord`;
211
206
  }
207
+ exports.isBorrowRecord = isBorrowRecord;
212
208
  class BorrowRecord {
213
209
  constructor(typeArgs, fields) {
214
210
  this.__StructClass = true;
@@ -365,6 +361,7 @@ function isDeposit(type) {
365
361
  type = (0, util_1.compressSuiType)(type);
366
362
  return type === `${index_1.PKG_V1}::obligation::Deposit`;
367
363
  }
364
+ exports.isDeposit = isDeposit;
368
365
  class Deposit {
369
366
  constructor(typeArgs, fields) {
370
367
  this.__StructClass = true;
@@ -520,6 +517,7 @@ function isDepositRecord(type) {
520
517
  type = (0, util_1.compressSuiType)(type);
521
518
  return type === `${index_1.PKG_V1}::obligation::DepositRecord`;
522
519
  }
520
+ exports.isDepositRecord = isDepositRecord;
523
521
  class DepositRecord {
524
522
  constructor(typeArgs, fields) {
525
523
  this.__StructClass = true;
@@ -676,6 +674,7 @@ function isObligation(type) {
676
674
  type = (0, util_1.compressSuiType)(type);
677
675
  return type.startsWith(`${index_1.PKG_V1}::obligation::Obligation` + "<");
678
676
  }
677
+ exports.isObligation = isObligation;
679
678
  class Obligation {
680
679
  constructor(typeArgs, fields) {
681
680
  this.__StructClass = true;
@@ -897,6 +896,7 @@ function isObligationDataEvent(type) {
897
896
  type = (0, util_1.compressSuiType)(type);
898
897
  return type === `${index_1.PKG_V1}::obligation::ObligationDataEvent`;
899
898
  }
899
+ exports.isObligationDataEvent = isObligationDataEvent;
900
900
  class ObligationDataEvent {
901
901
  constructor(typeArgs, fields) {
902
902
  this.__StructClass = true;
@@ -1,11 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.new_ = new_;
4
- exports.currentOutflow = currentOutflow;
5
- exports.newConfig = newConfig;
6
- exports.processQty = processQty;
7
- exports.remainingOutflow = remainingOutflow;
8
- exports.updateInternal = updateInternal;
3
+ exports.updateInternal = exports.remainingOutflow = exports.processQty = exports.newConfig = exports.currentOutflow = exports.new_ = void 0;
9
4
  const __1 = require("..");
10
5
  const util_1 = require("../../_framework/util");
11
6
  function new_(tx, args) {
@@ -14,12 +9,14 @@ function new_(tx, args) {
14
9
  arguments: [(0, util_1.obj)(tx, args.config), (0, util_1.pure)(tx, args.curTime, `u64`)],
15
10
  });
16
11
  }
12
+ exports.new_ = new_;
17
13
  function currentOutflow(tx, args) {
18
14
  return tx.moveCall({
19
15
  target: `${__1.PUBLISHED_AT}::rate_limiter::current_outflow`,
20
16
  arguments: [(0, util_1.obj)(tx, args.rateLimiter), (0, util_1.pure)(tx, args.curTime, `u64`)],
21
17
  });
22
18
  }
19
+ exports.currentOutflow = currentOutflow;
23
20
  function newConfig(tx, args) {
24
21
  return tx.moveCall({
25
22
  target: `${__1.PUBLISHED_AT}::rate_limiter::new_config`,
@@ -29,6 +26,7 @@ function newConfig(tx, args) {
29
26
  ],
30
27
  });
31
28
  }
29
+ exports.newConfig = newConfig;
32
30
  function processQty(tx, args) {
33
31
  return tx.moveCall({
34
32
  target: `${__1.PUBLISHED_AT}::rate_limiter::process_qty`,
@@ -39,15 +37,18 @@ function processQty(tx, args) {
39
37
  ],
40
38
  });
41
39
  }
40
+ exports.processQty = processQty;
42
41
  function remainingOutflow(tx, args) {
43
42
  return tx.moveCall({
44
43
  target: `${__1.PUBLISHED_AT}::rate_limiter::remaining_outflow`,
45
44
  arguments: [(0, util_1.obj)(tx, args.rateLimiter), (0, util_1.pure)(tx, args.curTime, `u64`)],
46
45
  });
47
46
  }
47
+ exports.remainingOutflow = remainingOutflow;
48
48
  function updateInternal(tx, args) {
49
49
  return tx.moveCall({
50
50
  target: `${__1.PUBLISHED_AT}::rate_limiter::update_internal`,
51
51
  arguments: [(0, util_1.obj)(tx, args.rateLimiter), (0, util_1.pure)(tx, args.curTime, `u64`)],
52
52
  });
53
53
  }
54
+ exports.updateInternal = updateInternal;
@@ -13,10 +13,10 @@ export interface RateLimiterFields {
13
13
  export type RateLimiterReified = Reified<RateLimiter, RateLimiterFields>;
14
14
  export declare class RateLimiter implements StructClass {
15
15
  __StructClass: true;
16
- static readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::rate_limiter::RateLimiter";
16
+ static readonly $typeName: string;
17
17
  static readonly $numTypeParams = 0;
18
18
  static readonly $isPhantom: readonly [];
19
- readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::rate_limiter::RateLimiter";
19
+ readonly $typeName: string;
20
20
  readonly $fullTypeName: `${typeof PKG_V1}::rate_limiter::RateLimiter`;
21
21
  readonly $typeArgs: [];
22
22
  readonly $isPhantom: readonly [];
@@ -28,7 +28,7 @@ export declare class RateLimiter implements StructClass {
28
28
  static reified(): RateLimiterReified;
29
29
  static get r(): import("../../_framework/reified").StructClassReified<RateLimiter, RateLimiterFields>;
30
30
  static phantom(): PhantomReified<ToTypeStr<RateLimiter>>;
31
- static get p(): PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::rate_limiter::RateLimiter">;
31
+ static get p(): PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::rate_limiter::RateLimiter" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::rate_limiter::RateLimiter">;
32
32
  static get bcs(): import("@mysten/sui/bcs").BcsType<{
33
33
  config: {
34
34
  window_duration: string;
@@ -99,10 +99,10 @@ export interface RateLimiterConfigFields {
99
99
  export type RateLimiterConfigReified = Reified<RateLimiterConfig, RateLimiterConfigFields>;
100
100
  export declare class RateLimiterConfig implements StructClass {
101
101
  __StructClass: true;
102
- static readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::rate_limiter::RateLimiterConfig";
102
+ static readonly $typeName: string;
103
103
  static readonly $numTypeParams = 0;
104
104
  static readonly $isPhantom: readonly [];
105
- readonly $typeName = "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::rate_limiter::RateLimiterConfig";
105
+ readonly $typeName: string;
106
106
  readonly $fullTypeName: `${typeof PKG_V1}::rate_limiter::RateLimiterConfig`;
107
107
  readonly $typeArgs: [];
108
108
  readonly $isPhantom: readonly [];
@@ -112,7 +112,7 @@ export declare class RateLimiterConfig implements StructClass {
112
112
  static reified(): RateLimiterConfigReified;
113
113
  static get r(): import("../../_framework/reified").StructClassReified<RateLimiterConfig, RateLimiterConfigFields>;
114
114
  static phantom(): PhantomReified<ToTypeStr<RateLimiterConfig>>;
115
- static get p(): PhantomReified<"0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::rate_limiter::RateLimiterConfig">;
115
+ static get p(): PhantomReified<"0x1f54a9a2d71799553197e9ea24557797c6398d6a65f2d4d3818c9304b75d5e21::rate_limiter::RateLimiterConfig" | "0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf::rate_limiter::RateLimiterConfig">;
116
116
  static get bcs(): import("@mysten/sui/bcs").BcsType<{
117
117
  window_duration: string;
118
118
  max_outflow: string;
@@ -9,9 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.RateLimiterConfig = exports.RateLimiter = void 0;
13
- exports.isRateLimiter = isRateLimiter;
14
- exports.isRateLimiterConfig = isRateLimiterConfig;
12
+ exports.RateLimiterConfig = exports.isRateLimiterConfig = exports.RateLimiter = exports.isRateLimiter = void 0;
15
13
  const reified_1 = require("../../_framework/reified");
16
14
  const util_1 = require("../../_framework/util");
17
15
  const structs_1 = require("../decimal/structs");
@@ -23,6 +21,7 @@ function isRateLimiter(type) {
23
21
  type = (0, util_1.compressSuiType)(type);
24
22
  return type === `${index_1.PKG_V1}::rate_limiter::RateLimiter`;
25
23
  }
24
+ exports.isRateLimiter = isRateLimiter;
26
25
  class RateLimiter {
27
26
  constructor(typeArgs, fields) {
28
27
  this.__StructClass = true;
@@ -166,6 +165,7 @@ function isRateLimiterConfig(type) {
166
165
  type = (0, util_1.compressSuiType)(type);
167
166
  return type === `${index_1.PKG_V1}::rate_limiter::RateLimiterConfig`;
168
167
  }
168
+ exports.isRateLimiterConfig = isRateLimiterConfig;
169
169
  class RateLimiterConfig {
170
170
  constructor(typeArgs, fields) {
171
171
  this.__StructClass = true;