8370 Commits
Author SHA1 Message Date
Joaquim Verges ffaff744f7 refactor: separate native exports for cb wallet [part 1] (#3298) 2024-06-14 18:37:23 +00:00
Firekeeper 198f72c493 [Unity] fix tx builder type parsing (#3317) 2024-06-14 18:20:49 +00:00
5cb580e99e Version Packages (#3316)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
@thirdweb-dev/[email protected] @thirdweb-dev/[email protected] @thirdweb-dev/[email protected] @thirdweb-dev/[email protected] @thirdweb-dev/[email protected] @thirdweb-dev/[email protected] @thirdweb-dev/[email protected] [email protected]
2024-06-14 11:12:41 -07:00
jnsdls 4112dcf4cc feat: add 'AddChainToWallet' button and integrate it into ChainPageLayout (#2666)
- 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 -->
2024-06-14 17:30:48 +00:00
Manan Tank eff710738c [v4 react] Allow configuring qrcode and qrModalOptions on various wallet configurators (#3315) 2024-06-14 17:28:41 +00:00
Jonas Daniels fb6a07d4b8 [Multi] Optimize package.json types versions & update ERC4337 factory methods (#3318) 2024-06-14 17:19:35 +00:00
YashandJonas Daniels 7768067bf4 Modular contracts (#2880)
Signed-off-by: Yash <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
2024-06-14 16:32:34 +00:00
joaquim-verges 9fcd00ae08 Update thirdweb packages to latest versions (#2664)
<!-- 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 -->
2024-06-14 16:01:02 +00:00
5ece04cdc0 Version Packages (#3287)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
@thirdweb-dev/[email protected] @thirdweb-dev/[email protected] @thirdweb-dev/[email protected] @thirdweb-dev/[email protected] @thirdweb-dev/[email protected] @thirdweb-dev/[email protected] @thirdweb-dev/[email protected] @thirdweb-dev/[email protected] @thirdweb-dev/[email protected] [email protected]
2024-06-14 20:10:01 +12:00
gregandJoaquim Verges 1b15e7b1f2 docs: add examples for defineChain usage (#3308)
Co-authored-by: Joaquim Verges <[email protected]>
2024-06-14 18:48:02 +12:00
greg a4086c6a39 refactor(constants): rename ADDRESS_ZERO to ZERO_ADDRESS and deprecate older name (#3307) 2024-06-14 06:16:41 +00:00
gregandJoaquim Verges 1aaa63eec7 fix(wallets): don't serialize eip5792 calls (#3306)
Co-authored-by: Joaquim Verges <[email protected]>
2024-06-14 06:16:02 +00:00
greg 502c53ac0b fix(tests): zk AA tests (#3313) 2024-06-14 05:42:36 +00:00
kien-ngo c72a0537c0 Fix relayer table fails to load custom chain (#2661)
<!-- start pr-codex -->

## PR-Codex overview
This PR updates components to handle missing chain names gracefully.

### Detailed summary
- Added fallback for missing chain names with "N/A"
- Updated chain name display in multiple components
- Added `AddressCopyButton` import for contract subscriptions

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

<!-- end pr-codex -->
2024-06-14 04:16:37 +00:00
jnsdls b5024e6b91 fix: correct toggleService logic in filters.tsx (#2660)
<!-- 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 -->
2024-06-14 02:10:33 +00:00
jnsdls 9656c9cd4a feat: display total and filtered chain counts in chain list (#2659)
<!-- 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 -->
2024-06-14 00:56:44 +00:00
jnsdls e251dacaf5 chore: change no-restricted-syntax rule for useEffect selector to error in .eslintrc.js (#2658)
<!-- 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 -->
2024-06-14 00:39:22 +00:00
jnsdls c4a382185d refactor: remove useEffect wherever possible (#2657)
<!-- start pr-codex -->

## PR-Codex overview
This PR focuses on addressing code quality issues related to `useEffect` usage.

### Detailed summary
- Added comments for legitimate use cases
- Added `TODO` and `FIXME` comments for tracking and reworking code logic
- Removed unnecessary files and imports

> The following files were skipped due to too many changes: `src/contract-ui/tabs/shared-components/marketplace-table.tsx`, `src/components/settings/Account/Billing/ConnectWallet.tsx`, `src/@3rdweb-sdk/react/hooks/useApi.ts`, `src/components/custom-contract/contract-header/contract-metadata.tsx`, `src/app/components/posthog-pageview.tsx`, `src/components/contract-components/tables/deployed-contracts.tsx`, `src/contract-ui/tabs/events/page.tsx`, `src/components/inputs/BasisPointsInput.tsx`, `src/core-ui/sidebar/tunnel.tsx`, `src/contract-ui/tabs/code/page.tsx`, `src/@/components/ui/tabs.tsx`, `src/components/connect/Carousel.tsx`, `src/components/share-buttom/index.tsx`, `src/contract-ui/tabs/analytics/page.tsx`, `src/components/contract-components/contract-publish-form/custom-factory.tsx`, `src/components/onboarding/index.tsx`, `src/@/components/ui/ScrollShadow/ScrollShadow.tsx`, `src/contract-ui/tabs/permissions/page.tsx`, `src/pages/dashboard/settings/billing.tsx`, `src/contract-ui/tabs/overview/components/PermissionsTable.tsx`, `src/contract-ui/tabs/payments/page.tsx`, `src/tw-components/code-block.tsx`, `src/tw-components/AddressCopyButton.tsx`, `src/contract-ui/tabs/embed/components/embed-setup.tsx`, `src/components/delayed-display/delayed-display.tsx`, `src/app/components/Header/MobileBurgerMenu.tsx`, `src/contract-ui/tabs/overview/components/LatestEvents.tsx`, `src/contract-ui/tabs/events/components/events-feed.tsx`, `src/contexts/configured-chains.tsx`, `src/components/wallets/PosthogIdentifier.tsx`, `src/contract-ui/components/solidity-inputs/address-input.tsx`, `src/contexts/error-handler.tsx`, `src/components/configure-networks/ConfigureNetworkForm.tsx`, `src/tw-components/button.tsx`, `src/app/(dashboard)/(chain)/chainlist/components/client/search.tsx`, `src/components/homepage/CodeBlock/index.tsx`, `src/components/mission/HowSection.tsx`, `src/components/contract-components/contract-publish-form/index.tsx`, `src/pages/dashboard/connect/playground.tsx`, `src/pages/_app.tsx`, `src/components/hackathon/common/Timer.tsx`, `src/pages/dashboard/settings/api-keys/[id].tsx`, `src/pages/cli/login.tsx`, `src/components/hackathon/Timer.tsx`, `src/pages/dashboard/connect/account-abstraction.tsx`, `src/components/engine/overview/backend-wallets-table.tsx`, `src/components/cmd-k-search/index.tsx`, `src/pages/dashboard/connect/in-app-wallets.tsx`, `src/pages/dashboard/connect/analytics.tsx`, `src/components/engine/contract-subscription/contract-subscriptions-table.tsx`, `src/pages/dashboard/connect/pay.tsx`, `src/components/wallets/ConnectWalletPlayground/Playground.tsx`

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

<!-- end pr-codex -->
2024-06-14 00:14:14 +00:00
jnsdls 11ec9def78 feat: add eslint rule to warn against useEffect (#2656)
<!-- 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 -->
2024-06-14 00:14:02 +00:00
greg e7ba698f3e fix: set default recipients in sigMint and update tests (#3305) 2024-06-13 23:49:35 +00:00
github-actions[bot] 6746416db9 chore(chains): update chains (#3289)
This PR was automatically created by a GitHub Action. It updates the chains package with the latest changes from the database.
2024-06-13 16:09:10 -07:00
kien-ngo bf7d1da172 Fix Engine UI crash when chain is undefined | DASH-42 (#2654)
<!-- 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 -->
2024-06-13 17:00:34 +00:00
jnsdls 9601678552 feat: compare contractAddress and chainId in PrimaryDashboardButton component (#2655)
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 -->
2024-06-13 16:48:34 +00:00
fivecut 2fb81bd4b7 chore: remove repeat words (#3297)
Signed-off-by: fivecut <[email protected]>
2024-06-13 15:57:16 +00:00
greg 841c86aa12 feat: add export private key functionality (#3296) 2024-06-13 05:57:18 +00:00
Alec Ananian 132b3cb45a feat(react): add ability to pass ReactNode for ConnectButton label (#3292) 2024-06-12 23:20:38 +00:00
Alec AnanianandJoaquim Verges b248afc160 fix(react): use custom title and icon in compact Connect modal (#3290)
Co-authored-by: Joaquim Verges <[email protected]>
2024-06-12 22:53:34 +00:00
kien-ngo 5787a064c0 Show asset contract address in listing-drawer (#2652)
<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 -->
2024-06-12 21:31:57 +00:00
github-actions[bot] 9f42e4d241 chore(chains): update chains (#3279)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-12 10:37:25 -07:00
MananTank a99ffad2ab Fix broken link in chainlist page for contracts service (#2651)
<!-- 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 -->
2024-06-12 16:37:49 +00:00
Winston Yeo 901427c33c [service-utils]: update usage tracker schema (#3286) 2024-06-12 16:22:00 +00:00
MananTank 73a989844b Show Favorite chains in NetworkSelector Button (#2644)
<!-- 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 -->
2024-06-12 06:34:54 +00:00
jnsdls 28ab8905d0 chore: update dependencies in package.json and pnpm-lock.yaml (#2650)
<!-- 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 -->
2024-06-12 06:19:55 +00:00
jnsdls fe8746d9b4 refactor: remove duplicate res.body?.cancel() calls and optimize fetch usage (#2649)
<!-- 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 -->
2024-06-12 06:05:59 +00:00
arcoraven be37969d27 feat: Request to cancel engine subscription (#2639)
<!-- 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 -->
2024-06-12 06:05:56 +00:00
62ee972a20 Version Packages (#3234)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
@thirdweb-dev/[email protected] @thirdweb-dev/[email protected] @thirdweb-dev/[email protected] @thirdweb-dev/[email protected] @thirdweb-dev/[email protected] @thirdweb-dev/[email protected] @thirdweb-dev/[email protected] @thirdweb-dev/[email protected] @thirdweb-dev/[email protected] @thirdweb-dev/[email protected] [email protected]
2024-06-12 16:52:09 +12:00
jnsdls eb9cfdb104 refactor: remove force-cache from ChainIcon fetch method (#2647)
<!-- 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 -->
2024-06-12 04:37:16 +00:00
Joaquim Verges 84e07fa9d5 fix tsdoc (#3282) 2024-06-12 15:41:25 +12:00
0ef7d6c0a8 fix ConnectEmbed example in playground (#3247)
Co-authored-by: Manan Tank <[email protected]>
Co-authored-by: greg <[email protected]>
Co-authored-by: Joaquim Verges <[email protected]>
2024-06-12 14:41:38 +12:00
jnsdls 018230ca67 chore: remove unused import in ConnectWallet component (#2646)
<!-- 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 -->
2024-06-12 01:36:25 +00:00
Manan Tank 7dec4d049d Prevent autoConnect from running again on window focus (#3280) 2024-06-12 00:14:21 +00:00
Joaquim Verges 3a1fd985fc Align inAppWallet secret sharing implementation with web and previous RN SDK (#3271) 2024-06-11 23:45:10 +00:00
Firekeeper 5698b0c5a9 [v4 & v5] zkCandy Sepolia AA Support (#3278) 2024-06-11 22:08:34 +00:00
greg 6a48b62783 fix(tests): update eth_signTypedData to eth_signTypedData_v4 in session_request tests (#3268) 2024-06-11 21:47:55 +00:00
github-actions[bot] 668e3b9333 chore(chains): update chains (#3276)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-11 13:47:05 -07:00
kumaryash90 d39d92086d Enable deployment for zkcandy sepolia testnet (#2645)
<!-- 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 -->
2024-06-11 19:22:24 +00:00
MananTank 3831fe8fc0 Restore deleted V4ToV5SignerAdapter (#2643)
<!-- 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 -->
2024-06-11 17:55:20 +00:00
greg 7afd2dac0a Adds options refetchInterval and retry params to useReadContract (#3273) 2024-06-11 17:29:29 +00:00
Manan Tank 3948f4320c Wallet connection manager fixes (#3264) 2024-06-11 16:55:49 +00:00
jnsdls 9e077f2096 feat: add revalidation to fetch calls in chain-icon and utils (#2642)
<!-- 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 -->
2024-06-11 16:54:20 +00:00