@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.
Files changed (68) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/package.json +16 -25
  3. package/tsconfig.json +28 -8
  4. package/LICENSE +0 -674
  5. package/lib/constants/chainInfo.d.ts +0 -47
  6. package/lib/constants/chainInfo.js +0 -251
  7. package/lib/constants/chains.d.ts +0 -46
  8. package/lib/constants/chains.js +0 -137
  9. package/lib/constants/chains.test.d.ts +0 -1
  10. package/lib/constants/chains.test.js +0 -26
  11. package/lib/constants/governance.d.ts +0 -8
  12. package/lib/constants/governance.js +0 -24
  13. package/lib/constants/lists.d.ts +0 -12
  14. package/lib/constants/lists.js +0 -64
  15. package/lib/constants/localCurrencies.d.ts +0 -6
  16. package/lib/constants/localCurrencies.js +0 -94
  17. package/lib/constants/localCurrencyIcons.d.ts +0 -18
  18. package/lib/constants/localCurrencyIcons.js +0 -298
  19. package/lib/constants/locales.d.ts +0 -6
  20. package/lib/constants/locales.js +0 -71
  21. package/lib/constants/misc.d.ts +0 -17
  22. package/lib/constants/misc.js +0 -31
  23. package/lib/constants/networks.d.ts +0 -21
  24. package/lib/constants/networks.js +0 -170
  25. package/lib/constants/proposals/index.d.ts +0 -5
  26. package/lib/constants/proposals/index.js +0 -8
  27. package/lib/constants/proposals/polygon_proposal_title.d.ts +0 -1
  28. package/lib/constants/proposals/polygon_proposal_title.js +0 -4
  29. package/lib/constants/proposals/uniswap_grants_proposal_description.d.ts +0 -1
  30. package/lib/constants/proposals/uniswap_grants_proposal_description.js +0 -4
  31. package/lib/constants/providers.d.ts +0 -19
  32. package/lib/constants/providers.js +0 -33
  33. package/lib/constants/routing.d.ts +0 -16
  34. package/lib/constants/routing.js +0 -123
  35. package/lib/constants/routing.test.d.ts +0 -1
  36. package/lib/constants/routing.test.js +0 -32
  37. package/lib/constants/supportArticles.d.ts +0 -13
  38. package/lib/constants/supportArticles.js +0 -17
  39. package/lib/constants/tokenLists/broken.tokenlist.json +0 -22
  40. package/lib/constants/tokenLogoLookup.d.ts +0 -8
  41. package/lib/constants/tokenLogoLookup.js +0 -48
  42. package/lib/constants/tokenSafety.js +0 -129
  43. package/lib/constants/tokenSafetyLookup.d.ts +0 -18
  44. package/lib/constants/tokenSafetyLookup.js +0 -66
  45. package/lib/constants/tokenSaftey.test.d.ts +0 -1
  46. package/lib/constants/tokenSaftey.test.js +0 -31
  47. package/lib/constants/tokens.d.ts +0 -70
  48. package/lib/constants/tokens.js +0 -289
  49. package/lib/index.d.ts +0 -1
  50. package/lib/index.js +0 -1045
  51. package/lib/routing/clientSideSmartOrderRouter.d.ts +0 -5
  52. package/lib/routing/clientSideSmartOrderRouter.js +0 -151
  53. package/lib/routing/gas.d.ts +0 -5
  54. package/lib/routing/gas.js +0 -158
  55. package/lib/routing/types.d.ts +0 -393
  56. package/lib/routing/types.js +0 -424
  57. package/lib/routing/utils.d.ts +0 -28
  58. package/lib/routing/utils.js +0 -319
  59. package/lib/rpc/AppJsonRpcProvider.d.ts +0 -44
  60. package/lib/rpc/AppJsonRpcProvider.js +0 -183
  61. package/lib/rpc/ConfiguredJsonRpcProvider.d.ts +0 -8
  62. package/lib/rpc/ConfiguredJsonRpcProvider.js +0 -35
  63. package/lib/utils/contracts/getContract.d.ts +0 -3
  64. package/lib/utils/contracts/getContract.js +0 -29
  65. package/lib/utils/transformSwapRouteToGetQuoteResult.d.ts +0 -4
  66. package/lib/utils/transformSwapRouteToGetQuoteResult.js +0 -116
  67. package/lib/utils/uniswapData.d.ts +0 -21
  68. 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.0.29",
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.3.1",
9
- "@pioneer-platform/maya-network": "^8.3.9",
10
- "@pioneer-platform/pioneer-caip": "^9.2.34",
11
- "@pioneer-platform/pioneer-coins": "^9.2.24",
12
- "@pioneer-platform/pioneer-discovery": "^0.0.7",
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
- "@uniswap/router-sdk": "1.9.0",
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": "npm i",
33
- "test": "npm run build && node __tests__/test-module.js",
34
- "test-sdk": "npm run build && node __tests__/test-module-sdk.js",
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": "npm run build",
37
- "refresh": "rm -rf ./node_modules ./package-lock.json && npm install"
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": "^13.13.21",
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.2"
41
+ "typescript": "^5.0.4"
51
42
  },
52
- "gitHead": "e4a7114f00103ee48533c369dba4a02021ddcbe4"
53
- }
43
+ "gitHead": "a76012f6693a12181c4744e53e977a9eaeef0ed3"
44
+ }
package/tsconfig.json CHANGED
@@ -1,14 +1,34 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "es5",
3
+ "target": "es2020",
4
4
  "module": "commonjs",
5
- "lib": ["es6", "es2015", "dom"],
5
+ "lib": ["es2020", "dom"],
6
6
  "declaration": true,
7
- "outDir": "lib",
8
- "rootDir": "src",
9
- "strict": true,
10
- "types": ["node"],
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
  }