Skip to content

Commit

Permalink
update UPGRADING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
larry0x committed Jul 29, 2022
1 parent 5f59f6e commit 7c099f8
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ This guide provides instructions for upgrading to specific versions of Cosmos SD

Remove `Querier`, `Route` and `LegacyQuerier` from the app module interface. This removes and fully deprecates all legacy queriers. All modules no longer support the REST API previously known as the LCD, and the `sdk.Msg#Route` method won't be used anymore.



### SimApp

SimApp's `app.go` is using App Wiring, the dependency injection framework of the Cosmos SDK.
Expand All @@ -26,6 +24,21 @@ The constructor, `NewSimApp` has been simplified:
`simapp.MakeTestEncodingConfig()` was deprecated and has been removed. Instead you can use the `TestEncodingConfig` from the `types/module/testutil` package.
This means you can replace your usage of `simapp.MakeTestEncodingConfig` in tests to `moduletestutil.MakeTestEncodingConfig`, which takes a series of relevant `AppModuleBasic` as input (the module being tested and any potential dependencies).

### Client Configuration

Several gas-related parameters have been added to the client config. Using SimApp as an example, the client config is recorded in the file `~/.simapp/config/client.toml`. If you have this file generated by a previous version of the Cosmos SDK, it is necessary to add the following lines:

```toml
# Gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically
gas = "200000"
# Adjustment factor to be multiplied against the estimate returned by the tx simulation
gas-adjustment = "1"
# Gas prices in decimal format to determine the transaction fee
gas-prices = ""
```

This can be done either by re-running `simd init`, or by manually editing the file using a text editor.

## [v0.46.x](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.46.0)

### Client Changes
Expand Down

0 comments on commit 7c099f8

Please sign in to comment.