cosmos-sdk/scripts
Hieu Vu 8ab643dc10
feat(server/v2): add config & start helper (#20505)
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
Co-authored-by: Marko <marko@baricevic.me>
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
Co-authored-by: Likhita Polavarapu <78951027+likhita-809@users.noreply.github.com>
Co-authored-by: unknown unknown <unknown@unknown>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-06-19 17:19:57 +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.sh fix(simapp): home flag is not respected (#18994) 2024-01-30 21:38:22 +00:00
mockgen.sh refactor: modules should implement appmodule.AppModule (#18252) 2023-10-25 12:31:37 +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
simapp-v2-init.sh feat(server/v2): add config & start helper (#20505) 2024-06-19 17:19:57 +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