6158 Commits
Author SHA1 Message Date
Jonas Daniels d908851504 [Chore] Rename .changeset/v4-changesets-apply-later directory to .v4-changesets-apply-later for consistency (#3526) 2024-06-26 21:36:09 -07:00
jnsdls 6b6c03563e [Chore] Update dependencies and refactor changesets directory structure (#3525)
### TL;DR

This PR adjusts the `.changeset/config.json` to update dependency settings and reorganizes changeset markdown files under a new directory.

### What changed?

- Removed `fixed` and `linked` fields from the `.changeset/config.json`.
- Updated the `ignore` array in `config.json` to include additional thirdweb-dev packages.
- Moved existing `.changeset/*.md` files to a newly created `v4-changesets-apply-later` directory.

### How to test?

Verify that dependency updates and changeset file reorganization are reflected correctly in the `.changeset/config.json` and file structure.

### Why make this change?

We are temporarily only releasing v5 packages (while figuring a path forward regarding `@thirdweb-dev/react` with npm).

---
2024-06-27 04:21:19 +00:00
0xFirekeeper 0751a6c6ea Unity 4.16.6 (#3522)
<!-- start pr-codex -->

## PR-Codex overview
This PR updates the X_SDK_VERSION in `thirdweb-bridge.ts` from "4.16.5" to "4.16.6".

### Detailed summary
- Updated X_SDK_VERSION from "4.16.5" to "4.16.6" in `thirdweb-bridge.ts`.

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

<!-- end pr-codex -->
2024-06-27 04:15:19 +00:00
gregfromstl 4dae68796e fix(ts): in-app wallet user op signatures (#3507)
### TL;DR

This PR updates the message handling in the in-app-account module of the thirdweb package. Specifically, it modifies the message decoding process and removes an unused import.

### What changed?

- Modified the IFrameWallet class to handle messages that are bytes or strings.
- Removed the `uint8ArrayToString` import which was no longer needed.

### How to test?

1. Run the existing test suite to ensure all tests pass.
2. Manually test the in-app wallet functionality to validate the message handling changes.

### Why make this change?

To improve the robustness and maintainability of the in-app-account module in the thirdweb package by cleaning up the code and ensuring proper handling of different message types.

---
2024-06-27 03:58:32 +00:00
gregfromstl c330d0d815 fix(ens): enhance ENS resolution tests and error handling (#3513)
<!-- start pr-codex -->

## PR-Codex overview
This PR enhances ENS resolution in `thirdweb` extension. It now returns null if no ENS exists for an address.

### Detailed summary
- Updated `resolveName` to return null if no ENS exists
- Added error handling to catch specific error code
- Updated tests to reflect changes in ENS resolution behavior

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

<!-- end pr-codex -->
2024-06-27 03:41:20 +00:00
MananTank 16ea2bc684 Fix openWindow not working inside iframe (#3521)
<!-- start pr-codex -->

## PR-Codex overview
The focus of this PR is to fix the wallet app not opening when using `ConnectButton` inside an iframe.

### Detailed summary
- Updated `WalletConnectConnection.tsx` to handle opening wallet app inside iframes
- Modified `openWindow.ts` to address issues with `window.open` on iOS and WebViews

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

<!-- end pr-codex -->
2024-06-27 03:25:53 +00:00
jnsdls d974db533a [Chore] Update zksync-ethers to 5.9.0 and modify useCustomContractDeployMutation (#3523)
<!-- start pr-codex -->

## PR-Codex overview
This PR updates `zksync-ethers` to version `5.9.0`, adds new assertions in `hooks.ts`, and introduces a fake provider for `zkSigner` initialization.

### Detailed summary
- Updated `zksync-ethers` to `5.9.0`
- Added assertions for `signer` and `walletAddress` in `hooks.ts`
- Introduced a fake provider for `zkSigner` initialization

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

<!-- end pr-codex -->
2024-06-26 23:04:01 +00:00
jnsdls 7be7b6ff84 [Fix] Prevent overriding gasLimit and maxFeePerGas settings if already present (#3519)
Respect gas overrides if they are passed in both the SDK and various wallet implementations by checking if gasLimit, maxFeePerGas, and maxPriorityFeePerGas are already set before applying default values. Added necessary type annotations and improved import statements for better code clarity.

---

<!-- start pr-codex -->

## PR-Codex overview
The focus of this PR is to respect gas overrides passed in and avoid overriding existing values in transactions.

### Detailed summary
- Respect gas overrides if passed in
- Update `WrappedSigner` and `EthersSigner` classes to handle gas overrides
- Update `UserWallet` to set default gas values only if not already set

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

<!-- end pr-codex -->
2024-06-26 11:52:40 +00:00
Jonas Daniels 3979ff0238 [Chore] Add concurrency limit to build scripts and update turbo.json configuration (#3518) 2024-06-26 01:53:38 -07:00
Jonas Daniels 1e9baa688f [Chore] Remove unnecessary checkout step in release-nightly workflow and update import references (#3517) 2024-06-26 00:37:53 -07:00
Jonas Daniels 39455a096a [Chore] Upgrade TypeScript dependency to 5.5.2 across multiple packages (#3516) 2024-06-26 00:00:06 -07:00
Jonas Daniels 40aac265fe [Chore] Upgrade typescript dependency to 5.5.2 and update release-nightly workflow (#3515) 2024-06-25 23:58:16 -07:00
Jonas Daniels 370c686d37 [Chore] Downgrade TypeScript dependency to 5.4.5 (#3514) 2024-06-25 23:31:56 -07:00
Jonas Daniels 0708d4e71b [Chore] Enhance tsconfig to explicitly set noUncheckedIndexedAccess and update build:release script (#3512) 2024-06-25 23:05:16 -07:00
Jonas Daniels cde0c1741d [Chore] Rename Chain type alias to InternalChain and re-export as Chain (#3510) 2024-06-25 22:47:44 -07:00
Jonas Daniels ed3a04f20b [Chore] Enhance tsconfig.json in react-core to resolve JSON modules (#3509) 2024-06-25 22:13:48 -07:00
Jonas Daniels 2dac941399 [Chore] Add type annotations to SwapFees and SwapTransactionsScreen components (#3508) 2024-06-25 22:04:22 -07:00
Jonas Daniels fbb1493f1e [Chore] Enhance tsconfig and error handling across multiple packages (#3506) 2024-06-25 21:43:50 -07:00
Jonas Daniels 724ef108dc [Chore] Update release-nightly workflow to remove unnecessary checkout step (#3505) 2024-06-25 21:02:21 -07:00
Jonas Daniels af84d47bfb [Chore] Update wallets tsconfig.json to use dynamic configDir paths (#3504) 2024-06-25 20:49:38 -07:00
Jonas Daniels 4f462607e6 [Chore] Upgrade typescript dependency to 5.5.2 (#3503) 2024-06-25 20:05:50 -07:00
Jonas Daniels 3e41742213 [Chore] Update CI workflows to use latest Ubuntu version (#3502) 2024-06-25 19:20:30 -07:00
Jonas Daniels ba8a2c147f [Chore] Add @ts-nocheck to md5 and crypto-js-compat to suppress TypeScript errors (#3501) 2024-06-25 19:18:00 -07:00
Jonas Daniels 7b70919507 [Chore] Update .changeset/config.json to add new package and adjust build scripts (#3500) 2024-06-25 18:57:36 -07:00
Jonas Daniels d5dc5e5ff2 [Chore] Update esbuild dependency to version 0.21.5 (#3497) 2024-06-25 17:25:18 -07:00
Jonas Daniels aa72b675ac [Chore] Update .changeset/config.json to remove deprecated entries (#3496) 2024-06-25 17:07:08 -07:00
Jonas Daniels 3ee99e59d8 [Chore] Update configs and scripts (#3495) 2024-06-25 17:00:42 -07:00
kumaryash90 28ed28a8e9 ZkSync addresses update (#3492)
<!-- start pr-codex -->

## PR-Codex overview
This PR updates ZkCandy addresses for the Sepolia Testnet and ZKSync Era Mainnet.

### Detailed summary
- Added new addresses for various contracts on the Sepolia Testnet for ZkCandy.
- Updated addresses for DropERC721 on the ZKSync Era Mainnet.

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

<!-- end pr-codex -->
2024-06-25 22:13:27 +00:00
gregfromstl 9b46a730b3 fix(transaction): update EIP721 to EIP712 naming in getEip721Domain and prepare-transaction (#3480)
<!-- start pr-codex -->

## PR-Codex overview
This PR updates transaction options and serialization to use EIP712 instead of EIP721.

### Detailed summary
- Renamed `EIP721TransactionOptions` to `EIP712TransactionOptions`
- Renamed `EIP721SerializedTransaction` to `EIP712SerializedTransaction`
- Updated function parameters and return types accordingly

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

<!-- end pr-codex -->
2024-06-25 21:57:36 +00:00
dependabot 598654ee75 build(deps): bump @typescript-eslint/parser from 7.13.1 to 7.14.1 (#3468)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.13.1 to 7.14.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/typescript-eslint/typescript-eslint/releases"><code>@​typescript-eslint/parser</code>'s releases</a>.</em></p>
<blockquote>
<h2>v7.14.1</h2>
<h2>7.14.1 (2024-06-24)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [prefer-nullish-coalescing] treat enums and literals as their underlying primitive types (<a href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/9376">#9376</a>)</li>
<li><strong>eslint-plugin:</strong> [prefer-nullish-coalescing] ensure ternary fix does not remove parens (<a href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/9380">#9380</a>)</li>
</ul>
<h3>❤️  Thank You</h3>
<ul>
<li>Jake Bailey <a href="https://github.com/jakebailey"><code>@​jakebailey</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>
<h2>v7.14.0</h2>
<h2>7.14.0 (2024-06-24)</h2>
<h3>🚀 Features</h3>
<ul>
<li>support TypeScript 5.5 (<a href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/9397">#9397</a>)</li>
<li><strong>ast-spec:</strong> tighter types and documentation for declaration/* (<a href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/9211">#9211</a>)</li>
</ul>
<h3>🩹 Fixes</h3>
<ul>
<li>keep warnAbountTSVersion in sync with package.json (<a href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/9400">#9400</a>)</li>
<li><strong>eslint-plugin:</strong> [no-extraneous-class] handle abstract members (<a href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/9367">#9367</a>)</li>
<li><strong>eslint-plugin:</strong> [prefer-nullish-coalescing] handle intersected primitive types (<a href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/9378">#9378</a>)</li>
<li><strong>eslint-plugin:</strong> [no-invalid-this] support AccessorProperty (<a href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/9411">#9411</a>)</li>
</ul>
<h3>❤️  Thank You</h3>
<ul>
<li>Brad Zacher <a href="https://github.com/bradzacher"><code>@​bradzacher</code></a></li>
<li>cm-ayf <a href="https://github.com/cm-ayf"><code>@​cm-ayf</code></a></li>
<li>Jake Bailey <a href="https://github.com/jakebailey"><code>@​jakebailey</code></a></li>
<li>James Zhan</li>
<li>Joshua Chen</li>
<li>yoshi2no <a href="https://github.com/yoshi2no"><code>@​yoshi2no</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/parser/CHANGELOG.md"><code>@​typescript-eslint/parser</code>'s changelog</a>.</em></p>
<blockquote>
<h2>7.14.1 (2024-06-24)</h2>
<p>This was a version bump only for parser to align it with other projects, there were no code changes.</p>
<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>
<h2>7.14.0 (2024-06-24)</h2>
<h3>🚀 Features</h3>
<ul>
<li>support TypeScript 5.5</li>
</ul>
<h3>❤️  Thank You</h3>
<ul>
<li>Brad Zacher</li>
<li>cm-ayf</li>
<li>Jake Bailey</li>
<li>James Zhan</li>
<li>Joshua Chen</li>
<li>yoshi2no</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/b4fe94f7fcb4d6e631b0cd626ea48f3b88e16a33"><code>b4fe94f</code></a> chore(release): publish 7.14.1</li>
<li><a href="https://github.com/typescript-eslint/typescript-eslint/commit/dfc44691400b22634c8acf4666b5e7e4ba1fee9a"><code>dfc4469</code></a> chore(release): publish 7.14.0</li>
<li>See full diff in <a href="https://github.com/typescript-eslint/typescript-eslint/commits/v7.14.1/packages/parser">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@typescript-eslint/parser&package-manager=npm_and_yarn&previous-version=7.13.1&new-version=7.14.1)](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-related packages to the latest versions for enhanced linting and type checking.

### Detailed summary
- Updated `@typescript-eslint/parser` to `7.14.1` in multiple files
- Updated various related packages to maintain compatibility with TypeScript versions
- Added new versions for `@typescript-eslint/scope-manager`, `@typescript-eslint/types`, and other related packages

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

<!-- end pr-codex -->
2024-06-25 21:49:30 +00:00
Jonas Daniels 518ec9d90c [Chore] Update labeler.yml to use 'changed-files' key for paths (#3493) 2024-06-25 14:26:33 -07:00
github-actions[bot] 6b0a96dcc7 chore(chains): update chains (#3491)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-25 14:19:47 -07:00
dependabot[bot] 1def50f871 build(deps-dev): bump @swc/core from 1.5.24 to 1.6.5 (#3470)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-25 14:18:27 -07:00
dependabot[bot] addd1bebcc build(deps): bump actions/labeler from 4 to 5 (#3473)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-25 14:18:14 -07:00
dependabot[bot] 87176a688b build(deps-dev): bump mocha and @types/mocha (#3483)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-25 14:18:01 -07:00
jnsdls 75a2736962 [Chore] Add conditional check in PayEmbed-disconnected test using TW_SECRET_KEY (#3490)
### TL;DR
Update PayEmbed and PayEmbed-disconnected tests to include conditional running based on TW_SECRET_KEY.

### What changed?
- Added conditional checks for TW_SECRET_KEY in PayEmbed-disconnected.test.tsx and PayEmbed.test.tsx
- Ensured tests run only if TW_SECRET_KEY is defined

### How to test?
1. Ensure TW_SECRET_KEY is set in your environment
2. Run the updated tests
3. Verify that the tests only execute if TW_SECRET_KEY is present

### Why make this change?
To add more robust control over test execution based on the presence of secret keys.

---

<!-- start pr-codex -->

---

## PR-Codex overview
The focus of this PR is to refactor test files for `PayEmbed` component by using `describe.runIf` to conditionally run tests based on the environment secret key.

### Detailed summary
- Refactored test files for `PayEmbed` component to conditionally run tests based on the secret key environment variable using `describe.runIf`.
- Updated test cases to improve readability and maintainability.

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

<!-- end pr-codex -->
2024-06-25 21:02:49 +00:00
gregfromstl edd904bd9e fix(auth): add warning and improve parameter checks in verifySignature (#3488)
### TL;DR
Added a warning that gets triggered once when the EOA signature verification fails and neither the chain nor the client parameter is provided in the verifySignature function. This is crucial to guide users on setting up smart accounts properly.

### What changed?
- Introduced a `warningTriggered` flag to ensure the warning is only logged once.
- Added a warning message to notify about missing chain and client parameters when EOA signature verification fails.
- Updated `isVerifyContractWalletSignatureParams` to explicitly check for undefined values in chain and client parameters.

### How to test?
1. Call the `verifySignature` function without providing the `chain` and `client` parameters.
2. Observe the console for the warning message.
3. Ensure the warning triggers only once even with multiple calls to `verifySignature` without the required parameters.

### Why make this change?
This change improves the developer experience by providing clear guidance when critical parameters are missing for using smart accounts with the Auth module. This helps in debugging and ensures proper setup for smart accounts.

---

<!-- start pr-codex -->

---

## PR-Codex overview
The focus of this PR is to add a warning message when verifying a signature without a chain or client provided.

### Detailed summary
- Added a warning message when verifying a signature without a chain or client
- Updated the `isVerifyContractWalletSignatureParams` function to check for `options.chain` and `options.client` values

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

<!-- end pr-codex -->
2024-06-25 20:10:06 +00:00
kien-ngo 88070422ff Export getClaimConditionById for Drop1155 (#3481)
<!-- start pr-codex -->

## PR-Codex overview
This PR focuses on exporting `getClaimConditionById` for Drop1155 in the `erc1155.ts` file.

### Detailed summary
- Export `getClaimConditionById` for Drop1155
- Import `GetClaimConditionByIdParams` from generated file

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

<!-- end pr-codex -->
2024-06-25 19:39:36 +00:00
gregfromstl 95cceff1a9 test(ts): improve airdrop test robustness (#3489)
This pull request updates multiple test cases to use the `sendAndConfirmTransaction` method instead of the `sendTransaction` method. The tests affected include those for airdropERC1155WithSignature, airdropERC20WithSignature, airdropERC721WithSignature, claimERC1155, claimERC20, and claimERC721. The main goal is to ensure transactions are confirmed within the tests for improved reliability and accuracy.

### TL;DR
Replaced `sendTransaction` with `sendAndConfirmTransaction` in multiple test cases to ensure transactions are confirmed.

### What changed?
- Updated `airdropERC1155WithSignature.test.ts` to use `sendAndConfirmTransaction`
- Updated `airdropERC20WithSignature.test.ts` to use `sendAndConfirmTransaction`
- Updated `airdropERC721WithSignature.test.ts` to use `sendAndConfirmTransaction`
- Updated `claimERC1155.test.ts` to use `sendAndConfirmTransaction`
- Updated `claimERC20.test.ts` to use `sendAndConfirmTransaction`
- Updated `claimERC721.test.ts` to use `sendAndConfirmTransaction`

### How to test?
Run the test suite to ensure all tests pass with the updated method.

### Why make this change?
This change improves the reliability and accuracy of the test cases by ensuring that transactions are confirmed within the tests.

---

<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates transaction handling in airdrop ERC contracts tests to use `sendAndConfirmTransaction` instead of `sendTransaction`.

### Detailed summary
- Replaced `sendTransaction` with `sendAndConfirmTransaction` in airdrop ERC contracts tests for better transaction handling.

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

<!-- end pr-codex -->
2024-06-25 11:58:37 -07:00
jnsdls 29102740a5 [Chore] Update PayEmbed test to increase timeout for connect wallet button (#3484)
<!-- start pr-codex -->

## PR-Codex overview
The focus of this PR is to skip a flaky test for `eth_getLogs` and add a timeout to a test for rendering a connect wallet button.

### Detailed summary
- Skipped flaky test for `eth_getLogs`
- Added a timeout to the test for rendering a connect wallet button

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

<!-- end pr-codex -->
2024-06-25 17:58:33 +00:00
MananTank 66cc3e9d0f Add pay card in landing page (#3486)
## 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
The focus of this PR is to enhance the dashboard page by adding new product sections with updated styling and icons.

### Detailed summary
- Added `fontWeight` and `letterSpacing` styling to dashboard section titles
- Updated product sections with new names, labels, descriptions, and icons
- Included a new "Pay" product section for easy fiat onramps integration
- Improved the "Connect UI" section to "Sign in" with updated description

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

<!-- end pr-codex -->
2024-06-25 17:37:32 +00:00
MananTank ae47fd6ed0 Improved pay dashboard empty state ui (#3485)
## 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
The focus of this PR is to update error handling messages and add loading overlays in the PayAnalytics components.

### Detailed summary
- Renamed `NoDataAvailable` function to `FailedToLoad` in `common.tsx`.
- Added `NoDataOverlay` function in `common.tsx`.
- Updated error handling and loading messages in `PayCustomersTable.tsx`.
- Updated error handling and loading messages in `PaymentHistory.tsx`.
- Updated error handling in `PaymentsSuccessRate.tsx`.

> The following files were skipped due to too many changes: `apps/dashboard/src/components/pay/PayAnalytics/components/PaymentsSuccessRate.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/components/TotalVolumePieChart.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/components/TotalPayVolume.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/components/PayNewCustomers.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/components/Payouts.tsx`

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

<!-- end pr-codex -->
2024-06-25 17:37:30 +00:00
jnsdls 697d897c4c [Refactor] Update sponsorship policies to enable server verifier toggling (#3487)
### TL;DR

This PR refactors the SponsorshipPolicies component to include an 'enabled' boolean field within the serverVerifier object, and updates the related logic to enable conditional rendering based on this field.

### What changed?

- Added 'enabled' field in the serverVerifier validation schema
- Updated initial state and form submission logic to handle the 'enabled' field
- Modified conditional rendering logic in the GatedSwitch component to use the 'enabled' field

### How to test?

1. Go to the SponsorshipPolicies component
2. Toggle the GatedSwitch to enable/disable the serverVerifier settings
3. Ensure the form behaves as expected based on the enabled state

### Why make this change?

This refactor aims to simplify the management and conditional rendering of the serverVerifier settings by introducing an 'enabled' field. This makes the logic more intuitive and easier to maintain.

---
2024-06-25 17:29:00 +00:00
jnsdls a25bb49d5f [Fix] Add onClickApply handler to CreditsItem and CreditsButton components (#3482) 2024-06-25 15:42:27 +00:00
jnsdls da6fdf66eb [Refactor] Remove unused modal components and simplify form layout (#3479)
### TL;DR

Refactored the `ApplyForOpCreditsModal` component to simplify its usage and improve code maintainability. Updated related components to match this change.

### What changed?

- Removed `Modal` and related sub-components from `ApplyForOpCreditsForm.tsx` and adjusted the structure to use `Flex`.
- Simplified `ApplyForOpCreditsModal` by removing unnecessary props and state management, and updated its contents to directly return the form and additional modals.
- Updated references and affected components to use the new simplified `ApplyForOpCreditsModal`.
- Refactored `CreditsItem` component to use `useModalContext` for handling modals.
- Updated navigation link in `OnboardingSteps` to point to the new location of the form.
- Modified `SettingsGasCreditsPage` to directly include the updated `ApplyForOpCreditsModal` and added a link to the accelerator program's blog post.

### How to test?

1. Navigate to the gas credits application section in the dashboard settings.
2. Verify that the form for applying to the Optimism Superchain App Accelerator is displayed correctly and functions as expected.
3. Test the new navigation flow to ensure all links and modals work correctly after the refactor.

### Why make this change?

This refactor aims to simplify the modal implementation for applying for gas credits, reduce code complexity, and improve maintainability by removing unnecessary state management and props from the `ApplyForOpCreditsModal` component.

---

<!-- start pr-codex -->

---

## PR-Codex overview
The focus of this PR is to update the UI content related to gas credits and sponsorship applications in the dashboard settings.

### Detailed summary
- Updated UI content for applying to the Optimism Superchain App Accelerator.
- Refactored ApplyForOpCreditsForm UI structure.
- Enhanced ApplyForOpCreditsModal functionality.
- Modified CreditsItem UI for applying to gas credits.
- Removed ApplyForOpCreditsModal from OnboardingSteps component.

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

<!-- end pr-codex -->
2024-06-25 04:35:06 +00:00
MananTank 9d65979d49 [v4] Fix buy with Crypto error when using InApp wallet (#3476)
<!-- start pr-codex -->

## PR-Codex overview
This PR fixes an error related to buying with Crypto transactions using InApp wallet.

### Detailed summary
- Fixed error in `ConfirmationScreen.tsx` related to Crypto transactions
- Added `walletIds` import from `@thirdweb-dev/wallets`
- Modified transaction request based on wallet type before sending

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

<!-- end pr-codex -->
2024-06-24 23:47:23 +00:00
jnsdls 0c166fc1d9 [Refactor] Remove deprecated contract payments page and references (#3475)
<!-- start pr-codex -->

## PR-Codex overview
This PR focuses on removing unused code related to payments, contracts, and webhooks in the dashboard app.

### Detailed summary
- Removed multiple GraphQL files, components, hooks, and pages related to payments, contracts, and webhooks
- Updated page IDs and routes
- Updated redirects for payments settings and contracts
- Updated usage interfaces and route configurations
- Updated dependencies and package.json
- Updated cache keys for payments and contracts
- Updated solutions pages and products, removed NFT-checkout references

> The following files were skipped due to too many changes: `apps/dashboard/src/pages/solutions/gaming.tsx`, `apps/dashboard/src/components/app-layouts/app.tsx`, `apps/dashboard/src/pages/dashboard/connect/pay.tsx`, `pnpm-lock.yaml`

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

<!-- end pr-codex -->
2024-06-24 23:02:51 +00:00
github-actions[bot] 0ec6448320 chore(chains): update chains (#3464)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-24 12:44:27 -07:00
CryptoFennecandManan Tank 70b31ddcd0 Fixed switch chain on WalletConnect (#3465)
Co-authored-by: Manan Tank <[email protected]>
2024-06-24 12:38:05 -07:00
IDubuque 860f61c727 Isaac/pay usage tracker schema (#3447)
## Problem solved

- update usage tracker schema with pay fields
- - chainName: String
- - tokenSymbol: String
- - dstChainId: UInt64
- - dstTokenAddress: String
- - dstChainName: String
- - dstTokenSymbol: String
- - msLatency: UInt64
- - toAmountUSDCents: UInt64
- - secondaryProvider: String
- - onRampId: String

## Changes made

- [x] service-utils: Update usage tracker schema

## How to test

## Contributor NFT

Paste in your wallet address below and we will airdrop you a special NFT when your pull request is merged.

```Address: ```

<!-- start pr-codex -->

---

## PR-Codex overview
This PR adds new fields to the `UsageEvent` schema in the `usage.ts` file of the `service-utils` package for Cloudflare worker usage tracking.

### Detailed summary
- Added `chainName`, `tokenSymbol`, `dstChainId`, `dstTokenAddress`, `dstChainName`, `dstTokenSymbol`, `msLatency`, `toAmountUSDCents`, `secondaryProvider`, and `onRampId` fields to `UsageEvent` schema.

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

<!-- end pr-codex -->
2024-06-24 19:10:32 +00:00