Start nodes and bridge from deployed contract's block number
This commit is contained in:
parent
f597e5dfc7
commit
fcfda24172
@ -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
|
# This account should have tokens for funding Nitro channels
|
||||||
nitro_chain_pk: ""
|
nitro_chain_pk: ""
|
||||||
|
|
||||||
|
# Specifies the block number to start looking for nitro adjudicator events
|
||||||
|
nitro_chain_start_block: ""
|
||||||
|
|
||||||
# Custom L2 token to be deployed
|
# Custom L2 token to be deployed
|
||||||
token_name: "LaconicNetworkToken"
|
token_name: "LaconicNetworkToken"
|
||||||
token_symbol: "LNT"
|
token_symbol: "LNT"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
nitro_chain_url: ""
|
nitro_chain_url: ""
|
||||||
nitro_chain_pk: ""
|
nitro_chain_pk: ""
|
||||||
|
nitro_chain_start_block: 0
|
||||||
nitro_sc_pk: ""
|
nitro_sc_pk: ""
|
||||||
na_address: ""
|
na_address: ""
|
||||||
vpa_address: ""
|
vpa_address: ""
|
||||||
|
@ -3,6 +3,7 @@ deploy-to: compose
|
|||||||
config:
|
config:
|
||||||
NITRO_CHAIN_URL: {{ nitro_chain_url }}
|
NITRO_CHAIN_URL: {{ nitro_chain_url }}
|
||||||
NITRO_CHAIN_PK: {{ nitro_chain_pk }}
|
NITRO_CHAIN_PK: {{ nitro_chain_pk }}
|
||||||
|
NITRO_CHAIN_START_BLOCK: {{ nitro_chain_start_block }}
|
||||||
NITRO_SC_PK: {{ nitro_sc_pk }}
|
NITRO_SC_PK: {{ nitro_sc_pk }}
|
||||||
NA_ADDRESS: "{{ na_address }}"
|
NA_ADDRESS: "{{ na_address }}"
|
||||||
VPA_ADDRESS: "{{ vpa_address }}"
|
VPA_ADDRESS: "{{ vpa_address }}"
|
||||||
|
@ -100,3 +100,11 @@
|
|||||||
register: asset_address
|
register: asset_address
|
||||||
- debug:
|
- debug:
|
||||||
msg: "ASSET_ADDRESS: {{ asset_address.stdout }}"
|
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 }}"
|
@ -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
|
# Private key of the account on chain that is used for funding channels in Nitro node
|
||||||
nitro_chain_pk: ""
|
nitro_chain_pk: ""
|
||||||
|
|
||||||
|
# Specifies the block number to start looking for nitro adjudicator events
|
||||||
|
nitro_chain_start_block: ""
|
||||||
|
|
||||||
# Contract address of NitroAdjudicator
|
# Contract address of NitroAdjudicator
|
||||||
na_address: ""
|
na_address: ""
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
nitro_chain_url: ""
|
nitro_chain_url: ""
|
||||||
nitro_sc_pk: ""
|
nitro_sc_pk: ""
|
||||||
nitro_chain_pk: ""
|
nitro_chain_pk: ""
|
||||||
|
nitro_chain_start_block: 0
|
||||||
na_address: ""
|
na_address: ""
|
||||||
vpa_address: ""
|
vpa_address: ""
|
||||||
ca_address: ""
|
ca_address: ""
|
||||||
|
@ -6,3 +6,4 @@ VPA_ADDRESS="{{ vpa_address }}"
|
|||||||
CA_ADDRESS="{{ ca_address }}"
|
CA_ADDRESS="{{ ca_address }}"
|
||||||
NITRO_BOOTPEERS={{ nitro_l1_bridge_multiaddr }}
|
NITRO_BOOTPEERS={{ nitro_l1_bridge_multiaddr }}
|
||||||
NITRO_EXT_MULTIADDR={{ nitro_l1_ext_multiaddr }}
|
NITRO_EXT_MULTIADDR={{ nitro_l1_ext_multiaddr }}
|
||||||
|
NITRO_CHAIN_START_BLOCK: {{ nitro_chain_start_block }}
|
||||||
|
Loading…
Reference in New Issue
Block a user