Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

feat(prover): add readme for guiding how to debug #498

Merged
merged 4 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions integration_test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# how to debug test cases?
mask-pp marked this conversation as resolved.
Show resolved Hide resolved
* start docker compose
```
./docker/start.sh
```

* deploy L1 contracts
```
# TAIKO_MONO_DIR variable is taiko-mono repo path.
RogerLamTd marked this conversation as resolved.
Show resolved Hide resolved
TAIKO_MONO_DIR=$taiko-mono ./integration_test/deploy_l1_contract.sh
```

* show environment variables
```
# TAIKO_MONO_DIR variable is taiko-mono repo path.
RogerLamTd marked this conversation as resolved.
Show resolved Hide resolved
TAIKO_MONO_DIR=$taiko-mono ./integration_test/test_env.sh
```

* copy that the result of previous step and release them in `Debug configurations`
> after debugged don't forget stop docker compose
RogerLamTd marked this conversation as resolved.
Show resolved Hide resolved
```
./docker/stop.sh
```
22 changes: 22 additions & 0 deletions integration_test/test_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,25 @@ export L1_SECURITY_COUNCIL_PRIVATE_KEY=0xdbda1821b80551c9d65939329250298aa3472ba
export L1_PROPOSER_PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
export L1_PROVER_PRIVATE_KEY=0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d
export TREASURY=0x1670010000000000000000000000000000010001

# show the integration test environment variables.
echo "TAIKO_MONO_DIR=$TAIKO_MONO_DIR"
echo "L1_NODE_HTTP_ENDPOINT=$L1_NODE_HTTP_ENDPOINT"
echo "L1_NODE_WS_ENDPOINT=$L1_NODE_WS_ENDPOINT"
echo "L2_EXECUTION_ENGINE_HTTP_ENDPOINT=$L2_EXECUTION_ENGINE_HTTP_ENDPOINT"
echo "L2_EXECUTION_ENGINE_WS_ENDPOINT=$L2_EXECUTION_ENGINE_WS_ENDPOINT"
echo "L2_EXECUTION_ENGINE_AUTH_ENDPOINT=$L2_EXECUTION_ENGINE_AUTH_ENDPOINT"
echo "TAIKO_L1_ADDRESS=$TAIKO_L1_ADDRESS"
echo "TAIKO_L2_ADDRESS=$TAIKO_L2_ADDRESS"
echo "TAIKO_TOKEN_ADDRESS=$TAIKO_TOKEN_ADDRESS"
echo "ASSIGNMENT_HOOK_ADDRESS=$ASSIGNMENT_HOOK_ADDRESS"
echo "TIMELOCK_CONTROLLER=$TIMELOCK_CONTROLLER"
echo "ROLLUP_ADDRESS_MANAGER_CONTRACT_ADDRESS=$ROLLUP_ADDRESS_MANAGER_CONTRACT_ADDRESS"
echo "GUARDIAN_PROVER_CONTRACT_ADDRESS=$GUARDIAN_PROVER_CONTRACT_ADDRESS"
echo "L1_SIGNAL_SERVICE_CONTRACT_ADDRESS=$L1_SIGNAL_SERVICE_CONTRACT_ADDRESS"
echo "L1_CONTRACT_OWNER_PRIVATE_KEY=$L1_CONTRACT_OWNER_PRIVATE_KEY"
echo "L1_SECURITY_COUNCIL_PRIVATE_KEY=$L1_SECURITY_COUNCIL_PRIVATE_KEY"
echo "L1_PROPOSER_PRIVATE_KEY=$L1_PROPOSER_PRIVATE_KEY"
echo "L1_PROVER_PRIVATE_KEY=$L1_PROVER_PRIVATE_KEY"
echo "TREASURY=$TREASURY"
echo "JWT_SECRET=$JWT_SECRET"
mask-pp marked this conversation as resolved.
Show resolved Hide resolved