@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.
- package/README.md +65 -0
- package/dist/index.cjs +1 -0
- package/dist/index.js +5 -0
- package/dist/index10.cjs +1 -0
- package/dist/index10.js +33 -0
- package/dist/index11.cjs +1 -0
- package/dist/index11.js +36 -0
- package/dist/index12.cjs +1 -0
- package/dist/index12.js +65 -0
- package/dist/index13.cjs +1 -0
- package/dist/index13.js +33 -0
- package/dist/index14.cjs +1 -0
- package/dist/index14.js +190 -0
- package/dist/index15.cjs +1 -0
- package/dist/index15.js +51 -0
- package/dist/index16.cjs +1 -0
- package/dist/index16.js +313 -0
- package/dist/index17.cjs +1 -0
- package/dist/index17.js +29 -0
- package/dist/index18.cjs +1 -0
- package/dist/index18.js +17 -0
- package/dist/index19.cjs +1 -0
- package/dist/index19.js +229 -0
- package/dist/index20.cjs +1 -0
- package/dist/index20.js +15 -0
- package/dist/index21.cjs +1 -0
- package/dist/index21.js +92 -0
- package/dist/index22.cjs +1 -0
- package/dist/index22.js +143 -0
- package/dist/index23.cjs +1 -0
- package/dist/index23.js +22 -0
- package/dist/index24.cjs +1 -0
- package/dist/index24.js +20 -0
- package/dist/index25.cjs +1 -0
- package/dist/index25.js +108 -0
- package/dist/index26.cjs +1 -0
- package/dist/index26.js +85 -0
- package/dist/index27.cjs +1 -0
- package/dist/index27.js +15 -0
- package/dist/index28.cjs +1 -0
- package/dist/index28.js +54 -0
- package/dist/index29.cjs +1 -0
- package/dist/index29.js +63 -0
- package/dist/index3.cjs +1 -0
- package/dist/index3.js +7 -0
- package/dist/index30.cjs +1 -0
- package/dist/index30.js +44 -0
- package/dist/index31.cjs +1 -0
- package/dist/index31.js +43 -0
- package/dist/index4.cjs +1 -0
- package/dist/index4.js +26 -0
- package/dist/index5.cjs +1 -0
- package/dist/index5.js +250 -0
- package/dist/index6.cjs +1 -0
- package/dist/index6.js +98 -0
- package/dist/index7.cjs +1 -0
- package/dist/index7.js +51 -0
- package/dist/index8.cjs +1 -0
- package/dist/index8.js +51 -0
- package/dist/index9.cjs +1 -0
- package/dist/index9.js +101 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/lib/GardenComponent.d.ts +6 -0
- package/dist/src/lib/common/AddressDetails.d.ts +8 -0
- package/dist/src/lib/common/ChainsToolTip.d.ts +8 -0
- package/dist/src/lib/common/Modal.d.ts +9 -0
- package/dist/src/lib/common/ModalComponent.d.ts +7 -0
- package/dist/src/lib/common/Navbar.d.ts +10 -0
- package/dist/src/lib/common/SwapInput.d.ts +17 -0
- package/dist/src/lib/components/CreateSwap.d.ts +4 -0
- package/dist/src/lib/components/SwapSavingsAndAddresses.d.ts +10 -0
- package/dist/src/lib/components/SwapWidget.d.ts +7 -0
- package/dist/src/lib/components/assetSelection/AssetModal.d.ts +8 -0
- package/dist/src/lib/components/assetSelection/AvailableChainsSidebar.d.ts +11 -0
- package/dist/src/lib/components/feesAndRateDetails/FeeAndRateDetails.d.ts +3 -0
- package/dist/src/lib/components/feesAndRateDetails/InputAddress.d.ts +3 -0
- package/dist/src/lib/components/feesAndRateDetails/InputAddressAndFeeRateDetails.d.ts +3 -0
- package/dist/src/lib/components/transactions/SwapInfo.d.ts +12 -0
- package/dist/src/lib/components/transactions/TransactionHistory.d.ts +7 -0
- package/dist/src/lib/components/transactions/TransactionRow.d.ts +11 -0
- package/dist/src/lib/components/transactions/TransactionSkeleton.d.ts +3 -0
- package/dist/src/lib/components/transactions/Transactions.d.ts +4 -0
- package/dist/src/lib/constants/animations.d.ts +7 -0
- package/dist/src/lib/constants/constants.d.ts +29 -0
- package/dist/src/lib/constants/network.d.ts +0 -0
- package/dist/src/lib/hooks/useSwap.d.ts +29 -0
- package/dist/src/lib/store/assetStore.d.ts +23 -0
- package/dist/src/lib/store/swapStore.d.ts +79 -0
- package/dist/src/lib/store/transactionHistoryStore.d.ts +17 -0
- package/dist/src/lib/store/viewPortStore.d.ts +17 -0
- package/dist/src/lib/types/types.d.ts +54 -0
- package/dist/src/lib/utils/utils.d.ts +14 -0
- package/dist/style.css +1 -0
- 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
|
+
}
|