-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_examples.sh
executable file
·22 lines (20 loc) · 1.08 KB
/
run_examples.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
set -o errexit -o nounset -o pipefail
command -v shellcheck >/dev/null && shellcheck "$0"
if [ -n "${WASMD_ENABLED:-}" ]; then
yarn node ./bin/cosmjs-cli --init examples/cosmwasm.ts --code "process.exit(0)"
fi
if [ -n "${SIMAPP42_ENABLED:-}" ]; then
yarn node ./bin/cosmjs-cli --init examples/delegate.ts --code "process.exit(0)"
fi
yarn node ./bin/cosmjs-cli --init examples/faucet_addresses.ts --code "process.exit(0)"
yarn node ./bin/cosmjs-cli --init examples/generate_address.ts --code "process.exit(0)"
yarn node ./bin/cosmjs-cli --init examples/local_faucet.ts --code "process.exit(0)"
yarn node ./bin/cosmjs-cli --init examples/mask.ts --code "process.exit(0)"
yarn node ./bin/cosmjs-cli --init examples/multisig_address.ts --code "process.exit(0)"
if [ -n "${SIMAPP42_ENABLED:-}" ]; then
yarn node ./bin/cosmjs-cli --init examples/stargate.ts --code "process.exit(0)"
yarn node ./bin/cosmjs-cli --init examples/simulate.ts --code "process.exit(0)"
fi
# Disabled as this requires internet access
# yarn node ./bin/cosmjs-cli --init examples/figment.ts --code "process.exit(0)"