2009 Commits
Author SHA1 Message Date
Jonas Danielsandgithub-actions[bot] 5dcc8c57ab Version Packages (#3426)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-27 10:27:48 -07:00
Jonas Daniels d908851504 [Chore] Rename .changeset/v4-changesets-apply-later directory to .v4-changesets-apply-later for consistency (#3526) 2024-06-26 21:36:09 -07:00
jnsdls 6b6c03563e [Chore] Update dependencies and refactor changesets directory structure (#3525)
### 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).

---
2024-06-27 04:21:19 +00:00
gregfromstl c330d0d815 fix(ens): enhance ENS resolution tests and error handling (#3513)
<!-- 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 -->
2024-06-27 03:41:20 +00:00
MananTank 16ea2bc684 Fix openWindow not working inside iframe (#3521)
<!-- 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 -->
2024-06-27 03:25:53 +00:00
jnsdls 7be7b6ff84 [Fix] Prevent overriding gasLimit and maxFeePerGas settings if already present (#3519)
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 -->
2024-06-26 11:52:40 +00:00
Jonas Daniels 7b70919507 [Chore] Update .changeset/config.json to add new package and adjust build scripts (#3500) 2024-06-25 18:57:36 -07:00
Jonas Daniels aa72b675ac [Chore] Update .changeset/config.json to remove deprecated entries (#3496) 2024-06-25 17:07:08 -07:00
Jonas Daniels 3ee99e59d8 [Chore] Update configs and scripts (#3495) 2024-06-25 17:00:42 -07:00
kumaryash90 28ed28a8e9 ZkSync addresses update (#3492)
<!-- 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 -->
2024-06-25 22:13:27 +00:00
kien-ngo 88070422ff Export getClaimConditionById for Drop1155 (#3481)
<!-- 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 -->
2024-06-25 19:39:36 +00:00
MananTank 9d65979d49 [v4] Fix buy with Crypto error when using InApp wallet (#3476)
<!-- 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 -->
2024-06-24 23:47:23 +00:00
CryptoFennecandManan Tank 70b31ddcd0 Fixed switch chain on WalletConnect (#3465)
Co-authored-by: Manan Tank <[email protected]>
2024-06-24 12:38:05 -07:00
IDubuque 860f61c727 Isaac/pay usage tracker schema (#3447)
## 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 -->
2024-06-24 19:10:32 +00:00
Manan Tank 02a70b928d Pay UI improvements (#3421) 2024-06-24 14:53:01 +00:00
gregfromstl 224463175e [Feature] Add session transaction storage (#3451)
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 -->
2024-06-23 21:35:20 +00:00
gregfromstl 4490a68c68 feat(cli): add --expo option to CLI for creating Expo projects (#3455) 2024-06-23 07:59:47 +00:00
jnsdls eaa509359f [Refactor] Remove unused ConnectUIContext and refactor wallet connection components (#3449)
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 -->
2024-06-23 00:05:29 +00:00
0xFirekeeper ab460230fb Unity 4.16.5 (#3446)
<!-- 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 -->
2024-06-22 10:19:41 +00:00
gregfromstl fe775166d4 [Chore] Add missing walletconnect exports to RN wallet exports (#3444)
### 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.

---
2024-06-21 19:53:42 +00:00
kumaryash90 ea46c70d7a Fix eip155 check (#3443)
<!-- 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 -->
2024-06-21 19:19:35 +00:00
gregfromstl a3a4008831 feat(wallets): add disconnect functionality to WalletConnectReceiverScreen (#3429)
<!-- 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 -->
2024-06-21 03:23:30 +00:00
gregfromstl 6429acc1f7 feat(wallets): Adds dawn wallet support (#3381)
Adds Dawn Wallet since it's WC settings filter it out
2024-06-20 20:55:05 +00:00
kumaryash90 6abdb45f6a Override contract publish id on CLI (#3424)
<!-- 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 -->
2024-06-20 20:28:20 +00:00
Jonas Daniels fab5cd43be Update changesets and dependencies (#3428) 2024-06-20 12:06:37 -07:00
Jonas Daniels 5b8471355c [Chore] Remove unused changesets: chilly-phones-sort.md, khaki-penguins-swim.md (#3427) 2024-06-20 11:08:20 -07:00
gregfromstl b24e9b2320 feat(wallet): add support for ecosystem wallets (#3270)
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 -->
2024-06-20 16:46:37 +00:00
6e6ab8753d Version Packages (#3423)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-06-20 09:29:11 -07:00
Manan Tank de354305ee Fix Connect UI not able to connect to unknown injected wallet + Fix icon, autoConnect (#3422) 2024-06-20 20:57:44 +05:30
b5a7b9d6d9 Version Packages (#3379)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-06-20 18:01:58 +12:00
joaquim-verges 6818c1194b refactor: update mobile upload to use getClientFetch for fetching (#3417)
<!-- 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 -->
2024-06-20 03:57:30 +00:00
gregfromstl e117ab34e0 fix(dashboard): renames NFT Properties to Attributes in UI to match metadata (#3404)
<!-- 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 -->
2024-06-20 03:27:56 +00:00
jnsdls 5ca9094e26 update dependencies: (#3414)
<!-- start pr-codex -->

## PR-Codex overview
This PR updates dependencies, enables linter rules, and refactors styled components in various files.

### Detailed summary
- Updated `ora` dependency to version `^8.0.1`
- Added `"@typescript-eslint/no-unused-vars": "warn"` to ESLint config
- Updated `@swc/cli` dependency to version `0.3.12`
- Enabled linter rules in `biome.json`
- Refactored styled components in multiple files

> The following files were skipped due to too many changes: `packages/thirdweb/src/react/web/ui/components/formElements.tsx`, `packages/thirdweb/src/react/web/ui/components/modalElements.tsx`, `legacy_packages/unity-js-bridge/package.json`, `legacy_packages/react/src/wallet/ConnectWallet/screens/Buy/swap/SwapScreen.tsx`, `legacy_packages/react/src/wallet/ConnectWallet/Modal/ConnectModalInline.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectModalInline.tsx`, `legacy_packages/crypto/package.json`, `legacy_packages/chains/package.json`, `legacy_packages/merkletree/package.json`, `packages/thirdweb/src/react/web/ui/ConnectWallet/MenuButton.tsx`, `packages/thirdweb/src/react/web/wallets/in-app/LinkButton.tsx`, `legacy_packages/react/src/wallet/wallets/embeddedWallet/LinkButton.tsx`, `packages/thirdweb/src/react/web/ui/components/Overlay.tsx`, `packages/thirdweb/src/react/web/ui/components/OTPInput.tsx`, `legacy_packages/react/src/components/OTPInput.tsx`, `legacy_packages/react/src/wallet/wallets/safe/SelectAccount.tsx`, `legacy_packages/react/src/wallet/ConnectWallet/Details.tsx`, `legacy_packages/eslint-config-thirdweb/package.json`, `.changeset/khaki-apricots-turn.md`, `legacy_packages/react/src/components/Drawer.tsx`, `legacy_packages/react/src/components/text.tsx`, `packages/thirdweb/src/react/web/ui/components/Drawer.tsx`, `packages/thirdweb/src/react/web/ui/components/text.tsx`, `legacy_packages/wallets/package.json`, `legacy_packages/react/src/wallet/ConnectWallet/screens/SwapTransactionsScreen.tsx`, `packages/thirdweb/src/react/web/ui/components/buttons.tsx`, `legacy_packages/auth/package.json`, `legacy_packages/react/src/components/basic.tsx`, `legacy_packages/storage/package.json`, `.vscode/settings.json`, `packages/thirdweb/src/react/web/ui/components/basic.tsx`, `legacy_packages/react-core/package.json`, `packages/thirdweb/src/react/web/ui/ConnectWallet/NetworkSelector.tsx`, `legacy_packages/react/src/wallet/ConnectWallet/NetworkSelector.tsx`, `legacy_packages/react/src/components/buttons.tsx`, `packages/react-native-adapter/package.json`, `legacy_packages/react/src/components/modalElements.tsx`, `packages/service-utils/package.json`, `legacy_packages/cli/package.json`, `apps/playground-web/src/icons/sdks/UnityIcon.tsx`, `legacy_packages/sdk/package.json`, `legacy_packages/react/package.json`, `apps/playground-web/src/icons/sdks/TypeScriptIcon.tsx`, `apps/playground-web/src/components/ui/button.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx`, `apps/playground-web/package.json`, `apps/playground-web/src/icons/sdks/SolidityIcon.tsx`, `package.json`, `apps/dashboard/package.json`, `apps/playground-web/src/icons/thirdweb.tsx`, `packages/thirdweb/package.json`, `apps/playground-web/src/icons/sdks/PythonIcon.tsx`, `apps/playground-web/src/icons/sdks/DotNetIcon.tsx`, `apps/playground-web/src/icons/sdks/GoIcon.tsx`, `apps/playground-web/src/icons/products/contracts/ContractBuildIcon.tsx`, `apps/playground-web/src/icons/products/payments/PaymentsNFTCheckoutIcon.tsx`, `apps/playground-web/src/icons/products/payments/PayIcon.tsx`, `apps/playground-web/src/icons/products/contracts/ContractPublishIcon.tsx`, `apps/playground-web/src/icons/products/wallets/WalletsAuthIcon.tsx`, `apps/playground-web/src/icons/products/contracts/ContractExploreIcon.tsx`, `apps/playground-web/src/icons/solutions/GamingIcon.tsx`, `apps/playground-web/src/icons/products/wallets/WalletsConnectIcon.tsx`, `apps/playground-web/src/icons/products/contracts/ContractDeployIcon.tsx`, `apps/playground-web/src/icons/products/wallets/WalletsInAppIcon.tsx`, `apps/playground-web/src/icons/products/contracts/ContractInteractIcon.tsx`, `apps/playground-web/src/icons/products/infra/InfraRPCIcon.tsx`, `apps/playground-web/src/icons/products/infra/InfraStorageIcon.tsx`, `apps/playground-web/src/icons/products/payments/PaymentsSponsoredIcon.tsx`, `apps/playground-web/src/icons/products/wallets/WalletsSmartIcon.tsx`, `apps/playground-web/src/icons/products/infra/InfraEngineIcon.tsx`, `apps/playground-web/src/components/ui/dropdown-menu.tsx`, `apps/playground-web/src/icons/sdks/ReactIcon.tsx`, `pnpm-lock.yaml`

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
2024-06-20 02:01:29 +00:00
gregfromstl 29a643df2c fix(wallets): always pass a string for in-app wallet signatures (#3411)
### 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 -->
2024-06-20 01:32:14 +00:00
d88203a981 feat(react): add useWalletDetailsModal.open.onDisconnect prop to respond to disconnections (#3387)
Co-authored-by: Manan Tank <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
2024-06-20 13:28:58 +12:00
gregfromstl 33777df88f fix(dashboard): can update image when no existing one (#3406)
### 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 -->
2024-06-19 22:47:22 +00:00
gregfromstl ff75450c11 feat(wallets): add watchAsset functionality to wallet API (#3388)
### 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 -->
2024-06-19 03:15:45 +00:00
gregfromstl ac5bb56a2d refactor: update icon usage in ConnectWallet component (#3309)
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 -->
2024-06-19 02:39:59 +00:00
Alec AnanianandManan Tank 8d7f8db39a fix(react): return type on useConnectModal.connect (#3385)
Co-authored-by: Manan Tank <[email protected]>
2024-06-19 11:07:43 +12:00
kien-ngo 4484fd02bb Edition Drop extension: updateMetadata + few others (#3376)
<!-- 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 -->
2024-06-18 23:02:35 +00:00
gregfromstl 48569fb15e fix(wallets): fix walletconnect mobile modal (#3386)
<!-- 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 -->
2024-06-18 21:24:32 +00:00
MananTank 85b12c7a69 Fix React warning when clicking copy address button (#3384)
<!-- 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 -->
2024-06-18 20:54:02 +00:00
Manan Tank 4cfb492bfc Add purchaseData parameter for pay quote APIs (#3326) 2024-06-18 20:30:57 +00:00
github-actions[bot] e441adf4f3 chore(chains): update chains (#3365)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-18 12:36:28 -07:00
fa4db2233c Version Packages (#3367)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-06-18 13:03:53 +12:00
jnsdls b808652805 [Fix] Handle special case for localhost in development environment in isThirdwebUrl function (#3369)
### 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 -->
2024-06-18 00:13:02 +00:00
joaquim-verges 9dd1b5a5eb fix: signing raw messages in ethers adapter (#3366)
<!-- 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 -->
2024-06-17 23:42:44 +00:00
449ae19f94 Version Packages (#3352)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-06-18 10:08:57 +12:00
joaquim-verges 7304c5b0c7 refactor: respect Coinbase wallet optons when preloading (#3364) 2024-06-17 21:46:10 +00:00
joaquim-verges 2d7ebe2111 fix: ConnectButton custom theme + customized component in playground (#3356) 2024-06-17 20:36:44 +00:00