Skip to content

Conversation

gzeoneth
Copy link
Member

@gzeoneth gzeoneth commented Jul 7, 2025

For use with #357 later, should revert 0c6ae28 and 7933dcc

@cla-bot cla-bot bot added the s label Jul 7, 2025
@gzeoneth gzeoneth requested a review from Copilot July 7, 2025 19:13
Copilot

This comment was marked as outdated.

@gzeoneth gzeoneth force-pushed the deterministic-factory-deployments-osp branch from 6c05772 to fdd217d Compare July 7, 2025 19:20
@gzeoneth gzeoneth requested a review from Copilot July 7, 2025 19:20
Copy link

@Copilot Copilot AI left a 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 and DISABLE_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 like proofEntry 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 using ethers.utils.isAddress before using it to fetch code.
    process.env.CUSTOM_DA_VALIDATOR || ethers.constants.AddressZero

@gzeoneth gzeoneth force-pushed the deterministic-factory-deployments-osp branch from 2471fa9 to ca42e86 Compare July 17, 2025 05:53
@gzeoneth gzeoneth changed the base branch from deterministic-factory-deployments-parallel to deterministic-factory-deployments July 18, 2025 03:40
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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants