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

op-node: regolith fork systemtx change #4961

Merged
merged 1 commit into from
Feb 23, 2023
Merged

Conversation

protolambda
Copy link
Contributor

Description

Implement the Regolith is-system-tx == false change, and set the l1-info-tx gas to 1M gas.

Tests

  • Extended attributes builder tests to cover different L1/L2 blocktime activation contexts
  • Extended L1 info deposit tests to cover regolith option

This only tests the derivation-pipeline change, which is a relatively small part of Regolith. Once the op-geth changes land and get pulled in as op-node dependency we can implement full e2e-tests (and update existing tests to also run regolith more).

Metadata

Fix CLI-3462

@changeset-bot
Copy link

changeset-bot bot commented Feb 23, 2023

⚠️ No Changeset found

Latest commit: 68e2b49

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

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

Nice.

Copy link
Collaborator

@mslipper mslipper left a comment

Choose a reason for hiding this comment

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

One non-blocking question. Happy to merge when you're ready.

@mslipper mslipper merged commit 096d9c2 into develop Feb 23, 2023
@mslipper mslipper deleted the regolith-sys-deposits branch February 23, 2023 23:52
lightscale-luke added a commit to kroma-network/zkevm-circuits that referenced this pull request Jun 20, 2023
- Update system deposit tx gas limit.
  See ethereum-optimism/optimism#4961
- Add `ValidatorRewardRatio` argument to `setL1BlockValues`.
lightscale-luke added a commit to kroma-network/zkevm-circuits that referenced this pull request Jun 20, 2023
- Update system deposit tx gas limit.
  See ethereum-optimism/optimism#4961
- Add `ValidatorRewardRatio` argument to `setL1BlockValues`.
lightscale-luke added a commit to kroma-network/zkevm-circuits that referenced this pull request Jun 20, 2023
- Renaming of FeeVaults:
  Previously, the names of the vaults were based on the source of funds,
  but now they are named based on the purpose of the funds.
    Before: BaseFeeVault, PriorityFeeVault, RollupFeeVault
    After: ValidatorRewardVault, ProtocolVault, ProposerRewardVault

- Supporting Validator decentralization:
  * Previously, the fee that meant to be burnt on Ethereum were
    colellected to BaseFeeVault.
  * With validator decentrailization, the fee is distributed to
    ValidatorRewardVault and ProtocolVault.
  * The distribution is validated on `VpRewardHook` step
    (Validator Protocol Reward Hook).
    Calcuation on the step is done as follow:
    e.g.
    Total reward = 20001, validator reward ratio = 2000
    Validator reward = Floor(20001 * 2000 / 10000) = 4000
      -> to ValidatorRewardVault
    Protocol reward = 20001 - 4000 = 16001
      -> to ProtocolVault

- ProposerRewardVault is similar to RollupFeeVault

test) Mocking variables and functions modified:

    - Update system deposit tx gas limit.
      See ethereum-optimism/optimism#4961
    - Add `ValidatorRewardRatio` argument to `setL1BlockValues`.
lightscale-luke added a commit to kroma-network/zkevm-circuits that referenced this pull request Jul 17, 2023
- Renaming of FeeVaults:
  Previously, the names of the vaults were based on the source of funds,
  but now they are named based on the purpose of the funds.
    Before: BaseFeeVault, PriorityFeeVault, RollupFeeVault
    After: ValidatorRewardVault, ProtocolVault, ProposerRewardVault

- Supporting Validator decentralization:
  * Previously, the fee that meant to be burnt on Ethereum were
    colellected to BaseFeeVault.
  * With validator decentrailization, the fee is distributed to
    ValidatorRewardVault and ProtocolVault.
  * The distribution is validated on `VpRewardHook` step
    (Validator Protocol Reward Hook).
    Calcuation on the step is done as follow:
    e.g.
    Total reward = 20001, validator reward ratio = 2000
    Validator reward = Floor(20001 * 2000 / 10000) = 4000
      -> to ValidatorRewardVault
    Protocol reward = 20001 - 4000 = 16001
      -> to ProtocolVault

- ProposerRewardVault is similar to RollupFeeVault

test) Mocking variables and functions modified:

    - Update system deposit tx gas limit.
      See ethereum-optimism/optimism#4961
    - Add `ValidatorRewardRatio` argument to `setL1BlockValues`.
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.

4 participants