Skip to content

feat(ctb): Holocene SystemConfig#12331

Closed
clabby wants to merge 6 commits intodevelopfrom
cl/sys-cfg-holocene
Closed

feat(ctb): Holocene SystemConfig#12331
clabby wants to merge 6 commits intodevelopfrom
cl/sys-cfg-holocene

Conversation

@clabby
Copy link
Copy Markdown
Contributor

@clabby clabby commented Oct 4, 2024

Overview

Introduces the changes to the SystemConfig, specified by the Holocene hardfork.

@clabby clabby requested a review from a team as a code owner October 4, 2024 19:40
@clabby clabby requested a review from mds1 October 4, 2024 19:40
@clabby clabby marked this pull request as draft October 4, 2024 19:40
@clabby clabby added the A-pkg-contracts-bedrock Area: packages/contracts-bedrock label Oct 4, 2024
@clabby clabby self-assigned this Oct 4, 2024
cfg.p2pSequencerAddress(),
Constants.DEFAULT_RESOURCE_CONFIG(),
cfg.batchInboxAddress(),
ISystemConfig.Addresses({
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

stack too deep.

@semgrep-app
Copy link
Copy Markdown
Contributor

semgrep-app bot commented Oct 4, 2024

Semgrep found 2 sol-style-require-reason findings:

require() must include a reason string

Ignore this finding from sol-style-require-reason.

@clabby clabby force-pushed the cl/sys-cfg-holocene branch from 5d0fbb3 to 291fe93 Compare October 4, 2024 19:42
@clabby clabby force-pushed the cl/sys-cfg-holocene branch from b45b012 to 19eef9d Compare October 4, 2024 20:10
@clabby clabby force-pushed the cl/sys-cfg-holocene branch from 19eef9d to 27796d9 Compare October 4, 2024 20:11
@tynes
Copy link
Copy Markdown
Contributor

tynes commented Oct 4, 2024

Optional: use vm.getLogs in a test to assert directly on the serialization of the log

@clabby clabby force-pushed the cl/sys-cfg-holocene branch from 5fc72c5 to e6a7fea Compare October 4, 2024 20:25
ISystemConfig.Addresses memory opChainAddrs
) = defaultSystemConfigParams(_selector, _input, _output);

address batchInboxAddress = chainIdToBatchInboxAddress(_input.l2ChainId);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

again, stack too deep...

@clabby clabby force-pushed the cl/sys-cfg-holocene branch from 3aa9539 to d479c70 Compare October 4, 2024 21:15
_blobbasefeeScalar: 0,
_batcherHash: bytes32(0),
_gasLimit: 1,
_eip1559Denominator: 1,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We agreed on not modifying the initializer with inputs to reduce the integration pains with OP Stack Chain Manager. We agreed on emitting default canyon values, if the storage slots are set to 0 (first time the contract is initalized) rather than having input arguments. This will sync the L1 state with the L2 view of the state. The dependency that is introduced is that chains will need to update to a newer release of op-node BEFORE we do the contract upgrade. We will add a getter/setter for the values, which can be atomically called during the same batch the new implementation is set in the proxy. cc @roberto-bayardo for context. Probably easier to just start on a fresh branch

@roberto-bayardo
Copy link
Copy Markdown
Collaborator

Replacing with #12439

@clabby clabby deleted the cl/sys-cfg-holocene branch October 23, 2024 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-pkg-contracts-bedrock Area: packages/contracts-bedrock

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants