feat: implement wallet_sendCalls request handler#526
Open
ultraviolet10 wants to merge 17 commits intoaritra/5792_get_capabilitiesfrom
Open
feat: implement wallet_sendCalls request handler#526ultraviolet10 wants to merge 17 commits intoaritra/5792_get_capabilitiesfrom
wallet_sendCalls request handler#526ultraviolet10 wants to merge 17 commits intoaritra/5792_get_capabilitiesfrom
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
fcdfc53 to
3f44845
Compare
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 |
0fbd8ca to
e08e6e4
Compare
11ef2c8 to
7502930
Compare
e08e6e4 to
e2b48e4
Compare
e2b48e4 to
0cd1436
Compare
7502930 to
06f22f5
Compare
0cd1436 to
cf1850c
Compare
cf1850c to
cb66b67
Compare
d1589ca to
af3fd5b
Compare
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?
bun.lockb
Outdated
demos/react/package.json
Outdated
| "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 :)
wallet_sendCalls request handler
af3fd5b to
dfe3f5a
Compare
cb66b67 to
a8d3bf0
Compare
ultraviolet10
commented
May 22, 2025
| type WalletSendCallsParams = WalletSendCallsParameters<BoopPaymasterCapability, Hex, Hex | bigint> | ||
|
|
||
| // cf. | ||
| export function checkedWalletSendCallsParams(params: WalletSendCallsParams | undefined): ValidWalletSendCallsRequest { |
Contributor
Author
…for better flexibility
dfe3f5a to
be88f94
Compare
a8d3bf0 to
9ed7446
Compare
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.