diff --git a/Cargo.lock b/Cargo.lock index 5c055b5a..22752078 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -18,7 +18,16 @@ version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b9ecd88a8c8378ca913a680cd98f0f13ac67383d35993f86c90a70e3f137816b" dependencies = [ - "gimli", + "gimli 0.26.2", +] + +[[package]] +name = "addr2line" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97" +dependencies = [ + "gimli 0.27.0", ] [[package]] @@ -68,23 +77,23 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" dependencies = [ - "getrandom 0.2.7", + "getrandom 0.2.8", "once_cell", "version_check", ] [[package]] name = "aho-corasick" -version = "0.7.19" +version = "0.7.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4f55bd91a0978cbfd91c457a164bab8b4001c833b7f323132c0a4e1922dd44e" +checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac" dependencies = [ "memchr", ] [[package]] name = "alphanet-runtime" -version = "1.2.6" +version = "1.3.0" dependencies = [ "alphanet-runtime-constants", "frame-benchmarking", @@ -154,6 +163,8 @@ dependencies = [ "ternoa-rent", "ternoa-runtime-common", "ternoa-staking-rewards", + "ternoa-tee", + "ternoa-transmission-protocols", ] [[package]] @@ -187,9 +198,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.65" +version = "1.0.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98161a4e3e2184da77bb14f02184cdd111e83bbbcc9979dfee3c44b9a85f5602" +checksum = "2cb2f989d18dd141ab8ae82f64d1a8cdd37e0840f73a406896cf5e99502fab61" [[package]] name = "approx" @@ -202,9 +213,9 @@ dependencies = [ [[package]] name = "array-bytes" -version = "4.1.0" +version = "4.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a913633b0c922e6b745072795f50d90ebea78ba31a57e2ac8c2fc7b50950949" +checksum = "f52f63c5c1316a16a4b35eaac8b76a98248961a533f061684cb2a7cb0eafb6c6" [[package]] name = "arrayref" @@ -241,9 +252,9 @@ checksum = "e22d1f4b888c298a027c99dc9048015fac177587de20fc30232a057dfbe24a21" [[package]] name = "async-channel" -version = "1.7.1" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e14485364214912d3b19cc3435dde4df66065127f05fa0d75c712f36f12c2f28" +checksum = "cf46fee83e5ccffc220104713af3292ff9bc7c64c7de289f66dae8e38d826833" dependencies = [ "concurrent-queue", "event-listener", @@ -252,23 +263,23 @@ dependencies = [ [[package]] name = "async-executor" -version = "1.4.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "871f9bb5e0a22eeb7e8cf16641feb87c9dc67032ccf8ff49e772eb9941d3a965" +checksum = "17adb73da160dfb475c183343c8cccd80721ea5a605d3eb57125f0a7b7a92d0b" dependencies = [ + "async-lock", "async-task", "concurrent-queue", "fastrand", "futures-lite", - "once_cell", "slab", ] [[package]] name = "async-global-executor" -version = "2.3.0" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0da5b41ee986eed3f524c380e6d64965aea573882a8907682ad100f7859305ca" +checksum = "f1b6f5d7df27bd294849f8eec66ecfc63d11814df7a4f5d74168a2394467b776" dependencies = [ "async-channel", "async-executor", @@ -281,49 +292,50 @@ dependencies = [ [[package]] name = "async-io" -version = "1.9.0" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83e21f3a490c72b3b0cf44962180e60045de2925d8dff97918f7ee43c8f637c7" +checksum = "8c374dda1ed3e7d8f0d9ba58715f924862c63eae6849c92d3a18e7fbde9e2794" dependencies = [ + "async-lock", "autocfg", "concurrent-queue", "futures-lite", "libc", "log", - "once_cell", "parking", "polling", "slab", "socket2", "waker-fn", - "winapi", + "windows-sys 0.42.0", ] [[package]] name = "async-lock" -version = "2.5.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e97a171d191782fba31bb902b14ad94e24a68145032b7eedf871ab0bc0d077b6" +checksum = "c8101efe8695a6c17e02911402145357e718ac92d3ff88ae8419e84b1707b685" dependencies = [ "event-listener", + "futures-lite", ] [[package]] name = "async-process" -version = "1.5.0" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02111fd8655a613c25069ea89fc8d9bb89331fa77486eb3bc059ee757cfa481c" +checksum = "6381ead98388605d0d9ff86371043b5aa922a3905824244de40dc263a14fcba4" dependencies = [ "async-io", + "async-lock", "autocfg", "blocking", "cfg-if", "event-listener", "futures-lite", "libc", - "once_cell", "signal-hook", - "winapi", + "windows-sys 0.42.0", ] [[package]] @@ -376,9 +388,9 @@ checksum = "7a40729d2133846d9ed0ea60a8b9541bccddab49cd30f0715a1da672fe9a2524" [[package]] name = "async-trait" -version = "0.1.57" +version = "0.1.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76464446b8bc32758d7e88ee1a804d9914cd9b1cb264c029899680b0be29826f" +checksum = "677d1d8ab452a3936018a687b20e6f7cf5363d713b732b8884001317b0e48aa3" dependencies = [ "proc-macro2", "quote", @@ -387,9 +399,9 @@ dependencies = [ [[package]] name = "asynchronous-codec" -version = "0.6.0" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0de5164e5edbf51c45fb8c2d9664ae1c095cce1b265ecf7569093c0d66ef690" +checksum = "06a0daa378f5fd10634e44b0a29b2a87b890657658e072a30d6f26e57ddee182" dependencies = [ "bytes", "futures-sink", @@ -410,7 +422,7 @@ version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" dependencies = [ - "hermit-abi", + "hermit-abi 0.1.19", "libc", "winapi", ] @@ -423,16 +435,16 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "backtrace" -version = "0.3.66" +version = "0.3.67" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cab84319d616cfb654d03394f38ab7e6f0919e181b1b57e1fd15e7fb4077d9a7" +checksum = "233d376d6d185f2a3093e58f283f60f880315b6c60075b01f36b3b85154564ca" dependencies = [ - "addr2line", + "addr2line 0.19.0", "cc", "cfg-if", "libc", "miniz_oxide", - "object", + "object 0.30.0", "rustc-demangle", ] @@ -456,15 +468,15 @@ checksum = "6107fe1be6682a68940da878d9e9f5e90ca5745b3dec9fd1bb393c8777d4f581" [[package]] name = "base64" -version = "0.13.0" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" +checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" [[package]] name = "base64ct" -version = "1.5.2" +version = "1.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea2b2456fd614d856680dcd9fcc660a51a820fa09daef2e49772b56a193c8474" +checksum = "b645a089122eccb6111b4f81cbc1a49f5900ac4666bb93ac027feaecf15607bf" [[package]] name = "beef" @@ -529,11 +541,11 @@ dependencies = [ [[package]] name = "blake2" -version = "0.10.4" +version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9cf849ee05b2ee5fba5e36f97ff8ec2533916700fc0758d40d92136a42f3388" +checksum = "46502ad458c9a52b69d4d4d32775c788b7a1b85e8bc9d482d92250fc0e3f8efe" dependencies = [ - "digest 0.10.5", + "digest 0.10.6", ] [[package]] @@ -543,7 +555,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d6d530bdd2d52966a6d03b7a964add7ae1a288d25214066fd4b600f0f796400" dependencies = [ "arrayvec 0.4.12", - "constant_time_eq", + "constant_time_eq 0.1.5", ] [[package]] @@ -554,7 +566,7 @@ checksum = "72936ee4afc7f8f736d1c38383b56480b5497b4617b4a77bdbf1d2ababc76127" dependencies = [ "arrayref", "arrayvec 0.7.2", - "constant_time_eq", + "constant_time_eq 0.1.5", ] [[package]] @@ -565,20 +577,20 @@ checksum = "db539cc2b5f6003621f1cd9ef92d7ded8ea5232c7de0f9faa2de251cd98730d4" dependencies = [ "arrayref", "arrayvec 0.7.2", - "constant_time_eq", + "constant_time_eq 0.1.5", ] [[package]] name = "blake3" -version = "1.3.1" +version = "1.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a08e53fc5a564bb15bfe6fae56bd71522205f1f91893f9c0116edad6496c183f" +checksum = "42ae2468a89544a466886840aa467a25b766499f4f04bf7d9fcd10ecee9fccef" dependencies = [ "arrayref", "arrayvec 0.7.2", "cc", "cfg-if", - "constant_time_eq", + "constant_time_eq 0.2.4", ] [[package]] @@ -622,16 +634,16 @@ dependencies = [ [[package]] name = "blocking" -version = "1.2.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6ccb65d468978a086b69884437ded69a90faab3bbe6e67f242173ea728acccc" +checksum = "3c67b173a56acffd6d2326fb7ab938ba0b00a71480e14902b2591c87bc5741e8" dependencies = [ "async-channel", + "async-lock", "async-task", "atomic-waker", "fastrand", "futures-lite", - "once_cell", ] [[package]] @@ -660,15 +672,15 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.11.0" +version = "3.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1ad822118d20d2c234f427000d5acc36eabe1e29a348c89b63dd60b13f28e5d" +checksum = "572f695136211188308f16ad2ca5c851a712c464060ae6974944458eb83880ba" [[package]] name = "byte-slice-cast" -version = "1.2.1" +version = "1.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87c5fdd0166095e1d463fc6cc01aa8ce547ad77a4e84d42eb6762b084e28067e" +checksum = "c3ac9f8b63eca6fd385229b3675f6cc0dc5c8a5c8a54a59d4f52ffd670d87b0c" [[package]] name = "byte-tools" @@ -684,9 +696,9 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" [[package]] name = "bytes" -version = "1.2.1" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec8a7b6a70fde80372154c65702f00a0f56f3e1c36abbc6c440484be248856db" +checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c" [[package]] name = "bzip2-sys" @@ -699,12 +711,6 @@ dependencies = [ "pkg-config", ] -[[package]] -name = "cache-padded" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1db59621ec70f09c5e9b597b220c7a2b43611f4710dc03ceb8748637775692c" - [[package]] name = "camino" version = "1.1.1" @@ -731,16 +737,16 @@ checksum = "4acbb09d9ee8e23699b9634375c72795d095bf268439da88562cf9b501f181fa" dependencies = [ "camino", "cargo-platform", - "semver 1.0.14", + "semver 1.0.16", "serde", "serde_json", ] [[package]] name = "cc" -version = "1.0.73" +version = "1.0.78" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11" +checksum = "a20104e2335ce8a659d6dd92a51a767a0c062599c73b343fd152cb401e828c3d" dependencies = [ "jobserver", ] @@ -802,9 +808,9 @@ dependencies = [ [[package]] name = "chrono" -version = "0.4.22" +version = "0.4.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfd4d1b31faaa3a89d7934dbded3111da0d2ef28e3ebccdb4f0179f5929d1ef1" +checksum = "16b0a3d9ed01224b22057780a37bb8c5dbfe1be8ba48678e7bf57ec4b385411f" dependencies = [ "iana-time-zone", "js-sys", @@ -855,14 +861,14 @@ checksum = "fa2e27ae6ab525c3d369ded447057bca5438d86dc3a68f6faafb8269ba82ebf3" dependencies = [ "glob", "libc", - "libloading 0.7.3", + "libloading 0.7.4", ] [[package]] name = "clap" -version = "3.2.22" +version = "3.2.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86447ad904c7fb335a790c9d7fe3d0d971dc523b8ccd1561a520de9a85302750" +checksum = "71655c45cb9845d3270c9d6df84ebe72b4dad3c2ba3f7023ad47c144e4e473a5" dependencies = [ "atty", "bitflags", @@ -899,9 +905,9 @@ dependencies = [ [[package]] name = "cmake" -version = "0.1.48" +version = "0.1.49" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8ad8cef104ac57b68b89df3208164d228503abbdce70f6880ffa3d970e7443a" +checksum = "db34956e100b30725f2eb215f90d4871051239535632f84fea3bc92722c66b7c" dependencies = [ "cc", ] @@ -918,9 +924,9 @@ dependencies = [ [[package]] name = "comfy-table" -version = "6.1.1" +version = "6.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b3d16bb3da60be2f7c7acfc438f2ae6f3496897ce68c291d0509bb67b4e248e" +checksum = "6e7b787b0dc42e8111badfdbe4c3059158ccb2db8780352fa1b01e8ccf45cc4d" dependencies = [ "strum", "strum_macros", @@ -929,11 +935,11 @@ dependencies = [ [[package]] name = "concurrent-queue" -version = "1.2.4" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af4780a44ab5696ea9e28294517f1fffb421a83a25af521333c838635509db9c" +checksum = "bd7bef69dc86e3c610e4e7aed41035e2a7ed12e72dd7530f61327a6579a4390b" dependencies = [ - "cache-padded", + "crossbeam-utils", ] [[package]] @@ -948,6 +954,12 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" +[[package]] +name = "constant_time_eq" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3ad85c1f65dc7b37604eb0e89748faf0b9653065f2a8ef69f96a687ec1e9279" + [[package]] name = "core-foundation" version = "0.9.3" @@ -993,18 +1005,18 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.88.1" +version = "0.88.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44409ccf2d0f663920cab563d2b79fcd6b2e9a2bcc6e929fef76c8f82ad6c17a" +checksum = "52056f6d0584484b57fa6c1a65c1fcb15f3780d8b6a758426d9e3084169b2ddd" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.88.1" +version = "0.88.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98de2018ad96eb97f621f7d6b900a0cc661aec8d02ea4a50e56ecb48e5a2fcaf" +checksum = "18fed94c8770dc25d01154c3ffa64ed0b3ba9d583736f305fed7beebe5d9cf74" dependencies = [ "arrayvec 0.7.2", "bumpalo", @@ -1013,7 +1025,7 @@ dependencies = [ "cranelift-codegen-shared", "cranelift-entity", "cranelift-isle", - "gimli", + "gimli 0.26.2", "log", "regalloc2", "smallvec", @@ -1022,33 +1034,33 @@ dependencies = [ [[package]] name = "cranelift-codegen-meta" -version = "0.88.1" +version = "0.88.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5287ce36e6c4758fbaf298bd1a8697ad97a4f2375a3d1b61142ea538db4877e5" +checksum = "1c451b81faf237d11c7e4f3165eeb6bac61112762c5cfe7b4c0fb7241474358f" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.88.1" +version = "0.88.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2855c24219e2f08827f3f4ffb2da92e134ae8d8ecc185b11ec8f9878cf5f588e" +checksum = "e7c940133198426d26128f08be2b40b0bd117b84771fd36798969c4d712d81fc" [[package]] name = "cranelift-entity" -version = "0.88.1" +version = "0.88.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b65673279d75d34bf11af9660ae2dbd1c22e6d28f163f5c72f4e1dc56d56103" +checksum = "87a0f1b2fdc18776956370cf8d9b009ded3f855350c480c1c52142510961f352" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.88.1" +version = "0.88.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ed2b3d7a4751163f6c4a349205ab1b7d9c00eecf19dcea48592ef1f7688eefc" +checksum = "34897538b36b216cc8dd324e73263596d51b8cf610da6498322838b2546baf8a" dependencies = [ "cranelift-codegen", "log", @@ -1058,15 +1070,15 @@ dependencies = [ [[package]] name = "cranelift-isle" -version = "0.88.1" +version = "0.88.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3be64cecea9d90105fc6a2ba2d003e98c867c1d6c4c86cc878f97ad9fb916293" +checksum = "1b2629a569fae540f16a76b70afcc87ad7decb38dc28fa6c648ac73b51e78470" [[package]] name = "cranelift-native" -version = "0.88.1" +version = "0.88.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4a03a6ac1b063e416ca4b93f6247978c991475e8271465340caa6f92f3c16a4" +checksum = "20937dab4e14d3e225c5adfc9c7106bafd4ac669bdb43027b911ff794c6fb318" dependencies = [ "cranelift-codegen", "libc", @@ -1075,9 +1087,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.88.1" +version = "0.88.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c699873f7b30bc5f20dd03a796b4183e073a46616c91704792ec35e45d13f913" +checksum = "80fc2288957a94fd342a015811479de1837850924166d1f1856d8406e6f3609b" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -1121,22 +1133,22 @@ dependencies = [ [[package]] name = "crossbeam-epoch" -version = "0.9.11" +version = "0.9.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f916dfc5d356b0ed9dae65f1db9fc9770aa2851d2662b988ccf4fe3516e86348" +checksum = "01a9af1f4c2ef74bb8aa1f7e19706bc72d03598c8a570bb5de72243c7a9d9d5a" dependencies = [ "autocfg", "cfg-if", "crossbeam-utils", - "memoffset", + "memoffset 0.7.1", "scopeguard", ] [[package]] name = "crossbeam-utils" -version = "0.8.12" +version = "0.8.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edbafec5fa1f196ca66527c1b12c2ec4745ca14b50f1ad8f9f6f720b55d11fac" +checksum = "4fb766fa798726286dbbb842f174001dab8abc7b627a1dd86e0b7222a95d929f" dependencies = [ "cfg-if", ] @@ -1191,9 +1203,9 @@ dependencies = [ [[package]] name = "ctor" -version = "0.1.23" +version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdffe87e1d521a10f9696f833fe502293ea446d7f256c06128293a4119bdf4cb" +checksum = "6d2301688392eb071b0bf1a37be05c469d3cc4dbbd95df672fe28ab021e6a096" dependencies = [ "quote", "syn", @@ -1247,22 +1259,23 @@ dependencies = [ [[package]] name = "curve25519-dalek" -version = "4.0.0-pre.1" +version = "4.0.0-pre.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4033478fbf70d6acf2655ac70da91ee65852d69daf7a67bf7a2f518fb47aafcf" +checksum = "67bc65846be335cb20f4e52d49a437b773a2c1fdb42b19fc84e79e6f6771536f" dependencies = [ - "byteorder", - "digest 0.9.0", - "rand_core 0.6.4", + "cfg-if", + "fiat-crypto", + "packed_simd_2", + "platforms 3.0.2", "subtle", "zeroize", ] [[package]] name = "cxx" -version = "1.0.79" +version = "1.0.85" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f83d0ebf42c6eafb8d7c52f7e5f2d3003b89c7aa4fd2b79229209459a849af8" +checksum = "5add3fc1717409d029b20c5b6903fc0c0b02fa6741d820054f4a2efa5e5816fd" dependencies = [ "cc", "cxxbridge-flags", @@ -1272,9 +1285,9 @@ dependencies = [ [[package]] name = "cxx-build" -version = "1.0.79" +version = "1.0.85" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07d050484b55975889284352b0ffc2ecbda25c0c55978017c132b29ba0818a86" +checksum = "b4c87959ba14bc6fbc61df77c3fcfe180fc32b93538c4f1031dd802ccb5f2ff0" dependencies = [ "cc", "codespan-reporting", @@ -1287,15 +1300,15 @@ dependencies = [ [[package]] name = "cxxbridge-flags" -version = "1.0.79" +version = "1.0.85" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99d2199b00553eda8012dfec8d3b1c75fce747cf27c169a270b3b99e3448ab78" +checksum = "69a3e162fde4e594ed2b07d0f83c6c67b745e7f28ce58c6df5e6b6bef99dfb59" [[package]] name = "cxxbridge-macro" -version = "1.0.79" +version = "1.0.85" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcb67a6de1f602736dd7eaead0080cf3435df806c61b24b13328db128c58868f" +checksum = "3e7e2adeb6a0d4a282e581096b06e1791532b7d576dcde5ccd9382acf55db8e6" dependencies = [ "proc-macro2", "quote", @@ -1304,9 +1317,9 @@ dependencies = [ [[package]] name = "data-encoding" -version = "2.3.2" +version = "2.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ee2393c4a91429dffb4bedf19f4d6abf27d8a732c8ce4980305d782e5426d57" +checksum = "23d8666cb01533c39dde32bcbab8e227b4ed6679b2c925eba05feabea39508fb" [[package]] name = "data-encoding-macro" @@ -1368,9 +1381,9 @@ dependencies = [ [[package]] name = "digest" -version = "0.10.5" +version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adfbc57365a37acbd2ebf2b64d7e69bb766e2fea813521ed536f5d0520dcf86c" +checksum = "8168378f4e5023e7218c89c891c0fd8ecdb5e5e4f18cb78f38cf245dd021e76f" dependencies = [ "block-buffer 0.10.3", "crypto-common", @@ -1436,9 +1449,9 @@ checksum = "9ea835d29036a4087793836fa931b08837ad5e957da9e23886b29586fb9b6650" [[package]] name = "dtoa" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8a6eee2d5d0d113f015688310da018bd1d864d86bd567c8fca9c266889e1bfa" +checksum = "c00704156a7de8df8da0911424e30c2049957b0a714542a44e05fe693dd85313" [[package]] name = "dyn-clonable" @@ -1463,9 +1476,9 @@ dependencies = [ [[package]] name = "dyn-clone" -version = "1.0.9" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f94fa09c2aeea5b8839e414b7b841bf429fd25b9c522116ac97ee87856d88b2" +checksum = "c9b0705efd4599c15a38151f4721f7bc388306f61084d3bfd50bd07fbca5cb60" [[package]] name = "ecdsa" @@ -1504,15 +1517,15 @@ dependencies = [ [[package]] name = "ed25519-zebra" -version = "3.0.0" +version = "3.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "403ef3e961ab98f0ba902771d29f842058578bb1ce7e3c59dad5a6a93e784c69" +checksum = "7c24f403d068ad0b359e577a77f92392118be3f3c927538f2bb544a5ecd828c6" dependencies = [ "curve25519-dalek 3.2.0", + "hashbrown", "hex", "rand_core 0.6.4", "sha2 0.9.9", - "thiserror", "zeroize", ] @@ -1574,9 +1587,9 @@ dependencies = [ [[package]] name = "env_logger" -version = "0.9.1" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c90bf5f19754d10198ccb95b70664fc925bd1fc090a0fd9a6ebc54acc8cd6272" +checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" dependencies = [ "atty", "humantime", @@ -1587,9 +1600,9 @@ dependencies = [ [[package]] name = "environmental" -version = "1.1.3" +version = "1.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68b91989ae21441195d7d9b9993a2f9295c7e1a8c96255d8b729accddc124797" +checksum = "e48c92028aaa870e83d51c64e5d4e0b6981b360c522198c23959f219a4e1b15b" [[package]] name = "errno" @@ -1624,7 +1637,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e43f2f1833d64e33f15592464d6fdd70f349dda7b1a53088eb83cd94014008c5" dependencies = [ - "futures 0.3.24", + "futures 0.3.25", ] [[package]] @@ -1667,6 +1680,12 @@ dependencies = [ "subtle", ] +[[package]] +name = "fiat-crypto" +version = "0.1.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a214f5bb88731d436478f3ae1f8a277b62124089ba9fb67f4f93fb100ef73c90" + [[package]] name = "file-per-thread-logger" version = "0.1.5" @@ -1679,14 +1698,14 @@ dependencies = [ [[package]] name = "filetime" -version = "0.2.17" +version = "0.2.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e94a7bbaa59354bc20dd75b67f23e2797b4490e9d6928203fb105c79e448c86c" +checksum = "4e884668cd0c7480504233e951174ddc3b382f7c2666e3b7310b5c4e7b0c37f9" dependencies = [ "cfg-if", "libc", "redox_syscall", - "windows-sys 0.36.1", + "windows-sys 0.42.0", ] [[package]] @@ -1696,7 +1715,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b22349c6a11563a202d95772a68e0fcf56119e74ea8a2a19cf2301460fcd0df5" dependencies = [ "either", - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "log", "num-traits", @@ -1725,9 +1744,9 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flate2" -version = "1.0.24" +version = "1.0.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f82b0f4c27ad9f8bfd1f3208d882da2b09c301bc1c828fd3a00d0216d2fbbff6" +checksum = "a8a2db397cb1c8772f31494cb8917e48cd1e64f0fa7efac59fbd741a0a8ce841" dependencies = [ "crc32fast", "libz-sys", @@ -2051,9 +2070,9 @@ checksum = "3a471a38ef8ed83cd6e40aa59c1ffe17db6855c18e3604d9c4ed8c08ebc28678" [[package]] name = "futures" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f21eda599937fba36daeb58a22e8f5cee2d14c4a17b5b7739c7c8e5e3b8230c" +checksum = "38390104763dc37a5145a53c29c63c1290b5d316d6086ec32c293f6736051bb0" dependencies = [ "futures-channel", "futures-core", @@ -2066,9 +2085,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30bdd20c28fadd505d0fd6712cdfcb0d4b5648baf45faef7f852afb2399bb050" +checksum = "52ba265a92256105f45b719605a571ffe2d1f0fea3807304b522c1d778f79eed" dependencies = [ "futures-core", "futures-sink", @@ -2076,15 +2095,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e5aa3de05362c3fb88de6531e6296e85cde7739cccad4b9dfeeb7f6ebce56bf" +checksum = "04909a7a7e4633ae6c4a9ab280aeb86da1236243a77b694a49eacd659a4bd3ac" [[package]] name = "futures-executor" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ff63c23854bee61b6e9cd331d523909f238fc7636290b96826e9cfa5faa00ab" +checksum = "7acc85df6714c176ab5edf386123fafe217be88c0840ec11f199441134a074e2" dependencies = [ "futures-core", "futures-task", @@ -2094,9 +2113,9 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbf4d2a7a308fd4578637c0b17c7e1c7ba127b8f6ba00b29f717e9655d85eb68" +checksum = "00f5fb52a06bdcadeb54e8d3671f8888a39697dcb0b81b23b55174030427f4eb" [[package]] name = "futures-lite" @@ -2115,9 +2134,9 @@ dependencies = [ [[package]] name = "futures-macro" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42cd15d1c7456c04dbdf7e88bcd69760d74f3a798d6444e16974b505b0e62f17" +checksum = "bdfb8ce053d86b91919aad980c220b1fb8401a9394410e1c289ed7e66b61835d" dependencies = [ "proc-macro2", "quote", @@ -2137,15 +2156,15 @@ dependencies = [ [[package]] name = "futures-sink" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21b20ba5a92e727ba30e72834706623d94ac93a725410b6a6b6fbc1b07f7ba56" +checksum = "39c15cf1a4aa79df40f1bb462fb39676d0ad9e366c2a33b590d7c66f4f81fcf9" [[package]] name = "futures-task" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6508c467c73851293f390476d4491cf4d227dbabcd4170f3bb6044959b294f1" +checksum = "2ffb393ac5d9a6eaa9d3fdf37ae2776656b706e200c8e16b1bdb227f5198e6ea" [[package]] name = "futures-timer" @@ -2155,9 +2174,9 @@ checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c" [[package]] name = "futures-util" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44fb6cb1be61cc1d2e43b262516aafcf63b241cffdb1d3fa115f91d9c7b09c90" +checksum = "197676987abd2f9cadff84926f410af1c183608d36641465df73ae8211dc65d6" dependencies = [ "futures 0.1.31", "futures-channel", @@ -2225,9 +2244,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.7" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4eb1a864a501629691edf6c15a593b7a51eebaa1e8468e9ddc623de7c9b58ec6" +checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" dependencies = [ "cfg-if", "libc", @@ -2255,6 +2274,12 @@ dependencies = [ "stable_deref_trait", ] +[[package]] +name = "gimli" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dec7af912d60cdbd3677c1af9352ebae6fb8394d165568a2234df0fa00f87793" + [[package]] name = "glob" version = "0.3.0" @@ -2276,9 +2301,9 @@ dependencies = [ [[package]] name = "gloo-timers" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fb7d06c1c8cc2a29bee7ec961009a0b2caa0793ee4900c2ffb348734ba1c8f9" +checksum = "98c4a8d6391675c6b2ee1a6c8d06e8e2d03605c44cec1270675985a4c2a5500b" dependencies = [ "futures-channel", "futures-core", @@ -2299,9 +2324,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.14" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ca32592cf21ac7ccab1825cd87f6c9b3d9022c44d086172ed0966bec8af30be" +checksum = "5f9f29bc9dda355256b2916cf526ab02ce0aeaaaf2bad60d65ef3f12f11dd0f4" dependencies = [ "bytes", "fnv", @@ -2318,9 +2343,9 @@ dependencies = [ [[package]] name = "handlebars" -version = "4.3.5" +version = "4.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "433e4ab33f1213cdc25b5fa45c76881240cfe79284cf2b395e8b9e312a30a2fd" +checksum = "035ef95d03713f2c347a72547b7cd38cbc9af7cd51e6099fb62d586d4a6dee3a" dependencies = [ "log", "pest", @@ -2369,6 +2394,15 @@ dependencies = [ "libc", ] +[[package]] +name = "hermit-abi" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" +dependencies = [ + "libc", +] + [[package]] name = "hex" version = "0.4.3" @@ -2471,9 +2505,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "0.14.20" +version = "0.14.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02c929dc5c39e335a03c405292728118860721b10190d98c2a0f0efd5baafbac" +checksum = "034711faac9d2166cb1baf1a2fb0b60b1f277f8492fd72176c17f3515e1abd3c" dependencies = [ "bytes", "futures-channel", @@ -2495,9 +2529,9 @@ dependencies = [ [[package]] name = "hyper-rustls" -version = "0.23.0" +version = "0.23.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d87c48c02e0dc5e3b849a2041db3029fd066650f8f717c07bf8ed78ccb895cac" +checksum = "1788965e61b367cd03a62950836d5cd41560c3577d90e40e0819373194d1661c" dependencies = [ "http", "hyper", @@ -2510,9 +2544,9 @@ dependencies = [ [[package]] name = "iana-time-zone" -version = "0.1.51" +version = "0.1.53" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5a6ef98976b22b3b7f2f3a806f858cb862044cfa66805aa3ad84cb3d3b785ed" +checksum = "64c122667b287044802d6ce17ee2ddf13207ed924c712de9a66a5814d5b64765" dependencies = [ "android_system_properties", "core-foundation-sys", @@ -2572,7 +2606,7 @@ dependencies = [ "async-io", "core-foundation", "fnv", - "futures 0.3.24", + "futures 0.3.25", "if-addrs", "ipnet", "log", @@ -2612,9 +2646,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "1.9.1" +version = "1.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e" +checksum = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399" dependencies = [ "autocfg", "hashbrown", @@ -2650,9 +2684,19 @@ dependencies = [ [[package]] name = "io-lifetimes" -version = "0.7.3" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ce5ef949d49ee85593fc4d3f3f95ad61657076395cbbce23e2121fc5542074" + +[[package]] +name = "io-lifetimes" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ea37f355c05dde75b84bba2d767906ad522e97cd9e2eef2be7a4ab7fb442c06" +checksum = "46112a93252b123d31a119a8d1a1ac19deac4fac6e0e8b0df58f0d4e5870e63c" +dependencies = [ + "libc", + "windows-sys 0.42.0", +] [[package]] name = "ip_network" @@ -2662,9 +2706,9 @@ checksum = "aa2f047c0a98b2f299aa5d6d7088443570faae494e9ae1305e48be000c9e0eb1" [[package]] name = "ipconfig" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "723519edce41262b05d4143ceb95050e4c614f483e78e9fd9e39a8275a84ad98" +checksum = "bd302af1b90f2463a98fa5ad469fc212c8e3175a41c3068601bfa2727591c5be" dependencies = [ "socket2", "widestring", @@ -2674,9 +2718,9 @@ dependencies = [ [[package]] name = "ipnet" -version = "2.5.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "879d54834c8c76457ef4293a689b2a8c59b076067ad77b15efafbb05f92a592b" +checksum = "11b0d96e660696543b251e58030cf9787df56da39dab19ad60eae7353040917e" [[package]] name = "itertools" @@ -2689,9 +2733,9 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4217ad341ebadf8d8e724e264f13e593e0648f5b3e94b3896a5df283be015ecc" +checksum = "fad582f4b9e86b6caa621cabeb0963332d92eea04729ab12892c2533951e6440" [[package]] name = "jobserver" @@ -2869,9 +2913,12 @@ dependencies = [ [[package]] name = "keccak" -version = "0.1.2" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9b7d56ba4a8344d6be9729995e6b06f928af29998cdf79fe390cbf6b1fee838" +checksum = "3afef3b6eff9ce9d8ff9b3601125eec7f0c8cbac7abd14f355d053fa56c98768" +dependencies = [ + "cpufeatures", +] [[package]] name = "kv-log-macro" @@ -2935,9 +2982,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.135" +version = "0.2.139" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68783febc7782c6c5cb401fbda4de5a9898be1762314da0bb2c10ced61f18b0c" +checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" [[package]] name = "libloading" @@ -2951,9 +2998,9 @@ dependencies = [ [[package]] name = "libloading" -version = "0.7.3" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efbc0f03f9a775e9f6aed295c6a1ba2253c5757a9e03d55c6caa46a681abcddd" +checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" dependencies = [ "cfg-if", "winapi", @@ -2961,9 +3008,15 @@ dependencies = [ [[package]] name = "libm" -version = "0.2.5" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "292a948cd991e376cf75541fe5b97a1081d713c618b4f1b9500f8844e49eb565" +checksum = "7fc7aa29613bd6a620df431842069224d8bc9011086b1db4c0e0cd47fa03ec9a" + +[[package]] +name = "libm" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "348108ab3fba42ec82ff6e9564fc4ca0247bdccdc68dd8af9764bbc79c3c8ffb" [[package]] name = "libp2p" @@ -2972,9 +3025,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "81327106887e42d004fbdab1fef93675be2e2e07c1b95fce45e2cc813485611d" dependencies = [ "bytes", - "futures 0.3.24", + "futures 0.3.25", "futures-timer", - "getrandom 0.2.7", + "getrandom 0.2.8", "instant", "lazy_static", "libp2p-autonat", @@ -3016,7 +3069,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4decc51f3573653a9f4ecacb31b1b922dd20c25a6322bb15318ec04287ec46f9" dependencies = [ "async-trait", - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "instant", "libp2p-core", @@ -3039,7 +3092,7 @@ dependencies = [ "ed25519-dalek", "either", "fnv", - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "instant", "lazy_static", @@ -3070,7 +3123,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0183dc2a3da1fbbf85e5b6cf51217f55b14f5daea0c455a9536eef646bfec71" dependencies = [ "flate2", - "futures 0.3.24", + "futures 0.3.25", "libp2p-core", ] @@ -3081,7 +3134,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6cbf54723250fa5d521383be789bf60efdabe6bacfb443f87da261019a49b4b5" dependencies = [ "async-std-resolver", - "futures 0.3.24", + "futures 0.3.25", "libp2p-core", "log", "parking_lot 0.12.1", @@ -3097,7 +3150,7 @@ checksum = "98a4b6ffd53e355775d24b76f583fdda54b3284806f678499b57913adb94f231" dependencies = [ "cuckoofilter", "fnv", - "futures 0.3.24", + "futures 0.3.25", "libp2p-core", "libp2p-swarm", "log", @@ -3118,7 +3171,7 @@ dependencies = [ "byteorder", "bytes", "fnv", - "futures 0.3.24", + "futures 0.3.25", "hex_fmt", "instant", "libp2p-core", @@ -3142,7 +3195,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c50b585518f8efd06f93ac2f976bd672e17cdac794644b3117edd078e96bda06" dependencies = [ "asynchronous-codec", - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "libp2p-core", "libp2p-swarm", @@ -3167,7 +3220,7 @@ dependencies = [ "bytes", "either", "fnv", - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "instant", "libp2p-core", @@ -3193,7 +3246,7 @@ dependencies = [ "async-io", "data-encoding", "dns-parser", - "futures 0.3.24", + "futures 0.3.25", "if-watch", "lazy_static", "libp2p-core", @@ -3229,7 +3282,7 @@ checksum = "61fd1b20638ec209c5075dfb2e8ce6a7ea4ec3cd3ad7b77f7a477c06d53322e2" dependencies = [ "asynchronous-codec", "bytes", - "futures 0.3.24", + "futures 0.3.25", "libp2p-core", "log", "nohash-hasher", @@ -3247,7 +3300,7 @@ checksum = "762408cb5d84b49a600422d7f9a42c18012d8da6ebcd570f9a4a4290ba41fb6f" dependencies = [ "bytes", "curve25519-dalek 3.2.0", - "futures 0.3.24", + "futures 0.3.25", "lazy_static", "libp2p-core", "log", @@ -3267,7 +3320,7 @@ version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "100a6934ae1dbf8a693a4e7dd1d730fd60b774dafc45688ed63b554497c6c925" dependencies = [ - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "instant", "libp2p-core", @@ -3285,7 +3338,7 @@ checksum = "be27bf0820a6238a4e06365b096d428271cce85a129cf16f2fe9eb1610c4df86" dependencies = [ "asynchronous-codec", "bytes", - "futures 0.3.24", + "futures 0.3.25", "libp2p-core", "log", "prost 0.10.4", @@ -3296,11 +3349,11 @@ dependencies = [ [[package]] name = "libp2p-pnet" -version = "0.22.1" +version = "0.22.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a5a702574223aa55d8878bdc8bf55c84a6086f87ddaddc28ce730b4caa81538" +checksum = "de160c5631696cea22be326c19bd9d306e254c4964945263aea10f25f6e0864e" dependencies = [ - "futures 0.3.24", + "futures 0.3.25", "log", "pin-project", "rand 0.8.5", @@ -3317,7 +3370,7 @@ dependencies = [ "asynchronous-codec", "bytes", "either", - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "instant", "libp2p-core", @@ -3342,7 +3395,7 @@ checksum = "9511c9672ba33284838e349623319c8cad2d18cfad243ae46c6b7e8a2982ea4e" dependencies = [ "asynchronous-codec", "bimap", - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "instant", "libp2p-core", @@ -3365,7 +3418,7 @@ checksum = "508a189e2795d892c8f5c1fa1e9e0b1845d32d7b0b249dbf7b05b18811361843" dependencies = [ "async-trait", "bytes", - "futures 0.3.24", + "futures 0.3.25", "instant", "libp2p-core", "libp2p-swarm", @@ -3383,7 +3436,7 @@ checksum = "95ac5be6c2de2d1ff3f7693fda6faf8a827b1f3e808202277783fea9f527d114" dependencies = [ "either", "fnv", - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "instant", "libp2p-core", @@ -3412,7 +3465,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a6771dc19aa3c65d6af9a8c65222bfc8fcd446630ddca487acd161fa6096f3b" dependencies = [ "async-io", - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "if-watch", "ipnet", @@ -3429,7 +3482,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d125e3e5f0d58f3c6ac21815b20cf4b6a88b8db9dc26368ea821838f4161fd4d" dependencies = [ "async-std", - "futures 0.3.24", + "futures 0.3.25", "libp2p-core", "log", ] @@ -3440,7 +3493,7 @@ version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec894790eec3c1608f8d1a8a0bdf0dbeb79ed4de2dce964222011c2896dfa05a" dependencies = [ - "futures 0.3.24", + "futures 0.3.25", "js-sys", "libp2p-core", "parity-send-wrapper", @@ -3455,7 +3508,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9808e57e81be76ff841c106b4c5974fb4d41a233a7bdd2afbf1687ac6def3818" dependencies = [ "either", - "futures 0.3.24", + "futures 0.3.25", "futures-rustls", "libp2p-core", "log", @@ -3473,7 +3526,7 @@ version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c6dea686217a06072033dc025631932810e2f6ad784e4fafa42e27d311c7a81c" dependencies = [ - "futures 0.3.24", + "futures 0.3.25", "libp2p-core", "parking_lot 0.12.1", "thiserror", @@ -3556,9 +3609,9 @@ dependencies = [ [[package]] name = "link-cplusplus" -version = "1.0.7" +version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9272ab7b96c9046fbc5bc56c06c117cb639fe2d509df0c421cad82d2915cf369" +checksum = "ecd207c9c713c34f95a097a5b029ac2ce6010530c7b49d7fea24d977dede04f5" dependencies = [ "cc", ] @@ -3594,6 +3647,12 @@ version = "0.0.46" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4d2456c373231a208ad294c33dc5bff30051eafd954cd4caae83a712b12854d" +[[package]] +name = "linux-raw-sys" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f051f77a7c8e6957c0696eac88f26b0117e54f52d3fc682ab19397a8812846a4" + [[package]] name = "lock_api" version = "0.4.9" @@ -3663,7 +3722,7 @@ dependencies = [ [[package]] name = "mainnet-runtime" -version = "1.2.6" +version = "1.3.0" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -3734,6 +3793,8 @@ dependencies = [ "ternoa-rent", "ternoa-runtime-common", "ternoa-staking-rewards", + "ternoa-tee", + "ternoa-transmission-protocols", "try-runtime-cli", ] @@ -3786,18 +3847,18 @@ checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" [[package]] name = "memfd" -version = "0.6.1" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "480b5a5de855d11ff13195950bdc8b98b5e942ef47afc447f6615cdcc4e15d80" +checksum = "b20a59d985586e4a5aef64564ac77299f8586d8be6cf9106a5a40207e8908efb" dependencies = [ - "rustix", + "rustix 0.36.6", ] [[package]] name = "memmap2" -version = "0.5.7" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95af15f345b17af2efc8ead6080fb8bc376f8cec1b35277b935637595fe77498" +checksum = "4b182332558b18d807c4ce1ca8ca983b34c3ee32765e47b3f0f69b90355cc1dc" dependencies = [ "libc", ] @@ -3811,6 +3872,15 @@ dependencies = [ "autocfg", ] +[[package]] +name = "memoffset" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4" +dependencies = [ + "autocfg", +] + [[package]] name = "memory-db" version = "0.29.0" @@ -3848,23 +3918,23 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] name = "miniz_oxide" -version = "0.5.4" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96590ba8f175222643a85693f33d26e9c8a015f599c216509b1a6894af675d34" +checksum = "b275950c28b37e794e8c55d88aeb5e139d0ce23fdbbeda68f8d7174abdf9e8fa" dependencies = [ "adler", ] [[package]] name = "mio" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57ee1c23c7c63b0c9250c339ffdc69255f110b298b901b9f6c82547b7b87caaf" +checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de" dependencies = [ "libc", "log", "wasi 0.11.0+wasi-snapshot-preview1", - "windows-sys 0.36.1", + "windows-sys 0.42.0", ] [[package]] @@ -3906,7 +3976,7 @@ dependencies = [ "blake2s_simd", "blake3", "core2", - "digest 0.10.5", + "digest 0.10.6", "multihash-derive", "sha2 0.10.6", "sha3", @@ -3940,7 +4010,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "363a84be6453a70e63513660f4894ef815daf88e3356bffcda9ca27d810ce83b" dependencies = [ "bytes", - "futures 0.3.24", + "futures 0.3.25", "log", "pin-project", "smallvec", @@ -4030,7 +4100,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "65b4b14489ab424703c092062176d52ba55485a89c076b4f9db05092b7223aa6" dependencies = [ "bytes", - "futures 0.3.24", + "futures 0.3.25", "log", "netlink-packet-core", "netlink-sys", @@ -4046,16 +4116,16 @@ checksum = "92b654097027250401127914afb37cb1f311df6610a9891ff07a757e94199027" dependencies = [ "async-io", "bytes", - "futures 0.3.24", + "futures 0.3.25", "libc", "log", ] [[package]] name = "nix" -version = "0.24.2" +version = "0.24.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "195cdbc1741b8134346d515b3a56a1c94b0912758009cfd53f99ea0f57b065fc" +checksum = "fa52e972a9a719cecb6864fb88568781eb706bac2cd1d4f04a648542dbf78069" dependencies = [ "bitflags", "cfg-if", @@ -4093,9 +4163,9 @@ checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" [[package]] name = "nom" -version = "7.1.1" +version = "7.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8903e5a29a317527874d0402f867152a3d21c908bb0b933e416c65e301d4c36" +checksum = "e5507769c4919c998e69e49c839d9dc6e693ede4cc4290d6ad8b41d4f09c548c" dependencies = [ "memchr", "minimal-lexical", @@ -4134,9 +4204,9 @@ dependencies = [ [[package]] name = "num-format" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54b862ff8df690cf089058c98b183676a7ed0f974cc08b426800093227cbff3b" +checksum = "a652d9771a63711fd3c3deb670acfbe5c30a4072e664d7a3bf5a9e1056ac72c3" dependencies = [ "arrayvec 0.7.2", "itoa", @@ -4183,16 +4253,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" dependencies = [ "autocfg", - "libm", + "libm 0.2.6", ] [[package]] name = "num_cpus" -version = "1.13.1" +version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1" +checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" dependencies = [ - "hermit-abi", + "hermit-abi 0.2.6", "libc", ] @@ -4208,11 +4278,20 @@ dependencies = [ "memchr", ] +[[package]] +name = "object" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "239da7f290cfa979f43f85a8efeee9a8a76d0827c356d37f9d3d7254d6b537fb" +dependencies = [ + "memchr", +] + [[package]] name = "once_cell" -version = "1.15.0" +version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e82dad04139b71a90c080c8463fe0dc7902db5192d939bd0950f074d014339e1" +checksum = "6f61fba1741ea2b3d6a1e3178721804bb716a68a6aeba1149b5d52e3d464ea66" [[package]] name = "opaque-debug" @@ -4234,9 +4313,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "os_str_bytes" -version = "6.3.0" +version = "6.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ff7415e9ae3fff1225851df9e0d9e4e5479f947619774677a63572e55e80eff" +checksum = "9b7820b9daea5457c9f21c69448905d723fbd21136ccf521748f23fd49e723ee" [[package]] name = "owning_ref" @@ -4247,6 +4326,16 @@ dependencies = [ "stable_deref_trait", ] +[[package]] +name = "packed_simd_2" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1914cd452d8fccd6f9db48147b29fd4ae05bea9dc5d9ad578509f72415de282" +dependencies = [ + "cfg-if", + "libm 0.1.4", +] + [[package]] name = "pallet-assets" version = "4.0.0-dev" @@ -4874,7 +4963,7 @@ checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99" dependencies = [ "instant", "lock_api", - "parking_lot_core 0.8.5", + "parking_lot_core 0.8.6", ] [[package]] @@ -4884,14 +4973,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" dependencies = [ "lock_api", - "parking_lot_core 0.9.4", + "parking_lot_core 0.9.5", ] [[package]] name = "parking_lot_core" -version = "0.8.5" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d76e8e1493bcac0d2766c42737f34458f1c8c50c0d23bcb24ea953affb273216" +checksum = "60a2cfe6f0ad2bfc16aefa463b497d5c7a5ecd44a23efa72aa342d90177356dc" dependencies = [ "cfg-if", "instant", @@ -4903,9 +4992,9 @@ dependencies = [ [[package]] name = "parking_lot_core" -version = "0.9.4" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dc9e0dc2adc1c69d09143aff38d3d30c5c3f0df0dad82e6d25547af174ebec0" +checksum = "7ff9f3fef3968a3ec5945535ed654cb38ff72d7495a25619e2247fb15a2ed9ba" dependencies = [ "cfg-if", "libc", @@ -4916,9 +5005,9 @@ dependencies = [ [[package]] name = "paste" -version = "1.0.9" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1de2e551fb905ac83f73f7aedf2f0cb4a0da7e35efa24a202a936269f1f18e1" +checksum = "d01a5bd0424d00070b0098dd17ebca6f961a959dead1dbcbbbc1d1cd8d3deeba" [[package]] name = "pbkdf2" @@ -4952,9 +5041,9 @@ checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" [[package]] name = "pest" -version = "2.4.0" +version = "2.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbc7bc69c062e492337d74d59b120c274fd3d261b6bf6d3207d499b4b379c41a" +checksum = "0f6e86fb9e7026527a0d46bc308b841d73170ef8f443e1807f6ef88526a816d4" dependencies = [ "thiserror", "ucd-trie", @@ -4962,9 +5051,9 @@ dependencies = [ [[package]] name = "pest_derive" -version = "2.4.0" +version = "2.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60b75706b9642ebcb34dab3bc7750f811609a0eb1dd8b88c2d15bf628c1c65b2" +checksum = "96504449aa860c8dcde14f9fba5c58dc6658688ca1fe363589d6327b8662c603" dependencies = [ "pest", "pest_generator", @@ -4972,9 +5061,9 @@ dependencies = [ [[package]] name = "pest_generator" -version = "2.4.0" +version = "2.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4f9272122f5979a6511a749af9db9bfc810393f63119970d7085fed1c4ea0db" +checksum = "798e0220d1111ae63d66cb66a5dcb3fc2d986d520b98e49e1852bfdb11d7c5e7" dependencies = [ "pest", "pest_meta", @@ -4985,9 +5074,9 @@ dependencies = [ [[package]] name = "pest_meta" -version = "2.4.0" +version = "2.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c8717927f9b79515e565a64fe46c38b8cd0427e64c40680b14a7365ab09ac8d" +checksum = "984298b75898e30a843e278a9f2452c31e349a073a0ce6fd950a12a74464e065" dependencies = [ "once_cell", "pest", @@ -5055,9 +5144,9 @@ dependencies = [ [[package]] name = "pkg-config" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1df8c4ec4b0627e53bdf214615ad287367e482558cf84b109250b37464dc03ae" +checksum = "6ac9a59f73473f1b8d852421e59e64809f025994837ef743615c6d0c5b305160" [[package]] name = "platforms" @@ -5065,18 +5154,24 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e8d0eef3571242013a0d5dc84861c3ae4a652e56e12adf8bdc26ff5f8cb34c94" +[[package]] +name = "platforms" +version = "3.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3d7ddaed09e0eb771a79ab0fd64609ba0afb0a8366421957936ad14cbd13630" + [[package]] name = "polling" -version = "2.3.0" +version = "2.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "899b00b9c8ab553c743b3e11e87c5c7d423b2a2de229ba95b24a756344748011" +checksum = "22122d5ec4f9fe1b3916419b76be1e80bcb93f618d071d2edf841b137b2a2bd6" dependencies = [ "autocfg", "cfg-if", "libc", "log", "wepoll-ffi", - "winapi", + "windows-sys 0.42.0", ] [[package]] @@ -5104,9 +5199,19 @@ dependencies = [ [[package]] name = "ppv-lite86" -version = "0.2.16" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" +checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" + +[[package]] +name = "prettyplease" +version = "0.1.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c8992a85d8e93a28bdf76137db888d3874e3b230dee5ed8bebac4c9f7617773" +dependencies = [ + "proc-macro2", + "syn", +] [[package]] name = "primitive-types" @@ -5158,18 +5263,18 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.47" +version = "1.0.49" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ea3d908b0e36316caf9e9e2c4625cdde190a7e6f440d794667ed17a1855e725" +checksum = "57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5" dependencies = [ "unicode-ident", ] [[package]] name = "prometheus" -version = "0.13.2" +version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45c8babc29389186697fe5a2a4859d697825496b83db5d0b65271cdc0488e88c" +checksum = "449811d15fbdf5ceb5c1144416066429cf82316e2ec8ce0c1f6f8a02e7bbcf8c" dependencies = [ "cfg-if", "fnv", @@ -5214,12 +5319,12 @@ dependencies = [ [[package]] name = "prost" -version = "0.11.0" +version = "0.11.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "399c3c31cdec40583bb68f0b18403400d01ec4289c383aa047560439952c4dd7" +checksum = "c01db6702aa05baa3f57dec92b8eeeeb4cb19e894e73996b32a4093289e54592" dependencies = [ "bytes", - "prost-derive 0.11.0", + "prost-derive 0.11.5", ] [[package]] @@ -5246,9 +5351,9 @@ dependencies = [ [[package]] name = "prost-build" -version = "0.11.1" +version = "0.11.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f835c582e6bd972ba8347313300219fed5bfa52caf175298d860b61ff6069bb" +checksum = "cb5320c680de74ba083512704acb90fe00f28f79207286a848e730c45dd73ed6" dependencies = [ "bytes", "heck", @@ -5257,9 +5362,11 @@ dependencies = [ "log", "multimap", "petgraph", - "prost 0.11.0", - "prost-types 0.11.1", + "prettyplease", + "prost 0.11.5", + "prost-types 0.11.5", "regex", + "syn", "tempfile", "which", ] @@ -5292,9 +5399,9 @@ dependencies = [ [[package]] name = "prost-derive" -version = "0.11.0" +version = "0.11.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7345d5f0e08c0536d7ac7229952590239e77abf0a0100a1b1d890add6ea96364" +checksum = "c8842bad1a5419bca14eac663ba798f6bc19c413c2fdceb5f3ba3b0932d96720" dependencies = [ "anyhow", "itertools", @@ -5315,12 +5422,12 @@ dependencies = [ [[package]] name = "prost-types" -version = "0.11.1" +version = "0.11.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dfaa718ad76a44b3415e6c4d53b17c8f99160dcb3a99b10470fce8ad43f6e3e" +checksum = "017f79637768cde62820bc2d4fe0e45daaa027755c323ad077767c6c5f173091" dependencies = [ "bytes", - "prost 0.11.0", + "prost 0.11.5", ] [[package]] @@ -5351,9 +5458,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.21" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179" +checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b" dependencies = [ "proc-macro2", ] @@ -5424,7 +5531,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.7", + "getrandom 0.2.8", ] [[package]] @@ -5472,21 +5579,19 @@ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3" [[package]] name = "rayon" -version = "1.5.3" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd99e5772ead8baa5215278c9b15bf92087709e9c1b2d1f97cdb5a183c933a7d" +checksum = "6db3a213adf02b3bcfd2d3846bb41cb22857d131789e01df434fb7e7bc0759b7" dependencies = [ - "autocfg", - "crossbeam-deque", "either", "rayon-core", ] [[package]] name = "rayon-core" -version = "1.9.3" +version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "258bcdb5ac6dad48491bb2992db6b7cf74878b0384908af124823d118c99683f" +checksum = "cac410af5d00ab6884528b4ab69d1e8e146e8d471201800fa1b4524126de6ad3" dependencies = [ "crossbeam-channel", "crossbeam-deque", @@ -5509,25 +5614,25 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" dependencies = [ - "getrandom 0.2.7", + "getrandom 0.2.8", "redox_syscall", "thiserror", ] [[package]] name = "ref-cast" -version = "1.0.12" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12a733f1746c929b4913fe48f8697fcf9c55e3304ba251a79ffb41adfeaf49c2" +checksum = "8c78fb8c9293bcd48ef6fce7b4ca950ceaf21210de6e105a883ee280c0f7b9ed" dependencies = [ "ref-cast-impl", ] [[package]] name = "ref-cast-impl" -version = "1.0.12" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5887de4a01acafd221861463be6113e6e87275e79804e56779f4cdc131c60368" +checksum = "9f9c0c92af03644e4806106281fe2e068ac5bc0ae74a707266d06ea27bccee5f" dependencies = [ "proc-macro2", "quote", @@ -5548,9 +5653,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.6.0" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b" +checksum = "e076559ef8e241f2ae3479e36f97bd5741c0330689e217ad51ce2c76808b868a" dependencies = [ "aho-corasick", "memchr", @@ -5568,9 +5673,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.6.27" +version = "0.6.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244" +checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848" [[package]] name = "remote-externalities" @@ -5646,11 +5751,12 @@ dependencies = [ [[package]] name = "rpassword" -version = "7.0.0" +version = "7.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26b763cb66df1c928432cc35053f8bd4cec3335d8559fc16010017d16b3c1680" +checksum = "6678cf63ab3491898c0d021b493c94c9b221d91295294a2a5746eacbe5928322" dependencies = [ "libc", + "rtoolbox", "winapi", ] @@ -5661,7 +5767,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "322c53fd76a18698f1c27381d58091de3a043d356aa5bd0d510608b565f469a0" dependencies = [ "async-global-executor", - "futures 0.3.24", + "futures 0.3.25", "log", "netlink-packet-route", "netlink-proto", @@ -5669,6 +5775,16 @@ dependencies = [ "thiserror", ] +[[package]] +name = "rtoolbox" +version = "0.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "034e22c514f5c0cb8a10ff341b9b048b5ceb21591f31c8f44c43b960f9b3524a" +dependencies = [ + "libc", + "winapi", +] + [[package]] name = "rustc-demangle" version = "0.1.21" @@ -5693,21 +5809,35 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ - "semver 1.0.14", + "semver 1.0.16", ] [[package]] name = "rustix" -version = "0.35.11" +version = "0.35.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbb2fda4666def1433b1b05431ab402e42a1084285477222b72d6c564c417cef" +checksum = "727a1a6d65f786ec22df8a81ca3121107f235970dc1705ed681d3e6e8b9cd5f9" dependencies = [ "bitflags", "errno", - "io-lifetimes", + "io-lifetimes 0.7.5", "libc", - "linux-raw-sys", - "windows-sys 0.36.1", + "linux-raw-sys 0.0.46", + "windows-sys 0.42.0", +] + +[[package]] +name = "rustix" +version = "0.36.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4feacf7db682c6c329c4ede12649cd36ecab0f3be5b7d74e6a20304725db4549" +dependencies = [ + "bitflags", + "errno", + "io-lifetimes 1.0.3", + "libc", + "linux-raw-sys 0.1.4", + "windows-sys 0.42.0", ] [[package]] @@ -5745,9 +5875,9 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.9" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97477e48b4cf8603ad5f7aaf897467cf42ab4218a38ef76fb14c2d6773a6d6a8" +checksum = "5583e89e108996506031660fe09baa5011b9dd0341b89029313006d1fb508d70" [[package]] name = "rw-stream-sink" @@ -5755,16 +5885,16 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "26338f5e09bb721b85b135ea05af7767c90b52f6de4f087d4f4a3a9d64e7dc04" dependencies = [ - "futures 0.3.24", + "futures 0.3.25", "pin-project", "static_assertions", ] [[package]] name = "ryu" -version = "1.0.11" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4501abdff3ae82a1c1b477a17252eb69cee9e66eb915c1abaa4f44d873df9f09" +checksum = "7b4b9743ed687d4b4bcedf9ff5eaa7398495ae14e61cba0a295704edbc7decde" [[package]] name = "salsa20" @@ -5801,7 +5931,7 @@ version = "0.10.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ "async-trait", - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "ip_network", "libp2p", @@ -5827,7 +5957,7 @@ name = "sc-basic-authorship" version = "0.10.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "log", "parity-scale-codec", @@ -5898,7 +6028,7 @@ dependencies = [ "chrono", "clap", "fdlimit", - "futures 0.3.24", + "futures 0.3.25", "libp2p", "log", "names", @@ -5935,7 +6065,7 @@ version = "4.0.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ "fnv", - "futures 0.3.24", + "futures 0.3.25", "hash-db", "log", "parity-scale-codec", @@ -5988,7 +6118,7 @@ version = "0.10.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ "async-trait", - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "libp2p", "log", @@ -6013,7 +6143,7 @@ source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substr dependencies = [ "async-trait", "fork-tree", - "futures 0.3.24", + "futures 0.3.25", "log", "merlin", "num-bigint 0.2.6", @@ -6053,7 +6183,7 @@ name = "sc-consensus-babe-rpc" version = "0.10.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ - "futures 0.3.24", + "futures 0.3.25", "jsonrpsee", "sc-consensus-babe", "sc-consensus-epochs", @@ -6089,7 +6219,7 @@ version = "0.10.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ "async-trait", - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "log", "parity-scale-codec", @@ -6187,7 +6317,7 @@ dependencies = [ "once_cell", "parity-scale-codec", "parity-wasm 0.45.0", - "rustix", + "rustix 0.35.13", "sc-allocator", "sc-executor-common", "sp-runtime-interface", @@ -6207,7 +6337,7 @@ dependencies = [ "dyn-clone", "finality-grandpa", "fork-tree", - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "log", "parity-scale-codec", @@ -6243,7 +6373,7 @@ version = "0.10.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ "finality-grandpa", - "futures 0.3.24", + "futures 0.3.25", "jsonrpsee", "log", "parity-scale-codec", @@ -6264,7 +6394,7 @@ version = "0.10.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ "ansi_term", - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "log", "parity-util-mem", @@ -6304,7 +6434,7 @@ dependencies = [ "either", "fnv", "fork-tree", - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "ip_network", "libp2p", @@ -6343,11 +6473,11 @@ version = "0.10.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ "cid", - "futures 0.3.24", + "futures 0.3.25", "libp2p", "log", - "prost 0.11.0", - "prost-build 0.11.1", + "prost 0.11.5", + "prost-build 0.11.5", "sc-client-api", "sc-network-common", "sp-blockchain", @@ -6365,7 +6495,7 @@ dependencies = [ "async-trait", "bitflags", "bytes", - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "libp2p", "linked_hash_set", @@ -6389,7 +6519,7 @@ version = "0.10.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ "ahash", - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "libp2p", "log", @@ -6407,7 +6537,7 @@ version = "0.10.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ "array-bytes", - "futures 0.3.24", + "futures 0.3.25", "libp2p", "log", "parity-scale-codec", @@ -6429,7 +6559,7 @@ source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substr dependencies = [ "array-bytes", "fork-tree", - "futures 0.3.24", + "futures 0.3.25", "libp2p", "log", "lru", @@ -6456,7 +6586,7 @@ version = "0.10.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ "array-bytes", - "futures 0.3.24", + "futures 0.3.25", "hex", "libp2p", "log", @@ -6477,7 +6607,7 @@ dependencies = [ "array-bytes", "bytes", "fnv", - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "hyper", "hyper-rustls", @@ -6504,7 +6634,7 @@ name = "sc-peerset" version = "4.0.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ - "futures 0.3.24", + "futures 0.3.25", "libp2p", "log", "sc-utils", @@ -6526,7 +6656,7 @@ name = "sc-rpc" version = "4.0.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ - "futures 0.3.24", + "futures 0.3.25", "hash-db", "jsonrpsee", "log", @@ -6556,7 +6686,7 @@ name = "sc-rpc-api" version = "0.10.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ - "futures 0.3.24", + "futures 0.3.25", "jsonrpsee", "log", "parity-scale-codec", @@ -6579,7 +6709,7 @@ name = "sc-rpc-server" version = "4.0.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ - "futures 0.3.24", + "futures 0.3.25", "jsonrpsee", "log", "serde_json", @@ -6595,7 +6725,7 @@ dependencies = [ "async-trait", "directories", "exit-future", - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "hash-db", "jsonrpsee", @@ -6695,7 +6825,7 @@ name = "sc-sysinfo" version = "6.0.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ - "futures 0.3.24", + "futures 0.3.25", "libc", "log", "rand 0.7.3", @@ -6715,7 +6845,7 @@ version = "4.0.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ "chrono", - "futures 0.3.24", + "futures 0.3.25", "libp2p", "log", "parking_lot 0.12.1", @@ -6774,7 +6904,7 @@ name = "sc-transaction-pool" version = "4.0.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "linked-hash-map", "log", @@ -6800,7 +6930,7 @@ name = "sc-transaction-pool-api" version = "4.0.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ - "futures 0.3.24", + "futures 0.3.25", "log", "serde", "sp-blockchain", @@ -6813,7 +6943,7 @@ name = "sc-utils" version = "4.0.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "lazy_static", "log", @@ -6823,9 +6953,9 @@ dependencies = [ [[package]] name = "scale-info" -version = "2.2.0" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "333af15b02563b8182cd863f925bd31ef8fa86a0e095d30c091956057d436153" +checksum = "001cf62ece89779fd16105b5f515ad0e5cedcd5440d3dd806bb067978e7c3608" dependencies = [ "bitvec", "cfg-if", @@ -6837,9 +6967,9 @@ dependencies = [ [[package]] name = "scale-info-derive" -version = "2.2.0" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53f56acbd0743d29ffa08f911ab5397def774ad01bab3786804cf6ee057fb5e1" +checksum = "303959cf613a6f6efd19ed4b4ad5bf79966a13352716299ad532cfb115f4205c" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -6883,9 +7013,9 @@ checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" [[package]] name = "scratch" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c8132065adcfd6e02db789d9285a0deb2f3fcb04002865ab67d5fb103533898" +checksum = "ddccb15bcce173023b3fedd9436f882a0739b8dfb45e4f6b6002bee5929f61b2" [[package]] name = "sct" @@ -6912,9 +7042,9 @@ dependencies = [ [[package]] name = "secp256k1" -version = "0.24.0" +version = "0.24.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7649a0b3ffb32636e60c7ce0d70511eda9c52c658cd0634e194d5a19943aeff" +checksum = "d9512ffd81e3a3503ed401f79c33168b9148c75038956039166cd750eaa037c3" dependencies = [ "secp256k1-sys", ] @@ -6971,9 +7101,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.14" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e25dfac463d778e353db5be2449d1cce89bd6fd23c9f1ea21310ce6e5a1b29c4" +checksum = "58bc9567378fc7690d6b2addae4e60ac2eeea07becb2c64b9f218b53865cba2a" dependencies = [ "serde", ] @@ -6986,18 +7116,18 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "serde" -version = "1.0.145" +version = "1.0.152" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "728eb6351430bccb993660dfffc5a72f91ccc1295abaa8ce19b27ebe4f75568b" +checksum = "bb7d1f0d3021d347a83e556fc4683dea2ea09d87bccdf88ff5c12545d89d5efb" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.145" +version = "1.0.152" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81fa1584d3d1bcacd84c277a0dfe21f5b0f6accf4a23d04d4c6d61f1af522b4c" +checksum = "af487d118eecd09402d70a5d72551860e788df87b464af30e5ea6a38c75c541e" dependencies = [ "proc-macro2", "quote", @@ -7006,9 +7136,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.86" +version = "1.0.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41feea4228a6f1cd09ec7a3593a682276702cd67b5273544757dae23c096f074" +checksum = "877c235533714907a8c2464236f5c4b2a17262ef1bd71f38f35ea592c8da6883" dependencies = [ "itoa", "ryu", @@ -7045,7 +7175,7 @@ checksum = "f04293dc80c3993519f2d7f6f511707ee7094fe0c6d3406feb330cdb3540eba3" dependencies = [ "cfg-if", "cpufeatures", - "digest 0.10.5", + "digest 0.10.6", ] [[package]] @@ -7081,16 +7211,16 @@ checksum = "82e6b795fe2e3b1e845bafcb27aa35405c4d47cdfc92af5fc8d3002f76cebdc0" dependencies = [ "cfg-if", "cpufeatures", - "digest 0.10.5", + "digest 0.10.6", ] [[package]] name = "sha3" -version = "0.10.5" +version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2904bea16a1ae962b483322a1c7b81d976029203aea1f461e51cd7705db7ba9" +checksum = "bdf0c33fae925bdc080598b84bc15c55e7b9a4a43b3c704da051f977469691c9" dependencies = [ - "digest 0.10.5", + "digest 0.10.6", "keccak", ] @@ -7173,9 +7303,9 @@ checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" [[package]] name = "snap" -version = "1.0.5" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45456094d1983e2ee2a18fdfebce3189fa451699d0502cb8e3b49dba5ba41451" +checksum = "5e9f0ab6ef7eb7353d9119c170a436d1bf248eea575ac42d19d12f4e34130831" [[package]] name = "snow" @@ -7186,7 +7316,7 @@ dependencies = [ "aes-gcm", "blake2", "chacha20poly1305", - "curve25519-dalek 4.0.0-pre.1", + "curve25519-dalek 4.0.0-pre.5", "rand_core 0.6.4", "ring", "rustc_version", @@ -7213,7 +7343,7 @@ dependencies = [ "base64", "bytes", "flate2", - "futures 0.3.24", + "futures 0.3.25", "httparse", "log", "rand 0.8.5", @@ -7320,7 +7450,7 @@ name = "sp-blockchain" version = "4.0.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ - "futures 0.3.24", + "futures 0.3.25", "log", "lru", "parity-scale-codec", @@ -7339,7 +7469,7 @@ version = "0.10.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ "async-trait", - "futures 0.3.24", + "futures 0.3.25", "futures-timer", "log", "parity-scale-codec", @@ -7414,7 +7544,7 @@ dependencies = [ "byteorder", "dyn-clonable", "ed25519-zebra", - "futures 0.3.24", + "futures 0.3.25", "hash-db", "hash256-std-hasher", "impl-serde", @@ -7455,7 +7585,7 @@ source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substr dependencies = [ "blake2", "byteorder", - "digest 0.10.5", + "digest 0.10.6", "sha2 0.10.6", "sha3", "sp-std", @@ -7541,7 +7671,7 @@ version = "6.0.0" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ "bytes", - "futures 0.3.24", + "futures 0.3.25", "hash-db", "libsecp256k1", "log", @@ -7578,7 +7708,7 @@ version = "0.12.0" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ "async-trait", - "futures 0.3.24", + "futures 0.3.25", "merlin", "parity-scale-codec", "parking_lot 0.12.1", @@ -7938,9 +8068,9 @@ dependencies = [ [[package]] name = "ss58-registry" -version = "1.33.0" +version = "1.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ab7554f8a8b6f8d71cd5a8e6536ef116e2ce0504cf97ebf16311d58065dc8a6" +checksum = "23d92659e7d18d82b803824a9ba5a6022cff101c3491d027c1c1d8d30e749284" dependencies = [ "Inflector", "num-format", @@ -7973,7 +8103,7 @@ dependencies = [ "cfg_aliases", "libc", "parking_lot 0.11.2", - "parking_lot_core 0.8.5", + "parking_lot_core 0.8.6", "static_init_macro", "winapi", ] @@ -8050,7 +8180,7 @@ name = "substrate-build-script-utils" version = "3.0.0" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ - "platforms", + "platforms 2.0.0", ] [[package]] @@ -8059,7 +8189,7 @@ version = "4.0.0-dev" source = "git+https://github.com/capsule-corp-ternoa/substrate?tag=ternoa-substrate-2022-10-01#952030cfa6f11be6aef938e5359064c4cf6b30a9" dependencies = [ "frame-system-rpc-runtime-api", - "futures 0.3.24", + "futures 0.3.25", "jsonrpsee", "log", "parity-scale-codec", @@ -8133,9 +8263,9 @@ checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "syn" -version = "1.0.102" +version = "1.0.107" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fcd952facd492f9be3ef0d0b7032a6e442ee9b361d4acc2b1d0c4aaa5f613a1" +checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5" dependencies = [ "proc-macro2", "quote", @@ -8183,9 +8313,9 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "target-lexicon" -version = "0.12.4" +version = "0.12.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c02424087780c9b71cc96799eaeddff35af2bc513278cda5c99fc1f5d026d3c1" +checksum = "9410d0f6853b1d94f0e519fb95df60f29d2c1eff2d921ffdf01a4c8a3b54f12d" [[package]] name = "tempfile" @@ -8219,7 +8349,7 @@ dependencies = [ [[package]] name = "ternoa-auction" -version = "1.0.0" +version = "1.0.1" dependencies = [ "frame-benchmarking", "frame-support", @@ -8237,6 +8367,7 @@ dependencies = [ "ternoa-marketplace", "ternoa-nft", "ternoa-pallets-primitives", + "ternoa-tee", ] [[package]] @@ -8342,7 +8473,7 @@ dependencies = [ [[package]] name = "ternoa-marketplace" -version = "1.0.2" +version = "1.0.3" dependencies = [ "frame-benchmarking", "frame-support", @@ -8359,11 +8490,12 @@ dependencies = [ "ternoa-common", "ternoa-nft", "ternoa-pallets-primitives", + "ternoa-tee", ] [[package]] name = "ternoa-nft" -version = "1.0.2" +version = "1.0.4" dependencies = [ "frame-benchmarking", "frame-support", @@ -8379,6 +8511,7 @@ dependencies = [ "sp-std", "ternoa-common", "ternoa-pallets-primitives", + "ternoa-tee", ] [[package]] @@ -8395,7 +8528,7 @@ dependencies = [ [[package]] name = "ternoa-rent" -version = "1.0.0" +version = "1.0.1" dependencies = [ "frame-benchmarking", "frame-support", @@ -8412,11 +8545,12 @@ dependencies = [ "ternoa-common", "ternoa-nft", "ternoa-pallets-primitives", + "ternoa-tee", ] [[package]] name = "ternoa-runtime-common" -version = "1.2.6" +version = "1.3.0" dependencies = [ "frame-election-provider-support", "frame-support", @@ -8445,7 +8579,7 @@ dependencies = [ "alphanet-runtime-constants", "frame-benchmarking", "frame-benchmarking-cli", - "futures 0.3.24", + "futures 0.3.25", "jsonrpsee", "mainnet-runtime", "mainnet-runtime-constants", @@ -8513,26 +8647,68 @@ dependencies = [ "sp-std", ] +[[package]] +name = "ternoa-tee" +version = "1.0.0" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "pallet-balances", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", + "ternoa-common", + "ternoa-nft", + "ternoa-pallets-primitives", +] + +[[package]] +name = "ternoa-transmission-protocols" +version = "1.0.0" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "pallet-balances", + "parity-scale-codec", + "scale-info", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", + "ternoa-common", + "ternoa-nft", + "ternoa-pallets-primitives", + "ternoa-tee", +] + [[package]] name = "textwrap" -version = "0.15.1" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "949517c0cf1bf4ee812e2e07e08ab448e3ae0d23472aee8a06c985f0c8815b16" +checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" [[package]] name = "thiserror" -version = "1.0.37" +version = "1.0.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10deb33631e3c9018b9baf9dcbbc4f737320d2b576bac10f6aefa048fa407e3e" +checksum = "6a9cd18aa97d5c45c6603caea1da6628790b37f7a34b6ca89522331c5180fed0" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.37" +version = "1.0.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "982d17546b47146b28f7c22e3d08465f6b8903d0ea13c1660d9d84a6e7adcdbb" +checksum = "1fb327af4685e4d03fa8cbcf1716380da910eeb2bb8be417e7f9fd3fb164f36f" dependencies = [ "proc-macro2", "quote", @@ -8576,9 +8752,9 @@ dependencies = [ [[package]] name = "time" -version = "0.1.44" +version = "0.1.45" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255" +checksum = "1b797afad3f312d1c66a56d11d0316f916356d11bd158fbc6ca6389ff6bf805a" dependencies = [ "libc", "wasi 0.10.0+wasi-snapshot-preview1", @@ -8621,9 +8797,9 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] name = "tokio" -version = "1.21.2" +version = "1.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9e03c497dc955702ba729190dc4aac6f2a0ce97f913e5b1b5912fc5039d9099" +checksum = "eab6d665857cc6ca78d6e80303a02cea7a7851e85dfbd77cbdc09bd129f1ef46" dependencies = [ "autocfg", "bytes", @@ -8636,14 +8812,14 @@ dependencies = [ "signal-hook-registry", "socket2", "tokio-macros", - "winapi", + "windows-sys 0.42.0", ] [[package]] name = "tokio-macros" -version = "1.8.0" +version = "1.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9724f9a975fb987ef7a3cd9be0350edcbe130698af5b8f7a631e23d42d052484" +checksum = "d266c00fde287f55d3f1c3e96c500c362a2b8c695076ec180f27918820bc6df8" dependencies = [ "proc-macro2", "quote", @@ -8689,9 +8865,9 @@ dependencies = [ [[package]] name = "toml" -version = "0.5.9" +version = "0.5.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d82e1a7758622a465f8cee077614c73484dac5b836c02ff6a40d5d1010324d7" +checksum = "1333c76748e868a4d9d1017b5ab53171dfd095f70c712fdb4653a406547f598f" dependencies = [ "serde", ] @@ -8888,9 +9064,9 @@ dependencies = [ [[package]] name = "tt-call" -version = "1.0.8" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e66dcbec4290c69dd03c57e76c2469ea5c7ce109c6dd4351c13055cf71ea055" +checksum = "f4f195fd851901624eee5a58c4bb2b4f06399148fcd0ed336e6f1cb60a9881df" [[package]] name = "twox-hash" @@ -8899,16 +9075,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ "cfg-if", - "digest 0.10.5", + "digest 0.10.6", "rand 0.8.5", "static_assertions", ] [[package]] name = "typenum" -version = "1.15.0" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987" +checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba" [[package]] name = "ucd-trie" @@ -8918,9 +9094,9 @@ checksum = "9e79c4d996edb816c91e4308506774452e55e95c3c9de07b6729e17e15a5ef81" [[package]] name = "uint" -version = "0.9.4" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a45526d29728d135c2900b0d30573fe3ee79fceb12ef534c7bb30e810a91b601" +checksum = "76f64bba2c53b04fcab63c01a7d7427eadc821e3bc48c34dc9ba29c501164b52" dependencies = [ "byteorder", "crunchy", @@ -8945,9 +9121,9 @@ checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992" [[package]] name = "unicode-ident" -version = "1.0.5" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ceab39d59e4c9499d4e5a8ee0e2735b891bb7308ac83dfb4e80cad195c9f6f3" +checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" [[package]] name = "unicode-normalization" @@ -9180,7 +9356,7 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f" dependencies = [ - "futures 0.3.24", + "futures 0.3.25", "js-sys", "parking_lot 0.11.2", "pin-utils", @@ -9216,7 +9392,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57d20cb3c59b788653d99541c646c561c9dd26506f25c0cebfe810659c54c6d7" dependencies = [ "downcast-rs", - "libm", + "libm 0.2.6", "memory_units", "num-rational 0.4.1", "num-traits", @@ -9233,9 +9409,9 @@ dependencies = [ [[package]] name = "wasmtime" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1f511c4917c83d04da68333921107db75747c4e11a2f654a8e909cc5e0520dc" +checksum = "4ad5af6ba38311282f2a21670d96e78266e8c8e2f38cbcd52c254df6ccbc7731" dependencies = [ "anyhow", "bincode", @@ -9243,7 +9419,7 @@ dependencies = [ "indexmap", "libc", "log", - "object", + "object 0.29.0", "once_cell", "paste", "psm", @@ -9261,18 +9437,18 @@ dependencies = [ [[package]] name = "wasmtime-asm-macros" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39bf3debfe744bf19dd3732990ce6f8c0ced7439e2370ba4e1d8f5a3660a3178" +checksum = "45de63ddfc8b9223d1adc8f7b2ee5f35d1f6d112833934ad7ea66e4f4339e597" dependencies = [ "cfg-if", ] [[package]] name = "wasmtime-cache" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ece42fa4676a263f7558cdaaf5a71c2592bebcbac22a0580e33cf3406c103da2" +checksum = "bcd849399d17d2270141cfe47fa0d91ee52d5f8ea9b98cf7ddde0d53e5f79882" dependencies = [ "anyhow", "base64", @@ -9280,7 +9456,7 @@ dependencies = [ "directories-next", "file-per-thread-logger", "log", - "rustix", + "rustix 0.35.13", "serde", "sha2 0.9.9", "toml", @@ -9290,9 +9466,9 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "058217e28644b012bdcdf0e445f58d496d78c2e0b6a6dd93558e701591dad705" +checksum = "4bd91339b742ff20bfed4532a27b73c86b5bcbfedd6bea2dcdf2d64471e1b5c6" dependencies = [ "anyhow", "cranelift-codegen", @@ -9300,9 +9476,9 @@ dependencies = [ "cranelift-frontend", "cranelift-native", "cranelift-wasm", - "gimli", + "gimli 0.26.2", "log", - "object", + "object 0.29.0", "target-lexicon", "thiserror", "wasmparser", @@ -9311,16 +9487,16 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7af06848df28b7661471d9a80d30a973e0f401f2e3ed5396ad7e225ed217047" +checksum = "ebb881c61f4f627b5d45c54e629724974f8a8890d455bcbe634330cc27309644" dependencies = [ "anyhow", "cranelift-entity", - "gimli", + "gimli 0.26.2", "indexmap", "log", - "object", + "object 0.29.0", "serde", "target-lexicon", "thiserror", @@ -9330,20 +9506,20 @@ dependencies = [ [[package]] name = "wasmtime-jit" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9028fb63a54185b3c192b7500ef8039c7bb8d7f62bfc9e7c258483a33a3d13bb" +checksum = "1985c628011fe26adf5e23a5301bdc79b245e0e338f14bb58b39e4e25e4d8681" dependencies = [ - "addr2line", + "addr2line 0.17.0", "anyhow", "bincode", "cfg-if", "cpp_demangle", - "gimli", + "gimli 0.26.2", "log", - "object", + "object 0.29.0", "rustc-demangle", - "rustix", + "rustix 0.35.13", "serde", "target-lexicon", "thiserror", @@ -9355,20 +9531,20 @@ dependencies = [ [[package]] name = "wasmtime-jit-debug" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25e82d4ef93296785de7efca92f7679dc67fe68a13b625a5ecc8d7503b377a37" +checksum = "f671b588486f5ccec8c5a3dba6b4c07eac2e66ab8c60e6f4e53717c77f709731" dependencies = [ - "object", + "object 0.29.0", "once_cell", - "rustix", + "rustix 0.35.13", ] [[package]] name = "wasmtime-runtime" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f0e9bea7d517d114fe66b930b2124ee086516ee93eeebfd97f75f366c5b0553" +checksum = "ee8f92ad4b61736339c29361da85769ebc200f184361959d1792832e592a1afd" dependencies = [ "anyhow", "cc", @@ -9378,10 +9554,10 @@ dependencies = [ "log", "mach", "memfd", - "memoffset", + "memoffset 0.6.5", "paste", "rand 0.8.5", - "rustix", + "rustix 0.35.13", "thiserror", "wasmtime-asm-macros", "wasmtime-environ", @@ -9391,9 +9567,9 @@ dependencies = [ [[package]] name = "wasmtime-types" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69b83e93ed41b8fdc936244cfd5e455480cf1eca1fd60c78a0040038b4ce5075" +checksum = "d23d61cb4c46e837b431196dd06abb11731541021916d03476a178b54dc07aeb" dependencies = [ "cranelift-entity", "serde", @@ -9423,9 +9599,9 @@ dependencies = [ [[package]] name = "webpki-roots" -version = "0.22.5" +version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "368bfe657969fb01238bb756d351dcade285e0f6fcbd36dcb23359a5169975be" +checksum = "b6c71e40d7d2c34a5106301fb632274ca37242cd0c9d3e64dbece371a40a2d87" dependencies = [ "webpki", ] @@ -9632,18 +9808,18 @@ checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" [[package]] name = "winreg" -version = "0.7.0" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0120db82e8a1e0b9fb3345a539c478767c0048d842860994d96113d5b667bd69" +checksum = "80d0f4e272c85def139476380b12f9ac60926689dd2e01d4923222f40580869d" dependencies = [ "winapi", ] [[package]] name = "wyz" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30b31594f29d27036c383b53b59ed3476874d518f0efb151b27a4c275141390e" +checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed" dependencies = [ "tap", ] @@ -9665,7 +9841,7 @@ version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5d9ba232399af1783a58d8eb26f6b5006fbefe2dc9ef36bd283324792d03ea5" dependencies = [ - "futures 0.3.24", + "futures 0.3.25", "log", "nohash-hasher", "parking_lot 0.12.1", @@ -9684,9 +9860,9 @@ dependencies = [ [[package]] name = "zeroize_derive" -version = "1.3.2" +version = "1.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f8f187641dad4f680d25c4bfc4225b418165984179f26ca76ec4fb6441d3a17" +checksum = "44bf07cb3e50ea2003396695d58bf46bc9887a1f362260446fad6bc4e79bd36c" dependencies = [ "proc-macro2", "quote", @@ -9715,9 +9891,9 @@ dependencies = [ [[package]] name = "zstd-sys" -version = "2.0.1+zstd.1.5.2" +version = "2.0.4+zstd.1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fd07cbbc53846d9145dbffdf6dd09a7a0aa52be46741825f5c97bdd4f73f12b" +checksum = "4fa202f2ef00074143e219d15b62ffc317d17cc33909feac471c044087cad7b0" dependencies = [ "cc", "libc", diff --git a/README.md b/README.md index a6c9ce87..51c9391a 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Welcome to the Ternoa Blockchain repo which hosts the code used to build and run the Ternoa node. -Ternoa supports the transfer of arbitrary data to your descendants, friends and loved ones even after your death or disappearence or a given timed period in a **non custodial**, cryptographically enforced manner. +Ternoa supports the transfer of arbitrary data to your descendants, friends and loved ones even after your death or disappearance or a given timed period in a **non custodial**, cryptographically enforced manner.
@@ -84,7 +84,7 @@ All the examples in this document assume that you use a Ubuntu like system. If t # Run Node flag explanation: -- `--chain alphanet-dev`: There are a couple of chain configurations that we provide and each configuration have a drastic impact on how the chain behaves and what features it has. For testing purposes it's best to stick with alphanet-dev configuration. +- `--chain alphanet-dev`: There are a couple of chain configurations that we provide and each configuration has a drastic impact on how the chain behaves and what features it has. For testing purposes it's best to stick with alphanet-dev configuration. - `--alice`: This sets a couple of flags for us. It sets the `--validator` flag so that the client is running in a validator mode, it makes Alice a validator and it inserts Alice's keys into the local keystore. - `--tmp`: Makes is so that the blockchain data is stored in a temporary location. Usually this data is deleted on reboot. - `--name MyLocalNode`: Sets the name of the name. This should be something unique. @@ -142,12 +142,12 @@ Depending on what binary you downloaded certain features might not be available ``` # Running With Podman Tips -In the next examples some useful Podman commands will be shown. It's important to note that most flags have been omitted in order to make the examples more concise. Before running anything make sure that the image was built from the the "Build With Podman" step. +In the next examples some useful Podman commands will be shown. It's important to note that most flags have been omitted in order to make the examples more concise. Before running anything make sure that the image was built from the "Build With Podman" step. If no command arguments are given by default it will try run the Ternoa Node with default parameters. To cancel this add `bash` at the end of the command. Example: `podman run tsdk bash`; ### Remove Container After Exit -A container that was run and it's job has been finished or the user has exited will not automatically be removed instead it will enter the Exit state. +A container that was run and its job has been finished or the user has exited will not automatically be removed instead it will enter the Exit state. To make sure that the container is deleted and removed after it's being used the flag `--rm` should be used. ```bash @@ -202,10 +202,10 @@ The predefined operation/command of the container when run is to run the Ternoa ``` ### Create A Development Environment -The dockerfile is made in a way that it can be used to develope new applications with it. +The dockerfile is made in a way that it can be used to develop new applications with it. Example of a typical workflows: - The host installs git, clones the repo and install a code editor like VS Code. -- The host runs the container in a interactive mode with /workdir pointing to a workdir on host machine (can be your own project or chain repo). +- The host runs the container in an interactive mode with /workdir pointing to a workdir on host machine (can be your own project or chain repo). - The host writes code via a code editor and uses the terminal (which is connected to the container) to run the `cargo build` and `cargo check` commands. - With that setup all the changes are done locally on the host machine while the container is only used to compile and run the chain. @@ -213,7 +213,7 @@ Example of a typical workflows: mkdir ternoa-data # Flag "--name" is used to name the container. podman run -it --name my_chain_env -v ./ternoa-data:/data -v ./.:/workdir tchain bash - # Do some activity and the exit the container + # Do some activity and exit the container [root@d4ad8ec11655:/workdir] nano -V [root@d4ad8ec11655:/workdir] apt install nano [root@d4ad8ec11655:/workdir] exit diff --git a/runtime/alphanet/Cargo.toml b/runtime/alphanet/Cargo.toml index b75514ca..5da66492 100644 --- a/runtime/alphanet/Cargo.toml +++ b/runtime/alphanet/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "alphanet-runtime" authors = [ "Ternoa" ] -version = "1.2.6" +version = "1.3.0" edition = "2021" build = "build.rs" @@ -84,6 +84,8 @@ ternoa-nft = { path = "../../ternoa-pallets/nft", default-features = false } ternoa-marketplace = { path = "../../ternoa-pallets/marketplace", default-features = false } ternoa-auction = { path = "../../ternoa-pallets/auction", default-features = false } ternoa-rent = { path = "../../ternoa-pallets/rent", default-features = false } +ternoa-tee = { path = "../../ternoa-pallets/tee", default-features = false } +ternoa-transmission-protocols = { path = "../../ternoa-pallets/transmission-protocols", default-features = false } [build-dependencies] substrate-wasm-builder = { git = "https://github.com/capsule-corp-ternoa/substrate", tag = "ternoa-substrate-2022-10-01" } @@ -101,6 +103,8 @@ std = [ "ternoa-marketplace/std", "ternoa-auction/std", "ternoa-rent/std", + "ternoa-tee/std", + "ternoa-transmission-protocols/std", # Substrate "parity-scale-codec/std", "frame-election-provider-support/std", @@ -192,6 +196,8 @@ runtime-benchmarks = [ "ternoa-marketplace/runtime-benchmarks", "ternoa-auction/runtime-benchmarks", "ternoa-rent/runtime-benchmarks", + "ternoa-tee/runtime-benchmarks", + "ternoa-transmission-protocols/runtime-benchmarks", ] try-runtime = [ @@ -232,4 +238,6 @@ try-runtime = [ "ternoa-marketplace/try-runtime", "ternoa-auction/try-runtime", "ternoa-rent/try-runtime", + "ternoa-tee/try-runtime", + "ternoa-transmission-protocols/try-runtime", ] \ No newline at end of file diff --git a/runtime/alphanet/src/lib.rs b/runtime/alphanet/src/lib.rs index 695cf0c3..9b075cf1 100644 --- a/runtime/alphanet/src/lib.rs +++ b/runtime/alphanet/src/lib.rs @@ -147,6 +147,8 @@ construct_runtime!( Assets: pallet_assets = 31, Auction: ternoa_auction = 32, Rent: ternoa_rent = 33, + TEE: ternoa_tee = 34, + TransmissionProtocols: ternoa_transmission_protocols = 35, } ); @@ -460,6 +462,8 @@ mod benches { [ternoa_marketplace, Marketplace] [ternoa_auction, Auction] [ternoa_rent, Rent] + [ternoa_tee, TEE] + [ternoa_transmission_protocols, TransmissionProtocols] // Substrate [pallet_babe, Babe] [pallet_bags_list, BagsList] diff --git a/runtime/alphanet/src/pallets.rs b/runtime/alphanet/src/pallets.rs index 5142aa3b..e9605e68 100644 --- a/runtime/alphanet/src/pallets.rs +++ b/runtime/alphanet/src/pallets.rs @@ -52,7 +52,7 @@ use crate::{ OffchainSolutionLengthLimit, OffchainSolutionWeightLimit, Offences, OriginCaller, PalletInfo, Preimage, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin, Scheduler, Session, Signature, SignedPayload, Staking, StakingRewards, System, TechnicalCommittee, Timestamp, - TransactionPayment, Treasury, UncheckedExtrinsic, NFT, VERSION, + TransactionPayment, Treasury, UncheckedExtrinsic, NFT, TEE, VERSION, }; pub use common::babe::BABE_GENESIS_EPOCH_CONFIG; @@ -316,7 +316,7 @@ impl frame_election_provider_support::onchain::Config for OnChainSeqPhragmen { type System = Runtime; type Solver = SequentialPhragmen; type DataProvider = Staking; - type WeightInfo = frame_election_provider_support::weights::SubstrateWeight; // TODO Weights + type WeightInfo = frame_election_provider_support::weights::SubstrateWeight; } impl pallet_staking::Config for Runtime { @@ -652,7 +652,8 @@ parameter_types! { pub const NFTOffchainDataLimit: u32 = 150; pub const CollectionOffchainDataLimit: u32 = 150; pub const CollectionSizeLimit: u32 = 1_000_000; - pub const InitialSecretMintFee: Balance = 75_000_000_000_000_000_000; + pub const InitialSecretMintFee: Balance = 50_000_000_000_000_000_000; + pub const InitialCapsuleMintFee: Balance = 100_000_000_000_000_000_000; pub const ShardsNumber: u32 = 5; } @@ -666,7 +667,9 @@ impl ternoa_nft::Config for Runtime { type CollectionOffchainDataLimit = CollectionOffchainDataLimit; type CollectionSizeLimit = CollectionSizeLimit; type InitialSecretMintFee = InitialSecretMintFee; + type InitialCapsuleMintFee = InitialCapsuleMintFee; type ShardsNumber = ShardsNumber; + type TEEExt = TEE; } parameter_types! { @@ -732,6 +735,7 @@ impl ternoa_auction::Config for Runtime { type BidderListLengthLimit = BidderListLengthLimit; type ParallelAuctionLimit = ParallelAuctionLimit; type ActionsInBlockLimit = AuctionActionsInBlockLimit; + type ExistentialDeposit = common::balances::ExistentialDeposit; } parameter_types! { @@ -754,4 +758,47 @@ impl ternoa_rent::Config for Runtime { type ActionsInBlockLimit = RentActionsInBlockLimit; type MaximumContractAvailabilityLimit = MaximumContractAvailabilityLimit; type MaximumContractDurationLimit = MaximumContractDurationLimit; + type ExistentialDeposit = common::balances::ExistentialDeposit; +} + +parameter_types! { + pub const ClusterSize: u32 = 5; + pub const MaxUriLen: u32 = 150; + pub const ListSizeLimit: u32 = 10; +} + +impl ternoa_tee::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type Currency = Balances; + type WeightInfo = weights::ternoa_tee::WeightInfo; + type ClusterSize = ClusterSize; + type MaxUriLen = MaxUriLen; + type ListSizeLimit = ListSizeLimit; +} + +parameter_types! { + pub const AtBlockFee: Balance = 20_000_000_000_000_000_000; + pub const AtBlockWithResetFee: Balance = 40_000_000_000_000_000_000; + pub const OnConsentFee: Balance = 30_000_000_000_000_000_000; + pub const OnConsentAtBlockFee: Balance = 40_000_000_000_000_000_000; + pub const MaxBlockDuration: u32 = 500; + pub const MaxConsentListSize: u32 = 10; + pub const SimultaneousTransmissionLimit: u32 = 50; + pub const ActionsInBlockLimit: u32 = 1_000; +} + +impl ternoa_transmission_protocols::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type WeightInfo = weights::ternoa_transmission_protocols::WeightInfo; + type Currency = Balances; + type FeesCollector = Treasury; + type NFTExt = NFT; + type InitialAtBlockFee = AtBlockFee; + type InitialAtBlockWithResetFee = AtBlockWithResetFee; + type InitialOnConsentFee = OnConsentFee; + type InitialOnConsentAtBlockFee = OnConsentAtBlockFee; + type MaxBlockDuration = MaxBlockDuration; + type MaxConsentListSize = MaxConsentListSize; + type SimultaneousTransmissionLimit = SimultaneousTransmissionLimit; + type ActionsInBlockLimit = ActionsInBlockLimit; } diff --git a/runtime/alphanet/src/version.rs b/runtime/alphanet/src/version.rs index c125d6a5..1ee86acf 100644 --- a/runtime/alphanet/src/version.rs +++ b/runtime/alphanet/src/version.rs @@ -44,7 +44,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { /// Version of the runtime specification. A full-node will not attempt to use its native /// runtime in substitute for the on-chain Wasm runtime unless all of `spec_name`, /// `spec_version` and `authoring_version` are the same between Wasm and native. - spec_version: 11, + spec_version: 14, /// Version of the implementation of the specification. Nodes are free to ignore this; it /// serves only as an indication that the code is different; as long as the other two versions diff --git a/runtime/alphanet/src/weights/mod.rs b/runtime/alphanet/src/weights/mod.rs index 907d8726..8adaf009 100644 --- a/runtime/alphanet/src/weights/mod.rs +++ b/runtime/alphanet/src/weights/mod.rs @@ -22,5 +22,7 @@ pub mod ternoa_marketplace; pub mod ternoa_nft; pub mod ternoa_rent; pub mod ternoa_staking_rewards; +pub mod ternoa_tee; +pub mod ternoa_transmission_protocols; // pub mod pallet_session; // pub mod pallet_staking; diff --git a/runtime/alphanet/src/weights/ternoa_nft.rs b/runtime/alphanet/src/weights/ternoa_nft.rs index 7fac5252..02446660 100644 --- a/runtime/alphanet/src/weights/ternoa_nft.rs +++ b/runtime/alphanet/src/weights/ternoa_nft.rs @@ -2,15 +2,15 @@ //! Autogenerated weights for `ternoa_nft` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-01-30, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! HOSTNAME: `Ternoa-Recommended-Reference-Machine`, CPU: `AMD EPYC 7281 16-Core Processor` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("alphanet-dev"), DB CACHE: 1024 +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("mainnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/production/ternoa // benchmark // pallet -// --chain=alphanet-dev +// --chain=mainnet-dev // --steps=50 // --repeat=20 // --pallet=ternoa_nft @@ -38,9 +38,9 @@ impl ternoa_nft::WeightInfo for WeightInfo { // Storage: NFT Nfts (r:0 w:1) /// The range of component `s` is `[0, 999999]`. fn create_nft(s: u32, ) -> Weight { - Weight::from_ref_time(165_612_000 as u64) - // Standard Error: 39 - .saturating_add(Weight::from_ref_time(15_717 as u64).saturating_mul(s as u64)) + Weight::from_ref_time(115_467_000 as u64) + // Standard Error: 74 + .saturating_add(Weight::from_ref_time(18_063 as u64).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } @@ -48,58 +48,58 @@ impl ternoa_nft::WeightInfo for WeightInfo { // Storage: NFT Collections (r:1 w:1) /// The range of component `s` is `[0, 999999]`. fn burn_nft(s: u32, ) -> Weight { - Weight::from_ref_time(104_095_000 as u64) - // Standard Error: 32 - .saturating_add(Weight::from_ref_time(17_481 as u64).saturating_mul(s as u64)) + Weight::from_ref_time(83_528_000 as u64) + // Standard Error: 89 + .saturating_add(Weight::from_ref_time(19_906 as u64).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: NFT Nfts (r:1 w:1) fn transfer_nft() -> Weight { - Weight::from_ref_time(55_594_000 as u64) + Weight::from_ref_time(83_436_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: NFT Nfts (r:1 w:1) // Storage: NFT DelegatedNFTs (r:0 w:1) fn delegate_nft() -> Weight { - Weight::from_ref_time(60_726_000 as u64) + Weight::from_ref_time(87_534_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: NFT Nfts (r:1 w:1) fn set_royalty() -> Weight { - Weight::from_ref_time(53_221_000 as u64) + Weight::from_ref_time(91_223_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: NFT NftMintFee (r:0 w:1) fn set_nft_mint_fee() -> Weight { - Weight::from_ref_time(44_664_000 as u64) + Weight::from_ref_time(65_472_000 as u64) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: NFT NextCollectionId (r:1 w:1) // Storage: NFT Collections (r:0 w:1) fn create_collection() -> Weight { - Weight::from_ref_time(72_446_000 as u64) + Weight::from_ref_time(130_164_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: NFT Collections (r:1 w:1) fn burn_collection() -> Weight { - Weight::from_ref_time(62_317_000 as u64) + Weight::from_ref_time(101_370_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: NFT Collections (r:1 w:1) fn close_collection() -> Weight { - Weight::from_ref_time(56_516_000 as u64) + Weight::from_ref_time(70_933_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: NFT Collections (r:1 w:1) fn limit_collection() -> Weight { - Weight::from_ref_time(72_817_000 as u64) + Weight::from_ref_time(87_805_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -107,9 +107,9 @@ impl ternoa_nft::WeightInfo for WeightInfo { // Storage: NFT Nfts (r:1 w:1) /// The range of component `s` is `[0, 999999]`. fn add_nft_to_collection(s: u32, ) -> Weight { - Weight::from_ref_time(86_552_000 as u64) - // Standard Error: 40 - .saturating_add(Weight::from_ref_time(15_906 as u64).saturating_mul(s as u64)) + Weight::from_ref_time(61_635_000 as u64) + // Standard Error: 58 + .saturating_add(Weight::from_ref_time(17_429 as u64).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -122,9 +122,9 @@ impl ternoa_nft::WeightInfo for WeightInfo { // Storage: NFT Nfts (r:0 w:1) /// The range of component `s` is `[0, 999999]`. fn create_secret_nft(s: u32, ) -> Weight { - Weight::from_ref_time(183_555_000 as u64) - // Standard Error: 31 - .saturating_add(Weight::from_ref_time(15_179 as u64).saturating_mul(s as u64)) + Weight::from_ref_time(267_193_000 as u64) + // Standard Error: 60 + .saturating_add(Weight::from_ref_time(17_859 as u64).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(6 as u64)) } @@ -133,20 +133,73 @@ impl ternoa_nft::WeightInfo for WeightInfo { // Storage: System Account (r:2 w:2) // Storage: NFT SecretNftsOffchainData (r:0 w:1) fn add_secret() -> Weight { - Weight::from_ref_time(142_948_000 as u64) + Weight::from_ref_time(209_585_000 as u64) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } + // Storage: TEE EnclaveAccountOperator (r:1 w:0) + // Storage: TEE EnclaveClusterId (r:1 w:0) // Storage: NFT Nfts (r:1 w:1) // Storage: NFT SecretNftsShardsCount (r:1 w:1) fn add_secret_shard() -> Weight { - Weight::from_ref_time(68_679_000 as u64) - .saturating_add(T::DbWeight::get().reads(2 as u64)) + Weight::from_ref_time(147_668_000 as u64) + .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: NFT SecretNftMintFee (r:0 w:1) fn set_secret_nft_mint_fee() -> Weight { - Weight::from_ref_time(28_984_000 as u64) + Weight::from_ref_time(38_874_000 as u64) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } + // Storage: NFT Nfts (r:1 w:1) + // Storage: NFT CapsuleMintFee (r:1 w:0) + // Storage: System Account (r:2 w:2) + // Storage: NFT CapsuleOffchainData (r:0 w:1) + fn convert_to_capsule() -> Weight { + Weight::from_ref_time(185_901_000 as u64) + .saturating_add(T::DbWeight::get().reads(4 as u64)) + .saturating_add(T::DbWeight::get().writes(4 as u64)) + } + // Storage: NFT NftMintFee (r:1 w:0) + // Storage: NFT CapsuleMintFee (r:1 w:0) + // Storage: System Account (r:2 w:2) + // Storage: NFT Collections (r:1 w:1) + // Storage: NFT NextNFTId (r:1 w:1) + // Storage: NFT CapsuleOffchainData (r:0 w:1) + // Storage: NFT Nfts (r:0 w:1) + /// The range of component `s` is `[0, 999999]`. + fn create_capsule(s: u32, ) -> Weight { + Weight::from_ref_time(287_011_000 as u64) + // Standard Error: 81 + .saturating_add(Weight::from_ref_time(18_083 as u64).saturating_mul(s as u64)) + .saturating_add(T::DbWeight::get().reads(6 as u64)) + .saturating_add(T::DbWeight::get().writes(6 as u64)) + } + // Storage: NFT Nfts (r:1 w:1) + // Storage: NFT CapsuleOffchainData (r:0 w:1) + fn set_capsule_offchaindata() -> Weight { + Weight::from_ref_time(118_724_000 as u64) + .saturating_add(T::DbWeight::get().reads(1 as u64)) + .saturating_add(T::DbWeight::get().writes(2 as u64)) + } + // Storage: NFT CapsuleMintFee (r:0 w:1) + fn set_capsule_mint_fee() -> Weight { + Weight::from_ref_time(53_340_000 as u64) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } + // Storage: TEE EnclaveAccountOperator (r:1 w:0) + // Storage: TEE EnclaveClusterId (r:1 w:0) + // Storage: NFT Nfts (r:1 w:1) + // Storage: NFT CapsulesShardsCount (r:1 w:1) + fn add_capsule_shard() -> Weight { + Weight::from_ref_time(159_811_000 as u64) + .saturating_add(T::DbWeight::get().reads(4 as u64)) + .saturating_add(T::DbWeight::get().writes(2 as u64)) + } + // Storage: NFT Nfts (r:1 w:1) + fn notify_enclave_key_update() -> Weight { + Weight::from_ref_time(140_375_000 as u64) + .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } } diff --git a/runtime/alphanet/src/weights/ternoa_tee.rs b/runtime/alphanet/src/weights/ternoa_tee.rs new file mode 100644 index 00000000..4fb8f28f --- /dev/null +++ b/runtime/alphanet/src/weights/ternoa_tee.rs @@ -0,0 +1,117 @@ + +//! Autogenerated weights for `ternoa_tee` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-01-30, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `Ternoa-Recommended-Reference-Machine`, CPU: `AMD EPYC 7281 16-Core Processor` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("mainnet-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/ternoa +// benchmark +// pallet +// --chain=mainnet-dev +// --steps=50 +// --repeat=20 +// --pallet=ternoa_tee +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --output +// ./output + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `ternoa_tee`. +pub struct WeightInfo(PhantomData); +impl ternoa_tee::WeightInfo for WeightInfo { + // Storage: TEE EnclaveRegistrations (r:1 w:1) + // Storage: TEE EnclaveData (r:1 w:0) + // Storage: TEE EnclaveAccountOperator (r:1 w:0) + fn register_enclave() -> Weight { + Weight::from_ref_time(98_184_000 as u64) + .saturating_add(T::DbWeight::get().reads(3 as u64)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } + // Storage: TEE EnclaveData (r:1 w:0) + // Storage: TEE EnclaveUnregistrations (r:1 w:1) + fn unregister_enclave() -> Weight { + Weight::from_ref_time(91_443_000 as u64) + .saturating_add(T::DbWeight::get().reads(2 as u64)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } + // Storage: TEE EnclaveData (r:1 w:0) + // Storage: TEE EnclaveUpdates (r:1 w:1) + // Storage: TEE EnclaveAccountOperator (r:1 w:0) + fn update_enclave() -> Weight { + Weight::from_ref_time(133_793_000 as u64) + .saturating_add(T::DbWeight::get().reads(3 as u64)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } + // Storage: TEE EnclaveUpdates (r:1 w:1) + fn cancel_update() -> Weight { + Weight::from_ref_time(71_405_000 as u64) + .saturating_add(T::DbWeight::get().reads(1 as u64)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } + // Storage: TEE EnclaveRegistrations (r:1 w:1) + // Storage: TEE ClusterData (r:1 w:1) + // Storage: TEE EnclaveAccountOperator (r:1 w:1) + // Storage: TEE EnclaveData (r:1 w:1) + // Storage: TEE EnclaveClusterId (r:0 w:1) + fn assign_enclave() -> Weight { + Weight::from_ref_time(141_175_000 as u64) + .saturating_add(T::DbWeight::get().reads(4 as u64)) + .saturating_add(T::DbWeight::get().writes(5 as u64)) + } + // Storage: TEE EnclaveRegistrations (r:1 w:1) + fn remove_registration() -> Weight { + Weight::from_ref_time(80_362_000 as u64) + .saturating_add(T::DbWeight::get().reads(1 as u64)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } + // Storage: TEE EnclaveUpdates (r:1 w:1) + fn remove_update() -> Weight { + Weight::from_ref_time(151_134_000 as u64) + .saturating_add(T::DbWeight::get().reads(1 as u64)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } + // Storage: TEE EnclaveData (r:1 w:1) + // Storage: TEE EnclaveAccountOperator (r:1 w:1) + // Storage: TEE EnclaveClusterId (r:1 w:1) + // Storage: TEE ClusterData (r:1 w:1) + // Storage: TEE EnclaveUnregistrations (r:1 w:1) + // Storage: TEE EnclaveUpdates (r:1 w:1) + fn remove_enclave() -> Weight { + Weight::from_ref_time(161_545_000 as u64) + .saturating_add(T::DbWeight::get().reads(6 as u64)) + .saturating_add(T::DbWeight::get().writes(6 as u64)) + } + // Storage: TEE EnclaveData (r:1 w:1) + // Storage: TEE EnclaveAccountOperator (r:1 w:1) + // Storage: TEE EnclaveUpdates (r:1 w:1) + fn force_update_enclave() -> Weight { + Weight::from_ref_time(175_701_000 as u64) + .saturating_add(T::DbWeight::get().reads(3 as u64)) + .saturating_add(T::DbWeight::get().writes(3 as u64)) + } + // Storage: TEE NextClusterId (r:1 w:1) + // Storage: TEE ClusterData (r:0 w:1) + fn create_cluster() -> Weight { + Weight::from_ref_time(71_855_000 as u64) + .saturating_add(T::DbWeight::get().reads(1 as u64)) + .saturating_add(T::DbWeight::get().writes(2 as u64)) + } + // Storage: TEE ClusterData (r:1 w:1) + fn remove_cluster() -> Weight { + Weight::from_ref_time(71_444_000 as u64) + .saturating_add(T::DbWeight::get().reads(1 as u64)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } +} diff --git a/runtime/alphanet/src/weights/ternoa_transmission_protocols.rs b/runtime/alphanet/src/weights/ternoa_transmission_protocols.rs new file mode 100644 index 00000000..4b52204b --- /dev/null +++ b/runtime/alphanet/src/weights/ternoa_transmission_protocols.rs @@ -0,0 +1,87 @@ + +//! Autogenerated weights for `ternoa_transmission_protocols` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-01-31, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `Ternoa-Recommended-Reference-Machine`, CPU: `AMD EPYC 7281 16-Core Processor` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("mainnet-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/ternoa +// benchmark +// pallet +// --chain=mainnet-dev +// --steps=50 +// --repeat=20 +// --pallet=ternoa_transmission_protocols +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --output +// ./output + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `ternoa_transmission_protocols`. +pub struct WeightInfo(PhantomData); +impl ternoa_transmission_protocols::WeightInfo for WeightInfo { + // Storage: NFT Nfts (r:1 w:1) + // Storage: TransmissionProtocols AtBlockQueue (r:1 w:1) + // Storage: TransmissionProtocols AtBlockFee (r:1 w:0) + // Storage: System Account (r:2 w:2) + // Storage: TransmissionProtocols Transmissions (r:0 w:1) + /// The range of component `s` is `[0, 999999]`. + fn set_transmission_protocol(s: u32, ) -> Weight { + Weight::from_ref_time(162_275_000 as u64) + // Standard Error: 124 + .saturating_add(Weight::from_ref_time(40_798 as u64).saturating_mul(s as u64)) + .saturating_add(T::DbWeight::get().reads(5 as u64)) + .saturating_add(T::DbWeight::get().writes(5 as u64)) + } + // Storage: NFT Nfts (r:1 w:1) + // Storage: TransmissionProtocols Transmissions (r:1 w:1) + // Storage: TransmissionProtocols AtBlockQueue (r:1 w:1) + // Storage: TransmissionProtocols OnConsentData (r:0 w:1) + /// The range of component `s` is `[0, 999999]`. + fn remove_transmission_protocol(s: u32, ) -> Weight { + Weight::from_ref_time(92_565_000 as u64) + // Standard Error: 310 + .saturating_add(Weight::from_ref_time(41_764 as u64).saturating_mul(s as u64)) + .saturating_add(T::DbWeight::get().reads(3 as u64)) + .saturating_add(T::DbWeight::get().writes(4 as u64)) + } + // Storage: NFT Nfts (r:1 w:0) + // Storage: TransmissionProtocols Transmissions (r:1 w:1) + // Storage: TransmissionProtocols AtBlockQueue (r:1 w:1) + /// The range of component `s` is `[0, 999999]`. + fn reset_timer(s: u32, ) -> Weight { + Weight::from_ref_time(111_330_000 as u64) + // Standard Error: 288 + .saturating_add(Weight::from_ref_time(43_663 as u64).saturating_mul(s as u64)) + .saturating_add(T::DbWeight::get().reads(3 as u64)) + .saturating_add(T::DbWeight::get().writes(2 as u64)) + } + // Storage: NFT Nfts (r:1 w:0) + // Storage: TransmissionProtocols Transmissions (r:1 w:0) + // Storage: TransmissionProtocols AtBlockQueue (r:1 w:1) + // Storage: TransmissionProtocols OnConsentData (r:1 w:1) + /// The range of component `s` is `[0, 999999]`. + fn add_consent(s: u32, ) -> Weight { + Weight::from_ref_time(113_495_000 as u64) + // Standard Error: 252 + .saturating_add(Weight::from_ref_time(65_782 as u64).saturating_mul(s as u64)) + .saturating_add(T::DbWeight::get().reads(4 as u64)) + .saturating_add(T::DbWeight::get().writes(2 as u64)) + } + // Storage: TransmissionProtocols AtBlockFee (r:0 w:1) + fn set_protocol_fee() -> Weight { + Weight::from_ref_time(47_570_000 as u64) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } +} diff --git a/runtime/common/Cargo.toml b/runtime/common/Cargo.toml index 3a064bca..2ffff431 100644 --- a/runtime/common/Cargo.toml +++ b/runtime/common/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "ternoa-runtime-common" authors = [ "Ternoa" ] -version = "1.2.6" +version = "1.3.0" edition = "2021" [dependencies] diff --git a/runtime/common/src/assets.rs b/runtime/common/src/assets.rs index 721ac2ee..9baba5d4 100644 --- a/runtime/common/src/assets.rs +++ b/runtime/common/src/assets.rs @@ -21,7 +21,7 @@ use crate::constants::currency::CAPS; parameter_types! { pub const AssetDeposit: u128 = 10_000 * CAPS; pub const AssetAccountDeposit: u128 = 10 * CAPS; - pub const ApprovalDeposit: u128 = 10 * CAPS; //Remark: On Alphanet 1.2.1-rc1 this is set to 100 * CAPS. + pub const ApprovalDeposit: u128 = 10 * CAPS; //Remark: On Alphanet this is set to 100 * CAPS. pub const StringLimit: u32 = 50; pub const MetadataDepositBase: u128 = 100 * CAPS; pub const MetadataDepositPerByte: u128 = 10 * CAPS; diff --git a/runtime/mainnet/Cargo.toml b/runtime/mainnet/Cargo.toml index 8b68843a..e6ef5f22 100644 --- a/runtime/mainnet/Cargo.toml +++ b/runtime/mainnet/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mainnet-runtime" authors = [ "Ternoa" ] -version = "1.2.6" +version = "1.3.0" edition = "2021" build = "build.rs" @@ -86,6 +86,8 @@ ternoa-nft = { path = "../../ternoa-pallets/nft", default-features = false } ternoa-marketplace = { path = "../../ternoa-pallets/marketplace", default-features = false } ternoa-auction = { path = "../../ternoa-pallets/auction", default-features = false } ternoa-rent = { path = "../../ternoa-pallets/rent", default-features = false } +ternoa-tee = { path = "../../ternoa-pallets/tee", default-features = false } +ternoa-transmission-protocols = { path = "../../ternoa-pallets/transmission-protocols", default-features = false } [build-dependencies] substrate-wasm-builder = { git = "https://github.com/capsule-corp-ternoa/substrate", tag = "ternoa-substrate-2022-10-01" } @@ -103,6 +105,8 @@ std = [ "ternoa-marketplace/std", "ternoa-auction/std", "ternoa-rent/std", + "ternoa-tee/std", + "ternoa-transmission-protocols/std", # Substrate "parity-scale-codec/std", "frame-election-provider-support/std", @@ -194,8 +198,8 @@ runtime-benchmarks = [ "ternoa-marketplace/runtime-benchmarks", "ternoa-auction/runtime-benchmarks", "ternoa-rent/runtime-benchmarks", - "ternoa-auction/try-runtime", - "ternoa-rent/try-runtime", + "ternoa-tee/runtime-benchmarks", + "ternoa-transmission-protocols/runtime-benchmarks", ] try-runtime = [ @@ -236,4 +240,6 @@ try-runtime = [ "ternoa-marketplace/try-runtime", "ternoa-auction/try-runtime", "ternoa-rent/try-runtime", + "ternoa-tee/try-runtime", + "ternoa-transmission-protocols/try-runtime", ] \ No newline at end of file diff --git a/runtime/mainnet/src/lib.rs b/runtime/mainnet/src/lib.rs index 2f11cf08..cadc7b5f 100644 --- a/runtime/mainnet/src/lib.rs +++ b/runtime/mainnet/src/lib.rs @@ -147,6 +147,8 @@ construct_runtime!( Assets: pallet_assets = 31, Auction: ternoa_auction = 32, Rent: ternoa_rent = 33, + TEE: ternoa_tee = 34, + TransmissionProtocols: ternoa_transmission_protocols = 35, } ); @@ -182,50 +184,6 @@ pub type SignedPayload = generic::SignedPayload; /// Extrinsic type that has already been checked. pub type CheckedExtrinsic = generic::CheckedExtrinsic; -/// Custom runtime upgrade to execute unsafe_regenerate on the bagslist -mod custom_migration { - use super::*; - use frame_election_provider_support::SortedListProvider; - use frame_support::{traits::OnRuntimeUpgrade, weights::Weight}; - use pallet_staking::{Pallet, Validators}; - - pub struct Upgrade; - impl OnRuntimeUpgrade for Upgrade { - #[cfg(feature = "try-runtime")] - fn pre_upgrade() -> Result, &'static str> { - log::info!("Pre-upgrade for bagslist"); - Ok(Vec::new()) - } - - fn on_runtime_upgrade() -> Weight { - let prev_count = ::VoterList::count(); - let weight_of_cached = Pallet::::weight_of_fn(); - for (v, _) in Validators::::iter() { - let weight = weight_of_cached(&v); - let _ = - ::VoterList::on_insert(v.clone(), weight) - .map_err(|err| { - log::info!("failed to insert {:?} into VoterList: {:?}", v, err); - }); - } - log::info!( - "injected a total of {} new voters, prev count: {} next count: {}, updating.", - Validators::::count(), - prev_count, - ::VoterList::count(), - ); - debug_assert_eq!(::VoterList::try_state(), Ok(())); - Weight::MAX - } - - #[cfg(feature = "try-runtime")] - fn post_upgrade(_: Vec) -> Result<(), &'static str> { - log::info!("Post-upgrade for bagslist"); - Ok(()) - } - } -} - /// Executive: handles dispatch to the various modules. pub type Executive = frame_executive::Executive< Runtime, @@ -233,7 +191,6 @@ pub type Executive = frame_executive::Executive< frame_system::ChainContext, Runtime, AllPalletsWithSystem, - custom_migration::Upgrade, >; impl_runtime_apis! { @@ -506,6 +463,8 @@ mod benches { [ternoa_marketplace, Marketplace] [ternoa_auction, Auction] [ternoa_rent, Rent] + [ternoa_tee, TEE] + [ternoa_transmission_protocols, TransmissionProtocols] // Substrate [pallet_babe, Babe] [pallet_bags_list, BagsList] diff --git a/runtime/mainnet/src/pallets.rs b/runtime/mainnet/src/pallets.rs index 5d81b6a4..6f6a3e59 100644 --- a/runtime/mainnet/src/pallets.rs +++ b/runtime/mainnet/src/pallets.rs @@ -52,7 +52,7 @@ use crate::{ OffchainSolutionLengthLimit, OffchainSolutionWeightLimit, Offences, OriginCaller, PalletInfo, Preimage, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin, Scheduler, Session, Signature, SignedPayload, Staking, StakingRewards, System, TechnicalCommittee, Timestamp, - TransactionPayment, Treasury, UncheckedExtrinsic, NFT, VERSION, + TransactionPayment, Treasury, UncheckedExtrinsic, NFT, TEE, VERSION, }; pub use common::babe::BABE_GENESIS_EPOCH_CONFIG; @@ -316,7 +316,7 @@ impl frame_election_provider_support::onchain::Config for OnChainSeqPhragmen { type System = Runtime; type Solver = SequentialPhragmen; type DataProvider = Staking; - type WeightInfo = frame_election_provider_support::weights::SubstrateWeight; // TODO Weights + type WeightInfo = frame_election_provider_support::weights::SubstrateWeight; } impl pallet_staking::Config for Runtime { @@ -652,7 +652,8 @@ parameter_types! { pub const NFTOffchainDataLimit: u32 = 150; pub const CollectionOffchainDataLimit: u32 = 150; pub const CollectionSizeLimit: u32 = 1_000_000; - pub const InitialSecretMintFee: Balance = 75_000_000_000_000_000_000; + pub const InitialSecretMintFee: Balance = 50_000_000_000_000_000_000; + pub const InitialCapsuleMintFee: Balance = 100_000_000_000_000_000_000; pub const ShardsNumber: u32 = 5; } @@ -666,7 +667,9 @@ impl ternoa_nft::Config for Runtime { type CollectionOffchainDataLimit = CollectionOffchainDataLimit; type CollectionSizeLimit = CollectionSizeLimit; type InitialSecretMintFee = InitialSecretMintFee; + type InitialCapsuleMintFee = InitialCapsuleMintFee; type ShardsNumber = ShardsNumber; + type TEEExt = TEE; } parameter_types! { @@ -732,6 +735,7 @@ impl ternoa_auction::Config for Runtime { type BidderListLengthLimit = BidderListLengthLimit; type ParallelAuctionLimit = ParallelAuctionLimit; type ActionsInBlockLimit = AuctionActionsInBlockLimit; + type ExistentialDeposit = common::balances::ExistentialDeposit; } parameter_types! { @@ -754,4 +758,47 @@ impl ternoa_rent::Config for Runtime { type ActionsInBlockLimit = RentActionsInBlockLimit; type MaximumContractAvailabilityLimit = MaximumContractAvailabilityLimit; type MaximumContractDurationLimit = MaximumContractDurationLimit; + type ExistentialDeposit = common::balances::ExistentialDeposit; +} + +parameter_types! { + pub const ClusterSize: u32 = 5; + pub const MaxUriLen: u32 = 150; + pub const ListSizeLimit: u32 = 1_000; +} + +impl ternoa_tee::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type Currency = Balances; + type WeightInfo = weights::ternoa_tee::WeightInfo; + type ClusterSize = ClusterSize; + type MaxUriLen = MaxUriLen; + type ListSizeLimit = ListSizeLimit; +} + +parameter_types! { + pub const AtBlockFee: Balance = 20_000_000_000_000_000_000; + pub const AtBlockWithResetFee: Balance = 40_000_000_000_000_000_000; + pub const OnConsentFee: Balance = 30_000_000_000_000_000_000; + pub const OnConsentAtBlockFee: Balance = 40_000_000_000_000_000_000; + pub const MaxBlockDuration: u32 = 525_948_766; + pub const MaxConsentListSize: u32 = 10; + pub const SimultaneousTransmissionLimit: u32 = 1_000_000; + pub const ActionsInBlockLimit: u32 = 1_000; +} + +impl ternoa_transmission_protocols::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type WeightInfo = weights::ternoa_transmission_protocols::WeightInfo; + type Currency = Balances; + type FeesCollector = Treasury; + type NFTExt = NFT; + type InitialAtBlockFee = AtBlockFee; + type InitialAtBlockWithResetFee = AtBlockWithResetFee; + type InitialOnConsentFee = OnConsentFee; + type InitialOnConsentAtBlockFee = OnConsentAtBlockFee; + type MaxBlockDuration = MaxBlockDuration; + type MaxConsentListSize = MaxConsentListSize; + type SimultaneousTransmissionLimit = SimultaneousTransmissionLimit; + type ActionsInBlockLimit = ActionsInBlockLimit; } diff --git a/runtime/mainnet/src/version.rs b/runtime/mainnet/src/version.rs index d1460ca7..45316139 100644 --- a/runtime/mainnet/src/version.rs +++ b/runtime/mainnet/src/version.rs @@ -44,7 +44,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { /// Version of the runtime specification. A full-node will not attempt to use its native /// runtime in substitute for the on-chain Wasm runtime unless all of `spec_name`, /// `spec_version` and `authoring_version` are the same between Wasm and native. - spec_version: 13, + spec_version: 14, /// Version of the implementation of the specification. Nodes are free to ignore this; it /// serves only as an indication that the code is different; as long as the other two versions diff --git a/runtime/mainnet/src/weights/mod.rs b/runtime/mainnet/src/weights/mod.rs index 907d8726..8adaf009 100644 --- a/runtime/mainnet/src/weights/mod.rs +++ b/runtime/mainnet/src/weights/mod.rs @@ -22,5 +22,7 @@ pub mod ternoa_marketplace; pub mod ternoa_nft; pub mod ternoa_rent; pub mod ternoa_staking_rewards; +pub mod ternoa_tee; +pub mod ternoa_transmission_protocols; // pub mod pallet_session; // pub mod pallet_staking; diff --git a/runtime/mainnet/src/weights/ternoa_nft.rs b/runtime/mainnet/src/weights/ternoa_nft.rs index 7fac5252..02446660 100644 --- a/runtime/mainnet/src/weights/ternoa_nft.rs +++ b/runtime/mainnet/src/weights/ternoa_nft.rs @@ -2,15 +2,15 @@ //! Autogenerated weights for `ternoa_nft` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-01-30, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! HOSTNAME: `Ternoa-Recommended-Reference-Machine`, CPU: `AMD EPYC 7281 16-Core Processor` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("alphanet-dev"), DB CACHE: 1024 +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("mainnet-dev"), DB CACHE: 1024 // Executed Command: // ./target/production/ternoa // benchmark // pallet -// --chain=alphanet-dev +// --chain=mainnet-dev // --steps=50 // --repeat=20 // --pallet=ternoa_nft @@ -38,9 +38,9 @@ impl ternoa_nft::WeightInfo for WeightInfo { // Storage: NFT Nfts (r:0 w:1) /// The range of component `s` is `[0, 999999]`. fn create_nft(s: u32, ) -> Weight { - Weight::from_ref_time(165_612_000 as u64) - // Standard Error: 39 - .saturating_add(Weight::from_ref_time(15_717 as u64).saturating_mul(s as u64)) + Weight::from_ref_time(115_467_000 as u64) + // Standard Error: 74 + .saturating_add(Weight::from_ref_time(18_063 as u64).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } @@ -48,58 +48,58 @@ impl ternoa_nft::WeightInfo for WeightInfo { // Storage: NFT Collections (r:1 w:1) /// The range of component `s` is `[0, 999999]`. fn burn_nft(s: u32, ) -> Weight { - Weight::from_ref_time(104_095_000 as u64) - // Standard Error: 32 - .saturating_add(Weight::from_ref_time(17_481 as u64).saturating_mul(s as u64)) + Weight::from_ref_time(83_528_000 as u64) + // Standard Error: 89 + .saturating_add(Weight::from_ref_time(19_906 as u64).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: NFT Nfts (r:1 w:1) fn transfer_nft() -> Weight { - Weight::from_ref_time(55_594_000 as u64) + Weight::from_ref_time(83_436_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: NFT Nfts (r:1 w:1) // Storage: NFT DelegatedNFTs (r:0 w:1) fn delegate_nft() -> Weight { - Weight::from_ref_time(60_726_000 as u64) + Weight::from_ref_time(87_534_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: NFT Nfts (r:1 w:1) fn set_royalty() -> Weight { - Weight::from_ref_time(53_221_000 as u64) + Weight::from_ref_time(91_223_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: NFT NftMintFee (r:0 w:1) fn set_nft_mint_fee() -> Weight { - Weight::from_ref_time(44_664_000 as u64) + Weight::from_ref_time(65_472_000 as u64) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: NFT NextCollectionId (r:1 w:1) // Storage: NFT Collections (r:0 w:1) fn create_collection() -> Weight { - Weight::from_ref_time(72_446_000 as u64) + Weight::from_ref_time(130_164_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: NFT Collections (r:1 w:1) fn burn_collection() -> Weight { - Weight::from_ref_time(62_317_000 as u64) + Weight::from_ref_time(101_370_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: NFT Collections (r:1 w:1) fn close_collection() -> Weight { - Weight::from_ref_time(56_516_000 as u64) + Weight::from_ref_time(70_933_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: NFT Collections (r:1 w:1) fn limit_collection() -> Weight { - Weight::from_ref_time(72_817_000 as u64) + Weight::from_ref_time(87_805_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -107,9 +107,9 @@ impl ternoa_nft::WeightInfo for WeightInfo { // Storage: NFT Nfts (r:1 w:1) /// The range of component `s` is `[0, 999999]`. fn add_nft_to_collection(s: u32, ) -> Weight { - Weight::from_ref_time(86_552_000 as u64) - // Standard Error: 40 - .saturating_add(Weight::from_ref_time(15_906 as u64).saturating_mul(s as u64)) + Weight::from_ref_time(61_635_000 as u64) + // Standard Error: 58 + .saturating_add(Weight::from_ref_time(17_429 as u64).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -122,9 +122,9 @@ impl ternoa_nft::WeightInfo for WeightInfo { // Storage: NFT Nfts (r:0 w:1) /// The range of component `s` is `[0, 999999]`. fn create_secret_nft(s: u32, ) -> Weight { - Weight::from_ref_time(183_555_000 as u64) - // Standard Error: 31 - .saturating_add(Weight::from_ref_time(15_179 as u64).saturating_mul(s as u64)) + Weight::from_ref_time(267_193_000 as u64) + // Standard Error: 60 + .saturating_add(Weight::from_ref_time(17_859 as u64).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(6 as u64)) } @@ -133,20 +133,73 @@ impl ternoa_nft::WeightInfo for WeightInfo { // Storage: System Account (r:2 w:2) // Storage: NFT SecretNftsOffchainData (r:0 w:1) fn add_secret() -> Weight { - Weight::from_ref_time(142_948_000 as u64) + Weight::from_ref_time(209_585_000 as u64) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } + // Storage: TEE EnclaveAccountOperator (r:1 w:0) + // Storage: TEE EnclaveClusterId (r:1 w:0) // Storage: NFT Nfts (r:1 w:1) // Storage: NFT SecretNftsShardsCount (r:1 w:1) fn add_secret_shard() -> Weight { - Weight::from_ref_time(68_679_000 as u64) - .saturating_add(T::DbWeight::get().reads(2 as u64)) + Weight::from_ref_time(147_668_000 as u64) + .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: NFT SecretNftMintFee (r:0 w:1) fn set_secret_nft_mint_fee() -> Weight { - Weight::from_ref_time(28_984_000 as u64) + Weight::from_ref_time(38_874_000 as u64) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } + // Storage: NFT Nfts (r:1 w:1) + // Storage: NFT CapsuleMintFee (r:1 w:0) + // Storage: System Account (r:2 w:2) + // Storage: NFT CapsuleOffchainData (r:0 w:1) + fn convert_to_capsule() -> Weight { + Weight::from_ref_time(185_901_000 as u64) + .saturating_add(T::DbWeight::get().reads(4 as u64)) + .saturating_add(T::DbWeight::get().writes(4 as u64)) + } + // Storage: NFT NftMintFee (r:1 w:0) + // Storage: NFT CapsuleMintFee (r:1 w:0) + // Storage: System Account (r:2 w:2) + // Storage: NFT Collections (r:1 w:1) + // Storage: NFT NextNFTId (r:1 w:1) + // Storage: NFT CapsuleOffchainData (r:0 w:1) + // Storage: NFT Nfts (r:0 w:1) + /// The range of component `s` is `[0, 999999]`. + fn create_capsule(s: u32, ) -> Weight { + Weight::from_ref_time(287_011_000 as u64) + // Standard Error: 81 + .saturating_add(Weight::from_ref_time(18_083 as u64).saturating_mul(s as u64)) + .saturating_add(T::DbWeight::get().reads(6 as u64)) + .saturating_add(T::DbWeight::get().writes(6 as u64)) + } + // Storage: NFT Nfts (r:1 w:1) + // Storage: NFT CapsuleOffchainData (r:0 w:1) + fn set_capsule_offchaindata() -> Weight { + Weight::from_ref_time(118_724_000 as u64) + .saturating_add(T::DbWeight::get().reads(1 as u64)) + .saturating_add(T::DbWeight::get().writes(2 as u64)) + } + // Storage: NFT CapsuleMintFee (r:0 w:1) + fn set_capsule_mint_fee() -> Weight { + Weight::from_ref_time(53_340_000 as u64) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } + // Storage: TEE EnclaveAccountOperator (r:1 w:0) + // Storage: TEE EnclaveClusterId (r:1 w:0) + // Storage: NFT Nfts (r:1 w:1) + // Storage: NFT CapsulesShardsCount (r:1 w:1) + fn add_capsule_shard() -> Weight { + Weight::from_ref_time(159_811_000 as u64) + .saturating_add(T::DbWeight::get().reads(4 as u64)) + .saturating_add(T::DbWeight::get().writes(2 as u64)) + } + // Storage: NFT Nfts (r:1 w:1) + fn notify_enclave_key_update() -> Weight { + Weight::from_ref_time(140_375_000 as u64) + .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } } diff --git a/runtime/mainnet/src/weights/ternoa_tee.rs b/runtime/mainnet/src/weights/ternoa_tee.rs new file mode 100644 index 00000000..4fb8f28f --- /dev/null +++ b/runtime/mainnet/src/weights/ternoa_tee.rs @@ -0,0 +1,117 @@ + +//! Autogenerated weights for `ternoa_tee` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-01-30, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `Ternoa-Recommended-Reference-Machine`, CPU: `AMD EPYC 7281 16-Core Processor` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("mainnet-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/ternoa +// benchmark +// pallet +// --chain=mainnet-dev +// --steps=50 +// --repeat=20 +// --pallet=ternoa_tee +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --output +// ./output + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `ternoa_tee`. +pub struct WeightInfo(PhantomData); +impl ternoa_tee::WeightInfo for WeightInfo { + // Storage: TEE EnclaveRegistrations (r:1 w:1) + // Storage: TEE EnclaveData (r:1 w:0) + // Storage: TEE EnclaveAccountOperator (r:1 w:0) + fn register_enclave() -> Weight { + Weight::from_ref_time(98_184_000 as u64) + .saturating_add(T::DbWeight::get().reads(3 as u64)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } + // Storage: TEE EnclaveData (r:1 w:0) + // Storage: TEE EnclaveUnregistrations (r:1 w:1) + fn unregister_enclave() -> Weight { + Weight::from_ref_time(91_443_000 as u64) + .saturating_add(T::DbWeight::get().reads(2 as u64)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } + // Storage: TEE EnclaveData (r:1 w:0) + // Storage: TEE EnclaveUpdates (r:1 w:1) + // Storage: TEE EnclaveAccountOperator (r:1 w:0) + fn update_enclave() -> Weight { + Weight::from_ref_time(133_793_000 as u64) + .saturating_add(T::DbWeight::get().reads(3 as u64)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } + // Storage: TEE EnclaveUpdates (r:1 w:1) + fn cancel_update() -> Weight { + Weight::from_ref_time(71_405_000 as u64) + .saturating_add(T::DbWeight::get().reads(1 as u64)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } + // Storage: TEE EnclaveRegistrations (r:1 w:1) + // Storage: TEE ClusterData (r:1 w:1) + // Storage: TEE EnclaveAccountOperator (r:1 w:1) + // Storage: TEE EnclaveData (r:1 w:1) + // Storage: TEE EnclaveClusterId (r:0 w:1) + fn assign_enclave() -> Weight { + Weight::from_ref_time(141_175_000 as u64) + .saturating_add(T::DbWeight::get().reads(4 as u64)) + .saturating_add(T::DbWeight::get().writes(5 as u64)) + } + // Storage: TEE EnclaveRegistrations (r:1 w:1) + fn remove_registration() -> Weight { + Weight::from_ref_time(80_362_000 as u64) + .saturating_add(T::DbWeight::get().reads(1 as u64)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } + // Storage: TEE EnclaveUpdates (r:1 w:1) + fn remove_update() -> Weight { + Weight::from_ref_time(151_134_000 as u64) + .saturating_add(T::DbWeight::get().reads(1 as u64)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } + // Storage: TEE EnclaveData (r:1 w:1) + // Storage: TEE EnclaveAccountOperator (r:1 w:1) + // Storage: TEE EnclaveClusterId (r:1 w:1) + // Storage: TEE ClusterData (r:1 w:1) + // Storage: TEE EnclaveUnregistrations (r:1 w:1) + // Storage: TEE EnclaveUpdates (r:1 w:1) + fn remove_enclave() -> Weight { + Weight::from_ref_time(161_545_000 as u64) + .saturating_add(T::DbWeight::get().reads(6 as u64)) + .saturating_add(T::DbWeight::get().writes(6 as u64)) + } + // Storage: TEE EnclaveData (r:1 w:1) + // Storage: TEE EnclaveAccountOperator (r:1 w:1) + // Storage: TEE EnclaveUpdates (r:1 w:1) + fn force_update_enclave() -> Weight { + Weight::from_ref_time(175_701_000 as u64) + .saturating_add(T::DbWeight::get().reads(3 as u64)) + .saturating_add(T::DbWeight::get().writes(3 as u64)) + } + // Storage: TEE NextClusterId (r:1 w:1) + // Storage: TEE ClusterData (r:0 w:1) + fn create_cluster() -> Weight { + Weight::from_ref_time(71_855_000 as u64) + .saturating_add(T::DbWeight::get().reads(1 as u64)) + .saturating_add(T::DbWeight::get().writes(2 as u64)) + } + // Storage: TEE ClusterData (r:1 w:1) + fn remove_cluster() -> Weight { + Weight::from_ref_time(71_444_000 as u64) + .saturating_add(T::DbWeight::get().reads(1 as u64)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } +} diff --git a/runtime/mainnet/src/weights/ternoa_transmission_protocols.rs b/runtime/mainnet/src/weights/ternoa_transmission_protocols.rs new file mode 100644 index 00000000..4b52204b --- /dev/null +++ b/runtime/mainnet/src/weights/ternoa_transmission_protocols.rs @@ -0,0 +1,87 @@ + +//! Autogenerated weights for `ternoa_transmission_protocols` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-01-31, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `Ternoa-Recommended-Reference-Machine`, CPU: `AMD EPYC 7281 16-Core Processor` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("mainnet-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/ternoa +// benchmark +// pallet +// --chain=mainnet-dev +// --steps=50 +// --repeat=20 +// --pallet=ternoa_transmission_protocols +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --output +// ./output + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `ternoa_transmission_protocols`. +pub struct WeightInfo(PhantomData); +impl ternoa_transmission_protocols::WeightInfo for WeightInfo { + // Storage: NFT Nfts (r:1 w:1) + // Storage: TransmissionProtocols AtBlockQueue (r:1 w:1) + // Storage: TransmissionProtocols AtBlockFee (r:1 w:0) + // Storage: System Account (r:2 w:2) + // Storage: TransmissionProtocols Transmissions (r:0 w:1) + /// The range of component `s` is `[0, 999999]`. + fn set_transmission_protocol(s: u32, ) -> Weight { + Weight::from_ref_time(162_275_000 as u64) + // Standard Error: 124 + .saturating_add(Weight::from_ref_time(40_798 as u64).saturating_mul(s as u64)) + .saturating_add(T::DbWeight::get().reads(5 as u64)) + .saturating_add(T::DbWeight::get().writes(5 as u64)) + } + // Storage: NFT Nfts (r:1 w:1) + // Storage: TransmissionProtocols Transmissions (r:1 w:1) + // Storage: TransmissionProtocols AtBlockQueue (r:1 w:1) + // Storage: TransmissionProtocols OnConsentData (r:0 w:1) + /// The range of component `s` is `[0, 999999]`. + fn remove_transmission_protocol(s: u32, ) -> Weight { + Weight::from_ref_time(92_565_000 as u64) + // Standard Error: 310 + .saturating_add(Weight::from_ref_time(41_764 as u64).saturating_mul(s as u64)) + .saturating_add(T::DbWeight::get().reads(3 as u64)) + .saturating_add(T::DbWeight::get().writes(4 as u64)) + } + // Storage: NFT Nfts (r:1 w:0) + // Storage: TransmissionProtocols Transmissions (r:1 w:1) + // Storage: TransmissionProtocols AtBlockQueue (r:1 w:1) + /// The range of component `s` is `[0, 999999]`. + fn reset_timer(s: u32, ) -> Weight { + Weight::from_ref_time(111_330_000 as u64) + // Standard Error: 288 + .saturating_add(Weight::from_ref_time(43_663 as u64).saturating_mul(s as u64)) + .saturating_add(T::DbWeight::get().reads(3 as u64)) + .saturating_add(T::DbWeight::get().writes(2 as u64)) + } + // Storage: NFT Nfts (r:1 w:0) + // Storage: TransmissionProtocols Transmissions (r:1 w:0) + // Storage: TransmissionProtocols AtBlockQueue (r:1 w:1) + // Storage: TransmissionProtocols OnConsentData (r:1 w:1) + /// The range of component `s` is `[0, 999999]`. + fn add_consent(s: u32, ) -> Weight { + Weight::from_ref_time(113_495_000 as u64) + // Standard Error: 252 + .saturating_add(Weight::from_ref_time(65_782 as u64).saturating_mul(s as u64)) + .saturating_add(T::DbWeight::get().reads(4 as u64)) + .saturating_add(T::DbWeight::get().writes(2 as u64)) + } + // Storage: TransmissionProtocols AtBlockFee (r:0 w:1) + fn set_protocol_fee() -> Weight { + Weight::from_ref_time(47_570_000 as u64) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } +} diff --git a/ternoa-pallets b/ternoa-pallets index a2538a3a..e4ddd9af 160000 --- a/ternoa-pallets +++ b/ternoa-pallets @@ -1 +1 @@ -Subproject commit a2538a3a36a79bf18326d9ee2c5e168b0045fc48 +Subproject commit e4ddd9aff0a74c10ec00cf519f144061acf76426