@lifi/types 1.14.1 → 1.16.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 +14 -0
- package/dist/api.d.ts +3 -0
- package/dist/cjs/api.d.ts +3 -0
- package/dist/cjs/exchanges.js +16 -0
- package/dist/exchanges.js +16 -0
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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.16.0](https://github.com/lifinance/types/compare/v1.15.0...v1.16.0) (2022-11-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add gas info in tx info ([#111](https://github.com/lifinance/types/issues/111)) ([d56277d](https://github.com/lifinance/types/commit/d56277dd22ad19fded6e0aa2a7d5ee2c67861f19))
|
|
11
|
+
|
|
12
|
+
## [1.15.0](https://github.com/lifinance/types/compare/v1.14.1...v1.15.0) (2022-11-09)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* add Pangolin DEX on AVA ([#110](https://github.com/lifinance/types/issues/110)) ([6f85bf1](https://github.com/lifinance/types/commit/6f85bf19f7be34e9866840134d0bb18a11cef1ec))
|
|
18
|
+
|
|
5
19
|
### [1.14.1](https://github.com/lifinance/types/compare/v1.14.0...v1.14.1) (2022-11-09)
|
|
6
20
|
|
|
7
21
|
|
package/dist/api.d.ts
CHANGED
|
@@ -175,6 +175,9 @@ export interface TransactionInfo {
|
|
|
175
175
|
chainId?: ChainId;
|
|
176
176
|
gasPrice?: string;
|
|
177
177
|
gasUsed?: string;
|
|
178
|
+
gasToken?: Token;
|
|
179
|
+
gasAmount?: string;
|
|
180
|
+
gasAmountUSD?: string;
|
|
178
181
|
}
|
|
179
182
|
declare const _StatusMessage: readonly ["NOT_FOUND", "INVALID", "PENDING", "DONE", "FAILED"];
|
|
180
183
|
export declare type StatusMessage = typeof _StatusMessage[number];
|
package/dist/cjs/api.d.ts
CHANGED
|
@@ -175,6 +175,9 @@ export interface TransactionInfo {
|
|
|
175
175
|
chainId?: ChainId;
|
|
176
176
|
gasPrice?: string;
|
|
177
177
|
gasUsed?: string;
|
|
178
|
+
gasToken?: Token;
|
|
179
|
+
gasAmount?: string;
|
|
180
|
+
gasAmountUSD?: string;
|
|
178
181
|
}
|
|
179
182
|
declare const _StatusMessage: readonly ["NOT_FOUND", "INVALID", "PENDING", "DONE", "FAILED"];
|
|
180
183
|
export declare type StatusMessage = typeof _StatusMessage[number];
|
package/dist/cjs/exchanges.js
CHANGED
|
@@ -464,6 +464,22 @@ exports.supportedExchanges = [
|
|
|
464
464
|
(0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.AVA),
|
|
465
465
|
],
|
|
466
466
|
},
|
|
467
|
+
{
|
|
468
|
+
key: 'pangolin-ava',
|
|
469
|
+
name: 'Pangolin',
|
|
470
|
+
chainId: _1.ChainId.AVA,
|
|
471
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/pangolin.png',
|
|
472
|
+
webUrl: 'https://pangolin.exchange/',
|
|
473
|
+
tokenlistUrl: 'https://raw.githubusercontent.com/pangolindex/tokenlists/main/pangolin.tokenlist.json',
|
|
474
|
+
routerAddress: '0xE54Ca86531e17Ef3616d22Ca28b0D458b6C89106',
|
|
475
|
+
factoryAddress: '0xefa94DE7a4656D787667C749f7E1223D71E9FD88',
|
|
476
|
+
initCodeHash: '0x40231f6b438bce0797c9ada29b718a87ea0a5cea3fe9a771abdd76bd41a3e545',
|
|
477
|
+
baseTokens: [
|
|
478
|
+
(0, _1.findWrappedGasOnChain)(_1.ChainId.AVA),
|
|
479
|
+
(0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.AVA),
|
|
480
|
+
(0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.AVA),
|
|
481
|
+
],
|
|
482
|
+
},
|
|
467
483
|
// 42161 - Arbitrum
|
|
468
484
|
{
|
|
469
485
|
key: 'sushiswap-arb',
|
package/dist/exchanges.js
CHANGED
|
@@ -461,6 +461,22 @@ export const supportedExchanges = [
|
|
|
461
461
|
findDefaultToken(CoinKey.SUSHI, ChainId.AVA),
|
|
462
462
|
],
|
|
463
463
|
},
|
|
464
|
+
{
|
|
465
|
+
key: 'pangolin-ava',
|
|
466
|
+
name: 'Pangolin',
|
|
467
|
+
chainId: ChainId.AVA,
|
|
468
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/pangolin.png',
|
|
469
|
+
webUrl: 'https://pangolin.exchange/',
|
|
470
|
+
tokenlistUrl: 'https://raw.githubusercontent.com/pangolindex/tokenlists/main/pangolin.tokenlist.json',
|
|
471
|
+
routerAddress: '0xE54Ca86531e17Ef3616d22Ca28b0D458b6C89106',
|
|
472
|
+
factoryAddress: '0xefa94DE7a4656D787667C749f7E1223D71E9FD88',
|
|
473
|
+
initCodeHash: '0x40231f6b438bce0797c9ada29b718a87ea0a5cea3fe9a771abdd76bd41a3e545',
|
|
474
|
+
baseTokens: [
|
|
475
|
+
findWrappedGasOnChain(ChainId.AVA),
|
|
476
|
+
findDefaultToken(CoinKey.USDC, ChainId.AVA),
|
|
477
|
+
findDefaultToken(CoinKey.USDT, ChainId.AVA),
|
|
478
|
+
],
|
|
479
|
+
},
|
|
464
480
|
// 42161 - Arbitrum
|
|
465
481
|
{
|
|
466
482
|
key: 'sushiswap-arb',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"description": "Types for the LI.FI stack",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -70,28 +70,28 @@
|
|
|
70
70
|
"url": "https://github.com/lifinance/types"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"ethers": "^5.
|
|
73
|
+
"ethers": "^5.7.2"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@commitlint/cli": "^17.0
|
|
77
|
-
"@commitlint/config-conventional": "^17.0
|
|
78
|
-
"@types/jest": "^
|
|
79
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
80
|
-
"@typescript-eslint/parser": "^5.
|
|
81
|
-
"eslint": "^8.
|
|
76
|
+
"@commitlint/cli": "^17.2.0",
|
|
77
|
+
"@commitlint/config-conventional": "^17.2.0",
|
|
78
|
+
"@types/jest": "^29.2.2",
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "^5.42.1",
|
|
80
|
+
"@typescript-eslint/parser": "^5.42.1",
|
|
81
|
+
"eslint": "^8.27.0",
|
|
82
82
|
"eslint-config-prettier": "^8.5.0",
|
|
83
83
|
"eslint-plugin-prettier": "^4.2.1",
|
|
84
|
-
"husky": "^8.0.
|
|
85
|
-
"jest": "^
|
|
84
|
+
"husky": "^8.0.2",
|
|
85
|
+
"jest": "^29.3.1",
|
|
86
86
|
"lint-staged": ">=13.0.3",
|
|
87
87
|
"npm-run-all": "^4.1.5",
|
|
88
88
|
"pinst": "^3.0.0",
|
|
89
89
|
"prettier": "^2.7.1",
|
|
90
90
|
"standard-version": "^9.5.0",
|
|
91
|
-
"ts-jest": "^
|
|
92
|
-
"ts-loader": "^9.
|
|
93
|
-
"typescript": "^4.
|
|
94
|
-
"webpack": "^5.
|
|
91
|
+
"ts-jest": "^29.0.3",
|
|
92
|
+
"ts-loader": "^9.4.1",
|
|
93
|
+
"typescript": "^4.8.4",
|
|
94
|
+
"webpack": "^5.75.0",
|
|
95
95
|
"webpack-cli": "^4.10.0"
|
|
96
96
|
},
|
|
97
97
|
"directories": {
|