@lifi/sdk 1.1.3 → 1.1.6
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 +6 -0
- package/dist/cjs/Lifi.d.ts +200 -0
- package/dist/cjs/Lifi.js +376 -0
- package/dist/cjs/allowance/index.d.ts +22 -0
- package/dist/cjs/allowance/index.js +78 -0
- package/dist/cjs/allowance/utils.d.ts +14 -0
- package/dist/cjs/allowance/utils.js +82 -0
- package/dist/cjs/balances/index.d.ts +11 -0
- package/dist/cjs/balances/index.js +46 -0
- package/dist/cjs/balances/utils.d.ts +5 -0
- package/dist/cjs/balances/utils.js +150 -0
- package/dist/cjs/connectors.d.ts +6 -0
- package/dist/cjs/connectors.js +77 -0
- package/dist/cjs/execution/StatusManager.d.ts +65 -0
- package/dist/cjs/execution/StatusManager.js +167 -0
- package/dist/cjs/execution/StepExecutor.d.ts +15 -0
- package/dist/cjs/execution/StepExecutor.js +74 -0
- package/dist/cjs/execution/allowance.execute.d.ts +4 -0
- package/dist/cjs/execution/allowance.execute.js +97 -0
- package/dist/cjs/execution/balanceCheck.execute.d.ts +3 -0
- package/dist/cjs/execution/balanceCheck.execute.js +48 -0
- package/dist/cjs/execution/bridges/bridge.execute.d.ts +7 -0
- package/dist/cjs/execution/bridges/bridge.execute.js +154 -0
- package/dist/cjs/execution/exchanges/swap.execute.d.ts +7 -0
- package/dist/cjs/execution/exchanges/swap.execute.js +164 -0
- package/dist/cjs/execution/index.d.ts +1 -0
- package/dist/cjs/execution/index.js +17 -0
- package/dist/cjs/execution/stepComparison.d.ts +14 -0
- package/dist/cjs/execution/stepComparison.js +46 -0
- package/dist/cjs/execution/switchChain.d.ts +16 -0
- package/dist/cjs/execution/switchChain.js +58 -0
- package/dist/cjs/execution/utils.d.ts +6 -0
- package/dist/cjs/execution/utils.js +137 -0
- package/dist/cjs/helpers.d.ts +18 -0
- package/dist/cjs/helpers.js +54 -0
- package/dist/cjs/index.d.ts +6 -0
- package/dist/cjs/index.js +27 -0
- package/dist/cjs/services/ApiService.d.ts +15 -0
- package/dist/cjs/services/ApiService.js +272 -0
- package/dist/cjs/services/ChainsService.d.ts +11 -0
- package/dist/cjs/services/ChainsService.js +54 -0
- package/dist/cjs/services/ConfigService.d.ts +23 -0
- package/dist/cjs/services/ConfigService.js +98 -0
- package/dist/cjs/typeguards.d.ts +4 -0
- package/dist/cjs/typeguards.js +53 -0
- package/dist/cjs/types/ERC20.d.ts +22 -0
- package/dist/cjs/types/ERC20.js +53 -0
- package/dist/cjs/types/index.d.ts +4 -0
- package/dist/cjs/types/index.js +22 -0
- package/dist/cjs/types/internal.types.d.ts +85 -0
- package/dist/cjs/types/internal.types.js +2 -0
- package/dist/cjs/utils/errors.d.ts +75 -0
- package/dist/cjs/utils/errors.js +115 -0
- package/dist/cjs/utils/getProvider.d.ts +3 -0
- package/dist/cjs/utils/getProvider.js +11 -0
- package/dist/cjs/utils/multicall.d.ts +10 -0
- package/dist/cjs/utils/multicall.js +77 -0
- package/dist/cjs/utils/multicallAbi.json +313 -0
- package/dist/cjs/utils/parseError.d.ts +38 -0
- package/dist/cjs/utils/parseError.js +141 -0
- package/dist/cjs/utils/preRestart.d.ts +2 -0
- package/dist/cjs/utils/preRestart.js +31 -0
- package/dist/cjs/utils/utils.d.ts +26 -0
- package/dist/cjs/utils/utils.js +120 -0
- package/package.json +34 -11
package/package.json
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "LI.FI Any-to-Any Cross-Chain-Swap SDK",
|
|
5
|
-
"main": "./dist/index.js",
|
|
5
|
+
"main": "./dist/cjs/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
6
7
|
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
"require": "./dist/cjs/index.js",
|
|
10
|
+
"import": "./dist/index.js"
|
|
11
|
+
},
|
|
7
12
|
"scripts": {
|
|
8
13
|
"watch": "tsc -w -p ./tsconfig.json",
|
|
9
|
-
"build": "yarn clean && tsc --project ./tsconfig.json",
|
|
14
|
+
"build": "yarn clean && tsc --project ./tsconfig.json && tsc --project ./tsconfig.cjs.json",
|
|
10
15
|
"clean": "node tools/cleanup",
|
|
11
16
|
"package": "npm run build && npm pack",
|
|
12
17
|
"test": "jest --no-cache --runInBand --forceExit",
|
|
@@ -41,6 +46,24 @@
|
|
|
41
46
|
},
|
|
42
47
|
"author": "Max Klenk <max@li.finance>",
|
|
43
48
|
"license": "Apache-2.0",
|
|
49
|
+
"keywords": [
|
|
50
|
+
"sdk",
|
|
51
|
+
"ethereum",
|
|
52
|
+
"dapp",
|
|
53
|
+
"bridge",
|
|
54
|
+
"swap",
|
|
55
|
+
"web3",
|
|
56
|
+
"lifi",
|
|
57
|
+
"ethers",
|
|
58
|
+
"cross-chain",
|
|
59
|
+
"defi",
|
|
60
|
+
"web3-react",
|
|
61
|
+
"cross-chain-applications",
|
|
62
|
+
"cross-chain-bridge",
|
|
63
|
+
"bridge-aggregation",
|
|
64
|
+
"multi-chain",
|
|
65
|
+
"metamask"
|
|
66
|
+
],
|
|
44
67
|
"homepage": "https://github.com/lifinance/sdk",
|
|
45
68
|
"repository": {
|
|
46
69
|
"type": "git",
|
|
@@ -52,9 +75,9 @@
|
|
|
52
75
|
"dependencies": {
|
|
53
76
|
"@ethersproject/abi": "^5.6.4",
|
|
54
77
|
"@ethersproject/contracts": "^5.6.2",
|
|
55
|
-
"@lifi/types": "^1.
|
|
78
|
+
"@lifi/types": "^1.5.1",
|
|
56
79
|
"axios": "^0.27.2",
|
|
57
|
-
"bignumber.js": "^9.0
|
|
80
|
+
"bignumber.js": "^9.1.0",
|
|
58
81
|
"eth-rpc-errors": "^4.0.3",
|
|
59
82
|
"ethers": "^5.6.9"
|
|
60
83
|
},
|
|
@@ -62,13 +85,13 @@
|
|
|
62
85
|
"@commitlint/cli": "^17.0.3",
|
|
63
86
|
"@commitlint/config-conventional": "^17.0.3",
|
|
64
87
|
"@types/bip39": "^3.0.0",
|
|
65
|
-
"@types/chai": "^4.3.
|
|
88
|
+
"@types/chai": "^4.3.3",
|
|
66
89
|
"@types/hdkey": "^2.0.0",
|
|
67
|
-
"@types/jest": "^28.1.
|
|
90
|
+
"@types/jest": "^28.1.7",
|
|
68
91
|
"@types/websocket": "^1.0.4",
|
|
69
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
70
|
-
"@typescript-eslint/parser": "^5.
|
|
71
|
-
"eslint": "^8.
|
|
92
|
+
"@typescript-eslint/eslint-plugin": "^5.33.1",
|
|
93
|
+
"@typescript-eslint/parser": "^5.33.1",
|
|
94
|
+
"eslint": "^8.22.0",
|
|
72
95
|
"eslint-config-prettier": "^8.3.0",
|
|
73
96
|
"eslint-plugin-prettier": "^4.2.1",
|
|
74
97
|
"husky": "^8.0.1",
|
|
@@ -78,7 +101,7 @@
|
|
|
78
101
|
"pinst": "^3.0.0",
|
|
79
102
|
"prettier": "^2.7.1",
|
|
80
103
|
"standard-version": "^9.5.0",
|
|
81
|
-
"ts-jest": "^28.0.
|
|
104
|
+
"ts-jest": "^28.0.8",
|
|
82
105
|
"ts-loader": "^9.3.1",
|
|
83
106
|
"typescript": "^4.7.4",
|
|
84
107
|
"webpack": "^5.73.0",
|