-
Notifications
You must be signed in to change notification settings - Fork 4
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
[POC] Experiment paymaster contract (EIP 4337) #29
Comments
Followed this tutorial: Custom Paymaster Tutorial Only BootLoader (a system contract) can call this method. It is a never deployed contract and cannot be called. It does, however, have a formal address that is used by Procedure
Result
The magic lies on passing a
There are 2 types:
The input data is not needed for this paymaster on testnet. It's uncertain what's its role on mainnet, or any other potential usage. But this could be the entry point of limiting the usage to specific applications. |
For the next time, could we try to deploy a uniswap contract pool on testnet and try to deploy a paymaster that authorize a swap on a specific pool? |
Follow up
|
Paymaster Properties
For points marked as *, we might need to clarify from zkSync team. I suppose this will work for all types of transactions, but uncertain at this point if there are some |
Forked Repo on testing paymaster: Working branch: StepsPlease refer to https://github.com/crypto-matto/custom-paymaster-tutorial/tree/test-paymaster#testing-with-local-zksync |
Paying the fee for Uniswap transaction is doable, check out this PR: crypto-matto/custom-paymaster-tutorial#1 |
Zksync has implemented account abstraction (EIP 4337)
https://eips.ethereum.org/EIPS/eip-4337
https://era.zksync.io/docs/reference/concepts/account-abstraction.html
We would like to experiment this feature by creating a paymaster that would accept a custom token to pay the gas fee on transactions
Ideally we should come up with a prototype contract and deliver a demo
The text was updated successfully, but these errors were encountered: