@lifi/sdk 1.6.2 → 1.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
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.6.4](https://github.com/lifinance/sdk/compare/v1.6.3...v1.6.4) (2022-11-16)
6
+
7
+ ### [1.6.3](https://github.com/lifinance/sdk/compare/v1.6.2...v1.6.3) (2022-10-26)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * getChains types ([06f969b](https://github.com/lifinance/sdk/commit/06f969b18ce778cb66e8f14993cc8a215a1213e8))
13
+
5
14
  ### [1.6.2](https://github.com/lifinance/sdk/compare/v1.6.1...v1.6.2) (2022-10-26)
6
15
 
7
16
  ### [1.6.1](https://github.com/lifinance/sdk/compare/v1.6.0...v1.6.1) (2022-10-24)
package/dist/Lifi.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { FallbackProvider } from '@ethersproject/providers';
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
+ import { ChainId, ChainKey, ContractCallQuoteRequest, ExtendedChain, GetStatusRequest, PossibilitiesRequest, PossibilitiesResponse, QuoteRequest, RequestOptions, Route, RoutesRequest, RoutesResponse, StatusResponse, Step, Token, TokenAmount, TokensRequest, TokensResponse, ToolsRequest, ToolsResponse } from '@lifi/types';
3
3
  import { Signer } from 'ethers';
4
4
  import { ApproveTokenRequest, RevokeApprovalRequest } from './allowance';
5
5
  import { Config, ConfigUpdate, ExecutionSettings, RevokeTokenData } from './types';
@@ -80,7 +80,7 @@ export default class LIFI {
80
80
  * @return {Promise<Chain[]>} A list of all available chains
81
81
  * @throws {LifiError} Throws a LifiError if request fails.
82
82
  */
83
- getChains: () => Promise<Chain[]>;
83
+ getChains: () => Promise<ExtendedChain[]>;
84
84
  /**
85
85
  * Get a set of routes for a request that describes a transfer of tokens.
86
86
  * @param {RoutesRequest} routesRequest - A description of the transfer.
@@ -1,5 +1,5 @@
1
1
  import { FallbackProvider } from '@ethersproject/providers';
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
+ import { ChainId, ChainKey, ContractCallQuoteRequest, ExtendedChain, GetStatusRequest, PossibilitiesRequest, PossibilitiesResponse, QuoteRequest, RequestOptions, Route, RoutesRequest, RoutesResponse, StatusResponse, Step, Token, TokenAmount, TokensRequest, TokensResponse, ToolsRequest, ToolsResponse } from '@lifi/types';
3
3
  import { Signer } from 'ethers';
4
4
  import { ApproveTokenRequest, RevokeApprovalRequest } from './allowance';
5
5
  import { Config, ConfigUpdate, ExecutionSettings, RevokeTokenData } from './types';
@@ -80,7 +80,7 @@ export default class LIFI {
80
80
  * @return {Promise<Chain[]>} A list of all available chains
81
81
  * @throws {LifiError} Throws a LifiError if request fails.
82
82
  */
83
- getChains: () => Promise<Chain[]>;
83
+ getChains: () => Promise<ExtendedChain[]>;
84
84
  /**
85
85
  * Get a set of routes for a request that describes a transfer of tokens.
86
86
  * @param {RoutesRequest} routesRequest - A description of the transfer.
@@ -1,4 +1,4 @@
1
- import { Chain, ChainId } from '@lifi/types';
1
+ import { ChainId, ExtendedChain } from '@lifi/types';
2
2
  export default class ChainsService {
3
3
  private static instance;
4
4
  private readonly loadingPromise;
@@ -6,6 +6,6 @@ export default class ChainsService {
6
6
  constructor();
7
7
  private loadAvailableChains;
8
8
  static getInstance(): ChainsService;
9
- getChainById(chainId: ChainId): Promise<Chain>;
10
- getChains(): Promise<Chain[]>;
9
+ getChainById(chainId: ChainId): Promise<ExtendedChain>;
10
+ getChains(): Promise<ExtendedChain[]>;
11
11
  }
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@lifi/sdk";
2
- export declare const version = "1.6.2";
2
+ export declare const version = "1.6.4";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = exports.name = void 0;
4
4
  exports.name = '@lifi/sdk';
5
- exports.version = '1.6.2';
5
+ exports.version = '1.6.4';
@@ -1,4 +1,4 @@
1
- import { Chain, ChainId } from '@lifi/types';
1
+ import { ChainId, ExtendedChain } from '@lifi/types';
2
2
  export default class ChainsService {
3
3
  private static instance;
4
4
  private readonly loadingPromise;
@@ -6,6 +6,6 @@ export default class ChainsService {
6
6
  constructor();
7
7
  private loadAvailableChains;
8
8
  static getInstance(): ChainsService;
9
- getChainById(chainId: ChainId): Promise<Chain>;
10
- getChains(): Promise<Chain[]>;
9
+ getChainById(chainId: ChainId): Promise<ExtendedChain>;
10
+ getChains(): Promise<ExtendedChain[]>;
11
11
  }
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@lifi/sdk";
2
- export declare const version = "1.6.2";
2
+ export declare const version = "1.6.4";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export const name = '@lifi/sdk';
2
- export const version = '1.6.2';
2
+ export const version = '1.6.4';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/sdk",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "description": "LI.FI Any-to-Any Cross-Chain-Swap SDK",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/index.js",
@@ -76,7 +76,7 @@
76
76
  "dependencies": {
77
77
  "@ethersproject/abi": "^5.7.0",
78
78
  "@ethersproject/contracts": "^5.7.0",
79
- "@lifi/types": "^1.11.1",
79
+ "@lifi/types": "^1.16.0",
80
80
  "axios": "^1.1.3",
81
81
  "bignumber.js": "^9.1.0",
82
82
  "eth-rpc-errors": "^4.0.3",