Create a justfile to load whatever chain env variables we need on demand
Closed this issue · 0 comments
kerber0x commented
It would be awesome to create a justfile to load the env variables into the terminal.
An example of how to use this tool would be just load migaloo
, which would be the equivalent to inputing in the terminal:
export CHAIN_ID="migaloo-1"
export DENOM="uwhale"
export BINARY="migalood"
export RPC="https://migaloo-rpc.polkachu.com:443"
if [ -n "$ZSH_VERSION" ]; then
# Using an array for TXFLAG
TXFLAG=(--node $RPC --chain-id $CHAIN_ID --gas-prices 0.25$DENOM --gas auto --gas-adjustment 1.3 -y -b block --output json)
else
# Using a string for TXFLAG
TXFLAG="--node $RPC --chain-id $CHAIN_ID --gas-prices 0.25$DENOM --gas auto --gas-adjustment 1.3 -y -b block --output json"
fi
export TXFLAG
This would enhance the dev experience by a lot.