@shapeshiftoss/unchained-client 10.2.3 → 10.2.5

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.
@@ -48,8 +48,14 @@ class Parser {
48
48
  if (!abiInterface)
49
49
  return;
50
50
  if (!this.yearnTokenVaultAddresses) {
51
- const vaults = await ((_a = this.yearnSdk) === null || _a === void 0 ? void 0 : _a.vaults.get());
52
- this.yearnTokenVaultAddresses = vaults === null || vaults === void 0 ? void 0 : vaults.map((vault) => vault.address);
51
+ try {
52
+ const vaults = await ((_a = this.yearnSdk) === null || _a === void 0 ? void 0 : _a.vaults.get());
53
+ this.yearnTokenVaultAddresses = vaults === null || vaults === void 0 ? void 0 : vaults.map((vault) => vault.address);
54
+ }
55
+ catch (e) {
56
+ console.error('yearn tx parser unable to fetch vaults', e);
57
+ return;
58
+ }
53
59
  }
54
60
  const decoded = abiInterface.parseTransaction({ data: tx.inputData });
55
61
  // failed to decode input data
@@ -15,7 +15,7 @@
15
15
  */
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
18
- exports.BASE_PATH = "https://dev-api.avalanche.shapeshift.com".replace(/\/+$/, "");
18
+ exports.BASE_PATH = "https://raw.githubusercontent.com".replace(/\/+$/, "");
19
19
  class Configuration {
20
20
  constructor(configuration = {}) {
21
21
  this.configuration = configuration;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
18
- exports.BASE_PATH = "https://dev-api.bitcoin.shapeshift.com".replace(/\/+$/, "");
18
+ exports.BASE_PATH = "https://raw.githubusercontent.com".replace(/\/+$/, "");
19
19
  class Configuration {
20
20
  constructor(configuration = {}) {
21
21
  this.configuration = configuration;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
18
- exports.BASE_PATH = "https://dev-api.bitcoincash.shapeshift.com".replace(/\/+$/, "");
18
+ exports.BASE_PATH = "https://raw.githubusercontent.com".replace(/\/+$/, "");
19
19
  class Configuration {
20
20
  constructor(configuration = {}) {
21
21
  this.configuration = configuration;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
18
- exports.BASE_PATH = "https://dev-api.dogecoin.shapeshift.com".replace(/\/+$/, "");
18
+ exports.BASE_PATH = "https://raw.githubusercontent.com".replace(/\/+$/, "");
19
19
  class Configuration {
20
20
  constructor(configuration = {}) {
21
21
  this.configuration = configuration;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
18
- exports.BASE_PATH = "https://dev-api.ethereum.shapeshift.com".replace(/\/+$/, "");
18
+ exports.BASE_PATH = "https://raw.githubusercontent.com".replace(/\/+$/, "");
19
19
  class Configuration {
20
20
  constructor(configuration = {}) {
21
21
  this.configuration = configuration;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
18
- exports.BASE_PATH = "https://dev-api.litecoin.shapeshift.com".replace(/\/+$/, "");
18
+ exports.BASE_PATH = "https://raw.githubusercontent.com".replace(/\/+$/, "");
19
19
  class Configuration {
20
20
  constructor(configuration = {}) {
21
21
  this.configuration = configuration;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/unchained-client",
3
- "version": "10.2.3",
3
+ "version": "10.2.5",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "source": "src/index.ts",
@@ -9,16 +9,10 @@
9
9
  "dist"
10
10
  ],
11
11
  "scripts": {
12
- "build": "yarn build:dev",
13
- "build:dev": "yarn clean && yarn generate:dev && tsc -p tsconfig.build.json",
14
- "build:prod": "yarn clean && yarn generate:prod && tsc -p tsconfig.build.json",
15
- "build:local": "yarn clean && yarn generate:local && tsc -p tsconfig.build.json",
12
+ "build": "yarn clean && yarn generate && tsc -p tsconfig.build.json",
16
13
  "dev": "tsc --watch",
17
14
  "clean": "rm -rf dist src/generated tsconfig.build.tsbuildinfo",
18
- "generate": "TS_POST_PROCESS_FILE=./generator/post_process.sh JAVA_OPTS='-Dlog.level=error' openapi-generator-cli generate && rm openapitools.json",
19
- "generate:dev": "cp generator/openapitools-dev.json openapitools.json && yarn generate",
20
- "generate:prod": "cp generator/openapitools-prod.json openapitools.json && yarn generate",
21
- "generate:local": "cp generator/openapitools-local.json openapitools.json && yarn generate",
15
+ "generate": "TS_POST_PROCESS_FILE=./generator/post_process.sh JAVA_OPTS='-Dlog.level=error' openapi-generator-cli generate",
22
16
  "type-check": "tsc --project ./tsconfig.build.json --noEmit"
23
17
  },
24
18
  "dependencies": {