Skip to content

Conversation

@tynes
Copy link
Contributor

@tynes tynes commented Jun 8, 2024

Description

Ports the custom gas token feature to OptimismPortal2.
This will enable fault proofs to run on custom gas token
chains.

@codecov
Copy link

codecov bot commented Jun 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 16.44%. Comparing base (822df50) to head (3d2d8dd).
Report is 7 commits behind head on develop.

❗ There is a different number of reports uploaded between BASE (822df50) and HEAD (3d2d8dd). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (822df50) HEAD (3d2d8dd)
cannon-go-tests 1 0
Additional details and impacted files
@@             Coverage Diff              @@
##           develop   #10780       +/-   ##
============================================
- Coverage    60.69%   16.44%   -44.25%     
============================================
  Files           20        8       -12     
  Lines         1781      535     -1246     
  Branches        71       71               
============================================
- Hits          1081       88      -993     
+ Misses         667      447      -220     
+ Partials        33        0       -33     
Flag Coverage Δ
cannon-go-tests ?
chain-mon-tests 27.14% <ø> (ø)
sdk-tests 16.44% <ø> (ø)

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

see 12 files with indirect coverage changes

@tynes
Copy link
Contributor Author

tynes commented Jun 10, 2024

@coderabbitai summary

@coderabbitai

This comment was marked as resolved.

@tynes
Copy link
Contributor Author

tynes commented Jun 14, 2024

@coderabbitai Double check that all of the tests from OptimismPortal.t.sol involving custom gas token have been ported to OptimismPortal2.t.sol

@coderabbitai

This comment was marked as resolved.

@tynes tynes force-pushed the ctb/portal-2-cgt branch 2 times, most recently from 2e6b583 to 0f28a73 Compare June 28, 2024 22:41
@tynes tynes marked this pull request as ready for review June 28, 2024 23:34
@tynes tynes requested a review from a team as a code owner June 28, 2024 23:34
@tynes tynes requested review from clabby and mds1 and removed request for clabby June 28, 2024 23:34
@tynes
Copy link
Contributor Author

tynes commented Jun 28, 2024

@mds1 - I went through and made sure all of the tests were ported from the original implementation

Copy link
Contributor

@mds1 mds1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, seems like the merge was pretty straightforward as expected.

I assume in a follow up PRs we will delete the original portal then rename portal2 to portal?

I went through and made sure all of the tests were ported from the original implementation

Unfortunately I did not get a chance to double check this, but would just ask if we can get someone else to verify none are missing before merge. Worst case I can confirm once I'm back from vacation

@tynes
Copy link
Contributor Author

tynes commented Jul 15, 2024

I assume in a follow up PRs we will delete the original portal then rename portal2 to portal?

Yup, exactly!

Unfortunately I did not get a chance to double check this, but would just ask if we can get someone else to verify none are missing before merge. Worst case I can confirm once I'm back from vacation

Nobody has taken the time to do this review yet, so this is still pending. No major rush, this is nice to have to enable the interop devnet to run with the fault proof code, will rebase #11051 on top of this after its merged on develop

@tynes
Copy link
Contributor Author

tynes commented Jul 24, 2024

@mds1 There has been no progress on this PR while you have been on vacation, but I did go through myself to double check that all the tests were ported and didn't find anything missing

tynes added 4 commits July 26, 2024 16:53
Ports the custom gas token feature to `OptimismPortal2`.
This will enable fault proofs to run on custom gas token
chains.
@tynes tynes force-pushed the ctb/portal-2-cgt branch from 3d2d8dd to 8b20e49 Compare July 26, 2024 23:05
@semgrep-app
Copy link
Contributor

semgrep-app bot commented Jul 26, 2024

Semgrep found 2 todos_require_linear findings:

  • packages/devnet-tasks/src/tasks/deposit-eth.ts
  • packages/devnet-tasks/src/tasks/deposit-erc20.ts

Please create a GitHub ticket for this TODO.

Ignore this finding from todos_require_linear.

@tynes
Copy link
Contributor Author

tynes commented Aug 1, 2024

@mds1 bump on this, I know you are busy but I do think this is good to merge. It will unblock me from doing another custom gas token release

Copy link
Contributor

@mds1 mds1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There has been no progress on this PR while you have been on vacation, but I did go through myself to double check that all the tests were ported and didn't find anything missing

Thanks, I also confirmed with a regex search of \bfunction\s+test.*Gas.*\b to find all gas related tests in OptimismPortal.t.sol and confirm it matches the set in OptimismPortal2.t.sol, which it did

Since no other changes have been made since my last review, this LGTM. Nice work, it's great to have these merged

@tynes tynes added this pull request to the merge queue Aug 1, 2024
Merged via the queue into develop with commit ed817c7 Aug 1, 2024
@tynes tynes deleted the ctb/portal-2-cgt branch August 1, 2024 22:59
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.

3 participants