refactor(tempo): rename wallet.send to wallet.transfer#5121
Merged
Conversation
- Rename `Actions.wallet.send` to `Actions.wallet.transfer`. - Rename `Hooks.wallet.useSend` to `Hooks.wallet.useTransfer`. - Reshape parameters to match viem's discriminated `editable` union: default mode requires `amount`, `to`, `token`. Pass `editable: true` to open the wallet UI with optional pre-filled fields. - Bump `viem` to 2.49.2 (required for `Actions.wallet.transfer`). - Bump `accounts` peer dep to `~0.12`. - Update site docs and sidebar. Amp-Thread-ID: https://ampcode.com/threads/T-019e294e-3d74-70e5-a770-d4de2687da00
🦋 Changeset detectedLatest commit: d1d441d The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
@wagmi/cli
@wagmi/connectors
@wagmi/core
create-wagmi
wagmi
@wagmi/solid
@wagmi/vue
commit: |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Size Change: 0 B Total Size: 1.17 MB ℹ️ View Unchanged
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5121 +/- ##
==========================================
- Coverage 88.73% 88.66% -0.08%
==========================================
Files 303 303
Lines 2823 2823
Branches 811 811
==========================================
- Hits 2505 2503 -2
- Misses 122 123 +1
- Partials 196 197 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
6d3369c to
3886caf
Compare
Renamed wallet actions and hooks for clarity. Updated peer dependency for accounts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mirrors the viem rename of
Actions.wallet.send→Actions.wallet.transferin the wagmi tempo surface.Changes
Actions.wallet.send→Actions.wallet.transfer(@wagmi/core/tempo).Hooks.wallet.useSend→Hooks.wallet.useTransfer(wagmi/tempo).editableunion: by defaultamount,to, andtokenare required and the transfer is submitted without showing an editable UI. Passeditable: trueto open the wallet send UI with optional pre-filled fields.viemdev dep + CI matrix to2.49.2(required forActions.wallet.transfer).accountspeer dep to~0.12.Migration