This repository has been archived by the owner on May 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(prover): fix / upgrade integration test (#496)
Co-authored-by: David <[email protected]>
- Loading branch information
1 parent
376220f
commit d161420
Showing
27 changed files
with
183 additions
and
167 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
export L1_NODE_HTTP_ENDPOINT=http://localhost:18545 | ||
export L1_NODE_WS_ENDPOINT=ws://localhost:18546 | ||
export L1_EXECUTION_ENGINE_AUTH_ENDPOINT=http://localhost:18551 | ||
|
||
export L2_EXECUTION_ENGINE_HTTP_ENDPOINT=http://localhost:28545 | ||
export L2_EXECUTION_ENGINE_WS_ENDPOINT=ws://localhost:28546 | ||
export L2_EXECUTION_ENGINE_AUTH_ENDPOINT=http://localhost:28551 | ||
export JWT_SECRET=$DIR/nodes/jwt.hex | ||
|
||
export DOCKER_SERVICE_LIST=("l1_node" "l2_execution_engine") |
This file contains 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
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
source scripts/common.sh | ||
source docker/docker_env.sh | ||
|
||
# start docker compose service list | ||
echo "start docker compose service: ${DOCKER_SERVICE_LIST[*]}" | ||
|
||
compose_up "${DOCKER_SERVICE_LIST[@]}" | ||
|
||
# check until L1 chain is ready | ||
until cast chain-id --rpc-url "$L2_EXECUTION_ENGINE_HTTP_ENDPOINT"; do | ||
sleep 1 | ||
done | ||
|
||
# show all the running containers | ||
echo | ||
docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}\t{{.Status}}" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
|
||
source scripts/common.sh | ||
source docker/docker_env.sh | ||
|
||
echo "stop docker compose service: ${DOCKER_SERVICE_LIST[*]}" | ||
|
||
compose_down "${DOCKER_SERVICE_LIST[@]}" |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
source scripts/common.sh | ||
|
||
# load l1 chain deploy contracts environment variables | ||
source integration_test/l1_env.sh | ||
|
||
# check taiko-mono dir path environment. | ||
check_env "TAIKO_MONO_DIR" | ||
|
||
cd "$TAIKO_MONO_DIR"/packages/protocol && | ||
forge script script/DeployOnL1.s.sol:DeployOnL1 \ | ||
--fork-url "$L1_NODE_HTTP_ENDPOINT" \ | ||
--broadcast \ | ||
--ffi \ | ||
-vvvvv \ | ||
--private-key "$PRIVATE_KEY" \ | ||
--block-gas-limit 100000000 | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
source docker/docker_env.sh | ||
|
||
export PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 | ||
export TAIKO_L2_ADDRESS=0x1670010000000000000000000000000000010001 | ||
export L2_SIGNAL_SERVICE=0x1670010000000000000000000000000000010005 | ||
export SECURITY_COUNCIL=0x23618e81E3f5cdF7f54C3d65f7FBc0aBf5B21E8f | ||
export TAIKO_TOKEN_PREMINT_RECIPIENT=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 | ||
export TAIKO_TOKEN_NAME="Taiko Token Test" | ||
export TAIKO_TOKEN_SYMBOL="TTKOt" | ||
|
||
export SHARED_ADDRESS_MANAGER=0x0000000000000000000000000000000000000000 | ||
export PROPOSER=0x0000000000000000000000000000000000000000 | ||
export PROPOSER_ONE=0x0000000000000000000000000000000000000000 | ||
|
||
GUARDIAN_PROVERS_ADDRESSES_LIST=( | ||
"0x70997970C51812dc3A010C7d01b50e0d17dc79C8" | ||
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" | ||
"0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC" | ||
"0x90F79bf6EB2c4f870365E785982E1f101E93b906" | ||
"0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65" | ||
) | ||
GUARDIAN_PROVERS_ADDRESSES=$(printf ",%s" "${GUARDIAN_PROVERS_ADDRESSES_LIST[@]}") | ||
export GUARDIAN_PROVERS=${GUARDIAN_PROVERS_ADDRESSES:1} | ||
export MIN_GUARDIANS=${#GUARDIAN_PROVERS_ADDRESSES_LIST[@]} | ||
|
||
# Get the hash of L2 genesis. | ||
export L2_GENESIS_HASH=$(cast block --rpc-url "$L2_EXECUTION_ENGINE_HTTP_ENDPOINT" 0x0 -f hash) | ||
echo "L2 chain genesis hash: $L2_GENESIS_HASH" |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
source docker/docker_env.sh | ||
source scripts/common.sh | ||
|
||
# make sure environment variables are set. | ||
check_env "TAIKO_MONO_DIR" | ||
|
||
# get deployed contract address. | ||
DEPLOYMENT_JSON=$(cat "$TAIKO_MONO_DIR"/packages/protocol/deployments/deploy_l1.json) | ||
export TAIKO_L1_ADDRESS=$(echo "$DEPLOYMENT_JSON" | jq '.taiko' | sed 's/\"//g') | ||
export TAIKO_L2_ADDRESS=0x1670010000000000000000000000000000010001 | ||
export TAIKO_TOKEN_ADDRESS=$(echo "$DEPLOYMENT_JSON" | jq '.taiko_token' | sed 's/\"//g') | ||
export ASSIGNMENT_HOOK_ADDRESS=$(echo "$DEPLOYMENT_JSON" | jq '.assignment_hook' | sed 's/\"//g') | ||
export TIMELOCK_CONTROLLER=$(echo "$DEPLOYMENT_JSON" | jq '.timelock_controller' | sed 's/\"//g') | ||
export ROLLUP_ADDRESS_MANAGER_CONTRACT_ADDRESS=$(echo "$DEPLOYMENT_JSON" | jq '.rollup_address_manager' | sed 's/\"//g') | ||
export GUARDIAN_PROVER_CONTRACT_ADDRESS=$(echo "$DEPLOYMENT_JSON" | jq '.guardian_prover' | sed 's/\"//g') | ||
export L1_SIGNAL_SERVICE_CONTRACT_ADDRESS=$(echo "$DEPLOYMENT_JSON" | jq '.signal_service' | sed 's/\"//g') | ||
export L1_CONTRACT_OWNER_PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 | ||
export L1_SECURITY_COUNCIL_PRIVATE_KEY=0xdbda1821b80551c9d65939329250298aa3472ba22feea921c0cf5d620ea67b97 | ||
export L1_PROPOSER_PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 | ||
export L1_PROVER_PRIVATE_KEY=0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d | ||
export TREASURY=0x1670010000000000000000000000000000010001 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.