-
Notifications
You must be signed in to change notification settings - Fork 619
TokenPaymaster (BASE_USDC, CELO_USD, LISK_LSK) #5634
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 4cead60 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
| * accountSalt: "0x...", // override account salt | ||
| * entrypointAddress: "0x...", // override entrypoint address | ||
| * erc20Paymaster: { ... }, // enable erc20 paymaster | ||
| * erc20Paymaster: "BASE_USDC", // enable erc20 paymaster |
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.
The documentation example shows erc20Paymaster but the actual configuration property is tokenPaymaster. The code sample should be updated to:
overrides: {
tokenPaymaster: TokenPaymaster.BASE_USDC
}to match the current implementation.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5634 +/- ##
==========================================
- Coverage 45.89% 45.88% -0.02%
==========================================
Files 1083 1083
Lines 56333 56393 +60
Branches 4123 4127 +4
==========================================
+ Hits 25853 25874 +21
- Misses 29788 29827 +39
Partials 692 692
*This pull request uses carry forward flags. Click here to find out more.
|
ce78454 to
60a7c39
Compare
60a7c39 to
4cead60
Compare
|
|

Problem solved
CNCT-1921
PR-Codex overview
This PR introduces support for
ERC20Token Paymasters inSmart Wallets, allowing users to utilize different token paymasters for transactions.Detailed summary
TokenPaymasterconstants forBASE_USDC,CELO_CUSD, andLISK_LSK.erc20PaymasterwithtokenPaymasterinSmartWalletOptions.estimateUserOpGasfunction to includestateOverrides.createSmartAccountto validate token paymaster usage.