From 69d2e0165ec77a11ce5cecf436763eba2f3213c0 Mon Sep 17 00:00:00 2001 From: Konstantin Komelin Date: Wed, 5 Jun 2024 11:21:09 +0200 Subject: [PATCH] frontend: Updated code to use the latest version of Sui SDK. --- packages/frontend/index.html | 16 +-- packages/frontend/package.json | 14 +- .../frontend/src/components/Notification.tsx | 2 +- .../frontend/src/components/layout/Header.tsx | 2 +- packages/frontend/src/helpers/faucet.ts | 2 +- .../frontend/src/helpers/greeting/misc.ts | 4 +- .../src/helpers/greeting/transactions.ts | 30 ++-- packages/frontend/src/hooks/useFaucet.tsx | 2 +- .../frontend/src/hooks/useNetworkConfig.tsx | 2 +- packages/frontend/src/hooks/useTransact.ts | 33 ++--- pnpm-lock.yaml | 128 +++++++++--------- 11 files changed, 110 insertions(+), 125 deletions(-) diff --git a/packages/frontend/index.html b/packages/frontend/index.html index 6b69203..cb68331 100644 --- a/packages/frontend/index.html +++ b/packages/frontend/index.html @@ -5,15 +5,15 @@ %VITE_APP_NAME% - + - - - - - - - + + + + + + +
diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 82e4eb6..55a9516 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -13,23 +13,23 @@ "deploy:firebase": "firebase deploy --only hosting" }, "dependencies": { - "@mysten/dapp-kit": "^0.13.2", - "@mysten/sui.js": "^0.54.1", - "@mysten/wallet-standard": "^0.11.6", + "@mysten/dapp-kit": "^0.14.5", + "@mysten/sui": "^1.0.5", + "@mysten/wallet-standard": "^0.12.5", "@radix-ui/react-select": "^2.0.0", "@radix-ui/react-toggle": "^1.0.3", "@radix-ui/themes": "^3.0.5", "@tanstack/react-query": "^5.40.1", "bignumber.js": "^9.1.2", "clsx": "^2.1.1", - "lucide-react": "^0.378.0", + "lucide-react": "^0.383.0", "react": "^18.3.1", "react-dom": "^18.3.1", "react-hot-toast": "^2.4.1", "react-use": "^17.5.0" }, "devDependencies": { - "@types/node": "^20.14.1", + "@types/node": "^20.14.2", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", "@typescript-eslint/eslint-plugin": "^7.12.0", @@ -41,8 +41,8 @@ "eslint-plugin-react-hooks": "^4.6.2", "eslint-plugin-react-refresh": "^0.4.7", "postcss": "^8.4.38", - "prettier": "^3.3.0", - "prettier-plugin-tailwindcss": "^0.5.14", + "prettier": "^3.3.1", + "prettier-plugin-tailwindcss": "^0.6.1", "tailwindcss": "^3.4.3", "typescript": "^5.4.5", "vite": "^5.2.12", diff --git a/packages/frontend/src/components/Notification.tsx b/packages/frontend/src/components/Notification.tsx index ef697b3..f3e8e2d 100644 --- a/packages/frontend/src/components/Notification.tsx +++ b/packages/frontend/src/components/Notification.tsx @@ -31,7 +31,7 @@ const Notification: FC> = ({ {isCloseButtonVisible && (