<!-- start pr-codex -->
## PR-Codex overview
The focus of this PR is to refactor ecosystem wallet related functions, update UI components, and integrate new auth options fetching mechanism.
### Detailed summary
- Refactored ecosystem wallet related functions for better clarity and consistency.
- Updated UI components in various files for improved user experience.
- Integrated a new mechanism to fetch auth options for ecosystem wallets.
- Added a loading screen component for better user feedback during data fetching.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
This PR adjusts the `.changeset/config.json` to update dependency settings and reorganizes changeset markdown files under a new directory.
### What changed?
- Removed `fixed` and `linked` fields from the `.changeset/config.json`.
- Updated the `ignore` array in `config.json` to include additional thirdweb-dev packages.
- Moved existing `.changeset/*.md` files to a newly created `v4-changesets-apply-later` directory.
### How to test?
Verify that dependency updates and changeset file reorganization are reflected correctly in the `.changeset/config.json` and file structure.
### Why make this change?
We are temporarily only releasing v5 packages (while figuring a path forward regarding `@thirdweb-dev/react` with npm).
---
<!-- start pr-codex -->
## PR-Codex overview
This PR updates the X_SDK_VERSION in `thirdweb-bridge.ts` from "4.16.5" to "4.16.6".
### Detailed summary
- Updated X_SDK_VERSION from "4.16.5" to "4.16.6" in `thirdweb-bridge.ts`.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
This PR updates the message handling in the in-app-account module of the thirdweb package. Specifically, it modifies the message decoding process and removes an unused import.
### What changed?
- Modified the IFrameWallet class to handle messages that are bytes or strings.
- Removed the `uint8ArrayToString` import which was no longer needed.
### How to test?
1. Run the existing test suite to ensure all tests pass.
2. Manually test the in-app wallet functionality to validate the message handling changes.
### Why make this change?
To improve the robustness and maintainability of the in-app-account module in the thirdweb package by cleaning up the code and ensuring proper handling of different message types.
---
<!-- start pr-codex -->
## PR-Codex overview
This PR enhances ENS resolution in `thirdweb` extension. It now returns null if no ENS exists for an address.
### Detailed summary
- Updated `resolveName` to return null if no ENS exists
- Added error handling to catch specific error code
- Updated tests to reflect changes in ENS resolution behavior
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
The focus of this PR is to fix the wallet app not opening when using `ConnectButton` inside an iframe.
### Detailed summary
- Updated `WalletConnectConnection.tsx` to handle opening wallet app inside iframes
- Modified `openWindow.ts` to address issues with `window.open` on iOS and WebViews
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR updates `zksync-ethers` to version `5.9.0`, adds new assertions in `hooks.ts`, and introduces a fake provider for `zkSigner` initialization.
### Detailed summary
- Updated `zksync-ethers` to `5.9.0`
- Added assertions for `signer` and `walletAddress` in `hooks.ts`
- Introduced a fake provider for `zkSigner` initialization
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
Respect gas overrides if they are passed in both the SDK and various wallet implementations by checking if gasLimit, maxFeePerGas, and maxPriorityFeePerGas are already set before applying default values. Added necessary type annotations and improved import statements for better code clarity.
---
<!-- start pr-codex -->
## PR-Codex overview
The focus of this PR is to respect gas overrides passed in and avoid overriding existing values in transactions.
### Detailed summary
- Respect gas overrides if passed in
- Update `WrappedSigner` and `EthersSigner` classes to handle gas overrides
- Update `UserWallet` to set default gas values only if not already set
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR updates ZkCandy addresses for the Sepolia Testnet and ZKSync Era Mainnet.
### Detailed summary
- Added new addresses for various contracts on the Sepolia Testnet for ZkCandy.
- Updated addresses for DropERC721 on the ZKSync Era Mainnet.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR updates transaction options and serialization to use EIP712 instead of EIP721.
### Detailed summary
- Renamed `EIP721TransactionOptions` to `EIP712TransactionOptions`
- Renamed `EIP721SerializedTransaction` to `EIP712SerializedTransaction`
- Updated function parameters and return types accordingly
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Update PayEmbed and PayEmbed-disconnected tests to include conditional running based on TW_SECRET_KEY.
### What changed?
- Added conditional checks for TW_SECRET_KEY in PayEmbed-disconnected.test.tsx and PayEmbed.test.tsx
- Ensured tests run only if TW_SECRET_KEY is defined
### How to test?
1. Ensure TW_SECRET_KEY is set in your environment
2. Run the updated tests
3. Verify that the tests only execute if TW_SECRET_KEY is present
### Why make this change?
To add more robust control over test execution based on the presence of secret keys.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to refactor test files for `PayEmbed` component by using `describe.runIf` to conditionally run tests based on the environment secret key.
### Detailed summary
- Refactored test files for `PayEmbed` component to conditionally run tests based on the secret key environment variable using `describe.runIf`.
- Updated test cases to improve readability and maintainability.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Added a warning that gets triggered once when the EOA signature verification fails and neither the chain nor the client parameter is provided in the verifySignature function. This is crucial to guide users on setting up smart accounts properly.
### What changed?
- Introduced a `warningTriggered` flag to ensure the warning is only logged once.
- Added a warning message to notify about missing chain and client parameters when EOA signature verification fails.
- Updated `isVerifyContractWalletSignatureParams` to explicitly check for undefined values in chain and client parameters.
### How to test?
1. Call the `verifySignature` function without providing the `chain` and `client` parameters.
2. Observe the console for the warning message.
3. Ensure the warning triggers only once even with multiple calls to `verifySignature` without the required parameters.
### Why make this change?
This change improves the developer experience by providing clear guidance when critical parameters are missing for using smart accounts with the Auth module. This helps in debugging and ensures proper setup for smart accounts.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to add a warning message when verifying a signature without a chain or client provided.
### Detailed summary
- Added a warning message when verifying a signature without a chain or client
- Updated the `isVerifyContractWalletSignatureParams` function to check for `options.chain` and `options.client` values
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR focuses on exporting `getClaimConditionById` for Drop1155 in the `erc1155.ts` file.
### Detailed summary
- Export `getClaimConditionById` for Drop1155
- Import `GetClaimConditionByIdParams` from generated file
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
This pull request updates multiple test cases to use the `sendAndConfirmTransaction` method instead of the `sendTransaction` method. The tests affected include those for airdropERC1155WithSignature, airdropERC20WithSignature, airdropERC721WithSignature, claimERC1155, claimERC20, and claimERC721. The main goal is to ensure transactions are confirmed within the tests for improved reliability and accuracy.
### TL;DR
Replaced `sendTransaction` with `sendAndConfirmTransaction` in multiple test cases to ensure transactions are confirmed.
### What changed?
- Updated `airdropERC1155WithSignature.test.ts` to use `sendAndConfirmTransaction`
- Updated `airdropERC20WithSignature.test.ts` to use `sendAndConfirmTransaction`
- Updated `airdropERC721WithSignature.test.ts` to use `sendAndConfirmTransaction`
- Updated `claimERC1155.test.ts` to use `sendAndConfirmTransaction`
- Updated `claimERC20.test.ts` to use `sendAndConfirmTransaction`
- Updated `claimERC721.test.ts` to use `sendAndConfirmTransaction`
### How to test?
Run the test suite to ensure all tests pass with the updated method.
### Why make this change?
This change improves the reliability and accuracy of the test cases by ensuring that transactions are confirmed within the tests.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR updates transaction handling in airdrop ERC contracts tests to use `sendAndConfirmTransaction` instead of `sendTransaction`.
### Detailed summary
- Replaced `sendTransaction` with `sendAndConfirmTransaction` in airdrop ERC contracts tests for better transaction handling.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
The focus of this PR is to skip a flaky test for `eth_getLogs` and add a timeout to a test for rendering a connect wallet button.
### Detailed summary
- Skipped flaky test for `eth_getLogs`
- Added a timeout to the test for rendering a connect wallet button
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
## Problem solved
Short description of the bug fixed or feature added
## Changes made
- [ ] Public API changes: list the public API changes made if any
- [ ] Internal API changes: explain the internal logic changes
## How to test
- [ ] Automated tests: link to unit test file
- [ ] Manual tests: step by step instructions on how to test
## Contributor NFT
Paste in your wallet address below and we will airdrop you a special NFT when your pull request is merged.
```Address: ```
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to enhance the dashboard page by adding new product sections with updated styling and icons.
### Detailed summary
- Added `fontWeight` and `letterSpacing` styling to dashboard section titles
- Updated product sections with new names, labels, descriptions, and icons
- Included a new "Pay" product section for easy fiat onramps integration
- Improved the "Connect UI" section to "Sign in" with updated description
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
## Problem solved
Short description of the bug fixed or feature added
## Changes made
- [ ] Public API changes: list the public API changes made if any
- [ ] Internal API changes: explain the internal logic changes
## How to test
- [ ] Automated tests: link to unit test file
- [ ] Manual tests: step by step instructions on how to test
## Contributor NFT
Paste in your wallet address below and we will airdrop you a special NFT when your pull request is merged.
```Address: ```
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to update error handling messages and add loading overlays in the PayAnalytics components.
### Detailed summary
- Renamed `NoDataAvailable` function to `FailedToLoad` in `common.tsx`.
- Added `NoDataOverlay` function in `common.tsx`.
- Updated error handling and loading messages in `PayCustomersTable.tsx`.
- Updated error handling and loading messages in `PaymentHistory.tsx`.
- Updated error handling in `PaymentsSuccessRate.tsx`.
> The following files were skipped due to too many changes: `apps/dashboard/src/components/pay/PayAnalytics/components/PaymentsSuccessRate.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/components/TotalVolumePieChart.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/components/TotalPayVolume.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/components/PayNewCustomers.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/components/Payouts.tsx`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
This PR refactors the SponsorshipPolicies component to include an 'enabled' boolean field within the serverVerifier object, and updates the related logic to enable conditional rendering based on this field.
### What changed?
- Added 'enabled' field in the serverVerifier validation schema
- Updated initial state and form submission logic to handle the 'enabled' field
- Modified conditional rendering logic in the GatedSwitch component to use the 'enabled' field
### How to test?
1. Go to the SponsorshipPolicies component
2. Toggle the GatedSwitch to enable/disable the serverVerifier settings
3. Ensure the form behaves as expected based on the enabled state
### Why make this change?
This refactor aims to simplify the management and conditional rendering of the serverVerifier settings by introducing an 'enabled' field. This makes the logic more intuitive and easier to maintain.
---
### TL;DR
Refactored the `ApplyForOpCreditsModal` component to simplify its usage and improve code maintainability. Updated related components to match this change.
### What changed?
- Removed `Modal` and related sub-components from `ApplyForOpCreditsForm.tsx` and adjusted the structure to use `Flex`.
- Simplified `ApplyForOpCreditsModal` by removing unnecessary props and state management, and updated its contents to directly return the form and additional modals.
- Updated references and affected components to use the new simplified `ApplyForOpCreditsModal`.
- Refactored `CreditsItem` component to use `useModalContext` for handling modals.
- Updated navigation link in `OnboardingSteps` to point to the new location of the form.
- Modified `SettingsGasCreditsPage` to directly include the updated `ApplyForOpCreditsModal` and added a link to the accelerator program's blog post.
### How to test?
1. Navigate to the gas credits application section in the dashboard settings.
2. Verify that the form for applying to the Optimism Superchain App Accelerator is displayed correctly and functions as expected.
3. Test the new navigation flow to ensure all links and modals work correctly after the refactor.
### Why make this change?
This refactor aims to simplify the modal implementation for applying for gas credits, reduce code complexity, and improve maintainability by removing unnecessary state management and props from the `ApplyForOpCreditsModal` component.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to update the UI content related to gas credits and sponsorship applications in the dashboard settings.
### Detailed summary
- Updated UI content for applying to the Optimism Superchain App Accelerator.
- Refactored ApplyForOpCreditsForm UI structure.
- Enhanced ApplyForOpCreditsModal functionality.
- Modified CreditsItem UI for applying to gas credits.
- Removed ApplyForOpCreditsModal from OnboardingSteps component.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR fixes an error related to buying with Crypto transactions using InApp wallet.
### Detailed summary
- Fixed error in `ConfirmationScreen.tsx` related to Crypto transactions
- Added `walletIds` import from `@thirdweb-dev/wallets`
- Modified transaction request based on wallet type before sending
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->