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

feat(test): Upgrade test scripts #557

Merged
merged 5 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
44 changes: 23 additions & 21 deletions integration_test/test_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,26 @@ export L1_PROVER_PRIVATE_KEY=0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a841
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_SUGGESTED_FEE_RECIPIENT=$L2_SUGGESTED_FEE_RECIPIENT"
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"
# L1_BEACON_HTTP_ENDPOINT=$L1_BEACON_HTTP_ENDPOINT
echo "RUN_TESTS=true
TAIKO_MONO_DIR=$TAIKO_MONO_DIR
L1_NODE_HTTP_ENDPOINT=$L1_NODE_HTTP_ENDPOINT
L1_NODE_WS_ENDPOINT=$L1_NODE_WS_ENDPOINT
L2_SUGGESTED_FEE_RECIPIENT=$L2_SUGGESTED_FEE_RECIPIENT
L2_EXECUTION_ENGINE_HTTP_ENDPOINT=$L2_EXECUTION_ENGINE_HTTP_ENDPOINT
L2_EXECUTION_ENGINE_WS_ENDPOINT=$L2_EXECUTION_ENGINE_WS_ENDPOINT
L2_EXECUTION_ENGINE_AUTH_ENDPOINT=$L2_EXECUTION_ENGINE_AUTH_ENDPOINT
TAIKO_L1_ADDRESS=$TAIKO_L1_ADDRESS
TAIKO_L2_ADDRESS=$TAIKO_L2_ADDRESS
TAIKO_TOKEN_ADDRESS=$TAIKO_TOKEN_ADDRESS
ASSIGNMENT_HOOK_ADDRESS=$ASSIGNMENT_HOOK_ADDRESS
TIMELOCK_CONTROLLER=$TIMELOCK_CONTROLLER
ROLLUP_ADDRESS_MANAGER_CONTRACT_ADDRESS=$ROLLUP_ADDRESS_MANAGER_CONTRACT_ADDRESS
GUARDIAN_PROVER_CONTRACT_ADDRESS=$GUARDIAN_PROVER_CONTRACT_ADDRESS
L1_SIGNAL_SERVICE_CONTRACT_ADDRESS=$L1_SIGNAL_SERVICE_CONTRACT_ADDRESS
L1_CONTRACT_OWNER_PRIVATE_KEY=$L1_CONTRACT_OWNER_PRIVATE_KEY
L1_SECURITY_COUNCIL_PRIVATE_KEY=$L1_SECURITY_COUNCIL_PRIVATE_KEY
L1_PROPOSER_PRIVATE_KEY=$L1_PROPOSER_PRIVATE_KEY
L1_PROVER_PRIVATE_KEY=$L1_PROVER_PRIVATE_KEY
TREASURY=$TREASURY
JWT_SECRET=$JWT_SECRET" > integration_test/.env
4 changes: 2 additions & 2 deletions internal/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ func LoadEnv() {
if len(path) == 0 {
log.Warn("not a taiko-client repo")
}
err = godotenv.Load(fmt.Sprintf("%s/taiko-client/.env", path[0]))
err = godotenv.Load(fmt.Sprintf("%s/taiko-client/integration_test/.env", path[0]))
if err != nil {
log.Warn("failed to load env", "current path", currentPath, "err", err)
log.Warn("failed to load test env", "current path", currentPath, "err", err)
}
}

Expand Down
Loading