Skip to content

Commit

Permalink
Remove KV
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Sep 8, 2021
1 parent d8996fb commit 418e445
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to

- cosmwasm-std: Remove `HumanAddr` (deprecated since 0.14). Use `String`
instead.
- cosmwasm-std: Remove `KV` (deprecated since 0.14). Use `Pair` instead.

## [0.16.2] - 2021-09-07

Expand Down
5 changes: 0 additions & 5 deletions packages/std/src/iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ use std::convert::TryFrom;
/// A Key-Value pair, returned from our iterators
pub type Pair<V = Vec<u8>> = (Vec<u8>, V);

/// KV is a Key-Value pair, returned from our iterators
#[deprecated(since = "0.14.0", note = "Renamed to Pair")]
#[allow(clippy::upper_case_acronyms)]
pub type KV<V = Vec<u8>> = Pair<V>;

#[derive(Copy, Clone)]
// We assign these to integers to provide a stable API for passing over FFI (to wasm and Go)
pub enum Order {
Expand Down
3 changes: 1 addition & 2 deletions packages/std/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ pub use crate::ibc::{
IbcPacketReceiveMsg, IbcPacketTimeoutMsg, IbcReceiveResponse, IbcTimeout, IbcTimeoutBlock,
};
#[cfg(feature = "iterator")]
#[allow(deprecated)]
pub use crate::iterator::{Order, Pair, KV};
pub use crate::iterator::{Order, Pair};
pub use crate::math::{Decimal, Decimal256, Fraction, Uint128, Uint256, Uint512, Uint64};
pub use crate::query::{
AllBalanceResponse, BalanceResponse, BankQuery, CustomQuery, QueryRequest, WasmQuery,
Expand Down

0 comments on commit 418e445

Please sign in to comment.