Skip to content

Commit

Permalink
chore: shfmt the local_node.sh file (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMustermann2 authored Sep 6, 2024
1 parent cd7d071 commit dc87d9e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions local_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ if [[ $overwrite == "y" || $overwrite == "Y" ]]; then
# see https://github.com/ExocoreNetwork/exocore/blob/82b2509ad33ab7679592dcb1aa56a7a811128410/local_node.sh#L123 as an example

# generate oracle_env_chainlink.yaml file
oracle_env_chainlink_content=$(cat <<EOF
oracle_env_chainlink_content=$(
cat <<EOF
urls:
mainnet: !!str https://rpc.ankr.com/eth
sepolia: !!str https://rpc.ankr.com/eth_sepolia
Expand All @@ -158,13 +159,14 @@ tokens:
AAVEUSDT: 0x547a514d5e3769680Ce22B2361c10Ea13619e8a9_mainnet
WSTETHUSDT: 0xaaabb530434B0EeAAc9A42E25dbC6A22D7bE218E_sepolia
EOF
)
)

# Write the YAML content to a file
echo "$oracle_env_chainlink_content" > "$ORACLE_ENV_CHAINLINK"
echo "$oracle_env_chainlink_content" >"$ORACLE_ENV_CHAINLINK"

# generate oracle_feeder.yaml file
oracle_feeder_content=$(cat <<EOF
oracle_feeder_content=$(
cat <<EOF
sources:
- chainlink
tokens:
Expand All @@ -184,8 +186,8 @@ EOF
)

# Write the YAML content to a file
echo "$oracle_feeder_content" > "$ORACLE_FEEDER"
echo "$oracle_feeder_content" >"$ORACLE_FEEDER"

if [[ $1 == "pending" ]]; then
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' 's/timeout_propose = "3s"/timeout_propose = "30s"/g' "$CONFIG"
Expand Down

0 comments on commit dc87d9e

Please sign in to comment.