Add spec file for nitro contracts

This commit is contained in:
Adw8 2024-09-03 17:22:43 +05:30
parent f4db0db2a0
commit 8505c196b3
2 changed files with 16 additions and 3 deletions

View File

@ -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:

View File

@ -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