Add script to deploy new tokens (#13)
Part of [Create bridge channel in go-nitro](https://www.notion.so/Create-bridge-channel-in-go-nitro-22ce80a0d8ae4edb80020a8f250ea270) Co-authored-by: Shreerang Kale <shreerangkale@gmail.com> Reviewed-on: #13
This commit is contained in:
parent
ceae9fe8d4
commit
4ccc1f793a
@ -18,6 +18,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- nitro_deployment:/app/deployment
|
- nitro_deployment:/app/deployment
|
||||||
- ../config/nitro-contracts/deploy-l1-contracts.sh:/app/deploy-l1-contracts.sh
|
- ../config/nitro-contracts/deploy-l1-contracts.sh:/app/deploy-l1-contracts.sh
|
||||||
|
- ../config/nitro-contracts/deploy-l1-tokens.sh:/app/deploy-l1-tokens.sh
|
||||||
command: ["bash", "-c", "/app/deploy-l1-contracts.sh"]
|
command: ["bash", "-c", "/app/deploy-l1-contracts.sh"]
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
|
27
stack-orchestrator/config/nitro-contracts/deploy-l1-tokens.sh
Executable file
27
stack-orchestrator/config/nitro-contracts/deploy-l1-tokens.sh
Executable file
@ -0,0 +1,27 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
if [ -n "$CERC_SCRIPT_DEBUG" ]; then
|
||||||
|
set -x
|
||||||
|
fi
|
||||||
|
|
||||||
|
addresses_deployment_file="packages/nitro-protocol/addresses.json"
|
||||||
|
nitro_addresses_file="/app/deployment/nitro-addresses.json"
|
||||||
|
|
||||||
|
echo "Using the following environment variables:"
|
||||||
|
echo "GETH_URL: ${GETH_URL}"
|
||||||
|
echo "GETH_CHAIN_ID: ${GETH_CHAIN_ID}"
|
||||||
|
echo "GETH_DEPLOYER_PK: ${GETH_DEPLOYER_PK}"
|
||||||
|
echo "TOKEN_NAME: ${TOKEN_NAME}"
|
||||||
|
echo "TOKEN_SYMBOL: ${TOKEN_SYMBOL}"
|
||||||
|
echo "INITIAL_TOKEN_SUPPLY: ${INITIAL_TOKEN_SUPPLY}"
|
||||||
|
echo "DISABLE_DETERMINISTIC_DEPLOYMENT: ${DISABLE_DETERMINISTIC_DEPLOYMENT}"
|
||||||
|
|
||||||
|
cp ${nitro_addresses_file} ${addresses_deployment_file}
|
||||||
|
|
||||||
|
# Deploy custom token
|
||||||
|
yarn contracts:deploy-token-geth
|
||||||
|
|
||||||
|
cp ${addresses_deployment_file} ${nitro_addresses_file}
|
||||||
|
|
||||||
|
echo "Done"
|
@ -7,4 +7,4 @@ WORKDIR /app
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN echo "Installing dependencies" && \
|
RUN echo "Installing dependencies" && \
|
||||||
yarn && yarn build
|
yarn
|
||||||
|
Loading…
Reference in New Issue
Block a user