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

Karlb/celo10 2 #256

Closed
wants to merge 81 commits into from
Closed

Karlb/celo10 2 #256

wants to merge 81 commits into from

Conversation

karlb
Copy link

@karlb karlb commented Oct 12, 2024

No description provided.

Copy link

socket-security bot commented Oct 12, 2024

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

Slither found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@codecov-commenter
Copy link

codecov-commenter commented Oct 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.30%. Comparing base (e81c50d) to head (a8e1c45).

Additional details and impacted files
@@                    Coverage Diff                    @@
##           karlb/celo10-upstream     #256      +/-   ##
=========================================================
+ Coverage                  68.11%   68.30%   +0.19%     
=========================================================
  Files                         54       54              
  Lines                       4118     4118              
=========================================================
+ Hits                        2805     2813       +8     
+ Misses                      1135     1126       -9     
- Partials                     178      179       +1     
Flag Coverage Δ
cannon-go-tests 68.30% <ø> (+0.19%) ⬆️

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

see 1 file with indirect coverage changes

@karlb karlb force-pushed the karlb/celo10-2 branch 4 times, most recently from 3af7531 to 0d86137 Compare October 15, 2024 08:35
marekolszewski and others added 23 commits October 16, 2024 13:50
Adding funding.json file required to apply for retropgf
- Remove unnecessary jobs
Setting `open-pull-requests-limit: 0` prevent version updates but should
keep the security scans and updates according to
https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/configuring-dependabot-security-updates#overriding-the-default-behavior-with-a-configuration-file

> If you only require security updates and want to exclude version
> updates, you can set open-pull-requests-limit to 0 in order to prevent
> version updates for a given package-ecosystem.
* adding trivy scanning to the Docker files

* adding docker build scan

* fixing typo

* adding context for bedrock images

* adding context to ops dockerfile packages

* fixing context for ops packges:

* removing push/pull triggers and adding just a manual workflow run with workflow_dispatch
As far as I understand, all gas values are for the L1 transaction that
submits the tx batches. Therefore, the fee currency can be set to `nil`.
* Add pages workflow and forkdiff config

* Remove TODOs

* Update trigger to reflect future celo default branch pattern

* Update latest rebased commit
Remove common/interfaces/IExchange.sol (duplicate)

We keep the one in the `mento` directory.

Remove common/libraries/ReentrancyGuard.sol (duplicate)

Directly use the original from OpenZeppelin.
This allows testing of newly deployed fee currencies even when
MockSortedOracles is used. This is the some implementation used in
celo-monorepo (except for updating it to a more recent solidity
version).
so that BridgedETH and other bridged ERC20 tokens can be used as fee
currencies. I won't included testing until the FeeCurrencyDirectory is
ready.
Until we fix the errors caused by enabling it.
We need to include Celo's contracts in the count to make it succeed.
ezdac and others added 26 commits October 16, 2024 14:34
Change base fee calculation for transition block

Previously we used the parent base fee, now we use the eip1559
calculation to calculate the base fee for the transition block.

Also updated the referenced op-geth that includes an updated
CalcBaseFee function.

The approach was changed to remove reliance on IsCel2 inside CalcBaseFee
which helps to avoid unexpected consequences when working with tests that
do or don't set the cel2 fork

Co-authored-by: Piers Powlesland <[email protected]>
Make migration-block-time a required flag

---------

Co-authored-by: alecps <[email protected]>
Co-authored-by: piersy <[email protected]>
EigenDA current limit for Holesky (their documentation is currently outdated but the limit seems to be set to 16 MB based on the updated tests from [this PR](Layr-Labs/eigenda-proxy#100)).
Those have warnings with `check-interfaces.sh`. Ignore those warnings
for now.
This cheatcode is used to store the Celo L2 predeploy addresses in a
JSON file when run with forge. Inside TestEndToEndApply/initial_chain ,
the same code is called but we don't care for the generated JSON file.
So just returning `nil` makes the test work without any disadvantages.
Changes in implementation require changes in version. This is ensured
by `./scripts/checks/check-semver-diff.sh`.
…254)

* OptimismPortal2 set initial `_balance` through StorageSetter pattern

Fixes #239

The custom gas-token feature adaptation for the fault-proof system using
the `OptimismPortal2` contract has been merged recently upstream.

We are using the custom-gas-token feature and additionally require a
modification of the OptimismPortal's `_balance` value to be set
to the entire allocation of Celo on the L2 - meaning that all L1 token is
initially locked in the bridge and only usable on the L2.

Those changes are now adapted also to the `OptimismPortal2`, which
was a requirement to make our custom-gas-token pre-locked balance
feature work in conjunction with fault-proofs.

* Adapt withdraw e2e-tests to work with fault-proofs

* Use prettier for formatting e2e tests

* Fix typo

Co-authored-by: Valentin Rodygin <[email protected]>

* Set L1-fee scalars to zero in devnet

---------

Co-authored-by: Valentin Rodygin <[email protected]>
Copy link

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Oct 31, 2024
@karlb karlb closed this Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.