From c7c56cf5b81d3c638ddb5789d687d739ed6a66c5 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Wed, 11 Dec 2019 17:27:10 -0500 Subject: [PATCH 1/7] changelog --- CHANGES.md | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 87 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 39426a1e3..ac8e49f49 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,62 @@ + +## [0.11.0] (2019-12-11) + +This is the first release since this repository was split off +from the [KMS](https://github.com/tendermint/kms) repo a few months +ago and contains more than the usual number of changes. +As the new repository matures we will be working towards a more robust +release cycle. + +This release also contains a first draft of the Tendermint Light Client :). + +The changes are organized in sections for better readability. + +Organizatinoal Changes: + +- Reorganized the crate into a workspace with a `tendermint` crate ([#30]) +- Remove all optional compilation ([#16]) +- Started using CircleCI for continuous integration ([#15]) +- Fix clippy lints ([#40], [#55]) + +RPC Changes: + +- Fix `/commit` endpoint to actually include the commit data ([#42]) +- Use async/await for the rpc client ([#85]) + +Type Changes: + +- Add `Default` trait impls and some other utilities to data types ([#64]) +- Fix transaction hash length to be 32-bytes ([#14]) +- Rename `LastCommit` to `Commit` ([#42]) +- Fix genesis file to include `validators` field ([#65]) +- Change `max_gas` from `u64` to `i64` ([#61]) +- Allow `Height` to be `0` ([#77]) + +ABCI Changes: + +- Include `AbciQuery` in the `Method` enum ([#AbciQueryMethodEnum]) +- Fix deserializing ABCI Code field ([#13]) +- Fix ABCI data field to allow lower case hex encodings ([#17]) +- Fix `/abci_query` endpoint to take input `data` as hex and return `key` + and `value` in the response as base64 ([#77]) + +Light Client: + +- Introduce validator `Set` type and compute Merkle root ([#6]) +- First draft implementation of logic for the light client ([#31, #36]) + +- Dependency Changes: + +- Remove `secret_connection` and `ring` as dependencies (moved to KMS repo) + ([#60]) +- `tai64` from `2` to `3` ([#22]) +- `zeroize` from `0.9` to `1.1` ([#74, #89]) +- `hyper` from `0.10` to `0.13` ([#85]) +- `signatory` from `0.12` to `0.17` ([#89]) +- `subtle-encoding` from `0.3` to `0.5` ([#47]) +- replace `rand_os` with `getrandome` ([#90]) +- pin to `ed25519-dalek` `1.0.0-pre.3` ([#83]) + ## [0.10.0] (2019-07-30) This release is tested against [tendermint v0.31] and known to be compatible @@ -127,4 +186,31 @@ This release is compatible with [tendermint v0.28] [#205]: https://github.com/tendermint/kms/pull/219 [#181]: https://github.com/tendermint/kms/pull/181 [tendermint v0.29]: https://github.com/tendermint/tendermint/blob/master/CHANGELOG.md#v0290 -[tendermint v0.28]: https://github.com/tendermint/tendermint/blob/master/CHANGELOG.md#v0280 +[tendermint v0.28]: https://github.com/tendermint/tendermint/blob/master/CHANGELOG.md#v0280 +[#30]: https://github.com/interchainio/tendermint-rs/pull/30 +[#16]: https://github.com/interchainio/tendermint-rs/pull/16 +[#15]: https://github.com/interchainio/tendermint-rs/pull/15 +[#40]: https://github.com/interchainio/tendermint-rs/pull/40 +[#55]: https://github.com/interchainio/tendermint-rs/pull/55 +[#85]: https://github.com/interchainio/tendermint-rs/pull/85 +[#64]: https://github.com/interchainio/tendermint-rs/pull/64 +[#14]: https://github.com/interchainio/tendermint-rs/pull/14 +[#42]: https://github.com/interchainio/tendermint-rs/pull/42 +[#65]: https://github.com/interchainio/tendermint-rs/pull/65 +[#61]: https://github.com/interchainio/tendermint-rs/pull/61 +[#AbciQueryMethodEnum]: +https://github.com/interchainio/tendermint-rs/commit/566dfb6a9ef9659a504b43fb8ccb5c5e7969e3a0 +[#13]: https://github.com/interchainio/tendermint-rs/pull/13 +[#17]: https://github.com/interchainio/tendermint-rs/pull/17 +[#77]: https://github.com/interchainio/tendermint-rs/pull/77 +[#6]: https://github.com/interchainio/tendermint-rs/pull/6 +[#31]: https://github.com/interchainio/tendermint-rs/pull/31 +[#36]: https://github.com/interchainio/tendermint-rs/pull/36 +[#60]: https://github.com/interchainio/tendermint-rs/pull/60 +[#22]: https://github.com/interchainio/tendermint-rs/pull/22 +[#74]: https://github.com/interchainio/tendermint-rs/pull/74 +[#89]: https://github.com/interchainio/tendermint-rs/pull/89 +[#47]: https://github.com/interchainio/tendermint-rs/pull/47 +[#90]: https://github.com/interchainio/tendermint-rs/pull/90 +[#83]: https://github.com/interchainio/tendermint-rs/pull/83 + From f863381c68b444bc87ba57017a6a2372fb2ab069 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Wed, 11 Dec 2019 17:31:58 -0500 Subject: [PATCH 2/7] bump version to 0.11.0 --- tendermint/Cargo.toml | 2 +- tendermint/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tendermint/Cargo.toml b/tendermint/Cargo.toml index 7e6d2442d..84ff1c975 100644 --- a/tendermint/Cargo.toml +++ b/tendermint/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tendermint" -version = "0.10.0" # Also update `html_root_url` in lib.rs when bumping this +version = "0.11.0" # Also update `html_root_url` in lib.rs when bumping this license = "Apache-2.0" homepage = "https://www.tendermint.com/" repository = "https://github.com/tendermint/kms/tree/master/crates/tendermint" diff --git a/tendermint/src/lib.rs b/tendermint/src/lib.rs index f4da538bc..5edfdc293 100644 --- a/tendermint/src/lib.rs +++ b/tendermint/src/lib.rs @@ -15,7 +15,7 @@ #![forbid(unsafe_code)] #![doc( html_logo_url = "https://raw.githubusercontent.com/tendermint/kms/master/img/tendermint.png", - html_root_url = "https://docs.rs/tendermint/0.10.0" + html_root_url = "https://docs.rs/tendermint/0.11.0" )] // NOTE(EB): can't figure out how to easily remove the extern crate per Rust2018 upgrade ... From e54a3fc0ff1f0673057bc1c259fc91086078e01e Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Wed, 11 Dec 2019 17:40:38 -0500 Subject: [PATCH 3/7] changelog --- CHANGES.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index ac8e49f49..7c3f2c60a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -54,6 +54,7 @@ Light Client: - `hyper` from `0.10` to `0.13` ([#85]) - `signatory` from `0.12` to `0.17` ([#89]) - `subtle-encoding` from `0.3` to `0.5` ([#47]) +- `uuid` from `0.7` to `0.8` ([#91]) - replace `rand_os` with `getrandome` ([#90]) - pin to `ed25519-dalek` `1.0.0-pre.3` ([#83]) @@ -213,4 +214,5 @@ https://github.com/interchainio/tendermint-rs/commit/566dfb6a9ef9659a504b43fb8cc [#47]: https://github.com/interchainio/tendermint-rs/pull/47 [#90]: https://github.com/interchainio/tendermint-rs/pull/90 [#83]: https://github.com/interchainio/tendermint-rs/pull/83 +[#91]: https://github.com/interchainio/tendermint-rs/pull/91 From ecdc9137c3a0345119ef7458346ff9b125927da2 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Wed, 11 Dec 2019 17:42:16 -0500 Subject: [PATCH 4/7] .github/PULL_REQUEST_TEMPLATE.md --- .github/PULL_REQUEST_TEMPLATE.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 000000000..f19f6d1bb --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,13 @@ + + +* [ ] Referenced an issue explaining the need for the change +* [ ] Updated all relevant documentation in docs +* [ ] Updated all code comments where relevant +* [ ] Wrote tests +* [ ] Updated CHANGES.md From c460b7a46069f32c8542a1b79d5abf3e1d08311b Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Wed, 11 Dec 2019 18:12:11 -0500 Subject: [PATCH 5/7] Update CHANGES.md Co-Authored-By: Ismail Khoffi --- CHANGES.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 7c3f2c60a..ea095596c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -55,7 +55,7 @@ Light Client: - `signatory` from `0.12` to `0.17` ([#89]) - `subtle-encoding` from `0.3` to `0.5` ([#47]) - `uuid` from `0.7` to `0.8` ([#91]) -- replace `rand_os` with `getrandome` ([#90]) +- replace `rand_os` with `getrandom` ([#90]) - pin to `ed25519-dalek` `1.0.0-pre.3` ([#83]) ## [0.10.0] (2019-07-30) @@ -215,4 +215,3 @@ https://github.com/interchainio/tendermint-rs/commit/566dfb6a9ef9659a504b43fb8cc [#90]: https://github.com/interchainio/tendermint-rs/pull/90 [#83]: https://github.com/interchainio/tendermint-rs/pull/83 [#91]: https://github.com/interchainio/tendermint-rs/pull/91 - From c0acc2c58c5bf880d3142962fdade0b5f70bb1ea Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Wed, 11 Dec 2019 18:12:22 -0500 Subject: [PATCH 6/7] Update tendermint/Cargo.toml Co-Authored-By: Ismail Khoffi --- tendermint/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tendermint/Cargo.toml b/tendermint/Cargo.toml index a291d544e..21290690d 100644 --- a/tendermint/Cargo.toml +++ b/tendermint/Cargo.toml @@ -3,7 +3,7 @@ name = "tendermint" version = "0.11.0" # Also update `html_root_url` in lib.rs when bumping this license = "Apache-2.0" homepage = "https://www.tendermint.com/" -repository = "https://github.com/tendermint/kms/tree/master/crates/tendermint" +repository = "https://github.com/interchainio/tendermint-rs/tree/master/tendermint" readme = "README.md" categories = ["cryptography", "database"] keywords = ["blockchain", "bft", "consensus", "cosmos", "tendermint"] From 0af84ae00c3d47314275b18ae6edf3e8a5fd9d8d Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Wed, 11 Dec 2019 18:23:06 -0500 Subject: [PATCH 7/7] fix CHANGES.md --- CHANGES.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 7c3f2c60a..fdf8353a0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -56,7 +56,6 @@ Light Client: - `subtle-encoding` from `0.3` to `0.5` ([#47]) - `uuid` from `0.7` to `0.8` ([#91]) - replace `rand_os` with `getrandome` ([#90]) -- pin to `ed25519-dalek` `1.0.0-pre.3` ([#83]) ## [0.10.0] (2019-07-30)