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

wip: L2 genesis generation #9792

Closed
wants to merge 7 commits into from
Closed

wip: L2 genesis generation #9792

wants to merge 7 commits into from

Conversation

tynes
Copy link
Contributor

@tynes tynes commented Mar 8, 2024

Description

Draft PR for L2 genesis generation using solidity. The test currently takes too long to run. Already optimized it to be much slower than it was


mapping(address => string) internal names;

function name() public pure override returns (string memory) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Named return arguments to functions must be appended with an underscore (_)

Ignore this finding from sol-style-return-arg-fmt.


_loadAddresses(string.concat(vm.projectRoot(), "/deployments/", deploymentContext, "/.deploy"));
/// @dev Creates a mapping of predeploy addresses to their names. This needs to be updated
Copy link
Contributor

Choose a reason for hiding this comment

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

Prefer @notice over @dev in natspec comments

Ignore this finding from sol-style-notice-over-dev-natspec.

Copy link

codecov bot commented Mar 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.60%. Comparing base (cf97853) to head (aa49c8b).
Report is 156 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #9792       +/-   ##
===========================================
- Coverage    28.52%   0.60%   -27.92%     
===========================================
  Files          164      91       -73     
  Lines         7214    2463     -4751     
  Branches      1324     575      -749     
===========================================
- Hits          2058      15     -2043     
+ Misses        5050    2448     -2602     
+ Partials       106       0      -106     
Flag Coverage Δ
cannon-go-tests ?
chain-mon-tests ?
common-ts-tests ?
contracts-bedrock-tests 0.60% <ø> (ø)
contracts-ts-tests ?
core-utils-tests ?
sdk-next-tests ?
sdk-tests ?

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

Files Coverage Δ
...ages/contracts-bedrock/src/libraries/Constants.sol 0.00% <ø> (ø)

... and 73 files with indirect coverage changes

zhiqiangxu added a commit to zhiqiangxu/optimism that referenced this pull request Mar 9, 2024
TODO: wait for ethereum-optimism#9792 and initialize accordingly
zhiqiangxu added a commit to zhiqiangxu/optimism that referenced this pull request Mar 9, 2024
TODO: wait for ethereum-optimism#9792 and initialize accordingly
Copy link
Contributor

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 Stale and removed Stale labels Mar 24, 2024
Copy link
Contributor

semgrep-app bot commented Apr 4, 2024

Semgrep found 2 sol-style-notice-over-dev-natspec findings:

Prefer @notice over @dev in natspec comments

Ignore this finding from sol-style-notice-over-dev-natspec.

Semgrep found 1 iterate-over-empty-map finding:

Iteration over a possibly empty map Kinds. This is likely a bug or redundant code

Ignore this finding from iterate-over-empty-map.

Semgrep found 2 todos_require_linear findings:

  • packages/sdk/src/cross-chain-messenger.ts
  • op-batcher/batcher/channel_builder.go

Please create a GitHub ticket for this TODO.

Ignore this finding from todos_require_linear.

@protolambda
Copy link
Contributor

Closing in favor of #10106 where I'll continue the work

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