cosmos-sdk/scripts
2024-07-28 07:28:05 +00:00
..
build ci: make init-simapp v1 / v2 consistent (#21082) 2024-07-28 07:28:05 +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 ci: upstream dep-assert and nomenclature from server/v2 (#19703) 2024-03-08 17:00:09 +00:00
go-lint-all.bash fix(x/consensus): fix .proto file placement (#20646) 2024-06-12 18:07:10 +00:00
go-mod-tidy-all.sh fix(x/accounts/defaults/lockup): rename lockup go.mod properly (#19899) 2024-03-28 22:31:12 +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 ci: make init-simapp v1 / v2 consistent (#21082) 2024-07-28 07:28:05 +00:00
init-simapp.sh ci: make init-simapp v1 / v2 consistent (#21082) 2024-07-28 07:28:05 +00:00
local-testnet.sh feat(simapp/v2): Add store server to testnet init cmd (#21076) 2024-07-25 20:50:57 +00:00
mockgen.sh refactor(core,types,runtime,x): make HasName not mandatory (#20984) 2024-07-19 08:58:47 +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 fix(proto): remove conditional preventing proper generated file placement (#20650) 2024-06-13 08:03:34 +00: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