From c157ea7ecf64e009b2b51d2dfc90478a28cba418 Mon Sep 17 00:00:00 2001 From: Adw8 Date: Tue, 3 Sep 2024 17:22:43 +0530 Subject: [PATCH] Add spec file for nitro contracts --- nitro-bridge-setup/run-nitro-bridge.yml | 6 +++--- .../templates/specs/nitro-contracts-spec.yml.j2 | 13 +++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 nitro-bridge-setup/templates/specs/nitro-contracts-spec.yml.j2 diff --git a/nitro-bridge-setup/run-nitro-bridge.yml b/nitro-bridge-setup/run-nitro-bridge.yml index 3c5ead7..22f2cab 100644 --- a/nitro-bridge-setup/run-nitro-bridge.yml +++ b/nitro-bridge-setup/run-nitro-bridge.yml @@ -13,11 +13,11 @@ ignore_errors: yes - name: Clone repositories required for nitro-stack - command: laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/nitro-node setup-repositories --git-ssh --pull + command: laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/bridge setup-repositories --git-ssh --pull ignore_errors: yes - name: Build containers - command: laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/nitro-node build-containers --force-rebuild + command: laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/bridge build-containers --force-rebuild when: not skip_container_build - name: Copy over spec file for nitro contracts deployment @@ -104,7 +104,7 @@ path: "{{ nitro_directory }}/bridge-deployment/data/nitro_deployment/nitro-addresses.json" state: present timeout: 60 - + - name: Print BRIDGE_ADDRESS shell: laconic-so deployment --dir bridge-deployment exec nitro-bridge "jq -r '.\"42069\"[0].contracts.Bridge.address' /app/deployment/nitro-addresses.json" args: diff --git a/nitro-bridge-setup/templates/specs/nitro-contracts-spec.yml.j2 b/nitro-bridge-setup/templates/specs/nitro-contracts-spec.yml.j2 new file mode 100644 index 0000000..1da1fa3 --- /dev/null +++ b/nitro-bridge-setup/templates/specs/nitro-contracts-spec.yml.j2 @@ -0,0 +1,13 @@ +stack: /home/{{ ansible_user }}/cerc/nitro-stack/stack-orchestrator/stacks/nitro-contracts +deploy-to: compose +config: + GETH_URL: {{ geth_url }} + GETH_CHAIN_ID: '{{ geth_chain_id }}' + GETH_DEPLOYER_PK: '{{ geth_deployer_pk }}' + TOKEN_NAME: LaconicNetworkToken + TOKEN_SYMBOL: LNT + INITIAL_TOKEN_SUPPLY: '129600' +network: + ports: {} +volumes: + nitro_deployment: ./data/nitro_deployment