@lifi/sdk
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -5,2 +5,9 @@ # Changelog | ||
### [1.1.2](https://github.com/lifinance/sdk/compare/v1.1.1...v1.1.2) (2022-08-04) | ||
### Bug Fixes | ||
* contract call endpoint ([#98](https://github.com/lifinance/sdk/issues/98)) ([d21ccc9](https://github.com/lifinance/sdk/commit/d21ccc974caf4632a1f2c9c38c52def89332e284)) | ||
### [1.1.1](https://github.com/lifinance/sdk/compare/v1.1.0...v1.1.1) (2022-08-03) | ||
@@ -7,0 +14,0 @@ |
@@ -30,2 +30,7 @@ "use strict"; | ||
} | ||
// Change status to PENDING after resuming from FAILED | ||
if (currentExecution.status === 'FAILED') { | ||
currentExecution.status = 'PENDING'; | ||
_this.updateStepInRoute(step); | ||
} | ||
return currentExecution; | ||
@@ -32,0 +37,0 @@ }; |
@@ -0,4 +1,4 @@ | ||
import { FallbackProvider } from '@ethersproject/providers'; | ||
import { Chain, ChainId, ChainKey, ContractCallQuoteRequest, GetStatusRequest, PossibilitiesRequest, PossibilitiesResponse, QuoteRequest, RequestOptions, Route, RoutesRequest, RoutesResponse, StatusResponse, Step, Token, TokenAmount, TokensRequest, TokensResponse, ToolsRequest, ToolsResponse } from '@lifi/types'; | ||
import { Signer } from 'ethers'; | ||
import { FallbackProvider } from '@ethersproject/providers'; | ||
import { ApproveTokenRequest, RevokeApprovalRequest } from './allowance'; | ||
@@ -5,0 +5,0 @@ import { Config, ConfigUpdate, ExecutionSettings, RevokeTokenData } from './types'; |
@@ -223,3 +223,3 @@ "use strict"; | ||
_g.trys.push([1, 3, , 4]); | ||
return [4 /*yield*/, axios_1.default.post(config.apiUrl + 'quoteContractCall', request, { | ||
return [4 /*yield*/, axios_1.default.post(config.apiUrl + 'quote/contractCall', request, { | ||
signal: options === null || options === void 0 ? void 0 : options.signal, | ||
@@ -226,0 +226,0 @@ })]; |
{ | ||
"name": "@lifi/sdk", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "LI.FI Any-to-Any Cross-Chain-Swap SDK", | ||
@@ -69,4 +69,4 @@ "main": "./dist/index.js", | ||
"@types/websocket": "^1.0.4", | ||
"@typescript-eslint/eslint-plugin": "^5.30.6", | ||
"@typescript-eslint/parser": "^5.30.6", | ||
"@typescript-eslint/eslint-plugin": "^5.32.0", | ||
"@typescript-eslint/parser": "^5.32.0", | ||
"eslint": "^8.19.0", | ||
@@ -73,0 +73,0 @@ "eslint-config-prettier": "^8.3.0", |
306989
5345