-
Notifications
You must be signed in to change notification settings - Fork 153
feat: deployOsp script #367
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
Open
gzeoneth
wants to merge
28
commits into
develop
Choose a base branch
from
deterministic-factory-deployments-osp
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
…m/OffchainLabs/nitro-contracts into deterministic-factory-deployments
* disable CBOR * chore: remove entries for removed files * refactor: commonSetting * feat: foundry override * fix: test * chore: default profile * format: yarn format * ci: comapre bytecodes * fix: slither db --------- Co-authored-by: gzeon <[email protected]>
6c05772
to
fdd217d
Compare
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.
Pull Request Overview
Adds a new deployment script to automate the OneStepProofEntry contract deployment.
- Introduces
deployOsp.ts
under/scripts
to deploy OneStepProofEntry and its dependencies - Reads
CUSTOM_DA_VALIDATOR
andDISABLE_VERIFICATION
from environment for configuration - Logs deployer info, network, and warns if the custom validator has no code
Comments suppressed due to low confidence (3)
scripts/deployOsp.ts:37
- [nitpick] The
osp
property in the deployment result is short for OneStepProofEntry; consider using a more descriptive name likeproofEntry
for clarity.
console.log('OneStepProofEntry:', deployment.osp.address)
scripts/deployOsp.ts:1
- [nitpick] Add a header comment or README link explaining how to run this script and documenting the expected environment variables (
CUSTOM_DA_VALIDATOR
,DISABLE_VERIFICATION
).
import { ethers } from 'hardhat'
scripts/deployOsp.ts:9
- [nitpick] Consider validating that
CUSTOM_DA_VALIDATOR
is a valid Ethereum address usingethers.utils.isAddress
before using it to fetch code.
process.env.CUSTOM_DA_VALIDATOR || ethers.constants.AddressZero
2471fa9
to
ca42e86
Compare
…actory-deployments-osp
Base automatically changed from
deterministic-factory-deployments
to
develop
September 9, 2025 19:31
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
For use with #357 later, should revert 0c6ae28 and 7933dcc