forked from informalsystems/tendermint-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decouple tendermint-rpc from tendermint-proto (informalsystems#1234)
* rpc: remove use of tendermint_proto::serializers Import tendermint::serializers instead. This removes almost all need to depend on tendermint_proto directly. * Rename merkle::Proof to merkle::ProofOps The protobuf message name is actually ProofOps, and the crypto package also defines Proof, for which we now want to have a domain type. * tendermint: add domain type merkle::Proof Corresponds to the protobuf message crypto.Proof. * tendermint: mod tx and domain type tx::Proof Corresponds to protobuf types.TxProof * rpc: Change /tx response field type to tx::Proof Thus removing the last direct use of tendermint_proto. * rpc: remove dependency on tendermint-proto * tendermint: slap some doc on tx::Proof * Changelog entries for informalsystems#1234
- Loading branch information
Showing
19 changed files
with
147 additions
and
37 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
.changelog/unreleased/breaking-changes/1234-decouple-rpc-from-proto.md
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,5 @@ | ||
- `[tendermint]` Rename `merkle::proof::Proof` to `ProofOps` | ||
([#1234](https://github.com/informalsystems/tendermint-rs/pull/1234)) | ||
- `[tendermint-rpc]` Change the type of `/tx` response field `proof` | ||
to `tendermint::tx::Proof` | ||
([#1233](https://github.com/informalsystems/tendermint-rs/issues/1233)) |
3 changes: 3 additions & 0 deletions
3
.changelog/unreleased/improvements/1234-decouple-rpc-from-proto.md
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,3 @@ | ||
- `[tendermint]` Add domain types `merkle::Proof` and `tx::Proof`, | ||
to represent protobuf messages `crypto.Proof` and `types.TxProof` respectively | ||
([#1234](https://github.com/informalsystems/tendermint-rs/pull/1234)) |
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
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 |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
pub mod proof; | ||
|
||
pub use proof::Proof; | ||
|
||
use sha2::{Digest, Sha256}; | ||
|
||
use crate::prelude::*; | ||
|
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mod proof; | ||
|
||
pub use proof::Proof; |
Oops, something went wrong.