From c42e211f6eca5d930a4b65320ebd96e63929217f Mon Sep 17 00:00:00 2001 From: Adw8 Date: Wed, 4 Sep 2024 10:27:14 +0530 Subject: [PATCH] Copy l2-accounts.json for existing contracts deployment in L2 --- l2-setup/README.md | 18 ++++++++++++++++++ l2-setup/run-optimism.yml | 5 +++++ 2 files changed, 23 insertions(+) diff --git a/l2-setup/README.md b/l2-setup/README.md index 069ed69..2cb1227 100644 --- a/l2-setup/README.md +++ b/l2-setup/README.md @@ -57,3 +57,21 @@ The following commands have to be executed in [`l2-setup`](./) directory ```bash LANG=en_US.utf8 ansible-playbook -i localhost, --connection=local run-optimism.yml --extra-vars='{"target_host" : "localhost", "existing_contracts_deployment": true}' -kK --user $USER ``` + +## Check Deployment Status + + - Run the following command in the directory where the optimism-deployment is created + + - Follow optimism contracts deployment logs: + + ```bash + laconic-so deployment --dir optimism-deployment logs -f fixturenet-optimism-contracts + ``` + + - Check L2 logs: + + ```bash + laconic-so deployment --dir optimism-deployment logs -f op-geth + + # Ensure new blocks are getting created + ``` diff --git a/l2-setup/run-optimism.yml b/l2-setup/run-optimism.yml index 86f6186..79625b3 100644 --- a/l2-setup/run-optimism.yml +++ b/l2-setup/run-optimism.yml @@ -80,6 +80,11 @@ src: "{{ artifact_path }}/l2_config/l2-jwt.txt" dest: "{{ l2_directory }}/optimism-deployment/data/l2_config" + - name: Copy l2 accounts file + copy: + src: "{{ artifact_path }}/l2_accounts/accounts.json" + dest: "{{ l2_directory }}/optimism-deployment/data/l2_accounts" + when: existing_contracts_deployment - name: Start L2-deployment