diff --git a/Cargo.lock b/Cargo.lock index 05f848e3e..5222dc9cd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -780,10 +780,22 @@ version = "0.20.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7774144344a4faa177370406a7ff5f1da24303817368584c6206c8303eb07848" dependencies = [ - "funty", - "radium", + "funty 1.1.0", + "radium 0.6.2", "tap", - "wyz", + "wyz 0.2.0", +] + +[[package]] +name = "bitvec" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1489fcb93a5bb47da0462ca93ad252ad6af2145cce58d10d46a83931ba9f016b" +dependencies = [ + "funty 2.0.0", + "radium 0.7.0", + "tap", + "wyz 0.5.0", ] [[package]] @@ -2242,6 +2254,12 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fed34cd105917e91daa4da6b3728c47b068749d6a62c59811f06ed2ac71d9da7" +[[package]] +name = "funty" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" + [[package]] name = "futures" version = "0.1.31" @@ -4578,6 +4596,7 @@ dependencies = [ "sp-runtime 5.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.17)", "sp-std 4.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.17)", "webb-primitives", + "webb-proposals", ] [[package]] @@ -5432,6 +5451,7 @@ dependencies = [ "sp-runtime 5.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.17)", "sp-std 4.0.0 (git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.17)", "webb-primitives", + "webb-proposals", ] [[package]] @@ -5717,7 +5737,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "373b1a4c1338d9cd3d1fa53b3a11bdab5ab6bd80a20f7f7becd76953ae2be909" dependencies = [ "arrayvec 0.7.2", - "bitvec", + "bitvec 0.20.4", "byte-slice-cast", "impl-trait-for-tuples", "parity-scale-codec-derive 2.3.1", @@ -5731,9 +5751,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e8b44461635bbb1a0300f100a841e571e7d919c81c73075ef5d152ffdb521066" dependencies = [ "arrayvec 0.7.2", + "bitvec 1.0.0", "byte-slice-cast", "impl-trait-for-tuples", "parity-scale-codec-derive 3.1.2", + "serde", ] [[package]] @@ -6094,7 +6116,7 @@ name = "polkadot-primitives" version = "0.9.17" source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.17#de0ecd4760b146ecf33f5e867d707d789e21e060" dependencies = [ - "bitvec", + "bitvec 0.20.4", "frame-system", "hex-literal 0.3.4", "parity-scale-codec 2.3.1", @@ -6125,7 +6147,7 @@ version = "0.9.17" source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.17#de0ecd4760b146ecf33f5e867d707d789e21e060" dependencies = [ "beefy-primitives", - "bitvec", + "bitvec 0.20.4", "frame-election-provider-support", "frame-support", "frame-system", @@ -6182,7 +6204,7 @@ version = "0.9.17" source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.17#de0ecd4760b146ecf33f5e867d707d789e21e060" dependencies = [ "bitflags", - "bitvec", + "bitvec 0.20.4", "derive_more", "frame-support", "frame-system", @@ -6453,6 +6475,12 @@ version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "643f8f41a8ebc4c5dc4515c82bb8abd397b527fc20fd681b7c011c2aee5d44fb" +[[package]] +name = "radium" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" + [[package]] name = "rand" version = "0.7.3" @@ -7807,7 +7835,7 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5c55b744399c25532d63a0d2789b109df8d46fc93752d46b0782991a931a782f" dependencies = [ - "bitvec", + "bitvec 0.20.4", "cfg-if 1.0.0", "derive_more", "parity-scale-codec 2.3.1", @@ -7817,14 +7845,15 @@ dependencies = [ [[package]] name = "scale-info" -version = "2.0.1" +version = "2.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0563970d79bcbf3c537ce3ad36d859b30d36fc5b190efd227f1f7a84d7cf0d42" +checksum = "c46be926081c9f4dd5dd9b6f1d3e3229f2360bc6502dd8836f84a93b7c75e99a" dependencies = [ + "bitvec 1.0.0", "cfg-if 1.0.0", "derive_more", "parity-scale-codec 3.1.2", - "scale-info-derive 2.0.0", + "scale-info-derive 2.1.2", ] [[package]] @@ -7841,9 +7870,9 @@ dependencies = [ [[package]] name = "scale-info-derive" -version = "2.0.0" +version = "2.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7805950c36512db9e3251c970bb7ac425f326716941862205d612ab3b5e46e2" +checksum = "50e334bb10a245e28e5fd755cabcafd96cfcd167c99ae63a46924ca8d8703a3c" dependencies = [ "proc-macro-crate 1.1.3", "proc-macro2", @@ -9626,7 +9655,7 @@ version = "0.5.9" source = "git+https://github.com/encointer/substrate-fixed#a4fb461aae6205ffc55bed51254a40c52be04e5d" dependencies = [ "parity-scale-codec 3.1.2", - "scale-info 2.0.1", + "scale-info 2.1.2", "typenum 1.16.0", ] @@ -9695,7 +9724,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2bd89701863271876fecd8e3abae2c639f7a6b94bf316468d14c33b198e6ecf9" dependencies = [ "async-trait", - "bitvec", + "bitvec 0.20.4", "chameleon", "derivative", "frame-metadata", @@ -10211,6 +10240,17 @@ dependencies = [ "static_assertions", ] +[[package]] +name = "typed-builder" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "89851716b67b937e393b3daa8423e67ddfc4bbbf1654bcf05488e95e0828db0c" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "typenum" version = "1.15.0" @@ -10223,7 +10263,7 @@ version = "1.16.0" source = "git+https://github.com/encointer/typenum?tag=v1.16.0#4c8dddaa8bdd13130149e43b4085ad14e960617f" dependencies = [ "parity-scale-codec 3.1.2", - "scale-info 2.0.1", + "scale-info 2.1.2", ] [[package]] @@ -10808,13 +10848,14 @@ dependencies = [ [[package]] name = "webb-proposals" -version = "0.2.5" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e819886dd31a2710cfaa4c6fb986d25e4bc3c9ea064307e77f63d7d989b3e14" +checksum = "1cf0d38b6b699e619b27df4422f3fe4adfe5e42f4f15f34159aacdfad4b45075" dependencies = [ "num-traits", - "parity-scale-codec 2.3.1", - "scale-info 1.0.0", + "parity-scale-codec 3.1.2", + "scale-info 2.1.2", + "typed-builder", ] [[package]] @@ -11152,6 +11193,15 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85e60b0d1b5f99db2556934e21937020776a5d31520bf169e851ac44e6420214" +[[package]] +name = "wyz" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30b31594f29d27036c383b53b59ed3476874d518f0efb151b27a4c275141390e" +dependencies = [ + "tap", +] + [[package]] name = "x25519-dalek" version = "1.1.1" diff --git a/README.md b/README.md index 8406e2323..821797066 100644 --- a/README.md +++ b/README.md @@ -86,10 +86,10 @@ git clone git@github.com:webb-tools/protocol-substrate.git git submodule update --init ``` -Build the node in `release mode`: +Build the standalone node in `release mode`: ```bash -cargo build --release +cargo build --release -p webb-standalone-node ``` #### Troubleshooting for Apple Silicon users diff --git a/pallets/linkable-tree/rpc/src/lib.rs b/pallets/linkable-tree/rpc/src/lib.rs index 98b582420..af31e2b27 100644 --- a/pallets/linkable-tree/rpc/src/lib.rs +++ b/pallets/linkable-tree/rpc/src/lib.rs @@ -3,7 +3,7 @@ use std::sync::Arc; use codec::{Decode, Encode}; -use jsonrpc_core::{Error, ErrorCode, Result}; +use jsonrpc_core::{Result}; use jsonrpc_derive::rpc; use sp_api::ProvideRuntimeApi; use sp_blockchain::HeaderBackend; diff --git a/pallets/mt/src/lib.rs b/pallets/mt/src/lib.rs index be64edc8d..c65007cb2 100644 --- a/pallets/mt/src/lib.rs +++ b/pallets/mt/src/lib.rs @@ -338,7 +338,7 @@ pub mod pallet { let default_zero = T::DefaultZeroElement::get(); temp_hashes.push(default_zero); let mut temp_hash = default_zero.to_bytes().to_vec(); - for i in 0..T::MaxTreeDepth::get() { + for _ in 0..T::MaxTreeDepth::get() { temp_hash = T::Hasher::hash_two(&temp_hash, &temp_hash).unwrap(); temp_hashes.push(T::Element::from_vec(temp_hash.clone())); }