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

[ETHEREUM-CONTRACTS] payable macro forwarder #2025

Merged
merged 10 commits into from
Oct 14, 2024
Merged

Conversation

d10r
Copy link
Collaborator

@d10r d10r commented Oct 1, 2024

Since batch calls are payable, making the MacroForwarder payable allows the building of macros forwarding ETH.

This PR includes a test case with a new example macro offering more than one operation (create/update/delete flow), using the convention of paramsX view functions for convenient parameter encoding.

Copy link

github-actions bot commented Oct 1, 2024

Changelog Reminder

Reminder to update the CHANGELOG.md for any of the modified packages in this PR.

  • CHANGELOG.md modified
  • Double check before merge

@d10r d10r marked this pull request as ready for review October 1, 2024 15:33
@d10r d10r requested a review from hellwolf as a code owner October 1, 2024 15:33
@hellwolf hellwolf linked an issue Oct 9, 2024 that may be closed by this pull request
8 tasks
@d10r d10r requested a review from a team as a code owner October 11, 2024 10:11
Copy link

codecov bot commented Oct 11, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 88.37%. Comparing base (345d564) to head (7902de6).
Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
...ereum-contracts/contracts/utils/MacroForwarder.sol 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #2025   +/-   ##
=======================================
  Coverage   88.37%   88.37%           
=======================================
  Files         111      111           
  Lines        7001     7003    +2     
  Branches      964      963    -1     
=======================================
+ Hits         6187     6189    +2     
  Misses        812      812           
  Partials        2        2           
Flag Coverage Δ
ethereum-contracts 94.51% <80.00%> (+<0.01%) ⬆️
sdk-core 88.37% <80.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hellwolf hellwolf merged commit f3f4a7d into dev Oct 14, 2024
23 of 24 checks passed
@hellwolf hellwolf deleted the payable-macro-forwarder branch October 14, 2024 11:50
Copy link

XKCD Comic Relif

Link: https://xkcd.com/2025
https://xkcd.com/2025

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

Successfully merging this pull request may close these issues.

[ETHEREUM-CONTRACTS] TrustedMacros: A TrustedForwarder that rules them all
2 participants