Commit Graph
3150 Commits
Author SHA1 Message Date
MananTank df4da68d68 [TOOL-3128] SDK: Fix typo in deployPublishedContract JSDoc example (#5977) 2025-01-17 21:10:03 +00:00
kumaryash90 dbb64ea190 [SDK] Update implementations (#5973)
TOOL-3135

## Notes for the reviewer
Anything important to call out? Be sure to also clarify these in your comments.

## How to test
Unit tests, playground, etc.

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on updating the implementations for `MarketplaceV3` and `ZKSYNC_WETH` in the `thirdweb` package, specifically for the `zksync` deployment.

### Detailed summary
- Added a new entry for `MarketplaceV3` with the address `0x9EB0830B0b10010F2a53383517A7D0B75531Bb1b` for the network ID `[555271]`.
- Added a new entry for `ZKSYNC_WETH` with the address `0xb0b8b267d44c64BA6dD1Daf442949887c85199f6` for the network ID `[555271]`.

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

<!-- end pr-codex -->
2025-01-17 16:09:44 +00:00
Joaquim Verges eed734c766 [SDK] feat: Add pay event tracking for transaction modal states (#5971) 2025-01-17 13:11:41 +13:00
MananTank 4ffcf305ab [TOOL-3096] React SDK: Fix NFT components not including contract address in queryKey (#5966)
<!-- start pr-codex -->

## PR-Codex overview
This PR focuses on improving the handling of NFT metadata in the `thirdweb` library by adding `contractAddress` to various query keys, which resolves issues with metadata caching when multiple contracts share the same token ID.

### Detailed summary
- Added `contractAddress` to the query keys in `getQueryKey` functions for `NFTName`, `NFTMedia`, and `NFTDescription`.
- Updated related queries to include `contractAddress`.
- Fixed metadata display issues when rendering multiple contracts with the same token ID.
- Enhanced tests in `name.test.tsx` and `media.test.tsx` to validate the new `contractAddress` parameter.

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

<!-- end pr-codex -->
2025-01-16 20:48:24 +00:00
Joaquim Verges 9f5510018e docs: Reorder sidebar groups and update claim params tags (#5969) 2025-01-17 09:33:39 +13:00
dependabot[bot] da4ba21a52 build(deps-dev): bump react-native from 0.76.5 to 0.76.6 (#5943)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-17 08:23:49 +13:00
greg 9cbcbe7760 [SDK] Fix: Lumia Testnet is pre-1559 (#5967) 2025-01-16 10:51:16 -08:00
Joaquim Verges a834199dac [SDK] test: Refactor smart wallet signature verification tests (#5962) 2025-01-16 14:46:18 +13:00
Joaquim Verges 51a28c4ed6 [SDK] test: Skip Nebula AI tests by default (#5961) 2025-01-16 12:11:12 +13:00
Nischit Prasad Nhuchhe Pradhan c290997b11 track ratelimit only on creation (#5950) 2025-01-15 15:17:12 +08:00
Jonas Danielsandgithub-actions[bot] 81b146a87a Version Packages (#5921)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-15 15:03:18 +13:00
Joaquim Verges b10f306fba feat: Add Nebula AI chat and transaction execution API (#5948) 2025-01-15 14:50:13 +13:00
Joaquim Verges d1c03b0cbc [SDK] Feat: Add engineAccount() for backend transaction handling (#5947) 2025-01-15 14:36:24 +13:00
ElasticBottle 7a3dff01cd [SDK]: move autoConnect function into it's own standalone function (#5889)
---
title: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"
---

https://linear.app/thirdweb/issue/TOOL-2697/add-js-autoconnect

## Notes for the reviewer
Anything important to call out? Be sure to also clarify these in your comments.

## How to test
Unit tests, playground, etc.

<!-- start pr-codex -->

---

## PR-Codex overview
This PR primarily focuses on refactoring the auto-connect functionality for wallets in the `thirdweb` library. It enhances the modularity and usability of the `autoConnect` feature, allowing it to be used outside of React components and streamlining wallet connection processes.

### Detailed summary
- Modified `if` condition in `timeoutPromise.ts` to check for `typeof window`.
- Updated import paths for `AutoConnectProps` in `AutoConnect.tsx` files.
- Exposed `autoConnect` function in `wallets.ts` for external use.
- Adjusted exports in `react.ts` and `react.native.ts` for `AutoConnectProps`.
- Refactored `useAutoConnectCore` to use `autoConnectCore`.
- Consolidated wallet connection logic in `autoConnect` and `autoConnectCore`.
- Updated tests to reflect changes in wallet connection handling and added new test cases for `autoConnect`.
- Enhanced error handling and timeout logic in wallet connection processes.

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

<!-- end pr-codex -->
2025-01-14 17:43:36 +00:00
greg e331e433ac [SDK] Refactor: More Viem to Ox migration (#5790) 2025-01-14 09:43:18 -08:00
Nischit Prasad Nhuchhe Pradhan 23d80011de Auth cache key fix (#5949) 2025-01-14 19:56:47 +08:00
MananTank 0e2b3df42a [TOOL-3009] Dashboard: Support all valid domains as ENS name and not just .eth (#5937)
<!-- start pr-codex -->

## PR-Codex overview
This PR introduces the `isValidENSName` utility function to validate ENS names, replacing the previous `isEnsName` checks across multiple files. It refines address validation and enhances the overall handling of ENS names within the codebase.

### Detailed summary
- Added `isValidENSName` utility function for ENS name validation.
- Replaced occurrences of `isEnsName` with `isValidENSName` in various files.
- Updated validation logic in components and utilities to improve address and ENS name handling.
- Enhanced error messages and conditions related to ENS name checks.

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

<!-- end pr-codex -->
2025-01-13 18:18:06 +00:00
ElasticBottle c33980352a [Portal] update docs on pre-generation and account abstraction (#5912)
https://linear.app/thirdweb/issue/TOOL-2988/update-docs-to-call-out-pregeneration-caveats

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing documentation and functionality related to wallet connections and smart accounts in the `thirdweb` library, particularly emphasizing account abstraction and the use of smart wallets.

### Detailed summary
- Added `backend` to the `AuthList` component in `AuthList.tsx`.
- Updated documentation in `ConnectEmbed.tsx` and `ConnectButton.tsx` regarding ecosystem wallets and account abstraction.
- Introduced a warning callout in `page.mdx` for generating smart wallet addresses using `predictSmartAccountAddress`.

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

<!-- end pr-codex -->
2025-01-13 18:01:22 +00:00
MananTank 4b5661b981 [TOOL-3007] Dashboard: Replace chainsaw with insight (#5926)
<!-- start pr-codex -->

## PR-Codex overview
This PR focuses on enhancing the analytics functionality within the `dashboard` application by introducing new utility functions, updating existing API calls, and improving the data handling for contract analytics.

### Detailed summary
- Added export of `toEventSelector` from `thirdweb/utils`.
- Introduced `INSIGHT_SERVICE_API_KEY` in environment constants.
- Modified `ContractAnalyticsPageClient` to accept new props for function and event selectors.
- Created new analytics functions for total contract events, unique wallets, and transactions.
- Updated `isAnalyticsSupportedForChain` to use `INSIGHT_SERVICE_API_KEY`.
- Refactored analytics components to use new hooks for contract events and functions.
- Improved data fetching and error handling in analytics hooks.
- Enhanced UI components for displaying analytics data with loading states.

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

<!-- end pr-codex -->
2025-01-11 00:22:11 +00:00
kumaryash90 42a313f3b2 [SDK/Dashboard] Fix: Deploy specified version of published contracts (#5923)
TOOL-3013
TOOL-3014

## Notes for the reviewer
Anything important to call out? Be sure to also clarify these in your comments.

## How to test
Unit tests, playground, etc.

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on updating the deployment process for contracts in the `thirdweb` package, including changes to version handling and contract IDs.

### Detailed summary
- Updated `version` handling in the `custom-contract.tsx` file.
- Changed `contractId` from `"Forwarder"` to `"ForwarderEOAOnly"` in `deploy-pack.ts`.
- Added `version` to the options in `deployMarketplaceContract`.
- Modified `getAllDefaultConstructorParamsForImplementation` to use a dynamic `contractId`.

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

<!-- end pr-codex -->
2025-01-10 18:57:04 +00:00
Joaquim Verges 7fb5ce1cc3 [SDK] fix: Reset deploy flag on bundler errors (#5924) 2025-01-10 21:40:43 +13:00
MananTank c5c6f9d741 [TOOL-2999] SDK: automatically sign message for SIWE in connect UI for Ecosystem wallets (#5914)
---
title: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"
---

If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):

## Notes for the reviewer
Anything important to call out? Be sure to also clarify these in your comments.

## How to test
Unit tests, playground, etc.

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on improving the `SignatureScreen` component by updating the signing flow for different wallet types and enhancing the user experience by removing unnecessary prompts for signing messages.

### Detailed summary
- Added `isHeadlessSignSupported` function to determine wallet support.
- Updated `SignatureScreen` logic to handle headless signing for supported wallets.
- Refactored tests to improve clarity and organization.
- Enhanced error handling and loading states in the UI.
- Introduced mocks for `useActiveWallet` and `useAdminWallet` in tests.

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

<!-- end pr-codex -->
2025-01-09 16:22:25 +00:00
Jonas Danielsandgithub-actions[bot] b14aa54a6e Version Packages (#5917)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-09 22:53:56 +13:00
Joaquim Verges 5d71415618 [SDK] Fix: PayEmbed purchase callback and insufficient funds display (#5918) 2025-01-09 22:41:16 +13:00
Jonas Daniels bfc4778334 fix RPC pathname override behavior (#5915) 2025-01-08 13:32:11 -08:00
Jonas Danielsandgithub-actions[bot] b2b5ae34e6 Version Packages (#5909)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-07 22:11:49 -10:00
dependabot[bot] d53a5c16c2 Bump @tanstack/react-query from 5.62.7 to 5.62.16 (#5898)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-07 18:23:49 -10:00
ElasticBottle 70b7b5c5ff [SDK]: add backend wallets for in app wallet (#5878)
---
title: "[SDK] Feature: add backend wallets for  in app wallet"
---

https://linear.app/thirdweb/issue/TOOL-2884/backend-server-wallets

## Notes for the reviewer
This also fixes the cache mechanics for thirdweb clients to include a partial string of the secret key. Was running into an issue where the client was originall instantiated without the secret key and even when a new client with secret key was passed in, we keep falling back to the cached client without secret key

## How to test
Add a button on playground with a client that has secret key and create a new backend wallet.

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces support for backend wallets in the `thirdweb` library, allowing applications to authenticate users with a backend strategy, enhancing security by managing wallet access without exposing private keys.

### Detailed summary
- Added `backend` strategy for wallet authentication.
- Updated `authenticate` function to support `backend` strategy.
- Introduced `backendAuthenticate` function for backend authentication.
- Updated `InAppWebConnector` and `InAppNativeConnector` to handle `backend` strategy.
- Modified type definitions to include `backend` strategy.
- Added tests for `backendAuthenticate` and its integration in connectors.

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

<!-- end pr-codex -->
2025-01-08 03:29:00 +00:00
kumaryash90 5e2eec3b17 Fix batch fetch util for marketplace-v3 (#5904)
---
title: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"
---

CORE-680

## Notes for the reviewer
Anything important to call out? Be sure to also clarify these in your comments.

## How to test
Unit tests, playground, etc.

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on fixing the batch fetching utility in the `marketplace-v3` and adding tests to ensure its functionality.

### Detailed summary
- Fixed the calculation of the end index in the batch fetching logic in `packages/thirdweb/src/extensions/marketplace/utils.ts`.
- Added tests for `getAllInBatches` in `packages/thirdweb/src/extensions/marketplace/getAllInBatches.test.ts` to validate handling of multiple and single batches.

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

<!-- end pr-codex -->
2025-01-07 22:18:18 +00:00
MananTank 53b24a2a0e [TOOL-2976] Bump @radix-ui/react-dialog 1.1.4 - Fix pointer event issues after modal close (#5905)
---
title: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"
---

If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):

## Notes for the reviewer
Anything important to call out? Be sure to also clarify these in your comments.

## How to test
Unit tests, playground, etc.

<!-- start pr-codex -->

---

## PR-Codex overview
This PR primarily focuses on updating the version of `@radix-ui/react-dialog` from `1.1.3` to `1.1.4` across multiple `package.json` files and making adjustments to the `pnpm-lock.yaml` file to reflect these changes.

### Detailed summary
- Updated `@radix-ui/react-dialog` from `1.1.3` to `1.1.4` in:
  - `apps/portal/package.json`
  - `apps/wallet-ui/package.json`
  - `apps/dashboard/package.json`
  - `apps/playground-web/package.json`
- Adjusted `pnpm-lock.yaml` to reflect the new version of `@radix-ui/react-dialog`.
- Updated various entries related to `@radix-ui/react-dialog` in `pnpm-lock.yaml` to align with the new version.

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

<!-- end pr-codex -->
2025-01-07 20:39:49 +00:00
Jonas Danielsandgithub-actions[bot] 2d996ccfa3 Version Packages (#5901)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-06 21:54:48 -10:00
gregfromstl 429e1127b2 [SDK] Feature: Basic EIP7702 Support (#5801)
<!-- start pr-codex -->

## PR-Codex overview
This PR introduces beta support for `EIP-7702` authorization lists, enhancing transaction handling and signing within the `thirdweb` library.

### Detailed summary
- Added `style` configuration in `biome.json`.
- Introduced `signAuthorization` function for EIP-7702 authorizations.
- Updated transaction preparation to include `authorizationList`.
- Added tests for `signAuthorization` and transaction serialization.
- Modified `serializeTransaction` to handle EIP-7702 transactions.
- Enhanced gas estimation and transaction preparation functions to support authorization lists.

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

<!-- end pr-codex -->
2025-01-07 05:19:12 +00:00
Nicholas St. Germain c06ecda43c [TOOL-2917]: fix useReadContract type hinting (#5888) 2025-01-06 16:12:47 -10:00
greg b058f688a7 [SDK] Feature: Adds deploySmartAccount and re-adds 1271 signatures (#5845) 2025-01-06 16:12:05 -10:00
kien-ngo 9bc788427e [TOOL-2924] Catch error on fail-to-load metadata (#5892)
TOOL-2924
2025-01-06 21:58:19 +00:00
Jonas Danielsandgithub-actions[bot] dd4b1e86e9 Version Packages (#5838)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-07 09:21:14 +13:00
greg e01193a659 [SDK] Feature: Adds getAdminAccount to ecosystem wallets and cleans up smart account creation (#5829) 2025-01-05 19:40:13 -10:00
kien-ngo 47789660d2 CORE-458 | Improve the function comment of the Explorer (#5861)
CORE-458
2025-01-05 23:06:03 +00:00
kien-ngo 810f319579 [SDK] onTimeout for useAutoConnect | TOOL-2673 (#5879)
TOOL-2673

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces an `onTimeout` callback to the `useAutoConnect` hook, enhancing its functionality by allowing users to define custom behavior when a connection attempt times out. It also includes tests for the new feature and refactors some wallet connection logic.

### Detailed summary
- Added `onTimeout` callback to `useAutoConnect`.
- Updated `useAutoConnectCore` to handle wallet connections with the new `onTimeout` feature.
- Refactored `handleWalletConnection` function to improve clarity.
- Added unit tests for `getUrlToken` covering various scenarios.
- Updated test configurations for better matching of test files.

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

<!-- end pr-codex -->
2025-01-05 21:40:06 +00:00
greg 1e8ddcb399 [SDK] Fix: Undefined chain ID on eip1193 provider input (#5871) 2025-01-04 21:33:17 -10:00
greg 273a320ae8 [SDK] Fix: Remove co.lobstr (not EVM compatible) (#5869) 2025-01-03 14:26:52 -10:00
Kien Ngo 3b1ed73d07 TOOL-2831 - Update docs for showTestnetFaucet (#5868) 2025-01-03 12:39:00 -10:00
Phillip Ho 8f43aa7a81 [SDK] fix: clear inflightRequests after each batch RPC call (#5872) 2025-01-03 12:38:34 -10:00
Nicholas St. Germainandgreg 5cb8e3b7dc return address type for contractoptions (#5874)
Signed-off-by: greg <[email protected]>
Co-authored-by: greg <[email protected]>
2025-01-03 12:36:35 -10:00
Nicholas St. Germainandgreg 0c5b0bb541 [TOOL-2875] move cross-spawn to dependencies (#5875)
Co-authored-by: greg <[email protected]>
2025-01-03 12:34:47 -10:00
Nicholas St. Germain cd06b10253 Expose social icons (#5876) 2025-01-03 12:29:56 -10:00
gregfromstl a9547c561f [SDK] Fix: Use transaction-specified chain in smart account (#5865)
<!-- start pr-codex -->

## PR-Codex overview
This PR focuses on fixing chain switching in smart account transactions within the `thirdweb` SDK and adding tests for sending transactions across different chains.

### Detailed summary
- Updated the logic for `accountContract` in `packages/thirdweb/src/wallets/smart/index.ts` to handle chain switching.
- Added a new test in `packages/thirdweb/src/wallets/smart/smart-wallet-integration.test.ts` to verify sending transactions on another chain.
- Introduced similar test functionality in `packages/thirdweb/src/wallets/smart/smart-wallet-integration-v07.test.ts`.

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

<!-- end pr-codex -->
2025-01-02 01:36:47 +00:00
greg fdf3d5bd9d [Portal] Fix: Add erc20Value clarity to buyFromListing (#5854) 2024-12-30 07:36:25 -10:00
kien-ngo 03bf859809 [SDK] Test coverage TOOL-2241 (#5826)
Holiday project.
Basically trying to improve test coverage, especially in those low-haning-fruit utils files

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing documentation, improving error handling, and adding tests across various modules in the codebase. It also corrects minor typos and ensures better code readability.

### Detailed summary
- Added `@internal` documentation comments to `Queue` and `convertViemChain`.
- Updated test cases to use `await expect(...)` for consistency.
- Fixed typos in file imports and function names.
- Introduced new tests for `namehash`, `encodeLabelhash`, and `parseNFT`.
- Enhanced error handling in `parseNftUri`.
- Improved the `toSemver` function and its tests.
- Added tests for `replaceBigInts` and `toHex` functions.

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

<!-- end pr-codex -->
2024-12-28 07:17:26 +07:00
d4mr 71eaf8f050 [SDK] Fix: allow 0 values for gasPrice (#5841)
## Problem solved

Allow `0` value for gasPrice, important for gasless chains
Fixes TOOL-2865

<!-- start pr-codex -->

---

## PR-Codex overview
This PR modifies the conditional check for `gasPrice` in the `fee-data.ts` file to ensure it specifically checks if `gasPrice` is of type `bigint` instead of just checking its truthiness.

### Detailed summary
- Changed the condition from `if (gasPrice)` to `if (typeof gasPrice === "bigint")` in the `fee-data.ts` file.
- This ensures that only values of type `bigint` are considered valid for `gasPrice`.

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

<!-- end pr-codex -->
2024-12-27 20:00:33 +00:00