cosmos-sdk/scripts
Alvarez d201ca9ae4
docs: fix typos and wording across SDK documentation READMEs (#25696)
Co-authored-by: Alex | Cosmos Labs <alex@cosmoslabs.io>
2025-12-17 17:12:11 +00:00
..
dep-assert.sh refactor: create go.mod for simapp (#13130) 2022-09-07 18:14:22 +00:00
go-lint-all.bash perf: Replace runsim with Go stdlib testing (#24045) 2025-03-21 15:48:00 +00:00
go-mod-tidy-all.sh build: add scripts to update all go.mod's at once (#10901) 2022-01-07 17:05:07 +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.sh feat(client): add default key name (backport #18101) (#24332) 2025-04-02 15:03:54 +00:00
mockgen.sh chore: move modules (#25090) 2025-08-19 16:50:40 -04:00
protoc-swagger-gen.sh chore: fix and regenerate swagger yaml #12109 2022-06-01 09:38:29 -04:00
protocgen-pulsar.sh chore: remove buf warning (#16361) 2023-05-31 10:31:01 +00:00
protocgen.sh refactor: bring cometbft back to v0.38.x family (#25285) 2025-08-29 15:58:04 -04:00
README.md docs: fix typos and wording across SDK documentation READMEs (#25696) 2025-12-17 17:12:11 +00:00
validate-gentxs.sh feat: bump Go version to 1.17 (#9987) 2021-09-17 13:31:46 +02: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