From 6fc8030a6c5dd325115e582b3b18afbff161142a Mon Sep 17 00:00:00 2001 From: Andronik Ordian Date: Tue, 5 Jan 2021 18:02:07 +0100 Subject: [PATCH] update changelogs and bump uint (#486) * update changelogs and bump uint * update ethereum-types changelog * update uint changelog * tabs * fixed-hash: bump to 0.7 * bump keccak-hash to 0.6.0 * contract-address: bump keccak-hash to 0.6 * update changelogs after publishing --- contract-address/CHANGELOG.md | 4 +++- contract-address/Cargo.toml | 2 +- ethbloom/CHANGELOG.md | 2 ++ ethbloom/Cargo.toml | 2 +- ethereum-types/CHANGELOG.md | 3 +++ ethereum-types/Cargo.toml | 4 ++-- fixed-hash/CHANGELOG.md | 4 ++++ fixed-hash/Cargo.toml | 2 +- keccak-hash/CHANGELOG.md | 2 ++ keccak-hash/Cargo.toml | 2 +- kvdb-memorydb/CHANGELOG.md | 2 ++ kvdb-rocksdb/CHANGELOG.md | 2 ++ kvdb-web/CHANGELOG.md | 2 ++ kvdb/CHANGELOG.md | 2 ++ parity-crypto/CHANGELOG.md | 3 +++ parity-util-mem/CHANGELOG.md | 3 ++- primitive-types/CHANGELOG.md | 5 +++++ primitive-types/Cargo.toml | 4 ++-- primitive-types/impls/num-traits/CHANGELOG.md | 7 +++++++ primitive-types/impls/num-traits/Cargo.toml | 2 +- primitive-types/impls/rlp/CHANGELOG.md | 2 ++ primitive-types/impls/serde/Cargo.toml | 2 +- rlp/CHANGELOG.md | 2 ++ uint/CHANGELOG.md | 5 +++++ uint/Cargo.toml | 2 +- uint/src/uint.rs | 2 +- 26 files changed, 60 insertions(+), 14 deletions(-) create mode 100644 primitive-types/impls/num-traits/CHANGELOG.md diff --git a/contract-address/CHANGELOG.md b/contract-address/CHANGELOG.md index 20714d132..44a70eb69 100644 --- a/contract-address/CHANGELOG.md +++ b/contract-address/CHANGELOG.md @@ -5,9 +5,11 @@ The format is based on [Keep a Changelog]. [Keep a Changelog]: http://keepachangelog.com/en/1.0.0/ ## [Unreleased] + +## [0.5.0] - 2021-01-05 ### Breaking - Updated `ethereum-types` to 0.10. [#463](https://github.com/paritytech/parity-common/pull/463) -## [0.9.0] - 2020-03-16 +## [0.4.0] - 2020-03-16 - License changed from MIT to dual MIT/Apache2. [#342](https://github.com/paritytech/parity-common/pull/342) - Updated dependencies. [#361](https://github.com/paritytech/parity-common/pull/361) diff --git a/contract-address/Cargo.toml b/contract-address/Cargo.toml index 6754f6d63..81cd433d9 100644 --- a/contract-address/Cargo.toml +++ b/contract-address/Cargo.toml @@ -13,7 +13,7 @@ readme = "README.md" [dependencies] ethereum-types = { version = "0.10.0", path = "../ethereum-types" } rlp = { version = "0.5", path = "../rlp" } -keccak-hash = { version = "0.5", path = "../keccak-hash", default-features = false } +keccak-hash = { version = "0.6", path = "../keccak-hash", default-features = false } [features] default = [] diff --git a/ethbloom/CHANGELOG.md b/ethbloom/CHANGELOG.md index 773f5785e..14cb8a7cb 100644 --- a/ethbloom/CHANGELOG.md +++ b/ethbloom/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog]. [Keep a Changelog]: http://keepachangelog.com/en/1.0.0/ ## [Unreleased] + +## [0.10.0] - 2021-01-05 ### Breaking - Updated `rlp` to 0.5. [#463](https://github.com/paritytech/parity-common/pull/463) diff --git a/ethbloom/Cargo.toml b/ethbloom/Cargo.toml index c8223ecf3..c4a4600c9 100644 --- a/ethbloom/Cargo.toml +++ b/ethbloom/Cargo.toml @@ -12,7 +12,7 @@ edition = "2018" [dependencies] tiny-keccak = { version = "2.0", features = ["keccak"] } crunchy = { version = "0.2.2", default-features = false, features = ["limit_256"] } -fixed-hash = { path = "../fixed-hash", version = "0.6", default-features = false } +fixed-hash = { path = "../fixed-hash", version = "0.7", default-features = false } impl-serde = { path = "../primitive-types/impls/serde", version = "0.3", default-features = false, optional = true } impl-rlp = { path = "../primitive-types/impls/rlp", version = "0.3", default-features = false, optional = true } impl-codec = { version = "0.4.1", path = "../primitive-types/impls/codec", default-features = false, optional = true } diff --git a/ethereum-types/CHANGELOG.md b/ethereum-types/CHANGELOG.md index 19795de50..86d01c3de 100644 --- a/ethereum-types/CHANGELOG.md +++ b/ethereum-types/CHANGELOG.md @@ -5,8 +5,11 @@ The format is based on [Keep a Changelog]. [Keep a Changelog]: http://keepachangelog.com/en/1.0.0/ ## [Unreleased] + +## [0.10.0] - 2021-01-05 ### Breaking - Updated `rlp` to 0.5. [#463](https://github.com/paritytech/parity-common/pull/463) +- Updated `uint` to 0.9. [#486](https://github.com/paritytech/parity-common/pull/486) ## [0.9.2] - 2020-05-18 - Added `codec` feature. [#393](https://github.com/paritytech/parity-common/pull/393) diff --git a/ethereum-types/Cargo.toml b/ethereum-types/Cargo.toml index 544d6fa69..1f9ad0d00 100644 --- a/ethereum-types/Cargo.toml +++ b/ethereum-types/Cargo.toml @@ -9,8 +9,8 @@ edition = "2018" [dependencies] ethbloom = { path = "../ethbloom", version = "0.10", default-features = false } -fixed-hash = { path = "../fixed-hash", version = "0.6", default-features = false, features = ["byteorder", "rustc-hex"] } -uint-crate = { path = "../uint", package = "uint", version = "0.8", default-features = false } +fixed-hash = { path = "../fixed-hash", version = "0.7", default-features = false, features = ["byteorder", "rustc-hex"] } +uint-crate = { path = "../uint", package = "uint", version = "0.9", default-features = false } primitive-types = { path = "../primitive-types", version = "0.8", features = ["byteorder", "rustc-hex"], default-features = false } impl-serde = { path = "../primitive-types/impls/serde", version = "0.3.0", default-features = false, optional = true } impl-rlp = { path = "../primitive-types/impls/rlp", version = "0.3", default-features = false, optional = true } diff --git a/fixed-hash/CHANGELOG.md b/fixed-hash/CHANGELOG.md index 6db7b6e76..b74c4b3e4 100644 --- a/fixed-hash/CHANGELOG.md +++ b/fixed-hash/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog]. ## [Unreleased] +## [0.7.0] - 2021-01-05 +### Breaking +- Updated `rand` to 0.8. [#488](https://github.com/paritytech/parity-common/pull/488) + ## [0.6.1] - 2020-04-27 - Added `arbitrary` feature. [#378](https://github.com/paritytech/parity-common/pull/378) diff --git a/fixed-hash/Cargo.toml b/fixed-hash/Cargo.toml index 5efd9977f..b240745df 100644 --- a/fixed-hash/Cargo.toml +++ b/fixed-hash/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fixed-hash" -version = "0.6.1" +version = "0.7.0" authors = ["Parity Technologies "] license = "MIT OR Apache-2.0" homepage = "https://github.com/paritytech/parity-common" diff --git a/keccak-hash/CHANGELOG.md b/keccak-hash/CHANGELOG.md index 77435e8fd..d702e2348 100644 --- a/keccak-hash/CHANGELOG.md +++ b/keccak-hash/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog]. [Keep a Changelog]: http://keepachangelog.com/en/1.0.0/ ## [Unreleased] + +## [0.6.0] - 2021-01-05 ### Breaking - Updated `primitive-types` to 0.8. [#463](https://github.com/paritytech/parity-common/pull/463) diff --git a/keccak-hash/Cargo.toml b/keccak-hash/Cargo.toml index 54e75b1aa..65ae2c4fd 100644 --- a/keccak-hash/Cargo.toml +++ b/keccak-hash/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "keccak-hash" -version = "0.5.1" +version = "0.6.0" description = "`keccak-hash` is a set of utility functions to facilitate working with Keccak hashes (256/512 bits long)." authors = ["Parity Technologies "] repository = "https://github.com/paritytech/parity-common" diff --git a/kvdb-memorydb/CHANGELOG.md b/kvdb-memorydb/CHANGELOG.md index a74210497..c837385bb 100644 --- a/kvdb-memorydb/CHANGELOG.md +++ b/kvdb-memorydb/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog]. [Keep a Changelog]: http://keepachangelog.com/en/1.0.0/ ## [Unreleased] + +## [0.8.0] - 2021-01-05 ### Breaking - Updated dependencies. [#470](https://github.com/paritytech/parity-common/pull/470) diff --git a/kvdb-rocksdb/CHANGELOG.md b/kvdb-rocksdb/CHANGELOG.md index a2f14fcd7..e90a74a84 100644 --- a/kvdb-rocksdb/CHANGELOG.md +++ b/kvdb-rocksdb/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog]. [Keep a Changelog]: http://keepachangelog.com/en/1.0.0/ ## [Unreleased] + +## [0.10.0] - 2021-01-05 ### Breaking - Updated dependencies. [#470](https://github.com/paritytech/parity-common/pull/470) diff --git a/kvdb-web/CHANGELOG.md b/kvdb-web/CHANGELOG.md index ba028010b..7a494b33e 100644 --- a/kvdb-web/CHANGELOG.md +++ b/kvdb-web/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog]. [Keep a Changelog]: http://keepachangelog.com/en/1.0.0/ ## [Unreleased] + +## [0.8.0] - 2021-01-05 ### Breaking - Updated dependencies. [#470](https://github.com/paritytech/parity-common/pull/470) diff --git a/kvdb/CHANGELOG.md b/kvdb/CHANGELOG.md index 3577a4a82..99d1c52ea 100644 --- a/kvdb/CHANGELOG.md +++ b/kvdb/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog]. [Keep a Changelog]: http://keepachangelog.com/en/1.0.0/ ## [Unreleased] + +## [0.8.0] - 2021-01-05 ### Breaking - Updated `parity-util-mem` to 0.8. [#470](https://github.com/paritytech/parity-common/pull/470) diff --git a/parity-crypto/CHANGELOG.md b/parity-crypto/CHANGELOG.md index 2d8a372c0..33c190d27 100644 --- a/parity-crypto/CHANGELOG.md +++ b/parity-crypto/CHANGELOG.md @@ -5,9 +5,12 @@ The format is based on [Keep a Changelog]. [Keep a Changelog]: http://keepachangelog.com/en/1.0.0/ ## [Unreleased] + +## [0.7.0] - 2021-01-05 ### Breaking - Bump `rust-secp256k1` to v0.19, always allow zero signatures. [#438](https://github.com/paritytech/parity-common/pull/438) - Updated `rlp` to 0.5. [#463](https://github.com/paritytech/parity-common/pull/463) +- Updated dependencies. [#483](https://github.com/paritytech/parity-common/pull/483) - Remove deprecated trait impls `FromStr`/`TryFrom` for `Secret` [#495](https://github.com/paritytech/parity-common/pull/495) ## [0.6.2] - 2020-06-19 diff --git a/parity-util-mem/CHANGELOG.md b/parity-util-mem/CHANGELOG.md index 65d4b0860..dad32580d 100644 --- a/parity-util-mem/CHANGELOG.md +++ b/parity-util-mem/CHANGELOG.md @@ -5,8 +5,9 @@ The format is based on [Keep a Changelog]. [Keep a Changelog]: http://keepachangelog.com/en/1.0.0/ ## [Unreleased] -- Updated dlmalloc to 0.2.1. [#452](https://github.com/paritytech/parity-common/pull/452) +## [0.8.0] - 2021-01-05 +- Updated dlmalloc to 0.2.1. [#452](https://github.com/paritytech/parity-common/pull/452) ### Breaking - Updated `ethereum-types` to 0.10. [#463](https://github.com/paritytech/parity-common/pull/463) - Updated `parking_lot` to 0.11.1. [#470](https://github.com/paritytech/parity-common/pull/470) diff --git a/primitive-types/CHANGELOG.md b/primitive-types/CHANGELOG.md index d78c908d9..23037abf1 100644 --- a/primitive-types/CHANGELOG.md +++ b/primitive-types/CHANGELOG.md @@ -5,7 +5,12 @@ The format is based on [Keep a Changelog]. [Keep a Changelog]: http://keepachangelog.com/en/1.0.0/ ## [Unreleased] + +## [0.8.0] - 2021-01-05 +- Added `num-traits` feature. [#480](https://github.com/paritytech/parity-common/pull/480) +### Breaking - Updated `impl-rlp` to `rlp` 0.5. [#463](https://github.com/paritytech/parity-common/pull/463) +- Updated `uint` to 0.9. [#486](https://github.com/paritytech/parity-common/pull/486) ## [0.7.3] - 2020-11-12 - Added `scale_info` support. [#312](https://github.com/paritytech/parity-common/pull/312) diff --git a/primitive-types/Cargo.toml b/primitive-types/Cargo.toml index 4c691d812..6ffe31e66 100644 --- a/primitive-types/Cargo.toml +++ b/primitive-types/Cargo.toml @@ -8,8 +8,8 @@ description = "Primitive types shared by Ethereum and Substrate" edition = "2018" [dependencies] -fixed-hash = { version = "0.6", path = "../fixed-hash", default-features = false } -uint = { version = "0.8.3", path = "../uint", default-features = false } +fixed-hash = { version = "0.7", path = "../fixed-hash", default-features = false } +uint = { version = "0.9.0", path = "../uint", default-features = false } impl-serde = { version = "0.3.1", path = "impls/serde", default-features = false, optional = true } impl-codec = { version = "0.4.1", path = "impls/codec", default-features = false, optional = true } impl-num-traits = { version = "0.1.0", path = "impls/num-traits", default-features = false, optional = true } diff --git a/primitive-types/impls/num-traits/CHANGELOG.md b/primitive-types/impls/num-traits/CHANGELOG.md new file mode 100644 index 000000000..545cf7dff --- /dev/null +++ b/primitive-types/impls/num-traits/CHANGELOG.md @@ -0,0 +1,7 @@ +# Changelog + +The format is based on [Keep a Changelog]. + +[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/ + +## [Unreleased] diff --git a/primitive-types/impls/num-traits/Cargo.toml b/primitive-types/impls/num-traits/Cargo.toml index 8e0fef9f3..a77774608 100644 --- a/primitive-types/impls/num-traits/Cargo.toml +++ b/primitive-types/impls/num-traits/Cargo.toml @@ -9,4 +9,4 @@ edition = "2018" [dependencies] num-traits = { version = "0.2", default-features = false } -uint = { version = "0.8.5", path = "../../../uint", default-features = false } +uint = { version = "0.9.0", path = "../../../uint", default-features = false } diff --git a/primitive-types/impls/rlp/CHANGELOG.md b/primitive-types/impls/rlp/CHANGELOG.md index 30dab8dfb..749b49f37 100644 --- a/primitive-types/impls/rlp/CHANGELOG.md +++ b/primitive-types/impls/rlp/CHANGELOG.md @@ -5,5 +5,7 @@ The format is based on [Keep a Changelog]. [Keep a Changelog]: http://keepachangelog.com/en/1.0.0/ ## [Unreleased] + +## [0.3.0] - 2021-01-05 ### Breaking - Updated `rlp` to 0.5. [#463](https://github.com/paritytech/parity-common/pull/463) diff --git a/primitive-types/impls/serde/Cargo.toml b/primitive-types/impls/serde/Cargo.toml index a76c0e4d9..e75eeba43 100644 --- a/primitive-types/impls/serde/Cargo.toml +++ b/primitive-types/impls/serde/Cargo.toml @@ -18,7 +18,7 @@ serde = { version = "1.0.101", default-features = false, features = ["alloc"] } criterion = "0.3.0" serde_derive = "1.0.101" serde_json = "1.0.41" -uint = { version = "0.8.3", path = "../../../uint" } +uint = { version = "0.9.0", path = "../../../uint" } [[bench]] name = "impl_serde" diff --git a/rlp/CHANGELOG.md b/rlp/CHANGELOG.md index 4f25e9b9e..afd84d95c 100644 --- a/rlp/CHANGELOG.md +++ b/rlp/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog]. [Keep a Changelog]: http://keepachangelog.com/en/1.0.0/ ## [Unreleased] + +## [0.5.0] - 2021-01-05 ### Breaking - Use BytesMut for `RlpStream`'s backing buffer. [#453](https://github.com/paritytech/parity-common/pull/453) diff --git a/uint/CHANGELOG.md b/uint/CHANGELOG.md index b856d52fc..3e3ddad3f 100644 --- a/uint/CHANGELOG.md +++ b/uint/CHANGELOG.md @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog]. ## [Unreleased] +## [0.9.0] - 2021-01-05 +- Allow `0x` prefix in `from_str`. [#487](https://github.com/paritytech/parity-common/pull/487) +### Breaking +- Optimized FromStr, made it no_std-compatible. [#468](https://github.com/paritytech/parity-common/pull/468) + ## [0.8.5] - 2020-08-12 - Make const matching work again. [#421](https://github.com/paritytech/parity-common/pull/421) diff --git a/uint/Cargo.toml b/uint/Cargo.toml index ca650e72e..1781456b4 100644 --- a/uint/Cargo.toml +++ b/uint/Cargo.toml @@ -4,7 +4,7 @@ homepage = "http://parity.io" repository = "https://github.com/paritytech/parity-common" license = "MIT OR Apache-2.0" name = "uint" -version = "0.8.5" +version = "0.9.0" authors = ["Parity Technologies "] readme = "README.md" edition = "2018" diff --git a/uint/src/uint.rs b/uint/src/uint.rs index 27bd0be96..702e59e86 100644 --- a/uint/src/uint.rs +++ b/uint/src/uint.rs @@ -1688,7 +1688,7 @@ macro_rules! construct_uint { type Err = $crate::FromHexError; fn from_str(value: &str) -> $crate::core_::result::Result<$name, Self::Err> { - let value = value.strip_prefix("0x").unwrap_or(value); + let value = value.strip_prefix("0x").unwrap_or(value); const BYTES_LEN: usize = $n_words * 8; const MAX_ENCODED_LEN: usize = BYTES_LEN * 2;