@lifi/types 1.21.0 → 1.22.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,14 @@
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.22.0](https://github.com/lifinance/types/compare/v1.21.0...v1.22.0) (2023-02-06)
6
+
7
+
8
+ ### Features
9
+
10
+ * add opt allowDestCall flag to /routes,/quote ([#122](https://github.com/lifinance/types/issues/122)) ([a899bf2](https://github.com/lifinance/types/commit/a899bf2fee112de6fff002ee0c737f3325f71efa))
11
+ * make properties of Interface GetStatusRequest optional ([f2be836](https://github.com/lifinance/types/commit/f2be8362c4cad7227dba9ff4d4d9d885b9de4bc5))
12
+
5
13
  ## [1.21.0](https://github.com/lifinance/types/compare/v1.20.0...v1.21.0) (2023-01-26)
6
14
 
7
15
 
package/dist/api.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { TransactionRequest } from '@ethersproject/providers';
2
- import { BridgeDefinition, ChainId, ExchangeDefinition, Step, Token, Chain } from '.';
2
+ import { BridgeDefinition, Chain, ChainId, ExchangeDefinition, Step, 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];
@@ -19,6 +19,7 @@ export interface RouteOptions {
19
19
  infiniteApproval?: boolean;
20
20
  allowSwitchChain?: boolean;
21
21
  integrator?: string;
22
+ allowDestinationCall?: boolean;
22
23
  referrer?: string;
23
24
  bridges?: AllowDenyPrefer;
24
25
  exchanges?: AllowDenyPrefer;
@@ -107,6 +108,7 @@ export interface QuoteRequest extends ToolConfiguration {
107
108
  integrator?: string;
108
109
  referrer?: string;
109
110
  fee?: number | string;
111
+ allowDestinationCall?: boolean;
110
112
  }
111
113
  export interface ContractCallQuoteRequest extends ToolConfiguration {
112
114
  fromChain: number | string;
@@ -125,6 +127,7 @@ export interface ContractCallQuoteRequest extends ToolConfiguration {
125
127
  integrator?: string;
126
128
  referrer?: string;
127
129
  fee?: number | string;
130
+ allowDestinationCall?: boolean;
128
131
  }
129
132
  export interface ContractCallQuotesRequest extends ToolConfiguration {
130
133
  fromChain: number | string;
@@ -164,8 +167,8 @@ export interface ConnectionsResponse {
164
167
  export interface GetStatusRequest {
165
168
  txHash: string;
166
169
  bridge?: string;
167
- fromChain: number | string;
168
- toChain: number | string;
170
+ fromChain?: number | string;
171
+ toChain?: number | string;
169
172
  }
170
173
  export interface TransactionInfo {
171
174
  txHash: string;
package/dist/cjs/api.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { TransactionRequest } from '@ethersproject/providers';
2
- import { BridgeDefinition, ChainId, ExchangeDefinition, Step, Token, Chain } from '.';
2
+ import { BridgeDefinition, Chain, ChainId, ExchangeDefinition, Step, 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];
@@ -19,6 +19,7 @@ export interface RouteOptions {
19
19
  infiniteApproval?: boolean;
20
20
  allowSwitchChain?: boolean;
21
21
  integrator?: string;
22
+ allowDestinationCall?: boolean;
22
23
  referrer?: string;
23
24
  bridges?: AllowDenyPrefer;
24
25
  exchanges?: AllowDenyPrefer;
@@ -107,6 +108,7 @@ export interface QuoteRequest extends ToolConfiguration {
107
108
  integrator?: string;
108
109
  referrer?: string;
109
110
  fee?: number | string;
111
+ allowDestinationCall?: boolean;
110
112
  }
111
113
  export interface ContractCallQuoteRequest extends ToolConfiguration {
112
114
  fromChain: number | string;
@@ -125,6 +127,7 @@ export interface ContractCallQuoteRequest extends ToolConfiguration {
125
127
  integrator?: string;
126
128
  referrer?: string;
127
129
  fee?: number | string;
130
+ allowDestinationCall?: boolean;
128
131
  }
129
132
  export interface ContractCallQuotesRequest extends ToolConfiguration {
130
133
  fromChain: number | string;
@@ -164,8 +167,8 @@ export interface ConnectionsResponse {
164
167
  export interface GetStatusRequest {
165
168
  txHash: string;
166
169
  bridge?: string;
167
- fromChain: number | string;
168
- toChain: number | string;
170
+ fromChain?: number | string;
171
+ toChain?: number | string;
169
172
  }
170
173
  export interface TransactionInfo {
171
174
  txHash: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/types",
3
- "version": "1.21.0",
3
+ "version": "1.22.0",
4
4
  "description": "Types for the LI.FI stack",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/index.js",