@lifi/types 1.10.0 → 1.11.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 +19 -0
- package/dist/api.d.ts +5 -2
- package/dist/bridges.js +1 -1
- package/dist/chains/supported.chains.js +5 -5
- package/dist/cjs/api.d.ts +5 -2
- package/dist/cjs/bridges.js +1 -1
- package/dist/cjs/chains/supported.chains.js +5 -5
- package/dist/cjs/coins.js +3 -1
- package/dist/cjs/exchanges.js +1 -1
- package/dist/coins.js +3 -1
- package/dist/exchanges.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
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.11.0](https://github.com/lifinance/types/compare/v1.10.1...v1.11.0) (2022-10-25)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **api:** include nativeToken in chains response ([#104](https://github.com/lifinance/types/issues/104)) ([caf6262](https://github.com/lifinance/types/commit/caf6262ca634e063d832f0495710cb5b54a8f3ae))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **EVMOS:** fix name of native evmos coin ([#103](https://github.com/lifinance/types/issues/103)) ([60490c0](https://github.com/lifinance/types/commit/60490c000e3fea06eca415e1c53619ff46ba1208))
|
|
16
|
+
|
|
17
|
+
### [1.10.1](https://github.com/lifinance/types/compare/v1.10.0...v1.10.1) (2022-10-24)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* adjust Arbitrum One name ([#102](https://github.com/lifinance/types/issues/102)) ([530ba68](https://github.com/lifinance/types/commit/530ba68e415c2c6e279aa60749ffaf1cbd579ef1))
|
|
23
|
+
|
|
5
24
|
## [1.10.0](https://github.com/lifinance/types/compare/v1.9.1...v1.10.0) (2022-10-21)
|
|
6
25
|
|
|
7
26
|
|
package/dist/api.d.ts
CHANGED
|
@@ -181,8 +181,11 @@ export interface StatusResponse extends StatusInformation {
|
|
|
181
181
|
tool?: string;
|
|
182
182
|
bridgeExplorerLink?: string;
|
|
183
183
|
}
|
|
184
|
+
interface ExtendedChain extends Chain {
|
|
185
|
+
nativeToken: Token;
|
|
186
|
+
}
|
|
184
187
|
export interface ChainsResponse {
|
|
185
|
-
chains:
|
|
188
|
+
chains: ExtendedChain[];
|
|
186
189
|
}
|
|
187
190
|
export interface ToolsRequest {
|
|
188
191
|
chains?: ChainId[];
|
|
@@ -235,7 +238,7 @@ export declare class LifiAPI {
|
|
|
235
238
|
getContractCallQuotes(request: ContractCallQuotesRequest): Promise<Step>;
|
|
236
239
|
getStatus(request: GetStatusRequest): Promise<StatusResponse>;
|
|
237
240
|
getTools(request: ToolsRequest): Promise<ToolsResponse>;
|
|
238
|
-
getChains(): ChainsResponse
|
|
241
|
+
getChains(): Promise<ChainsResponse>;
|
|
239
242
|
getConnections(request: ConnectionsRequest): Promise<ConnectionsResponse>;
|
|
240
243
|
getIntegratorData(integratorAddress: string): Promise<Integrator>;
|
|
241
244
|
getIntegratorWithdrawalTransaction(request: IntegratorWithdrawalRequest): Promise<IntegratorWithdrawalTransactionResponse>;
|
package/dist/bridges.js
CHANGED
|
@@ -89,7 +89,7 @@ export const supportedBridges = [
|
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
key: BridgeTool.arbitrum,
|
|
92
|
-
name: 'Arbitrum
|
|
92
|
+
name: 'Arbitrum Bridge',
|
|
93
93
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/bridges/arbitrum.png',
|
|
94
94
|
bridgeUrl: 'https://bridge.arbitrum.io/',
|
|
95
95
|
discordUrl: 'https://discord.gg/ZpZuw7p',
|
|
@@ -199,11 +199,11 @@ export const supportedEVMChains = [
|
|
|
199
199
|
rpcUrls: ['https://api.avax.network/ext/bc/C/rpc'],
|
|
200
200
|
},
|
|
201
201
|
},
|
|
202
|
-
// 42161 - Arbitrum
|
|
202
|
+
// 42161 - Arbitrum
|
|
203
203
|
{
|
|
204
204
|
key: ChainKey.ARB,
|
|
205
205
|
chainType: ChainType.EVM,
|
|
206
|
-
name: 'Arbitrum
|
|
206
|
+
name: 'Arbitrum',
|
|
207
207
|
coin: CoinKey.ETH,
|
|
208
208
|
id: 42161,
|
|
209
209
|
mainnet: true,
|
|
@@ -214,7 +214,7 @@ export const supportedEVMChains = [
|
|
|
214
214
|
metamask: {
|
|
215
215
|
chainId: prefixChainId(42161),
|
|
216
216
|
blockExplorerUrls: ['https://arbiscan.io/'],
|
|
217
|
-
chainName: 'Arbitrum
|
|
217
|
+
chainName: 'Arbitrum',
|
|
218
218
|
nativeCurrency: {
|
|
219
219
|
name: 'AETH',
|
|
220
220
|
symbol: 'AETH',
|
|
@@ -757,8 +757,8 @@ export const supportedEVMChains = [
|
|
|
757
757
|
blockExplorerUrls: ['https://evm.evmos.org/'],
|
|
758
758
|
chainName: 'Evmos',
|
|
759
759
|
nativeCurrency: {
|
|
760
|
-
name: '
|
|
761
|
-
symbol: '
|
|
760
|
+
name: 'EVMOS',
|
|
761
|
+
symbol: 'EVMOS',
|
|
762
762
|
decimals: 18,
|
|
763
763
|
},
|
|
764
764
|
rpcUrls: ['https://eth.bd.evmos.org:8545'],
|
package/dist/cjs/api.d.ts
CHANGED
|
@@ -181,8 +181,11 @@ export interface StatusResponse extends StatusInformation {
|
|
|
181
181
|
tool?: string;
|
|
182
182
|
bridgeExplorerLink?: string;
|
|
183
183
|
}
|
|
184
|
+
interface ExtendedChain extends Chain {
|
|
185
|
+
nativeToken: Token;
|
|
186
|
+
}
|
|
184
187
|
export interface ChainsResponse {
|
|
185
|
-
chains:
|
|
188
|
+
chains: ExtendedChain[];
|
|
186
189
|
}
|
|
187
190
|
export interface ToolsRequest {
|
|
188
191
|
chains?: ChainId[];
|
|
@@ -235,7 +238,7 @@ export declare class LifiAPI {
|
|
|
235
238
|
getContractCallQuotes(request: ContractCallQuotesRequest): Promise<Step>;
|
|
236
239
|
getStatus(request: GetStatusRequest): Promise<StatusResponse>;
|
|
237
240
|
getTools(request: ToolsRequest): Promise<ToolsResponse>;
|
|
238
|
-
getChains(): ChainsResponse
|
|
241
|
+
getChains(): Promise<ChainsResponse>;
|
|
239
242
|
getConnections(request: ConnectionsRequest): Promise<ConnectionsResponse>;
|
|
240
243
|
getIntegratorData(integratorAddress: string): Promise<Integrator>;
|
|
241
244
|
getIntegratorWithdrawalTransaction(request: IntegratorWithdrawalRequest): Promise<IntegratorWithdrawalTransactionResponse>;
|
package/dist/cjs/bridges.js
CHANGED
|
@@ -92,7 +92,7 @@ exports.supportedBridges = [
|
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
key: BridgeTool.arbitrum,
|
|
95
|
-
name: 'Arbitrum
|
|
95
|
+
name: 'Arbitrum Bridge',
|
|
96
96
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/bridges/arbitrum.png',
|
|
97
97
|
bridgeUrl: 'https://bridge.arbitrum.io/',
|
|
98
98
|
discordUrl: 'https://discord.gg/ZpZuw7p',
|
|
@@ -202,11 +202,11 @@ exports.supportedEVMChains = [
|
|
|
202
202
|
rpcUrls: ['https://api.avax.network/ext/bc/C/rpc'],
|
|
203
203
|
},
|
|
204
204
|
},
|
|
205
|
-
// 42161 - Arbitrum
|
|
205
|
+
// 42161 - Arbitrum
|
|
206
206
|
{
|
|
207
207
|
key: base_1.ChainKey.ARB,
|
|
208
208
|
chainType: Chain_1.ChainType.EVM,
|
|
209
|
-
name: 'Arbitrum
|
|
209
|
+
name: 'Arbitrum',
|
|
210
210
|
coin: base_1.CoinKey.ETH,
|
|
211
211
|
id: 42161,
|
|
212
212
|
mainnet: true,
|
|
@@ -217,7 +217,7 @@ exports.supportedEVMChains = [
|
|
|
217
217
|
metamask: {
|
|
218
218
|
chainId: (0, EVMChain_1.prefixChainId)(42161),
|
|
219
219
|
blockExplorerUrls: ['https://arbiscan.io/'],
|
|
220
|
-
chainName: 'Arbitrum
|
|
220
|
+
chainName: 'Arbitrum',
|
|
221
221
|
nativeCurrency: {
|
|
222
222
|
name: 'AETH',
|
|
223
223
|
symbol: 'AETH',
|
|
@@ -760,8 +760,8 @@ exports.supportedEVMChains = [
|
|
|
760
760
|
blockExplorerUrls: ['https://evm.evmos.org/'],
|
|
761
761
|
chainName: 'Evmos',
|
|
762
762
|
nativeCurrency: {
|
|
763
|
-
name: '
|
|
764
|
-
symbol: '
|
|
763
|
+
name: 'EVMOS',
|
|
764
|
+
symbol: 'EVMOS',
|
|
765
765
|
decimals: 18,
|
|
766
766
|
},
|
|
767
767
|
rpcUrls: ['https://eth.bd.evmos.org:8545'],
|
package/dist/cjs/coins.js
CHANGED
|
@@ -1093,13 +1093,15 @@ const basicCoins = [
|
|
|
1093
1093
|
// > EVM
|
|
1094
1094
|
{
|
|
1095
1095
|
key: base_1.CoinKey.EVM,
|
|
1096
|
-
name: '
|
|
1096
|
+
name: 'EVMOS',
|
|
1097
1097
|
logoURI: 'https://raw.githubusercontent.com/cronus-finance/token-list/main/assets/evmos/0xD4949664cD82660AaE99bEdc034a0deA8A0bd517/logo.png',
|
|
1098
1098
|
verified: true,
|
|
1099
1099
|
chains: {
|
|
1100
1100
|
[base_1.ChainId.EVM]: {
|
|
1101
1101
|
address: '0x0000000000000000000000000000000000000000',
|
|
1102
1102
|
decimals: 18,
|
|
1103
|
+
symbol: 'EVMOS',
|
|
1104
|
+
name: 'EVMOS',
|
|
1103
1105
|
},
|
|
1104
1106
|
},
|
|
1105
1107
|
},
|
package/dist/cjs/exchanges.js
CHANGED
package/dist/coins.js
CHANGED
|
@@ -1090,13 +1090,15 @@ const basicCoins = [
|
|
|
1090
1090
|
// > EVM
|
|
1091
1091
|
{
|
|
1092
1092
|
key: CoinKey.EVM,
|
|
1093
|
-
name: '
|
|
1093
|
+
name: 'EVMOS',
|
|
1094
1094
|
logoURI: 'https://raw.githubusercontent.com/cronus-finance/token-list/main/assets/evmos/0xD4949664cD82660AaE99bEdc034a0deA8A0bd517/logo.png',
|
|
1095
1095
|
verified: true,
|
|
1096
1096
|
chains: {
|
|
1097
1097
|
[ChainId.EVM]: {
|
|
1098
1098
|
address: '0x0000000000000000000000000000000000000000',
|
|
1099
1099
|
decimals: 18,
|
|
1100
|
+
symbol: 'EVMOS',
|
|
1101
|
+
name: 'EVMOS',
|
|
1100
1102
|
},
|
|
1101
1103
|
},
|
|
1102
1104
|
},
|
package/dist/exchanges.js
CHANGED