You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added a two-step offboarding process for ScribeOptimistic instances. Run the second step in a later block; the instance continues to report its last value between steps.
Added separate script commands for each offboarding step.
Documentation
Clarified which offboarding methods apply to Scribe and ScribeOptimistic instances, along with authorization requirements and follow-up actions.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: 739a2e50-2fb1-4ef4-8e34-0df55accde06
Commits
Reviewing files that changed from the base of the PR and between d98f4ce and c7b2ddc.
Files selected for processing: 5
.github/workflows/lint.yml
.github/workflows/non-via-ir-compilation.yml
.github/workflows/solc-version-tests.yml
.github/workflows/unit-tests.yml
test/rescue/RescuerTest.t.sol
No actionable comments were generated in the recent review.
Walkthrough
The pull request adds a two-step offboarding flow for ScribeOptimistic instances, with contract methods, script entry points, tests, and management documentation. It also removes the default zkSync Foundry profile.
Adds authorized steps to remove lifted feeds, set the bar, submit a zero-value poke, and revoke the offboarder’s authorization. The contract includes internal Schnorr signing.
Adds script entry points for both steps and makes the generic Scribe offboard method virtual. The existing offboarder file also gains a comment.
Offboarding tests and instructions test/offboard/ScribeOptimisticOffboarder.t.sol, docs/Management.md
Adds direct and fuzz tests for offboarding state, authorization, and value zeroing. Documents the ScribeOptimistic procedure and distinguishes it from other deactivation methods.
Foundry Configuration
Layer / File(s)
Summary
Remove default zkSync profile foundry.toml
Removes the default zkSync profile and its zksolc version setting.
sequenceDiagram
participant ScribeOptimisticScript
participant ScribeOptimisticOffboarder
participant Scribe
ScribeOptimisticScript->>ScribeOptimisticOffboarder: offboard_Step1
ScribeOptimisticOffboarder->>Scribe: Drop lifted feeds and set bar to 1
Note over ScribeOptimisticScript,Scribe: Step 2 runs in a later block
ScribeOptimisticScript->>ScribeOptimisticOffboarder: offboard_Step2
ScribeOptimisticOffboarder->>Scribe: Submit zero-value poke and finalize offboarding
Loading
Suggested reviewers:max-wickham
Merge Risk: Minimal · previous review d98f4
This PR adds a two-step offboarding script and contract for ScribeOptimistic instances, with tests and documentation. No concrete defect was identified. The CI runs failed at the Foundry install step, so the tests should be re-run once the toolchain issue is resolved.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "script: Adds ScribeOptimisticOffboarder" names the main change. The PR adds the ScribeOptimisticOffboarder contract, its two-step offboarding flow, the script entry points in ScribeOptimist…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "script: Adds ScribeOptimisticOffboarder" names the main change. The PR adds the ScribeOptimisticOffboarder contract, its two-step offboarding flow, the script entry points in ScribeOptimisticScript, tests, and docs. The title is short, specific, and in a conventional form. It does not mention the two-step nature or the test and docs additions, which is acceptable because it need not cover every detail.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Fix failing CI checks
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: 5f952244-5e47-4d85-ace4-37f830cf0a09
Commits
Reviewing files that changed from the base of the PR and between 12ff06c and d98f4ce.
Files selected for processing: 7
docs/Management.md
foundry.toml
script/Scribe.s.sol
script/ScribeOptimistic.s.sol
script/offboard/ScribeOffboarder.sol
script/offboard/ScribeOptimisticOffboarder.sol
test/offboard/ScribeOptimisticOffboarder.t.sol
Files with no reviewable changes: 1
foundry.toml
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by CodeRabbit