Skip to content

Commit 6dd3c64

Browse files
feat: detach client state verifier enabling users to implement custom verifier (#1097)
* Add empty Verifier trait stub * Remove verifier field from ClientState * Implement TmVerifier for ClientState * Move ClientState trait methods into being standalone functions * Fix some typos * Remove unused fn param on update_client_state_on_misbehaviour * Call standalone functions in trait implementations * Move update_client and misbehaviour methods out of the ClientState impl * Define `DefaultVerifier` type * Replace `ClientState` fn params with `ClientStateType` * Migrate ClientState::initialise function param back to ClientState * Change some associated type constraints * Change From<TmConsensusState> constraint to From<ConsensusStateType> * impl From<ConsensusStateType> for AnyConsensusState * impl some Displays when use-substrate feature is not enabled * Remove unused displaydoc use statement * Revert "Remove unused displaydoc use statement" This reverts commit 92e8e36. * Revert "impl some Displays when use-substrate feature is not enabled" This reverts commit 083399c. * Add docstring comment illustrating how to implement a custom verifier * Ad unclog entry * fix: set NIGHTLY_VERSION=nightly-2024-02-24 * imp: reorganize client_state.rs + clean-ups * nit --------- Co-authored-by: Farhad Shabani <farhad.shabani@gmail.com>
1 parent e048e34 commit 6dd3c64

File tree

15 files changed

+1131
-790
lines changed

15 files changed

+1131
-790
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- [ibc-client-tendermint] Detach client state verifier such that users have a
2+
way to utilize custom verifiers
3+
([\#1097](https://github.com/cosmos/ibc-rs/pull/1097))

.github/workflows/no-std.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- uses: actions/checkout@v2
4949
- uses: actions-rs/toolchain@v1
5050
with:
51-
toolchain: nightly
51+
toolchain: nightly-2024-02-24
5252
target: wasm32-unknown-unknown
5353
override: true
5454
- run: |

ci/no-std-check/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
NIGHTLY_VERSION=nightly
1+
NIGHTLY_VERSION=nightly-2024-02-24
22

33
.DEFAULT_GOAL := help
44

ibc-clients/ics07-tendermint/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ all-features = true
1818

1919
[dependencies]
2020
# external dependencies
21-
serde = { workspace = true, optional = true }
21+
derive_more = { workspace = true }
22+
serde = { workspace = true, optional = true }
2223

2324
# ibc dependencies
2425
ibc-client-tendermint-types = { workspace = true }

0 commit comments

Comments
 (0)