diff --git a/CHANGELOG.md b/CHANGELOG.md index 509104f8cd..33b5008e18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,10 +46,14 @@ Ref: https://keepachangelog.com/en/1.0.0/ ## Unreleased +## v6.4.0-beta1 - 2024-03-11 + ### Features - [2408](https://github.com/umee-network/umee/pull/2408) New `converter` helper app. -- [2349](https://github.com/umee-network/umee/pull/2349), [2437](https://github.com/umee-network/umee/pull/2437) IBC ICS20 memo handlers. +- [2349](https://github.com/umee-network/umee/pull/2349), [2437](https://github.com/umee-network/umee/pull/2437), [2411](https://github.com/umee-network/umee/pull/2411), [2442](https://github.com/umee-network/umee/pull/2442), [2443](https://github.com/umee-network/umee/pull/2443) IBC ICS20 memo handlers. +- [2381](https://github.com/umee-network/umee/pull/2381) Integrated Packet Forward Middleware. +- [2433](https://github.com/umee-network/umee/pull/2433) Noop Axelar GMP handler. ### Improvements @@ -58,8 +62,9 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Bug Fixes +- [2384](https://github.com/umee-network/umee/pull/2384) Fix `sdkclient` acc sequence setting. - [2417](https://github.com/umee-network/umee/pull/2417) Fix the ibc inflows storing of registered tokens when sender chain is source chain. - + ## v6.3.0 - 2024-01-03 ### Improvements @@ -131,7 +136,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Improvements -- [2256](https://github.com/umee-network/umee/pull/2256) unify and refactore `client` package. +- [2256](https://github.com/umee-network/umee/pull/2256) unify and refactor `client` package. - [2261](https://github.com/umee-network/umee/pull/2261) Use go 1.21 - [2267](https://github.com/umee-network/umee/pull/2267) Leverage transactions accept spot prices up to 3 minutes old, and leverage queries use most recent spot price when required. - [2263](https://github.com/umee-network/umee/pull/2263) Add spot price fields to account summary. @@ -148,7 +153,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ## [v6.0.2](https://github.com/umee-network/umee/releases/tag/v6.0.2) - 2023-09-20 -### BugFix +### Bug Fixs - [2257](https://github.com/umee-network/umee/pull/2257) fix(oracle): missing avg params. diff --git a/README.md b/README.md index c59706c96a..66b0df4384 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ See [Release procedure](CONTRIBUTING.md#release-procedure) for more information | v6.1.x | ✓ | v0.46.15+ | v6.2.x | --- | umee/v2.1.7+ | --- | v1.3.0 | | v6.2.x | ✓ | v0.47.6+ | v7.2.x | --- | umee/v2.3.0 | --- | v1.5.0 | | v6.3.x | ✓ | v0.47.7+ | v7.3.1 | --- | umee/v2.3.0+ | --- | v1.5.0 | +| v6.4.x | x | v0.47.10+ | v7.3.2 | --- | umee/v2.4.1+ | --- | v1.5.2 | #### Price Feeder @@ -72,9 +73,9 @@ Since `Price Feeder v2.1.0` the recommended oracle price feeder has been moved t When you build the binary from source on the server machine you probably don't need any change. Building from source automatically link the `libwasmvm.$(uname -m).so` created as a part of the build process. -However when you download a binary from GitHub, or from other source, make sure you have required version of `libwasmvm..so` (should be in your lib directory, e.g.: `/usr/local/lib/`). You can get it: +However when you download a binary from GitHub, or from another source, make sure you have the required version of `libwasmvm..so` (should be in your lib directory, e.g.: `/usr/local/lib/`). You can get it: -- from you build machine: copy `$GOPATH/pkg/mod/github.com/!cosm!wasm/wasmvm@v/internal/api/libwasmvm.$(uname -m).so` +- from your build machine: copy `$GOPATH/pkg/mod/github.com/!cosm!wasm/wasmvm@v/internal/api/libwasmvm.$(uname -m).so` - or download from CosmWasm GitHub `wget https://raw.githubusercontent.com/CosmWasm/wasmvm/v/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. @@ -102,7 +103,7 @@ docker build -t umee-network/umeed -f contrib/images/umeed.dockerfile . # start bash docker run -it --name umeed umee-network/umeed bash -# or start the start the node if you already have a node directory setup +# or start the node if you already have a node directory setup docker run -it --name umeed umee-network/umeed umeed start ``` diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 48f4d6d717..a3076cc0b6 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -4,22 +4,43 @@ # Release Notes -Release Procedure is defined in the [CONTRIBUTING](CONTRIBUTING.md#release-procedure) document. +The Release Procedure is defined in the [CONTRIBUTING](CONTRIBUTING.md#release-procedure) document. -## v6.3.0 +## v6.4.0 Highlights: -- Cosmos SDK v0.47.7 patch update. -- New queries: `oracle/MissCounters`, `uibc/Inflows`, `uibc/QuotaExpires`, `leverage/RegisteredTokenMarkets` +- Cosmos SDK v0.47.10 patch update. +- IBC Hooks: we integrated ICS20 Memo handling. - Update `uibc/MsgGovUpdateQuota` Msg type to handle the new inflow parameters. - Update `uibc/QueryAllOutflowsResponse` to include denom symbol (token name) in every outflow. [CHANGELOG](CHANGELOG.md) +### IBC Hooks + +This release brings the first part of the seamless cross-chain money market transactions. At UX, we want to provide the best User Experience for handling lending and leverage. In this release, we support the following `x/leverage` messages: + +- `MsgSupply` +- `MsgSupplyCollateral` +- `MsgLiquidate` + +The operation can only use tokens as the part of the IBC transfer (after any intermediate deductions) and the supplier / liquidator must be the IBC recipient (acting on someone else's behalf is not allowed). Authz is not supported. The remaining tokens will be credited to the recipient. + ### Validators -**Upgrade Title** (for Cosmovisor): **v6.3**. +**Upgrade Title** (for Cosmovisor): **v6.4**. + +Update Price Feeder to `umee/2.4.1+`. + +#### libwasmvm update + +Our dependencies have been updated. The binary requires `libwasmvm v1.5.2`. 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 another source, make sure you update the `/usr/lib/libwasmvm..so`. For example: + +- copy from `$GOPATH/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.5.2/internal/api/libwasmvm.$(uname -m).so` +- or download from github `wget https://raw.githubusercontent.com/CosmWasm/wasmvm/v1.5.2/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. ### Upgrade instructions @@ -28,7 +49,7 @@ Highlights: - 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 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. +- Ensure latest Price Feeder (see [compatibility matrix](https://github.com/umee-network/umee/#release-compatibility-matrix)) is running and ensure your price feeder configuration is up-to-date. - Restart the chain. You can use Cosmovisor → see [instructions](https://github.com/umee-network/umee/#cosmovisor). diff --git a/docs/VALIDATOR.md b/docs/VALIDATOR.md index dc68bf3c6a..a19be466fa 100644 --- a/docs/VALIDATOR.md +++ b/docs/VALIDATOR.md @@ -4,17 +4,19 @@ This document describes a process of joining a testnet or a mainnet as a validat ## Umeeversity -Full documentation is hosted at [learning.ux.xyz](https://learning.ux.xyz). However, it may not be up to date. +Full documentation is hosted at [learning.ux.xyz](https://learning.ux.xyz). However, it may not be up-to-date. ## Getting a Binary You need 2 binaries to run a validator: `umeed` and `price-feeder`. +Make sure you run the right binary for the testnet or the mainnet. Consult the chain upgrades on [mainnet](https://www.mintscan.io/umee/proposals) and [testnet](https://explorer.network.umee.cc/Canon-4/gov). + ### Umeed You can get a binary by: -1. [Build](./README.md#build) yourself and follow the latest [Release Notes](./RELEASE_NOTES.md). Make sure you run the right binary for the testnet or the mainnet. Consult the chain upgrades on [mainnet](https://www.mintscan.io/umee/proposals) and [testnet](https://explorer.network.umee.cc/Canon-4/gov). +1. [Build](../README.md#build) yourself and follow the latest [Release Notes](../RELEASE_NOTES.md). 2. If you build the binary on a different OS than your validator OS, then you need to copy `libwasmvm`: @@ -22,9 +24,9 @@ You can get a binary by: scp $GOPATH/pkg/mod/github.com/!cosm!wasm/wasmvm@/internal/api/libwasmvm.$(uname -m).so running_os:/ ``` - NOTE: use the correct `wasmvm` version, according to the latest [Release Notes](./RELEASE_NOTES.md) or the [compatibility matrix](./README.md#release-compatibility-matrix). + NOTE: use the correct `wasmvm` version, according to the latest [Release Notes](../RELEASE_NOTES.md) or the [compatibility matrix](../README.md#release-compatibility-matrix). -3. Download the right [binary build](https://github.com/umee-network/umee/releases) or use a [container image](https://github.com/umee-network/umee/pkgs/container/umeed) (docker). The binary build is compatible with the latest Ubuntu LTS x86-64. You MUST also copy the `libwasmvm` (see note in 2. about libwasmvm version): +3. Download the right [binary build](https://github.com/umee-network/umee/releases). The binary build is compatible with the latest Ubuntu LTS x86-64. You MUST also copy the `libwasmvm` (See note in 2. about libwasmvm version): ```sh wget https://raw.githubusercontent.com/CosmWasm/wasmvm//internal/api/libwasmvm.$(uname -m).so -O /lib/libwasmvm.$(uname -m).so @@ -37,14 +39,14 @@ To test if the `libwasm` is linked correctly, run `umeed version`. ### Price Feeder We are using Ojo Price Feeder. Please follow the [instructions](https://github.com/ojo-network/price-feeder/blob/umee/README.md). Make sure you use the latest release with the `umee/` prefix (eg: `umee/v2.4.0`). -NOTE: for self building and configuration examples you MUST use the [umee branch](https://github.com/ojo-network/price-feeder/tree/umee). +NOTE: for self building and configuration examples, you MUST use the [umee branch](https://github.com/ojo-network/price-feeder/tree/umee). - Copy the [`price-feeder.toml`](https://github.com/ojo-network/price-feeder/blob/umee/price-feeder.example.toml). - For the provider config you can use our latest [umee-provider-config directory](https://github.com/ojo-network/price-feeder/tree/umee/umee-provider-config) as is. ## Running a node -1. Update the `app.toml`, `client.toml` and `config.toml` based on your preference. You MUST set non-zero min gas prices in `app.toml`. Query `umeed q ugov min-gas-price` to see the what is the minimum acceptable value: +1. Update the `app.toml`, `client.toml` and `config.toml` based on your preference. You MUST set non-zero min gas prices in `app.toml`. Query `umeed q ugov min-gas-price` to see what is the minimum acceptable value: ```toml # your app.toml file @@ -83,4 +85,4 @@ Here are our testnet public endpoints: 3. Buy `uumee` to self delegate. 4. Make sure your Price Feeder is running correctly. If your [mainnet window misses](https://price-feeder.com/) are above 50% then something is wrong. Look for a help on Discord. -We recommend to use [Cosmovisor](./README.md#cosmovisor) for mainnet nodes. +We recommend to use [Cosmovisor](../README.md#cosmovisor) for mainnet nodes. diff --git a/x/uibc/uics20/memo_handler.go b/x/uibc/uics20/memo_handler.go index 07075c9210..d3164628d1 100644 --- a/x/uibc/uics20/memo_handler.go +++ b/x/uibc/uics20/memo_handler.go @@ -186,8 +186,6 @@ func (mh MemoHandler) handleMemoMsg(ctx *sdk.Context, msg sdk.Msg) (err error) { _, err = mh.leverage.Supply(*ctx, msg) case *ltypes.MsgSupplyCollateral: _, err = mh.leverage.SupplyCollateral(*ctx, msg) - case *ltypes.MsgBorrow: - _, err = mh.leverage.Borrow(*ctx, msg) case *ltypes.MsgLiquidate: _, err = mh.leverage.Liquidate(*ctx, msg) default: