Skip to content

Commit

Permalink
Add note in MIGRATING.md file about breaking changes to cw3-fixed-mul…
Browse files Browse the repository at this point in the history
…tisig instantiate message
  • Loading branch information
ueco-jb committed Dec 22, 2021
1 parent 8c843cb commit 090ccdd
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ index b4852225..f20a65ec 100644
+use utils::Expiration;
```

---

- Deprecate `range` to `range_raw` [\#460](https://github.com/CosmWasm/cw-plus/issues/460) /
`range` to `range raw` [\#576](https://github.com/CosmWasm/cw-plus/pull/576).

Expand Down Expand Up @@ -62,6 +64,8 @@ not only not be deserialized, but also not provided. This is for backwards-compa
specifications, and may change in the future once these features are stabilized.
See `packages/storage-plus/src/indexed_map.rs` tests for reference.

---

Renamed methods:
- `range` -> `range_raw`
- `keys` -> `keys_raw`
Expand All @@ -72,6 +76,8 @@ Renamed methods:

Finally, this applies to all the `Map`-like types, including indexed maps.

---

- `UniqueIndex` / `MultiIndex` key consistency [\#532](https://github.com/CosmWasm/cw-plus/issues/532) /
Index keys consistency [\#568](https://github.com/CosmWasm/cw-plus/pull/568)

Expand Down Expand Up @@ -134,6 +140,8 @@ index 9f7178af..d11d501e 100644
assert_eq!(data1, marias[0].1);
```

---

- Remove the primary key from the `MultiIndex` key specification [\#533](https://github.com/CosmWasm/cw-plus/issues/533) /
`MultiIndex` primary key spec removal [\#569](https://github.com/CosmWasm/cw-plus/pull/569)

Expand Down Expand Up @@ -183,6 +191,8 @@ index 022a4504..c7a3bb9d 100644
let count = map
```

---

- Incorrect I32Key Index Ordering [\#489](https://github.com/CosmWasm/cw-plus/issues/489) /
Signed int keys order [\#582](https://github.com/CosmWasm/cw-plus/pull/582)

Expand Down Expand Up @@ -227,6 +237,23 @@ pub fn migrate(deps: DepsMut, _env: Env, _msg: MigrateMsg) -> Result<Response, C
}
```

---

- `cw3-fixed-multisig` requires threshold during instantiation instead of `required_weight` parameter

`Threshold` type was moved to `packages/utils` along with surrounding implementations like `ThresholdResponse` etc.

```diff
use utils::Threshold;

pub struct InstantiateMsg {
pub voters: Vec<Voter>,
- pub required_weight: u64,
+ pub threshold: Threshold,
pub max_voting_period: Duration,
}
```

### Non-breaking Issues / PRs

- Deprecate `IntKey` [\#472](https://github.com/CosmWasm/cw-plus/issues/472) /
Expand Down

0 comments on commit 090ccdd

Please sign in to comment.