-
Notifications
You must be signed in to change notification settings - Fork 86
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
Gas Metering for Deployment & Token Operation #175
Conversation
Pull Request Test Coverage Report for Build 7287608968
💛 - Coveralls |
For the paymaster, do you think it would be possible to vendor the Pimlico and Alchemy paymaster code into the repo? Would make future tests (including paymasters) easier to compute. |
I won't suggest adding those codes as it uses |
Would it work if we just imported the contracts and not the JS source (assuming they build with Solidity v0.8.23)? |
It is done purely with Typescript and onchain deployed contracts. Most of the code taken from: https://github.com/schmanu/poc-safe-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.
A question:
I wanted to compare the numbers to https://github.com/zerodevapp/aa-benchmark/pull/10/files, but I found no transfer benchmarks without a paymaster and not while deploying. Should we implement that, or perhaps I just looked at the wrong place?
I believe you are asking for this one: https://github.com/safe-global/safe-modules/blob/gas-metering/4337/test/gas/Gas.spec.ts#L137 For deployment and operations without paymaster, that is implemented within this folder: https://github.com/safe-global/safe-modules/tree/gas-metering/4337/test/gas |
Are the results written down somewhere? |
Right now on the first comment of this PR: #175 (comment) But once I change to v0.2 of Module for the paymaster once as well, will have all the gas values in the README, like this: https://github.com/safe-global/safe-modules/tree/gas-metering/4337-gas-metering |
It would be nice to setup some CI for the
Not blocking the PR though. |
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.
LGTM
To Do:
Closes #170