diff --git a/Cargo.lock b/Cargo.lock index 2571df0..666df95 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -14,19 +14,20 @@ dependencies = [ [[package]] name = "actor-system-error" -version = "0.1.0" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62454c32e29c8b10d12f3cb09489763a0303a12c1a09a869fadec6ec8256bcb8" dependencies = [ "derive_more", ] [[package]] name = "addr2line" -version = "0.17.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9ecd88a8c8378ca913a680cd98f0f13ac67383d35993f86c90a70e3f137816b" +checksum = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97" dependencies = [ - "gimli 0.26.2", + "gimli 0.27.3", ] [[package]] @@ -150,9 +151,9 @@ checksum = "080e9890a082662b09c1ad45f567faeeb47f22b5fb23895fbe1e651e718e25ca" [[package]] name = "array-bytes" -version = "4.2.0" +version = "6.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f52f63c5c1316a16a4b35eaac8b76a98248961a533f061684cb2a7cb0eafb6c6" +checksum = "6f840fb7195bcfc5e17ea40c26e5ce6d5b9ce5d584466e17703209657e459ae0" [[package]] name = "arrayref" @@ -264,7 +265,7 @@ dependencies = [ "futures-lite 2.0.1", "parking", "polling 3.3.1", - "rustix 0.38.25", + "rustix 0.38.31", "slab", "tracing", "windows-sys 0.52.0", @@ -314,7 +315,7 @@ dependencies = [ "cfg-if", "event-listener 3.1.0", "futures-lite 1.13.0", - "rustix 0.38.25", + "rustix 0.38.31", "windows-sys 0.48.0", ] @@ -330,7 +331,7 @@ dependencies = [ "cfg-if", "futures-core", "futures-io", - "rustix 0.38.25", + "rustix 0.38.31", "signal-hook-registry", "slab", "windows-sys 0.48.0", @@ -350,7 +351,7 @@ checksum = "a66537f1bb974b254c98ed142ff995236e81b9d0fe4db0575f46612cb15eb0f9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.50", ] [[package]] @@ -388,9 +389,9 @@ dependencies = [ [[package]] name = "base16ct" -version = "0.1.1" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "349a06037c7bf932dd7e7d1f653678b2038b9ad46a74102f1fc7bd7872678cce" +checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" [[package]] name = "base58" @@ -406,9 +407,9 @@ checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" [[package]] name = "base64" -version = "0.21.5" +version = "0.21.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35636a1494ede3b646cc98f74f8e62c773a38a659ebc777a2cf26b9b74171df9" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" [[package]] name = "base64ct" @@ -670,9 +671,9 @@ dependencies = [ [[package]] name = "cargo_metadata" -version = "0.15.3" +version = "0.18.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08a1ec454bc3eead8719cb56e15dbbfecdbc14e4b3a3ae4936cc6e31f5fc0d07" +checksum = "2d886547e41f740c616ae73108f6eb70afe6d940c7bc697cb30f13daec073037" dependencies = [ "camino", "cargo-platform", @@ -688,15 +689,14 @@ version = "1.0.83" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" dependencies = [ - "jobserver", "libc", ] [[package]] name = "cfg-expr" -version = "0.10.3" +version = "0.15.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0aacacf4d96c24b2ad6eb8ee6df040e4f27b0d0b39a5710c30091baa830485db" +checksum = "fa50868b64a9a6fda9d593ce778849ea8715cd2a3d2cc17ffdb4a2f2f2f1961d" dependencies = [ "smallvec", ] @@ -767,11 +767,10 @@ dependencies = [ [[package]] name = "colored" -version = "2.0.4" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2674ec482fbc38012cf31e6c42ba0177b431a0cb6f15fe40efa5aab1bda516f6" +checksum = "cbf2150cce219b664a8a70df7a1f933836724b503f8a413af9365b4dcc4d90b8" dependencies = [ - "is-terminal", "lazy_static", "windows-sys 0.48.0", ] @@ -791,6 +790,46 @@ version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "28c122c3980598d243d63d9a704629a2d748d101f278052ff068be5a4423ab6f" +[[package]] +name = "const-random" +version = "0.1.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5aaf16c9c2c612020bcfd042e170f6e32de9b9d75adb5277cdbbd2e2c8c8299a" +dependencies = [ + "const-random-macro", +] + +[[package]] +name = "const-random-macro" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e" +dependencies = [ + "getrandom 0.2.11", + "once_cell", + "tiny-keccak", +] + +[[package]] +name = "const_format" +version = "0.2.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3a214c7af3d04997541b18d432afaff4c455e79e2029079647e72fc2bd27673" +dependencies = [ + "const_format_proc_macros", +] + +[[package]] +name = "const_format_proc_macros" +version = "0.2.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7f6ff08fd20f4f299298a28e2dfa8a8ba1036e6cd2460ac1de7b425d76f2500" +dependencies = [ + "proc-macro2", + "quote", + "unicode-xid", +] + [[package]] name = "constant_time_eq" version = "0.1.5" @@ -825,6 +864,25 @@ version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" +[[package]] +name = "core-processor" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "492d26c105a9e4d0dcac2eb9866a9fc3ba4da8ce43179ee7e51604fa49c593f7" +dependencies = [ + "actor-system-error", + "derive_more", + "gear-core", + "gear-core-backend", + "gear-core-errors", + "gear-lazy-pages-common", + "gear-lazy-pages-interface", + "gear-wasm-instrument", + "gsys", + "log", + "scale-info", +] + [[package]] name = "corosensei" version = "0.1.4" @@ -905,9 +963,9 @@ checksum = "9e3bfe172b83167604601faf9dc60453e0d0a93415b57a9c4d1a7ae6849185cf" [[package]] name = "cranelift-entity" -version = "0.93.2" +version = "0.95.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f42ea692c7b450ad18b8c9889661505d51c09ec4380cf1c2d278dbb2da22cae1" +checksum = "40099d38061b37e505e63f89bab52199037a72b931ad4868d9089ff7268660b0" dependencies = [ "serde", ] @@ -984,9 +1042,9 @@ checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" [[package]] name = "crypto-bigint" -version = "0.4.9" +version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef2b4b23cddf68b89b8f8069890e8c270d54e2d5fe1b143820234805e4cb17ef" +checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" dependencies = [ "generic-array 0.14.7", "rand_core 0.6.4", @@ -1084,7 +1142,7 @@ checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.50", ] [[package]] @@ -1145,7 +1203,7 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn 2.0.39", + "syn 2.0.50", ] [[package]] @@ -1167,14 +1225,14 @@ checksum = "836a9bbc7ad63342d6d6e7b815ccab164bc77a2d95d84bc3117a8c0d5c98e2d5" dependencies = [ "darling_core 0.20.3", "quote", - "syn 2.0.39", + "syn 2.0.50", ] [[package]] name = "der" -version = "0.6.1" +version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1a467a65c5e759bce6e65eaf91cc29f466cdc57cb65777bd646872a8a1fd4de" +checksum = "fffa369a668c8af7dbf8b5e56c9f744fbd399949ed171606040001947de40b1c" dependencies = [ "const-oid", "zeroize", @@ -1240,6 +1298,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ "block-buffer 0.10.4", + "const-oid", "crypto-common", "subtle", ] @@ -1264,18 +1323,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "dlmalloc" -version = "0.1.4" -source = "git+https://github.com/gear-tech/dlmalloc-rust.git#15352f969112faa463302f2490bbb7f6e1cb904d" -dependencies = [ - "libc", - "libc-print", - "page_size", - "static_assertions", - "str-buf", -] - [[package]] name = "downcast-rs" version = "1.2.0" @@ -1337,14 +1384,16 @@ dependencies = [ [[package]] name = "ecdsa" -version = "0.14.8" +version = "0.16.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "413301934810f597c1d19ca71c8710e99a3f1ba28a0d2ebc01551a2daeea3c5c" +checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca" dependencies = [ "der", + "digest 0.10.7", "elliptic-curve", "rfc6979", - "signature", + "signature 2.2.0", + "spki", ] [[package]] @@ -1353,7 +1402,7 @@ version = "1.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7" dependencies = [ - "signature", + "signature 1.6.4", ] [[package]] @@ -1390,17 +1439,17 @@ checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" [[package]] name = "elliptic-curve" -version = "0.12.3" +version = "0.13.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7bb888ab5300a19b8e5bceef25ac745ad065f3c9f7efc6de1b91958110891d3" +checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47" dependencies = [ "base16ct", "crypto-bigint", - "der", "digest 0.10.7", "ff", "generic-array 0.14.7", "group", + "pkcs8", "rand_core 0.6.4", "sec1", "subtle", @@ -1444,7 +1493,7 @@ checksum = "eecf8589574ce9b895052fa12d69af7a233f99e6107f5cb8dd1044f2a17bfdcb" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.50", ] [[package]] @@ -1465,7 +1514,7 @@ dependencies = [ "darling 0.20.3", "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.50", ] [[package]] @@ -1495,12 +1544,12 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f258a7194e7f7c2a7837a8913aeab7fd8c383457034fa20ce4dd3dcb813e8eb8" +checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245" dependencies = [ "libc", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -1543,15 +1592,15 @@ dependencies = [ [[package]] name = "expander" -version = "1.0.0" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f360349150728553f92e4c997a16af8915f418d3a0f21b440d34c5632f16ed84" +checksum = "5f86a749cf851891866c10515ef6c299b5c69661465e9c3bbe7e07a2b77fb0f7" dependencies = [ "blake2", "fs-err", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.50", ] [[package]] @@ -1583,9 +1632,9 @@ checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" [[package]] name = "ff" -version = "0.12.1" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d013fc25338cc558c5c2cfbad646908fb23591e2404481826742b651c9af7160" +checksum = "ded41244b729663b1e574f1b4fb731469f69f79c17667b5d776b16cda0479449" dependencies = [ "rand_core 0.6.4", "subtle", @@ -1633,7 +1682,6 @@ dependencies = [ "cfg-if", "parity-scale-codec", "scale-info", - "serde", ] [[package]] @@ -1650,17 +1698,18 @@ dependencies = [ [[package]] name = "frame-support" -version = "4.0.0-dev" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12ab435a28c0b92be45e871a20faae7307a5f1153168aed11076892511b97332" dependencies = [ "bitflags 1.3.2", "environmental", - "frame-metadata 15.1.0", + "frame-metadata 16.0.0", "frame-support-procedural", "impl-trait-for-tuples", "k256", "log", - "once_cell", + "macro_magic", "parity-scale-codec", "paste", "scale-info", @@ -1670,52 +1719,79 @@ dependencies = [ "sp-arithmetic", "sp-core", "sp-core-hashing-proc-macro", + "sp-debug-derive", "sp-inherents", "sp-io", "sp-runtime", "sp-staking", "sp-state-machine", - "sp-std 5.0.0", - "sp-tracing", + "sp-std 9.0.0", + "sp-tracing 11.0.0", "sp-weights", "tt-call", ] [[package]] name = "frame-support-procedural" -version = "4.0.0-dev" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "17.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3515d87fdbf82fa3e5a03b4318ee897c3b2adda928625146dd7d33d52bc2978" dependencies = [ "Inflector", "cfg-expr", "derive-syn-parse", + "expander", "frame-support-procedural-tools", "itertools", + "macro_magic", + "proc-macro-warning", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.50", ] [[package]] name = "frame-support-procedural-tools" -version = "4.0.0-dev" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "072beafb884cd1c046188c64d593cacb6860314f50478a3713438cc56bee42de" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.50", ] [[package]] name = "frame-support-procedural-tools-derive" -version = "3.0.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c3562da4b7b8e24189036c58d459b260e10c8b7af2dd180b7869ae29bb66277" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.50", +] + +[[package]] +name = "frame-system" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c5104921b9e4e8ffee5251caf7d28defa4e97080554b0e57f93a72b1ec8b915" +dependencies = [ + "cfg-if", + "frame-support", + "log", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std 9.0.0", + "sp-version", + "sp-weights", ] [[package]] @@ -1750,9 +1826,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff4dd66668b557604244583e3e1e1eada8c5c2e96a6d0d6653ede395b78bbacb" +checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" dependencies = [ "futures-core", "futures-sink", @@ -1760,9 +1836,9 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb1d22c66e66d9d72e1758f0bd7d4fd0bee04cad842ee34587d68c07e45d088c" +checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" [[package]] name = "futures-executor" @@ -1778,9 +1854,9 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bf34a163b5c4c52d0478a4d757da8fb65cabef42ba90515efee0f6f9fa45aaa" +checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" [[package]] name = "futures-lite" @@ -1813,26 +1889,26 @@ dependencies = [ [[package]] name = "futures-macro" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53b153fd91e4b0147f4aced87be237c98248656bb01050b96bf3ee89220a8ddb" +checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.50", ] [[package]] name = "futures-sink" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e36d3378ee38c2a36ad710c5d30c2911d752cb941c00c72dbabfb786a7970817" +checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" [[package]] name = "futures-task" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efd193069b0ddadc69c46389b740bbccdd97203899b48d09c5f7969591d6bae2" +checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" [[package]] name = "futures-timer" @@ -1842,9 +1918,9 @@ checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c" [[package]] name = "futures-util" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a19526d624e703a3179b3d322efec918b6246ea0fa51d41124525f00f1cc8104" +checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" dependencies = [ "futures-channel", "futures-core", @@ -1860,30 +1936,28 @@ dependencies = [ [[package]] name = "galloc" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fc660179e00a600ccac2b78923509434bf3bbd43b08beb05839c55a6c51a96b" dependencies = [ - "dlmalloc", + "gear-dlmalloc", ] [[package]] name = "gclient" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "571a60f20abf8232bdfe701c033d81e1995c6110ffeb854cd8b932ef09256ef6" dependencies = [ "anyhow", "async-trait", "futures", - "futures-timer", "gear-core", "gear-core-errors", "gear-utils", "gsdk", - "gstd", "hex", "parity-scale-codec", - "rand 0.8.5", - "static_assertions", "subxt", "thiserror", "url", @@ -1892,52 +1966,53 @@ dependencies = [ [[package]] name = "gcore" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5018c42f6706b56ca0cce4aaa58f4f25fc3c79aa43c6abf9c988630affb250e1" dependencies = [ "gear-core-errors", "gear-stack-buffer", "gsys", "parity-scale-codec", - "static_assertions", ] [[package]] name = "gear-common" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7eb2b5fa0753112e17f022dc9f8c6f2ac5e03d745a5c271eab772c75132112f7" dependencies = [ "derive_more", "enum-iterator 1.4.1", "frame-support", + "frame-system", "gear-common-codegen", "gear-core", "gear-wasm-instrument", - "hex", + "gsys", "log", - "path-clean", "primitive-types", - "serde", - "serde_json", "sp-arithmetic", "sp-core", "sp-io", - "sp-std 5.0.0", + "sp-std 9.0.0", ] [[package]] name = "gear-common-codegen" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae44bf1df11df017d684247aeb297e05252406c527f402b0f4b3e9be6e691348" dependencies = [ "quote", - "syn 2.0.39", + "syn 2.0.50", ] [[package]] name = "gear-core" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b171e6947c247a71c5c82371ffdf55b14774d3708338d0b3cb9518ea0d69372" dependencies = [ "blake2-rfc", "byteorder", @@ -1945,6 +2020,7 @@ dependencies = [ "enum-iterator 1.4.1", "gear-core-errors", "gear-wasm-instrument", + "gsys", "hashbrown 0.14.3", "hex", "log", @@ -1953,20 +2029,19 @@ dependencies = [ "paste", "scale-info", "serde", - "static_assertions", "wasmparser-nostd", ] [[package]] name = "gear-core-backend" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d904bf78fbf85df6432c374fe1e395a00f09a655c55583c3769e39972a8b0ac" dependencies = [ "actor-system-error", "blake2-rfc", "derive_more", "gear-core", - "gear-core-backend-codegen", "gear-core-errors", "gear-lazy-pages-common", "gear-sandbox", @@ -1977,20 +2052,11 @@ dependencies = [ "parity-scale-codec", ] -[[package]] -name = "gear-core-backend-codegen" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.39", -] - [[package]] name = "gear-core-errors" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9efc280bce244132fc90879d08f38cf8df78c656fb1457507b9253b928e00225" dependencies = [ "derive_more", "enum-iterator 1.4.1", @@ -1998,27 +2064,23 @@ dependencies = [ ] [[package]] -name = "gear-core-processor" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +name = "gear-dlmalloc" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b88fcd5524e7ab9f156c17b14e754d6ba122ef9b00586d632d2ae3dbc7bfadb" dependencies = [ - "actor-system-error", - "derive_more", - "gear-core", - "gear-core-backend", - "gear-core-errors", - "gear-lazy-pages-common", - "gear-lazy-pages-interface", - "gear-wasm-instrument", - "log", - "scale-info", + "libc", + "libc-print", + "page_size", "static_assertions", + "str-buf", ] [[package]] name = "gear-lazy-pages" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52e5236ee03f6dd5e4b540167f34b3285d87116d3bb13cd503c5e0def176c0f6" dependencies = [ "cfg-if", "derive_more", @@ -2030,20 +2092,16 @@ dependencies = [ "log", "mach", "nix", - "once_cell", "region", - "sc-executor-common", - "sp-io", - "sp-std 5.0.0", - "sp-wasm-interface", - "static_assertions", + "sp-wasm-interface-common", "winapi", ] [[package]] name = "gear-lazy-pages-common" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3f15c3fd6731592305b905b1dea42aa6e1d253b7b089edb095f15d87ab84214" dependencies = [ "gear-core", "num_enum", @@ -2052,81 +2110,90 @@ dependencies = [ [[package]] name = "gear-lazy-pages-interface" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c9a525122cd12ce312a6b6c586bf0892b154fb8d3b545c64368833e94850c39" dependencies = [ "byteorder", - "derive_more", "gear-common", "gear-core", "gear-lazy-pages-common", "gear-runtime-interface", - "gear-wasm-instrument", "log", - "sp-std 5.0.0", + "sp-std 9.0.0", +] + +[[package]] +name = "gear-pwasm-utils" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ea09901ce41f64d1be7369b8c2efc774e89b200ac434496ab24e6af96e68f97" +dependencies = [ + "byteorder", + "gear-wasm", + "log", ] [[package]] name = "gear-runtime-interface" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e5f0fae86361b7d0380267b85b5c1b563a260d8157c9ff90efc31e9227eae60" dependencies = [ "byteorder", - "derive_more", "gear-core", "gear-lazy-pages", "gear-lazy-pages-common", "gear-sandbox-host", - "libc", + "gp-runtime-interface", + "gp-wasm-interface", "log", "parity-scale-codec", - "region", - "sp-allocator", - "sp-runtime-interface", - "sp-std 5.0.0", - "sp-wasm-interface", - "static_assertions", + "sp-io", + "sp-std 9.0.0", "winapi", ] [[package]] name = "gear-sandbox" -version = "0.1.0" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6eb8ddbe1520afe7fa4e7241296452e769f5e1452edee3a39e94a611011ee8c3" dependencies = [ "gear-runtime-interface", "gear-sandbox-env", + "gwasmi", "log", "parity-scale-codec", "sp-core", - "sp-std 5.0.0", - "sp-wasm-interface", - "wasmi 0.30.0 (git+https://github.com/gear-tech/wasmi?branch=gear-v0.30.0)", + "sp-std 9.0.0", + "sp-wasm-interface-common", ] [[package]] name = "gear-sandbox-env" -version = "0.1.0" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e57c49b226c118eb6416f03ce7ffe0338e9735349d931bbe9e241732eef9819" dependencies = [ "parity-scale-codec", - "sp-core", - "sp-std 5.0.0", - "sp-wasm-interface", + "sp-debug-derive", + "sp-std 9.0.0", + "sp-wasm-interface-common", ] [[package]] name = "gear-sandbox-host" -version = "0.1.0" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82e596d5edcf51522fdf8b85c250b7911640904026a7b86e9b73598e270de3a5" dependencies = [ "environmental", "gear-sandbox-env", + "gp-allocator", "log", - "once_cell", "parity-scale-codec", - "sp-allocator", - "sp-wasm-interface", + "sp-wasm-interface-common", "tempfile", "thiserror", "wasmer", @@ -2137,13 +2204,15 @@ dependencies = [ [[package]] name = "gear-stack-buffer" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5171ae8e1b88b40f30d2349924755fa24ef6b10cbd0ae6f16627df67774386c4" [[package]] name = "gear-utils" -version = "0.1.0" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e54fd91242dbb99242a3002a1b9d6f2e60ba7ebe4880d8a422978d8c8b1c12e0" dependencies = [ "env_logger", "gear-core", @@ -2163,8 +2232,9 @@ checksum = "bbfbfa701dc65e683fcd2fb24f046bcef22634acbdf47ad14724637dc39ad05b" [[package]] name = "gear-wasm-builder" -version = "0.1.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90cacb0bf2bcb1b70ae4773b0a711e4c082789c301fc63b902440d2f6391b5df" dependencies = [ "anyhow", "cargo_metadata", @@ -2172,12 +2242,12 @@ dependencies = [ "colored", "dirs", "gear-core", + "gear-pwasm-utils", "gear-wasm-instrument", "gmeta", "log", "once_cell", "pathdiff", - "pwasm-utils", "regex", "thiserror", "toml", @@ -2187,9 +2257,11 @@ dependencies = [ [[package]] name = "gear-wasm-instrument" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7d501ae30810c2aee710e0e74ee767c4f1274c00273b110433cc7d8291bbcd8" dependencies = [ + "derive_more", "enum-iterator 1.4.1", "gwasm-instrument", ] @@ -2211,6 +2283,7 @@ checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" dependencies = [ "typenum", "version_check", + "zeroize", ] [[package]] @@ -2256,6 +2329,17 @@ dependencies = [ "stable_deref_trait", ] +[[package]] +name = "gimli" +version = "0.27.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c80984affa11d98d1b88b66ac8853f143217b399d3c74116778ff8fdb4ed2e" +dependencies = [ + "fallible-iterator", + "indexmap 1.9.3", + "stable_deref_trait", +] + [[package]] name = "gimli" version = "0.28.1" @@ -2270,8 +2354,9 @@ checksum = "8be18de09a56b60ed0edf84bc9df007e30040691af7acd1c41874faac5895bfb" [[package]] name = "gmeta" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f464cf8d902292e38cfa68fb0a42ca7249525e4358e4ed7e2521fc660ae21c22" dependencies = [ "blake2-rfc", "derive_more", @@ -2282,19 +2367,80 @@ dependencies = [ [[package]] name = "gmeta-codegen" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6c5b9a168936d49be77437f06808509f0b4f36a2db79f46078afcc3be7683d7" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "gp-allocator" +version = "4.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93cfb4525b5362966a1971125ff8f9825e6a511403635dccf883273d20c43bdf" +dependencies = [ + "log", + "parity-scale-codec", + "sp-wasm-interface-common", + "thiserror", +] + +[[package]] +name = "gp-runtime-interface" +version = "18.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8dfb3786bf8fe51099c67dfe7c9a925fe0bfb78ffe938aa07b598995ee48d0e3" dependencies = [ + "bytes", + "gp-runtime-interface-proc-macro", + "gp-wasm-interface", + "impl-trait-for-tuples", + "parity-scale-codec", + "primitive-types", + "sp-externalities", + "sp-std 9.0.0", + "sp-storage", + "sp-tracing 10.0.0", + "static_assertions", +] + +[[package]] +name = "gp-runtime-interface-proc-macro" +version = "12.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1e4d907f86db64e8b9d9af0b5adfd59e62b4023fd88511e13d62028ed101f2c" +dependencies = [ + "Inflector", + "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.50", +] + +[[package]] +name = "gp-wasm-interface" +version = "15.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de334e40147f969276463ad04d0ddfe519aebb6254832ea0637a300c6d637c11" +dependencies = [ + "anyhow", + "gp-allocator", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "sp-std 9.0.0", + "sp-wasm-interface-common", + "wasmtime", ] [[package]] name = "group" -version = "0.12.1" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dfbfb3a6cfbd390d5c9564ab283a0349b9b9fcd46a706c1eb10e0db70bfbac7" +checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" dependencies = [ "ff", "rand_core 0.6.4", @@ -2303,11 +2449,13 @@ dependencies = [ [[package]] name = "gsdk" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a61807346a08dbd4a42247aeb7cdba844d5b42190019f1d94d341e7a1b746429" dependencies = [ "anyhow", - "base64 0.21.5", + "base64 0.21.7", + "colored", "futures", "futures-util", "gear-core", @@ -2332,20 +2480,24 @@ dependencies = [ [[package]] name = "gsdk-codegen" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ca466389130e38806717264e103e958587d9eaeed52d19bcee31afe720ffe81" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.50", ] [[package]] name = "gstd" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81233e10d5a9f11f697b824be5474506918dc3d707223f10a102c1e01a1b4855" dependencies = [ - "bs58 0.4.0", + "arrayvec 0.7.4", + "bs58 0.5.0", + "const_format", "futures", "galloc", "gcore", @@ -2356,57 +2508,85 @@ dependencies = [ "parity-scale-codec", "primitive-types", "scale-info", - "static_assertions", ] [[package]] name = "gstd-codegen" -version = "0.1.0" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a709957cf82f4a83ef4ed55ef4c4894d014142c1dfcf892abb93aeaff137273b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.50", ] [[package]] name = "gsys" -version = "1.0.2" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4fed3acad7ecf119368534ab92245a41bb37477a4f14f3c14e5f011f72f4bda" [[package]] name = "gtest" -version = "0.1.0" -source = "git+https://github.com/gear-tech/gear?tag=v1.0.2#d02d306f97c2d60c1a8786366a56d8c02264f4e1" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f91ddcd3d89b23995794008dc3fb8dcca720571fd661de162a82c55def07486" dependencies = [ - "anyhow", "colored", + "core-processor", "derive_more", "env_logger", "gear-core", "gear-core-errors", - "gear-core-processor", - "gear-lazy-pages-interface", + "gear-lazy-pages", + "gear-lazy-pages-common", "gear-utils", - "gear-wasm-builder", "gear-wasm-instrument", + "gsys", "hex", "log", "parity-scale-codec", "path-clean", "rand 0.8.5", - "sp-io", ] [[package]] name = "gwasm-instrument" -version = "0.2.3" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69fe7c1db90c8183b2aecb6d3629b2e59b71dfb538d9138f9ae2fa76a2fc0c55" +checksum = "09c5fda64a6f7f331a6425df8d678dfc542f3135b43e3cc229d431d391ff3c7d" dependencies = [ "gear-wasm", ] +[[package]] +name = "gwasmi" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "540bef71ad072d770140dc3f47f6bcc2b2b0492aa6a3ff236a13a7cd9427c58b" +dependencies = [ + "gwasmi_core", + "intx", + "smallvec", + "spin", + "wasmi_arena", + "wasmparser-nostd", +] + +[[package]] +name = "gwasmi_core" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47443d9a0eaa456c80525cebb42178fc47690fee77f9729eeece6ff70906fdcf" +dependencies = [ + "downcast-rs", + "libm", + "num-traits", + "paste", + "region", +] + [[package]] name = "h2" version = "0.3.22" @@ -2773,7 +2953,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" dependencies = [ "hermit-abi", - "rustix 0.38.25", + "rustix 0.38.31", "windows-sys 0.48.0", ] @@ -2792,15 +2972,6 @@ version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" -[[package]] -name = "jobserver" -version = "0.1.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c37f63953c4c63420ed5fd3d6d398c719489b9f872b9fa683262f8edd363c7d" -dependencies = [ - "libc", -] - [[package]] name = "js-sys" version = "0.3.65" @@ -3001,13 +3172,14 @@ dependencies = [ [[package]] name = "k256" -version = "0.11.6" +version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72c1e0b51e7ec0a97369623508396067a486bd0cbed95a2659a4b863d28cfc8b" +checksum = "956ff9b67e26e1a6a866cb758f12c6f8746208489e3e4a4b5580802f2f0a587b" dependencies = [ "cfg-if", "ecdsa", "elliptic-curve", + "once_cell", "sha2 0.10.8", ] @@ -3034,9 +3206,9 @@ checksum = "884e2677b40cc8c339eaefcb701c32ef1fd2493d71118dc0ca4b6a736c93bd67" [[package]] name = "libc" -version = "0.2.150" +version = "0.2.153" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c" +checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" [[package]] name = "libc-print" @@ -3136,9 +3308,9 @@ checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" [[package]] name = "linux-raw-sys" -version = "0.4.11" +version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "969488b55f8ac402214f3f5fd243ebb7206cf82de60d3172994707a4bcc2b829" +checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c" [[package]] name = "lock_api" @@ -3184,12 +3356,60 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "718e8fae447df0c7e1ba7f5189829e63fd536945c8988d61444c19039f16b670" [[package]] -name = "mach" -version = "0.3.2" +name = "mach" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa" +dependencies = [ + "libc", +] + +[[package]] +name = "macro_magic" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aee866bfee30d2d7e83835a4574aad5b45adba4cc807f2a3bbba974e5d4383c9" +dependencies = [ + "macro_magic_core", + "macro_magic_macros", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "macro_magic_core" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e766a20fd9c72bab3e1e64ed63f36bd08410e75803813df210d1ce297d7ad00" +dependencies = [ + "const-random", + "derive-syn-parse", + "macro_magic_core_macros", + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "macro_magic_core_macros" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d710e1214dffbab3b5dacb21475dde7d6ed84c69ff722b3a47a782668d44fbac" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + +[[package]] +name = "macro_magic_macros" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa" +checksum = "b8fb85ec1620619edf2984a7693497d4ec88a9665d8b87e942856884c92dbf2a" dependencies = [ - "libc", + "macro_magic_core", + "quote", + "syn 2.0.50", ] [[package]] @@ -3213,7 +3433,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2cffa4ad52c6f791f4f8b15f0c05f9824b2ced1160e88cc393d64fff9a8ac64" dependencies = [ - "rustix 0.38.25", + "rustix 0.38.31", ] [[package]] @@ -3243,6 +3463,15 @@ dependencies = [ "autocfg", ] +[[package]] +name = "memoffset" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1" +dependencies = [ + "autocfg", +] + [[package]] name = "memoffset" version = "0.9.0" @@ -3449,7 +3678,7 @@ checksum = "96667db765a921f7b295ffee8b60472b686a51d4f21c2ee4ffdb94c7013b65a6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.50", ] [[package]] @@ -3466,12 +3695,12 @@ dependencies = [ [[package]] name = "object" -version = "0.29.0" +version = "0.30.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21158b2c33aa6d4561f1c0a6ea283ca92bc54802a93b263e910746d679a7eb53" +checksum = "03b4680b86d9cfafba8fc491dc9b6df26b68cf40e9e6cd73909194759a63c385" dependencies = [ "crc32fast", - "hashbrown 0.12.3", + "hashbrown 0.13.2", "indexmap 1.9.3", "memchr", ] @@ -3487,9 +3716,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.18.0" +version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" +checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "opaque-debug" @@ -3546,23 +3775,12 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "parity-wasm" -version = "0.42.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be5e13c266502aadf83426d87d81a0f5d1ef45b8027f5a471c360abfe4bfae92" - [[package]] name = "parity-wasm" version = "0.45.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e1ad0aff30c1da14b1254fcb2af73e1fa9a28670e584a626f53a369d0e157304" -[[package]] -name = "parity-wasm" -version = "0.45.0" -source = "git+https://github.com/gear-tech/parity-wasm?branch=v0.45.0-sign-ext#bad3e1ec78f655f3eec5a0c9c12a3546c8c9d432" - [[package]] name = "parking" version = "2.2.0" @@ -3660,7 +3878,7 @@ checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.50", ] [[package]] @@ -3688,20 +3906,14 @@ dependencies = [ [[package]] name = "pkcs8" -version = "0.9.0" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9eca2c590a5f85da82668fa685c09ce2888b9430e83299debf1f34b65fd4a4ba" +checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" dependencies = [ "der", "spki", ] -[[package]] -name = "pkg-config" -version = "0.3.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964" - [[package]] name = "platforms" version = "3.2.0" @@ -3733,7 +3945,7 @@ dependencies = [ "cfg-if", "concurrent-queue", "pin-project-lite", - "rustix 0.38.25", + "rustix 0.38.31", "tracing", "windows-sys 0.52.0", ] @@ -3814,11 +4026,22 @@ dependencies = [ "version_check", ] +[[package]] +name = "proc-macro-warning" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d1eaa7fa0aa1929ffdf7eeb6eac234dde6268914a14ad44d23521ab6a9b258e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.50", +] + [[package]] name = "proc-macro2" -version = "1.0.70" +version = "1.0.78" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39278fbbf5fb4f646ce651690877f89d1c5811a3d4acb27700c1cb3cdb78fd3b" +checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" dependencies = [ "unicode-ident", ] @@ -3852,22 +4075,11 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "pwasm-utils" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ecdabd73c8beaf98c66e45aff3032b56260ee49eb5d0d1222ecce269bfafda7" -dependencies = [ - "byteorder", - "log", - "parity-wasm 0.42.2", -] - [[package]] name = "quote" -version = "1.0.33" +version = "1.0.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" +checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" dependencies = [ "proc-macro2", ] @@ -4006,7 +4218,7 @@ checksum = "7f7473c2cfcf90008193dd0e3e16599455cb601a9fce322b5bb55de799664925" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.50", ] [[package]] @@ -4087,13 +4299,12 @@ dependencies = [ [[package]] name = "rfc6979" -version = "0.3.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7743f17af12fa0b03b803ba12cd6a8d9483a587e89c69445e3909655c0b9fabb" +checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" dependencies = [ - "crypto-bigint", "hmac 0.12.1", - "zeroize", + "subtle", ] [[package]] @@ -4195,15 +4406,15 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.25" +version = "0.38.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc99bc2d4f1fed22595588a013687477aedf3cdcfb26558c559edb67b4d9b22e" +checksum = "6ea3e1a662af26cd7a3ba09c0297a31af215563ecf42817c98df621387f4e949" dependencies = [ "bitflags 2.4.1", "errno", "libc", - "linux-raw-sys 0.4.11", - "windows-sys 0.48.0", + "linux-raw-sys 0.4.13", + "windows-sys 0.52.0", ] [[package]] @@ -4236,7 +4447,7 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" dependencies = [ - "base64 0.21.5", + "base64 0.21.7", ] [[package]] @@ -4272,19 +4483,6 @@ version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" -[[package]] -name = "sc-executor-common" -version = "0.10.0-dev" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" -dependencies = [ - "sp-allocator", - "sp-maybe-compressed-blob", - "sp-wasm-interface", - "thiserror", - "wasm-instrument", - "wasmi 0.13.2", -] - [[package]] name = "scale-bits" version = "0.4.0" @@ -4476,9 +4674,9 @@ checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b" [[package]] name = "sec1" -version = "0.3.0" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3be24c1842290c45df0a7bf069e0c268a747ad05a192f2fd7dcfdbc1cba40928" +checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" dependencies = [ "base16ct", "der", @@ -4573,7 +4771,7 @@ checksum = "43576ca501357b9b071ac53cdc7da8ef0cbd9493d8df094cd821777ea6e894d3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.50", ] [[package]] @@ -4678,6 +4876,12 @@ name = "signature" version = "1.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" + +[[package]] +name = "signature" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" dependencies = [ "digest 0.10.7", "rand_core 0.6.4", @@ -4736,7 +4940,7 @@ dependencies = [ "arrayvec 0.7.4", "async-lock 2.8.0", "atomic", - "base64 0.21.5", + "base64 0.21.7", "bip39", "blake2-rfc", "bs58 0.5.0", @@ -4776,7 +4980,7 @@ dependencies = [ "soketto", "tiny-keccak", "twox-hash", - "wasmi 0.30.0 (registry+https://github.com/rust-lang/crates.io-index)", + "wasmi 0.30.0", ] [[package]] @@ -4859,30 +5063,23 @@ dependencies = [ "sha-1", ] -[[package]] -name = "sp-allocator" -version = "4.1.0-dev" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" -dependencies = [ - "log", - "parity-scale-codec", - "sp-wasm-interface-common", - "thiserror", -] - [[package]] name = "sp-api" -version = "4.0.0-dev" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "20.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aa63dcdd3fb081a894189f83115dd683be1339a919cd7d3f98f145d1870626c" dependencies = [ "hash-db", "log", "parity-scale-codec", + "scale-info", "sp-api-proc-macro", "sp-core", + "sp-externalities", + "sp-metadata-ir", "sp-runtime", "sp-state-machine", - "sp-std 5.0.0", + "sp-std 9.0.0", "sp-trie", "sp-version", "thiserror", @@ -4890,8 +5087,9 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" -version = "4.0.0-dev" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "9.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a062dfff051064bfa1837566b74d00a49050b36e3887b2283ab667cef4f3a85e" dependencies = [ "Inflector", "blake2", @@ -4899,46 +5097,49 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.50", ] [[package]] name = "sp-application-crypto" -version = "7.0.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "24.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b49d62089ef6fdd52a6f90f670d533ccb365235258cf517dbd5bd571febcfbd" dependencies = [ "parity-scale-codec", "scale-info", "serde", "sp-core", "sp-io", - "sp-std 5.0.0", + "sp-std 9.0.0", ] [[package]] name = "sp-arithmetic" -version = "6.0.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "17.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0241327405688cac3fcc29114fd35f99224e321daa37e19920e50e4b2fdd0645" dependencies = [ "integer-sqrt", "num-traits", "parity-scale-codec", "scale-info", "serde", - "sp-std 5.0.0", + "sp-std 9.0.0", "static_assertions", ] [[package]] name = "sp-core" -version = "7.0.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0de478e02efd547693b33ad02515e09933d5b69b7f3036fa890b92e50fd9dfc" dependencies = [ "array-bytes", - "base58", "bitflags 1.3.2", "blake2", "bounded-collections", + "bs58 0.4.0", "dyn-clonable", "ed25519-zebra", "futures", @@ -4951,6 +5152,7 @@ dependencies = [ "merlin 2.0.1", "parity-scale-codec", "parking_lot", + "paste", "primitive-types", "rand 0.8.5", "regex", @@ -4959,116 +5161,119 @@ dependencies = [ "secp256k1", "secrecy", "serde", - "sp-allocator", - "sp-core-hashing 5.0.0", + "sp-core-hashing 10.0.0", "sp-debug-derive", "sp-externalities", "sp-runtime-interface", - "sp-std 5.0.0", + "sp-std 9.0.0", "sp-storage", "ss58-registry", "substrate-bip39", "thiserror", "tiny-bip39", + "tracing", "zeroize", ] [[package]] name = "sp-core-hashing" -version = "5.0.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "9.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ee599a8399448e65197f9a6cee338ad192e9023e35e31f22382964c3c174c68" dependencies = [ "blake2b_simd", "byteorder", "digest 0.10.7", "sha2 0.10.8", "sha3", - "sp-std 5.0.0", + "sp-std 8.0.0", "twox-hash", ] [[package]] name = "sp-core-hashing" -version = "9.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ee599a8399448e65197f9a6cee338ad192e9023e35e31f22382964c3c174c68" +checksum = "e360755a2706a76886d58776665cad0db793dece3c7d390455b28e8a1efd6285" dependencies = [ "blake2b_simd", "byteorder", "digest 0.10.7", "sha2 0.10.8", "sha3", - "sp-std 8.0.0", "twox-hash", ] [[package]] name = "sp-core-hashing-proc-macro" -version = "5.0.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "10.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8dc707d9f5bf155d584900783e328cb3dc79c950f898a18a8f24066f41f040a5" dependencies = [ - "proc-macro2", "quote", - "sp-core-hashing 5.0.0", - "syn 1.0.109", + "sp-core-hashing 10.0.0", + "syn 2.0.50", ] [[package]] name = "sp-debug-derive" -version = "5.0.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "9.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f12dae7cf6c1e825d13ffd4ce16bd9309db7c539929d0302b4443ed451a9f4e5" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.50", ] [[package]] name = "sp-externalities" -version = "0.13.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3313e2c5f2523b06062e541dff9961bde88ad5a28861621dc7b7b47a32bb0f7c" dependencies = [ "environmental", "parity-scale-codec", - "sp-std 5.0.0", + "sp-std 9.0.0", "sp-storage", ] [[package]] name = "sp-inherents" -version = "4.0.0-dev" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "20.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30fe27930fbcc1ddf8e73446c65b2696f3544adeb30d1f5171d360e5c7072c9c" dependencies = [ "async-trait", "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-core", "sp-runtime", - "sp-std 5.0.0", + "sp-std 9.0.0", "thiserror", ] [[package]] name = "sp-io" -version = "7.0.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "24.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff6194309bfe055d93177c6c9d2ed4c7b66040617cf3003a15e509c432cf3b62" dependencies = [ "bytes", "ed25519", "ed25519-dalek", - "futures", "libsecp256k1", "log", "parity-scale-codec", + "rustversion", "secp256k1", "sp-core", "sp-externalities", "sp-keystore", "sp-runtime-interface", "sp-state-machine", - "sp-std 5.0.0", - "sp-tracing", + "sp-std 9.0.0", + "sp-tracing 11.0.0", "sp-trie", "tracing", "tracing-core", @@ -5076,33 +5281,34 @@ dependencies = [ [[package]] name = "sp-keystore" -version = "0.13.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6eda1d2572a15340927a9f7db75ffe74366b645eaf9212015b4a96ad8e9d4c46" dependencies = [ - "async-trait", - "futures", - "merlin 2.0.1", "parity-scale-codec", "parking_lot", - "schnorrkel 0.9.1", "sp-core", "sp-externalities", "thiserror", ] [[package]] -name = "sp-maybe-compressed-blob" -version = "4.1.0-dev" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +name = "sp-metadata-ir" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0369e75e418bcfdeede4acb92563ef2d514ad0e7d81c350ba9ae98841a237f3c" dependencies = [ - "thiserror", - "zstd", + "frame-metadata 16.0.0", + "parity-scale-codec", + "scale-info", + "sp-std 9.0.0", ] [[package]] name = "sp-panic-handler" -version = "5.0.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "9.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c67eb0a0d11d3017ef43c975068ba76c7b0e83aca1ee3d68ba0ce270ecebe7" dependencies = [ "backtrace", "lazy_static", @@ -5111,8 +5317,9 @@ dependencies = [ [[package]] name = "sp-runtime" -version = "7.0.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "25.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d056e4cccf36a45be5d471b47c09e8be91b825f1d8352f20aa01f9f693176e7" dependencies = [ "either", "hash256-std-hasher", @@ -5127,14 +5334,15 @@ dependencies = [ "sp-arithmetic", "sp-core", "sp-io", - "sp-std 5.0.0", + "sp-std 9.0.0", "sp-weights", ] [[package]] name = "sp-runtime-interface" -version = "7.0.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "18.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf9781c72848efe6750116eb96edaeb105ee7e0bd7f38a4e46371bf810b3db7b" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -5142,41 +5350,46 @@ dependencies = [ "primitive-types", "sp-externalities", "sp-runtime-interface-proc-macro", - "sp-std 5.0.0", + "sp-std 9.0.0", "sp-storage", - "sp-tracing", + "sp-tracing 11.0.0", "sp-wasm-interface", "static_assertions", ] [[package]] name = "sp-runtime-interface-proc-macro" -version = "6.0.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "12.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7402572a08aa1ae421ea5bab10918764b0ae72301b27710913e5d804862f2448" dependencies = [ "Inflector", "proc-macro-crate", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.50", ] [[package]] name = "sp-staking" -version = "4.0.0-dev" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "20.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4883e5d0a533009175746e3c35d44aa031805064153749baefd6cac915e70ba5" dependencies = [ + "impl-trait-for-tuples", "parity-scale-codec", "scale-info", + "serde", "sp-core", "sp-runtime", - "sp-std 5.0.0", + "sp-std 9.0.0", ] [[package]] name = "sp-state-machine" -version = "0.13.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2e84d8ed3acc6aed5a3d5cfd500fb5b99c1e299c86086b2fe82c3e4be93178f" dependencies = [ "hash-db", "log", @@ -5187,43 +5400,60 @@ dependencies = [ "sp-core", "sp-externalities", "sp-panic-handler", - "sp-std 5.0.0", + "sp-std 9.0.0", "sp-trie", "thiserror", "tracing", + "trie-db", ] [[package]] name = "sp-std" -version = "5.0.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "8.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53458e3c57df53698b3401ec0934bea8e8cfce034816873c0b0abbd83d7bac0d" [[package]] name = "sp-std" -version = "8.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53458e3c57df53698b3401ec0934bea8e8cfce034816873c0b0abbd83d7bac0d" +checksum = "2d5bbc9339227d1b6a9b7ccd9b2920c818653d40eef1512f1e2e824d72e7a336" [[package]] name = "sp-storage" -version = "7.0.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "14.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a21245c3a7799ff6d3f1f159b496f9ac72eb32cd6fe68c6f73013155289aa9f1" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", "sp-debug-derive", - "sp-std 5.0.0", + "sp-std 9.0.0", ] [[package]] name = "sp-tracing" -version = "6.0.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "10.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "357f7591980dd58305956d32f8f6646d0a8ea9ea0e7e868e46f53b68ddf00cec" +dependencies = [ + "parity-scale-codec", + "sp-std 8.0.0", + "tracing", + "tracing-core", + "tracing-subscriber", +] + +[[package]] +name = "sp-tracing" +version = "11.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f5ba26db1f7513d5975970d1ba1f0580d7a1b8da8c86ea3f9f0f8dbe2cfa96e" dependencies = [ "parity-scale-codec", - "sp-std 5.0.0", + "sp-std 9.0.0", "tracing", "tracing-core", "tracing-subscriber", @@ -5231,12 +5461,13 @@ dependencies = [ [[package]] name = "sp-trie" -version = "7.0.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "23.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf63ea90ffb5d61048d8fb2fac669114dac198fc2739e913e615f0fd2c36c3e7" dependencies = [ "ahash 0.8.6", "hash-db", - "hashbrown 0.12.3", + "hashbrown 0.13.2", "lazy_static", "memory-db", "nohash-hasher", @@ -5245,7 +5476,7 @@ dependencies = [ "scale-info", "schnellru", "sp-core", - "sp-std 5.0.0", + "sp-std 9.0.0", "thiserror", "tracing", "trie-db", @@ -5254,61 +5485,64 @@ dependencies = [ [[package]] name = "sp-version" -version = "5.0.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "23.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccae066042a53a83017a2afeee2fd608efa42b564c1a44ea1260d5a2c264ac66" dependencies = [ "impl-serde", "parity-scale-codec", - "parity-wasm 0.45.0 (registry+https://github.com/rust-lang/crates.io-index)", + "parity-wasm", "scale-info", "serde", "sp-core-hashing-proc-macro", "sp-runtime", - "sp-std 5.0.0", + "sp-std 9.0.0", "sp-version-proc-macro", "thiserror", ] [[package]] name = "sp-version-proc-macro" -version = "4.0.0-dev" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "9.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07e569853a50ad02a4b45640e7b96206bcb4569bb85ce7cdf8754a207fcfba54" dependencies = [ "parity-scale-codec", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.50", ] [[package]] name = "sp-wasm-interface" -version = "7.0.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "15.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d07945f592d2792632e6f030108769757e928a0fd78cf8659c9c210a5e341e55" dependencies = [ "anyhow", "impl-trait-for-tuples", "log", "parity-scale-codec", - "sp-allocator", - "sp-std 5.0.0", - "sp-wasm-interface-common", + "sp-std 9.0.0", "wasmtime", ] [[package]] name = "sp-wasm-interface-common" -version = "7.0.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "15.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03223ee788e1490f6341eb5b76501f83abf931fa8b5d83b5f49a4fecaf83f4ae" dependencies = [ "parity-scale-codec", - "sp-std 5.0.0", + "sp-std 9.0.0", "wasmi 0.13.2", ] [[package]] name = "sp-weights" -version = "4.0.0" -source = "git+https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#27779e0eaaa2161ba165ff8f0b0ff103bb63e5a1" +version = "21.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b7699b853471c2eb5dc06ea1d8ea847bfa1415371218ebb4c86325c9d0232bc" dependencies = [ "parity-scale-codec", "scale-info", @@ -5317,7 +5551,7 @@ dependencies = [ "sp-arithmetic", "sp-core", "sp-debug-derive", - "sp-std 5.0.0", + "sp-std 9.0.0", ] [[package]] @@ -5328,9 +5562,9 @@ checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" [[package]] name = "spki" -version = "0.6.0" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67cf02bbac7a337dc36e4f5a693db6c21e7863f45070f7064577eb4367a3212b" +checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" dependencies = [ "base64ct", "der", @@ -5448,7 +5682,7 @@ dependencies = [ "quote", "scale-info", "subxt-metadata", - "syn 2.0.39", + "syn 2.0.50", "thiserror", "tokio", ] @@ -5479,7 +5713,7 @@ dependencies = [ "darling 0.20.3", "proc-macro-error", "subxt-codegen", - "syn 2.0.39", + "syn 2.0.50", ] [[package]] @@ -5508,9 +5742,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.39" +version = "2.0.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a" +checksum = "74f1bdc9872430ce9b75da68329d1c1746faf50ffac5f19e02b71e37ff881ffb" dependencies = [ "proc-macro2", "quote", @@ -5531,15 +5765,14 @@ checksum = "14c39fd04924ca3a864207c66fc2cd7d22d7c016007f9ce846cbb9326331930a" [[package]] name = "tempfile" -version = "3.8.1" +version = "3.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ef1adac450ad7f4b3c28589471ade84f25f731a7a0fe30d71dfa9f60fd808e5" +checksum = "a365e8cd18e44762ef95d87f284f4b5cd04107fec2ff3052bd6a3e6069669e67" dependencies = [ "cfg-if", "fastrand 2.0.1", - "redox_syscall", - "rustix 0.38.25", - "windows-sys 0.48.0", + "rustix 0.38.31", + "windows-sys 0.52.0", ] [[package]] @@ -5583,9 +5816,9 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.50" +version = "1.0.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9a7210f5c9a7156bb50aa36aed4c95afb51df0df00713949448cf9e97d382d2" +checksum = "1e45bcbe8ed29775f228095caf2cd67af7a4ccf756ebff23a306bf3e8b47b24b" dependencies = [ "thiserror-impl", ] @@ -5607,18 +5840,18 @@ checksum = "e4c60d69f36615a077cc7663b9cb8e42275722d23e58a7fa3d2c7f2915d09d04" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.50", ] [[package]] name = "thiserror-impl" -version = "1.0.50" +version = "1.0.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8" +checksum = "a953cb265bef375dae3de6663da4d3804eee9682ea80d8e2542529b73c531c81" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.50", ] [[package]] @@ -5699,7 +5932,7 @@ checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.50", ] [[package]] @@ -5819,7 +6052,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.50", ] [[package]] @@ -6088,7 +6321,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.50", "wasm-bindgen-shared", ] @@ -6110,7 +6343,7 @@ checksum = "c5353b8dab669f5e10f5bd76df26a9360c748f054f862ff5f3f8aae0c7fb3907" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.50", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -6130,15 +6363,6 @@ dependencies = [ "leb128", ] -[[package]] -name = "wasm-instrument" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa1dafb3e60065305741e83db35c6c2584bb3725b692b5b66148a38d72ace6cd" -dependencies = [ - "parity-wasm 0.45.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - [[package]] name = "wasmer" version = "2.3.0" @@ -6405,9 +6629,10 @@ dependencies = [ [[package]] name = "wasmi" version = "0.13.2" -source = "git+https://github.com/gear-tech/wasmi?branch=v0.13.2-sign-ext#3a0b1022377919e62aadf4d78b762abd1c3e9a04" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06c326c93fbf86419608361a2c925a31754cf109da1b8b55737070b4d6669422" dependencies = [ - "parity-wasm 0.45.0 (git+https://github.com/gear-tech/parity-wasm?branch=v0.45.0-sign-ext)", + "parity-wasm", "wasmi-validation", "wasmi_core 0.2.1", ] @@ -6421,30 +6646,18 @@ dependencies = [ "intx", "smallvec", "spin", - "wasmi_arena 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", - "wasmi_core 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)", - "wasmparser-nostd", -] - -[[package]] -name = "wasmi" -version = "0.30.0" -source = "git+https://github.com/gear-tech/wasmi?branch=gear-v0.30.0#c8b0be9c2012e0478959a59074fd953a942782bc" -dependencies = [ - "intx", - "smallvec", - "spin", - "wasmi_arena 0.4.0 (git+https://github.com/gear-tech/wasmi?branch=gear-v0.30.0)", - "wasmi_core 0.12.0 (git+https://github.com/gear-tech/wasmi?branch=gear-v0.30.0)", + "wasmi_arena", + "wasmi_core 0.12.0", "wasmparser-nostd", ] [[package]] name = "wasmi-validation" version = "0.5.0" -source = "git+https://github.com/gear-tech/wasmi?branch=v0.13.2-sign-ext#3a0b1022377919e62aadf4d78b762abd1c3e9a04" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91ff416ad1ff0c42e5a926ed5d5fab74c0f098749aa0ad8b2a34b982ce0e867b" dependencies = [ - "parity-wasm 0.45.0 (git+https://github.com/gear-tech/parity-wasm?branch=v0.45.0-sign-ext)", + "parity-wasm", ] [[package]] @@ -6453,15 +6666,11 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "401c1f35e413fac1846d4843745589d9ec678977ab35a384db8ae7830525d468" -[[package]] -name = "wasmi_arena" -version = "0.4.0" -source = "git+https://github.com/gear-tech/wasmi?branch=gear-v0.30.0#c8b0be9c2012e0478959a59074fd953a942782bc" - [[package]] name = "wasmi_core" version = "0.2.1" -source = "git+https://github.com/gear-tech/wasmi?branch=v0.13.2-sign-ext#3a0b1022377919e62aadf4d78b762abd1c3e9a04" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57d20cb3c59b788653d99541c646c561c9dd26506f25c0cebfe810659c54c6d7" dependencies = [ "downcast-rs", "libm", @@ -6483,18 +6692,6 @@ dependencies = [ "paste", ] -[[package]] -name = "wasmi_core" -version = "0.12.0" -source = "git+https://github.com/gear-tech/wasmi?branch=gear-v0.30.0#c8b0be9c2012e0478959a59074fd953a942782bc" -dependencies = [ - "downcast-rs", - "libm", - "num-traits", - "paste", - "region", -] - [[package]] name = "wasmparser" version = "0.83.0" @@ -6503,9 +6700,9 @@ checksum = "718ed7c55c2add6548cca3ddd6383d738cd73b892df400e96b9aa876f0141d7a" [[package]] name = "wasmparser" -version = "0.100.0" +version = "0.102.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64b20236ab624147dfbb62cf12a19aaf66af0e41b8398838b66e997d07d269d4" +checksum = "48134de3d7598219ab9eaf6b91b15d8e50d31da76b8519fe4ecfcec2cf35104b" dependencies = [ "indexmap 1.9.3", "url", @@ -6522,9 +6719,9 @@ dependencies = [ [[package]] name = "wasmtime" -version = "6.0.2" +version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76a222f5fa1e14b2cefc286f1b68494d7a965f4bf57ec04c59bb62673d639af6" +checksum = "f907fdead3153cb9bfb7a93bbd5b62629472dc06dee83605358c64c52ed3dda9" dependencies = [ "anyhow", "bincode", @@ -6532,95 +6729,95 @@ dependencies = [ "indexmap 1.9.3", "libc", "log", - "object 0.29.0", + "object 0.30.4", "once_cell", "paste", "psm", "serde", "target-lexicon", - "wasmparser 0.100.0", + "wasmparser 0.102.0", "wasmtime-environ", "wasmtime-jit", "wasmtime-runtime", - "windows-sys 0.42.0", + "windows-sys 0.45.0", ] [[package]] name = "wasmtime-asm-macros" -version = "6.0.2" +version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4407a7246e7d2f3d8fb1cf0c72fda8dbafdb6dd34d555ae8bea0e5ae031089cc" +checksum = "d3b9daa7c14cd4fa3edbf69de994408d5f4b7b0959ac13fa69d465f6597f810d" dependencies = [ "cfg-if", ] [[package]] name = "wasmtime-environ" -version = "6.0.2" +version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47b8b50962eae38ee319f7b24900b7cf371f03eebdc17400c1dc8575fc10c9a7" +checksum = "a990198cee4197423045235bf89d3359e69bd2ea031005f4c2d901125955c949" dependencies = [ "anyhow", - "cranelift-entity 0.93.2", - "gimli 0.26.2", + "cranelift-entity 0.95.1", + "gimli 0.27.3", "indexmap 1.9.3", "log", - "object 0.29.0", + "object 0.30.4", "serde", "target-lexicon", "thiserror", - "wasmparser 0.100.0", + "wasmparser 0.102.0", "wasmtime-types", ] [[package]] name = "wasmtime-jit" -version = "6.0.2" +version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffaed4f9a234ba5225d8e64eac7b4a5d13b994aeb37353cde2cbeb3febda9eaa" +checksum = "0de48df552cfca1c9b750002d3e07b45772dd033b0b206d5c0968496abf31244" dependencies = [ - "addr2line 0.17.0", + "addr2line 0.19.0", "anyhow", "bincode", "cfg-if", "cpp_demangle", - "gimli 0.26.2", + "gimli 0.27.3", "log", - "object 0.29.0", + "object 0.30.4", "rustc-demangle", "serde", "target-lexicon", "wasmtime-environ", "wasmtime-jit-icache-coherence", "wasmtime-runtime", - "windows-sys 0.42.0", + "windows-sys 0.45.0", ] [[package]] name = "wasmtime-jit-debug" -version = "6.0.2" +version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eed41cbcbf74ce3ff6f1d07d1b707888166dc408d1a880f651268f4f7c9194b2" +checksum = "6e0554b84c15a27d76281d06838aed94e13a77d7bf604bbbaf548aa20eb93846" dependencies = [ "once_cell", ] [[package]] name = "wasmtime-jit-icache-coherence" -version = "6.0.2" +version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43a28ae1e648461bfdbb79db3efdaee1bca5b940872e4175390f465593a2e54c" +checksum = "aecae978b13f7f67efb23bd827373ace4578f2137ec110bbf6a4a7cde4121bbd" dependencies = [ "cfg-if", "libc", - "windows-sys 0.42.0", + "windows-sys 0.45.0", ] [[package]] name = "wasmtime-runtime" -version = "6.0.2" +version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e704b126e4252788ccfc3526d4d4511d4b23c521bf123e447ac726c14545217b" +checksum = "658cf6f325232b6760e202e5255d823da5e348fdea827eff0a2a22319000b441" dependencies = [ "anyhow", "cc", @@ -6630,26 +6827,26 @@ dependencies = [ "log", "mach", "memfd", - "memoffset 0.6.5", + "memoffset 0.8.0", "paste", "rand 0.8.5", "rustix 0.36.17", "wasmtime-asm-macros", "wasmtime-environ", "wasmtime-jit-debug", - "windows-sys 0.42.0", + "windows-sys 0.45.0", ] [[package]] name = "wasmtime-types" -version = "6.0.2" +version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83e5572c5727c1ee7e8f28717aaa8400e4d22dcbd714ea5457d85b5005206568" +checksum = "a4f6fffd2a1011887d57f07654dd112791e872e3ff4a2e626aee8059ee17f06f" dependencies = [ - "cranelift-entity 0.93.2", + "cranelift-entity 0.95.1", "serde", "thiserror", - "wasmparser 0.100.0", + "wasmparser 0.102.0", ] [[package]] @@ -6688,7 +6885,7 @@ dependencies = [ "either", "home", "once_cell", - "rustix 0.38.25", + "rustix 0.38.31", ] [[package]] @@ -6744,21 +6941,6 @@ dependencies = [ "windows_x86_64_msvc 0.33.0", ] -[[package]] -name = "windows-sys" -version = "0.42.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" -dependencies = [ - "windows_aarch64_gnullvm 0.42.2", - "windows_aarch64_msvc 0.42.2", - "windows_i686_gnu 0.42.2", - "windows_i686_msvc 0.42.2", - "windows_x86_64_gnu 0.42.2", - "windows_x86_64_gnullvm 0.42.2", - "windows_x86_64_msvc 0.42.2", -] - [[package]] name = "windows-sys" version = "0.45.0" @@ -7051,7 +7233,7 @@ checksum = "dd7e48ccf166952882ca8bd778a43502c64f33bf94c12ebe2a7f08e5a0f6689f" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.50", ] [[package]] @@ -7071,34 +7253,5 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", -] - -[[package]] -name = "zstd" -version = "0.11.2+zstd.1.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20cc960326ece64f010d2d2107537f26dc589a6573a316bd5b1dba685fa5fde4" -dependencies = [ - "zstd-safe", -] - -[[package]] -name = "zstd-safe" -version = "5.0.2+zstd.1.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d2a5585e04f9eea4b2a3d1eca508c4dee9592a89ef6f450c11719da0726f4db" -dependencies = [ - "libc", - "zstd-sys", -] - -[[package]] -name = "zstd-sys" -version = "2.0.9+zstd.1.5.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e16efa8a874a0481a574084d34cc26fdb3b99627480f785888deb6386506656" -dependencies = [ - "cc", - "pkg-config", + "syn 2.0.50", ] diff --git a/Cargo.toml b/Cargo.toml index 052853e..e1d627c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,11 +31,11 @@ tokio.workspace = true members = ["state", "xtask"] [workspace.dependencies] -gstd = { git = "https://github.com/gear-tech/gear", tag = "v1.0.2" } -gmeta = { git = "https://github.com/gear-tech/gear", tag = "v1.0.2" } -gear-wasm-builder = { git = "https://github.com/gear-tech/gear", tag = "v1.0.2" } -gtest = { git = "https://github.com/gear-tech/gear", tag = "v1.0.2" } -gclient = { git = "https://github.com/gear-tech/gear", tag = "v1.0.2" } +gstd = "1.1.1" +gmeta = "1.1.1" +gear-wasm-builder = "1.1.1" +gtest = "1.1.1" +gclient = "1.1.1" template-io.path = "io" tokio = "1" xshell = "0.2" diff --git a/io/src/handler.rs b/io/src/handler.rs new file mode 100644 index 0000000..31da02c --- /dev/null +++ b/io/src/handler.rs @@ -0,0 +1,11 @@ +use crate::Source; +use gstd::{Decode, Encode, String, TypeInfo}; + +/// The input for the `handle` entry point. +#[derive(Encode, Decode, TypeInfo, PartialEq, Eq, Debug, Clone)] +#[codec(crate = gstd::codec)] +#[scale_info(crate = gstd::scale_info)] +pub struct HandleInput { + pub domain: String, + pub src: Source, +} diff --git a/io/src/lib.rs b/io/src/lib.rs index bd99a96..95af8e1 100644 --- a/io/src/lib.rs +++ b/io/src/lib.rs @@ -1,7 +1,12 @@ #![no_std] -use gmeta::{InOut, Metadata, Out}; -use gstd::{prelude::*, ActorId}; +use gmeta::{In, Metadata, Out}; + +mod handler; +mod source; + +pub use handler::HandleInput; +pub use source::{Content, Footer, Header, Profile, Source, State}; /// The contract metadata. Used by frontend apps & for describing the types of messages that can be /// sent in contract's entry points. See also [`Metadata`]. @@ -13,9 +18,7 @@ impl Metadata for ContractMetadata { /// I/O types for the `init()` entry point. type Init = (); /// I/O types for the `handle()` entry point. - /// - /// Here the [`PingPong`] type is used for both incoming and outgoing messages. - type Handle = InOut; + type Handle = In; /// Types for miscellaneous scenarios. type Others = (); /// The input type for the `handle_reply()` entry point. @@ -24,48 +27,7 @@ impl Metadata for ContractMetadata { type Signal = (); /// I/O types for the `state()` entry point. /// - /// You can also specify just an output ([`Out`]) or input ([`In`](gmeta::In)) type, if both - /// ([`InOut`]) are expected like here. + /// You can also specify just an output ([`Out`]) or input ([`In`]) type, if both + /// ([`In`]) are expected like here. type State = Out; } - -pub type State = Vec<(ActorId, u128)>; - -/// Replies with [`Pong`](PingPong::Pong) if received [`Ping`](PingPong::Ping). -#[derive(Encode, Decode, TypeInfo, Debug, PartialEq, Eq)] -#[codec(crate = gstd::codec)] -#[scale_info(crate = gstd::scale_info)] -pub enum PingPong { - Ping, - Pong, -} - -/// Queries the contract state. -/// -/// Used in the `state` crate. -#[derive(Encode, Decode, TypeInfo)] -#[codec(crate = gstd::codec)] -#[scale_info(crate = gstd::scale_info)] -pub enum StateQuery { - /// Gets the list of actors who have [`ping`](PingPong::Ping)ed the contract. - /// - /// Returns [`StateQueryReply::Pingers`]. - Pingers, - /// Gets the count of [`ping`](PingPong::Ping)s received from the given [`ActorId`]. - /// - /// Returns [`StateQueryReply::PingCount`]. - PingCount(ActorId), -} - -/// The result of successfully processed [`StateQuery`]. -/// -/// Used in the `state` crate. -#[derive(Encode, Decode, TypeInfo, PartialEq, Eq, Debug)] -#[codec(crate = gstd::codec)] -#[scale_info(crate = gstd::scale_info)] -pub enum StateQueryReply { - /// Returned from [`StateQuery::Pingers`]. - Pingers(Vec), - /// Returned from [`StateQuery::PingCount`]. - PingCount(u128), -} diff --git a/io/src/source.rs b/io/src/source.rs new file mode 100644 index 0000000..371bced --- /dev/null +++ b/io/src/source.rs @@ -0,0 +1,82 @@ +use gstd::{collections::BTreeMap, ActorId, Decode, Encode, String, TypeInfo, Vec}; + +/// Profile of the content +#[derive(Encode, Decode, TypeInfo, PartialEq, Eq, Debug, Default, Clone)] +#[codec(crate = gstd::codec)] +#[scale_info(crate = gstd::scale_info)] +pub struct Profile { + pub title: String, + pub links: BTreeMap, +} + +/// The header of the page. +#[derive(Encode, Decode, TypeInfo, PartialEq, Eq, Debug, Default, Clone)] +#[codec(crate = gstd::codec)] +#[scale_info(crate = gstd::scale_info)] +pub struct Header { + /// Title of the page. + pub title: String, + /// Logo of the page. + pub logo: Option, +} + +/// Source of the content +#[derive(Encode, Decode, TypeInfo, PartialEq, Eq, Debug, Clone)] +#[codec(crate = gstd::codec)] +#[scale_info(crate = gstd::scale_info)] +pub enum Content { + // TODO: use demo-identity instead. + Profile(Profile), + Markdown(String), +} + +impl Content { + /// If the content contains the token. + pub fn contains(&self, token: &str) -> bool { + match self { + Content::Profile(profile) => profile.title.contains(token), + Content::Markdown(markdown) => markdown.contains(token), + } + } +} + +/// Footer abstraction. +#[derive(Encode, Decode, TypeInfo, PartialEq, Eq, Debug, Default, Clone)] +#[codec(crate = gstd::codec)] +#[scale_info(crate = gstd::scale_info)] +pub struct Footer { + /// Centered information in footer. + pub info: String, +} + +/// Source of the page. +#[derive(Encode, Decode, TypeInfo, PartialEq, Eq, Debug, Clone)] +#[codec(crate = gstd::codec)] +#[scale_info(crate = gstd::scale_info)] +pub struct Source { + pub labels: Vec, + pub header: Header, + pub content: Content, + pub footer: Footer, +} + +/// Domain of pages. +/// +/// TODO: +/// +/// 1) access control for the domain. +/// 2) enable this interface in the next version. +#[allow(unused)] +pub struct Domain { + /// add a new field for the owner struct. + /// + /// - owner: ActorId + /// - identity: programId. + pub owner: ActorId, + pub paths: BTreeMap, + /// people who has edit access to the domain source. + pub editors: Vec, +} + +/// Program state. +pub type State = BTreeMap; diff --git a/rustfmt.toml b/rustfmt.toml index e3623c3..0317086 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,3 +1,4 @@ +edition = "2021" use_field_init_shorthand = true newline_style = "Unix" force_explicit_abi = false diff --git a/src/lib.rs b/src/lib.rs index 49d7be6..c21c97c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,9 +1,9 @@ #![no_std] -use gstd::{collections::HashMap, msg, prelude::*, ActorId}; +use gstd::{collections::BTreeMap, msg, prelude::*}; use template_io::*; -static mut STATE: Option> = None; +static mut STATE: Option> = None; // The `init()` entry point. #[no_mangle] @@ -14,23 +14,21 @@ extern fn init() { // The `handle()` entry point. #[no_mangle] extern fn handle() { - let payload = msg::load().expect("Failed to load payload"); - - if let PingPong::Ping = payload { - let pingers = unsafe { STATE.as_mut().expect("State isn't initialized") }; - - pingers - .entry(msg::source()) - .and_modify(|ping_count| *ping_count = ping_count.saturating_add(1)) - .or_insert(1); - - msg::reply(PingPong::Pong, 0).expect("Failed to reply from `handle()`"); - } + let payload = msg::load::().expect("Invalid payload"); + let state = unsafe { STATE.as_mut().expect("State isn't initialized") }; + + // TODO: + // + // 1) format checks. + // 2) use domain instead of simple data source. + // 3) sub paths for this domain. + // 4) integration with identity interface. + state.insert(payload.domain, payload.src); } // The `state()` entry point. #[no_mangle] extern fn state() { let state = unsafe { STATE.take().expect("State isn't initialized") }; - msg::reply(State::from_iter(state), 0).expect("Failed to reply from `state()`"); + msg::reply(state, 0).expect("Failed to reply from `state()`"); } diff --git a/state/src/lib.rs b/state/src/lib.rs index 6d43fb1..890bdcc 100644 --- a/state/src/lib.rs +++ b/state/src/lib.rs @@ -1,28 +1,55 @@ #![no_std] -use gstd::{prelude::*, ActorId}; +use gstd::{collections::BTreeMap, prelude::*, Vec}; use template_io::*; #[gmeta::metawasm] pub mod metafns { - pub type State = template_io::State; - pub fn query(state: State, query: StateQuery) -> StateQueryReply { - match query { - StateQuery::Pingers => StateQueryReply::Pingers(pingers(state)), - StateQuery::PingCount(actor) => StateQueryReply::PingCount(ping_count(state, actor)), - } - } + pub type State = template_io::State; - pub fn pingers(state: State) -> Vec { - state.iter().map(|(pinger, _)| *pinger).collect() - } + /// Returns all domains (pages) that matches the search input. + /// + /// For the source of the competition: + /// - domain name + /// - labels + /// - header title + /// - content + pub fn search(state: State, input: String) -> BTreeMap { + let tokens: Vec<&str> = input.split_whitespace().collect(); - pub fn ping_count(state: State, actor: ActorId) -> u128 { state .iter() - .find_map(|(some_actor, count)| (some_actor == &actor).then_some(count)) - .copied() - .unwrap_or_default() + .filter_map(|(domain, source)| { + if tokens.iter().any(|t| { + domain.contains(t) + || source.labels.iter().any(|l| l.contains(t)) + || source.header.title.contains(t) + || source.content.contains(t) + }) { + return Some((domain.clone(), source.clone())); + } + None + }) + .collect() } + + /// List all labels + pub fn labels(state: State) -> Vec { + let mut labels: Vec = state + .values() + .map(|s| s.labels.clone()) + .collect::>>() + .into_iter() + .flatten() + .collect(); + labels.sort(); + labels.dedup(); + labels + } + + // TODO: + // + // 1) list sub paths of a domain. + // 2) } diff --git a/tests/tests.rs b/tests/tests.rs index 4a94d51..bc55bc9 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -1,162 +1,66 @@ -use gclient::{EventProcessor, GearApi, Result}; -use gstd::{prelude::*, ActorId}; -use gtest::{Log, Program, System}; +use gstd::{collections::BTreeMap, prelude::*}; +use gtest::{state_args, Program, System}; use std::fs; use template_io::*; +fn test_input() -> HandleInput { + let mut links = BTreeMap::new(); + links.insert( + "website".to_string(), + "https://vara-network.io/".to_string(), + ); + + HandleInput { + domain: "vara-go".to_string(), + src: Source { + labels: vec!["vara-network".to_string()], + header: Header { + title: "vara-go".to_string(), + logo: None, + }, + content: Content::Profile(Profile { + title: "Vara".to_string(), + links, + }), + footer: Footer { + info: "I'm footer".to_string(), + }, + }, + } +} + #[test] fn test() { let system = System::new(); - system.init_logger(); - let state_binary = get_state_binary(); let program = Program::current(&system); + let input = test_input(); + // Init program. let mut result = program.send_bytes(2, []); - assert!(!result.main_failed()); - result = program.send(2, PingPong::Pong); - + // Send the test the handle input. + result = program.send(0, input.clone()); assert!(!result.main_failed()); + // // State reading - - // All state - - let mut expected_state = vec![]; - - for mut actor in 0..=100 { - actor += 2; - result = program.send(actor, PingPong::Ping); - - assert!(result.contains(&Log::builder().payload(PingPong::Pong))); - - expected_state.push((actor.into(), 1)) - } - - let mut state: Vec<(ActorId, u128)> = program.read_state(b"").unwrap(); - - expected_state.sort_unstable(); - state.sort_unstable(); - - assert_eq!(state, expected_state); - - // Querying `StateQuery::PingCount` from the `query` metafunction - - result = program.send(2, PingPong::Ping); - - assert!(result.contains(&Log::builder().payload(PingPong::Pong))); - - let StateQueryReply::PingCount(ping_count) = program - .read_state_using_wasm( - b"", - "query", - state_binary.clone(), - Some(StateQuery::PingCount(ActorId::from(2))), - ) - .unwrap() - else { - unreachable!() - }; - - assert_eq!(ping_count, 2); - - // Querying the state using the `pingers` metafunction - - let mut pingers: Vec = program - .read_state_using_wasm::<(), _, _>(b"", "pingers", state_binary, None) - .unwrap(); - - pingers.sort_unstable(); - - assert_eq!( - expected_state - .into_iter() - .map(|(pinger, _)| pinger) - .collect::>(), - pingers, - ); + // + let state: State = program.read_state(b"").unwrap(); + assert_eq!(state.get(&input.domain), Some(input.src.clone()).as_ref()); + + // Search competition + let state_bin = get_state_binary(); + let search = String::from("vara"); + let output: BTreeMap = program + .read_state_using_wasm(b"", "search", state_bin, state_args!(search)) + .expect("Failed to search source"); + assert_eq!(output.get(&input.domain), Some(input.src).as_ref()); } +#[allow(unused)] fn get_state_binary() -> Vec { fs::read("target/wasm32-unknown-unknown/debug/template_state.meta.wasm").unwrap() } - -const ALICE: [u8; 32] = [ - 212, 53, 147, 199, 21, 253, 211, 28, 97, 20, 26, 189, 4, 169, 159, 214, 130, 44, 133, 88, 133, - 76, 205, 227, 154, 86, 132, 231, 165, 109, 162, 125, -]; - -#[tokio::test] -async fn gclient_test() -> Result<()> { - let wasm_binary = fs::read("target/wasm32-unknown-unknown/debug/template.opt.wasm").unwrap(); - let client = GearApi::dev_from_path("target/tmp/gear").await?; - let mut listener = client.subscribe().await?; - - let mut gas_limit = client - .calculate_upload_gas(None, wasm_binary.clone(), vec![], 0, true) - .await? - .min_limit; - let (mut message_id, program_id, _) = client - .upload_program_bytes( - wasm_binary, - gclient::now_micros().to_le_bytes(), - [], - gas_limit, - 0, - ) - .await?; - - assert!(listener.message_processed(message_id).await?.succeed()); - - gas_limit = client - .calculate_handle_gas(None, program_id, PingPong::Ping.encode(), 0, true) - .await? - .min_limit; - (message_id, _) = client - .send_message(program_id, PingPong::Ping, gas_limit, 0) - .await?; - - let (_, raw_reply, _) = listener.reply_bytes_on(message_id).await?; - - assert_eq!( - PingPong::Pong, - Decode::decode( - &mut raw_reply - .expect("action failed, received an error message instead of a reply") - .as_slice() - )? - ); - - let state_binary = get_state_binary(); - - assert_eq!( - StateQueryReply::PingCount(1), - client - .read_state_using_wasm( - program_id, - vec![], - "query", - state_binary.clone(), - Some(StateQuery::PingCount(ActorId::from(ALICE))) - ) - .await? - ); - - assert_eq!( - StateQueryReply::Pingers(vec![ALICE.into()]), - client - .read_state_using_wasm( - program_id, - vec![], - "query", - state_binary, - Some(StateQuery::Pingers) - ) - .await? - ); - - Ok(()) -}