Skip to content
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

Update Examples and Gas Metering to be 0.7 Compatible #270

Closed
nlordell opened this issue Feb 23, 2024 · 1 comment
Closed

Update Examples and Gas Metering to be 0.7 Compatible #270

nlordell opened this issue Feb 23, 2024 · 1 comment

Comments

@nlordell
Copy link
Collaborator

nlordell commented Feb 23, 2024

Examples and 4337 gas metering use EntryPoint v0.6 compatible module, we should update the code to work with the latest EntryPoint.

@nlordell nlordell changed the title Examples Should Use Released Packages Update Examples and Gas Metering to be 0.7 Compatible Feb 23, 2024
nlordell added a commit that referenced this issue Mar 5, 2024
Fixes #227 

This PR updates the E2E tests to work with the latest bundler for the
EntryPoint contract v0.7. Note that there was a notable change in that
the `PackedUserOperation` struct is only used on-chain, and the bundler
RPC uses a different `UserOperation` type that is completely unpacked.
This required some additional helper methods as well as some adjustments
to tests to distinguish between the packed and unpacked versions of user
operations.

Also, unfortunately the reference bundler repository is not tagged yet -
so we are using a commit hash that corresponds to the latest version. I
asked the 4337 team to create a new tag, at which point, I will update
the docker file. Additionally, the latest bundler version uses
submodules, so some dockerfile tweaking was required.

Note that the broken CI is expected until #270 is fixed.
nlordell added a commit that referenced this issue Mar 5, 2024
Fixes #227 

This PR updates the E2E tests to work with the latest bundler for the
EntryPoint contract v0.7. Note that there was a notable change in that
the `PackedUserOperation` struct is only used on-chain, and the bundler
RPC uses a different `UserOperation` type that is completely unpacked.
This required some additional helper methods as well as some adjustments
to tests to distinguish between the packed and unpacked versions of user
operations.

Also, unfortunately the reference bundler repository is not tagged yet -
so we are using a commit hash that corresponds to the latest version. I
asked the 4337 team to create a new tag, at which point, I will update
the docker file. Additionally, the latest bundler version uses
submodules, so some dockerfile tweaking was required.

Note that the broken CI is expected until #270 is fixed.
remedcu added a commit that referenced this issue Mar 5, 2024
This PR removed the formatting issue in the `4337-gas-metering` CI.

CI failure for `safe-modules-examples` remains, and will be solved later
with #270
nlordell added a commit that referenced this issue Mar 5, 2024
Partially addresses #270 

This PR modifies the passkey example to compile once again for the 0.7
EntryPoint changes. Note that the contract addresses are also updated,
as well as the network the example is for. This is because Polygon
Mumbai is not well supported seeing as it is anchored to Goerli which is
deprecated.

Test transaction using the example application:
https://sepolia.etherscan.io/tx/0x267fa1cd04ba44701807c10ea6f7885c45c22c3ff6646fb9ef697884d91fedc8
nlordell added a commit that referenced this issue Mar 5, 2024
Fixes #227 

This PR updates the E2E tests to work with the latest bundler for the
EntryPoint contract v0.7. Note that there was a notable change in that
the `PackedUserOperation` struct is only used on-chain, and the bundler
RPC uses a different `UserOperation` type that is completely unpacked.
This required some additional helper methods as well as some adjustments
to tests to distinguish between the packed and unpacked versions of user
operations.

Also, unfortunately the reference bundler repository is not tagged yet -
so we are using a commit hash that corresponds to the latest version. I
asked the 4337 team to create a new tag, at which point, I will update
the docker file. Additionally, the latest bundler version uses
submodules, so some dockerfile tweaking was required.

Note that the broken CI is expected until #270 is fixed.
nlordell pushed a commit that referenced this issue Mar 5, 2024
This PR removed the formatting issue in the `4337-gas-metering` CI.

CI failure for `safe-modules-examples` remains, and will be solved later
with #270
nlordell added a commit that referenced this issue Mar 5, 2024
Partially addresses #270 

This PR modifies the passkey example to compile once again for the 0.7
EntryPoint changes. Note that the contract addresses are also updated,
as well as the network the example is for. This is because Polygon
Mumbai is not well supported seeing as it is anchored to Goerli which is
deprecated.

Test transaction using the example application:
https://sepolia.etherscan.io/tx/0x267fa1cd04ba44701807c10ea6f7885c45c22c3ff6646fb9ef697884d91fedc8
@nlordell
Copy link
Collaborator Author

nlordell commented Apr 3, 2024

The example was updated in #303 and gas metering is covered by #294 and #316

@nlordell nlordell closed this as completed Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant