Add ansible playbook to setup and run Nitro bridge #4

Merged
nabarun merged 11 commits from deep-stack/testnet-ops:ag-run-bridge into main 2024-09-09 06:11:31 +00:00
4 changed files with 16 additions and 15 deletions
Showing only changes of commit cd4aacfaea - Show all commits

View File

@ -27,7 +27,7 @@ The following commands have to be executed in [`nitro-bridge-setup`](./) directo
nitro_sc_pk: "" nitro_sc_pk: ""
# Private key for a funded account on L1 # 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: "" nitro_chain_pk: ""
# L1 chain ID (Sepolia: 11155111) # L1 chain ID (Sepolia: 11155111)
@ -40,11 +40,11 @@ The following commands have to be executed in [`nitro-bridge-setup`](./) directo
optimism_url: "" optimism_url: ""
# Private key for a funded account on L1 to use for contracts deployment on L1 # 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 # Private key for a funded account on L2 to use for contracts deployment on L2
# Use the same account for L1 and L2 deployments # 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. - 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: - Run the following command in the directory where the bridge-deployment is created:
- Follow optimism contracts deployment logs: - Check logs for deployments:
```bash ```bash
# Check the l2 nitro contract deployments # Check the l2 nitro contract deployments

View File

@ -1,9 +1,10 @@
nitro_l1_chain_url: '' nitro_l1_chain_url: ""
nitro_l2_chain_url: '' nitro_l2_chain_url: ""
nitro_chain_pk: '' nitro_chain_pk: ""
nitro_sc_pk: '' nitro_sc_pk: ""
geth_chain_id: '' geth_chain_id: ""
geth_url: '' geth_url: ""
optimism_url: '' optimism_url: ""
geth_deployer_pk: '' geth_deployer_pk: ""
optimism_deployer_pk: '' optimism_deployer_pk: ""
token_name: ""

View File

@ -8,7 +8,7 @@ config:
GETH_URL: {{ geth_url }} GETH_URL: {{ geth_url }}
OPTIMISM_URL: {{ optimism_url }} OPTIMISM_URL: {{ optimism_url }}
OPTIMISM_DEPLOYER_PK: {{ optimism_deployer_pk }} OPTIMISM_DEPLOYER_PK: {{ optimism_deployer_pk }}
TOKEN_NAME: LaconicNetworkToken TOKEN_NAME: {{ token_name }}
TOKEN_SYMBOL: LNT TOKEN_SYMBOL: LNT
INITIAL_TOKEN_SUPPLY: 129600 INITIAL_TOKEN_SUPPLY: 129600
NA_ADDRESS: {{ na_address.stdout }} NA_ADDRESS: {{ na_address.stdout }}

View File

@ -4,7 +4,7 @@ config:
GETH_URL: {{ geth_url }} GETH_URL: {{ geth_url }}
GETH_CHAIN_ID: {{ geth_chain_id }} GETH_CHAIN_ID: {{ geth_chain_id }}
GETH_DEPLOYER_PK: {{ geth_deployer_pk }} GETH_DEPLOYER_PK: {{ geth_deployer_pk }}
TOKEN_NAME: LaconicNetworkToken TOKEN_NAME: {{ token_name }}
TOKEN_SYMBOL: LNT TOKEN_SYMBOL: LNT
INITIAL_TOKEN_SUPPLY: 129600 INITIAL_TOKEN_SUPPLY: 129600
network: network: