@lifi/sdk 1.1.1 → 1.1.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.1.2](https://github.com/lifinance/sdk/compare/v1.1.1...v1.1.2) (2022-08-04)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * contract call endpoint ([#98](https://github.com/lifinance/sdk/issues/98)) ([d21ccc9](https://github.com/lifinance/sdk/commit/d21ccc974caf4632a1f2c9c38c52def89332e284))
11
+
5
12
  ### [1.1.1](https://github.com/lifinance/sdk/compare/v1.1.0...v1.1.1) (2022-08-03)
6
13
 
7
14
 
package/dist/Lifi.d.ts CHANGED
@@ -1,6 +1,6 @@
1
+ import { FallbackProvider } from '@ethersproject/providers';
1
2
  import { Chain, ChainId, ChainKey, ContractCallQuoteRequest, GetStatusRequest, PossibilitiesRequest, PossibilitiesResponse, QuoteRequest, RequestOptions, Route, RoutesRequest, RoutesResponse, StatusResponse, Step, Token, TokenAmount, TokensRequest, TokensResponse, ToolsRequest, ToolsResponse } from '@lifi/types';
2
3
  import { Signer } from 'ethers';
3
- import { FallbackProvider } from '@ethersproject/providers';
4
4
  import { ApproveTokenRequest, RevokeApprovalRequest } from './allowance';
5
5
  import { Config, ConfigUpdate, ExecutionSettings, RevokeTokenData } from './types';
6
6
  export default class LIFI {
@@ -27,6 +27,11 @@ var StatusManager = /** @class */ (function () {
27
27
  step.execution.status = 'PENDING';
28
28
  _this.updateStepInRoute(step);
29
29
  }
30
+ // Change status to PENDING after resuming from FAILED
31
+ if (currentExecution.status === 'FAILED') {
32
+ currentExecution.status = 'PENDING';
33
+ _this.updateStepInRoute(step);
34
+ }
30
35
  return currentExecution;
31
36
  };
32
37
  /**
@@ -220,7 +220,7 @@ var getContractCallQuote = function (request, options) { return __awaiter(void 0
220
220
  _g.label = 1;
221
221
  case 1:
222
222
  _g.trys.push([1, 3, , 4]);
223
- return [4 /*yield*/, axios_1.default.post(config.apiUrl + 'quoteContractCall', request, {
223
+ return [4 /*yield*/, axios_1.default.post(config.apiUrl + 'quote/contractCall', request, {
224
224
  signal: options === null || options === void 0 ? void 0 : options.signal,
225
225
  })];
226
226
  case 2:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/sdk",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "LI.FI Any-to-Any Cross-Chain-Swap SDK",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -66,8 +66,8 @@
66
66
  "@types/hdkey": "^2.0.0",
67
67
  "@types/jest": "^28.1.4",
68
68
  "@types/websocket": "^1.0.4",
69
- "@typescript-eslint/eslint-plugin": "^5.30.6",
70
- "@typescript-eslint/parser": "^5.30.6",
69
+ "@typescript-eslint/eslint-plugin": "^5.32.0",
70
+ "@typescript-eslint/parser": "^5.32.0",
71
71
  "eslint": "^8.19.0",
72
72
  "eslint-config-prettier": "^8.3.0",
73
73
  "eslint-plugin-prettier": "^4.2.1",