Compare commits

...

1 Commits

Author SHA1 Message Date
Neeraj
fcfda24172 Start nodes and bridge from deployed contract's block number 2024-10-16 15:15:07 +05:30
7 changed files with 18 additions and 0 deletions

View File

@ -27,6 +27,9 @@ The following commands have to be executed in the [`nitro-bridge-setup`](./) dir
# This account should have tokens for funding Nitro channels
nitro_chain_pk: ""
# Specifies the block number to start looking for nitro adjudicator events
nitro_chain_start_block: ""
# Custom L2 token to be deployed
token_name: "LaconicNetworkToken"
token_symbol: "LNT"

View File

@ -1,5 +1,6 @@
nitro_chain_url: ""
nitro_chain_pk: ""
nitro_chain_start_block: 0
nitro_sc_pk: ""
na_address: ""
vpa_address: ""

View File

@ -3,6 +3,7 @@ deploy-to: compose
config:
NITRO_CHAIN_URL: {{ nitro_chain_url }}
NITRO_CHAIN_PK: {{ nitro_chain_pk }}
NITRO_CHAIN_START_BLOCK: {{ nitro_chain_start_block }}
NITRO_SC_PK: {{ nitro_sc_pk }}
NA_ADDRESS: "{{ na_address }}"
VPA_ADDRESS: "{{ vpa_address }}"

View File

@ -100,3 +100,11 @@
register: asset_address
- debug:
msg: "ASSET_ADDRESS: {{ asset_address.stdout }}"
- name: Export NITRO_CHAIN_START_BLOCK
shell: laconic-so deployment --dir nitro-contracts-deployment exec nitro-contracts "jq '.receipt.blockNumber' /app/deployment/hardhat-deployments/geth/NitroAdjudicator.json"
args:
chdir: "{{ nitro_directory }}"
register: nitro_chain_start_block
- debug:
msg: "NITRO_CHAIN_START_BLOCK: {{ nitro_chain_start_block.stdout }}"

View File

@ -34,6 +34,9 @@ The following commands have to be executed in [`nitro-nodes-setup`](./) director
# Private key of the account on chain that is used for funding channels in Nitro node
nitro_chain_pk: ""
# Specifies the block number to start looking for nitro adjudicator events
nitro_chain_start_block: ""
# Contract address of NitroAdjudicator
na_address: ""

View File

@ -1,6 +1,7 @@
nitro_chain_url: ""
nitro_sc_pk: ""
nitro_chain_pk: ""
nitro_chain_start_block: 0
na_address: ""
vpa_address: ""
ca_address: ""

View File

@ -6,3 +6,4 @@ VPA_ADDRESS="{{ vpa_address }}"
CA_ADDRESS="{{ ca_address }}"
NITRO_BOOTPEERS={{ nitro_l1_bridge_multiaddr }}
NITRO_EXT_MULTIADDR={{ nitro_l1_ext_multiaddr }}
NITRO_CHAIN_START_BLOCK: {{ nitro_chain_start_block }}