2023-03-30 04:14:15 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Assign deployed contract address from server config
|
2023-04-03 12:43:29 +00:00
|
|
|
CONTRACT_ADDRESS=$(jq -r '.address' /server/config.json | tr -d '"')
|
|
|
|
L1_PRIV_KEY_2=$(awk -F, 'NR==2{print $NF}' /geth-accounts/accounts.csv)
|
2023-03-30 04:14:15 +00:00
|
|
|
|
2023-04-03 12:43:29 +00:00
|
|
|
sed "s/REPLACE_WITH_PRIVATE_KEY/${L1_PRIV_KEY_2}/" environments/watcher-config-template.toml > environments/local.toml
|
|
|
|
sed -i "s/REPLACE_WITH_CONTRACT_ADDRESS/${CONTRACT_ADDRESS}/" environments/local.toml
|
2023-03-30 04:14:15 +00:00
|
|
|
|
|
|
|
echo 'yarn server'
|
|
|
|
yarn server
|