Skip to content

feat(devnet): add one click run tee game#142

Open
JimmyShi22 wants to merge 30 commits intomainfrom
tz/dev
Open

feat(devnet): add one click run tee game#142
JimmyShi22 wants to merge 30 commits intomainfrom
tz/dev

Conversation

@JimmyShi22
Copy link
Copy Markdown
Contributor

@JimmyShi22 JimmyShi22 commented Mar 25, 2026

This pull request introduces support for running TEE (Trusted Execution Environment) game types in the devnet environment. It adds new configuration options, build logic, and Docker services for TEE-related components, including mock TEE RPC, TEE proposer, and TEE challenger. Additionally, the PR improves environment setup scripts for better branch management and updates configuration files to support these new features.

TEE Game Support and Docker Services:

  • Added new Docker Compose services for mockteerpc, tee-proposer, and tee-challenger, including all necessary environment variables, dependencies, and port mappings in docker-compose.yml.
  • Introduced the script devnet/7-run-tee-game.sh to automate TEE game setup, check for required images, and start the new services.
  • Updated the main devnet startup script (0-all.sh) to include the TEE game setup step.

Environment and Build Configuration:

  • Extended .env and example.env files with new variables for TEE-related builds and images (OP_STACK_TEE, OP_CONTRACTS_TEE, MOCKTEERPC, etc.), and added a TEE_GAME_TYPE parameter. [1] [2]
  • Updated init.sh to support branch switching for all major components, including new logic to build TEE-related images and the mock TEE RPC image based on environment variables. [1] [2] [3] [4] [5] [6]

OP Succinct/Dispute Game Improvements:

  • Enhanced 5-run-op-succinct.sh to dynamically update the ANCHOR_STATE_REGISTRY_ADDRESS in both proposer and challenger .env files after deploying a new game implementation.
  • Changed port mapping for the succinct challenger to avoid conflicts.

Miscellaneous:

  • Added ANCHOR_STATE_REGISTRY_ADDRESS to the example .env files for both the proposer and challenger. [1] [2]
  • Set default branch for OP Stack in the example environment.
  • Minor command syntax updates for Docker Compose usage.

These changes collectively enable TEE game workflows in the devnet, improve build and environment management, and lay the groundwork for more advanced dispute game scenarios.

@JimmyShi22 JimmyShi22 changed the title feat(devnet): add run tee game feat(devnet): add one click run tee game Mar 25, 2026
@JimmyShi22 JimmyShi22 requested a review from googgoog March 25, 2026 10:44
JimmyShi22 and others added 13 commits March 25, 2026 18:49
…e.yml

- Add tools/mockteeprover: mock TEE prover with /task/ API (no /v1 prefix)
- Extract TEE containers (mockteerpc, mockteeprover, tee-proposer, tee-challenger) into docker-compose-tee.yml
- Fix tee-challenger: use mockteeprover:8690 instead of mockteerpc:8090, read GAME_WINDOW from env
- Update 7-run-tee-game.sh to use combined compose files and check MOCKTEEPROVER_IMAGE_TAG

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add TEE_SIGNER_PRIVATE_KEY to example.env for mockteeprover
- Hardcode tee-challenger game-window to 86400s to prevent games
  falling out of window before resolution

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…solution

- Switch tee-challenger private key from OP_CHALLENGER to OP_PROPOSER
- Add --selective-claim-resolution flag
- Remove --additional-bond-claimants (tx sender is now proposer)
- Add CHALLENGER_ADDRESS env var support in add-tee-game-type.sh

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Change TEE_SIGNER_PRIVATE_KEY to proposer key
- Add CHALLENGER_ADDRESS for new contract deployment

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…_CHALLENGER

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…contract

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…Addr overrides

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
googgoog and others added 2 commits March 30, 2026 11:07
…NGER_ADDRESSES

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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