Skip to content

Commit 046901f

Browse files
feat: restructure mock module and separate its codebase into a new crate (#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]>
1 parent 527bb14 commit 046901f

File tree

164 files changed

+7829
-7310
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+7829
-7310
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- Restructure the mock module implementation and separate its codebase into a
2+
new crate named `ibc-testkit`
3+
([\#954](https://github.com/cosmos/ibc-rs/issues/953))
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Remove the default value and implementation for `PortId`
2+
([\#951](https://github.com/cosmos/ibc-rs/issues/951))
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Expose domain message types under the `ics04_channel` as public
2+
([\#952](https://github.com/cosmos/ibc-rs/issues/952))

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ target/
1414
# Ignore VisualStudio
1515
.vscode
1616

17-
# Ignore chain's data
18-
data
19-
2017
# Ignore Python artifacts
2118
.mypy_cache/
2219
__pycache__/

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ resolver = "2"
55
members = [
66
"crates/ibc",
77
"crates/ibc-derive",
8+
"crates/ibc-testkit",
89
"crates/ibc-query",
910
]
1011

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ the `ibc` rust crate which defines the main data structures and on-chain logic f
2929
## Libraries
3030

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

3738
## Contributing
3839

0 commit comments

Comments
 (0)