@gardenfi/swap 0.0.1-beta.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 (94) hide show
  1. package/README.md +65 -0
  2. package/dist/index.cjs +1 -0
  3. package/dist/index.js +5 -0
  4. package/dist/index10.cjs +1 -0
  5. package/dist/index10.js +33 -0
  6. package/dist/index11.cjs +1 -0
  7. package/dist/index11.js +36 -0
  8. package/dist/index12.cjs +1 -0
  9. package/dist/index12.js +65 -0
  10. package/dist/index13.cjs +1 -0
  11. package/dist/index13.js +33 -0
  12. package/dist/index14.cjs +1 -0
  13. package/dist/index14.js +190 -0
  14. package/dist/index15.cjs +1 -0
  15. package/dist/index15.js +51 -0
  16. package/dist/index16.cjs +1 -0
  17. package/dist/index16.js +313 -0
  18. package/dist/index17.cjs +1 -0
  19. package/dist/index17.js +29 -0
  20. package/dist/index18.cjs +1 -0
  21. package/dist/index18.js +17 -0
  22. package/dist/index19.cjs +1 -0
  23. package/dist/index19.js +229 -0
  24. package/dist/index20.cjs +1 -0
  25. package/dist/index20.js +15 -0
  26. package/dist/index21.cjs +1 -0
  27. package/dist/index21.js +92 -0
  28. package/dist/index22.cjs +1 -0
  29. package/dist/index22.js +143 -0
  30. package/dist/index23.cjs +1 -0
  31. package/dist/index23.js +22 -0
  32. package/dist/index24.cjs +1 -0
  33. package/dist/index24.js +20 -0
  34. package/dist/index25.cjs +1 -0
  35. package/dist/index25.js +108 -0
  36. package/dist/index26.cjs +1 -0
  37. package/dist/index26.js +85 -0
  38. package/dist/index27.cjs +1 -0
  39. package/dist/index27.js +15 -0
  40. package/dist/index28.cjs +1 -0
  41. package/dist/index28.js +54 -0
  42. package/dist/index29.cjs +1 -0
  43. package/dist/index29.js +63 -0
  44. package/dist/index3.cjs +1 -0
  45. package/dist/index3.js +7 -0
  46. package/dist/index30.cjs +1 -0
  47. package/dist/index30.js +44 -0
  48. package/dist/index31.cjs +1 -0
  49. package/dist/index31.js +43 -0
  50. package/dist/index4.cjs +1 -0
  51. package/dist/index4.js +26 -0
  52. package/dist/index5.cjs +1 -0
  53. package/dist/index5.js +250 -0
  54. package/dist/index6.cjs +1 -0
  55. package/dist/index6.js +98 -0
  56. package/dist/index7.cjs +1 -0
  57. package/dist/index7.js +51 -0
  58. package/dist/index8.cjs +1 -0
  59. package/dist/index8.js +51 -0
  60. package/dist/index9.cjs +1 -0
  61. package/dist/index9.js +101 -0
  62. package/dist/src/index.d.ts +2 -0
  63. package/dist/src/lib/GardenComponent.d.ts +6 -0
  64. package/dist/src/lib/common/AddressDetails.d.ts +8 -0
  65. package/dist/src/lib/common/ChainsToolTip.d.ts +8 -0
  66. package/dist/src/lib/common/Modal.d.ts +9 -0
  67. package/dist/src/lib/common/ModalComponent.d.ts +7 -0
  68. package/dist/src/lib/common/Navbar.d.ts +10 -0
  69. package/dist/src/lib/common/SwapInput.d.ts +17 -0
  70. package/dist/src/lib/components/CreateSwap.d.ts +4 -0
  71. package/dist/src/lib/components/SwapSavingsAndAddresses.d.ts +10 -0
  72. package/dist/src/lib/components/SwapWidget.d.ts +7 -0
  73. package/dist/src/lib/components/assetSelection/AssetModal.d.ts +8 -0
  74. package/dist/src/lib/components/assetSelection/AvailableChainsSidebar.d.ts +11 -0
  75. package/dist/src/lib/components/feesAndRateDetails/FeeAndRateDetails.d.ts +3 -0
  76. package/dist/src/lib/components/feesAndRateDetails/InputAddress.d.ts +3 -0
  77. package/dist/src/lib/components/feesAndRateDetails/InputAddressAndFeeRateDetails.d.ts +3 -0
  78. package/dist/src/lib/components/transactions/SwapInfo.d.ts +12 -0
  79. package/dist/src/lib/components/transactions/TransactionHistory.d.ts +7 -0
  80. package/dist/src/lib/components/transactions/TransactionRow.d.ts +11 -0
  81. package/dist/src/lib/components/transactions/TransactionSkeleton.d.ts +3 -0
  82. package/dist/src/lib/components/transactions/Transactions.d.ts +4 -0
  83. package/dist/src/lib/constants/animations.d.ts +7 -0
  84. package/dist/src/lib/constants/constants.d.ts +29 -0
  85. package/dist/src/lib/constants/network.d.ts +0 -0
  86. package/dist/src/lib/hooks/useSwap.d.ts +29 -0
  87. package/dist/src/lib/store/assetStore.d.ts +23 -0
  88. package/dist/src/lib/store/swapStore.d.ts +79 -0
  89. package/dist/src/lib/store/transactionHistoryStore.d.ts +17 -0
  90. package/dist/src/lib/store/viewPortStore.d.ts +17 -0
  91. package/dist/src/lib/types/types.d.ts +54 -0
  92. package/dist/src/lib/utils/utils.d.ts +14 -0
  93. package/dist/style.css +1 -0
  94. package/package.json +62 -0
package/package.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "@gardenfi/swap",
3
+ "version": "0.0.1-beta.1",
4
+ "type": "module",
5
+ "scripts": {
6
+ "build": "vite build",
7
+ "test": "vitest run",
8
+ "dev": "vite build --watch",
9
+ "link": "yarn link"
10
+ },
11
+ "files": [
12
+ "dist"
13
+ ],
14
+ "main": "./dist/index.cjs",
15
+ "module": "./dist/index.js",
16
+ "typings": "./dist/src/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "require": "./dist/index.cjs",
20
+ "import": "./dist/index.js",
21
+ "types": "./dist/src/index.d.ts"
22
+ },
23
+ "./style.css": "./dist/style.css",
24
+ "./dist/style.css": "./dist/style.css",
25
+ "./package.json": "./package.json"
26
+ },
27
+ "publishConfig": {
28
+ "access": "public",
29
+ "registry": "https://registry.npmjs.org/"
30
+ },
31
+ "dependencies": {
32
+ "@gardenfi/core": "workspace:*",
33
+ "@gardenfi/garden-book": "0.2.2",
34
+ "@gardenfi/orderbook": "workspace:*",
35
+ "@gardenfi/react-hooks": "workspace:*",
36
+ "@gardenfi/utils": "workspace:*",
37
+ "@number-flow/react": "^0.5.9",
38
+ "bignumber.js": "^9.1.2",
39
+ "framer-motion": "^11.18.1",
40
+ "lodash.debounce": "^4.0.8",
41
+ "react": "^18.3.1",
42
+ "zustand": "^5.0.2"
43
+ },
44
+ "devDependencies": {
45
+ "@types/lodash.debounce": "^4",
46
+ "@types/react": "^18",
47
+ "@vitejs/plugin-react": "^5.0.3",
48
+ "autoprefixer": "^10.4.16",
49
+ "motion": "^12.23.15",
50
+ "postcss": "^8.4.32",
51
+ "tailwindcss": "^3.3.6",
52
+ "typescript": "^5.2.2",
53
+ "vite": "^5.1.6",
54
+ "vite-plugin-dts": "^3.7.3",
55
+ "vite-plugin-eslint": "^1.8.1",
56
+ "vite-plugin-wasm": "^3.5.0",
57
+ "vitest": "^1.6.0"
58
+ },
59
+ "sideEffects": [
60
+ "**/*.css"
61
+ ]
62
+ }