@morpho-org/blue-sdk 3.0.0-next.12 → 3.0.0-next.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/errors.d.ts CHANGED
@@ -26,6 +26,11 @@ export declare class UnsupportedPreLiquidationParamsError extends Error {
26
26
  constructor(lltv: bigint);
27
27
  }
28
28
  export declare namespace BlueErrors {
29
+ class AlreadySet extends Error {
30
+ readonly name: string;
31
+ readonly value: string;
32
+ constructor(name: string, value: string);
33
+ }
29
34
  class InvalidInterestAccrual extends Error {
30
35
  readonly marketId: MarketId;
31
36
  readonly timestamp: bigint;
package/lib/errors.js CHANGED
@@ -56,6 +56,16 @@ class UnsupportedPreLiquidationParamsError extends Error {
56
56
  exports.UnsupportedPreLiquidationParamsError = UnsupportedPreLiquidationParamsError;
57
57
  var BlueErrors;
58
58
  (function (BlueErrors) {
59
+ class AlreadySet extends Error {
60
+ name;
61
+ value;
62
+ constructor(name, value) {
63
+ super(`${name} is already set to ${value}`);
64
+ this.name = name;
65
+ this.value = value;
66
+ }
67
+ }
68
+ BlueErrors.AlreadySet = AlreadySet;
59
69
  class InvalidInterestAccrual extends Error {
60
70
  marketId;
61
71
  timestamp;
package/lib/index.d.ts CHANGED
@@ -10,3 +10,4 @@ export * from "./user/index.js";
10
10
  export * from "./holding/index.js";
11
11
  export * from "./position/index.js";
12
12
  export * from "./vault/index.js";
13
+ export * from "./preLiquidation.js";
package/lib/index.js CHANGED
@@ -26,3 +26,4 @@ __exportStar(require("./user/index.js"), exports);
26
26
  __exportStar(require("./holding/index.js"), exports);
27
27
  __exportStar(require("./position/index.js"), exports);
28
28
  __exportStar(require("./vault/index.js"), exports);
29
+ __exportStar(require("./preLiquidation.js"), exports);