@lifi/types 8.2.0 → 8.2.1-alpha.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,8 @@
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.2.1-alpha.0](https://github.com/lifinance/types/compare/v8.2.0...v8.2.1-alpha.0) (2023-08-08)
6
+
5
7
  ## [8.2.0](https://github.com/lifinance/types/compare/v8.0.4...v8.2.0) (2023-07-26)
6
8
 
7
9
 
package/dist/api.d.ts CHANGED
@@ -146,6 +146,15 @@ export interface QuoteRequest extends ToolConfiguration {
146
146
  fromAmountForGas?: string;
147
147
  maxPriceImpact?: number;
148
148
  }
149
+ export interface ContractCall {
150
+ fromAmount: string;
151
+ fromTokenAddress: string;
152
+ toContractAddress: string;
153
+ toContractCallData: string;
154
+ toContractGasLimit: string;
155
+ toApprovalAddress?: string;
156
+ toTokenAddress?: string;
157
+ }
149
158
  export interface ContractCallQuoteRequest extends ToolConfiguration {
150
159
  fromChain: number | string;
151
160
  fromToken: string;
@@ -153,12 +162,9 @@ export interface ContractCallQuoteRequest extends ToolConfiguration {
153
162
  toChain: number | string;
154
163
  toToken: string;
155
164
  toAmount: string;
156
- toContractAddress: string;
157
- toContractCallData: string;
158
- toContractGasLimit: string;
159
- toApprovalAddress?: string;
160
165
  toFallbackAddress?: string;
161
166
  contractOutputsToken?: string;
167
+ contractCalls: ContractCall[];
162
168
  slippage?: number | string;
163
169
  integrator?: string;
164
170
  referrer?: string;
package/dist/cjs/api.d.ts CHANGED
@@ -146,6 +146,15 @@ export interface QuoteRequest extends ToolConfiguration {
146
146
  fromAmountForGas?: string;
147
147
  maxPriceImpact?: number;
148
148
  }
149
+ export interface ContractCall {
150
+ fromAmount: string;
151
+ fromTokenAddress: string;
152
+ toContractAddress: string;
153
+ toContractCallData: string;
154
+ toContractGasLimit: string;
155
+ toApprovalAddress?: string;
156
+ toTokenAddress?: string;
157
+ }
149
158
  export interface ContractCallQuoteRequest extends ToolConfiguration {
150
159
  fromChain: number | string;
151
160
  fromToken: string;
@@ -153,12 +162,9 @@ export interface ContractCallQuoteRequest extends ToolConfiguration {
153
162
  toChain: number | string;
154
163
  toToken: string;
155
164
  toAmount: string;
156
- toContractAddress: string;
157
- toContractCallData: string;
158
- toContractGasLimit: string;
159
- toApprovalAddress?: string;
160
165
  toFallbackAddress?: string;
161
166
  contractOutputsToken?: string;
167
+ contractCalls: ContractCall[];
162
168
  slippage?: number | string;
163
169
  integrator?: string;
164
170
  referrer?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/types",
3
- "version": "8.2.0",
3
+ "version": "8.2.1-alpha.0",
4
4
  "description": "Types for the LI.FI stack",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/index.js",