cosmos-sdk/simapp
dependabot[bot] e2792711ba
build(deps): Bump cosmossdk.io/depinject from 1.0.0-alpha.2 to 1.0.0-alpha.3 in /tests (#13596)
* build(deps): Bump cosmossdk.io/depinject in /tests

Bumps [cosmossdk.io/depinject](https://github.com/cosmos/cosmos-sdk) from 1.0.0-alpha.2 to 1.0.0-alpha.3.
- [Release notes](https://github.com/cosmos/cosmos-sdk/releases)
- [Changelog](https://github.com/cosmos/cosmos-sdk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/cosmos/cosmos-sdk/compare/orm/v1.0.0-alpha.2...orm/v1.0.0-alpha.3)

---
updated-dependencies:
- dependency-name: cosmossdk.io/depinject
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps): Bump cosmossdk.io/depinject from 1.0.0-alpha.2 to 1.0.0-alpha.3 in /tests for all modules

* update core version

* x/consensus providers need to be exported

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aaron Craelius <aaronc@users.noreply.github.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
2022-10-21 12:44:58 -04:00
..
params refactor: remove simapp from x/staking module (#13101) 2022-08-31 14:50:22 +00:00
simd feat!: use built-in cobra completion command (#13548) 2022-10-13 22:03:10 -04:00
app_config.go feat!: consensus module (#12905) 2022-10-05 18:06:24 +00:00
app_legacy.go feat: gRPC query for operator and chain configuration (#13485) 2022-10-10 19:12:00 +00:00
app_test.go feat!: specify module to export (#13437) 2022-10-04 10:06:30 +00:00
app.go feat!: consensus module (#12905) 2022-10-05 18:06:24 +00:00
export.go refactor: split ExportGenesis into two functions to maintain backwards compatibility (#13448) 2022-10-04 22:42:58 +00:00
genesis_account_test.go refactor: create go.mod for simapp (#13130) 2022-09-07 18:14:22 +00:00
genesis_account.go x/auth: remove alias.go usage (#6440) 2020-06-17 14:42:27 -04:00
genesis.go x/authz: audit updates (#9042) 2021-05-06 18:23:48 +00:00
go.mod build(deps): Bump cosmossdk.io/depinject from 1.0.0-alpha.2 to 1.0.0-alpha.3 in /tests (#13596) 2022-10-21 12:44:58 -04:00
go.sum build(deps): Bump cosmossdk.io/depinject from 1.0.0-alpha.2 to 1.0.0-alpha.3 in /tests (#13596) 2022-10-21 12:44:58 -04:00
README.md feat: migrate to docusaurus (#13471) 2022-10-10 14:01:53 +00:00
sim_bench_test.go refactor!: extract simulation helpers out of simapp (#13402) 2022-09-27 21:19:44 +02:00
sim_test.go fix: fix simulations failure (#13512) 2022-10-12 07:24:58 +00:00
state.go refactor!: extract simulation helpers out of simapp (#13402) 2022-09-27 21:19:44 +02:00
test_helpers.go refactor!: Refactor CommunityPoolSpendProposal (#12852) 2022-08-22 16:09:22 -04:00
testutil_network_test.go refactor: create go.mod for simapp (#13130) 2022-09-07 18:14:22 +00:00
upgrades.go feat!: consensus module (#12905) 2022-10-05 18:06:24 +00:00

sidebar_position
1

SimApp

SimApp is an application built using the Cosmos SDK for testing and educational purposes.

Running testnets with simd

If you want to spin up a quick testnet with your friends, you can follow these steps. Unless otherwise noted, every step must be done by everyone who wants to participate in this testnet.

  1. From the root directory of the Cosmos SDK repository, run $ make build. This will build the simd binary inside a new build directory. The following instructions are run from inside the build directory.

  2. If you've run simd before, you may need to reset your database before starting a new testnet. You can reset your database with the following command: $ ./simd tendermint unsafe-reset-all.

  3. $ ./simd init [moniker] --chain-id [chain-id]. This will initialize a new working directory at the default location ~/.simapp. You need to provide a "moniker" and a "chain id". These two names can be anything, but you will need to use the same "chain id" in the following steps.

  4. $ ./simd keys add [key_name]. This will create a new key, with a name of your choosing. Save the output of this command somewhere; you'll need the address generated here later.

  5. $ ./simd add-genesis-account [key_name] [amount], where key_name is the same key name as before; and amount is something like 10000000000000000000000000stake.

  6. $ ./simd gentx [key_name] [amount] --chain-id [chain-id]. This will create the genesis transaction for your new chain. Here amount should be at least 1000000000stake. If you provide too much or too little, you will encounter an error when starting your node.

  7. Now, one person needs to create the genesis file genesis.json using the genesis transactions from every participant, by gathering all the genesis transactions under config/gentx and then calling $ ./simd collect-gentxs. This will create a new genesis.json file that includes data from all the validators (we sometimes call it the "super genesis file" to distinguish it from single-validator genesis files).

  8. Once you've received the super genesis file, overwrite your original genesis.json file with the new super genesis.json.

  9. Modify your config/config.toml (in the simapp working directory) to include the other participants as persistent peers:

    # Comma separated list of nodes to keep persistent connections to
    persistent_peers = "[validator_address]@[ip_address]:[port],[validator_address]@[ip_address]:[port]"
    

    You can find validator_address by running $ ./simd tendermint show-node-id. The output will be the hex-encoded validator_address. The default port is 26656.

  10. Now you can start your nodes: $ ./simd start.

Now you have a small testnet that you can use to try out changes to the Cosmos SDK or Tendermint!

NOTE: Sometimes creating the network through the collect-gentxs will fail, and validators will start in a funny state (and then panic). If this happens, you can try to create and start the network first with a single validator and then add additional validators using a create-validator transaction.