<!-- start pr-codex -->
## PR-Codex overview
This PR fixes the wallet switcher icon position in the wallet details modal.
### Detailed summary
- Adjusted the wallet switcher icon position in `Modal.tsx`
- Updated the `borderRadius` in `buttons.tsx`
- Added a new `ShuffleIconLucide` component in `ShuffleIconLucide.tsx`
- Replaced `ShuffleIcon` with `ShuffleIconLucide` in `Details.tsx`
> ✨ 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 enhance the deployment process of contracts by adding a gas override option and improving the registration process on the multichain registry for ZkSync contracts.
### Detailed summary
- Added `gasOverride` option for contract deployment
- Improved ZkSync contract registration process
- Removed unnecessary contract registration function
- Updated contract deployment handling for ZkSync
- Refactored contract deployment logic and metadata handling
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR adds Discord login functionality to the React Native SDK, including new paths, UI changes, and authentication methods.
### Detailed summary
- Added Discord login feature to React Native SDK
- Updated UI components for Discord login
- Implemented Discord authentication methods
- Created new paths for Discord login
- Updated authentication middleware for Discord integration
> The following files were skipped due to too many changes: `packages/thirdweb/src/wallets/in-app/native/helpers/wallet/recoveryCode.ts`
> ✨ 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
This PR adds Discord login option to thirdweb in-app and ecosystem wallets.
### Detailed summary
- Added Discord login option to in-app and ecosystem wallets
- Updated authentication constants and locales
- Implemented Discord login functionality
- Updated wallet images and social login components
> The following files were skipped due to too many changes: `packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx`, `packages/thirdweb/src/react/native/ui/icons/svgs.ts`, `packages/thirdweb/src/wallets/in-app/web/lib/auth/discord.ts`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
This pull request addresses a bug in the `estimateGas` function where a gas value of `0` is now respected instead of being overridden.
### What changed?
- Updated `estimateGas` function to properly handle and respect a gas value of `0`.
- Added a test case to ensure that a gas value of `0` does not throw an error and is correctly serialized.
### How to test?
- Run unit tests to ensure the new test case passes.
### Why make this change?
This change ensures that transactions explicitly set with a gas value of `0` are respected and not overridden, providing more accurate and expected behavior.
---
## 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 the icon used for editing partners in the partners table component.
### Detailed summary
- Updated icon for editing partners from `Wrench` to `Pencil` in `partners-table.tsx`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR enhances the `prepareContractCall` function in the `thirdweb` package to allow adding extra call data to transactions.
### Detailed summary
- Added support for extra call data in `prepareContractCall`
- Introduced internal functions to handle extra call data in transactions
- Updated tests to cover extra call data scenarios
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
## Problem solved
Reverts back to workspace version for `service-utils` package
## 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 the dependency resolution for `@thirdweb-dev/service-utils` and `@thirdweb-dev/dynamic-contracts`.
### Detailed summary
- Updated `@thirdweb-dev/service-utils` dependency resolution to `workspace:*`
- Removed specific dependencies for `@thirdweb-dev/[email protected]`
- Updated snapshot for `@thirdweb-dev/[email protected]`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
This PR introduces new functionalities and updates aimed at improving partner management within the ecosystem section of the dashboard.
### What changed?
1. **Partner Update Feature**: Added a new form and modal to enable the updating of partner details, including name, domains, bundle IDs, and permissions.
2. **Refactored Domain Validation**: Moved domain validation regex to a constants file for improved code maintainability.
3. **UI Enhancements**: Updated UI components to include an edit button for partner details in the partners' table.
4. **Code Cleanup**: Removed redundant code and improved component structure for better readability.
### How to test?
1. Navigate to the ecosystem section in the dashboard.
2. Select a partner and click the edit button to open the update modal.
3. Update the partner details and save changes. Ensure that the details are updated correctly in the database and UI.
### Why make this change?
This change aims to enhance the user experience by allowing easier management of ecosystem partners directly from the dashboard. It also improves code maintainability and readability by refactoring existing components and validation logic.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR updates partner permission handling and refactors form validation in the ecosystem dashboard.
### Detailed summary
- Added `PartnerPermission` type and `isValidPermission` function
- Updated partner object permissions to use `PartnerPermission`
- Refactored form validation using `partnerFormSchema`
- Added `useUpdatePartner` hook for updating partners
- Updated UI components and modals for partner management
> The following files were skipped due to too many changes: `apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/components/server/partners-table.tsx`, `apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/components/client/update-partner-form.client.tsx`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Improve the precision of the wait function tests by changing the expectation from a simple greater-than-or-equal check to an absolute difference check within a margin of error of 10 milliseconds.
### What changed?
In `wait.test.ts` files located in the `thirdweb/src/react/core/utils/` and `thirdweb/src/utils/promise/` paths, the expectation `expect(elapsedTime).toBeGreaterThanOrEqual(waitTime)` was updated to `expect(Math.abs(elapsedTime - waitTime)).toBeLessThan(10)` to improve test accuracy by accounting for slight timing variations.
### How to test?
Run the test suites located in `thirdweb/src/react/core/utils/wait.test.ts` and `thirdweb/src/utils/promise/wait.test.ts` to ensure that they pass successfully with the updated precision checks.
### Why make this change?
The motivation behind this change is to enhance the reliability and precision of the wait function tests by accommodating minor variations in elapsed time, which can occur due to factors like system load and execution context.
---
## Problem solved
Added chainsaw service description so it can be used for auth
## 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
This PR adds a new service called `chainsaw` to the service-utils package and updates dependencies and configurations related to it.
### Detailed summary
- Added `chainsaw` service definition in `service-utils`
- Updated dependencies and configurations for the `chainsaw` service
- Updated `service-utils` version to `0.4.36` in various files and lock files
> ✨ 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
This PR updates banner images and gradient styling in the dashboard for a better visual experience.
### Detailed summary
- Deleted `ancient8-banner.jpg` and updated to `ancient8-banner.png` for better quality.
- Changed gradient styling in the header for improved visual appeal.
- Updated imports of banner images in `utils.ts` to match file extensions.
> ✨ 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 handling the minimum amount in the buy-to-crypto flow.
### Detailed summary
- Updated error handling messages for buy with fiat and crypto flows
- Added functions to set token amount and track editing status
- Improved error messages display for minimum purchase amount
- Implemented functionality to set the minimum amount in the UI
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
This PR introduces support for ERC20 tokens in the transaction flow, allowing users to seamlessly interact with contracts that require ERC20 token payments.
### What changed?
1. Added ERC20 token handling in the `useSendTransaction` hook to check balance and prompt users to buy ERC20 if needed.
2. Integrated ERC20 token fields, such as `erc20Value`, into the transaction preparation and cost estimation processes.
3. Updated various contract-writing scripts to include `erc20Value` overrides where necessary.
4. Enhanced the UI in `TxModal` and `BuyScreen` to display and process ERC20 token transactions.
5. Added tests for ERC20 token transactions in the `drop721.test.ts` file.
6. Extended documentation and examples to include ERC20 token use cases in transaction flows.
### How to test?
1. Run the unit tests in the `drop721.test.ts` file to ensure ERC20 transactions are correctly processed.
2. Use the `useSendTransaction` hook in a sample component and attempt transactions with both native and ERC20 tokens.
3. Verify that the ERC20 token purchase prompt appears when balance is insufficient.
### Why make this change?
Adding ERC20 support enhances the flexibility and functionality of the transaction flow, making it easier for users to interact with a wider range of smart contracts that require different types of token payments.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on handling ERC20 transaction values in Pay components.
### Detailed summary
- Added `tokenDecimals` in `types.ts`
- Modified `title` in `PayEmbed.tsx` and `transferBatch.ts`
- Added `overrides` in `transfer.ts`, `transferFrom.ts`, `approve.ts`
- Added `erc20Value` in various transaction files
- Updated `prepare-transaction.ts` with `erc20Value`
- Added `erc20Value` in generated files for different ERC20 transactions
> The following files were skipped due to too many changes: `packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts`, `packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts`, `packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts`, `packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts`, `packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts`, `packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts`, `packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts`, `packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts`, `packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts`, `packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts`, `packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts`, `packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts`, `packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts`, `packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts`, `packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts`, `packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts`, `packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts`, `packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts`, `packages/thirdweb/src/extensions/modular/__generated__/ModularCore/write/grantRoles.ts`, `packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts`, `packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts`, `packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts`, `packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts`, `packages/thirdweb/src/extensions/modular/__generated__/ModularCore/write/revokeRoles.ts`, `packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts`, `packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts`, `packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts`, `packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts`, `packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts`, `packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts`, `packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts`, `packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts`, `packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts`, `packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts`, `packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts`, `packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts`, `packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts`, `packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts`, `packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts`, `packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts`, `packages/thirdweb/src/extensions/modular/__generated__/ModularCore/write/renounceRoles.ts`, `packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts`, `packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts`, `packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts`, `packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts`, `packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts`, `packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts`, `packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts`, `packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts`, `packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts`, `packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts`, `packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts`, `packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts`, `packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts`, `packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts`, `packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts`, `packages/thirdweb/src/extensions/modular/__generated__/ModularCore/write/installExtension.ts`, `packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts`, `packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts`, `packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts`, `packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts`, `packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts`, `packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts`, `packages/thirdweb/src/extensions/modular/__generated__/IModularCore/write/installExtension.ts`, `packages/thirdweb/src/extensions/modular/__generated__/ModularCore/write/transferOwnership.ts`, `packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts`, `packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts`, `packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts`, `packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts`, `packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts`, `packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts`, `packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts`, `packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts`, `packages/thirdweb/src/extensions/modular/__generated__/ModularCore/write/uninstallExtension.ts`, `packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts`, `packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts`, `packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts`, `packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts`, `packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts`, `packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts`, `packages/thirdweb/src/extensions/modular/__generated__/IModularCore/write/uninstallExtension.ts`, `packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts`, `packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts`, `packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts`, `packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts`, `packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts`, `packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts`, `packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts`, `packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts`, `packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts`, `packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts`, `packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts`, `packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts`, `packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts`, `packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts`, `packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts`, `packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts`, `packages/thirdweb/src/extensions/modular/__generated__/ModularCore/write/completeOwnershipHandover.ts`, `packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts`, `packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts`, `packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts`, `packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts`, `packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts`, `packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts`, `packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts`, `packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts`, `packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts`, `packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts`, `packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts`, `packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts`, `packages/thirdweb/src/extensions/erc20/write/sigMint.ts`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.ts`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/BuyTxHistory.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/TxDetailsScreen.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/TransactionsScreen.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/FiatDetailsScreen.tsx`, `packages/thirdweb/src/extensions/erc20/write/deposit.ts`, `packages/thirdweb/src/utils/extensions/drops/get-claim-params.ts`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/PayTokenIcon.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx`, `packages/thirdweb/src/extensions/erc20/write/getApprovalForTransaction.ts`, `apps/playground-web/src/components/pay/transaction-button.tsx`, `packages/thirdweb/src/extensions/erc721/drop721.test.ts`, `packages/thirdweb/src/react/core/hooks/transaction/useSendTransaction.ts`, `packages/thirdweb/src/react/web/hooks/transaction/useSendTransaction.tsx`
> ✨ 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
- [ ] come back tomorrow gives funds now
## 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
This PR updates the SpinWheel component in the dashboard app to adjust the amount displayed based on the result and improve the success message.
### Detailed summary
- Updated the amount displayed based on the result in `SpinWheel.tsx`
- Improved success message with a more informative and positive message
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
## Problem solved
Users rate limited when faucet fails to transfer funds e.g. faucet empty
## Changes made
- [ ] Added the mechanism to remove users from the cache when the funding transfer fails (e.g. when the faucet is empty)
## How to test
- [ ] empty the faucet or make the transfer request fail
## 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 add a new function `cacheDeleteKey` to delete a cache key and update its usage in the testnet faucet route.
### Detailed summary
- Added `cacheDeleteKey` function to delete a cache key in `lib/redis`
- Updated the testnet faucet route to use `cacheDeleteKey` for cache management
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
Fixes#3683
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to add an optional 'from' parameter in the `readContract()` function and update default max block wait times to 100 in various files.
### Detailed summary
- Added optional 'from' parameter in `readContract()`
- Updated default max block wait times to 10 in specific files
- Increased default max block wait times to 100 in other files
> ✨ 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 the condition for rendering a form in the `engine-instances-table.tsx` component based on the `instance` status.
### Detailed summary
- Changed the condition for rendering a form based on `instance.status`
- Form now appears for instances with status "paymentFailed" or "active" without `cloudDeployedAt`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
This pull request introduces new features and modifications to the transaction history feature within the connect modal UI. Key changes include:
- Addition of a transaction history page accessible from the connect modal's main menu, allowing users to view and manage their transaction history more effectively.
- Refactoring of transaction-related components to enhance code maintainability and readability. Specifically, renaming components related to 'BuyTxHistory' to 'PayTxHistory' to better reflect their functionality.
- Updates to locale files to include new translations for added labels such as 'payTransactions' and 'walletTransactions'.
- Integration of new navigation options within the connect modal, enabling seamless switching between different transaction views, including 'Fiat Transactions' and 'Wallet Transactions'.
- Ensuring that the transaction history page supports multiple languages, with updated English, Spanish, Japanese, and Vietnamese locale files.
- Improvements to UI components to ensure consistent styling and user experience across the transaction history pages.
These enhancements aim to provide users with an improved interface for managing their transaction histories, thereby enhancing overall user experience.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR adds a transaction history page to the connect modal UI.
### Detailed summary
- Added transaction history page to connect modal UI
- Renamed "pending-tx" to "transactions"
- Updated text and components related to transactions and fiat transactions
- Reorganized file structure for transaction-related screens and components
> The following files were skipped due to too many changes: `packages/thirdweb/src/react/web/ui/ConnectWallet/TransactionsScreen.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistory.tsx`
> ✨ 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 refactor the handling of search parameters in the trending section of the dashboard.
### Detailed summary
- Updated the handling of search parameters in the trending section of the dashboard.
- Reorganized the code to use `searchParams` object for time range, page, and sort by.
- Refactored the `TrendingContractSection` and `TrendingTable` components to utilize `searchParams` object efficiently.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR adds a new "Trending" section to the sidebar, updates the pagination component, and modifies search filters for gas usage. Additionally, it refactors the package.json file for thirdweb.
### Detailed summary
- Added "Trending" section to sidebar
- Updated pagination component
- Modified search filters for gas usage
- Refactored package.json for thirdweb
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Adds support for using an ERC20 paymaster in smart accounts. This includes functionality to check and approve ERC20 allowances as needed.
### What changed?
- Introduced support for ERC20 paymasters in smart accounts.
- Added logic to check and approve ERC20 allowances.
- Updated the `defaultTokens` list to include a new token for testing purposes.
### How to test?
1. Ensure that the smart account can interact with ERC20 paymasters.
2. Verify that the account approval for ERC20 paymasters works as expected.
3. Check that the default tokens list reflects the new token and can be utilized appropriately.
### Why make this change?
To enable smart accounts to use ERC20 tokens for paymaster functionalities, enhancing versatility and use-case scenarios for smart accounts.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to add support for ERC20 paymaster for smart accounts.
### Detailed summary
- Added ERC20 paymaster support for smart accounts
- Implemented functions for approving ERC20 transactions
- Modified smart account creation to handle ERC20 paymasters
> ✨ 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 various components across different files to allow for dynamic customization of titles in the UI screens.
### Detailed summary
- Added `title` prop to multiple components for dynamic title customization.
- Updated titles in UI screens to use the dynamic `title` prop.
- Enhanced flexibility for customizing display titles in the UI.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
## Problem solved
Faucet for EVM every chain. When the faucet is empty we crowdfund faucet sponsors
## Changes made
- [ ] Added faucet UI
- [ ] Added faucet endpoint
- [ ] Added faucet eligibility endpoint
## How to test
- [ ] See video
https://github.com/user-attachments/assets/b4414d63-c4cf-44f9-8824-c7307ad34013
## 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 implement a faucet feature for testnet chains, allowing users to claim testnet funds.
### Detailed summary
- Added "faucet" service type and functionality.
- Implemented faucet-related components and pages.
- Utilized Redis for caching faucet requests.
- Added necessary dependencies for faucet functionality.
- Updated chain metadata generation for faucet feature.
> The following files were skipped due to too many changes: `apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/faucet/components/SpinWheel.tsx`, `pnpm-lock.yaml`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
Corresponding Engine PR: https://github.com/thirdweb-dev/engine/pull/564
<img width="773" alt="image" src="https://github.com/user-attachments/assets/a27098a6-4d6f-4cbb-a2aa-795f50d531ac">
<!-- start pr-codex -->
---
## PR-Codex overview
This PR introduces IP allowlisting feature to the engine configuration.
### Detailed summary
- Added `ipaddr.js` library for IP address validation
- Implemented IP allowlist configuration in the engine settings
- Created hooks for fetching and setting IP allowlist
- Added UI components for managing IP allowlist in the dashboard
> The following files were skipped due to too many changes: `pnpm-lock.yaml`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR adds the recipient address feature to PayEmbed and refactors recipient address handling in various components.
### Detailed summary
- Added recipient address to PayEmbed for sending purchased tokens
- Refactored handling of recipient address in different screens and hooks
- Updated logic for onramp and swap processes based on recipient address
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
- Added domain data for typed data signatures.
- Updated hooks and utilities to use `account` instead of `signer`.
### What changed?
- Modified `useRegistry.ts`, `hooks.ts`, and `utils.ts` to replace `signer` with `account` for signing transactions.
- Updated `in-app-account.ts` to correctly handle domain data for typed data signatures.
### How to test?
1. Deploy a contract using the dashboard and ensure that `account` is used correctly instead of `signer`.
2. Validate that typed data signatures are correctly generated in the in-app wallet.
### Why make this change?
To improve the accuracy and reliability of in-app wallet typed data signatures by ensuring the correct handling of domain data and consistent use of `account` across the application.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to fix in-app wallet typed data signatures and optimize contract-related functions.
### Detailed summary
- Fixed in-app wallet typed data signatures
- Updated contract-related functions for better optimization and clarity
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
This update introduces new methods for fetching proofs for ERCXX tokens (specifically ERC20, ERC721, and ERC1155). The methods `fetchProofsERC20`, `fetchProofsERC721`, and `fetchProofsERC1155` have been added to the airdrop extension. These methods allow users to retrieve claim Merkle proofs for the specified address and tokens, ensuring that users in the allowlist can claim their airdrop. Additionally, example usage and detailed docstrings have been included to guide developers on how to implement these methods in their projects.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to add `fetchProofsERCXX` methods for ERC721, ERC20, and ERC1155 airdrop contracts.
### Detailed summary
- Added `fetchProofsERC721`, `fetchProofsERC20`, and `fetchProofsERC1155` methods
- Updated `claimERC20` to use `fetchProofsERC20`
- Added detailed documentation for each method
- Renamed `fetchProofsrERC20` to `fetchProofsERC20`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR adds Vietnamese locale support for the ConnectButton components and updates various language files for the ConnectWallet feature.
### Detailed summary
- Added Vietnamese locale for ConnectButton components
- Updated language files for ConnectWallet screens and wallets with Vietnamese translations
> The following files were skipped due to too many changes: `packages/thirdweb/src/react/web/wallets/local/locale/vi.ts`, `packages/thirdweb/src/react/web/wallets/shared/locale/vi.ts`, `packages/thirdweb/src/react/web/ui/ConnectWallet/locale/vi.ts`
> ✨ 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 add a link to the `MetadataHeader` component that redirects to a specific chain page.
### Detailed summary
- Added `Link` import from "next/link"
- Applied `as={Link}` and `href={`/${chain.chainId}`}` to make the header clickable
- Set `cursor="pointer"` for better user interaction
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Updated the domain validation regex in the AddPartnerForm component to handle new wildcard subdomain cases and made minor formatting fixes.
### What changed?
- Updated the domain validation regex to handle new wildcard subdomain cases.
- Fixed minor formatting issues with array and string declarations.
### How to test?
1. Navigate to the Add Partner form in the dashboard.
2. Test the domain input field with the following cases to ensure proper validation:
- general domains (e.g., example.com)
- wildcard subdomains (e.g., *.example.com)
- nested wildcard subdomains (e.g., *.*.example.com)
### Why make this change?
The changes were necessary to improve the domain validation mechanism by accommodating new wildcard subdomain cases, and to maintain code quality through consistent formatting.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to update the `isDomainRegex` pattern in the `add-partner-form.client.tsx` file for improved domain validation.
### Detailed summary
- Updated the `isDomainRegex` pattern for domain validation with additional flexibility and accuracy.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
## Problem solved
Adds 2 new optional fields to usage event schema:
* evmRequestParams
* providerIp
Allows a new possible source for the event - `rpcV2`
## Changes made
- [x] service-utils: Update usage tracker schema
## 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
This PR updates the schema for the usage tracker event in the `service-utils` package to include new fields `evmRequestParams` and `providerIp`.
### Detailed summary
- Added `evmRequestParams` field to the usage event schema
- Added `providerIp` field to the usage event schema
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Updated UI elements and feature list in the create page of the ecosystem section.
### What changed?
- Adjusted padding and positioning of elements for better alignment and appearance.
- Added a new feature item to the list: '30,000 active wallets included*'.
- Included a note regarding additional wallet costs ('$0.02 per additional wallet').
### How to test?
Navigate to the 'Create Ecosystem' page in the dashboard. Verify that the layout changes are correctly applied and the new feature/item is visible with the note on wallet costs.
### Why make this change?
These updates improve the clarity of information provided to users and enhance the overall user experience on the create page of the ecosystem section.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to update the ecosystem creation page in the dashboard with additional wallet information.
### Detailed summary
- Added display of 30,000 active wallets included
- Added pricing information for additional wallets
> ✨ 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 add a `type` prop for the `TransactionButton` component in the `thirdweb` package.
### Detailed summary
- Added `type` prop for `TransactionButton`
- Updated `TransactionButton` component to include `type` attribute for button element
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
Initially this is for interacting with other frameworks like frog.fm
Might be useful elsewhere idk
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on exporting a new utils method `getClaimParams` for thirdweb Drop contracts.
### Detailed summary
- Added export for `getClaimParams` method in `utils/extensions/drops/get-claim-params.js`
- Exported type `GetClaimParamsOptions` for thirdweb Drop contracts
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR enhances file input handling in components by adding support for `.obj` files alongside `.usdz` and `.glb` files.
### Detailed summary
- Updated `FileInput.tsx` to support `.obj` files for 3D models
- Updated `mint-form.tsx` to recognize `.gltf` files and `.obj` files for 3D models
> ✨ 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 add support for Zora1155 in ERC1155 > getOwned.
### Detailed summary
- Added support for Zora1155 contract in ERC1155 > getOwned function
- Updated functions to handle Zora1155 contract methods
- Introduced new functions for Zora1155 contract interaction
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
Adds new tools pages:
- Wei converter
- Hex converter
- Unix time converter
- Keccak256 converter
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to add new tools to the dashboard for converting between different formats like hex, decimal, Unix time, and Keccak-256 hashes.
### Detailed summary
- Added Hex Converter, Wei Converter, Unix Time Converter, and Keccak256 Converter tools
- Created components for each converter tool
- Implemented share functionality for each tool
- Added metadata for each tool
- Included tab navigation for easy access to tools
> The following files were skipped due to too many changes: `apps/dashboard/src/app/(dashboard)/tools/unixtime-converter/components/UnixTimeConverter.tsx`, `apps/dashboard/src/app/(dashboard)/tools/wei-converter/components/WeiConverter.tsx`
> ✨ 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 enhance the dashboard engine functionality by adding a demo engine feature and improving user interactions.
### Detailed summary
- Added a demo engine URL environment variable
- Updated import engine instance button style
- Implemented try demo button functionality with analytics tracking
- Improved error handling for missing environment variables
> ✨ 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 fixing extension contract detection and enhancing ownership function detection for ERC721 contracts.
### Detailed summary
- Fixed extension contract detection in `detectExtension.ts`
- Added ownership function detection in `getOwnedNFTs.test.ts`
- Updated imports for test clients and contract utils
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Updated the createTicketAction function to ensure that only specific fields (attachments and json) are retained in formData during ticket creation.
### What changed?
- Introduced a constant KEEP_FIELDS to specify fields that should be retained in formData.
- Added the content field to formData before deleting non-essential fields.
- Removed specific deletion of extraInfo_Problem_Area key.
### How to test?
1. Trigger the createTicketAction function in support component.
2. Verify if only attachments and json fields are present in the formData when a ticket is created.
### Why make this change?
To ensure that only necessary data is sent when creating a ticket, optimizing the data payload and avoiding potential issues with extraneous fields.
---
This PR enhances the ChainPageLayout by adding support for background images for different chains and integrating Mantle chain-specific assets. Key updates include:
- Addition of the `mantle-banner.jpeg` and `mantle-cta.jpeg` images.
- Updates to `add-chain-to-wallet.tsx` and `layout.tsx` to support dynamic background and text color adjustments based on the presence of a background image.
- Modification of the `chainMetaRecord` to include metadata for the Mantle chain (chain ID 5000).
### TL;DR
Enhanced the ChainPageLayout component by adding support for chain-specific background images and integrating Mantle assets.
### What changed?
- New chain-specific background image support
- Integration with Mantle assets
- Updates to relevant components to handle background and text adjustments dynamically.
### How to test?
1. Go to the ChainPageLayout for any chain that has a background image (e.g., Mantle).
2. Verify that the background image is displayed correctly.
3. Check that text color and other UI elements adjust appropriately based on the background image.
4. Ensure that Mantle-specific content is displayed correctly.
### Why make this change?
This enhancement provides a more visually engaging and chain-specific user experience. The integration with Mantle also helps in showcasing specific chains more effectively.
---
<!-- start pr-codex -->
## PR-Codex overview
This PR updates time range handling and contract fetching in the trending feature.
### Detailed summary
- Updated time range handling in `TimeRangeSwitcher`
- Moved `TimeRange` type to `lib/search`
- Refactored contract fetching logic to `fetchTopContracts`
- Added new types and functions related to trending contracts
- Updated imports and removed redundant code in `trending-table`
> The following files were skipped due to too many changes: `apps/dashboard/src/app/trending/components/trending-table.tsx`, `apps/dashboard/src/components/cmd-k-search/index.tsx`
> ✨ 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 enhance the dashboard UI and functionality.
### Detailed summary
- Updated UI components like `Spinner` and `Toggle`
- Improved styling and color schemes
- Added new pages and components for trending contracts
- Refactored search functionality
- Integrated thirdweb client for chain icons
> The following files were skipped due to too many changes: `apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/page.tsx`, `apps/dashboard/src/@/components/ui/table.tsx`, `apps/dashboard/src/app/trending/components/icons.tsx`, `apps/dashboard/src/app/trending/components/trending-table.tsx`, `pnpm-lock.yaml`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
This refactor replaces the usage of individual Unthread environment variables with a single `UNTHREAD_API_KEY`. Additionally, components and forms related to support tickets have been updated to streamline the support request flow. The Chakra UI components have been replaced with Radix UI components for consistency. Unused components have been removed and some components were slightly enhanced for development simplicity.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to refactor code in the dashboard app, update dependencies, and improve UI components.
### Detailed summary
- Removed support-related components and pages
- Updated layout and styling in various dashboard components
- Added new products and product-related functions
- Updated dependencies in `package.json` and `pnpm-lock.yaml`
- Refactored form inputs and layouts in support forms
> The following files were skipped due to too many changes: `apps/dashboard/src/components/help/contact-forms/engine/index.tsx`, `apps/dashboard/src/components/help/contact-forms/connect/AffectedAreaInput.tsx`, `apps/dashboard/src/components/help/contact-forms/shared/SupportForm_SelectInput.tsx`, `apps/dashboard/src/components/help/contact-forms/contracts/index.tsx`, `apps/dashboard/src/components/help/contact-forms/connect/index.tsx`, `apps/dashboard/src/@/components/ui/dialog.tsx`, `apps/dashboard/src/app/(dashboard)/support/components/create-ticket.client.tsx`, `apps/dashboard/src/app/(dashboard)/support/components/create-ticket.action.ts`, `apps/dashboard/src/components/help/contact-forms/shared/SupportForm_AttachmentUploader.tsx`, `apps/dashboard/src/app/(dashboard)/support/page.tsx`
> ✨ 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 updating the `MediaRenderer` component to only render the video poster if it's an image.
### Detailed summary
- Updated `MediaRenderer` to conditionally render video poster based on MIME type
- Improved handling of poster rendering for better compatibility
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
This PR removes the `ContextAIBotButton` and `NeedSomeHelp` components from the dashboard source code.
### What changed?
- Deleted `context-ai-button.tsx` and `need-some-help.tsx` files from the help folder.
- Updated `support.tsx` to remove the `NeedSomeHelp` component.
### How to test?
1. Navigate to the support page in the dashboard.
2. Ensure that the `NeedSomeHelp` section is no longer displayed.
3. Check that there are no console errors related to the missing components.
### Why make this change?
These components are no longer needed as part of the dashboard's help system and are being removed to simplify the codebase and reduce unnecessary dependencies.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to remove unused help components and restructure the Support page layout.
### Detailed summary
- Deleted `NeedSomeHelp` and `ContextAiButton` components
- Removed unnecessary import statements
- Updated the layout of the Support page to exclude `NeedSomeHelp` component
> ✨ 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 update authentication endpoints and improve error handling in the codebase.
### Detailed summary
- Updated logout endpoint in `General.tsx`
- Changed user authentication endpoint to `/v1/account/me`
- Removed `decodeJWT` function import
- Added `THIRDWEB_API_HOST` environment variable
- Improved error handling in `GET` function in `route.ts`
> ✨ 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 components related to Pay analytics and configuration.
### Detailed summary
- Updated `usePayPurchases`, `usePayVolume`, `usePayNewCustomers`, and `usePayCustomers` hooks
- Refactored `PayUI` component in `dashboard/connect/pay/components/pay-ui.client.tsx`
- Added `getApiKeys` function in `dashboard/connect/pay/page.tsx`
> The following files were skipped due to too many changes: `apps/dashboard/src/app/(dashboard)/dashboard/connect/pay/page.tsx`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR removes the `checkout` service from `services.ts` and adjusts the `pay` service properties.
### Detailed summary
- Removed `checkout` service
- Adjusted properties of `pay` service
> ✨ 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 refactor authentication and onboarding flows, removing unused code and optimizing user creation and confirmation processes.
### Detailed summary
- Added user creation logic if user does not exist
- Removed `useConfirmEmbeddedWallet` hook
- Refactored onboarding flow and removed unused code
- Optimized handling of account confirmation and email verification
> ✨ 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 add a custom payment embed component for a specific chain in the dashboard.
### Detailed summary
- Added `CustomPayEmbed` component in `pay-embed.client.tsx`
- Utilized `thirdwebClient` and `defineChain` for payment functionality
- Integrated theme handling and payment options for a specific chain
> ✨ 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 search functionality in the Network Selector screen by optimizing chain queries and improving user experience.
### Detailed summary
- Added `useChainsQuery` and `useChainQuery` functions for chain data retrieval
- Improved search functionality by optimizing chain queries and handling loading states
- Updated dependencies and imports for better code organization
> ✨ 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 refactor ecosystem creation and management components in the dashboard.
### Detailed summary
- Refactored ecosystem creation components
- Updated ecosystem status handling
- Improved ecosystem selection functionality
- Reorganized ecosystem layout components
> The following files were skipped due to too many changes: `apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/components/client/ecosystem-header.client.tsx`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Added a new chain definition for the 'Blast' chain.
### What changed?
- Added a new file `blast.ts` in `chain-definitions`
- Defined the Blast chain with ID 81457, name 'Blast', and native currency 'Ether'.
- Added Blastscan as the block explorer with corresponding URL and API URL.
- Updated `chains.ts` to export the `blast` chain.
### How to test?
1. Verify that the `blast.ts` file exists in the `chain-definitions` directory.
2. Check that the chain ID, name, and native currency are correctly defined.
3. Ensure the block explorer details are accurate.
4. Confirm that `chains.ts` exports the `blast` chain.
### Why make this change?
This change adds support for the Blast chain, which may be required for upcoming features or integrations. Including it ensures that the system can recognize and interact with the Blast blockchain.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR adds the `blast` chain preset to `thirdweb` package.
### Detailed summary
- Added `blast` chain definition in `blast.ts`
- Exported `blast` in `chains.ts` for use in `thirdweb` package
> ✨ 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 enhance the user guidance in the ecosystem-partners-section by adding a reminder to generate at least one partner ID for use in the app.
### Detailed summary
- Added a reminder to generate at least one partner ID for app usage.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR enhances ERC20 functionality and token details display.
### Detailed summary
- Added `transferBatch()` extension to `erc20.ts`
- Updated `TokenDetails` component to include `chainId`
- Improved ERC20 contract handling in `useTxNotifications`
- Updated `TokenBurnButton` and `TokenAirdropButton` components to use V5 contract handling
> The following files were skipped due to too many changes: `apps/dashboard/src/contract-ui/tabs/tokens/components/airdrop-button.tsx`, `apps/dashboard/src/contract-ui/tabs/tokens/components/transfer-button.tsx`, `apps/dashboard/src/contract-ui/tabs/tokens/components/supply.tsx`, `apps/dashboard/src/contract-ui/tabs/tokens/components/airdrop-form.tsx`, `apps/dashboard/src/contract-ui/tabs/tokens/components/transfer-form.tsx`, `apps/dashboard/src/contract-ui/tabs/tokens/components/burn-form.tsx`
> ✨ 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 enhancing JWT utils, updating API host paths, and optimizing user authentication handling.
### Detailed summary
- Export JWT utils, fix naming of `decodeJWT`
- Update API host paths to use relative paths
- Optimize user authentication handling in various components
> The following files were skipped due to too many changes: `apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/hooks/use-delete-partner.ts`, `apps/dashboard/src/components/app-layouts/app.tsx`, `apps/dashboard/src/components/buttons/TransactionButton.tsx`, `apps/dashboard/src/pages/dashboard/settings/notifications.tsx`, `apps/dashboard/src/components/engine/overview/transaction-timeline.tsx`, `apps/dashboard/src/pages/dashboard/settings/devices.tsx`, `apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/hooks/use-add-partner.ts`, `apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/hooks/use-update-ecosystem.ts`, `apps/dashboard/src/app/(dashboard)/dashboard/connect/pay/page.tsx`, `apps/dashboard/src/pages/dashboard/engine/index.tsx`, `apps/dashboard/src/pages/dashboard/settings/billing.tsx`, `apps/dashboard/src/components/engine/engine-instances-table.tsx`, `apps/dashboard/src/pages/dashboard/settings/usage.tsx`, `apps/dashboard/src/pages/dashboard/settings/gas-credits.tsx`, `apps/dashboard/src/pages/dashboard/settings/api-keys/index.tsx`, `apps/dashboard/src/pages/api/server-proxy/api/[...paths].tsx`, `apps/dashboard/src/pages/dashboard/connect/analytics.tsx`, `apps/dashboard/src/components/storage/your-files.tsx`, `apps/dashboard/src/pages/api/server-proxy/pay/[...paths].tsx`, `apps/dashboard/src/components/engine/engine-list.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayVolume.ts`, `apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayNewCustomers.ts`, `apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayPurchases.ts`, `apps/dashboard/src/pages/dashboard/connect/in-app-wallets.tsx`, `apps/dashboard/src/middleware.ts`, `apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayCustomers.ts`, `apps/dashboard/src/pages/dashboard/connect/account-abstraction.tsx`, `apps/dashboard/src/app/login/page.tsx`, `apps/dashboard/src/app/components/ThirdwebMiniLogo.tsx`, `apps/dashboard/src/app/api/auth/ensure-login/route.ts`, `apps/dashboard/src/app/login/auth-actions.ts`, `apps/dashboard/src/components/buttons/MismatchButton.tsx`, `apps/dashboard/src/@3rdweb-sdk/react/hooks/useLoggedInUser.ts`, `apps/dashboard/src/@3rdweb-sdk/react/components/connect-wallet/index.tsx`, `apps/dashboard/src/@3rdweb-sdk/react/hooks/useApi.ts`, `apps/dashboard/src/@3rdweb-sdk/react/hooks/useEngine.ts`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
This PR introduces the ability to add NFTs to the connect modal in the thirdweb package. By using the `supportedNFTs` configuration, users can customize which NFTs are shown in the 'View Funds' section within the details modal. This update includes modifications to several TypeScript files to support the new functionality, adjustments in the UI components to handle NFT displays, and updates to hooks and utility functions to fetch and display owned NFTs.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to add support for NFTs in the connect modal and customize the NFTs shown in the "View Funds" screen.
### Detailed summary
- Added support for NFTs in the connect modal with `supportedNFTs`
- Customized NFTs shown in the "View Funds" screen with `supportedNFTs`
- Updated components and types to handle NFTs
- Added NFT customization examples in documentation
> The following files were skipped due to too many changes: `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/ViewFunds.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Details.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/ViewNFTs.tsx`
> ✨ 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 fixing Transaction Button callbacks not being called when a transaction is executed in the Pay Modal.
### Detailed summary
- Added `rejectTx` parameter with reason in `useSendTransaction.ts`
- Added `resolveTx` parameter in `useSendTransaction.ts`
- Updated `useSendTransaction` in `useSendTransaction.tsx` to handle `rejectTx` and `resolveTx`
- Added `onTxSent` callback in `TxModal` and `ExecutingTxScreen` to handle transaction data
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
Introducing a patch in the `thirdweb` library to address wallet disconnect events. The main changes involve making the `onDisconnect` function asynchronous and ensuring that it correctly emits disconnect events. Affected files include `coinbaseWebSDK.ts` and `index.ts` in the `thirdweb/src/wallets` directory.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on fixing wallet disconnect events not being emitted in the `thirdweb` package.
### Detailed summary
- Added `async` keyword to `onDisconnect` function in `injected/index.ts` and `coinbaseWebSDK.ts`
- Replaced `disconnect` with `onDisconnect` in `onConnect` functions in both files
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR enhances the `siwe_auth` functionality for better user authentication and access control.
### Detailed summary
- Renamed `ConnectWallet` component to `ConnectButton`
- Updated `useExtensionContractInfo` to use `useActiveAccount`
- Replaced `useApiAuthToken` with `useAccessToken` in multiple files
- Improved `useSiweAuth` with additional features and mutations
- Updated components to use `useAccessToken` for authentication
- Refactored `useLoggedInUser` to fetch user data efficiently
> The following files were skipped due to too many changes: `apps/dashboard/src/@3rdweb-sdk/react/hooks/useApi.ts`, `apps/dashboard/src/@3rdweb-sdk/react/components/connect-wallet/index.tsx`, `apps/dashboard/src/@3rdweb-sdk/react/hooks/useEngine.ts`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR adds the `sizes`, `alt`, `fill`, and `unoptimized` attributes to the image in `ecosystem-header.client.tsx`.
### Detailed summary
- Added `sizes="100px"` attribute to the image
- Added `alt={ecosystem.name}` attribute
- Added `fill` attribute
- Added `unoptimized` attribute
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
FIXES: DASH-58
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on fixing the `ethers5` adapter's `populateTransaction` method for `sendTransaction`.
### Detailed summary
- Updated `populateTransaction` method in `ethers5.ts` to fix `sendTransaction` functionality
- Adjusted `nonce` default value from -1 to 0 for better handling
> ✨ 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
This PR focuses on adding support for Blockscout v2 contract verification.
### Detailed summary
- Added `ExplorerType` enum for different explorer types
- Modified contract verifier to handle Blockscout v2 verification
- Updated verification functions to support different explorer types
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Replaced `process.env.NEXT_PUBLIC_THIRDWEB_API_HOST` with `THIRDWEB_API_HOST` constant for ecosystem wallet-related fetch calls.
### What changed?
1. Updated import statements to bring in the `THIRDWEB_API_HOST` constant.
2. Replaced instances of `${process.env.NEXT_PUBLIC_THIRDWEB_API_HOST}` with `${THIRDWEB_API_HOST}` in ecosystem wallet-related fetch calls.
3. Updated links in the main ecosystem page for better navigation.
### How to test?
1. Ensure all ecosystem wallet functionality (fetching list, creating, etc.) still works without errors.
2. Verify that the navigation links on the main ecosystem page point to the correct URLs.
### Why make this change?
To replace the use of environment variables with constants for better code maintainability and readability.
---
## 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 the ecosystem wallet integration by replacing the `integratorId` parameter with `partnerId`.
### Detailed summary
- Replaced `integratorId` parameter with `partnerId` for connecting to a restricted ecosystem wallet with designated partner ID.
- Updated the code comments to reflect the change in parameter name.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Rewrite `useAddress` function with `useActiveAccount` function across various components to streamline account state handling. Replace `useChainId` with `useActiveWalletChain` to manage chain IDs more accurately. Update various other functions to align with the `thirdweb/react` package changes.
### What changed?
1. Replaced `useAddress` with `useActiveAccount` in multiple components.
2. Replaced `useChainId` with `useActiveWalletChain` in multiple components.
3. Updated hook imports and usages to align with the `thirdweb/react` package updates.
4. Revisited and updated certain functionalities, including wallet connections, contract interactions, and UI updates for better efficiency.
### How to test?
1. Check if the `useActiveAccount` function accurately reflects the current active account state across different components.
2. Verify the `useActiveWalletChain` function is managing and reflecting the chain ID appropriately.
3. Test various functionalities including wallet connections and contract interactions to ensure they are working as expected after the hook changes.
### Why make this change?
To streamline account and chain state handling, leveraging the latest hooks from the `thirdweb/react` package for better modernity and efficiency in code maintenance and functionality.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on improving loading performance for chains and updating to useActiveAccount instead of useAddress.
### Detailed summary
- Improved loading performance for chains
- Replaced `useAddress` with `useActiveAccount` in multiple components
- Updated `fetchAuthToken` function to remove promises from the map when done
> The following files were skipped due to too many changes: `apps/dashboard/src/pages/dashboard/settings/billing.tsx`, `apps/dashboard/src/contract-ui/tabs/tokens/components/burn-button.tsx`, `apps/dashboard/src/contract-ui/tabs/proposals/page.tsx`, `apps/dashboard/src/core-ui/nft-drawer/useNftDrawerTabs.tsx`, `apps/dashboard/src/contract-ui/tabs/tokens/components/transfer-button.tsx`, `apps/dashboard/src/contract-ui/tabs/tokens/components/burn-form.tsx`, `apps/dashboard/src/contract-ui/tabs/claim-conditions/components/claim-conditions-form/index.tsx`, `apps/dashboard/src/contract-ui/tabs/settings/components/royalties.tsx`, `packages/thirdweb/src/react/web/ui/components/ChainName.tsx`, `apps/dashboard/src/contract-ui/components/solidity-inputs/address-input.tsx`, `apps/dashboard/src/components/engine/contract-subscription/contract-subscriptions-table.tsx`, `apps/dashboard/src/contract-ui/tabs/listings/components/listing-drawer.tsx`, `apps/dashboard/src/contract-ui/tabs/tokens/components/airdrop-button.tsx`, `apps/dashboard/src/pages/api/moralis/balances.ts`, `apps/dashboard/src/contract-ui/tabs/tokens/components/mint-form.tsx`, `apps/dashboard/src/contract-ui/tabs/tokens/components/airdrop-form.tsx`, `apps/dashboard/src/components/contract-components/contract-deploy-form/index.tsx`, `apps/dashboard/src/contract-ui/tabs/shared-components/listing-drawer.tsx`, `apps/dashboard/src/contract-ui/tabs/settings/components/primary-sale.tsx`, `apps/dashboard/src/contract-ui/tabs/account-permissions/components/account-signer.tsx`, `apps/dashboard/src/pages/profile/[profileAddress].tsx`, `apps/dashboard/src/contract-ui/tabs/nfts/components/claim-form.tsx`, `apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/layout.tsx`, `apps/dashboard/src/components/onboarding/Steps.tsx`, `apps/dashboard/src/contract-ui/tabs/shared-components/list-button.tsx`, `apps/dashboard/src/contract-ui/components/primary-dashboard-button.tsx`, `packages/thirdweb/src/react/native/ui/components/ChainIcon.tsx`, `apps/dashboard/src/@3rdweb-sdk/react/hooks/useEngine.ts`, `apps/dashboard/src/contract-ui/tabs/nfts/components/mint-supply-tab.tsx`, `apps/dashboard/src/contract-ui/tabs/split/page.tsx`, `apps/dashboard/src/contract-ui/tabs/nfts/components/airdrop-tab.tsx`, `packages/thirdweb/src/react/web/ui/components/TokenIcon.tsx`, `apps/dashboard/src/contract-ui/tabs/nfts/components/claim-tab.tsx`, `packages/thirdweb/src/react/web/ui/components/token/TokenSymbol.tsx`, `apps/dashboard/src/pages/dashboard/contracts/deploy.tsx`, `apps/dashboard/src/components/contract-components/published-contract/index.tsx`, `apps/dashboard/src/contract-ui/tabs/english-auctions/components/table.tsx`, `apps/dashboard/src/pages/dashboard/contracts/publish.tsx`, `apps/dashboard/src/components/contract-components/contract-publish-form/index.tsx`, `apps/dashboard/src/app/(dashboard)/providers.tsx`, `apps/dashboard/src/components/engine/engine-instances-table.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/tx-history/TokenInfoRow.tsx`, `apps/dashboard/src/contract-ui/tabs/direct-listings/components/table.tsx`, `apps/dashboard/src/components/contract-tabs/code/ContractCode.tsx`, `apps/dashboard/src/components/cmd-k-search/index.tsx`, `apps/dashboard/src/contract-ui/tabs/nfts/components/mint-form.tsx`, `packages/thirdweb/src/react/native/ui/connect/SendScreen.tsx`, `apps/dashboard/src/contract-ui/tabs/settings/components/metadata.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.tsx`, `apps/dashboard/src/contract-ui/tabs/code/components/code-overview.tsx`, `apps/dashboard/src/@3rdweb-sdk/react/hooks/useRegistry.ts`, `apps/dashboard/src/contract-ui/tabs/settings/components/platform-fees.tsx`, `packages/thirdweb/src/chains/utils.ts`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistory.tsx`, `packages/thirdweb/src/react/native/ui/connect/ConnectedModal.tsx`, `apps/dashboard/src/pages/dashboard/index.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.tsx`, `apps/dashboard/src/contract-ui/tabs/overview/components/MarketplaceDetails.tsx`, `apps/dashboard/src/components/engine/overview/backend-wallets-table.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/TokenSelector.tsx`, `apps/dashboard/src/@3rdweb-sdk/react/hooks/useVote.ts`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx`, `apps/dashboard/src/components/ipfs-upload/dropzone.tsx`, `apps/dashboard/src/components/app-layouts/app.tsx`, `apps/dashboard/src/components/contract-components/import-contract/modal.tsx`, `apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/components/client/add-chain-to-wallet.tsx`, `apps/dashboard/src/components/wallets/PosthogIdentifier.tsx`, `apps/dashboard/src/@3rdweb-sdk/react/hooks/useContractRoles.ts`, `apps/dashboard/src/components/onboarding/index.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Details.tsx`, `apps/dashboard/src/@3rdweb-sdk/react/hooks/useLoggedInUser.ts`, `apps/dashboard/src/components/selects/CustomChainRenderer.tsx`, `apps/dashboard/src/pages/cli/login.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/tx-history/SwapDetailsScreen.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.tsx`, `apps/dashboard/src/components/app-layouts/providers.tsx`, `apps/dashboard/src/components/buttons/TransactionButton.tsx`, `apps/dashboard/src/components/contract-components/hooks.ts`, `packages/thirdweb/src/react/core/hooks/others/useChainQuery.ts`, `apps/dashboard/src/components/buttons/MismatchButton.tsx`, `apps/dashboard/src/components/selects/NetworkSelectorButton.tsx`, `apps/dashboard/src/components/app-layouts/provider-setup.tsx`, `apps/dashboard/src/@3rdweb-sdk/react/components/connect-wallet/index.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/NetworkSelector.tsx`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR introduces new error classes, updates routing, adds UI components, and refactors styles in the dashboard app.
### Detailed summary
- Added `FetchError` class for errors in API fetch requests
- Updated routing for ecosystem permissions
- Added new UI components for alerts, dropdown menus, and tabs
- Refactored global CSS styles for colors and backgrounds
- Updated ecosystem and partner types
- Refactored layout and input components
- Added hooks for fetching partners and ecosystem status
- Added pages for payment failure and ecosystem creation status
- Updated user authentication hook for better handling of connection status
> The following files were skipped due to too many changes: `apps/dashboard/src/@3rdweb-sdk/react/hooks/useLoggedInUser.ts`, `apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/hooks/use-ecosystem.ts`, `apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/hooks/use-ecosystem-list.ts`, `apps/dashboard/src/app/components/Header/DashboardHeader.tsx`, `apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/layout.tsx`, `apps/dashboard/src/app/(dashboard)/dashboard/components/sidebar/sidebar.client.tsx`, `apps/dashboard/src/@/components/ui/form.tsx`, `apps/dashboard/src/@/components/ui/ConfirmationDialog.tsx`, `apps/dashboard/src/app/components/DashboardFooter.tsx`, `apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/hooks/use-delete-partner.ts`, `apps/dashboard/src/@/components/ui/image-upload.tsx`, `apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/hooks/use-update-ecosystem.ts`, `apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/create/page.tsx`, `apps/dashboard/src/app/(dashboard)/(chain)/chainlist/components/server/chainlist-card.tsx`, `apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/create/hooks/use-create-ecosystem.ts`, `apps/dashboard/src/@/components/ui/radio-group.tsx`, `apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/hooks/use-add-partner.ts`, `apps/dashboard/src/app/(dashboard)/(chain)/chainlist/components/client/filters.tsx`, `apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/components/client/integration-permissions-toggle.client.tsx`, `apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/components/client/ecosystem-header.client.tsx`, `apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/page.tsx`, `apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/components/server/partners-table.tsx`, `apps/dashboard/src/@/components/ui/alert-dialog.tsx`, `apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/create/components/client/create-ecosystem-form.client.tsx`, `apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/components/client/add-partner-form.client.tsx`, `apps/dashboard/src/@/components/ui/dropdown-menu.tsx`, `pnpm-lock.yaml`
> ✨ 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 displaying ecosystem wallet branding in a wide modal layout.
### Detailed summary
- Display ecosystem wallet branding in wide modal layout
- Updated `EcosystemWalletFormUI.tsx` to show wallet header in all layouts
> ✨ 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 fixing issues related to the inApp wallet connection flow in the Compact size Connect UI.
### Detailed summary
- Fixed broken inApp wallet connection flow
- Added missing back button in inApp wallet connection flow
- Updated handling of going back to main screen in wallet UI components
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
## Problem solved
Use "http://" if localhost domain used for thirdweb Pay
<!-- start pr-codex -->
---
## PR-Codex overview
This PR adds support for using localhost as a domain override option for the Pay service.
### Detailed summary
- Added support for localhost as a domain override option for the Pay service in `definitions.ts`
- Updated all endpoint URLs to use the `getPayBaseUrl()` function instead of directly fetching the domain from `getThirdwebDomains().pay`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Corrected the import handling for CoinbaseWalletSDK in the coinbaseWebSDK.ts file.
### What changed?
The import statement for CoinbaseWalletSDK was modified to handle cases where the import does not return a default function directly.
### How to test?
- Verify the Coinbase wallet integration in the application.
- Ensure that different environments (e.g., development, production) can import and utilize the CoinbaseWalletSDK without errors.
### Why make this change?
This change ensures that the CoinbaseWalletSDK import is handled correctly, thereby preventing potential import errors that could occur in various environments.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR fixes coinbase wallet connections on Vite by addressing import errors related to `CoinbaseWalletSDK`.
### Detailed summary
- Fixed import error for `CoinbaseWalletSDK` on Vite
- Added workaround for Vite dev import issues
- Ensured proper initialization of `CoinbaseWalletSDK` to connect coinbase wallet
> ✨ 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 update the AnnouncementBanner component with a new link and label for the Onchain Olympics event, along with revised text content.
### Detailed summary
- Updated link `href` to "https://onchainolympics.com"
- Updated `label` to "onchain-olympics"
- Revised text content to promote the Onchain Olympics event and NFT minting.
> ✨ 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 the link in the sign-in page to direct users to the new "overview" section instead of the main sign-in page.
### Detailed summary
- Updated the link `href` in the sign-in page to navigate to the "overview" section instead of the main sign-in page.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
## Problem solved
Recommended wallets were being compared for object equality when sorting, which caused confusion when using inline `createWallet` to set the recommended wallets. This PR updates sorting to compare the recommended wallets by ID (installed providers already work this way)
This pull request updates package.json dependencies to specific versions across multiple packages, moving from using caret (^) to specific version numbers for consistency and to prevent unwanted updates. Additionally, it includes changes to various TypeScript files, primarily adding the ESLint directive `@typescript-eslint/no-unused-vars` to suppress warnings for unused variables.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR updates dependencies, adds styled components, and disables eslint for unused vars in various React components.
### Detailed summary
- Updated dependencies in multiple package.json files
- Added styled components for DialogContent, Overlay, DropContainer, QRPlaceholder, and more
- Disabled eslint for unused vars in React components
- Updated next.config.mjs in playground-web
- Updated pnpm-workspace.yaml
- Added eslint and styled components in wallets package.json
- Updated dependencies in wallet-ui package.json
> The following files were skipped due to too many changes: `apps/playground-web/src/components/blockchain-api/write-contract-extension.tsx`, `legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx`, `apps/playground-web/package.json`, `legacy_packages/react/package.json`, `apps/playground-web/src/components/blockchain-api/write-contract-raw.tsx`, `package.json`, `apps/dashboard/package.json`, `pnpm-lock.yaml`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
This pull request updates the function names and constants used in the deploy-modular-core.test.ts file. Specific changes include:
- Replacing `ADDRESS_ZERO` with `ZERO_ADDRESS` to align with existing codebase conventions.
- Changing `sendTransaction` to `sendAndConfirmTransaction` to include transaction confirmation within the test cases.
### TL;DR
Updated function names and constants in the deploy-modular-core.test.ts for better alignment with the codebase.
### What changed?
- Replaced `ADDRESS_ZERO` with `ZERO_ADDRESS`.
- Replaced `sendTransaction` with `sendAndConfirmTransaction`.
### How to test?
Run the updated tests in deploy-modular-core.test.ts to ensure all changes work as expected.
### Why make this change?
These changes improve the code readability and follow naming conventions already established in the codebase. By including transaction confirmation, the tests are more robust and reliable.
---
<!-- start pr-codex -->
## PR-Codex overview
This PR updates various dependencies across different packages to their latest versions.
### Detailed summary
- Updated `webpack` to `5.92.1`
- Updated `@types/node` to `20.14.9`
- Updated `@microsoft/api-documenter` to `^7.25.4`
- Updated `abitype` to `1.0.5`
- Updated `@babel/preset-react` to `^7.24.7`
- Updated `eslint-config-turbo` to `2.0.6`
- Updated `@typescript-eslint/eslint-plugin` to `7.14.1`
- Updated `viem` to `2.16.4`
- Updated various other dependencies across packages
> The following files were skipped due to too many changes: `apps/dashboard/package.json`, `packages/thirdweb/package.json`, `pnpm-lock.yaml`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR adds a new `unpin` function to `thirdweb` package for unpinning files from IPFS.
### Detailed summary
- Added `unpin` function to unpin files from IPFS in `thirdweb` package
- Defined `UnpinOptions` type for specifying client and CID
- Implemented unpin logic with error handling and authorization check
> ✨ 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 adding Thirdweb Wallet UI to the project, configuring Next.js, Tailwind CSS, and PostCSS, setting up Biome, and defining TypeScript settings.
### Detailed summary
- Added Thirdweb Wallet UI
- Configured Next.js, Tailwind CSS, and PostCSS
- Set up Biome configuration
- Defined TypeScript settings for Wallet UI
- Added global CSS styles for the app
- Updated dependencies and scripts in package.json
> ✨ 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 add a `CopyTextButton` component with copy functionality and icon positioning to enable copying text in various components.
### Detailed summary
- Added `CopyTextButton` component for copying text with icon positioning
- Implemented `CopyTextButton` in multiple files for copying chain IDs and addresses
- Updated components to include the new `CopyTextButton` for better user experience
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Corrected stylesheet imports for `swagger-ui.css` in the Engine Explorer component and added the Toaster component import in the _app.tsx.
### What changed?
- Added missing `swagger-ui.css` import in `engine-explorer.tsx`
- Removed duplicate `swagger-ui.css` import from `_app.tsx`
- Ensured Toaster component import in `_app.tsx`
### How to test?
- Verify UI for the Engine Explorer relies on the correct styles
- Ensure the Toaster component renders correctly without issues
### Why make this change?
To ensure the correct CSS styles are applied and to improve the maintainability of the import statements.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR adds `swagger-ui.css` to `engine-explorer.tsx` and removes it from `_app.tsx`.
### Detailed summary
- Added `swagger-ui.css` import to `engine-explorer.tsx`
- Removed `swagger-ui.css` import from `_app.tsx`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
This PR introduces new form components and integrates Sonner for toast notifications, along with various enhancements and fixes.
### What changed?
- Added new form components (`Form`, `FormField`, `FormLabel`, etc.) to the `ui` directory.
- Integrated `sonner` for toast notifications, adding a `Toaster` component.
- Migrated `pay.tsx` to the App Router and refactored its structure.
- Updated `DashboardHeader` and `DashboardLayout` for consistent spacing and padding.
- Refactored existing API key components and updated styles for better alignment and responsiveness.
- Fixed layout issues in `PayConfig` and other related components.
### How to test?
1. Navigate to the Dashboard and ensure the form components are rendering correctly.
2. Interact with forms and verify validation and error messages display as expected.
3. Trigger actions that would show toast notifications and ensure they are styled and positioned correctly.
4. Check the `PayConfig` and API key management sections for any UI regressions or inconsistencies.
### Why make this change?
- To enhance the user experience with improved form components and toast notifications.
- To maintain consistency in layout and design across the Dashboard.
- To address layout and spacing issues reported in the Pay section and other related components.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR updates the layout, components, and dependencies in the dashboard app.
### Detailed summary
- Updated layout styles in `layout.tsx` and `DashboardHeader.tsx`
- Added `Toaster` component in `layout.tsx`
- Updated `sonner` package to version `1.5.0`
- Refactored components in `ConnectWalletPrompt.tsx` and `NoApiKeys.tsx`
- Implemented a new `Toaster` component in `sonner.tsx`
- Added new components and refactored UI in `Menu.tsx` and `ApiKeys/NoApiKeys.tsx`
- Updated page structure in `connect/pay.tsx`
> The following files were skipped due to too many changes: `apps/dashboard/src/@/components/ui/form.tsx`, `apps/dashboard/src/components/pay/PayConfig.tsx`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
Adding thirdwebClient to createWalletConnectClient and fulfillRequest functions to ensure proper transaction execution through WalletConnect. This update includes a refactor of handleSendTransactionRequest to utilize the new client and various other related changes for consistency.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on fixing in-app wallet transaction execution via WalletConnect by introducing `thirdwebClient` and updating related functions.
### Detailed summary
- Introduced `thirdwebClient` to handle WalletConnect transactions
- Updated functions to include `thirdwebClient` parameter
- Added tests using `TEST_CLIENT` for `thirdwebClient` integration
> ✨ 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 fixing errors related to connecting with an open access ecosystem by updating permissions logic in the `in-app-account.ts` file.
### Detailed summary
- Updated permissions logic to include partnerId check for ecosystem connectivity.
> ✨ 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 fixing WalletConnect client disconnections and improving error handling.
### Detailed summary
- Added a delay in testing for WalletConnect client disconnections
- Updated the `onDisconnect` function in `WalletConnectReceiverScreen.tsx` to handle loading state and query invalidation
- Improved error handling in `wallet-connect/receiver/index.ts` by catching errors during disconnect
- Added a function to remove sessions in `disconnectWalletConnectSession`
- Updated `disconnectWalletConnectSession` to handle errors gracefully
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
This pull request introduces a minor update to the thirdweb library, specifically adding the feature to override transaction properties in the `mintTo` functions for ERC1155, ERC20, and ERC721 tokens. Additionally, it refines the ENS avatar resolution tests by removing an offchain record test that relies on a secret key, improving overall test reliability.
---
<!-- start pr-codex -->
## PR-Codex overview
This PR updates the dashboard layout and styling, adds Ecosystem Wallet features, and refactors navigation components.
### Detailed summary
- Added "Ecosystem Wallets" section to dashboard sidebar
- Updated button styles in UI components
- Implemented Ecosystem Wallet page with alerts and buttons
- Refactored navigation components for better usability
> The following files were skipped due to too many changes: `apps/dashboard/src/app/(dashboard)/dashboard/components/sidebar/sidebar.client.tsx`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
This pull request modifies the `transaction-store.ts` module by exporting the type `StoredTransaction`, making it available for external use.
### What changed?
- The type `StoredTransaction` was exported from `transaction-store.ts`
- Updated the export statement for `StoredTransaction` in `transaction.ts`
### How to test?
1. Ensure that the module `transaction-store.ts` exports the type `StoredTransaction`.
2. Verify that importing `StoredTransaction` from the module works correctly in another file.
### Why make this change?
This change was made to facilitate the external utilization of the `StoredTransaction` type.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to add a `StoredTransaction` type to the `thirdweb` package.
### Detailed summary
- Added `StoredTransaction` type to `transaction-store.ts`
- Exported `StoredTransaction` type in `transaction.ts`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
## Problem solved
Fix error: "Do not know how to serialize bigint" by casting bigint to number when used as a string.
<!-- start pr-codex -->
---
## PR-Codex overview
This PR updates the README file to provide instructions for starting a local dev server and modifies a query key in a TypeScript file for improved functionality.
### Detailed summary
- Updated README.md to include instructions for starting a local dev server
- Modified query key in contract-subscriptions-table.tsx for better functionality
> ✨ 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 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 -->
<!-- start pr-codex -->
## PR-Codex overview
This PR focuses on removing unused code related to payments, contracts, and webhooks in the dashboard app.
### Detailed summary
- Removed multiple GraphQL files, components, hooks, and pages related to payments, contracts, and webhooks
- Updated page IDs and routes
- Updated redirects for payments settings and contracts
- Updated usage interfaces and route configurations
- Updated dependencies and package.json
- Updated cache keys for payments and contracts
- Updated solutions pages and products, removed NFT-checkout references
> The following files were skipped due to too many changes: `apps/dashboard/src/pages/solutions/gaming.tsx`, `apps/dashboard/src/components/app-layouts/app.tsx`, `apps/dashboard/src/pages/dashboard/connect/pay.tsx`, `pnpm-lock.yaml`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
## Problem solved
- update usage tracker schema with pay fields
- - chainName: String
- - tokenSymbol: String
- - dstChainId: UInt64
- - dstTokenAddress: String
- - dstChainName: String
- - dstTokenSymbol: String
- - msLatency: UInt64
- - toAmountUSDCents: UInt64
- - secondaryProvider: String
- - onRampId: String
## Changes made
- [x] service-utils: Update usage tracker schema
## 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
This PR adds new fields to the `UsageEvent` schema in the `usage.ts` file of the `service-utils` package for Cloudflare worker usage tracking.
### Detailed summary
- Added `chainName`, `tokenSymbol`, `dstChainId`, `dstTokenAddress`, `dstChainName`, `dstTokenSymbol`, `msLatency`, `toAmountUSDCents`, `secondaryProvider`, and `onRampId` fields to `UsageEvent` schema.
> ✨ 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 add a file type validation feature to the IPFS upload dropzone component.
### Detailed summary
- Added `useToast` for error notifications.
- Implemented file type validation to restrict uploading of certain file types.
- Display error toast for restricted file types.
- Updated file handling logic in the dropzone component.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
This PR adds a section for testing changes in the React Native SDK to the contributing guidelines and updates the formatting of type versions in the `package.json` file.
### What changed?
1. **Contributing Guidelines**: Added detailed instructions for testing React Native changes by creating a local React Native project, linking local changes, and using tools like wml and watchman.
2. **Formatting in `package.json`**: Updated the formatting of type versions to a more compact and readable style.
### How to test?
1. Follow the newly added instructions in the contributing guidelines to create a local React Native project and test changes using wml and watchman.
2. Verify that the `package.json` file's type versions formatting is correct and does not affect the build process.
### Why make this change?
This change aims to provide clearer guidance for contributors who need to test React Native SDK changes and improve the readability of the `package.json` file.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to update the `package.json` file in the `thirdweb` package and provide detailed instructions for testing React Native changes.
### Detailed summary
- Updated the `typesVersions` configuration in `package.json`
- Added instructions for testing React Native changes locally
- Provided steps for setting up `wml` and `watchman` for monitoring changes
- Included guidance on linking the local SDK to a React Native project
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
https://linear.app/thirdweb/issue/CNCT-1398/ts-sdk-store-in-session-transactions-in-wallet
This update introduces the ability to track transactions during a "session" within the thirdweb SDK. The key additions and changes are:
1. Exporting `getSessionTransactions` from `transaction-store.js`.
2. Adding calls to `addTransactionToSession` in `send-gasless-transaction.ts` and `send-transaction.ts`.
3. Creating a new test file `transaction-store.test.ts` to cover the transaction session functionalities.
4. Including new constants in `settings.ts` specific to session storage keys.
5. Extending `LocalStorage` class functionalities to handle transaction session data.
These changes will act as the foundation of the v1 "transactions" page in the react SDK
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR adds a `getTransactionStore` function to retrieve transaction stores and updates transaction handling in the `sendTransaction` and `sendGaslessTransaction` actions.
### Detailed summary
- Added `getTransactionStore` function to retrieve transaction stores for addresses
- Updated `sendTransaction` action to store transactions
- Added `addTransactionToStore` function to update transaction stores
- Updated `sendGaslessTransaction` action to store gasless transactions
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
## Problem solved
Community Programs updates
## Changes made
- [ ] Updated messaging for startup program
- [ ] Added myCreativeOwl to Ambassadors
- [ ] Added Alfredo to Ambassadors
- [ ] Removed Kien from Ambassadors
- [ ] Removed Yash from Ambassadors
## How to test
- [ ] Startup program messaging should read "Our startup program is designed to help you build, scale, and generate revenue."
- [ ] Manual tests:
1) Scroll down to the footer
2) Click on Startup Program
3) See messaging on hero section
- [ ] Ambassador program updates
1) Scroll down to the footer
2) Click on Ambassadors
3) Scroll down to "Meet the Ambassadors"
4) Verify Kien and yash have been removed.
5) Verify Alfredo and myCreativeOwls have been added.
## Contributor NFT
Paste in your wallet address below and we will airdrop you a special NFT when your pull request is merged.
```0xc457BD51c599695333b0AE5320e9822DBc86E0e0 ```
<!-- start pr-codex -->
---
## PR-Codex overview
This PR updates the startup program description and ambassador profiles in the community pages.
### Detailed summary
- Updated startup program description for clarity and coherence.
- Changed ambassador names, Twitter handles, and profile images for consistency.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Refactor the `ConnectWallet` modal to clean up and streamline the code.
### What changed?
- Refactored the `ConnectModal`, `ConnectEmbed`, `WalletSelector`, `SmartWalletConnectUI`, `InAppWalletFormUI`, etc. to replace the nested `connectModal` props with flatter independent props.
- Improved prop handling using `useMemo` hooks for better performance.
- Cleaned up redundant imports and types.
### How to test?
1. Ensure all modals (`ConnectModal`, `ConnectEmbed`) render correctly with different sizes (compact/wide).
2. Verify functionality of Wallet Selector and Connect UI components across various scenarios e.g. different wallet types, sizes, and settings.
### Why make this change?
To improve the maintainability and readability of the code, making it easier to manage and extend in the future. It also optimizes prop handling for better performance.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on updating wallet connection modals and button sizes for different locales.
### Detailed summary
- Updated wallet connection modals and button sizes for multiple locales
- Removed unnecessary size property from ConnectModal
- Standardized size property across different components
- Improved consistency and clarity in wallet connection UI components
> The following files were skipped due to too many changes: `packages/thirdweb/src/react/web/wallets/shared/ConnectingScreen.tsx`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletSelectionUI.tsx`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/StartScreen.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectModal.tsx`, `packages/thirdweb/src/react/web/wallets/ecosystem/EcosystemWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/wallets/shared/WalletConnectConnection.tsx`, `packages/thirdweb/src/react/web/wallets/ecosystem/EcosystemWalletFormUI.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletFormUI.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectModalInline.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectModalContent.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/WalletSelector.tsx`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
This pull request aims to clean up the codebase by removing unused packages and files. The following tasks were carried out:
### What changed?
1. Deleted the `useWalletConnectionCtx.ts` file from the `thirdweb` package.
2. Deleted the `wallet-connection.tsx` file from the `thirdweb` package.
3. Updated `ConnectButton.tsx`, `AllWalletsUI.tsx`, `AnyWalletConnectUI.tsx`, `ConnectEmbed.tsx`, and other UI components to remove references to the deleted files.
4. Modified various other files in the `thirdweb` and `react` packages to ensure that no part of the codebase relies on the removed files.
### How to test?
1. Run the project and navigate through the UI to ensure that the wallet connection features are functioning as expected without any errors.
2. Check the console for any warnings or errors related to missing files or dependencies.
### Why make this change?
Removing unused packages and files helps to streamline the codebase, improving maintainability, and potentially reducing build times. This cleanup is part of ongoing efforts to ensure the codebase remains clean and efficient.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR refactors context usage in the connect wallet UI and updates locale types for in-app wallets.
### Detailed summary
- Refactored context usage in connect wallet UI
- Updated locale types for in-app wallets
- Renamed functions for better clarity
> The following files were skipped due to too many changes: `packages/thirdweb/src/react/web/wallets/shared/GetStartedScreen.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/InjectedConnectUI.tsx`, `packages/thirdweb/src/react/web/wallets/shared/CoinbaseSDKConnection.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/useConnectModal.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/ConnectButton.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletSelectionUI.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/AllWalletsUI.tsx`, `packages/thirdweb/src/react/web/wallets/ecosystem/EcosystemWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/wallets/shared/SocialLogin.tsx`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/wallets/ecosystem/EcosystemWalletFormUI.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/StartScreen.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectModal.tsx`, `packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx`, `packages/thirdweb/src/react/web/wallets/shared/OTPLoginUI.tsx`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletFormUI.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectModalInline.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/wallets/shared/WalletConnectConnection.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectModalContent.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/WalletSelector.tsx`
> ✨ 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
This PR removes the `onClick` event listener from a `FileInput` component in the dashboard app.
### Detailed summary
- Removed `onClick` event listener from `FileInput.tsx` component in the dashboard app.
> ✨ 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 the Unity SDK version to 4.16.5 and sets the platform accordingly.
### Detailed summary
- Updated Unity SDK version to 4.16.5
- Set X_SDK_PLATFORM to "unity"
- Updated X_SDK_VERSION to "4.16.5"
- Set X_SDK_OS to browser's OS or "unknown"
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Adds wallet connect functions to react native.
### What changed?
- Added `createWalletConnectClient`, `createWalletConnectSession`, `disconnectWalletConnectSession`, `getActiveWalletConnectSessions`, and `DefaultWalletConnectRequestHandlers` exports to `wallets.native.ts`
- Added type exports `WalletConnectClient` and `WalletConnectSession` to `wallets.native.ts`
### How to test?
1. Import the new functions and types in a React Native project.
2. Test creating, managing, and disconnecting WalletConnect sessions.
### Why make this change?
To provide WalletConnect support in the React Native SDK for better wallet management and interoperability.
---
<!-- start pr-codex -->
## PR-Codex overview
This PR focuses on fixing the EIP155 check for create2 factory deployment.
### Detailed summary
- Updated error handling logic in `any-evm-constants.ts` and `is-eip155-enforced.ts`
- Replaced `arr.some` with `forEach` loop for improved error checking efficiency
> ✨ 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 update TypeScript versions across multiple packages to `5.5.2` and adjust some configurations accordingly.
### Detailed summary
- Updated `typescript` to version `5.5.2` in multiple `package.json` files
- Adjusted `typescript.tsdk` setting in `vscode/settings.json`
- Modified function in `resolve-abi.ts` for explicit typing
> The following files were skipped due to too many changes: `packages/thirdweb/package.json`, `pnpm-lock.yaml`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
This pull request focuses on refactoring the engine navigation and sidebar integration in the dashboard app.
### What changed?
- Refactored the `EngineNavigation` component to replace the tab-based navigation with a sidebar-based navigation using `SidebarNav` from `core-ui`.
- Removed the old `EngineSidebar` component as it is no longer needed.
- Adjusted the `BasisPointsInput` component to fix ESLint issues.
- Updated various files to improve consistency and address minor code quality issues.
### How to test?
1. Navigate to the engine section of the dashboard.
2. Verify that the new sidebar navigation works as expected.
3. Test the `BasisPointsInput` component to ensure it is functioning correctly.
4. Run the codebase through a linting tool to ensure no new linting issues have been introduced.
### Why make this change?
This refactor aims to enhance the user experience by providing a more intuitive navigation system and to improve the maintainability of the code.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR enhances the sidebar navigation in the dashboard by adding `onClick` functionality to sidebar links and updating the engine navigation component.
### Detailed summary
- Added `onClick` functionality to sidebar links in the dashboard
- Updated the engine navigation component with new functionalities and optimizations
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
- Refactored and cleaned up the open graph image generation functions across multiple API routes.
- Fixed import paths and removed unused functions and dependencies.
- Addressed various TS and ESLint warnings/errors.
- Simplified BasisPointsInput component logic.
### What changed?
- Renamed `apps/dashboard/src/pages/api/og/chain/[chainId].tsx` to `apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/opengraph-image.tsx`.
- Removed unused `getAbsoluteUrl` import from `layout.tsx` file.
- Updated OG image generation approach, including the removal of outdated utility functions.
- Streamlined import and usage of environment variables.
- Made changes to `BasisPointsInput` component to avoid unnecessary re-renders and to simplify effect dependencies.
- Fixed IPFS gateway URLs formatting.
- Fixed minor formatting issues.
### How to test?
1. Open the dashboard and navigate to different chain-specific pages. Verify that OG images for each chain load without issues.
2. Check the `BasisPointsInput` component functionality in relevant parts of the application.
3. Run the tests and linters to ensure no broken functionality or warnings/errors.
### Why make this change?
- To maintain clean and readable code by removing unused imports, functions, and redundant dependencies.
- Improve performance and maintainability by simplifying component logic and variable usage.
- Ensure consistent and correctly formatted OG images across the application.
- Fix TS and ESLint issues detected during development.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to update IPFS gateway URLs and optimize image generation for OpenGraph images.
### Detailed summary
- Updated IPFS gateway URLs in multiple files
- Optimized image generation for OpenGraph images
- Removed unused imports and code
- Improved font loading for images
> ✨ 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 add a WalletConnect disconnect screen in the `thirdweb` package.
### Detailed summary
- Added a new component `WalletConnectDisconnectScreen`
- Updated `WalletConnectReceiverScreen` to handle disconnecting WalletConnect sessions
- Imported necessary dependencies and types
- Implemented disconnect functionality with error handling
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
The FileInput component has been updated to prevent event propagation when clicked, ensuring the click event does not trigger unintended parent component behavior, and to ensure the dropzone is always present -- fixing a bug with older versions of chrome and other chromium browsers.
### What changed?
- Added `onClick={(e) => e.stopPropagation()}` to the root stack holding the file input
- Moved the input element to the root stack and removed duplicated props `getRootProps` and `getInputProps`
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to refactor the `FileInput` component in the dashboard app for improved structure and functionality.
### Detailed summary
- Updated `FileInput` component structure for better readability
- Added `Stack` component for layout
- Enhanced event handling for better user experience
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
This pull request removes several unused packages and files to improve codebase cleanliness and reduce clutter.
### What changed?
- Removed the `airtable` package from `package.json` and `pnpm-lock.yaml`.
- Deleted `airtable.ts`, `check-verification-status.ts`, `etherscan-fetch.ts`, `verify.ts` from the `api` folder.
- Applied minor formatting changes across various source files for better consistency.
### How to test?
1. Pull the branch.
2. Run `pnpm install` to ensure no missing dependencies.
3. Run the application with `pnpm dev` to confirm it starts correctly.
4. Verify that the deleted endpoints are no longer accessible.
### Why make this change?
The removed packages and files were no longer in use, contributing to unnecessary bloat in the codebase. This change improves maintainability and reduces potential confusion for future developers.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR adds the `isProd` constant to dynamically switch between IPFS gateways based on the environment.
### Detailed summary
- Added `isProd` constant for dynamic IPFS gateway selection
- Updated IPFS gateway URL based on `isProd` constant in multiple files
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
This pull request removes several obsolete API routes and the associated Airtable package from the dashboard app.
### What changed?
- Removed Airtable package from `package.json` and `pnpm-lock.yaml`
- Deleted several unused API routes (`airtable.ts`, `check-verification-status.ts`, `etherscan-fetch.ts`, `verify.ts`)
- Minor codebase cleanup for consistent styling and formatting
### How to test?
Ensure the dashboard app builds and runs without any issues. Verify that removed API routes are no longer accessible.
### Why make this change?
These API routes and the Airtable package are no longer needed for the functionality of the dashboard app, and their removal simplifies the codebase.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to update dependencies, fix function parameters, and improve code consistency.
### Detailed summary
- Updated dependencies in `package.json`
- Fixed function parameter formatting in multiple files
- Improved code consistency by adjusting function calls and declarations
> ✨ 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
This PR updates formatting scripts to use `biome` instead of `prettier`.
### Detailed summary
- Updated formatting scripts in multiple package.json files
- Replaced `prettier` with `biome` for code formatting
- Minor code formatting changes in various files
> The following files were skipped due to too many changes: `legacy_packages/sdk/src/evm/common/any-evm-utils/deployCreate2Factory.ts`, `apps/dashboard/src/contract-ui/tabs/overview/components/LatestEvents.tsx`, `apps/dashboard/src/pages/[chain_id]/[...paths].tsx`, `legacy_packages/sdk/src/evm/core/classes/contract-roles.ts`, `legacy_packages/sdk/src/core/schema/properties.ts`, `legacy_packages/wallets/src/evm/connectors/blocto/index.ts`, `legacy_packages/sdk/src/evm/common/any-evm-utils/getCreate2FactoryAddress.ts`, `legacy_packages/sdk/src/evm/core/classes/erc-20.ts`, `legacy_packages/react/src/payments/additional.d.ts`, `legacy_packages/sdk/src/evm/core/classes/internal/marketplace/marketplace-auction.ts`, `legacy_packages/react-core/src/evm/hooks/async/roles.ts`, `legacy_packages/react/src/wallet/ConnectWallet/screens/Buy/swap/pendingSwapTx.ts`, `legacy_packages/sdk/src/evm/core/classes/erc-721.ts`, `legacy_packages/sdk/src/evm/common/any-evm-utils/getCreate2FactoryDeploymentInfo.ts`, `legacy_packages/sdk/src/evm/common/claim-conditions/processClaimConditionInputs.ts`, `legacy_packages/sdk/src/evm/core/classes/erc-1155.ts`, `legacy_packages/sdk/src/evm/integrations/thirdweb-checkout.ts`, `legacy_packages/sdk/src/evm/core/classes/contract-royalty.ts`, `legacy_packages/wallets/src/evm/wallets/abstract.ts`, `legacy_packages/auth/src/next/router-pages/types/index.ts`, `apps/dashboard/src/contract-ui/tabs/events/components/events-feed.tsx`, `legacy_packages/wallets/src/evm/connectors/smart-wallet/lib/erc4337-provider.ts`, `legacy_packages/merkletree/src/merkletree/MerkleTree.ts`, `legacy_packages/sdk/src/evm/core/classes/internal/erc1155/erc-1155-standard.ts`, `legacy_packages/sdk/src/evm/core/classes/extension-manager.ts`, `legacy_packages/cli/src/core/types/sync-disk-cache.d.ts`, `legacy_packages/auth/src/next/router-app/routes/switch-account.ts`, `legacy_packages/sdk/src/evm/contracts/prebuilt-implementations/pack.ts`, `legacy_packages/auth/src/next/index.ts`, `legacy_packages/react/src/wallet/ConnectWallet/screens/Buy/PaymentSelection.tsx`, `legacy_packages/react/src/components/modalElements.tsx`, `legacy_packages/wallets/src/evm/connectors/gcp-kms/signer.ts`, `legacy_packages/auth/src/next/router-app/routes/login.ts`, `legacy_packages/auth/src/next/router-app/types/index.ts`, `legacy_packages/sdk/src/evm/core/classes/internal/contract-wrapper.ts`, `legacy_packages/sdk/src/evm/core/classes/marketplacev3-english-auction.ts`, `legacy_packages/wallets/src/evm/index.ts`, `legacy_packages/react/src/wallet/ConnectWallet/screens/SwapTransactionsScreen.tsx`, `legacy_packages/cli/src/generate/command.ts`, `legacy_packages/sdk/src/evm/core/classes/marketplacev3-direct-listings.ts`, `legacy_packages/wallets/src/evm/wallets/aws-kms.ts`, `legacy_packages/wallets/src/evm/connectors/wallet-connect/qrModalOptions.d.ts`, `apps/dashboard/src/pages/api/og/chain/[chainId].tsx`, `legacy_packages/react/src/wallet/wallets/embeddedWallet/ExportPrivateKey.tsx`, `apps/dashboard/src/pages/api/og/contract.tsx`, `legacy_packages/sdk/src/evm/common/modular/compatibleExtensions.ts`, `legacy_packages/crypto/src/utils/uint8array-extras.d.ts`, `apps/dashboard/src/pages/api/og/profile.tsx`, `apps/dashboard/src/pages/api/og/publishedContract.tsx`, `legacy_packages/react/src/wallet/wallets/magicEden/magicEdenWallet.tsx`, `apps/dashboard/src/graphql/generated.ts`
> ✨ 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 adding the ability to override contract names with custom IDs in the CLI.
### Detailed summary
- Added option `--customid` to CLI for overriding contract names
- Added prompt for entering custom contract IDs
- Updated contract names based on user input
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
This PR adds a new wallet type called `ecosystemWallet` to the thirdweb SDK.
### TL;DR
- New `ecosystemWallet` added to `thirdweb` SDK.
### What changed?
- `wallets.ts`: Added new export for `ecosystemWallet`
- `ConnectButtonProps.ts`: Adjusted types to account for new wallet.
- `create-wallet.ts`: Added new case for handling `ecosystemWallet` in the `createWallet` function.
- `types.ts`: Defined new types for `ecosystemWallet`.
- Updated various internal files to integrate `ecosystemWallet` functionality.
### How to test?
- Ensure the `ecosystemWallet` can be created and connected using different account types (smart account, direct connection, etc.)
- Test the new `integratorId` feature, which allows integration with a designated ecosystem.
- Validate that autoConnect functionality works as expected with `ecosystemWallet`.
### Why make this change?
This change aims to facilitate the integration of third-party ecosystem wallets into the thirdweb SDK, improving the overall flexibility and usability of the SDK for different blockchain ecosystems.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR introduces a minor update to `thirdweb` by adding ecosystem wallet UI and integrating ecosystemWallet to TS SDK.
### Detailed summary
- Added ecosystem wallet UI
- Integrated ecosystemWallet to TS SDK
- Updated wallet details for various platforms
- Refactored wallet locale types
- Improved wallet connection handling
- Added ecosystem partner permissions functionality
> The following files were skipped due to too many changes: `packages/thirdweb/src/wallets/ecosystem/is-ecosystem-wallet.ts`, `packages/thirdweb/src/wallets/__generated__/wallet/com.payperless/index.ts`, `packages/thirdweb/src/wallets/in-app/web/lib/auth/base-login.ts`, `packages/thirdweb/src/wallets/__generated__/wallet/fun.tobi/index.ts`, `apps/playground-web/src/components/code/code-example.tsx`, `packages/thirdweb/src/wallets/in-app/core/wallet/types.ts`, `packages/thirdweb/src/react/web/ui/components/WalletImage.tsx`, `packages/thirdweb/src/react/web/wallets/in-app/useInAppWalletLocale.ts`, `packages/thirdweb/scripts/wallets/generate.ts`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/ManageWalletScreen.tsx`, `packages/thirdweb/src/wallets/__generated__/wallet/com.safemoon/index.ts`, `packages/thirdweb/src/wallets/__generated__/wallet-ids.ts`, `packages/thirdweb/src/wallets/ecosystem/is-ecosystem-wallet.test.ts`, `packages/thirdweb/src/wallets/in-app/core/wallet/in-app-core.ts`, `packages/thirdweb/src/wallets/in-app/web/types.ts`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletSelectionUI.tsx`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletSocialLogin.tsx`, `packages/thirdweb/src/wallets/in-app/web/lib/auth/abstract-login.ts`, `packages/thirdweb/src/react/web/wallets/ecosystem/EcosystemWalletHeader.tsx`, `packages/thirdweb/src/wallets/ecosystem/get-ecosystem-wallet-info.test.ts`, `packages/thirdweb/src/wallets/in-app/core/authentication/type.ts`, `packages/thirdweb/src/wallets/native/create-wallet.ts`, `packages/thirdweb/src/wallets/__generated__/wallet/app.clot/image.ts`, `packages/thirdweb/src/wallets/__generated__/wallet/co.lifedefi/image.ts`, `packages/thirdweb/src/utils/fetch.ts`, `packages/thirdweb/src/wallets/__generated__/wallet-infos.ts`, `packages/thirdweb/src/wallets/in-app/web/utils/iFrameCommunication/IframeCommunicator.ts`, `packages/thirdweb/src/wallets/ecosystem/get-ecosystem-wallet-info.ts`, `packages/thirdweb/src/wallets/in-app/web/lib/auth/iframe-auth.ts`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/PrivateKey.tsx`, `packages/thirdweb/src/wallets/in-app/web/ecosystem.ts`, `packages/thirdweb/src/wallets/in-app/web/lib/auth/index.ts`, `packages/thirdweb/src/wallets/wallet-types.ts`, `packages/thirdweb/src/wallets/create-wallet.ts`, `packages/thirdweb/src/wallets/in-app/core/constants/settings.ts`, `packages/thirdweb/src/wallets/__generated__/wallet/fun.tobi/image.ts`, `packages/thirdweb/src/react/web/utils/usePreloadWalletProviders.ts`, `packages/thirdweb/src/wallets/in-app/web/utils/iFrameCommunication/InAppWalletIframeCommunicator.ts`, `packages/thirdweb/src/react/web/wallets/ecosystem/EcosystemWalletFormUI.tsx`, `packages/thirdweb/src/react/web/wallets/ecosystem/EcosystemWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletPassKeyLogin.tsx`, `packages/thirdweb/src/wallets/__generated__/wallet/me.komet/image.ts`, `packages/thirdweb/src/wallets/in-app/core/wallet/index.ts`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.tsx`, `packages/thirdweb/src/wallets/in-app/core/wallet/ecosystem-core.ts`, `packages/thirdweb/src/wallets/__generated__/wallet/com.payperless/image.ts`, `packages/thirdweb/src/wallets/in-app/web/lib/web-connector.ts`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletOTPLoginUI.tsx`, `packages/thirdweb/src/wallets/in-app/web/lib/in-app-account.ts`, `packages/thirdweb/src/wallets/in-app/web/utils/Storage/LocalStorage.ts`, `packages/thirdweb/src/wallets/in-app/web/lib/auth/passkeys.ts`, `packages/thirdweb/src/wallets/__generated__/getWalletInfo.ts`, `packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx`, `packages/thirdweb/src/wallets/__generated__/wallet/xyz.bonuz/image.ts`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletFormUI.tsx`, `pnpm-lock.yaml`
> ✨ 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 `uploadMobile` function in the `thirdweb` package to properly handle the `bundleId` parameter.
### Detailed summary
- Updated `UploadFile` type in `types.ts` to include a generic object
- Modified `uploadMobile` function in `uploadMobile.ts` to handle options parameter correctly
- Refactored `uploadBatchMobile` function in `mobile.ts` to use `getClientFetch` for fetching
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### Main issue
StyledComponents come with their own `theme` prop, overriding our own `theme` prop. So instead of trying to use the `theme` prop in our Button component, always use the `CustomThemeProvider` one.
### TL;DR
This PR introduces a change to ensure that the `CustomThemeProvider` and related components respect an undefined `theme` prop. This is achieved by removing the default fallback to the `dark` theme when the `theme` prop is not provided.
### What changed?
- Updated `CustomThemeProvider` to accept `undefined` as a valid `theme` value.
- Modified components that use `CustomThemeProvider` to pass the `theme` prop directly without defaulting to `dark`.
- Replaced direct import and usage of `parseTheme` in `TransactionButton` with wrapping the button in `CustomThemeProvider`.
- Removed unnecessary imports and streamlined theme handling in the `Button` component to utilize `useCustomTheme`.
- Updated `dev:dashboard` script to also filter `./packages/thirdweb`.
### How to test?
- Verify the application operates correctly when the `theme` prop is explicitly set to `undefined` or not provided.
- Ensure all components render with the default theme correctly without any regressions.
### Why make this change?
This change ensures more flexible theme handling in the application and reduces the assumption that a `dark` theme should always be the fallback. This is particularly useful for dynamic theming use cases where the theme might not always be determinable upfront.
---
<!-- start pr-codex -->
## PR-Codex overview
This PR renames 'Properties' to 'Attributes' in the dashboard UI components for consistency and clarity.
### Detailed summary
- Renamed 'Properties' to 'Attributes' in dashboard UI components for consistency.
- Updated labels and headings in multiple files to reflect the change.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR refactors error messages and exports for better readability in the Wallet Connect module.
### Detailed summary
- Refactored error messages in Wallet Connect module for clarity.
- Updated exports for Wallet Connect client and session.
- Modified handling of session proposal and request errors.
- Improved error handling in session request fulfillment.
- Updated dependencies and imports for better organization.
> The following files were skipped due to too many changes: `packages/thirdweb/src/wallets/wallet-connect/receiver/session-request.test.ts`, `packages/thirdweb/src/wallets/wallet-connect/receiver/index.ts`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Updated the in-app wallet's `signMessage` function to properly handle different message formats. The function now decodes a message from a string, a `Uint8Array`, or a hex format into a string before signing.
### What changed?
- Imported `uint8ArrayToString` and `hexToString` utilities.
- Updated the `signMessage` method to decode messages from multiple formats (string, `Uint8Array`, and hex).
- Adjusted the type annotations and added in-line comments for clarity.
### How to test?
1. Attempt to sign a message with the in-app wallet using different message formats.
2. Verify that the message is correctly signed in each case without errors.
### Why make this change?
This update ensures that the in-app wallet can handle and correctly process various message formats, improving interoperability and user experience.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on fixing hex-based signatures for in-app wallets by ensuring messages are properly decoded before signing.
### Detailed summary
- Fixed hex-based signatures for in-app wallets
- Added `uint8ArrayToString` import
- Updated `signMessage` method to handle different message types
- Ensured `message` parameter is always passed as a string for signing
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Fixes an issue where NFT image updates were not being applied if there was no existing image.
### What changed?
- Modified the `mint-form.tsx` to only disable the submit button if the form is not dirty and the image URL has not changed.
### How to test?
1. Open the mint form for an NFT without an existing image.
2. Attempt to update the image.
3. Ensure the submit button is enabled and the image update is successful.
### Why make this change?
This change ensures that users can update the image for NFTs that do not have an existing image without unnecessary restrictions.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on fixing NFT image updates when no existing image is present.
### Detailed summary
- Updated `mint-form.tsx` to disable submit button only when form is dirty and image URL is the same as existing NFT image.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR adds test cases for ERC721 minting and ERC1155 claiming extensions in the Thirdweb project.
### Detailed summary
- Added test cases for ERC721 `mintTo` extension
- Added test cases for ERC1155 `claimTo` extension
- Imported necessary functions and constants for testing
> ✨ 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 the method signature in `read-contract.ts` and adds an event filter in `useContractEvents.ts`.
### Detailed summary
- Updated method signature in `read-contract.ts` to include full function signature
- Added event filter for `tokensClaimedEvent` in `useContractEvents.ts`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
This pull request updates the CI configuration and removes the merge group workflow triggers.
### What changed?
- Added new CI configuration file `.github/workflows/CI.yml` with enhanced jobs for building, linting, testing, and benchmarking.
- Removed merge group workflow triggers from the legacy CI file `.github/workflows/CI_legacy.yml`.
### How to test?
- Verify that the new CI workflow runs successfully on push and pull request events.
- Ensure all jobs (build, lint, test, e2e, benchmark, size) complete without errors.
- Check that merge group workflow triggers are no longer present in the legacy CI configuration.
### Why make this change?
This change aims to improve the CI process by adding more comprehensive job steps, including concurrency control and better separation of tasks. Removing the merge group triggers from the legacy CI helps to declutter and refine the workflow definitions.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR updates the GitHub Actions workflow to enhance CI with new jobs, tests, and environment variables.
### Detailed summary
- Replaced legacy CI workflow with a new comprehensive CI workflow
- Added jobs for linting, testing, E2E testing, benchmarks, and bundle size reporting
- Updated triggers for push, pull requests, and workflow dispatch
- Added concurrency settings and environment variables
- Enhanced E2E testing with multiple package managers and bundlers
- Improved code coverage reporting with Codecov
- Enabled remote caching for faster workflows
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
The PR primarily focuses on updating the versions of several npm dependencies, notably React, React-DOM, and Zod, ensuring compatibility with their latest major versions. Additionally, various code enhancements were made for better TypeScript type usage, specifically replacing manual type declarations with more precise React types. Unnecessary imports and redundant code blocks were removed to streamline the codebase.
### TL;DR
Updated package versions for React, React-DOM, and Zod, improved TypeScript type safety, and cleaned up the codebase.
### What changed?
- Updated React and React-DOM versions from specific sub-versions to any version within major version 18.
- Changed Zod versioning from specific sub-versions to any version within major version 3.
- Replaced manual React type declarations with standard React types for components and props.
- Removed unnecessary imports and redundant type definitions.
- Updated the `pnpm-lock.yaml` file accordingly.
### How to test?
1. Run `pnpm install` to update the dependencies to their latest versions.
2. Run the test suite to ensure all unit tests pass with the new versions.
3. Manually test the application to verify that no runtime issues occur due to these dependency upgrades.
4. Pay special attention to areas that heavily rely on React types and Zod schemas.
### Why make this change?
To ensure the codebase remains up-to-date with the latest versions of crucial libraries and to improve overall type safety and code quality.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR updates package versions, switches linter settings, and refactors type imports in various files.
### Detailed summary
- Updated linter settings to disable `enabled` flag in `biome.json`
- Updated package versions in multiple `package.json` files
- Refactored type imports in various files to use `^18` version for `@types/react`
> The following files were skipped due to too many changes: `pnpm-lock.yaml`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
This pull request introduces the `watchAsset` functionality to the injected wallets in the thirdweb package.
### What changed?
A new method `watchAsset` is added to the `createAccount` function and `Account` type. This method allows users to add an ERC-20 asset to their wallet's watchlist.
### How to test?
1. Create an account using the `createAccount` function.
2. Call the `watchAsset` method with appropriate parameters to watch an ERC-20 asset.
3. Verify if the asset is added to the wallet's watchlist.
### Why make this change?
This change is made to enhance the functionality of the injected wallets by allowing users to easily add ERC-20 assets to their watchlist, improving the user experience and making asset management more convenient.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to add `watchAsset` support in injected wallet accounts.
### Detailed summary
- Added `watchAsset` method in injected wallet accounts
- Defined `WatchAssetParams` type for asset watching
- Provided example usage for `watchAsset` method
> ✨ 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 various dependencies across the project, including `@apollo/client`, `@thirdweb-dev/react`, `@thirdweb-dev/sdk`, `@thirdweb-dev/wallets`, `graphql`, and `@typescript-eslint/parser`.
### Detailed summary
- Updated `@apollo/client` to version `3.10.5`
- Updated `@thirdweb-dev/react` to version `4.9.4`
- Updated `@thirdweb-dev/react-core` to version `4.9.4`
- Updated `@thirdweb-dev/sdk` to version `4.0.99`
- Updated `@thirdweb-dev/wallets` to version `2.5.39`
- Updated `graphql` to version `16.8.2`
- Updated `@typescript-eslint/parser` to version `7.13.1`
> The following files were skipped due to too many changes: `pnpm-lock.yaml`
> ✨ 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 add a `SyncTheme` component to keep the theme in sync with `useTheme` in the `TailwindTheme` function.
### Detailed summary
- Added `SyncTheme` component to sync theme with `useTheme`
- Utilized `useEffect` to update theme based on `colorMode`
- Set initial theme based on `colorMode`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
Allows use of chains not explicitly specified on the connecting app but specified by the receiver.
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to enhance the Wallet Connect feature by adding support for custom chains and improving session handling.
### Detailed summary
- Added support for custom chains in Wallet Connect feature.
- Enhanced session handling with custom chains in session proposals.
- Updated session proposal tests to include custom chains.
- Improved chain handling in session proposal functions.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR enhances the WalletConnect functionality by adding support for switching Ethereum chains and adding new chains.
### Detailed summary
- Updated `sign.ts` to include raw message in `account.signMessage`
- Added `checksumAddress` validation in `validateAccountAddress`
- Implemented `handleSwitchChain` for switching Ethereum chains
- Added support for `wallet_addEthereumChain` and `wallet_switchEthereumChain` requests
- Updated types and interfaces for wallet interactions
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Implemented a caching mechanism for WalletConnect clients to improve performance and added error messaging for failed connections.
### What changed?
- Introduced a caching mechanism for WalletConnect clients using a WeakMap to store instances.
- Removed redundant console.log error message in WalletConnectReceiverScreen.tsx.
- Updated disconnect message to "Disconnected".
### How to test?
1. Trigger multiple WalletConnect sessions and ensure that the client is retrieved from the cache after the initial creation.
2. Test error handling by forcing a connection failure and verifying that the error message is set correctly.
3. Disconnect a WalletConnect session and ensure the disconnect message is accurate.
### Why make this change?
This change enhances the performance by reducing redundant WalletConnect client creations and improves the clarity of error and disconnect messages.
<!-- start pr-codex -->
---
## PR-Codex overview
This PR optimizes WalletConnect client caching and error handling.
### Detailed summary
- Added caching mechanism for WalletConnect clients
- Improved error message handling during connection establishment
- Updated disconnect message to "Disconnected"
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
Replace usage of WalletIcon with new and more specific wallet and coin icons. New icons include GenericWalletIcon, OutlineWalletIcon, and CoinsIcon.
<!-- start pr-codex -->
---
## PR-Codex overview
This PR updates the Connect Modal icons in the `thirdweb` package.
### Detailed summary
- Renamed `WalletIcon` component to `GenericWalletIcon`
- Added new `CoinsIcon` component
- Added `OutlineWalletIcon` component
- Updated icon imports in various files
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Simplified the `ConnectWallet` modal by removing unused icons/components and migrate `wallet-connect` functionalities to receiver.
### What changed?
- Updated wallet-connect imports to use the `receiver` directory instead of the `consumer` directory.
- Removed unused icons and components (`ShuffleIcon`, `KeyIcon`, `SwitchMetamaskAccount`, etc.) from `Details.tsx`.
- Added new `ManageWalletScreen` and `WalletConnectReceiverScreen` components.
- Refactored `MenuButton` into a separate component file.
### How to test?
1. Open the `ConnectWallet` modal.
2. Ensure that the removed components are no longer present in the UI.
3. Test Manage Wallet functionalities by navigating to the new `ManageWalletScreen` and `WalletConnectReceiverScreen`.
4. Verify that wallet-connect functionalities work seamlessly after the migration.
### Why make this change?
To streamline the UI by removing redundant elements and improving the organization of wallet-connect functionalities.
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to refactor the wallet connect functionality, introduce new screens, and improve UI components.
### Detailed summary
- Added new `WalletDetailsModalScreen` options
- Updated imports for wallet connect files
- Modified UI components for better user experience
- Introduced new icons and screens for wallet management
> The following files were skipped due to too many changes: `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/ManageWalletScreen.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/WalletConnectReceiverScreen.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Details.tsx`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR adds an `updateMetadata` extension for Edition Drop (DropERC1155).
### Detailed summary
- Added `updateMetadata` extension for DropERC1155
- Updated generated files for BatchMetadataUpdate event
- Added functions for decoding and calling `getBaseURICount`
- Implemented logic for updating metadata in ERC1155 collections
> The following files were skipped due to too many changes: `packages/thirdweb/src/extensions/erc1155/drops/write/updateMetadata.test.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts`, `packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts`
> ✨ 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 fixing the mobile Wallet Connect connection flow by ensuring the correct display of the QR modal and wallet information.
### Detailed summary
- Updated condition to show QR modal based on session request handler
- Added check to exclude Wallet Connect wallet from default session handler usage
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
This pull request removes support for the verification of chains across the dashboard layouts and chain list components.
### What changed?
- Deleted all instances of the `VerifiedIcon` and its corresponding logic from the dashboard layout and chain list components.
### How to test?
1. Navigate to the dashboard layout.
2. Ensure no verified badge or icon appears for any chain.
3. Check the chain list components to confirm they no longer display the verified icon or associated logic.
### Why make this change?
This change simplifies the UI by removing the verified chain feature, which is no longer in use.
---
<!-- start pr-codex -->
## PR-Codex overview
The focus of this PR is to remove the `VerifiedIcon` component and related logic from chain-related components.
### Detailed summary
- Removed `VerifiedIcon` component import and references from `layout.tsx`, `chainlist-row.tsx`, and `chainlist-card.tsx`
- Updated conditional rendering logic related to `VerifiedIcon` in `chainlist-row.tsx` and `chainlist-card.tsx`
> ✨ 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 a React warning and layout shift issue when clicking the copy address button.
### Detailed summary
- Introduces a `showCheckIcon` variable to handle showing the check icon conditionally based on `hasCopied` state
- Updates the rendering logic inside the `CopyIcon` component to address the React warning and layout shift issue
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
This PR filters out HTML files from being uploaded via the IPFS upload dropzone component. This ensures users cannot upload HTML files by mistake or with malicious intent.
### What changed?
- Updated the `onDrop` method in `IpfsUploadDropzone` component to filter out `.html` files.
### How to test?
1. Go to the IPFS upload dropzone component.
2. Attempt to upload a mix of file types, including `.html` files.
3. Verify that `.html` files are not accepted.
### Why make this change?
This change prevents potential security risks and enhances the robustness of the file upload feature.
---
<!-- start pr-codex -->
## PR-Codex overview
This PR enhances the `onDrop` functionality in `dropzone.tsx` by filtering out files with the type "text/html".
### Detailed summary
- Updated `onDrop` function to filter out files with type "text/html" before adding to dropped files list.
> ✨ 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 update variable names and improve consistency in the ConnectWallet component props.
### Detailed summary
- Renamed `chainId` variable to `activeChain` for clarity
- Updated `button` prop to `connectButton` for consistency
- Added examples and documentation for `style` and `displayBalanceToken` props
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Update AnnouncementBanner to reflect the acquisition of Blocktorch by thirdweb, including new link, label, and announcement text.
### What changed?
- Modified `useLocalStorage` key from `dismissed-thirdweb-pay` to `dismissed-blocktorch-announcement`.
- Updated the link in `TrackedLink` from `pay-demo.thirdweb.com` to the blog post regarding the acquisition of Blocktorch: `blog.thirdweb.com/welcoming-blocktorch/`.
- Changed the label in `TrackedLink` from `thirdweb-pay` to `blocktorch`.
- Added `isExternal` attribute to `TrackedLink`.
- Revised the announcement text from "Introducing thirdweb Pay" to "thirdweb acquires Blocktorch, a leading web3 observability platform."
### How to test?
- Verify that the AnnouncementBanner displays the new text regarding the Blocktorch acquisition.
- Check that clicking the link directs to the Blocktorch acquisition blog post.
- Ensure that the local storage key is correctly updated to `dismissed-blocktorch-announcement`.
### Why make this change?
To inform users about the recent acquisition of Blocktorch by thirdweb and update the relevant link, label, and text in the AnnouncementBanner to reflect this update.
---
<!-- start pr-codex -->
## PR-Codex overview
The focus of this PR is to update the AnnouncementBanner component with new content and links related to the acquisition of Blocktorch by thirdweb.
### Detailed summary
- Updated `useLocalStorage` key to `"dismissed-blocktorch-announcement"`
- Changed announcement link to `"https://blog.thirdweb.com/welcoming-blocktorch/"`
- Updated `label` to `"blocktorch"`
- Added `isExternal` to TrackedLink
- Modified announcement content to reflect Blocktorch acquisition by thirdweb
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Added overrides for older versions of the `ws` package to ensure proper compatibility and fix potential issues. Updated versions in both `package.json` and `pnpm-lock.yaml`.
### What changed?
- `package.json` updated with additional dependency overrides for `ws` versions:
- `ws@>=7.0.0 <7.5.10`: `7.5.10`
- `ws@>=6.0.0 <6.2.3`: `6.2.3`
- Corresponding updates in `pnpm-lock.yaml` to reflect the new versions:
- Updated multiple entries of `ws` to version `7.5.10`
- Updated multiple entries of `ws` to version `6.2.3`
### How to test?
1. Run `pnpm install` to ensure all dependencies are installed correctly.
2. Check the project for any compatibility issues or warnings related to the `ws` package.
3. Run existing tests to confirm no breaking changes.
### Why make this change?
To maintain compatibility with various versions of `ws` package and fix any potential vulnerabilities or compatibility issues that might arise due to mismatched versions in different parts of the project.
### TL;DR
This pull request updates the `ws` package to version 8.17.1 in the `package.json` and `pnpm-lock.yaml` files.
### What changed?
- `package.json`: Updated `ws` package from various older versions to 8.17.1.
- `pnpm-lock.yaml`: Synchronized lock file with the new version of `ws` package.
### How to test?
1. Run `pnpm install` to update dependencies.
2. Check if the application builds and runs without errors after the update.
3. Run the test suite to ensure no tests are broken by this change.
### Why make this change?
To ensure compatibility and security by using the latest version of the `ws` package.
### TL;DR
Removed the `lottie` animation support in the `LandingHero` component.
### What changed?
- Deleted the `lottie` property from the `LandingHeroProps` interface.
- Removed `lottie` from the `LandingHero` component's destructured props.
- Deleted the `Flex` container that previously contained the `LandingDesktopMobileImage` with the `lottie` prop.
### How to test?
1. Verify that the `LandingHero` component no longer expects or handles the `lottie` prop.
2. Ensure that there are no visual or functional regressions in the `LandingHero` component on various pages where it is used.
### Why make this change?
The `lottie` animation support was deemed unnecessary and has been removed to streamline the component's implementation and reduce complexity.
---
<!-- start pr-codex -->
## PR-Codex overview
The focus of this PR is to remove the `lottie` prop from the `LandingHero` component in `hero.tsx`.
### Detailed summary
- Removed the `lottie` prop from `LandingHero` component
- Adjusted component structure to accommodate the removal
> ✨ 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 the `PricingCard` component in the homepage section with improved styles for better visibility and user interaction.
### Detailed summary
- Updated flex direction to column layout
- Adjusted padding for different screen sizes
- Set height to full
- Increased z-index for layering
- Changed background color based on `highlighted` prop
- Modified border color based on `current` prop
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
- Added `isDeprecated` flag to route configurations in `useRouteConfig`.
- Displayed deprecation alert in `ContractPaymentsPage`.
- Updated imports in `page.tsx` to include `Alert`, `AlertDescription`, `AlertIcon`, and `Link`.
- Added deprecation badge to navigation links in `detail-page.tsx`.
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to deprecate certain features and provide migration guidance for contract payments.
### Detailed summary
- Deprecated `isDeprecated` flag added to components and tabs
- Deprecated status displayed in UI elements
- Added `DeprecatedTab` component with migration guidance
- Updated imports in `page.tsx` for Chakra UI components and `tw-components`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
[//]: # (dependabot-start)
⚠️ **Dependabot is rebasing this PR** ⚠️
Rebasing might not happen immediately, so don't worry if this takes some time.
Note: if you make any changes to this PR yourself, they will take precedence over the rebase.
---
[//]: # (dependabot-end)
Bumps [eslint-plugin-tsdoc](https://github.com/microsoft/tsdoc/tree/HEAD/eslint-plugin) from 0.2.17 to 0.3.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/microsoft/tsdoc/blob/main/eslint-plugin/CHANGELOG.md">eslint-plugin-tsdoc's changelog</a>.</em></p>
<blockquote>
<h2>0.3.0</h2>
<p>Tue, 28 May 2024 21:34:19 GMT</p>
<h3>Minor changes</h3>
<ul>
<li>Minor package cleanup.</li>
</ul>
<h3>Patches</h3>
<ul>
<li>Upgrade dev toolchain (Heft, Webpack, TypeScript, ESLint)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/microsoft/tsdoc/commits/eslint-plugin-tsdoc_v0.3.0/eslint-plugin">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to update the `eslint-plugin-tsdoc` dependency across multiple packages to version `0.3.0`.
### Detailed summary
- Updated `eslint-plugin-tsdoc` to version `0.3.0` in multiple package.json files
- Updated `eslint-plugin-tsdoc` to version `0.3.0` in pnpm-lock.yaml
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
This PR updates the `isThirdwebUrl` function to properly handle the `localhost` hostname in the development environment.
### What changed?
- Added a check to see if `process.env.NODE_ENV` is set to `development`
- If in development, it checks if the hostname is `localhost` and treats it as a Thirdweb URL
### How to test?
- Ensure the application runs in both development and production environments
- In development, verify URLs with `localhost` return `true` for `isThirdwebUrl`
- In production, verify URLs with `localhost` return `false` for `isThirdwebUrl`
### Why make this change?
This change was made to correctly classify `localhost` as a Thirdweb URL when running in a development environment, allowing for better development workflow and environment parity.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to exclude localhost from being considered a thirdweb URL, except in development mode.
### Detailed summary
- Excludes localhost from thirdweb URL check in `fetch.ts` except in development mode.
- Adds special handling for localhost in development environment.
- Improves accuracy of identifying thirdweb URLs.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
The change ensures that the `erc721: updateMetadata` test suite is conditionally executed only if the `TW_SECRET_KEY` environment variable is set.
### What changed?
- Updated the `updateMetadata.test.ts` file to conditionally run the `erc721: updateMetadata` test suite based on the `TW_SECRET_KEY` environment variable.
### How to test?
1. Set the `TW_SECRET_KEY` environment variable.
2. Run the test suite.
3. Observe that the `erc721: updateMetadata` tests are executed only if the environment variable is set.
### Why make this change?
This change ensures that sensitive tests which require a secret key are only executed in appropriate environments, thereby enhancing test reliability and security.
---
<!-- start pr-codex -->
## PR-Codex overview
This PR focuses on fixing the signing of raw messages through ethers 5/6 adapters.
### Detailed summary
- Updated message signing to accept raw message format in ethers 5/6 adapters
- Added tests for signing raw messages in ethers 5/6 adapters
- Added randomBytesBuffer import for test files
- Updated signing tests in viem adapter
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
Bumps [@eth-optimism/sdk](https://github.com/ethereum-optimism/ecosystem) from 3.3.0 to 3.3.2.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/ethereum-optimism/ecosystem/commits/@eth-optimism/[email protected]">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
<!-- start pr-codex -->
---
## PR-Codex overview
This PR updates the `@eth-optimism/sdk` package to version 3.3.2 and makes corresponding changes in the `pnpm-lock.yaml` file.
### Detailed summary
- Updated `@eth-optimism/sdk` to version 3.3.2 in `package.json`
- Updated version and specifier in `pnpm-lock.yaml` for `@eth-optimism/sdk` to 3.3.2
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<img width="819" alt="image" src="https://github.com/thirdweb-dev/dashboard/assets/26052673/205d590e-893e-4f1b-a4f0-c5aaab9bdf01">
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to add a feature that allows users to choose whether to upload a file to a folder or without a folder in the IPFS uploader component.
### Detailed summary
- Added a `Checkbox` component for users to choose upload options
- Introduced state for tracking upload preferences
- Updated UI elements based on user's upload selection
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR adds an ERC721 extension `updateMetadata` for updating NFT metadata in batches.
### Detailed summary
- Added `updateMetadata` function to update NFT metadata
- Implemented `getUpdateMetadataParams` to prepare transaction
- Added tests for `updateMetadata` function
- Introduced `freezeBatchBaseURI` function and related utilities
> The following files were skipped due to too many changes: `packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
This PR modifies the `generateFromAbi` function to ensure that the `format` function from Prettier is properly awaited. This solves issues with file writing inconsistencies.
### What changed?
- Added `await` to the `format` function calls within `generateFromAbi`.
### How to test?
1. Run the `generateFromAbi` script.
2. Ensure that generated files are consistently formatted.
### Why make this change?
This change ensures that the Prettier formatting is correctly applied before the files are written, resolving any inconsistencies and potential bugs caused by non-awaited formatting.
---
<!-- start pr-codex -->
## PR-Codex overview
This PR fixes the issue where the transaction button did not respect the theme prop in the `SponsoredTxPreview` component.
### Detailed summary
- Fixed transaction button theme prop issue in `SponsoredTxPreview`
- Added `isValidTheme` and `parseTheme` functions in `buttons.tsx`
- Updated `parseTheme` to validate theme and return default if invalid
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
To prevent popups from Coinbase wallet being blocked in Safari, pre-connection actions have been added. Specifically, popups will be displayed immediately upon connection request and before transaction preprocessing.
### What changed?
1. Removed the `COINBASE` constant and its related connection flow.
2. Integrated `onConnectRequested` optional function for wallets.
3. Updated Coinbase wallet's `onConnectRequested` to show the popup immediately.
4. Added `onTransactionRequested` to show popup before transaction processing.
### How to test?
1. Initiate connection with Coinbase wallet and observe that the popup appears immediately.
2. Perform a transaction with Coinbase wallet and ensure the popup is not blocked.
3. Test across different browsers, focusing on Safari.
### Why make this change?
Safari has stricter rules regarding popups, and the previous delay in showing the popup led to it being blocked. This change ensures a smoother user experience for Coinbase wallet users on Safari by addressing the popup blocking issue.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to enhance wallet connectivity and transaction handling in the application.
### Detailed summary
- Added `onConnectRequested` and `onTransactionRequested` functions to wallet interfaces
- Updated wallet connection and transaction handling logic
- Preloaded wallet providers for smoother user experience
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Updated the queryKey used in the useQuery hook to also include the walletInfo.data?.name parameter, ensuring that injectedWalletLocale queries are correctly keyed and updated when the wallet name changes.
### What changed?
The queryKey array in the useQuery hook was updated from `["injectedWalletLocale", localeId]` to `["injectedWalletLocale", localeId, walletInfo.data?.name]`.
### How to test?
1. Ensure the application runs without errors.
2. Verify that locale-specific wallet names are correctly handled when displayed in the UI.
### Why make this change?
The change ensures that the locale-based queries are properly identified and updated when the wallet name changes, preventing potential stale data from being used in the UI.
---
Refactor `usePreloadWalletProviders` to utilize `useQueries` from `@tanstack/react-query`. This change optimizes wallet provider preloading, ensuring a non-blocking, and parallel fetching of necessary providers. Removes the `useEffect` based logic.
---
<!-- start pr-codex -->
## PR-Codex overview
This PR fixes an issue with the Coinbase wallet popup not opening on Safari and improves inAppWallet web performance.
### Detailed summary
- Fixed Coinbase wallet popup not opening on Safari
- Improved inAppWallet web performance
- Added `usePreloadWalletProviders` hook
- Preloaded wallet providers for Coinbase and inApp wallet
- Updated `ConnectButton`, `ConnectEmbed`, `usePreloadWalletProviders`, and `ConnectModalContent` components
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### What changed?
This PR introduces several key enhancements to the `ContractFunction` and `CodeOverview` components:
1. **Environment Selection**: A new `extensionNamespace` state is added based on the enabled extensions in the contract ABI (`ERC20`, `ERC721`, `ERC1155`). This state determines the namespace used for different contract extensions.
2. **Code Snippets Generation**: Functions `buildJavascriptSnippet` and `buildReactSnippet` are added to dynamically generate code snippets based on the extension namespace and contract function type (read, write, event).
3. **Snippet Formatting**: The `formatSnippet` function is modified to include the newly generated code snippets, replacing placeholders with actual values.
### How to test?
1. **Setup**: Ensure you have a contract with varying enabled extensions (`ERC20`, `ERC721`, `ERC1155`).
2. **Test Snippet Generation**: For each contract, navigate to the code overview and ensure the generated snippets correspond to the contract's extensions and function types.
3. **Verify Placeholder Replacement**: Confirm that placeholders in the code (`{{contract_address}}`, `{{wallet_address}}`, etc.) are correctly replaced with real values.
### Why make this change?
This update enhances the flexibility and readability of the code snippets provided to developers, making it easier to interact with contract functions by displaying relevant code based on the contract's supported extensions and environment.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to enhance code snippets generation for different contract extensions based on enabled extensions.
### Detailed summary
- Added logic to determine extension namespace based on enabled extensions
- Implemented functions to build JavaScript and React code snippets
- Created mapping for extension namespaces and functions
- Updated snippet formatting to include extension-specific code generation based on function and extension namespace
> ✨ 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 optimize imports, remove unused code, and refactor UI components in the `CodeOverview` component.
### Detailed summary
- Removed unused imports and variables
- Refactored UI structure for better organization
- Updated code snippet rendering logic
- Improved tab functionality for functions and events
> The following files were skipped due to too many changes: `src/contract-ui/tabs/code/components/code-overview.tsx`
> ✨ 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 dynamically import the `CoinbaseWalletSDK` to resolve cloudflare bundler issues.
### Detailed summary
- Dynamically import `CoinbaseWalletSDK` to avoid bundler issues
- Updated import statement for `ProviderInterface`
- Removed unnecessary imports
- Refactored `getCoinbaseWebProvider` function to dynamically import `CoinbaseWalletSDK`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Enhances the `ContractFunction` component by adding interactive code snippets for various environments, helping users utilize contract functions in their applications.
### What changed?
- Added code snippets under `use this function in your app` section.
- Introduced `CodeEnvironment` state to toggle between environments (e.g., JavaScript).
- Added import for `CodeSegment`, `COMMANDS`, `formatSnippet`, and `CodeEnvironment`.
- Removed console log statements and unused imports.
### How to test?
- Verify that code snippets appear as expected for different contract functions.
- Toggle between environments and ensure the correct code is displayed.
### Why make this change?
Provides developers with ready-to-use code snippets, streamlining the integration process for contract functions into applications.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to refactor code related to contract function execution and UI components in the contract overview tab.
### Detailed summary
- Refactored code execution logic for contract functions
- Added `CodeSegment` component for displaying code snippets
- Updated function usage display in UI based on function type and state mutability
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Add `abitype` library and refactor the codebase to utilize `formatAbiItem` for formatting contract functions and events.
### What changed?
- Added `abitype` library to `package.json` and `pnpm-lock.yaml` files.
- Refactored multiple files to replace existing ABI formatting logic with `formatAbiItem` from `abitype`.
- `contract-function.tsx`: Integrated `formatAbiItem` for formatting contract functions and events.
- `code-overview.tsx`: Unified ABI formatting using `formatAbiItem`.
- Removed dependency on `resolveMethod` from `thirdweb`.
### How to test?
1. Verify the `abitype` library installation in `package.json` and `pnpm-lock.yaml`.
2. Check the refactored files for correct usage of `formatAbiItem`.
3. Run the project and ensure no runtime errors occur related to ABI formatting.
4. Test contract functions and events to ensure they are formatted correctly.
### Why make this change?
To improve the consistency and reliability of ABI formatting across the codebase by using a dedicated library (`abitype`).
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to introduce the `abitype` package, update dependencies, and refactor code snippets in the `CodePlayground` component.
### Detailed summary
- Introduced `abitype` package
- Updated dependencies
- Refactored code snippets in `CodePlayground.tsx`
- Modified imports and functions in various files
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Optimized the Accounts Table component by adding useMemo hooks to calculate total accounts and limit the end value of queries. Adjusted the logic to ensure safe conversion of total accounts to a number type.
### What changed?
- Added `useMemo` for calculating `totalAccountsNum` and `maxQueryEndValue`.
- Adjusted the `accountsQuery` to use `maxQueryEndValue` for its `end` parameter.
- Simplified the total pages calculation.
### How to test?
1. Navigate to the Accounts tab.
2. Ensure the total number of accounts loads correctly.
3. Check that pagination works as expected, especially when navigating to the last page.
### Why make this change?
This change improves the performance and reliability of the Accounts Table component by ensuring that calculations and query parameters are optimized and accurate.
---
<!-- start pr-codex -->
## PR-Codex overview
This PR updates Yarn installation and package versions, enhances test project scripts, and modifies Turbo tasks configuration.
### Detailed summary
- Updated Yarn installation to version 1.22.19
- Updated package versions in the test project
- Modified Turbo tasks configuration for various packages and builds
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Implement pagination and count querying in the accounts page.
### What changed?
1. Modified `accounts-count.tsx` to use `totalAccounts` from `thirdweb/extensions/erc4337` instead of fetching all accounts.
2. Updated `accounts-table.tsx` to incorporate pagination with the help of `totalAccounts` and `getAccounts` functions from `thirdweb/extensions/erc4337`.
3. Adjusted `page.tsx` to pass the contract to `AccountsCount` and `AccountsTable` components instead of accountsQuery.
4. Introduced pagination controls and page size selection in `accounts-table.tsx`.
### How to test?
1. Navigate to the accounts page.
2. Verify that the total number of accounts is displayed correctly.
3. Check the pagination functionality by navigating through pages and adjusting the page size.
### Why make this change?
To improve the user experience on the accounts page by enabling efficient data fetching and display through pagination.
---
## 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
This PR updates dependencies in `package.json` and `pnpm-lock.yaml`, focusing on versions of `axios`, `@grpc/grpc-js`, and `braces`.
### Detailed summary
- Updated `@grpc/grpc-js` to version `1.10.9`
- Updated `braces` to version `3.0.3`
- Adjusted versions of `axios` and `@ethereumjs/util`
- Updated `fill-range` to version `7.1.1`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR adds support for Modular Core and Modular Extension features, updates contract extension settings UI, and enhances extension management in the contract editor.
### Detailed summary
- Added support for `ModularCore` and `ModularExtension` features
- Updated contract extension settings UI
- Improved extension management in the contract editor
> The following files were skipped due to too many changes: `src/contract-ui/tabs/edit-extensions/components/InstalledExtensionsTable.tsx`, `src/contract-ui/tabs/edit-extensions/components/ExtensionForm.tsx`, `pnpm-lock.yaml`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
- Created a new component 'AddChainToWallet' to facilitate adding chains to wallet.
- Integrated 'AddChainToWallet' button into ChainPageLayout.
- Updated layout.tsx to include 'AddChainToWallet' button and its behavior.
- Refactored chain verification and metadata handling to accommodate the new feature.
- Adjusted related utility functions in utils.ts.
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to update the chainlist components by introducing a new `isVerified` flag and refactoring the rendering logic based on it.
### Detailed summary
- Introduces `isVerified` flag to determine if chain metadata is available
- Updates rendering logic in `ChainListRow` and `ChainListCard` components based on `isVerified`
- Adds `AddChainToWallet` component for connecting to chains
- Adjusts layout and styling based on `isVerified` flag and chain metadata
> ✨ 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 dependencies in the project, including `@thirdweb-dev/react`, `@thirdweb-dev/react-core`, and `@thirdweb-dev/sdk`.
### Detailed summary
- Updated `@thirdweb-dev/react` from version 4.7.0 to 4.8.0
- Updated `@thirdweb-dev/react-core` from version 4.7.0 to 4.8.0
- Updated `@thirdweb-dev/sdk` from version 4.0.93 to 4.0.94
> The following files were skipped due to too many changes: `pnpm-lock.yaml`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR improves the toggleService function in `filters.tsx` to correctly handle service selection in the client filters.
### Detailed summary
- Refactored logic to toggle service selection based on existing parameters
- Improved handling of adding/removing services in the search parameters
> ✨ 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 improve chain filtering and display in the dashboard.
### Detailed summary
- Refactored `getChainsToRender` to return more data
- Updated data display to show total, filtered, and displayed chains
- Improved pagination logic to consider filtered chains
> ✨ 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 the ESLint configuration to change the severity level of the `no-restricted-syntax` rule for `useEffect` calls from "warn" to "error".
### Detailed summary
- Updated `no-restricted-syntax` rule severity level for `useEffect` calls from "warn" to "error" in `.eslintrc.js`.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR adds a new ESLint rule to warn against using `useEffect` and suggests using `useQuery` for async functions instead.
### Detailed summary
- Added ESLint rule to warn against using `useEffect` for async functions
- Suggests using `useQuery` instead for async operations
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR ensures optional chaining is used to access properties in various components, preventing errors when properties are undefined.
### Detailed summary
- Added optional chaining to access `chain` properties in multiple components
- Ensured safe access to `chain.explorers` and `chain.icon` properties
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
fixes: DASH-43
<!-- start pr-codex -->
---
## PR-Codex overview
This PR enhances address and chainId comparison in two components to ensure accurate data retrieval.
### Detailed summary
- Updated address and chainId comparison logic in `primary-dashboard-button.tsx`
- Improved address and chainId comparison in `modal.tsx`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<img width="442" alt="image" src="https://github.com/thirdweb-dev/dashboard/assets/26052673/d4bc3298-c5e1-4360-8127-358f35fd2230">
smol change to improve ux
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on adding an `AddressCopyButton` component to display and copy the asset contract address in the listing drawer.
### Detailed summary
- Added `AddressCopyButton` component to display and copy asset contract address
- Aligned asset contract address and token ID headings in a 12-column grid layout
> ✨ 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 the `href` attribute in `chainlist-row.tsx` to conditionally render the `p.id` value based on whether it is "contracts".
### Detailed summary
- Updated `href` attribute to conditionally render `p.id` based on value "contracts"
> ✨ 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 refactor the favorite chains feature, adding a new hook `useFavoriteChains` and integrating it into various components.
### Detailed summary
- Added `bundledDependencies: false` in `pnpm-lock.yaml`
- Renamed `useFavouriteChains` to `useFavouriteChainIds`
- Introduced `useFavoriteChains` hook for fetching and handling favorite chains
- Updated components to use `useFavoriteChains` for favorite chains data
- Reorganized network selector button to display favorite chains
- Refactored `CustomConnectWallet` to utilize `useFavoriteChains` for favorite chains display
> ✨ 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 various dependencies across the project, including `@thirdweb-dev` packages, `next`, `prettier`, and more.
### Detailed summary
- Updated `@thirdweb-dev` packages to new versions
- Updated `next` to version 14.2.4
- Updated `prettier` to version 3.3.2
- Updated various other dependencies to their latest versions
> The following files were skipped due to too many changes: `pnpm-lock.yaml`
> ✨ 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 various functions in `useEngine.ts` and `engine-instances-table.tsx`. It includes improvements like handling response bodies and error messages more efficiently.
### Detailed summary
- Improved handling of response bodies in API requests
- Enhanced error messaging for unauthorized and unreachable servers
- Refactored `onClickConnect` to use `useMutation`
- Updated form submission logic in modals for editing, removing, and canceling Engine instances
> ✨ 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 add new hooks for editing, removing, and managing engine instances in the React app.
### Detailed summary
- Added `useEngineRemoveFromDashboard`, `useEngineRemoveCloudHosted`, and `useEngineEditInstance` hooks
- Updated error handling in existing hooks
- Modified components related to engine instances and subscription cancellation
> ✨ 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 the `chain-icon.tsx` file in the `server` folder of the `chain` component in the `dashboard`. It adds a `cache` property and includes a new header based on a secret key.
### Detailed summary
- Added `cache: "force-cache"` property
- Added a new header `x-secret-key` based on `DASHBOARD_THIRDWEB_SECRET_KEY`
> ✨ 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 the `BillingConnectWalletPrompt` component in `ConnectWallet.tsx`.
### Detailed summary
- Removed unused import `recentlyUsedChains` from hooks.
- Updated component name to `BillingConnectWalletPrompt`.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR introduces a new chain `ZkcandySepoliaTestnet` and updates the `useCustomContractDeployMutation` function to include it for checking `isZkSync`.
### Detailed summary
- Added `ZkcandySepoliaTestnet` chain
- Updated `useCustomContractDeployMutation` to check for `ZkcandySepoliaTestnet` chain for `isZkSync`
> ✨ 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 update the `DashboardThirdwebProvider` component to adapt to the new version 5 of the thirdweb SDK.
### Detailed summary
- Updated `EVMContractInfo` to `type EVMContractInfo`
- Added new hooks: `useChain`, `useDisconnect`, `useSigner`, `useSwitchChain`
- Updated imports and added new dependencies
- Added `V4ToV5SignerAdapter` component for adapting wallets to version 5
- Utilized `ethers5Adapter`, `createWalletAdapter`, and `thirdwebClient` for adaptation
- Implemented logic for wallet adaptation and disconnection
> ✨ 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 revalidation times in API fetch requests to improve data freshness:
### Detailed summary
- Updated revalidation time to 1 hour in `chain-icon.tsx`
- Updated revalidation time to 1 hour in `utils.ts`
- Updated revalidation time to 15 minutes in `utils.ts`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR adds a new page for applying for gas credits in the settings section. It also updates layout styling and adds conditional rendering for a button link.
### Detailed summary
- Added a new page `SettingsGasCreditsPage` for applying for gas credits
- Updated styling in `layout.tsx` for conditional classes
- Improved conditional rendering of button link in `cta-card.tsx`
- Updated sidebar links in `settings.tsx`
- Added new utility function `superchainCTABG` in `utils.ts`
- Updated content and conditional rendering in `ApplyForOpCreditsModal.tsx`
> ✨ 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 update chain-related components and metadata in the dashboard.
### Detailed summary
- Added `ChainCTA` component for chain call-to-action
- Updated chain metadata with new CTA details and images
- Modified layout styling for chain pages
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
Bumps the npm_and_yarn group with 1 update: [@grpc/grpc-js](https://github.com/grpc/grpc-node).
Updates `@grpc/grpc-js` from 1.10.8 to 1.10.9
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/grpc/grpc-node/releases"><code>@grpc/grpc-js</code>'s releases</a>.</em></p>
<blockquote>
<h2><code>@grpc/grpc-js</code> 1.10.9</h2>
<ul>
<li>Avoid buffering significantly more than <code>grpc.max_receive_message_size</code> per received message.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/grpc/grpc-node/commit/674f4e351a619fd4532f84ae6dff96b8ee4e1ed3"><code>674f4e3</code></a> Merge pull request from GHSA-7v5v-9h63-cj86</li>
<li><a href="https://github.com/grpc/grpc-node/commit/7ecaa2d2dcaaa49467d41143169212caf55a40cd"><code>7ecaa2d</code></a> grpc-js: Bump to 1.10.9</li>
<li><a href="https://github.com/grpc/grpc-node/commit/e64d816d7df6d6cde62314beb67d11f1e0a8c79e"><code>e64d816</code></a> grpc-js: Avoid buffering significantly more than max_receive_message_size per...</li>
<li>See full diff in <a href="https://github.com/grpc/grpc-node/compare/@grpc/[email protected]...@grpc/[email protected]">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/thirdweb-dev/dashboard/network/alerts).
</details>
<!-- start pr-codex -->
---
## PR-Codex overview
This PR updates dependencies in `pnpm-lock.yaml` to their latest versions.
### Detailed summary
- Updated `viem` dependency to version 2.13.8
- Updated `fast-uri` dependency to version 2.4.0
- Updated `@grpc/grpc-js` dependency to version 1.10.9
> ✨ 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 enhance the chainlist row component by adding conditional left icons based on product status.
### Detailed summary
- Added conditional left icons based on product status using CheckIcon and XIcon
- Updated ToolTipLabel component to include leftIcon prop
- Improved visual feedback for enabled/disabled products
> ✨ 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 import paths and adds a new function `getChains` to fetch chain metadata.
### Detailed summary
- Updated import paths for `getChain` in various files
- Added `getChains` function to fetch chain metadata
- Updated components to use `getChainMetadata` from utils
- Modified `ChainListCard` and `ChainListRow` components to utilize `getChainMetadata`
- Minor changes in `filters.tsx` and `layout.tsx`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
Bumps [knip](https://github.com/webpro-nl/knip/tree/HEAD/packages/knip) from 5.17.4 to 5.18.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/webpro-nl/knip/releases">knip's releases</a>.</em></p>
<blockquote>
<h2>Release 5.18.2</h2>
<ul>
<li>Improve re-export handling (9ccefb34)</li>
<li>Add identifier to trace for re-export from entry file (b0b8b3d3)</li>
<li>Move tagged export logic into reusable handler (1dff2db4)</li>
<li>Update docs (2f91c8d0)</li>
<li>Update <code>@ericcornelissen/bash-parser</code> to 0.5.3 (<a href="https://github.com/webpro-nl/knip/tree/HEAD/packages/knip/issues/674">#674</a>) (9a7ffac2)</li>
</ul>
<h2>Release 5.18.1</h2>
<ul>
<li>Refactor and improve dep graph naming/typing (28f05f0a)</li>
<li>Speed up (de)serialized and add test (deb3b9c5)</li>
<li>Move cli tests involving stdout to separate folder (978674fc)</li>
<li>Update and caretify dependencies (e14f6d24)</li>
<li>Fix link to screenshot (c2f9507e)</li>
</ul>
<h2>Release 5.18.0</h2>
<ul>
<li>Don't report issues when using --trace (d8e9719b)</li>
<li>Emphasize --debug and --trace on troubleshooting page (bcb5e93f)</li>
<li>Add --performance screenshot (d0d01082)</li>
<li>Integration test knip --cache for eslint as well (443b8be0)</li>
<li>Dogfoodin' is underrated (7115889b)</li>
<li>Update docs (0651144c)</li>
<li>Test against latest TS 5.5 rc (f7aba23c)</li>
<li>Add test for imports-self (closes <a href="https://github.com/webpro-nl/knip/tree/HEAD/packages/knip/issues/663">#663</a>) (736b0a25)</li>
<li>Major refactor of dep graph for trace feature (ad16689b)</li>
<li>Use cwd as default base in <code>toAbsolute</code> (678f47ab)</li>
<li>Fix tsup entries are production entry files (4d839d8f)</li>
<li>Don't need to cache package.json (da33b9c4)</li>
<li>Better explain <code>ignoreBinaries</code> configuration option (<a href="https://github.com/webpro-nl/knip/tree/HEAD/packages/knip/issues/670">#670</a>) (8470505f)</li>
<li>Update funding options (81cf806d)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/webpro-nl/knip/commit/021e9bbd8eff978b474292cef0c8645cc7e851af"><code>021e9bb</code></a> Release 5.18.2</li>
<li><a href="https://github.com/webpro-nl/knip/commit/9ccefb34693911d284904fecea66a6ff70f283fa"><code>9ccefb3</code></a> Improve re-export handling</li>
<li><a href="https://github.com/webpro-nl/knip/commit/b0b8b3d3457cf0a022f4bd4bdead997fb2e6d905"><code>b0b8b3d</code></a> Add identifier to trace for re-export from entry file</li>
<li><a href="https://github.com/webpro-nl/knip/commit/1dff2db443484be7daadf15b638be9556ca26ef5"><code>1dff2db</code></a> Move tagged export logic into reusable handler</li>
<li><a href="https://github.com/webpro-nl/knip/commit/9a7ffac20e82e035b5bb5fc0587e7d4bf0ba1513"><code>9a7ffac</code></a> Update <code>@ericcornelissen/bash-parser</code> to 0.5.3 (<a href="https://github.com/webpro-nl/knip/tree/HEAD/packages/knip/issues/674">#674</a>)</li>
<li><a href="https://github.com/webpro-nl/knip/commit/d9f8fd9c903d8ad189d0bd4d87af474ac66ca8fc"><code>d9f8fd9</code></a> Release 5.18.1</li>
<li><a href="https://github.com/webpro-nl/knip/commit/28f05f0ad314918d9f6ea0e5c1719d50ebffd9ee"><code>28f05f0</code></a> Refactor and improve dep graph naming/typing</li>
<li><a href="https://github.com/webpro-nl/knip/commit/deb3b9c56f1d0711ea75af9694e2161d0e69b2a7"><code>deb3b9c</code></a> Speed up (de)serialized and add test</li>
<li><a href="https://github.com/webpro-nl/knip/commit/978674fc5f492bebeb77a2c3a023ea16dd326f06"><code>978674f</code></a> Move cli tests involving stdout to separate folder</li>
<li><a href="https://github.com/webpro-nl/knip/commit/e14f6d24caf8fff9cd3e825cde65bb7a842d0a6a"><code>e14f6d2</code></a> Update and caretify dependencies</li>
<li>Additional commits viewable in <a href="https://github.com/webpro-nl/knip/commits/5.18.2/packages/knip">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
<!-- start pr-codex -->
---
## PR-Codex overview
This PR updates dependencies in `package.json` and `pnpm-lock.yaml`, focusing on the `knip` package version.
### Detailed summary
- Updated `knip` package version from `5.17.4` to `5.18.2`
- Updated `@ericcornelissen/bash-parser` version
- Updated `picocolors` version
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
This PR was automatically created by a GitHub Action. It updates the chains package with the latest changes from the database.
<!-- start pr-codex -->
---
## PR-Codex overview
This PR adds new chains with updated icons, URLs, and testnet information. It also includes new explorers, faucets, and network details.
### Detailed summary
- Added new chains with updated information and icons
- Included testnet details for various chains
- Added explorers and faucets for the chains
> The following files were skipped due to too many changes: `legacy_packages/chains/src/index.ts`
> ✨ 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 package versions, refactors imports for better organization, adjusts classNames in components, and optimizes page loading in a Next.js project.
### Detailed summary
- Updated package versions for `acorn` and `acorn-walk`
- Refactored imports in `DashboardHeader.tsx`
- Adjusted classNames in components for responsive design
- Optimized page loading by removing `Suspense` and `Spinner` usage
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
This PR was automatically created by a GitHub Action. It updates the chains package with the latest changes from the database.
<!-- start pr-codex -->
---
## PR-Codex overview
This PR adds new testnet chains `Xterio` and `LayerEdge` with unique configurations. It also updates chain imports and removes legacy chain configurations.
### Detailed summary
- Added `Xterio` testnet chain configuration
- Added `LayerEdge` testnet chain configuration
- Updated chain imports
- Removed legacy chain configurations
> The following files were skipped due to too many changes: `legacy_packages/chains/src/index.ts`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
* Store function name in URL so we can share the link
* Remove unused var
* Fix routing logic
* Remove unwanted file
* Format code
* Revert
* Only-explorer
* Lint
* Update
This PR was automatically created by a GitHub Action. It updates the chains package with the latest changes from the database.
<!-- start pr-codex -->
---
## PR-Codex overview
This PR adds support for the Avalanche chain with specific explorers and features like EIP1559. It also includes a new SPACE Explorer and EIP1559 support.
### Detailed summary
- Added support for Avalanche chain with chain ID 48795
- Included a new SPACE Explorer with EIP3091 standard
- Added EIP1559 feature support
> ✨ 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 refactor the contract deployment process by adding support for deterministic deployments with custom salt values.
### Detailed summary
- Added support for deterministic contract deployments with custom salt values
- Refactored contract deployment logic based on `data.deployDeterministic` flag
- Updated the contract deployment process to include the custom salt value for Create2 deployments
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
This PR was automatically created by a GitHub Action. It updates the chains package with the latest changes from the database.
<!-- start pr-codex -->
---
## PR-Codex overview
This PR adds and updates chain configurations for various networks, including icon URLs, faucets, and RPC endpoints.
### Detailed summary
- Added new chain configurations for multiple networks
- Updated native currency names and symbols
- Included icon URLs, faucets, and RPC endpoints
- Added explorers and info URLs for some chains
> The following files were skipped due to too many changes: `legacy_packages/chains/chains/20041.ts`, `legacy_packages/chains/chains/721529.ts`, `legacy_packages/chains/chains/132902.ts`, `legacy_packages/chains/chains/7924.ts`, `legacy_packages/chains/chains/20073.ts`, `legacy_packages/chains/chains/9797.ts`, `legacy_packages/chains/chains/8008135.ts`, `legacy_packages/chains/chains/70157.ts`, `legacy_packages/chains/chains/32112.ts`, `legacy_packages/chains/chains/64947.ts`, `legacy_packages/chains/chains/66729.ts`, `legacy_packages/chains/chains/12885.ts`, `legacy_packages/chains/chains/53399.ts`, `legacy_packages/chains/chains/90343.ts`, `legacy_packages/chains/chains/41847.ts`, `legacy_packages/chains/chains/43994.ts`, `legacy_packages/chains/chains/49995.ts`, `legacy_packages/chains/chains/2715.ts`, `legacy_packages/chains/chains/14093.ts`, `legacy_packages/chains/chains/33100.ts`, `legacy_packages/chains/chains/51173.ts`, `legacy_packages/chains/chains/57822.ts`, `legacy_packages/chains/chains/60147.ts`, `legacy_packages/chains/chains/84977.ts`, `legacy_packages/chains/chains/16316.ts`, `legacy_packages/chains/chains/282.ts`, `legacy_packages/chains/chains/65622.ts`, `legacy_packages/chains/chains/328527624.ts`, `legacy_packages/chains/chains/97970.ts`, `legacy_packages/chains/chains/109.ts`, `legacy_packages/chains/chains/899.ts`, `legacy_packages/chains/chains/345.ts`, `legacy_packages/chains/chains/5112.ts`, `legacy_packages/chains/chains/10222.ts`, `legacy_packages/chains/chains/48899.ts`, `legacy_packages/chains/chains/820522.ts`, `legacy_packages/chains/chains/53302.ts`, `legacy_packages/chains/chains/622463.ts`, `legacy_packages/chains/chains/2340.ts`, `legacy_packages/chains/chains/240515.ts`, `legacy_packages/chains/chains/62298.ts`, `legacy_packages/chains/chains/8844.ts`, `legacy_packages/chains/chains/978657.ts`, `legacy_packages/chains/src/index.ts`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR adds `DustinTurska` to the list of contributors in the `open-source.tsx` file.
### Detailed summary
- Added `DustinTurska` to the list of contributors.
> ✨ 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 add a new header `x-secret-key` to the fetch request in `ChainIcon` component for the `server-only` environment.
### Detailed summary
- Added import for `DASHBOARD_THIRDWEB_SECRET_KEY`
- Modified fetch request headers to include `x-secret-key` if `DASHBOARD_THIRDWEB_SECRET_KEY` exists
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR introduces a new `server-only` package, adds a `redirect` function to handle errors in `utils.ts`, and updates the `pnpm-lock.yaml` file.
### Detailed summary
- Added `server-only` package
- Implemented `redirect` function in `utils.ts` for error handling
- Updated `pnpm-lock.yaml` with `server-only` package details
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
* Add React Native to the list of SDKs
* Update text description
* Update src/components/product-pages/common/nav/data.ts
Signed-off-by: Jonas Daniels <[email protected]>
---------
Signed-off-by: Jonas Daniels <[email protected]>
Co-authored-by: Kien Ngo <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
Co-authored-by: samina <[email protected]>
* fix: Add version prop to CustomContractForm, DeployFormDrawer, and ContractDeployForm
* fix: Make version prop optional in contract deploy form components
* fix: Update thirdweb package to version 5.6.0
* refactor(vercel-utils): Rename embeddedWallet to inAppWallet
* fix lockfile
---------
Signed-off-by: Jonas Daniels <[email protected]>
* templates fix
pioneer and take-flight templates were swapped around - fixed them
Signed-off-by: Juan Leal <[email protected]>
* chore(templates): update description formatting
---------
Signed-off-by: Juan Leal <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
* chore: frame embedded superchain
* chore: finish small changes
* chore: small tweak
* chore: embedded form failed
* chore: validate url via new URL and replace frame to be in superchain page
* chore: small change
* chore: clearer validation
---------
Co-authored-by: Juan Leal <[email protected]>
* feat: Add getBaseURL function for test setup
* feat(test): Add waitForPageLoad function to contract-page.spec.ts
* refactor: increase waitAfterLoad time in contract-page.spec.ts
* WIP: thirdweb Pay config settings
* Upgrade service-utils, add Go to configuration button
* Minor updates
* feat: add saving of pay config
* chore: remove console.log
* fix: update form on api key change
* fix: force api key refresh on update
* fix: cache busting
* refactor: clean up selected API key selection
fix: cannot navigate between developer keys
feat: update UI to match figma
* chore: add text for enabling pay for existing api keys
chore: update text
* fix: show 0%
* chore: update copy
* feat: add checkout settings
feat: only show checkout settings for users with enabled contracts
chore: remove checkout settings
* refactor: clean up pay dashboard info
fix: add ability to route to settings from config
* chore: update copy
* chore: remove fee settings
* refactor: don't use form.reset
* update copy
* Small changes
* Whoops
---------
Co-authored-by: Winston Yeo <[email protected]>
Co-authored-by: Nacho Iacovino <[email protected]>
* Fix upload button media not working
* format
* Update mint-form.tsx
Signed-off-by: Jonas Daniels <[email protected]>
---------
Signed-off-by: Jonas Daniels <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
* test: add tests for chain-page, contract-page, and publisher-page
* refactor: Add wait function for better code readability
* docs: Add E2E testing setup documentation
* perf: Increase wait time on Contract Page test
* Refresh page on build mismatch
* Format
* Lets do this instead
* Dont need this
* Whoops
* Remove logs
---------
Co-authored-by: Joaquim Verges <[email protected]>
* Get credits endpoint
* Grant credit endpoint
* Refactor Steps component
* Onboarding update
* lol
* Format
* Remove unusued
* noidea
* my ts is broken
* Add SponsoredNetworkAlert
* fix build
* Claim credits flow
* Update copy
* More stuff
* ok
* x
* Add frax
* Can skip adding payment method
* Skip title
* Light mode
* ts
* Invalidate the right query
* Update api change
* Format
* Formats button
* Ship
* Prioritize op grant until claimed
* Should be good now
* Ok
* .
* Fix
* Fix logic
* Add indicators to chainlist and chain selector
* k
* Also this ...
* Better logic
* fix API types
* Small changes
* Add to chain page
* format
* ok
* ??
* Fix
* chain page
* big number
* Main bug
* format
* format2
* Confetti
* Add payment method modal to flow
* No need
* A lot of stuff
* Form working
* pretty pretty
* :)
* Update banner
* A lotta stuff
* All can apply
* kk
* Update billing page
* Remove unused
* Fix
* Improve these
* Disable if already applied
* Format
* Only show on sponsored chains
* Stuff
* Format
* Fatter
* Changes
* Stuff
* Format
* yep
* format
* Refetch account when payment method is added
* Apply now
* Remove apply now button when already applied
* cool
* Fix
* Multiple options for chains
* Conditional logic
* Format
* Industry
* Link for contact us
* Industry categories
* No lisk
* format
* Not required
* yep
* Remove upgrade upsell for pro
* Sponsored tag on chain page
* New image
* New banner images
* Only show in dashboard on op chains
* Fix build
---------
Co-authored-by: Joaquim Verges <[email protected]>
* Remove old registry
* also this one
* Not removing from old registry anymore
* merge registry files
* wip works
* Refactor city
* Fix build
* One more thing
* Prettier?
* ???
* This should work
* My prettier is broken
* Can't live like this
* Resolve comments
* Abstract
* Sure
* Should use this
* Remove unused
* change approach
* Delete graphql/generated.ts
Signed-off-by: Nacho Iacovino <[email protected]>
* also remove deprecated mainnets
* Wip - failed build
* Define dashboard chain
* format
* Latest
* latest
* Remove log
* Not sure why we need this
* Back to this
---------
Signed-off-by: Nacho Iacovino <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
* Show Update NFT Metadata button for 1155 NFTs
* A lotta changes
* Take into account erc
* Working
* Better
* Remove log
* Format
* Remove devdependencies
* Only import types when necessary
* Wallets on nightly
* whoops
* Fix build?
* Expect error for now
* Don't update tw package for now
---------
Co-authored-by: Nacho Iacovino <[email protected]>
* Update dependabot warnings
* Also this
* Chains
* Service utils
* Don't update tw packages here
* Install
* Do latest next
* Update more stuff
* one more thing
* small fix
* few changes
* change press kit
* tracked link
* Link fix in hero section
Signed-off-by: Juan Leal <[email protected]>
---------
Signed-off-by: Juan Leal <[email protected]>
Co-authored-by: Juan Leal <[email protected]>
* First read
* More reads
* Target es2020
* No need anymore
* feat: Update thirdweb client initialization
---------
Co-authored-by: Jonas Daniels <[email protected]>
* Add deprecation alert warning to ChainPage
* Add deprecation alert to contracts pages
* Add deprecation notice to chainlist and rpc-edge list
* chain id -> chain ID
* Add deprecation notice to chain selection
* Save status
* Remove log
* Fix feedback
* Disable txn button, add alert to deployment form
* CSR for certain pages
* add chainSlug pages
* keep CSR in only chainSlug pages
* Show a better skeleton in SSR for contract pages
* stop prefetching in next.js link
* Smart Wallet Sponsorship Policies
* WIP policies form
* feedback
* mapped types
* working state
* update to latest api server api
* lint
* lint
* fix form
* link to configuration from api key settings
* move EW config
* lint
* link to configuration
* ui fixes
* rename to sponsorship rules
* add doc links
* remove native currency option for now
* doc link
* fixing the modal stuff
* Small stuff
* Skeleton
* Small improvements
* Im a nitter and I nit
---------
Co-authored-by: Isaac Dubuque <[email protected]>
* Check payment type from contract
* Always hide pay with ideal
* Keep showing checklist when kyc is in the future
* Not requiredD
* Sure
* Fix UI a bit
* Only show functions with address input
* whoops
* Okay
* Check payment type from contract
* Always hide pay with ideal
* Keep showing checklist when kyc is in the future
* Not requiredD
* Sure
* Fix UI a bit
* Only show functions with address input
* whoops
* Check payment type from contract
* Always hide pay with ideal
* Keep showing checklist when kyc is in the future
* Not requiredD
* Sure
* Fix UI a bit
* Only show functions with address input
* Inputs wip
* Its working bbbyyy
* Both ways
* This should work but it's ugly
* Welp, a lot of stuff happened here
* Make it possible to enable custom contracts
* Fix copy
* Better wording
* feature(payments): initialize GQL and page structure
* initialize apollo provider
* port over .graphql files and fix up generation
* fix codegen
* .ts files are fine for hooks
* feat: add credentials option to ApolloClient
* .env.example update
* Get payments seller id from api server in fetchAuthToken (#1839)
Get paymentsSellerId from api server in fetchAuthToken
* Push up example with `paymentsSellerId`
* Remove console.logs
* Move to component to compile
* Render all contracts table (filtered)
* Enable payments button
* Abstract a bit
* Add graphql query to usePayments
* Get analytics
* Add parsedOverview
* Fix prettier
* Create checkout logic
* Create checkout form shenanigans
* Some UI massaging
* A bit more
* Enable payments redirect
* Work for erc1155, disable cache
* yes
* Some progress with cache? :D
* loglog
* Fix tracking
* Abstract remove button
* We're doing it backwards
* Cast to number
* whoops
* Edit checkout logic plz
* Empty state
* plz
* Fix for real
* Default
* Filter contracts, some more empty states
* Moar empty states
* Error flow
* More empty states, less foot shooting
* Get contract name for payment-enabled contracts
* Filter default checkout, show contractId
* Fix url redirect
* whoops
* Fix logic
* feature: added checkout seller account settings to dashboard (#1931)
Signed-off-by: Juan Leal <[email protected]>
Signed-off-by: Juan Leal <[email protected]>
Signed-off-by: Juan Leal <[email protected]>
Co-authored-by: easyrun42 <[email protected]>
Signed-off-by: Juan Leal <[email protected]>
Co-authored-by: Juan Leal <[email protected]>
Co-authored-by: easyrun42 <[email protected]>
* invalidateQueries onSuccess
* Revert prior change and add apollo refetch()
* Try network-only
* Add for contracts as well
* wip
* API Keys capabilities yay
* Remove network-only policy
* Use lazy queries
* Fix api keys
* isLoading states
* All the cache
* now
* Rename
* Big wip
* Fix date picker
* chore: added thirdweb_client_id to checkout fragment (#1957)
* stuff
* Ensure accountId
* Copy
* Fix mutation
* Fix loading states
* wip
* Kyb shenanigans
* Kyc shenanigans :D
* More kyc shenanigans
* Fix file uploader?
* Annoying response
* RPC url pls
* Remove unused imports
* Nope
* Lots of checks
* Fix kyb check
* Kyc improvements
* Moar
* hid hid
* Move around
* Nope
* Cache?
* Lowercase
* Webhooks file
* Add more supported chains
* Full
* Fix RPC url
* Update contractArgs
* Much better
* Error state
* Validation for URL
* Allow empty string
* Improve KYB experience
* Add compliance email
* Fix upload to cloudflare
* Add preview button
* Improve preview
* Okay
* Fix font weight
* Just because
* Use the Preview environment for workflows
* Pass environment var name context through
* syntax update
* Test - show public env var
* syntax
* See if public variable makes it through
* Add public api
* Use secrets instead of vars
* Remove test
---------
Signed-off-by: Jonas Daniels <[email protected]>
Signed-off-by: Edward Sun <[email protected]>
Signed-off-by: Juan Leal <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
Co-authored-by: Edward Sun <[email protected]>
Co-authored-by: gerrysaporito <[email protected]>
Co-authored-by: Juan Leal <[email protected]>
Co-authored-by: easyrun42 <[email protected]>
* home product card ui changes
* remove px and minor fixes
* put back description
* refactor HomePageCard
* refactor data.ts to use inLandingPage and landingLink
* improve ui for HomeProductCard
* remove landingLink
* edit images and og:image
* changes are made
* Link fixes to hero
Signed-off-by: Juan Leal <[email protected]>
---------
Signed-off-by: Juan Leal <[email protected]>
Co-authored-by: Juan Leal <[email protected]>
* quick link fix
* updated landing page and navbar
* import corret icons from correct paths
* remove icons from popover
* order them by most important
* update icons to png
* remove publish.svg
* update icon on every landing page
* update gradient for every page
---------
Signed-off-by: easyrun42 <[email protected]>
* Set instance url tracking on engine
* Better like this
* Also better
* Track other engine connection states
---------
Co-authored-by: Phillip Ho <[email protected]>
* feat(dashboard): Add stub to manage embeddedWallet recoveryShareManagement preferences
* docs: add explanation for where the magic values came from
* ew: custom auth added to form
* adding auth fields
* custom auth: form checkbox + state handling
* add create api key to embedded tab
* fix validation error when unchecked
* Add custom JWT into selector and update names
* Update default
* Update zod type for url
* Disable being able to edit recovery share management
* chore: fix lint issues
* fix: typings for recoveryShareManagement type
* chore: fix up custom jwt
* chore: revert dev confirmation email
* chore: remove console log
* only show in edit mode
---------
Signed-off-by: Joaquim Verges <[email protected]>
Co-authored-by: Isaac Dubuque <[email protected]>
Co-authored-by: Edward Sun <[email protected]>
Co-authored-by: Joaquim Verges <[email protected]>
* feat: Add fetchChainsFromApi and fetchChain functions
* feat: add fetchChain and fetchAllChains functions
* make homepage work again with middleware changes
* fix(utils): fix fetchChain parameter type
* feat: add YourFilesSection to DashboardStorage page
* refactor: remove file preview column
* style: add monospace font to file size text
* fix(components): fix YourFilesSection pagination and data fetching
* fix(dropzone): Invalidate pinned files query on file upload
* feat(storage): add file list refetch on upload
* chore(useApi): keep the promise around to avoid multiple fetches
* feat: Add AccountPermissionsV1 to guides and templates
* fix(chore): Fix API endpoint and chain filtering
* refactor: Improve filtering and mapping logic in getStaticProps function
* refactor: Update getGuidesAndTemplates.ts file
* fix: useApi caching
- misc change to yarn as bun failing
* chore(ci): setup bun for testing
---------
Co-authored-by: Jonas Daniels <[email protected]>
* feat(chains): Add revalidation for getStaticProps in chainlist.tsx
* chore: add revalidate option to getStaticProps
* fix(package.json): update next-sitemap to version 4.2.3
* chore: Update additionalPaths function in next-sitemap.config.js
* refactor: Simplify chain retrieval logic and remove unnecessary code
* chore: Update dependencies in package.json
* refactor: update @tanstack/react-query to version 4.35.7
* fix(package.json): update react-query-persist-client version
* migrate to bun
* chore(providers): handle type discrepancy in queryClient
* chore(ci): simplify build step
* try to trick sentry during vercel build
* chore(build): Update build scripts and dependencies
* chore: Update next dependency version
* chore: Update test script in package.json
* chore: remove jest.config.js
* chore: Update README.md with bun installation instructions
* chore: update dev and build commands
* Auth CLI using dashboard signature, and generate authToken
* add auth package
* update packages to include generate function
* update packages to latest
* add dashboard secret key
* pass in client id and secret to rpc respectively
* add logic to create authWallet record in db
* use staging url for testing
* update staging url
* use staging url for jwt/authorize
* update UI/UX
* add success text
* fix typo
* update copy
* fix typo
* Better errors and kill CLI process if there's an error
* Add settings account page and support for revoking authorized wallets
* No contact msg, add rejected copy
* remove unused imports
* remove unwanted code
* remove unused imports
* fix prettier
* update nightly versions
* bring back previous sdk, react and chains versions.
* Add some more trackers
* feat: add submission form button to open source bounties
* feat: add to another bounty as well
* Cleanup
* Update bounty numbers
---------
Co-authored-by: samina <[email protected]>
Co-authored-by: Manan Tank <[email protected]>
Co-authored-by: Nacho Iacovino <[email protected]>
* Add guides, update NFT cards
* New account permmissions page
* New account page and fix distribute native on split for non-supported api chains
* Stuff
* Fix build
* Fix typo
* New images
* Change order
* fix: Update thirdweb API host and client ID
* refactor: rename function queryFn to publishedContractQueryFn
* chore: Update @thirdweb-dev/auth and related packages
* Working token id page
* Add new NFT property component and display properties
* "Update token ID page and NFT details link"
* Add contract address to TokenIdPage
* Update TokenIdPage layout and add Back button
* Delete unused code
* Update button tabs
* Update NFT drawer tabs to include new functionality
* Refactor contract header and claim conditions components
* feat: api keys v2
- new api keys with pk/sk
- domains, wallets and service restriction
- secret regeneration
completes FTD-1879, FTD-1880, FTD-1835
* minor pr feedback
* test jam feedback
completes FTD-1902
* show none when no service targets
* change copy
* enable all services
* add service actions
fixes FTD-1874
* f
* sort saved services
* add copy pk on create
* wip
* Update to nightly
* Update sdk, fix detection
* Render the signers for the account
* Make it so it can be copied
* Not green
* Fix build
* Fix build
* Now for real
* Make table a bit nicer
* Delete comments
* Update lock
* Link to created account, show associated accounts on table
* Add info on build tab for smart wallet factory
* Add some margin
* Fix build
* Fix build
* Update sdks
* Add open edition to explore
* Fix contract checklist
* Add step to set nft metadata on deploy
* nope
* Fix txn count
* Now for real
* Add advanced section
* Fix build
* Fix return type of shared metadata
* Fix todo
* Update SDK
* Form UI
* Add endpoint
* Update links
* Add error validation and success message
* Update .env.example
* Fix company property
* Everything is required :D
* Force dark mode
* Update logos
* Back to black
* Now for real
* Capitalize properly
* test?
* Actual test
* Test 2
* Test 3
* Test 4
* Test 5
* Test 6
* Test 7
* Test 8
* Test 9
* Test lostcount
* Fix login with Safe
* Fix login with Safe
* Update dashboard
* Require signature again and support gnosis signing
* fix build
* popup transaction prompt in safe wallet case
* Update
* Update
* Update to new auth
* Update version
* Update
---------
Co-authored-by: Jonas Daniels <[email protected]>
* feat: add settings page
- add settings page
- move api keys to it
- reuse nav and navlink where possible
fixes FTD-1768
* fix sections render
* move redirect
* polish
* fix up redirect
* remove unused index
* feat: added button to view deployed contract on block explorer
* feat: filter block explorer URL that has standard of `EIP3091`
* revert: remove button to view deployed contract on block explorer
* feat: added button to view deployed contract on block explorer
---------
Co-authored-by: Jonas Daniels <[email protected]>
* delete /api/paper/register
* Move /gas api to edge
* move /check-verification-status api to edge
* move /email-signup to edge
* Move /luma-events API to edge
* cache /check-verification-status if verified
* polish: api keys + tables
- style tables and extract into table container
- refactor api keys to sub components
- show api key name and created at
- remove two step approach to creating keys
- define menu list/item styles on theme level
completes FTD-1752
* add missing ChainId import
* fix types
* add edit edit modal
* add update key func
* make work with local api server
---------
Co-authored-by: Jonas Daniels <[email protected]>
* Add analytics
* Remove analytics secret
* Add date range picker and timestamp
* Refactor and add logs
* Update
* Remove cumulative wallets stat
* Add beta tag to analytics
* Add function calls table
* Add key
* Fix prettier
* Add event breakdown
* Add banner and total statistics
* Remove total txs
* Update analytics
* Fix suspense bug
* Add suspense to analytics stats
* Fix suspense
* Fix update
* Add zero states for charts
* Remove unused import
* Fix date ranges, add stack, add commas
* Cap end date
* Disable date selection
* Switch to new GET API format
* Update
* Fix stacked bar chart
* Add commas to values
* Fix highlight for stack
* Update colors to blue first
* Update color scheme
* Update bar colors
* force login flow
* slightly better styled modal
* fix build
* upgrade to nightly to fix signing after switching accounts
* add guest wallet
* fix chanlist page
* do not show signature prompts when wallet is headless
* track accept and cancel
* POC
* fix build for testjam
* WIP on design
* use marketplace-v3
* Address security risk of SSR
* Add alt tag to thirdweb icon author image
* Rename Props type correctly
* add build debugging logs
* more debug logs
* Disable fallback
* Remove logs
* Fix mobile responsiveness and add images
* Add guide JSX for NFT Drop template
* Fix link lint for build
* fix server hydration issue
* Add details for marketplace and nft gallery templates
* Format
* Add templates to menu and footer
* Add contract deploymnet steps to local setup of templates
* Run prettier
* Address todos
* Add footer sections
---------
Co-authored-by: Nacho Iacovino <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
* RE: #1155 - Optimize Data Fetching
RE: Update to include thirdweb-dev & thridwed-examples, optimize and fix from #1155
* Apply filter fixes
Apply filterting
Add bots to filters
* Update filter to match original filter
* fix small issues
---------
Co-authored-by: Jonas Daniels <[email protected]>
* fix filter across pages on dashboard
* Fix Network filter show more button (#1205)
Fix Network filter
* fix filter across pages on dashboard
* fix prettier
---------
Co-authored-by: Manan Tank <[email protected]>
* filter contracts with dropdown
* move filter closer to table
* style dropdown
* filter on the table itself
* no header, only filter
* filter across pages
* remove unused code
* use storedchain and columninstance types
* Update Design, Add back show more functionality
* rename NETWORKS -> NETWORK
---------
Co-authored-by: Manan Tank <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
* Presets presets presets
* Fix build
* Small stuff
* Show active phase
* Nice display stuff
* Fix claim conditions v1
* General improvements
* A bit of guidance on non saved phases
* Well this is better
* Update price input
* Add NumberInput to theme
* UI stuff
* Fix build
* ok
* Fix build
* Fix single phase
* Fix creator phase display
* Copy update
* Fix some stuff
* Make isEditing work better
* Fix bug when value is 0.0
* Fix currently active refreshing on save
* Hide buttons conditionally
* Remove unused import
* First pass
* mobile responsive and always show header of codeblocks
* made code auto type faster
* couple of improvements
* change copy
* remove border radius from inner box
* Change repetitive text
* update messsaging in landing page
* remove free
* tighter layout
* clearer with/without tw
* fix how it works width
* copy changes
* adjust image mt
* in > for
* Fix hydration error
---------
Co-authored-by: Jonas Daniels <[email protected]>
Co-authored-by: Joaquim Verges <[email protected]>
Co-authored-by: Manan Tank <[email protected]>
* fix gnosis safe select network
* initial page
* add highlighted button component
* first version working
* copy and styling changes
* update styles
* make hero image bigger
* update copy and add contact us button
* cleanup
* updatre og image
* update hero image
* how it works title and image plus add links to text.
* escape quote
* remove logic 2
* update how it works image
* update wallet icons
* remove padding from top
* updated copy
* prevent from crashing
* remove code
* added supported wallets section
* remove commented code
* update menu copy
* copy change
* update announcement banner
* delete invisible character??
* update how it works image
* Add blogs
* add space
* copy changes, hero change, update packages
* update copy and nightly
* update nightly again
* back to latest stable
* fix gnosis safe select network
* update banner to open source announcement
* update dismissed code
* fix url and add helpful error message if not api key is provided
* Add /oss page for repositories and contributors
* Add GitHub to suite of icons in DesktopMenu
* Fix page ID, add getStaticProps for getting dynamic results of top contributors
* change repocard to linkbox component
* Use ProductPage Component rather than Box
* Fix button with increased zIndex
* replace solana with examples
* add links to menus and footer
* remove comment on revalidate
* filter out internal contributors
* fix examples copy
* fix build from comment
* remove footer
* Rename to open-soruce. Add avatars of contributors
---------
Co-authored-by: Nacho Iacovino <[email protected]>
* fix gnosis safe select network
* disable claiming temporarily
* move logic to airdrop component
* copy change
* update airdrop address and fix supply count
* comment on gasless
* disable claiming again and show out of packs screen if out of packs
* claiming is disabled
* re-enable airdrop claiming
* enable claiming
* fix gnosis safe select network
* disable claiming temporarily
* move logic to airdrop component
* copy change
* update airdrop address and fix supply count
* comment on gasless
* disable claiming again and show out of packs screen if out of packs
* claiming is disabled
* Update Announcement Banner to Bear Market Builders
not sure if i set the local storage correctly or tracking label correctly, lmk
we can add the community CTA back once airdrop is over!
* Fix build
---------
Co-authored-by: Nacho Iacovino <[email protected]>
* fix gnosis safe select network
* update faq dates to be more clear
* update state when packs run out of stock
* Airtable fix (#1121)
* fix gnosis safe select network
* update faq dates to be more clear
* change airtable key
* update state when packs run out of stock
* Events page
* New api key, make it serverless
* Make it nicer
* Small margin issue
* Fix overflow
* Small changes
* Better skeleton experience
* Fix footer
* fix gnosis safe select network
* Initial transfer to dashboard
* remove axios
* Feedback from PR / code cleanup
* Fixed image imports and resolve most vercel comments
* move email input box to claim and adjust ui to support light mode
* carousel of prizes and ui fixes from bobby designs
* responsiveness
* remove all prizes from main page
* Ui tweaks and gif confetti
* Edit contracts deployed, add pagination
* add empty state to contracts
* update image size
* update contracts using allowlist and fix some ui bugs
* organize imports
* list contracts
* testjam fixes
* setup new relayer and fix contract query for contracts deployed
* add custom sdk
* Use supply hook
* Dont rquire pack
* Small changes
* Custom SDK context
* fix loading contracts on account change
* fix forwarder
* Delete unused
* A lotta changes
* updated version to nightly
* More changes
* Don't show name
* A lotta stuff
* remove resolution and remove extra email icon
* Fix text color for claim/subscribe button
* add trackers and fix some small bugs
* more trackers
* update trackers naming conventions
* update constant
* update tracker category name to make more sense
* fix comments on trackers
* add og image
* update bear pack image, no bg
* Edit copy for why section
* add extra line break for tweet
* update copy
* update oz link and new contracts
* update FAQ
* update pack terminology
* filter only on mainnet and specific chains
* styling issues with button and pack copy
* chain name more visible
* styling fixes and copy
* styling fixes
* add filtering by chain and deployer address
* add hover to claim btn
* add quicknode card assets
* update contract addresses to SAFE ones.
---------
Co-authored-by: Jonas Daniels <[email protected]>
Co-authored-by: Nacho Iacovino <[email protected]>
* Add "Learn" option to `type` property in `HeroProps`
* Creates /pages/learn/index.tsx using a solutions page as a template
* Add product cards
* Add a description section
* Add Path section
* Clean up unused code
* Add pageId
* Remove ProductPage component to have custom GetStartedSection
* Bring in the needed elements from ProductPage and GetStartedSection
* Replaces GeneralCta with a LinkButton that opens the url in a new window
* Remove opening button link in new tab
* Add form url
* Edits across all sections
* Fix linting issues
* Update seo
* Update hero image
* Update hero name
* add contract ftux
* fix lint
* fix uploaded nfts
* fix
* fix bug
* Big refactor
* Rename component
* Use absolute imports where possible
* More changes
* Show number of extensions on contract list
* Add permissions check
* Collapse if completed
* Hide if all steps are completed
---------
Co-authored-by: sid <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
* UI improvements
* Fix tooltip transparency
* Small improvements
* Small stuff
* Add clarification of max num of addresses on airdrop
* Limit changelog section to 2 lines
* display plugins on router release page
* don't use dev build for react
* fix errors
* fix order in hooks
* correctly pass abi to Extensions
---------
Co-authored-by: Jonas Daniels <[email protected]>
* get started component
* push everything
* ln
* Update published.tsx
* fixes
* fix link and getstarted -- remove mumbai steps from deployed get started
* eslint
* diff state for active vs inactive
* completed
* link
* readd description
* small fix
* better storage key and also bigger hit area for collapse/expand
* link auto highlight
* ftux not removable and add loader
* small fix
* memoize + change states for complete/incomplete
* minor tweaks and formatter
---------
Co-authored-by: Jonas Daniels <[email protected]>
* add base page
* correct links
* add cats image
* landing snippets
* minor fix for theme
* small tweaks
* placeholder youtube
* image instead of chakra next image
* always 2 col
* small 2 col
* some improvements
* maxH = 1080
* correct link
* ui changes
* Update base.tsx
* small spacing fix
* fix crucial things
---------
Co-authored-by: Jonas Daniels <[email protected]>
* new graphics, fix font import, and reorder build section
* fix route for og url
* old import
* gradient button animation
* improve aurora
* some more tweaks
* more tweaks
* small fix
* next 13.2?
* upgradd deps more
* allow worker src blob ad self
* cleanup worker-src
* oof
* proper sentry handling?
* turn sentry debug off and widenClientFileUpload
* remove sentry tunnel again for now
* Only one language selector
* Make selector fetch different snippets
* No prebuilt tab
* Replace wallet address with connected wallet
* Remove comments
* Don't show unity contract metadata snippets
* Change order to not have an empty line
* Extension-based code tab
* Fix logic on when to show custom code tab
* wip sidebar
* Fix sidebar linking
* New UI
* Add icon to sidebar
* Remove unused imports
* Only show for custom contracts
* Don't have the sidebar on publish page
* Update sdks
* Update components/contract-components/hooks.ts
* fix storage
---------
Co-authored-by: Joaquim Verges <[email protected]>
* Working version with read/write functions
* Add event tab and clean up
* Fix args
* A lot of stuff to initialize the chain
* Pass RPC for Python/Go
* Revert for now
* Fix js init
* Remove log
* Revert for now
* Add unity init and more event snippets
* Add getting started to chainSlug page
* Fix build
* Configure chain when clicking a contract to deploy
* Fix styles
---------
Co-authored-by: Jonas Daniels <[email protected]>
* change banner to commercekit
* change bg
* progress check
* a lot more progress
* minor changes
* small changes
* correct folder name
* fix copy
* ui fixes
* lots of copy fixes
* one small fix
* some more small fixes
* minor fix
* more fixes
* new publish og
* small changes
* few new cases
* small fix
* rename folder
* add redirect
* Update LaunchSection.tsx
---------
Co-authored-by: Jonas Daniels <[email protected]>
Co-authored-by: Nacho Iacovino <[email protected]>
* token details
* clean
* fix grid key
* marketplace progress, cannot test because contract metadata is broken
* fix
* Fix overflow page MarketplaceTable
* empty state
* layout fix + add link
* stat card fixes
* support v1 & 3 and new design
* small fix
* fix
* another fix
* skeleton
* add hover effect and separate english auctions + direct listings
* lint
* last three listings (inaccurate because of inactive listings)
* MarketplaceV3 --> Feature breakdown
---------
Co-authored-by: Manan Tank <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
Co-authored-by: Nacho Iacovino <[email protected]>
* Move current /dashboard to /contracts
* Renamings
* Create navbar
* Add dashboard cards
* Add changelog with base styles
* Better styles
* Add arrow
* Basic storage page
* Add integrating into your app section
* Fix build and style
* Add IpfsUploadDropzone component
* Add visibility public
* Improve styles
* Make nicer copy hash component
* Make it responsive
* Basic card structure
* Render all chains
* Link to chain page
* Add search
* Fix long chain styles
* Update search width
* Update color
* Slice the list for now
* Use new TrackedCopyButton component
* Fix styles
* Various feedback addressed
* Address chains feedback
* Disable upload with disconnected wallet
* lots of changes
* Progress things amiright
* No logs
* Change supported types
* Small changes
* Add sidebar
* Rename chains to rpc
* Add metadata to upload
* Change gateway section
* Add CLI section
* Update chains page SEO
* Update URL
* Change checkmark to only show when chain was added to dashboard
* upgrade deps
* RPC page changes
* Improve cli section in /storage
* Revert gateway section
* lots of cleanup
* further cleanup
* small fix
* remove yalc
* remove rocket
* Small improvements for storage page
* Improve styles a bit
* Clean up CodeSelector
* Add python and go snippets
* Add SEO for chains page
* Same styles for /chains and /rpc
* Scroll on mobile for navbar
* Remove added to dashboard icon
* Update /rpc description
* Add chainlist links to footer
* Fix typo
* Minimal style changes
---------
Co-authored-by: Jonas Daniels <[email protected]>
* homepage: infinite looping logo carousel
* split partners logo among two rows on mobile
* remove lazy loading from partner logos
* Fix partner logo cut off on safari
* fade-in logo carousel at the container edge
* v1
* v2
* remove temp code changes
* switch network *technically* works, and new chains package
* Fix src warning in AsyncContractTypeCell
* Updated Design for config form, fix metadata error
* add initial deployment status modal
* Fix contract duplication bug in dashboard
* Make RPC url always editable
* v3 - middleware + refactor
* reset form when selecting custom option
* Fix crash on sources tab for unsupported chains
* add missing deps in effects
* /evm - use SSG with fallback
* /evm - add ensQuery dehydration back
* /solana - fix program page loading issue
* Allow editing details for custom chains
* solana program context
* fix build crash
* fix all the networkOrAddress getters
* use chain icons from chains package
* separation of fallback and final page
* Fix wrong default network type in form
* validation improvements in configure network form
* disable custom chains from dropdown on On non thirdweb contracts deploy page
* Fix wrong network slug
* custom chain improvement
* Fix Lightmode UI of Network Config Form
* UI improvements for network search dropdown
* UI tweaks
* code review cleanup
* UI tweaks
* Network Config Form: Better Keyboard UX
* fix broken /contracts/release and /contracts/deploy routes
* add configure networks button for custom contract deployment page
* UI tweaks for network configurator
* fix merge
* add the icon to the custom chain
* Bunch of Improvements
* Improve auto chain configuration
* Do not allow adding custom network with existing chain id
* Show delete default chains with 1-click add
* Convert delete dialog to a popover
* Retain all fields when selecting a chain from list
* Allow configuring chain Icons
* Allow using chainId as network slug for custom networks
* Remove unnecessary chainInfos object passed in provider
* configurable slug + prefill form
* improve scrollbar styling
* upgrade to newer sdk etc
* make it work
* Various testjame improvements
* Stop form submit event propagation
* preselect “testnet” for custom network based on name
* Clear form errors when selecting a network from list
* Improved UI for Delete network popover
* Disable “Add Network” button when on add network page
* Change fallback chain icon
* custom and search tabs
* reduce layout shift when switching tabs
* allChains caching with idb
* Add IPFS upload button for icon input
* Deploy Modal, chain icon, code cleanup
* Fix Deploy Modal not working for custom contract deployment
* Fix Fantom testnet icon
* Remove useDashboardNetwork()
* Update Deploy Modal wording in case for 3 prompt scenario
* Remove hardhat and localhost from CURRENCIES object
* Remove gateway.ipfscdn.io from images.remotePatterns in next config
* add chain config tracking
* remove useChainInfos()
* Remove EVM_RPC_URL_MAP usage as much as possible
* Fix Network Switcher for non-default chains
* upgrade new dev sdk versions
* fix versions
* Fix contractInfo.chain not available on contract page of custom chain
* Fix contract page links in overview page
* Update default chain Icon
* bunch of UI improvements for network configuration modal
* Better active state for add network button and chains
* Suggest a slug for custom network
* Show chain id next to network names in list
* Allow searching by chain id
* Autofocus on first input of the form
* Add cross button for clearing search input
* Toggle search results open state with chevron icon
* Add icons in chain list
* handle wallet connected to unsupported network in <SupportedNetworkSelect/>
* No reload required after adding a network
* revert last commit - reload still required
* handle case where wallet is connected to an auto configured chain - show it as unknown network
* update dependencies and switch to activeChain and supportedChains
* nightly sdk versions
* Improved Icon Uploader
* always use default chains for polygon registry work
* dev version & updated list fetching
* Improved Chain ID input in Network Configurator
* Improved Network ID validation and prefill
* Hide etherscan verification button for non-default chains
* Form Refactor + network type toolip
* update deps
* update package versions
* upgrade dependencies
* show "create custom" when no search results found
* slug calculated from prefillName should not be considered dirty
* open edit screen when selecting already configured network from list
* fuzzy search with fuse.js
* replace thirdweb key with it's value in form
* temp fix for getChainRPC throwing error
* update to newer chains package
* lots of rpc cleanup etc
* fix nightly maybe?
* upgrade to nightly packages
* add initial import contract search input
* fix localhost
* clean up smoe more stuff
* lots of updates
* Show "Request Testnet Funds" button in wallet when applicable (#856)
* fix crash on events page
* Fix Links in Overview page
* import contract improvements
* Fix wrong explorer tab link in ContractPermissionsPage
* make search faster (individual queries)
* properly split contract and program routing
* remove all via stuff etc
* various further improvements
* add a proxy and setup storage to hit that proxy
* further cleanup
---------
Co-authored-by: Jonas Daniels <[email protected]>
Co-authored-by: Joaquim Verges <[email protected]>
* add github link and change section order
* add minting card to solutions section
* track values link
* remove unused import
* change breakpoint
* white links
* make links slightly bold to emphasize more
* missed a link
---------
Co-authored-by: Jonas Daniels <[email protected]>
* add some tracking
* fix
* NFT done, progress on permissions
* small fix with merge conflict
* finish permissions table
* remove comment
* add empty state
* auto scroll to top on permissions page
* fix title
* Add direct listings tab logic
* Add common table for both direct listings and english auctions
* Add UI to cancel listing/auction
* Disable create listing button if no address
* Detect features
* Update storage
* Can deploy marketplace v3 and create direct listings
* Can create english auctions
* Update auth
* Fix build
* Add marketplace v3 deployment event
* We got status pog
* Rendering english auctions
* Add getValid results filter
* Update create listing text
* Only show select if extension enable, default to one from tab
* Fix logic
* Fix cache
* Fix build
* Show default snippets if possible
* Update sdks
* Update storage
* Add support for 3d files (#837)
* Fix overflow in markdown renderer caused by inline code (#836)
* Add support for 3d files
* fix up nft media?
* seems to work now
---------
Co-authored-by: Manan Tank <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
* Add price column
* Fix math
* Only allow to create each listing on each tab
* No need to detect here anymore
* Use NFTMedia commponent, make tooltip nicer
* Add CTA if no NFTs found
* Remove plural
* Remove invalid prop
* Move comments
* Improve platform fees text for marketplace
* Add new staking section and marketplace v3 to beta section
* Give auctionTimes defaults
* Update SDKs to nightly
* Use previous nightly D:
* Fix build
---------
Co-authored-by: sid <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
Co-authored-by: Manan Tank <[email protected]>
* build your app
* correct link for build your app
* add share contract
* add padding to badge preview
* linting and add contractType prop
* night progress
* most nacho fixes
* hide view all button and handle conditional guide/template rendering
* small tweak for rahul
* UI tweaks
* Update Guide Links
* add events table -- event links not working
* reorganize ui, simplify latest events, more apparent build your app link
* add skeleton
* minor event label ui tweak
* fix skeleton height and add autoscroll to top
---------
Co-authored-by: Manan Tank <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
* completed new features section!
* small gradient fix
* remove duplicate
* fix links and lint
* nacho + manan fix
* vercel comments
* bobby feedback
* small lint fix
* small fix
* fix font-size
* fixes
* how it works section
* small linting fix
* links
* all fixes from bobby and manan
Co-authored-by: Jonas Daniels <[email protected]>
* Add IntInput and SolidityInput main component
* Add address input
* Fix various bugs
* Add bytes input
* Add button to convert to bytes if not valid
* Add uri input (as any fml)
* Add bool input
* Move stuff around
* Add ENS resolve to address input
* Make the form context optional
* Use AddressInput everywhere in the app
* Add shouldDirty
* Add raw input
* No logs
* Various changes
* Wip array input
* Fix errror not showing
* Solve weird opacity thing
* Better error feedback on uint/int
* Fix bug on version validation
* Add To Wei button conversion
* A bit cleaner now
* Bytes input improvement
* Fix validation
* Separate tuple input
* Move int input validation
* Move bytes input validation
* Move address input validation
* Improve int validation
* wip rawinput
* Improve bytes validation
* wip
* Pass solidityName for IPFS upload
* Fix string input condition
* Add camelToTitle function and solidityType placeholders
* Test stuff out
* Add validation for int[] and array[]
* Remove unused import
* Use raw input for tuple for now
* Pass solidityComponent for better FormHelperText, especially tuples
* Better error msg for tuple
* Delete unused improt
* Only validate if there's components
* Remove unused file
* Improve address input UX
* Don't render empty helperText
* Fix address input edge cases
* Optional chaining
* Fix error
* Accept empty array for bytes type
* Fix string input
* Make buttons smaller
* Make JSON input monospace
* Remove fixed todo
* Improve error color
* Fix int/uint []
* Remove log
* various fixes
* use prod api during build step?
Co-authored-by: Jonas Daniels <[email protected]>
I see that our metatitle for this is "Solana (SOL) Faucet | thirdweb" - it used to show up like this on Google, but it seems to be showing as "Solana Faucet" now for some reason. (can't attach screenshot but tried on different windows/browsers)
Because of this, we're missing out on a lot of traffic that goes to "sol faucet" rather than "solana faucet" - we rank #4 for "solana faucet" but not at all for "sol faucet" & could easily rank in the top 5 for sol faucet as well!
Generally seeing discrepancies across Dashboard pages between what shows up on Google, what it shows up as when shared (og:title), and what shows up when on-page. @jnsdls hope you feel better throughout the week - lmk if you'll be able to make it to our SEO biweekly or if ya wanna push!
* Improved UX for price-input
* Make step 10^-18 for price input
* Improved support for prices < 10^-7 in price input
Co-authored-by: Jonas Daniels <[email protected]>
Co-authored-by: Nacho Iacovino <[email protected]>
* Add clarification text on claim conditions snapshot
* Not show this point for v1
* Remove extra space
Co-authored-by: Jonas Daniels <[email protected]>
* homepage: infinite looping logo carousel
* split partners logo among two rows on mobile
* remove lazy loading from partner logos
* Fix partner logo cut off on safari
* fade-in logo carousel at the container edge
* wip
* First page styling
* Implement first pageToShow
* Add contractParams page
* Add deployable via proxy and factory
* Dynamic next button
* New design proxy page
* New design for factory deployment page
* New design for contract parameters
* Small stuff
* Change chainName label width
* Add paste icon
* Extract PasteInput component
* Extra contract params page
* Extract ProxyPage
* Extract factory page
* Rename page to inputGroup
* Extract landing page
* Rename to fieldset
* Add padding to preview
* Use tw Card
* Lot of changes
* Fix build
* Add info to select option, change size of description text
* Fix Next logic
* Default option to what you had before
* Keep dirty fields
* Update info for options
* More updates
* Copy changes
* Edit logic
* make displayName and version required properly
* Fix auto submit issue
* Various changes
* Add placeholders
* Update description
* Make initialize function mandatory
* Add hover on deploy button
* Add semver validation
* Remove comment
* Improve UI for template variables
* Change order around
* Fix typo
* Update publish contract button color
* Remove supported template variable heading
* Fix placeholderVersion NaN
* Fix proxy/factory inputs on mobile
Co-authored-by: Manan Tank <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
* temp
* refactor step 1
* refactor PhaseName
* Remove temp code
* Use CustomFormControl
* Use Context and split inputs to its own file
* Fix the root cause of claims condition form UI issue
* Fix typo
* rp3: reduce layout shift and fade-in the timer
* rp3: content and UI tweaks
* rp3: content and UI tweaks
* rp3: spacing tweaks
* rp3: update casting of title and hackathon date range
* rp3: update end date
* rp3: update end date in schedule
Co-authored-by: Jonas Daniels <[email protected]>
* AddressCopyButton no longer imports Solana and EVM libraries
* AddressCopyButton shorten function checks to see if string is already short
* address copy button only shortens string if string > 13
* AddressCopyButton: refactor & run prettier
Co-authored-by: Manan Tank <[email protected]>
* Fix emotion's string not allowed as css prop error in UpdateNotice
* Move components from claim-conditions.tsx to separate files
* Fix imports of PriceInput and QuantityInputWithUnlimited components
* Footer: Code Refactor + UI Adjustments
* Footer: change type to interface
* Footer: Remove unnecessary Flex wrapper in FooterLinksGrid
* Footer: convert numeric spacing from string to number
* Footer: infer isExternal prop by checking url
* Footer: Use number for numeric values instead of string
* Footer: Replace Stack with Flex
* Footer: use React.FC type for components
Co-authored-by: Jonas Daniels <[email protected]>
* various fixes
* load gradient with priority
* gradient improvements
* bit of opacity fading in
* does not need fading with priority set
* move newsletter section
* revert some dynamic stuff
* add a timeout to privacy notice to prevent flash
* Copy commerce to solutions
* Reuse some components
* Make GuideShowcase commponent
* Update guides
* Update Learn More Cards text
* Update og:title and og:desc
* Add CodeSelector
* Add in partnership with
* Add to footer and mobile menu
* Use GuidesShowcase component on Solana page
* Delete unused imports
* Update gradient
* Update unity code
* Fix deployment
* Update code snippets
* Update react code
* Use CodeSelector component for auth
* add coinbase
* add vercel handling
* fix some basic stuff
* 4px looks better
* fix build
* Refactor city
* Temp commit
* I thought this only happened on Windows, fml
* Make code shorter
* Address most feedback
* Fix docs link
* Add game thumbnails
* Remove unnecessary prop
* Need this image plz
* Add GameShowcase section
* Gaming -> Game
* Update copy
* Update to GamingKit and CommerceKit
* Update menu
* More changes
* Update NFT Lootbox href
* Update text
* various improvements
* better game cards
* address some feedback
* lots of image size related updates
* further fixes
* fix contractkit ts issue
* address a bunch of feedback
* more feedback things
* fix some redirect issues
Co-authored-by: Jonas Daniels <[email protected]>
* Add commerce page
* Fix heading
* Shorter description
* Delete repeated text
* Update for SEO
* Fix correctly
* Fix image and tinify it
* Fix spacing
* Add in partnership with, address most of the feedback
* Add Commemrce to topnav and footer
* Primitives -> Technologies
* Update guide title
* Make image larger
* Pre-built -> Prebuilt
* Add Solutions section to navbar
* Make in partnership an span
* Change button width
* Add spacing
Co-authored-by: Jonas Daniels <[email protected]>
* init contract shelves
* updated styles etc
* update theme
* fix some more stuff
* lots more things
* fix release revalidate api
* lots more things
* reset colors
* navbar change
* fix font stuff
* cleanup pkg json
* unify prefix
* quick and dirty extension bar
* fix various things
* fix some mobile stuff
* switch release upsell messaging
* address a ton of feedback
* shuffle around title stuff
* further improvements
* add deploy upsell to category pages
* fix couple more things
* push up changes so far
* updated claim conditions
* fix several things
* update embed
* allow single phase to be added
* fix claimer snapshot button
* fix it for realz
* fix learn more suffs
* it workz!
* update to re-allow claiming etc
* make it nightly & update sdk
* update to latest SDK with all chains enabled
* fix various claim condition things
* fix snapshot defaults
* change explainer
* fix snapshot with overrides
* fix eiman-bug
* fix small stuff
* maybe we should actually pass the damn data?
* update SDK to fix custom price claims
* update embed uri
* update sdks and embed logic, etc
* actually deploy specific versions for prebuilt contracts
* update to latest dev version of sdk
* driveby add new gnosis safe supported chains
* fix latest deploy on initial load
* stable sdks and embed
* remove withSentry (no longer needed)
Co-authored-by: Joaquim Verges <[email protected]>
* Add displayName/description for contractParams
* Remove logs
* Fix SDK initialization
* Use polygon sdk for anything release related
Co-authored-by: Jonas Daniels <[email protected]>
Google didn't take our metadesc because I wrote "build, launch, and manage web3 apps..." - needs to include copy on the homepage so changed this to "build web3 apps easily" & will be more likely to use it.
"Build, launch, manage" is better messaging & we can switch back to it once we update homepage copy (there have been branding discussions here)
* init next 13
* layout responsive by default again
* more next13 things
* push up
* remove beehiiv embed
* make lgtm happy
* halfway through push up
* push up
* Integrate new claim conditions
* update to latest dev
* patch sdk
* update embed as well
* latest SDK build
* update embeds
* fix ipfs hash
* one more update
* update again
* update to SDK 3.5.0
* Show switch between all/active listings
* Fix lgtm
* Improve logic
* fix various things
* sm button group
Co-authored-by: Jonas Daniels <[email protected]>
* Add mint more supply tab
* Use same structure to concat tab
* Use nightly
* Fix build
* Update nightly
Co-authored-by: Jonas Daniels <[email protected]>
* added more events to solanathon
* changed broken link
* added companies to judges object
* added companies
Co-authored-by: Jonas Daniels <[email protected]>
* init solana dashboard
* some updates
* deploying programs works?
* solana program page is go
* more updates
* various updates and improvements
* git add maybe?
* working state
* working minting / nft list
* working drop lazy mint + latest nightly
* dashboard works
* forgot to add things
* fix various small things
* fix rpc
* implement token page + code organization
* update SDK
* rename accounts to program
* implement token mint button
* split dashboard into evm vs sol and separate out solana programs
* fix caching
* upgrade to combined sdk
* merge in main
* update to latest nightly SDK
* tabs for days
* lul query client maybe?
* remove unused hook
* add super basic nft drawer
* lots of updates to start on nft drawer etc
* add code tab content
* fix merge conflicts
* pass program address to code tab
* some changes
* some minor updates
* new nft drawer and table
* drawer for solana done (v1)
* fix a bunch of stuff
* fix some tracking
* update nightly
* add programId to program deploy event
* adapt to changes in react lib
* upgrade to dev version
* Add batch upload to Solana (#539)
* First small necessary refactor
* Working version
* Working version with yalc
* Use nightly
* Move everything around
* Remove unused imports
* Fix types
* Add state for hasTried
* Fix conditions
* Add solana
* Move selectedReveal to be part of the form
* Improve logic
* Update dependencies
* Make drawer fullscreen
* Fix hasFailed logic
* Fix types
* Make inputs required conditionally
* Fix types
* Make loading work
* Remove repeated code
* Remove unused
* Pass progress as a prop
* Move common files to core-ui
* massive cleanup
Co-authored-by: Jonas Daniels <[email protected]>
* feat(faucet): build solana faucet (#528)
* feat(faucet): build solana faucet
* chore: update names
* fix: type
Co-authored-by: Jonas Daniels <[email protected]>
* fix: minor stuff
Co-authored-by: Jonas Daniels <[email protected]>
* fix: feedback
* feat: minor improvements
* feat: add faq section
* refactor: refactor faq
* add accordion
* minor fix
Co-authored-by: Jonas Daniels <[email protected]>
* tiny fix
* Revert batch upload styles (#541)
* Fix typo, fix drawer width
* Revert to old batch upload styles
* Fix some more styles
* Fix progress bar styles
* Update to using TWRegistry
* [Solana] Add claim conditions to NFT Drop (#542)
* Add tab and getter
* Working version
* Delete unused imports
* Currency selector works but I hate it
* Add maxClaimable
* Fix build issue
* Make batch upload work again
* Fix claim conditions for devnet
* Test fix
* Delete console.logs
* A lot of solana stuff (#545)
* Remove unused banner
* Hide Claim Conditions tab for no drops
* Add loading state
* Remove comment
* Add helper text for nft drop supply
* Delete log
* Add loading state to program list
* Add redirect if you don't have any program deploys
* Add default instant reveal for Solana
* Fix styles
* Fix logic
* doc fixes
* fix(faucet): minor issues (#543)
* fix(spacing): fix spacing in faq
* feat: some updates from feedback
* fix: use linkButton
* feat: use fetch
* remove test code
* fix: err handling
* pass err
* fix sucecss state
* fix: link
* some updates
* small fixes
Co-authored-by: Nacho Iacovino <[email protected]>
* update to latest nightly
* fix up form and update deps
* Add claim button to Solana (#555)
* wip
* Add claim buttons, fix warning, disable buttons conditioanlly
* Use nightly
* Delete unused import
* Solana hackathon landing (#554)
* feat: build hackathon page (#547)
* wip: build hackathon page
* add some more stuff
* feat: responsievness and some minor stuff
Co-authored-by: Nacho Iacovino <[email protected]>
* First section
* Fix PrizeSection
* Add link to register now
* Add judges and footer
* Update startTime for hackathon
* Fix Schedule
* Add tracking
* Add pageId
* Prettier?
* Prettier again
* Prettier you're drunk
* This is my life now
* Remove unused import
* Add og metadata
* Update SEO
Co-authored-by: Avneesh Agarwal <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
* Add solana landing page (#556)
* Add landing page for Solana
* Add solana landing page
* Add shopify landing
* Add shopify
* Remove quote
* Add meta tags
* Add landing page updates
* Add links
* small cleanups
* fix various & pagination on nft table solana
* Show unclaimed instead of tokenId for lazy minted tokens
* add full install command for solana react
* show create cli command in code tab for react
* add funds notice for solana
* add various things
* various updates
* various updates
* updated some guides and copy based on juan feedback
* Fix Solana faucet link
* Add disclaimer on how to deploy with Devnet
* Small fixes
* Update guidelines
* Fix currency selector bug
* Update hero copy
* fix build issues
* update to latest
* link solana cards
* Add partners
* update og images for shopify & solana
* Add solanathon og:image
* copy changes
* Update image size
* Center sponsors
Co-authored-by: Joaquim Verges <[email protected]>
Co-authored-by: Nacho Iacovino <[email protected]>
Co-authored-by: Avneesh Agarwal <[email protected]>
Co-authored-by: Nacho Iacovino <[email protected]>
Co-authored-by: Adam Majmudar <[email protected]>
* Rename extensions to be contract kit
* rename extensions.tsx page to contract-kit.tsx
* Contract Kit -> ContractKit
* Footer - don't open product pages in new tab
* Remove external link icon from get started button on product landing pages
* contract-kit in urls to contractkit
* add redirect from extensions -> contract kit
* Add permanent:false to extensions -> contractkit redirect
* Expose proxy deploy flow for released contracts
* disable chain ids that don't have implementations
* update imports
* add factory/proxy to tracking event
* add s_factory on deploy too
* Update contract extension links to point to /extensions not /contracts. Update a few old links to point to correct new place rather than redirect. Fix broken royalty link
* fix
* fix again
* Revert
Co-authored-by: Nacho Iacovino <[email protected]>
* use dev sdks
* upgrade dev versions
* upgrade to nightly
* upgrade embeds
* fix default color option
* fix small issue
* fix uri issues for ipfs resolution
* update sdks again
* move over the last prebuilt pages and use nightly
* fix lint
* update to latest dev
* remove log
* fix various more things
* upgrade to @nightly
* fix lister for creating listings
* update dependencies to solve token metadata issue
* Create released contracts component
* Pass address as prop
* A lot ot stuff, make stuff nice
* Clean imports
* Fix build
* Add visit profile button
* Fix releases not showing correctly
* No need for this
* Remove selectable
* Small stuff
* Merge
* Don't show projects on releaser profile
* Working version, only mainnets
* Only fetch mainnets on releaser page
* Improve loading and fetched states
* Copy update
* Fix only showing mainnets for ens
Co-authored-by: Jonas Daniels <[email protected]>
* Make nft drop contracts use custom contract page
* Fix claim conditions detection of token drop
* Hide tab until we fix erc20 cc
* Fix hooks
* Fix lgtm
* Add MinterOnly checks
* Only show burn/transfer/airdrop if balance > 0
* Fix token balance
* Fix lgtm
* Redirect old urls
* Delete console.logs
* Fix import
* Add claim conditions banner
* Use old code tab for prebuilts
* Disable add button when conditions are saving
* Only show banner to admins
* Remove eslint disable
* Use activeChainId
* Don't render Drawer if not minter
* Clean stuff
* Stop breaking react
* Improvypvyvpy
* Show button but disable it
* Save omg
Co-authored-by: Jonas Daniels <[email protected]>
* Hide release notes on first release, default version to 1.0.0
* Fix conditional logic
* Add logo input
* Disable logo input when wallet disconnected
* Update batch upload icon
* Add audit input
* Move logo placement
* Render contract logo
* Render logo on release page
* Add audit link
* Fix lgtm
* Add links to portal for extensions
* Fix conditional
* Fix lgtm
* Replace hexagon with circle
* Display logo in contract list
* Fix lgtm
* Add released on timestamp
Co-authored-by: Jonas Daniels <[email protected]>
* Fix infinite skeleton on first release
* Just in case
* Delete log
* Replace isStale for isFetching
Co-authored-by: Jonas Daniels <[email protected]>
* Move ABI to bottom inside accordion, show OZ contracts
* Merge branch 'main' of https://github.com/thirdweb-dev/dashboard
* Add learn more button
* Stop filtering out extensions
* Add all product pages and navbar
* Make bold text inline
* Fix bold font size
* a bunch of updates
* remove isExternal from mobile menu for products
* make hero image priority
* make buttons external if they start with "http"
* fix dashboard get started link
Co-authored-by: Jonas Daniels <[email protected]>
* Add detection for erc721
* Erc721 claim conditions working
* Add Claim Conditions for ERC1155
* Reset claim conditions work
* Fix logic for multiPhase
* Fix detectClaimable check
* This works but I hate it
* Clean console.logs
* Stop yalcing
* Add tracking
* Fix UI
* update to latest react sdk
Co-authored-by: Joaquim Verges <[email protected]>
* Add Copy ABI to relases
* Use Accordion, fix types
* Move accordion to own component
* Fix condition
* Move stuff around
* Rename source to sources
* Simplify logic
* Simplify logic in sources tab
* Fix abi type
* Fix more abi types
* Prettier did this
* Fix lgtm
* Get ABI from deployed contract
* Fix query
* Get ABI for prebuilts
Co-authored-by: Jonas Daniels <[email protected]>
* Move remove button to settings tab
* Make on dashboard one single component
* Remove unused imports
Co-authored-by: Jonas Daniels <[email protected]>
* Working for nft with yalc
* Add detected extension
* Add token burn, use dev release of react sdk
* Use new hook instead of old mutation
* Update react dev SDK
* Add clarification text
* Add mint additional supply tab
Co-authored-by: Jonas Daniels <[email protected]>
* Working hardcoded version
* Fetch correct contract for each prebuilt
* Fix lgtm
* Hardcode latest version, not main
Co-authored-by: Jonas Daniels <[email protected]>
* Working for nft with yalc
* Add detected extension
* Add token burn, use dev release of react sdk
* Use new hook instead of old mutation
* Update react dev SDK
* Add clarification text
* Number -> parseInt
Co-authored-by: Jonas Daniels <[email protected]>
* Events tab working
* Fix to only use one component
* Add events to release page
* Fix icon
* Remove console.log
* Refactor a bit
* Fix key
Co-authored-by: Jonas Daniels <[email protected]>
* Add lineheight, add s when plural to licenses
* Fix link
* Change divider color
* Make avatar clickable on release contract page
* Reword asset role
* More reword
* various quick wins
* fix more various things, unify table for functions, variables, events, etc
* input types table and markdown parsing for the fn comments
* attempt to fix the drawer behavior
* Add table styles
* Working version with basic data
* Working for Erc721
* Use react dev build
* Only render one drawer
* Fix transfer tab for erc1155
* Delete unused stuff
* Fix logic
* Fix tab styles
* Move details to default tab
* Open from right side
* Add airdrop tab
* Add tracking to token transfer
* small cleanups
* slightly more small updates
Co-authored-by: Jonas Daniels <[email protected]>
* Edit header
* First working version
* Delete learn more
* Delete unused imports
* Show 2.0.0 for our pre-builts
* Change CTA to Deploy
* Add released by
* Link to releaser page
* Link to deploy page
* Fix back button
* Some more reorder
* Re-order
* UI small changes
* Fix loading logic
* fix various small things
* small other improvement
Co-authored-by: Jonas Daniels <[email protected]>
* much longer cache for releases
* lots of cache changes etc
* fix vercel url issue
* fix small further things
* only revalidate on actions that actually cause caches to get stale
* Make deploy from release a drawer
* Fix spacing
* Fix menu going off-screen
* Remove another instance of matchWidth
Co-authored-by: Jonas Daniels <[email protected]>
* Make two batch files into one
* Disable Delayed Reveal on Edition Drop
* Don't use full width drawer for airdrop/snapshot
* big wip
* Detect correct feature
* Make it work
* phrasing plz
* Fix lgtm
* Update SDK
* various released contract improvements
* fix contract image stuff
* fix link
* try it with readonlyRpc setup
* try it with default polygon
* add note
* etherscan verification API
* Add info hints for arrays and struct inputs (#241)
* Add placeholder text for arrays and structs
* Update spacing
* Update JSON message
* Add testnet support for new contracts (#226)
* Add testnet support for new contracts
* Fix already selected chain
* Sig drop coming soon
* Enable multiwrap on mainnets
* Fix pack url and disable on l2 testnets
Co-authored-by: Jonas Daniels <[email protected]>
* Fix push to previous route (#229)
* Fix push to previous route
* Merge branch 'main' of https://github.com/thirdweb-dev/dashboard into ni/push-to-previous-route
* Prettier error and tx responses on contract explorer (#243)
Add tx hash
Co-authored-by: Joaquim Verges <[email protected]>
* Enable signature drop custom page (#230)
* WIP of enabling signature drop
* Update SDK
* Fix copy
* fix build error
* Reset to empty array if maxClaimable 0
* Consistent methods
* Fix filter
* Fix build
* Add embed
* Fix useEffect
Co-authored-by: Joaquim Verges <[email protected]>
* Fix single NFT lazy mint on Signature Drop (#246)
Fix single NFT lazy mint
* Add activity tab to custom contracts (#245)
* Move activity display to activity tab
* Add new activity table
* Update padding on accordion
* Show at most 2 events on a row
* Removed unused imports
* polish ui
* ui polish
* log RPC url
* add readonly settings
* switch to default providers
* update latest SDK, cleanup
* show error message when contract is not released
Co-authored-by: Adam Majmudar <[email protected]>
Co-authored-by: Nacho Iacovino <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
* Edit works
* Logic check
* Better logic check
* Fill the form with existing data
* Add table to page
* Fix link
* Grab description/version with disconnected wallet
* Fix props
* Simplify code
* Update size
* some extra polish, show bio
Co-authored-by: Joaquim Verges <[email protected]>
* Move activity display to activity tab
* Add new activity table
* Update padding on accordion
* Show at most 2 events on a row
* Removed unused imports
* Add testnet support for new contracts
* Fix already selected chain
* Sig drop coming soon
* Enable multiwrap on mainnets
* Fix pack url and disable on l2 testnets
Co-authored-by: Jonas Daniels <[email protected]>
* wip
* Redirect to /deploy namespace
* Prettier
* Add dependency array
* Fix build?
* Fix build
* Make release and deploy the same structure
* Fix mobile
* fix redirect logic and table prop
* remove unused prop
* restore changes from main lost from refactor
* redirect to deploy page after publish
* small polish on deploy contract form
* move padding up to card level
Co-authored-by: Joaquim Verges <[email protected]>
* Only publish one contract
* Working with version form
* Add title
* Add changelog
* Disable input if not connected wallet
* Add prepublish
* Working version
* show version insteaf of ABI for published contract rows
* small polish
* remove 'v' from version
* Address feedback
* Add custom image
* Fix bugs, update text
* Fix lgtm
* change text to release terminology
* change link
Co-authored-by: Joaquim Verges <[email protected]>
* Update privacy/tos notice
* Rename NightlyNotice -> PrivacyNotice
* fix form
* do not flicker modal during loading of state
Co-authored-by: Jonas Daniels <[email protected]>
* Move learn more
* Redirect to /contracts if no contracts found
* Hide navbar connect wallet to avoid duplication
* Track wallet_connected and connector
* Register chainId and balance
* Fix learn more placement
* Remove unreachable code
* Only redirect when fetched
* Fix magic register
* Edge case of projects but no contracts
* Delete console.log
* Update sdk
* Wip permissions page
* make it build... does it work? maybe!
* add new dev build of react sdk
* Fix lgtm
* Add loading
* Make permissions generic
Co-authored-by: Nacho Iacovino <[email protected]>
* Add learn more cards
* Fix lgtm
* make it shippable
* add a bit of delight on the icons
* adhere to solidity brand guidelines
Co-authored-by: Jonas Daniels <[email protected]>
* Make it available to deploy
* actually update the sdk...
* use the `pre-built-contracts/` path
* built-in -> pre-built
Co-authored-by: Jonas Daniels <[email protected]>
* extract contract metadata
* feature detection top level maybe
* remove unused stuff
* add tos and privacy policy
* more padding
* add privacy and tos and update feature url
* upgrade sdk
* halfway
* better network switching
* remove leftIcons with transactionButton
* just also disallow leftIcon on transaction button
* better wording
* some further updates
* fix proposal button
* Rename ListAndTransfer to Transfer
* Rename
* Burn working on ERC-1155
* Burn working on ERC-721
* Cleanup
* Invalidate supply
* Supply is not a key
* Fix invalidate
* Fix icons
* Remove supply
Co-authored-by: Jonas Daniels <[email protected]>
* Parse description in NFT table
* Use pre-wrap
* Use Tooltip/Text and limit noOfLines
* Move borderRadius
Co-authored-by: Jonas Daniels <[email protected]>
* Filter if value is empty
* Remove trait_type if empty
* Add to the other token contracts
* Move onSubmit inside component
* fix minor things
* Add parsedArray
* Fix lgtm
Co-authored-by: Jonas Daniels <[email protected]>
* Default embed to mint tab
* Default to attributes on batch upload and tables
* Default to attributes on single NFT upload too
* Delete console.log
* Update SDK
* WIP multi-json upload
* Work for one or multiple files
* Rename variable
* Accept single NFT object file
* Clean old code
* Reuse code and apply to EditionDrop
* Fix wrong file check
* Fix type
Co-authored-by: Ibrahim Ahmed <[email protected]>
* Add new empty states, fix no empty state on NFT drop
* Update wallet illustration
* Update contract-emptystate.tsx
Co-authored-by: Jonas Daniels <[email protected]>
* Add mapping
* Basic modal with gas price
* Fetch gas price from etherscan
* Only 4 decimals
* Make /gas a page
* Create gas endpoint
* Show USD value
* Built switch
* Linting
* Make ETH the default
* Prettier pls
* Fix styles
* Fix corner
* Border color change
* Add useGas query
* Add defaults
* Fetch data only once
* Use try/catch and promise.all
* Consistent naming
* Move default inside parenthesis
* Use parenthesis
* Prettier pls
* Add undefined to possible type
* Fix error status
* Add key directly to query
* Add links to portal
* Add tooltips
* Add disclaimer
* Add ethereum badge
* Add external link icon
* Make Switch smaller
* Use semantic borderColor
* Add SEO and tracking
* Track portal links
* Improve SEO
* Add mapping
* Basic modal with gas price
* Fetch gas price from etherscan
* Only 4 decimals
* Make /gas a page
* Create gas endpoint
* Show USD value
* Built switch
* Linting
* Make ETH the default
* Prettier pls
* Fix styles
* Fix corner
* Border color change
* Add useGas query
* Add defaults
* Fetch data only once
* Use try/catch and promise.all
* Consistent naming
* Move default inside parenthesis
* Use parenthesis
* Prettier pls
* Add undefined to possible type
* Fix error status
* Add key directly to query
* Add links to portal
* Add tooltips
* Add disclaimer
* Add ethereum badge
* Add external link icon
* Make Switch smaller
* Use semantic borderColor
* Add SEO and tracking
* Add mapping
* Basic modal with gas price
* Fetch gas price from etherscan
* Only 4 decimals
* Make /gas a page
* Create gas endpoint
* Show USD value
* Built switch
* Linting
* Make ETH the default
* Prettier pls
* Fix styles
* Fix corner
* Border color change
* Add useGas query
* Add defaults
* Fetch data only once
* Use try/catch and promise.all
* Consistent naming
* Move default inside parenthesis
* Use parenthesis
* Prettier pls
* Add undefined to possible type
* Fix error status
* Add key directly to query
* Add links to portal
* Add tooltips
* Add disclaimer
* Add ethereum badge
* Add external link icon
* Make Switch smaller
* Use semantic borderColor
* Reset claim eligibility and date picker in time zone
* Reset claim eligibility and date picker in time zone
* Reset eligibility doesn't ruin price
* upgrade embeds & sdk
* upgrade sdk to stable
Co-authored-by: Jonas Daniels <[email protected]>
You can find a full video tutorial on how to contribute to thirdweb below:
https://www.youtube.com/watch?v=TXsQ3qok3B0
## Getting Started
To get started, read the [How this repo works](#how-this-repo-works) section below to learn about the structure of this repo.
@@ -12,24 +8,19 @@ From there, you can take a look at our [Good First Issues](https://github.com/th
If you have any questions about the issue, feel free to ask on our [Discord server](https://discord.gg/thirdweb) in the `#contributors` channel; where you'll be able to get help from our team and other contributors.
<br/>
<br/>
## How this repo works
[@thirdweb-dev/js](https://github.com/thirdweb-dev/js) is a monorepo, meaning it contains many projects within it.
We use [Turborepo](https://turbo.build/repo/docs) to manage the repository, and help speed up the [CI/CD](https://www.atlassian.com/continuous-delivery/principles/continuous-integration-vs-delivery-vs-deployment) pipeline to ship to production faster 🚢. Turborepo is a project dependency, and doesn't need to be installed separately.
We use [Turborepo](https://turborepo.org/docs/getting-started) to manage the monorepo, and help speed up the [CI/CD](https://www.atlassian.com/continuous-delivery/principles/continuous-integration-vs-delivery-vs-deployment) pipeline to ship to production faster 🚢.
We use [pnpm](https://pnpm.io) for package management across the repo. `pnpm` is similar to `npm` or `yarn` but with more efficient disk space usage.
You can see a quick outline of each of the projects within this repo below, each living within the [/packages](/packages) directory:
**With the v5 SDK, we've consolidated everything into a single project at [/packages/thirdweb](./packages/thirdweb). You can still find the legacy packages at [/legacy_packages](./legacy_packages).**
| [/sdk](./packages/sdk) | Best in class web3 SDK for Browser, Node and Mobile apps | <a href="https://www.npmjs.com/package/@thirdweb-dev/sdk"><img src="https://img.shields.io/npm/v/@thirdweb-dev/sdk?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/react](./packages/react) | Ultimate collection of React hooks for your web3 apps | <a href="https://www.npmjs.com/package/@thirdweb-dev/react"><img src="https://img.shields.io/npm/v/@thirdweb-dev/react?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/auth](./packages/auth) | Best in class wallet authentication for Node backends | <a href="https://www.npmjs.com/package/@thirdweb-dev/auth"><img src="https://img.shields.io/npm/v/@thirdweb-dev/auth?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/storage](./packages/storage) | Best in class decentralized storage SDK for Browser and Node | <a href="https://www.npmjs.com/package/@thirdweb-dev/storage"><img src="https://img.shields.io/npm/v/@thirdweb-dev/storage?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/cli](./packages/cli) | Publish and deploy smart contracts without dealing with private keys | <a href="https://www.npmjs.com/package/thirdweb"><img src="https://img.shields.io/npm/v/thirdweb?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/solana](./packages/solana) | Solana SDK for Browser, Node and React Native | <a href="https://www.npmjs.com/package/@thirdweb-dev/solana"><img src="https://img.shields.io/npm/v/@thirdweb-dev/solana?color=red&label=npm&logo=npm" alt="npm version"/></a> |
This single package provides a performant & lightweight SDK to interact with any EVM chain across Node, React, and React Native. Learn more about how to use the thirdweb SDK in our [documentation](https://portal.thirdweb.com/typescript/v5).
<br />
## How to contribute
@@ -37,7 +28,7 @@ Let's explore how you can set up the repo on your local machine and start contri
This section requires some existing knowledge of [Git](https://git-scm.com/), [Node.js](https://nodejs.org/en/) and [pnpm](https://pnpm.io/).
<br/>
<br/>
### Getting the repo
@@ -51,64 +42,123 @@ To begin:
3. Create a new branch on your fork to start working on your changes:
```
git checkout -b MY_BRANCH_NAME
```bash
git checkout -b <YOUR BRANCHNAME>
```
4. Install the dependencies:
```
```bash
pnpm install
```
If you are on windows, use the `--ignore-scripts` flag
```
```bash
pnpm install --ignore-scripts
```
Now you have got the repo on your local machine, and you're ready to start making your changes!
Now you have the repo on your local machine, and you're ready to start making your changes!
<br/>
### Test Your Changes
We use [yalc](https://github.com/wclr/yalc) to test changes locally.
#### Writing Unit Tests
Install the yalc CLI globally:
Try to include unit test coverage with your changes where appropriate. We use `vitest` for testing, look for files with the `.test.ts` extension for examples of how to structure your unit tests.
To run your tests, run the following from the package directory (most likely /packages/thirdweb):
```bash
pnpm add yalc -g
pnpm test:dev <YOUR TEST FILE PATH>
```
First, create a test project where you can experiment with your changes:
> Specifying your test file path is optional, but will save time by only running specific tests each time. Before opening your PR, run `pnpm test` from the monorepo root (without specifying your test file) to ensure your changes didn't break any existing tests.
You can create a basic starter project with the `sdk` and `react` packages installed using the CLI:
Many of the tests use forked versions of live chains like mainnet. We fork these chains at a specific arbitrary block number so results are consistent across test runs. If you're interacting with on-chain data, you can write tests that interact with real contracts at the same block number by using `FORKED_ETHEREUM_CHAIN`. However, if you don't need to interact with existing contracts, we recommend running your tests against `ANVIL_CHAIN`.
If you need to use accounts in your tests, use the predefined accounts in `test/src/test-wallets.ts`. These are the default anvil accounts that are pre-funded on the local test forks.
#### Linting
We use a linter to maintain best practices across projects. Once your changes are complete (or periodically while making changes), run the linter with the following command from the repo root:
```bash
npx thirdweb create --app
pnpm lint
```
Use `yalc` to link your local changes in the monorepo to the test project, by running the following command from your test repo:
If there are errors, try running `pnpm fix` to auto-fix any basic errors. Other linter errors, like missing documentation, will need to be fixed manually. See existing files for examples of inline documentation.
```bash
yalc add @thirdweb-dev/react # Link the react package
yalc add @thirdweb-dev/sdk # Link the sdk package
# etc...
#### Testing on the Demo Apps
You can test your changes on any of the demo apps within the `/apps` directory without linking or publishing your changes to npm. When you run `pnpm dev` from the root directory, turbo will start the demo apps and watch the dependent packages for changes. Any time you make a change anywhere in the repo, the apps will hot reload and the changes will be reflected in the browser.
#### Testing from npm
You can also test your changes by publishing a dev package to npm and adding your package as you normally do in your projects.
**Once you have your PR up** you can add a comment with the text: `/release-pr`. This will trigger a GitHub action that will publish a dev version to npm.
You can see the action progress in GitHub's `Actions` tab, look for the workflow: `release-pr`.
Once the action finishes executing, select it, click on deploy and look for the `Deploy pre-release` item. Scroll all the way to the bottom and you should see something like:
From the monorepo, run the following command to publish your local changes to the test project:
These are the versions the GH action published to npm for testing purposes. Let's assume you're working on the `@thirdweb-dev/react` package, you can then run:
```bash
pnpm push
```
Now, each time you make a change to the monorepo, you can run `pnpm push` to publish your changes to the test project.
In your test project, you need to:
1. Delete the dependencies cache. If you're using Next.js, that is the `.next` directory, and if you're using CRA, that is the `node_modules/.cache` directory.
2. Restart the development server.
`yarn add @thirdweb-dev/react@0.0.0-dev-06a7cb1-20230901190619` to install the dev package.
<br/>
### Test Your Changes (React Native)
The repository does not yet have a React Native playground, so some additional steps are needed to test any React Native SDK changes.
#### Create a Local React Native Project
For ease of setup, we recommend using the React Native SDK template project as a local testing playground. To generate this project, just run `npx thirdweb create --react-native`.
#### Linking Your Local Changes
To use the local version of the SDK while listening for changes in your React Native project, we'll use [wml](https://www.npmjs.com/package/wml). To install wml, run `npm i -g wml`.
Once installed, edit the project's `package.json` so the thirdweb package points to your local version of the repository (rather than a version number). It should look something like this:
Now we'll add a wml link between your React Native project and this local repository:
```bash
wml add /[Path to this repository on your machine]/packages/thirdweb /[Path to your RN project]/node_modules/thirdweb
```
Run `wml list` to confirm you've added the connection successfully.
Now run `wml start` to start the connection between your two projects. wml will watch for changes in the first directory you specified and copy them to the second.
However, for this to work you'll also need to setup [watchman](https://facebook.github.io/watchman/) on wml (confusing, I know). First, install watchman with homebrew or another installer.
Once watchman is installed, find where wml's src is. You can normally do this by running `which wml` to find your node directory, then adding `/lib/node_modules/wml/src` from the root path of your current node version. It should look something like this: `/Users/me/.nvm/versions/node/v20.13.0/lib/node_modules/wml/src`
Now, run watchman on this path with `watchman watch /Users/me/.nvm/versions/node/v20.13.0/lib/node_modules/wml/src`
Finally, navigate to the V5 SDK package with `cd packages/thirdweb` and run it in dev mode to rebuild on changes with `pnpm dev:esm`.
You should now have:
1. `wml` running in one terminal window, watching your local SDK and your React Native project
2. `watchman` set to watch your `wml` src directory
3. `pnpm dev:esm` running in `packages/thirdweb`
4. The "thirdweb" dependency in your RN `package.json` pointing to `packages/thirdweb` of your local version of this repository
Try making changes in the SDK to see if they affect your React Native project. If they don't, try deleting your RN project `node_modules`, reinstalling via yarn (the preferred package manager for React Native), and trying again.
### Publish Your Changes
Once you're satisfied with your changes, you are ready to submit them for review!
@@ -134,9 +184,7 @@ git commit -am "My commit message"
3. Push your changes to the SDK:
```
git push origin MY_BRANCH_NAME
git push origin <YOUR BRANCHNAME>
```
4. Create a [pull request](https://www.atlassian.com/git/tutorials/making-a-pull-request) to the `main` branch of the official (not your fork) SDK repo.
It's helpful to tag PRs with `[SDK]`, `[REACT]`, `[AUTH]`, (the name of the package you're modifying) to indicate the package that you are engaging with.
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
steps:
- name:Checkout repository
uses:actions/checkout@v3
- name:Checkout repository
uses:actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name:Initialize CodeQL
uses:github/codeql-action/init@v2
with:
languages:${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# Initializes the CodeQL tools for scanning.
- name:Initialize CodeQL
uses:github/codeql-action/init@v3
with:
languages:${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name:Autobuild
uses:github/codeql-action/autobuild@v2
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name:Autobuild
uses:github/codeql-action/autobuild@v3
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
| [/sdk](./packages/sdk) | Best in class web3 SDK for Browser, Node and Mobile apps | <a href="https://www.npmjs.com/package/@thirdweb-dev/sdk"><img src="https://img.shields.io/npm/v/@thirdweb-dev/sdk?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/react](./packages/react) | Ultimate collection of React hooks for your web3 apps | <a href="https://www.npmjs.com/package/@thirdweb-dev/react"><img src="https://img.shields.io/npm/v/@thirdweb-dev/react?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/react-native](./packages/react-native) | Ultimate collection of React hooks for your native mobile web3 apps | <a href="https://www.npmjs.com/package/@thirdweb-dev/react-native"><img src="https://img.shields.io/npm/v/@thirdweb-dev/react-native?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/auth](./packages/auth) | Best in class wallet authentication for Node backends | <a href="https://www.npmjs.com/package/@thirdweb-dev/auth"><img src="https://img.shields.io/npm/v/@thirdweb-dev/auth?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/storage](./packages/storage) | Best in class decentralized storage SDK for Browser and Node | <a href="https://www.npmjs.com/package/@thirdweb-dev/storage"><img src="https://img.shields.io/npm/v/@thirdweb-dev/storage?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/cli](./packages/cli) | Publish and deploy smart contracts without dealing with private keys | <a href="https://www.npmjs.com/package/thirdweb"><img src="https://img.shields.io/npm/v/thirdweb?color=red&label=npm&logo=npm" alt="npm version"/></a> |
- Support for React & React-Native
- First party support for [Embedded Wallets](https://portal.thirdweb.com/connect/embedded-wallet/overview) (social/email login)
- First party support for [Account Abstraction](https://portal.thirdweb.com/connect/account-abstraction/overview)
- Instant connection to any chain with RPC Edge integration
- Integrated IPFS upload/download
- UI Components for connection, transactions, nft rendering
- High level contract extensions for interacting with common standards
- Automatic ABI resolution
## Documentation
## Library Comparison
Visit [https://portal.thirdweb.com/](https://portal.thirdweb.com/) to view the full documentation.
| Embedded wallet (email/ social login) | ✅ | ⚠️via 3rd party | ❌ |
| Account abstraction (ERC4337) support | ✅ | ⚠️via 3rd party | ❌ |
| Web3 wallet connectors | ✅ | ✅ | ❌ |
| Local wallet creation | ✅ | ✅ | ✅ |
| Auth (SIWE) | ✅ | ✅ | ❌ |
| Extensions functions for common standards | ✅ | ✅ | ❌ |
| React Hooks | ✅ | ✅ | ❌ |
| React UI components | ✅ | ❌ | ❌ |
| React Native Hooks | ✅ | ✅ | ❌ |
| React Native UI Components | ✅ | ❌ | ❌ |
## Contributing
We welcome contributions from all developers, regardless of experience level. If you are interested in contributing, please read our [Contributing Guide](.github/contributing.md) where you'll learn how the repo works, how to test your changes, and how to submit a pull request.
We welcome contributions from all developers regardless of experience level. If you are interested in contributing, please read our [Contributing Guide](.github/contributing.md) to learn how the repo works, how to test your changes, and how to submit a pull request.
<br />
See our [open source page](https://thirdweb.com/open-source) for more information on our open-source bounties and program.
## Community
## Additional Resources
The best place to discuss your ideas, ask questions, and troubleshoot issues is our [Discord server](https://discord.gg/thirdweb).
This repo contains the full source for all of thirdweb.com and the thirdweb dashboard.
## Starting a local dev server
Run from the root folder (thirdweb-dev/js):
```sh
cd <path/to/thirdweb-dev/js>
pnpm dashboard
```
### Building for production
```sh
pnpm build
```
### Environment Variables
Some env vars can be overridden that are required for some external services to work. You can find them in the `.env.example` file at the root level of the project including some descriptions of what they are used for.
To define env vars please create a `.env` file based on the `.env.example` template at the root level of the project. This file is ignored by git so you can safely add it to your local copy of the project.
**Add your thirdweb clientID and secret key to build a basic functioning version of the site.**
Some files were not shown because too many files have changed in this diff
Show More
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.