-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: change aggsender e2e test to use new agglayer endpoint
- Loading branch information
1 parent
4ba311a
commit b46f5e3
Showing
2 changed files
with
66 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,27 @@ | ||
setup() { | ||
load '../../helpers/common-setup' | ||
_common_setup | ||
|
||
if [ -z "$BRIDGE_ADDRESS" ]; then | ||
local combined_json_file="/opt/zkevm/combined.json" | ||
echo "BRIDGE_ADDRESS env variable is not provided, resolving the bridge address from the Kurtosis CDK '$combined_json_file'" >&3 | ||
|
||
# Fetching the combined JSON output and filtering to get polygonZkEVMBridgeAddress | ||
combined_json_output=$($contracts_service_wrapper "cat $combined_json_file" | tail -n +2) | ||
bridge_default_address=$(echo "$combined_json_output" | jq -r .polygonZkEVMBridgeAddress) | ||
BRIDGE_ADDRESS=$bridge_default_address | ||
fi | ||
echo "Bridge address=$BRIDGE_ADDRESS" >&3 | ||
} | ||
|
||
@test "Verify batches" { | ||
echo "Waiting 10 minutes to get some settle certificate...." | ||
run $PROJECT_ROOT/../scripts/agglayer_certificates_monitor.sh 1 600 | ||
@test "Verify certificate settlement" { | ||
echo "Waiting 10 minutes to get some settle certificate...." >&3 | ||
|
||
readonly bridge_addr=$BRIDGE_ADDRESS | ||
readonly l2_rpc_network_id=$(cast call --rpc-url $l2_rpc_url $bridge_addr 'networkID() (uint32)') | ||
|
||
echo "L2 network id: $l2_rpc_network_id" >&3 | ||
|
||
run $PROJECT_ROOT/../scripts/agglayer_certificates_monitor.sh 1 30 $l2_rpc_network_id | ||
assert_success | ||
} |
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