8439 Commits
Author SHA1 Message Date
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
kien-ngo 440ebd99b7 Show error message when uploading unaccepted file types (#3462)
<!-- start pr-codex -->

## PR-Codex overview
The focus of this PR is to add a file type validation feature to the IPFS upload dropzone component.

### Detailed summary
- Added `useToast` for error notifications.
- Implemented file type validation to restrict uploading of certain file types.
- Display error toast for restricted file types.
- Updated file handling logic in the dropzone component.

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

<!-- end pr-codex -->
2024-06-24 17:34:04 +00:00
Manan Tank 02a70b928d Pay UI improvements (#3421) 2024-06-24 14:53:01 +00:00
gregfromstl c35a9adb69 docs(contributing): add instructions for testing React Native SDK changes (#3459)
### TL;DR

This PR adds a section for testing changes in the React Native SDK to the contributing guidelines and updates the formatting of type versions in the `package.json` file.

### What changed?

1. **Contributing Guidelines**: Added detailed instructions for testing React Native changes by creating a local React Native project, linking local changes, and using tools like wml and watchman.

2. **Formatting in `package.json`**: Updated the formatting of type versions to a more compact and readable style.

### How to test?

1. Follow the newly added instructions in the contributing guidelines to create a local React Native project and test changes using wml and watchman.
2. Verify that the `package.json` file's type versions formatting is correct and does not affect the build process.

### Why make this change?

This change aims to provide clearer guidance for contributors who need to test React Native SDK changes and improve the readability of the `package.json` file.

---

<!-- start pr-codex -->

---

## PR-Codex overview
The focus of this PR is to update the `package.json` file in the `thirdweb` package and provide detailed instructions for testing React Native changes.

### Detailed summary
- Updated the `typesVersions` configuration in `package.json`
- Added instructions for testing React Native changes locally
- Provided steps for setting up `wml` and `watchman` for monitoring changes
- Included guidance on linking the local SDK to a React Native project

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

<!-- end pr-codex -->
2024-06-24 08:41:26 +00:00
github-actions[bot] 841da67712 chore(chains): update chains (#3460)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-24 01:36:12 -07:00
Jonas Daniels 1a9f4b0274 [Chore] Remove ZoraTestnet references and update .gitignore (#3463) 2024-06-24 01:20:56 -07:00
github-actions[bot] 91b8ab2784 chore(chains): update chains (#3448)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-23 22:49:25 -07:00
Jonas DanielsandKien Ngo 7cbe2be50e Enhance CS Form (#3395)
Co-authored-by: Kien Ngo <[email protected]>
2024-06-23 22:45:41 -07:00
Jelilat Anofiu 2eb6278a47 fix: update chain import paths (#3458) 2024-06-23 22:42:07 -07:00
gregfromstl 224463175e [Feature] Add session transaction storage (#3451)
https://linear.app/thirdweb/issue/CNCT-1398/ts-sdk-store-in-session-transactions-in-wallet

This update introduces the ability to track transactions during a "session" within the thirdweb SDK. The key additions and changes are:

1. Exporting `getSessionTransactions` from `transaction-store.js`.
2. Adding calls to `addTransactionToSession` in `send-gasless-transaction.ts` and `send-transaction.ts`.
3. Creating a new test file `transaction-store.test.ts` to cover the transaction session functionalities.
4. Including new constants in `settings.ts` specific to session storage keys.
5. Extending `LocalStorage` class functionalities to handle transaction session data.

These changes will act as the foundation of the v1 "transactions" page in the react SDK

---

<!-- start pr-codex -->

---

## PR-Codex overview
This PR adds a `getTransactionStore` function to retrieve transaction stores and updates transaction handling in the `sendTransaction` and `sendGaslessTransaction` actions.

### Detailed summary
- Added `getTransactionStore` function to retrieve transaction stores for addresses
- Updated `sendTransaction` action to store transactions
- Added `addTransactionToStore` function to update transaction stores
- Updated `sendGaslessTransaction` action to store gasless transactions

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

<!-- end pr-codex -->
2024-06-23 21:35:20 +00:00
Joe-Thirdweb 841c6f9ab5 Joe community updates (#3456)
## Problem solved

Community Programs updates

## Changes made

- [ ] Updated messaging for startup program
- [ ] Added myCreativeOwl to Ambassadors
- [ ] Added Alfredo to Ambassadors
- [ ] Removed Kien from Ambassadors
- [ ] Removed Yash from Ambassadors

## How to test

- [ ] Startup program messaging should read "Our startup program is designed to help you build, scale, and generate revenue."
- [ ] Manual tests:
1) Scroll down to the footer
2) Click on Startup Program
3) See messaging on hero section

- [ ] Ambassador program updates
1) Scroll down to the footer
2) Click on Ambassadors
3) Scroll down to "Meet the Ambassadors"
4) Verify Kien and yash have been removed.
5) Verify Alfredo and myCreativeOwls have been added.

## Contributor NFT

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

```0xc457BD51c599695333b0AE5320e9822DBc86E0e0 ```

<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates the startup program description and ambassador profiles in the community pages.

### Detailed summary
- Updated startup program description for clarity and coherence.
- Changed ambassador names, Twitter handles, and profile images for consistency.

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

<!-- end pr-codex -->
2024-06-23 16:23:04 +00:00
jnsdls e372a3f413 pay dashboard (#3393)
<!-- start pr-codex -->

## PR-Codex overview
This PR updates package versions, improves UI components, enhances styling, and refactors URLs for consistency.

### Detailed summary
- Updated `pnpm` to version `9.4.0`
- Enhanced UI components like `Button`, `ScrollShadow`, `Badge`, and `Skeleton`
- Refactored URLs for consistency
- Improved styling and transitions in various components

> The following files were skipped due to too many changes: `apps/dashboard/src/@/components/ui/DynamicHeight.tsx`, `apps/dashboard/src/theme/index.ts`, `apps/dashboard/src/contract-ui/tabs/overview/components/Analytics.tsx`, `apps/dashboard/src/@/components/ui/CopyAddressButton.tsx`, `apps/dashboard/src/components/analytics/custom-tooltip.tsx`, `apps/dashboard/src/contract-ui/tabs/analytics/page.tsx`, `apps/dashboard/src/pages/_app.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayNewCustomers.ts`, `apps/dashboard/src/components/analytics/stack-tooltip.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/components/ExportToCSVButton.tsx`, `apps/dashboard/src/@/components/pagination-buttons.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayCustomers.ts`, `apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayVolume.ts`, `apps/dashboard/src/app/(dashboard)/(chain)/chainlist/components/client/pagination.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayPurchases.ts`, `apps/dashboard/src/@/components/ui/calendar.tsx`, `apps/dashboard/src/@/styles/globals.css`, `apps/dashboard/src/components/pay/PayAnalytics/components/common.tsx`, `apps/dashboard/src/@/components/ui/DatePickerWithRange.tsx`, `apps/dashboard/src/@/components/ui/use-toast.ts`, `apps/dashboard/src/components/analytics/area-chart.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/components/TotalVolumePieChart.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/components/PaymentsSuccessRate.tsx`, `apps/dashboard/src/@/components/ui/tabs.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/components/Payouts.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/components/PayNewCustomers.tsx`, `apps/dashboard/src/@/components/ui/toast.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/PayAnalytics.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/components/TotalPayVolume.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/components/PayCustomersTable.tsx`, `apps/dashboard/src/pages/dashboard/connect/pay.tsx`, `apps/dashboard/src/components/analytics/bar-chart.tsx`, `apps/dashboard/src/@/components/ui/select.tsx`, `apps/dashboard/src/components/analytics/auto-bar-chart.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/components/PaymentHistory.tsx`, `pnpm-lock.yaml`

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

<!-- end pr-codex -->
2024-06-23 16:11:16 +00:00
gregfromstl 4490a68c68 feat(cli): add --expo option to CLI for creating Expo projects (#3455) 2024-06-23 07:59:47 +00:00
jnsdls ce77f84407 [Refactor] Simplify ConnectModal properties and related components (#3453)
### TL;DR
Refactor the `ConnectWallet` modal to clean up and streamline the code.

### What changed?
- Refactored the `ConnectModal`, `ConnectEmbed`, `WalletSelector`, `SmartWalletConnectUI`, `InAppWalletFormUI`, etc. to replace the nested `connectModal` props with flatter independent props.
- Improved prop handling using `useMemo` hooks for better performance.
- Cleaned up redundant imports and types.

### How to test?
1. Ensure all modals (`ConnectModal`, `ConnectEmbed`) render correctly with different sizes (compact/wide).
2. Verify functionality of Wallet Selector and Connect UI components across various scenarios e.g. different wallet types, sizes, and settings.

### Why make this change?
To improve the maintainability and readability of the code, making it easier to manage and extend in the future. It also optimizes prop handling for better performance.

---

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on updating wallet connection modals and button sizes for different locales.

### Detailed summary
- Updated wallet connection modals and button sizes for multiple locales
- Removed unnecessary size property from ConnectModal
- Standardized size property across different components
- Improved consistency and clarity in wallet connection UI components

> The following files were skipped due to too many changes: `packages/thirdweb/src/react/web/wallets/shared/ConnectingScreen.tsx`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletSelectionUI.tsx`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/StartScreen.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectModal.tsx`, `packages/thirdweb/src/react/web/wallets/ecosystem/EcosystemWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/wallets/shared/WalletConnectConnection.tsx`, `packages/thirdweb/src/react/web/wallets/ecosystem/EcosystemWalletFormUI.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletFormUI.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectModalInline.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectModalContent.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/WalletSelector.tsx`

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

<!-- end pr-codex -->
2024-06-23 00:05:31 +00:00
jnsdls eaa509359f [Refactor] Remove unused ConnectUIContext and refactor wallet connection components (#3449)
This pull request aims to clean up the codebase by removing unused packages and files. The following tasks were carried out:

### What changed?

1. Deleted the `useWalletConnectionCtx.ts` file from the `thirdweb` package.
2. Deleted the `wallet-connection.tsx` file from the `thirdweb` package.
3. Updated `ConnectButton.tsx`, `AllWalletsUI.tsx`, `AnyWalletConnectUI.tsx`, `ConnectEmbed.tsx`, and other UI components to remove references to the deleted files.
4. Modified various other files in the `thirdweb` and `react` packages to ensure that no part of the codebase relies on the removed files.

### How to test?

1. Run the project and navigate through the UI to ensure that the wallet connection features are functioning as expected without any errors.
2. Check the console for any warnings or errors related to missing files or dependencies.

### Why make this change?

Removing unused packages and files helps to streamline the codebase, improving maintainability, and potentially reducing build times. This cleanup is part of ongoing efforts to ensure the codebase remains clean and efficient.

---

<!-- start pr-codex -->

---

## PR-Codex overview
This PR refactors context usage in the connect wallet UI and updates locale types for in-app wallets.

### Detailed summary
- Refactored context usage in connect wallet UI
- Updated locale types for in-app wallets
- Renamed functions for better clarity

> The following files were skipped due to too many changes: `packages/thirdweb/src/react/web/wallets/shared/GetStartedScreen.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/InjectedConnectUI.tsx`, `packages/thirdweb/src/react/web/wallets/shared/CoinbaseSDKConnection.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/useConnectModal.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/ConnectButton.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletSelectionUI.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/AllWalletsUI.tsx`, `packages/thirdweb/src/react/web/wallets/ecosystem/EcosystemWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/wallets/shared/SocialLogin.tsx`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/wallets/ecosystem/EcosystemWalletFormUI.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/StartScreen.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectModal.tsx`, `packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx`, `packages/thirdweb/src/react/web/wallets/shared/OTPLoginUI.tsx`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletFormUI.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectModalInline.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/wallets/shared/WalletConnectConnection.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectModalContent.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/WalletSelector.tsx`

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

<!-- end pr-codex -->
2024-06-23 00:05:29 +00:00
kien-ngo e743489135 Fix file input uploads (#3452)
## 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 removes the `onClick` event listener from a `FileInput` component in the dashboard app.

### Detailed summary
- Removed `onClick` event listener from `FileInput.tsx` component in the dashboard app.

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

<!-- end pr-codex -->
2024-06-22 16:22:53 +00:00
0xFirekeeper ab460230fb Unity 4.16.5 (#3446)
<!-- start pr-codex -->

## PR-Codex overview
This PR updates the Unity SDK version to 4.16.5 and sets the platform accordingly.

### Detailed summary
- Updated Unity SDK version to 4.16.5
- Set X_SDK_PLATFORM to "unity"
- Updated X_SDK_VERSION to "4.16.5"
- Set X_SDK_OS to browser's OS or "unknown"

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

<!-- end pr-codex -->
2024-06-22 10:19:41 +00:00
YashandJonas Daniels b1d92ef4b7 fix broken account abstraction link on dashboard and playground (#3440)
Co-authored-by: Jonas Daniels <[email protected]>
2024-06-22 22:17:48 +12:00
Kien NgoandJonas Daniels 023dfddaeb Playground example: Blockchain API (#3394)
Co-authored-by: Jonas Daniels <[email protected]>
2024-06-22 18:24:46 +12:00
gregfromstl fe775166d4 [Chore] Add missing walletconnect exports to RN wallet exports (#3444)
### TL;DR

Adds wallet connect functions to react native.

### What changed?

- Added `createWalletConnectClient`, `createWalletConnectSession`, `disconnectWalletConnectSession`, `getActiveWalletConnectSessions`, and `DefaultWalletConnectRequestHandlers` exports to `wallets.native.ts`
- Added type exports `WalletConnectClient` and `WalletConnectSession` to `wallets.native.ts`

### How to test?

1. Import the new functions and types in a React Native project.
2. Test creating, managing, and disconnecting WalletConnect sessions.

### Why make this change?

To provide WalletConnect support in the React Native SDK for better wallet management and interoperability.

---
2024-06-21 19:53:42 +00:00