feat: implement wallet_sendCalls request handler#526
Open
ultraviolet10 wants to merge 17 commits into
Open
Conversation
11 tasks
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Mar 14, 2025
ultraviolet10
marked this pull request as ready for review
March 14, 2025 15:23
ultraviolet10
force-pushed
the
aritra/5792_get_capabilities
branch
from
March 15, 2025 09:59
fcdfc53 to
3f44845
Compare
ultraviolet10
force-pushed
the
aritra/5792_wallet_sendCalls
branch
from
March 15, 2025 09:59
6c14029 to
0fbd8ca
Compare
Deploying happychain with
|
| Latest commit: |
9ed7446
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://05e4905d.happychain.pages.dev |
| Branch Preview URL: | https://aritra-5792-wallet-sendcalls.happychain.pages.dev |
ultraviolet10
force-pushed
the
aritra/5792_wallet_sendCalls
branch
from
March 20, 2025 11:06
0fbd8ca to
e08e6e4
Compare
ultraviolet10
force-pushed
the
aritra/5792_get_capabilities
branch
2 times, most recently
from
March 24, 2025 12:15
11ef2c8 to
7502930
Compare
ultraviolet10
force-pushed
the
aritra/5792_wallet_sendCalls
branch
from
March 24, 2025 12:15
e08e6e4 to
e2b48e4
Compare
ultraviolet10
force-pushed
the
aritra/5792_wallet_sendCalls
branch
from
April 28, 2025 12:05
e2b48e4 to
0cd1436
Compare
ultraviolet10
force-pushed
the
aritra/5792_get_capabilities
branch
from
April 28, 2025 12:05
7502930 to
06f22f5
Compare
ultraviolet10
force-pushed
the
aritra/5792_wallet_sendCalls
branch
from
April 28, 2025 12:17
0cd1436 to
cf1850c
Compare
ultraviolet10
changed the base branch from
aritra/5792_get_capabilities
to
graphite-base/526
May 9, 2025 11:03
ultraviolet10
force-pushed
the
aritra/5792_wallet_sendCalls
branch
from
May 12, 2025 19:19
cf1850c to
cb66b67
Compare
ultraviolet10
force-pushed
the
graphite-base/526
branch
from
May 12, 2025 19:19
d1589ca to
af3fd5b
Compare
ultraviolet10
changed the base branch from
graphite-base/526
to
aritra/5792_get_capabilities
May 12, 2025 19:19
Contributor
Author
|
some code reorg is needed 😅 |
not-reed
requested changes
May 21, 2025
| } from "./common/Layout" | ||
| import type { RequestConfirmationProps } from "./props" | ||
|
|
||
| export function getFirstParam<T>(params: [T] | undefined): T | undefined { |
Contributor
There was a problem hiding this comment.
Contributor
Author
There was a problem hiding this comment.
should probs move this to wallet-common?
| return addWatchedAsset(user.address, request.payload.params) | ||
| } | ||
|
|
||
| case "wallet_sendCalls": { |
Contributor
There was a problem hiding this comment.
does this need to be in injected as well?
| "react": "^18.3.1", | ||
| "react-dom": "^18.3.1", | ||
| "sonner": "^1.7.2", | ||
| "vaul": "^1.1.2", |
Contributor
There was a problem hiding this comment.
i think these changes aren't used?
Contributor
Author
There was a problem hiding this comment.
removed it, was testing something w/ it :)
ultraviolet10
changed the base branch from
aritra/5792_get_capabilities
to
graphite-base/526
May 22, 2025 12:42
wallet_sendCalls request handler
ultraviolet10
force-pushed
the
graphite-base/526
branch
from
May 22, 2025 13:42
af3fd5b to
dfe3f5a
Compare
ultraviolet10
force-pushed
the
aritra/5792_wallet_sendCalls
branch
from
May 22, 2025 13:42
cb66b67 to
a8d3bf0
Compare
ultraviolet10
changed the base branch from
graphite-base/526
to
aritra/5792_get_capabilities
May 22, 2025 13:42
ultraviolet10
commented
May 22, 2025
| type WalletSendCallsParams = WalletSendCallsParameters<BoopPaymasterCapability, Hex, Hex | bigint> | ||
|
|
||
| // cf. | ||
| export function checkedWalletSendCallsParams(params: WalletSendCallsParams | undefined): ValidWalletSendCallsRequest { |
Contributor
Author
ultraviolet10
changed the base branch from
aritra/5792_get_capabilities
to
graphite-base/526
May 29, 2025 07:09
…for better flexibility
ultraviolet10
force-pushed
the
graphite-base/526
branch
from
May 29, 2025 07:34
dfe3f5a to
be88f94
Compare
ultraviolet10
force-pushed
the
aritra/5792_wallet_sendCalls
branch
from
May 29, 2025 07:34
a8d3bf0 to
9ed7446
Compare
ultraviolet10
changed the base branch from
graphite-base/526
to
aritra/5792_get_capabilities
May 29, 2025 07:34
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.





Linked Issues
Description
Implemented support for the
wallet_sendCallsmethod (EIP-5792) in the wallet iframe. This allows dApps to request transaction execution through a standardized interface.Key changes:
WalletSendCalls.tsxto render transaction confirmation UIwallet_sendCallsparametersboopPaymaster)Toggle Checklist
Checklist
Basics
norswap/build-system-caching).Reminder: PR review guidelines
Correctness
testnet, mainnet, standalone wallet, ...).
< INDICATE BROWSER, DEMO APP & OTHER ENV DETAILS USED FOR TESTING HERE >
< INDICATE TESTED SCENARIOS (USER INTERFACE INTERACTION, CODE FLOWS) HERE >
and have updated the code & comments accordingly.
Architecture & Documentation
(2) commenting these boundaries correctly, (3) adding inline comments for context when needed.
comments.
in a Markdown document.
pacakges/coreandpackages/react), see here for more info.