Skip to content

Commit 6a6f2a0

Browse files
committed
script to extract the contract addresses for testing
1 parent 396e84c commit 6a6f2a0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/extract_addresses.py

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import json
2+
3+
# Load the JSON data from the new file
4+
with open('/home/sandbox/optimism/packages/contracts-bedrock/deployments/31337-deploy.json') as f:
5+
data = json.load(f)
6+
7+
# Extract the addresses based on the keys provided in the new JSON file
8+
addresses = {
9+
"OPTIMISM_PORTAL": data.get("OptimismPortal2"),
10+
"L1_STANDARD_BRIDGE": data.get("L1StandardBridgeProxy"),
11+
"L1_CROSS_CHAIN_MESSENGER": data.get("L1CrossDomainMessengerProxy"),
12+
"L2_OUTPUT_ORACLE": data.get("L2OutputOracleProxy"),
13+
"DISPUTE_GAME_FACTORY": data.get("DisputeGameFactoryProxy")
14+
}
15+
16+
# Print the addresses
17+
print(addresses)

0 commit comments

Comments
 (0)