@gearbox-protocol/sdk 8.6.3 → 8.6.4

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.
@@ -24,12 +24,12 @@ module.exports = __toCommonJS(createCreditAccountService_exports);
24
24
  var import_constants = require("../constants/index.js");
25
25
  var import_CreditAccountsServiceV300 = require("./CreditAccountsServiceV300.js");
26
26
  var import_CreditAccountsServiceV310 = require("./CreditAccountsServiceV310.js");
27
- function createCreditAccountService(sdk, version) {
27
+ function createCreditAccountService(sdk, version, options) {
28
28
  if ((0, import_constants.isV300)(version)) {
29
- return new import_CreditAccountsServiceV300.CreditAccountServiceV300(sdk);
29
+ return new import_CreditAccountsServiceV300.CreditAccountServiceV300(sdk, options);
30
30
  }
31
31
  if ((0, import_constants.isV310)(version)) {
32
- return new import_CreditAccountsServiceV310.CreditAccountServiceV310(sdk);
32
+ return new import_CreditAccountsServiceV310.CreditAccountServiceV310(sdk, options);
33
33
  }
34
34
  throw new Error(`Unsupported Credit Account Service version ${version}`);
35
35
  }
@@ -1,12 +1,12 @@
1
1
  import { isV300, isV310 } from "../constants/index.js";
2
2
  import { CreditAccountServiceV300 } from "./CreditAccountsServiceV300.js";
3
3
  import { CreditAccountServiceV310 } from "./CreditAccountsServiceV310.js";
4
- function createCreditAccountService(sdk, version) {
4
+ function createCreditAccountService(sdk, version, options) {
5
5
  if (isV300(version)) {
6
- return new CreditAccountServiceV300(sdk);
6
+ return new CreditAccountServiceV300(sdk, options);
7
7
  }
8
8
  if (isV310(version)) {
9
- return new CreditAccountServiceV310(sdk);
9
+ return new CreditAccountServiceV310(sdk, options);
10
10
  }
11
11
  throw new Error(`Unsupported Credit Account Service version ${version}`);
12
12
  }
@@ -1,8 +1,9 @@
1
1
  import type { GearboxSDK } from "../GearboxSDK.js";
2
+ import type { CreditAccountServiceOptions } from "./AbstractCreditAccountsService.js";
2
3
  import type { CreditAccountsServiceInstance } from "./types.js";
3
4
  /**
4
5
  * @sdk
5
6
  * @version version of desired credit facade; if no credit facade is considered (you only want to get ca list), either v300 or v310 is fine, because ca compressor has nothing to do with credit facade version
6
7
  * @returns
7
8
  */
8
- export declare function createCreditAccountService(sdk: GearboxSDK, version: number): CreditAccountsServiceInstance;
9
+ export declare function createCreditAccountService(sdk: GearboxSDK, version: number, options?: CreditAccountServiceOptions): CreditAccountsServiceInstance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "8.6.3",
3
+ "version": "8.6.4",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",