Skip to content

Commit 2933437

Browse files
authored
Introduce hermes-prelude as a proxy crate for cgp::prelude (#600)
* Introduce hermes-prelude crate * Use hermes_prelude instead of cgp::prelude * Re-export cgp_async::async_trait explicitly
1 parent 5559f37 commit 2933437

File tree

922 files changed

+1016
-902
lines changed

Some content is hidden

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

922 files changed

+1016
-902
lines changed

Cargo.lock

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
resolver = "2"
44

55
members = [
6+
"crates/prelude",
67
"crates/core",
78

89
"crates/chain/chain-components",
@@ -89,6 +90,7 @@ tendermint-light-client = { version = "0.40" }
8990
basecoin = { version = "0.2.0" }
9091
bitcoin = { version = "0.31.2" }
9192
cgp = { version = "0.4.0", default-features = false }
93+
cgp-async = { version = "0.4.0" }
9294
clap = { version = "4.5.20" }
9395
dirs-next = { version = "2.0.0" }
9496
num-bigint = { version = "0.4" }
@@ -127,7 +129,8 @@ sha2 = { version = "0.10.8" }
127129
secp256k1 = { version = "0.28.2" }
128130
ics23 = { version = "0.12" }
129131

130-
hermes-core = { version = "0.1.0" }
132+
hermes-core = { version = "0.1.0" }
133+
hermes-prelude = { version = "0.1.0" }
131134

132135
hermes-runtime-components = { version = "0.1.0" }
133136
hermes-async-runtime-components = { version = "0.1.0" }
@@ -200,7 +203,8 @@ cgp-runtime = { git = "https://github.com/contextgeneric/cgp.git" }
200203
cgp-sync = { git = "https://github.com/contextgeneric/cgp.git" }
201204
cgp-inner = { git = "https://github.com/contextgeneric/cgp.git" }
202205

203-
hermes-core = { path = "./crates/core" }
206+
hermes-core = { path = "./crates/core" }
207+
hermes-prelude = { path = "./crates/prelude" }
204208

205209
hermes-chain-components = { path = "./crates/chain/chain-components" }
206210
hermes-chain-type-components = { path = "./crates/chain/chain-type-components" }

crates/any/any-counterparty/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ hermes-cosmos-chain-preset = { workspace = true }
2222
hermes-encoding-components = { workspace = true }
2323
hermes-protobuf-encoding-components = { workspace = true }
2424

25-
cgp = { workspace = true }
26-
ibc = { workspace = true }
27-
serde = { workspace = true, features = [ "derive" ] }
25+
cgp = { workspace = true }
26+
hermes-prelude = { workspace = true }
27+
ibc = { workspace = true }
28+
serde = { workspace = true, features = [ "derive" ] }

crates/any/any-counterparty/src/contexts/any_counterparty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use cgp::core::component::UseDelegate;
22
use cgp::core::error::{ErrorRaiserComponent, ErrorTypeProviderComponent};
3-
use cgp::prelude::*;
43
use hermes_cosmos_chain_components::encoding::CosmosClientEncodingComponents;
54
use hermes_cosmos_chain_components::impls::ProvideCosmosChainTypes;
65
use hermes_cosmos_chain_components::types::TendermintClientState;
@@ -16,6 +15,7 @@ pub use hermes_encoding_components::traits::{SchemaGetterComponent, SchemaTypeCo
1615
use hermes_encoding_components::types::AsBytes;
1716
use hermes_error::handlers::DebugError;
1817
use hermes_error::impls::UseHermesError;
18+
use hermes_prelude::*;
1919
use hermes_protobuf_encoding_components::traits::EncodedLengthGetterComponent;
2020
use hermes_protobuf_encoding_components::types::any::Any;
2121
use hermes_protobuf_encoding_components::types::strategy::ViaProtobuf;

0 commit comments

Comments
 (0)