@lifi/types 8.6.1 → 8.7.0

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
+ ## [8.7.0](https://github.com/lifinance/types/compare/v8.6.1...v8.7.0) (2023-09-13)
6
+
7
+
8
+ ### Features
9
+
10
+ * add chainRequest for the /chains endpoint ([#193](https://github.com/lifinance/types/issues/193)) ([0957702](https://github.com/lifinance/types/commit/0957702048ce1f466a6ee82210c36750067c92cd))
11
+
5
12
  ### [8.6.1](https://github.com/lifinance/types/compare/v8.6.0...v8.6.1) (2023-08-31)
6
13
 
7
14
  ## [8.6.0](https://github.com/lifinance/types/compare/v8.3.0...v8.6.0) (2023-08-30)
package/dist/api.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { TransactionRequest } from '@ethersproject/providers';
2
- import { BridgeDefinition, Chain, ChainId, ExchangeDefinition, LifiStep, Token } from '.';
2
+ import { BridgeDefinition, Chain, ChainId, ChainType, ExchangeDefinition, LifiStep, Token } from '.';
3
3
  import { ToolError } from './apiErrors';
4
4
  export declare const Orders: readonly ["RECOMMENDED", "FASTEST", "CHEAPEST", "SAFEST"];
5
5
  export type Order = (typeof Orders)[number];
@@ -195,6 +195,7 @@ export interface ConnectionsRequest extends ToolConfiguration {
195
195
  fromToken?: string;
196
196
  toChain?: number | string;
197
197
  toToken?: string;
198
+ chainType?: ChainType;
198
199
  }
199
200
  export interface Connection {
200
201
  fromChainId: number;
@@ -265,11 +266,15 @@ export interface ExtendedChain extends Chain {
265
266
  export interface ChainsResponse {
266
267
  chains: ExtendedChain[];
267
268
  }
269
+ export interface ChainsRequest {
270
+ chainType?: ChainType;
271
+ }
268
272
  export interface ToolsRequest {
269
273
  chains?: ChainId[];
270
274
  }
271
275
  export type TokensRequest = {
272
276
  chains?: ChainId[];
277
+ chainType?: ChainType;
273
278
  };
274
279
  export type TokensResponse = {
275
280
  tokens: {
package/dist/cjs/api.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { TransactionRequest } from '@ethersproject/providers';
2
- import { BridgeDefinition, Chain, ChainId, ExchangeDefinition, LifiStep, Token } from '.';
2
+ import { BridgeDefinition, Chain, ChainId, ChainType, ExchangeDefinition, LifiStep, Token } from '.';
3
3
  import { ToolError } from './apiErrors';
4
4
  export declare const Orders: readonly ["RECOMMENDED", "FASTEST", "CHEAPEST", "SAFEST"];
5
5
  export type Order = (typeof Orders)[number];
@@ -195,6 +195,7 @@ export interface ConnectionsRequest extends ToolConfiguration {
195
195
  fromToken?: string;
196
196
  toChain?: number | string;
197
197
  toToken?: string;
198
+ chainType?: ChainType;
198
199
  }
199
200
  export interface Connection {
200
201
  fromChainId: number;
@@ -265,11 +266,15 @@ export interface ExtendedChain extends Chain {
265
266
  export interface ChainsResponse {
266
267
  chains: ExtendedChain[];
267
268
  }
269
+ export interface ChainsRequest {
270
+ chainType?: ChainType;
271
+ }
268
272
  export interface ToolsRequest {
269
273
  chains?: ChainId[];
270
274
  }
271
275
  export type TokensRequest = {
272
276
  chains?: ChainId[];
277
+ chainType?: ChainType;
273
278
  };
274
279
  export type TokensResponse = {
275
280
  tokens: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/types",
3
- "version": "8.6.1",
3
+ "version": "8.7.0",
4
4
  "description": "Types for the LI.FI stack",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/index.js",