chore: update some deps to prune duplicated deps (#14515)

* chore: update some deps to prune duplicated deps

- array-bytes: 4.1.0 => 6.1.0
- cid: 0.8.6 => 0.9.0

* fix
This commit is contained in:
Qinxuan Chen
2023-07-06 22:46:44 +08:00
committed by GitHub
parent 9c3ca04781
commit e8e2048b88
47 changed files with 126 additions and 163 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ readme = "README.md"
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
array-bytes = "4.1"
array-bytes = "6.1"
chrono = "0.4.10"
clap = { version = "4.2.5", features = ["derive", "string"] }
fdlimit = "0.2.1"
@@ -55,7 +55,7 @@ impl GenerateNodeKeyCmd {
let file_data = if self.bin {
secret.as_ref().to_owned()
} else {
array_bytes::bytes2hex("", secret.as_ref()).into_bytes()
array_bytes::bytes2hex("", secret).into_bytes()
};
match &self.file {
+1 -1
View File
@@ -9,7 +9,7 @@ description = "BEEFY Client gadget for substrate"
homepage = "https://substrate.io"
[dependencies]
array-bytes = "4.1"
array-bytes = "6.1"
async-channel = "1.8.0"
async-trait = "0.1.57"
codec = { package = "parity-scale-codec", version = "3.6.1", features = ["derive"] }
@@ -117,7 +117,7 @@ mod tests {
use beefy_protocol_name::{gossip_protocol_name, justifications_protocol_name};
// Create protocol name using random genesis hash.
let genesis_hash = H256::random();
let genesis_hex = array_bytes::bytes2hex("", genesis_hash.as_ref());
let genesis_hex = array_bytes::bytes2hex("", genesis_hash);
let expected_gossip_name = format!("/{}/beefy/2", genesis_hex);
let gossip_proto_name = gossip_protocol_name(&genesis_hash, None);
@@ -15,7 +15,7 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
ahash = "0.8.2"
array-bytes = "4.1"
array-bytes = "6.1"
async-trait = "0.1.57"
dyn-clone = "1.0"
finality-grandpa = { version = "0.16.2", features = ["derive-codec"] }
@@ -669,7 +669,7 @@ fn grandpa_protocol_name() {
// Create protocol name using random genesis hash.
let genesis_hash = sp_core::H256::random();
let expected = format!("/{}/grandpa/1", array_bytes::bytes2hex("", genesis_hash.as_ref()));
let expected = format!("/{}/grandpa/1", array_bytes::bytes2hex("", genesis_hash));
let proto_name = grandpa_protocol_name::standard_name(&genesis_hash, &chain_spec);
assert_eq!(proto_name.to_string(), expected);
+1 -1
View File
@@ -44,7 +44,7 @@ quickcheck = { version = "1.0.3", default-features = false }
kitchensink-runtime = { path = "../../bin/node/runtime" }
sp-tracing = { version = "10.0.0", path = "../../primitives/tracing" }
substrate-test-runtime-client = { version = "2.0.0", path = "../../test-utils/runtime/client" }
array-bytes = "4.1"
array-bytes = "6.1"
[features]
default = []
+1 -1
View File
@@ -32,7 +32,7 @@ sp-version = { version = "22.0.0", path = "../../primitives/version" }
sp-wasm-interface = { version = "14.0.0", path = "../../primitives/wasm-interface" }
[dev-dependencies]
array-bytes = "4.1"
array-bytes = "6.1"
assert_matches = "1.3.0"
wat = "1.0"
sc-runtime-test = { version = "2.0.0", path = "runtime-test" }
+1 -1
View File
@@ -14,7 +14,7 @@ readme = "README.md"
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
array-bytes = "4.1"
array-bytes = "6.1"
parking_lot = "0.12.1"
serde_json = "1.0.85"
thiserror = "1.0"
+1 -1
View File
@@ -14,7 +14,7 @@ readme = "README.md"
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
array-bytes = "4.1"
array-bytes = "6.1"
async-channel = "1.8.0"
async-trait = "0.1"
asynchronous-codec = "0.6"
+1 -1
View File
@@ -17,7 +17,7 @@ prost-build = "0.11"
[dependencies]
async-channel = "1.8.0"
cid = "0.8.6"
cid = "0.9.0"
futures = "0.3.21"
libp2p-identity = { version = "0.1.2", features = ["peerid"] }
log = "0.4.17"
+1 -1
View File
@@ -17,7 +17,7 @@ prost-build = "0.11"
[dependencies]
async-channel = "1.8.0"
array-bytes = "4.1"
array-bytes = "6.1"
codec = { package = "parity-scale-codec", version = "3.6.1", features = [
"derive",
] }
@@ -13,7 +13,7 @@ documentation = "https://docs.rs/sc-network-statement"
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
array-bytes = "4.1"
array-bytes = "6.1"
async-channel = "1.8.0"
codec = { package = "parity-scale-codec", version = "3.6.1", features = ["derive"] }
futures = "0.3.21"
+1 -1
View File
@@ -16,7 +16,7 @@ targets = ["x86_64-unknown-linux-gnu"]
prost-build = "0.11"
[dependencies]
array-bytes = "4.1"
array-bytes = "6.1"
async-channel = "1.8.0"
async-trait = "0.1.58"
codec = { package = "parity-scale-codec", version = "3.6.1", features = ["derive"] }
@@ -13,7 +13,7 @@ documentation = "https://docs.rs/sc-network-transactions"
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
array-bytes = "4.1"
array-bytes = "6.1"
codec = { package = "parity-scale-codec", version = "3.6.1", features = ["derive"] }
futures = "0.3.21"
libp2p = "0.51.3"
+1 -1
View File
@@ -13,7 +13,7 @@ readme = "README.md"
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
array-bytes = "4.1"
array-bytes = "6.1"
bytes = "1.1"
codec = { package = "parity-scale-codec", version = "3.6.1", features = ["derive"] }
fnv = "1.0.6"
+1 -1
View File
@@ -31,7 +31,7 @@ hex = "0.4"
futures = "0.3.21"
parking_lot = "0.12.1"
tokio-stream = { version = "0.1", features = ["sync"] }
array-bytes = "4.1"
array-bytes = "6.1"
log = "0.4.17"
futures-util = { version = "0.3.19", default-features = false }
+1 -1
View File
@@ -13,7 +13,7 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
async-channel = "1.8.0"
array-bytes = "4.1"
array-bytes = "6.1"
fdlimit = "0.2.1"
futures = "0.3.21"
log = "0.4.17"
+1 -1
View File
@@ -34,7 +34,7 @@ sp-tracing = { version = "10.0.0", path = "../../primitives/tracing" }
sp-transaction-pool = { version = "4.0.0-dev", path = "../../primitives/transaction-pool" }
[dev-dependencies]
array-bytes = "4.1"
array-bytes = "6.1"
assert_matches = "1.3.0"
criterion = "0.4.0"
sc-block-builder = { version = "0.10.0-dev", path = "../block-builder" }