Skip to content

Commit

Permalink
Prepare v2.0.4 release (#200)
Browse files Browse the repository at this point in the history
* - remove obsolete migration code
- bump contracts version to v2.0.4
- generate changelog for new version
- recompile contracts, regenerate schema

* remove old migration files
  • Loading branch information
dusan-maksimovic authored Dec 9, 2024
1 parent c67cad3 commit 354c254
Show file tree
Hide file tree
Showing 23 changed files with 39 additions and 1,191 deletions.
2 changes: 2 additions & 0 deletions .changelog/v2.0.4/bug-fixes/200-remove-migration-to-v2.0.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Remove contracts migration code from version v1.1.x to version v2.0.2 and bump contracts version to v2.0.4.
([\#200](https://github.com/informalsystems/hydro/pull/200))
1 change: 1 addition & 0 deletions .changelog/v2.0.4/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Date: December 9th, 2024
9 changes: 9 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# CHANGELOG

## v2.0.4

Date: December 9th, 2024

### BUG FIXES

- Remove contracts migration code from version v1.1.x to version v2.0.2 and bump contracts version to v2.0.4.
([\#200](https://github.com/informalsystems/hydro/pull/200))

## v2.0.3

Date: December 9th, 2024
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions artifacts/checksums.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
984fa9abc8f2b8463b19a1a58efdb0deb2934e9b36d0036c5f47331a978156f3 hydro.wasm
03b0d7c99f9e3e53f86fdc3ab42e230ff113e41d007e06be54c74b0b799d376b tribute.wasm
a6776a5163a701a20bd789f331e781d013755ebfc985aabf9b0306dcc106cd65 hydro.wasm
c6766be58bfc7bd482e5c9e8fbdac3dfa29ee8eeebedd782e4ed49bb3f26a4ff tribute.wasm
Binary file modified artifacts/hydro.wasm
Binary file not shown.
Binary file modified artifacts/tribute.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion contracts/hydro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hydro"
version = "2.0.2"
version = "2.0.4"
authors = ["Jehan Tremback", "Philip Offtermatt", "Dusan Maksimovic"]
edition = "2018"

Expand Down
10 changes: 3 additions & 7 deletions contracts/hydro/src/migration/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ use cw2::{get_contract_version, set_contract_version};
use neutron_sdk::bindings::msg::NeutronMsg;
use neutron_sdk::bindings::query::NeutronQuery;

use super::v2_0_1::{migrate_v1_1_0_to_v2_0_1, MigrateMsgV2_0_1};
use super::v2_0_4::MigrateMsgV2_0_4;

pub const CONTRACT_VERSION_V1_1_0: &str = "1.1.0";
pub const CONTRACT_VERSION_V2_0_1: &str = "2.0.1";
pub const CONTRACT_VERSION_V2_0_2: &str = "2.0.2";

#[cfg_attr(not(feature = "library"), entry_point)]
pub fn migrate(
mut deps: DepsMut<NeutronQuery>,
deps: DepsMut<NeutronQuery>,
_env: Env,
msg: MigrateMsgV2_0_1,
_msg: MigrateMsgV2_0_4,
) -> Result<Response<NeutronMsg>, ContractError> {
let contract_version = get_contract_version(deps.storage)?;

Expand All @@ -27,10 +27,6 @@ pub fn migrate(
)));
}

if contract_version.version == CONTRACT_VERSION_V1_1_0 {
migrate_v1_1_0_to_v2_0_1(&mut deps, msg)?;
}

set_contract_version(deps.storage, CONTRACT_NAME, CONTRACT_VERSION)?;

Ok(Response::default())
Expand Down
6 changes: 1 addition & 5 deletions contracts/hydro/src/migration/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
pub mod migrate;
pub mod v1_1_0;
pub mod v2_0_1;

#[cfg(test)]
mod testing_v1_1_0_to_v2_0_1;
pub mod v2_0_4;
Loading

0 comments on commit 354c254

Please sign in to comment.