laconicd/scripts/init.sh
Prathamesh Musale 0af44b5f17
All checks were successful
Integration Tests / test-integration (push) Successful in 2m17s
Setup integration tests and CI (#11)
- Setup integration tests following pattern suggested in cosmos-sdk docs:
  https://docs.cosmos.network/v0.50/build/building-modules/testing#integration-tests
- Add tests for laconic modules query services
- Setup a CI workflow to run the integration tests

Reviewed-on: deep-stack/laconic2d#11
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
2024-02-29 11:54:35 +00:00

17 lines
633 B
Bash
Executable File

#!/bin/bash
rm -r ~/.laconic2d || true
LACONIC2D_BIN=$(which laconic2d)
# configure laconic2d
$LACONIC2D_BIN config set client chain-id demo
$LACONIC2D_BIN config set client keyring-backend test
$LACONIC2D_BIN keys add alice
$LACONIC2D_BIN keys add bob
$LACONIC2D_BIN init test --chain-id demo --default-denom photon
# update genesis
$LACONIC2D_BIN genesis add-genesis-account alice 10000000photon --keyring-backend test
$LACONIC2D_BIN genesis add-genesis-account bob 1000photon --keyring-backend test
# create default validator
$LACONIC2D_BIN genesis gentx alice 1000000photon --chain-id demo
$LACONIC2D_BIN genesis collect-gentxs