cosmos-sdk/scripts
Alex | Interchain Labs 960d44842b
chore: prep rc2 (#23489)
2025-01-24 12:33:24 -05:00
..
build chore: prep rc2 (#23489) 2025-01-24 12:33:24 -05: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 (backport #21281) (#21358) 2024-08-19 15:46:41 +00:00
go-lint-all.bash build: remove RocksDB (partial backport #23212) (#23237) 2025-01-07 21:14:05 +01:00
go-mod-tidy-all.sh ci: remove nix from gh workflows (backport #21572) (#21646) 2024-09-11 11:08:02 +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 refactor: use latest store/v2 (partial backport #22336) (#23345) 2025-01-13 12:23:20 +01:00
init-simapp.sh ci: make init-simapp v1 / v2 consistent (backport #21082) (#21097) 2024-07-28 10:16:46 +02:00
mockgen.sh test: fix failing tests after protocompat changes (backport #22889) (#22897) 2024-12-16 19:07:25 +01: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(x/bank): Allow value with slashes in DenomMetadata (backport #22543) (#22640) 2024-11-25 11:39:45 +01:00
README.md docs: Code blocks in SDK docs are broken (#11189) 2022-02-14 23:39:35 +01: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