forked from cosmos/relayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev-env
executable file
·25 lines (22 loc) · 865 Bytes
/
dev-env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#/bin/bash -e
RELAYER_DIR="$GOPATH/src/github.com/iqlusioninc/relayer"
RELAYER_CONF="$HOME/.relayer"
GAIA_CONF="$(pwd)/data"
# Ensure user understands what will be deleted
if ([[ -d $RELAYER_CONF ]] || [[ -d $GAIA_CONF ]]) && [[ ! "$1" == "skip" ]]; then
read -p "$0 will delete \$HOME/.relayer and \$(pwd)/data folder. Do you wish to continue? (y/n): " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
exit 1
fi
fi
cd $RELAYER_DIR
rm -rf $RELAYER_CONF &> /dev/null
bash scripts/two-chainz "local" "skip"
bash scripts/config-relayer "skip"
sleep 2
rly tx link demo -o 3s -d
rly tx raw xfer-send ibc0 ibc1 10000n0token true $(rly ch addr ibc1)
rly tx raw xfer-send ibc0 ibc1 10000n0token true $(rly ch addr ibc1)
rly tx raw xfer-send ibc1 ibc0 10000n0token true $(rly ch addr ibc0)
rly tx raw xfer-send ibc1 ibc0 10000n0token true $(rly ch addr ibc0)