We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 396e84c commit 6a6f2a0Copy full SHA for 6a6f2a0
test/extract_addresses.py
@@ -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