@pioneer-platform/uniswap-client 0.0.29 → 0.1.1
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 +28 -0
- package/package.json +16 -25
- package/tsconfig.json +28 -8
- package/LICENSE +0 -674
- package/lib/constants/chainInfo.d.ts +0 -47
- package/lib/constants/chainInfo.js +0 -251
- package/lib/constants/chains.d.ts +0 -46
- package/lib/constants/chains.js +0 -137
- package/lib/constants/chains.test.d.ts +0 -1
- package/lib/constants/chains.test.js +0 -26
- package/lib/constants/governance.d.ts +0 -8
- package/lib/constants/governance.js +0 -24
- package/lib/constants/lists.d.ts +0 -12
- package/lib/constants/lists.js +0 -64
- package/lib/constants/localCurrencies.d.ts +0 -6
- package/lib/constants/localCurrencies.js +0 -94
- package/lib/constants/localCurrencyIcons.d.ts +0 -18
- package/lib/constants/localCurrencyIcons.js +0 -298
- package/lib/constants/locales.d.ts +0 -6
- package/lib/constants/locales.js +0 -71
- package/lib/constants/misc.d.ts +0 -17
- package/lib/constants/misc.js +0 -31
- package/lib/constants/networks.d.ts +0 -21
- package/lib/constants/networks.js +0 -170
- package/lib/constants/proposals/index.d.ts +0 -5
- package/lib/constants/proposals/index.js +0 -8
- package/lib/constants/proposals/polygon_proposal_title.d.ts +0 -1
- package/lib/constants/proposals/polygon_proposal_title.js +0 -4
- package/lib/constants/proposals/uniswap_grants_proposal_description.d.ts +0 -1
- package/lib/constants/proposals/uniswap_grants_proposal_description.js +0 -4
- package/lib/constants/providers.d.ts +0 -19
- package/lib/constants/providers.js +0 -33
- package/lib/constants/routing.d.ts +0 -16
- package/lib/constants/routing.js +0 -123
- package/lib/constants/routing.test.d.ts +0 -1
- package/lib/constants/routing.test.js +0 -32
- package/lib/constants/supportArticles.d.ts +0 -13
- package/lib/constants/supportArticles.js +0 -17
- package/lib/constants/tokenLists/broken.tokenlist.json +0 -22
- package/lib/constants/tokenLogoLookup.d.ts +0 -8
- package/lib/constants/tokenLogoLookup.js +0 -48
- package/lib/constants/tokenSafety.js +0 -129
- package/lib/constants/tokenSafetyLookup.d.ts +0 -18
- package/lib/constants/tokenSafetyLookup.js +0 -66
- package/lib/constants/tokenSaftey.test.d.ts +0 -1
- package/lib/constants/tokenSaftey.test.js +0 -31
- package/lib/constants/tokens.d.ts +0 -70
- package/lib/constants/tokens.js +0 -289
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1045
- package/lib/routing/clientSideSmartOrderRouter.d.ts +0 -5
- package/lib/routing/clientSideSmartOrderRouter.js +0 -151
- package/lib/routing/gas.d.ts +0 -5
- package/lib/routing/gas.js +0 -158
- package/lib/routing/types.d.ts +0 -393
- package/lib/routing/types.js +0 -424
- package/lib/routing/utils.d.ts +0 -28
- package/lib/routing/utils.js +0 -319
- package/lib/rpc/AppJsonRpcProvider.d.ts +0 -44
- package/lib/rpc/AppJsonRpcProvider.js +0 -183
- package/lib/rpc/ConfiguredJsonRpcProvider.d.ts +0 -8
- package/lib/rpc/ConfiguredJsonRpcProvider.js +0 -35
- package/lib/utils/contracts/getContract.d.ts +0 -3
- package/lib/utils/contracts/getContract.js +0 -29
- package/lib/utils/transformSwapRouteToGetQuoteResult.d.ts +0 -4
- package/lib/utils/transformSwapRouteToGetQuoteResult.js +0 -116
- package/lib/utils/uniswapData.d.ts +0 -21
- package/lib/utils/uniswapData.js +0 -217
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# @pioneer-platform/uniswap-client
|
|
2
|
+
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Automated patch version bump for all packages
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @pioneer-platform/maya-network@8.4.1
|
|
10
|
+
- @pioneer-platform/loggerdog@8.4.1
|
|
11
|
+
- @pioneer-platform/pioneer-coins@9.4.1
|
|
12
|
+
- @pioneer-platform/pioneer-caip@9.3.1
|
|
13
|
+
- @pioneer-platform/pioneer-discovery@0.1.1
|
|
14
|
+
|
|
15
|
+
## 0.1.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- Release: minor version bump for all packages
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
- @pioneer-platform/maya-network@8.4.0
|
|
25
|
+
- @pioneer-platform/loggerdog@8.4.0
|
|
26
|
+
- @pioneer-platform/pioneer-coins@9.4.0
|
|
27
|
+
- @pioneer-platform/pioneer-caip@9.3.0
|
|
28
|
+
- @pioneer-platform/pioneer-discovery@0.1.0
|
package/package.json
CHANGED
|
@@ -1,27 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pioneer-platform/uniswap-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@keepkey/keepkey-sdk": "^0.2.57",
|
|
8
|
-
"@pioneer-platform/loggerdog": "^8.
|
|
9
|
-
"@pioneer-platform/maya-network": "^8.
|
|
10
|
-
"@pioneer-platform/pioneer-caip": "^9.
|
|
11
|
-
"@pioneer-platform/pioneer-coins": "^9.
|
|
12
|
-
"@pioneer-platform/pioneer-discovery": "^0.
|
|
8
|
+
"@pioneer-platform/loggerdog": "^8.4.1",
|
|
9
|
+
"@pioneer-platform/maya-network": "^8.4.1",
|
|
10
|
+
"@pioneer-platform/pioneer-caip": "^9.3.1",
|
|
11
|
+
"@pioneer-platform/pioneer-coins": "^9.4.1",
|
|
12
|
+
"@pioneer-platform/pioneer-discovery": "^0.1.1",
|
|
13
13
|
"@types/ms": "^0.7.34",
|
|
14
14
|
"@types/ms.macro": "^2.0.2",
|
|
15
|
-
"
|
|
16
|
-
"@uniswap/sdk": "^3.0.3",
|
|
17
|
-
"@uniswap/sdk-core": "4.2.0",
|
|
18
|
-
"@uniswap/smart-order-router": "3.26.0",
|
|
19
|
-
"@uniswap/token-lists": "^1.0.0-beta.34",
|
|
20
|
-
"@uniswap/uniswapx-sdk": "^2.0.1-alpha.10",
|
|
21
|
-
"@uniswap/universal-router-sdk": "1.8.2",
|
|
22
|
-
"@uniswap/v2-sdk": "4.3.0",
|
|
23
|
-
"@uniswap/v3-sdk": "3.11.0",
|
|
24
|
-
"axios": "^1.3.4",
|
|
15
|
+
"axios": "^1.6.0",
|
|
25
16
|
"dayjs": "^1.11.10",
|
|
26
17
|
"dotenv": "^8.2.0",
|
|
27
18
|
"ms": "^2.1.3",
|
|
@@ -29,25 +20,25 @@
|
|
|
29
20
|
"uuidv4": "^6.2.13"
|
|
30
21
|
},
|
|
31
22
|
"scripts": {
|
|
32
|
-
"npm": "
|
|
33
|
-
"test": "
|
|
34
|
-
"test-sdk": "
|
|
23
|
+
"npm": "pnpm i",
|
|
24
|
+
"test": "pnpm run build && node __tests__/test-module.js",
|
|
25
|
+
"test-sdk": "pnpm run build && node __tests__/test-module-sdk.js",
|
|
35
26
|
"build": "tsc -p .",
|
|
36
|
-
"prepublish": "
|
|
37
|
-
"refresh": "rm -rf ./node_modules ./package-lock.json &&
|
|
27
|
+
"prepublish": "pnpm run build",
|
|
28
|
+
"refresh": "rm -rf ./node_modules ./package-lock.json && pnpm install"
|
|
38
29
|
},
|
|
39
30
|
"devDependencies": {
|
|
40
31
|
"@types/async-retry": "^1.4.8",
|
|
41
32
|
"@types/bunyan": "^1.8.11",
|
|
42
33
|
"@types/jest": "^25.2.3",
|
|
43
|
-
"@types/node": "^
|
|
34
|
+
"@types/node": "^18.16.0",
|
|
44
35
|
"@types/source-map-support": "^0.5.3",
|
|
45
36
|
"babel-plugin-macros": "^3.1.0",
|
|
46
37
|
"jest": "^26.4.2",
|
|
47
38
|
"onchange": "^7.0.2",
|
|
48
39
|
"serve": "^11.3.2",
|
|
49
40
|
"ts-jest": "^29.0.5",
|
|
50
|
-
"typescript": "^5.0.
|
|
41
|
+
"typescript": "^5.0.4"
|
|
51
42
|
},
|
|
52
|
-
"gitHead": "
|
|
53
|
-
}
|
|
43
|
+
"gitHead": "a76012f6693a12181c4744e53e977a9eaeef0ed3"
|
|
44
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,14 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "
|
|
3
|
+
"target": "es2020",
|
|
4
4
|
"module": "commonjs",
|
|
5
|
-
"lib": ["
|
|
5
|
+
"lib": ["es2020", "dom"],
|
|
6
6
|
"declaration": true,
|
|
7
|
-
"outDir": "lib",
|
|
8
|
-
"rootDir": "src",
|
|
9
|
-
"strict":
|
|
10
|
-
"
|
|
7
|
+
"outDir": "./lib",
|
|
8
|
+
"rootDir": "./src",
|
|
9
|
+
"strict": false,
|
|
10
|
+
"noImplicitAny": false,
|
|
11
|
+
"strictNullChecks": false,
|
|
12
|
+
"strictFunctionTypes": false,
|
|
13
|
+
"strictBindCallApply": false,
|
|
14
|
+
"strictPropertyInitialization": false,
|
|
15
|
+
"noImplicitThis": false,
|
|
16
|
+
"alwaysStrict": false,
|
|
11
17
|
"esModuleInterop": true,
|
|
12
|
-
"resolveJsonModule": true
|
|
13
|
-
|
|
18
|
+
"resolveJsonModule": true,
|
|
19
|
+
"skipLibCheck": true,
|
|
20
|
+
"forceConsistentCasingInFileNames": true,
|
|
21
|
+
"types": ["node"]
|
|
22
|
+
},
|
|
23
|
+
"include": ["src/**/*.ts"],
|
|
24
|
+
"exclude": [
|
|
25
|
+
"node_modules",
|
|
26
|
+
"**/__tests__/*",
|
|
27
|
+
"src/abis/**/*",
|
|
28
|
+
"src/uniswap/**/*",
|
|
29
|
+
"src/utils/**/*",
|
|
30
|
+
"src/routing/**/*",
|
|
31
|
+
"src/constants/**/*",
|
|
32
|
+
"src/rpc/**/*"
|
|
33
|
+
]
|
|
14
34
|
}
|