cosmos-sdk/scripts
2024-09-11 08:08:09 +00:00
..
build fix(sims): OOM at sim-multi-seed-long run (#21503) 2024-09-03 13:41:22 +00:00
hooks refactor: Add --fast flag to accelerate lint for git pre-commit hook (#19259) 2024-01-28 09:52:44 +00:00
dep-assert.sh refactor: remove x/exp dep (#21281) 2024-08-19 13:14:34 +00:00
go-lint-all.bash ci: remove nix from gh workflows (#21572) 2024-09-11 08:08:09 +00:00
go-mod-tidy-all.sh ci: remove nix from gh workflows (#21572) 2024-09-11 08:08:09 +00:00
go-update-dep-all.sh build(deps): Bump cosmossdk.io/api from v0.1.0-alpha9 to v0.2.0 (#13206) 2022-09-08 20:36:54 +00:00
init-simapp-v2.sh fix: reimplement sig verification for app v2 (#21386) 2024-08-26 09:40:54 +00:00
init-simapp.sh ci: make init-simapp v1 / v2 consistent (#21082) 2024-07-28 07:28:05 +00:00
local-testnet.sh refactor(simd/v2): Rename to minimum-gas-price (#21099) 2024-07-29 05:08:48 +00:00
mockgen.sh refactor: remove consensus as a imported type in modules (#21480) 2024-09-10 15:36:33 +00:00
protoc-swagger-gen.sh chore: update protoc-gen-swagger to protoc-gen-openapiv2 (#20448) 2024-05-31 09:58:58 +00:00
protocgen.sh feat(bank/v2): create module boilerplate (#21559) 2024-09-06 16:04:21 +00:00
README.md docs: Code blocks in SDK docs are broken (#11189) 2022-02-14 23:39:35 +01:00
validate-gentxs.sh refactor(scripts): remove unused variable (#21320) 2024-08-16 06:40:48 +00:00

Scripts

Generally we should avoid shell scripting and write tests purely in Golang. However, some libraries are not Goroutine-safe (e.g. app simulations cannot be run safely in parallel), and OS-native threading may be more efficient for many parallel simulations, so we use shell scripts here.

Validate Gentxs

A custom utility script is available to validate gentxs. Though we have ValidateBasic() for validating gentx data, it cannot validate signatures. This custom script helps to validate all the gentxs by collecting them one by one and starting a local network. It requires the following env settings.

export DAEMON=gaiad
export CHAIN_ID=cosmoshub-1
export DENOM=uatom
export GH_URL=https://github.com/cosmos/gaia
export BINARY_VERSION=v1.0.0
export GO_VERSION=1.17
export PRELAUNCH_GENESIS_URL=https://raw.githubusercontent.com/cosmos/mainnet/main/cosmoshub-1/genesis-prelaunch.json
export GENTXS_DIR=~/go/src/github.com/cosmos/mainnet/$CHAIN_ID/gentxs

Though this script is handy for verifying the gentxs locally, it is advised to use Github Action to validate gentxs. An example can be found here: 0bcd387671/.github/workflows/validate-gentx.yml