From cd4aacfaea3054291d93f9a2cbffe0feae633b6f Mon Sep 17 00:00:00 2001 From: Adw8 Date: Thu, 5 Sep 2024 17:36:51 +0530 Subject: [PATCH] Make token name configurable --- nitro-bridge-setup/README.md | 8 ++++---- nitro-bridge-setup/bridge-vars-example.yml | 19 ++++++++++--------- .../templates/specs/bridge-nitro-spec.yml.j2 | 2 +- .../specs/nitro-contracts-spec.yml.j2 | 2 +- 4 files changed, 16 insertions(+), 15 deletions(-) diff --git a/nitro-bridge-setup/README.md b/nitro-bridge-setup/README.md index 8f530a0..82102c5 100644 --- a/nitro-bridge-setup/README.md +++ b/nitro-bridge-setup/README.md @@ -27,7 +27,7 @@ The following commands have to be executed in [`nitro-bridge-setup`](./) directo nitro_sc_pk: "" # Private key for a funded account on L1 - # This account should have Laconic tokens for funding Nitro channels + # This account should have tokens for funding Nitro channels nitro_chain_pk: "" # L1 chain ID (Sepolia: 11155111) @@ -40,11 +40,11 @@ The following commands have to be executed in [`nitro-bridge-setup`](./) directo optimism_url: "" # Private key for a funded account on L1 to use for contracts deployment on L1 - geth_deployer_pk: '' + geth_deployer_pk: "" # Private key for a funded account on L2 to use for contracts deployment on L2 # Use the same account for L1 and L2 deployments - optimism_deployer_pk: '' + optimism_deployer_pk: "" ``` - To run the nitro bridge, execute the `run-nitro-bridge.yml` Ansible playbook by running the following command. @@ -65,7 +65,7 @@ The following commands have to be executed in [`nitro-bridge-setup`](./) directo - Run the following command in the directory where the bridge-deployment is created: - - Follow optimism contracts deployment logs: + - Check logs for deployments: ```bash # Check the l2 nitro contract deployments diff --git a/nitro-bridge-setup/bridge-vars-example.yml b/nitro-bridge-setup/bridge-vars-example.yml index 12305c9..090b8f0 100644 --- a/nitro-bridge-setup/bridge-vars-example.yml +++ b/nitro-bridge-setup/bridge-vars-example.yml @@ -1,9 +1,10 @@ -nitro_l1_chain_url: '' -nitro_l2_chain_url: '' -nitro_chain_pk: '' -nitro_sc_pk: '' -geth_chain_id: '' -geth_url: '' -optimism_url: '' -geth_deployer_pk: '' -optimism_deployer_pk: '' +nitro_l1_chain_url: "" +nitro_l2_chain_url: "" +nitro_chain_pk: "" +nitro_sc_pk: "" +geth_chain_id: "" +geth_url: "" +optimism_url: "" +geth_deployer_pk: "" +optimism_deployer_pk: "" +token_name: "" diff --git a/nitro-bridge-setup/templates/specs/bridge-nitro-spec.yml.j2 b/nitro-bridge-setup/templates/specs/bridge-nitro-spec.yml.j2 index 1634a4b..f63701a 100644 --- a/nitro-bridge-setup/templates/specs/bridge-nitro-spec.yml.j2 +++ b/nitro-bridge-setup/templates/specs/bridge-nitro-spec.yml.j2 @@ -8,7 +8,7 @@ config: GETH_URL: {{ geth_url }} OPTIMISM_URL: {{ optimism_url }} OPTIMISM_DEPLOYER_PK: {{ optimism_deployer_pk }} - TOKEN_NAME: LaconicNetworkToken + TOKEN_NAME: {{ token_name }} TOKEN_SYMBOL: LNT INITIAL_TOKEN_SUPPLY: 129600 NA_ADDRESS: {{ na_address.stdout }} diff --git a/nitro-bridge-setup/templates/specs/nitro-contracts-spec.yml.j2 b/nitro-bridge-setup/templates/specs/nitro-contracts-spec.yml.j2 index 28c92ad..e725236 100644 --- a/nitro-bridge-setup/templates/specs/nitro-contracts-spec.yml.j2 +++ b/nitro-bridge-setup/templates/specs/nitro-contracts-spec.yml.j2 @@ -4,7 +4,7 @@ config: GETH_URL: {{ geth_url }} GETH_CHAIN_ID: {{ geth_chain_id }} GETH_DEPLOYER_PK: {{ geth_deployer_pk }} - TOKEN_NAME: LaconicNetworkToken + TOKEN_NAME: {{ token_name }} TOKEN_SYMBOL: LNT INITIAL_TOKEN_SUPPLY: 129600 network: