Skip to content

Commit

Permalink
v5.1-beta docs
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Jun 29, 2023
1 parent 945b88c commit 2fb00f2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 24 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ See [Release procedure](CONTRIBUTING.md#release-procedure) for more information
| v4.2.x || v0.46.10+ | v5.2.x | v1.3.x+ | umee/v2.1.1 | umee/v4 v1.5.3-umee-4 | v1.1.1 |
| v4.3.x || v0.46.11+ | v6.1.x | v1.3.x+ | umee/v2.1.1 | umee/v4 v1.5.3-umee-6 | v1.2.1 |
| v4.4.x || v0.46.11+ | v6.1.x | v1.3.x+ | umee/v2.1.4+ | umee/v4 v1.5.3-umee-6 | v1.2.3 |
| v5.0.x || v0.46.13+ | v6.1.x | v1.3.x+ | umee/v2.1.4+ | umee/v4 v1.5.3-umee-8 | v1.2.4 |
| v5.1.x || v0.46.13+ | v6.1.x | v1.3.x+ | umee/v2.1.4+ | umee/v4 v1.5.3-umee-9 | v1.2.4 |
| v5.0.x || v0.46.13+ | v6.2.x | v1.3.x+ | umee/v2.1.4+ | umee/v4 v1.5.3-umee-8 | v1.2.4 |
| v5.1.x || v0.46.13+ | v6.2.x | --- | umee/v2.1.6+ | umee/v4 v1.5.3-umee-10 | v1.2.4 |

#### Price Feeder

Expand Down
26 changes: 7 additions & 19 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,18 @@ Release Procedure is defined in the [CONTRIBUTING](CONTRIBUTING.md#release-proce

Highlights:

- Cosmwasm integration (v0.31).
- Gravity Bridge phase-3: shutdown of the transfers. In this release we introduce valset burn mechanism,
which will block the Ethereum smart contract for processing any further transactions, as well
as sending transfers back to Ethereum. This follows the plan approved through in the
[prop-67](https://www.mintscan.io/umee/proposals/67).
NOTE: All validators must continue to use Peggo to not get slashed.
- Updated to the latest Cosmos SDK v0.46.12
- New generic functions for storage management: `util/store`.
- [`x/incentive`](x/incentive/README.md) module: allows to create incentive programs for liquidity mining.
- new x/leverage security measure: [Borrow Factor](x/leverage/README.md#borrow-factor)
- new x/leverage [`MsgLeveragedLiquidate`](proto/umee/leverage/v1/tx.proto#L59) was added. Allows suppliers to use their active collateral to absorb unhealthy debts. See [Liquidation](x/leverage/README.md#liquidation) for more details.
- Gravity Bridge phase-4: the GB valset was correctly burned. Slashing is removed and there is no need to run Peggo any more.

See [CHANGELOG](https://github.com/umee-network/umee/blob/v5.0.0/CHANGELOG.md).
[v5.1 CHANGELOG](https://github.com/umee-network/umee/blob/v5.1.0/CHANGELOG.md).

### Validators

#### libwasmvm update
#### Peggo

Our dependencies have been updated. Now the binary requires `libwasmvm v1.2.4`. When you build the binary from source on the server machine you probably don't need any change. However when you download a binary from GitHub, or from other source, make sure you update the `/usr/lib/libwasmvm.<cpu_arch>.so`. For example:

- copy from `$GOPATH/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.2.4/internal/api/libwasmvm.$(uname -m).so`
- or download from github `wget https://raw.githubusercontent.com/CosmWasm/wasmvm/v1.2.4/internal/api/libwasmvm.$(uname -m).so -O /lib/libwasmvm.$(uname -m).so`

You don't need to do anything if you are using our Docker image.
You can kill Peggo.

#### Min Gas Prices

Expand All @@ -40,16 +31,13 @@ Since v4.2 release we request all validators set a `minimum-gas-prices` setting
minimum-gas-prices = "0.1uumee"
```

You MUST also set the related parameter when starting Peggo `--cosmos-gas-prices="0.1uumee"`

### Upgrade instructions

- Download latest binary or build from source.
- Make sure `libwasmvm.$(uname -m).so` is properly linked
- Run the binary to make sure it works for you: `umeed version`
- Wait for software upgrade proposal to pass and trigger the chain upgrade.
- Swap binaries.
- Ensure latest Peggo (v1.4.0) is running
- Ensure latest Price Feeder (see [compatibility matrix](https://github.com/umee-network/umee/#release-compatibility-matrix)) is running and check your price feeder config is up to date.
- Restart the chain.

Expand Down
5 changes: 2 additions & 3 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,16 @@ func (app UmeeApp) RegisterUpgradeHandlers(bool) {
}

func (app *UmeeApp) registerUpgrade5_1(upgradeInfo upgradetypes.Plan) {
planName := "v5.1"
planName := "v5.1-beta" // TODO: decide about the final release
app.UpgradeKeeper.SetUpgradeHandler(planName,
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
app.storeUpgrade(planName, upgradeInfo, storetypes.StoreUpgrades{
Added: []string{incentive.ModuleName},
})

// TODO: set the correct drain account. This will panic if executed.
if err := app.GravityKeeper.MigrateFundsToDrainAccount(
ctx,
sdk.MustAccAddressFromBech32("the_drain_account"),
sdk.MustAccAddressFromBech32("umee1gx9svenfs6ktvajje2wgqau3gk5mznwnyghq4l"),
); err != nil {
return nil, err
}
Expand Down

0 comments on commit 2fb00f2

Please sign in to comment.