diff --git a/Cargo.lock b/Cargo.lock index 7ab7374..d8be2b8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -521,12 +521,6 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" -[[package]] -name = "base58" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6107fe1be6682a68940da878d9e9f5e90ca5745b3dec9fd1bb393c8777d4f581" - [[package]] name = "base64" version = "0.13.1" @@ -559,7 +553,7 @@ name = "binary-merkle-tree" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "hash-db 0.16.0", + "hash-db", "log", ] @@ -1211,7 +1205,7 @@ version = "0.93.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2bc42ba2e232e5b20ff7dc299a812d53337dadce9a7e39a238e6a5cb82d2e57b" dependencies = [ - "cranelift-entity 0.93.2", + "cranelift-entity", ] [[package]] @@ -1225,7 +1219,7 @@ dependencies = [ "cranelift-bforest", "cranelift-codegen-meta", "cranelift-codegen-shared", - "cranelift-entity 0.93.2", + "cranelift-entity", "cranelift-isle", "gimli 0.26.2", "hashbrown 0.12.3", @@ -1250,15 +1244,6 @@ version = "0.93.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "687e14e3f5775248930e0d5a84195abef8b829958e9794bf8d525104993612b4" -[[package]] -name = "cranelift-entity" -version = "0.88.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87a0f1b2fdc18776956370cf8d9b009ded3f855350c480c1c52142510961f352" -dependencies = [ - "serde", -] - [[package]] name = "cranelift-entity" version = "0.93.2" @@ -1304,13 +1289,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3852ce4b088b44ac4e29459573943009a70d1b192c8d77ef949b4e814f656fc1" dependencies = [ "cranelift-codegen", - "cranelift-entity 0.93.2", + "cranelift-entity", "cranelift-frontend", "itertools", "log", "smallvec", - "wasmparser 0.100.0", - "wasmtime-types 6.0.2", + "wasmparser", + "wasmtime-types", ] [[package]] @@ -2055,6 +2040,19 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "env_logger" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" +dependencies = [ + "atty", + "humantime", + "log", + "regex", + "termcolor", +] + [[package]] name = "env_logger" version = "0.10.0" @@ -2080,17 +2078,6 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" -[[package]] -name = "errno" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1" -dependencies = [ - "errno-dragonfly", - "libc", - "winapi", -] - [[package]] name = "errno" version = "0.3.2" @@ -2208,7 +2195,7 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "84f2e425d9790201ba4af4630191feac6dcc98765b118d4d18e91d23c2353866" dependencies = [ - "env_logger", + "env_logger 0.10.0", "log", ] @@ -2312,50 +2299,26 @@ name = "frame-benchmarking" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-support 4.0.0-dev", - "frame-support-procedural 4.0.0-dev", - "frame-system 4.0.0-dev", - "linregress 0.5.2", + "frame-support", + "frame-support-procedural", + "frame-system", + "linregress", "log", "parity-scale-codec", "paste", "scale-info", "serde", - "sp-api 4.0.0-dev", - "sp-application-crypto 7.0.0", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-runtime-interface 7.0.0", - "sp-std 5.0.0", - "sp-storage 7.0.0", + "sp-api", + "sp-application-crypto", + "sp-core", + "sp-io", + "sp-runtime", + "sp-runtime-interface", + "sp-std", + "sp-storage", "static_assertions", ] -[[package]] -name = "frame-benchmarking" -version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cd273d2de240633ead6be776d88e77b39a80ec3beedebbab50d1d50382b026d" -dependencies = [ - "frame-support 4.0.0", - "frame-system 4.0.0", - "linregress 0.4.4", - "log", - "parity-scale-codec", - "paste", - "scale-info", - "serde", - "sp-api 4.0.0", - "sp-application-crypto 8.0.0", - "sp-core 8.0.0", - "sp-io 8.0.0", - "sp-runtime 8.0.0", - "sp-runtime-interface 8.0.0", - "sp-std 6.0.0", - "sp-storage 8.0.0", -] - [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" @@ -2366,9 +2329,9 @@ dependencies = [ "chrono", "clap 4.4.1", "comfy-table", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "gethostname", "handlebars", "itertools", @@ -2377,7 +2340,7 @@ dependencies = [ "log", "parity-scale-codec", "rand 0.8.5", - "rand_pcg 0.3.1", + "rand_pcg", "sc-block-builder", "sc-cli", "sc-client-api", @@ -2387,18 +2350,18 @@ dependencies = [ "sc-sysinfo", "serde", "serde_json", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-core 7.0.0", + "sp-core", "sp-database", - "sp-externalities 0.13.0", - "sp-inherents 4.0.0-dev", - "sp-keystore 0.13.0", - "sp-runtime 7.0.0", - "sp-state-machine 0.13.0", - "sp-std 5.0.0", - "sp-storage 7.0.0", - "sp-trie 7.0.0", + "sp-externalities", + "sp-inherents", + "sp-keystore", + "sp-runtime", + "sp-state-machine", + "sp-std", + "sp-storage", + "sp-trie", "thiserror", "thousands", ] @@ -2420,15 +2383,15 @@ version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "frame-election-provider-solution-type", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-arithmetic 6.0.0", - "sp-core 7.0.0", + "sp-arithmetic", + "sp-core", "sp-npos-elections", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-runtime", + "sp-std", ] [[package]] @@ -2436,8 +2399,8 @@ name = "frame-executive-ext" version = "4.0.0-dev" dependencies = [ "array-bytes 6.1.0", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-ext", "frame-try-runtime", "melo-core-primitives", @@ -2445,13 +2408,13 @@ dependencies = [ "pallet-transaction-payment", "parity-scale-codec", "scale-info", - "sp-core 7.0.0", - "sp-inherents 4.0.0-dev", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", - "sp-tracing 6.0.0", - "sp-version 5.0.0", + "sp-core", + "sp-inherents", + "sp-io", + "sp-runtime", + "sp-std", + "sp-tracing", + "sp-version", ] [[package]] @@ -2478,9 +2441,9 @@ dependencies = [ "log", "parity-scale-codec", "serde", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-runtime 7.0.0", + "sp-core", + "sp-io", + "sp-runtime", "spinners", "substrate-rpc-client", "tokio", @@ -2494,42 +2457,9 @@ dependencies = [ "bitflags 1.3.2", "environmental", "frame-metadata", - "frame-support-procedural 4.0.0-dev", - "impl-trait-for-tuples", - "k256 0.13.1", - "log", - "once_cell", - "parity-scale-codec", - "paste", - "scale-info", - "serde", - "smallvec", - "sp-api 4.0.0-dev", - "sp-arithmetic 6.0.0", - "sp-core 7.0.0", - "sp-core-hashing-proc-macro 5.0.0", - "sp-inherents 4.0.0-dev", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-staking 4.0.0-dev", - "sp-state-machine 0.13.0", - "sp-std 5.0.0", - "sp-tracing 6.0.0", - "sp-weights 4.0.0", - "tt-call", -] - -[[package]] -name = "frame-support" -version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9aa480b4610b2805c280a7587d2cf8f09c35882a8b5dc3b6085639133a1de003" -dependencies = [ - "bitflags 1.3.2", - "frame-metadata", - "frame-support-procedural 4.0.0", + "frame-support-procedural", "impl-trait-for-tuples", - "k256 0.11.6", + "k256", "log", "once_cell", "parity-scale-codec", @@ -2537,18 +2467,18 @@ dependencies = [ "scale-info", "serde", "smallvec", - "sp-api 4.0.0", - "sp-arithmetic 7.0.0", - "sp-core 8.0.0", - "sp-core-hashing-proc-macro 6.0.0", - "sp-inherents 4.0.0", - "sp-io 8.0.0", - "sp-runtime 8.0.0", - "sp-staking 4.0.0", - "sp-state-machine 0.14.0", - "sp-std 6.0.0", - "sp-tracing 7.0.0", - "sp-weights 5.0.0", + "sp-api", + "sp-arithmetic", + "sp-core", + "sp-core-hashing-proc-macro", + "sp-inherents", + "sp-io", + "sp-runtime", + "sp-staking", + "sp-state-machine", + "sp-std", + "sp-tracing", + "sp-weights", "tt-call", ] @@ -2560,7 +2490,7 @@ dependencies = [ "Inflector", "cfg-expr", "derive-syn-parse", - "frame-support-procedural-tools 4.0.0-dev", + "frame-support-procedural-tools", "itertools", "proc-macro-warning", "proc-macro2", @@ -2568,46 +2498,18 @@ dependencies = [ "syn 2.0.29", ] -[[package]] -name = "frame-support-procedural" -version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb971d7ec274ca94ce5b38f8ba83a4046a79d4fe1795738e1cc11ed07232c7d5" -dependencies = [ - "Inflector", - "cfg-expr", - "frame-support-procedural-tools 4.0.0", - "itertools", - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-support-procedural-tools-derive 3.0.0", + "frame-support-procedural-tools-derive", "proc-macro-crate", "proc-macro2", "quote", "syn 2.0.29", ] -[[package]] -name = "frame-support-procedural-tools" -version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4272f469300e22c33f15502980016e876669a93080f21e0bd2da1bc7cefc87f" -dependencies = [ - "frame-support-procedural-tools-derive 4.0.0", - "proc-macro-crate", - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" @@ -2618,52 +2520,22 @@ dependencies = [ "syn 2.0.29", ] -[[package]] -name = "frame-support-procedural-tools-derive" -version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a881492b8dfdd6065d7d8537b8f79cd27aff8c501c759ac12b0295d139ff3d2" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "frame-system" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-support 4.0.0-dev", + "frame-support", "log", "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", - "sp-version 5.0.0", - "sp-weights 4.0.0", -] - -[[package]] -name = "frame-system" -version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31a6983fd141bcfcef8b04ca7613fc4b935571c8e2e090297c162669887c0aa8" -dependencies = [ - "frame-support 4.0.0", - "log", - "parity-scale-codec", - "scale-info", - "serde", - "sp-core 8.0.0", - "sp-io 8.0.0", - "sp-runtime 8.0.0", - "sp-std 6.0.0", - "sp-version 6.0.0", - "sp-weights 5.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", + "sp-version", + "sp-weights", ] [[package]] @@ -2671,29 +2543,29 @@ name = "frame-system-benchmarking" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-core 7.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-core", + "sp-runtime", + "sp-std", ] [[package]] name = "frame-system-ext" version = "4.0.0-dev" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "log", "melo-core-primitives", "parity-scale-codec", "scale-info", "serde", - "sp-application-crypto 7.0.0", - "sp-runtime 7.0.0", + "sp-application-crypto", + "sp-runtime", ] [[package]] @@ -2702,7 +2574,7 @@ version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "parity-scale-codec", - "sp-api 4.0.0-dev", + "sp-api", ] [[package]] @@ -2710,11 +2582,11 @@ name = "frame-try-runtime" version = "0.10.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-support 4.0.0-dev", + "frame-support", "parity-scale-codec", - "sp-api 4.0.0-dev", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-api", + "sp-runtime", + "sp-std", ] [[package]] @@ -2921,10 +2793,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" dependencies = [ "cfg-if", - "js-sys", "libc", "wasi 0.9.0+wasi-snapshot-preview1", - "wasm-bindgen", ] [[package]] @@ -3100,12 +2970,6 @@ dependencies = [ "thiserror", ] -[[package]] -name = "hash-db" -version = "0.15.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d23bd4e7b5eda0d0f3a307e8b381fdc8ba9000f26fbe912250c0a4cc3956364a" - [[package]] name = "hash-db" version = "0.16.0" @@ -3525,12 +3389,6 @@ dependencies = [ "webrtc-util", ] -[[package]] -name = "io-lifetimes" -version = "0.7.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59ce5ef949d49ee85593fc4d3f3f95ad61657076395cbbce23e2121fc5542074" - [[package]] name = "io-lifetimes" version = "1.0.11" @@ -3772,18 +3630,6 @@ dependencies = [ "jsonrpsee-types", ] -[[package]] -name = "k256" -version = "0.11.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72c1e0b51e7ec0a97369623508396067a486bd0cbed95a2659a4b863d28cfc8b" -dependencies = [ - "cfg-if", - "ecdsa 0.14.8", - "elliptic-curve 0.12.3", - "sha2 0.10.7", -] - [[package]] name = "k256" version = "0.13.1" @@ -4433,31 +4279,15 @@ dependencies = [ "linked-hash-map", ] -[[package]] -name = "linregress" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6c601a85f5ecd1aba625247bca0031585fb1c446461b142878a16f8245ddeb8" -dependencies = [ - "nalgebra 0.27.1", - "statrs", -] - [[package]] name = "linregress" version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4de0b5f52a9f84544d268f5fabb71b38962d6aa3c6600b8bcd27d44ccf9c9c45" dependencies = [ - "nalgebra 0.32.3", + "nalgebra", ] -[[package]] -name = "linux-raw-sys" -version = "0.0.46" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4d2456c373231a208ad294c33dc5bff30051eafd954cd4caae83a712b12854d" - [[package]] name = "linux-raw-sys" version = "0.1.4" @@ -4606,14 +4436,14 @@ dependencies = [ "scale-info", "serde", "serde_json", - "sp-api 4.0.0-dev", - "sp-application-crypto 7.0.0", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-state-machine 0.13.0", - "sp-std 5.0.0", - "sp-tracing 6.0.0", + "sp-api", + "sp-application-crypto", + "sp-core", + "sp-io", + "sp-runtime", + "sp-state-machine", + "sp-std", + "sp-tracing", "substrate-test-runtime-client", "zstd 0.12.4", ] @@ -4623,7 +4453,7 @@ name = "melo-das-network" version = "0.0.1" dependencies = [ "async-trait", - "frame-system 4.0.0-dev", + "frame-system", "futures", "melo-core-primitives", "melo-das-primitives", @@ -4632,10 +4462,10 @@ dependencies = [ "sc-network", "sc-transaction-pool", "sc-transaction-pool-api", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-core 7.0.0", - "sp-runtime 7.0.0", + "sp-core", + "sp-runtime", "tracing", ] @@ -4690,10 +4520,10 @@ dependencies = [ "sc-service", "sc-transaction-pool-api", "serde", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-core 7.0.0", - "sp-runtime 7.0.0", + "sp-core", + "sp-runtime", "thiserror", ] @@ -4714,9 +4544,9 @@ name = "melodot-node" version = "0.0.1" dependencies = [ "clap 4.4.1", - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-benchmarking-cli", - "frame-system 4.0.0-dev", + "frame-system", "futures", "jsonrpsee", "melo-core-primitives", @@ -4746,20 +4576,20 @@ dependencies = [ "sc-telemetry", "sc-transaction-pool", "sc-transaction-pool-api", - "sp-api 4.0.0-dev", + "sp-api", "sp-authority-discovery", "sp-block-builder", "sp-blockchain", "sp-consensus", "sp-consensus-babe", "sp-consensus-grandpa", - "sp-core 7.0.0", - "sp-inherents 4.0.0-dev", - "sp-io 7.0.0", + "sp-core", + "sp-inherents", + "sp-io", "sp-keyring", - "sp-keystore 0.13.0", - "sp-runtime 7.0.0", - "sp-timestamp 4.0.0-dev", + "sp-keystore", + "sp-runtime", + "sp-timestamp", "substrate-build-script-utils", "substrate-frame-rpc-system", "try-runtime-cli", @@ -4769,11 +4599,11 @@ dependencies = [ name = "melodot-runtime" version = "0.0.1" dependencies = [ - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-election-provider-support", "frame-executive-ext", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-benchmarking", "frame-system-ext", "frame-system-rpc-runtime-api", @@ -4801,33 +4631,33 @@ dependencies = [ "pallet-offences", "pallet-preimage", "pallet-scheduler", - "pallet-session 4.0.0-dev", + "pallet-session", "pallet-staking", "pallet-staking-reward-curve", "pallet-sudo", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-treasury", "pallet-utility", "parity-scale-codec", "scale-info", - "sp-api 4.0.0-dev", + "sp-api", "sp-authority-discovery", "sp-block-builder", "sp-consensus-aura", "sp-consensus-babe", "sp-consensus-grandpa", - "sp-core 7.0.0", - "sp-inherents 4.0.0-dev", - "sp-io 7.0.0", + "sp-core", + "sp-inherents", + "sp-io", "sp-offchain", - "sp-runtime 7.0.0", - "sp-session 4.0.0-dev", - "sp-staking 4.0.0-dev", - "sp-std 5.0.0", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-std", "sp-transaction-pool", - "sp-version 5.0.0", + "sp-version", "static_assertions", "substrate-wasm-builder", ] @@ -4874,23 +4704,13 @@ dependencies = [ "autocfg", ] -[[package]] -name = "memory-db" -version = "0.31.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e0c7cba9ce19ac7ffd2053ac9f49843bbd3f4318feedfd74e85c19d5fb0ba66" -dependencies = [ - "hash-db 0.15.2", - "hashbrown 0.12.3", -] - [[package]] name = "memory-db" version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "808b50db46293432a45e63bc15ea51e0ab4c0a1647b8eb114e31a3e698dd6fbe" dependencies = [ - "hash-db 0.16.0", + "hash-db", ] [[package]] @@ -5074,24 +4894,6 @@ dependencies = [ "unsigned-varint", ] -[[package]] -name = "nalgebra" -version = "0.27.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "462fffe4002f4f2e1f6a9dcf12cc1a6fc0e15989014efc02a941d3e0f5dc2120" -dependencies = [ - "approx", - "matrixmultiply", - "nalgebra-macros 0.1.0", - "num-complex", - "num-rational", - "num-traits", - "rand 0.8.5", - "rand_distr", - "simba 0.5.1", - "typenum", -] - [[package]] name = "nalgebra" version = "0.32.3" @@ -5100,25 +4902,14 @@ checksum = "307ed9b18cc2423f29e83f84fd23a8e73628727990181f18641a8b5dc2ab1caa" dependencies = [ "approx", "matrixmultiply", - "nalgebra-macros 0.2.1", + "nalgebra-macros", "num-complex", "num-rational", "num-traits", - "simba 0.8.1", + "simba", "typenum", ] -[[package]] -name = "nalgebra-macros" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01fcc0b8149b4632adc89ac3b7b31a12fb6099a0317a4eb2ebff574ef7de7218" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "nalgebra-macros" version = "0.2.1" @@ -5222,12 +5013,12 @@ name = "node-primitives" version = "2.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-system 4.0.0-dev", + "frame-system", "parity-scale-codec", "scale-info", - "sp-application-crypto 7.0.0", - "sp-core 7.0.0", - "sp-runtime 7.0.0", + "sp-application-crypto", + "sp-core", + "sp-runtime", ] [[package]] @@ -5311,7 +5102,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f30b0abd723be7e2ffca1272140fac1a2f084c77ec3e123c192b66af1ee9e6c2" dependencies = [ "autocfg", - "libm", ] [[package]] @@ -5436,15 +5226,15 @@ name = "pallet-authority-discovery" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "pallet-session 4.0.0-dev", + "frame-support", + "frame-system", + "pallet-session", "parity-scale-codec", "scale-info", - "sp-application-crypto 7.0.0", + "sp-application-crypto", "sp-authority-discovery", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-runtime", + "sp-std", ] [[package]] @@ -5452,13 +5242,13 @@ name = "pallet-authorship" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-runtime", + "sp-std", ] [[package]] @@ -5466,23 +5256,23 @@ name = "pallet-babe" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "pallet-authorship", - "pallet-session 4.0.0-dev", - "pallet-timestamp 4.0.0-dev", + "pallet-session", + "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-application-crypto 7.0.0", + "sp-application-crypto", "sp-consensus-babe", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-session 4.0.0-dev", - "sp-staking 4.0.0-dev", - "sp-std 5.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-std", ] [[package]] @@ -5490,19 +5280,19 @@ name = "pallet-bags-list" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-election-provider-support", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "log", "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", - "sp-tracing 6.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", + "sp-tracing", ] [[package]] @@ -5510,14 +5300,14 @@ name = "pallet-balances" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-runtime", + "sp-std", ] [[package]] @@ -5525,18 +5315,18 @@ name = "pallet-beefy" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "pallet-authorship", - "pallet-session 4.0.0-dev", + "pallet-session", "parity-scale-codec", "scale-info", "serde", "sp-consensus-beefy", - "sp-runtime 7.0.0", - "sp-session 4.0.0-dev", - "sp-staking 4.0.0-dev", - "sp-std 5.0.0", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-std", ] [[package]] @@ -5546,21 +5336,21 @@ source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.4 dependencies = [ "array-bytes 4.2.0", "binary-merkle-tree", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "log", "pallet-beefy", "pallet-mmr", - "pallet-session 4.0.0-dev", + "pallet-session", "parity-scale-codec", "scale-info", "serde", - "sp-api 4.0.0-dev", + "sp-api", "sp-consensus-beefy", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", ] [[package]] @@ -5568,17 +5358,17 @@ name = "pallet-bounties" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "pallet-treasury", "parity-scale-codec", "scale-info", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", ] [[package]] @@ -5586,16 +5376,16 @@ name = "pallet-collective" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", ] [[package]] @@ -5603,17 +5393,17 @@ name = "pallet-democracy" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", ] [[package]] @@ -5621,21 +5411,21 @@ name = "pallet-election-provider-multi-phase" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-election-provider-support", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "log", "pallet-election-provider-support-benchmarking", "parity-scale-codec", "rand 0.8.5", "scale-info", - "sp-arithmetic 6.0.0", - "sp-core 7.0.0", - "sp-io 7.0.0", + "sp-arithmetic", + "sp-core", + "sp-io", "sp-npos-elections", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-runtime", + "sp-std", "strum", ] @@ -5644,12 +5434,12 @@ name = "pallet-election-provider-support-benchmarking" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-election-provider-support", - "frame-system 4.0.0-dev", + "frame-system", "parity-scale-codec", "sp-npos-elections", - "sp-runtime 7.0.0", + "sp-runtime", ] [[package]] @@ -5657,22 +5447,22 @@ name = "pallet-grandpa" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "pallet-authorship", - "pallet-session 4.0.0-dev", + "pallet-session", "parity-scale-codec", "scale-info", - "sp-application-crypto 7.0.0", + "sp-application-crypto", "sp-consensus-grandpa", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-session 4.0.0-dev", - "sp-staking 4.0.0-dev", - "sp-std 5.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-std", ] [[package]] @@ -5680,39 +5470,43 @@ name = "pallet-im-online" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "pallet-authorship", "parity-scale-codec", "scale-info", - "sp-application-crypto 7.0.0", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-staking 4.0.0-dev", - "sp-std 5.0.0", + "sp-application-crypto", + "sp-core", + "sp-io", + "sp-runtime", + "sp-staking", + "sp-std", ] [[package]] name = "pallet-melo-store" version = "0.1.0" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "env_logger 0.9.3", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "melo-core-primitives", "melo-das-primitives", - "pallet-session 4.0.0", + "pallet-authorship", + "pallet-im-online", + "pallet-session", "parity-scale-codec", "scale-info", - "sp-application-crypto 7.0.0", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-application-crypto", + "sp-core", + "sp-io", + "sp-runtime", + "sp-staking", + "sp-std", ] [[package]] @@ -5720,16 +5514,16 @@ name = "pallet-membership" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", ] [[package]] @@ -5737,16 +5531,16 @@ name = "pallet-mmr" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-core 7.0.0", - "sp-io 7.0.0", + "sp-core", + "sp-io", "sp-mmr-primitives", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-runtime", + "sp-std", ] [[package]] @@ -5754,16 +5548,16 @@ name = "pallet-nomination-pools" version = "1.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-staking 4.0.0-dev", - "sp-std 5.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-staking", + "sp-std", ] [[package]] @@ -5771,19 +5565,19 @@ name = "pallet-nomination-pools-benchmarking" version = "1.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-election-provider-support", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "pallet-bags-list", "pallet-nomination-pools", "pallet-staking", "parity-scale-codec", "scale-info", - "sp-runtime 7.0.0", - "sp-runtime-interface 7.0.0", - "sp-staking 4.0.0-dev", - "sp-std 5.0.0", + "sp-runtime", + "sp-runtime-interface", + "sp-staking", + "sp-std", ] [[package]] @@ -5793,8 +5587,8 @@ source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.4 dependencies = [ "pallet-nomination-pools", "parity-scale-codec", - "sp-api 4.0.0-dev", - "sp-std 5.0.0", + "sp-api", + "sp-std", ] [[package]] @@ -5802,16 +5596,16 @@ name = "pallet-offences" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "log", "pallet-balances", "parity-scale-codec", "scale-info", "serde", - "sp-runtime 7.0.0", - "sp-staking 4.0.0-dev", - "sp-std 5.0.0", + "sp-runtime", + "sp-staking", + "sp-std", ] [[package]] @@ -5819,16 +5613,16 @@ name = "pallet-preimage" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", ] [[package]] @@ -5836,16 +5630,16 @@ name = "pallet-scheduler" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", - "sp-weights 4.0.0", + "sp-io", + "sp-runtime", + "sp-std", + "sp-weights", ] [[package]] @@ -5853,42 +5647,20 @@ name = "pallet-session" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "impl-trait-for-tuples", - "log", - "pallet-timestamp 4.0.0-dev", - "parity-scale-codec", - "scale-info", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-session 4.0.0-dev", - "sp-staking 4.0.0-dev", - "sp-std 5.0.0", - "sp-trie 7.0.0", -] - -[[package]] -name = "pallet-session" -version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1acacf7787b5e52335ce4b29e54d39cf090df988c52d80d5d9ce65f4564cd4a4" -dependencies = [ - "frame-support 4.0.0", - "frame-system 4.0.0", + "frame-support", + "frame-system", "impl-trait-for-tuples", "log", - "pallet-timestamp 4.0.0", + "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-core 8.0.0", - "sp-io 8.0.0", - "sp-runtime 8.0.0", - "sp-session 4.0.0", - "sp-staking 4.0.0", - "sp-std 6.0.0", - "sp-trie 8.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-std", + "sp-trie", ] [[package]] @@ -5896,21 +5668,21 @@ name = "pallet-staking" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-election-provider-support", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "log", "pallet-authorship", - "pallet-session 4.0.0-dev", + "pallet-session", "parity-scale-codec", "scale-info", "serde", - "sp-application-crypto 7.0.0", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-staking 4.0.0-dev", - "sp-std 5.0.0", + "sp-application-crypto", + "sp-io", + "sp-runtime", + "sp-staking", + "sp-std", ] [[package]] @@ -5929,13 +5701,13 @@ name = "pallet-sudo" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-io", + "sp-runtime", + "sp-std", ] [[package]] @@ -5943,36 +5715,17 @@ name = "pallet-timestamp" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "log", - "parity-scale-codec", - "scale-info", - "sp-inherents 4.0.0-dev", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", - "sp-timestamp 4.0.0-dev", -] - -[[package]] -name = "pallet-timestamp" -version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19014f6d872fab93d037fd31bb3b76281111f3c3f939fea455e424495a915bbf" -dependencies = [ - "frame-benchmarking 4.0.0", - "frame-support 4.0.0", - "frame-system 4.0.0", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-inherents 4.0.0", - "sp-io 8.0.0", - "sp-runtime 8.0.0", - "sp-std 6.0.0", - "sp-timestamp 4.0.0", + "sp-inherents", + "sp-io", + "sp-runtime", + "sp-std", + "sp-timestamp", ] [[package]] @@ -5980,15 +5733,15 @@ name = "pallet-transaction-payment" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", ] [[package]] @@ -5999,12 +5752,12 @@ dependencies = [ "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-core 7.0.0", + "sp-core", "sp-rpc", - "sp-runtime 7.0.0", - "sp-weights 4.0.0", + "sp-runtime", + "sp-weights", ] [[package]] @@ -6014,9 +5767,9 @@ source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.4 dependencies = [ "pallet-transaction-payment", "parity-scale-codec", - "sp-api 4.0.0-dev", - "sp-runtime 7.0.0", - "sp-weights 4.0.0", + "sp-api", + "sp-runtime", + "sp-weights", ] [[package]] @@ -6024,16 +5777,16 @@ name = "pallet-treasury" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "impl-trait-for-tuples", "pallet-balances", "parity-scale-codec", "scale-info", "serde", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-runtime", + "sp-std", ] [[package]] @@ -6041,15 +5794,15 @@ name = "pallet-utility" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", ] [[package]] @@ -6171,15 +5924,6 @@ version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" -[[package]] -name = "pbkdf2" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd" -dependencies = [ - "crypto-mac 0.8.0", -] - [[package]] name = "pbkdf2" version = "0.8.0" @@ -6739,7 +6483,6 @@ dependencies = [ "rand_chacha 0.2.2", "rand_core 0.5.1", "rand_hc", - "rand_pcg 0.2.1", ] [[package]] @@ -6791,16 +6534,6 @@ dependencies = [ "getrandom 0.2.10", ] -[[package]] -name = "rand_distr" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32cb0b9bc82b0a0876c2dd994a7e7a2683d3e7390ca40e6886785ef0c7e3ee31" -dependencies = [ - "num-traits", - "rand 0.8.5", -] - [[package]] name = "rand_hc" version = "0.2.0" @@ -6810,15 +6543,6 @@ dependencies = [ "rand_core 0.5.1", ] -[[package]] -name = "rand_pcg" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" -dependencies = [ - "rand_core 0.5.1", -] - [[package]] name = "rand_pcg" version = "0.3.1" @@ -7167,20 +6891,6 @@ dependencies = [ "nom", ] -[[package]] -name = "rustix" -version = "0.35.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6380889b07a03b5ecf1d44dc9ede6fd2145d84b502a2a9ca0b03c48e0cc3220f" -dependencies = [ - "bitflags 1.3.2", - "errno 0.2.8", - "io-lifetimes 0.7.5", - "libc", - "linux-raw-sys 0.0.46", - "windows-sys 0.42.0", -] - [[package]] name = "rustix" version = "0.36.15" @@ -7188,8 +6898,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c37f1bd5ef1b5422177b7646cba67430579cfe2ace80f284fee876bca52ad941" dependencies = [ "bitflags 1.3.2", - "errno 0.3.2", - "io-lifetimes 1.0.11", + "errno", + "io-lifetimes", "libc", "linux-raw-sys 0.1.4", "windows-sys 0.45.0", @@ -7202,8 +6912,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4d69718bf81c6127a49dc64e44a742e8bb9213c0ff8869a22c308f84c1d4ab06" dependencies = [ "bitflags 1.3.2", - "errno 0.3.2", - "io-lifetimes 1.0.11", + "errno", + "io-lifetimes", "libc", "linux-raw-sys 0.3.8", "windows-sys 0.48.0", @@ -7216,7 +6926,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9bfe0f2582b4931a45d1fa608f8a8722e8b3c7ac54dd6d5f3b3212791fedef49" dependencies = [ "bitflags 2.4.0", - "errno 0.3.2", + "errno", "libc", "linux-raw-sys 0.4.5", "windows-sys 0.48.0", @@ -7347,8 +7057,8 @@ version = "4.1.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "log", - "sp-core 7.0.0", - "sp-wasm-interface 7.0.0", + "sp-core", + "sp-wasm-interface", "thiserror", ] @@ -7370,12 +7080,12 @@ dependencies = [ "sc-client-api", "sc-network", "sc-network-common", - "sp-api 4.0.0-dev", + "sp-api", "sp-authority-discovery", "sp-blockchain", - "sp-core 7.0.0", - "sp-keystore 0.13.0", - "sp-runtime 7.0.0", + "sp-core", + "sp-keystore", + "sp-runtime", "substrate-prometheus-endpoint", "thiserror", ] @@ -7394,12 +7104,12 @@ dependencies = [ "sc-proposer-metrics", "sc-telemetry", "sc-transaction-pool-api", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", - "sp-core 7.0.0", - "sp-inherents 4.0.0-dev", - "sp-runtime 7.0.0", + "sp-core", + "sp-inherents", + "sp-runtime", "substrate-prometheus-endpoint", ] @@ -7410,12 +7120,12 @@ source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.4 dependencies = [ "parity-scale-codec", "sc-client-api", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-blockchain", - "sp-core 7.0.0", - "sp-inherents 4.0.0-dev", - "sp-runtime 7.0.0", + "sp-core", + "sp-inherents", + "sp-runtime", ] [[package]] @@ -7432,9 +7142,9 @@ dependencies = [ "serde", "serde_json", "sp-blockchain", - "sp-core 7.0.0", - "sp-runtime 7.0.0", - "sp-state-machine 0.13.0", + "sp-core", + "sp-runtime", + "sp-state-machine", ] [[package]] @@ -7477,14 +7187,14 @@ dependencies = [ "serde", "serde_json", "sp-blockchain", - "sp-core 7.0.0", + "sp-core", "sp-keyring", - "sp-keystore 0.13.0", - "sp-panic-handler 5.0.0", - "sp-runtime 7.0.0", - "sp-version 5.0.0", + "sp-keystore", + "sp-panic-handler", + "sp-runtime", + "sp-version", "thiserror", - "tiny-bip39 1.0.0", + "tiny-bip39", "tokio", ] @@ -7501,16 +7211,16 @@ dependencies = [ "sc-executor", "sc-transaction-pool-api", "sc-utils", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", - "sp-core 7.0.0", + "sp-core", "sp-database", - "sp-externalities 0.13.0", - "sp-keystore 0.13.0", - "sp-runtime 7.0.0", - "sp-state-machine 0.13.0", - "sp-storage 7.0.0", + "sp-externalities", + "sp-keystore", + "sp-runtime", + "sp-state-machine", + "sp-storage", "substrate-prometheus-endpoint", ] @@ -7519,7 +7229,7 @@ name = "sc-client-db" version = "0.10.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "hash-db 0.16.0", + "hash-db", "kvdb", "kvdb-memorydb", "kvdb-rocksdb", @@ -7531,13 +7241,13 @@ dependencies = [ "sc-client-api", "sc-state-db", "schnellru", - "sp-arithmetic 6.0.0", + "sp-arithmetic", "sp-blockchain", - "sp-core 7.0.0", + "sp-core", "sp-database", - "sp-runtime 7.0.0", - "sp-state-machine 0.13.0", - "sp-trie 7.0.0", + "sp-runtime", + "sp-state-machine", + "sp-trie", ] [[package]] @@ -7555,12 +7265,12 @@ dependencies = [ "sc-client-api", "sc-utils", "serde", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", - "sp-core 7.0.0", - "sp-runtime 7.0.0", - "sp-state-machine 0.13.0", + "sp-core", + "sp-runtime", + "sp-state-machine", "substrate-prometheus-endpoint", "thiserror", ] @@ -7586,17 +7296,17 @@ dependencies = [ "sc-keystore", "sc-telemetry", "scale-info", - "sp-api 4.0.0-dev", - "sp-application-crypto 7.0.0", + "sp-api", + "sp-application-crypto", "sp-block-builder", "sp-blockchain", "sp-consensus", "sp-consensus-babe", "sp-consensus-slots", - "sp-core 7.0.0", - "sp-inherents 4.0.0-dev", - "sp-keystore 0.13.0", - "sp-runtime 7.0.0", + "sp-core", + "sp-inherents", + "sp-keystore", + "sp-runtime", "substrate-prometheus-endpoint", "thiserror", ] @@ -7612,14 +7322,14 @@ dependencies = [ "sc-consensus-epochs", "sc-rpc-api", "serde", - "sp-api 4.0.0-dev", - "sp-application-crypto 7.0.0", + "sp-api", + "sp-application-crypto", "sp-blockchain", "sp-consensus", "sp-consensus-babe", - "sp-core 7.0.0", - "sp-keystore 0.13.0", - "sp-runtime 7.0.0", + "sp-core", + "sp-keystore", + "sp-runtime", "thiserror", ] @@ -7633,7 +7343,7 @@ dependencies = [ "sc-client-api", "sc-consensus", "sp-blockchain", - "sp-runtime 7.0.0", + "sp-runtime", ] [[package]] @@ -7663,15 +7373,15 @@ dependencies = [ "sc-telemetry", "sc-utils", "serde_json", - "sp-api 4.0.0-dev", - "sp-application-crypto 7.0.0", - "sp-arithmetic 6.0.0", + "sp-api", + "sp-application-crypto", + "sp-arithmetic", "sp-blockchain", "sp-consensus", "sp-consensus-grandpa", - "sp-core 7.0.0", - "sp-keystore 0.13.0", - "sp-runtime 7.0.0", + "sp-core", + "sp-keystore", + "sp-runtime", "substrate-prometheus-endpoint", "thiserror", ] @@ -7691,8 +7401,8 @@ dependencies = [ "sc-rpc", "serde", "sp-blockchain", - "sp-core 7.0.0", - "sp-runtime 7.0.0", + "sp-core", + "sp-runtime", "thiserror", ] @@ -7709,14 +7419,14 @@ dependencies = [ "sc-client-api", "sc-consensus", "sc-telemetry", - "sp-arithmetic 6.0.0", + "sp-arithmetic", "sp-blockchain", "sp-consensus", "sp-consensus-slots", - "sp-core 7.0.0", - "sp-inherents 4.0.0-dev", - "sp-runtime 7.0.0", - "sp-state-machine 0.13.0", + "sp-core", + "sp-inherents", + "sp-runtime", + "sp-state-machine", ] [[package]] @@ -7730,15 +7440,15 @@ dependencies = [ "sc-executor-common", "sc-executor-wasmi", "sc-executor-wasmtime", - "sp-api 4.0.0-dev", - "sp-core 7.0.0", - "sp-externalities 0.13.0", - "sp-io 7.0.0", - "sp-panic-handler 5.0.0", - "sp-runtime-interface 7.0.0", - "sp-trie 7.0.0", - "sp-version 5.0.0", - "sp-wasm-interface 7.0.0", + "sp-api", + "sp-core", + "sp-externalities", + "sp-io", + "sp-panic-handler", + "sp-runtime-interface", + "sp-trie", + "sp-version", + "sp-wasm-interface", "tracing", "wasmi", ] @@ -7750,7 +7460,7 @@ source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.4 dependencies = [ "sc-allocator", "sp-maybe-compressed-blob", - "sp-wasm-interface 7.0.0", + "sp-wasm-interface", "thiserror", "wasm-instrument", "wasmi", @@ -7764,8 +7474,8 @@ dependencies = [ "log", "sc-allocator", "sc-executor-common", - "sp-runtime-interface 7.0.0", - "sp-wasm-interface 7.0.0", + "sp-runtime-interface", + "sp-wasm-interface", "wasmi", ] @@ -7782,9 +7492,9 @@ dependencies = [ "rustix 0.36.15", "sc-allocator", "sc-executor-common", - "sp-runtime-interface 7.0.0", - "sp-wasm-interface 7.0.0", - "wasmtime 6.0.2", + "sp-runtime-interface", + "sp-wasm-interface", + "wasmtime", ] [[package]] @@ -7800,7 +7510,7 @@ dependencies = [ "sc-network", "sc-network-common", "sp-blockchain", - "sp-runtime 7.0.0", + "sp-runtime", ] [[package]] @@ -7812,9 +7522,9 @@ dependencies = [ "async-trait", "parking_lot 0.12.1", "serde_json", - "sp-application-crypto 7.0.0", - "sp-core 7.0.0", - "sp-keystore 0.13.0", + "sp-application-crypto", + "sp-core", + "sp-keystore", "thiserror", ] @@ -7852,11 +7562,11 @@ dependencies = [ "serde_json", "smallvec", "snow", - "sp-arithmetic 6.0.0", + "sp-arithmetic", "sp-blockchain", "sp-consensus", - "sp-core 7.0.0", - "sp-runtime 7.0.0", + "sp-core", + "sp-runtime", "substrate-prometheus-endpoint", "thiserror", "unsigned-varint", @@ -7878,7 +7588,7 @@ dependencies = [ "sc-network", "sc-network-common", "sp-blockchain", - "sp-runtime 7.0.0", + "sp-runtime", "thiserror", "unsigned-varint", ] @@ -7905,7 +7615,7 @@ dependencies = [ "sp-blockchain", "sp-consensus", "sp-consensus-grandpa", - "sp-runtime 7.0.0", + "sp-runtime", "substrate-prometheus-endpoint", "thiserror", "zeroize", @@ -7925,7 +7635,7 @@ dependencies = [ "sc-network", "sc-network-common", "sc-peerset", - "sp-runtime 7.0.0", + "sp-runtime", "substrate-prometheus-endpoint", "tracing", ] @@ -7947,8 +7657,8 @@ dependencies = [ "sc-network-common", "sc-peerset", "sp-blockchain", - "sp-core 7.0.0", - "sp-runtime 7.0.0", + "sp-core", + "sp-runtime", "thiserror", ] @@ -7976,12 +7686,12 @@ dependencies = [ "sc-peerset", "sc-utils", "smallvec", - "sp-arithmetic 6.0.0", + "sp-arithmetic", "sp-blockchain", "sp-consensus", "sp-consensus-grandpa", - "sp-core 7.0.0", - "sp-runtime 7.0.0", + "sp-core", + "sp-runtime", "substrate-prometheus-endpoint", "thiserror", ] @@ -8002,7 +7712,7 @@ dependencies = [ "sc-peerset", "sc-utils", "sp-consensus", - "sp-runtime 7.0.0", + "sp-runtime", "substrate-prometheus-endpoint", ] @@ -8029,10 +7739,10 @@ dependencies = [ "sc-network-common", "sc-peerset", "sc-utils", - "sp-api 4.0.0-dev", - "sp-core 7.0.0", + "sp-api", + "sp-core", "sp-offchain", - "sp-runtime 7.0.0", + "sp-runtime", "threadpool", "tracing", ] @@ -8077,15 +7787,15 @@ dependencies = [ "sc-transaction-pool-api", "sc-utils", "serde_json", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-core 7.0.0", - "sp-keystore 0.13.0", + "sp-core", + "sp-keystore", "sp-offchain", "sp-rpc", - "sp-runtime 7.0.0", - "sp-session 4.0.0-dev", - "sp-version 5.0.0", + "sp-runtime", + "sp-session", + "sp-version", "tokio", ] @@ -8101,10 +7811,10 @@ dependencies = [ "scale-info", "serde", "serde_json", - "sp-core 7.0.0", + "sp-core", "sp-rpc", - "sp-runtime 7.0.0", - "sp-version 5.0.0", + "sp-runtime", + "sp-version", "thiserror", ] @@ -8140,11 +7850,11 @@ dependencies = [ "sc-client-api", "sc-transaction-pool-api", "serde", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-core 7.0.0", - "sp-runtime 7.0.0", - "sp-version 5.0.0", + "sp-core", + "sp-runtime", + "sp-version", "thiserror", "tokio-stream", ] @@ -8192,20 +7902,20 @@ dependencies = [ "sc-utils", "serde", "serde_json", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", - "sp-core 7.0.0", - "sp-externalities 0.13.0", - "sp-keystore 0.13.0", - "sp-runtime 7.0.0", - "sp-session 4.0.0-dev", - "sp-state-machine 0.13.0", - "sp-storage 7.0.0", + "sp-core", + "sp-externalities", + "sp-keystore", + "sp-runtime", + "sp-session", + "sp-state-machine", + "sp-storage", "sp-transaction-pool", "sp-transaction-storage-proof", - "sp-trie 7.0.0", - "sp-version 5.0.0", + "sp-trie", + "sp-version", "static_init", "substrate-prometheus-endpoint", "tempfile", @@ -8223,7 +7933,7 @@ dependencies = [ "log", "parity-scale-codec", "parking_lot 0.12.1", - "sp-core 7.0.0", + "sp-core", ] [[package]] @@ -8237,7 +7947,7 @@ dependencies = [ "log", "sc-client-db", "sc-utils", - "sp-core 7.0.0", + "sp-core", "thiserror", "tokio", ] @@ -8257,7 +7967,7 @@ dependencies = [ "serde", "serde_json", "sp-blockchain", - "sp-runtime 7.0.0", + "sp-runtime", "thiserror", ] @@ -8270,14 +7980,14 @@ dependencies = [ "libc", "log", "rand 0.8.5", - "rand_pcg 0.3.1", + "rand_pcg", "regex", "sc-telemetry", "serde", "serde_json", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-std 5.0.0", + "sp-core", + "sp-io", + "sp-std", ] [[package]] @@ -8318,12 +8028,12 @@ dependencies = [ "sc-rpc-server", "sc-tracing-proc-macro", "serde", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-core 7.0.0", + "sp-core", "sp-rpc", - "sp-runtime 7.0.0", - "sp-tracing 6.0.0", + "sp-runtime", + "sp-tracing", "thiserror", "tracing", "tracing-log", @@ -8358,11 +8068,11 @@ dependencies = [ "sc-transaction-pool-api", "sc-utils", "serde", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-core 7.0.0", - "sp-runtime 7.0.0", - "sp-tracing 6.0.0", + "sp-core", + "sp-runtime", + "sp-tracing", "sp-transaction-pool", "substrate-prometheus-endpoint", "thiserror", @@ -8378,7 +8088,7 @@ dependencies = [ "log", "serde", "sp-blockchain", - "sp-runtime 7.0.0", + "sp-runtime", "thiserror", ] @@ -8394,7 +8104,7 @@ dependencies = [ "log", "parking_lot 0.12.1", "prometheus", - "sp-arithmetic 6.0.0", + "sp-arithmetic", ] [[package]] @@ -8776,18 +8486,6 @@ dependencies = [ "rand_core 0.6.4", ] -[[package]] -name = "simba" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e82063457853d00243beda9952e910b82593e4b07ae9f721b9278a99a0d3d5c" -dependencies = [ - "approx", - "num-complex", - "num-traits", - "paste", -] - [[package]] name = "simba" version = "0.8.1" @@ -8893,37 +8591,18 @@ name = "sp-api" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "hash-db 0.16.0", + "hash-db", "log", "parity-scale-codec", "scale-info", - "sp-api-proc-macro 4.0.0-dev", - "sp-core 7.0.0", + "sp-api-proc-macro", + "sp-core", "sp-metadata-ir", - "sp-runtime 7.0.0", - "sp-state-machine 0.13.0", - "sp-std 5.0.0", - "sp-trie 7.0.0", - "sp-version 5.0.0", - "thiserror", -] - -[[package]] -name = "sp-api" -version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "070df9182f9d4c703375218a1a8542af7ee879a2684f4776e141a3290b39ef9b" -dependencies = [ - "hash-db 0.15.2", - "log", - "parity-scale-codec", - "sp-api-proc-macro 4.0.0", - "sp-core 8.0.0", - "sp-runtime 8.0.0", - "sp-state-machine 0.14.0", - "sp-std 6.0.0", - "sp-trie 8.0.0", - "sp-version 6.0.0", + "sp-runtime", + "sp-state-machine", + "sp-std", + "sp-trie", + "sp-version", "thiserror", ] @@ -8942,43 +8621,16 @@ dependencies = [ ] [[package]] -name = "sp-api-proc-macro" -version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74e620b045c0a4fa640fa50623d7da6575115d8a70c54926cfd99f3f7727d323" -dependencies = [ - "blake2", - "proc-macro-crate", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "sp-application-crypto" -version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" -dependencies = [ - "parity-scale-codec", - "scale-info", - "serde", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-std 5.0.0", -] - -[[package]] -name = "sp-application-crypto" -version = "8.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6f13d58fdde9872787976bd5d911b1ca7dacabed098b8e6ef99462d071b29d3" +name = "sp-application-crypto" +version = "7.0.0" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 8.0.0", - "sp-io 8.0.0", - "sp-std 6.0.0", + "sp-core", + "sp-io", + "sp-std", ] [[package]] @@ -8991,23 +8643,7 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-std 5.0.0", - "static_assertions", -] - -[[package]] -name = "sp-arithmetic" -version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd6413ad82d166d40d995aa95ca6e0cbb473f973d3a2f0b433ae19813048c6c1" -dependencies = [ - "integer-sqrt", - "num-traits", - "parity-scale-codec", - "scale-info", - "serde", - "sp-debug-derive 6.0.0", - "sp-std 6.0.0", + "sp-std", "static_assertions", ] @@ -9018,10 +8654,10 @@ source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.4 dependencies = [ "parity-scale-codec", "scale-info", - "sp-api 4.0.0-dev", - "sp-application-crypto 7.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-api", + "sp-application-crypto", + "sp-runtime", + "sp-std", ] [[package]] @@ -9030,10 +8666,10 @@ version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "parity-scale-codec", - "sp-api 4.0.0-dev", - "sp-inherents 4.0.0-dev", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-api", + "sp-inherents", + "sp-runtime", + "sp-std", ] [[package]] @@ -9046,11 +8682,11 @@ dependencies = [ "lru", "parity-scale-codec", "parking_lot 0.12.1", - "sp-api 4.0.0-dev", + "sp-api", "sp-consensus", "sp-database", - "sp-runtime 7.0.0", - "sp-state-machine 0.13.0", + "sp-runtime", + "sp-state-machine", "thiserror", ] @@ -9062,10 +8698,10 @@ dependencies = [ "async-trait", "futures", "log", - "sp-core 7.0.0", - "sp-inherents 4.0.0-dev", - "sp-runtime 7.0.0", - "sp-state-machine 0.13.0", + "sp-core", + "sp-inherents", + "sp-runtime", + "sp-state-machine", "thiserror", ] @@ -9077,14 +8713,14 @@ dependencies = [ "async-trait", "parity-scale-codec", "scale-info", - "sp-api 4.0.0-dev", - "sp-application-crypto 7.0.0", + "sp-api", + "sp-application-crypto", "sp-consensus", "sp-consensus-slots", - "sp-inherents 4.0.0-dev", - "sp-runtime 7.0.0", - "sp-std 5.0.0", - "sp-timestamp 4.0.0-dev", + "sp-inherents", + "sp-runtime", + "sp-std", + "sp-timestamp", ] [[package]] @@ -9096,16 +8732,16 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api 4.0.0-dev", - "sp-application-crypto 7.0.0", + "sp-api", + "sp-application-crypto", "sp-consensus", "sp-consensus-slots", - "sp-core 7.0.0", - "sp-inherents 4.0.0-dev", - "sp-keystore 0.13.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", - "sp-timestamp 4.0.0-dev", + "sp-core", + "sp-inherents", + "sp-keystore", + "sp-runtime", + "sp-std", + "sp-timestamp", ] [[package]] @@ -9117,13 +8753,13 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api 4.0.0-dev", - "sp-application-crypto 7.0.0", - "sp-core 7.0.0", - "sp-io 7.0.0", + "sp-api", + "sp-application-crypto", + "sp-core", + "sp-io", "sp-mmr-primitives", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-runtime", + "sp-std", "strum", ] @@ -9137,12 +8773,12 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api 4.0.0-dev", - "sp-application-crypto 7.0.0", - "sp-core 7.0.0", - "sp-keystore 0.13.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-api", + "sp-application-crypto", + "sp-core", + "sp-keystore", + "sp-runtime", + "sp-std", ] [[package]] @@ -9153,8 +8789,8 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-std 5.0.0", - "sp-timestamp 4.0.0-dev", + "sp-std", + "sp-timestamp", ] [[package]] @@ -9170,7 +8806,7 @@ dependencies = [ "dyn-clonable", "ed25519-zebra", "futures", - "hash-db 0.16.0", + "hash-db", "hash256-std-hasher", "impl-serde", "lazy_static", @@ -9188,62 +8824,16 @@ dependencies = [ "secp256k1", "secrecy", "serde", - "sp-core-hashing 5.0.0", - "sp-debug-derive 5.0.0", - "sp-externalities 0.13.0", - "sp-runtime-interface 7.0.0", - "sp-std 5.0.0", - "sp-storage 7.0.0", + "sp-core-hashing", + "sp-debug-derive", + "sp-externalities", + "sp-runtime-interface", + "sp-std", + "sp-storage", "ss58-registry", "substrate-bip39", "thiserror", - "tiny-bip39 1.0.0", - "zeroize", -] - -[[package]] -name = "sp-core" -version = "8.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64002b155ecf2e000b65b777d392b9a79b2865823b17e4511cb131b45ba537cb" -dependencies = [ - "array-bytes 4.2.0", - "base58", - "bitflags 1.3.2", - "blake2", - "byteorder", - "dyn-clonable", - "ed25519-zebra", - "futures", - "hash-db 0.15.2", - "hash256-std-hasher", - "impl-serde", - "lazy_static", - "libsecp256k1", - "log", - "merlin", - "num-traits", - "parity-scale-codec", - "parking_lot 0.12.1", - "primitive-types", - "rand 0.7.3", - "regex", - "scale-info", - "schnorrkel", - "secp256k1", - "secrecy", - "serde", - "sp-core-hashing 6.0.0", - "sp-debug-derive 6.0.0", - "sp-externalities 0.14.0", - "sp-runtime-interface 8.0.0", - "sp-std 6.0.0", - "sp-storage 8.0.0", - "ss58-registry", - "substrate-bip39", - "thiserror", - "tiny-bip39 0.8.2", - "wasmi", + "tiny-bip39", "zeroize", ] @@ -9257,22 +8847,7 @@ dependencies = [ "digest 0.10.7", "sha2 0.10.7", "sha3", - "sp-std 5.0.0", - "twox-hash", -] - -[[package]] -name = "sp-core-hashing" -version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbc2d1947252b7a4e403b0a260f596920443742791765ec111daa2bbf98eff25" -dependencies = [ - "blake2", - "byteorder", - "digest 0.10.7", - "sha2 0.10.7", - "sha3", - "sp-std 6.0.0", + "sp-std", "twox-hash", ] @@ -9283,22 +8858,10 @@ source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.4 dependencies = [ "proc-macro2", "quote", - "sp-core-hashing 5.0.0", + "sp-core-hashing", "syn 2.0.29", ] -[[package]] -name = "sp-core-hashing-proc-macro" -version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5833921310f9883f2093849d3f5e9e57e9890f6b60839498b08d4c72572cc602" -dependencies = [ - "proc-macro2", - "quote", - "sp-core-hashing 6.0.0", - "syn 1.0.109", -] - [[package]] name = "sp-database" version = "4.0.0-dev" @@ -9318,17 +8881,6 @@ dependencies = [ "syn 2.0.29", ] -[[package]] -name = "sp-debug-derive" -version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66fb9dc63d54de7d7bed62a505b6e0bd66c122525ea1abb348f6564717c3df2d" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "sp-externalities" version = "0.13.0" @@ -9336,20 +8888,8 @@ source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.4 dependencies = [ "environmental", "parity-scale-codec", - "sp-std 5.0.0", - "sp-storage 7.0.0", -] - -[[package]] -name = "sp-externalities" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc449def822987afd81155448d79d371939fb7495f43df33f8277c64ca69ed38" -dependencies = [ - "environmental", - "parity-scale-codec", - "sp-std 6.0.0", - "sp-storage 8.0.0", + "sp-std", + "sp-storage", ] [[package]] @@ -9361,24 +8901,9 @@ dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-core 7.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", - "thiserror", -] - -[[package]] -name = "sp-inherents" -version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f78893e4a6dd0355094eb1e352ba6f6999d1430be1a4796295ca16ae6783fef1" -dependencies = [ - "async-trait", - "impl-trait-for-tuples", - "parity-scale-codec", - "sp-core 8.0.0", - "sp-runtime 8.0.0", - "sp-std 6.0.0", + "sp-core", + "sp-runtime", + "sp-std", "thiserror", ] @@ -9396,42 +8921,14 @@ dependencies = [ "parity-scale-codec", "rustversion", "secp256k1", - "sp-core 7.0.0", - "sp-externalities 0.13.0", - "sp-keystore 0.13.0", - "sp-runtime-interface 7.0.0", - "sp-state-machine 0.13.0", - "sp-std 5.0.0", - "sp-tracing 6.0.0", - "sp-trie 7.0.0", - "tracing", - "tracing-core", -] - -[[package]] -name = "sp-io" -version = "8.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "178c67a394b51c27715c6d271f1deb0567e966d228efe485f053e33792444a08" -dependencies = [ - "bytes", - "ed25519-dalek 1.0.1", - "futures", - "hash-db 0.15.2", - "libsecp256k1", - "log", - "parity-scale-codec", - "parking_lot 0.12.1", - "secp256k1", - "sp-core 8.0.0", - "sp-externalities 0.14.0", - "sp-keystore 0.14.0", - "sp-runtime-interface 8.0.0", - "sp-state-machine 0.14.0", - "sp-std 6.0.0", - "sp-tracing 7.0.0", - "sp-trie 8.0.0", - "sp-wasm-interface 8.0.0", + "sp-core", + "sp-externalities", + "sp-keystore", + "sp-runtime-interface", + "sp-state-machine", + "sp-std", + "sp-tracing", + "sp-trie", "tracing", "tracing-core", ] @@ -9442,8 +8939,8 @@ version = "7.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "lazy_static", - "sp-core 7.0.0", - "sp-runtime 7.0.0", + "sp-core", + "sp-runtime", "strum", ] @@ -9456,25 +8953,8 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", "serde", - "sp-core 7.0.0", - "sp-externalities 0.13.0", - "thiserror", -] - -[[package]] -name = "sp-keystore" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e2a163dfcc8dfb5ff37df889d60949c875377693062559ac8e3412936a80d1a" -dependencies = [ - "async-trait", - "futures", - "merlin", - "parity-scale-codec", - "parking_lot 0.12.1", - "schnorrkel", - "sp-core 8.0.0", - "sp-externalities 0.14.0", + "sp-core", + "sp-externalities", "thiserror", ] @@ -9495,7 +8975,7 @@ dependencies = [ "frame-metadata", "parity-scale-codec", "scale-info", - "sp-std 5.0.0", + "sp-std", ] [[package]] @@ -9508,11 +8988,11 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api 4.0.0-dev", - "sp-core 7.0.0", - "sp-debug-derive 5.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-api", + "sp-core", + "sp-debug-derive", + "sp-runtime", + "sp-std", "thiserror", ] @@ -9524,10 +9004,10 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-arithmetic 6.0.0", - "sp-core 7.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", + "sp-arithmetic", + "sp-core", + "sp-runtime", + "sp-std", ] [[package]] @@ -9535,9 +9015,9 @@ name = "sp-offchain" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "sp-api 4.0.0-dev", - "sp-core 7.0.0", - "sp-runtime 7.0.0", + "sp-api", + "sp-core", + "sp-runtime", ] [[package]] @@ -9550,17 +9030,6 @@ dependencies = [ "regex", ] -[[package]] -name = "sp-panic-handler" -version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4abed79c3d5b3622f65ab065676addd9923b9b122cd257df23e2757ce487c6d2" -dependencies = [ - "backtrace", - "lazy_static", - "regex", -] - [[package]] name = "sp-rpc" version = "6.0.0" @@ -9568,7 +9037,7 @@ source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.4 dependencies = [ "rustc-hash", "serde", - "sp-core 7.0.0", + "sp-core", ] [[package]] @@ -9585,35 +9054,12 @@ dependencies = [ "rand 0.8.5", "scale-info", "serde", - "sp-application-crypto 7.0.0", - "sp-arithmetic 6.0.0", - "sp-core 7.0.0", - "sp-io 7.0.0", - "sp-std 5.0.0", - "sp-weights 4.0.0", -] - -[[package]] -name = "sp-runtime" -version = "8.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17471f6d06c320da233298297296df1d08e4cf8f0294d6955415ef05ecfbad1c" -dependencies = [ - "either", - "hash256-std-hasher", - "impl-trait-for-tuples", - "log", - "parity-scale-codec", - "paste", - "rand 0.7.3", - "scale-info", - "serde", - "sp-application-crypto 8.0.0", - "sp-arithmetic 7.0.0", - "sp-core 8.0.0", - "sp-io 8.0.0", - "sp-std 6.0.0", - "sp-weights 5.0.0", + "sp-application-crypto", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-std", + "sp-weights", ] [[package]] @@ -9625,31 +9071,12 @@ dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.13.0", - "sp-runtime-interface-proc-macro 6.0.0", - "sp-std 5.0.0", - "sp-storage 7.0.0", - "sp-tracing 6.0.0", - "sp-wasm-interface 7.0.0", - "static_assertions", -] - -[[package]] -name = "sp-runtime-interface" -version = "8.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0070b8bfa457e83889d78b890a369b4d7a39dcf66435b49aa2c2cee3c0c90efe" -dependencies = [ - "bytes", - "impl-trait-for-tuples", - "parity-scale-codec", - "primitive-types", - "sp-externalities 0.14.0", - "sp-runtime-interface-proc-macro 7.0.0", - "sp-std 6.0.0", - "sp-storage 8.0.0", - "sp-tracing 7.0.0", - "sp-wasm-interface 8.0.0", + "sp-externalities", + "sp-runtime-interface-proc-macro", + "sp-std", + "sp-storage", + "sp-tracing", + "sp-wasm-interface", "static_assertions", ] @@ -9665,19 +9092,6 @@ dependencies = [ "syn 2.0.29", ] -[[package]] -name = "sp-runtime-interface-proc-macro" -version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00083a77e938c4f35d0bde7ca0b6e5f616158ebe11af6063795aa664d92a238b" -dependencies = [ - "Inflector", - "proc-macro-crate", - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "sp-session" version = "4.0.0-dev" @@ -9685,26 +9099,11 @@ source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.4 dependencies = [ "parity-scale-codec", "scale-info", - "sp-api 4.0.0-dev", - "sp-core 7.0.0", - "sp-runtime 7.0.0", - "sp-staking 4.0.0-dev", - "sp-std 5.0.0", -] - -[[package]] -name = "sp-session" -version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "015133235d6ad5cee8d3cbc5f6e5a2be2149ec6d22865935bd5784d56baba97d" -dependencies = [ - "parity-scale-codec", - "scale-info", - "sp-api 4.0.0", - "sp-core 8.0.0", - "sp-runtime 8.0.0", - "sp-staking 4.0.0", - "sp-std 6.0.0", + "sp-api", + "sp-core", + "sp-runtime", + "sp-staking", + "sp-std", ] [[package]] @@ -9715,22 +9114,9 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", -] - -[[package]] -name = "sp-staking" -version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a84c9a790241612d8153077cf4cd06f57ced8824629c911e394a9726af222b76" -dependencies = [ - "parity-scale-codec", - "scale-info", - "sp-core 8.0.0", - "sp-runtime 8.0.0", - "sp-std 6.0.0", + "sp-core", + "sp-runtime", + "sp-std", ] [[package]] @@ -9738,55 +9124,26 @@ name = "sp-state-machine" version = "0.13.0" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "hash-db 0.16.0", + "hash-db", "log", "parity-scale-codec", "parking_lot 0.12.1", "rand 0.8.5", "smallvec", - "sp-core 7.0.0", - "sp-externalities 0.13.0", - "sp-panic-handler 5.0.0", - "sp-std 5.0.0", - "sp-trie 7.0.0", + "sp-core", + "sp-externalities", + "sp-panic-handler", + "sp-std", + "sp-trie", "thiserror", "tracing", ] -[[package]] -name = "sp-state-machine" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a657e9ddc193a09f68d130c4231cf11545f5e922714a1074ba82e6e2a909516d" -dependencies = [ - "hash-db 0.15.2", - "log", - "num-traits", - "parity-scale-codec", - "parking_lot 0.12.1", - "rand 0.7.3", - "smallvec", - "sp-core 8.0.0", - "sp-externalities 0.14.0", - "sp-panic-handler 6.0.0", - "sp-std 6.0.0", - "sp-trie 8.0.0", - "thiserror", - "tracing", - "trie-root 0.17.0", -] - [[package]] name = "sp-std" version = "5.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" -[[package]] -name = "sp-std" -version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af0ee286f98455272f64ac5bb1384ff21ac029fbb669afbaf48477faff12760e" - [[package]] name = "sp-storage" version = "7.0.0" @@ -9796,22 +9153,8 @@ dependencies = [ "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 5.0.0", - "sp-std 5.0.0", -] - -[[package]] -name = "sp-storage" -version = "8.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2247b6ea6219336596869549792460a69e70bc1ec9d1ee5f537b345dbfecf76d" -dependencies = [ - "impl-serde", - "parity-scale-codec", - "ref-cast", - "serde", - "sp-debug-derive 6.0.0", - "sp-std 6.0.0", + "sp-debug-derive", + "sp-std", ] [[package]] @@ -9823,26 +9166,9 @@ dependencies = [ "futures-timer", "log", "parity-scale-codec", - "sp-inherents 4.0.0-dev", - "sp-runtime 7.0.0", - "sp-std 5.0.0", - "thiserror", -] - -[[package]] -name = "sp-timestamp" -version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62f2e4cc33db256e8de8ad7cc56cfdaab8f5d13c3816f4d935017a11fb7ea860" -dependencies = [ - "async-trait", - "futures-timer", - "log", - "parity-scale-codec", - "sp-api 4.0.0", - "sp-inherents 4.0.0", - "sp-runtime 8.0.0", - "sp-std 6.0.0", + "sp-inherents", + "sp-runtime", + "sp-std", "thiserror", ] @@ -9852,20 +9178,7 @@ version = "6.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "parity-scale-codec", - "sp-std 5.0.0", - "tracing", - "tracing-core", - "tracing-subscriber", -] - -[[package]] -name = "sp-tracing" -version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b22d28a0bc2365dfb86644d14f2682a79da35891d4656d4896fb09fb05ff1e6c" -dependencies = [ - "parity-scale-codec", - "sp-std 6.0.0", + "sp-std", "tracing", "tracing-core", "tracing-subscriber", @@ -9876,8 +9189,8 @@ name = "sp-transaction-pool" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ - "sp-api 4.0.0-dev", - "sp-runtime 7.0.0", + "sp-api", + "sp-runtime", ] [[package]] @@ -9889,11 +9202,11 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-core 7.0.0", - "sp-inherents 4.0.0-dev", - "sp-runtime 7.0.0", - "sp-std 5.0.0", - "sp-trie 7.0.0", + "sp-core", + "sp-inherents", + "sp-runtime", + "sp-std", + "sp-trie", ] [[package]] @@ -9902,45 +9215,21 @@ version = "7.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "ahash 0.8.3", - "hash-db 0.16.0", + "hash-db", "hashbrown 0.13.2", "lazy_static", - "memory-db 0.32.0", + "memory-db", "nohash-hasher", "parity-scale-codec", "parking_lot 0.12.1", "scale-info", "schnellru", - "sp-core 7.0.0", - "sp-std 5.0.0", + "sp-core", + "sp-std", "thiserror", "tracing", - "trie-db 0.27.1", - "trie-root 0.18.0", -] - -[[package]] -name = "sp-trie" -version = "8.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4675a9eae3187a0a2a12ba579c34c2c9bcc20b22d9b92f46f813395c972dd451" -dependencies = [ - "ahash 0.7.6", - "hash-db 0.15.2", - "hashbrown 0.12.3", - "lazy_static", - "lru", - "memory-db 0.31.0", - "nohash-hasher", - "parity-scale-codec", - "parking_lot 0.12.1", - "scale-info", - "sp-core 8.0.0", - "sp-std 6.0.0", - "thiserror", - "tracing", - "trie-db 0.24.0", - "trie-root 0.17.0", + "trie-db", + "trie-root", ] [[package]] @@ -9953,28 +9242,10 @@ dependencies = [ "parity-wasm", "scale-info", "serde", - "sp-core-hashing-proc-macro 5.0.0", - "sp-runtime 7.0.0", - "sp-std 5.0.0", - "sp-version-proc-macro 4.0.0-dev", - "thiserror", -] - -[[package]] -name = "sp-version" -version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2fcfdeddf36aa69a3f49781ad9320a4823997547e99629443a3ac6d7d8bbebd" -dependencies = [ - "impl-serde", - "parity-scale-codec", - "parity-wasm", - "scale-info", - "serde", - "sp-core-hashing-proc-macro 6.0.0", - "sp-runtime 8.0.0", - "sp-std 6.0.0", - "sp-version-proc-macro 5.0.0", + "sp-core-hashing-proc-macro", + "sp-runtime", + "sp-std", + "sp-version-proc-macro", "thiserror", ] @@ -9989,18 +9260,6 @@ dependencies = [ "syn 2.0.29", ] -[[package]] -name = "sp-version-proc-macro" -version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97bbeece15266afc30881ecae586fd28e6c123810b9ced1b8706daa081fe9c2e" -dependencies = [ - "parity-scale-codec", - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "sp-wasm-interface" version = "7.0.0" @@ -10010,23 +9269,9 @@ dependencies = [ "impl-trait-for-tuples", "log", "parity-scale-codec", - "sp-std 5.0.0", - "wasmi", - "wasmtime 6.0.2", -] - -[[package]] -name = "sp-wasm-interface" -version = "8.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ebc377987d42f8fc20e3f4ec4fd1147dd098fe90bcb4269e1eddb04e920f889" -dependencies = [ - "impl-trait-for-tuples", - "log", - "parity-scale-codec", - "sp-std 6.0.0", + "sp-std", "wasmi", - "wasmtime 1.0.2", + "wasmtime", ] [[package]] @@ -10038,27 +9283,10 @@ dependencies = [ "scale-info", "serde", "smallvec", - "sp-arithmetic 6.0.0", - "sp-core 7.0.0", - "sp-debug-derive 5.0.0", - "sp-std 5.0.0", -] - -[[package]] -name = "sp-weights" -version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc146eec45285b3627a1671ebf22fc1589de8b81170309c33f4ec6cff0241731" -dependencies = [ - "impl-trait-for-tuples", - "parity-scale-codec", - "scale-info", - "serde", - "smallvec", - "sp-arithmetic 7.0.0", - "sp-core 8.0.0", - "sp-debug-derive 6.0.0", - "sp-std 6.0.0", + "sp-arithmetic", + "sp-core", + "sp-debug-derive", + "sp-std", ] [[package]] @@ -10162,19 +9390,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "statrs" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05bdbb8e4e78216a85785a85d3ec3183144f98d0097b9281802c019bb07a6f05" -dependencies = [ - "approx", - "lazy_static", - "nalgebra 0.27.1", - "num-traits", - "rand 0.8.5", -] - [[package]] name = "strsim" version = "0.10.0" @@ -10255,11 +9470,11 @@ dependencies = [ "parity-scale-codec", "sc-rpc-api", "sc-transaction-pool-api", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-blockchain", - "sp-core 7.0.0", - "sp-runtime 7.0.0", + "sp-core", + "sp-runtime", ] [[package]] @@ -10284,7 +9499,7 @@ dependencies = [ "log", "sc-rpc-api", "serde", - "sp-runtime 7.0.0", + "sp-runtime", ] [[package]] @@ -10306,11 +9521,11 @@ dependencies = [ "serde_json", "sp-blockchain", "sp-consensus", - "sp-core 7.0.0", + "sp-core", "sp-keyring", - "sp-keystore 0.13.0", - "sp-runtime 7.0.0", - "sp-state-machine 0.13.0", + "sp-keystore", + "sp-runtime", + "sp-state-machine", ] [[package]] @@ -10319,41 +9534,41 @@ version = "2.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.42#ff24c60ac7d9f87727ecdd0ded9a80c56e4f4b65" dependencies = [ "cfg-if", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-rpc-runtime-api", "log", - "memory-db 0.32.0", + "memory-db", "pallet-babe", "pallet-beefy-mmr", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "parity-scale-codec", "sc-service", "scale-info", "serde", - "sp-api 4.0.0-dev", - "sp-application-crypto 7.0.0", + "sp-api", + "sp-application-crypto", "sp-block-builder", "sp-consensus-aura", "sp-consensus-babe", "sp-consensus-beefy", "sp-consensus-grandpa", - "sp-core 7.0.0", - "sp-externalities 0.13.0", - "sp-inherents 4.0.0-dev", - "sp-io 7.0.0", + "sp-core", + "sp-externalities", + "sp-inherents", + "sp-io", "sp-keyring", "sp-offchain", - "sp-runtime 7.0.0", - "sp-runtime-interface 7.0.0", - "sp-session 4.0.0-dev", - "sp-state-machine 0.13.0", - "sp-std 5.0.0", + "sp-runtime", + "sp-runtime-interface", + "sp-session", + "sp-state-machine", + "sp-std", "sp-transaction-pool", - "sp-trie 7.0.0", - "sp-version 5.0.0", + "sp-trie", + "sp-version", "substrate-wasm-builder", - "trie-db 0.27.1", + "trie-db", ] [[package]] @@ -10367,11 +9582,11 @@ dependencies = [ "sc-chain-spec", "sc-client-api", "sc-consensus", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", - "sp-core 7.0.0", - "sp-runtime 7.0.0", + "sp-core", + "sp-runtime", "substrate-test-client", "substrate-test-runtime", ] @@ -10603,25 +9818,6 @@ dependencies = [ "time-core", ] -[[package]] -name = "tiny-bip39" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffc59cb9dfc85bb312c3a78fd6aa8a8582e310b0fa885d5bb877f6dcc601839d" -dependencies = [ - "anyhow", - "hmac 0.8.1", - "once_cell", - "pbkdf2 0.4.0", - "rand 0.7.3", - "rustc-hash", - "sha2 0.9.9", - "thiserror", - "unicode-normalization", - "wasm-bindgen", - "zeroize", -] - [[package]] name = "tiny-bip39" version = "1.0.0" @@ -10916,48 +10112,26 @@ dependencies = [ "tracing-serde", ] -[[package]] -name = "trie-db" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "004e1e8f92535694b4cb1444dc5a8073ecf0815e3357f729638b9f8fc4062908" -dependencies = [ - "hash-db 0.15.2", - "hashbrown 0.12.3", - "log", - "rustc-hex", - "smallvec", -] - [[package]] name = "trie-db" version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "767abe6ffed88a1889671a102c2861ae742726f52e0a5a425b92c9fbfa7e9c85" dependencies = [ - "hash-db 0.16.0", + "hash-db", "hashbrown 0.13.2", "log", "rustc-hex", "smallvec", ] -[[package]] -name = "trie-root" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a36c5ca3911ed3c9a5416ee6c679042064b93fc637ded67e25f92e68d783891" -dependencies = [ - "hash-db 0.15.2", -] - [[package]] name = "trie-root" version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4ed310ef5ab98f5fa467900ed906cb9232dd5376597e00fd4cba2a449d06c0b" dependencies = [ - "hash-db 0.16.0", + "hash-db", ] [[package]] @@ -11029,22 +10203,22 @@ dependencies = [ "sc-service", "serde", "serde_json", - "sp-api 4.0.0-dev", + "sp-api", "sp-consensus-aura", "sp-consensus-babe", - "sp-core 7.0.0", - "sp-debug-derive 5.0.0", - "sp-externalities 0.13.0", - "sp-inherents 4.0.0-dev", - "sp-io 7.0.0", - "sp-keystore 0.13.0", + "sp-core", + "sp-debug-derive", + "sp-externalities", + "sp-inherents", + "sp-io", + "sp-keystore", "sp-rpc", - "sp-runtime 7.0.0", - "sp-state-machine 0.13.0", - "sp-timestamp 4.0.0-dev", + "sp-runtime", + "sp-state-machine", + "sp-timestamp", "sp-transaction-storage-proof", - "sp-version 5.0.0", - "sp-weights 4.0.0", + "sp-version", + "sp-weights", "substrate-rpc-client", "zstd 0.12.4", ] @@ -11448,15 +10622,6 @@ dependencies = [ "region", ] -[[package]] -name = "wasmparser" -version = "0.89.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab5d3e08b13876f96dd55608d03cd4883a0545884932d5adf11925876c96daef" -dependencies = [ - "indexmap 1.9.3", -] - [[package]] name = "wasmparser" version = "0.100.0" @@ -11467,31 +10632,6 @@ dependencies = [ "url", ] -[[package]] -name = "wasmtime" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ad5af6ba38311282f2a21670d96e78266e8c8e2f38cbcd52c254df6ccbc7731" -dependencies = [ - "anyhow", - "bincode", - "cfg-if", - "indexmap 1.9.3", - "libc", - "log", - "object 0.29.0", - "once_cell", - "paste", - "psm", - "serde", - "target-lexicon", - "wasmparser 0.89.1", - "wasmtime-environ 1.0.2", - "wasmtime-jit 1.0.2", - "wasmtime-runtime 1.0.2", - "windows-sys 0.36.1", -] - [[package]] name = "wasmtime" version = "6.0.2" @@ -11511,24 +10651,15 @@ dependencies = [ "rayon", "serde", "target-lexicon", - "wasmparser 0.100.0", + "wasmparser", "wasmtime-cache", "wasmtime-cranelift", - "wasmtime-environ 6.0.2", - "wasmtime-jit 6.0.2", - "wasmtime-runtime 6.0.2", + "wasmtime-environ", + "wasmtime-jit", + "wasmtime-runtime", "windows-sys 0.42.0", ] -[[package]] -name = "wasmtime-asm-macros" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45de63ddfc8b9223d1adc8f7b2ee5f35d1f6d112833934ad7ea66e4f4339e597" -dependencies = [ - "cfg-if", -] - [[package]] name = "wasmtime-asm-macros" version = "6.0.2" @@ -11566,7 +10697,7 @@ checksum = "3c366bb8647e01fd08cb5589976284b00abfded5529b33d7e7f3f086c68304a4" dependencies = [ "anyhow", "cranelift-codegen", - "cranelift-entity 0.93.2", + "cranelift-entity", "cranelift-frontend", "cranelift-native", "cranelift-wasm", @@ -11575,27 +10706,8 @@ dependencies = [ "object 0.29.0", "target-lexicon", "thiserror", - "wasmparser 0.100.0", - "wasmtime-environ 6.0.2", -] - -[[package]] -name = "wasmtime-environ" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebb881c61f4f627b5d45c54e629724974f8a8890d455bcbe634330cc27309644" -dependencies = [ - "anyhow", - "cranelift-entity 0.88.2", - "gimli 0.26.2", - "indexmap 1.9.3", - "log", - "object 0.29.0", - "serde", - "target-lexicon", - "thiserror", - "wasmparser 0.89.1", - "wasmtime-types 1.0.2", + "wasmparser", + "wasmtime-environ", ] [[package]] @@ -11605,7 +10717,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "47b8b50962eae38ee319f7b24900b7cf371f03eebdc17400c1dc8575fc10c9a7" dependencies = [ "anyhow", - "cranelift-entity 0.93.2", + "cranelift-entity", "gimli 0.26.2", "indexmap 1.9.3", "log", @@ -11613,32 +10725,8 @@ dependencies = [ "serde", "target-lexicon", "thiserror", - "wasmparser 0.100.0", - "wasmtime-types 6.0.2", -] - -[[package]] -name = "wasmtime-jit" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1985c628011fe26adf5e23a5301bdc79b245e0e338f14bb58b39e4e25e4d8681" -dependencies = [ - "addr2line 0.17.0", - "anyhow", - "bincode", - "cfg-if", - "cpp_demangle", - "gimli 0.26.2", - "log", - "object 0.29.0", - "rustc-demangle", - "rustix 0.35.14", - "serde", - "target-lexicon", - "thiserror", - "wasmtime-environ 1.0.2", - "wasmtime-runtime 1.0.2", - "windows-sys 0.36.1", + "wasmparser", + "wasmtime-types", ] [[package]] @@ -11658,22 +10746,13 @@ dependencies = [ "rustc-demangle", "serde", "target-lexicon", - "wasmtime-environ 6.0.2", - "wasmtime-jit-debug 6.0.2", + "wasmtime-environ", + "wasmtime-jit-debug", "wasmtime-jit-icache-coherence", - "wasmtime-runtime 6.0.2", + "wasmtime-runtime", "windows-sys 0.42.0", ] -[[package]] -name = "wasmtime-jit-debug" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f671b588486f5ccec8c5a3dba6b4c07eac2e66ab8c60e6f4e53717c77f709731" -dependencies = [ - "once_cell", -] - [[package]] name = "wasmtime-jit-debug" version = "6.0.2" @@ -11696,30 +10775,6 @@ dependencies = [ "windows-sys 0.42.0", ] -[[package]] -name = "wasmtime-runtime" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee8f92ad4b61736339c29361da85769ebc200f184361959d1792832e592a1afd" -dependencies = [ - "anyhow", - "cc", - "cfg-if", - "indexmap 1.9.3", - "libc", - "log", - "mach", - "memoffset 0.6.5", - "paste", - "rand 0.8.5", - "rustix 0.35.14", - "thiserror", - "wasmtime-asm-macros 1.0.2", - "wasmtime-environ 1.0.2", - "wasmtime-jit-debug 1.0.2", - "windows-sys 0.36.1", -] - [[package]] name = "wasmtime-runtime" version = "6.0.2" @@ -11738,34 +10793,22 @@ dependencies = [ "paste", "rand 0.8.5", "rustix 0.36.15", - "wasmtime-asm-macros 6.0.2", - "wasmtime-environ 6.0.2", - "wasmtime-jit-debug 6.0.2", + "wasmtime-asm-macros", + "wasmtime-environ", + "wasmtime-jit-debug", "windows-sys 0.42.0", ] -[[package]] -name = "wasmtime-types" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d23d61cb4c46e837b431196dd06abb11731541021916d03476a178b54dc07aeb" -dependencies = [ - "cranelift-entity 0.88.2", - "serde", - "thiserror", - "wasmparser 0.89.1", -] - [[package]] name = "wasmtime-types" version = "6.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "83e5572c5727c1ee7e8f28717aaa8400e4d22dcbd714ea5457d85b5005206568" dependencies = [ - "cranelift-entity 0.93.2", + "cranelift-entity", "serde", "thiserror", - "wasmparser 0.100.0", + "wasmparser", ] [[package]] @@ -12110,19 +11153,6 @@ dependencies = [ "windows-targets 0.48.5", ] -[[package]] -name = "windows-sys" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2" -dependencies = [ - "windows_aarch64_msvc 0.36.1", - "windows_i686_gnu 0.36.1", - "windows_i686_msvc 0.36.1", - "windows_x86_64_gnu 0.36.1", - "windows_x86_64_msvc 0.36.1", -] - [[package]] name = "windows-sys" version = "0.42.0" @@ -12204,12 +11234,6 @@ version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "17cffbe740121affb56fad0fc0e421804adf0ae00891205213b5cecd30db881d" -[[package]] -name = "windows_aarch64_msvc" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" - [[package]] name = "windows_aarch64_msvc" version = "0.42.2" @@ -12228,12 +11252,6 @@ version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2564fde759adb79129d9b4f54be42b32c89970c18ebf93124ca8870a498688ed" -[[package]] -name = "windows_i686_gnu" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" - [[package]] name = "windows_i686_gnu" version = "0.42.2" @@ -12252,12 +11270,6 @@ version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9cd9d32ba70453522332c14d38814bceeb747d80b3958676007acadd7e166956" -[[package]] -name = "windows_i686_msvc" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" - [[package]] name = "windows_i686_msvc" version = "0.42.2" @@ -12276,12 +11288,6 @@ version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cfce6deae227ee8d356d19effc141a509cc503dfd1f850622ec4b0f84428e1f4" -[[package]] -name = "windows_x86_64_gnu" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" - [[package]] name = "windows_x86_64_gnu" version = "0.42.2" @@ -12312,12 +11318,6 @@ version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d19538ccc21819d01deaf88d6a17eae6596a12e9aafdbb97916fb49896d89de9" -[[package]] -name = "windows_x86_64_msvc" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" - [[package]] name = "windows_x86_64_msvc" version = "0.42.2" diff --git a/crates/core-primitives/src/sidercar.rs b/crates/core-primitives/src/sidercar.rs index 370cc24..65742c8 100644 --- a/crates/core-primitives/src/sidercar.rs +++ b/crates/core-primitives/src/sidercar.rs @@ -163,6 +163,10 @@ impl Sidercar { pub fn save_to_local(&self) { save_to_localstorage_with_prefix(&self.id(), &self.encode(), SIDERCAR_PREFIX); } + + pub fn set_not_found(&mut self) { + self.status = Some(SidercarStatus::NotFound); + } } #[cfg(test)] diff --git a/crates/das-primitives/Cargo.toml b/crates/das-primitives/Cargo.toml index 68b380b..f356fc5 100644 --- a/crates/das-primitives/Cargo.toml +++ b/crates/das-primitives/Cargo.toml @@ -16,7 +16,7 @@ bench = false [dependencies] rust-kzg-blst = { git = "https://github.com/ZeroDAO/rust-kzg", rev = "de872ad", default-features = false} -kzg = { git = "https://github.com/ZeroDAO/rust-kzg", rev = "de872ad", default-features = false } +kzg = { git = "https://github.com/ZeroDAO/rust-kzg", rev = "de872ad", default-features = false} derive_more = "0.99.17" hex = { version = "0.4.3", default-features = false, features = ["alloc"] } @@ -48,6 +48,10 @@ default = [ "serde", "std", "parallel", + "rand", +] +rand = [ + "rust-kzg-blst/rand", ] embedded-kzg-settings = [] parallel = [ diff --git a/crates/das-primitives/src/crypto/mod.rs b/crates/das-primitives/src/crypto/mod.rs index d8cd08a..68fcc1d 100644 --- a/crates/das-primitives/src/crypto/mod.rs +++ b/crates/das-primitives/src/crypto/mod.rs @@ -79,6 +79,11 @@ macro_rules! kzg_type_with_size { pub fn size() -> usize { $size } + + #[cfg(feature = "rand")] + pub fn rand() -> Self { + Self(<$type>::rand()) + } } impl Hash for $name { diff --git a/crates/pallet-melo-store/Cargo.toml b/crates/pallet-melo-store/Cargo.toml index aeeea68..a37f177 100644 --- a/crates/pallet-melo-store/Cargo.toml +++ b/crates/pallet-melo-store/Cargo.toml @@ -20,6 +20,8 @@ frame-support = { version = "4.0.0-dev", default-features = false, git = "https: frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } log = { version = "0.4.17", default-features = false } +env_logger = "0.9" + sp-application-crypto = { version = "7.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-core = { version = "7.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } sp-io = { version = "7.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } @@ -27,7 +29,11 @@ sp-runtime = { version = "7.0.0", default-features = false, git = "https://githu sp-std = { version = "5.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } [dev-dependencies] -pallet-session = { version = "4.0.0-dev"} +pallet-session = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +sp-staking = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +pallet-authorship = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +pallet-im-online = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +melo-das-primitives = { version = "0.1.0", path = "../das-primitives" } [features] default = ["std"] diff --git a/crates/pallet-melo-store/src/lib.rs b/crates/pallet-melo-store/src/lib.rs index 86011d4..01a6cd5 100644 --- a/crates/pallet-melo-store/src/lib.rs +++ b/crates/pallet-melo-store/src/lib.rs @@ -17,10 +17,13 @@ pub mod weights; pub use weights::*; +mod mock; +mod tests; + use codec::{Decode, Encode, MaxEncodedLen}; use frame_support::{ pallet_prelude::*, - traits::{Get, OneSessionHandler, ValidatorSetWithIdentification}, + traits::{Get, OneSessionHandler}, BoundedSlice, WeakBoundedVec, }; use frame_system::{ @@ -32,6 +35,7 @@ use melo_das_primitives::config::BYTES_PER_BLOB; pub use pallet::*; use scale_info::TypeInfo; use sp_application_crypto::RuntimeAppPublic; +use sp_core::H256; use sp_runtime::{ offchain::storage::{MutateStorageError, StorageRetrievalError, StorageValueRef}, traits::AtLeast32BitUnsigned, @@ -39,8 +43,8 @@ use sp_runtime::{ }; use sp_std::prelude::*; -use melo_core_primitives::Sidercar; use melo_core_primitives::traits::HeaderCommitList; +use melo_core_primitives::{Sidercar, SidercarMetadata}; use melo_das_primitives::crypto::{KZGCommitment, KZGProof}; const DB_PREFIX: &[u8] = b"melodot/melo-store/unavailable-data-report"; @@ -104,12 +108,12 @@ where #[frame_support::pallet] pub mod pallet { use super::*; - use sp_core::H256; #[pallet::pallet] pub struct Pallet(_); pub type KZGCommitmentListFor = BoundedVec::MaxBlobNum>; + pub type KZGProofListFor = BoundedVec::MaxBlobNum>; #[derive(Clone, Eq, Default, PartialEq, Encode, Decode, MaxEncodedLen, TypeInfo)] #[scale_info(skip_type_params(T))] @@ -117,6 +121,7 @@ pub mod pallet { pub app_id: u32, pub from: T::AccountId, pub commitments: KZGCommitmentListFor, + pub proofs: KZGProofListFor, pub bytes_len: u32, pub data_hash: H256, pub is_available: bool, @@ -129,8 +134,6 @@ pub mod pallet { type RuntimeEvent: From> + IsType<::RuntimeEvent>; /// Type representing the weight of this pallet type WeightInfo: WeightInfo; - /// A type for retrieving the validators supposed to be online in a session. - type ValidatorSet: ValidatorSetWithIdentification; /// The identifier type for an authority. type AuthorityId: Member + Parameter @@ -146,7 +149,7 @@ pub mod pallet { type MaxBlobNum: Get; #[pallet::constant] - type UnsignedPriority: Get; + type MeloUnsignedPriority: Get; } // Store metadata of AppData @@ -210,6 +213,13 @@ pub mod pallet { /// Node that submitted the report from: AuthIndex, }, + /// New app ID has been registered + AppIdRegistered { + /// New app ID + app_id: u32, + /// From + from: T::AccountId, + }, } // Errors inform users that something went wrong. @@ -229,12 +239,18 @@ pub mod pallet { DuplicateItemExists, /// The data doesn't exist. DataNotExist, - /// Metadata modification is not allowed. - CannotModifyMetadata, /// The report has been submitted more than once. DuplicateReportSubmission, /// Exceeds the maximum total votes. ExceedMaxTotalVotes, + /// The report is for a block in the future. + ReportForFutureBlock, + /// The submitted availability data is empty. + SubmittedDataIsEmpty, + /// The number of commitments does not match the expected blob number. + MismatchedCommitmentsCount, + /// The number of proofs does not match the expected blob number. + MismatchedProofsCount, } #[pallet::call] @@ -248,13 +264,19 @@ pub mod pallet { data_hash: H256, commitments: Vec, proofs: Vec, - ) -> DispatchResultWithPostInfo { + ) -> DispatchResult { let who = ensure_signed(origin)?; + ensure!(bytes_len > 0, Error::::SubmittedDataIsEmpty); let blob_num = Blob::blob_count(bytes_len as usize, BYTES_PER_BLOB); ensure!(blob_num <= T::MaxBlobNum::get() as usize, Error::::ExceedMaxBlobLimit); + // Check if blob_num matches the length of commitments. + ensure!(blob_num == commitments.len(), Error::::MismatchedCommitmentsCount); + // Check if blob_num matches the length of proofs. + ensure!(blob_num == proofs.len(), Error::::MismatchedProofsCount); + let current_app_id = AppId::::get(); - ensure!(app_id <= current_app_id + 1, Error::::AppIdError); + ensure!(app_id <= current_app_id, Error::::AppIdError); let mut commitment_list: BoundedVec = BoundedVec::default(); @@ -262,12 +284,19 @@ pub mod pallet { .try_extend(commitments.iter().cloned()) .map_err(|_| Error::::ExceedMaxBlobPerBlock)?; + let mut proof_list: BoundedVec = + BoundedVec::default(); + proof_list + .try_extend(proofs.iter().cloned()) + .map_err(|_| Error::::ExceedMaxBlobPerBlock)?; + let metadata: BlobMetadata = BlobMetadata { app_id, from: who.clone(), commitments: commitment_list, bytes_len, data_hash, + proofs: proof_list, // Theoretically, the submitted data is likely to be available, // so we initially assume it's available. is_available: true, @@ -278,13 +307,8 @@ pub mod pallet { let mut metadata_len = 0; Metadata::::try_mutate(current_block_number, |metadata_vec| { metadata_len = metadata_vec.len(); - metadata_vec.try_push(metadata) - }) - .map_err(|_| Error::::ExceedMaxBlobPerBlock)?; - - if app_id == current_app_id + 1 { - AppId::::put(app_id); - } + metadata_vec.try_push(metadata).map_err(|_| Error::::ExceedMaxBlobPerBlock) + })?; Self::deposit_event(Event::DataReceived { data_hash, @@ -296,7 +320,7 @@ pub mod pallet { proofs, }); - Ok(().into()) + Ok(()) } #[pallet::call_index(1)] @@ -309,9 +333,14 @@ pub mod pallet { ensure_none(origin)?; let current_block_number: BlockNumberFor = >::block_number(); + ensure!( + unavailable_data_report.at_block <= current_block_number, + Error::::ReportForFutureBlock + ); + ensure!( unavailable_data_report.at_block + DELAY_CHECK_THRESHOLD.into() - == current_block_number, + >= current_block_number, Error::::ExceedUnavailableDataConfirmTime ); ensure!(!unavailable_data_report.index_set.is_empty(), Error::::IndexSetIsEmpty); @@ -319,35 +348,50 @@ pub mod pallet { let mut index_set = unavailable_data_report.index_set; index_set.sort(); + let original_len = index_set.len(); + index_set.dedup(); + ensure!(original_len == index_set.len(), Error::::DuplicateItemExists); + Metadata::::try_mutate( unavailable_data_report.at_block, |metadata_vec| -> DispatchResult { - let metadata_vec_mut = metadata_vec; - for window in index_set.windows(2) { - // Check for duplication - ensure!(window[0] != window[1], Error::::DuplicateItemExists); - let index = window[0]; - let metadata = metadata_vec_mut - // An error is thrown if the boundary is crossed - .get_mut(index as usize) - .ok_or(Error::::DataNotExist)?; - - if metadata.is_available { - >::handle_vote( - unavailable_data_report.at_block, - unavailable_data_report.authority_index, - metadata, - )?; - } + for &index in &index_set { + let metadata = + metadata_vec.get_mut(index as usize).ok_or(Error::::DataNotExist)?; + + match metadata.is_available { + false => { + // If the data is available, we don't need to do anything. + Ok(()) + }, + true => { + // If the data is unavailable, we need to handle the vote. + Self::handle_vote( + unavailable_data_report.at_block, + unavailable_data_report.authority_index, + metadata, + ) + }, + }?; } - Self::deposit_event(Event::ReportReceived { - at_block: unavailable_data_report.at_block, - from: unavailable_data_report.authority_index, - }); Ok(()) }, - ) - .map_err(|_| Error::::CannotModifyMetadata.into()) + )?; + Self::deposit_event(Event::ReportReceived { + at_block: unavailable_data_report.at_block, + from: unavailable_data_report.authority_index, + }); + Ok(()) + } + + #[pallet::call_index(2)] + #[pallet::weight(::WeightInfo::default())] + pub fn register_app(origin: OriginFor) -> DispatchResult { + let who = ensure_signed(origin)?; + let app_id = AppId::::get() + 1; + AppId::::put(app_id); + Self::deposit_event(Event::AppIdRegistered { app_id, from: who }); + Ok(().into()) } } @@ -411,7 +455,7 @@ pub mod pallet { } ValidTransaction::with_tag_prefix("MeloStore") - .priority(T::UnsignedPriority::get()) + .priority(T::MeloUnsignedPriority::get()) .longevity(DELAY_CHECK_THRESHOLD as u64) .propagate(true) .build() @@ -428,9 +472,14 @@ impl Pallet { .iter() .enumerate() .filter_map(|(i, metadata)| { - if let Some(sidercar) = - Sidercar::from_local(&metadata.data_hash.as_bytes()) - { + let sidercar_metadata = SidercarMetadata { + commitments: metadata.commitments.to_vec(), + data_len: metadata.bytes_len, + blobs_hash: metadata.data_hash, + proofs: metadata.proofs.to_vec(), + }; + let id = sidercar_metadata.id(); + if let Some(sidercar) = Sidercar::from_local(&id) { if sidercar.is_unavailability() { Some(i as u32) } else { @@ -627,6 +676,13 @@ impl Pallet { Keys::::put(bounded_keys); } } + + #[cfg(test)] + fn set_keys(keys: Vec) { + let bounded_keys = WeakBoundedVec::<_, T::MaxKeys>::try_from(keys) + .expect("More than the maximum number of keys provided"); + Keys::::put(bounded_keys); + } } impl HeaderCommitList for Pallet { diff --git a/crates/pallet-melo-store/src/mock.rs b/crates/pallet-melo-store/src/mock.rs new file mode 100644 index 0000000..5b50def --- /dev/null +++ b/crates/pallet-melo-store/src/mock.rs @@ -0,0 +1,240 @@ +// This file is part of Substrate. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Test utilities + +#![cfg(test)] + +use frame_support::{ + parameter_types, + traits::{ConstU32, ConstU64}, + weights::Weight, +}; +use pallet_im_online as imonline; +use pallet_session::historical as pallet_session_historical; +use sp_core::H256; +use sp_runtime::{ + testing::{Header, TestXt, UintAuthorityId}, + traits::{BlakeTwo256, ConvertInto, IdentityLookup}, + Permill, +}; +use sp_staking::{ + offence::{OffenceError, ReportOffence}, + SessionIndex, +}; + +use crate as pallet_melo_store; +use crate::Config; + +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; +type Block = frame_system::mocking::MockBlock; + +frame_support::construct_runtime!( + pub struct Runtime where + Block = Block, + NodeBlock = Block, + UncheckedExtrinsic = UncheckedExtrinsic, + { + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Session: pallet_session::{Pallet, Call, Storage, Event, Config}, + Historical: pallet_session_historical::{Pallet}, + MeloStore: pallet_melo_store::{Pallet, Call, Storage, Event}, + } +); + +parameter_types! { + pub static Validators: Option> = Some(vec![ + 1, + 2, + 3, + ]); +} + +pub struct TestSessionManager; +impl pallet_session::SessionManager for TestSessionManager { + fn new_session(_new_index: SessionIndex) -> Option> { + Validators::mutate(|l| l.take()) + } + fn end_session(_: SessionIndex) {} + fn start_session(_: SessionIndex) {} +} + +impl pallet_session::historical::SessionManager for TestSessionManager { + fn new_session(_new_index: SessionIndex) -> Option> { + Validators::mutate(|l| { + l.take().map(|validators| validators.iter().map(|v| (*v, *v)).collect()) + }) + } + fn end_session(_: SessionIndex) {} + fn start_session(_: SessionIndex) {} +} + +/// An extrinsic type used for tests. +pub type Extrinsic = TestXt; +type IdentificationTuple = (u64, u64); +type Offence = imonline::UnresponsivenessOffence; + +parameter_types! { + pub static Offences: Vec<(Vec, Offence)> = vec![]; +} + +/// A mock offence report handler. +pub struct OffenceHandler; +impl ReportOffence for OffenceHandler { + fn report_offence(reporters: Vec, offence: Offence) -> Result<(), OffenceError> { + Offences::mutate(|l| l.push((reporters, offence))); + Ok(()) + } + + fn is_known_offence(_offenders: &[IdentificationTuple], _time_slot: &SessionIndex) -> bool { + false + } +} + +impl frame_system::Config for Runtime { + type BaseCallFilter = frame_support::traits::Everything; + type BlockWeights = (); + type BlockLength = (); + type DbWeight = (); + type RuntimeOrigin = RuntimeOrigin; + type Index = u64; + type BlockNumber = u64; + type RuntimeCall = RuntimeCall; + type Hash = H256; + type Hashing = BlakeTwo256; + type AccountId = u64; + type Lookup = IdentityLookup; + type Header = Header; + type RuntimeEvent = RuntimeEvent; + type BlockHashCount = ConstU64<250>; + type Version = (); + type PalletInfo = PalletInfo; + type AccountData = (); + type OnNewAccount = (); + type OnKilledAccount = (); + type SystemWeightInfo = (); + type SS58Prefix = (); + type OnSetCode = (); + type MaxConsumers = ConstU32<16>; +} + +parameter_types! { + pub const Period: u64 = 1; + pub const Offset: u64 = 0; +} + +impl pallet_session::Config for Runtime { + type ShouldEndSession = pallet_session::PeriodicSessions; + type SessionManager = + pallet_session::historical::NoteHistoricalRoot; + type SessionHandler = (MeloStore,); + type ValidatorId = u64; + type ValidatorIdOf = ConvertInto; + type Keys = UintAuthorityId; + type RuntimeEvent = RuntimeEvent; + type NextSessionRotation = pallet_session::PeriodicSessions; + type WeightInfo = (); +} + +impl pallet_session::historical::Config for Runtime { + type FullIdentification = u64; + type FullIdentificationOf = ConvertInto; +} + +// impl pallet_authorship::Config for Runtime { +// type FindAuthor = (); +// type EventHandler = (); +// } + +parameter_types! { + pub static MockCurrentSessionProgress: Option> = None; +} + +parameter_types! { + pub static MockAverageSessionLength: Option = None; +} + +pub struct TestNextSessionRotation; + +impl frame_support::traits::EstimateNextSessionRotation for TestNextSessionRotation { + fn average_session_length() -> u64 { + // take the mock result if any and return it + let mock = MockAverageSessionLength::mutate(|p| p.take()); + + mock.unwrap_or(pallet_session::PeriodicSessions::::average_session_length()) + } + + fn estimate_current_session_progress(now: u64) -> (Option, Weight) { + let (estimate, weight) = + pallet_session::PeriodicSessions::::estimate_current_session_progress( + now, + ); + + // take the mock result if any and return it + let mock = MockCurrentSessionProgress::mutate(|p| p.take()); + + (mock.unwrap_or(estimate), weight) + } + + fn estimate_next_session_rotation(now: u64) -> (Option, Weight) { + pallet_session::PeriodicSessions::::estimate_next_session_rotation(now) + } +} + +pub const MAX_BLOB_NUM: u32 = 10; + +parameter_types! { + pub const MaxBlobNum: u32 = MAX_BLOB_NUM; +} + +impl Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type WeightInfo = (); + type AuthorityId = UintAuthorityId; + type MaxKeys = ConstU32<10_000>; + type MaxBlobNum = MaxBlobNum; + type MeloUnsignedPriority = ConstU64<{ 1 << 20 }>; +} + +impl frame_system::offchain::SendTransactionTypes for Runtime +where + RuntimeCall: From, +{ + type OverarchingCall = RuntimeCall; + type Extrinsic = Extrinsic; +} + +pub fn new_test_ext() -> sp_io::TestExternalities { + let t = frame_system::GenesisConfig::default().build_storage::().unwrap(); + let mut result: sp_io::TestExternalities = t.into(); + // Set the default keys, otherwise session will discard the validator. + result.execute_with(|| { + for i in 1..=6 { + System::inc_providers(&i); + assert_eq!(Session::set_keys(RuntimeOrigin::signed(i), (i - 1).into(), vec![]), Ok(())); + } + }); + result +} + +pub fn advance_session(now: u64) { + System::set_block_number(now + 1); + Session::rotate_session(); + let keys = Session::validators().into_iter().map(UintAuthorityId).collect(); + MeloStore::set_keys(keys); + assert_eq!(Session::current_index(), (now / Period::get()) as u32); +} \ No newline at end of file diff --git a/crates/pallet-melo-store/src/tests.rs b/crates/pallet-melo-store/src/tests.rs new file mode 100644 index 0000000..fc0e659 --- /dev/null +++ b/crates/pallet-melo-store/src/tests.rs @@ -0,0 +1,527 @@ +#![cfg(test)] + +use super::*; +use crate as pallet_melo_store; +use crate::mock::*; +use frame_support::{assert_noop, assert_ok}; +use melo_core_primitives::SidercarMetadata; +use sp_core::{ + offchain::{ + testing::{TestOffchainExt, TestTransactionPoolExt}, + OffchainDbExt, OffchainWorkerExt, TransactionPoolExt, + }, + H256, +}; +use sp_runtime::testing::UintAuthorityId; + +// Utility function to report unavailability +pub fn report_unavailability( + who: u32, + at_block: u64, + index_set: Vec, + validators_len: u32, +) -> DispatchResult { + let report = pallet_melo_store::UnavailableDataReport { + at_block, + authority_index: who, + index_set, + validators_len, + }; + let signature = UintAuthorityId(who.into()).sign(&report.encode()).unwrap(); + pallet_melo_store::Pallet::::report(RuntimeOrigin::none(), report, signature) +} + +// Utility function to report unavailability +pub fn submit_init_data() -> DispatchResult { + MeloStore::register_app(RuntimeOrigin::signed(1))?; + let app_id = 1; + let bytes_len = 10; + let (commitments, proofs) = commits_and_proofs(bytes_len, 0); + + let data_hash = H256::random(); + submit_data(2, app_id, bytes_len, data_hash, commitments, proofs) +} + +// Utility function to submit data +pub fn submit_data( + who: u64, + app_id: u32, + bytes_len: u32, + data_hash: H256, + commitments: Vec, + proofs: Vec, +) -> DispatchResult { + MeloStore::register_app(RuntimeOrigin::signed(1))?; + MeloStore::submit_data( + RuntimeOrigin::signed(who), + app_id, + bytes_len, + data_hash, + commitments, + proofs, + ) +} + +fn commits_and_proofs(bytes_len: u32, reduction: usize) -> (Vec, Vec) { + let len = Blob::blob_count(bytes_len as usize, BYTES_PER_BLOB); + let adjusted_len = if len > reduction { len - reduction } else { 0 }; + + let commits: Vec = (0..adjusted_len).map(|_| KZGCommitment::rand()).collect(); + let proofs: Vec = (0..adjusted_len).map(|_| KZGProof::rand()).collect(); + + (commits, proofs) +} + +fn events() -> Vec> { + let result = System::events() + .into_iter() + .map(|r| r.event) + .filter_map( + |e| if let mock::RuntimeEvent::MeloStore(inner) = e { Some(inner) } else { None }, + ) + .collect::>(); + + System::reset_events(); + + result +} + +#[test] +fn should_submit_data_successfully() { + new_test_ext().execute_with(|| { + let app_id = 1; + let bytes_len = 100_000; + let (commitments, proofs) = commits_and_proofs(bytes_len, 0); + let data_hash = H256::random(); + + assert_ok!(submit_data( + 1, + app_id, + bytes_len, + data_hash, + commitments.clone(), + proofs.clone() + )); + let block_number = System::block_number(); + let metadata = Metadata::::get(block_number); + assert_eq!(metadata.len(), 1); + assert_eq!(metadata[0].app_id, app_id); + assert_eq!(metadata[0].bytes_len, bytes_len); + assert_eq!(metadata[0].commitments, commitments); + }); +} + +#[test] +fn should_fail_when_submitting_data_exceeds_limit() { + new_test_ext().execute_with(|| { + let app_id = 1; + let bytes_len = MAX_BLOB_NUM * (BYTES_PER_BLOB as u32) + 1; // Exceeding the limit + let data_hash = H256::random(); + let (commitments, proofs) = commits_and_proofs(bytes_len, 0); + + assert_ok!(MeloStore::register_app(RuntimeOrigin::signed(1))); + + assert_noop!( + MeloStore::submit_data( + RuntimeOrigin::signed(2), + app_id, + bytes_len, + data_hash, + commitments, + proofs, + ), + Error::::ExceedMaxBlobLimit + ); + }); +} + +#[test] +fn should_fail_when_submitting_invalid_app_id() { + new_test_ext().execute_with(|| { + let app_id = 9999; // Invalid app_id + let bytes_len = 10; + let data_hash = H256::random(); + let (commitments, proofs) = commits_and_proofs(bytes_len, 0); + + assert_ok!(MeloStore::register_app(RuntimeOrigin::signed(1))); + + assert_noop!( + MeloStore::submit_data( + RuntimeOrigin::signed(2), + app_id, + bytes_len, + data_hash, + commitments, + proofs, + ), + Error::::AppIdError + ); + }); +} + +#[test] +fn should_emit_event_on_successful_submission() { + new_test_ext().execute_with(|| { + System::set_block_number(1); + let who = 1; + let app_id = 1; + let bytes_len = 10; + let data_hash = H256::random(); + let (commitments, proofs) = commits_and_proofs(bytes_len, 0); + + assert_ok!(submit_data( + who, + app_id, + bytes_len, + data_hash, + commitments.clone(), + proofs.clone() + )); + + assert!(events().contains(&Event::::DataReceived { + data_hash, + bytes_len, + from: who, + app_id, + index: 0, + commitments, + proofs, + })); + }); +} + +#[test] +fn should_report_unavailable_data_successfully() { + new_test_ext().execute_with(|| { + let now = 10; + + System::set_block_number((now).into()); + + // Submit data + assert_ok!(submit_init_data()); + + System::set_block_number((now + DELAY_CHECK_THRESHOLD).into()); + + assert_ok!(report_unavailability(1, 10, vec![0], 5,)); + + assert!(events().contains(&Event::::ReportReceived { at_block: 10, from: 1 })); + }); +} + +#[test] +fn should_fail_when_reporting_outside_window() { + new_test_ext().execute_with(|| { + System::set_block_number((10 + DELAY_CHECK_THRESHOLD + 1).into()); // Outside the window + + assert_noop!( + report_unavailability(1, 10, vec![0, 1], 5,), + Error::::ExceedUnavailableDataConfirmTime + ); + }); +} + +#[test] +fn should_fail_when_reporting_duplicate_indices() { + new_test_ext().execute_with(|| { + System::set_block_number(10); + + // Submit data + assert_ok!(submit_init_data()); + + assert_noop!( + report_unavailability(1, 10, vec![0, 0], 5,), + Error::::DuplicateItemExists + ); + }); +} + +#[test] +fn should_fail_when_reporting_nonexistent_data() { + new_test_ext().execute_with(|| { + let now = 10; + + System::set_block_number((now).into()); + + // Submit data + assert_ok!(submit_init_data()); + + System::set_block_number((now + DELAY_CHECK_THRESHOLD).into()); + + assert_noop!(report_unavailability(1, 10, vec![99999], 5,), Error::::DataNotExist); + }); +} + +#[test] +fn should_increment_app_id_on_consecutive_registrations() { + new_test_ext().execute_with(|| { + assert_ok!(MeloStore::register_app(RuntimeOrigin::signed(1))); + assert_eq!(AppId::::get(), 1); + + assert_ok!(MeloStore::register_app(RuntimeOrigin::signed(2))); + assert_eq!(AppId::::get(), 2); + }); +} + +#[test] +fn should_emit_event_on_successful_registration() { + new_test_ext().execute_with(|| { + let who = 10; + System::set_block_number(10); + + assert_ok!(MeloStore::register_app(RuntimeOrigin::signed(who))); + assert!(events().contains(&Event::::AppIdRegistered { app_id: 1, from: who })); + + assert_ok!(MeloStore::register_app(RuntimeOrigin::signed(who))); + assert!(events().contains(&Event::::AppIdRegistered { app_id: 2, from: who })); + + assert_ok!(MeloStore::register_app(RuntimeOrigin::signed(122))); + assert!(events().contains(&Event::::AppIdRegistered { app_id: 3, from: 122 })); + }); +} + +#[test] +fn should_fail_when_reporting_for_future_block() { + new_test_ext().execute_with(|| { + let now = 10; + System::set_block_number(now.into()); + + // Submit data + assert_ok!(submit_init_data()); + + // Try to report unavailability for a future block (e.g., now + 5) + assert_noop!( + report_unavailability(1, now + 5, vec![0], 5), + Error::::ReportForFutureBlock + ); + }); +} + +#[test] +fn should_fail_when_submitting_empty_data() { + new_test_ext().execute_with(|| { + let app_id = 1; + let bytes_len = 0; // Setting the data length to 0 to trigger the error. + let data_hash = H256::random(); + let (commitments, proofs) = commits_and_proofs(bytes_len, 0); + + assert_ok!(MeloStore::register_app(RuntimeOrigin::signed(1))); + + assert_noop!( + MeloStore::submit_data( + RuntimeOrigin::signed(2), + app_id, + bytes_len, + data_hash, + commitments, + proofs, + ), + Error::::SubmittedDataIsEmpty + ); + }); +} + +#[test] +fn should_fail_with_mismatched_commitments_count() { + new_test_ext().execute_with(|| { + let app_id = 1; + let bytes_len = 10; + let data_hash = H256::random(); + let (commitments, proofs) = commits_and_proofs(bytes_len, 1); + + assert_ok!(MeloStore::register_app(RuntimeOrigin::signed(1))); + + assert_noop!( + MeloStore::submit_data( + RuntimeOrigin::signed(2), + app_id, + bytes_len, + data_hash, + commitments, + proofs.clone(), + ), + Error::::MismatchedCommitmentsCount + ); + }); +} + +#[test] +fn should_fail_with_mismatched_proofs_count() { + new_test_ext().execute_with(|| { + let app_id = 1; + let bytes_len = 10; + let data_hash = H256::random(); + let (commitments, proofs) = commits_and_proofs(bytes_len, 1); + + let mut commitments = commitments; + commitments.push(KZGCommitment::rand()); + + assert_ok!(MeloStore::register_app(RuntimeOrigin::signed(1))); + + assert_noop!( + MeloStore::submit_data( + RuntimeOrigin::signed(2), + app_id, + bytes_len, + data_hash, + commitments.clone(), + proofs, + ), + Error::::MismatchedProofsCount + ); + }); +} + +#[test] +fn should_change_metadata_availability_when_reports_exceed_threshold() { + new_test_ext().execute_with(|| { + let now = 10; + System::set_block_number(now.into()); + + // Submit data + assert_ok!(submit_init_data()); + + // Set a threshold for this test + let threshold = 3; + + // Report unavailability multiple times to exceed the threshold + for i in 1..=threshold { + assert_ok!(report_unavailability(i, now, vec![0], 5)); + } + + // Check if the metadata's availability status has changed + let metadata = Metadata::::get(now); + assert_eq!(metadata[0].is_available, false); + }); +} + +#[test] +fn should_have_expected_data_when_reported_unavailable() { + new_test_ext().execute_with(|| { + let now = System::block_number().max(1); + advance_session(now); + + // advance_session will increment the block number by 1, so we need to increment it again + let now = now + 1; + + // Submit data + let data_hash = H256::random(); + let (commitments, proofs) = commits_and_proofs(10, 0); + assert_ok!(submit_data(1, 1, 10, data_hash.clone(), commitments, proofs)); + + // Report unavailability + assert_ok!(report_unavailability(1, now, vec![0], 3)); + + // Check if the reported data matches the expected data + let metadata = Metadata::::get(now); + assert_eq!(metadata[0].data_hash, data_hash); + assert_eq!(metadata[0].is_available, false); + }); +} + +#[test] +fn should_send_single_unavailability_report_correctly() { + let mut ext = new_test_ext(); + let (offchain, _state) = TestOffchainExt::new(); + let (pool, _) = TestTransactionPoolExt::new(); + ext.register_extension(OffchainDbExt::new(offchain.clone())); + ext.register_extension(OffchainWorkerExt::new(offchain)); + ext.register_extension(TransactionPoolExt::new(pool)); + + ext.execute_with(|| { + let now = 10; + System::set_block_number(now); + + // Submit data + assert_ok!(submit_init_data()); + + // Call the send_single_unavailability_report function + let authority_index = 1; + let key = UintAuthorityId(authority_index.into()); + let at_block = now - 1; + let index_set = vec![0]; + let result = MeloStore::send_single_unavailability_report( + authority_index, + key, + at_block.into(), + now.into(), + index_set, + ); + assert!(result.is_ok()); + }); +} + +#[test] +fn should_acquire_and_release_report_lock_correctly() { + let mut ext = new_test_ext(); + let (offchain, _state) = TestOffchainExt::new(); + let (pool, _) = TestTransactionPoolExt::new(); + ext.register_extension(OffchainDbExt::new(offchain.clone())); + ext.register_extension(OffchainWorkerExt::new(offchain)); + ext.register_extension(TransactionPoolExt::new(pool)); + + ext.execute_with(|| { + let now = 10; + System::set_block_number(now); + + // Call the with_report_lock function + let authority_index = 1; + let at_block = now - 1; + let result = + MeloStore::with_report_lock(authority_index, at_block.into(), now.into(), || Ok(())); + assert!(result.is_ok()); + + // Try to acquire the lock again, it should fail + let failed_result = + MeloStore::with_report_lock(authority_index, at_block.into(), now.into(), || Ok(())); + assert!(failed_result.is_err()); + }); +} + +#[test] +fn should_send_unavailability_report_correctly() { + let mut ext = new_test_ext(); + let (offchain, _state) = TestOffchainExt::new(); + let (pool, _) = TestTransactionPoolExt::new(); + ext.register_extension(OffchainDbExt::new(offchain.clone())); + ext.register_extension(OffchainWorkerExt::new(offchain)); + ext.register_extension(TransactionPoolExt::new(pool)); + + ext.execute_with(|| { + let now = 10; + System::set_block_number(now); + + assert!(MeloStore::register_app(RuntimeOrigin::signed(1)).is_ok()); + let app_id = 1; + let bytes_len = 121; // Exceeding the limit + let data_hash = H256::random(); + let (commitments, proofs) = commits_and_proofs(bytes_len, 0); + + assert_ok!(MeloStore::submit_data( + RuntimeOrigin::signed(2), + app_id, + bytes_len, + data_hash, + commitments.clone(), + proofs.clone(), + )); + let sidercar_metadata = + SidercarMetadata { data_len: bytes_len, blobs_hash: data_hash, commitments, proofs }; + + let mut sidercar = Sidercar::new(sidercar_metadata, None); + sidercar.set_not_found(); + sidercar.save_to_local(); + assert!(sidercar.is_unavailability()); + + // Test get_unavailability_data + let unavailability_data = MeloStore::get_unavailability_data(now); + assert!(unavailability_data.contains(&0)); + + assert!(MeloStore::send_unavailability_report(now).ok().is_some()); + + let now = now + (DELAY_CHECK_THRESHOLD as u64) + 10; + System::set_block_number(now); + let mut res = MeloStore::send_unavailability_report(now).unwrap(); + // res.next().unwrap().unwrap(); + assert!(res.next().is_none()); + }); +} diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index d749fc7..c66bc17 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -710,10 +710,9 @@ impl frame_system_ext::Config for Runtime { impl pallet_melo_store::Config for Runtime { type AuthorityId = ImOnlineId; type MaxBlobNum = system::MaxBlobNumber; - type MaxKeys = consensus::MaxKeys; - type ValidatorSet = Historical; type WeightInfo = (); - type UnsignedPriority = (); + type MeloUnsignedPriority = (); + type MaxKeys = consensus::MaxKeys; } // Create the runtime by composing the FRAME pallets that were previously configured.