2021-02-10 15:36:38 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -o errexit -o nounset -o pipefail
|
|
|
|
command -v shellcheck >/dev/null && shellcheck "$0"
|
|
|
|
|
2021-11-18 22:18:36 +01:00
|
|
|
if [ -n "${WASMD_ENABLED:-}" ]; then
|
2022-02-22 14:08:11 +01:00
|
|
|
yarn node ./bin/cosmjs-cli --init examples/cosmwasm.ts --code "process.exit(0)"
|
2021-07-22 14:01:00 +02:00
|
|
|
fi
|
2022-08-03 18:22:41 +02:00
|
|
|
if [ -n "${SIMAPP44_ENABLED:-}" ]; then
|
2022-02-22 14:08:11 +01:00
|
|
|
yarn node ./bin/cosmjs-cli --init examples/delegate.ts --code "process.exit(0)"
|
2021-02-10 15:36:38 +01:00
|
|
|
fi
|
2022-02-22 14:08:11 +01:00
|
|
|
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)"
|
2022-10-18 14:31:11 +02:00
|
|
|
yarn node ./bin/cosmjs-cli --init examples/instantiate2_addresses.ts --code "process.exit(0)"
|
2022-02-22 14:08:11 +01:00
|
|
|
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)"
|
2022-08-03 18:22:41 +02:00
|
|
|
if [ -n "${SIMAPP44_ENABLED:-}" ]; then
|
2022-02-22 14:08:11 +01:00
|
|
|
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)"
|
2021-02-11 15:56:29 +01:00
|
|
|
fi
|
2022-04-06 23:25:50 +02:00
|
|
|
|
|
|
|
# Disabled as this requires internet access
|
|
|
|
# yarn node ./bin/cosmjs-cli --init examples/figment.ts --code "process.exit(0)"
|