Skip to content

Commit 3d1a197

Browse files
authored
[chore] Refactor crates for publishing (#937)
1 parent 8439373 commit 3d1a197

22 files changed

Lines changed: 91 additions & 45 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dist/
1717
evm/out/
1818
evm/cache/
1919
evm/broadcast/
20+
evm/lib/forge-std/
2021
evm/integration-tests/target/
2122
evm/foundry.lock
2223

Cargo.lock

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

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ members = [
9292
"modules/utils/subxt",
9393
"modules/utils/serde",
9494
"modules/utils/crypto",
95+
"modules/utils/bls-utils",
9596

9697
# tesseract
9798
"tesseract/messaging/primitives",
@@ -252,6 +253,7 @@ ibc-proto = { version = "0.52.0", default-features = false, package = "ibc-proto
252253
ismp = { version = "2512.1.0", path = "./modules/ismp/core", default-features = false }
253254
serde-hex-utils = { version = "0.2.0", path = "modules/utils/serde", default-features = false }
254255
crypto-utils = { version = "0.3.0", path = "modules/utils/crypto", default-features = false }
256+
bls-utils = { path = "modules/utils/bls-utils", default-features = false }
255257
grandpa-verifier-primitives = { version = "2512.1.0", path = "./modules/consensus/grandpa/primitives", default-features = false }
256258
grandpa-verifier = { version = "2512.1.0", path = "./modules/consensus/grandpa/verifier", default-features = false }
257259
ismp-grandpa = { version = "2512.1.0", path = "./modules/ismp/clients/grandpa", default-features = false }
@@ -268,14 +270,14 @@ substrate-state-machine = { version = "2512.1.0", path = "modules/ismp/state-mac
268270

269271
# local crates
270272
ismp-testsuite = { path = "./modules/ismp/testsuite" }
271-
ismp-abi = { path = "./evm/rust", default-features = false }
273+
ismp-abi = { version = "0.1.1", path = "./evm/rust", default-features = false }
272274
simnode-tests = { path = "parachain/simtests" }
273275
integration-tests = { path = "parachain/integration-tests" }
274276
hyperclient = { path = "modules/hyperclient", default-features = false }
275277
subxt-utils = { path = "modules/utils/subxt", default-features = false }
276278

277279
# consensus provers & verifiers
278-
beefy-verifier-primitives = { path = "./modules/consensus/beefy/primitives", default-features = false }
280+
beefy-verifier-primitives = { version = "0.1.1", path = "./modules/consensus/beefy/primitives", default-features = false }
279281
beefy-prover = { path = "./modules/consensus/beefy/prover" }
280282
beefy-verifier = { path = "./modules/consensus/beefy/verifier", default-features = false }
281283
bsc-prover = { path = "./modules/consensus/bsc/prover" }

evm/rust/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ version = "0.1.1"
44
edition = "2021"
55
authors = ["Polytope Labs <hello@polytope.technology>"]
66
description = "Generated rust types for the ISMP solidity ABI"
7+
license = "Apache-2.0"
78
repository = "https://github.com/polytope-labs/hyperbridge"
89

910
[dependencies]

modules/consensus/beefy/primitives/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ version = "0.1.1"
44
edition = "2021"
55
authors = ["Polytope Labs <hello@polytope.technology>"]
66
description = "Primitive types for the BEEFY consensus client"
7-
publish = false
7+
license = "Apache-2.0"
8+
repository = "https://github.com/polytope-labs/hyperbridge"
89

910

1011
[package.metadata.docs.rs]

modules/consensus/bsc/verifier/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ primitive-types = { workspace = true }
1818
codec = { workspace = true }
1919
ismp = { workspace = true, default-features = false }
2020
geth-primitives = { workspace = true, default-features = false }
21-
crypto-utils = { workspace = true, default-features = false }
21+
bls-utils = { workspace = true, default-features = false }
2222
sync-committee-primitives = { workspace = true, default-features = false }
2323
bls = { workspace = true }
2424
ssz-rs = { git = "https://github.com/polytope-labs/ssz-rs", branch = "main", default-features = false }
@@ -39,7 +39,7 @@ std = [
3939
"alloy-primitives/std",
4040
"alloy-rlp/std",
4141
"bls/std",
42-
"crypto-utils/std",
42+
"bls-utils/std",
4343
"sync-committee-primitives/std",
4444
"geth-primitives/std",
4545
"ssz-rs/std",

modules/consensus/bsc/verifier/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use polkadot_sdk::*;
2020

2121
use alloc::vec::Vec;
22-
use crypto_utils::aggregate_public_keys;
22+
use bls_utils::aggregate_public_keys;
2323
use geth_primitives::{CodecHeader, Header};
2424
use ismp::messaging::Keccak256;
2525
use primitives::{BscClientUpdate, Config, VALIDATOR_BIT_SET_SIZE, parse_extra};

modules/consensus/pharos/primitives/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ publish = false
99
[dependencies]
1010
codec = { workspace = true, features = ["derive"] }
1111
alloy-primitives = { workspace = true }
12-
crypto-utils = { workspace = true, default-features = false }
12+
bls-utils = { workspace = true, default-features = false }
1313
primitive-types = { workspace = true, features = ["serde_no_std", "impl-codec"] }
1414
hex-literal = { workspace = true }
1515
serde = { workspace = true, optional = true, features = ["derive"] }
@@ -24,7 +24,7 @@ default = ["std"]
2424
std = [
2525
"codec/std",
2626
"alloy-primitives/std",
27-
"crypto-utils/std",
27+
"bls-utils/std",
2828
"primitive-types/std",
2929
"anyhow/std",
3030
"sp-io/std",

modules/consensus/pharos/primitives/src/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use alloy_primitives::Address;
1919

2020
/// Re-export BLS types from crypto-utils
21-
pub use crypto_utils::{
21+
pub use bls_utils::{
2222
BlsPublicKey, BlsSignature, BLS_PUBLIC_KEY_BYTES_LEN, BLS_SIGNATURE_BYTES_LEN,
2323
};
2424

modules/consensus/pharos/verifier/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ publish = false
88

99
[dependencies]
1010
pharos-primitives = { workspace = true, default-features = false }
11-
crypto-utils = { workspace = true, default-features = false }
11+
bls-utils = { workspace = true, default-features = false }
1212
geth-primitives = { workspace = true, default-features = false }
1313
ismp = { workspace = true, default-features = false }
1414
bls = { workspace = true }
@@ -21,7 +21,7 @@ primitive-types = { workspace = true }
2121
default = ["std"]
2222
std = [
2323
"pharos-primitives/std",
24-
"crypto-utils/std",
24+
"bls-utils/std",
2525
"geth-primitives/std",
2626
"ismp/std",
2727
"log/std",

0 commit comments

Comments
 (0)