Skip to content

feat(initBond): set init bond#123

Merged
zjg555543 merged 3 commits intozjg/pre-release-v6from
jimmyshi/pre-release-v6
Oct 26, 2025
Merged

feat(initBond): set init bond#123
zjg555543 merged 3 commits intozjg/pre-release-v6from
jimmyshi/pre-release-v6

Conversation

@JimmyShi22
Copy link

This pull request enhances the deployment process for OP contracts by improving ownership management and automating the initialization of game bonds. The main changes include replacing the use of ADMIN_OWNER_ADDRESS with DEPLOYER_ADDRESS during contract deployment, automating the transfer of Transactor ownership post-deployment, and introducing a new script to set the initial bond for dispute games.

Ownership and deployment improvements:

  • The contract deployment process now uses DEPLOYER_ADDRESS instead of ADMIN_OWNER_ADDRESS for constructor arguments and logging, ensuring consistency with the actual deployer. [1] [2]
  • After deploying contracts, the script checks and transfers ownership of the Transactor contract to ADMIN_OWNER_ADDRESS if necessary, automating a previously manual step.

Game bond initialization automation:

  • A new function set_init_bond is added to the deployment script to automate setting the initial bond for game type 1, using the Transactor contract and the DisputeGameFactory address from the configuration.
  • The new standalone script scripts/set-init-bond.sh is introduced, which validates input, checks for game type existence, compares and sets the initial bond value, and verifies the update, improving reliability and transparency of bond initialization.

@zjg555543 zjg555543 merged commit a2a4ac6 into zjg/pre-release-v6 Oct 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments