<!-- 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 -->