diff --git a/Cargo.lock b/Cargo.lock index 45df9912b8cb879162b45ad6aaf020a4265e592d..a7c3ffebac2d004a19ecc0f7d8731453110c5689 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -77,7 +77,7 @@ version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" dependencies = [ - "getrandom 0.2.12", + "getrandom 0.2.15", "once_cell", "version_check", ] @@ -89,7 +89,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" dependencies = [ "cfg-if", - "getrandom 0.2.12", + "getrandom 0.2.15", "once_cell", "version_check", "zerocopy", @@ -106,9 +106,9 @@ dependencies = [ [[package]] name = "allocator-api2" -version = "0.2.16" +version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0942ffc6dcaadf03badf6e6a2d0228460359d5e34b57ccdc720b7382dfbd5ec5" +checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f" [[package]] name = "android-tzdata" @@ -136,47 +136,48 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.13" +version = "0.6.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d96bd03f33fe50a863e394ee9718a706f988b9079b20c3784fb726e7678b62fb" +checksum = "418c75fa768af9c03be99d17643f93f79bbba589895012a80e3452a19ddda15b" dependencies = [ "anstyle", "anstyle-parse", "anstyle-query", "anstyle-wincon", "colorchoice", + "is_terminal_polyfill", "utf8parse", ] [[package]] name = "anstyle" -version = "1.0.6" +version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8901269c6307e8d93993578286ac0edf7f195079ffff5ebdeea6a59ffb7e36bc" +checksum = "038dfcf04a5feb68e9c60b21c9625a54c2c0616e79b72b0fd87075a056ae1d1b" [[package]] name = "anstyle-parse" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c75ac65da39e5fe5ab759307499ddad880d724eed2f6ce5b5e8a26f4f387928c" +checksum = "c03a11a9034d92058ceb6ee011ce58af4a9bf61491aa7e1e59ecd24bd40d22d4" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648" +checksum = "a64c907d4e79225ac72e2a354c9ce84d50ebb4586dee56c82b3ee73004f537f5" dependencies = [ "windows-sys 0.52.0", ] [[package]] name = "anstyle-wincon" -version = "3.0.2" +version = "3.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7" +checksum = "61a38449feb7068f52bb06c12759005cf459ee52bb4adc1d5a7c4322d716fb19" dependencies = [ "anstyle", "windows-sys 0.52.0", @@ -184,9 +185,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.81" +version = "1.0.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0952808a6c2afd1aa8947271f3a60f1a6763c7b912d210184c5149b5cf147247" +checksum = "25bdb32cbbdce2b519a9cd7df3a678443100e265d5e25ca763b7572a5104f5f3" [[package]] name = "approx" @@ -194,7 +195,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6" dependencies = [ - "num-traits 0.2.18", + "num-traits 0.2.19", ] [[package]] @@ -222,7 +223,7 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -312,7 +313,7 @@ dependencies = [ "derivative", "hashbrown 0.13.2", "itertools 0.10.5", - "num-traits 0.2.18", + "num-traits 0.2.19", "rayon", "zeroize", ] @@ -381,7 +382,7 @@ dependencies = [ "digest 0.10.7", "itertools 0.10.5", "num-bigint", - "num-traits 0.2.18", + "num-traits 0.2.19", "paste", "rustc_version", "zeroize", @@ -404,7 +405,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7abe79b0e4288889c4574159ab790824d0033b9fdcb2a112a3182fac2e514565" dependencies = [ "num-bigint", - "num-traits 0.2.18", + "num-traits 0.2.19", "proc-macro2", "quote", "syn 1.0.109", @@ -494,8 +495,8 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94893f1e0c6eeab764ade8dc4c0db24caf4fe7cbbaafc0eba0a9030f447b5185" dependencies = [ - "num-traits 0.2.18", - "rand", + "num-traits 0.2.19", + "rand 0.8.5", "rayon", ] @@ -561,7 +562,7 @@ dependencies = [ "asn1-rs-impl", "displaydoc", "nom", - "num-traits 0.2.18", + "num-traits 0.2.19", "rusticata-macros", "thiserror", "time", @@ -609,24 +610,23 @@ dependencies = [ [[package]] name = "async-channel" -version = "2.2.0" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f28243a43d821d11341ab73c80bed182dc015c514b951616cf79bd4af39af0c3" +checksum = "136d4d23bcc79e27423727b36823d86233aad06dfea531837b038394d11e9928" dependencies = [ "concurrent-queue", - "event-listener 5.2.0", - "event-listener-strategy 0.5.1", + "event-listener 5.3.0", + "event-listener-strategy 0.5.2", "futures-core", "pin-project-lite 0.2.14", ] [[package]] name = "async-executor" -version = "1.9.1" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10b3e585719c2358d2660232671ca8ca4ddb4be4ce8a1842d6c2dc8685303316" +checksum = "b10202063978b3351199d68f8b22c4e47e4b1b822f8d43fd862d5ea8c006b29a" dependencies = [ - "async-lock 3.3.0", "async-task", "concurrent-queue", "fastrand", @@ -636,11 +636,11 @@ dependencies = [ [[package]] name = "async-fs" -version = "2.1.1" +version = "2.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc19683171f287921f2405677dd2ed2549c3b3bda697a563ebc3a121ace2aba1" +checksum = "ebcd09b382f40fcd159c2d695175b2ae620ffa5f3bd6f664131efff4e8b9e04a" dependencies = [ - "async-lock 3.3.0", + "async-lock", "blocking", "futures-lite", ] @@ -651,28 +651,19 @@ version = "2.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dcccb0f599cfa2f8ace422d3555572f47424da5648a4382a9dd0310ff8210884" dependencies = [ - "async-lock 3.3.0", + "async-lock", "cfg-if", "concurrent-queue", "futures-io", "futures-lite", "parking", "polling", - "rustix 0.38.32", + "rustix 0.38.34", "slab", "tracing", "windows-sys 0.52.0", ] -[[package]] -name = "async-lock" -version = "2.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "287272293e9d8c41773cec55e365490fe034813a2f172f502d6ddcf75b2f582b" -dependencies = [ - "event-listener 2.5.3", -] - [[package]] name = "async-lock" version = "3.3.0" @@ -697,57 +688,57 @@ dependencies = [ [[package]] name = "async-process" -version = "2.2.0" +version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d999d925640d51b662b7b4e404224dd81de70f4aa4a199383c2c5e5b86885fa3" +checksum = "a53fc6301894e04a92cb2584fedde80cb25ba8e02d9dc39d4a87d036e22f397d" dependencies = [ - "async-channel 2.2.0", + "async-channel 2.2.1", "async-io", - "async-lock 3.3.0", + "async-lock", "async-signal", "async-task", "blocking", "cfg-if", - "event-listener 5.2.0", + "event-listener 5.3.0", "futures-lite", - "rustix 0.38.32", + "rustix 0.38.34", "tracing", "windows-sys 0.52.0", ] [[package]] name = "async-signal" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e47d90f65a225c4527103a8d747001fc56e375203592b25ad103e1ca13124c5" +checksum = "afe66191c335039c7bb78f99dc7520b0cbb166b3a1cb33a03f53d8a1c6f2afda" dependencies = [ "async-io", - "async-lock 2.8.0", + "async-lock", "atomic-waker", "cfg-if", "futures-core", "futures-io", - "rustix 0.38.32", + "rustix 0.38.34", "signal-hook-registry", "slab", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] name = "async-task" -version = "4.7.0" +version = "4.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbb36e985947064623dbd357f727af08ffd077f93d696782f3c56365fa2e2799" +checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" [[package]] name = "async-trait" -version = "0.1.79" +version = "0.1.80" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a507401cad91ec6a857ed5513a2073c82a9b9048762b885bb98655b306964681" +checksum = "c6fa2087f2753a7da8cc1c0dbfcf89579dd57458e36769de5ac750b4671737ca" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -777,9 +768,9 @@ checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" [[package]] name = "autocfg" -version = "1.2.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1fdabc7756949593fe60f30ec81974b613357de856987752631dea1e3394c80" +checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" [[package]] name = "backtrace" @@ -810,7 +801,7 @@ dependencies = [ "dleq_vrf", "fflonk", "merlin", - "rand_chacha", + "rand_chacha 0.3.1", "rand_core 0.6.4", "ring 0.1.0", "sha2 0.10.8", @@ -849,6 +840,12 @@ version = "0.21.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + [[package]] name = "base64ct" version = "1.6.0" @@ -873,27 +870,6 @@ dependencies = [ "serde", ] -[[package]] -name = "bindgen" -version = "0.65.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfdf7b466f9a4903edc73f95d6d2bcd5baf8ae620638762244d3f60143643cc5" -dependencies = [ - "bitflags 1.3.2", - "cexpr", - "clang-sys", - "lazy_static", - "lazycell", - "peeking_take_while", - "prettyplease 0.2.17", - "proc-macro2", - "quote", - "regex", - "rustc-hash", - "shlex", - "syn 2.0.58", -] - [[package]] name = "bip39" version = "2.0.0" @@ -1050,18 +1026,16 @@ dependencies = [ [[package]] name = "blocking" -version = "1.5.1" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a37913e8dc4ddcc604f0c6d3bf2887c995153af3611de9e23c352b44c1b9118" +checksum = "495f7104e962b7356f0aeb34247aca1fe7d2e783b346582db7f2904cb5717e88" dependencies = [ - "async-channel 2.2.0", - "async-lock 3.3.0", + "async-channel 2.2.1", + "async-lock", "async-task", - "fastrand", "futures-io", "futures-lite", "piper", - "tracing", ] [[package]] @@ -1112,9 +1086,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.15.4" +version = "3.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ff69b9dd49fd426c69a0db9fc04dd934cdb6645ff000864d98f7e2af8830eaa" +checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" [[package]] name = "byte-slice-cast" @@ -1130,9 +1104,9 @@ checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7" [[package]] name = "bytecount" -version = "0.6.7" +version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1e5f035d16fc623ae5f74981db80a439803888314e3a555fd6f04acd51a3205" +checksum = "5ce89b21cab1437276d2650d57e971f9d548a2d9037cc231abdc0562b97498ce" [[package]] name = "bytemuck" @@ -1152,17 +1126,6 @@ version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9" -[[package]] -name = "bzip2-sys" -version = "0.1.11+1.0.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc" -dependencies = [ - "cc", - "libc", - "pkg-config", -] - [[package]] name = "c2-chacha" version = "0.3.3" @@ -1199,7 +1162,7 @@ checksum = "eee4243f1f26fc7a42710e7439c149e2b10b05472f88090acce52632f231a73a" dependencies = [ "camino", "cargo-platform", - "semver 1.0.22", + "semver 1.0.23", "serde", "serde_json", "thiserror", @@ -1207,28 +1170,20 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.90" +version = "1.0.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cd6604a82acf3039f1144f54b8eb34e91ffba622051189e71b781822d5ee1f5" +checksum = "099a5357d84c4c61eb35fc8eafa9a79a902c2f76911e5747ced4e032edd8d9b4" dependencies = [ "jobserver", "libc", -] - -[[package]] -name = "cexpr" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766" -dependencies = [ - "nom", + "once_cell", ] [[package]] name = "cfg-expr" -version = "0.15.7" +version = "0.15.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa50868b64a9a6fda9d593ce778849ea8715cd2a3d2cc17ffdb4a2f2f2f1961d" +checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02" dependencies = [ "smallvec", ] @@ -1281,16 +1236,16 @@ dependencies = [ [[package]] name = "chrono" -version = "0.4.37" +version = "0.4.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a0d04d43504c61aa6c7531f1871dd0d418d91130162063b789da00fd7057a5e" +checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" dependencies = [ "android-tzdata", "iana-time-zone", "js-sys", - "num-traits 0.2.18", + "num-traits 0.2.19", "wasm-bindgen", - "windows-targets 0.52.4", + "windows-targets 0.52.5", ] [[package]] @@ -1301,7 +1256,20 @@ checksum = "b9b68e3193982cd54187d71afdb2a271ad4cf8af157858e9cb911b91321de143" dependencies = [ "core2", "multibase", - "multihash", + "multihash 0.17.0", + "serde", + "unsigned-varint", +] + +[[package]] +name = "cid" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd94671561e36e4e7de75f753f577edafb0e7c05d6e4547229fdf7938fbcd2c3" +dependencies = [ + "core2", + "multibase", + "multihash 0.18.1", "serde", "unsigned-varint", ] @@ -1326,17 +1294,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "clang-sys" -version = "1.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67523a3b4be3ce1989d607a828d036249522dd9c1c8de7f4dd2dae43a37369d1" -dependencies = [ - "glob", - "libc", - "libloading", -] - [[package]] name = "clap" version = "4.5.4" @@ -1362,9 +1319,9 @@ dependencies = [ [[package]] name = "clap_complete" -version = "4.5.1" +version = "4.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "885e4d7d5af40bfb99ae6f9433e292feac98d452dcb3ec3d25dfe7552b77da8c" +checksum = "dd79504325bf38b10165b02e89b4347300f855f273c4cb30c4a3209e6583275e" dependencies = [ "clap", ] @@ -1378,7 +1335,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -1408,9 +1365,9 @@ dependencies = [ [[package]] name = "colorchoice" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" +checksum = "0b6a852b24ab71dffc585bcb46eaf7959d175cb865a7152e35b348d1b2960422" [[package]] name = "combine" @@ -1425,14 +1382,24 @@ dependencies = [ "unreachable", ] +[[package]] +name = "combine" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +dependencies = [ + "bytes", + "memchr", +] + [[package]] name = "comfy-table" -version = "7.1.0" +version = "7.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c64043d6c7b7a4c58e39e7efccfdea7b93d885a795d0c054a69dbbf4dd52686" +checksum = "b34115915337defe99b2aff5c2ce6771e5fbc4079f4b506301f5cf394c8452f7" dependencies = [ - "strum 0.25.0", - "strum_macros 0.25.3", + "strum 0.26.2", + "strum_macros 0.26.2", "unicode-width", ] @@ -1449,7 +1416,7 @@ dependencies = [ "fflonk", "getrandom_or_panic", "merlin", - "rand_chacha", + "rand_chacha 0.3.1", ] [[package]] @@ -1513,9 +1480,9 @@ dependencies = [ [[package]] name = "concurrent-queue" -version = "2.4.0" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d16048cd947b08fa32c24458a22f5dc5e835264f689f4f5653210c69fd107363" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" dependencies = [ "crossbeam-utils", ] @@ -1554,7 +1521,7 @@ version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e" dependencies = [ - "getrandom 0.2.12", + "getrandom 0.2.15", "once_cell", "tiny-keccak", ] @@ -1742,6 +1709,21 @@ dependencies = [ "wasmtime-types", ] +[[package]] +name = "crc" +version = "3.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69e6e4d7b33a94f0991c26729976b10ebde1d34c3ee82408fb536164fa10d636" +dependencies = [ + "crc-catalog", +] + +[[package]] +name = "crc-catalog" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5" + [[package]] name = "crc32fast" version = "1.4.0" @@ -1904,7 +1886,7 @@ dependencies = [ "proc-macro2", "quote", "regex", - "syn 2.0.58", + "syn 2.0.61", "synthez", ] @@ -1960,14 +1942,14 @@ checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] name = "cxx" -version = "1.0.120" +version = "1.0.122" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff4dc7287237dd438b926a81a1a5605dad33d286870e5eee2db17bf2bcd9e92a" +checksum = "bb497fad022245b29c2a0351df572e2d67c1046bcef2260ebc022aec81efea82" dependencies = [ "cc", "cxxbridge-flags", @@ -1977,9 +1959,9 @@ dependencies = [ [[package]] name = "cxx-build" -version = "1.0.120" +version = "1.0.122" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f47c6c8ad7c1a10d3ef0fe3ff6733f4db0d78f08ef0b13121543163ef327058b" +checksum = "9327c7f9fbd6329a200a5d4aa6f674c60ab256525ff0084b52a889d4e4c60cee" dependencies = [ "cc", "codespan-reporting", @@ -1987,24 +1969,24 @@ dependencies = [ "proc-macro2", "quote", "scratch", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] name = "cxxbridge-flags" -version = "1.0.120" +version = "1.0.122" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "701a1ac7a697e249cdd8dc026d7a7dafbfd0dbcd8bd24ec55889f2bc13dd6287" +checksum = "688c799a4a846f1c0acb9f36bb9c6272d9b3d9457f3633c7753c6057270df13c" [[package]] name = "cxxbridge-macro" -version = "1.0.120" +version = "1.0.122" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b404f596046b0bb2d903a9c786b875a126261b52b7c3a64bbb66382c41c771df" +checksum = "928bc249a7e3cd554fd2e8e08a426e9670c50bbfc9a621653cfa9accc9641783" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -2052,7 +2034,7 @@ dependencies = [ "proc-macro2", "quote", "strsim 0.10.0", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -2074,7 +2056,7 @@ checksum = "a668eda54683121533a393014d8692171709ff57a7d61f187b6e782719f8933f" dependencies = [ "darling_core 0.20.8", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -2084,23 +2066,23 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" dependencies = [ "cfg-if", - "hashbrown 0.14.3", + "hashbrown 0.14.5", "lock_api", "once_cell", - "parking_lot_core 0.9.9", + "parking_lot_core 0.9.10", ] [[package]] name = "data-encoding" -version = "2.5.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e962a19be5cfc3f3bf6dd8f61eb50107f356ad6270fbb3ed41476571db78be5" +checksum = "e8566979429cf69b49a5c740c60791108e86440e8be149bbea4fe54d2c32d6e2" [[package]] name = "data-encoding-macro" -version = "0.1.14" +version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20c01c06f5f429efdf2bae21eb67c28b3df3cf85b7dd2d8ef09c0838dac5d33e" +checksum = "f1559b6cba622276d6d63706db152618eeb15b89b3e4041446b05876e352e639" dependencies = [ "data-encoding", "data-encoding-macro-internal", @@ -2108,9 +2090,9 @@ dependencies = [ [[package]] name = "data-encoding-macro-internal" -version = "0.1.12" +version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0047d07f2c89b17dd631c80450d69841a6b5d7fb17278cbc43d7e4cfcf2576f3" +checksum = "332d754c0af53bc87c108fed664d121ecf59207ec4196041f04d6ab9002ad33f" dependencies = [ "data-encoding", "syn 1.0.109", @@ -2153,7 +2135,7 @@ dependencies = [ "displaydoc", "nom", "num-bigint", - "num-traits 0.2.18", + "num-traits 0.2.19", "rusticata-macros", ] @@ -2196,7 +2178,7 @@ checksum = "d65d7ce8132b7c0e54497a4d9a55a1c2a0912a0d786cf894472ba818fba45762" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -2298,7 +2280,7 @@ checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -2312,7 +2294,7 @@ dependencies = [ "fnv", "hex", "log", - "num-traits 0.2.18", + "num-traits 0.2.19", "parity-scale-codec", "rayon", "simple_logger", @@ -2360,7 +2342,7 @@ dependencies = [ "proc-macro2", "quote", "regex", - "syn 2.0.58", + "syn 2.0.61", "termcolor", "toml 0.8.12", "walkdir", @@ -2374,9 +2356,9 @@ checksum = "1435fa1053d8b2fbbe9be7e97eca7f33d37b28409959813daefc1446a14247f1" [[package]] name = "downcast-rs" -version = "1.2.0" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ea835d29036a4087793836fa931b08837ad5e957da9e23886b29586fb9b6650" +checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2" [[package]] name = "drain_filter_polyfill" @@ -2422,7 +2404,7 @@ dependencies = [ "gdev-runtime", "gtest-runtime", "hex", - "jsonrpsee 0.22.3", + "jsonrpsee", "log", "memmap2 0.9.4", "num-format", @@ -2478,7 +2460,6 @@ dependencies = [ "sp-trie", "substrate-build-script-utils", "substrate-frame-rpc-system", - "try-runtime-cli", ] [[package]] @@ -2561,10 +2542,19 @@ dependencies = [ "elliptic-curve", "rfc6979", "serdect", - "signature", + "signature 2.2.0", "spki", ] +[[package]] +name = "ed25519" +version = "1.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7" +dependencies = [ + "signature 1.6.4", +] + [[package]] name = "ed25519" version = "2.2.3" @@ -2572,7 +2562,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53" dependencies = [ "pkcs8", - "signature", + "signature 2.2.0", +] + +[[package]] +name = "ed25519-dalek" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d" +dependencies = [ + "curve25519-dalek 3.2.0", + "ed25519 1.5.3", + "rand 0.7.3", + "serde", + "sha2 0.9.9", + "zeroize", ] [[package]] @@ -2582,7 +2586,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4a3daa8e81a3963a60642bcc1f90a670680bd4a77535faa384e9d1c79d620871" dependencies = [ "curve25519-dalek 4.1.2", - "ed25519", + "ed25519 2.2.3", "rand_core 0.6.4", "serde", "sha2 0.10.8", @@ -2611,8 +2615,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d9ce6874da5d4415896cd45ffbc4d1cfc0c4f9c079427bd870742c30f2f65a9" dependencies = [ "curve25519-dalek 4.1.2", - "ed25519", - "hashbrown 0.14.3", + "ed25519 2.2.3", + "hashbrown 0.14.5", "hex", "rand_core 0.6.4", "sha2 0.10.8", @@ -2621,9 +2625,9 @@ dependencies = [ [[package]] name = "either" -version = "1.10.0" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a" +checksum = "a47c1c47d2f5964e29c61246e81db715514cd532db6b5116a25ea3c03d6780a2" [[package]] name = "elliptic-curve" @@ -2663,6 +2667,18 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "enum-as-inner" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ffccbb6966c05b32ef8fbac435df276c4ae4d3dc55a8cd0eb9745e6c12f546a" +dependencies = [ + "heck 0.4.1", + "proc-macro2", + "quote", + "syn 2.0.61", +] + [[package]] name = "env_filter" version = "0.1.0" @@ -2709,9 +2725,9 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" -version = "0.3.8" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245" +checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" dependencies = [ "libc", "windows-sys 0.52.0", @@ -2736,9 +2752,9 @@ dependencies = [ [[package]] name = "event-listener" -version = "5.2.0" +version = "5.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b5fb89194fa3cad959b833185b3063ba881dbfc7030680b314250779fb4cc91" +checksum = "6d9944b8ca13534cdfb2800775f8dd4902ff3fc75a50101466decadfdf322a24" dependencies = [ "concurrent-queue", "parking", @@ -2757,11 +2773,11 @@ dependencies = [ [[package]] name = "event-listener-strategy" -version = "0.5.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "332f51cb23d20b0de8458b86580878211da09bcd4503cb579c225b3d124cabb3" +checksum = "0f214dc438f977e6d4e3500aaa277f5ad94ca83fbbd9b1a15713ce2344ccc5a1" dependencies = [ - "event-listener 5.2.0", + "event-listener 5.3.0", "pin-project-lite 0.2.14", ] @@ -2785,7 +2801,7 @@ dependencies = [ "prettier-please", "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -2813,9 +2829,9 @@ dependencies = [ [[package]] name = "fastrand" -version = "2.0.2" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "658bd65b1cf4c852a3cc96f18a8ce7b5640f6b703f905c7d74532294c2a63984" +checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" [[package]] name = "fdlimit" @@ -2852,9 +2868,9 @@ dependencies = [ [[package]] name = "fiat-crypto" -version = "0.2.7" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c007b1ae3abe1cb6f85a16305acd418b7ca6343b953633fee2b76d8f108b830f" +checksum = "38793c55593b33412e3ae40c2c9781ffaa6f438f6f8c10f24e71846fbd7ae01e" [[package]] name = "file-per-thread-logger" @@ -2888,9 +2904,9 @@ dependencies = [ "futures 0.3.30", "futures-timer", "log", - "num-traits 0.2.18", + "num-traits 0.2.19", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "scale-info", ] @@ -2901,7 +2917,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "835c052cb0c08c1acf6ffd71c022172e18723949c8282f2b9f27efbc51e64534" dependencies = [ "byteorder", - "rand", + "rand 0.8.5", "rustc-hex", "static_assertions", ] @@ -2914,9 +2930,9 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flate2" -version = "1.0.28" +version = "1.0.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46303f565772937ffe1d394a4fac6f411c6013172fadde9dcdb1e147a086940e" +checksum = "5f54427cfd1c7829e2a139fcefea601bf088ebca651d2bf53ebc600eac295dae" dependencies = [ "crc32fast", "libz-sys", @@ -2929,7 +2945,7 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "98de4bbd547a563b716d8dfa9aad1cb19bfab00f4fa09a6a4ed21dbcf44ce9c4" dependencies = [ - "num-traits 0.2.18", + "num-traits 0.2.19", ] [[package]] @@ -2938,10 +2954,25 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" +[[package]] +name = "foreign-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +dependencies = [ + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" + [[package]] name = "fork-tree" version = "12.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "parity-scale-codec", ] @@ -2964,7 +2995,7 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" [[package]] name = "frame-benchmarking" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "frame-support", "frame-support-procedural", @@ -2989,7 +3020,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "32.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "Inflector", "array-bytes 6.2.2", @@ -3006,9 +3037,10 @@ dependencies = [ "linked-hash-map", "log", "parity-scale-codec", - "rand", + "rand 0.8.5", "rand_pcg", "sc-block-builder", + "sc-chain-spec", "sc-cli", "sc-client-api", "sc-client-db", @@ -3022,6 +3054,7 @@ dependencies = [ "sp-core", "sp-database", "sp-externalities 0.25.0", + "sp-genesis-builder", "sp-inherents", "sp-io", "sp-keystore", @@ -3037,7 +3070,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "aquamarine 0.3.3", "frame-support", @@ -3076,32 +3109,10 @@ dependencies = [ "serde", ] -[[package]] -name = "frame-remote-externalities" -version = "0.35.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" -dependencies = [ - "futures 0.3.30", - "indicatif", - "jsonrpsee 0.22.3", - "log", - "parity-scale-codec", - "serde", - "sp-core", - "sp-crypto-hashing", - "sp-io", - "sp-runtime", - "sp-state-machine", - "spinners", - "substrate-rpc-client", - "tokio", - "tokio-retry", -] - [[package]] name = "frame-support" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "aquamarine 0.5.0", "array-bytes 6.2.2", @@ -3142,11 +3153,11 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "23.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "Inflector", "cfg-expr", - "derive-syn-parse 0.1.5", + "derive-syn-parse 0.2.0", "expander", "frame-support-procedural-tools", "itertools 0.10.5", @@ -3155,35 +3166,35 @@ dependencies = [ "proc-macro2", "quote", "sp-crypto-hashing", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] name = "frame-support-procedural-tools" version = "10.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] name = "frame-support-procedural-tools-derive" version = "11.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] name = "frame-system" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "cfg-if", "docify", @@ -3203,7 +3214,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "frame-benchmarking", "frame-support", @@ -3218,7 +3229,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "26.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "parity-scale-codec", "sp-api", @@ -3227,7 +3238,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.34.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "frame-support", "parity-scale-codec", @@ -3346,7 +3357,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -3600,9 +3611,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.12" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ "cfg-if", "js-sys", @@ -3617,7 +3628,7 @@ version = "0.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ea1015b5a70616b688dc230cfe50c8af89d972cb132d5a622814d29773b10b9" dependencies = [ - "rand", + "rand 0.8.5", "rand_core 0.6.4", ] @@ -3642,7 +3653,7 @@ dependencies = [ "quote", "serde", "serde_json", - "syn 2.0.58", + "syn 2.0.61", "textwrap", "thiserror", "typed-builder", @@ -3686,7 +3697,7 @@ checksum = "53010ccb100b96a67bc32c0175f0ed1426b31b655d562898e57325f81c023ac0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -3731,10 +3742,10 @@ dependencies = [ "futures-timer", "no-std-compat", "nonzero_ext", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "portable-atomic", "quanta", - "rand", + "rand 0.8.5", "smallvec", "spinning_top", ] @@ -3754,7 +3765,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2ebc8013b4426d5b81a4364c419a95ed0b404af2b82e2457de52d9348f0e474" dependencies = [ - "combine", + "combine 3.8.1", "thiserror", ] @@ -3884,9 +3895,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fbd2820c5e49886948654ab546d0688ff24530286bdcf8fca3cefb16d4618eb" +checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8" dependencies = [ "bytes", "fnv", @@ -3950,9 +3961,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.14.3" +version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" dependencies = [ "ahash 0.8.11", "allocator-api2", @@ -3965,7 +3976,7 @@ version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e8094feaf31ff591f651a2664fb9cfd92bba7a60ce3197265e9482ebe753c8f7" dependencies = [ - "hashbrown 0.14.3", + "hashbrown 0.14.5", ] [[package]] @@ -4160,7 +4171,7 @@ dependencies = [ "httpdate", "itoa", "pin-project-lite 0.2.14", - "socket2 0.5.6", + "socket2 0.5.7", "tokio", "tower-service", "tracing", @@ -4169,9 +4180,9 @@ dependencies = [ [[package]] name = "hyper" -version = "1.2.0" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "186548d73ac615b32a73aafe38fb4f56c0d340e110e5a200bcadbaf2e199263a" +checksum = "fe575dd17d0862a9a33781c8c4696a55c320909004a67a00fb286ba8b1bc496d" dependencies = [ "bytes", "futures-channel", @@ -4196,7 +4207,7 @@ dependencies = [ "http 0.2.12", "hyper 0.14.28", "log", - "rustls 0.21.10", + "rustls 0.21.12", "rustls-native-certs 0.6.3", "tokio", "tokio-rustls 0.24.1", @@ -4213,9 +4224,9 @@ dependencies = [ "futures-util", "http 1.1.0", "http-body 1.0.0", - "hyper 1.2.0", + "hyper 1.3.1", "pin-project-lite 0.2.14", - "socket2 0.5.6", + "socket2 0.5.7", "tokio", "tower", "tower-service", @@ -4262,6 +4273,16 @@ dependencies = [ "unicode-normalization", ] +[[package]] +name = "idna" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c" +dependencies = [ + "unicode-bidi", + "unicode-normalization", +] + [[package]] name = "idna" version = "0.5.0" @@ -4383,7 +4404,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" dependencies = [ "equivalent", - "hashbrown 0.14.3", + "hashbrown 0.14.5", ] [[package]] @@ -4392,19 +4413,6 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e04e2fd2b8188ea827b32ef11de88377086d690286ab35747ef7f9bf3ccb590" -[[package]] -name = "indicatif" -version = "0.17.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "763a5a8f45087d6bcea4222e7b72c291a054edf80e4ef6efd2a4979878c7bea3" -dependencies = [ - "console", - "instant", - "number_prefix", - "portable-atomic", - "unicode-width", -] - [[package]] name = "inflections" version = "1.1.1" @@ -4455,7 +4463,7 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "276ec31bcb4a9ee45f58bec6f9ec700ae4cf4f4f8f2fa7e06cb406bd5ffdd770" dependencies = [ - "num-traits 0.2.18", + "num-traits 0.2.19", ] [[package]] @@ -4487,10 +4495,10 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b58db92f96b720de98181bbbe63c831e87005ab460c1bf306eb2622b4707997f" dependencies = [ - "socket2 0.5.6", + "socket2 0.5.7", "widestring", "windows-sys 0.48.0", - "winreg", + "winreg 0.50.0", ] [[package]] @@ -4511,19 +4519,16 @@ dependencies = [ ] [[package]] -name = "itertools" -version = "0.10.5" +name = "is_terminal_polyfill" +version = "1.70.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" -dependencies = [ - "either", -] +checksum = "f8478577c03552c21db0e2724ffb8986a5ce7af88107e6be5d2ee6e158c12800" [[package]] name = "itertools" -version = "0.11.0" +version = "0.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57" +checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" dependencies = [ "either", ] @@ -4545,9 +4550,9 @@ checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" [[package]] name = "jobserver" -version = "0.1.28" +version = "0.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab46a6e9526ddef3ae7f787c06f0f2600639ba80ea3eade3d8e670a2230f51d6" +checksum = "d2b099aaa34a9751c5bf0878add70444e1ed2dd73f347be99003d4577277de6e" dependencies = [ "libc", ] @@ -4563,62 +4568,29 @@ dependencies = [ [[package]] name = "jsonrpsee" -version = "0.21.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9579d0ca9fb30da026bac2f0f7d9576ec93489aeb7cd4971dd5b4617d82c79b2" -dependencies = [ - "jsonrpsee-client-transport 0.21.0", - "jsonrpsee-core 0.21.0", - "jsonrpsee-http-client 0.21.0", - "jsonrpsee-types 0.21.0", -] - -[[package]] -name = "jsonrpsee" -version = "0.22.3" +version = "0.22.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3cdbb7cb6f3ba28f5b212dd250ab4483105efc3e381f5c8bb90340f14f0a2cc3" +checksum = "cfdb12a2381ea5b2e68c3469ec604a007b367778cdb14d09612c8069ebd616ad" dependencies = [ - "jsonrpsee-core 0.22.3", - "jsonrpsee-http-client 0.22.3", + "jsonrpsee-client-transport", + "jsonrpsee-core", + "jsonrpsee-http-client", "jsonrpsee-proc-macros", "jsonrpsee-server", - "jsonrpsee-types 0.22.3", - "jsonrpsee-ws-client", - "tokio", - "tracing", -] - -[[package]] -name = "jsonrpsee-client-transport" -version = "0.21.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f9f9ed46590a8d5681975f126e22531698211b926129a40a2db47cbca429220" -dependencies = [ - "futures-util", - "http 0.2.12", - "jsonrpsee-core 0.21.0", - "pin-project", - "rustls-native-certs 0.7.0", - "rustls-pki-types", - "soketto", - "thiserror", + "jsonrpsee-types", "tokio", - "tokio-rustls 0.25.0", - "tokio-util", "tracing", - "url", ] [[package]] name = "jsonrpsee-client-transport" -version = "0.22.3" +version = "0.22.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ab2e14e727d2faf388c99d9ca5210566ed3b044f07d92c29c3611718d178380" +checksum = "4978087a58c3ab02efc5b07c5e5e2803024536106fd5506f558db172c889b3aa" dependencies = [ "futures-util", "http 0.2.12", - "jsonrpsee-core 0.22.3", + "jsonrpsee-core", "pin-project", "rustls-native-certs 0.7.0", "rustls-pki-types", @@ -4633,45 +4605,20 @@ dependencies = [ [[package]] name = "jsonrpsee-core" -version = "0.21.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "776d009e2f591b78c038e0d053a796f94575d66ca4e77dd84bfc5e81419e436c" -dependencies = [ - "anyhow", - "async-lock 3.3.0", - "async-trait", - "beef", - "futures-timer", - "futures-util", - "hyper 0.14.28", - "jsonrpsee-types 0.21.0", - "pin-project", - "rustc-hash", - "serde", - "serde_json", - "thiserror", - "tokio", - "tokio-stream", - "tracing", -] - -[[package]] -name = "jsonrpsee-core" -version = "0.22.3" +version = "0.22.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71962a1c49af43adf81d337e4ebc93f3c915faf6eccaa14d74e255107dfd7723" +checksum = "b4b257e1ec385e07b0255dde0b933f948b5c8b8c28d42afda9587c3a967b896d" dependencies = [ "anyhow", - "async-lock 3.3.0", "async-trait", "beef", "futures-timer", "futures-util", "hyper 0.14.28", - "jsonrpsee-types 0.22.3", - "parking_lot 0.12.1", + "jsonrpsee-types", + "parking_lot 0.12.2", "pin-project", - "rand", + "rand 0.8.5", "rustc-hash", "serde", "serde_json", @@ -4683,15 +4630,15 @@ dependencies = [ [[package]] name = "jsonrpsee-http-client" -version = "0.21.0" +version = "0.22.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78b7de9f3219d95985eb77fd03194d7c1b56c19bce1abfcc9d07462574b15572" +checksum = "1ccf93fc4a0bfe05d851d37d7c32b7f370fe94336b52a2f0efc5f1981895c2e5" dependencies = [ "async-trait", "hyper 0.14.28", "hyper-rustls", - "jsonrpsee-core 0.21.0", - "jsonrpsee-types 0.21.0", + "jsonrpsee-core", + "jsonrpsee-types", "serde", "serde_json", "thiserror", @@ -4702,49 +4649,29 @@ dependencies = [ ] [[package]] -name = "jsonrpsee-http-client" -version = "0.22.3" +name = "jsonrpsee-proc-macros" +version = "0.22.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c13987da51270bda2c1c9b40c19be0fe9b225c7a0553963d8f17e683a50ce84" -dependencies = [ - "async-trait", - "hyper 0.14.28", - "hyper-rustls", - "jsonrpsee-core 0.22.3", - "jsonrpsee-types 0.22.3", - "serde", - "serde_json", - "thiserror", - "tokio", - "tower", - "tracing", - "url", -] - -[[package]] -name = "jsonrpsee-proc-macros" -version = "0.22.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d7c2416c400c94b2e864603c51a5bbd5b103386da1f5e58cbf01e7bb3ef0833" +checksum = "7d0bb047e79a143b32ea03974a6bf59b62c2a4c5f5d42a381c907a8bbb3f75c0" dependencies = [ "heck 0.4.1", "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] name = "jsonrpsee-server" -version = "0.22.3" +version = "0.22.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4882e640e70c2553e3d9487e6f4dddd5fd11918f25e40fa45218f9fe29ed2152" +checksum = "12d8b6a9674422a8572e0b0abb12feeb3f2aeda86528c80d0350c2bd0923ab41" dependencies = [ "futures-util", "http 0.2.12", "hyper 0.14.28", - "jsonrpsee-core 0.22.3", - "jsonrpsee-types 0.22.3", + "jsonrpsee-core", + "jsonrpsee-types", "pin-project", "route-recognizer", "serde", @@ -4760,22 +4687,9 @@ dependencies = [ [[package]] name = "jsonrpsee-types" -version = "0.21.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3266dfb045c9174b24c77c2dfe0084914bb23a6b2597d70c9dc6018392e1cd1b" -dependencies = [ - "anyhow", - "beef", - "serde", - "serde_json", - "thiserror", -] - -[[package]] -name = "jsonrpsee-types" -version = "0.22.3" +version = "0.22.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e53c72de6cd2ad6ac1aa6e848206ef8b736f92ed02354959130373dfa5b3cbd" +checksum = "150d6168405890a7a3231a3c74843f58b8959471f6df76078db2619ddee1d07d" dependencies = [ "anyhow", "beef", @@ -4784,19 +4698,6 @@ dependencies = [ "thiserror", ] -[[package]] -name = "jsonrpsee-ws-client" -version = "0.22.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8a07ab8da9a283b906f6735ddd17d3680158bb72259e853441d1dd0167079ec" -dependencies = [ - "http 0.2.12", - "jsonrpsee-client-transport 0.22.3", - "jsonrpsee-core 0.22.3", - "jsonrpsee-types 0.22.3", - "url", -] - [[package]] name = "k256" version = "0.13.3" @@ -4862,21 +4763,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bf7a85fe66f9ff9cd74e169fdd2c94c6e1e74c412c99a73b4df3200b5d3760b2" dependencies = [ "kvdb", - "parking_lot 0.12.1", -] - -[[package]] -name = "kvdb-rocksdb" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b644c70b92285f66bfc2032922a79000ea30af7bc2ab31902992a5dcb9b434f6" -dependencies = [ - "kvdb", - "num_cpus", - "parking_lot 0.12.1", - "regex", - "rocksdb", - "smallvec", + "parking_lot 0.12.2", ] [[package]] @@ -4899,7 +4786,7 @@ dependencies = [ "proc-macro2", "quote", "regex", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -4908,27 +4795,11 @@ version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" -[[package]] -name = "lazycell" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" - [[package]] name = "libc" -version = "0.2.153" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" - -[[package]] -name = "libloading" -version = "0.8.3" +version = "0.2.154" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c2a198fb6b0eada2a8df47933734e6d35d350665a33a3593d7164fa52c75c19" -dependencies = [ - "cfg-if", - "windows-targets 0.52.4", -] +checksum = "ae743338b92ff9146ce83992f766a31066a91a8c84a45e0e9f21e7cf6de6d346" [[package]] name = "libm" @@ -4945,7 +4816,7 @@ dependencies = [ "bytes", "futures 0.3.30", "futures-timer", - "getrandom 0.2.12", + "getrandom 0.2.15", "instant", "libp2p-allow-block-list", "libp2p-connection-limits", @@ -5007,13 +4878,13 @@ dependencies = [ "libp2p-identity", "log", "multiaddr", - "multihash", + "multihash 0.17.0", "multistream-select", "once_cell", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "pin-project", "quick-protobuf", - "rand", + "rand 0.8.5", "rw-stream-sink", "smallvec", "thiserror", @@ -5030,9 +4901,9 @@ dependencies = [ "futures 0.3.30", "libp2p-core", "log", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "smallvec", - "trust-dns-resolver", + "trust-dns-resolver 0.22.0", ] [[package]] @@ -5064,12 +4935,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "276bb57e7af15d8f100d3c11cbdd32c6752b7eef4ba7a18ecf464972c07abcce" dependencies = [ "bs58 0.4.0", - "ed25519-dalek", + "ed25519-dalek 2.1.1", "log", "multiaddr", - "multihash", + "multihash 0.17.0", "quick-protobuf", - "rand", + "rand 0.8.5", "sha2 0.10.8", "thiserror", "zeroize", @@ -5094,7 +4965,7 @@ dependencies = [ "libp2p-swarm", "log", "quick-protobuf", - "rand", + "rand 0.8.5", "sha2 0.10.8", "smallvec", "thiserror", @@ -5116,11 +4987,11 @@ dependencies = [ "libp2p-identity", "libp2p-swarm", "log", - "rand", + "rand 0.8.5", "smallvec", "socket2 0.4.10", "tokio", - "trust-dns-proto", + "trust-dns-proto 0.22.0", "void", ] @@ -5152,7 +5023,7 @@ dependencies = [ "log", "once_cell", "quick-protobuf", - "rand", + "rand 0.8.5", "sha2 0.10.8", "snow", "static_assertions", @@ -5174,7 +5045,7 @@ dependencies = [ "libp2p-core", "libp2p-swarm", "log", - "rand", + "rand 0.8.5", "void", ] @@ -5192,9 +5063,9 @@ dependencies = [ "libp2p-identity", "libp2p-tls", "log", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "quinn-proto", - "rand", + "rand 0.8.5", "rustls 0.20.9", "thiserror", "tokio", @@ -5212,7 +5083,7 @@ dependencies = [ "libp2p-core", "libp2p-identity", "libp2p-swarm", - "rand", + "rand 0.8.5", "smallvec", ] @@ -5231,7 +5102,7 @@ dependencies = [ "libp2p-identity", "libp2p-swarm-derive", "log", - "rand", + "rand 0.8.5", "smallvec", "tokio", "void", @@ -5279,7 +5150,7 @@ dependencies = [ "rustls 0.20.9", "thiserror", "webpki", - "x509-parser", + "x509-parser 0.14.0", "yasna", ] @@ -5308,7 +5179,7 @@ dependencies = [ "futures-rustls", "libp2p-core", "log", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "quicksink", "rw-stream-sink", "soketto", @@ -5339,21 +5210,6 @@ dependencies = [ "libc", ] -[[package]] -name = "librocksdb-sys" -version = "0.11.0+8.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3386f101bcb4bd252d8e9d2fb41ec3b0862a15a62b478c355b2982efa469e3e" -dependencies = [ - "bindgen", - "bzip2-sys", - "cc", - "glob", - "libc", - "libz-sys", - "tikv-jemalloc-sys", -] - [[package]] name = "libsecp256k1" version = "0.7.1" @@ -5367,7 +5223,7 @@ dependencies = [ "libsecp256k1-core", "libsecp256k1-gen-ecmult", "libsecp256k1-gen-genmult", - "rand", + "rand 0.8.5", "serde", "sha2 0.9.9", "typenum", @@ -5472,11 +5328,65 @@ dependencies = [ "keystream", ] +[[package]] +name = "litep2p" +version = "0.3.0" +source = "git+https://github.com/paritytech/litep2p?rev=e03a6023882db111beeb24d8c0ceaac0721d3f0f#e03a6023882db111beeb24d8c0ceaac0721d3f0f" +dependencies = [ + "async-trait", + "bs58 0.4.0", + "bytes", + "cid 0.10.1", + "ed25519-dalek 1.0.1", + "futures 0.3.30", + "futures-timer", + "hex-literal", + "indexmap 2.2.6", + "libc", + "mockall", + "multiaddr", + "multihash 0.17.0", + "network-interface", + "nohash-hasher", + "parking_lot 0.12.2", + "pin-project", + "prost 0.11.9", + "prost-build", + "quinn", + "rand 0.8.5", + "rcgen", + "ring 0.16.20", + "rustls 0.20.9", + "serde", + "sha2 0.10.8", + "simple-dns", + "smallvec", + "snow", + "socket2 0.5.7", + "static_assertions", + "str0m", + "thiserror", + "tokio", + "tokio-stream", + "tokio-tungstenite", + "tokio-util", + "tracing", + "trust-dns-resolver 0.23.2", + "uint", + "unsigned-varint", + "url", + "webpki", + "x25519-dalek 2.0.1", + "x509-parser 0.15.1", + "yasna", + "zeroize", +] + [[package]] name = "lock_api" -version = "0.4.11" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45" +checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" dependencies = [ "autocfg", "scopeguard", @@ -5503,7 +5413,7 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3262e75e648fce39813cb56ac41f3c3e3f65217ebf3844d818d1f9398cfb0dc" dependencies = [ - "hashbrown 0.14.3", + "hashbrown 0.14.5", ] [[package]] @@ -5553,7 +5463,7 @@ dependencies = [ "macro_magic_core", "macro_magic_macros", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -5567,7 +5477,7 @@ dependencies = [ "macro_magic_core_macros", "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -5578,7 +5488,7 @@ checksum = "9ea73aa640dc01d62a590d48c0c3521ed739d53b27f919b25c3551e233481654" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -5589,7 +5499,7 @@ checksum = "ef9d79ae96aaba821963320eb2b6e34d17df1e5a83d8a1985c29cc5be59577b3" dependencies = [ "macro_magic_core", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -5613,6 +5523,15 @@ dependencies = [ "regex-automata 0.1.10", ] +[[package]] +name = "matchers" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558" +dependencies = [ + "regex-automata 0.1.10", +] + [[package]] name = "matches" version = "0.1.10" @@ -5641,7 +5560,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2cffa4ad52c6f791f4f8b15f0c05f9824b2ced1160e88cc393d64fff9a8ac64" dependencies = [ - "rustix 0.38.32", + "rustix 0.38.34", ] [[package]] @@ -5741,9 +5660,9 @@ dependencies = [ "hashlink", "lioness", "log", - "parking_lot 0.12.1", - "rand", - "rand_chacha", + "parking_lot 0.12.2", + "rand 0.8.5", + "rand_chacha 0.3.1", "rand_distr", "subtle 2.5.0", "thiserror", @@ -5788,7 +5707,7 @@ dependencies = [ "data-encoding", "log", "multibase", - "multihash", + "multihash 0.17.0", "percent-encoding", "serde", "static_assertions", @@ -5824,6 +5743,23 @@ dependencies = [ "unsigned-varint", ] +[[package]] +name = "multihash" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfd8a792c1694c6da4f68db0a9d707c72bd260994da179e6030a5dcee00bb815" +dependencies = [ + "blake2b_simd", + "blake2s_simd", + "blake3", + "core2", + "digest 0.10.7", + "multihash-derive", + "sha2 0.10.8", + "sha3", + "unsigned-varint", +] + [[package]] name = "multihash-derive" version = "0.8.1" @@ -5869,7 +5805,7 @@ dependencies = [ "nalgebra-macros", "num-complex", "num-rational", - "num-traits 0.2.18", + "num-traits 0.2.19", "simba", "typenum", ] @@ -5891,7 +5827,7 @@ version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7bddcd3bf5144b6392de80e04c347cd7fab2508f6df16a85fc496ecd5cec39bc" dependencies = [ - "rand", + "rand 0.8.5", ] [[package]] @@ -5949,9 +5885,9 @@ dependencies = [ [[package]] name = "netlink-sys" -version = "0.8.5" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6471bf08e7ac0135876a9581bf3217ef0333c191c128d34878079f42ee150411" +checksum = "416060d346fbaf1f23f9512963e3e878f1a78e707cb699ba9215761754244307" dependencies = [ "bytes", "futures 0.3.30", @@ -5960,6 +5896,18 @@ dependencies = [ "tokio", ] +[[package]] +name = "network-interface" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4a43439bf756eed340bdf8feba761e2d50c7d47175d87545cd5cbe4a137c4d1" +dependencies = [ + "cc", + "libc", + "thiserror", + "winapi", +] + [[package]] name = "nix" version = "0.24.3" @@ -5998,7 +5946,7 @@ checksum = "43794a0ace135be66a25d3ae77d41b91615fb68ae937f904090203e81f755b65" [[package]] name = "node-primitives" version = "2.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "sp-core", "sp-runtime", @@ -6078,24 +6026,33 @@ dependencies = [ "notify", ] +[[package]] +name = "nu-ansi-term" +version = "0.46.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" +dependencies = [ + "overload", + "winapi", +] + [[package]] name = "num-bigint" -version = "0.4.4" +version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "608e7659b5c3d7cba262d894801b9ec9d00de989e8a82bd4bef91d08da45cdc0" +checksum = "c165a9ab64cf766f73521c0dd2cfdff64f488b8f0b3e621face3462d3db536d7" dependencies = [ - "autocfg", "num-integer", - "num-traits 0.2.18", + "num-traits 0.2.19", ] [[package]] name = "num-complex" -version = "0.4.5" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23c6602fda94a57c990fe0df199a035d83576b496aa29f4e634a8ac6004e68a6" +checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495" dependencies = [ - "num-traits 0.2.18", + "num-traits 0.2.19", ] [[package]] @@ -6120,19 +6077,18 @@ version = "0.1.46" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" dependencies = [ - "num-traits 0.2.18", + "num-traits 0.2.19", ] [[package]] name = "num-rational" -version = "0.4.1" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0638a1c9d0a3c0914158145bc76cff373a75a627e6ecbfb71cbe6f453a5a19b0" +checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824" dependencies = [ - "autocfg", "num-bigint", "num-integer", - "num-traits 0.2.18", + "num-traits 0.2.19", ] [[package]] @@ -6141,14 +6097,14 @@ version = "0.1.43" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "92e5113e9fd4cc14ded8e499429f396a20f98c772a47cc8622a736e1ec843c31" dependencies = [ - "num-traits 0.2.18", + "num-traits 0.2.19", ] [[package]] name = "num-traits" -version = "0.2.18" +version = "0.2.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da0df0e5185db44f69b44f26786fe401b6c293d1907744beaa7fa62b2e5a517a" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" dependencies = [ "autocfg", "libm", @@ -6164,12 +6120,6 @@ dependencies = [ "libc", ] -[[package]] -name = "number_prefix" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" - [[package]] name = "object" version = "0.30.4" @@ -6218,22 +6168,76 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" +[[package]] +name = "openssl" +version = "0.10.64" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95a0481286a310808298130d22dd1fef0fa571e05a8f44ec801801e84b216b1f" +dependencies = [ + "bitflags 2.5.0", + "cfg-if", + "foreign-types", + "libc", + "once_cell", + "openssl-macros", + "openssl-sys", +] + +[[package]] +name = "openssl-macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.61", +] + [[package]] name = "openssl-probe" version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" +[[package]] +name = "openssl-src" +version = "300.2.3+3.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5cff92b6f71555b61bb9315f7c64da3ca43d87531622120fea0195fc761b4843" +dependencies = [ + "cc", +] + +[[package]] +name = "openssl-sys" +version = "0.9.102" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c597637d56fbc83893a35eb0dd04b2b8e7a50c91e64e9493e398b5df4fb45fa2" +dependencies = [ + "cc", + "libc", + "openssl-src", + "pkg-config", + "vcpkg", +] + [[package]] name = "option-ext" version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" +[[package]] +name = "overload" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" + [[package]] name = "pallet-atomic-swap" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "frame-support", "frame-system", @@ -6248,7 +6252,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "frame-support", "frame-system", @@ -6285,7 +6289,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "frame-support", "frame-system", @@ -6299,7 +6303,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "frame-benchmarking", "frame-support", @@ -6323,7 +6327,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "docify", "frame-benchmarking", @@ -6357,7 +6361,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "frame-benchmarking", "frame-support", @@ -6378,7 +6382,7 @@ dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "getrandom 0.2.12", + "getrandom 0.2.15", "pallet-authority-members", "pallet-authorship", "pallet-balances", @@ -6441,7 +6445,7 @@ version = "1.0.0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -6468,7 +6472,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "frame-benchmarking", "frame-support", @@ -6511,7 +6515,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "27.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "frame-benchmarking", "frame-support", @@ -6549,7 +6553,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "frame-benchmarking", "frame-support", @@ -6599,7 +6603,7 @@ dependencies = [ [[package]] name = "pallet-preimage" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "frame-benchmarking", "frame-support", @@ -6632,7 +6636,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "frame-benchmarking", "frame-support", @@ -6664,7 +6668,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "29.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "docify", "frame-benchmarking", @@ -6682,7 +6686,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "frame-support", "frame-system", @@ -6736,7 +6740,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "docify", "frame-benchmarking", @@ -6752,7 +6756,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "27.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "docify", "frame-benchmarking", @@ -6772,7 +6776,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "frame-support", "frame-system", @@ -6788,9 +6792,9 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "30.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ - "jsonrpsee 0.22.3", + "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", "sp-api", @@ -6804,7 +6808,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -6816,7 +6820,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "27.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "docify", "frame-benchmarking", @@ -6871,7 +6875,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "frame-benchmarking", "frame-support", @@ -6891,7 +6895,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4e69bf016dc406eff7d53a7d3f7cf1c2e72c82b9088aac1118591e36dd2cd3e9" dependencies = [ "bitcoin_hashes 0.13.0", - "rand", + "rand 0.8.5", "rand_core 0.6.4", "serde", "unicode-normalization", @@ -6911,8 +6915,8 @@ dependencies = [ "log", "lz4", "memmap2 0.5.10", - "parking_lot 0.12.1", - "rand", + "parking_lot 0.12.2", + "rand 0.8.5", "siphasher 0.3.11", "snap", "winapi", @@ -6920,9 +6924,9 @@ dependencies = [ [[package]] name = "parity-scale-codec" -version = "3.6.9" +version = "3.6.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "881331e34fa842a2fb61cc2db9643a8fedc615e47cfcc52597d1af0db9a7e8fe" +checksum = "306800abfa29c7f16596b5970a588435e3d5b3149683d00c12b699cc19f895ee" dependencies = [ "arrayvec 0.7.4", "bitvec", @@ -6935,11 +6939,11 @@ dependencies = [ [[package]] name = "parity-scale-codec-derive" -version = "3.6.9" +version = "3.6.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be30eaf4b0a9fba5336683b38de57bb86d179a35862ba6bfcf57625d006bde5b" +checksum = "d830939c76d294956402033aee57a6da7b438f2294eb94864c37b0569053a42c" dependencies = [ - "proc-macro-crate 2.0.0", + "proc-macro-crate 3.1.0", "proc-macro2", "quote", "syn 1.0.109", @@ -6976,12 +6980,12 @@ dependencies = [ [[package]] name = "parking_lot" -version = "0.12.1" +version = "0.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" +checksum = "7e4af0ca4f6caed20e900d564c242b8e5d4903fdacf31d3daf527b66fe6f42fb" dependencies = [ "lock_api", - "parking_lot_core 0.9.9", + "parking_lot_core 0.9.10", ] [[package]] @@ -7000,15 +7004,15 @@ dependencies = [ [[package]] name = "parking_lot_core" -version = "0.9.9" +version = "0.9.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e" +checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" dependencies = [ "cfg-if", "libc", - "redox_syscall 0.4.1", + "redox_syscall 0.5.1", "smallvec", - "windows-targets 0.48.5", + "windows-targets 0.52.5", ] [[package]] @@ -7030,9 +7034,9 @@ dependencies = [ [[package]] name = "paste" -version = "1.0.14" +version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" [[package]] name = "pbkdf2" @@ -7044,12 +7048,6 @@ dependencies = [ "password-hash", ] -[[package]] -name = "peeking_take_while" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099" - [[package]] name = "peg" version = "0.6.3" @@ -7094,9 +7092,9 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "pest" -version = "2.7.9" +version = "2.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "311fb059dee1a7b802f036316d790138c613a4e8b180c822e3925a662e9f0c95" +checksum = "560131c633294438da9f7c4b08189194b20946c8274c6b9e38881a7874dc8ee8" dependencies = [ "memchr", "thiserror", @@ -7105,9 +7103,9 @@ dependencies = [ [[package]] name = "pest_derive" -version = "2.7.9" +version = "2.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f73541b156d32197eecda1a4014d7f868fd2bcb3c550d5386087cfba442bf69c" +checksum = "26293c9193fbca7b1a3bf9b79dc1e388e927e6cacaa78b4a3ab705a1d3d41459" dependencies = [ "pest", "pest_generator", @@ -7115,22 +7113,22 @@ dependencies = [ [[package]] name = "pest_generator" -version = "2.7.9" +version = "2.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c35eeed0a3fab112f75165fdc026b3913f4183133f19b49be773ac9ea966e8bd" +checksum = "3ec22af7d3fb470a85dd2ca96b7c577a1eb4ef6f1683a9fe9a8c16e136c04687" dependencies = [ "pest", "pest_meta", "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] name = "pest_meta" -version = "2.7.9" +version = "2.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2adbf29bb9776f28caece835398781ab24435585fe0d4dc1374a61db5accedca" +checksum = "d7a240022f37c361ec1878d646fc5b7d7c4d28d5946e1a80ad5a7a4f4ca0bdcd" dependencies = [ "once_cell", "pest", @@ -7139,9 +7137,9 @@ dependencies = [ [[package]] name = "petgraph" -version = "0.6.4" +version = "0.6.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9" +checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" dependencies = [ "fixedbitset", "indexmap 2.2.6", @@ -7164,7 +7162,7 @@ checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -7277,7 +7275,7 @@ dependencies = [ "polkavm-common", "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -7287,7 +7285,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ba81f7b5faac81e528eb6158a6f3c9e0bb1008e0ffa19653bc8dea925ecb429" dependencies = [ "polkavm-derive-impl", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -7297,7 +7295,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c7be503e60cf56c0eb785f90aaba4b583b36bff00e93997d93fef97f9553c39" dependencies = [ "gimli 0.28.1", - "hashbrown 0.14.3", + "hashbrown 0.14.5", "log", "object 0.32.2", "polkavm-common", @@ -7313,15 +7311,15 @@ checksum = "26e85d3456948e650dff0cfc85603915847faf893ed1e66b020bb82ef4557120" [[package]] name = "polling" -version = "3.6.0" +version = "3.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0c976a60b2d7e99d6f229e414670a9b85d13ac305cc6d1e9c134de58c5aaaf6" +checksum = "645493cf344456ef24219d02a768cf1fb92ddf8c92161679ae3d91b91a637be3" dependencies = [ "cfg-if", "concurrent-queue", "hermit-abi", "pin-project-lite 0.2.14", - "rustix 0.38.32", + "rustix 0.38.34", "tracing", "windows-sys 0.52.0", ] @@ -7361,7 +7359,7 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be97d76faf1bfab666e1375477b23fde79eccf0276e9b63b92a39d676a889ba9" dependencies = [ - "rand", + "rand 0.8.5", ] [[package]] @@ -7413,7 +7411,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "22020dfcf177fcc7bf5deaf7440af371400c67c0de14c399938d8ed4fb4645d3" dependencies = [ "proc-macro2", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -7426,16 +7424,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "prettyplease" -version = "0.2.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d3928fb5db768cb86f891ff014f0144589297e3c6a1aba6ed7cecfdace270c7" -dependencies = [ - "proc-macro2", - "syn 2.0.58", -] - [[package]] name = "primitive-types" version = "0.12.2" @@ -7459,15 +7447,6 @@ dependencies = [ "toml 0.5.11", ] -[[package]] -name = "proc-macro-crate" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e8366a6159044a37876a2b9817124296703c586a5c92e2c53751fa06d8d43e8" -dependencies = [ - "toml_edit 0.20.7", -] - [[package]] name = "proc-macro-crate" version = "3.1.0" @@ -7509,29 +7488,29 @@ checksum = "834da187cfe638ae8abb0203f0b33e5ccdb02a28e7199f2f47b3e2754f50edca" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] name = "proc-macro2" -version = "1.0.79" +version = "1.0.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e835ff2298f5721608eb1a980ecaee1aef2c132bf95ecc026a11b7bf3c01c02e" +checksum = "8ad3d49ab951a01fbaafe34f2ec74122942fe18a3f9814c3268f1bb72042131b" dependencies = [ "unicode-ident", ] [[package]] name = "prometheus" -version = "0.13.3" +version = "0.13.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "449811d15fbdf5ceb5c1144416066429cf82316e2ec8ce0c1f6f8a02e7bbcf8c" +checksum = "3d33c28a30771f7f96db69893f78b857f7450d7e0237e9c8fc6427a81bae7ed1" dependencies = [ "cfg-if", "fnv", "lazy_static", "memchr", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "thiserror", ] @@ -7543,7 +7522,7 @@ checksum = "5d6fa99d535dd930d1249e6c79cb3c2915f9172a540fe2b02a4c8f9ca954721e" dependencies = [ "dtoa", "itoa", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "prometheus-client-derive-encode", ] @@ -7555,7 +7534,7 @@ checksum = "440f724eba9f6996b75d63681b0a92b06947f1457076d503a4d2e2c8f56442b8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -7570,12 +7549,12 @@ dependencies = [ [[package]] name = "prost" -version = "0.12.3" +version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "146c289cda302b98a28d40c8b3b90498d6e526dd24ac2ecea73e4e491685b94a" +checksum = "d0f5d036824e4761737860779c906171497f6d55681139d8312388f8fe398922" dependencies = [ "bytes", - "prost-derive 0.12.3", + "prost-derive 0.12.5", ] [[package]] @@ -7591,7 +7570,7 @@ dependencies = [ "log", "multimap", "petgraph", - "prettyplease 0.1.11", + "prettyplease", "prost 0.11.9", "prost-types", "regex", @@ -7615,15 +7594,15 @@ dependencies = [ [[package]] name = "prost-derive" -version = "0.12.3" +version = "0.12.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efb6c9a1dd1def8e2124d17e83a20af56f1570d6c2d2bd9e266ccb768df3840e" +checksum = "9554e3ab233f0a932403704f1a1d08c30d5ccd931adfdfa1e8b5a19b52c1d55a" dependencies = [ "anyhow", - "itertools 0.11.0", + "itertools 0.12.1", "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -7698,6 +7677,24 @@ dependencies = [ "pin-project-lite 0.1.12", ] +[[package]] +name = "quinn" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e8b432585672228923edbbf64b8b12c14e1112f62e88737655b4a083dbcd78e" +dependencies = [ + "bytes", + "pin-project-lite 0.2.14", + "quinn-proto", + "quinn-udp", + "rustc-hash", + "rustls 0.20.9", + "thiserror", + "tokio", + "tracing", + "webpki", +] + [[package]] name = "quinn-proto" version = "0.9.6" @@ -7705,7 +7702,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94b0b33c13a79f669c85defaf4c275dc86a0c0372807d0ca3d78e0bb87274863" dependencies = [ "bytes", - "rand", + "rand 0.8.5", "ring 0.16.20", "rustc-hash", "rustls 0.20.9", @@ -7716,11 +7713,24 @@ dependencies = [ "webpki", ] +[[package]] +name = "quinn-udp" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "641538578b21f5e5c8ea733b736895576d0fe329bb883b937db6f4d163dbaaf4" +dependencies = [ + "libc", + "quinn-proto", + "socket2 0.4.10", + "tracing", + "windows-sys 0.42.0", +] + [[package]] name = "quote" -version = "1.0.35" +version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" +checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" dependencies = [ "proc-macro2", ] @@ -7733,15 +7743,38 @@ checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" [[package]] name = "rand" -version = "0.8.5" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" dependencies = [ + "getrandom 0.1.16", "libc", - "rand_chacha", + "rand_chacha 0.2.2", + "rand_core 0.5.1", + "rand_hc", +] + +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha 0.3.1", "rand_core 0.6.4", ] +[[package]] +name = "rand_chacha" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" +dependencies = [ + "ppv-lite86", + "rand_core 0.5.1", +] + [[package]] name = "rand_chacha" version = "0.3.1" @@ -7767,7 +7800,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.12", + "getrandom 0.2.15", ] [[package]] @@ -7776,8 +7809,17 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32cb0b9bc82b0a0876c2dd994a7e7a2683d3e7390ca40e6886785ef0c7e3ee31" dependencies = [ - "num-traits 0.2.18", - "rand", + "num-traits 0.2.19", + "rand 0.8.5", +] + +[[package]] +name = "rand_hc" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +dependencies = [ + "rand_core 0.5.1", ] [[package]] @@ -7791,9 +7833,9 @@ dependencies = [ [[package]] name = "raw-cpuid" -version = "11.0.1" +version = "11.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d86a7c4638d42c44551f4791a20e687dbb4c3de1f33c43dd71e355cd429def1" +checksum = "e29830cbb1290e404f24c73af91c5d8d631ce7e128691e9477556b540cd01ecd" dependencies = [ "bitflags 2.5.0", ] @@ -7854,35 +7896,44 @@ dependencies = [ "bitflags 1.3.2", ] +[[package]] +name = "redox_syscall" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "469052894dcb553421e483e4209ee581a45100d31b4018de03e5a7ad86374a7e" +dependencies = [ + "bitflags 2.5.0", +] + [[package]] name = "redox_users" version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd283d9651eeda4b2a83a43c1c91b266c40fd76ecd39a50a8c630ae69dc72891" dependencies = [ - "getrandom 0.2.12", + "getrandom 0.2.15", "libredox", "thiserror", ] [[package]] name = "ref-cast" -version = "1.0.22" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4846d4c50d1721b1a3bef8af76924eef20d5e723647333798c1b519b3a9473f" +checksum = "ccf0a6f84d5f1d581da8b41b47ec8600871962f2a528115b542b362d4b744931" dependencies = [ "ref-cast-impl", ] [[package]] name = "ref-cast-impl" -version = "1.0.22" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fddb4f8d99b0a2ebafc65a87a69a7b9875e4b1ae1f00db265d300ef7f28bccc" +checksum = "bcc303e793d3734489387d205e9b186fac9c6cfacedd98cbb2e8a5943595f3e6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -7962,18 +8013,18 @@ checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56" [[package]] name = "reqwest" -version = "0.12.2" +version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d66674f2b6fb864665eea7a3c1ac4e3dfacd2fda83cf6f935a612e01b0e3338" +checksum = "566cafdd92868e0939d3fb961bd0dc25fcfaaed179291093b3d43e6b3150ea10" dependencies = [ - "base64 0.21.7", + "base64 0.22.1", "bytes", "futures-core", "futures-util", "http 1.1.0", "http-body 1.0.0", "http-body-util", - "hyper 1.2.0", + "hyper 1.3.1", "hyper-util", "ipnet", "js-sys", @@ -7992,7 +8043,7 @@ dependencies = [ "wasm-bindgen", "wasm-bindgen-futures", "web-sys", - "winreg", + "winreg 0.52.0", ] [[package]] @@ -8054,23 +8105,13 @@ checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" dependencies = [ "cc", "cfg-if", - "getrandom 0.2.12", + "getrandom 0.2.15", "libc", "spin 0.9.8", "untrusted 0.9.0", "windows-sys 0.52.0", ] -[[package]] -name = "rocksdb" -version = "0.21.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb6f170a4041d50a0ce04b0d2e14916d6ca863ea2e422689a5b694395d299ffe" -dependencies = [ - "libc", - "librocksdb-sys", -] - [[package]] name = "route-recognizer" version = "0.3.1" @@ -8115,9 +8156,9 @@ dependencies = [ [[package]] name = "rustc-demangle" -version = "0.1.23" +version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" +checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" [[package]] name = "rustc-hash" @@ -8137,7 +8178,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ - "semver 1.0.22", + "semver 1.0.23", ] [[package]] @@ -8165,9 +8206,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.32" +version = "0.38.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65e04861e65f21776e67888bfbea442b3642beaa0138fdb1dd7a84a52dffdb89" +checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f" dependencies = [ "bitflags 2.5.0", "errno", @@ -8190,9 +8231,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.21.10" +version = "0.21.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9d5a6813c0759e4609cd494e8e725babae6a2ca7b62a5536a13daaec6fcb7ba" +checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e" dependencies = [ "log", "ring 0.17.8", @@ -8202,14 +8243,14 @@ dependencies = [ [[package]] name = "rustls" -version = "0.22.3" +version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99008d7ad0bbbea527ec27bddbc0e432c5b87d8175178cee68d2eec9c4a1813c" +checksum = "bf4ef73721ac7bcd79b2b315da7779d8fc09718c6b3d2d1b2d94850eb8c18432" dependencies = [ "log", "ring 0.17.8", "rustls-pki-types", - "rustls-webpki 0.102.2", + "rustls-webpki 0.102.3", "subtle 2.5.0", "zeroize", ] @@ -8233,7 +8274,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f1fb85efa936c42c6d5fc28d2629bb51e4b2f4b8a5211e297d599cc5a093792" dependencies = [ "openssl-probe", - "rustls-pemfile 2.1.1", + "rustls-pemfile 2.1.2", "rustls-pki-types", "schannel", "security-framework", @@ -8250,19 +8291,19 @@ dependencies = [ [[package]] name = "rustls-pemfile" -version = "2.1.1" +version = "2.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f48172685e6ff52a556baa527774f61fcaa884f59daf3375c62a3f1cd2549dab" +checksum = "29993a25686778eb88d4189742cd713c9bce943bc54251a33509dc63cbacf73d" dependencies = [ - "base64 0.21.7", + "base64 0.22.1", "rustls-pki-types", ] [[package]] name = "rustls-pki-types" -version = "1.4.1" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecd36cc4259e3e4514335c4a138c6b43171a8d61d8f5c9348f9fc7529416f247" +checksum = "976295e77ce332211c0d24d92c0e83e50f5c5f046d11082cea19f3df13a3562d" [[package]] name = "rustls-webpki" @@ -8276,9 +8317,9 @@ dependencies = [ [[package]] name = "rustls-webpki" -version = "0.102.2" +version = "0.102.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "faaa0a62740bedb9b2ef5afa303da42764c012f743917351dc9a237ea1663610" +checksum = "f3bce581c0dd41bce533ce695a1437fa16a7ab5ac3ccfa99fe1a620a7885eabf" dependencies = [ "ring 0.17.8", "rustls-pki-types", @@ -8287,9 +8328,9 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.14" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" +checksum = "092474d1a01ea8278f69e6a358998405fae5b8b963ddaeb2b0b04a128bf1dfb0" [[package]] name = "ruzstd" @@ -8315,9 +8356,9 @@ dependencies = [ [[package]] name = "ryu" -version = "1.0.17" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1" +checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" [[package]] name = "safe_arch" @@ -8340,7 +8381,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "23.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "log", "sp-core", @@ -8351,7 +8392,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.34.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "futures 0.3.30", "futures-timer", @@ -8373,7 +8414,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.33.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "parity-scale-codec", "sp-api", @@ -8387,8 +8428,8 @@ dependencies = [ [[package]] name = "sc-chain-spec" -version = "27.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +version = "28.0.0" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "array-bytes 6.2.2", "docify", @@ -8409,23 +8450,24 @@ dependencies = [ "sp-io", "sp-runtime", "sp-state-machine", + "sp-tracing 16.0.0", ] [[package]] name = "sc-chain-spec-derive" version = "11.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] name = "sc-cli" version = "0.36.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "array-bytes 6.2.2", "chrono", @@ -8438,7 +8480,7 @@ dependencies = [ "names", "parity-bip39", "parity-scale-codec", - "rand", + "rand 0.8.5", "regex", "rpassword", "sc-client-api", @@ -8466,13 +8508,13 @@ dependencies = [ [[package]] name = "sc-client-api" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "fnv", "futures 0.3.30", "log", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "sc-executor", "sc-transaction-pool-api", "sc-utils", @@ -8493,17 +8535,16 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.35.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "hash-db", "kvdb", "kvdb-memorydb", - "kvdb-rocksdb", "linked-hash-map", "log", "parity-db", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "sc-client-api", "sc-state-db", "schnellru", @@ -8519,16 +8560,16 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.33.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "async-trait", "futures 0.3.30", "futures-timer", - "libp2p-identity", "log", "mockall", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "sc-client-api", + "sc-network-types", "sc-utils", "serde", "sp-api", @@ -8544,7 +8585,7 @@ dependencies = [ [[package]] name = "sc-consensus-aura" version = "0.34.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "async-trait", "futures 0.3.30", @@ -8573,7 +8614,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.34.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "async-trait", "fork-tree", @@ -8581,9 +8622,9 @@ dependencies = [ "log", "num-bigint", "num-rational", - "num-traits 0.2.18", + "num-traits 0.2.19", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "sc-client-api", "sc-consensus", "sc-consensus-epochs", @@ -8609,10 +8650,10 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.34.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "futures 0.3.30", - "jsonrpsee 0.22.3", + "jsonrpsee", "sc-consensus-babe", "sc-consensus-epochs", "sc-rpc-api", @@ -8631,7 +8672,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.33.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "fork-tree", "parity-scale-codec", @@ -8644,7 +8685,7 @@ dependencies = [ [[package]] name = "sc-consensus-grandpa" version = "0.19.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "ahash 0.8.11", "array-bytes 6.2.2", @@ -8656,8 +8697,8 @@ dependencies = [ "futures-timer", "log", "parity-scale-codec", - "parking_lot 0.12.1", - "rand", + "parking_lot 0.12.2", + "rand 0.8.5", "sc-block-builder", "sc-chain-spec", "sc-client-api", @@ -8666,6 +8707,7 @@ dependencies = [ "sc-network-common", "sc-network-gossip", "sc-network-sync", + "sc-network-types", "sc-telemetry", "sc-transaction-pool-api", "sc-utils", @@ -8687,13 +8729,13 @@ dependencies = [ [[package]] name = "sc-consensus-manual-seal" version = "0.35.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "assert_matches", "async-trait", "futures 0.3.30", "futures-timer", - "jsonrpsee 0.22.3", + "jsonrpsee", "log", "parity-scale-codec", "sc-client-api", @@ -8722,7 +8764,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.33.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "async-trait", "futures 0.3.30", @@ -8745,10 +8787,10 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.32.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "sc-executor-common", "sc-executor-polkavm", "sc-executor-wasmtime", @@ -8768,7 +8810,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.29.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "polkavm", "sc-allocator", @@ -8781,7 +8823,7 @@ dependencies = [ [[package]] name = "sc-executor-polkavm" version = "0.29.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "log", "polkavm", @@ -8792,13 +8834,13 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.29.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "anyhow", "cfg-if", "libc", "log", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "rustix 0.36.17", "sc-allocator", "sc-executor-common", @@ -8810,7 +8852,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.33.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "ansi_term", "futures 0.3.30", @@ -8827,10 +8869,10 @@ dependencies = [ [[package]] name = "sc-keystore" version = "25.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "array-bytes 6.2.2", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "serde_json", "sp-application-crypto", "sp-core", @@ -8841,7 +8883,7 @@ dependencies = [ [[package]] name = "sc-mixnet" version = "0.4.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "array-bytes 4.2.0", "arrayvec 0.7.4", @@ -8849,14 +8891,14 @@ dependencies = [ "bytes", "futures 0.3.30", "futures-timer", - "libp2p-identity", "log", "mixnet", "multiaddr", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "sc-client-api", "sc-network", + "sc-network-types", "sc-transaction-pool-api", "sp-api", "sp-consensus", @@ -8870,13 +8912,14 @@ dependencies = [ [[package]] name = "sc-network" version = "0.34.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "array-bytes 6.2.2", "async-channel 1.9.0", "async-trait", "asynchronous-codec", "bytes", + "cid 0.9.0", "either", "fnv", "futures 0.3.30", @@ -8884,16 +8927,22 @@ dependencies = [ "ip_network", "libp2p", "linked_hash_set", + "litep2p", "log", "mockall", + "once_cell", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "partial_sort", "pin-project", - "rand", + "prost 0.11.9", + "prost-build", + "rand 0.8.5", "sc-client-api", "sc-network-common", + "sc-network-types", "sc-utils", + "schnellru", "serde", "serde_json", "smallvec", @@ -8906,34 +8955,15 @@ dependencies = [ "tokio", "tokio-stream", "unsigned-varint", + "void", "wasm-timer", "zeroize", ] -[[package]] -name = "sc-network-bitswap" -version = "0.33.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" -dependencies = [ - "async-channel 1.9.0", - "cid", - "futures 0.3.30", - "libp2p-identity", - "log", - "prost 0.12.3", - "prost-build", - "sc-client-api", - "sc-network", - "sp-blockchain", - "sp-runtime", - "thiserror", - "unsigned-varint", -] - [[package]] name = "sc-network-common" version = "0.33.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "async-trait", "bitflags 1.3.2", @@ -8942,6 +8972,7 @@ dependencies = [ "parity-scale-codec", "prost-build", "sc-consensus", + "sc-network-types", "sp-consensus", "sp-consensus-grandpa", "sp-runtime", @@ -8950,7 +8981,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.34.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "ahash 0.8.11", "futures 0.3.30", @@ -8960,6 +8991,7 @@ dependencies = [ "sc-network", "sc-network-common", "sc-network-sync", + "sc-network-types", "schnellru", "sp-runtime", "substrate-prometheus-endpoint", @@ -8969,18 +9001,18 @@ dependencies = [ [[package]] name = "sc-network-light" version = "0.33.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "array-bytes 6.2.2", "async-channel 1.9.0", "futures 0.3.30", - "libp2p-identity", "log", "parity-scale-codec", - "prost 0.12.3", + "prost 0.12.4", "prost-build", "sc-client-api", "sc-network", + "sc-network-types", "sp-blockchain", "sp-core", "sp-runtime", @@ -8990,7 +9022,7 @@ dependencies = [ [[package]] name = "sc-network-sync" version = "0.33.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "array-bytes 6.2.2", "async-channel 1.9.0", @@ -9002,12 +9034,13 @@ dependencies = [ "log", "mockall", "parity-scale-codec", - "prost 0.12.3", + "prost 0.12.4", "prost-build", "sc-client-api", "sc-consensus", "sc-network", "sc-network-common", + "sc-network-types", "sc-utils", "schnellru", "smallvec", @@ -9026,7 +9059,7 @@ dependencies = [ [[package]] name = "sc-network-transactions" version = "0.33.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "array-bytes 6.2.2", "futures 0.3.30", @@ -9036,16 +9069,31 @@ dependencies = [ "sc-network", "sc-network-common", "sc-network-sync", + "sc-network-types", "sc-utils", "sp-consensus", "sp-runtime", "substrate-prometheus-endpoint", ] +[[package]] +name = "sc-network-types" +version = "0.10.0-dev" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" +dependencies = [ + "bs58 0.4.0", + "libp2p-identity", + "litep2p", + "multiaddr", + "multihash 0.17.0", + "rand 0.8.5", + "thiserror", +] + [[package]] name = "sc-offchain" version = "29.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "array-bytes 6.2.2", "bytes", @@ -9059,11 +9107,12 @@ dependencies = [ "num_cpus", "once_cell", "parity-scale-codec", - "parking_lot 0.12.1", - "rand", + "parking_lot 0.12.2", + "rand 0.8.5", "sc-client-api", "sc-network", "sc-network-common", + "sc-network-types", "sc-transaction-pool-api", "sc-utils", "sp-api", @@ -9079,7 +9128,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.17.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -9088,13 +9137,13 @@ dependencies = [ [[package]] name = "sc-rpc" version = "29.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "futures 0.3.30", - "jsonrpsee 0.22.3", + "jsonrpsee", "log", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "sc-block-builder", "sc-chain-spec", "sc-client-api", @@ -9120,9 +9169,9 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.33.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ - "jsonrpsee 0.22.3", + "jsonrpsee", "parity-scale-codec", "sc-chain-spec", "sc-mixnet", @@ -9140,13 +9189,13 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "11.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "futures 0.3.30", "governor", "http 0.2.12", "hyper 0.14.28", - "jsonrpsee 0.22.3", + "jsonrpsee", "log", "serde_json", "substrate-prometheus-endpoint", @@ -9158,22 +9207,23 @@ dependencies = [ [[package]] name = "sc-rpc-spec-v2" version = "0.34.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "array-bytes 6.2.2", "futures 0.3.30", "futures-util", "hex", - "jsonrpsee 0.22.3", + "jsonrpsee", "log", "parity-scale-codec", - "parking_lot 0.12.1", - "rand", + "parking_lot 0.12.2", + "rand 0.8.5", "sc-chain-spec", "sc-client-api", "sc-rpc", "sc-transaction-pool-api", "sc-utils", + "schnellru", "serde", "sp-api", "sp-blockchain", @@ -9189,19 +9239,19 @@ dependencies = [ [[package]] name = "sc-service" version = "0.35.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "async-trait", "directories", "exit-future", "futures 0.3.30", "futures-timer", - "jsonrpsee 0.22.3", + "jsonrpsee", "log", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "pin-project", - "rand", + "rand 0.8.5", "sc-chain-spec", "sc-client-api", "sc-client-db", @@ -9210,11 +9260,11 @@ dependencies = [ "sc-informant", "sc-keystore", "sc-network", - "sc-network-bitswap", "sc-network-common", "sc-network-light", "sc-network-sync", "sc-network-transactions", + "sc-network-types", "sc-rpc", "sc-rpc-server", "sc-rpc-spec-v2", @@ -9253,24 +9303,24 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.30.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "log", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "sp-core", ] [[package]] name = "sc-sysinfo" version = "27.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "derive_more", "futures 0.3.30", "libc", "log", - "rand", + "rand 0.8.5", "rand_pcg", "regex", "sc-telemetry", @@ -9285,15 +9335,16 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "15.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "chrono", "futures 0.3.30", "libp2p", "log", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "pin-project", - "rand", + "rand 0.8.5", + "sc-network", "sc-utils", "serde", "serde_json", @@ -9304,7 +9355,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "ansi_term", "chrono", @@ -9313,7 +9364,7 @@ dependencies = [ "libc", "log", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "regex", "rustc-hash", "sc-client-api", @@ -9327,25 +9378,25 @@ dependencies = [ "sp-tracing 16.0.0", "thiserror", "tracing", - "tracing-log", - "tracing-subscriber", + "tracing-log 0.1.4", + "tracing-subscriber 0.3.18", ] [[package]] name = "sc-tracing-proc-macro" version = "11.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] name = "sc-transaction-pool" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "async-trait", "futures 0.3.30", @@ -9353,7 +9404,7 @@ dependencies = [ "linked-hash-map", "log", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "sc-client-api", "sc-transaction-pool-api", "sc-utils", @@ -9372,7 +9423,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "async-trait", "futures 0.3.30", @@ -9388,29 +9439,18 @@ dependencies = [ [[package]] name = "sc-utils" version = "14.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "async-channel 1.9.0", "futures 0.3.30", "futures-timer", "lazy_static", "log", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "prometheus", "sp-arithmetic", ] -[[package]] -name = "scale-bits" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "036575c29af9b6e4866ffb7fa055dbf623fe7a9cc159b33786de6013a6969d89" -dependencies = [ - "parity-scale-codec", - "scale-info", - "serde", -] - [[package]] name = "scale-bits" version = "0.5.0" @@ -9423,21 +9463,6 @@ dependencies = [ "serde", ] -[[package]] -name = "scale-decode" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7caaf753f8ed1ab4752c6afb20174f03598c664724e0e32628e161c21000ff76" -dependencies = [ - "derive_more", - "parity-scale-codec", - "primitive-types", - "scale-bits 0.4.0", - "scale-decode-derive", - "scale-info", - "smallvec", -] - [[package]] name = "scale-decode" version = "0.11.1" @@ -9446,39 +9471,25 @@ checksum = "afc79ba56a1c742f5aeeed1f1801f3edf51f7e818f0a54582cac6f131364ea7b" dependencies = [ "derive_more", "parity-scale-codec", - "scale-bits 0.5.0", + "primitive-types", + "scale-bits", + "scale-decode-derive", "scale-type-resolver", "smallvec", ] [[package]] name = "scale-decode-derive" -version = "0.10.0" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3475108a1b62c7efd1b5c65974f30109a598b2f45f23c9ae030acb9686966db" +checksum = "5398fdb3c7bea3cb419bac4983aadacae93fe1a7b5f693f4ebd98c3821aad7a5" dependencies = [ "darling 0.14.4", - "proc-macro-crate 1.1.3", "proc-macro2", "quote", "syn 1.0.109", ] -[[package]] -name = "scale-encode" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d70cb4b29360105483fac1ed567ff95d65224a14dd275b6303ed0a654c78de5" -dependencies = [ - "derive_more", - "parity-scale-codec", - "primitive-types", - "scale-bits 0.4.0", - "scale-encode-derive", - "scale-info", - "smallvec", -] - [[package]] name = "scale-encode" version = "0.6.0" @@ -9487,16 +9498,18 @@ checksum = "628800925a33794fb5387781b883b5e14d130fece9af5a63613867b8de07c5c7" dependencies = [ "derive_more", "parity-scale-codec", - "scale-bits 0.5.0", + "primitive-types", + "scale-bits", + "scale-encode-derive", "scale-type-resolver", "smallvec", ] [[package]] name = "scale-encode-derive" -version = "0.5.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "995491f110efdc6bea96d6a746140e32bfceb4ea47510750a5467295a4707a25" +checksum = "7a304e1af7cdfbe7a24e08b012721456cc8cecdedadc14b3d10513eada63233c" dependencies = [ "darling 0.14.4", "proc-macro-crate 1.1.3", @@ -9507,9 +9520,9 @@ dependencies = [ [[package]] name = "scale-info" -version = "2.11.1" +version = "2.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "788745a868b0e751750388f4e6546eb921ef714a4317fa6954f7cde114eb2eb7" +checksum = "eca070c12893629e2cc820a9761bedf6ce1dcddc9852984d1dc734b8bd9bd024" dependencies = [ "bitvec", "cfg-if", @@ -9521,11 +9534,11 @@ dependencies = [ [[package]] name = "scale-info-derive" -version = "2.11.1" +version = "2.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dc2f4e8bc344b9fc3d5f74f72c2e55bfc38d28dc2ebc69c194a3df424e4d9ac" +checksum = "2d35494501194174bda522a32605929eefc9ecf7e0a326c26db1fdd85881eb62" dependencies = [ - "proc-macro-crate 1.1.3", + "proc-macro-crate 3.1.0", "proc-macro2", "quote", "syn 1.0.109", @@ -9543,22 +9556,22 @@ dependencies = [ [[package]] name = "scale-typegen" -version = "0.1.1" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00860983481ac590ac87972062909bef0d6a658013b592ccc0f2feb272feab11" +checksum = "d470fa75e71b12b3244a4113adc4bc49891f3daba2054703cacd06256066397e" dependencies = [ "proc-macro2", "quote", "scale-info", - "syn 2.0.58", + "syn 2.0.61", "thiserror", ] [[package]] name = "scale-value" -version = "0.13.0" +version = "0.14.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58223c7691bf0bd46b43c9aea6f0472d1067f378d574180232358d7c6e0a8089" +checksum = "c07ccfee963104335c971aaf8b7b0e749be8569116322df23f1f75c4ca9e4a28" dependencies = [ "base58", "blake2 0.10.6", @@ -9566,31 +9579,15 @@ dependencies = [ "either", "frame-metadata 15.1.0", "parity-scale-codec", - "scale-bits 0.4.0", - "scale-decode 0.10.0", - "scale-encode 0.5.0", + "scale-bits", + "scale-decode", + "scale-encode", "scale-info", + "scale-type-resolver", "serde", "yap", ] -[[package]] -name = "scale-value" -version = "0.14.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c07ccfee963104335c971aaf8b7b0e749be8569116322df23f1f75c4ca9e4a28" -dependencies = [ - "derive_more", - "either", - "frame-metadata 15.1.0", - "parity-scale-codec", - "scale-bits 0.5.0", - "scale-decode 0.11.1", - "scale-encode 0.6.0", - "scale-info", - "scale-type-resolver", -] - [[package]] name = "schannel" version = "0.1.23" @@ -9602,9 +9599,9 @@ dependencies = [ [[package]] name = "schnellru" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "772575a524feeb803e5b0fcbc6dd9f367e579488197c94c6e4023aad2305774d" +checksum = "6b0cf7da6fc4477944d5529807234f66802fcb618fc62b9c05bedca7f9be6c43" dependencies = [ "ahash 0.8.11", "cfg-if", @@ -9652,6 +9649,21 @@ dependencies = [ "untrusted 0.9.0", ] +[[package]] +name = "sctp-proto" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f64cef148d3295c730c3cb340b0b252a4d570b1c7d4bf0808f88540b0a888bc" +dependencies = [ + "bytes", + "crc", + "fxhash", + "log", + "rand 0.8.5", + "slab", + "thiserror", +] + [[package]] name = "sealed" version = "0.5.0" @@ -9661,7 +9673,7 @@ dependencies = [ "heck 0.4.1", "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -9708,11 +9720,11 @@ dependencies = [ [[package]] name = "security-framework" -version = "2.10.0" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "770452e37cad93e0a50d5abc3990d2bc351c36d0328f86cefec2f2fb206eaef6" +checksum = "c627723fd09706bacdb5cf41499e95098555af3c3c29d014dc3c458ef6be11c0" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.5.0", "core-foundation", "core-foundation-sys", "libc", @@ -9721,9 +9733,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.10.0" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41f3cc463c0ef97e11c3461a9d3787412d30e8e7eb907c79180c4a57bf7c04ef" +checksum = "317936bbbd05227752583946b9e66d7ce3b489f84e11a94a510b4437fef407d7" dependencies = [ "core-foundation-sys", "libc", @@ -9740,9 +9752,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.22" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92d43fe69e652f3df9bdc2b85b2854a0825b86e4fb76bc44d945137d053639ca" +checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" dependencies = [ "serde", ] @@ -9755,9 +9767,9 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "serde" -version = "1.0.197" +version = "1.0.201" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2" +checksum = "780f1cebed1629e4753a1a38a3c72d30b97ec044f0aef68cb26650a3c5cf363c" dependencies = [ "serde_derive", ] @@ -9773,20 +9785,20 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.197" +version = "1.0.201" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" +checksum = "c5e405930b9796f1c00bee880d03fc7e0bb4b9a11afc776885ffe84320da2865" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] name = "serde_json" -version = "1.0.115" +version = "1.0.117" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12dc5c46daa8e9fdf4f5e71b6cf9a53f2487da0e86e55808e2d35539666497dd" +checksum = "455182ea6142b14f93f4bc5320a2b31c1f266b66a4a5c858b013302a5d8cbfc3" dependencies = [ "itoa", "ryu", @@ -9850,6 +9862,38 @@ dependencies = [ "opaque-debug 0.3.1", ] +[[package]] +name = "sha-1" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f5058ada175748e33390e40e872bd0fe59a19f265d0158daa551c5a88a76009c" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest 0.10.7", + "sha1-asm", +] + +[[package]] +name = "sha1" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest 0.10.7", +] + +[[package]] +name = "sha1-asm" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "286acebaf8b67c1130aedffad26f594eff0c1292389158135327d2e23aed582b" +dependencies = [ + "cc", +] + [[package]] name = "sha2" version = "0.9.9" @@ -9893,21 +9937,21 @@ dependencies = [ "lazy_static", ] -[[package]] -name = "shlex" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" - [[package]] name = "signal-hook-registry" -version = "1.4.1" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1" +checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" dependencies = [ "libc", ] +[[package]] +name = "signature" +version = "1.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" + [[package]] name = "signature" version = "2.2.0" @@ -9926,11 +9970,20 @@ checksum = "061507c94fc6ab4ba1c9a0305018408e312e17c041eb63bef8aa726fa33aceae" dependencies = [ "approx", "num-complex", - "num-traits 0.2.18", + "num-traits 0.2.19", "paste", "wide", ] +[[package]] +name = "simple-dns" +version = "0.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cae9a3fcdadafb6d97f4c0e007e4247b114ee0f119f650c3cbf3a8b3a1479694" +dependencies = [ + "bitflags 2.5.0", +] + [[package]] name = "simple-mermaid" version = "0.1.1" @@ -9988,7 +10041,7 @@ checksum = "0eb01866308440fc64d6c44d9e86c5cc17adfe33c4d6eed55da9145044d0ffc1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -10003,11 +10056,11 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e635339259e51ef85ac7aa29a1cd991b957047507288697a690e80ab97d07cad" dependencies = [ - "async-channel 2.2.0", + "async-channel 2.2.1", "async-executor", "async-fs", "async-io", - "async-lock 3.3.0", + "async-lock", "async-net", "async-process", "blocking", @@ -10021,7 +10074,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6d1eaa97d77be4d026a1e7ffad1bb3b78448763b357ea6f8188d3e6f736a9b9" dependencies = [ "arrayvec 0.7.4", - "async-lock 3.3.0", + "async-lock", "atomic-take", "base64 0.21.7", "bip39", @@ -10036,7 +10089,7 @@ dependencies = [ "fnv", "futures-lite", "futures-util", - "hashbrown 0.14.3", + "hashbrown 0.14.5", "hex", "hmac 0.12.1", "itertools 0.12.1", @@ -10047,12 +10100,12 @@ dependencies = [ "nom", "num-bigint", "num-rational", - "num-traits 0.2.18", + "num-traits 0.2.19", "pbkdf2", "pin-project", "poly1305", - "rand", - "rand_chacha", + "rand 0.8.5", + "rand_chacha 0.3.1", "ruzstd", "schnorrkel", "serde", @@ -10075,8 +10128,8 @@ version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5496f2d116b7019a526b1039ec2247dd172b8670633b1a64a614c9ea12c9d8c7" dependencies = [ - "async-channel 2.2.0", - "async-lock 3.3.0", + "async-channel 2.2.1", + "async-lock", "base64 0.21.7", "blake2-rfc", "derive_more", @@ -10086,16 +10139,16 @@ dependencies = [ "futures-channel", "futures-lite", "futures-util", - "hashbrown 0.14.3", + "hashbrown 0.14.5", "hex", "itertools 0.12.1", "log", "lru 0.12.3", "no-std-net", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "pin-project", - "rand", - "rand_chacha", + "rand 0.8.5", + "rand_chacha 0.3.1", "serde", "serde_json", "siphasher 1.0.1", @@ -10140,9 +10193,9 @@ dependencies = [ [[package]] name = "socket2" -version = "0.5.6" +version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05ffd9c0a93b7543e062e759284fcf5f5e3b098501104bfbdde4d404db792871" +checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c" dependencies = [ "libc", "windows-sys 0.52.0", @@ -10161,14 +10214,14 @@ dependencies = [ "http 0.2.12", "httparse", "log", - "rand", - "sha-1", + "rand 0.8.5", + "sha-1 0.9.8", ] [[package]] name = "sp-api" version = "26.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "hash-db", "log", @@ -10190,7 +10243,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "15.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "Inflector", "blake2 0.10.6", @@ -10198,13 +10251,13 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] name = "sp-application-crypto" version = "30.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "parity-scale-codec", "scale-info", @@ -10217,10 +10270,11 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "23.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ + "docify", "integer-sqrt", - "num-traits 0.2.18", + "num-traits 0.2.19", "parity-scale-codec", "scale-info", "serde", @@ -10249,36 +10303,34 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "26.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "parity-scale-codec", "scale-info", "sp-api", "sp-application-crypto", "sp-runtime", - "sp-std 14.0.0", ] [[package]] name = "sp-block-builder" version = "26.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "sp-api", "sp-inherents", "sp-runtime", - "sp-std 14.0.0", ] [[package]] name = "sp-blockchain" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "futures 0.3.30", "log", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "schnellru", "sp-api", "sp-consensus", @@ -10291,7 +10343,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.32.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "async-trait", "futures 0.3.30", @@ -10306,7 +10358,7 @@ dependencies = [ [[package]] name = "sp-consensus-aura" version = "0.32.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "async-trait", "parity-scale-codec", @@ -10316,14 +10368,13 @@ dependencies = [ "sp-consensus-slots", "sp-inherents", "sp-runtime", - "sp-std 14.0.0", "sp-timestamp", ] [[package]] name = "sp-consensus-babe" version = "0.32.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "async-trait", "parity-scale-codec", @@ -10335,14 +10386,13 @@ dependencies = [ "sp-core", "sp-inherents", "sp-runtime", - "sp-std 14.0.0", "sp-timestamp", ] [[package]] name = "sp-consensus-grandpa" version = "13.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "finality-grandpa", "log", @@ -10354,25 +10404,23 @@ dependencies = [ "sp-core", "sp-keystore", "sp-runtime", - "sp-std 14.0.0", ] [[package]] name = "sp-consensus-slots" version = "0.32.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-std 14.0.0", "sp-timestamp", ] [[package]] name = "sp-core" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "array-bytes 6.2.2", "bandersnatch_vrfs", @@ -10393,10 +10441,10 @@ dependencies = [ "merlin", "parity-bip39", "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "paste", "primitive-types", - "rand", + "rand 0.8.5", "scale-info", "schnorrkel", "secp256k1", @@ -10419,7 +10467,7 @@ dependencies = [ [[package]] name = "sp-core-hashing" version = "15.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "sp-crypto-hashing", ] @@ -10447,8 +10495,8 @@ dependencies = [ [[package]] name = "sp-crypto-hashing" -version = "0.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +version = "0.1.0" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "blake2b_simd", "byteorder", @@ -10460,21 +10508,21 @@ dependencies = [ [[package]] name = "sp-crypto-hashing-proc-macro" -version = "0.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +version = "0.1.0" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "quote", "sp-crypto-hashing", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] name = "sp-database" version = "10.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "kvdb", - "parking_lot 0.12.1", + "parking_lot 0.12.2", ] [[package]] @@ -10484,17 +10532,17 @@ source = "git+https://github.com/duniter/duniter-polkadot-sdk#c84530c57a6f9ab808 dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] name = "sp-debug-derive" version = "14.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -10526,46 +10574,45 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.25.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "environmental", "parity-scale-codec", - "sp-std 14.0.0", "sp-storage 19.0.0", ] [[package]] name = "sp-genesis-builder" -version = "0.7.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +version = "0.8.0" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ + "parity-scale-codec", + "scale-info", "serde_json", "sp-api", "sp-runtime", - "sp-std 14.0.0", ] [[package]] name = "sp-inherents" version = "26.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "async-trait", "impl-trait-for-tuples", "parity-scale-codec", "scale-info", "sp-runtime", - "sp-std 14.0.0", "thiserror", ] [[package]] name = "sp-io" version = "30.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "bytes", - "ed25519-dalek", + "ed25519-dalek 2.1.1", "libsecp256k1", "log", "parity-scale-codec", @@ -10588,20 +10635,20 @@ dependencies = [ [[package]] name = "sp-keyring" version = "31.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "sp-core", "sp-runtime", - "strum 0.24.1", + "strum 0.26.2", ] [[package]] name = "sp-keystore" version = "0.34.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "parity-scale-codec", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "sp-core", "sp-externalities 0.25.0", ] @@ -10618,7 +10665,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "11.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "thiserror", "zstd 0.12.4", @@ -10639,30 +10686,28 @@ dependencies = [ [[package]] name = "sp-metadata-ir" version = "0.6.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "frame-metadata 16.0.0", "parity-scale-codec", "scale-info", - "sp-std 14.0.0", ] [[package]] name = "sp-mixnet" version = "0.4.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "parity-scale-codec", "scale-info", "sp-api", "sp-application-crypto", - "sp-std 14.0.0", ] [[package]] name = "sp-offchain" version = "26.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "sp-api", "sp-core", @@ -10672,7 +10717,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "13.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "backtrace", "lazy_static", @@ -10682,7 +10727,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "26.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "rustc-hash", "serde", @@ -10692,7 +10737,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "31.0.1" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "docify", "either", @@ -10701,7 +10746,7 @@ dependencies = [ "log", "parity-scale-codec", "paste", - "rand", + "rand 0.8.5", "scale-info", "serde", "simple-mermaid", @@ -10734,7 +10779,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "24.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -10760,26 +10805,26 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] name = "sp-runtime-interface-proc-macro" version = "17.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "Inflector", "expander", "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] name = "sp-session" version = "27.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "parity-scale-codec", "scale-info", @@ -10788,13 +10833,12 @@ dependencies = [ "sp-keystore", "sp-runtime", "sp-staking", - "sp-std 14.0.0", ] [[package]] name = "sp-staking" version = "26.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -10802,24 +10846,22 @@ dependencies = [ "serde", "sp-core", "sp-runtime", - "sp-std 14.0.0", ] [[package]] name = "sp-state-machine" version = "0.35.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "hash-db", "log", "parity-scale-codec", - "parking_lot 0.12.1", - "rand", + "parking_lot 0.12.2", + "rand 0.8.5", "smallvec", "sp-core", "sp-externalities 0.25.0", "sp-panic-handler", - "sp-std 14.0.0", "sp-trie", "thiserror", "tracing", @@ -10829,14 +10871,14 @@ dependencies = [ [[package]] name = "sp-statement-store" version = "10.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "aes-gcm", "curve25519-dalek 4.1.2", - "ed25519-dalek", + "ed25519-dalek 2.1.1", "hkdf", "parity-scale-codec", - "rand", + "rand 0.8.5", "scale-info", "sha2 0.10.8", "sp-api", @@ -10846,7 +10888,6 @@ dependencies = [ "sp-externalities 0.25.0", "sp-runtime", "sp-runtime-interface 24.0.0", - "sp-std 14.0.0", "thiserror", "x25519-dalek 2.0.1", ] @@ -10859,7 +10900,7 @@ source = "git+https://github.com/duniter/duniter-polkadot-sdk#c84530c57a6f9ab808 [[package]] name = "sp-std" version = "14.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" [[package]] name = "sp-storage" @@ -10877,26 +10918,24 @@ dependencies = [ [[package]] name = "sp-storage" version = "19.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", "sp-debug-derive 14.0.0", - "sp-std 14.0.0", ] [[package]] name = "sp-timestamp" version = "26.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "async-trait", "parity-scale-codec", "sp-inherents", "sp-runtime", - "sp-std 14.0.0", "thiserror", ] @@ -10909,25 +10948,24 @@ dependencies = [ "sp-std 8.0.0", "tracing", "tracing-core", - "tracing-subscriber", + "tracing-subscriber 0.2.25", ] [[package]] name = "sp-tracing" version = "16.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "parity-scale-codec", - "sp-std 14.0.0", "tracing", "tracing-core", - "tracing-subscriber", + "tracing-subscriber 0.3.18", ] [[package]] name = "sp-transaction-pool" version = "26.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "sp-api", "sp-runtime", @@ -10936,7 +10974,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "26.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "async-trait", "parity-scale-codec", @@ -10944,14 +10982,13 @@ dependencies = [ "sp-core", "sp-inherents", "sp-runtime", - "sp-std 14.0.0", "sp-trie", ] [[package]] name = "sp-trie" version = "29.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "ahash 0.8.11", "hash-db", @@ -10959,13 +10996,12 @@ dependencies = [ "memory-db", "nohash-hasher", "parity-scale-codec", - "parking_lot 0.12.1", - "rand", + "parking_lot 0.12.2", + "rand 0.8.5", "scale-info", "schnellru", "sp-core", "sp-externalities 0.25.0", - "sp-std 14.0.0", "thiserror", "tracing", "trie-db", @@ -10975,7 +11011,7 @@ dependencies = [ [[package]] name = "sp-version" version = "29.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "impl-serde", "parity-scale-codec", @@ -10992,12 +11028,12 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "13.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "parity-scale-codec", "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -11016,20 +11052,19 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "20.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "anyhow", "impl-trait-for-tuples", "log", "parity-scale-codec", - "sp-std 14.0.0", "wasmtime", ] [[package]] name = "sp-weights" version = "27.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "bounded-collections", "parity-scale-codec", @@ -11038,7 +11073,6 @@ dependencies = [ "smallvec", "sp-arithmetic", "sp-debug-derive 14.0.0", - "sp-std 14.0.0", ] [[package]] @@ -11053,17 +11087,6 @@ version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" -[[package]] -name = "spinners" -version = "4.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0ef947f358b9c238923f764c72a4a9d42f2d637c46e059dbd319d6e7cfb4f82" -dependencies = [ - "lazy_static", - "maplit", - "strum 0.24.1", -] - [[package]] name = "spinning_top" version = "0.3.0" @@ -11138,6 +11161,26 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "str0m" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3f10d3f68e60168d81110410428a435dbde28cc5525f5f7c6fdec92dbdc2800" +dependencies = [ + "combine 4.6.7", + "crc", + "hmac 0.12.1", + "once_cell", + "openssl", + "openssl-sys", + "rand 0.8.5", + "sctp-proto", + "serde", + "sha-1 0.10.1", + "thiserror", + "tracing", +] + [[package]] name = "strsim" version = "0.10.0" @@ -11161,9 +11204,12 @@ dependencies = [ [[package]] name = "strum" -version = "0.25.0" +version = "0.26.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "290d54ea6f91c969195bdbcd7442c8c2a2ba87da8bf60a7ee86a235d4bc1e125" +checksum = "5d8cec3501a5194c432b2b7976db6b7d10ec95c253208b45f83f7136aa985e29" +dependencies = [ + "strum_macros 0.26.2", +] [[package]] name = "strum_macros" @@ -11180,21 +11226,21 @@ dependencies = [ [[package]] name = "strum_macros" -version = "0.25.3" +version = "0.26.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23dc1fa9ac9c169a78ba62f0b841814b7abae11bdd047b9c58f893439e309ea0" +checksum = "c6cf59daf282c0a494ba14fd21610a0325f9f90ec9d1231dea26bcb1d696c946" dependencies = [ "heck 0.4.1", "proc-macro2", "quote", "rustversion", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] name = "substrate-bip39" version = "0.4.7" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "hmac 0.12.1", "pbkdf2", @@ -11206,16 +11252,16 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "11.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" [[package]] name = "substrate-frame-rpc-system" version = "28.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.30", - "jsonrpsee 0.22.3", + "jsonrpsee", "log", "parity-scale-codec", "sc-rpc-api", @@ -11230,7 +11276,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.17.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "hyper 0.14.28", "log", @@ -11239,19 +11285,6 @@ dependencies = [ "tokio", ] -[[package]] -name = "substrate-rpc-client" -version = "0.33.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" -dependencies = [ - "async-trait", - "jsonrpsee 0.22.3", - "log", - "sc-rpc-api", - "serde", - "sp-runtime", -] - [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" @@ -11273,7 +11306,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "17.0.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" +source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.11.0#030a7b8fd5ef03e4da466e65ce8fe92e3cff90e4" dependencies = [ "build-helper", "cargo_metadata", @@ -11282,7 +11315,7 @@ dependencies = [ "parity-wasm", "polkavm-linker", "sp-maybe-compressed-blob 11.0.0", - "strum 0.24.1", + "strum 0.26.2", "tempfile", "toml 0.8.12", "walkdir", @@ -11314,16 +11347,16 @@ dependencies = [ "lazy_static", "log", "proc-macro2", - "semver 1.0.22", + "semver 1.0.23", "serde", "serde_json", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] name = "subxt" -version = "0.34.0" -source = "git+https://github.com/duniter/subxt?branch=subxt-v0.34.0-duniter-substrate-v1.9.0#4f1923f3f53573bb5f47a061afacda7f4163e4a8" +version = "0.35.3" +source = "git+https://github.com/duniter/subxt?branch=subxt-v0.35.3-duniter-substrate-v1.11.0#04282d7f1638f8e86200958ee36cb3920852ed4f" dependencies = [ "async-trait", "base58", @@ -11335,18 +11368,18 @@ dependencies = [ "hex", "impl-serde", "instant", - "jsonrpsee 0.21.0", + "jsonrpsee", "parity-scale-codec", "primitive-types", - "scale-bits 0.4.0", - "scale-decode 0.10.0", - "scale-encode 0.5.0", + "scale-bits", + "scale-decode", + "scale-encode", "scale-info", - "scale-value 0.13.0", + "scale-value", "serde", "serde_json", "sp-core", - "sp-core-hashing", + "sp-crypto-hashing", "sp-runtime", "subxt-lightclient", "subxt-macro", @@ -11359,28 +11392,28 @@ dependencies = [ [[package]] name = "subxt-codegen" -version = "0.34.0" -source = "git+https://github.com/duniter/subxt?branch=subxt-v0.34.0-duniter-substrate-v1.9.0#4f1923f3f53573bb5f47a061afacda7f4163e4a8" +version = "0.35.3" +source = "git+https://github.com/duniter/subxt?branch=subxt-v0.35.3-duniter-substrate-v1.11.0#04282d7f1638f8e86200958ee36cb3920852ed4f" dependencies = [ "frame-metadata 16.0.0", "heck 0.4.1", "hex", - "jsonrpsee 0.21.0", + "jsonrpsee", "parity-scale-codec", "proc-macro2", "quote", "scale-info", "scale-typegen", "subxt-metadata", - "syn 2.0.58", + "syn 2.0.61", "thiserror", "tokio", ] [[package]] name = "subxt-lightclient" -version = "0.34.0" -source = "git+https://github.com/duniter/subxt?branch=subxt-v0.34.0-duniter-substrate-v1.9.0#4f1923f3f53573bb5f47a061afacda7f4163e4a8" +version = "0.35.3" +source = "git+https://github.com/duniter/subxt?branch=subxt-v0.35.3-duniter-substrate-v1.11.0#04282d7f1638f8e86200958ee36cb3920852ed4f" dependencies = [ "futures 0.3.30", "futures-util", @@ -11395,8 +11428,8 @@ dependencies = [ [[package]] name = "subxt-macro" -version = "0.34.0" -source = "git+https://github.com/duniter/subxt?branch=subxt-v0.34.0-duniter-substrate-v1.9.0#4f1923f3f53573bb5f47a061afacda7f4163e4a8" +version = "0.35.3" +source = "git+https://github.com/duniter/subxt?branch=subxt-v0.35.3-duniter-substrate-v1.11.0#04282d7f1638f8e86200958ee36cb3920852ed4f" dependencies = [ "darling 0.20.8", "parity-scale-codec", @@ -11404,19 +11437,20 @@ dependencies = [ "quote", "scale-typegen", "subxt-codegen", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] name = "subxt-metadata" -version = "0.34.0" -source = "git+https://github.com/duniter/subxt?branch=subxt-v0.34.0-duniter-substrate-v1.9.0#4f1923f3f53573bb5f47a061afacda7f4163e4a8" +version = "0.35.3" +source = "git+https://github.com/duniter/subxt?branch=subxt-v0.35.3-duniter-substrate-v1.11.0#04282d7f1638f8e86200958ee36cb3920852ed4f" dependencies = [ + "derive_more", "frame-metadata 16.0.0", + "hashbrown 0.14.5", "parity-scale-codec", "scale-info", - "sp-core-hashing", - "thiserror", + "sp-crypto-hashing", ] [[package]] @@ -11432,9 +11466,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.58" +version = "2.0.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44cfb93f38070beee36b3fef7d4f5a16f27751d94b187b666a5cc5e9b0d30687" +checksum = "c993ed8ccba56ae856363b1845da7266a7cb78e1d146c8a32d54b45a8b831fc9" dependencies = [ "proc-macro2", "quote", @@ -11465,7 +11499,7 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a3d2c2202510a1e186e63e596d9318c91a8cbe85cd1a56a7be0c333e5f59ec8d" dependencies = [ - "syn 2.0.58", + "syn 2.0.61", "synthez-codegen", "synthez-core", ] @@ -11476,7 +11510,7 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f724aa6d44b7162f3158a57bccd871a77b39a4aef737e01bcdff41f4772c7746" dependencies = [ - "syn 2.0.58", + "syn 2.0.61", "synthez-core", ] @@ -11489,7 +11523,7 @@ dependencies = [ "proc-macro2", "quote", "sealed", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -11533,7 +11567,7 @@ checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" dependencies = [ "cfg-if", "fastrand", - "rustix 0.38.32", + "rustix 0.38.34", "windows-sys 0.52.0", ] @@ -11568,7 +11602,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "21bebf2b7c9e0a515f6e0f8c51dc0f8e4696391e6f1ff30379559f8365fb0df7" dependencies = [ - "rustix 0.38.32", + "rustix 0.38.34", "windows-sys 0.48.0", ] @@ -11591,22 +11625,22 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.58" +version = "1.0.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03468839009160513471e86a034bb2c5c0e4baae3b43f79ffc55c4a5427b3297" +checksum = "579e9083ca58dd9dcf91a9923bb9054071b9ebbd800b342194c9feb0ee89fc18" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.58" +version = "1.0.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c61f3ba182994efc43764a46c018c347bc492c79f024e705f46567b418f6d4f7" +checksum = "e2470041c06ec3ac1ab38d0356a6119054dedaea53e12fbefc0de730a1c08524" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -11634,21 +11668,11 @@ dependencies = [ "num_cpus", ] -[[package]] -name = "tikv-jemalloc-sys" -version = "0.5.4+5.3.0-patched" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9402443cb8fd499b6f327e40565234ff34dbda27460c5b47db0db77443dd85d1" -dependencies = [ - "cc", - "libc", -] - [[package]] name = "time" -version = "0.3.34" +version = "0.3.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8248b6521bb14bc45b4067159b9b6ad792e2d6d754d6c41fb50e29fefe38749" +checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885" dependencies = [ "deranged", "itoa", @@ -11667,9 +11691,9 @@ checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" [[package]] name = "time-macros" -version = "0.2.17" +version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ba3a3ef41e6672a2f0f001392bb5dcd3ff0a9992d618ca761a11c3121547774" +checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf" dependencies = [ "num-conv", "time-core", @@ -11710,10 +11734,10 @@ dependencies = [ "libc", "mio", "num_cpus", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "pin-project-lite 0.2.14", "signal-hook-registry", - "socket2 0.5.6", + "socket2 0.5.7", "tokio-macros", "windows-sys 0.48.0", ] @@ -11726,18 +11750,7 @@ checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", -] - -[[package]] -name = "tokio-retry" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f57eb36ecbe0fc510036adff84824dd3c24bb781e21bfa67b69d556aa85214f" -dependencies = [ - "pin-project", - "rand", - "tokio", + "syn 2.0.61", ] [[package]] @@ -11746,7 +11759,7 @@ version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" dependencies = [ - "rustls 0.21.10", + "rustls 0.21.12", "tokio", ] @@ -11756,7 +11769,7 @@ version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "775e0c0f0adb3a2f22a00c4745d728b479985fc15ee7ca6a2608388c5569860f" dependencies = [ - "rustls 0.22.3", + "rustls 0.22.4", "rustls-pki-types", "tokio", ] @@ -11773,11 +11786,26 @@ dependencies = [ "tokio-util", ] +[[package]] +name = "tokio-tungstenite" +version = "0.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "212d5dcb2a1ce06d81107c3d0ffa3121fe974b73f068c8282cb1c32328113b6c" +dependencies = [ + "futures-util", + "log", + "rustls 0.21.12", + "rustls-native-certs 0.6.3", + "tokio", + "tokio-rustls 0.24.1", + "tungstenite", +] + [[package]] name = "tokio-util" -version = "0.7.10" +version = "0.7.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5419f34732d9eb6ee4c3578b7989078579b7f039cbbb9ca2c4da015749371e15" +checksum = "9cf6b47b3771c49ac75ad09a6162f53ad4b8088b76ac60e8ec1455b31a189fe1" dependencies = [ "bytes", "futures-core", @@ -11785,7 +11813,6 @@ dependencies = [ "futures-sink", "pin-project-lite 0.2.14", "tokio", - "tracing", ] [[package]] @@ -11806,7 +11833,7 @@ dependencies = [ "serde", "serde_spanned", "toml_datetime", - "toml_edit 0.22.9", + "toml_edit 0.22.12", ] [[package]] @@ -11818,17 +11845,6 @@ dependencies = [ "serde", ] -[[package]] -name = "toml_edit" -version = "0.20.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70f427fce4d84c72b5b732388bf4a9f4531b53f74e2887e3ecb2481f68f66d81" -dependencies = [ - "indexmap 2.2.6", - "toml_datetime", - "winnow 0.5.40", -] - [[package]] name = "toml_edit" version = "0.21.1" @@ -11842,15 +11858,15 @@ dependencies = [ [[package]] name = "toml_edit" -version = "0.22.9" +version = "0.22.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e40bb779c5187258fd7aad0eb68cb8706a0a81fa712fbea808ab43c4b8374c4" +checksum = "d3328d4f68a705b2a4498da1d580585d39a6510f98318a2cec3018a7ec61ddef" dependencies = [ "indexmap 2.2.6", "serde", "serde_spanned", "toml_datetime", - "winnow 0.6.5", + "winnow 0.6.8", ] [[package]] @@ -11919,7 +11935,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -11953,6 +11969,17 @@ dependencies = [ "tracing-core", ] +[[package]] +name = "tracing-log" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" +dependencies = [ + "log", + "once_cell", + "tracing-core", +] + [[package]] name = "tracing-serde" version = "0.1.3" @@ -11972,8 +11999,7 @@ dependencies = [ "ansi_term", "chrono", "lazy_static", - "matchers", - "parking_lot 0.11.2", + "matchers 0.0.1", "regex", "serde", "serde_json", @@ -11982,18 +12008,36 @@ dependencies = [ "thread_local", "tracing", "tracing-core", - "tracing-log", + "tracing-log 0.1.4", "tracing-serde", ] +[[package]] +name = "tracing-subscriber" +version = "0.3.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b" +dependencies = [ + "matchers 0.1.0", + "nu-ansi-term", + "once_cell", + "parking_lot 0.12.2", + "regex", + "sharded-slab", + "smallvec", + "thread_local", + "tracing", + "tracing-core", + "tracing-log 0.2.0", +] + [[package]] name = "trie-db" -version = "0.28.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff28e0f815c2fea41ebddf148e008b077d2faddb026c9555b29696114d602642" +checksum = "65ed83be775d85ebb0e272914fff6462c39b3ddd6dc67b5c1c41271aad280c69" dependencies = [ "hash-db", - "hashbrown 0.13.2", "log", "rustc-hex", "smallvec", @@ -12017,14 +12061,14 @@ dependencies = [ "async-trait", "cfg-if", "data-encoding", - "enum-as-inner", + "enum-as-inner 0.5.1", "futures-channel", "futures-io", "futures-util", "idna 0.2.3", "ipnet", "lazy_static", - "rand", + "rand 0.8.5", "smallvec", "socket2 0.4.10", "thiserror", @@ -12034,6 +12078,31 @@ dependencies = [ "url", ] +[[package]] +name = "trust-dns-proto" +version = "0.23.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3119112651c157f4488931a01e586aa459736e9d6046d3bd9105ffb69352d374" +dependencies = [ + "async-trait", + "cfg-if", + "data-encoding", + "enum-as-inner 0.6.0", + "futures-channel", + "futures-io", + "futures-util", + "idna 0.4.0", + "ipnet", + "once_cell", + "rand 0.8.5", + "smallvec", + "thiserror", + "tinyvec", + "tokio", + "tracing", + "url", +] + [[package]] name = "trust-dns-resolver" version = "0.22.0" @@ -12045,13 +12114,34 @@ dependencies = [ "ipconfig", "lazy_static", "lru-cache", - "parking_lot 0.12.1", + "parking_lot 0.12.2", "resolv-conf", "smallvec", "thiserror", "tokio", "tracing", - "trust-dns-proto", + "trust-dns-proto 0.22.0", +] + +[[package]] +name = "trust-dns-resolver" +version = "0.23.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10a3e6c3aff1718b3c73e395d1f35202ba2ffa847c6a62eea0db8fb4cfe30be6" +dependencies = [ + "cfg-if", + "futures-util", + "ipconfig", + "lru-cache", + "once_cell", + "parking_lot 0.12.2", + "rand 0.8.5", + "resolv-conf", + "smallvec", + "thiserror", + "tokio", + "tracing", + "trust-dns-proto 0.23.2", ] [[package]] @@ -12060,48 +12150,32 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" -[[package]] -name = "try-runtime-cli" -version = "0.38.0" -source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.9.0#ea52f768bfebd64207bea373dd0a7412ee368396" -dependencies = [ - "async-trait", - "clap", - "frame-remote-externalities", - "frame-try-runtime", - "hex", - "log", - "parity-scale-codec", - "sc-cli", - "sc-executor", - "serde", - "serde_json", - "sp-api", - "sp-consensus-aura", - "sp-consensus-babe", - "sp-core", - "sp-debug-derive 14.0.0", - "sp-externalities 0.25.0", - "sp-inherents", - "sp-io", - "sp-keystore", - "sp-rpc", - "sp-runtime", - "sp-state-machine", - "sp-timestamp", - "sp-transaction-storage-proof", - "sp-version", - "sp-weights", - "substrate-rpc-client", - "zstd 0.12.4", -] - [[package]] name = "tt-call" version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f4f195fd851901624eee5a58c4bb2b4f06399148fcd0ed336e6f1cb60a9881df" +[[package]] +name = "tungstenite" +version = "0.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e3dac10fd62eaf6617d3a904ae222845979aec67c615d1c842b4002c7666fb9" +dependencies = [ + "byteorder", + "bytes", + "data-encoding", + "http 0.2.12", + "httparse", + "log", + "rand 0.8.5", + "rustls 0.21.12", + "sha1", + "thiserror", + "url", + "utf-8", +] + [[package]] name = "twox-hash" version = "1.6.3" @@ -12110,7 +12184,7 @@ checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ "cfg-if", "digest 0.10.7", - "rand", + "rand 0.8.5", "static_assertions", ] @@ -12131,7 +12205,7 @@ checksum = "29a3151c41d0b13e3d011f98adc24434560ef06673a155a6c7f66b9879eecce2" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -12243,9 +12317,9 @@ checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202" [[package]] name = "unicode-width" -version = "0.1.11" +version = "0.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85" +checksum = "68f5e5f3158ecfd4b8ff6fe086db7c8467a2dfdac97fe420f2b7c4aa97af66d6" [[package]] name = "unicode-xid" @@ -12288,6 +12362,7 @@ dependencies = [ "bytes", "futures-io", "futures-util", + "tokio-util", ] [[package]] @@ -12313,6 +12388,12 @@ dependencies = [ "percent-encoding", ] +[[package]] +name = "utf-8" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" + [[package]] name = "utf8parse" version = "0.2.1" @@ -12358,8 +12439,8 @@ dependencies = [ "arrayref", "constcat", "digest 0.10.7", - "rand", - "rand_chacha", + "rand 0.8.5", + "rand_chacha 0.3.1", "rand_core 0.6.4", "sha2 0.10.8", "sha3", @@ -12419,7 +12500,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", "wasm-bindgen-shared", ] @@ -12453,7 +12534,7 @@ checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -12555,7 +12636,7 @@ checksum = "dcf1a7db34bff95b85c261002720c00c3a6168256dcb93041d3fa2054d19856a" dependencies = [ "downcast-rs", "libm", - "num-traits 0.2.18", + "num-traits 0.2.19", "paste", ] @@ -12571,9 +12652,9 @@ dependencies = [ [[package]] name = "wasmparser-nostd" -version = "0.100.1" +version = "0.100.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9157cab83003221bfd385833ab587a039f5d6fa7304854042ba358a3b09e0724" +checksum = "d5a015fe95f3504a94bb1462c717aae75253e39b9dd6c3fb1062c934535c64aa" dependencies = [ "indexmap-nostd", ] @@ -12753,7 +12834,7 @@ dependencies = [ "memfd", "memoffset", "paste", - "rand", + "rand 0.8.5", "rustix 0.36.17", "wasmtime-asm-macros", "wasmtime-environ", @@ -12821,14 +12902,14 @@ dependencies = [ "either", "home", "once_cell", - "rustix 0.38.32", + "rustix 0.38.34", ] [[package]] name = "wide" -version = "0.7.15" +version = "0.7.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89beec544f246e679fc25490e3f8e08003bc4bf612068f325120dad4cea02c1c" +checksum = "0f0e39d2c603fdc0504b12b458cf1f34e0b937ed2f4f2dc20796e3e86f34e11f" dependencies = [ "bytemuck", "safe_arch", @@ -12836,9 +12917,9 @@ dependencies = [ [[package]] name = "widestring" -version = "1.0.2" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "653f141f39ec16bba3c5abe400a0c60da7468261cc2cbf36805022876bc721a8" +checksum = "7219d36b6eac893fa81e84ebe06485e7dcbb616177469b142df14f1f4deb1311" [[package]] name = "winapi" @@ -12858,11 +12939,11 @@ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" [[package]] name = "winapi-util" -version = "0.1.6" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596" +checksum = "4d4cc384e1e73b93bafa6fb4f1df8c41695c8a91cf9c4c64358067d15a7b6c6b" dependencies = [ - "winapi", + "windows-sys 0.52.0", ] [[package]] @@ -12896,7 +12977,22 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" dependencies = [ - "windows-targets 0.52.4", + "windows-targets 0.52.5", +] + +[[package]] +name = "windows-sys" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" +dependencies = [ + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", ] [[package]] @@ -12923,7 +13019,7 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "windows-targets 0.52.4", + "windows-targets 0.52.5", ] [[package]] @@ -12958,17 +13054,18 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dd37b7e5ab9018759f893a1952c9420d060016fc19a472b4bb20d1bdd694d1b" +checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb" dependencies = [ - "windows_aarch64_gnullvm 0.52.4", - "windows_aarch64_msvc 0.52.4", - "windows_i686_gnu 0.52.4", - "windows_i686_msvc 0.52.4", - "windows_x86_64_gnu 0.52.4", - "windows_x86_64_gnullvm 0.52.4", - "windows_x86_64_msvc 0.52.4", + "windows_aarch64_gnullvm 0.52.5", + "windows_aarch64_msvc 0.52.5", + "windows_i686_gnu 0.52.5", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.5", + "windows_x86_64_gnu 0.52.5", + "windows_x86_64_gnullvm 0.52.5", + "windows_x86_64_msvc 0.52.5", ] [[package]] @@ -12985,9 +13082,9 @@ checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" [[package]] name = "windows_aarch64_gnullvm" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcf46cf4c365c6f2d1cc93ce535f2c8b244591df96ceee75d8e83deb70a9cac9" +checksum = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263" [[package]] name = "windows_aarch64_msvc" @@ -13003,9 +13100,9 @@ checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" [[package]] name = "windows_aarch64_msvc" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da9f259dd3bcf6990b55bffd094c4f7235817ba4ceebde8e6d11cd0c5633b675" +checksum = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6" [[package]] name = "windows_i686_gnu" @@ -13021,9 +13118,15 @@ checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" [[package]] name = "windows_i686_gnu" -version = "0.52.4" +version = "0.52.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88ba073cf16d5372720ec942a8ccbf61626074c6d4dd2e745299726ce8b89670" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b474d8268f99e0995f25b9f095bc7434632601028cf86590aea5c8a5cb7801d3" +checksum = "87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9" [[package]] name = "windows_i686_msvc" @@ -13039,9 +13142,9 @@ checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" [[package]] name = "windows_i686_msvc" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1515e9a29e5bed743cb4415a9ecf5dfca648ce85ee42e15873c3cd8610ff8e02" +checksum = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf" [[package]] name = "windows_x86_64_gnu" @@ -13057,9 +13160,9 @@ checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" [[package]] name = "windows_x86_64_gnu" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5eee091590e89cc02ad514ffe3ead9eb6b660aedca2183455434b93546371a03" +checksum = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9" [[package]] name = "windows_x86_64_gnullvm" @@ -13075,9 +13178,9 @@ checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" [[package]] name = "windows_x86_64_gnullvm" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77ca79f2451b49fa9e2af39f0747fe999fcda4f5e241b2898624dca97a1f2177" +checksum = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596" [[package]] name = "windows_x86_64_msvc" @@ -13093,9 +13196,9 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "windows_x86_64_msvc" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32b752e52a2da0ddfbdbcc6fceadfeede4c939ed16d13e648833a61dfb611ed8" +checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0" [[package]] name = "winnow" @@ -13108,9 +13211,9 @@ dependencies = [ [[package]] name = "winnow" -version = "0.6.5" +version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dffa400e67ed5a4dd237983829e66475f0a4a26938c4b04c21baede6262215b8" +checksum = "c3c52e9c97a68071b23e836c9380edae937f17b9c4667bd021973efc689f618d" dependencies = [ "memchr", ] @@ -13125,6 +13228,16 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "winreg" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a277a57398d4bfa075df44f501a17cfdf8542d224f0d36095a2adc7aee4ef0a5" +dependencies = [ + "cfg-if", + "windows-sys 0.48.0", +] + [[package]] name = "wyz" version = "0.5.1" @@ -13175,6 +13288,23 @@ dependencies = [ "time", ] +[[package]] +name = "x509-parser" +version = "0.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7069fba5b66b9193bd2c5d3d4ff12b839118f6bcbef5328efafafb5395cf63da" +dependencies = [ + "asn1-rs", + "data-encoding", + "der-parser", + "lazy_static", + "nom", + "oid-registry", + "rusticata-macros", + "thiserror", + "time", +] + [[package]] name = "xtask" version = "0.1.0" @@ -13189,7 +13319,7 @@ dependencies = [ "placeholder", "reqwest", "scale-info", - "scale-value 0.14.1", + "scale-value", "serde", "serde_json", "tera", @@ -13207,8 +13337,8 @@ dependencies = [ "futures 0.3.30", "log", "nohash-hasher", - "parking_lot 0.12.1", - "rand", + "parking_lot 0.12.2", + "rand 0.8.5", "static_assertions", ] @@ -13229,22 +13359,22 @@ dependencies = [ [[package]] name = "zerocopy" -version = "0.7.32" +version = "0.7.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be" +checksum = "ae87e3fcd617500e5d106f0380cf7b77f3c6092aae37191433159dda23cfb087" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.7.32" +version = "0.7.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" +checksum = "15e934569e47891f7d9411f1a451d947a60e000ab3bd24fbb970f000387d1b3b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] @@ -13264,7 +13394,7 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.58", + "syn 2.0.61", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index c65427e463be71f7a2c65cdc8b8668be33d64722..8c35f9bbee86fcff9a5d1b7ef66f3a1d13363ce2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -104,7 +104,7 @@ dubp-wot = { version = "0.11.1", default-features = false } flate2 = { version = "1.0.28", default-features = false } # Subxt -subxt = { git = 'https://github.com/duniter/subxt', branch = 'subxt-v0.34.0-duniter-substrate-v1.9.0', default-features = false } +subxt = { git = 'https://github.com/duniter/subxt', branch = 'subxt-v0.35.3-duniter-substrate-v1.11.0', default-features = false } # local dependencies weight-analyzer = { path = "resources/weight_analyzer", default-features = false } @@ -136,86 +136,85 @@ sp-distance = { path = 'primitives/distance', default-features = false } sp-membership = { path = 'primitives/membership', default-features = false } # substrate dependencies -pallet-transaction-payment-rpc = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -frame-benchmarking = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -frame-executive = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -frame-support = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -frame-system = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -frame-system-benchmarking = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -frame-system-rpc-runtime-api = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -frame-try-runtime = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -pallet-atomic-swap = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -pallet-authority-discovery = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -pallet-authorship = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -pallet-babe = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -pallet-balances = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -pallet-collective = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -pallet-grandpa = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -pallet-im-online = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -pallet-multisig = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -pallet-preimage = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -pallet-proxy = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -pallet-scheduler = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -pallet-session = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -pallet-sudo = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -pallet-timestamp = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -pallet-transaction-payment = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -pallet-transaction-payment-rpc-runtime-api = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -pallet-treasury = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -pallet-utility = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-api = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-arithmetic = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-block-builder = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sc-client-db = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sc-client-api = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sc-consensus-grandpa = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sc-consensus-babe = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sc-consensus-babe-rpc = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-blockchain = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sc-offchain = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -try-runtime-cli = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-consensus-babe = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-consensus-grandpa = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-core = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-inherents = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-offchain = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-runtime = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-session = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-std = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-staking = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-weights = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-transaction-pool = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-version = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sc-cli = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sc-service = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-trie = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-authority-discovery = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-genesis-builder = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-keyring = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-consensus = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-core-hashing = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sc-keystore = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sc-rpc-api = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -substrate-wasm-builder = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-io = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -substrate-build-script-utils = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0' } -node-primitives = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -frame-benchmarking-cli = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sc-chain-spec = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sc-consensus = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sc-consensus-manual-seal = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sc-executor = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sc-telemetry = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sc-transaction-pool = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sc-basic-authorship = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sc-network = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-keystore = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-storage = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-timestamp = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-transaction-storage-proof = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sc-transaction-pool-api = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -sp-state-machine = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } -substrate-frame-rpc-system = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.9.0', default-features = false } +pallet-transaction-payment-rpc = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +frame-benchmarking = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +frame-executive = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +frame-support = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +frame-system = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +frame-system-benchmarking = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +frame-system-rpc-runtime-api = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +frame-try-runtime = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +pallet-atomic-swap = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +pallet-authority-discovery = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +pallet-authorship = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +pallet-babe = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +pallet-balances = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +pallet-collective = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +pallet-grandpa = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +pallet-im-online = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +pallet-multisig = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +pallet-preimage = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +pallet-proxy = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +pallet-scheduler = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +pallet-session = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +pallet-sudo = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +pallet-timestamp = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +pallet-transaction-payment = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +pallet-transaction-payment-rpc-runtime-api = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +pallet-treasury = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +pallet-utility = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-api = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-arithmetic = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-block-builder = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sc-client-db = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sc-client-api = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sc-consensus-grandpa = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sc-consensus-babe = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sc-consensus-babe-rpc = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-blockchain = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sc-offchain = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-consensus-babe = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-consensus-grandpa = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-core = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-inherents = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-offchain = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-runtime = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-session = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-std = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-staking = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-weights = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-transaction-pool = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-version = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sc-cli = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sc-service = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-trie = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-authority-discovery = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-genesis-builder = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-keyring = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-consensus = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-core-hashing = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sc-keystore = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sc-rpc-api = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +substrate-wasm-builder = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-io = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +substrate-build-script-utils = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0' } +node-primitives = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +frame-benchmarking-cli = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sc-chain-spec = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sc-consensus = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sc-consensus-manual-seal = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sc-executor = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sc-telemetry = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sc-transaction-pool = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sc-basic-authorship = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sc-network = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-keystore = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-storage = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-timestamp = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-transaction-storage-proof = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sc-transaction-pool-api = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +sp-state-machine = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } +substrate-frame-rpc-system = { git = 'https://github.com/duniter/duniter-polkadot-sdk', branch = 'duniter-substrate-v1.11.0', default-features = false } # The list of dependencies below (which can be both direct and indirect dependencies) are crates # that are suspected to be CPU-intensive, and that are unlikely to require debugging (as some of diff --git a/client/distance/src/lib.rs b/client/distance/src/lib.rs index fe0ef460b6bfb9e3de3b35096c760a7256b1952c..1b67e85fe2dba9c4a155440231ec8f5e664289d8 100644 --- a/client/distance/src/lib.rs +++ b/client/distance/src/lib.rs @@ -14,10 +14,8 @@ // You should have received a copy of the GNU Affero General Public License // along with Substrate-Libre-Currency. If not, see <https://www.gnu.org/licenses/>. -use codec::{Decode, Encode}; use frame_support::pallet_prelude::*; use sc_client_api::{ProvideUncles, StorageKey, StorageProvider}; -use scale_info::TypeInfo; use sp_runtime::{generic::BlockId, traits::Block as BlockT, AccountId32}; use std::path::PathBuf; diff --git a/distance-oracle/src/api.rs b/distance-oracle/src/api.rs index db6f48911dee802bcebc6bd0588bbe5ff340f77f..66f17d6ce08b568170d1134c5331eb12ea944ea3 100644 --- a/distance-oracle/src/api.rs +++ b/distance-oracle/src/api.rs @@ -106,17 +106,26 @@ pub async fn member_iter(client: &Client, evaluation_block: H256) -> MemberIter } pub struct MemberIter( - subxt::backend::StreamOfResults<( - Vec<u8>, - runtime::runtime_types::sp_membership::MembershipData<u32>, - )>, + subxt::backend::StreamOfResults< + subxt::storage::StorageKeyValuePair< + subxt::storage::Address< + (), + runtime::runtime_types::sp_membership::MembershipData<u32>, + (), + (), + subxt::storage::address::Yes, + >, + >, + >, ); impl MemberIter { pub async fn next(&mut self) -> Result<Option<IdtyIndex>, subxt::error::Error> { - self.0.next().await.transpose().map(|i| { - i.map(|(storage_key, _membership_data)| idty_id_from_storage_key(&storage_key)) - }) + self.0 + .next() + .await + .transpose() + .map(|i| i.map(|j| idty_id_from_storage_key(&j.key_bytes))) } } @@ -131,15 +140,29 @@ pub async fn cert_iter(client: &Client, evaluation_block: H256) -> CertIter { ) } -pub struct CertIter(subxt::backend::StreamOfResults<(Vec<u8>, Vec<(IdtyIndex, u32)>)>); +pub struct CertIter( + subxt::backend::StreamOfResults< + subxt::storage::StorageKeyValuePair< + subxt::storage::Address< + (), + Vec<(u32, u32)>, + (), + subxt::storage::address::Yes, + subxt::storage::address::Yes, + >, + >, + >, +); impl CertIter { pub async fn next( &mut self, ) -> Result<Option<(IdtyIndex, Vec<(IdtyIndex, u32)>)>, subxt::error::Error> { - self.0.next().await.transpose().map(|i| { - i.map(|(storage_key, issuers)| (idty_id_from_storage_key(&storage_key), issuers)) - }) + self.0 + .next() + .await + .transpose() + .map(|i| i.map(|j| (idty_id_from_storage_key(&j.key_bytes), j.value))) } } diff --git a/distance-oracle/src/lib.rs b/distance-oracle/src/lib.rs index c59d89b7c97fbbb29fd739dfaf44357262eb95e8..53a7503ea28f577684febf1ce09c2744746ba29b 100644 --- a/distance-oracle/src/lib.rs +++ b/distance-oracle/src/lib.rs @@ -29,10 +29,8 @@ use api::{AccountId, IdtyIndex}; use codec::Encode; use fnv::{FnvHashMap, FnvHashSet}; use log::{debug, error, info, warn}; -use rayon::iter::IntoParallelRefIterator; -use rayon::iter::ParallelIterator; -use std::io::Write; -use std::path::PathBuf; +use rayon::iter::{IntoParallelRefIterator, ParallelIterator}; +use std::{io::Write, path::PathBuf}; // TODO select metadata file using features #[subxt::subxt(runtime_metadata_path = "../resources/metadata.scale")] diff --git a/docs/api/runtime-calls.md b/docs/api/runtime-calls.md index a1bc106c1a017bc65f7c55a12bc9a9575040b91b..68c737183f1d8f5bcd74be7f2bf5c27925823891 100644 --- a/docs/api/runtime-calls.md +++ b/docs/api/runtime-calls.md @@ -53,7 +53,7 @@ Anonymously schedule a task. <details><summary><code>cancel(when, index)</code></summary> -Taking 0.0239 % of a block. +Taking 0.0241 % of a block. ```rust when: BlockNumberFor<T> @@ -86,7 +86,7 @@ Schedule a named task. <details><summary><code>cancel_named(id)</code></summary> -Taking 0.0252 % of a block. +Taking 0.0253 % of a block. ```rust id: TaskName @@ -162,7 +162,7 @@ original `total_retries`. <details><summary><code>set_retry_named(id, retries, period)</code></summary> -Taking 0.0129 % of a block. +Taking 0.0127 % of a block. ```rust id: TaskName @@ -203,7 +203,7 @@ Removes the retry configuration of a task. <details><summary><code>cancel_retry_named(id)</code></summary> -Taking 0.0128 % of a block. +Taking 0.0127 % of a block. ```rust id: TaskName @@ -325,7 +325,7 @@ Upgrade a specified account. This will waive the transaction fee if at least all but 10% of the accounts needed to be upgraded. (We let some not have to be upgraded just in order to allow for the -possibililty of churn). +possibility of churn). Set the regular balance of a given account. The dispatch origin for this call is `root`. @@ -334,7 +334,7 @@ The dispatch origin for this call is `root`. <details><summary><code>force_adjust_total_issuance(direction, delta)</code></summary> -Taking 0.0039 % of a block. +Taking 0.0038 % of a block. ```rust direction: AdjustmentDirection @@ -359,7 +359,7 @@ Taking 0.0113 % of a block. ```rust dest: <T::Lookup as StaticLookup>::Source -value: <T::Currency as Currency<T::AccountId>>::Balance +value: BalanceOf<T> ``` </details> @@ -400,7 +400,7 @@ Taking 0.0269 % of a block. block_height: BlockNumberFor<T> dest: Account<<T::Lookup as StaticLookup>::Source> remaining_to: Account<<T::Lookup as StaticLookup>::Source> -balance: <T::Currency as Currency<T::AccountId>>::Balance +balance: BalanceOf<T> ``` </details> @@ -422,7 +422,7 @@ and the remaining amount to another account. <details><summary><code>invite_smith(receiver)</code></summary> -Taking 0.0239 % of a block. +Taking 0.0237 % of a block. ```rust receiver: T::IdtyIndex @@ -449,7 +449,7 @@ Accept an invitation (must have been invited first) <details><summary><code>certify_smith(receiver)</code></summary> -Taking 0.0287 % of a block. +Taking 0.0286 % of a block. ```rust receiver: T::IdtyIndex @@ -465,7 +465,7 @@ Certify an invited smith which can lead the certified to become a Smith <details><summary><code>go_offline()</code></summary> -Taking 0.0167 % of a block. +Taking 0.0165 % of a block. ```rust ``` @@ -478,7 +478,7 @@ ask to leave the set of validators two sessions after <details><summary><code>go_online()</code></summary> -Taking 0.0192 % of a block. +Taking 0.0188 % of a block. ```rust ``` @@ -491,7 +491,7 @@ ask to join the set of validators two sessions after <details><summary><code>set_session_keys(keys)</code></summary> -Taking 0.0254 % of a block. +Taking 0.0251 % of a block. ```rust keys: T::Keys @@ -562,7 +562,7 @@ The weight of this call is defined by the caller. <details><summary><code>note_preimage(bytes)</code></summary> -Taking 0.2893 % of a block. +Taking 0.2953 % of a block. ```rust bytes: Vec<u8> @@ -598,7 +598,7 @@ If `len` is provided, then it will be a much cheaper operation. <details><summary><code>request_preimage(hash)</code></summary> -Taking 0.0127 % of a block. +Taking 0.0126 % of a block. ```rust hash: T::Hash @@ -615,7 +615,7 @@ a user may have paid, and take the control of the preimage out of their hands. <details><summary><code>unrequest_preimage(hash)</code></summary> -Taking 0.0185 % of a block. +Taking 0.0186 % of a block. ```rust hash: T::Hash @@ -631,7 +631,7 @@ NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`. <details><summary><code>ensure_updated(hashes)</code></summary> -Taking 20.7987 % of a block. +Taking 21.073 % of a block. ```rust hashes: Vec<T::Hash> @@ -649,7 +649,7 @@ The caller pays no fee if at least 90% of pre-images were successfully updated. <details><summary><code>execute(proposal, length_bound)</code></summary> -Taking 0.0052 % of a block. +Taking 0.0051 % of a block. ```rust proposal: Box<<T as Config<I>>::Proposal> @@ -701,7 +701,7 @@ or put up for voting. <details><summary><code>vote(proposal, index, approve)</code></summary> -Taking 0.0125 % of a block. +Taking 0.0124 % of a block. ```rust proposal: T::Hash @@ -767,7 +767,7 @@ proposal. <details><summary><code>claim_uds()</code></summary> -Taking 0.022 % of a block. +Taking 0.0218 % of a block. ```rust ``` @@ -812,7 +812,7 @@ Transfer some liquid free balance to another account, in milliUD. <details><summary><code>create_identity(owner_key)</code></summary> -Taking 0.0906 % of a block. +Taking 0.0912 % of a block. ```rust owner_key: T::AccountId @@ -830,7 +830,7 @@ The origin must be allowed to create an identity. <details><summary><code>confirm_identity(idty_name)</code></summary> -Taking 0.0337 % of a block. +Taking 0.0338 % of a block. ```rust idty_name: IdtyName @@ -848,7 +848,7 @@ The identity must have been created using `create_identity` before it can be con <details><summary><code>change_owner_key(new_key, new_key_sig)</code></summary> -Taking 0.0429 % of a block. +Taking 0.0431 % of a block. ```rust new_key: T::AccountId @@ -869,7 +869,7 @@ The origin should be the old identity owner key. <details><summary><code>revoke_identity(idty_index, revocation_key, revocation_sig)</code></summary> -Taking 0.0413 % of a block. +Taking 0.0416 % of a block. ```rust idty_index: T::IdtyIndex @@ -938,7 +938,7 @@ Add a new certification. <details><summary><code>renew_cert(receiver)</code></summary> -Taking 0.03 % of a block. +Taking 0.0299 % of a block. ```rust receiver: T::IdtyIndex @@ -952,7 +952,7 @@ Renew an existing certification. <details><summary><code>del_cert(issuer, receiver)</code></summary> -Taking 0.0265 % of a block. +Taking 0.0263 % of a block. ```rust issuer: T::IdtyIndex @@ -967,7 +967,7 @@ remove a certification (only root) <details><summary><code>remove_all_certs_received_by(idty_index)</code></summary> -Taking 7.3619 % of a block. +Taking 7.395 % of a block. ```rust idty_index: T::IdtyIndex @@ -983,7 +983,7 @@ remove all certifications received by an identity (only root) <details><summary><code>request_distance_evaluation()</code></summary> -Taking 0.0327 % of a block. +Taking 0.0325 % of a block. ```rust ``` @@ -998,7 +998,7 @@ negative evaluation will result in slash for caller <details><summary><code>request_distance_evaluation_for(target)</code></summary> -Taking 0.0339 % of a block. +Taking 0.0336 % of a block. ```rust target: T::IdtyIndex @@ -1013,7 +1013,7 @@ only possible for unvalidated identity <details><summary><code>update_evaluation(computation_result)</code></summary> -Taking 0.0347 % of a block. +Taking 0.0346 % of a block. ```rust computation_result: ComputationResult @@ -1028,7 +1028,7 @@ this is called internally by validators (= inherent) <details><summary><code>force_update_evaluation(evaluator, computation_result)</code></summary> -Taking 0.0184 % of a block. +Taking 0.0183 % of a block. ```rust evaluator: <T as frame_system::Config>::AccountId @@ -1130,7 +1130,7 @@ The dispatch origin for this call must be _Signed_. <details><summary><code>as_multi_threshold_1(other_signatories, call)</code></summary> -Taking 0.0041 % of a block. +Taking 0.004 % of a block. ```rust other_signatories: Vec<T::AccountId> @@ -1298,7 +1298,7 @@ transaction for this dispatch. <details><summary><code>request(randomness_type, salt)</code></summary> -Taking 0.0418 % of a block. +Taking 0.042 % of a block. ```rust randomness_type: RandomnessType @@ -1315,7 +1315,7 @@ Request a randomness <details><summary><code>proxy(real, force_proxy_type, call)</code></summary> -Taking 0.0053 % of a block. +Taking 0.0052 % of a block. ```rust real: AccountIdLookupOf<T> @@ -1498,7 +1498,7 @@ Parameters: <details><summary><code>remove_announcement(real, call_hash)</code></summary> -Taking 0.0185 % of a block. +Taking 0.0186 % of a block. ```rust real: AccountIdLookupOf<T> @@ -1522,7 +1522,7 @@ Parameters: <details><summary><code>reject_announcement(delegate, call_hash)</code></summary> -Taking 0.0185 % of a block. +Taking 0.0186 % of a block. ```rust delegate: AccountIdLookupOf<T> @@ -1575,7 +1575,7 @@ Parameters: <details><summary><code>batch(calls)</code></summary> -Taking 0.1077 % of a block. +Taking 0.1039 % of a block. ```rust calls: Vec<<T as Config>::RuntimeCall> @@ -1606,7 +1606,7 @@ event is deposited. <details><summary><code>as_derivative(index, call)</code></summary> -Taking 0.0038 % of a block. +Taking 0.0037 % of a block. ```rust index: u16 @@ -1633,7 +1633,7 @@ The dispatch origin for this call must be _Signed_. <details><summary><code>batch_all(calls)</code></summary> -Taking 0.1127 % of a block. +Taking 0.1131 % of a block. ```rust calls: Vec<<T as Config>::RuntimeCall> @@ -1659,7 +1659,7 @@ includes bypassing `frame_system::Config::BaseCallFilter`). <details><summary><code>force_batch(calls)</code></summary> -Taking 0.1071 % of a block. +Taking 0.104 % of a block. ```rust calls: Vec<<T as Config>::RuntimeCall> @@ -1707,7 +1707,7 @@ The dispatch origin for this call must be _Root_. <details><summary><code>propose_spend(value, beneficiary)</code></summary> -Taking 0.0172 % of a block. +Taking 0.0174 % of a block. ```rust value: BalanceOf<T, I> @@ -1737,7 +1737,7 @@ Emits [`Event::Proposed`] if successful. <details><summary><code>spend_local(amount, beneficiary)</code></summary> -Taking 0.0036 % of a block. +Taking 0.0035 % of a block. ```rust amount: BalanceOf<T, I> @@ -1768,7 +1768,7 @@ Emits [`Event::SpendApproved`] if successful. <details><summary><code>remove_approval(proposal_id)</code></summary> -Taking 0.0108 % of a block. +Taking 0.0107 % of a block. ```rust proposal_id: ProposalIndex @@ -1802,7 +1802,7 @@ The original deposit will no longer be returned. <details><summary><code>spend(asset_kind, amount, beneficiary, valid_from)</code></summary> -Taking 0.0036 % of a block. +Taking 0.0035 % of a block. ```rust asset_kind: Box<T::AssetKind> @@ -1844,7 +1844,7 @@ Emits [`Event::AssetSpendApproved`] if successful. <details><summary><code>payout(index)</code></summary> -Taking 0.0263 % of a block. +Taking 0.0265 % of a block. ```rust index: SpendIndex @@ -1945,7 +1945,7 @@ There are **18** root calls from **8** pallets. <details><summary><code>set_heap_pages(pages)</code></summary> -Taking 0.0165 % of a block. +Taking 0.0166 % of a block. ```rust pages: u64 @@ -1959,7 +1959,7 @@ Set the number of pages in the WebAssembly environment's heap. <details><summary><code>set_code(code)</code></summary> -Taking 4.0113 % of a block. +Taking 3.2097 % of a block. ```rust code: Vec<u8> @@ -1990,7 +1990,7 @@ version! <details><summary><code>set_storage(items)</code></summary> -Taking 5.8851 % of a block. +Taking 6.0054 % of a block. ```rust items: Vec<KeyValue> @@ -2004,7 +2004,7 @@ Set some items of storage. <details><summary><code>kill_storage(keys)</code></summary> -Taking 5.8773 % of a block. +Taking 5.9992 % of a block. ```rust keys: Vec<Key> @@ -2018,7 +2018,7 @@ Kill some items from storage. <details><summary><code>kill_prefix(prefix, subkeys)</code></summary> -Taking 6.9458 % of a block. +Taking 7.0112 % of a block. ```rust prefix: Key @@ -2036,7 +2036,7 @@ the prefix we are removing to accurately calculate the weight of this function. <details><summary><code>authorize_upgrade(code_hash)</code></summary> -Taking 0.0101 % of a block. +Taking 0.01 % of a block. ```rust code_hash: T::Hash @@ -2074,7 +2074,7 @@ This call requires Root origin. <details><summary><code>apply_authorized_upgrade(code)</code></summary> -Taking 4.2016 % of a block. +Taking 3.461 % of a block. ```rust code: Vec<u8> @@ -2117,7 +2117,7 @@ not been enacted yet. <details><summary><code>force_transfer(source, dest, value)</code></summary> -Taking 0.0265 % of a block. +Taking 0.0266 % of a block. ```rust source: AccountIdLookupOf<T> @@ -2134,7 +2134,7 @@ may be specified. <details><summary><code>force_unreserve(who, amount)</code></summary> -Taking 0.0112 % of a block. +Taking 0.0111 % of a block. ```rust who: AccountIdLookupOf<T> @@ -2153,7 +2153,7 @@ Can only be called by ROOT. <details><summary><code>remove_member(member_id)</code></summary> -Taking 0.0701 % of a block. +Taking 0.0709 % of a block. ```rust member_id: T::MemberId @@ -2197,7 +2197,7 @@ Only callable by root. <details><summary><code>set_members(new_members, prime, old_count)</code></summary> -Taking 0.1657 % of a block. +Taking 0.1668 % of a block. ```rust new_members: Vec<T::AccountId> @@ -2236,7 +2236,7 @@ with other logic managing the member set. <details><summary><code>disapprove_proposal(proposal_hash)</code></summary> -Taking 0.0229 % of a block. +Taking 0.0231 % of a block. ```rust proposal_hash: T::Hash @@ -2261,7 +2261,7 @@ O(P) where P is the number of max proposals <details><summary><code>prune_item_identities_names(names)</code></summary> -Taking 5.9211 % of a block. +Taking 6.0421 % of a block. ```rust names: Vec<IdtyName> @@ -2277,7 +2277,7 @@ remove identity names from storage <details><summary><code>dispatch_as(as_origin, call)</code></summary> -Taking 0.0039 % of a block. +Taking 0.0038 % of a block. ```rust as_origin: Box<T::PalletsOrigin> @@ -2324,7 +2324,7 @@ Can be executed by every `origin`. <details><summary><code>remark_with_event(remark)</code></summary> -Taking 0.2052 % of a block. +Taking 0.2151 % of a block. ```rust remark: Vec<u8> @@ -2340,7 +2340,7 @@ Make some on-chain remark and emit event. <details><summary><code>set_keys(keys, proof)</code></summary> -Taking 0.0394 % of a block. +Taking 0.0395 % of a block. ```rust keys: T::Keys @@ -2363,7 +2363,7 @@ The dispatch origin of this function must be signed. <details><summary><code>purge_keys()</code></summary> -Taking 0.0347 % of a block. +Taking 0.0351 % of a block. ```rust ``` diff --git a/docs/api/runtime-events.md b/docs/api/runtime-events.md index 6b1404aa3c120c6d61fcf3c2d213dc9b5cf91aa8..bde9aa35a192f1f363ea2f35092cd4520ce56585 100644 --- a/docs/api/runtime-events.md +++ b/docs/api/runtime-events.md @@ -581,7 +581,7 @@ A oneshot account was created. ```rust account: T::AccountId -balance: <T::Currency as Currency<T::AccountId>>::Balance +balance: BalanceOf<T> creator: T::AccountId ``` @@ -595,10 +595,8 @@ A oneshot account was consumed. ```rust account: T::AccountId -dest1: (T::AccountId,<T::Currency as Currency<T::AccountId>>::Balance,) -dest2: Option< -(T::AccountId,<T::Currency as Currency<T::AccountId>>::Balance,) -> +dest1: (T::AccountId, BalanceOf<T>) +dest2: Option<(T::AccountId, BalanceOf<T>)> ``` </details> @@ -611,7 +609,7 @@ A withdrawal was executed on a oneshot account. ```rust account: T::AccountId -balance: <T::Currency as Currency<T::AccountId>>::Balance +balance: BalanceOf<T> ``` </details> diff --git a/end2end-tests/tests/common/balances.rs b/end2end-tests/tests/common/balances.rs index 9329a5fe13bcf9ca6081cd783611ef17c5b934c6..e7b703736316ea3bcd02bfcb932ed611263324de 100644 --- a/end2end-tests/tests/common/balances.rs +++ b/end2end-tests/tests/common/balances.rs @@ -14,9 +14,7 @@ // You should have received a copy of the GNU Affero General Public License // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. -use super::gdev; -use super::gdev::runtime_types::pallet_balances; -use super::*; +use super::{gdev, gdev::runtime_types::pallet_balances, *}; use sp_keyring::AccountKeyring; use subxt::{tx::PairSigner, utils::MultiAddress}; diff --git a/end2end-tests/tests/common/cert.rs b/end2end-tests/tests/common/cert.rs index 86efaed685f7a8962949df0d1c6facf9576b5612..8ca1d080a419664358b29563ddc861d48be40043 100644 --- a/end2end-tests/tests/common/cert.rs +++ b/end2end-tests/tests/common/cert.rs @@ -14,9 +14,7 @@ // You should have received a copy of the GNU Affero General Public License // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. -use super::gdev; -use super::gdev::runtime_types::pallet_certification; -use super::*; +use super::{gdev, gdev::runtime_types::pallet_certification, *}; use sp_keyring::AccountKeyring; use subxt::{tx::PairSigner, utils::MultiAddress}; diff --git a/end2end-tests/tests/common/distance.rs b/end2end-tests/tests/common/distance.rs index 97add31a313804b983b61b3d5feb4228dc9593f9..29a3a12c986e4bbd976a36abad14ce9efbf12ff8 100644 --- a/end2end-tests/tests/common/distance.rs +++ b/end2end-tests/tests/common/distance.rs @@ -14,14 +14,14 @@ // You should have received a copy of the GNU Affero General Public License // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. -use super::gdev; -use super::gdev::runtime_types::pallet_identity; -use super::*; +use super::{gdev, gdev::runtime_types::pallet_identity, *}; use crate::DuniterWorld; use sp_keyring::AccountKeyring; -use subxt::backend::rpc::RpcClient; -use subxt::tx::{PairSigner, Signer}; -use subxt::utils::AccountId32; +use subxt::{ + backend::rpc::RpcClient, + tx::{PairSigner, Signer}, + utils::AccountId32, +}; pub async fn request_evaluation(client: &FullClient, origin: AccountKeyring) -> Result<()> { let origin = PairSigner::new(origin.pair()); diff --git a/end2end-tests/tests/common/identity.rs b/end2end-tests/tests/common/identity.rs index ab42cff025a9044cc3b23646fa1de82ef4ead41b..da532a67edc83e9bcbec3bae4af19a5c7013402a 100644 --- a/end2end-tests/tests/common/identity.rs +++ b/end2end-tests/tests/common/identity.rs @@ -14,11 +14,8 @@ // You should have received a copy of the GNU Affero General Public License // along with Substrate-Libre-Currency. If not, see <https://www.gnu.org/licenses/>. -use super::gdev; -use super::gdev::runtime_types::pallet_identity; -use super::*; -use crate::gdev::runtime_types::pallet_identity::types::IdtyName; -use crate::DuniterWorld; +use super::{gdev, gdev::runtime_types::pallet_identity, *}; +use crate::{gdev::runtime_types::pallet_identity::types::IdtyName, DuniterWorld}; use sp_keyring::AccountKeyring; use subxt::tx::PairSigner; diff --git a/end2end-tests/tests/common/mod.rs b/end2end-tests/tests/common/mod.rs index 6e61a839878013481132b382521131d0f38e12d3..6ed0e8375c02367af9262d01261c2b198474a5a2 100644 --- a/end2end-tests/tests/common/mod.rs +++ b/end2end-tests/tests/common/mod.rs @@ -33,17 +33,19 @@ use codec::Encode; use notify_debouncer_mini::new_debouncer; use serde_json::Value; use sp_keyring::AccountKeyring; -use std::io::prelude::*; -use std::path::{Path, PathBuf}; -use std::process::Command; -use std::str::FromStr; -use std::time::{Duration, Instant}; -use subxt::backend::rpc::RpcClient; -use subxt::backend::rpc::RpcParams; -use subxt::config::substrate::SubstrateExtrinsicParamsBuilder; -use subxt::config::SubstrateExtrinsicParams; -use subxt::ext::{sp_core, sp_runtime}; -use subxt::rpc_params; +use std::{ + io::prelude::*, + path::{Path, PathBuf}, + process::Command, + str::FromStr, + time::{Duration, Instant}, +}; +use subxt::{ + backend::rpc::{RpcClient, RpcParams}, + config::{substrate::SubstrateExtrinsicParamsBuilder, SubstrateExtrinsicParams}, + ext::{sp_core, sp_runtime}, + rpc_params, +}; pub type Client = subxt::OnlineClient<GdevConfig>; pub type Event = gdev::Event; @@ -144,6 +146,7 @@ pub async fn spawn_node( "--rpc-cors=all", "--alice", "--tmp", + "--unsafe-force-node-key-generation", // Fix: End2End test may fail due to network discovery. This option disables automatic peer discovery.π "--reserved-only", // prevent local network discovery (even it does not connect due to above flag) diff --git a/end2end-tests/tests/common/oneshot.rs b/end2end-tests/tests/common/oneshot.rs index 51478d12978f6432da50e06c7d47e180dae32a63..bcfe65dc84f06c40a5b6fbc530180633e750bae6 100644 --- a/end2end-tests/tests/common/oneshot.rs +++ b/end2end-tests/tests/common/oneshot.rs @@ -14,13 +14,16 @@ // You should have received a copy of the GNU Affero General Public License // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. -use super::gdev; -use super::gdev::runtime_types::pallet_balances; -use super::gdev::runtime_types::pallet_oneshot_account; -use super::*; +use super::{ + gdev, + gdev::runtime_types::{pallet_balances, pallet_oneshot_account}, + *, +}; use sp_keyring::AccountKeyring; -use subxt::utils::AccountId32; -use subxt::{tx::PairSigner, utils::MultiAddress}; +use subxt::{ + tx::PairSigner, + utils::{AccountId32, MultiAddress}, +}; pub enum Account { Normal(AccountKeyring), diff --git a/end2end-tests/tests/cucumber_tests.rs b/end2end-tests/tests/cucumber_tests.rs index 5c174c954d817b8a5ec0751818e82f2bf7359060..4b35e0242c0d9ceab4436b567131c9c4d9bf68f7 100644 --- a/end2end-tests/tests/cucumber_tests.rs +++ b/end2end-tests/tests/cucumber_tests.rs @@ -17,14 +17,15 @@ mod common; use common::*; -use cucumber::StatsWriter; -use cucumber::{given, then, when, World}; +use cucumber::{given, then, when, StatsWriter, World}; use sp_keyring::AccountKeyring; -use std::path::PathBuf; -use std::str::FromStr; -use std::sync::{ - atomic::{AtomicBool, Ordering}, - Arc, +use std::{ + path::PathBuf, + str::FromStr, + sync::{ + atomic::{AtomicBool, Ordering}, + Arc, + }, }; use subxt::backend::rpc::RpcClient; diff --git a/live-tests/tests/sanity_gdev.rs b/live-tests/tests/sanity_gdev.rs index d2f8f091535e77c421bf58683861a609052695a3..ca6ded3e811b6c576b1d8f4a037474cadaf7dd47 100644 --- a/live-tests/tests/sanity_gdev.rs +++ b/live-tests/tests/sanity_gdev.rs @@ -14,24 +14,13 @@ // You should have received a copy of the GNU Affero General Public License // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. -// WARNING -// these live test build but I'm not sure they actually test something -// they should be checked against corrupted storage to see that they actually fail - #[subxt::subxt(runtime_metadata_path = "../resources/metadata.scale")] pub mod gdev {} use countmap::CountMap; -use sp_core::crypto::AccountId32; -use sp_core::{blake2_128, ByteArray, H256}; +use sp_core::{blake2_128, crypto::AccountId32, ByteArray, H256}; use std::collections::{HashMap, HashSet}; -use subxt::backend::rpc::RpcClient; -use subxt::config::SubstrateConfig as GdevConfig; -use subxt::ext::sp_core; -// use subxt::config::substrate::SubstrateExtrinsicParamsBuilder; -// use subxt::backend::rpc::RpcParams; -// use subxt::config::SubstrateExtrinsicParams; -// use subxt::ext::{sp_core, sp_runtime}; +use subxt::{backend::rpc::RpcClient, config::SubstrateConfig as GdevConfig}; const DEFAULT_ENDPOINT: &str = "ws://localhost:9944"; @@ -57,8 +46,7 @@ type IdtyIndex = u32; type IdtyValue = gdev::runtime_types::pallet_identity::types::IdtyValue<BlockNumber, AccountId32, IdtyData>; type MembershipData = gdev::runtime_types::sp_membership::MembershipData<BlockNumber>; -use gdev::runtime_types::pallet_identity::types::IdtyName; -use gdev::runtime_types::pallet_identity::types::IdtyStatus; +use gdev::runtime_types::pallet_identity::types::{IdtyName, IdtyStatus}; struct Storage { accounts: HashMap<AccountId32, AccountInfo>, @@ -103,10 +91,10 @@ async fn sanity_tests_at(client: Client, _maybe_block_hash: Option<H256>) -> any .unwrap() .iter(gdev::storage().system().account_iter()) .await?; - while let Some(Ok((key, account_info))) = account_iter.next().await { + while let Some(Ok(key)) = account_iter.next().await { let mut account_id_bytes = [0u8; 32]; - account_id_bytes.copy_from_slice(&key[48..]); - accounts.insert(AccountId32::new(account_id_bytes), account_info); + account_id_bytes.copy_from_slice(&key.key_bytes[48..]); + accounts.insert(AccountId32::new(account_id_bytes), key.value); } println!("accounts.len(): {}.", accounts.len()); @@ -119,16 +107,16 @@ async fn sanity_tests_at(client: Client, _maybe_block_hash: Option<H256>) -> any .unwrap() .iter(gdev::storage().identity().identities_iter()) .await?; - while let Some(Ok((key, idty_value))) = idty_iter.next().await { + while let Some(Ok(key)) = idty_iter.next().await { let mut idty_index_bytes = [0u8; 4]; - idty_index_bytes.copy_from_slice(&key[40..]); + idty_index_bytes.copy_from_slice(&key.key_bytes[40..]); let idty_val = IdtyValue { - data: idty_value.data, - next_creatable_identity_on: idty_value.next_creatable_identity_on, + data: key.value.data, + next_creatable_identity_on: key.value.next_creatable_identity_on, old_owner_key: None, // Not used in the live test, skip the conversion - owner_key: AccountId32::from(idty_value.owner_key.0), - next_scheduled: idty_value.next_scheduled, - status: idty_value.status, + owner_key: AccountId32::from(key.value.owner_key.0), + next_scheduled: key.value.next_scheduled, + status: key.value.status, }; identities.insert(IdtyIndex::from_le_bytes(idty_index_bytes), idty_val); } @@ -143,10 +131,10 @@ async fn sanity_tests_at(client: Client, _maybe_block_hash: Option<H256>) -> any .unwrap() .iter(gdev::storage().identity().identity_index_of_iter()) .await?; - while let Some(Ok((key, idty_index))) = idty_index_of_iter.next().await { + while let Some(Ok(key)) = idty_index_of_iter.next().await { let mut blake2_128_bytes = [0u8; 16]; - blake2_128_bytes.copy_from_slice(&key[32..48]); - identity_index_of.insert(blake2_128_bytes, idty_index); + blake2_128_bytes.copy_from_slice(&key.key_bytes[32..48]); + identity_index_of.insert(blake2_128_bytes, key.value); } println!("identity_index_of.len(): {}.", identity_index_of.len()); @@ -159,9 +147,9 @@ async fn sanity_tests_at(client: Client, _maybe_block_hash: Option<H256>) -> any .unwrap() .iter(gdev::storage().identity().identities_names_iter()) .await?; - while let Some(Ok((key, idty_index))) = idty_name_iter.next().await { - let name = IdtyName(key); - identities_names.insert(idty_index, name); + while let Some(Ok(key)) = idty_name_iter.next().await { + let name = IdtyName(key.key_bytes); + identities_names.insert(key.value, name); } println!("identities_names.len(): {}.", identities_names.len()); @@ -174,11 +162,11 @@ async fn sanity_tests_at(client: Client, _maybe_block_hash: Option<H256>) -> any .unwrap() .iter(gdev::storage().membership().membership_iter()) .await?; - while let Some(Ok((key, membership_data))) = membership_iter.next().await { + while let Some(Ok(key)) = membership_iter.next().await { let mut idty_index_bytes = [0u8; 4]; - idty_index_bytes.copy_from_slice(&key[40..]); + idty_index_bytes.copy_from_slice(&key.key_bytes[40..]); let membership_val = MembershipData { - expire_on: membership_data.expire_on, + expire_on: key.value.expire_on, }; memberships.insert(IdtyIndex::from_le_bytes(idty_index_bytes), membership_val); } diff --git a/node/Cargo.toml b/node/Cargo.toml index 4f1958cfa1ae9af016fc9d201ef89c384d148ef8..e4125940bb3dd1b9662faf190997e0532b6cc1c0 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -63,8 +63,6 @@ try-runtime = [ "sp-distance/try-runtime", "sp-membership/try-runtime", "sp-runtime/try-runtime", - "try-runtime-cli", - "try-runtime-cli?/try-runtime", ] std = [ "bs58/std", @@ -178,7 +176,6 @@ sp-timestamp = { workspace = true } sp-transaction-pool = { workspace = true } sp-transaction-storage-proof = { workspace = true } substrate-frame-rpc-system = { workspace = true } -try-runtime-cli = { workspace = true, optional = true } [build-dependencies] substrate-build-script-utils = { workspace = true } diff --git a/node/src/chain_spec/gdev.rs b/node/src/chain_spec/gdev.rs index 45a6f051423d9cc5e3e5d774389f7bc7941e3413..370da7b0b27b4054089196d3e4f56a7860c703d3 100644 --- a/node/src/chain_spec/gdev.rs +++ b/node/src/chain_spec/gdev.rs @@ -18,10 +18,7 @@ use super::*; use crate::chain_spec::gen_genesis_data::{ AuthorityKeys, CommonParameters, GenesisIdentity, SessionKeysProvider, }; -use common_runtime::constants::*; -use common_runtime::entities::IdtyData; -use common_runtime::GenesisIdty; -use common_runtime::IdtyStatus; +use common_runtime::{constants::*, entities::IdtyData, GenesisIdty, IdtyStatus}; use gdev_runtime::{ opaque::SessionKeys, pallet_universal_dividend, parameters, Runtime, RuntimeGenesisConfig, WASM_BINARY, diff --git a/node/src/chain_spec/gen_genesis_data.rs b/node/src/chain_spec/gen_genesis_data.rs index b6ce08e5f022bac5bb6ef8d3ac5c5011802c3bd8..8807e1453cc48a492529c7b564a18dc625123458 100644 --- a/node/src/chain_spec/gen_genesis_data.rs +++ b/node/src/chain_spec/gen_genesis_data.rs @@ -15,8 +15,10 @@ // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. use crate::chain_spec::{get_account_id_from_seed, get_from_seed, AccountPublic}; -use common_runtime::constants::{DAYS, MILLISECS_PER_BLOCK}; -use common_runtime::*; +use common_runtime::{ + constants::{DAYS, MILLISECS_PER_BLOCK}, + *, +}; use log::{error, warn}; use num_format::{Locale, ToFormattedString}; use pallet_im_online::sr25519::AuthorityId as ImOnlineId; @@ -24,14 +26,17 @@ use serde::{de::DeserializeOwned, Deserialize, Serialize}; use sp_authority_discovery::AuthorityId as AuthorityDiscoveryId; use sp_consensus_babe::AuthorityId as BabeId; use sp_consensus_grandpa::AuthorityId as GrandpaId; -use sp_core::crypto::AccountId32; -use sp_core::{ed25519, sr25519, Decode, Encode}; -use sp_runtime::traits::{IdentifyAccount, Verify}; -use sp_runtime::{MultiSignature, Perbill}; -use std::collections::{BTreeMap, HashMap}; -use std::fmt::{Display, Formatter}; -use std::fs; -use std::ops::{Add, Sub}; +use sp_core::{crypto::AccountId32, ed25519, sr25519, Decode, Encode}; +use sp_runtime::{ + traits::{IdentifyAccount, Verify}, + MultiSignature, Perbill, +}; +use std::{ + collections::{BTreeMap, HashMap}, + fmt::{Display, Formatter}, + fs, + ops::{Add, Sub}, +}; static G1_DUNITER_V1_EXISTENTIAL_DEPOSIT: u64 = 100; static G1_DUNITER_V1_DECIMALS: usize = 2; @@ -2064,8 +2069,10 @@ fn seconds_to_blocs(seconds: u32) -> u32 { #[cfg(test)] mod tests { use super::*; - use sp_core::crypto::{Ss58AddressFormat, Ss58Codec}; - use sp_core::ByteArray; + use sp_core::{ + crypto::{Ss58AddressFormat, Ss58Codec}, + ByteArray, + }; use std::str::FromStr; #[test] diff --git a/node/src/chain_spec/gtest.rs b/node/src/chain_spec/gtest.rs index 018b130b0254e9fdf1074db8b69517657a6e9de3..3154b76cf236a83e14676a65cfa0338c31cbc9bb 100644 --- a/node/src/chain_spec/gtest.rs +++ b/node/src/chain_spec/gtest.rs @@ -16,14 +16,10 @@ use super::*; use crate::chain_spec::gen_genesis_data::{CommonParameters, GenesisIdentity, SessionKeysProvider}; -use common_runtime::constants::*; -use common_runtime::entities::IdtyData; -use common_runtime::GenesisIdty; -use common_runtime::IdtyStatus; -use gtest_runtime::ImOnlineId; +use common_runtime::{constants::*, entities::IdtyData, GenesisIdty, IdtyStatus}; use gtest_runtime::{ - opaque::SessionKeys, pallet_universal_dividend, parameters, AccountId, Perbill, Runtime, - RuntimeGenesisConfig, WASM_BINARY, + opaque::SessionKeys, pallet_universal_dividend, parameters, AccountId, ImOnlineId, Perbill, + Runtime, RuntimeGenesisConfig, WASM_BINARY, }; use jsonrpsee::core::JsonValue; use sc_consensus_grandpa::AuthorityId as GrandpaId; diff --git a/node/src/command.rs b/node/src/command.rs index 704eff2b75fe83f422c335775c53320a757686d0..9b0f335c33e3af957ded3b2b268658391e0b2038 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -20,10 +20,12 @@ pub mod key; pub mod utils; -use crate::cli::{Cli, Subcommand}; -use crate::service::runtime_executor::Executor; -use crate::service::RuntimeType; -use crate::{chain_spec, service}; +use crate::{ + chain_spec, + cli::{Cli, Subcommand}, + service, + service::{runtime_executor::Executor, RuntimeType}, +}; use clap::CommandFactory; #[cfg(feature = "runtime-benchmarks")] use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE}; @@ -329,12 +331,12 @@ pub fn run() -> sc_cli::Result<()> { BenchmarkCmd::Pallet(cmd) => { if cfg!(feature = "runtime-benchmarks") { runner.sync_run(|config| { - cmd.run::<sp_runtime::traits::HashingFor< + cmd.run_with_spec::<sp_runtime::traits::HashingFor< service::runtime_executor::runtime::Block, >, ExtendedHostFunctions< sp_io::SubstrateHostFunctions, <Executor as NativeExecutionDispatch>::ExtendHostFunctions, - >>(config) + >>(Some(config.chain_spec)) }) } else { Err("Benchmarking wasn't enabled when building the node. \ @@ -373,10 +375,11 @@ pub fn run() -> sc_cli::Result<()> { } { - service::new_full::<service::runtime_executor::runtime::RuntimeApi, Executor>( - config, - cli.sealing, - ) + service::new_full::< + service::runtime_executor::runtime::RuntimeApi, + Executor, + sc_network::Litep2pNetworkBackend, + >(config, cli.sealing) .map_err(sc_cli::Error::Service) } }) diff --git a/node/src/rpc.rs b/node/src/rpc.rs index 301d4ce9febc08b08b9f4adfec31b5b1664e4ead..e61d608f5fb16c2fd8cc7c2e944d315538731019 100644 --- a/node/src/rpc.rs +++ b/node/src/rpc.rs @@ -23,11 +23,9 @@ pub use sc_rpc_api::DenyUnsafe; -use common_runtime::Block; -use common_runtime::{AccountId, Balance, Index}; +use common_runtime::{AccountId, Balance, Block, Index}; use jsonrpsee::RpcModule; -use sc_consensus_babe::BabeApi; -use sc_consensus_babe::BabeWorkerHandle; +use sc_consensus_babe::{BabeApi, BabeWorkerHandle}; use sc_transaction_pool_api::TransactionPool; use sp_api::ProvideRuntimeApi; use sp_block_builder::BlockBuilder; diff --git a/node/src/service.rs b/node/src/service.rs index e8375a7af709738912d601dfa1cedb856728ded2..8ce3d3c2b0625b29533ed6d037b041a30ea961bc 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -22,12 +22,12 @@ use self::client::{Client, ClientHandle, RuntimeApiCollection}; use async_io::Timer; use common_runtime::Block; use futures::{Stream, StreamExt}; -use sc_client_api::client::BlockBackend; -use sc_client_api::Backend; +use sc_client_api::{client::BlockBackend, Backend}; use sc_consensus_grandpa::SharedVoterState; use sc_consensus_manual_seal::{run_manual_seal, EngineCommand, ManualSealParams}; -use sc_service::WarpSyncParams; -use sc_service::{error::Error as ServiceError, Configuration, PartialComponents, TaskManager}; +use sc_service::{ + error::Error as ServiceError, Configuration, PartialComponents, TaskManager, WarpSyncParams, +}; use sc_telemetry::{Telemetry, TelemetryWorker}; use sp_consensus_babe::inherents::InherentDataProvider; use sp_core::H256; @@ -295,7 +295,11 @@ where } /// Builds a new service for a full client. -pub fn new_full<RuntimeApi, Executor>( +pub fn new_full< + RuntimeApi, + Executor, + N: sc_network::NetworkBackend<Block, <Block as sp_runtime::traits::Block>::Hash>, +>( config: Configuration, sealing: crate::cli::Sealing, ) -> Result<TaskManager, ServiceError> @@ -328,9 +332,19 @@ where &config.chain_spec, ); - let mut net_config = sc_network::config::FullNetworkConfiguration::new(&config.network); + let mut net_config = sc_network::config::FullNetworkConfiguration::< + Block, + <Block as sp_runtime::traits::Block>::Hash, + N, + >::new(&config.network); + let metrics = N::register_notification_metrics(config.prometheus_registry()); + let peer_store_handle = net_config.peer_store_handle(); let (grandpa_protocol_config, grandpa_notification_service) = - sc_consensus_grandpa::grandpa_peers_set_config(grandpa_protocol_name.clone()); + sc_consensus_grandpa::grandpa_peers_set_config::<_, N>( + grandpa_protocol_name.clone(), + metrics.clone(), + peer_store_handle, + ); net_config.add_notification_protocol(grandpa_protocol_config); let warp_sync = Arc::new(sc_consensus_grandpa::warp_proof::NetworkProvider::new( @@ -350,6 +364,7 @@ where block_announce_validator_builder: None, warp_sync_params: Some(WarpSyncParams::WithProvider(warp_sync)), block_relay: None, + metrics, })?; let role = config.role.clone(); @@ -374,7 +389,7 @@ where transaction_pool.clone(), ), ), - network_provider: network.clone(), + network_provider: Arc::new(network.clone()), is_validator: role.is_authority(), enable_http_requests: false, custom_extensions: move |_| vec![], diff --git a/node/src/service/client.rs b/node/src/service/client.rs index d9019c6825fe9e406a963dd4a244c9f509b8ca54..34fbea16a7e4ae512759761d3a9a7d5359865873 100644 --- a/node/src/service/client.rs +++ b/node/src/service/client.rs @@ -15,9 +15,9 @@ // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. use common_runtime::{AccountId, Balance, Block, BlockNumber, Hash, Header, Index}; -use sc_client_api::MerkleValue; use sc_client_api::{ - AuxStore, Backend as BackendT, BlockchainEvents, KeysIter, PairsIter, UsageProvider, + AuxStore, Backend as BackendT, BlockchainEvents, KeysIter, MerkleValue, PairsIter, + UsageProvider, }; use sp_api::{CallApiAt, ProvideRuntimeApi}; use sp_blockchain::{HeaderBackend, HeaderMetadata}; diff --git a/pallets/authority-members/src/impls.rs b/pallets/authority-members/src/impls.rs index 6a1930e3f42ed0a98fc865ce7b4bcaf483c630af..337f4689584f66d2296bc585cc562ac86e9d5086 100644 --- a/pallets/authority-members/src/impls.rs +++ b/pallets/authority-members/src/impls.rs @@ -23,13 +23,10 @@ #![allow(clippy::type_complexity)] use super::pallet::*; -use frame_support::pallet_prelude::Weight; -use frame_support::traits::Get; -use pallet_offences::traits::OnOffenceHandler; -use pallet_offences::SlashStrategy; +use frame_support::{pallet_prelude::Weight, traits::Get}; +use pallet_offences::{traits::OnOffenceHandler, SlashStrategy}; use sp_runtime::traits::Convert; -use sp_staking::offence::OffenceDetails; -use sp_staking::SessionIndex; +use sp_staking::{offence::OffenceDetails, SessionIndex}; impl<T: Config> OnOffenceHandler<T::AccountId, pallet_session::historical::IdentificationTuple<T>, Weight> diff --git a/pallets/authority-members/src/lib.rs b/pallets/authority-members/src/lib.rs index 963a180b59a92982758d71828484d7b7eabdb657..052d4130a4fcb68ef538d69bea94b278af3fbff9 100644 --- a/pallets/authority-members/src/lib.rs +++ b/pallets/authority-members/src/lib.rs @@ -45,13 +45,13 @@ use sp_std::prelude::*; #[frame_support::pallet] pub mod pallet { use super::*; - use frame_support::pallet_prelude::*; - use frame_support::traits::ValidatorRegistration; - use frame_support::traits::{StorageVersion, UnfilteredDispatchable}; + use frame_support::{ + pallet_prelude::*, + traits::{StorageVersion, UnfilteredDispatchable, ValidatorRegistration}, + }; use frame_system::pallet_prelude::*; use sp_runtime::traits::{Convert, IsMember}; - use sp_std::collections::btree_map::BTreeMap; - use sp_std::vec; + use sp_std::{collections::btree_map::BTreeMap, vec}; /// The current storage version. const STORAGE_VERSION: StorageVersion = StorageVersion::new(1); diff --git a/pallets/authority-members/src/mock.rs b/pallets/authority-members/src/mock.rs index 34b26a9220901cada607e7cb14f7942cf5d25ae5..15db413e53382f2912cc69a7529133f23a2a8333 100644 --- a/pallets/authority-members/src/mock.rs +++ b/pallets/authority-members/src/mock.rs @@ -18,16 +18,14 @@ use super::*; use crate::{self as pallet_authority_members}; use frame_support::{pallet_prelude::*, parameter_types, traits::Everything}; use frame_system as system; -use pallet_offences::traits::OnOffenceHandler; -use pallet_offences::SlashStrategy; +use pallet_offences::{traits::OnOffenceHandler, SlashStrategy}; use pallet_session::ShouldEndSession; use sp_core::{crypto::key_types::DUMMY, H256}; -use sp_runtime::BuildStorage; use sp_runtime::{ impl_opaque_keys, testing::UintAuthorityId, traits::{BlakeTwo256, ConvertInto, IdentityLookup, IsMember, OpaqueKeys}, - KeyTypeId, + BuildStorage, KeyTypeId, }; use sp_staking::offence::OffenceDetails; use sp_state_machine::BasicExternalities; diff --git a/pallets/authority-members/src/tests.rs b/pallets/authority-members/src/tests.rs index ab1218ccd334407b8ab86895773830ddabfac15e..35dbced547b14c81c773c8286a97a88e0bd3e37f 100644 --- a/pallets/authority-members/src/tests.rs +++ b/pallets/authority-members/src/tests.rs @@ -16,11 +16,9 @@ use super::*; use crate::mock::*; -use crate::MemberData; use frame_support::{assert_err, assert_noop, assert_ok}; use frame_system::RawOrigin; -use sp_runtime::testing::UintAuthorityId; -use sp_runtime::traits::BadOrigin; +use sp_runtime::{testing::UintAuthorityId, traits::BadOrigin}; use sp_staking::offence::OffenceDetails; const EMPTY: Vec<u64> = Vec::new(); diff --git a/pallets/certification/src/lib.rs b/pallets/certification/src/lib.rs index b2061d396db5ddaa71c2fd01e951e2490cada2ce..01df9634942b863530bfe7f9fe57ee7e85e610a9 100644 --- a/pallets/certification/src/lib.rs +++ b/pallets/certification/src/lib.rs @@ -37,8 +37,7 @@ pub use weights::WeightInfo; use crate::traits::*; use codec::Codec; use duniter_primitives::Idty; -use frame_support::pallet_prelude::*; -use frame_support::traits::StorageVersion; +use frame_support::{pallet_prelude::*, traits::StorageVersion}; use sp_runtime::traits::AtLeast32BitUnsigned; use sp_std::{fmt::Debug, vec::Vec}; diff --git a/pallets/certification/src/tests.rs b/pallets/certification/src/tests.rs index 0bde9557b9a882ec521a6d06b3d0db90d27df67f..fc8d4fb65db791fcaa9190615a4d4538c2330484 100644 --- a/pallets/certification/src/tests.rs +++ b/pallets/certification/src/tests.rs @@ -14,8 +14,7 @@ // You should have received a copy of the GNU Affero General Public License // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. -use crate::mock::*; -use crate::{Error, Event}; +use crate::{mock::*, Error, Event}; use frame_support::{assert_noop, assert_ok}; use maplit::btreemap; use sp_std::collections::btree_map::BTreeMap; diff --git a/pallets/distance/src/benchmarking.rs b/pallets/distance/src/benchmarking.rs index cf11d85e33cc670cd7569a9c146849054010170c..06e2637fcf09e286087f11f46b5fb5f291715d5b 100644 --- a/pallets/distance/src/benchmarking.rs +++ b/pallets/distance/src/benchmarking.rs @@ -15,18 +15,14 @@ // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. #![cfg(feature = "runtime-benchmarks")] +#![allow(clippy::multiple_bound_locations)] use super::*; use codec::Encode; use frame_benchmarking::v2::*; -use frame_support::traits::Get; -use frame_support::traits::OnInitialize; -use frame_support::traits::{Currency, OnFinalize}; -use frame_system::pallet_prelude::BlockNumberFor; -use frame_system::RawOrigin; -use pallet_balances::Pallet as Balances; -use sp_runtime::traits::{Bounded, One}; +use frame_support::traits::{Get, OnFinalize, OnInitialize}; +use frame_system::{pallet_prelude::BlockNumberFor, RawOrigin}; use sp_runtime::Perbill; use crate::Pallet; @@ -34,7 +30,7 @@ use crate::Pallet; #[benchmarks( where T: pallet_balances::Config, - T::Balance: From<u64>, + BalanceOf<T>: From<u32>, BlockNumberFor<T>: From<u32>, )] mod benchmarks { @@ -62,8 +58,7 @@ mod benchmarks { let caller: T::AccountId = pallet_identity::Identities::<T>::get(idty) .unwrap() .owner_key; - let _ = - <Balances<T> as Currency<_>>::make_free_balance_be(&caller, T::Balance::max_value()); + let _ = T::Currency::set_balance(&caller, u32::MAX.into()); #[extrinsic_call] _(RawOrigin::Signed(caller.clone())); @@ -87,7 +82,7 @@ mod benchmarks { let caller: T::AccountId = pallet_identity::Identities::<T>::get(idty) .unwrap() .owner_key; - <Balances<T> as Currency<_>>::make_free_balance_be(&caller, T::Balance::max_value()); + T::Currency::set_balance(&caller, u32::MAX.into()); let target: T::IdtyIndex = 2u32; // set target status since targeted distance evaluation only allowed for unvalidated pallet_identity::Identities::<T>::mutate(target, |idty_val| { @@ -192,8 +187,7 @@ mod benchmarks { let caller: T::AccountId = pallet_identity::Identities::<T>::get(idty) .unwrap() .owner_key; - let _ = - <Balances<T> as Currency<_>>::make_free_balance_be(&caller, T::Balance::max_value()); + let _ = T::Currency::set_balance(&caller, u32::MAX.into()); Pallet::<T>::request_distance_evaluation(RawOrigin::Signed(caller.clone()).into())?; assert_has_event::<T>( Event::<T>::EvaluationRequested { @@ -236,8 +230,7 @@ mod benchmarks { let caller: T::AccountId = pallet_identity::Identities::<T>::get(idty) .unwrap() .owner_key; - let _ = - <Balances<T> as Currency<_>>::make_free_balance_be(&caller, T::Balance::max_value()); + let _ = T::Currency::set_balance(&caller, u32::MAX.into()); Pallet::<T>::request_distance_evaluation(RawOrigin::Signed(caller.clone()).into())?; assert_has_event::<T>( Event::<T>::EvaluationRequested { diff --git a/pallets/distance/src/lib.rs b/pallets/distance/src/lib.rs index 76d580b2d2913510698b1c60591fa1aa495da2e1..b52e2bb084db727aa30568f5a4d90aaacc2e6006 100644 --- a/pallets/distance/src/lib.rs +++ b/pallets/distance/src/lib.rs @@ -34,14 +34,18 @@ pub use traits::*; pub use types::*; pub use weights::WeightInfo; -use frame_support::traits::StorageVersion; +use frame_support::traits::{ + fungible::{self, hold::Balanced, Mutate, MutateHold}, + tokens::Precision, + StorageVersion, +}; use sp_distance::{InherentError, INHERENT_IDENTIFIER}; use sp_inherents::{InherentData, InherentIdentifier}; -use sp_runtime::traits::One; -use sp_runtime::traits::Zero; -use sp_runtime::Saturating; -use sp_std::convert::TryInto; -use sp_std::prelude::*; +use sp_runtime::{ + traits::{One, Zero}, + Saturating, +}; +use sp_std::{convert::TryInto, prelude::*}; type IdtyIndex = u32; @@ -53,9 +57,17 @@ pub const MAX_EVALUATORS_PER_SESSION: u32 = 100; #[frame_support::pallet()] pub mod pallet { use super::*; - use frame_support::{pallet_prelude::*, traits::ReservableCurrency}; + use frame_support::pallet_prelude::*; use frame_system::pallet_prelude::*; use sp_runtime::Perbill; + pub type AccountIdOf<T> = <T as frame_system::Config>::AccountId; + pub type BalanceOf<T> = <<T as Config>::Currency as fungible::Inspect<AccountIdOf<T>>>::Balance; + + #[pallet::composite_enum] + pub enum HoldReason { + /// The funds are held as deposit for the distance evaluation. + DistanceHold, + } /// The current storage version. const STORAGE_VERSION: StorageVersion = StorageVersion::new(1); @@ -71,12 +83,14 @@ pub mod pallet { + pallet_identity::Config<IdtyIndex = IdtyIndex> { /// Currency type used in this pallet (used for reserve/slash) - type Currency: ReservableCurrency<Self::AccountId>; + type Currency: Mutate<Self::AccountId> + + MutateHold<Self::AccountId, Reason = Self::RuntimeHoldReason> + + Balanced<Self::AccountId>; + /// Overarching hold reason. + type RuntimeHoldReason: From<HoldReason>; /// Amount reserved during evaluation #[pallet::constant] - type EvaluationPrice: Get< - <Self::Currency as frame_support::traits::Currency<Self::AccountId>>::Balance, - >; + type EvaluationPrice: Get<BalanceOf<Self>>; /// Evaluation period number of blocks. /// As the evaluation is done using 3 pools, /// the evaluation will take 3 * EvaluationPeriod. @@ -463,7 +477,11 @@ pub mod pallet { Error::<T>::QueueFull ); - T::Currency::reserve(who, <T as Config>::EvaluationPrice::get())?; + T::Currency::hold( + &HoldReason::DistanceHold.into(), + who, + <T as Config>::EvaluationPrice::get(), + )?; current_pool .evaluations @@ -559,9 +577,11 @@ pub mod pallet { if let Some(distance) = distance_result { if distance >= T::MinAccessibleReferees::get() { // Positive result, unreserve and apply - T::Currency::unreserve( + let _ = T::Currency::release( + &HoldReason::DistanceHold.into(), &requester, <T as Config>::EvaluationPrice::get(), + Precision::Exact, ); Self::do_valid_distance_status(idty, distance); weight = weight.saturating_add( @@ -572,7 +592,8 @@ pub mod pallet { ); } else { // Negative result, slash and deposit event - let _ = T::Currency::slash_reserved( + let _ = T::Currency::slash( + &HoldReason::DistanceHold.into(), &requester, <T as Config>::EvaluationPrice::get(), ); @@ -589,7 +610,12 @@ pub mod pallet { } } else { // No result, unreserve - T::Currency::unreserve(&requester, <T as Config>::EvaluationPrice::get()); + let _ = T::Currency::release( + &HoldReason::DistanceHold.into(), + &requester, + <T as Config>::EvaluationPrice::get(), + Precision::Exact, + ); weight = weight.saturating_add( <T as pallet::Config>::WeightInfo::do_evaluation_failure() .saturating_sub( diff --git a/pallets/distance/src/mock.rs b/pallets/distance/src/mock.rs index 5d68135168973de8f88f9a7ffbb386cd8683c2d8..0f232b82d1f8a39e870fb4c901e8640a76c71199 100644 --- a/pallets/distance/src/mock.rs +++ b/pallets/distance/src/mock.rs @@ -25,13 +25,12 @@ use frame_system as system; use pallet_balances::AccountData; use pallet_session::ShouldEndSession; use sp_core::{ConstU32, H256}; -use sp_runtime::BuildStorage; use sp_runtime::{ impl_opaque_keys, key_types::DUMMY, testing::{TestSignature, UintAuthorityId}, traits::{BlakeTwo256, ConvertInto, IdentityLookup, IsMember, OpaqueKeys}, - KeyTypeId, Perbill, + BuildStorage, KeyTypeId, Perbill, }; type Balance = u64; @@ -210,7 +209,7 @@ impl pallet_balances::Config for Test { type ReserveIdentifier = [u8; 8]; type RuntimeEvent = RuntimeEvent; type RuntimeFreezeReason = (); - type RuntimeHoldReason = (); + type RuntimeHoldReason = RuntimeHoldReason; type WeightInfo = pallet_balances::weights::SubstrateWeight<Test>; } @@ -262,6 +261,7 @@ impl pallet_distance::Config for Test { type MinAccessibleReferees = MinAccessibleReferees; type OnValidDistanceStatus = (); type RuntimeEvent = RuntimeEvent; + type RuntimeHoldReason = RuntimeHoldReason; type WeightInfo = (); } diff --git a/pallets/distance/src/tests.rs b/pallets/distance/src/tests.rs index 18302be75c61c8ed2718d33d353e7a49b8148253..4ec3087cbc36f1f10c13e24bfdacbfc40a08c835 100644 --- a/pallets/distance/src/tests.rs +++ b/pallets/distance/src/tests.rs @@ -14,10 +14,8 @@ // You should have received a copy of the GNU Affero General Public License // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. -use crate::mock::*; -use crate::*; -use frame_support::traits::Currency; -use frame_support::{assert_noop, assert_ok}; +use crate::{mock::*, *}; +use frame_support::{assert_noop, assert_ok, traits::Currency}; // allow request distance evaluation for oneself #[test] diff --git a/pallets/distance/src/types.rs b/pallets/distance/src/types.rs index 95ab967e2476983ea4b8f9b87ae23b8b3fb329b3..cb9f32924f8f2a2be96ba987fe06d7378886ff2f 100644 --- a/pallets/distance/src/types.rs +++ b/pallets/distance/src/types.rs @@ -18,7 +18,7 @@ pub use crate::{median::*, MAX_EVALUATIONS_PER_SESSION, MAX_EVALUATORS_PER_SESSI pub use sp_distance::ComputationResult; use codec::{Decode, Encode}; -use frame_support::{pallet_prelude::*, BoundedBTreeSet}; +use frame_support::pallet_prelude::*; use sp_runtime::Perbill; /// Status of the distance evaluation of an identity diff --git a/pallets/duniter-account/src/lib.rs b/pallets/duniter-account/src/lib.rs index 346dab97619dfa125435274e00260d96c1fa48a2..514084f8725211cc7e3ecfed5aaa77cfdb91e14e 100644 --- a/pallets/duniter-account/src/lib.rs +++ b/pallets/duniter-account/src/lib.rs @@ -28,9 +28,10 @@ pub use pallet::*; pub use types::*; pub use weights::WeightInfo; -use frame_support::pallet_prelude::*; -use frame_support::traits::StoredMap; -use frame_support::traits::{Currency, StorageVersion}; +use frame_support::{ + pallet_prelude::*, + traits::{fungible, fungible::Credit, IsSubType, StorageVersion, StoredMap}, +}; use frame_system::pallet_prelude::*; use pallet_quota::traits::RefundFee; use pallet_transaction_payment::OnChargeTransaction; @@ -42,8 +43,8 @@ pub mod pallet { use super::*; pub type IdtyIdOf<T> = <T as pallet_identity::Config>::IdtyIndex; pub type CurrencyOf<T> = pallet_balances::Pallet<T>; - pub type BalanceOf<T> = - <CurrencyOf<T> as Currency<<T as frame_system::Config>::AccountId>>::Balance; + type AccountIdOf<T> = <T as frame_system::Config>::AccountId; + pub type BalanceOf<T> = <CurrencyOf<T> as fungible::Inspect<AccountIdOf<T>>>::Balance; /// The current storage version. const STORAGE_VERSION: StorageVersion = StorageVersion::new(1); @@ -290,14 +291,15 @@ where // allows pay fees with quota instead of currency if available impl<T: Config> OnChargeTransaction<T> for Pallet<T> where + T::RuntimeCall: IsSubType<Call<T>>, T::InnerOnChargeTransaction: OnChargeTransaction< T, - Balance = <CurrencyOf<T> as Currency<T::AccountId>>::Balance, - LiquidityInfo = Option<<CurrencyOf<T> as Currency<T::AccountId>>::NegativeImbalance>, + Balance = BalanceOf<T>, + LiquidityInfo = Option<Credit<T::AccountId, T::Currency>>, >, { type Balance = BalanceOf<T>; - type LiquidityInfo = Option<<CurrencyOf<T> as Currency<T::AccountId>>::NegativeImbalance>; + type LiquidityInfo = Option<Credit<T::AccountId, T::Currency>>; fn withdraw_fee( who: &T::AccountId, diff --git a/pallets/duniter-test-parameters/src/lib.rs b/pallets/duniter-test-parameters/src/lib.rs index 98db19954b354ca28baded4fff508da6a8426deb..39775e7c42ecbefd0f8e6569dbdc3efff91ab8e9 100644 --- a/pallets/duniter-test-parameters/src/lib.rs +++ b/pallets/duniter-test-parameters/src/lib.rs @@ -65,8 +65,7 @@ pub mod types { #[frame_support::pallet] pub mod pallet { use super::*; - use frame_support::pallet_prelude::*; - use frame_support::traits::StorageVersion; + use frame_support::{pallet_prelude::*, traits::StorageVersion}; /// The current storage version. const STORAGE_VERSION: StorageVersion = StorageVersion::new(1); diff --git a/pallets/duniter-wot/src/mock.rs b/pallets/duniter-wot/src/mock.rs index f73248cc656f0dde192d15028ab5bf921260da32..60148e0ec4b87242d09b3ec558aad7fd36002677 100644 --- a/pallets/duniter-wot/src/mock.rs +++ b/pallets/duniter-wot/src/mock.rs @@ -19,10 +19,10 @@ use crate::{self as pallet_duniter_wot}; use frame_support::{parameter_types, traits::Everything}; use frame_system as system; use sp_core::H256; -use sp_runtime::BuildStorage; use sp_runtime::{ testing::{TestSignature, UintAuthorityId}, traits::{BlakeTwo256, IdentityLookup}, + BuildStorage, }; use sp_state_machine::BasicExternalities; use std::collections::BTreeMap; diff --git a/pallets/duniter-wot/src/tests.rs b/pallets/duniter-wot/src/tests.rs index 515827526523ae876a6c13d7c551a3a9daa08d15..c82be351435b92b532ec752ca1c30f08459d6678 100644 --- a/pallets/duniter-wot/src/tests.rs +++ b/pallets/duniter-wot/src/tests.rs @@ -14,8 +14,7 @@ // You should have received a copy of the GNU Affero General Public License // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. -use crate::mock::*; -use crate::pallet as pallet_duniter_wot; +use crate::{mock::*, pallet as pallet_duniter_wot}; use codec::Encode; use frame_support::{assert_noop, assert_ok}; use pallet_identity::{ diff --git a/pallets/identity/src/benchmarking.rs b/pallets/identity/src/benchmarking.rs index 734707ae041dea3892db612bf085d42ef67a4233..20e7462133e6d8bc564e1ecd41cd56e82800e6e0 100644 --- a/pallets/identity/src/benchmarking.rs +++ b/pallets/identity/src/benchmarking.rs @@ -19,11 +19,9 @@ use super::*; use codec::Encode; -use frame_benchmarking::account; -use frame_benchmarking::v2::*; +use frame_benchmarking::{account, v2::*}; use frame_support::traits::OnInitialize; -use frame_system::pallet_prelude::BlockNumberFor; -use frame_system::RawOrigin; +use frame_system::{pallet_prelude::BlockNumberFor, RawOrigin}; use sp_core::Get; use sp_io::crypto::{sr25519_generate, sr25519_sign}; use sp_runtime::{AccountId32, MultiSigner}; diff --git a/pallets/identity/src/lib.rs b/pallets/identity/src/lib.rs index 3ff6fde96a18f048df687b6f7cdacb2f38361508..886e62586abedd82752f6dc32b288b4e195d695a 100644 --- a/pallets/identity/src/lib.rs +++ b/pallets/identity/src/lib.rs @@ -38,8 +38,7 @@ use crate::traits::*; use codec::Codec; use frame_support::pallet_prelude::Weight; use sp_runtime::traits::{AtLeast32BitUnsigned, IdentifyAccount, One, Saturating, Verify, Zero}; -use sp_std::fmt::Debug; -use sp_std::prelude::*; +use sp_std::{fmt::Debug, prelude::*}; // icok = identity change owner key pub const NEW_OWNER_KEY_PAYLOAD_PREFIX: [u8; 4] = [b'i', b'c', b'o', b'k']; @@ -51,8 +50,7 @@ pub const LINK_IDTY_PAYLOAD_PREFIX: [u8; 4] = [b'l', b'i', b'n', b'k']; #[frame_support::pallet] pub mod pallet { use super::*; - use frame_support::pallet_prelude::*; - use frame_support::traits::StorageVersion; + use frame_support::{pallet_prelude::*, traits::StorageVersion}; use frame_system::pallet_prelude::*; /// The current storage version. diff --git a/pallets/identity/src/mock.rs b/pallets/identity/src/mock.rs index 81a0dc3566670947f6988f74664b978b8b5c7f7e..e13c48b212238f7dd8a2a009f34503b3e66d137f 100644 --- a/pallets/identity/src/mock.rs +++ b/pallets/identity/src/mock.rs @@ -23,10 +23,9 @@ use frame_support::{ use frame_system as system; use sp_core::{Pair, H256}; use sp_keystore::{testing::MemoryKeystore, KeystoreExt}; -use sp_runtime::BuildStorage; use sp_runtime::{ traits::{BlakeTwo256, IdentityLookup}, - MultiSignature, MultiSigner, + BuildStorage, MultiSignature, MultiSigner, }; use sp_state_machine::BasicExternalities; use std::sync::Arc; diff --git a/pallets/identity/src/tests.rs b/pallets/identity/src/tests.rs index 7d8c3abc618523f278b2cddcb40e5483b1beeffa..9bc2205ebad0eba7b654884651743deca7a1d199 100644 --- a/pallets/identity/src/tests.rs +++ b/pallets/identity/src/tests.rs @@ -14,14 +14,11 @@ // You should have received a copy of the GNU Affero General Public License // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. -use crate::mock::*; -use crate::*; +use crate::{mock::*, *}; use codec::Encode; -use frame_support::dispatch::DispatchResultWithPostInfo; -use frame_support::{assert_noop, assert_ok}; -use sp_core::sr25519::Pair as KeyPair; -use sp_core::Pair; -use sp_runtime::{traits::IdentifyAccount, MultiSignature, MultiSigner}; +use frame_support::{assert_noop, assert_ok, dispatch::DispatchResultWithPostInfo}; +use sp_core::{sr25519::Pair as KeyPair, Pair}; +use sp_runtime::{MultiSignature, MultiSigner}; type IdtyVal = IdtyValue<u64, AccountId, ()>; diff --git a/pallets/identity/src/traits.rs b/pallets/identity/src/traits.rs index ed8a2e2e44763c31ca798acdd9f690b39b491331..8031d50c96d4d273391f3755abc64025eef31331 100644 --- a/pallets/identity/src/traits.rs +++ b/pallets/identity/src/traits.rs @@ -16,7 +16,6 @@ use crate::*; use frame_support::pallet_prelude::*; -use frame_support::weights::Weight; /// A trait defining operations for checking if identity-related calls are allowed. pub trait CheckIdtyCallAllowed<T: Config> { diff --git a/pallets/identity/src/types.rs b/pallets/identity/src/types.rs index e3c8b35dba622b34ed0f6d566c07fe1896db28ff..868d8f0a7a8c06427b48feede911f8ec76669ad3 100644 --- a/pallets/identity/src/types.rs +++ b/pallets/identity/src/types.rs @@ -17,11 +17,9 @@ //! Various basic types for use in the identity pallet. use codec::{Decode, Encode}; -use core::primitive::str; use frame_support::pallet_prelude::*; use scale_info::TypeInfo; use serde::{Deserialize, Serialize}; -use sp_std::vec::Vec; /// internal events related to identity pub enum IdtyEvent<T: crate::Config> { @@ -80,7 +78,7 @@ pub enum RemovalReason { Deserialize, TypeInfo, )] -pub struct IdtyName(pub Vec<u8>); +pub struct IdtyName(pub sp_std::vec::Vec<u8>); impl From<&str> for IdtyName { fn from(s: &str) -> Self { diff --git a/pallets/membership/src/lib.rs b/pallets/membership/src/lib.rs index 4119fcb9cf47c947e3259011d8fdd75009786d08..714d4bb09d4b85510568cc7c199ae8c0652d7d97 100644 --- a/pallets/membership/src/lib.rs +++ b/pallets/membership/src/lib.rs @@ -31,13 +31,10 @@ pub mod weights; pub use pallet::*; pub use weights::WeightInfo; -use frame_support::pallet_prelude::Weight; -use frame_support::pallet_prelude::*; -use sp_membership::traits::*; -use sp_membership::MembershipData; +use frame_support::pallet_prelude::{Weight, *}; +use sp_membership::{traits::*, MembershipData}; use sp_runtime::traits::Zero; -use sp_std::collections::btree_map::BTreeMap; -use sp_std::prelude::*; +use sp_std::{collections::btree_map::BTreeMap, prelude::*}; #[cfg(feature = "runtime-benchmarks")] pub trait SetupBenchmark<IdtyId, AccountId> { diff --git a/pallets/membership/src/tests.rs b/pallets/membership/src/tests.rs index 4f22c32135af2cd04f215261307b0ad5278dfba2..c9b04c0a272eefad5b15774e1a145e3b63975681 100644 --- a/pallets/membership/src/tests.rs +++ b/pallets/membership/src/tests.rs @@ -14,13 +14,10 @@ // You should have received a copy of the GNU Affero General Public License // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. -use crate::mock::*; -use crate::MembershipRemovalReason; -use crate::{Error, Event}; +use crate::{mock::*, Error, Event, MembershipRemovalReason}; use frame_support::{assert_noop, assert_ok}; use maplit::btreemap; -use sp_membership::traits::*; -use sp_membership::MembershipData; +use sp_membership::{traits::*, MembershipData}; fn default_gen_conf() -> MembershipConfig { MembershipConfig { diff --git a/pallets/offences/src/mock.rs b/pallets/offences/src/mock.rs index 76fb2218f4e5c1482d8f058effd6353907690d0b..62cd5150d102674ff99dfd163777421ab846439d 100644 --- a/pallets/offences/src/mock.rs +++ b/pallets/offences/src/mock.rs @@ -16,8 +16,7 @@ #![cfg(test)] -use crate::Config; -use crate::{self as pallet_offences, SlashStrategy}; +use crate::{self as pallet_offences, Config, SlashStrategy}; use codec::Encode; use frame_support::{ parameter_types, @@ -25,10 +24,9 @@ use frame_support::{ weights::{constants::RocksDbWeight, Weight}, }; use sp_core::H256; -use sp_runtime::BuildStorage; use sp_runtime::{ traits::{BlakeTwo256, IdentityLookup}, - Perbill, + BuildStorage, Perbill, }; use sp_staking::{ offence::{Kind, OffenceDetails}, diff --git a/pallets/oneshot-account/src/benchmarking.rs b/pallets/oneshot-account/src/benchmarking.rs index cf79d049413a018a17f12aa4561b09d383988259..1a936058713b0c0e98dd5bf780a2ff0cd81937ef 100644 --- a/pallets/oneshot-account/src/benchmarking.rs +++ b/pallets/oneshot-account/src/benchmarking.rs @@ -15,23 +15,24 @@ // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. #![cfg(feature = "runtime-benchmarks")] +#![allow(clippy::multiple_bound_locations)] use super::*; -use frame_benchmarking::v2::*; -use frame_benchmarking::{account, whitelisted_caller}; -use frame_support::pallet_prelude::IsType; -use frame_support::traits::Get; +use frame_benchmarking::{account, v2::*, whitelisted_caller}; +use frame_support::{pallet_prelude::IsType, traits::fungible::Mutate}; use frame_system::RawOrigin; use pallet_balances::Pallet as Balances; use crate::Pallet; +type BalanceOf<T> = <<T as Config>::Currency as fungible::Inspect<AccountIdOf<T>>>::Balance; + #[benchmarks( where T: pallet_balances::Config, T::Balance: From<u64>, - <T::Currency as Currency<T::AccountId>>::Balance: IsType<T::Balance>+From<T::Balance> + BalanceOf<T>: IsType<T::Balance>+From<T::Balance> )] mod benchmarks { use super::*; @@ -41,7 +42,10 @@ mod benchmarks { let existential_deposit = T::ExistentialDeposit::get(); let caller = whitelisted_caller(); let balance = existential_deposit.saturating_mul((2).into()); - let _ = T::Currency::make_free_balance_be(&caller, balance.into()); + let _ = <<T as pallet::Config>::Currency as Mutate<T::AccountId>>::set_balance( + &caller, + balance.into(), + ); let recipient: T::AccountId = account("recipient", 0, 1); let recipient_lookup: <T::Lookup as StaticLookup>::Source = T::Lookup::unlookup(recipient.clone()); @@ -66,16 +70,16 @@ mod benchmarks { let existential_deposit = T::ExistentialDeposit::get(); let caller: T::AccountId = whitelisted_caller(); let balance = existential_deposit.saturating_mul((2).into()); - OneshotAccounts::<T>::insert( - caller.clone(), - Into::<<T::Currency as Currency<T::AccountId>>::Balance>::into(balance), - ); + OneshotAccounts::<T>::insert(caller.clone(), Into::<BalanceOf<T>>::into(balance)); // Deposit into a normal account is more expensive than into a oneshot account // so we create the recipient account with an existential deposit. let recipient: T::AccountId = account("recipient", 0, 1); let recipient_lookup: <T::Lookup as StaticLookup>::Source = T::Lookup::unlookup(recipient.clone()); - let _ = T::Currency::make_free_balance_be(&recipient, existential_deposit.into()); + let _ = <<T as pallet::Config>::Currency as Mutate<T::AccountId>>::set_balance( + &recipient, + existential_deposit.into(), + ); #[extrinsic_call] _( @@ -96,20 +100,23 @@ mod benchmarks { let existential_deposit = T::ExistentialDeposit::get(); let caller: T::AccountId = whitelisted_caller(); let balance = existential_deposit.saturating_mul((2).into()); - OneshotAccounts::<T>::insert( - caller.clone(), - Into::<<T::Currency as Currency<T::AccountId>>::Balance>::into(balance), - ); + OneshotAccounts::<T>::insert(caller.clone(), Into::<BalanceOf<T>>::into(balance)); // Deposit into a normal account is more expensive than into a oneshot account // so we create the recipient accounts with an existential deposits. let recipient1: T::AccountId = account("recipient1", 0, 1); let recipient1_lookup: <T::Lookup as StaticLookup>::Source = T::Lookup::unlookup(recipient1.clone()); - let _ = T::Currency::make_free_balance_be(&recipient1, existential_deposit.into()); + let _ = <<T as pallet::Config>::Currency as Mutate<T::AccountId>>::set_balance( + &recipient1, + existential_deposit.into(), + ); let recipient2: T::AccountId = account("recipient2", 1, 1); let recipient2_lookup: <T::Lookup as StaticLookup>::Source = T::Lookup::unlookup(recipient2.clone()); - let _ = T::Currency::make_free_balance_be(&recipient2, existential_deposit.into()); + let _ = <<T as pallet::Config>::Currency as Mutate<T::AccountId>>::set_balance( + &recipient2, + existential_deposit.into(), + ); #[extrinsic_call] _( diff --git a/pallets/oneshot-account/src/check_nonce.rs b/pallets/oneshot-account/src/check_nonce.rs index 83bd7494fe4c7ce9408d163b904352bcc104873e..3f365453196738d0edbf4c8e74223ae82282f137 100644 --- a/pallets/oneshot-account/src/check_nonce.rs +++ b/pallets/oneshot-account/src/check_nonce.rs @@ -17,8 +17,7 @@ use crate::Config; use codec::{Decode, Encode}; -use frame_support::dispatch::DispatchInfo; -use frame_support::traits::IsSubType; +use frame_support::{dispatch::DispatchInfo, traits::IsSubType}; //use frame_system::Config; use scale_info::TypeInfo; use sp_runtime::{ diff --git a/pallets/oneshot-account/src/lib.rs b/pallets/oneshot-account/src/lib.rs index 637debf4d6ee77bd9aac739bc967ee57048a1d58..f1bff130b57d855fac2564fde450cf601bb6d416 100644 --- a/pallets/oneshot-account/src/lib.rs +++ b/pallets/oneshot-account/src/lib.rs @@ -28,15 +28,23 @@ pub use pallet::*; pub use types::*; pub use weights::WeightInfo; -use frame_support::pallet_prelude::*; -use frame_support::traits::{ - Currency, ExistenceRequirement, Imbalance, IsSubType, WithdrawReasons, +use frame_support::{ + pallet_prelude::*, + traits::{ + fungible, + fungible::{Balanced, Credit, Inspect}, + tokens::{Fortitude, Precision, Preservation}, + Imbalance, IsSubType, + }, }; use frame_system::pallet_prelude::*; use pallet_transaction_payment::OnChargeTransaction; use sp_runtime::traits::{DispatchInfoOf, PostDispatchInfoOf, Saturating, StaticLookup, Zero}; use sp_std::convert::TryInto; +type AccountIdOf<T> = <T as frame_system::Config>::AccountId; +type BalanceOf<T> = <<T as Config>::Currency as fungible::Inspect<AccountIdOf<T>>>::Balance; + #[frame_support::pallet] pub mod pallet { use super::*; @@ -49,7 +57,7 @@ pub mod pallet { #[pallet::config] pub trait Config: frame_system::Config + pallet_transaction_payment::Config { - type Currency: Currency<Self::AccountId>; + type Currency: fungible::Balanced<Self::AccountId> + fungible::Mutate<Self::AccountId>; type InnerOnChargeTransaction: OnChargeTransaction<Self>; type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>; /// Type representing the weight of this pallet @@ -60,13 +68,8 @@ pub mod pallet { #[pallet::storage] #[pallet::getter(fn oneshot_account)] - pub type OneshotAccounts<T: Config> = StorageMap< - _, - Blake2_128Concat, - T::AccountId, - <T::Currency as Currency<T::AccountId>>::Balance, - OptionQuery, - >; + pub type OneshotAccounts<T: Config> = + StorageMap<_, Blake2_128Concat, T::AccountId, BalanceOf<T>, OptionQuery>; // EVENTS // @@ -77,25 +80,19 @@ pub mod pallet { /// A oneshot account was created. OneshotAccountCreated { account: T::AccountId, - balance: <T::Currency as Currency<T::AccountId>>::Balance, + balance: BalanceOf<T>, creator: T::AccountId, }, /// A oneshot account was consumed. OneshotAccountConsumed { account: T::AccountId, - dest1: ( - T::AccountId, - <T::Currency as Currency<T::AccountId>>::Balance, - ), - dest2: Option<( - T::AccountId, - <T::Currency as Currency<T::AccountId>>::Balance, - )>, + dest1: (T::AccountId, BalanceOf<T>), + dest2: Option<(T::AccountId, BalanceOf<T>)>, }, /// A withdrawal was executed on a oneshot account. Withdraw { account: T::AccountId, - balance: <T::Currency as Currency<T::AccountId>>::Balance, + balance: BalanceOf<T>, }, } @@ -133,13 +130,13 @@ pub mod pallet { pub fn create_oneshot_account( origin: OriginFor<T>, dest: <T::Lookup as StaticLookup>::Source, - #[pallet::compact] value: <T::Currency as Currency<T::AccountId>>::Balance, + #[pallet::compact] value: BalanceOf<T>, ) -> DispatchResult { let transactor = ensure_signed(origin)?; let dest = T::Lookup::lookup(dest)?; ensure!( - value >= <T::Currency as Currency<T::AccountId>>::minimum_balance(), + value >= T::Currency::minimum_balance(), Error::<T>::ExistentialDeposit ); ensure!( @@ -147,11 +144,12 @@ pub mod pallet { Error::<T>::OneshotAccountAlreadyCreated ); - let _ = <T::Currency as Currency<T::AccountId>>::withdraw( + let _ = T::Currency::withdraw( &transactor, value, - WithdrawReasons::TRANSFER, - ExistenceRequirement::KeepAlive, + Precision::Exact, + Preservation::Preserve, + Fortitude::Polite, )?; OneshotAccounts::<T>::insert(&dest, value); Self::deposit_event(Event::OneshotAccountCreated { @@ -205,9 +203,8 @@ pub mod pallet { balance: value, creator: transactor.clone(), }); - } else { - let _ = - <T::Currency as Currency<T::AccountId>>::deposit_into_existing(&dest, value)?; + } else if frame_system::Pallet::<T>::providers(&dest) > 0 { + let _ = T::Currency::deposit(&dest, value, Precision::Exact)?; } OneshotAccounts::<T>::remove(&transactor); Self::deposit_event(Event::OneshotAccountConsumed { @@ -236,7 +233,7 @@ pub mod pallet { block_height: BlockNumberFor<T>, dest: Account<<T::Lookup as StaticLookup>::Source>, remaining_to: Account<<T::Lookup as StaticLookup>::Source>, - #[pallet::compact] balance: <T::Currency as Currency<T::AccountId>>::Balance, + #[pallet::compact] balance: BalanceOf<T>, ) -> DispatchResult { let transactor = ensure_signed(origin)?; @@ -271,12 +268,12 @@ pub mod pallet { Error::<T>::OneshotAccountAlreadyCreated ); ensure!( - balance1 >= <T::Currency as Currency<T::AccountId>>::minimum_balance(), + balance1 >= T::Currency::minimum_balance(), Error::<T>::ExistentialDeposit ); } else { ensure!( - !<T::Currency as Currency<T::AccountId>>::free_balance(&dest1).is_zero(), + !T::Currency::balance(&dest1).is_zero(), Error::<T>::DestAccountNotExist ); } @@ -286,7 +283,7 @@ pub mod pallet { Error::<T>::OneshotAccountAlreadyCreated ); ensure!( - balance2 >= <T::Currency as Currency<T::AccountId>>::minimum_balance(), + balance2 >= T::Currency::minimum_balance(), Error::<T>::ExistentialDeposit ); OneshotAccounts::<T>::insert(&dest2, balance2); @@ -295,10 +292,8 @@ pub mod pallet { balance: balance2, creator: transactor.clone(), }); - } else { - let _ = <T::Currency as Currency<T::AccountId>>::deposit_into_existing( - &dest2, balance2, - )?; + } else if frame_system::Pallet::<T>::providers(&dest2) > 0 { + let _ = T::Currency::deposit(&dest2, balance2, Precision::Exact)?; } if dest1_is_oneshot { OneshotAccounts::<T>::insert(&dest1, balance1); @@ -307,10 +302,8 @@ pub mod pallet { balance: balance1, creator: transactor.clone(), }); - } else { - let _ = <T::Currency as Currency<T::AccountId>>::deposit_into_existing( - &dest1, balance1, - )?; + } else if frame_system::Pallet::<T>::providers(&dest1) > 0 { + let _ = T::Currency::deposit(&dest1, balance1, Precision::Exact)?; } OneshotAccounts::<T>::remove(&transactor); Self::deposit_event(Event::OneshotAccountConsumed { @@ -329,12 +322,12 @@ where T::RuntimeCall: IsSubType<Call<T>>, T::InnerOnChargeTransaction: OnChargeTransaction< T, - Balance = <T::Currency as Currency<T::AccountId>>::Balance, - LiquidityInfo = Option<<T::Currency as Currency<T::AccountId>>::NegativeImbalance>, + Balance = BalanceOf<T>, + LiquidityInfo = Option<Credit<T::AccountId, T::Currency>>, >, { - type Balance = <T::Currency as Currency<T::AccountId>>::Balance; - type LiquidityInfo = Option<<T::Currency as Currency<T::AccountId>>::NegativeImbalance>; + type Balance = BalanceOf<T>; + type LiquidityInfo = Option<Credit<T::AccountId, T::Currency>>; fn withdraw_fee( who: &T::AccountId, @@ -359,10 +352,7 @@ where account: who.clone(), balance: fee, }); - // TODO - return Ok(Some( - <T::Currency as Currency<T::AccountId>>::NegativeImbalance::zero(), - )); + return Ok(Some(Imbalance::zero())); } } Err(TransactionValidityError::Invalid( diff --git a/pallets/oneshot-account/src/mock.rs b/pallets/oneshot-account/src/mock.rs index cddd7e00615f3cabb33511469e2b6018843a771a..451c5c154968ae3b2d1575af3bf1c348682accf9 100644 --- a/pallets/oneshot-account/src/mock.rs +++ b/pallets/oneshot-account/src/mock.rs @@ -17,13 +17,12 @@ use crate::{self as pallet_oneshot_account}; use frame_support::{parameter_types, traits::Everything, weights::IdentityFee}; use frame_system as system; -use pallet_transaction_payment::CurrencyAdapter; +use pallet_transaction_payment::FungibleAdapter; use sp_core::{ConstU32, H256}; use sp_runtime::{ traits::{BlakeTwo256, IdentityLookup}, BuildStorage, }; -use sp_std::convert::{TryFrom, TryInto}; type Balance = u64; type Block = frame_system::mocking::MockBlock<Test>; @@ -106,16 +105,15 @@ impl pallet_transaction_payment::Config for Test { } impl pallet_oneshot_account::Config for Test { type Currency = Balances; - type InnerOnChargeTransaction = CurrencyAdapter<Balances, HandleFees>; + type InnerOnChargeTransaction = FungibleAdapter<Balances, HandleFees>; type RuntimeEvent = RuntimeEvent; type WeightInfo = (); } pub struct HandleFees; -type NegativeImbalance = <Balances as frame_support::traits::Currency<u64>>::NegativeImbalance; -impl frame_support::traits::OnUnbalanced<NegativeImbalance> for HandleFees { - fn on_nonzero_unbalanced(_amount: NegativeImbalance) {} -} +type Imbalance = + frame_support::traits::fungible::Credit<<Test as frame_system::Config>::AccountId, Balances>; +impl frame_support::traits::OnUnbalanced<Imbalance> for HandleFees {} // Build genesis storage according to the mock runtime. #[allow(dead_code)] diff --git a/pallets/provide-randomness/src/benchmarking.rs b/pallets/provide-randomness/src/benchmarking.rs index 5f0ed8eedfa54ac9ea3905c9191f8df74bf157fc..c0a4a9a557a613b70cdc541b6796b2ae640f2c2b 100644 --- a/pallets/provide-randomness/src/benchmarking.rs +++ b/pallets/provide-randomness/src/benchmarking.rs @@ -15,17 +15,18 @@ // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. #![cfg(feature = "runtime-benchmarks")] +#![allow(clippy::multiple_bound_locations)] use super::*; -use frame_benchmarking::v2::*; -use frame_benchmarking::whitelisted_caller; -use frame_support::ensure; -use frame_support::pallet_prelude::IsType; -use frame_support::sp_runtime::{traits::One, Saturating}; -use frame_support::traits::{Currency, Get, OnInitialize}; -use frame_system::pallet_prelude::BlockNumberFor; -use frame_system::RawOrigin; +use frame_benchmarking::{v2::*, whitelisted_caller}; +use frame_support::{ + ensure, + pallet_prelude::IsType, + sp_runtime::{traits::One, Saturating}, + traits::{fungible::Mutate, Get, OnInitialize}, +}; +use frame_system::{pallet_prelude::BlockNumberFor, RawOrigin}; use sp_core::H256; use crate::Pallet; @@ -34,7 +35,7 @@ use crate::Pallet; where T: pallet_balances::Config, T::Balance: From<u64>, - <T::Currency as Currency<T::AccountId>>::Balance: IsType<T::Balance>, + BalanceOf<T>: IsType<T::Balance>, BlockNumberFor<T>: From<u32>, )] mod benchmarks { @@ -79,7 +80,7 @@ mod benchmarks { // Provide deposit let existential_deposit = T::ExistentialDeposit::get(); let balance = existential_deposit.saturating_mul((200).into()); - let _ = T::Currency::make_free_balance_be(&caller, balance.into()); + let _ = T::Currency::set_balance(&caller, balance.into()); // Set randomness parameters let random = RandomnessType::RandomnessFromOneEpochAgo; diff --git a/pallets/provide-randomness/src/lib.rs b/pallets/provide-randomness/src/lib.rs index b6c36c3454f54e2da6e22f1b374d14b0e5a71bee..159be9f870da11d576e13598a0d3d062afafa674 100644 --- a/pallets/provide-randomness/src/lib.rs +++ b/pallets/provide-randomness/src/lib.rs @@ -23,7 +23,13 @@ mod benchmarking; mod types; pub mod weights; -use frame_support::pallet_prelude::Weight; +use frame_support::{ + pallet_prelude::Weight, + traits::{ + fungible::{self, Balanced, Credit}, + tokens::{Fortitude, Precision, Preservation}, + }, +}; use sp_core::H256; use sp_std::prelude::*; @@ -45,18 +51,15 @@ impl OnFilledRandomness for () { #[frame_support::pallet] pub mod pallet { use super::*; - use frame_support::pallet_prelude::*; - use frame_support::traits::{ - Currency, ExistenceRequirement, OnUnbalanced, Randomness, StorageVersion, WithdrawReasons, + use frame_support::{ + pallet_prelude::*, + traits::{OnUnbalanced, Randomness, StorageVersion}, }; use frame_system::pallet_prelude::*; use sp_core::H256; - pub type BalanceOf<T> = - <<T as Config>::Currency as Currency<<T as frame_system::Config>::AccountId>>::Balance; - pub type NegativeImbalanceOf<T> = <<T as Config>::Currency as Currency< - <T as frame_system::Config>::AccountId, - >>::NegativeImbalance; + type AccountIdOf<T> = <T as frame_system::Config>::AccountId; + pub type BalanceOf<T> = <<T as Config>::Currency as fungible::Inspect<AccountIdOf<T>>>::Balance; /// The current storage version. const STORAGE_VERSION: StorageVersion = StorageVersion::new(1); @@ -70,7 +73,7 @@ pub mod pallet { #[pallet::config] pub trait Config: frame_system::Config<Hash = H256> { // The currency - type Currency: Currency<Self::AccountId>; + type Currency: fungible::Balanced<Self::AccountId> + fungible::Mutate<Self::AccountId>; /// Get the current epoch index type GetCurrentEpochIndex: Get<u64>; /// Maximum number of not yet filled requests @@ -82,7 +85,7 @@ pub mod pallet { /// On filled randomness type OnFilledRandomness: OnFilledRandomness; /// Handler for the unbalanced reduction when the requestor pays fees. - type OnUnbalanced: OnUnbalanced<NegativeImbalanceOf<Self>>; + type OnUnbalanced: OnUnbalanced<Credit<Self::AccountId, Self::Currency>>; /// A safe source of randomness from the parent block type ParentBlockRandomness: Randomness<Option<H256>, BlockNumberFor<Self>>; /// A safe source of randomness from one epoch ago @@ -251,8 +254,9 @@ pub mod pallet { let imbalance = T::Currency::withdraw( requestor, T::RequestPrice::get(), - WithdrawReasons::FEE, - ExistenceRequirement::KeepAlive, + Precision::Exact, + Preservation::Preserve, + Fortitude::Polite, )?; T::OnUnbalanced::on_unbalanced(imbalance); Ok(()) diff --git a/pallets/quota/src/benchmarking.rs b/pallets/quota/src/benchmarking.rs index 834268d9c014194c61a16a092e1fcd15c0f53e65..24dcd895e3065766c64472b68d960538e3c44dfe 100644 --- a/pallets/quota/src/benchmarking.rs +++ b/pallets/quota/src/benchmarking.rs @@ -17,8 +17,7 @@ #![cfg(feature = "runtime-benchmarks")] use super::*; -use frame_benchmarking::account; -use frame_benchmarking::v2::*; +use frame_benchmarking::{account, v2::*}; use sp_runtime::traits::One; fn assert_has_event<T: Config>(generic_event: <T as Config>::RuntimeEvent) { diff --git a/pallets/quota/src/lib.rs b/pallets/quota/src/lib.rs index 7c25f1fe7ce9bbb6dfce165b4b0f1d81ec30b74d..79772ba8c58087cafa33e00c83086fa1386bbc94 100644 --- a/pallets/quota/src/lib.rs +++ b/pallets/quota/src/lib.rs @@ -29,13 +29,14 @@ mod tests; pub mod benchmarking; use crate::traits::*; -use frame_support::pallet_prelude::*; -use frame_support::traits::{Currency, ExistenceRequirement}; +use frame_support::{ + pallet_prelude::*, + traits::{Currency, ExistenceRequirement}, +}; use frame_system::pallet_prelude::*; pub use pallet::*; use sp_runtime::traits::Zero; -use sp_std::fmt::Debug; -use sp_std::vec::Vec; +use sp_std::{fmt::Debug, vec::Vec}; pub use weights::WeightInfo; #[frame_support::pallet] diff --git a/pallets/quota/src/mock.rs b/pallets/quota/src/mock.rs index 06aa1acbee1eff0cfaca74905e2f48093e18ba0c..fac5bad2089a38e39a560dc869ef792e6d586b4e 100644 --- a/pallets/quota/src/mock.rs +++ b/pallets/quota/src/mock.rs @@ -24,12 +24,9 @@ use frame_support::{ }; use frame_system as system; use sp_core::{Pair, H256}; -use sp_runtime::traits::IdentifyAccount; -use sp_runtime::traits::Verify; -use sp_runtime::BuildStorage; use sp_runtime::{ - traits::{BlakeTwo256, IdentityLookup}, - MultiSignature, MultiSigner, + traits::{BlakeTwo256, IdentifyAccount, IdentityLookup, Verify}, + BuildStorage, MultiSignature, MultiSigner, }; type BlockNumber = u64; diff --git a/pallets/quota/src/tests.rs b/pallets/quota/src/tests.rs index 81f65b8bfc62755e9694cc688052af98bcaddd21..40f7469286abeda7cad25e159294f1b132f18f84 100644 --- a/pallets/quota/src/tests.rs +++ b/pallets/quota/src/tests.rs @@ -14,8 +14,7 @@ // You should have received a copy of the GNU Affero General Public License // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. -use crate::mock::*; -use crate::Weight; +use crate::{mock::*, Weight}; use frame_support::traits::Currency; use sp_core::Get; diff --git a/pallets/smith-members/src/impls.rs b/pallets/smith-members/src/impls.rs index 95a1e49dfd63d25acd45e8a5b5f7c983bad89aef..c4662164e457f4e95419aabd3042d928751c2ada 100644 --- a/pallets/smith-members/src/impls.rs +++ b/pallets/smith-members/src/impls.rs @@ -19,7 +19,6 @@ impl<T: Config> pallet_authority_members::OnIncomingMember<T::MemberId> for Pall } } -/// impl<T: Config> pallet_authority_members::OnNewSession for Pallet<T> { fn on_new_session(index: SessionIndex) { CurrentSession::<T>::put(index); diff --git a/pallets/smith-members/src/lib.rs b/pallets/smith-members/src/lib.rs index 61edcd6f6e7b741523e9450b1de869cd12ee6ab1..883ed202de2797dea5737498640c1c695a598ceb 100644 --- a/pallets/smith-members/src/lib.rs +++ b/pallets/smith-members/src/lib.rs @@ -32,18 +32,15 @@ mod benchmarking; use codec::{Codec, Decode, Encode}; use duniter_primitives::Idty; -use frame_support::dispatch::DispatchResultWithPostInfo; -use frame_support::ensure; -use frame_support::pallet_prelude::Get; -use frame_support::pallet_prelude::RuntimeDebug; -use frame_support::pallet_prelude::Weight; -use frame_system::ensure_signed; -use frame_system::pallet_prelude::OriginFor; +use frame_support::{ + dispatch::DispatchResultWithPostInfo, + ensure, + pallet_prelude::{Get, RuntimeDebug, Weight}, +}; +use frame_system::{ensure_signed, pallet_prelude::OriginFor}; use scale_info::TypeInfo; -use sp_runtime::traits::AtLeast32BitUnsigned; -use sp_runtime::traits::IsMember; -use sp_std::fmt::Debug; -use sp_std::prelude::*; +use sp_runtime::traits::{AtLeast32BitUnsigned, IsMember}; +use sp_std::{fmt::Debug, prelude::*}; use crate::traits::OnSmithDelete; pub use crate::weights::WeightInfo; @@ -73,13 +70,10 @@ pub enum SmithStatus { #[frame_support::pallet] pub mod pallet { use super::*; - use frame_support::pallet_prelude::*; - use frame_support::traits::StorageVersion; + use frame_support::{pallet_prelude::*, traits::StorageVersion}; use pallet_authority_members::SessionIndex; use sp_runtime::traits::{Convert, IsMember}; - use sp_std::collections::btree_map::BTreeMap; - use sp_std::vec; - use sp_std::vec::Vec; + use sp_std::{collections::btree_map::BTreeMap, vec, vec::Vec}; const STORAGE_VERSION: StorageVersion = StorageVersion::new(1); diff --git a/pallets/smith-members/src/mock.rs b/pallets/smith-members/src/mock.rs index 804b7d49f8f4e19833a9b9bc2771c5e13fa3e906..fa181f3bff4c0db2d0b9b0128923c66ac0dee793 100644 --- a/pallets/smith-members/src/mock.rs +++ b/pallets/smith-members/src/mock.rs @@ -17,16 +17,15 @@ #![cfg(test)] use crate::{self as pallet_smith_members}; -use frame_support::pallet_prelude::Hooks; use frame_support::{ + pallet_prelude::Hooks, parameter_types, traits::{ConstU32, ConstU64}, weights::{constants::RocksDbWeight, Weight}, }; use sp_core::H256; -use sp_runtime::traits::{ConvertInto, IsMember}; use sp_runtime::{ - traits::{BlakeTwo256, IdentityLookup}, + traits::{BlakeTwo256, ConvertInto, IdentityLookup, IsMember}, BuildStorage, Perbill, }; diff --git a/pallets/smith-members/src/types.rs b/pallets/smith-members/src/types.rs index fcccd3468e8c6577e3dc68d9781fc3decc7b5c58..d19aabf34066b94df15953113d4050f2fdc357d5 100644 --- a/pallets/smith-members/src/types.rs +++ b/pallets/smith-members/src/types.rs @@ -21,7 +21,6 @@ use codec::{Decode, Encode}; use frame_support::pallet_prelude::*; use scale_info::TypeInfo; use sp_staking::SessionIndex; -use sp_std::vec::Vec; /// certification metadata attached to an identity #[derive(Encode, Decode, Clone, PartialEq, Eq, RuntimeDebug, TypeInfo)] @@ -31,9 +30,9 @@ pub struct SmithMeta<IdtyIndex> { /// the session at which the smith will expire (for lack of validation activity) pub expires_on: Option<SessionIndex>, /// the certifications issued to other smiths - pub issued_certs: Vec<IdtyIndex>, + pub issued_certs: sp_std::vec::Vec<IdtyIndex>, /// the certifications received from other smiths - pub received_certs: Vec<IdtyIndex>, + pub received_certs: sp_std::vec::Vec<IdtyIndex>, } /// By default, a smith has the least possible privileges @@ -42,8 +41,8 @@ impl<IdtyIndex> Default for SmithMeta<IdtyIndex> { Self { status: SmithStatus::Excluded, expires_on: None, - issued_certs: Vec::<IdtyIndex>::new(), - received_certs: Vec::<IdtyIndex>::new(), + issued_certs: sp_std::vec::Vec::<IdtyIndex>::new(), + received_certs: sp_std::vec::Vec::<IdtyIndex>::new(), } } } diff --git a/pallets/universal-dividend/src/benchmarking.rs b/pallets/universal-dividend/src/benchmarking.rs index 58c4302d83d5f0ccffc2850cc85f6690ebdbc92e..0f43c27215c0d9f2ad9c97c450c1692d0665f43f 100644 --- a/pallets/universal-dividend/src/benchmarking.rs +++ b/pallets/universal-dividend/src/benchmarking.rs @@ -15,18 +15,14 @@ // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. #![cfg(feature = "runtime-benchmarks")] +#![allow(clippy::multiple_bound_locations)] use super::*; - use core::num::NonZeroU16; -use frame_benchmarking::v2::*; -use frame_benchmarking::{account, whitelisted_caller}; -use frame_support::pallet_prelude::IsType; -use frame_support::traits::Get; -use frame_support::traits::StoredMap; +use frame_benchmarking::{account, v2::*, whitelisted_caller}; +use frame_support::{pallet_prelude::IsType, traits::StoredMap}; use frame_system::RawOrigin; use pallet_balances::Pallet as Balances; -use sp_runtime::traits::Bounded; use crate::Pallet; @@ -35,7 +31,7 @@ const ED_MULTIPLIER: u32 = 10; #[benchmarks( where T: pallet_balances::Config, T::Balance: From<u64>, - <T::Currency as Currency<T::AccountId>>::Balance: IsType<T::Balance> + BalanceOf<T>: IsType<T::Balance> )] mod benchmarks { use super::*; @@ -82,7 +78,7 @@ mod benchmarks { let existential_deposit = T::ExistentialDeposit::get(); let caller = whitelisted_caller(); let balance = existential_deposit.saturating_mul(ED_MULTIPLIER.into()); - let _ = T::Currency::make_free_balance_be(&caller, balance.into()); + let _ = T::Currency::set_balance(&caller, balance.into()); // Transfer `e - 1` existential deposits + 1 unit, which guarantees to create one account and reap this user. let recipient: T::AccountId = account("recipient", 0, 1); let recipient_lookup: <T::Lookup as StaticLookup>::Source = @@ -112,10 +108,7 @@ mod benchmarks { let recipient_lookup: <T::Lookup as StaticLookup>::Source = T::Lookup::unlookup(recipient.clone()); // Give the sender account max funds, thus a transfer will not kill account. - let _ = T::Currency::make_free_balance_be( - &caller, - <T::Currency as Currency<T::AccountId>>::Balance::max_value(), - ); + let _ = T::Currency::set_balance(&caller, u32::MAX.into()); let existential_deposit = T::ExistentialDeposit::get(); let transfer_amount = existential_deposit.saturating_mul(ED_MULTIPLIER.into()); let transfer_amount_ud = diff --git a/pallets/universal-dividend/src/compute_claim_uds.rs b/pallets/universal-dividend/src/compute_claim_uds.rs index e932e8482d33441a5d3bc63c6df1ce38d16535fd..7d58edcea4bbdb5061eca67b188380c54045d492 100644 --- a/pallets/universal-dividend/src/compute_claim_uds.rs +++ b/pallets/universal-dividend/src/compute_claim_uds.rs @@ -15,7 +15,6 @@ // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. use super::UdIndex; -use core::iter::DoubleEndedIterator; use sp_arithmetic::traits::{AtLeast32BitUnsigned, Zero}; pub(super) fn compute_claim_uds<Balance: AtLeast32BitUnsigned>( diff --git a/pallets/universal-dividend/src/lib.rs b/pallets/universal-dividend/src/lib.rs index 6c6f60da2c80f79d2ec3ea6d822e2aa839df0440..4609384d45c083b74d8f89b2cdf8066b3fe05419 100644 --- a/pallets/universal-dividend/src/lib.rs +++ b/pallets/universal-dividend/src/lib.rs @@ -33,7 +33,11 @@ pub use pallet::*; pub use types::*; pub use weights::WeightInfo; -use frame_support::traits::{tokens::ExistenceRequirement, Currency, OnTimestampSet}; +use frame_support::traits::{ + fungible::{self, Balanced, Mutate}, + tokens::{Precision, Preservation}, + OnTimestampSet, +}; use sp_arithmetic::{ per_things::Perbill, traits::{One, Saturating, Zero}, @@ -43,13 +47,15 @@ use sp_runtime::traits::{Get, MaybeSerializeDeserialize, StaticLookup}; #[frame_support::pallet] pub mod pallet { use super::*; - use frame_support::pallet_prelude::*; - use frame_support::traits::{StorageVersion, StoredMap}; + use frame_support::{ + pallet_prelude::*, + traits::{StorageVersion, StoredMap}, + }; use frame_system::pallet_prelude::*; use sp_runtime::traits::Convert; - pub type BalanceOf<T> = - <<T as Config>::Currency as Currency<<T as frame_system::Config>::AccountId>>::Balance; + type AccountIdOf<T> = <T as frame_system::Config>::AccountId; + pub type BalanceOf<T> = <<T as Config>::Currency as fungible::Inspect<AccountIdOf<T>>>::Balance; /// The current storage version. const STORAGE_VERSION: StorageVersion = StorageVersion::new(1); @@ -64,7 +70,7 @@ pub mod pallet { // Moment into Balance converter type MomentIntoBalance: Convert<Self::Moment, BalanceOf<Self>>; // The currency - type Currency: Currency<Self::AccountId>; + type Currency: fungible::Balanced<Self::AccountId> + fungible::Mutate<Self::AccountId>; /// Maximum number of past UD revaluations to keep in storage. #[pallet::constant] type MaxPastReeval: Get<u32>; @@ -310,7 +316,7 @@ pub mod pallet { core::num::NonZeroU16::new(current_ud_index) .expect("unreachable because current_ud_index is never zero."), ); - let _ = T::Currency::deposit_creating(who, uds_total); + let _ = T::Currency::deposit(who, uds_total, Precision::Exact); Self::deposit_event(Event::UdsClaimed { count: uds_count, total: uds_total, @@ -329,7 +335,7 @@ pub mod pallet { origin: OriginFor<T>, dest: <T::Lookup as StaticLookup>::Source, value: BalanceOf<T>, - existence_requirement: ExistenceRequirement, + preservation: Preservation, ) -> DispatchResultWithPostInfo { let who = ensure_signed(origin)?; let dest = T::Lookup::lookup(dest)?; @@ -338,7 +344,7 @@ pub mod pallet { &who, &dest, value.saturating_mul(ud_amount) / T::UnitsPerUd::get(), - existence_requirement, + preservation, )?; Ok(().into()) } @@ -416,7 +422,7 @@ pub mod pallet { dest: <T::Lookup as StaticLookup>::Source, #[pallet::compact] value: BalanceOf<T>, ) -> DispatchResultWithPostInfo { - Self::do_transfer_ud(origin, dest, value, ExistenceRequirement::AllowDeath) + Self::do_transfer_ud(origin, dest, value, Preservation::Expendable) } /// Transfer some liquid free balance to another account, in milliUD. @@ -427,7 +433,7 @@ pub mod pallet { dest: <T::Lookup as StaticLookup>::Source, #[pallet::compact] value: BalanceOf<T>, ) -> DispatchResultWithPostInfo { - Self::do_transfer_ud(origin, dest, value, ExistenceRequirement::KeepAlive) + Self::do_transfer_ud(origin, dest, value, Preservation::Preserve) } } @@ -448,7 +454,7 @@ pub mod pallet { first_ud_index, PastReevals::<T>::get().into_iter(), ); - let _ = T::Currency::deposit_creating(who, uds_total); + let _ = T::Currency::deposit(who, uds_total, Precision::Exact); Self::deposit_event(Event::UdsAutoPaid { count: uds_count, total: uds_total, diff --git a/pallets/universal-dividend/src/types.rs b/pallets/universal-dividend/src/types.rs index da94dd22d1da1f293986fc821f92a90c6630c3e5..b7bc2bed90975e3e5dc699921daa3b011e959b50 100644 --- a/pallets/universal-dividend/src/types.rs +++ b/pallets/universal-dividend/src/types.rs @@ -17,7 +17,6 @@ use codec::{Decode, Encode, Error, Input, MaxEncodedLen, Output}; use core::num::NonZeroU16; use sp_runtime::RuntimeDebug; -use sp_std::vec::Vec; pub type UdIndex = u16; @@ -53,7 +52,7 @@ impl Encode for FirstEligibleUd { self.as_u16().encode_to(dest) } - fn encode(&self) -> Vec<u8> { + fn encode(&self) -> sp_std::vec::Vec<u8> { self.as_u16().encode() } diff --git a/pallets/upgrade-origin/src/lib.rs b/pallets/upgrade-origin/src/lib.rs index 15ebd1ae95c4aa18d78e2dd45d24f411646b3625..bcd8ad688774727ba61fbd5eaa1c2d0c0a38cc5e 100644 --- a/pallets/upgrade-origin/src/lib.rs +++ b/pallets/upgrade-origin/src/lib.rs @@ -24,8 +24,7 @@ pub use pallet::*; pub use weights::WeightInfo; use frame_support::{ - dispatch::GetDispatchInfo, - dispatch::PostDispatchInfo, + dispatch::{GetDispatchInfo, PostDispatchInfo}, traits::{IsSubType, UnfilteredDispatchable}, }; use sp_runtime::traits::Dispatchable; diff --git a/primitives/distance/src/lib.rs b/primitives/distance/src/lib.rs index bf878cc9b6a201e456c463aaac6e05fa96a1008f..1d4690942ba82b0bbb72500f24910bda56827146 100644 --- a/primitives/distance/src/lib.rs +++ b/primitives/distance/src/lib.rs @@ -22,11 +22,8 @@ use codec::{Decode, Encode}; use frame_support::pallet_prelude::RuntimeDebug; use scale_info::TypeInfo; -//#[cfg(feature = "std")] -//use serde::{Deserialize, Serialize}; use sp_inherents::{InherentData, InherentIdentifier, IsFatalError}; use sp_runtime::Perbill; -use sp_std::vec::Vec; #[cfg(feature = "std")] use std::marker::PhantomData; @@ -34,7 +31,7 @@ pub const INHERENT_IDENTIFIER: InherentIdentifier = *b"distanc0"; #[derive(Clone, Decode, Encode, PartialEq, RuntimeDebug, TypeInfo)] pub struct ComputationResult { - pub distances: Vec<Perbill>, + pub distances: sp_std::vec::Vec<Perbill>, } #[derive(Encode, sp_runtime::RuntimeDebug)] diff --git a/primitives/membership/src/lib.rs b/primitives/membership/src/lib.rs index 49756dda269a86543d0532ec07404781ec837aca..c98121711ad55d7e3504356af62b1e1b5539e6b6 100644 --- a/primitives/membership/src/lib.rs +++ b/primitives/membership/src/lib.rs @@ -22,8 +22,7 @@ pub mod traits; use codec::{Decode, Encode}; -use frame_support::pallet_prelude::RuntimeDebug; -use frame_support::pallet_prelude::Weight; +use frame_support::pallet_prelude::{RuntimeDebug, Weight}; use scale_info::TypeInfo; use serde::{Deserialize, Serialize}; diff --git a/resources/metadata.scale b/resources/metadata.scale index 0cdfcfc4f20071529a02e98e786e01241549b1b8..a7d62dcf1ef7c1b04ff72729a9f83eb8693d861a 100644 Binary files a/resources/metadata.scale and b/resources/metadata.scale differ diff --git a/resources/weight_analyzer/src/lib.rs b/resources/weight_analyzer/src/lib.rs index 83a43093c3e2225f951fb94d3a5a02a6b6f4e787..4f0682466744c85d5b02931d7045c42e9444870e 100644 --- a/resources/weight_analyzer/src/lib.rs +++ b/resources/weight_analyzer/src/lib.rs @@ -1,15 +1,16 @@ use convert_case::{Case, Casing}; use glob::glob; use serde::Serialize; -use std::collections::HashMap; -use std::ops::Div; -use std::path::Path; -use subweight_core::parse::overhead::Weight; -use subweight_core::parse::pallet::ChromaticExtrinsic; -use subweight_core::parse::pallet::ComponentRange; -use subweight_core::parse::storage::Weights; -use subweight_core::scope::Scope; -use subweight_core::term::Term; +use std::{collections::HashMap, ops::Div, path::Path}; +use subweight_core::{ + parse::{ + overhead::Weight, + pallet::{ChromaticExtrinsic, ComponentRange}, + storage::Weights, + }, + scope::Scope, + term::Term, +}; // Substrate default maximum weight of a block in nanoseconds. // Since the maximum block weight is one-third of the execution time, @@ -171,8 +172,7 @@ fn process( #[cfg(test)] mod tests { - use crate::analyze_weight; - use crate::MaxBlockWeight; + use crate::{analyze_weight, MaxBlockWeight}; use std::path::Path; #[test] fn should_works() { diff --git a/runtime/common/src/apis.rs b/runtime/common/src/apis.rs index 8872063fa79f057c88b64156db22bfebc870edb2..7347a6ab6d73d1340838de421925ea33e69c3e36 100644 --- a/runtime/common/src/apis.rs +++ b/runtime/common/src/apis.rs @@ -221,12 +221,16 @@ macro_rules! runtime_apis { } } impl sp_genesis_builder::GenesisBuilder<Block> for Runtime { - fn create_default_config() -> Vec<u8> { - frame_support::genesis_builder_helper::create_default_config::<RuntimeGenesisConfig>() + fn build_state(config: Vec<u8>) -> sp_genesis_builder::Result { + frame_support::genesis_builder_helper::build_state::<RuntimeGenesisConfig>(config) } - fn build_config(config: Vec<u8>) -> sp_genesis_builder::Result { - frame_support::genesis_builder_helper::build_config::<RuntimeGenesisConfig>(config) + fn get_preset(id: &Option<sp_genesis_builder::PresetId>) -> Option<Vec<u8>> { + frame_support::genesis_builder_helper::get_preset::<RuntimeGenesisConfig>(id, |_| None) + } + + fn preset_names() -> Vec<sp_genesis_builder::PresetId> { + vec![] } } diff --git a/runtime/common/src/handlers.rs b/runtime/common/src/handlers.rs index c12f6d3d5759e12bf465168263a0bb16a5c47973..e8518fd1c94b721e336a8332c32d2bb64654c32c 100644 --- a/runtime/common/src/handlers.rs +++ b/runtime/common/src/handlers.rs @@ -14,10 +14,8 @@ // You should have received a copy of the GNU Affero General Public License // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. -use super::entities::*; -use super::{AccountId, IdtyIndex}; -use frame_support::pallet_prelude::Weight; -use frame_support::traits::UnfilteredDispatchable; +use super::{entities::*, AccountId, IdtyIndex}; +use frame_support::{pallet_prelude::Weight, traits::UnfilteredDispatchable}; use pallet_smith_members::SmithRemovalReason; /// OnNewSession handler for the runtime calling all the implementation diff --git a/runtime/common/src/pallets_config.rs b/runtime/common/src/pallets_config.rs index 6cbe9d6e9dd48c9f6a88a13e9bb6b5080b3b7c70..4537936a837263ab2daa3c9734f4f6c245201cad 100644 --- a/runtime/common/src/pallets_config.rs +++ b/runtime/common/src/pallets_config.rs @@ -108,7 +108,7 @@ macro_rules! pallets_config { type RuntimeEvent = RuntimeEvent; type WeightInfo = common_runtime::weights::pallet_duniter_account::WeightInfo<Runtime>; // does currency adapter in any case, but adds "refund with quota" feature - type InnerOnChargeTransaction = CurrencyAdapter<Balances, HandleFees>; + type InnerOnChargeTransaction = FungibleAdapter<Balances, HandleFees>; type Refund = Quota; } @@ -165,43 +165,27 @@ type MaxNominators = MaxNominators; // MONEY MANAGEMENT // impl pallet_balances::Config for Runtime { -type RuntimeHoldReason = (); -type RuntimeFreezeReason = (); + type RuntimeHoldReason = RuntimeHoldReason; + type RuntimeFreezeReason = (); type RuntimeEvent = RuntimeEvent; type MaxLocks = MaxLocks; type MaxReserves = frame_support::pallet_prelude::ConstU32<5>; type ReserveIdentifier = [u8; 8]; - /// The type for recording an account's balance. type Balance = Balance; - type DustRemoval = HandleDust; + type DustRemoval = HandleFees; type ExistentialDeposit = ExistentialDeposit; type AccountStore = Account; - type FreezeIdentifier = (); - type MaxFreezes = frame_support::pallet_prelude::ConstU32<0>; + type FreezeIdentifier = (); + type MaxFreezes = frame_support::pallet_prelude::ConstU32<0>; type WeightInfo = common_runtime::weights::pallet_balances::WeightInfo<Runtime>; } - // Take Dust from Balances and put it in the Treasury pot - pub struct HandleDust; type CreditOf = frame_support::traits::tokens::fungible::Credit<AccountId, Balances>; - impl frame_support::traits::OnUnbalanced<CreditOf> for HandleDust { - fn on_nonzero_unbalanced(amount: CreditOf) { - use frame_support::traits::Currency as _; - use frame_support::traits::Imbalance as _; - let imbalance = NegativeImbalance::new(amount.peek()); - Balances::resolve_creating(&Treasury::account_id(), imbalance); - } - } - - // fees are moved to the treasury pub struct HandleFees; - type NegativeImbalance = <Balances as frame_support::traits::Currency<AccountId>>::NegativeImbalance; - impl frame_support::traits::OnUnbalanced<NegativeImbalance> for HandleFees { - fn on_nonzero_unbalanced(amount: NegativeImbalance) { - use frame_support::traits::Currency as _; - + impl frame_support::traits::OnUnbalanced<CreditOf> for HandleFees { + fn on_nonzero_unbalanced(amount: CreditOf) { // fee is moved to treasury - Balances::resolve_creating(&Treasury::account_id(), amount); + let _ = Balances::deposit(&Treasury::account_id(), amount.peek(), frame_support::traits::tokens::Precision::Exact); // should move the tip to author // if let Some(author) = Authorship::author() { // Balances::resolve_creating(&author, amount); @@ -349,7 +333,7 @@ type RuntimeFreezeReason = (); type MaxRequests = frame_support::traits::ConstU32<100>; type RequestPrice = frame_support::traits::ConstU64<2_000>; type OnFilledRandomness = (); - type OnUnbalanced = Treasury; + type OnUnbalanced = HandleFees; type ParentBlockRandomness = pallet_babe::ParentBlockRandomness<Self>; type RandomnessFromOneEpochAgo = pallet_babe::RandomnessFromOneEpochAgo<Self>; type WeightInfo = common_runtime::weights::pallet_provide_randomness::WeightInfo<Runtime>; @@ -534,6 +518,7 @@ type RuntimeFreezeReason = (); type EvaluationPrice = frame_support::traits::ConstU64<1000>; type MaxRefereeDistance = frame_support::traits::ConstU32<5>; type MinAccessibleReferees = MinAccessibleReferees; + type RuntimeHoldReason = RuntimeHoldReason; type RuntimeEvent = RuntimeEvent; type WeightInfo = common_runtime::weights::pallet_distance::WeightInfo<Runtime>; type OnValidDistanceStatus = Wot; diff --git a/runtime/common/src/weights/block_weights.rs b/runtime/common/src/weights/block_weights.rs index ee4cfad0daf12cc4f787196923911c450bc81cef..a1d29d9a559d73dd474ac8f5080f28def5230f07 100644 --- a/runtime/common/src/weights/block_weights.rs +++ b/runtime/common/src/weights/block_weights.rs @@ -1,6 +1,6 @@ //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21 (Y/M/D) +//! DATE: 2024-05-13 (Y/M/D) //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! //! SHORT-NAME: `block`, LONG-NAME: `BlockExecution`, RUNTIME: `Ğdev Local Testnet` @@ -26,17 +26,17 @@ parameter_types! { /// Calculated by multiplying the *Average* with `1.0` and adding `0`. /// /// Stats nanoseconds: - /// Min, Max: 126_723, 340_033 - /// Average: 138_291 - /// Median: 135_462 - /// Std-Dev: 20991.25 + /// Min, Max: 124_012, 323_353 + /// Average: 133_143 + /// Median: 128_528 + /// Std-Dev: 20423.87 /// /// Percentiles nanoseconds: - /// 99th: 161_532 - /// 95th: 149_812 - /// 75th: 137_000 + /// 99th: 174_283 + /// 95th: 146_055 + /// 75th: 132_728 pub const BlockExecutionWeight: Weight = - Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(138_291), 0); + Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(133_143), 0); } #[cfg(test)] diff --git a/runtime/common/src/weights/extrinsic_weights.rs b/runtime/common/src/weights/extrinsic_weights.rs index 631849433b302c6b831dfd2369fa3728281fb5ae..252aa7bcc3db12b480a2db853474b72937ee35aa 100644 --- a/runtime/common/src/weights/extrinsic_weights.rs +++ b/runtime/common/src/weights/extrinsic_weights.rs @@ -1,6 +1,6 @@ //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21 (Y/M/D) +//! DATE: 2024-05-13 (Y/M/D) //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! //! SHORT-NAME: `extrinsic`, LONG-NAME: `ExtrinsicBase`, RUNTIME: `Ğdev Local Testnet` @@ -26,17 +26,17 @@ parameter_types! { /// Calculated by multiplying the *Average* with `1.0` and adding `0`. /// /// Stats nanoseconds: - /// Min, Max: 71_060, 75_485 - /// Average: 72_432 - /// Median: 71_656 - /// Std-Dev: 1217.92 + /// Min, Max: 70_730, 71_335 + /// Average: 70_896 + /// Median: 70_881 + /// Std-Dev: 92.55 /// /// Percentiles nanoseconds: - /// 99th: 75_102 - /// 95th: 74_635 - /// 75th: 73_416 + /// 99th: 71_139 + /// 95th: 71_044 + /// 75th: 70_948 pub const ExtrinsicBaseWeight: Weight = - Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(72_432), 0); + Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(70_896), 0); } #[cfg(test)] diff --git a/runtime/common/src/weights/frame_benchmarking_baseline.rs b/runtime/common/src/weights/frame_benchmarking_baseline.rs index c6d609287b2b93e87b8c26bc98201dcf7344b5bf..a64d72edc05cb9b8b101e0b3a7d20534ef735b44 100644 --- a/runtime/common/src/weights/frame_benchmarking_baseline.rs +++ b/runtime/common/src/weights/frame_benchmarking_baseline.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `frame_benchmarking::baseline` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -52,8 +52,8 @@ impl<T: frame_system::Config> frame_benchmarking::baseline::WeightInfo for Weigh // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 128_000 picoseconds. - Weight::from_parts(170_681, 0) + // Minimum execution time: 78_000 picoseconds. + Weight::from_parts(91_433, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `i` is `[0, 1000000]`. @@ -61,8 +61,8 @@ impl<T: frame_system::Config> frame_benchmarking::baseline::WeightInfo for Weigh // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 127_000 picoseconds. - Weight::from_parts(170_276, 0) + // Minimum execution time: 79_000 picoseconds. + Weight::from_parts(91_582, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `i` is `[0, 1000000]`. @@ -70,8 +70,8 @@ impl<T: frame_system::Config> frame_benchmarking::baseline::WeightInfo for Weigh // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 128_000 picoseconds. - Weight::from_parts(178_263, 0) + // Minimum execution time: 79_000 picoseconds. + Weight::from_parts(102_823, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `i` is `[0, 1000000]`. @@ -79,16 +79,16 @@ impl<T: frame_system::Config> frame_benchmarking::baseline::WeightInfo for Weigh // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 125_000 picoseconds. - Weight::from_parts(166_986, 0) + // Minimum execution time: 78_000 picoseconds. + Weight::from_parts(93_569, 0) .saturating_add(Weight::from_parts(0, 0)) } fn hashing() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 19_506_228_000 picoseconds. - Weight::from_parts(19_626_469_000, 0) + // Minimum execution time: 19_590_146_000 picoseconds. + Weight::from_parts(19_655_687_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `i` is `[0, 100]`. @@ -96,10 +96,10 @@ impl<T: frame_system::Config> frame_benchmarking::baseline::WeightInfo for Weigh // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 140_000 picoseconds. - Weight::from_parts(31_329_942, 0) + // Minimum execution time: 82_000 picoseconds. + Weight::from_parts(27_963_495, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 20_080 - .saturating_add(Weight::from_parts(30_655_727, 0).saturating_mul(i.into())) + // Standard Error: 12_306 + .saturating_add(Weight::from_parts(31_412_930, 0).saturating_mul(i.into())) } } diff --git a/runtime/common/src/weights/frame_system.rs b/runtime/common/src/weights/frame_system.rs index a2109ba71c6a52a4ce42228c8c3c9dc939e8f42b..898c8d46d7de805482ffadf820763015010906f2 100644 --- a/runtime/common/src/weights/frame_system.rs +++ b/runtime/common/src/weights/frame_system.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `frame_system` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -52,8 +52,8 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_473_000 picoseconds. - Weight::from_parts(917_713, 0) + // Minimum execution time: 1_419_000 picoseconds. + Weight::from_parts(1_498_000, 0) .saturating_add(Weight::from_parts(0, 0)) // Standard Error: 0 .saturating_add(Weight::from_parts(256, 0).saturating_mul(b.into())) @@ -63,11 +63,11 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_862_000 picoseconds. - Weight::from_parts(4_227_000, 0) + // Minimum execution time: 4_020_000 picoseconds. + Weight::from_parts(4_121_000, 0) .saturating_add(Weight::from_parts(0, 0)) // Standard Error: 0 - .saturating_add(Weight::from_parts(1_024, 0).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(1_075, 0).saturating_mul(b.into())) } /// Storage: `System::Digest` (r:1 w:1) /// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -77,8 +77,8 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0` // Estimated: `1485` - // Minimum execution time: 2_484_000 picoseconds. - Weight::from_parts(2_801_000, 0) + // Minimum execution time: 2_492_000 picoseconds. + Weight::from_parts(2_799_000, 0) .saturating_add(Weight::from_parts(0, 1485)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) @@ -91,8 +91,8 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0` // Estimated: `1485` - // Minimum execution time: 78_898_045_000 picoseconds. - Weight::from_parts(79_899_040_000, 0) + // Minimum execution time: 63_133_954_000 picoseconds. + Weight::from_parts(63_864_391_000, 0) .saturating_add(Weight::from_parts(0, 1485)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) @@ -104,11 +104,11 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_568_000 picoseconds. - Weight::from_parts(1_671_000, 0) + // Minimum execution time: 1_449_000 picoseconds. + Weight::from_parts(1_579_000, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 744 - .saturating_add(Weight::from_parts(617_916, 0).saturating_mul(i.into())) + // Standard Error: 559 + .saturating_add(Weight::from_parts(556_169, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) } /// Storage: `Skipped::Metadata` (r:0 w:0) @@ -118,11 +118,11 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_525_000 picoseconds. - Weight::from_parts(1_612_000, 0) + // Minimum execution time: 1_433_000 picoseconds. + Weight::from_parts(1_567_000, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 675 - .saturating_add(Weight::from_parts(462_508, 0).saturating_mul(i.into())) + // Standard Error: 663 + .saturating_add(Weight::from_parts(431_131, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) } /// Storage: `Skipped::Metadata` (r:0 w:0) @@ -132,11 +132,11 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `77 + p * (69 ±0)` // Estimated: `76 + p * (70 ±0)` - // Minimum execution time: 2_822_000 picoseconds. - Weight::from_parts(2_916_000, 0) + // Minimum execution time: 2_623_000 picoseconds. + Weight::from_parts(2_777_000, 0) .saturating_add(Weight::from_parts(0, 76)) - // Standard Error: 976 - .saturating_add(Weight::from_parts(916_456, 0).saturating_mul(p.into())) + // Standard Error: 880 + .saturating_add(Weight::from_parts(884_981, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into())) @@ -147,8 +147,8 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 9_656_000 picoseconds. - Weight::from_parts(11_608_000, 0) + // Minimum execution time: 8_355_000 picoseconds. + Weight::from_parts(9_636_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -162,8 +162,8 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `22` // Estimated: `1518` - // Minimum execution time: 82_977_884_000 picoseconds. - Weight::from_parts(83_566_102_000, 0) + // Minimum execution time: 67_748_762_000 picoseconds. + Weight::from_parts(68_751_848_000, 0) .saturating_add(Weight::from_parts(0, 1518)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(3)) diff --git a/runtime/common/src/weights/pallet_authority_members.rs b/runtime/common/src/weights/pallet_authority_members.rs index 2810089d1d2cdc2bd4a447d44d12573e69acd6c0..55a182c4a81727c921ed1f801d5f90790cfe16fa 100644 --- a/runtime/common/src/weights/pallet_authority_members.rs +++ b/runtime/common/src/weights/pallet_authority_members.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_authority_members` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -63,8 +63,8 @@ impl<T: frame_system::Config> pallet_authority_members::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `750` // Estimated: `4215` - // Minimum execution time: 18_344_000 picoseconds. - Weight::from_parts(18_991_000, 0) + // Minimum execution time: 19_493_000 picoseconds. + Weight::from_parts(20_030_000, 0) .saturating_add(Weight::from_parts(0, 4215)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(1)) @@ -89,8 +89,8 @@ impl<T: frame_system::Config> pallet_authority_members::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `1141` // Estimated: `4606` - // Minimum execution time: 25_598_000 picoseconds. - Weight::from_parts(26_722_000, 0) + // Minimum execution time: 25_348_000 picoseconds. + Weight::from_parts(26_404_000, 0) .saturating_add(Weight::from_parts(0, 4606)) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(1)) @@ -111,8 +111,8 @@ impl<T: frame_system::Config> pallet_authority_members::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `1511` // Estimated: `12401` - // Minimum execution time: 33_668_000 picoseconds. - Weight::from_parts(34_365_000, 0) + // Minimum execution time: 32_606_000 picoseconds. + Weight::from_parts(34_374_000, 0) .saturating_add(Weight::from_parts(0, 12401)) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(2)) @@ -135,8 +135,8 @@ impl<T: frame_system::Config> pallet_authority_members::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `716` // Estimated: `4181` - // Minimum execution time: 33_290_000 picoseconds. - Weight::from_parts(34_731_000, 0) + // Minimum execution time: 31_528_000 picoseconds. + Weight::from_parts(32_724_000, 0) .saturating_add(Weight::from_parts(0, 4181)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(10)) @@ -147,8 +147,8 @@ impl<T: frame_system::Config> pallet_authority_members::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `199` // Estimated: `1684` - // Minimum execution time: 7_144_000 picoseconds. - Weight::from_parts(7_414_000, 0) + // Minimum execution time: 6_678_000 picoseconds. + Weight::from_parts(7_152_000, 0) .saturating_add(Weight::from_parts(0, 1684)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) diff --git a/runtime/common/src/weights/pallet_balances.rs b/runtime/common/src/weights/pallet_balances.rs index 963c1cb77504f40835545e5a09dd06045bc4e254..839334501d2f38fa4d5e8194f93a290f2a637b2a 100644 --- a/runtime/common/src/weights/pallet_balances.rs +++ b/runtime/common/src/weights/pallet_balances.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_balances` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `63` // Estimated: `6126` - // Minimum execution time: 42_980_000 picoseconds. - Weight::from_parts(44_396_000, 0) + // Minimum execution time: 41_565_000 picoseconds. + Weight::from_parts(42_593_000, 0) .saturating_add(Weight::from_parts(0, 6126)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -65,8 +65,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3558` - // Minimum execution time: 28_973_000 picoseconds. - Weight::from_parts(29_569_000, 0) + // Minimum execution time: 27_790_000 picoseconds. + Weight::from_parts(29_817_000, 0) .saturating_add(Weight::from_parts(0, 3558)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -77,8 +77,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `100` // Estimated: `3558` - // Minimum execution time: 10_025_000 picoseconds. - Weight::from_parts(10_402_000, 0) + // Minimum execution time: 9_821_000 picoseconds. + Weight::from_parts(10_305_000, 0) .saturating_add(Weight::from_parts(0, 3558)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -89,8 +89,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `100` // Estimated: `3558` - // Minimum execution time: 14_088_000 picoseconds. - Weight::from_parts(14_787_000, 0) + // Minimum execution time: 12_978_000 picoseconds. + Weight::from_parts(13_582_000, 0) .saturating_add(Weight::from_parts(0, 3558)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -101,8 +101,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `126` // Estimated: `8694` - // Minimum execution time: 42_691_000 picoseconds. - Weight::from_parts(43_743_000, 0) + // Minimum execution time: 42_747_000 picoseconds. + Weight::from_parts(44_051_000, 0) .saturating_add(Weight::from_parts(0, 8694)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -113,8 +113,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3558` - // Minimum execution time: 34_242_000 picoseconds. - Weight::from_parts(34_876_000, 0) + // Minimum execution time: 34_844_000 picoseconds. + Weight::from_parts(35_230_000, 0) .saturating_add(Weight::from_parts(0, 3558)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -125,8 +125,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `100` // Estimated: `3558` - // Minimum execution time: 12_247_000 picoseconds. - Weight::from_parts(12_864_000, 0) + // Minimum execution time: 11_831_000 picoseconds. + Weight::from_parts(12_229_000, 0) .saturating_add(Weight::from_parts(0, 3558)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -135,8 +135,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_323_000 picoseconds. - Weight::from_parts(4_809_000, 0) + // Minimum execution time: 4_144_000 picoseconds. + Weight::from_parts(4_464_000, 0) .saturating_add(Weight::from_parts(0, 0)) } } diff --git a/runtime/common/src/weights/pallet_certification.rs b/runtime/common/src/weights/pallet_certification.rs index cc008e2c1943ad628f61bf6385395a3ebd40ee78..580c622e971e3d44ddb57118f9759bff4d56399b 100644 --- a/runtime/common/src/weights/pallet_certification.rs +++ b/runtime/common/src/weights/pallet_certification.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_certification` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -29,7 +29,7 @@ // --chain=dev // --steps=50 // --repeat=20 -// --pallet=pallet-certification +// --pallet=* // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 @@ -63,8 +63,8 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T> // Proof Size summary in bytes: // Measured: `956` // Estimated: `6896` - // Minimum execution time: 30_521_000 picoseconds. - Weight::from_parts(31_388_000, 0) + // Minimum execution time: 30_971_000 picoseconds. + Weight::from_parts(32_188_000, 0) .saturating_add(Weight::from_parts(0, 6896)) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(4)) @@ -85,8 +85,8 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T> // Proof Size summary in bytes: // Measured: `980` // Estimated: `6920` - // Minimum execution time: 28_768_000 picoseconds. - Weight::from_parts(29_974_000, 0) + // Minimum execution time: 29_235_000 picoseconds. + Weight::from_parts(30_293_000, 0) .saturating_add(Weight::from_parts(0, 6920)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(3)) @@ -101,8 +101,8 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T> // Proof Size summary in bytes: // Measured: `444` // Estimated: `6384` - // Minimum execution time: 17_405_000 picoseconds. - Weight::from_parts(23_829_000, 0) + // Minimum execution time: 15_655_000 picoseconds. + Weight::from_parts(16_665_000, 0) .saturating_add(Weight::from_parts(0, 6384)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) @@ -120,11 +120,11 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T> // Proof Size summary in bytes: // Measured: `546 + i * (35 ±0)` // Estimated: `4017 + i * (2511 ±0)` - // Minimum execution time: 24_543_000 picoseconds. - Weight::from_parts(24_900_000, 0) + // Minimum execution time: 24_107_000 picoseconds. + Weight::from_parts(24_630_000, 0) .saturating_add(Weight::from_parts(0, 4017)) - // Standard Error: 50_900 - .saturating_add(Weight::from_parts(9_036_718, 0).saturating_mul(i.into())) + // Standard Error: 22_328 + .saturating_add(Weight::from_parts(8_359_989, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(i.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -137,8 +137,8 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T> // Proof Size summary in bytes: // Measured: `139` // Estimated: `3604` - // Minimum execution time: 2_295_000 picoseconds. - Weight::from_parts(2_512_000, 0) + // Minimum execution time: 2_464_000 picoseconds. + Weight::from_parts(2_697_000, 0) .saturating_add(Weight::from_parts(0, 3604)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -148,8 +148,8 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T> // Proof Size summary in bytes: // Measured: `237` // Estimated: `3702` - // Minimum execution time: 3_435_000 picoseconds. - Weight::from_parts(3_720_000, 0) + // Minimum execution time: 3_424_000 picoseconds. + Weight::from_parts(3_805_000, 0) .saturating_add(Weight::from_parts(0, 3702)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -166,8 +166,8 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T> // Proof Size summary in bytes: // Measured: `660` // Estimated: `6600` - // Minimum execution time: 19_827_000 picoseconds. - Weight::from_parts(20_470_000, 0) + // Minimum execution time: 19_445_000 picoseconds. + Weight::from_parts(20_341_000, 0) .saturating_add(Weight::from_parts(0, 6600)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) diff --git a/runtime/common/src/weights/pallet_collective.rs b/runtime/common/src/weights/pallet_collective.rs index f731a1c4bee6ef158d9b27c266b67462f1afc0b6..bdb723e56b1f8d737890013b3e15fdb181a5bfef 100644 --- a/runtime/common/src/weights/pallet_collective.rs +++ b/runtime/common/src/weights/pallet_collective.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_collective` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -62,13 +62,13 @@ impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0 + m * (672 ±0) + p * (3191 ±0)` // Estimated: `10019 + m * (416 ±4) + p * (4183 ±23)` - // Minimum execution time: 10_666_000 picoseconds. - Weight::from_parts(11_300_000, 0) + // Minimum execution time: 10_752_000 picoseconds. + Weight::from_parts(10_889_000, 0) .saturating_add(Weight::from_parts(0, 10019)) - // Standard Error: 9_547 - .saturating_add(Weight::from_parts(737_609, 0).saturating_mul(m.into())) - // Standard Error: 47_194 - .saturating_add(Weight::from_parts(6_099_071, 0).saturating_mul(p.into())) + // Standard Error: 9_186 + .saturating_add(Weight::from_parts(692_252, 0).saturating_mul(m.into())) + // Standard Error: 45_413 + .saturating_add(Weight::from_parts(6_020_530, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into()))) .saturating_add(T::DbWeight::get().writes(2)) @@ -84,13 +84,13 @@ impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `32 + m * (32 ±0)` // Estimated: `1518 + m * (32 ±0)` - // Minimum execution time: 9_565_000 picoseconds. - Weight::from_parts(9_210_863, 0) + // Minimum execution time: 9_225_000 picoseconds. + Weight::from_parts(9_016_861, 0) .saturating_add(Weight::from_parts(0, 1518)) - // Standard Error: 35 - .saturating_add(Weight::from_parts(1_251, 0).saturating_mul(b.into())) - // Standard Error: 363 - .saturating_add(Weight::from_parts(11_557, 0).saturating_mul(m.into())) + // Standard Error: 28 + .saturating_add(Weight::from_parts(1_184, 0).saturating_mul(b.into())) + // Standard Error: 289 + .saturating_add(Weight::from_parts(10_540, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) } @@ -104,13 +104,13 @@ impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `32 + m * (32 ±0)` // Estimated: `3498 + m * (32 ±0)` - // Minimum execution time: 11_508_000 picoseconds. - Weight::from_parts(11_006_990, 0) + // Minimum execution time: 10_827_000 picoseconds. + Weight::from_parts(10_744_142, 0) .saturating_add(Weight::from_parts(0, 3498)) - // Standard Error: 35 - .saturating_add(Weight::from_parts(1_415, 0).saturating_mul(b.into())) - // Standard Error: 369 - .saturating_add(Weight::from_parts(20_563, 0).saturating_mul(m.into())) + // Standard Error: 36 + .saturating_add(Weight::from_parts(1_257, 0).saturating_mul(b.into())) + // Standard Error: 378 + .saturating_add(Weight::from_parts(17_916, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) } @@ -131,15 +131,15 @@ impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `24 + m * (32 ±0) + p * (55 ±0)` // Estimated: `3461 + m * (32 ±0) + p * (54 ±0)` - // Minimum execution time: 16_681_000 picoseconds. - Weight::from_parts(15_339_504, 0) + // Minimum execution time: 16_098_000 picoseconds. + Weight::from_parts(15_641_556, 0) .saturating_add(Weight::from_parts(0, 3461)) - // Standard Error: 63 - .saturating_add(Weight::from_parts(2_375, 0).saturating_mul(b.into())) - // Standard Error: 667 - .saturating_add(Weight::from_parts(18_004, 0).saturating_mul(m.into())) - // Standard Error: 3_333 - .saturating_add(Weight::from_parts(268_469, 0).saturating_mul(p.into())) + // Standard Error: 60 + .saturating_add(Weight::from_parts(2_167, 0).saturating_mul(b.into())) + // Standard Error: 633 + .saturating_add(Weight::from_parts(14_798, 0).saturating_mul(m.into())) + // Standard Error: 3_162 + .saturating_add(Weight::from_parts(240_622, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) @@ -154,11 +154,11 @@ impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `573 + m * (64 ±0)` // Estimated: `4037 + m * (64 ±0)` - // Minimum execution time: 14_534_000 picoseconds. - Weight::from_parts(15_664_016, 0) + // Minimum execution time: 14_164_000 picoseconds. + Weight::from_parts(15_244_842, 0) .saturating_add(Weight::from_parts(0, 4037)) - // Standard Error: 1_352 - .saturating_add(Weight::from_parts(37_559, 0).saturating_mul(m.into())) + // Standard Error: 599 + .saturating_add(Weight::from_parts(32_813, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into())) @@ -177,13 +177,13 @@ impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `117 + m * (64 ±0) + p * (55 ±0)` // Estimated: `3591 + m * (64 ±0) + p * (55 ±0)` - // Minimum execution time: 18_535_000 picoseconds. - Weight::from_parts(16_761_519, 0) + // Minimum execution time: 18_522_000 picoseconds. + Weight::from_parts(17_152_627, 0) .saturating_add(Weight::from_parts(0, 3591)) - // Standard Error: 1_509 - .saturating_add(Weight::from_parts(32_769, 0).saturating_mul(m.into())) - // Standard Error: 7_455 - .saturating_add(Weight::from_parts(262_217, 0).saturating_mul(p.into())) + // Standard Error: 516 + .saturating_add(Weight::from_parts(29_607, 0).saturating_mul(m.into())) + // Standard Error: 2_549 + .saturating_add(Weight::from_parts(211_764, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into())) @@ -204,15 +204,15 @@ impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `62 + b * (1 ±0) + m * (64 ±0) + p * (78 ±0)` // Estimated: `3619 + b * (1 ±0) + m * (63 ±0) + p * (74 ±0)` - // Minimum execution time: 26_666_000 picoseconds. - Weight::from_parts(24_644_989, 0) + // Minimum execution time: 26_712_000 picoseconds. + Weight::from_parts(25_076_930, 0) .saturating_add(Weight::from_parts(0, 3619)) - // Standard Error: 105 - .saturating_add(Weight::from_parts(2_406, 0).saturating_mul(b.into())) - // Standard Error: 1_119 - .saturating_add(Weight::from_parts(21_985, 0).saturating_mul(m.into())) - // Standard Error: 5_522 - .saturating_add(Weight::from_parts(351_753, 0).saturating_mul(p.into())) + // Standard Error: 82 + .saturating_add(Weight::from_parts(1_994, 0).saturating_mul(b.into())) + // Standard Error: 873 + .saturating_add(Weight::from_parts(18_412, 0).saturating_mul(m.into())) + // Standard Error: 4_310 + .saturating_add(Weight::from_parts(313_327, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into())) @@ -235,13 +235,13 @@ impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `137 + m * (64 ±0) + p * (55 ±0)` // Estimated: `3611 + m * (64 ±0) + p * (55 ±0)` - // Minimum execution time: 20_714_000 picoseconds. - Weight::from_parts(19_521_589, 0) + // Minimum execution time: 20_754_000 picoseconds. + Weight::from_parts(18_867_635, 0) .saturating_add(Weight::from_parts(0, 3611)) - // Standard Error: 737 - .saturating_add(Weight::from_parts(32_955, 0).saturating_mul(m.into())) - // Standard Error: 3_641 - .saturating_add(Weight::from_parts(236_515, 0).saturating_mul(p.into())) + // Standard Error: 545 + .saturating_add(Weight::from_parts(34_251, 0).saturating_mul(m.into())) + // Standard Error: 2_693 + .saturating_add(Weight::from_parts(232_282, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into())) @@ -264,15 +264,15 @@ impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `82 + b * (1 ±0) + m * (64 ±0) + p * (78 ±0)` // Estimated: `3639 + b * (1 ±0) + m * (63 ±0) + p * (74 ±0)` - // Minimum execution time: 28_525_000 picoseconds. - Weight::from_parts(27_206_822, 0) + // Minimum execution time: 27_752_000 picoseconds. + Weight::from_parts(26_500_438, 0) .saturating_add(Weight::from_parts(0, 3639)) - // Standard Error: 102 - .saturating_add(Weight::from_parts(1_886, 0).saturating_mul(b.into())) - // Standard Error: 1_079 - .saturating_add(Weight::from_parts(19_617, 0).saturating_mul(m.into())) - // Standard Error: 5_324 - .saturating_add(Weight::from_parts(340_854, 0).saturating_mul(p.into())) + // Standard Error: 85 + .saturating_add(Weight::from_parts(2_063, 0).saturating_mul(b.into())) + // Standard Error: 903 + .saturating_add(Weight::from_parts(17_377, 0).saturating_mul(m.into())) + // Standard Error: 4_454 + .saturating_add(Weight::from_parts(327_819, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into())) @@ -290,11 +290,11 @@ impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `189 + p * (32 ±0)` // Estimated: `1674 + p * (32 ±0)` - // Minimum execution time: 9_320_000 picoseconds. - Weight::from_parts(10_419_750, 0) + // Minimum execution time: 9_042_000 picoseconds. + Weight::from_parts(10_091_880, 0) .saturating_add(Weight::from_parts(0, 1674)) - // Standard Error: 1_981 - .saturating_add(Weight::from_parts(149_887, 0).saturating_mul(p.into())) + // Standard Error: 1_853 + .saturating_add(Weight::from_parts(159_967, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 32).saturating_mul(p.into())) diff --git a/runtime/common/src/weights/pallet_distance.rs b/runtime/common/src/weights/pallet_distance.rs index bba3802a09bab56d1dc8f6236c5f510e1b61632c..698e6ce40883b36cd56a33ba9e58335a00433fc5 100644 --- a/runtime/common/src/weights/pallet_distance.rs +++ b/runtime/common/src/weights/pallet_distance.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_distance` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -69,8 +69,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `1119` // Estimated: `4584` - // Minimum execution time: 41_315_000 picoseconds. - Weight::from_parts(42_958_000, 0) + // Minimum execution time: 40_210_000 picoseconds. + Weight::from_parts(42_313_000, 0) .saturating_add(Weight::from_parts(0, 4584)) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(3)) @@ -97,8 +97,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `1148` // Estimated: `7088` - // Minimum execution time: 44_462_000 picoseconds. - Weight::from_parts(45_605_000, 0) + // Minimum execution time: 43_404_000 picoseconds. + Weight::from_parts(44_672_000, 0) .saturating_add(Weight::from_parts(0, 7088)) .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().writes(3)) @@ -120,11 +120,11 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `402 + i * (10 ±0)` // Estimated: `1887 + i * (10 ±0)` - // Minimum execution time: 13_085_000 picoseconds. - Weight::from_parts(14_760_344, 0) + // Minimum execution time: 12_374_000 picoseconds. + Weight::from_parts(15_184_116, 0) .saturating_add(Weight::from_parts(0, 1887)) - // Standard Error: 180 - .saturating_add(Weight::from_parts(100_147, 0).saturating_mul(i.into())) + // Standard Error: 109 + .saturating_add(Weight::from_parts(99_165, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 10).saturating_mul(i.into())) @@ -138,11 +138,11 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `139 + i * (10 ±0)` // Estimated: `1624 + i * (10 ±0)` - // Minimum execution time: 5_330_000 picoseconds. - Weight::from_parts(7_271_959, 0) + // Minimum execution time: 5_098_000 picoseconds. + Weight::from_parts(6_634_188, 0) .saturating_add(Weight::from_parts(0, 1624)) - // Standard Error: 102 - .saturating_add(Weight::from_parts(99_424, 0).saturating_mul(i.into())) + // Standard Error: 72 + .saturating_add(Weight::from_parts(99_785, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(Weight::from_parts(0, 10).saturating_mul(i.into())) @@ -159,8 +159,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `609` // Estimated: `6549` - // Minimum execution time: 24_823_000 picoseconds. - Weight::from_parts(26_073_000, 0) + // Minimum execution time: 24_084_000 picoseconds. + Weight::from_parts(25_424_000, 0) .saturating_add(Weight::from_parts(0, 6549)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) @@ -169,8 +169,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 137_000 picoseconds. - Weight::from_parts(164_000, 0) + // Minimum execution time: 82_000 picoseconds. + Weight::from_parts(104_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `System::ParentHash` (r:1 w:0) @@ -195,8 +195,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `973` // Estimated: `6913` - // Minimum execution time: 42_713_000 picoseconds. - Weight::from_parts(44_349_000, 0) + // Minimum execution time: 41_435_000 picoseconds. + Weight::from_parts(43_480_000, 0) .saturating_add(Weight::from_parts(0, 6913)) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(7)) @@ -215,8 +215,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `364` // Estimated: `3829` - // Minimum execution time: 20_592_000 picoseconds. - Weight::from_parts(21_525_000, 0) + // Minimum execution time: 21_085_000 picoseconds. + Weight::from_parts(22_071_000, 0) .saturating_add(Weight::from_parts(0, 3829)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -231,8 +231,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `109` // Estimated: `1594` - // Minimum execution time: 2_502_000 picoseconds. - Weight::from_parts(2_774_000, 0) + // Minimum execution time: 2_403_000 picoseconds. + Weight::from_parts(2_646_000, 0) .saturating_add(Weight::from_parts(0, 1594)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -243,8 +243,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `133` // Estimated: `1618` - // Minimum execution time: 2_428_000 picoseconds. - Weight::from_parts(2_647_000, 0) + // Minimum execution time: 2_423_000 picoseconds. + Weight::from_parts(2_611_000, 0) .saturating_add(Weight::from_parts(0, 1618)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) diff --git a/runtime/common/src/weights/pallet_duniter_account.rs b/runtime/common/src/weights/pallet_duniter_account.rs index a6d9a48787d2476eaa6e74b13f7f11a5347fd724..d43be46c9300fcd2d173c5a806ee51da2ee86095 100644 --- a/runtime/common/src/weights/pallet_duniter_account.rs +++ b/runtime/common/src/weights/pallet_duniter_account.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_duniter_account` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl<T: frame_system::Config> pallet_duniter_account::WeightInfo for WeightInfo< // Proof Size summary in bytes: // Measured: `0` // Estimated: `3558` - // Minimum execution time: 3_090_000 picoseconds. - Weight::from_parts(3_296_000, 0) + // Minimum execution time: 2_950_000 picoseconds. + Weight::from_parts(3_302_000, 0) .saturating_add(Weight::from_parts(0, 3558)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) diff --git a/runtime/common/src/weights/pallet_identity.rs b/runtime/common/src/weights/pallet_identity.rs index 593de4c76c2bafbdbe802ba262923c990c1860bf..47bc27779ff43bc4c40b39ce40415a3b73558029 100644 --- a/runtime/common/src/weights/pallet_identity.rs +++ b/runtime/common/src/weights/pallet_identity.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_identity` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -29,7 +29,7 @@ // --chain=dev // --steps=50 // --repeat=20 -// --pallet=pallet-identity +// --pallet=* // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 @@ -73,8 +73,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `1022` // Estimated: `6962` - // Minimum execution time: 60_458_000 picoseconds. - Weight::from_parts(62_727_000, 0) + // Minimum execution time: 60_413_000 picoseconds. + Weight::from_parts(62_000_000, 0) .saturating_add(Weight::from_parts(0, 6962)) .saturating_add(T::DbWeight::get().reads(13)) .saturating_add(T::DbWeight::get().writes(12)) @@ -91,8 +91,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `698` // Estimated: `6638` - // Minimum execution time: 28_622_000 picoseconds. - Weight::from_parts(29_508_000, 0) + // Minimum execution time: 26_800_000 picoseconds. + Weight::from_parts(27_994_000, 0) .saturating_add(Weight::from_parts(0, 6638)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) @@ -109,8 +109,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `727` // Estimated: `6667` - // Minimum execution time: 73_352_000 picoseconds. - Weight::from_parts(75_459_000, 0) + // Minimum execution time: 74_390_000 picoseconds. + Weight::from_parts(75_575_000, 0) .saturating_add(Weight::from_parts(0, 6667)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(5)) @@ -129,8 +129,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `664` // Estimated: `6604` - // Minimum execution time: 63_115_000 picoseconds. - Weight::from_parts(64_603_000, 0) + // Minimum execution time: 63_320_000 picoseconds. + Weight::from_parts(65_355_000, 0) .saturating_add(Weight::from_parts(0, 6604)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) @@ -142,11 +142,11 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_664_000 picoseconds. - Weight::from_parts(3_883_000, 0) + // Minimum execution time: 3_521_000 picoseconds. + Weight::from_parts(3_726_000, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 863 - .saturating_add(Weight::from_parts(1_217_853, 0).saturating_mul(i.into())) + // Standard Error: 1_009 + .saturating_add(Weight::from_parts(1_167_883, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) } @@ -156,8 +156,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `104` // Estimated: `3558` - // Minimum execution time: 6_168_000 picoseconds. - Weight::from_parts(6_607_000, 0) + // Minimum execution time: 5_689_000 picoseconds. + Weight::from_parts(6_207_000, 0) .saturating_add(Weight::from_parts(0, 3558)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -172,8 +172,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `403` // Estimated: `3868` - // Minimum execution time: 49_185_000 picoseconds. - Weight::from_parts(50_359_000, 0) + // Minimum execution time: 51_045_000 picoseconds. + Weight::from_parts(52_911_000, 0) .saturating_add(Weight::from_parts(0, 3868)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) @@ -182,8 +182,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 120_000 picoseconds. - Weight::from_parts(135_000, 0) + // Minimum execution time: 86_000 picoseconds. + Weight::from_parts(92_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `Identity::Identities` (r:1 w:0) @@ -192,8 +192,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `302` // Estimated: `3767` - // Minimum execution time: 3_420_000 picoseconds. - Weight::from_parts(3_635_000, 0) + // Minimum execution time: 3_481_000 picoseconds. + Weight::from_parts(3_682_000, 0) .saturating_add(Weight::from_parts(0, 3767)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -231,8 +231,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `1555` // Estimated: `9970` - // Minimum execution time: 80_698_000 picoseconds. - Weight::from_parts(84_553_000, 0) + // Minimum execution time: 80_541_000 picoseconds. + Weight::from_parts(83_780_000, 0) .saturating_add(Weight::from_parts(0, 9970)) .saturating_add(T::DbWeight::get().reads(16)) .saturating_add(T::DbWeight::get().writes(20)) @@ -243,8 +243,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `302` // Estimated: `3767` - // Minimum execution time: 3_452_000 picoseconds. - Weight::from_parts(3_571_000, 0) + // Minimum execution time: 3_401_000 picoseconds. + Weight::from_parts(3_647_000, 0) .saturating_add(Weight::from_parts(0, 3767)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -288,8 +288,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `1990` // Estimated: `12880` - // Minimum execution time: 111_633_000 picoseconds. - Weight::from_parts(115_818_000, 0) + // Minimum execution time: 110_832_000 picoseconds. + Weight::from_parts(114_246_000, 0) .saturating_add(Weight::from_parts(0, 12880)) .saturating_add(T::DbWeight::get().reads(21)) .saturating_add(T::DbWeight::get().writes(26)) @@ -334,8 +334,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `1999` // Estimated: `12889` - // Minimum execution time: 108_432_000 picoseconds. - Weight::from_parts(113_373_000, 0) + // Minimum execution time: 106_765_000 picoseconds. + Weight::from_parts(113_444_000, 0) .saturating_add(Weight::from_parts(0, 12889)) .saturating_add(T::DbWeight::get().reads(22)) .saturating_add(T::DbWeight::get().writes(25)) @@ -348,8 +348,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `407` // Estimated: `6347` - // Minimum execution time: 13_935_000 picoseconds. - Weight::from_parts(14_601_000, 0) + // Minimum execution time: 13_367_000 picoseconds. + Weight::from_parts(13_900_000, 0) .saturating_add(Weight::from_parts(0, 6347)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -360,8 +360,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `157` // Estimated: `3622` - // Minimum execution time: 2_501_000 picoseconds. - Weight::from_parts(2_758_000, 0) + // Minimum execution time: 2_586_000 picoseconds. + Weight::from_parts(2_760_000, 0) .saturating_add(Weight::from_parts(0, 3622)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -373,8 +373,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `327` // Estimated: `3792` - // Minimum execution time: 5_740_000 picoseconds. - Weight::from_parts(6_198_000, 0) + // Minimum execution time: 5_582_000 picoseconds. + Weight::from_parts(6_138_000, 0) .saturating_add(Weight::from_parts(0, 3792)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -399,8 +399,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `851` // Estimated: `4316` - // Minimum execution time: 30_080_000 picoseconds. - Weight::from_parts(31_099_000, 0) + // Minimum execution time: 29_033_000 picoseconds. + Weight::from_parts(30_980_000, 0) .saturating_add(Weight::from_parts(0, 4316)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(7)) diff --git a/runtime/common/src/weights/pallet_im_online.rs b/runtime/common/src/weights/pallet_im_online.rs index 1323efa5bd82af1bdb787a33e1fa03713c868760..ce863fb2a89ffbe2dc3aed9272e3b2bdb84c1bd8 100644 --- a/runtime/common/src/weights/pallet_im_online.rs +++ b/runtime/common/src/weights/pallet_im_online.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_im_online` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -64,11 +64,11 @@ impl<T: frame_system::Config> pallet_im_online::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `603 + k * (32 ±0)` // Estimated: `33487 + k * (1761 ±0)` - // Minimum execution time: 50_649_000 picoseconds. - Weight::from_parts(71_173_084, 0) + // Minimum execution time: 51_245_000 picoseconds. + Weight::from_parts(65_147_264, 0) .saturating_add(Weight::from_parts(0, 33487)) - // Standard Error: 1_053 - .saturating_add(Weight::from_parts(52_697, 0).saturating_mul(k.into())) + // Standard Error: 668 + .saturating_add(Weight::from_parts(42_079, 0).saturating_mul(k.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(Weight::from_parts(0, 1761).saturating_mul(k.into())) diff --git a/runtime/common/src/weights/pallet_membership.rs b/runtime/common/src/weights/pallet_membership.rs index 4959cc20e7e31daa26b12636e59c131049157be9..e73cd744d0619855be89a2204832942bf95dfc5f 100644 --- a/runtime/common/src/weights/pallet_membership.rs +++ b/runtime/common/src/weights/pallet_membership.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_membership` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -51,8 +51,8 @@ impl<T: frame_system::Config> pallet_membership::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 139_000 picoseconds. - Weight::from_parts(166_000, 0) + // Minimum execution time: 81_000 picoseconds. + Weight::from_parts(102_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `Membership::MembershipsExpireOn` (r:2 w:2) @@ -88,11 +88,11 @@ impl<T: frame_system::Config> pallet_membership::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `138 + i * (804 ±0)` // Estimated: `9744 + i * (2687 ±0)` - // Minimum execution time: 4_076_000 picoseconds. - Weight::from_parts(10_534_642, 0) + // Minimum execution time: 4_020_000 picoseconds. + Weight::from_parts(10_625_923, 0) .saturating_add(Weight::from_parts(0, 9744)) - // Standard Error: 428_909 - .saturating_add(Weight::from_parts(62_035_985, 0).saturating_mul(i.into())) + // Standard Error: 438_932 + .saturating_add(Weight::from_parts(59_569_449, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().reads((10_u64).saturating_mul(i.into()))) .saturating_add(T::DbWeight::get().writes(3)) diff --git a/runtime/common/src/weights/pallet_multisig.rs b/runtime/common/src/weights/pallet_multisig.rs index 9fdbeccf6a17c1984194634d01dbb9d8fc998c6b..3a02f990754230a2a29ff26fe39b5c146230b582 100644 --- a/runtime/common/src/weights/pallet_multisig.rs +++ b/runtime/common/src/weights/pallet_multisig.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_multisig` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -52,11 +52,11 @@ impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_803_000 picoseconds. - Weight::from_parts(5_310_413, 0) + // Minimum execution time: 4_700_000 picoseconds. + Weight::from_parts(5_031_868, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 13 - .saturating_add(Weight::from_parts(334, 0).saturating_mul(z.into())) + // Standard Error: 1 + .saturating_add(Weight::from_parts(336, 0).saturating_mul(z.into())) } /// Storage: `Multisig::Multisigs` (r:1 w:1) /// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(457), added: 2932, mode: `MaxEncodedLen`) @@ -66,13 +66,13 @@ impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `125 + s * (5 ±0)` // Estimated: `3922` - // Minimum execution time: 22_307_000 picoseconds. - Weight::from_parts(23_308_259, 0) + // Minimum execution time: 22_870_000 picoseconds. + Weight::from_parts(22_165_477, 0) .saturating_add(Weight::from_parts(0, 3922)) - // Standard Error: 6_486 - .saturating_add(Weight::from_parts(44_886, 0).saturating_mul(s.into())) + // Standard Error: 5_814 + .saturating_add(Weight::from_parts(182_402, 0).saturating_mul(s.into())) // Standard Error: 5 - .saturating_add(Weight::from_parts(1_045, 0).saturating_mul(z.into())) + .saturating_add(Weight::from_parts(1_093, 0).saturating_mul(z.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -84,13 +84,13 @@ impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `240` // Estimated: `3922` - // Minimum execution time: 13_348_000 picoseconds. - Weight::from_parts(12_879_515, 0) + // Minimum execution time: 13_557_000 picoseconds. + Weight::from_parts(12_644_271, 0) .saturating_add(Weight::from_parts(0, 3922)) - // Standard Error: 5_192 - .saturating_add(Weight::from_parts(96_125, 0).saturating_mul(s.into())) + // Standard Error: 4_239 + .saturating_add(Weight::from_parts(139_896, 0).saturating_mul(s.into())) // Standard Error: 3 - .saturating_add(Weight::from_parts(1_071, 0).saturating_mul(z.into())) + .saturating_add(Weight::from_parts(1_080, 0).saturating_mul(z.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -104,13 +104,13 @@ impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `259 + s * (37 ±0)` // Estimated: `3922` - // Minimum execution time: 25_710_000 picoseconds. - Weight::from_parts(25_686_043, 0) + // Minimum execution time: 25_742_000 picoseconds. + Weight::from_parts(25_260_018, 0) .saturating_add(Weight::from_parts(0, 3922)) - // Standard Error: 7_969 - .saturating_add(Weight::from_parts(135_213, 0).saturating_mul(s.into())) - // Standard Error: 6 - .saturating_add(Weight::from_parts(1_063, 0).saturating_mul(z.into())) + // Standard Error: 5_601 + .saturating_add(Weight::from_parts(190_696, 0).saturating_mul(s.into())) + // Standard Error: 4 + .saturating_add(Weight::from_parts(1_084, 0).saturating_mul(z.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -121,11 +121,11 @@ impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `130 + s * (5 ±0)` // Estimated: `3922` - // Minimum execution time: 20_357_000 picoseconds. - Weight::from_parts(21_819_684, 0) + // Minimum execution time: 20_342_000 picoseconds. + Weight::from_parts(22_035_094, 0) .saturating_add(Weight::from_parts(0, 3922)) - // Standard Error: 7_534 - .saturating_add(Weight::from_parts(107_921, 0).saturating_mul(s.into())) + // Standard Error: 5_918 + .saturating_add(Weight::from_parts(100_249, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -136,11 +136,11 @@ impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `240` // Estimated: `3922` - // Minimum execution time: 11_277_000 picoseconds. - Weight::from_parts(12_307_137, 0) + // Minimum execution time: 11_121_000 picoseconds. + Weight::from_parts(12_140_243, 0) .saturating_add(Weight::from_parts(0, 3922)) - // Standard Error: 4_378 - .saturating_add(Weight::from_parts(81_587, 0).saturating_mul(s.into())) + // Standard Error: 3_270 + .saturating_add(Weight::from_parts(129_148, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -151,11 +151,11 @@ impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `328 + s * (5 ±0)` // Estimated: `3922` - // Minimum execution time: 21_623_000 picoseconds. - Weight::from_parts(22_886_022, 0) + // Minimum execution time: 21_577_000 picoseconds. + Weight::from_parts(22_824_830, 0) .saturating_add(Weight::from_parts(0, 3922)) - // Standard Error: 6_484 - .saturating_add(Weight::from_parts(141_019, 0).saturating_mul(s.into())) + // Standard Error: 5_043 + .saturating_add(Weight::from_parts(157_777, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/common/src/weights/pallet_oneshot_account.rs b/runtime/common/src/weights/pallet_oneshot_account.rs index 967646237adca3b9c4e7ec29c1ee5f33b11b5167..3511111633ffaa2346a1346e708d45c85de8a8cf 100644 --- a/runtime/common/src/weights/pallet_oneshot_account.rs +++ b/runtime/common/src/weights/pallet_oneshot_account.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_oneshot_account` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl<T: frame_system::Config> pallet_oneshot_account::WeightInfo for WeightInfo< // Proof Size summary in bytes: // Measured: `42` // Estimated: `3507` - // Minimum execution time: 15_328_000 picoseconds. - Weight::from_parts(15_960_000, 0) + // Minimum execution time: 14_969_000 picoseconds. + Weight::from_parts(15_431_000, 0) .saturating_add(Weight::from_parts(0, 3507)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -69,8 +69,8 @@ impl<T: frame_system::Config> pallet_oneshot_account::WeightInfo for WeightInfo< // Proof Size summary in bytes: // Measured: `241` // Estimated: `3706` - // Minimum execution time: 20_915_000 picoseconds. - Weight::from_parts(22_147_000, 0) + // Minimum execution time: 21_074_000 picoseconds. + Weight::from_parts(21_985_000, 0) .saturating_add(Weight::from_parts(0, 3706)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) @@ -85,8 +85,8 @@ impl<T: frame_system::Config> pallet_oneshot_account::WeightInfo for WeightInfo< // Proof Size summary in bytes: // Measured: `301` // Estimated: `6126` - // Minimum execution time: 29_505_000 picoseconds. - Weight::from_parts(30_279_000, 0) + // Minimum execution time: 29_007_000 picoseconds. + Weight::from_parts(30_502_000, 0) .saturating_add(Weight::from_parts(0, 6126)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) diff --git a/runtime/common/src/weights/pallet_preimage.rs b/runtime/common/src/weights/pallet_preimage.rs index 599620f548e295a511faa6786b7a7c8f18bf3cb8..3b548577f7913ec3177c0b75449de09d9893afa4 100644 --- a/runtime/common/src/weights/pallet_preimage.rs +++ b/runtime/common/src/weights/pallet_preimage.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_preimage` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -58,11 +58,11 @@ impl<T: frame_system::Config> pallet_preimage::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3548` - // Minimum execution time: 10_684_000 picoseconds. - Weight::from_parts(10_979_000, 0) + // Minimum execution time: 10_457_000 picoseconds. + Weight::from_parts(11_037_000, 0) .saturating_add(Weight::from_parts(0, 3548)) // Standard Error: 1 - .saturating_add(Weight::from_parts(1_294, 0).saturating_mul(s.into())) + .saturating_add(Weight::from_parts(1_322, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -77,11 +77,11 @@ impl<T: frame_system::Config> pallet_preimage::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `106` // Estimated: `3548` - // Minimum execution time: 12_918_000 picoseconds. - Weight::from_parts(13_124_000, 0) + // Minimum execution time: 12_718_000 picoseconds. + Weight::from_parts(13_125_000, 0) .saturating_add(Weight::from_parts(0, 3548)) // Standard Error: 1 - .saturating_add(Weight::from_parts(1_294, 0).saturating_mul(s.into())) + .saturating_add(Weight::from_parts(1_317, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -96,11 +96,11 @@ impl<T: frame_system::Config> pallet_preimage::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `106` // Estimated: `3548` - // Minimum execution time: 11_380_000 picoseconds. - Weight::from_parts(11_646_000, 0) + // Minimum execution time: 11_424_000 picoseconds. + Weight::from_parts(11_595_000, 0) .saturating_add(Weight::from_parts(0, 3548)) // Standard Error: 1 - .saturating_add(Weight::from_parts(1_294, 0).saturating_mul(s.into())) + .saturating_add(Weight::from_parts(1_402, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -114,8 +114,8 @@ impl<T: frame_system::Config> pallet_preimage::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `172` // Estimated: `3548` - // Minimum execution time: 23_181_000 picoseconds. - Weight::from_parts(24_693_000, 0) + // Minimum execution time: 21_436_000 picoseconds. + Weight::from_parts(23_457_000, 0) .saturating_add(Weight::from_parts(0, 3548)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -130,8 +130,8 @@ impl<T: frame_system::Config> pallet_preimage::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `144` // Estimated: `3548` - // Minimum execution time: 22_556_000 picoseconds. - Weight::from_parts(25_299_000, 0) + // Minimum execution time: 22_815_000 picoseconds. + Weight::from_parts(25_024_000, 0) .saturating_add(Weight::from_parts(0, 3548)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -144,8 +144,8 @@ impl<T: frame_system::Config> pallet_preimage::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `172` // Estimated: `3548` - // Minimum execution time: 20_271_000 picoseconds. - Weight::from_parts(22_202_000, 0) + // Minimum execution time: 20_222_000 picoseconds. + Weight::from_parts(22_476_000, 0) .saturating_add(Weight::from_parts(0, 3548)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -158,8 +158,8 @@ impl<T: frame_system::Config> pallet_preimage::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `144` // Estimated: `3548` - // Minimum execution time: 13_258_000 picoseconds. - Weight::from_parts(15_335_000, 0) + // Minimum execution time: 12_916_000 picoseconds. + Weight::from_parts(14_899_000, 0) .saturating_add(Weight::from_parts(0, 3548)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -172,8 +172,8 @@ impl<T: frame_system::Config> pallet_preimage::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3548` - // Minimum execution time: 9_884_000 picoseconds. - Weight::from_parts(11_045_000, 0) + // Minimum execution time: 9_655_000 picoseconds. + Weight::from_parts(10_358_000, 0) .saturating_add(Weight::from_parts(0, 3548)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -186,8 +186,8 @@ impl<T: frame_system::Config> pallet_preimage::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `106` // Estimated: `3548` - // Minimum execution time: 6_602_000 picoseconds. - Weight::from_parts(7_110_000, 0) + // Minimum execution time: 6_793_000 picoseconds. + Weight::from_parts(7_733_000, 0) .saturating_add(Weight::from_parts(0, 3548)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -202,8 +202,8 @@ impl<T: frame_system::Config> pallet_preimage::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `144` // Estimated: `3548` - // Minimum execution time: 20_995_000 picoseconds. - Weight::from_parts(22_598_000, 0) + // Minimum execution time: 20_945_000 picoseconds. + Weight::from_parts(22_280_000, 0) .saturating_add(Weight::from_parts(0, 3548)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -216,8 +216,8 @@ impl<T: frame_system::Config> pallet_preimage::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `106` // Estimated: `3548` - // Minimum execution time: 6_745_000 picoseconds. - Weight::from_parts(7_702_000, 0) + // Minimum execution time: 6_661_000 picoseconds. + Weight::from_parts(7_650_000, 0) .saturating_add(Weight::from_parts(0, 3548)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -230,8 +230,8 @@ impl<T: frame_system::Config> pallet_preimage::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `106` // Estimated: `3548` - // Minimum execution time: 6_745_000 picoseconds. - Weight::from_parts(7_609_000, 0) + // Minimum execution time: 6_583_000 picoseconds. + Weight::from_parts(7_274_000, 0) .saturating_add(Weight::from_parts(0, 3548)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -247,11 +247,11 @@ impl<T: frame_system::Config> pallet_preimage::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0 + n * (179 ±0)` // Estimated: `990 + n * (2568 ±0)` - // Minimum execution time: 15_889_000 picoseconds. - Weight::from_parts(16_617_000, 0) + // Minimum execution time: 16_145_000 picoseconds. + Weight::from_parts(16_720_000, 0) .saturating_add(Weight::from_parts(0, 990)) - // Standard Error: 18_407 - .saturating_add(Weight::from_parts(13_280_498, 0).saturating_mul(n.into())) + // Standard Error: 17_095 + .saturating_add(Weight::from_parts(13_483_623, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(n.into()))) .saturating_add(Weight::from_parts(0, 2568).saturating_mul(n.into())) diff --git a/runtime/common/src/weights/pallet_provide_randomness.rs b/runtime/common/src/weights/pallet_provide_randomness.rs index c8d6c7c1fa53c515cb4b71e3c4e41a0fc40bed2c..70522dc8c6e48059a4e65674fc170a13d695329f 100644 --- a/runtime/common/src/weights/pallet_provide_randomness.rs +++ b/runtime/common/src/weights/pallet_provide_randomness.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_provide_randomness` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -65,8 +65,8 @@ impl<T: frame_system::Config> pallet_provide_randomness::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `298` // Estimated: `3763` - // Minimum execution time: 31_156_000 picoseconds. - Weight::from_parts(32_999_000, 0) + // Minimum execution time: 31_329_000 picoseconds. + Weight::from_parts(32_906_000, 0) .saturating_add(Weight::from_parts(0, 3763)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(5)) @@ -86,11 +86,11 @@ impl<T: frame_system::Config> pallet_provide_randomness::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `341 + i * (59 ±0)` // Estimated: `1827 + i * (2535 ±0)` - // Minimum execution time: 14_529_000 picoseconds. - Weight::from_parts(12_773_743, 0) + // Minimum execution time: 14_478_000 picoseconds. + Weight::from_parts(13_079_242, 0) .saturating_add(Weight::from_parts(0, 1827)) - // Standard Error: 8_159 - .saturating_add(Weight::from_parts(4_810_361, 0).saturating_mul(i.into())) + // Standard Error: 3_642 + .saturating_add(Weight::from_parts(4_859_336, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(i.into()))) .saturating_add(T::DbWeight::get().writes(3)) @@ -118,11 +118,11 @@ impl<T: frame_system::Config> pallet_provide_randomness::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `351 + i * (59 ±0)` // Estimated: `3817 + i * (2535 ±0)` - // Minimum execution time: 16_035_000 picoseconds. - Weight::from_parts(15_198_800, 0) + // Minimum execution time: 16_054_000 picoseconds. + Weight::from_parts(14_770_472, 0) .saturating_add(Weight::from_parts(0, 3817)) - // Standard Error: 11_547 - .saturating_add(Weight::from_parts(5_138_477, 0).saturating_mul(i.into())) + // Standard Error: 4_259 + .saturating_add(Weight::from_parts(5_131_103, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(i.into()))) .saturating_add(T::DbWeight::get().writes(3)) diff --git a/runtime/common/src/weights/pallet_proxy.rs b/runtime/common/src/weights/pallet_proxy.rs index 4f782eda8e8b1553c7300fc3f1a959c1dd1b8ba8..315bf051ccf2518fb3ac068fecfd86279ae6397b 100644 --- a/runtime/common/src/weights/pallet_proxy.rs +++ b/runtime/common/src/weights/pallet_proxy.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_proxy` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -54,11 +54,11 @@ impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `157 + p * (37 ±0)` // Estimated: `4698` - // Minimum execution time: 10_906_000 picoseconds. - Weight::from_parts(11_889_390, 0) + // Minimum execution time: 10_587_000 picoseconds. + Weight::from_parts(11_927_836, 0) .saturating_add(Weight::from_parts(0, 4698)) - // Standard Error: 1_682 - .saturating_add(Weight::from_parts(26_963, 0).saturating_mul(p.into())) + // Standard Error: 1_371 + .saturating_add(Weight::from_parts(22_824, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) } /// Storage: `Proxy::Proxies` (r:1 w:0) @@ -73,13 +73,13 @@ impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `399 + a * (68 ±0) + p * (37 ±0)` // Estimated: `5690` - // Minimum execution time: 26_178_000 picoseconds. - Weight::from_parts(27_006_660, 0) + // Minimum execution time: 26_005_000 picoseconds. + Weight::from_parts(26_650_052, 0) .saturating_add(Weight::from_parts(0, 5690)) - // Standard Error: 2_049 - .saturating_add(Weight::from_parts(125_721, 0).saturating_mul(a.into())) - // Standard Error: 2_117 - .saturating_add(Weight::from_parts(28_169, 0).saturating_mul(p.into())) + // Standard Error: 1_871 + .saturating_add(Weight::from_parts(128_419, 0).saturating_mul(a.into())) + // Standard Error: 1_933 + .saturating_add(Weight::from_parts(32_266, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -89,15 +89,17 @@ impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(93), added: 2568, mode: `MaxEncodedLen`) /// The range of component `a` is `[0, 31]`. /// The range of component `p` is `[1, 31]`. - fn remove_announcement(a: u32, _p: u32, ) -> Weight { + fn remove_announcement(a: u32, p: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `322 + a * (68 ±0)` // Estimated: `5690` - // Minimum execution time: 17_480_000 picoseconds. - Weight::from_parts(18_443_858, 0) + // Minimum execution time: 17_219_000 picoseconds. + Weight::from_parts(18_205_164, 0) .saturating_add(Weight::from_parts(0, 5690)) - // Standard Error: 1_669 - .saturating_add(Weight::from_parts(115_732, 0).saturating_mul(a.into())) + // Standard Error: 1_493 + .saturating_add(Weight::from_parts(122_565, 0).saturating_mul(a.into())) + // Standard Error: 1_543 + .saturating_add(Weight::from_parts(8_216, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -111,13 +113,13 @@ impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `322 + a * (68 ±0)` // Estimated: `5690` - // Minimum execution time: 17_176_000 picoseconds. - Weight::from_parts(17_632_635, 0) + // Minimum execution time: 17_268_000 picoseconds. + Weight::from_parts(18_015_864, 0) .saturating_add(Weight::from_parts(0, 5690)) - // Standard Error: 1_699 - .saturating_add(Weight::from_parts(132_908, 0).saturating_mul(a.into())) - // Standard Error: 1_756 - .saturating_add(Weight::from_parts(15_277, 0).saturating_mul(p.into())) + // Standard Error: 1_421 + .saturating_add(Weight::from_parts(120_331, 0).saturating_mul(a.into())) + // Standard Error: 1_468 + .saturating_add(Weight::from_parts(8_881, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -133,13 +135,13 @@ impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `331 + a * (68 ±0) + p * (37 ±0)` // Estimated: `5690` - // Minimum execution time: 23_618_000 picoseconds. - Weight::from_parts(23_484_852, 0) + // Minimum execution time: 23_803_000 picoseconds. + Weight::from_parts(23_771_521, 0) .saturating_add(Weight::from_parts(0, 5690)) - // Standard Error: 1_589 - .saturating_add(Weight::from_parts(127_986, 0).saturating_mul(a.into())) - // Standard Error: 1_641 - .saturating_add(Weight::from_parts(43_278, 0).saturating_mul(p.into())) + // Standard Error: 1_323 + .saturating_add(Weight::from_parts(125_762, 0).saturating_mul(a.into())) + // Standard Error: 1_367 + .saturating_add(Weight::from_parts(35_700, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -150,11 +152,11 @@ impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `157 + p * (37 ±0)` // Estimated: `4698` - // Minimum execution time: 16_111_000 picoseconds. - Weight::from_parts(17_412_702, 0) + // Minimum execution time: 16_406_000 picoseconds. + Weight::from_parts(17_515_617, 0) .saturating_add(Weight::from_parts(0, 4698)) - // Standard Error: 1_596 - .saturating_add(Weight::from_parts(33_701, 0).saturating_mul(p.into())) + // Standard Error: 1_411 + .saturating_add(Weight::from_parts(38_705, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -165,11 +167,11 @@ impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `157 + p * (37 ±0)` // Estimated: `4698` - // Minimum execution time: 16_236_000 picoseconds. - Weight::from_parts(18_324_106, 0) + // Minimum execution time: 16_194_000 picoseconds. + Weight::from_parts(17_532_724, 0) .saturating_add(Weight::from_parts(0, 4698)) - // Standard Error: 2_714 - .saturating_add(Weight::from_parts(11_138, 0).saturating_mul(p.into())) + // Standard Error: 2_309 + .saturating_add(Weight::from_parts(51_908, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -180,24 +182,26 @@ impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `157 + p * (37 ±0)` // Estimated: `4698` - // Minimum execution time: 16_116_000 picoseconds. - Weight::from_parts(16_986_854, 0) + // Minimum execution time: 16_020_000 picoseconds. + Weight::from_parts(17_245_545, 0) .saturating_add(Weight::from_parts(0, 4698)) - // Standard Error: 1_818 - .saturating_add(Weight::from_parts(40_407, 0).saturating_mul(p.into())) + // Standard Error: 1_555 + .saturating_add(Weight::from_parts(16_291, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Proxy::Proxies` (r:1 w:1) /// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`) /// The range of component `p` is `[1, 31]`. - fn create_pure(_p: u32, ) -> Weight { + fn create_pure(p: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `177` // Estimated: `4698` - // Minimum execution time: 17_556_000 picoseconds. - Weight::from_parts(19_158_031, 0) + // Minimum execution time: 17_534_000 picoseconds. + Weight::from_parts(18_700_319, 0) .saturating_add(Weight::from_parts(0, 4698)) + // Standard Error: 1_342 + .saturating_add(Weight::from_parts(10_675, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -208,11 +212,11 @@ impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `194 + p * (37 ±0)` // Estimated: `4698` - // Minimum execution time: 16_233_000 picoseconds. - Weight::from_parts(17_619_735, 0) + // Minimum execution time: 16_577_000 picoseconds. + Weight::from_parts(17_708_748, 0) .saturating_add(Weight::from_parts(0, 4698)) - // Standard Error: 1_830 - .saturating_add(Weight::from_parts(29_758, 0).saturating_mul(p.into())) + // Standard Error: 1_458 + .saturating_add(Weight::from_parts(25_279, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/common/src/weights/pallet_quota.rs b/runtime/common/src/weights/pallet_quota.rs index 40331f0afcb86b91084ef5f2fe0eaec1373d447a..a19434338f137940cad43be114192b8f6798ea03 100644 --- a/runtime/common/src/weights/pallet_quota.rs +++ b/runtime/common/src/weights/pallet_quota.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_quota` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl<T: frame_system::Config> pallet_quota::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `11288` // Estimated: `12751` - // Minimum execution time: 7_647_000 picoseconds. - Weight::from_parts(8_035_000, 0) + // Minimum execution time: 7_146_000 picoseconds. + Weight::from_parts(7_473_000, 0) .saturating_add(Weight::from_parts(0, 12751)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -65,8 +65,8 @@ impl<T: frame_system::Config> pallet_quota::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `139` // Estimated: `3489` - // Minimum execution time: 4_781_000 picoseconds. - Weight::from_parts(5_015_000, 0) + // Minimum execution time: 4_469_000 picoseconds. + Weight::from_parts(4_731_000, 0) .saturating_add(Weight::from_parts(0, 3489)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -79,8 +79,8 @@ impl<T: frame_system::Config> pallet_quota::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `202` // Estimated: `6126` - // Minimum execution time: 21_986_000 picoseconds. - Weight::from_parts(23_487_000, 0) + // Minimum execution time: 21_893_000 picoseconds. + Weight::from_parts(22_789_000, 0) .saturating_add(Weight::from_parts(0, 6126)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) @@ -93,8 +93,8 @@ impl<T: frame_system::Config> pallet_quota::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `202` // Estimated: `6126` - // Minimum execution time: 21_622_000 picoseconds. - Weight::from_parts(22_386_000, 0) + // Minimum execution time: 21_581_000 picoseconds. + Weight::from_parts(22_465_000, 0) .saturating_add(Weight::from_parts(0, 6126)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) @@ -105,8 +105,8 @@ impl<T: frame_system::Config> pallet_quota::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `43` // Estimated: `12751` - // Minimum execution time: 1_799_000 picoseconds. - Weight::from_parts(2_044_000, 0) + // Minimum execution time: 1_759_000 picoseconds. + Weight::from_parts(1_953_000, 0) .saturating_add(Weight::from_parts(0, 12751)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -122,11 +122,11 @@ impl<T: frame_system::Config> pallet_quota::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `227 + i * (44 ±0)` // Estimated: `12751` - // Minimum execution time: 24_653_000 picoseconds. - Weight::from_parts(39_571_198, 0) + // Minimum execution time: 25_323_000 picoseconds. + Weight::from_parts(39_142_016, 0) .saturating_add(Weight::from_parts(0, 12751)) - // Standard Error: 2_430 - .saturating_add(Weight::from_parts(1_197_849, 0).saturating_mul(i.into())) + // Standard Error: 2_270 + .saturating_add(Weight::from_parts(1_181_628, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } diff --git a/runtime/common/src/weights/pallet_scheduler.rs b/runtime/common/src/weights/pallet_scheduler.rs index 8d6f206c07f0af29836913a751a299073d11c4c9..59e5bbdcbdbb1035efb162e4408d17534d97cfc7 100644 --- a/runtime/common/src/weights/pallet_scheduler.rs +++ b/runtime/common/src/weights/pallet_scheduler.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_scheduler` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `30` // Estimated: `1489` - // Minimum execution time: 2_293_000 picoseconds. - Weight::from_parts(2_428_000, 0) + // Minimum execution time: 2_247_000 picoseconds. + Weight::from_parts(2_368_000, 0) .saturating_add(Weight::from_parts(0, 1489)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -66,11 +66,11 @@ impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `77 + s * (177 ±0)` // Estimated: `13928` - // Minimum execution time: 2_715_000 picoseconds. - Weight::from_parts(5_304_460, 0) + // Minimum execution time: 2_623_000 picoseconds. + Weight::from_parts(5_323_281, 0) .saturating_add(Weight::from_parts(0, 13928)) - // Standard Error: 1_481 - .saturating_add(Weight::from_parts(269_752, 0).saturating_mul(s.into())) + // Standard Error: 1_521 + .saturating_add(Weight::from_parts(261_061, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -78,8 +78,8 @@ impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_151_000 picoseconds. - Weight::from_parts(2_342_000, 0) + // Minimum execution time: 2_057_000 picoseconds. + Weight::from_parts(2_231_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `Preimage::PreimageFor` (r:1 w:1) @@ -93,11 +93,11 @@ impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `179 + s * (1 ±0)` // Estimated: `3644 + s * (1 ±0)` - // Minimum execution time: 13_626_000 picoseconds. - Weight::from_parts(14_017_000, 0) + // Minimum execution time: 13_676_000 picoseconds. + Weight::from_parts(13_904_000, 0) .saturating_add(Weight::from_parts(0, 3644)) // Standard Error: 2 - .saturating_add(Weight::from_parts(934, 0).saturating_mul(s.into())) + .saturating_add(Weight::from_parts(864, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into())) @@ -108,8 +108,8 @@ impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_320_000 picoseconds. - Weight::from_parts(3_606_000, 0) + // Minimum execution time: 3_190_000 picoseconds. + Weight::from_parts(3_399_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -117,24 +117,24 @@ impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_177_000 picoseconds. - Weight::from_parts(2_347_000, 0) + // Minimum execution time: 2_037_000 picoseconds. + Weight::from_parts(2_185_000, 0) .saturating_add(Weight::from_parts(0, 0)) } fn execute_dispatch_signed() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_534_000 picoseconds. - Weight::from_parts(1_629_000, 0) + // Minimum execution time: 1_451_000 picoseconds. + Weight::from_parts(1_527_000, 0) .saturating_add(Weight::from_parts(0, 0)) } fn execute_dispatch_unsigned() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_523_000 picoseconds. - Weight::from_parts(1_665_000, 0) + // Minimum execution time: 1_380_000 picoseconds. + Weight::from_parts(1_528_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `Scheduler::Agenda` (r:1 w:1) @@ -144,11 +144,11 @@ impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `77 + s * (177 ±0)` // Estimated: `13928` - // Minimum execution time: 7_014_000 picoseconds. - Weight::from_parts(10_429_553, 0) + // Minimum execution time: 7_345_000 picoseconds. + Weight::from_parts(10_149_347, 0) .saturating_add(Weight::from_parts(0, 13928)) - // Standard Error: 2_308 - .saturating_add(Weight::from_parts(273_551, 0).saturating_mul(s.into())) + // Standard Error: 1_470 + .saturating_add(Weight::from_parts(271_802, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -163,11 +163,11 @@ impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `77 + s * (177 ±0)` // Estimated: `13928` - // Minimum execution time: 11_904_000 picoseconds. - Weight::from_parts(12_749_369, 0) + // Minimum execution time: 11_065_000 picoseconds. + Weight::from_parts(12_201_393, 0) .saturating_add(Weight::from_parts(0, 13928)) - // Standard Error: 1_721 - .saturating_add(Weight::from_parts(428_230, 0).saturating_mul(s.into())) + // Standard Error: 1_220 + .saturating_add(Weight::from_parts(421_428, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -180,11 +180,11 @@ impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `254 + s * (185 ±0)` // Estimated: `13928` - // Minimum execution time: 9_564_000 picoseconds. - Weight::from_parts(14_001_763, 0) + // Minimum execution time: 9_738_000 picoseconds. + Weight::from_parts(13_973_802, 0) .saturating_add(Weight::from_parts(0, 13928)) - // Standard Error: 3_210 - .saturating_add(Weight::from_parts(313_544, 0).saturating_mul(s.into())) + // Standard Error: 3_249 + .saturating_add(Weight::from_parts(309_352, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -199,11 +199,11 @@ impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `280 + s * (185 ±0)` // Estimated: `13928` - // Minimum execution time: 13_729_000 picoseconds. - Weight::from_parts(15_963_157, 0) + // Minimum execution time: 13_718_000 picoseconds. + Weight::from_parts(15_856_702, 0) .saturating_add(Weight::from_parts(0, 13928)) - // Standard Error: 2_377 - .saturating_add(Weight::from_parts(448_945, 0).saturating_mul(s.into())) + // Standard Error: 2_313 + .saturating_add(Weight::from_parts(428_752, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -216,11 +216,11 @@ impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `117` // Estimated: `13928` - // Minimum execution time: 6_873_000 picoseconds. - Weight::from_parts(7_582_416, 0) + // Minimum execution time: 6_953_000 picoseconds. + Weight::from_parts(7_530_478, 0) .saturating_add(Weight::from_parts(0, 13928)) - // Standard Error: 1_740 - .saturating_add(Weight::from_parts(26_017, 0).saturating_mul(s.into())) + // Standard Error: 563 + .saturating_add(Weight::from_parts(20_586, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -232,8 +232,8 @@ impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `8927` // Estimated: `13928` - // Minimum execution time: 19_457_000 picoseconds. - Weight::from_parts(20_163_000, 0) + // Minimum execution time: 18_248_000 picoseconds. + Weight::from_parts(18_882_000, 0) .saturating_add(Weight::from_parts(0, 13928)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -248,8 +248,8 @@ impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `9605` // Estimated: `13928` - // Minimum execution time: 25_900_000 picoseconds. - Weight::from_parts(26_625_000, 0) + // Minimum execution time: 23_731_000 picoseconds. + Weight::from_parts(24_949_000, 0) .saturating_add(Weight::from_parts(0, 13928)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -262,8 +262,8 @@ impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `8939` // Estimated: `13928` - // Minimum execution time: 18_312_000 picoseconds. - Weight::from_parts(18_872_000, 0) + // Minimum execution time: 18_270_000 picoseconds. + Weight::from_parts(18_997_000, 0) .saturating_add(Weight::from_parts(0, 13928)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -278,8 +278,8 @@ impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `9617` // Estimated: `13928` - // Minimum execution time: 23_531_000 picoseconds. - Weight::from_parts(24_475_000, 0) + // Minimum execution time: 23_185_000 picoseconds. + Weight::from_parts(23_971_000, 0) .saturating_add(Weight::from_parts(0, 13928)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) diff --git a/runtime/common/src/weights/pallet_session.rs b/runtime/common/src/weights/pallet_session.rs index c5f1ecf262232c8b6bb34c4e84096c9a1b603435..5bbff4c247f0e4be918078f8a35a486789060415 100644 --- a/runtime/common/src/weights/pallet_session.rs +++ b/runtime/common/src/weights/pallet_session.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_session` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -55,8 +55,8 @@ impl<T: frame_system::Config> pallet_session::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `723` // Estimated: `11613` - // Minimum execution time: 23_680_000 picoseconds. - Weight::from_parts(25_045_000, 0) + // Minimum execution time: 22_533_000 picoseconds. + Weight::from_parts(23_536_000, 0) .saturating_add(Weight::from_parts(0, 11613)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) @@ -69,8 +69,8 @@ impl<T: frame_system::Config> pallet_session::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `412` // Estimated: `3877` - // Minimum execution time: 14_503_000 picoseconds. - Weight::from_parts(15_052_000, 0) + // Minimum execution time: 13_783_000 picoseconds. + Weight::from_parts(14_376_000, 0) .saturating_add(Weight::from_parts(0, 3877)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(5)) diff --git a/runtime/common/src/weights/pallet_smith_members.rs b/runtime/common/src/weights/pallet_smith_members.rs index 5e73cfa16d70737ed81448cee6c397198d8f7b66..8f2a1a7dcf319af44c830e09e36de2f0c277eba5 100644 --- a/runtime/common/src/weights/pallet_smith_members.rs +++ b/runtime/common/src/weights/pallet_smith_members.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_smith_members` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -63,8 +63,8 @@ impl<T: frame_system::Config> pallet_smith_members::WeightInfo for WeightInfo<T> // Proof Size summary in bytes: // Measured: `765` // Estimated: `6705` - // Minimum execution time: 25_109_000 picoseconds. - Weight::from_parts(25_899_000, 0) + // Minimum execution time: 24_537_000 picoseconds. + Weight::from_parts(25_692_000, 0) .saturating_add(Weight::from_parts(0, 6705)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(2)) @@ -77,8 +77,8 @@ impl<T: frame_system::Config> pallet_smith_members::WeightInfo for WeightInfo<T> // Proof Size summary in bytes: // Measured: `496` // Estimated: `3961` - // Minimum execution time: 13_004_000 picoseconds. - Weight::from_parts(13_564_000, 0) + // Minimum execution time: 13_084_000 picoseconds. + Weight::from_parts(13_653_000, 0) .saturating_add(Weight::from_parts(0, 3961)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -97,8 +97,8 @@ impl<T: frame_system::Config> pallet_smith_members::WeightInfo for WeightInfo<T> // Proof Size summary in bytes: // Measured: `626` // Estimated: `6566` - // Minimum execution time: 23_752_000 picoseconds. - Weight::from_parts(24_806_000, 0) + // Minimum execution time: 23_286_000 picoseconds. + Weight::from_parts(24_203_000, 0) .saturating_add(Weight::from_parts(0, 6566)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(3)) @@ -123,8 +123,8 @@ impl<T: frame_system::Config> pallet_smith_members::WeightInfo for WeightInfo<T> // Proof Size summary in bytes: // Measured: `911` // Estimated: `9326` - // Minimum execution time: 49_501_000 picoseconds. - Weight::from_parts(51_840_000, 0) + // Minimum execution time: 46_868_000 picoseconds. + Weight::from_parts(48_648_000, 0) .saturating_add(Weight::from_parts(0, 9326)) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(13)) @@ -135,8 +135,8 @@ impl<T: frame_system::Config> pallet_smith_members::WeightInfo for WeightInfo<T> // Proof Size summary in bytes: // Measured: `187` // Estimated: `3652` - // Minimum execution time: 2_953_000 picoseconds. - Weight::from_parts(3_111_000, 0) + // Minimum execution time: 2_780_000 picoseconds. + Weight::from_parts(2_992_000, 0) .saturating_add(Weight::from_parts(0, 3652)) .saturating_add(T::DbWeight::get().reads(1)) } diff --git a/runtime/common/src/weights/pallet_sudo.rs b/runtime/common/src/weights/pallet_sudo.rs index 4edd675466503ec63cf02aff2cbef2e6dd679395..c51df6c48846d3c1441427968e31a0fc67ea0000 100644 --- a/runtime/common/src/weights/pallet_sudo.rs +++ b/runtime/common/src/weights/pallet_sudo.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_sudo` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -53,8 +53,8 @@ impl<T: frame_system::Config> pallet_sudo::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `165` // Estimated: `1517` - // Minimum execution time: 6_745_000 picoseconds. - Weight::from_parts(7_129_000, 0) + // Minimum execution time: 6_589_000 picoseconds. + Weight::from_parts(6_985_000, 0) .saturating_add(Weight::from_parts(0, 1517)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -65,8 +65,8 @@ impl<T: frame_system::Config> pallet_sudo::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `165` // Estimated: `1517` - // Minimum execution time: 7_066_000 picoseconds. - Weight::from_parts(7_855_000, 0) + // Minimum execution time: 6_878_000 picoseconds. + Weight::from_parts(7_358_000, 0) .saturating_add(Weight::from_parts(0, 1517)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -76,8 +76,8 @@ impl<T: frame_system::Config> pallet_sudo::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `165` // Estimated: `1517` - // Minimum execution time: 7_015_000 picoseconds. - Weight::from_parts(7_360_000, 0) + // Minimum execution time: 6_934_000 picoseconds. + Weight::from_parts(7_434_000, 0) .saturating_add(Weight::from_parts(0, 1517)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -87,8 +87,8 @@ impl<T: frame_system::Config> pallet_sudo::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `165` // Estimated: `1517` - // Minimum execution time: 5_973_000 picoseconds. - Weight::from_parts(6_261_000, 0) + // Minimum execution time: 6_001_000 picoseconds. + Weight::from_parts(6_397_000, 0) .saturating_add(Weight::from_parts(0, 1517)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) diff --git a/runtime/common/src/weights/pallet_timestamp.rs b/runtime/common/src/weights/pallet_timestamp.rs index a6e620662d0e6226c714caa4905d38caaca13056..df562e8043d1366137c09d22c72199a8a20c908e 100644 --- a/runtime/common/src/weights/pallet_timestamp.rs +++ b/runtime/common/src/weights/pallet_timestamp.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_timestamp` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -59,8 +59,8 @@ impl<T: frame_system::Config> pallet_timestamp::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `379` // Estimated: `1864` - // Minimum execution time: 10_380_000 picoseconds. - Weight::from_parts(11_078_000, 0) + // Minimum execution time: 10_293_000 picoseconds. + Weight::from_parts(11_107_000, 0) .saturating_add(Weight::from_parts(0, 1864)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) @@ -69,8 +69,8 @@ impl<T: frame_system::Config> pallet_timestamp::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `57` // Estimated: `0` - // Minimum execution time: 2_542_000 picoseconds. - Weight::from_parts(2_694_000, 0) + // Minimum execution time: 2_400_000 picoseconds. + Weight::from_parts(2_539_000, 0) .saturating_add(Weight::from_parts(0, 0)) } } diff --git a/runtime/common/src/weights/pallet_treasury.rs b/runtime/common/src/weights/pallet_treasury.rs index 6b93d76ab2df8eeb79f45104272b153ddea4635f..5bfd1059f2f7f040ad29962257d107a7d0f61b70 100644 --- a/runtime/common/src/weights/pallet_treasury.rs +++ b/runtime/common/src/weights/pallet_treasury.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_treasury` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -63,8 +63,8 @@ impl<T: frame_system::Config> pallet_treasury::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `67` // Estimated: `1489` - // Minimum execution time: 16_761_000 picoseconds. - Weight::from_parts(17_586_000, 0) + // Minimum execution time: 16_895_000 picoseconds. + Weight::from_parts(17_676_000, 0) .saturating_add(Weight::from_parts(0, 1489)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) @@ -77,8 +77,8 @@ impl<T: frame_system::Config> pallet_treasury::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `272` // Estimated: `6126` - // Minimum execution time: 27_433_000 picoseconds. - Weight::from_parts(28_307_000, 0) + // Minimum execution time: 27_835_000 picoseconds. + Weight::from_parts(28_815_000, 0) .saturating_add(Weight::from_parts(0, 6126)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -92,11 +92,11 @@ impl<T: frame_system::Config> pallet_treasury::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `433 + p * (8 ±0)` // Estimated: `3557` - // Minimum execution time: 6_113_000 picoseconds. - Weight::from_parts(9_442_836, 0) + // Minimum execution time: 6_110_000 picoseconds. + Weight::from_parts(9_332_735, 0) .saturating_add(Weight::from_parts(0, 3557)) - // Standard Error: 1_120 - .saturating_add(Weight::from_parts(46_468, 0).saturating_mul(p.into())) + // Standard Error: 1_142 + .saturating_add(Weight::from_parts(49_768, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -106,8 +106,8 @@ impl<T: frame_system::Config> pallet_treasury::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `90` // Estimated: `1887` - // Minimum execution time: 4_527_000 picoseconds. - Weight::from_parts(4_722_000, 0) + // Minimum execution time: 4_290_000 picoseconds. + Weight::from_parts(4_657_000, 0) .saturating_add(Weight::from_parts(0, 1887)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -125,11 +125,11 @@ impl<T: frame_system::Config> pallet_treasury::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0 + p * (195 ±0)` // Estimated: `3558 + p * (5136 ±0)` - // Minimum execution time: 12_865_000 picoseconds. - Weight::from_parts(19_048_235, 0) + // Minimum execution time: 11_965_000 picoseconds. + Weight::from_parts(24_309_981, 0) .saturating_add(Weight::from_parts(0, 3558)) - // Standard Error: 33_635 - .saturating_add(Weight::from_parts(23_701_918, 0).saturating_mul(p.into())) + // Standard Error: 14_472 + .saturating_add(Weight::from_parts(23_310_107, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(p.into()))) .saturating_add(T::DbWeight::get().writes(3)) @@ -152,8 +152,8 @@ impl<T: frame_system::Config> pallet_treasury::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `179` // Estimated: `6126` - // Minimum execution time: 39_028_000 picoseconds. - Weight::from_parts(39_818_000, 0) + // Minimum execution time: 39_319_000 picoseconds. + Weight::from_parts(40_632_000, 0) .saturating_add(Weight::from_parts(0, 6126)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -164,8 +164,8 @@ impl<T: frame_system::Config> pallet_treasury::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `116` // Estimated: `3526` - // Minimum execution time: 9_032_000 picoseconds. - Weight::from_parts(9_459_000, 0) + // Minimum execution time: 8_711_000 picoseconds. + Weight::from_parts(9_202_000, 0) .saturating_add(Weight::from_parts(0, 3526)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -176,8 +176,8 @@ impl<T: frame_system::Config> pallet_treasury::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `116` // Estimated: `3526` - // Minimum execution time: 7_991_000 picoseconds. - Weight::from_parts(8_435_000, 0) + // Minimum execution time: 7_887_000 picoseconds. + Weight::from_parts(8_349_000, 0) .saturating_add(Weight::from_parts(0, 3526)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) diff --git a/runtime/common/src/weights/pallet_universal_dividend.rs b/runtime/common/src/weights/pallet_universal_dividend.rs index 59318a48cd8b7630b12e914a3f68e865e85864ba..778f298d2aacc2e8e562af4b27496a66e594ba86 100644 --- a/runtime/common/src/weights/pallet_universal_dividend.rs +++ b/runtime/common/src/weights/pallet_universal_dividend.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_universal_dividend` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -62,11 +62,11 @@ impl<T: frame_system::Config> pallet_universal_dividend::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `643` // Estimated: `4108` - // Minimum execution time: 25_250_000 picoseconds. - Weight::from_parts(26_478_413, 0) + // Minimum execution time: 24_610_000 picoseconds. + Weight::from_parts(26_539_017, 0) .saturating_add(Weight::from_parts(0, 4108)) - // Standard Error: 2_994 - .saturating_add(Weight::from_parts(12_798, 0).saturating_mul(i.into())) + // Standard Error: 382 + .saturating_add(Weight::from_parts(234, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -78,8 +78,8 @@ impl<T: frame_system::Config> pallet_universal_dividend::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `156` // Estimated: `6126` - // Minimum execution time: 45_153_000 picoseconds. - Weight::from_parts(46_077_000, 0) + // Minimum execution time: 45_470_000 picoseconds. + Weight::from_parts(46_660_000, 0) .saturating_add(Weight::from_parts(0, 6126)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) @@ -92,8 +92,8 @@ impl<T: frame_system::Config> pallet_universal_dividend::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `93` // Estimated: `3558` - // Minimum execution time: 30_379_000 picoseconds. - Weight::from_parts(31_216_000, 0) + // Minimum execution time: 30_105_000 picoseconds. + Weight::from_parts(31_315_000, 0) .saturating_add(Weight::from_parts(0, 3558)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -105,13 +105,15 @@ impl<T: frame_system::Config> pallet_universal_dividend::WeightInfo for WeightIn /// Storage: `System::Account` (r:1 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(93), added: 2568, mode: `MaxEncodedLen`) /// The range of component `i` is `[1, 160]`. - fn on_removed_member(_i: u32, ) -> Weight { + fn on_removed_member(i: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `181` // Estimated: `3558` - // Minimum execution time: 13_329_000 picoseconds. - Weight::from_parts(14_784_356, 0) + // Minimum execution time: 12_722_000 picoseconds. + Weight::from_parts(14_020_745, 0) .saturating_add(Weight::from_parts(0, 3558)) + // Standard Error: 216 + .saturating_add(Weight::from_parts(1_349, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/common/src/weights/pallet_upgrade_origin.rs b/runtime/common/src/weights/pallet_upgrade_origin.rs index 4b01ad587f0c64184d8bb6baf0faf04e0b79eaa5..09e11404c4e07c7fd72fd52c2441045caefac6c5 100644 --- a/runtime/common/src/weights/pallet_upgrade_origin.rs +++ b/runtime/common/src/weights/pallet_upgrade_origin.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_upgrade_origin` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -51,8 +51,8 @@ impl<T: frame_system::Config> pallet_upgrade_origin::WeightInfo for WeightInfo<T // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_194_000 picoseconds. - Weight::from_parts(4_665_000, 0) + // Minimum execution time: 4_208_000 picoseconds. + Weight::from_parts(4_574_000, 0) .saturating_add(Weight::from_parts(0, 0)) } } diff --git a/runtime/common/src/weights/pallet_utility.rs b/runtime/common/src/weights/pallet_utility.rs index 6436ee7f319a9f05cf1c6dc27491141d55b81d92..3e4b97c813d08cd0b3fbeb83517ebcf3e61e01a8 100644 --- a/runtime/common/src/weights/pallet_utility.rs +++ b/runtime/common/src/weights/pallet_utility.rs @@ -17,7 +17,7 @@ //! Autogenerated weights for `pallet_utility` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 @@ -52,18 +52,18 @@ impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_572_000 picoseconds. - Weight::from_parts(7_967_083, 0) + // Minimum execution time: 3_225_000 picoseconds. + Weight::from_parts(6_768_835, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 2_196 - .saturating_add(Weight::from_parts(2_073_965, 0).saturating_mul(c.into())) + // Standard Error: 2_935 + .saturating_add(Weight::from_parts(2_000_415, 0).saturating_mul(c.into())) } fn as_derivative() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_939_000 picoseconds. - Weight::from_parts(3_163_000, 0) + // Minimum execution time: 2_752_000 picoseconds. + Weight::from_parts(2_997_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `c` is `[0, 1000]`. @@ -71,18 +71,18 @@ impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_720_000 picoseconds. - Weight::from_parts(25_395_372, 0) + // Minimum execution time: 3_150_000 picoseconds. + Weight::from_parts(6_300_063, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 3_072 - .saturating_add(Weight::from_parts(2_157_020, 0).saturating_mul(c.into())) + // Standard Error: 1_366 + .saturating_add(Weight::from_parts(2_184_259, 0).saturating_mul(c.into())) } fn dispatch_as() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_533_000 picoseconds. - Weight::from_parts(5_032_000, 0) + // Minimum execution time: 4_387_000 picoseconds. + Weight::from_parts(4_735_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// The range of component `c` is `[0, 1000]`. @@ -90,10 +90,10 @@ impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_583_000 picoseconds. - Weight::from_parts(9_224_622, 0) + // Minimum execution time: 3_227_000 picoseconds. + Weight::from_parts(8_110_481, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 3_462 - .saturating_add(Weight::from_parts(2_059_460, 0).saturating_mul(c.into())) + // Standard Error: 1_389 + .saturating_add(Weight::from_parts(2_001_592, 0).saturating_mul(c.into())) } } diff --git a/runtime/common/src/weights/paritydb_weights.rs b/runtime/common/src/weights/paritydb_weights.rs index dc1ee1f0e7c9b47bdd6b7b8045fd3ec87862f7ba..972f0dca366b40bfca7e4e96ee739fd5005f4aa5 100644 --- a/runtime/common/src/weights/paritydb_weights.rs +++ b/runtime/common/src/weights/paritydb_weights.rs @@ -1,6 +1,6 @@ //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-03-21 (Y/M/D) +//! DATE: 2024-05-13 (Y/M/D) //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F` //! //! DATABASE: `ParityDb`, RUNTIME: `Ğdev Local Testnet` @@ -33,31 +33,31 @@ pub mod constants { /// Calculated by multiplying the *Average* of all values with `2.0` and adding `0`. /// /// Stats nanoseconds: - /// Min, Max: 1_069, 1_117_853 - /// Average: 10_457 - /// Median: 1_757 - /// Std-Dev: 97504.22 + /// Min, Max: 794, 1_098_997 + /// Average: 9_893 + /// Median: 1_232 + /// Std-Dev: 95894.03 /// /// Percentiles nanoseconds: - /// 99th: 10_084 - /// 95th: 2_736 - /// 75th: 1_979 - read: 20_914 * constants::WEIGHT_REF_TIME_PER_NANOS, + /// 99th: 9_401 + /// 95th: 2_655 + /// 75th: 1_565 + read: 19_786 * constants::WEIGHT_REF_TIME_PER_NANOS, /// Time to write one storage item. /// Calculated by multiplying the *Average* of all values with `2.0` and adding `0`. /// /// Stats nanoseconds: - /// Min, Max: 4_790, 5_998_438 - /// Average: 58_505 - /// Median: 12_295 - /// Std-Dev: 523003.75 + /// Min, Max: 3_685, 6_605_999 + /// Average: 59_740 + /// Median: 8_551 + /// Std-Dev: 576372.47 /// /// Percentiles nanoseconds: - /// 99th: 47_632 - /// 95th: 19_096 - /// 75th: 14_574 - write: 117_010 * constants::WEIGHT_REF_TIME_PER_NANOS, + /// 99th: 18_887 + /// 95th: 13_172 + /// 75th: 11_273 + write: 119_480 * constants::WEIGHT_REF_TIME_PER_NANOS, }; } diff --git a/runtime/g1/src/lib.rs b/runtime/g1/src/lib.rs index 3ce455b521947adc07bc9f9370f9abadb5bf0d20..a8c6ba1c0750e0574dc65f44b7b84d906e35022f 100644 --- a/runtime/g1/src/lib.rs +++ b/runtime/g1/src/lib.rs @@ -33,31 +33,30 @@ pub use common_runtime::{ constants::*, entities::*, handlers::*, AccountId, Address, Balance, BlockNumber, FullIdentificationOfImpl, GetCurrentEpochIndex, Hash, Header, IdtyIndex, Index, Signature, }; +use frame_support::traits::{fungible::Balanced, Imbalance}; pub use frame_system::Call as SystemCall; pub use pallet_balances::Call as BalancesCall; pub use pallet_identity::{IdtyStatus, IdtyValue}; pub use pallet_im_online::sr25519::AuthorityId as ImOnlineId; use pallet_session::historical as session_historical; pub use pallet_timestamp::Call as TimestampCall; -use pallet_transaction_payment::CurrencyAdapter; +use pallet_transaction_payment::FungibleAdapter; pub use pallet_universal_dividend; #[cfg(any(feature = "std", test))] pub use sp_runtime::BuildStorage; pub use sp_runtime::{KeyTypeId, Perbill, Permill}; use common_runtime::IdtyNameValidatorImpl; -use frame_support::traits::Contains; -use frame_support::PalletId; +use frame_support::{traits::Contains, PalletId}; use frame_system::EnsureRoot; -use pallet_grandpa::fg_primitives; -use pallet_grandpa::{AuthorityId as GrandpaId, AuthorityList as GrandpaAuthorityList}; +use pallet_grandpa::{ + fg_primitives, AuthorityId as GrandpaId, AuthorityList as GrandpaAuthorityList, +}; use sp_api::impl_runtime_apis; use sp_core::OpaqueMetadata; -use sp_runtime::traits::{ - AccountIdLookup, BlakeTwo256, Block as BlockT, NumberFor, One, OpaqueKeys, -}; use sp_runtime::{ create_runtime_str, generic, impl_opaque_keys, + traits::{AccountIdLookup, BlakeTwo256, Block as BlockT, NumberFor, One, OpaqueKeys}, transaction_validity::{TransactionSource, TransactionValidity}, ApplyExtrinsicResult, }; @@ -72,9 +71,7 @@ pub use frame_support::{ construct_runtime, parameter_types, traits::{EqualPrivilegeOnly, KeyOwnerProofSystem, Randomness}, weights::{ - constants::{ - BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_REF_TIME_PER_SECOND, - }, + constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight}, Weight, WeightToFeeCoefficient, WeightToFeeCoefficients, WeightToFeePolynomial, }, StorageValue, diff --git a/runtime/g1/src/parameters.rs b/runtime/g1/src/parameters.rs index e19e471fe1d55d022df9ed201712fe0bcfeec544..280a9f728368e0720ab660e7907f7d031d9c1b71 100644 --- a/runtime/g1/src/parameters.rs +++ b/runtime/g1/src/parameters.rs @@ -15,11 +15,8 @@ // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. use crate::*; -use common_runtime::constants::*; -use common_runtime::{Balance, BlockNumber, Moment}; -use frame_support::parameter_types; -use frame_support::weights::constants::WEIGHT_REF_TIME_PER_SECOND; -use sp_arithmetic::Perbill; +use common_runtime::{constants::*, Moment}; +use frame_support::{parameter_types, weights::constants::WEIGHT_REF_TIME_PER_SECOND}; use sp_runtime::transaction_validity::TransactionPriority; parameter_types! { diff --git a/runtime/gdev/src/lib.rs b/runtime/gdev/src/lib.rs index e77cd68094e0ec18fdaabc0fa2761badd98b1e99..f2955b84117d90bc6ce3b1778510de7e9f65ff0e 100644 --- a/runtime/gdev/src/lib.rs +++ b/runtime/gdev/src/lib.rs @@ -33,31 +33,30 @@ pub use common_runtime::{ constants::*, entities::*, handlers::*, AccountId, Address, Balance, BlockNumber, FullIdentificationOfImpl, GetCurrentEpochIndex, Hash, Header, IdtyIndex, Index, Signature, }; +use frame_support::traits::{fungible::Balanced, Imbalance}; pub use frame_system::Call as SystemCall; pub use pallet_balances::Call as BalancesCall; pub use pallet_duniter_test_parameters::Parameters as GenesisParameters; pub use pallet_im_online::sr25519::AuthorityId as ImOnlineId; use pallet_session::historical as session_historical; pub use pallet_timestamp::Call as TimestampCall; -use pallet_transaction_payment::CurrencyAdapter; +use pallet_transaction_payment::FungibleAdapter; pub use pallet_universal_dividend; #[cfg(any(feature = "std", test))] pub use sp_runtime::BuildStorage; pub use sp_runtime::{KeyTypeId, Perbill, Permill}; use common_runtime::IdtyNameValidatorImpl; -use frame_support::traits::Contains; -use frame_support::PalletId; +use frame_support::{traits::Contains, PalletId}; use frame_system::EnsureRoot; -use pallet_grandpa::fg_primitives; -use pallet_grandpa::{AuthorityId as GrandpaId, AuthorityList as GrandpaAuthorityList}; +use pallet_grandpa::{ + fg_primitives, AuthorityId as GrandpaId, AuthorityList as GrandpaAuthorityList, +}; use sp_api::impl_runtime_apis; use sp_core::OpaqueMetadata; -use sp_runtime::traits::{ - AccountIdLookup, BlakeTwo256, Block as BlockT, NumberFor, One, OpaqueKeys, -}; use sp_runtime::{ create_runtime_str, generic, impl_opaque_keys, + traits::{AccountIdLookup, BlakeTwo256, Block as BlockT, NumberFor, One, OpaqueKeys}, transaction_validity::{TransactionSource, TransactionValidity}, ApplyExtrinsicResult, }; @@ -72,9 +71,7 @@ pub use frame_support::{ construct_runtime, parameter_types, traits::{EqualPrivilegeOnly, KeyOwnerProofSystem, Randomness}, weights::{ - constants::{ - BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_REF_TIME_PER_SECOND, - }, + constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight}, Weight, WeightToFeeCoefficient, WeightToFeeCoefficients, WeightToFeePolynomial, }, StorageValue, diff --git a/runtime/gdev/src/parameters.rs b/runtime/gdev/src/parameters.rs index 881e2550ad2999fd56ee7113d446dfdc46673d89..6ff9b244d0b3e8fcee6b9c10fe5ccda747044fa7 100644 --- a/runtime/gdev/src/parameters.rs +++ b/runtime/gdev/src/parameters.rs @@ -16,11 +16,9 @@ use crate::*; use common_runtime::constants::*; -use common_runtime::{Balance, BlockNumber}; -use frame_support::parameter_types; -use frame_support::traits::EitherOfDiverse; -use frame_support::weights::constants::WEIGHT_REF_TIME_PER_SECOND; -use sp_arithmetic::Perbill; +use frame_support::{ + parameter_types, traits::EitherOfDiverse, weights::constants::WEIGHT_REF_TIME_PER_SECOND, +}; use sp_runtime::transaction_validity::TransactionPriority; parameter_types! { diff --git a/runtime/gdev/tests/balance_tests.rs b/runtime/gdev/tests/balance_tests.rs index 85c3b0ae374626dbeaae4eeded7bc03e63f5f84d..0d3955c5445073380e0871361fc7a603fcff2b1d 100644 --- a/runtime/gdev/tests/balance_tests.rs +++ b/runtime/gdev/tests/balance_tests.rs @@ -19,8 +19,7 @@ mod common; use common::*; -use frame_support::traits::StoredMap; -use frame_support::{assert_noop, assert_ok}; +use frame_support::{assert_noop, assert_ok, traits::StoredMap}; use gdev_runtime::*; use sp_core::Encode; use sp_keyring::AccountKeyring; diff --git a/runtime/gdev/tests/common/mod.rs b/runtime/gdev/tests/common/mod.rs index 95933e5250558e7b62f57f20be6a9584942ce5d6..109d30c453bc7393df26abb9aff7b2f666362d49 100644 --- a/runtime/gdev/tests/common/mod.rs +++ b/runtime/gdev/tests/common/mod.rs @@ -16,23 +16,20 @@ #![allow(dead_code, unused_imports)] -use common_runtime::constants::*; -use common_runtime::*; +use common_runtime::{constants::*, *}; use frame_support::traits::{OnFinalize, OnInitialize}; -use gdev_runtime::opaque::SessionKeys; -use gdev_runtime::*; +use gdev_runtime::{opaque::SessionKeys, *}; use pallet_authority_members::OnNewSession; use pallet_smith_members::SmithMeta; use sp_authority_discovery::AuthorityId as AuthorityDiscoveryId; -use sp_consensus_babe::{AuthorityId as BabeId, Slot}; -use sp_consensus_babe::{VrfInput, VrfProof}; +use sp_consensus_babe::{AuthorityId as BabeId, Slot, VrfInput, VrfProof}; use sp_consensus_grandpa::AuthorityId as GrandpaId; -use sp_core::crypto::IsWrappedBy; -use sp_core::sr25519; -use sp_core::{Encode, Pair, Public, H256}; +use sp_core::{crypto::IsWrappedBy, sr25519, Encode, Pair, Public, H256}; use sp_membership::MembershipData; -use sp_runtime::testing::{Digest, DigestItem}; -use sp_runtime::traits::{IdentifyAccount, Verify}; +use sp_runtime::{ + testing::{Digest, DigestItem}, + traits::{IdentifyAccount, Verify}, +}; use std::collections::BTreeMap; pub type AccountPublic = <Signature as Verify>::Signer; diff --git a/runtime/gdev/tests/integration_tests.rs b/runtime/gdev/tests/integration_tests.rs index b4ed381a485794f5da7ac96ef7f623a14c0884bc..df3f1d85a48bb6a8a30b68785dbb572b267a2ae5 100644 --- a/runtime/gdev/tests/integration_tests.rs +++ b/runtime/gdev/tests/integration_tests.rs @@ -17,15 +17,16 @@ mod common; use common::*; -use frame_support::traits::StoredMap; -use frame_support::traits::{Get, PalletInfo, StorageInfo, StorageInfoTrait}; -use frame_support::{assert_err, assert_noop, assert_ok}; -use frame_support::{StorageHasher, Twox128}; +use frame_support::{ + assert_err, assert_noop, assert_ok, + traits::{Get, PalletInfo, StorageInfo, StorageInfoTrait, StoredMap}, + StorageHasher, Twox128, +}; use gdev_runtime::*; use pallet_identity::{RevocationPayload, REVOCATION_PAYLOAD_PREFIX}; use pallet_membership::MembershipRemovalReason; use pallet_smith_members::{SmithMeta, SmithStatus}; -use sp_core::Encode; +use sp_core::{Encode, Pair}; use sp_keyring::AccountKeyring; use sp_runtime::MultiAddress; @@ -883,10 +884,10 @@ fn test_smith_certification() { fn create_dummy_session_keys() -> gdev_runtime::opaque::SessionKeys { gdev_runtime::opaque::SessionKeys { - grandpa: sp_core::ed25519::Public([0u8; 32]).into(), - babe: sp_core::sr25519::Public([0u8; 32]).into(), - im_online: sp_core::sr25519::Public([0u8; 32]).into(), - authority_discovery: sp_core::sr25519::Public([0u8; 32]).into(), + grandpa: sp_core::ed25519::Pair::generate().0.public().into(), + babe: sp_core::sr25519::Pair::generate().0.public().into(), + im_online: sp_core::sr25519::Pair::generate().0.public().into(), + authority_discovery: sp_core::sr25519::Pair::generate().0.public().into(), } } @@ -1318,7 +1319,7 @@ fn test_link_account() { Identity::link_account( frame_system::RawOrigin::Signed(alice.clone()).into(), ferdie.clone(), - signature.clone().into() + signature.into() ), pallet_identity::Error::<gdev_runtime::Runtime>::AccountNotExist ); diff --git a/runtime/gdev/tests/offences_tests.rs b/runtime/gdev/tests/offences_tests.rs index fbfbb9d308d8882355eab1e5baee138bfc2e738c..67321d19dbe10a55ff2c131201b5fc7a521d1199 100644 --- a/runtime/gdev/tests/offences_tests.rs +++ b/runtime/gdev/tests/offences_tests.rs @@ -17,9 +17,10 @@ mod common; use common::*; -use frame_support::assert_ok; -use frame_support::traits::ValidatorSet; -use frame_support::traits::ValidatorSetWithIdentification; +use frame_support::{ + assert_ok, + traits::{ValidatorSet, ValidatorSetWithIdentification}, +}; use gdev_runtime::*; use pallet_im_online as im_online; use pallet_im_online::UnresponsivenessOffence; diff --git a/runtime/gdev/tests/xt_tests.rs b/runtime/gdev/tests/xt_tests.rs index bfa840a548da96752439d63f1b2c96b64036616a..9fa7f52599813bc3005681940268359b9df66557 100644 --- a/runtime/gdev/tests/xt_tests.rs +++ b/runtime/gdev/tests/xt_tests.rs @@ -20,15 +20,14 @@ mod common; use common::*; -use frame_support::assert_ok; -use frame_support::traits::OnIdle; -use frame_support::traits::StoredMap; +use frame_support::{ + assert_ok, + traits::{OnIdle, StoredMap}, +}; use gdev_runtime::*; -use sp_core::Encode; -use sp_core::Pair; +use sp_core::{Encode, Pair}; use sp_keyring::AccountKeyring; -use sp_runtime::generic::SignedPayload; -use sp_runtime::traits::Extrinsic; +use sp_runtime::{generic::SignedPayload, traits::Extrinsic}; /// get extrinsic for given call fn get_unchecked_extrinsic( diff --git a/runtime/gtest/src/lib.rs b/runtime/gtest/src/lib.rs index 88e2ebb481ad5a2aa00542b8c5a7b5fe5dd2fb90..5d35e67fbc003f4bd6bfa7e3e1c19ac23da9e2d0 100644 --- a/runtime/gtest/src/lib.rs +++ b/runtime/gtest/src/lib.rs @@ -33,30 +33,29 @@ pub use common_runtime::{ constants::*, entities::*, handlers::*, AccountId, Address, Balance, BlockNumber, FullIdentificationOfImpl, GetCurrentEpochIndex, Hash, Header, IdtyIndex, Index, Signature, }; +use frame_support::traits::{fungible::Balanced, Imbalance}; pub use frame_system::Call as SystemCall; pub use pallet_balances::Call as BalancesCall; pub use pallet_im_online::sr25519::AuthorityId as ImOnlineId; use pallet_session::historical as session_historical; pub use pallet_timestamp::Call as TimestampCall; -use pallet_transaction_payment::CurrencyAdapter; +use pallet_transaction_payment::FungibleAdapter; pub use pallet_universal_dividend; #[cfg(any(feature = "std", test))] pub use sp_runtime::BuildStorage; pub use sp_runtime::{KeyTypeId, Perbill, Permill}; use common_runtime::IdtyNameValidatorImpl; -use frame_support::traits::Contains; -use frame_support::PalletId; +use frame_support::{traits::Contains, PalletId}; use frame_system::EnsureRoot; -use pallet_grandpa::fg_primitives; -use pallet_grandpa::{AuthorityId as GrandpaId, AuthorityList as GrandpaAuthorityList}; +use pallet_grandpa::{ + fg_primitives, AuthorityId as GrandpaId, AuthorityList as GrandpaAuthorityList, +}; use sp_api::impl_runtime_apis; use sp_core::OpaqueMetadata; -use sp_runtime::traits::{ - AccountIdLookup, BlakeTwo256, Block as BlockT, NumberFor, One, OpaqueKeys, -}; use sp_runtime::{ create_runtime_str, generic, impl_opaque_keys, + traits::{AccountIdLookup, BlakeTwo256, Block as BlockT, NumberFor, One, OpaqueKeys}, transaction_validity::{TransactionSource, TransactionValidity}, ApplyExtrinsicResult, }; @@ -71,9 +70,7 @@ pub use frame_support::{ construct_runtime, parameter_types, traits::{EqualPrivilegeOnly, KeyOwnerProofSystem, Randomness}, weights::{ - constants::{ - BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_REF_TIME_PER_SECOND, - }, + constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight}, Weight, WeightToFeeCoefficient, WeightToFeeCoefficients, WeightToFeePolynomial, }, StorageValue, diff --git a/runtime/gtest/src/parameters.rs b/runtime/gtest/src/parameters.rs index 688d3a44617c2a0f6559ba2c5416862fb014576f..c32a78c250b3942c16c0e8627e24d2477f7d24b7 100644 --- a/runtime/gtest/src/parameters.rs +++ b/runtime/gtest/src/parameters.rs @@ -16,10 +16,7 @@ use crate::*; use common_runtime::constants::*; -use common_runtime::{Balance, BlockNumber}; -use frame_support::parameter_types; -use frame_support::weights::constants::WEIGHT_REF_TIME_PER_SECOND; -use sp_arithmetic::Perbill; +use frame_support::{parameter_types, weights::constants::WEIGHT_REF_TIME_PER_SECOND}; use sp_runtime::transaction_validity::TransactionPriority; parameter_types! { diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 259cec803ea4691f467d1a1f4c489c0102725d6b..ef2a9858c719d4a43595c3641d3ad87f46581274 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] -channel = "nightly-2024-02-08" +channel = "nightly-2024-03-17" components = [ "rustfmt", "clippy", "rust-std", "cargo", "rust-src" ] targets = [ "wasm32-unknown-unknown" ] profile = "minimal" diff --git a/rustfmt.toml b/rustfmt.toml index b7ac0b7277d257f2401ec6ef04d6b8ef88ba6c5c..f2abd12533cc86c456bcebc3989330f39983ef2a 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1 +1,2 @@ +imports_granularity = "Crate" reorder_impl_items = true diff --git a/xtask/src/gen_doc.rs b/xtask/src/gen_doc.rs index 9b94cca95a7edd0b81e8a5cc1e7f115a50a63333..88d99dc61baa91ef18b8cd83734ffc6233fcfa86 100644 --- a/xtask/src/gen_doc.rs +++ b/xtask/src/gen_doc.rs @@ -19,17 +19,15 @@ use codec::Decode; use core::hash::Hash; use scale_info::form::PortableForm; use serde::Serialize; -use std::collections::HashMap; -use std::path::Path; -use std::process::Command; use std::{ + collections::HashMap, fs::File, io::{Read, Write}, + path::Path, + process::Command, }; use tera::Tera; -use weightanalyzer::analyze_weight; -use weightanalyzer::MaxBlockWeight; -use weightanalyzer::WeightInfo; +use weightanalyzer::{analyze_weight, MaxBlockWeight, WeightInfo}; fn rename_key<K, V>(h: &mut HashMap<K, V>, old_key: &K, new_key: K) where diff --git a/xtask/src/main.rs b/xtask/src/main.rs index c6b201b9d06d1b0af24dc9771305d9b51cb6d56f..d22c237fecee09ba3b523858bd9070e8dfd78013 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -21,9 +21,11 @@ mod release_runtime; use anyhow::{Context, Result}; use clap::Parser; -use std::io::{BufReader, BufWriter}; -use std::path::{Path, PathBuf}; -use std::process::Command; +use std::{ + io::{BufReader, BufWriter}, + path::{Path, PathBuf}, + process::Command, +}; const MIN_RUST_VERSION: &str = "1.58.0";