Closed ShubhamParkhi closed 1 month ago
Visit the deploys page to approve it
Name | Link |
---|---|
Latest commit | 74d7049763d4119fc981549740a13ba2f9e8ddd2 |
The changes encompass updates to various components and configurations within the project, including the transition from Parcel to Vite as the build tool, enhancements to blockchain interaction logic, and improvements in environment variable handling. The codebase has been restructured for better organization, with several hooks refactored to streamline transaction processes. Additionally, the import paths for SVG assets have been standardized, and TypeScript configurations have been adjusted to improve clarity and maintainability.
File(s) | Change Summary |
---|---|
contracts/package.json | Updated @wagmi/cli version from ^1.5.2 to ^2.0.3 . |
web/netlify.toml | Removed [dev] section from [functions] . |
web/netlify/functions/authUser.ts | Enhanced signature verification using ethers library; updated error handling and import statements. |
web/netlify/functions/getNonce.ts | Updated import paths for constants and database types for better organization. |
web/netlify/functions/update-settings.ts | Modified import paths for constants and types for improved clarity. |
web/package.json | Transitioned from Parcel to Vite; updated various dependencies and scripts; added Vite-related plugins. |
web/scripts/gitInfo.js | Transitioned from CommonJS to ES module syntax for imports. |
web/src/app.tsx | Reordered component providers within the App component, affecting data flow. |
web/src/components/ConnectWallet/AccountDisplay.tsx | Updated logic for handling chain information and address validation. |
web/src/components/ConnectWallet/index.tsx | Transitioned from useSwitchNetwork to useSwitchChain ; updated button properties for better styling. |
web/src/components/EnsureAuth.tsx | Replaced useNetwork with useChainId for improved chain ID handling. |
web/src/components/EnsureChain.tsx | Updated chain determination logic to use useAccount instead of useNetwork . |
web/src/consts/chains.ts | Introduced ALL_CHAINS constant and getChain function for better chain management. |
web/src/consts/index.ts | Updated environment variable access from process.env to import.meta.env . |
web/src/consts/processEnvConsts.ts | New file created to centralize environment-specific constants and validation logic. |
web/src/context/NewTransactionContext.tsx | Improved state initialization using nullish coalescing operator for local storage values. |
web/src/context/Web3Provider.tsx | Updated Web3Modal integration and connection logic; simplified rendering logic. |
web/src/hooks/queries/useArbitrationCostFromKlerosCore.ts | Modified contract ABI definition and read function invocation. |
web/src/hooks/useNativeTokenSymbol.ts | Switched from useNetwork to useChainId for retrieving native token symbols. |
web/src/hooks/useTokenMetadata.ts | Updated chain ID retrieval logic to use useChainId . |
web/src/layout/Header/DesktopHeader.tsx | Replaced useNetwork with useChainId for improved network information retrieval. |
web/src/pages/MyTransactions/TransactionDetails/... | Updated hooks for handling escrow functionality, replacing old hooks with new simulation and write hooks. |
web/tsconfig.json | Changed rootDir from "src" to "." and removed suppressImplicitAnyIndexErrors . |
web/vite.config.js | New Vite configuration file created with specified build parameters and plugins. |
sequenceDiagram
participant User
participant Web3Provider
participant ConnectWallet
participant Transaction
User->>ConnectWallet: Click Connect
ConnectWallet->>Web3Provider: Initiate Connection
Web3Provider->>User: Connection Status
User->>Transaction: Execute Transaction
Transaction->>Web3Provider: Write Transaction
Web3Provider->>User: Transaction Confirmation
π° Hopping through the code so bright,
With changes that bring such delight!
From Parcel to Vite, we leap and bound,
New paths for tokens, all around!
In this garden of code, we play,
Celebrating each change, hip-hip-hooray! πΌβ¨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
PR-Codex overview
This PR updates dependencies, environment variables handling, and function imports. It also refactors file paths and improves TypeScript definitions.
Detailed summary
Summary by CodeRabbit
New Features
authUser
function for better signature verification and error handling.Bug Fixes
Documentation
Chores
Style