-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EIP-5792 Support #3001
EIP-5792 Support #3001
Conversation
test(wallets/eip5792)
docs(wallets/eip5792)
🦋 Changeset detectedLatest commit: b80aaca The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 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 |
CodSpeed Performance ReportMerging #3001 will not alter performanceComparing Summary
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3001 +/- ##
==========================================
- Coverage 62.38% 61.93% -0.45%
==========================================
Files 751 765 +14
Lines 52235 54164 +1929
Branches 2968 3039 +71
==========================================
+ Hits 32588 33549 +961
- Misses 19146 20112 +966
- Partials 501 503 +2
*This pull request uses carry forward flags. Click here to find out more.
|
size-limit report 📦
|
/release-pr |
Signed-off-by: greg <gregfromstl@gmail.com>
/release-pr |
Requests the wallet to show the status of a given bundle ID. | ||
|
||
```ts | ||
await showCallsStatus({ wallet, bundleId }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this actually work? it opens the wallet with the current status?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works if the wallet supports 5792. I'm honestly not a big fan of it since it makes app developers more reliant on the wallet, but its in the spec so I included it.
packages/thirdweb/src/wallets/in-app/core/lib/in-app-wallet-calls.ts
Outdated
Show resolved
Hide resolved
} from "../../../eip5792/types.js"; | ||
import type { Account, Wallet } from "../../../interfaces/wallet.js"; | ||
|
||
const bundlesToTransactions = new Map<string, Hex[]>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this map could get huge in a long running app. would use a bounded map here or a LRU
/** | ||
* @internal | ||
*/ | ||
export async function inAppWalletSendCalls(args: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
having the wallet.sendCalls in the interface would def make it much cleaner here. separate implementation for inapp vs smart. this function does 2 jobs implicitely here (smart + inapp)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be better to separate it anyway? They were originally separate but I combined them for reuse.
/release-pr |
/release-pr |
/release-pr |
PR-Codex overview
This PR focuses on enhancing wallet capabilities and improving random bytes generation.
Detailed summary
randomBytes32
function to accept a length parameter for flexible byte generation.OneOf
type utility for handling optional object keys.