-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Add fast summarization for Kontrol proofs #9092
Add fast summarization for Kontrol proofs #9092
Conversation
WalkthroughWalkthroughThe recent updates involve enhancing the test suite for the contracts-bedrock package, with a focus on virtualization and reorganization for better testing and deployment processes. Functions in test contracts have been made virtual to allow for overrides, and the directory structure has been optimized for clarity. The setup functions have been inlined for improved performance in the kontrol proofs, and access levels for constants have been adjusted for better encapsulation and inheritance use. Additionally, scripts have been updated to reflect the new file paths and to incorporate new options for initializing nodes. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI is passing and this looks great overall, on monday I'll try running the proofs locally as a sanity check
packages/contracts-bedrock/snapshots/state-diff/Kontrol-Deploy.json
Outdated
Show resolved
Hide resolved
packages/contracts-bedrock/test/kontrol/deployment/DeploymentSummary.t.sol
Outdated
Show resolved
Hide resolved
…t_initialize_succeeds`
packages/contracts-bedrock/test/kontrol/deployment/DeploymentSummary.t.sol
Show resolved
Hide resolved
packages/contracts-bedrock/test/kontrol/deployment/DeploymentSummary.t.sol
Outdated
Show resolved
Hide resolved
e704fc6
Description
Building on #8634, this PR performs the following upgrades:
stateDiff
modifier to be loaded directly into the initial node of the proofs without having to compute them with K. This reduces the computation time of the proofsOptimismPortalKontrol.prove_finalizeWithdrawalTransaction_paused
proofcontracts-bedrock/test/kontrol/proofs/tests
DeploymentSummary.t.sol
underkontrol/deployment
OptimismPortal_Test
, marksetUp
,test_constructor_succeeds
,test_simple_isOutputFinalized_succeeds
andtest_isOutputFinalized_succeeds
asvirtual
to be overridden bytest/kontrol/deployment/DeploymentSummary.t.sol
Tests
OptimismPortalKontrol.prove_finalizeWithdrawalTransaction_paused
is exercisedCounterTest.test_SetNumber
is no longer exercisedDeploymentSummary.t.sol
contains an adaptation ofOptimismPortal_test
tests to ensure the summarization of theKontrolDeployment::runKontrolDeployment
function has been done correctly