-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make `ClientType` allow any string value (#189) * ClientType now wraps a str * Make ClientType accept any string * doctest * changelog * use client_type() fn instead of constant * use client_type() for mock * release v0.21.0 (#192) * release v0.21.0 * version bumped to 0.21.0 * contributing edit * Update .changelog/v0.21.0/summary.md Co-authored-by: Romain Ruetschi <romain@informal.systems> Signed-off-by: Philippe Laferrière <plafer@protonmail.com> * Update CHANGELOG.md Co-authored-by: Romain Ruetschi <romain@informal.systems> Signed-off-by: Philippe Laferrière <plafer@protonmail.com> Signed-off-by: Philippe Laferrière <plafer@protonmail.com> Co-authored-by: Romain Ruetschi <romain@informal.systems> Signed-off-by: Philippe Laferrière <plafer@protonmail.com> Co-authored-by: Romain Ruetschi <romain@informal.systems>
- Loading branch information
Showing
25 changed files
with
161 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Make ClientType allow any string value as opposed to just Tendermint | ||
([#188](https://github.com/cosmos/ibc-rs/issues/188)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This is a small release that allows new `ClientTypes` to be created, which was missed when implementing ADR 4. The changes are not consensus-breaking. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
//! ICS 07: Tendermint Client implements a client verification algorithm for blockchains which use | ||
//! the Tendermint consensus algorithm. | ||
use crate::core::ics02_client::client_type::ClientType; | ||
|
||
pub mod client_state; | ||
pub mod consensus_state; | ||
pub mod error; | ||
pub mod header; | ||
pub mod misbehaviour; | ||
|
||
pub(crate) const TENDERMINT_CLIENT_TYPE: &str = "07-tendermint"; | ||
|
||
pub fn client_type() -> ClientType { | ||
ClientType::new(TENDERMINT_CLIENT_TYPE) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.