Skip to content

Commit

Permalink
feat: restructure mock module and separate its codebase into a new cr…
Browse files Browse the repository at this point in the history
…ate (#954)

* imp: separate mock module into a dedicated crate

* fix: clippy, fmt, no-std

* imp: restructure second iteration

* chore: add unclogs + update READMEs

* deps: bump typed-builder

* fix: move client_ctx under core

* fix: cargo fmt

* fix: remove tracing dep from ibc

* deps: remove parking_lot from ibc

* deps: remove num-traits from ibc

* fix: apply suggestions from code review

Co-authored-by: Rano | Ranadeep <[email protected]>
Signed-off-by: Farhad Shabani <[email protected]>

* nit: apply feedback

* fix: introduce with_current_timestamp()

* fix: cargo test

* imp: move test_utils.rs into utils

* imp: move test-utils + mock into the ibc-testkit

* imp: add deny attr for tests

* chore: cleanups

* chore: add comment for ibc dep in ibc-testkit

* chore: adjust paths for types imported from ibc_testkit::utils

* chore: move tendermint::client_state::test_utils under the tests module

* imp: replace json files under the src/data dir

* chore: replace data/json under tests

* imp: use concat! for paths

---------

Signed-off-by: Farhad Shabani <[email protected]>
Co-authored-by: Rano | Ranadeep <[email protected]>
  • Loading branch information
Farhad-Shabani and rnbguy authored Nov 10, 2023
1 parent 5a019b7 commit 7afdbe1
Show file tree
Hide file tree
Showing 164 changed files with 7,829 additions and 7,310 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Restructure the mock module implementation and separate its codebase into a
new crate named `ibc-testkit`
([\#954](https://github.com/cosmos/ibc-rs/issues/953))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Remove the default value and implementation for `PortId`
([\#951](https://github.com/cosmos/ibc-rs/issues/951))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Expose domain message types under the `ics04_channel` as public
([\#952](https://github.com/cosmos/ibc-rs/issues/952))
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ target/
# Ignore VisualStudio
.vscode

# Ignore chain's data
data

# Ignore Python artifacts
.mypy_cache/
__pycache__/
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resolver = "2"
members = [
"crates/ibc",
"crates/ibc-derive",
"crates/ibc-testkit",
"crates/ibc-query",
]

Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ the `ibc` rust crate which defines the main data structures and on-chain logic f
## Libraries

- [ibc](crates/ibc/README.md) - Data structures and on-chain logic for the IBC protocol.
- [ibc-query](crates/ibc-query/README.md) - Utility traits and implementations for querying the
state of an `ibc-rs` enabled chain.
- [ibc-derive](crates/ibc-derive/README.md) - Derive macros for `ClientState`
and `ConsensusState` traits, reducing boilerplate.
- [ibc-testkit](crates/ibc-testkit/README.md) - Testing toolkit to aid `ibc-rs` and host chains in writing integration tests.
- [ibc-query](crates/ibc-query/README.md) - Utility traits and implementations for querying the
state of an `ibc-rs` enabled chain.

## Contributing

Expand Down
Loading

0 comments on commit 7afdbe1

Please sign in to comment.