@thirdweb-dev/[email protected]
6261
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
b5394b5471 |
build(deps-dev): bump @babel/plugin-transform-private-methods from 7.24.1 to 7.24.7 (#3361)
Bumps [@babel/plugin-transform-private-methods](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-private-methods) from 7.24.1 to 7.24.7. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/babel/babel/releases"><code>@babel/plugin-transform-private-methods</code>'s releases</a>.</em></p> <blockquote> <h2>v7.24.7 (2024-06-05)</h2> <h4>🐛 Bug Fix</h4> <ul> <li><code>babel-node</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16554">#16554</a> Allow extra flags in babel-node (<a href="https://github.com/nicolo-ribaudo"><code>@nicolo-ribaudo</code></a>)</li> </ul> </li> <li><code>babel-traverse</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16522">#16522</a> fix: incorrect <code>constantViolations</code> with destructuring (<a href="https://github.com/liuxingbaoyu"><code>@liuxingbaoyu</code></a>)</li> </ul> </li> <li><code>babel-helper-transform-fixture-test-runner</code>, <code>babel-plugin-proposal-explicit-resource-management</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16524">#16524</a> fix: Transform <code>using</code> in <code>switch</code> correctly (<a href="https://github.com/liuxingbaoyu"><code>@liuxingbaoyu</code></a>)</li> </ul> </li> </ul> <h4>🏠 Internal</h4> <ul> <li><code>babel-helpers</code>, <code>babel-runtime-corejs2</code>, <code>babel-runtime-corejs3</code>, <code>babel-runtime</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16525">#16525</a> Delete unused array helpers (<a href="https://github.com/blakewilson"><code>@blakewilson</code></a>)</li> </ul> </li> </ul> <h4>Committers: 7</h4> <ul> <li>Amjad Yahia Robeen Hassan (<a href="https://github.com/amjed-98"><code>@amjed-98</code></a>)</li> <li>Babel Bot (<a href="https://github.com/babel-bot"><code>@babel-bot</code></a>)</li> <li>Blake Wilson (<a href="https://github.com/blakewilson"><code>@blakewilson</code></a>)</li> <li>Huáng Jùnliàng (<a href="https://github.com/JLHwung"><code>@JLHwung</code></a>)</li> <li>Nicolò Ribaudo (<a href="https://github.com/nicolo-ribaudo"><code>@nicolo-ribaudo</code></a>)</li> <li>Sukka (<a href="https://github.com/SukkaW"><code>@SukkaW</code></a>)</li> <li><a href="https://github.com/liuxingbaoyu"><code>@liuxingbaoyu</code></a></li> </ul> <h2>v7.24.6 (2024-05-24)</h2> <p>Thanks <a href="https://github.com/amjed-98"><code>@amjed-98</code></a>, <a href="https://github.com/blakewilson"><code>@blakewilson</code></a>, <a href="https://github.com/coelhucas"><code>@coelhucas</code></a>, and <a href="https://github.com/SukkaW"><code>@SukkaW</code></a> for your first PRs!</p> <h4>🐛 Bug Fix</h4> <ul> <li><code>babel-helper-create-class-features-plugin</code>, <code>babel-plugin-transform-class-properties</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16514">#16514</a> Fix source maps for private member expressions (<a href="https://github.com/nicolo-ribaudo"><code>@nicolo-ribaudo</code></a>)</li> </ul> </li> <li><code>babel-core</code>, <code>babel-generator</code>, <code>babel-plugin-transform-modules-commonjs</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16515">#16515</a> Fix source maps for template literals (<a href="https://github.com/nicolo-ribaudo"><code>@nicolo-ribaudo</code></a>)</li> </ul> </li> <li><code>babel-helper-create-class-features-plugin</code>, <code>babel-plugin-proposal-decorators</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16485">#16485</a> Support undecorated static accessor in anonymous classes (<a href="https://github.com/JLHwung"><code>@JLHwung</code></a>)</li> <li><a href="https://redirect.github.com/babel/babel/pull/16484">#16484</a> Fix decorator bare yield await (<a href="https://github.com/JLHwung"><code>@JLHwung</code></a>)</li> </ul> </li> <li><code>babel-helpers</code>, <code>babel-plugin-proposal-decorators</code>, <code>babel-runtime-corejs3</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16483">#16483</a> Fix: throw TypeError if addInitializer is called after finished (<a href="https://github.com/JLHwung"><code>@JLHwung</code></a>)</li> </ul> </li> <li><code>babel-parser</code>, <code>babel-plugin-transform-typescript</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16476">#16476</a> fix: Correctly parse <code>cls.fn<C> = x</code> (<a href="https://github.com/liuxingbaoyu"><code>@liuxingbaoyu</code></a>)</li> </ul> </li> </ul> <h4>🏠 Internal</h4> <ul> <li><code>babel-core</code>, <code>babel-helpers</code>, <code>babel-plugin-transform-runtime</code>, <code>babel-preset-env</code>, <code>babel-runtime-corejs2</code>, <code>babel-runtime-corejs3</code>, <code>babel-runtime</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16501">#16501</a> Generate helper metadata at build time (<a href="https://github.com/nicolo-ribaudo"><code>@nicolo-ribaudo</code></a>)</li> </ul> </li> <li><code>babel-helpers</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16499">#16499</a> Add <code>tsconfig.json</code> for <code>@babel/helpers/src/helpers</code> (<a href="https://github.com/nicolo-ribaudo"><code>@nicolo-ribaudo</code></a>)</li> </ul> </li> <li><code>babel-cli</code>, <code>babel-helpers</code>, <code>babel-plugin-external-helpers</code>, <code>babel-plugin-proposal-decorators</code>, <code>babel-plugin-transform-class-properties</code>, <code>babel-plugin-transform-modules-commonjs</code>, <code>babel-plugin-transform-modules-systemjs</code>, <code>babel-plugin-transform-runtime</code>, <code>babel-preset-env</code>, <code>babel-runtime-corejs2</code>, <code>babel-runtime-corejs3</code>, <code>babel-runtime</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16495">#16495</a> Move all runtime helpers to individual files (<a href="https://github.com/nicolo-ribaudo"><code>@nicolo-ribaudo</code></a>)</li> </ul> </li> <li><code>babel-parser</code>, <code>babel-traverse</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16482">#16482</a> Statically generate boilerplate for bitfield accessors (<a href="https://github.com/nicolo-ribaudo"><code>@nicolo-ribaudo</code></a>)</li> </ul> </li> <li>Other</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/babel/babel/blob/main/CHANGELOG.md"><code>@babel/plugin-transform-private-methods</code>'s changelog</a>.</em></p> <blockquote> <h2>v7.24.7 (2024-06-05)</h2> <h4>🐛 Bug Fix</h4> <ul> <li><code>babel-node</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16554">#16554</a> Allow extra flags in babel-node (<a href="https://github.com/nicolo-ribaudo"><code>@nicolo-ribaudo</code></a>)</li> </ul> </li> <li><code>babel-traverse</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16522">#16522</a> fix: incorrect <code>constantViolations</code> with destructuring (<a href="https://github.com/liuxingbaoyu"><code>@liuxingbaoyu</code></a>)</li> </ul> </li> <li><code>babel-helper-transform-fixture-test-runner</code>, <code>babel-plugin-proposal-explicit-resource-management</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16524">#16524</a> fix: Transform <code>using</code> in <code>switch</code> correctly (<a href="https://github.com/liuxingbaoyu"><code>@liuxingbaoyu</code></a>)</li> </ul> </li> </ul> <h4>🏠 Internal</h4> <ul> <li><code>babel-helpers</code>, <code>babel-runtime-corejs2</code>, <code>babel-runtime-corejs3</code>, <code>babel-runtime</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16525">#16525</a> Delete unused array helpers (<a href="https://github.com/blakewilson"><code>@blakewilson</code></a>)</li> </ul> </li> </ul> <h2>v7.24.6 (2024-05-24)</h2> <h4>🐛 Bug Fix</h4> <ul> <li><code>babel-helper-create-class-features-plugin</code>, <code>babel-plugin-transform-class-properties</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16514">#16514</a> Fix source maps for private member expressions (<a href="https://github.com/nicolo-ribaudo"><code>@nicolo-ribaudo</code></a>)</li> </ul> </li> <li><code>babel-core</code>, <code>babel-generator</code>, <code>babel-plugin-transform-modules-commonjs</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16515">#16515</a> Fix source maps for template literals (<a href="https://github.com/nicolo-ribaudo"><code>@nicolo-ribaudo</code></a>)</li> </ul> </li> <li><code>babel-helper-create-class-features-plugin</code>, <code>babel-plugin-proposal-decorators</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16485">#16485</a> Support undecorated static accessor in anonymous classes (<a href="https://github.com/JLHwung"><code>@JLHwung</code></a>)</li> <li><a href="https://redirect.github.com/babel/babel/pull/16484">#16484</a> Fix decorator bare yield await (<a href="https://github.com/JLHwung"><code>@JLHwung</code></a>)</li> </ul> </li> <li><code>babel-helpers</code>, <code>babel-plugin-proposal-decorators</code>, <code>babel-runtime-corejs3</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16483">#16483</a> Fix: throw TypeError if addInitializer is called after finished (<a href="https://github.com/JLHwung"><code>@JLHwung</code></a>)</li> </ul> </li> <li><code>babel-parser</code>, <code>babel-plugin-transform-typescript</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16476">#16476</a> fix: Correctly parse <code>cls.fn<C> = x</code> (<a href="https://github.com/liuxingbaoyu"><code>@liuxingbaoyu</code></a>)</li> </ul> </li> </ul> <h4>🏠 Internal</h4> <ul> <li><code>babel-core</code>, <code>babel-helpers</code>, <code>babel-plugin-transform-runtime</code>, <code>babel-preset-env</code>, <code>babel-runtime-corejs2</code>, <code>babel-runtime-corejs3</code>, <code>babel-runtime</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16501">#16501</a> Generate helper metadata at build time (<a href="https://github.com/nicolo-ribaudo"><code>@nicolo-ribaudo</code></a>)</li> </ul> </li> <li><code>babel-helpers</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16499">#16499</a> Add <code>tsconfig.json</code> for <code>@babel/helpers/src/helpers</code> (<a href="https://github.com/nicolo-ribaudo"><code>@nicolo-ribaudo</code></a>)</li> </ul> </li> <li><code>babel-cli</code>, <code>babel-helpers</code>, <code>babel-plugin-external-helpers</code>, <code>babel-plugin-proposal-decorators</code>, <code>babel-plugin-transform-class-properties</code>, <code>babel-plugin-transform-modules-commonjs</code>, <code>babel-plugin-transform-modules-systemjs</code>, <code>babel-plugin-transform-runtime</code>, <code>babel-preset-env</code>, <code>babel-runtime-corejs2</code>, <code>babel-runtime-corejs3</code>, <code>babel-runtime</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16495">#16495</a> Move all runtime helpers to individual files (<a href="https://github.com/nicolo-ribaudo"><code>@nicolo-ribaudo</code></a>)</li> </ul> </li> <li><code>babel-parser</code>, <code>babel-traverse</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16482">#16482</a> Statically generate boilerplate for bitfield accessors (<a href="https://github.com/nicolo-ribaudo"><code>@nicolo-ribaudo</code></a>)</li> </ul> </li> <li>Other <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16466">#16466</a> Migrate import assertions syntax (<a href="https://github.com/JLHwung"><code>@JLHwung</code></a>)</li> </ul> </li> </ul> <h2>v7.24.5 (2024-04-29)</h2> <h4>🐛 Bug Fix</h4> <ul> <li><code>babel-plugin-transform-classes</code>, <code>babel-traverse</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16377">#16377</a> fix: TypeScript annotation affects output (<a href="https://github.com/liuxingbaoyu"><code>@liuxingbaoyu</code></a>)</li> </ul> </li> <li><code>babel-helpers</code>, <code>babel-plugin-proposal-explicit-resource-management</code>, <code>babel-runtime-corejs3</code> <ul> <li><a href="https://redirect.github.com/babel/babel/pull/16440">#16440</a> Fix suppressed error order (<a href="https://github.com/sossost"><code>@sossost</code></a>)</li> <li><a href="https://redirect.github.com/babel/babel/pull/16408">#16408</a> Await nullish async disposable (<a href="https://github.com/JLHwung"><code>@JLHwung</code></a>)</li> </ul> </li> </ul> <h4>💅 Polish</h4> <ul> <li><code>babel-parser</code></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/babel/babel/commit/bf1e9a34e4d66d8231dad2f12b9df46d4b730ead"><code>bf1e9a3</code></a> v7.24.7</li> <li><a href="https://github.com/babel/babel/commit/793496394e30fe37b56e54d76cabb417e1652dc2"><code>7934963</code></a> Use <code>type: module</code> in all <code>package.json</code>s (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-private-methods/issues/16535">#16535</a>)</li> <li><a href="https://github.com/babel/babel/commit/9630250ca06f64a62d20caef62fcfa3b8d9165c8"><code>9630250</code></a> v7.24.6</li> <li><a href="https://github.com/babel/babel/commit/6e3539ba1447f4ec43b2fcb1093aecea014ccd26"><code>6e3539b</code></a> [babel 8] Publish <code>.d.ts</code> files for every package (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-private-methods/issues/16416">#16416</a>)</li> <li><a href="https://github.com/babel/babel/commit/71c247a1831fe70e8b847fdb57b5fc10538d9748"><code>71c247a</code></a> [babel 8] Require Node.js <code>^18.20.0 || ^20.10.0 || >=21.0.0</code> (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-private-methods/issues/16457">#16457</a>)</li> <li><a href="https://github.com/babel/babel/commit/ee4875443db7563b87ef8e11e1fb75582ac72ac1"><code>ee48754</code></a> Use multiple TypeScript projects (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-private-methods/issues/16430">#16430</a>)</li> <li>See full diff in <a href="https://github.com/babel/babel/commits/v7.24.7/packages/babel-plugin-transform-private-methods">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 Babel plugins and dependencies to their latest versions, focusing on `@babel/plugin-transform-private-methods`. ### Detailed summary - Updated `@babel/plugin-transform-private-methods` to version `7.24.7` in multiple files. - Upgraded various helper plugins to version `7.24.7`. - Updated `@babel/types` and other dependencies to version `7.24.7`. - Added new plugin `@babel/helper-create-class-features-plugin`. - Updated `@babel/helper-replace-supers` to version `7.24.7`. - Various other dependency updates and additions. > 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 --> |
||
|
|
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 -->
|
||
|
|
c42a34f202 |
[Tests] Conditionally run updateMetadata test based on TW_SECRET_KEY environment variable (#3368)
### TL;DR The change ensures that the `erc721: updateMetadata` test suite is conditionally executed only if the `TW_SECRET_KEY` environment variable is set. ### What changed? - Updated the `updateMetadata.test.ts` file to conditionally run the `erc721: updateMetadata` test suite based on the `TW_SECRET_KEY` environment variable. ### How to test? 1. Set the `TW_SECRET_KEY` environment variable. 2. Run the test suite. 3. Observe that the `erc721: updateMetadata` tests are executed only if the environment variable is set. ### Why make this change? This change ensures that sensitive tests which require a secret key are only executed in appropriate environments, thereby enhancing test reliability and security. --- |
||
|
|
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 -->
|
||
|
|
b9b622a1f7 |
chore(chains): update chains (#3355)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
||
|
|
449ae19f94 |
Version Packages (#3352)
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] [email protected] |
||
|
|
7304c5b0c7 | refactor: respect Coinbase wallet optons when preloading (#3364) | ||
|
|
49cfdb3fd9 |
build(deps): bump @eth-optimism/sdk from 3.3.0 to 3.3.2 (#3357)
Bumps [@eth-optimism/sdk](https://github.com/ethereum-optimism/ecosystem) from 3.3.0 to 3.3.2. <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/ethereum-optimism/ecosystem/commits/@eth-optimism/[email protected]">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> <!-- start pr-codex --> --- ## PR-Codex overview This PR updates the `@eth-optimism/sdk` package to version 3.3.2 and makes corresponding changes in the `pnpm-lock.yaml` file. ### Detailed summary - Updated `@eth-optimism/sdk` to version 3.3.2 in `package.json` - Updated version and specifier in `pnpm-lock.yaml` for `@eth-optimism/sdk` to 3.3.2 > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> |
||
|
|
2d7ebe2111 | fix: ConnectButton custom theme + customized component in playground (#3356) | ||
|
|
e95bf7f62e |
Allow uploading to IPFS without a folder (when upload a single file) (#2667)
<img width="819" alt="image" src="https://github.com/thirdweb-dev/dashboard/assets/26052673/205d590e-893e-4f1b-a4f0-c5aaab9bdf01"> <!-- start pr-codex --> --- ## PR-Codex overview The focus of this PR is to add a feature that allows users to choose whether to upload a file to a folder or without a folder in the IPFS uploader component. ### Detailed summary - Added a `Checkbox` component for users to choose upload options - Introduced state for tracking upload preferences - Updated UI elements based on user's upload selection > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> |
||
|
|
a9ce10f39a |
Add ERC721 extension: updateMetadata & updateBatchBaseURI (#3347)
<!-- start pr-codex -->
## PR-Codex overview
This PR adds an ERC721 extension `updateMetadata` for updating NFT metadata in batches.
### Detailed summary
- Added `updateMetadata` function to update NFT metadata
- Implemented `getUpdateMetadataParams` to prepare transaction
- Added tests for `updateMetadata` function
- Introduced `freezeBatchBaseURI` function and related utilities
> The following files were skipped due to too many changes: `packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts`, `packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
|
||
|
|
a82df76806 |
build(deps-dev): bump @typescript-eslint/eslint-plugin from 7.13.0 to 7.13.1 (#2679)
[//]: # (dependabot-start) ⚠️ **Dependabot is rebasing this PR** ⚠️ Rebasing might not happen immediately, so don't worry if this takes some time. Note: if you make any changes to this PR yourself, they will take precedence over the rebase. --- [//]: # (dependabot-end) Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.13.0 to 7.13.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/typescript-eslint/typescript-eslint/releases"><code>@typescript-eslint/eslint-plugin</code>'s releases</a>.</em></p> <blockquote> <h2>v7.13.1</h2> <h2>7.13.1 (2024-06-17)</h2> <h3>🩹 Fixes</h3> <ul> <li><strong>eslint-plugin:</strong> [prefer-readonly] refine report locations (<a href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/8894">#8894</a>)</li> <li><strong>eslint-plugin:</strong> [return-await] support explicit resource management (<a href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/9044">#9044</a>)</li> <li><strong>eslint-plugin:</strong> [no-unsafe-member-access] differentiate a types-error any from a true any (<a href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/9291">#9291</a>)</li> </ul> <h3>❤️ Thank You</h3> <ul> <li>Kirk Waiblinger</li> <li>Yukihiro Hasegawa <a href="https://github.com/y-hsgw"><code>@y-hsgw</code></a></li> </ul> <p>You can read about our <a href="https://main--typescript-eslint.netlify.app/users/versioning">versioning strategy</a> and <a href="https://main--typescript-eslint.netlify.app/users/releases">releases</a> on our website.</p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md"><code>@typescript-eslint/eslint-plugin</code>'s changelog</a>.</em></p> <blockquote> <h2>7.13.1 (2024-06-17)</h2> <h3>🩹 Fixes</h3> <ul> <li> <p><strong>eslint-plugin:</strong> [prefer-readonly] refine report locations</p> </li> <li> <p><strong>eslint-plugin:</strong> [return-await] support explicit resource management</p> </li> <li> <p><strong>eslint-plugin:</strong> [no-unsafe-member-access] differentiate a types-error any from a true any</p> </li> </ul> <h3>❤️ Thank You</h3> <ul> <li>Kirk Waiblinger</li> <li>Yukihiro Hasegawa</li> </ul> <p>You can read about our <a href="https://main--typescript-eslint.netlify.app/users/versioning">versioning strategy</a> and <a href="https://main--typescript-eslint.netlify.app/users/releases">releases</a> on our website.</p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/typescript-eslint/typescript-eslint/commit/1212a8f30c5daa6a9b232a1d95e328d675430749"><code>1212a8f</code></a> chore(release): publish 7.13.1</li> <li><a href="https://github.com/typescript-eslint/typescript-eslint/commit/af34737faf8bb38c2636f45c970356caab855de3"><code>af34737</code></a> docs: improve return-await description about motivation (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/9201">#9201</a>)</li> <li><a href="https://github.com/typescript-eslint/typescript-eslint/commit/bf48dc5e8e62e9d292e938ef95e7510dbc04b309"><code>bf48dc5</code></a> fix(eslint-plugin): [no-unsafe-member-access] differentiate a types-error any...</li> <li><a href="https://github.com/typescript-eslint/typescript-eslint/commit/33acc5004bf15b733acf9fb736e0e806b965c25d"><code>33acc50</code></a> fix(eslint-plugin): [return-await] support explicit resource management (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/9044">#9044</a>)</li> <li><a href="https://github.com/typescript-eslint/typescript-eslint/commit/50ed60438c750a06c73d6cfb9c1249c349b9445e"><code>50ed604</code></a> fix(eslint-plugin): [prefer-readonly] refine report locations (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/8894">#8894</a>)</li> <li>See full diff in <a href="https://github.com/typescript-eslint/typescript-eslint/commits/v7.13.1/packages/eslint-plugin">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> <!-- start pr-codex --> --- ## PR-Codex overview This PR updates `@typescript-eslint/eslint-plugin` to version `7.13.1` and `semver` to `7.6.2` across various dependencies. ### Detailed summary - Updated `@typescript-eslint/eslint-plugin` to `7.13.1` - Updated `semver` to `7.6.2` in multiple packages - Updated `@typescript-eslint/scope-manager` and related dependencies to `7.13.1` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> |
||
|
|
09560bf65b |
build(deps): bump @thirdweb-dev/chains from 0.1.118 to 0.1.119 (#2678)
[//]: # (dependabot-start) ⚠️ **Dependabot is rebasing this PR** ⚠️ Rebasing might not happen immediately, so don't worry if this takes some time. Note: if you make any changes to this PR yourself, they will take precedence over the rebase. --- [//]: # (dependabot-end) Bumps [@thirdweb-dev/chains](https://github.com/thirdweb-dev/js) from 0.1.118 to 0.1.119. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/thirdweb-dev/js/releases"><code>@thirdweb-dev/chains</code>'s releases</a>.</em></p> <blockquote> <h2><code>@thirdweb-dev/chains</code><a href="https://github.com/0"><code>@0</code></a>.1.119</h2> <h3>Patch Changes</h3> <ul> <li><a href="https://redirect.github.com/thirdweb-dev/js/pull/3311">#3311</a> <a href="https://github.com/thirdweb-dev/js/commit/8b74602e3b7fbe011bf886b9d5ee0e2ea62f7447"><code>8b74602</code></a> Thanks <a href="https://github.com/apps/github-actions"><code>@github-actions</code></a>! - Synced Chains Package</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/thirdweb-dev/js/commit/4dce62de1c7118ab7be279c9716a25fbc803a11f"><code>4dce62d</code></a> Version Packages (<a href="https://redirect.github.com/thirdweb-dev/js/issues/3319">#3319</a>)</li> <li><a href="https://github.com/thirdweb-dev/js/commit/1c533efcd5fbc8a72fd03c98510fa601ee5f34b5"><code>1c533ef</code></a> fix: respect transaction button theme prop (<a href="https://redirect.github.com/thirdweb-dev/js/issues/3341">#3341</a>)</li> <li><a href="https://github.com/thirdweb-dev/js/commit/eca6217f7748036d7c61fa946f73c86c1be9364d"><code>eca6217</code></a> refactor: separate onConnectRequested impl between web and native (<a href="https://redirect.github.com/thirdweb-dev/js/issues/3344">#3344</a>)</li> <li><a href="https://github.com/thirdweb-dev/js/commit/df84f9c4ce4d3e402c82037230515513380e73d1"><code>df84f9c</code></a> refactor: improve Coinbase connection handling (<a href="https://redirect.github.com/thirdweb-dev/js/issues/3340">#3340</a>)</li> <li><a href="https://github.com/thirdweb-dev/js/commit/17c0e6f282d646ff76f556c9ba5e37d905eca24e"><code>17c0e6f</code></a> [ConnectWallet] Include wallet name in injectedWalletLocale query key (<a href="https://redirect.github.com/thirdweb-dev/js/issues/3333">#3333</a>)</li> <li><a href="https://github.com/thirdweb-dev/js/commit/d51c1883afc0513f1c50c041b97709c928d5285f"><code>d51c188</code></a> [Refactor] Migrate usePreloadWalletProviders to useQueries for wallet preload...</li> <li><a href="https://github.com/thirdweb-dev/js/commit/9cf3a1d6636fcd56559e889ab2bfe3249d51162a"><code>9cf3a1d</code></a> feat: preloading wallet providers for improved performance (<a href="https://redirect.github.com/thirdweb-dev/js/issues/3330">#3330</a>)</li> <li><a href="https://github.com/thirdweb-dev/js/commit/c94bcd574aa4eaf2bd76ab8b6379302de4731ed4"><code>c94bcd5</code></a> refactor: change Coinbase SDK import to dynamic in coinbaseSDKWallet.ts (<a href="https://redirect.github.com/thirdweb-dev/js/issues/3329">#3329</a>)</li> <li><a href="https://github.com/thirdweb-dev/js/commit/41c6d04c2fdac5b1779b54afcbf2d67d0f17ffb8"><code>41c6d04</code></a> [dependencies] Bump turbo package to 2.0.4 (<a href="https://redirect.github.com/thirdweb-dev/js/issues/3323">#3323</a>)</li> <li><a href="https://github.com/thirdweb-dev/js/commit/3a78041de7961b31ee9a854d43b7d52daebb02aa"><code>3a78041</code></a> [Multi] Update dependencies and version packages (<a href="https://redirect.github.com/thirdweb-dev/js/issues/3327">#3327</a>)</li> <li>Additional commits viewable in <a href="https://github.com/thirdweb-dev/js/compare/@thirdweb-dev/[email protected]...@thirdweb-dev/[email protected]">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> <!-- start pr-codex --> --- ## PR-Codex overview This PR updates dependencies to their latest versions, including `@thirdweb-dev/chains` to `0.1.119`. ### Detailed summary - Updated `@thirdweb-dev/chains` dependency to version `0.1.119` - Updated various dependencies to their latest versions - Removed `bundledDependencies` from `/[email protected]` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> |
||
|
|
4abfcf1f45 |
build(deps): bump thirdweb from 5.29.2 to 5.29.4 (#2676)
Bumps [thirdweb](https://github.com/thirdweb-dev/js) from 5.29.2 to 5.29.4. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/thirdweb-dev/js/releases">thirdweb's releases</a>.</em></p> <blockquote> <h2>[email protected].4</h2> <h3>Patch Changes</h3> <ul> <li><a href="https://redirect.github.com/thirdweb-dev/js/pull/3345">#3345</a> <a href="https://github.com/thirdweb-dev/js/commit/79e6a047d6ae6cb341fdad22137bd83ad6e611d4"><code>79e6a04</code></a> Thanks <a href="https://github.com/joaquim-verges"><code>@joaquim-verges</code></a>! - Fix react native inAppWallet creation</li> </ul> <h2>[email protected].3</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/thirdweb-dev/js/pull/3329">#3329</a> <a href="https://github.com/thirdweb-dev/js/commit/c94bcd574aa4eaf2bd76ab8b6379302de4731ed4"><code>c94bcd5</code></a> Thanks <a href="https://github.com/joaquim-verges"><code>@joaquim-verges</code></a>! - Dynamically import coinbase sdk to avoid cloudflare bundler issues</p> </li> <li> <p><a href="https://redirect.github.com/thirdweb-dev/js/pull/3341">#3341</a> <a href="https://github.com/thirdweb-dev/js/commit/1c533efcd5fbc8a72fd03c98510fa601ee5f34b5"><code>1c533ef</code></a> Thanks <a href="https://github.com/joaquim-verges"><code>@joaquim-verges</code></a>! - Fix transaction button not respecting theme prop</p> </li> <li> <p><a href="https://redirect.github.com/thirdweb-dev/js/pull/3298">#3298</a> <a href="https://github.com/thirdweb-dev/js/commit/ffaff744f72d2cb22896e7501677b48f76ea857a"><code>ffaff74</code></a> Thanks <a href="https://github.com/joaquim-verges"><code>@joaquim-verges</code></a>! - refactor exports to handle native vs non-native dependencies</p> </li> <li> <p><a href="https://redirect.github.com/thirdweb-dev/js/pull/3330">#3330</a> <a href="https://github.com/thirdweb-dev/js/commit/9cf3a1d6636fcd56559e889ab2bfe3249d51162a"><code>9cf3a1d</code></a> Thanks <a href="https://github.com/joaquim-verges"><code>@joaquim-verges</code></a>! - Fix coinbase wallet popup sometimes not opening on safari + improve inAppWallet web performance</p> </li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/thirdweb-dev/js/commit/507d0e5bf46b2976f62857fd58a338d443efa684"><code>507d0e5</code></a> Version Packages (<a href="https://redirect.github.com/thirdweb-dev/js/issues/3346">#3346</a>)</li> <li><a href="https://github.com/thirdweb-dev/js/commit/79e6a047d6ae6cb341fdad22137bd83ad6e611d4"><code>79e6a04</code></a> fix: inApp native wallet creation (<a href="https://redirect.github.com/thirdweb-dev/js/issues/3345">#3345</a>)</li> <li><a href="https://github.com/thirdweb-dev/js/commit/4dce62de1c7118ab7be279c9716a25fbc803a11f"><code>4dce62d</code></a> Version Packages (<a href="https://redirect.github.com/thirdweb-dev/js/issues/3319">#3319</a>)</li> <li><a href="https://github.com/thirdweb-dev/js/commit/1c533efcd5fbc8a72fd03c98510fa601ee5f34b5"><code>1c533ef</code></a> fix: respect transaction button theme prop (<a href="https://redirect.github.com/thirdweb-dev/js/issues/3341">#3341</a>)</li> <li><a href="https://github.com/thirdweb-dev/js/commit/eca6217f7748036d7c61fa946f73c86c1be9364d"><code>eca6217</code></a> refactor: separate onConnectRequested impl between web and native (<a href="https://redirect.github.com/thirdweb-dev/js/issues/3344">#3344</a>)</li> <li><a href="https://github.com/thirdweb-dev/js/commit/df84f9c4ce4d3e402c82037230515513380e73d1"><code>df84f9c</code></a> refactor: improve Coinbase connection handling (<a href="https://redirect.github.com/thirdweb-dev/js/issues/3340">#3340</a>)</li> <li><a href="https://github.com/thirdweb-dev/js/commit/17c0e6f282d646ff76f556c9ba5e37d905eca24e"><code>17c0e6f</code></a> [ConnectWallet] Include wallet name in injectedWalletLocale query key (<a href="https://redirect.github.com/thirdweb-dev/js/issues/3333">#3333</a>)</li> <li><a href="https://github.com/thirdweb-dev/js/commit/d51c1883afc0513f1c50c041b97709c928d5285f"><code>d51c188</code></a> [Refactor] Migrate usePreloadWalletProviders to useQueries for wallet preload...</li> <li><a href="https://github.com/thirdweb-dev/js/commit/9cf3a1d6636fcd56559e889ab2bfe3249d51162a"><code>9cf3a1d</code></a> feat: preloading wallet providers for improved performance (<a href="https://redirect.github.com/thirdweb-dev/js/issues/3330">#3330</a>)</li> <li><a href="https://github.com/thirdweb-dev/js/commit/c94bcd574aa4eaf2bd76ab8b6379302de4731ed4"><code>c94bcd5</code></a> refactor: change Coinbase SDK import to dynamic in coinbaseSDKWallet.ts (<a href="https://redirect.github.com/thirdweb-dev/js/issues/3329">#3329</a>)</li> <li>Additional commits viewable in <a href="https://github.com/thirdweb-dev/js/compare/[email protected]@5.29.4">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` files. It specifically upgrades `thirdweb` to version `5.29.4` and `picocolors` to `1.0.1`. ### Detailed summary - Updated `thirdweb` dependency to version `5.29.4` - Updated `picocolors` dependency to version `1.0.1` - Minor version upgrades for various dependencies in `[email protected].4` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> |
||
|
|
321cf26342 |
chore(chains): update chains (#3348)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
||
|
|
d2ad36d76d |
[Fix] Ensure proper awaiting of the format function in generate script (#3349)
### TL;DR This PR modifies the `generateFromAbi` function to ensure that the `format` function from Prettier is properly awaited. This solves issues with file writing inconsistencies. ### What changed? - Added `await` to the `format` function calls within `generateFromAbi`. ### How to test? 1. Run the `generateFromAbi` script. 2. Ensure that generated files are consistently formatted. ### Why make this change? This change ensures that the Prettier formatting is correctly applied before the files are written, resolving any inconsistencies and potential bugs caused by non-awaited formatting. --- |
||
|
|
507d0e5bf4 |
Version Packages (#3346)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>@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] |
||
|
|
79e6a047d6 | fix: inApp native wallet creation (#3345) | ||
|
|
4dce62de1c |
Version Packages (#3319)
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] [email protected] |
||
|
|
1c533efcd5 |
fix: respect transaction button theme prop (#3341)
<!-- start pr-codex -->
## PR-Codex overview
This PR fixes the issue where the transaction button did not respect the theme prop in the `SponsoredTxPreview` component.
### Detailed summary
- Fixed transaction button theme prop issue in `SponsoredTxPreview`
- Added `isValidTheme` and `parseTheme` functions in `buttons.tsx`
- Updated `parseTheme` to validate theme and return default if invalid
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
|
||
|
|
eca6217f77 | refactor: separate onConnectRequested impl between web and native (#3344) | ||
|
|
df84f9c4ce |
refactor: improve Coinbase connection handling (#3340)
### TL;DR
To prevent popups from Coinbase wallet being blocked in Safari, pre-connection actions have been added. Specifically, popups will be displayed immediately upon connection request and before transaction preprocessing.
### What changed?
1. Removed the `COINBASE` constant and its related connection flow.
2. Integrated `onConnectRequested` optional function for wallets.
3. Updated Coinbase wallet's `onConnectRequested` to show the popup immediately.
4. Added `onTransactionRequested` to show popup before transaction processing.
### How to test?
1. Initiate connection with Coinbase wallet and observe that the popup appears immediately.
2. Perform a transaction with Coinbase wallet and ensure the popup is not blocked.
3. Test across different browsers, focusing on Safari.
### Why make this change?
Safari has stricter rules regarding popups, and the previous delay in showing the popup led to it being blocked. This change ensures a smoother user experience for Coinbase wallet users on Safari by addressing the popup blocking issue.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to enhance wallet connectivity and transaction handling in the application.
### Detailed summary
- Added `onConnectRequested` and `onTransactionRequested` functions to wallet interfaces
- Updated wallet connection and transaction handling logic
- Preloaded wallet providers for smoother user experience
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
|
||
|
|
17c0e6f282 |
[ConnectWallet] Include wallet name in injectedWalletLocale query key (#3333)
### TL;DR Updated the queryKey used in the useQuery hook to also include the walletInfo.data?.name parameter, ensuring that injectedWalletLocale queries are correctly keyed and updated when the wallet name changes. ### What changed? The queryKey array in the useQuery hook was updated from `["injectedWalletLocale", localeId]` to `["injectedWalletLocale", localeId, walletInfo.data?.name]`. ### How to test? 1. Ensure the application runs without errors. 2. Verify that locale-specific wallet names are correctly handled when displayed in the UI. ### Why make this change? The change ensures that the locale-based queries are properly identified and updated when the wallet name changes, preventing potential stale data from being used in the UI. --- |
||
|
|
d51c1883af |
[Refactor] Migrate usePreloadWalletProviders to useQueries for wallet preloading (#3331)
Refactor `usePreloadWalletProviders` to utilize `useQueries` from `@tanstack/react-query`. This change optimizes wallet provider preloading, ensuring a non-blocking, and parallel fetching of necessary providers. Removes the `useEffect` based logic. --- |
||
|
|
9cf3a1d663 |
feat: preloading wallet providers for improved performance (#3330)
<!-- start pr-codex -->
## PR-Codex overview
This PR fixes an issue with the Coinbase wallet popup not opening on Safari and improves inAppWallet web performance.
### Detailed summary
- Fixed Coinbase wallet popup not opening on Safari
- Improved inAppWallet web performance
- Added `usePreloadWalletProviders` hook
- Preloaded wallet providers for Coinbase and inApp wallet
- Updated `ConnectButton`, `ConnectEmbed`, `usePreloadWalletProviders`, and `ConnectModalContent` components
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
|
||
|
|
1e1824f0cb |
feat: add support for extension-based code snippets in ContractFunction and CodeOverview components (#2675)
### What changed?
This PR introduces several key enhancements to the `ContractFunction` and `CodeOverview` components:
1. **Environment Selection**: A new `extensionNamespace` state is added based on the enabled extensions in the contract ABI (`ERC20`, `ERC721`, `ERC1155`). This state determines the namespace used for different contract extensions.
2. **Code Snippets Generation**: Functions `buildJavascriptSnippet` and `buildReactSnippet` are added to dynamically generate code snippets based on the extension namespace and contract function type (read, write, event).
3. **Snippet Formatting**: The `formatSnippet` function is modified to include the newly generated code snippets, replacing placeholders with actual values.
### How to test?
1. **Setup**: Ensure you have a contract with varying enabled extensions (`ERC20`, `ERC721`, `ERC1155`).
2. **Test Snippet Generation**: For each contract, navigate to the code overview and ensure the generated snippets correspond to the contract's extensions and function types.
3. **Verify Placeholder Replacement**: Confirm that placeholders in the code (`{{contract_address}}`, `{{wallet_address}}`, etc.) are correctly replaced with real values.
### Why make this change?
This update enhances the flexibility and readability of the code snippets provided to developers, making it easier to interact with contract functions by displaying relevant code based on the contract's supported extensions and environment.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to enhance code snippets generation for different contract extensions based on enabled extensions.
### Detailed summary
- Added logic to determine extension namespace based on enabled extensions
- Implemented functions to build JavaScript and React code snippets
- Created mapping for extension namespaces and functions
- Updated snippet formatting to include extension-specific code generation based on function and extension namespace
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
|
||
|
|
559c44f09d |
refactor: clean up imports and unused code in CodeOverview component (#2674)
<!-- start pr-codex -->
## PR-Codex overview
The focus of this PR is to optimize imports, remove unused code, and refactor UI components in the `CodeOverview` component.
### Detailed summary
- Removed unused imports and variables
- Refactored UI structure for better organization
- Updated code snippet rendering logic
- Improved tab functionality for functions and events
> The following files were skipped due to too many changes: `src/contract-ui/tabs/code/components/code-overview.tsx`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
|
||
|
|
c94bcd574a |
refactor: change Coinbase SDK import to dynamic in coinbaseSDKWallet.ts (#3329)
<!-- start pr-codex -->
## PR-Codex overview
The focus of this PR is to dynamically import the `CoinbaseWalletSDK` to resolve cloudflare bundler issues.
### Detailed summary
- Dynamically import `CoinbaseWalletSDK` to avoid bundler issues
- Updated import statement for `ProviderInterface`
- Removed unnecessary imports
- Refactored `getCoinbaseWebProvider` function to dynamically import `CoinbaseWalletSDK`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
|
||
|
|
091ecf8016 |
feat: add CodeSegment component with enhanced code snippets in ContractFunction (#2673)
### TL;DR
Enhances the `ContractFunction` component by adding interactive code snippets for various environments, helping users utilize contract functions in their applications.
### What changed?
- Added code snippets under `use this function in your app` section.
- Introduced `CodeEnvironment` state to toggle between environments (e.g., JavaScript).
- Added import for `CodeSegment`, `COMMANDS`, `formatSnippet`, and `CodeEnvironment`.
- Removed console log statements and unused imports.
### How to test?
- Verify that code snippets appear as expected for different contract functions.
- Toggle between environments and ensure the correct code is displayed.
### Why make this change?
Provides developers with ready-to-use code snippets, streamlining the integration process for contract functions into applications.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to refactor code related to contract function execution and UI components in the contract overview tab.
### Detailed summary
- Refactored code execution logic for contract functions
- Added `CodeSegment` component for displaying code snippets
- Updated function usage display in UI based on function type and state mutability
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
|
||
|
|
4faf636a6f |
feat: integrate abitype library and format ABI items in code overview and contract function components (#2672)
### TL;DR
Add `abitype` library and refactor the codebase to utilize `formatAbiItem` for formatting contract functions and events.
### What changed?
- Added `abitype` library to `package.json` and `pnpm-lock.yaml` files.
- Refactored multiple files to replace existing ABI formatting logic with `formatAbiItem` from `abitype`.
- `contract-function.tsx`: Integrated `formatAbiItem` for formatting contract functions and events.
- `code-overview.tsx`: Unified ABI formatting using `formatAbiItem`.
- Removed dependency on `resolveMethod` from `thirdweb`.
### How to test?
1. Verify the `abitype` library installation in `package.json` and `pnpm-lock.yaml`.
2. Check the refactored files for correct usage of `formatAbiItem`.
3. Run the project and ensure no runtime errors occur related to ABI formatting.
4. Test contract functions and events to ensure they are formatted correctly.
### Why make this change?
To improve the consistency and reliability of ABI formatting across the codebase by using a dedicated library (`abitype`).
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to introduce the `abitype` package, update dependencies, and refactor code snippets in the `CodePlayground` component.
### Detailed summary
- Introduced `abitype` package
- Updated dependencies
- Refactored code snippets in `CodePlayground.tsx`
- Modified imports and functions in various files
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
|
||
|
|
0e4e591bb3 |
refactor: optimize AccountsTable component with useMemo and limit query end value (#2670)
### TL;DR Optimized the Accounts Table component by adding useMemo hooks to calculate total accounts and limit the end value of queries. Adjusted the logic to ensure safe conversion of total accounts to a number type. ### What changed? - Added `useMemo` for calculating `totalAccountsNum` and `maxQueryEndValue`. - Adjusted the `accountsQuery` to use `maxQueryEndValue` for its `end` parameter. - Simplified the total pages calculation. ### How to test? 1. Navigate to the Accounts tab. 2. Ensure the total number of accounts loads correctly. 3. Check that pagination works as expected, especially when navigating to the last page. ### Why make this change? This change improves the performance and reliability of the Accounts Table component by ensuring that calculations and query parameters are optimized and accurate. --- |
||
|
|
41c6d04c2f |
[dependencies] Bump turbo package to 2.0.4 (#3323)
<!-- start pr-codex -->
## PR-Codex overview
This PR updates Yarn installation and package versions, enhances test project scripts, and modifies Turbo tasks configuration.
### Detailed summary
- Updated Yarn installation to version 1.22.19
- Updated package versions in the test project
- Modified Turbo tasks configuration for various packages and builds
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
|
||
|
|
9ae2f58430 |
refactor: update Accounts components to use new contract hooks and add pagination (#2669)
### TL;DR Implement pagination and count querying in the accounts page. ### What changed? 1. Modified `accounts-count.tsx` to use `totalAccounts` from `thirdweb/extensions/erc4337` instead of fetching all accounts. 2. Updated `accounts-table.tsx` to incorporate pagination with the help of `totalAccounts` and `getAccounts` functions from `thirdweb/extensions/erc4337`. 3. Adjusted `page.tsx` to pass the contract to `AccountsCount` and `AccountsTable` components instead of accountsQuery. 4. Introduced pagination controls and page size selection in `accounts-table.tsx`. ### How to test? 1. Navigate to the accounts page. 2. Verify that the total number of accounts is displayed correctly. 3. Check the pagination functionality by navigating through pages and adjusting the page size. ### Why make this change? To improve the user experience on the accounts page by enabling efficient data fetching and display through pagination. --- |
||
|
|
3a78041de7 |
[Multi] Update dependencies and version packages (#3327)
## Problem solved
Short description of the bug fixed or feature added
## Changes made
- [ ] Public API changes: list the public API changes made if any
- [ ] Internal API changes: explain the internal logic changes
## How to test
- [ ] Automated tests: link to unit test file
- [ ] Manual tests: step by step instructions on how to test
## Contributor NFT
Paste in your wallet address below and we will airdrop you a special NFT when your pull request is merged.
```Address: ```
<!-- start pr-codex -->
---
## PR-Codex overview
This PR updates dependencies in `package.json` and `pnpm-lock.yaml`, focusing on versions of `axios`, `@grpc/grpc-js`, and `braces`.
### Detailed summary
- Updated `@grpc/grpc-js` to version `1.10.9`
- Updated `braces` to version `3.0.3`
- Adjusted versions of `axios` and `@ethereumjs/util`
- Updated `fill-range` to version `7.1.1`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
|
||
|
|
7f17d24e0b |
build(deps): bump the npm_and_yarn group with 2 updates (#2668)
Bumps the npm_and_yarn group with 2 updates: [@grpc/grpc-js](https://github.com/grpc/grpc-node) and [braces](https://github.com/micromatch/braces). 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 /> Updates `braces` from 3.0.2 to 3.0.3 <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/micromatch/braces/commit/74b2db2938fad48a2ea54a9c8bf27a37a62c350d"><code>74b2db2</code></a> 3.0.3</li> <li><a href="https://github.com/micromatch/braces/commit/88f1429a0f47e1dd3813de35211fc97ffda27f9e"><code>88f1429</code></a> update eslint. lint, fix unit tests.</li> <li><a href="https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff"><code>415d660</code></a> Snyk js braces 6838727 (<a href="https://redirect.github.com/micromatch/braces/issues/40">#40</a>)</li> <li><a href="https://github.com/micromatch/braces/commit/190510f79db1adf21d92798b0bb6fccc1f72c9d6"><code>190510f</code></a> fix tests, skip 1 test in test/braces.expand</li> <li><a href="https://github.com/micromatch/braces/commit/716eb9f12d820b145a831ad678618731927e8856"><code>716eb9f</code></a> readme bump</li> <li><a href="https://github.com/micromatch/braces/commit/a5851e57f45c3431a94d83fc565754bc10f5bbc3"><code>a5851e5</code></a> Merge pull request <a href="https://redirect.github.com/micromatch/braces/issues/37">#37</a> from coderaiser/fix/vulnerability</li> <li><a href="https://github.com/micromatch/braces/commit/2092bd1fb108d2c59bd62e243b70ad98db961538"><code>2092bd1</code></a> feature: braces: add maxSymbols (<a href="https://github.com/micromatch/braces/issues/">https://github.com/micromatch/braces/issues/</a>...</li> <li><a href="https://github.com/micromatch/braces/commit/9f5b4cf47329351bcb64287223ffb6ecc9a5e6d3"><code>9f5b4cf</code></a> fix: vulnerability (<a href="https://security.snyk.io/vuln/SNYK-JS-BRACES-6838727">https://security.snyk.io/vuln/SNYK-JS-BRACES-6838727</a>)</li> <li><a href="https://github.com/micromatch/braces/commit/98414f9f1fabe021736e26836d8306d5de747e0d"><code>98414f9</code></a> remove funding file</li> <li><a href="https://github.com/micromatch/braces/commit/665ab5d561c017a38ba7aafd92cc6655b91d8c14"><code>665ab5d</code></a> update keepEscaping doc (<a href="https://redirect.github.com/micromatch/braces/issues/27">#27</a>)</li> <li>Additional commits viewable in <a href="https://github.com/micromatch/braces/compare/3.0.2...3.0.3">compare view</a></li> </ul> </details> <br /> 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 package versions in `pnpm-lock.yaml` for various dependencies, including `@coinbase/onchainkit`, `@sentry/nextjs`, and `@thirdweb-dev/react`. ### Detailed summary - Updated `@xmtp/frames-validator` to version 0.6.1 - Updated `fastify` to version 4.28.0 - Updated `@sentry/nextjs` to use `[email protected].0` instead of `[email protected].0` - Updated `fast-json-stringify` to version 5.16.0 - Updated `protobufjs` to version 7.3.2 > 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 --> |
||
|
|
2f439ba4b3 |
Modular contracts Edit Extensions UI (#2225)
<!-- start pr-codex -->
## PR-Codex overview
This PR adds support for Modular Core and Modular Extension features, updates contract extension settings UI, and enhances extension management in the contract editor.
### Detailed summary
- Added support for `ModularCore` and `ModularExtension` features
- Updated contract extension settings UI
- Improved extension management in the contract editor
> The following files were skipped due to too many changes: `src/contract-ui/tabs/edit-extensions/components/InstalledExtensionsTable.tsx`, `src/contract-ui/tabs/edit-extensions/components/ExtensionForm.tsx`, `pnpm-lock.yaml`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
|
||
|
|
8b74602e3b |
chore(chains): update chains (#3311)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
||
|
|
f9081d58d4 | refactor: inject storage and session handler in wallet connect connector [part 5] (#3314) | ||
|
|
b051d844d0 | refactor: Inject storage EVERYWHERE [part 4] (#3312) | ||
|
|
f8e0c5f84b | reafactor: reorganize react native export files [part 3] (#3304) | ||
|
|
476b6cc271 | refactor: separate native exports for inapp wallet [part 2] (#3300) | ||
|
|
ffaff744f7 | refactor: separate native exports for cb wallet [part 1] (#3298) | ||
|
|
198f72c493 | [Unity] fix tx builder type parsing (#3317) | ||
|
|
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] |
||
|
|
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 -->
|
||
|
|
eff710738c | [v4 react] Allow configuring qrcode and qrModalOptions on various wallet configurators (#3315) | ||
|
|
fb6a07d4b8 | [Multi] Optimize package.json types versions & update ERC4337 factory methods (#3318) | ||
|
|
7768067bf4 |
Modular contracts (#2880)
Signed-off-by: Yash <[email protected]> Co-authored-by: Jonas Daniels <[email protected]> |
||
|
|
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 -->
|
||
|
|
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] |