@gearbox-protocol/sdk 1.0.1-next.1 → 1.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.
@@ -22,7 +22,7 @@ export declare class UserHasNotAccountError extends Error {
22
22
  export declare class PathNotFoundError extends Error {
23
23
  constructor();
24
24
  }
25
- export declare class AccountsInAlllCreditManagersError extends Error {
25
+ export declare class AccountsInAllCreditManagersError extends Error {
26
26
  constructor();
27
27
  }
28
28
  export declare type OpenAccountErrorTypes = "insufficientPoolLiquidity" | "leverageGreaterMax" | "wrongLeverage" | "amountGreaterMax" | "amountLessMin";
@@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
15
15
  };
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.OpenAccountError = exports.AccountsInAlllCreditManagersError = exports.PathNotFoundError = exports.UserHasNotAccountError = exports.CreditManagerNotExistsError = exports.PoolNotExistsError = exports.IncorrectEthAddressError = exports.NetworkError = void 0;
18
+ exports.OpenAccountError = exports.AccountsInAllCreditManagersError = exports.PathNotFoundError = exports.UserHasNotAccountError = exports.CreditManagerNotExistsError = exports.PoolNotExistsError = exports.IncorrectEthAddressError = exports.NetworkError = void 0;
19
19
  var NetworkError = /** @class */ (function (_super) {
20
20
  __extends(NetworkError, _super);
21
21
  function NetworkError() {
@@ -64,14 +64,14 @@ var PathNotFoundError = /** @class */ (function (_super) {
64
64
  return PathNotFoundError;
65
65
  }(Error));
66
66
  exports.PathNotFoundError = PathNotFoundError;
67
- var AccountsInAlllCreditManagersError = /** @class */ (function (_super) {
68
- __extends(AccountsInAlllCreditManagersError, _super);
69
- function AccountsInAlllCreditManagersError() {
67
+ var AccountsInAllCreditManagersError = /** @class */ (function (_super) {
68
+ __extends(AccountsInAllCreditManagersError, _super);
69
+ function AccountsInAllCreditManagersError() {
70
70
  return _super.call(this, "errors.youOpenedAccountsInAllCreditManagersError") || this;
71
71
  }
72
- return AccountsInAlllCreditManagersError;
72
+ return AccountsInAllCreditManagersError;
73
73
  }(Error));
74
- exports.AccountsInAlllCreditManagersError = AccountsInAlllCreditManagersError;
74
+ exports.AccountsInAllCreditManagersError = AccountsInAllCreditManagersError;
75
75
  var OpenAccountError = /** @class */ (function (_super) {
76
76
  __extends(OpenAccountError, _super);
77
77
  function OpenAccountError(errorType, amount) {
@@ -19,7 +19,7 @@ var gear_1 = require("./gear");
19
19
  var normal_1 = require("./normal");
20
20
  var yearn_1 = require("./yearn");
21
21
  exports.lpTokens = __assign(__assign(__assign({}, curveLP_1.curveTokens), convex_1.convexTokens), yearn_1.yearnTokens);
22
- exports.supportedTokens = __assign(__assign(__assign(__assign(__assign({}, normal_1.normalTokens), curveLP_1.curveTokens), convex_1.convexTokens), yearn_1.yearnTokens), gear_1.gearTokens);
22
+ exports.supportedTokens = __assign(__assign(__assign({}, normal_1.normalTokens), exports.lpTokens), gear_1.gearTokens);
23
23
  exports.tokenDataByNetwork = {
24
24
  //
25
25
  // MAINNET NETWORK
@@ -168,6 +168,6 @@ var isSupportedToken = function (t) {
168
168
  };
169
169
  exports.isSupportedToken = isSupportedToken;
170
170
  var isLPToken = function (t) {
171
- return typeof t === "string" && !!exports.supportedTokens[t];
171
+ return typeof t === "string" && !!exports.lpTokens[t];
172
172
  };
173
173
  exports.isLPToken = isLPToken;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "1.0.1-next.1",
3
+ "version": "1.0.1",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -27,6 +27,8 @@
27
27
  "moment": "^2.29.4"
28
28
  },
29
29
  "devDependencies": {
30
+ "@commitlint/cli": "^17.0.3",
31
+ "@commitlint/config-conventional": "^17.0.3",
30
32
  "@gearbox-protocol/eslint-config": "^1.4.1",
31
33
  "@gearbox-protocol/prettier-config": "^1.4.1",
32
34
  "@types/jest": "^28.1.7",