@lifi/types 8.5.0 → 8.6.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 +23 -0
- package/dist/api.d.ts +21 -16
- package/dist/chains/supported.chains.js +2 -2
- package/dist/cjs/api.d.ts +21 -16
- package/dist/cjs/chains/supported.chains.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
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.6.0](https://github.com/lifinance/types/compare/v8.3.0...v8.6.0) (2023-08-30)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add BASE chain ([#186](https://github.com/lifinance/types/issues/186)) ([7726a93](https://github.com/lifinance/types/commit/7726a93c2fa1dbdef53f359229280c26670fe4c1))
|
|
11
|
+
* add Linea ([#187](https://github.com/lifinance/types/issues/187)) ([806597a](https://github.com/lifinance/types/commit/806597a16fabcd7ded9dc04fdaf131c059b719a5))
|
|
12
|
+
* contractCalls ([#188](https://github.com/lifinance/types/issues/188)) ([d3515da](https://github.com/lifinance/types/commit/d3515da6476a81d39a58ab23b134ac272079d962))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* fix wrong zksync image url ([#190](https://github.com/lifinance/types/issues/190)) ([d715aa0](https://github.com/lifinance/types/commit/d715aa039d981a1164c4bfb5c06aea2f1eca7c95))
|
|
18
|
+
* fix zksync block explorer url ([#189](https://github.com/lifinance/types/issues/189)) ([fcf4983](https://github.com/lifinance/types/commit/fcf4983dd4a939debdbb40c3a26ace88694e0aaa))
|
|
19
|
+
|
|
20
|
+
### [8.5.1](https://github.com/lifinance/types/compare/v8.5.0...v8.5.1) (2023-08-30)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* fix wrong zksync image url ([#190](https://github.com/lifinance/types/issues/190)) ([d715aa0](https://github.com/lifinance/types/commit/d715aa039d981a1164c4bfb5c06aea2f1eca7c95))
|
|
26
|
+
* fix zksync block explorer url ([#189](https://github.com/lifinance/types/issues/189)) ([fcf4983](https://github.com/lifinance/types/commit/fcf4983dd4a939debdbb40c3a26ace88694e0aaa))
|
|
27
|
+
|
|
5
28
|
## [8.5.0](https://github.com/lifinance/types/compare/v8.4.0...v8.5.0) (2023-08-29)
|
|
6
29
|
|
|
7
30
|
|
package/dist/api.d.ts
CHANGED
|
@@ -146,44 +146,49 @@ export interface QuoteRequest extends ToolConfiguration {
|
|
|
146
146
|
fromAmountForGas?: string;
|
|
147
147
|
maxPriceImpact?: number;
|
|
148
148
|
}
|
|
149
|
-
export interface
|
|
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
|
+
}
|
|
158
|
+
export interface ContractCallsQuoteRequest extends ToolConfiguration {
|
|
150
159
|
fromChain: number | string;
|
|
151
160
|
fromToken: string;
|
|
152
161
|
fromAddress: string;
|
|
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;
|
|
165
171
|
fee?: number | string;
|
|
166
172
|
allowDestinationCall?: boolean;
|
|
167
173
|
}
|
|
168
|
-
export interface
|
|
174
|
+
export interface ContractCallQuoteRequest extends ToolConfiguration {
|
|
169
175
|
fromChain: number | string;
|
|
170
176
|
fromToken: string;
|
|
171
177
|
fromAddress: string;
|
|
172
178
|
toChain: number | string;
|
|
179
|
+
toToken: string;
|
|
180
|
+
toAmount: string;
|
|
181
|
+
toContractAddress: string;
|
|
182
|
+
toContractCallData: string;
|
|
183
|
+
toContractGasLimit: string;
|
|
184
|
+
toApprovalAddress?: string;
|
|
173
185
|
toFallbackAddress?: string;
|
|
174
|
-
|
|
175
|
-
sendingAmount: string;
|
|
176
|
-
sendingToken: string;
|
|
177
|
-
receivingToken: string;
|
|
178
|
-
contractAddress: string;
|
|
179
|
-
approvalAddress?: string;
|
|
180
|
-
callData: string;
|
|
181
|
-
gasLimit: string;
|
|
182
|
-
}[];
|
|
183
|
-
order?: Order;
|
|
186
|
+
contractOutputsToken?: string;
|
|
184
187
|
slippage?: number | string;
|
|
185
188
|
integrator?: string;
|
|
186
189
|
referrer?: string;
|
|
190
|
+
fee?: number | string;
|
|
191
|
+
allowDestinationCall?: boolean;
|
|
187
192
|
}
|
|
188
193
|
export interface ConnectionsRequest extends ToolConfiguration {
|
|
189
194
|
fromChain?: number | string;
|
|
@@ -772,11 +772,11 @@ export const supportedEVMChains = [
|
|
|
772
772
|
coin: CoinKey.ETH,
|
|
773
773
|
id: 324,
|
|
774
774
|
mainnet: true,
|
|
775
|
-
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/zksync.
|
|
775
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/zksync.svg',
|
|
776
776
|
multicallAddress: multicallAddresses[ChainId.ERA],
|
|
777
777
|
metamask: {
|
|
778
778
|
chainId: prefixChainId(324),
|
|
779
|
-
blockExplorerUrls: ['https://
|
|
779
|
+
blockExplorerUrls: ['https://explorer.zksync.io/'],
|
|
780
780
|
chainName: 'zkSync Era Mainnet',
|
|
781
781
|
nativeCurrency: {
|
|
782
782
|
name: 'ETH',
|
package/dist/cjs/api.d.ts
CHANGED
|
@@ -146,44 +146,49 @@ export interface QuoteRequest extends ToolConfiguration {
|
|
|
146
146
|
fromAmountForGas?: string;
|
|
147
147
|
maxPriceImpact?: number;
|
|
148
148
|
}
|
|
149
|
-
export interface
|
|
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
|
+
}
|
|
158
|
+
export interface ContractCallsQuoteRequest extends ToolConfiguration {
|
|
150
159
|
fromChain: number | string;
|
|
151
160
|
fromToken: string;
|
|
152
161
|
fromAddress: string;
|
|
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;
|
|
165
171
|
fee?: number | string;
|
|
166
172
|
allowDestinationCall?: boolean;
|
|
167
173
|
}
|
|
168
|
-
export interface
|
|
174
|
+
export interface ContractCallQuoteRequest extends ToolConfiguration {
|
|
169
175
|
fromChain: number | string;
|
|
170
176
|
fromToken: string;
|
|
171
177
|
fromAddress: string;
|
|
172
178
|
toChain: number | string;
|
|
179
|
+
toToken: string;
|
|
180
|
+
toAmount: string;
|
|
181
|
+
toContractAddress: string;
|
|
182
|
+
toContractCallData: string;
|
|
183
|
+
toContractGasLimit: string;
|
|
184
|
+
toApprovalAddress?: string;
|
|
173
185
|
toFallbackAddress?: string;
|
|
174
|
-
|
|
175
|
-
sendingAmount: string;
|
|
176
|
-
sendingToken: string;
|
|
177
|
-
receivingToken: string;
|
|
178
|
-
contractAddress: string;
|
|
179
|
-
approvalAddress?: string;
|
|
180
|
-
callData: string;
|
|
181
|
-
gasLimit: string;
|
|
182
|
-
}[];
|
|
183
|
-
order?: Order;
|
|
186
|
+
contractOutputsToken?: string;
|
|
184
187
|
slippage?: number | string;
|
|
185
188
|
integrator?: string;
|
|
186
189
|
referrer?: string;
|
|
190
|
+
fee?: number | string;
|
|
191
|
+
allowDestinationCall?: boolean;
|
|
187
192
|
}
|
|
188
193
|
export interface ConnectionsRequest extends ToolConfiguration {
|
|
189
194
|
fromChain?: number | string;
|
|
@@ -775,11 +775,11 @@ exports.supportedEVMChains = [
|
|
|
775
775
|
coin: base_1.CoinKey.ETH,
|
|
776
776
|
id: 324,
|
|
777
777
|
mainnet: true,
|
|
778
|
-
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/zksync.
|
|
778
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/zksync.svg',
|
|
779
779
|
multicallAddress: multicall_1.multicallAddresses[base_1.ChainId.ERA],
|
|
780
780
|
metamask: {
|
|
781
781
|
chainId: (0, EVMChain_1.prefixChainId)(324),
|
|
782
|
-
blockExplorerUrls: ['https://
|
|
782
|
+
blockExplorerUrls: ['https://explorer.zksync.io/'],
|
|
783
783
|
chainName: 'zkSync Era Mainnet',
|
|
784
784
|
nativeCurrency: {
|
|
785
785
|
name: 'ETH',
|