Remove go-nitro repo dependency from nitro-node and bridge stacks #12
@ -264,7 +264,7 @@
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
export GETH_CHAIN_ID="1212"
|
export GETH_CHAIN_ID="1212"
|
||||||
export ASSET_ADDRESS=$(laconic-so deployment --dir nitro-contracts-deployment exec nitro-contracts "jq -r '.\"$GETH_CHAIN_ID\"[0].contracts.Token.address' /app/deployment/nitro-addresses.json")
|
export ASSET_ADDRESS=$(laconic-so deployment --dir nitro-contracts-deployment exec nitro-contracts "jq -r '.\"$GETH_CHAIN_ID\"[0].contracts.TestToken.address' /app/deployment/nitro-addresses.json")
|
||||||
|
|
||||||
export A_CHAIN_ADDRESS="0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a"
|
export A_CHAIN_ADDRESS="0xe22AD83A0dE117bA0d03d5E94Eb4E0d80a69C62a"
|
||||||
export C_CHAIN_ADDRESS="0xf1ac8Dd1f6D6F5c0dA99097c57ebF50CD99Ce293"
|
export C_CHAIN_ADDRESS="0xf1ac8Dd1f6D6F5c0dA99097c57ebF50CD99Ce293"
|
||||||
@ -276,7 +276,7 @@
|
|||||||
# Send tokens to Alice
|
# Send tokens to Alice
|
||||||
laconic-so deployment --dir nitro-contracts-deployment exec nitro-contracts "cd packages/nitro-protocol && yarn hardhat transfer --contract $ASSET_ADDRESS --to $A_CHAIN_ADDRESS --amount 1000 --network geth"
|
laconic-so deployment --dir nitro-contracts-deployment exec nitro-contracts "cd packages/nitro-protocol && yarn hardhat transfer --contract $ASSET_ADDRESS --to $A_CHAIN_ADDRESS --amount 1000 --network geth"
|
||||||
|
|
||||||
#Send tokens to Charlie
|
# Send tokens to Charlie
|
||||||
laconic-so deployment --dir nitro-contracts-deployment exec nitro-contracts "cd packages/nitro-protocol && yarn hardhat transfer --contract $ASSET_ADDRESS --to $C_CHAIN_ADDRESS --amount 1000 --network geth"
|
laconic-so deployment --dir nitro-contracts-deployment exec nitro-contracts "cd packages/nitro-protocol && yarn hardhat transfer --contract $ASSET_ADDRESS --to $C_CHAIN_ADDRESS --amount 1000 --network geth"
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -438,7 +438,7 @@
|
|||||||
```bash
|
```bash
|
||||||
export BRIDGE_NITRO_ADDRESS=0xBBB676f9cFF8D242e9eaC39D063848807d3D1D94
|
export BRIDGE_NITRO_ADDRESS=0xBBB676f9cFF8D242e9eaC39D063848807d3D1D94
|
||||||
export GETH_CHAIN_ID="1212"
|
export GETH_CHAIN_ID="1212"
|
||||||
export ASSET_ADDRESS=$(laconic-so deployment --dir nitro-contracts-deployment exec nitro-contracts "jq -r '.\"$GETH_CHAIN_ID\"[0].contracts.Token.address' /app/deployment/nitro-addresses.json")
|
export ASSET_ADDRESS=$(laconic-so deployment --dir nitro-contracts-deployment exec nitro-contracts "jq -r '.\"$GETH_CHAIN_ID\"[0].contracts.TestToken.address' /app/deployment/nitro-addresses.json")
|
||||||
```
|
```
|
||||||
|
|
||||||
- Create ledger channel between A and Bridge with custom token
|
- Create ledger channel between A and Bridge with custom token
|
||||||
|
@ -9,7 +9,7 @@ services:
|
|||||||
NODE_EXTRA_CA_CERTS: "/app/mkcert-caroot/rootCA.pem"
|
NODE_EXTRA_CA_CERTS: "/app/mkcert-caroot/rootCA.pem"
|
||||||
command: ["bash", "-c", "tail -f /dev/null"]
|
command: ["bash", "-c", "tail -f /dev/null"]
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "nitro-cli --version -p 4005"]
|
test: ["CMD-SHELL", "nitro-rpc-client --version -p 4005"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 10
|
retries: 10
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:latest
|
FROM debian:bookworm-slim
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y jq netcat-traditional ca-certificates curl
|
RUN apt-get install -y jq netcat-traditional ca-certificates curl
|
||||||
@ -19,3 +19,7 @@ RUN curl -LO https://git.vdb.to/cerc-io/nitro/releases/download/latest/bridge
|
|||||||
# Make binaries executable
|
# Make binaries executable
|
||||||
RUN chmod +x ./nitro
|
RUN chmod +x ./nitro
|
||||||
RUN chmod +x ./bridge
|
RUN chmod +x ./bridge
|
||||||
|
|
||||||
|
# Verify that binaries are correctly setup
|
||||||
|
RUN ./nitro help
|
||||||
|
RUN ./bridge help
|
||||||
|
@ -8,12 +8,6 @@
|
|||||||
laconic-so fetch-stack git.vdb.to/cerc-io/nitro-stack
|
laconic-so fetch-stack git.vdb.to/cerc-io/nitro-stack
|
||||||
```
|
```
|
||||||
|
|
||||||
- Clone required repositories:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/bridge setup-repositories
|
|
||||||
```
|
|
||||||
|
|
||||||
- Build container images:
|
- Build container images:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -11,8 +11,9 @@
|
|||||||
- Clone required repositories:
|
- Clone required repositories:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/nitro-contracts setup-repositories
|
laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/nitro-contracts setup-repositories --git-ssh --pull
|
||||||
```
|
```
|
||||||
|
Make sure you have access to the `go-nitro` repository
|
||||||
|
|
||||||
- Build container images:
|
- Build container images:
|
||||||
|
|
||||||
|
@ -8,14 +8,6 @@
|
|||||||
laconic-so fetch-stack git.vdb.to/cerc-io/nitro-stack
|
laconic-so fetch-stack git.vdb.to/cerc-io/nitro-stack
|
||||||
```
|
```
|
||||||
|
|
||||||
- Clone required repositories
|
|
||||||
|
|
||||||
```bash
|
|
||||||
laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/nitro-node setup-repositories
|
|
||||||
```
|
|
||||||
|
|
||||||
Note: Replace path to nitro stack with actual path
|
|
||||||
|
|
||||||
- Build the container image
|
- Build the container image
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
Loading…
Reference in New Issue
Block a user