diff --git a/Cargo.lock b/Cargo.lock index b53102e0..583963ae 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -423,8 +423,7 @@ checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9" [[package]] name = "assets-common" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed19c72a730ac55e147d8f3204468f3dfb50d53c4c4e285d05cacd0c71bdecee" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "cumulus-primitives-core", "frame-support", @@ -462,11 +461,11 @@ version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4b0c4a4f319e45986f347ee47fef8bf5e81c9abc3f6f58dc2391439f30df65f0" dependencies = [ - "async-lock", + "async-lock 2.8.0", "async-task", "concurrent-queue", "fastrand 2.0.1", - "futures-lite", + "futures-lite 1.13.0", "slab", ] @@ -476,10 +475,10 @@ version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "279cf904654eeebfa37ac9bb1598880884924aab82e290aa65c9e77a0e142e06" dependencies = [ - "async-lock", + "async-lock 2.8.0", "autocfg", "blocking", - "futures-lite", + "futures-lite 1.13.0", ] [[package]] @@ -488,20 +487,40 @@ version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fc5b45d93ef0529756f812ca52e44c221b35341892d3dcc34132ac02f3dd2af" dependencies = [ - "async-lock", + "async-lock 2.8.0", "autocfg", "cfg-if", "concurrent-queue", - "futures-lite", + "futures-lite 1.13.0", "log", "parking", - "polling", - "rustix 0.37.26", + "polling 2.8.0", + "rustix 0.37.27", "slab", "socket2 0.4.10", "waker-fn", ] +[[package]] +name = "async-io" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41ed9d5715c2d329bf1b4da8d60455b99b187f27ba726df2883799af9af60997" +dependencies = [ + "async-lock 3.0.0", + "cfg-if", + "concurrent-queue", + "futures-io", + "futures-lite 2.0.1", + "parking", + "polling 3.3.0", + "rustix 0.38.21", + "slab", + "tracing", + "waker-fn", + "windows-sys 0.48.0", +] + [[package]] name = "async-lock" version = "2.8.0" @@ -511,15 +530,26 @@ dependencies = [ "event-listener 2.5.3", ] +[[package]] +name = "async-lock" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45e900cdcd39bb94a14487d3f7ef92ca222162e6c7c3fe7cb3550ea75fb486ed" +dependencies = [ + "event-listener 3.0.1", + "event-listener-strategy", + "pin-project-lite 0.2.13", +] + [[package]] name = "async-net" version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0434b1ed18ce1cf5769b8ac540e33f01fa9471058b5e89da9e06f3c882a8c12f" dependencies = [ - "async-io", + "async-io 1.13.0", "blocking", - "futures-lite", + "futures-lite 1.13.0", ] [[package]] @@ -528,14 +558,14 @@ version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ea6438ba0a08d81529c69b36700fa2f95837bfe3e776ab39cde9c14d9149da88" dependencies = [ - "async-io", - "async-lock", + "async-io 1.13.0", + "async-lock 2.8.0", "async-signal", "blocking", "cfg-if", - "event-listener 3.0.0", - "futures-lite", - "rustix 0.38.20", + "event-listener 3.0.1", + "futures-lite 1.13.0", + "rustix 0.38.21", "windows-sys 0.48.0", ] @@ -547,22 +577,22 @@ checksum = "5fd55a5ba1179988837d24ab4c7cc8ed6efdeff578ede0416b4225a5fca35bd0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "async-signal" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2a5415b7abcdc9cd7d63d6badba5288b2ca017e3fbd4173b8f405449f1a2399" +checksum = "9e47d90f65a225c4527103a8d747001fc56e375203592b25ad103e1ca13124c5" dependencies = [ - "async-io", - "async-lock", + "async-io 2.2.0", + "async-lock 2.8.0", "atomic-waker", "cfg-if", "futures-core", "futures-io", - "rustix 0.38.20", + "rustix 0.38.21", "signal-hook-registry", "slab", "windows-sys 0.48.0", @@ -582,7 +612,7 @@ checksum = "a66537f1bb974b254c98ed142ff995236e81b9d0fe4db0575f46612cb15eb0f9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -690,8 +720,7 @@ dependencies = [ [[package]] name = "binary-merkle-tree" version = "9.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef1ea0c49f8a41e530d4cbb7c81651d9d085d5f1470f4e4ea8c8c9c59b67a1bf" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "hash-db", "log", @@ -724,7 +753,7 @@ dependencies = [ "regex", "rustc-hash", "shlex", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -882,11 +911,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8c36a4d0d48574b3dd360b4b7d95cc651d2b6557b6402848a27d4b228a473e2a" dependencies = [ "async-channel", - "async-lock", + "async-lock 2.8.0", "async-task", "fastrand 2.0.1", "futures-io", - "futures-lite", + "futures-lite 1.13.0", "piper", "tracing", ] @@ -1219,7 +1248,7 @@ dependencies = [ "heck", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -1230,9 +1259,9 @@ checksum = "702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1" [[package]] name = "coarsetime" -version = "0.1.29" +version = "0.1.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a73ef0d00d14301df35d0f13f5ea32344de6b00837485c358458f1e7f2d27db4" +checksum = "71367d3385c716342014ad17e3d19f7788ae514885a1f4c24f500260fb365e1a" dependencies = [ "libc", "once_cell", @@ -1303,9 +1332,9 @@ checksum = "28c122c3980598d243d63d9a704629a2d748d101f278052ff068be5a4423ab6f" [[package]] name = "const-random" -version = "0.1.16" +version = "0.1.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11df32a13d7892ec42d51d3d175faba5211ffe13ed25d4fb348ac9e9ce835593" +checksum = "5aaf16c9c2c612020bcfd042e170f6e32de9b9d75adb5277cdbbd2e2c8c8299a" dependencies = [ "const-random-macro", ] @@ -1385,9 +1414,9 @@ dependencies = [ [[package]] name = "cpufeatures" -version = "0.2.10" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fbc60abd742b35f2492f808e1abbb83d45f72db402e14c55057edc9c7b1e9e4" +checksum = "ce420fe07aecd3e67c5f910618fe65e94158f6dcc0adf44e00d69ce2bdfe0fd0" dependencies = [ "libc", ] @@ -1501,9 +1530,9 @@ dependencies = [ [[package]] name = "crc-catalog" -version = "2.2.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cace84e55f07e7301bae1c519df89cdad8cc3cd868413d3fdbdeca9ff3db484" +checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5" [[package]] name = "crc32fast" @@ -1639,8 +1668,7 @@ dependencies = [ [[package]] name = "cumulus-client-cli" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed29c6894204aa823332c312a3d948673f0a450cacdc0e12d9a8a0be6663c153" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "clap", "parity-scale-codec", @@ -1656,8 +1684,7 @@ dependencies = [ [[package]] name = "cumulus-client-collator" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "580cf46afbc23ad440c11e230f5a1e97527c93929bca29eb8018a6a7af3befc8" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "cumulus-client-consensus-common", "cumulus-client-network", @@ -1680,8 +1707,7 @@ dependencies = [ [[package]] name = "cumulus-client-consensus-aura" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7e30ab726e61a35b8543e586fc6b57a43c1944ba74180d2c28a1f80ec2d484a" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "cumulus-client-collator", @@ -1723,8 +1749,7 @@ dependencies = [ [[package]] name = "cumulus-client-consensus-common" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49b0161d655374be6bb29bad93862afb84ae5c32adfc62b9d7819879d5e64773" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "cumulus-client-pov-recovery", @@ -1753,8 +1778,7 @@ dependencies = [ [[package]] name = "cumulus-client-consensus-proposer" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "918d544a7d7b57f9530380ede93255d42378eaa89096ad7e1c5e8adc3868dc42" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "anyhow", "async-trait", @@ -1769,8 +1793,7 @@ dependencies = [ [[package]] name = "cumulus-client-consensus-relay-chain" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "095b1c0ac991fbd53b30b969cc9627b495755fc2591941df3f4114959e6ae4e8" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "cumulus-client-consensus-common", @@ -1793,8 +1816,7 @@ dependencies = [ [[package]] name = "cumulus-client-network" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0eb961e2c3e4a83b1707de04233110d4a2ee361f04c7b2ad5e9e5f15cf2ea3da" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "cumulus-relay-chain-interface", @@ -1817,8 +1839,7 @@ dependencies = [ [[package]] name = "cumulus-client-pov-recovery" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc8f304c811d9cfba4b6497d4d033e0500547bb9f8bf29fd20f57de740e916f4" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -1842,8 +1863,7 @@ dependencies = [ [[package]] name = "cumulus-client-service" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "756bf1ea290c818c2f7fac0c0c51dc1419f243f89b733aeef3ea8b51e70109e6" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "cumulus-client-cli", "cumulus-client-collator", @@ -1878,8 +1898,7 @@ dependencies = [ [[package]] name = "cumulus-pallet-aura-ext" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b220a1c3071a088217c0a23020b17baba60e2685f13ae08396e10b3c62e197a5" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "cumulus-pallet-parachain-system", "frame-support", @@ -1897,8 +1916,7 @@ dependencies = [ [[package]] name = "cumulus-pallet-dmp-queue" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c63f5595db891c0b05c846a1fd7d0f49ad8b4b19e5f79f015e125853b6a519e1" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "cumulus-primitives-core", "frame-support", @@ -1915,8 +1933,7 @@ dependencies = [ [[package]] name = "cumulus-pallet-parachain-system" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8848c0ce4e55777b621703ef62224d5b8e2c250ccc03fb34c5372d995b86fa16" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "bytes", "cumulus-pallet-parachain-system-proc-macro", @@ -1946,20 +1963,18 @@ dependencies = [ [[package]] name = "cumulus-pallet-parachain-system-proc-macro" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1235a0c8b242349a41d84c07774e17acf942e9fee383dda31c021ccaea9eedb" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "cumulus-pallet-session-benchmarking" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30bf028e8349229271e07d4ce99d8ada205a27de52d849bdd08e89a8271df424" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -1973,8 +1988,7 @@ dependencies = [ [[package]] name = "cumulus-pallet-xcm" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9848582a0748e29ab06faf9b1448b7039da1f90f6400b384c391c5831cb5fd7c" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "cumulus-primitives-core", "frame-support", @@ -1990,8 +2004,7 @@ dependencies = [ [[package]] name = "cumulus-pallet-xcmp-queue" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0ac74a0c55c7ed27a51ce618b864e9d4a7f39de8ea03a4bd65ccff55145b5fa" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "cumulus-primitives-core", "frame-benchmarking", @@ -2012,8 +2025,7 @@ dependencies = [ [[package]] name = "cumulus-primitives-aura" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e59e8e10f2ec522afde1363141be0d499fdbd8be9889bee9b29b92dd52c2935" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "parity-scale-codec", "polkadot-core-primitives", @@ -2027,8 +2039,7 @@ dependencies = [ [[package]] name = "cumulus-primitives-core" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1aed2ae9917749ad77ca62acf65826a0f5e725a920ff1cab01d9bb020d59cdbf" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "parity-scale-codec", "polkadot-core-primitives", @@ -2045,8 +2056,7 @@ dependencies = [ [[package]] name = "cumulus-primitives-parachain-inherent" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87d8d415d8748df234bf0415576648fa529fbffa9de802959db7851f5e43d4dc" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2069,8 +2079,7 @@ dependencies = [ [[package]] name = "cumulus-primitives-timestamp" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a980cec30854da16e3f40c8fc18f9ec8feb984da17f7d68d89c3206adaa4753" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "cumulus-primitives-core", "futures", @@ -2083,8 +2092,7 @@ dependencies = [ [[package]] name = "cumulus-primitives-utility" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "926a72124a351594cfdce41d7762e668d442e08c193d909d9f69fbe22e95414e" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "cumulus-primitives-core", "frame-support", @@ -2102,8 +2110,7 @@ dependencies = [ [[package]] name = "cumulus-relay-chain-inprocess-interface" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f822628210c50781adf6afc5b22df63deb2b073712d2109b3903731b81bada9" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2127,8 +2134,7 @@ dependencies = [ [[package]] name = "cumulus-relay-chain-interface" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "642e7e83e5b3162cb2bf5b160e11443f5aabf11c5fd3c1deaf116d907ae79716" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2146,8 +2152,7 @@ dependencies = [ [[package]] name = "cumulus-relay-chain-minimal-node" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5394c833bd582e46eecbc6ce96c9065d9b2a6ff9861f4016e4db6ac41c505d91" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "array-bytes", "async-trait", @@ -2182,8 +2187,7 @@ dependencies = [ [[package]] name = "cumulus-relay-chain-rpc-interface" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97c3adbcef74c30a6f920083f7777c8bba81b16e9dfca90d6664caa8f20d2a3d" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2221,8 +2225,7 @@ dependencies = [ [[package]] name = "cumulus-test-relay-sproof-builder" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fba4a4d5de5f68bde4aff857194efcaae44e874b6947d9aac9ea02bcda4382c" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "cumulus-primitives-core", "parity-scale-codec", @@ -2278,13 +2281,13 @@ dependencies = [ [[package]] name = "curve25519-dalek-derive" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83fdaf97f4804dcebfa5862639bc9ce4121e82140bec2a987ac5140294865b5b" +checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -2302,9 +2305,9 @@ dependencies = [ [[package]] name = "cxx" -version = "1.0.109" +version = "1.0.110" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c390c123d671cc547244943ecad81bdaab756c6ea332d9ca9c1f48d952a24895" +checksum = "7129e341034ecb940c9072817cd9007974ea696844fc4dd582dc1653a7fbe2e8" dependencies = [ "cc", "cxxbridge-flags", @@ -2314,9 +2317,9 @@ dependencies = [ [[package]] name = "cxx-build" -version = "1.0.109" +version = "1.0.110" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00d3d3ac9ffb900304edf51ca719187c779f4001bb544f26c4511d621de905cf" +checksum = "a2a24f3f5f8eed71936f21e570436f024f5c2e25628f7496aa7ccd03b90109d5" dependencies = [ "cc", "codespan-reporting", @@ -2324,24 +2327,24 @@ dependencies = [ "proc-macro2", "quote", "scratch", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "cxxbridge-flags" -version = "1.0.109" +version = "1.0.110" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94415827ecfea0f0c74c8cad7d1a86ddb3f05354d6a6ddeda0adee5e875d2939" +checksum = "06fdd177fc61050d63f67f5bd6351fac6ab5526694ea8e359cd9cd3b75857f44" [[package]] name = "cxxbridge-macro" -version = "1.0.109" +version = "1.0.110" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e33dbbe9f5621c9247f97ec14213b04f350bff4b6cebefe834c60055db266ecf" +checksum = "587663dd5fb3d10932c8aecfe7c844db1bcf0aee93eeab08fac13dc1212c2e7f" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -2615,7 +2618,7 @@ checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -2626,18 +2629,18 @@ checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" [[package]] name = "docify" -version = "0.2.4" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76ee528c501ddd15d5181997e9518e59024844eac44fd1e40cb20ddb2a8562fa" +checksum = "4235e9b248e2ba4b92007fe9c646f3adf0ffde16dc74713eacc92b8bc58d8d2f" dependencies = [ "docify_macros", ] [[package]] name = "docify_macros" -version = "0.2.4" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ca01728ab2679c464242eca99f94e2ce0514b52ac9ad950e2ed03fca991231c" +checksum = "47020e12d7c7505670d1363dd53d6c23724f71a90a3ae32ff8eba40de8404626" dependencies = [ "common-path", "derive-syn-parse", @@ -2645,7 +2648,7 @@ dependencies = [ "proc-macro2", "quote", "regex", - "syn 2.0.38", + "syn 2.0.39", "termcolor", "toml 0.7.8", "walkdir", @@ -2692,9 +2695,9 @@ dependencies = [ [[package]] name = "dyn-clone" -version = "1.0.14" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23d2f3407d9a573d666de4b5bdf10569d73ca9478087346697dcbae6244bfbcd" +checksum = "545b22097d44f8a9581187cdf93de7a71e4722bf51200cfaba810865b49a495d" [[package]] name = "ecdsa" @@ -2857,7 +2860,7 @@ checksum = "f95e2801cd355d4a1a3e3953ce6ee5ae9603a5c833455343a8bfe3f44d418246" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -2868,7 +2871,7 @@ checksum = "c2ad8cef1d801a4686bfd8919f0b30eac4c8e48968c437a6405ded4fb5272d2b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -2927,15 +2930,25 @@ checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" [[package]] name = "event-listener" -version = "3.0.0" +version = "3.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29e56284f00d94c1bc7fd3c77027b4623c88c1f53d8d2394c6199f2921dea325" +checksum = "01cec0252c2afff729ee6f00e903d479fba81784c8e2bd77447673471fdfaea1" dependencies = [ "concurrent-queue", "parking", "pin-project-lite 0.2.13", ] +[[package]] +name = "event-listener-strategy" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d96b852f1345da36d551b9473fa1e2b1eb5c5195585c6c018118bc92a8d91160" +dependencies = [ + "event-listener 3.0.1", + "pin-project-lite 0.2.13", +] + [[package]] name = "exit-future" version = "0.2.0" @@ -2967,7 +2980,7 @@ dependencies = [ "fs-err", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -3053,9 +3066,9 @@ dependencies = [ [[package]] name = "fiat-crypto" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0870c84016d4b481be5c9f323c24f65e31e901ae618f0e80f4308fb00de1d2d" +checksum = "a481586acf778f1b1455424c343f71124b048ffa5f4fc3f8f6ae9dc432dcb3c7" [[package]] name = "file-per-thread-logger" @@ -3142,8 +3155,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "10.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6d54d3a638f0279210c924f4a44e6548bf6345670f5af059a874a5006af4eca" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "parity-scale-codec", ] @@ -3166,8 +3178,7 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" [[package]] name = "frame-benchmarking" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a01af5751a0e4492dc979c57586976403e7ab63641add1a9fd804cad4169f4f6" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-support", "frame-support-procedural", @@ -3192,8 +3203,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "28.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4493341076535acb0bdb591e0e97b32cfacb8515dd74e66156f199d187cec004" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "Inflector", "array-bytes", @@ -3241,20 +3251,18 @@ dependencies = [ [[package]] name = "frame-election-provider-solution-type" version = "11.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35d1461dc3a49bbd9bdf8955eca27f54cdcc6b38373bbd636e011a8594d23f3f" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "frame-election-provider-support" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9fe9b8322a08a8a52ed3a7a7f7ca90827aa3bace41dc060c5b32d2ff0cd25c3" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-election-provider-solution-type", "frame-support", @@ -3271,8 +3279,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da12a8c223d6991bd7f9aae542d3d7c9fadde3a81b6f16c2550b808f3b21ecd5" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-support", "frame-system", @@ -3302,8 +3309,7 @@ dependencies = [ [[package]] name = "frame-remote-externalities" version = "0.31.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8b26379217d223364e6715ed12cdfdc9f368c6afcb15fd8771e387ab7b0265f" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-recursion", "futures", @@ -3325,8 +3331,7 @@ dependencies = [ [[package]] name = "frame-support" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0dc5640279221fbd316a3a652963c1cb9d51630ea3f62a08a5ad7fa402f23a4" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "aquamarine", "bitflags 1.3.2", @@ -3366,8 +3371,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "19.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f22719c65353a0010a084cb2040e2e6569aff34562e59119cb66ddd7ecfa588c" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "Inflector", "cfg-expr", @@ -3379,38 +3383,35 @@ dependencies = [ "proc-macro-warning", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "frame-support-procedural-tools" version = "8.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e046ecdc04dd66f17d760525631f553ddcbea6f09423f78fcf52b47c97656cd0" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "frame-support-procedural-tools-derive" version = "9.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4034ebf9ca7497fa3893191fe3e81adcd3d7cd1c232e60ef41ef58ea0c445ae9" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "frame-system" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc19d4d4037b695805385d56983da173bbb969f68e0e4e6a1240bb30118e87d7" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "cfg-if", "frame-support", @@ -3429,8 +3430,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb79e630dc8fbed5601e58c1b8d84ec3900a511f105140b5bbb6c18c476488d2" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -3445,8 +3445,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "22.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a13ed2be7e4ad2cf140d16b94194595d3b2fea0b60a46832945c497924c2d0d0" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "parity-scale-codec", "sp-api", @@ -3455,8 +3454,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9eceb53c4efa82dd7dd08f0770abfaa9587c592a015b21dc29ce4c24422de13" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-support", "parity-scale-codec", @@ -3487,7 +3485,7 @@ version = "0.6.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2eeb4ed9e12f43b7fa0baae3f9cdda28352770132ef2e09a23760c29cae8bd47" dependencies = [ - "rustix 0.38.20", + "rustix 0.38.21", "windows-sys 0.48.0", ] @@ -3499,9 +3497,9 @@ checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" [[package]] name = "futures" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23342abe12aba583913b2e62f22225ff9c950774065e4bfb61a19cd9770fec40" +checksum = "da0290714b38af9b4a7b094b8a37086d1b4e61f2df9122c3cad2577669145335" dependencies = [ "futures-channel", "futures-core", @@ -3514,9 +3512,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2" +checksum = "ff4dd66668b557604244583e3e1e1eada8c5c2e96a6d0d6653ede395b78bbacb" dependencies = [ "futures-core", "futures-sink", @@ -3524,15 +3522,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c" +checksum = "eb1d22c66e66d9d72e1758f0bd7d4fd0bee04cad842ee34587d68c07e45d088c" [[package]] name = "futures-executor" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccecee823288125bd88b4d7f565c9e58e41858e47ab72e8ea2d64e93624386e0" +checksum = "0f4fb8693db0cf099eadcca0efe2a5a22e4550f98ed16aba6c48700da29597bc" dependencies = [ "futures-core", "futures-task", @@ -3542,9 +3540,9 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964" +checksum = "8bf34a163b5c4c52d0478a4d757da8fb65cabef42ba90515efee0f6f9fa45aaa" [[package]] name = "futures-lite" @@ -3561,15 +3559,25 @@ dependencies = [ "waker-fn", ] +[[package]] +name = "futures-lite" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3831c2651acb5177cbd83943f3d9c8912c5ad03c76afcc0e9511ba568ec5ebb" +dependencies = [ + "futures-core", + "pin-project-lite 0.2.13", +] + [[package]] name = "futures-macro" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" +checksum = "53b153fd91e4b0147f4aced87be237c98248656bb01050b96bf3ee89220a8ddb" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -3585,15 +3593,15 @@ dependencies = [ [[package]] name = "futures-sink" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e" +checksum = "e36d3378ee38c2a36ad710c5d30c2911d752cb941c00c72dbabfb786a7970817" [[package]] name = "futures-task" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65" +checksum = "efd193069b0ddadc69c46389b740bbccdd97203899b48d09c5f7969591d6bae2" [[package]] name = "futures-timer" @@ -3603,9 +3611,9 @@ checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c" [[package]] name = "futures-util" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533" +checksum = "a19526d624e703a3179b3d322efec918b6246ea0fa51d41124525f00f1cc8104" dependencies = [ "futures-channel", "futures-core", @@ -4015,9 +4023,9 @@ dependencies = [ [[package]] name = "hyper-rustls" -version = "0.24.1" +version = "0.24.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d78e1e73ec14cf7375674f74d7dde185c8206fd9dea6fb6295e8a98098aaa97" +checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590" dependencies = [ "futures-util", "http", @@ -4027,7 +4035,7 @@ dependencies = [ "rustls-native-certs", "tokio", "tokio-rustls", - "webpki-roots 0.23.1", + "webpki-roots 0.25.2", ] [[package]] @@ -4096,7 +4104,7 @@ version = "3.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbb892e5777fe09e16f3d44de7802f4daa7267ecbe8c466f19d94e25bb0c303e" dependencies = [ - "async-io", + "async-io 1.13.0", "core-foundation", "fnv", "futures", @@ -4170,9 +4178,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.0.2" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8adf3ddd720272c6ea8bf59463c04e0f93d0bbf7c5439b691bca2987e0270897" +checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f" dependencies = [ "equivalent", "hashbrown 0.14.2", @@ -4291,7 +4299,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" dependencies = [ "hermit-abi 0.3.3", - "rustix 0.38.20", + "rustix 0.38.21", "windows-sys 0.48.0", ] @@ -4339,9 +4347,9 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.64" +version = "0.3.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a" +checksum = "54c0c35952f67de54bb584e9fd912b3023117cbafc0a77d8f3dee1fb5f572fe8" dependencies = [ "wasm-bindgen", ] @@ -4390,7 +4398,7 @@ checksum = "2b5dde66c53d6dcdc8caea1874a45632ec0fcf5b437789f1e45766a1512ce803" dependencies = [ "anyhow", "arrayvec 0.7.4", - "async-lock", + "async-lock 2.8.0", "async-trait", "beef", "futures-channel", @@ -4546,6 +4554,7 @@ dependencies = [ "pallet-collator-selection", "pallet-lockdown-mode", "pallet-multisig", + "pallet-payments", "pallet-proxy", "pallet-session", "pallet-sudo", @@ -4586,8 +4595,7 @@ dependencies = [ [[package]] name = "kusama-runtime-constants" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fd5fda44486f7b352e8199e091d80371b1b9fdd9b3c117e5e25ec28477220a5" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-support", "polkadot-primitives", @@ -4656,9 +4664,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.149" +version = "0.2.150" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a08173bc88b7955d1b3145aa561539096c421ac8debde8cbc3612ec635fee29b" +checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c" [[package]] name = "libloading" @@ -5101,6 +5109,17 @@ dependencies = [ "yamux", ] +[[package]] +name = "libredox" +version = "0.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85c833ca1e66078851dba29046874e38f08b2c883700aa29a03ddd3b23814ee8" +dependencies = [ + "bitflags 2.4.1", + "libc", + "redox_syscall 0.4.1", +] + [[package]] name = "librocksdb-sys" version = "0.11.0+8.1.1" @@ -5304,7 +5323,7 @@ dependencies = [ "macro_magic_core", "macro_magic_macros", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -5318,7 +5337,7 @@ dependencies = [ "macro_magic_core_macros", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -5329,7 +5348,7 @@ checksum = "d710e1214dffbab3b5dacb21475dde7d6ed84c69ff722b3a47a782668d44fbac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -5340,7 +5359,7 @@ checksum = "b8fb85ec1620619edf2984a7693497d4ec88a9665d8b87e942856884c92dbf2a" dependencies = [ "macro_magic_core", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -5402,7 +5421,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2cffa4ad52c6f791f4f8b15f0c05f9824b2ced1160e88cc393d64fff9a8ac64" dependencies = [ - "rustix 0.38.20", + "rustix 0.38.21", ] [[package]] @@ -5523,8 +5542,7 @@ dependencies = [ [[package]] name = "mmr-gadget" version = "25.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30fa1f828c4c4bd71d182d8674b370857b5b6bd30648c6ba81e5652db0cdda1e" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "futures", "log", @@ -5543,8 +5561,7 @@ dependencies = [ [[package]] name = "mmr-rpc" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2335104821e8648e1406f04bbc26e57b4f3c0babacd846b82b0f3f5f2026fb35" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "anyhow", "jsonrpsee", @@ -6002,7 +6019,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d035b1f968d91a826f2e34a9d6d02cb2af5aa7ca39ebd27922d850ab4b2dd2c6" dependencies = [ "expander 2.0.0", - "indexmap 2.0.2", + "indexmap 2.1.0", "itertools 0.11.0", "petgraph", "proc-macro-crate", @@ -6045,8 +6062,7 @@ dependencies = [ [[package]] name = "pallet-asset-conversion" version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3e13819a9db7afbe281394b31f73a797bac08688c9aa43fc7114dd448742e05" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6085,8 +6101,7 @@ dependencies = [ [[package]] name = "pallet-asset-tx-payment" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a7e58838852ea75ab55a57316d5a81344d8e7917da4490abffbb3a81ffb8872" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6104,8 +6119,7 @@ dependencies = [ [[package]] name = "pallet-assets" version = "25.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d704075c2b504c1f66263440cf97af860efd7e7919f25ccebdeeeb255313c261" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6121,8 +6135,7 @@ dependencies = [ [[package]] name = "pallet-aura" version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7e2b1cf20dbd9fe630c69b4b0d3bb0d5fa1223ee728b0fc0064ef65698918c2" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-support", "frame-system", @@ -6139,8 +6152,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bdc251538bcec9340337a1624372561e6d8e6ae4eeb1adb1d7b1af13b349cda" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-support", "frame-system", @@ -6156,8 +6168,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae682e78744224150298730dfa1e2c39220e600dce17e42d2c77e49af3d9c59f" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-support", "frame-system", @@ -6171,8 +6182,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eebab5b1891cc12c13348509831703bea1f160eff60fa7b76b94097cf13b7dcc" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6196,8 +6206,7 @@ dependencies = [ [[package]] name = "pallet-bags-list" version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd175d6ac024054b5fb41ce899a656e2e3972b0c4a2cbbe030b8d79fe25dc892" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "aquamarine", "docify", @@ -6219,8 +6228,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c17ec19ad23b26866ad7d60cdf8b613f653db7f44232aa25009811441908e2b" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6235,8 +6243,7 @@ dependencies = [ [[package]] name = "pallet-beefy" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6272fe91e3d0e5ea20dd82bc0ea8b0f104fe5eb10c66cadc19f7460586b94ff3" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-support", "frame-system", @@ -6256,8 +6263,7 @@ dependencies = [ [[package]] name = "pallet-beefy-mmr" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbf6226868b86de0cb2bc795223ff02f9955329409ac61b71cd193582800872b" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "array-bytes", "binary-merkle-tree", @@ -6282,8 +6288,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e99eb21766e941ca1d92350da602ca618959c0917f216e124f2838d0e50b6c03" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6321,8 +6326,7 @@ dependencies = [ [[package]] name = "pallet-child-bounties" version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b29f699677ce3e509f12a61529286373534948097f139944ef390add34fece5" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6341,8 +6345,7 @@ dependencies = [ [[package]] name = "pallet-collator-selection" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01abb1abe8297d0a7c571b609d923ada973999b63702049343612325eb29c622" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6361,8 +6364,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06d2dcd4a78c11068eafd20df2bf0cbbfda8743ec5434170644c7f0eec7d7615" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6379,8 +6381,7 @@ dependencies = [ [[package]] name = "pallet-conviction-voting" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d2bbed9f775d59346703efc5e1d8a3ee3f04aa73c39f733ca80edaf02907380" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "assert_matches", "frame-benchmarking", @@ -6397,8 +6398,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "676fa85ebbe8ac31aef51c08cdf6422690f71d277c0369e630129b96d3ae9541" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6416,8 +6416,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "394d978de9611f3b23fc499369f86d5d82e64800959a5701d66907737e779406" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -6440,8 +6439,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-support-benchmarking" version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a23b0dec60fd7a0c98234a4b04ef5e1f682bdf7ff3266ca499d85e1aac7bbec" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -6455,8 +6453,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "25.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23776772408c7fd612ee11c17071b1f5d93cbd8d0e0aadc16d112aca2711028d" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6475,8 +6472,7 @@ dependencies = [ [[package]] name = "pallet-fast-unstake" version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c41338a9d75f9c4c656d5d5ff15d8154edd7de61a97361e2d0ddc552baf6e944" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "docify", "frame-benchmarking", @@ -6495,8 +6491,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "977d01d5ce3f06fa17adf2ffa55ebaea765efa23bc11a242773a28955ee1d02b" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6519,8 +6514,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffae303f4ecd1da950d4e27417ee4e3bbe3b8eb33776ded6184c40ed97dc5430" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "enumflags2", "frame-benchmarking", @@ -6536,8 +6530,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c30d7b90763c186d63e3f3f7e102c34df17917f6aeb24c4b6503356a886c16e" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6557,8 +6550,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44159982fa42f9ec453d07bc9bbd41f0d51a710a58616b437700c87113e917cc" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6608,8 +6600,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f4ff96fb2e4e126c96933e7a38e765b0bc30c8de0a66e3680d6a0d38356638e" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6626,8 +6617,7 @@ dependencies = [ [[package]] name = "pallet-message-queue" version = "27.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13771c5cba1de8dd9b0492ab8923a8dd6b76a657f6eed6265db65c169b5f9111" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6646,8 +6636,7 @@ dependencies = [ [[package]] name = "pallet-mmr" version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "224a83531b4a748a06501e033b09a22d51c70b8a58ae03794e7d3df4865ea49a" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6665,8 +6654,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f777e13b1d99233df1b4a6d7cf50d8c8214389be249467d8616983491ebdb537" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6682,8 +6670,7 @@ dependencies = [ [[package]] name = "pallet-nis" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0f288d37549f0cc09c719577b21dab288785e95f91ff69e8916f7f92f438f94" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6699,8 +6686,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools" version = "21.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61cd64134f94f4ce7ff594d15ad6599d50abde54e94fd923366855b5bf0835c7" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-support", "frame-system", @@ -6719,8 +6705,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools-benchmarking" version = "22.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "889d4929272cb67bdd444700a343f142816ebb5bbae65e771e70f52decb5931f" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -6740,8 +6725,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools-runtime-api" version = "19.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c3a6ba161ed6b04be29ce4b6f1e9a2b0d8ab8f3708a95c39e0e0f334aa0954a" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "pallet-nomination-pools", "parity-scale-codec", @@ -6752,8 +6736,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6dee74e6484d9dc2787baa8687b0b27115167848d2f821ca4e57826af4af50c6" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-support", "frame-system", @@ -6770,8 +6753,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e534be39e87f22945af557c5fcb3b4e22d57a881af4966a0ac15f6f3f9feb2c7" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -6792,11 +6774,32 @@ dependencies = [ "sp-std", ] +[[package]] +name = "pallet-payments" +version = "0.1.0" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-assets", + "pallet-balances", + "pallet-preimage", + "pallet-scheduler", + "pallet-sudo", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-io", + "sp-keystore", + "sp-runtime", + "sp-std", +] + [[package]] name = "pallet-preimage" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50fdee12172aeac7a8c3292c559cf59947c71e37630b43d4f27f5b0f7845725c" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6813,8 +6816,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "092eaf774e2ddf8974137fa2970835e421280fb637ddb06ebdfe47fefe29419b" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6829,8 +6831,7 @@ dependencies = [ [[package]] name = "pallet-ranked-collective" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d16d59a6c2169cc28de2eafd24bf9f26d68291fff19186e8dfec88577517723c" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6848,8 +6849,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1ee085c026d20ce52d431b8ebe3283f6047fd411953c4cd003239154211c6e5" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6864,8 +6864,7 @@ dependencies = [ [[package]] name = "pallet-referenda" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b78ae2f740127ca4689066c8dce9aa79e2d7273bda0ab6db06a884892055b89" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "assert_matches", "frame-benchmarking", @@ -6884,8 +6883,7 @@ dependencies = [ [[package]] name = "pallet-remark" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ef5e1477c6f2f860889746c2569d61706740337765a40a45781c97b21b6c64e" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-support", "frame-system", @@ -6900,8 +6898,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "25.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "148b54bb7364da5b95dd34a1ce5d2d89d6a4a28a07e46019cef27e0e3042605b" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "docify", "frame-benchmarking", @@ -6919,8 +6916,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f8482f465a73688a7d58e20dea4b10c9a0425995975b2a43d9ce4fe9a21a491" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-support", "frame-system", @@ -6942,8 +6938,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e688d5db25f47ede6cc0d6f8a76a08e07bf2d017935f2d9e7c78c40aac53089b" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6960,8 +6955,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "587e0dfc3b03d940b1168ac9b0c0d9da26ad35ebe49b198d022d9f2f97ad26fb" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -6979,8 +6973,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a1b649d9b95f842258b2e811960bf5e08285180e912303bee6b13c256a466c4" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -7003,20 +6996,18 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "9.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d99ab20edb6dec19370dbda0a627739dde9cdfea9b4310e28b8a0a0ea0e83fc" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "pallet-staking-reward-fn" version = "15.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a280ef9dfb602b5f39e448d1c7d5922c154b1aee20e42c0740ffef8e2a58f8d1" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "log", "sp-arithmetic", @@ -7025,8 +7016,7 @@ dependencies = [ [[package]] name = "pallet-staking-runtime-api" version = "10.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7eb64deb42c5725b257bd2d73fbe64f191e1e5378698f06c15951d43cddd13a5" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "parity-scale-codec", "sp-api", @@ -7035,8 +7025,7 @@ dependencies = [ [[package]] name = "pallet-state-trie-migration" version = "25.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "102e4426ca996a007026ac39eded61f62c4222fef8840d0a1617b5c41cb1c38b" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -7053,8 +7042,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "679c265de3a128714d43a7e2edf5ea29f2a39df65e4c44e216c04d6bb5dd5be7" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "docify", "frame-benchmarking", @@ -7070,8 +7058,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dac4e66316d53673471420fb887b6a74e2507df169ced62584507ff0fb065c6b" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "docify", "frame-benchmarking", @@ -7091,8 +7078,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a540f30c552ab0dcf32bb378a5f19c9c98dec74647dff93cbe55186aaa6159c" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -7111,8 +7097,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4cbb78b8499af1d338072950e4aef6acf3cc630afdb8e19b00306e5252d0386" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-support", "frame-system", @@ -7128,8 +7113,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "26.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30a7857973b918e71367acb7c284c829612aa9c91a6ba1fb2985d56fbe224545" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", @@ -7145,8 +7129,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "402155004abb33b7f2eedfa60ba77fb6f898e62db979a796e013714d18a1c9c2" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -7158,8 +7141,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dd64a50b82946d4ccf2178b7f3927ebac562b2ef31cecda53d31f3ff53a57c4" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -7176,8 +7158,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06465e88266b5ed015fdb1ad7345f5008a96d8fa9e012e869b6eb49a8069e809" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -7193,8 +7174,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1da7d0e09ddc3decc4abe6adca41a24325a458040b1ecdd246143796af2d47b8" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -7209,8 +7189,7 @@ dependencies = [ [[package]] name = "pallet-whitelist" version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "997468b98ea225e8aed84cdb78503e3d35d0c997c2977503732c05afb626e5d9" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -7225,8 +7204,7 @@ dependencies = [ [[package]] name = "pallet-xcm" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "430a62e82af99a697fabe583b85bf5797ef5d9996b8dec5bc2d195e94b4da3e3" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "bounded-collections", "frame-benchmarking", @@ -7247,8 +7225,7 @@ dependencies = [ [[package]] name = "pallet-xcm-benchmarks" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23c7213029f113604b5799b6a126239d096427cdb678a377827eaf6928fde182" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-benchmarking", "frame-support", @@ -7267,8 +7244,7 @@ dependencies = [ [[package]] name = "parachains-common" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63b13d76e1e40c002836b4f12cd771466440d92973f19cd093ff21b79eb12fc9" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "cumulus-primitives-core", "cumulus-primitives-utility", @@ -7514,7 +7490,7 @@ dependencies = [ "pest_meta", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -7535,7 +7511,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9" dependencies = [ "fixedbitset", - "indexmap 2.0.2", + "indexmap 2.1.0", ] [[package]] @@ -7555,7 +7531,7 @@ checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -7615,15 +7591,14 @@ checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964" [[package]] name = "platforms" -version = "3.1.2" +version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4503fa043bf02cee09a9582e9554b4c6403b2ef55e4612e96561d294419429f8" +checksum = "14e6ab3f592e6fb464fc9712d8d6e6912de6473954635fd76a589d832cffcbb0" [[package]] name = "polkadot-approval-distribution" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea7bdfdad9271565de6ef4c28c4094df9d1da66f037cf9342ec2f7d7fe5fe2fd" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "futures", "futures-timer", @@ -7641,8 +7616,7 @@ dependencies = [ [[package]] name = "polkadot-availability-bitfield-distribution" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "184e9c8cf8dfcb23c828642ee7060d43172425215adcba4e44a33751f1735f69" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "always-assert", "futures", @@ -7658,8 +7632,7 @@ dependencies = [ [[package]] name = "polkadot-availability-distribution" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a0af00d0fc4c24b2632b34dc3d9157ef49277dda9e1e6c4b47f5a4efa2afd8e" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "derive_more", "fatality", @@ -7682,8 +7655,7 @@ dependencies = [ [[package]] name = "polkadot-availability-recovery" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6419dffb08bf7b5348a38b569fd4707b4a491fd86326b817bd4d98bb5300e4c4" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "fatality", @@ -7705,8 +7677,7 @@ dependencies = [ [[package]] name = "polkadot-cli" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00dbc59d9643c82617a722e6fc072f099a613306b0132ec82a7ab31102e40f5b" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "clap", "frame-benchmarking-cli", @@ -7733,8 +7704,7 @@ dependencies = [ [[package]] name = "polkadot-collator-protocol" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3206d593993819a9d74121cd6dbc8ef7c592b55dcd1c4c236fd824355473ee33" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "bitvec", "fatality", @@ -7756,8 +7726,7 @@ dependencies = [ [[package]] name = "polkadot-core-primitives" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "209cc9c9f7ed951bb11a2ff2f592e6b5cd79d6f50311e4f702adce0fcc577152" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "parity-scale-codec", "scale-info", @@ -7769,8 +7738,7 @@ dependencies = [ [[package]] name = "polkadot-dispute-distribution" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ab9353c3566e44664e7ed7dde1868348948663caa2d9cac44ce983fa66e99c6" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "derive_more", "fatality", @@ -7795,8 +7763,7 @@ dependencies = [ [[package]] name = "polkadot-erasure-coding" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "041da63ce9403adc7e070ea47f92e6389013497814edfe7f6112791f052c936d" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "parity-scale-codec", "polkadot-node-primitives", @@ -7810,8 +7777,7 @@ dependencies = [ [[package]] name = "polkadot-gossip-support" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0be3347bce6a38dd689daa20e69d57d282b8a808a4f1c3887470324154194af6" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "futures", "futures-timer", @@ -7832,8 +7798,7 @@ dependencies = [ [[package]] name = "polkadot-network-bridge" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdd9b1482d62f3c1f7de02432a92dc59b041b9daf1787f5dc6e75f2bc7fa216a" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "always-assert", "async-trait", @@ -7856,8 +7821,7 @@ dependencies = [ [[package]] name = "polkadot-node-collation-generation" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28056f91ded86cf2b1bbc1a0168fc62754d77dbb325c81bd3d70b1275917771e" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "futures", "parity-scale-codec", @@ -7875,8 +7839,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-approval-voting" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "247831a071924a1a195fbb9ed1464d86b7a1d8abd490591dc16cb21dc888e561" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "bitvec", "derive_more", @@ -7905,8 +7868,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-av-store" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa0ae80fb2eeefbffe5ccd39bfbda867cb650e094e6ef0b29aeb9a946d01cbc0" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "bitvec", "futures", @@ -7928,8 +7890,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-backing" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a092859f2bbc5a19bbefda38967ab1843d33e3fd65565ed4e349e5f70bacd3d" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "bitvec", "fatality", @@ -7948,8 +7909,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-bitfield-signing" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cca2c96551dd71ccf9f29d4d13c2ecb532c50576b45dcf65035aaf7ebda2e029" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "futures", "polkadot-node-subsystem", @@ -7964,8 +7924,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-candidate-validation" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c66e65af80e7afa46b6a8b0bfe30f409e6126132df0a86db9f370eaa9f46591e" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "futures", @@ -7986,8 +7945,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-chain-api" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "468c69dee4547381abbeb7fdf71be89d0e30381d20625fe3dffea7b3d3d898e2" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "futures", "polkadot-node-metrics", @@ -8002,8 +7960,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-chain-selection" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "580d3181d444ac8bde15df731eb564cb71fb103b624e6feebb737e4fcddbf27f" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "futures", "futures-timer", @@ -8020,8 +7977,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-dispute-coordinator" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6a97ead8c24602c20b760ef29ef5b4df2bad8c23824ddb7abee557d3437e230" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "fatality", "futures", @@ -8040,8 +7996,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-parachains-inherent" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aac23ef33f961a51902e73c18cd6fd4732b194bee6e4da2ebd686d94a6f9a713" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "futures", @@ -8058,8 +8013,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-prospective-parachains" version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3d41303c2be017bc2d5c7cc03e9e08afca5981ed7b99b6a71b04052b43b2b13" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "bitvec", "fatality", @@ -8076,8 +8030,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-provisioner" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0da55e3e92dfd6807dc2b6beaca4152ea2b29e61690bedc2fba4270fd52c5a7b" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "bitvec", "fatality", @@ -8094,8 +8047,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-pvf" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "200ecf92906c3836c1b95cb0be92f30dc37b8186cdfe25dc6f0afc1c2d860a65" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "always-assert", "futures", @@ -8123,8 +8075,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-pvf-checker" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1372aee1962c37cc915a88ae8780bbdce50689db88afd9ce8369b2c394529a2b" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "futures", "polkadot-node-primitives", @@ -8140,8 +8091,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-pvf-common" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78c062659543cea9eb0ccb934e02f284dd71cbbc90fbbcde931795f9a1ff4489" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "cpu-time", "futures", @@ -8164,8 +8114,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-pvf-prepare-worker" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1aa8d4dd44801391192860629e3e1d0f346bea5fbc0e48556f8cf7e87f9baaf" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "futures", "libc", @@ -8188,8 +8137,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-runtime-api" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "436b785b8f5c988cd9eb6147ff60714df4e4604db77a41200fef554f970da4e3" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "futures", "polkadot-node-metrics", @@ -8204,8 +8152,7 @@ dependencies = [ [[package]] name = "polkadot-node-jaeger" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e67dbaac90484bad44e91812f8bd698cc87587728e570e33ce77c90a7c3cce8" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "lazy_static", "log", @@ -8223,8 +8170,7 @@ dependencies = [ [[package]] name = "polkadot-node-metrics" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b40316be4e77cc63d4fa95236ef4b188b4eb7304918ce6ca5e10aeb568a21bd" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "bs58 0.5.0", "futures", @@ -8243,8 +8189,7 @@ dependencies = [ [[package]] name = "polkadot-node-network-protocol" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d872b0f84734ef355d73e4492fc59c3e755d7232cd465bf0ed68679fb3291868" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-channel", "async-trait", @@ -8268,8 +8213,7 @@ dependencies = [ [[package]] name = "polkadot-node-primitives" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b18e1dfcc68fd13a87fb2e06d6c8ec3cb83d6914140b9de3e191cf495089d63e" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "bounded-vec", "futures", @@ -8291,8 +8235,7 @@ dependencies = [ [[package]] name = "polkadot-node-subsystem" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcb0aa59a2574322416075f586779bdfe6d75044503b134fb553038a6444de78" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "polkadot-node-jaeger", "polkadot-node-subsystem-types", @@ -8302,8 +8245,7 @@ dependencies = [ [[package]] name = "polkadot-node-subsystem-types" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "306c61acfa9ba62eb36c238236321e2dc2ffe51698555b361a52e5f2f3c1470b" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "derive_more", @@ -8328,8 +8270,7 @@ dependencies = [ [[package]] name = "polkadot-node-subsystem-util" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f130f93ebf9e4536c1965b3db64d891665195cf17e848d6404a59159e81780b9" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "derive_more", @@ -8364,8 +8305,7 @@ dependencies = [ [[package]] name = "polkadot-overseer" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2a68991609f78f18243c24b53cbb895147e9001967ef64ab5dbdf60e1ec5aef" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "futures", @@ -8388,8 +8328,7 @@ dependencies = [ [[package]] name = "polkadot-parachain-primitives" version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "864de6d7b7ed9c955aa1da6c53585ad75c73618307b569447dd0559f8f9baef9" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "bounded-collections", "derive_more", @@ -8406,8 +8345,7 @@ dependencies = [ [[package]] name = "polkadot-performance-test" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae4917b787db9e934d5f2edf8885a546a888393513964a92e1cad1b509abeb1e" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "env_logger 0.9.3", "log", @@ -8425,8 +8363,7 @@ dependencies = [ [[package]] name = "polkadot-primitives" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9de3d7ae1191401fe2476a69dece0853011d2c9fdcb7eb194cdead641f395abb" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "bitvec", "hex-literal 0.4.1", @@ -8452,8 +8389,7 @@ dependencies = [ [[package]] name = "polkadot-rpc" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2096e839cf2abebe41bfb4b13b63cc97b94f3d193cfa7d45a834c7c7b7bc9fe2" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "jsonrpsee", "mmr-rpc", @@ -8485,8 +8421,7 @@ dependencies = [ [[package]] name = "polkadot-runtime-common" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac922a958e3e1435d7adffe49c1528b6396baf668ab45f635b79bff750053543" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "bitvec", "frame-benchmarking", @@ -8532,8 +8467,7 @@ dependencies = [ [[package]] name = "polkadot-runtime-constants" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d4a7abfe0dff335456790ac8edc342737dffbd67013a38b7bec2f6b523cc175" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-support", "polkadot-primitives", @@ -8547,8 +8481,7 @@ dependencies = [ [[package]] name = "polkadot-runtime-metrics" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93dbff21f9ce253f4cd976a972c5b4b18150cecb6fdae195a975e51cf3c797df" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "bs58 0.5.0", "frame-benchmarking", @@ -8561,8 +8494,7 @@ dependencies = [ [[package]] name = "polkadot-runtime-parachains" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ffa4bade116bef54be48bb1ead3917d84478f43184d5f9ae001ec333d7d7d66" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "bitflags 1.3.2", "bitvec", @@ -8609,8 +8541,7 @@ dependencies = [ [[package]] name = "polkadot-service" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b9ddbc0f038905684bd60561307fdd366c26d8c322b015f17eadc3344771dd9" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "frame-benchmarking", @@ -8727,8 +8658,7 @@ dependencies = [ [[package]] name = "polkadot-statement-distribution" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a0b9b25860ce4f1ae4c6018835225287d87f63c77de9b525a79722d2f142d06" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "arrayvec 0.7.4", "bitvec", @@ -8752,8 +8682,7 @@ dependencies = [ [[package]] name = "polkadot-statement-table" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "857b4c83022e353c48f38e4db15542e5da4d778e81058e533c44d559c72b5a51" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "parity-scale-codec", "polkadot-primitives", @@ -8776,6 +8705,20 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "polling" +version = "3.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e53b6af1f60f36f8c2ac2aad5459d75a5a9b4be1e8cdd40264f315d78193e531" +dependencies = [ + "cfg-if", + "concurrent-queue", + "pin-project-lite 0.2.13", + "rustix 0.38.21", + "tracing", + "windows-sys 0.48.0", +] + [[package]] name = "poly1305" version = "0.7.2" @@ -8824,9 +8767,9 @@ dependencies = [ [[package]] name = "portable-atomic" -version = "1.5.0" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b559898e0b4931ed2d3b959ab0c2da4d99cc644c4b0b1a35b4d344027f474023" +checksum = "3bccab0e7fd7cc19f820a1c8c91720af652d0c88dc9664dd72aef2614f04af3b" [[package]] name = "powerfmt" @@ -8899,7 +8842,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae005bd773ab59b4725093fd7df83fd7892f7d8eafb48dbd7de6e024e4215f9d" dependencies = [ "proc-macro2", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -8973,7 +8916,7 @@ checksum = "3d1eaa7fa0aa1929ffdf7eeb6eac234dde6268914a14ad44d23521ab6a9b258e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -9019,7 +8962,7 @@ checksum = "440f724eba9f6996b75d63681b0a92b06947f1457076d503a4d2e2c8f56442b8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -9317,12 +9260,12 @@ dependencies = [ [[package]] name = "redox_users" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" +checksum = "a18479200779601e498ada4e8c1e1f50e3ee19deb0259c25825a98b5603b2cb4" dependencies = [ "getrandom 0.2.10", - "redox_syscall 0.2.16", + "libredox", "thiserror", ] @@ -9356,7 +9299,7 @@ checksum = "7f7473c2cfcf90008193dd0e3e16599455cb601a9fce322b5bb55de799664925" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -9488,8 +9431,7 @@ dependencies = [ [[package]] name = "rococo-runtime" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0715aaed64da03af8ce68af387dd02e65524351c212afd5384d46615662b3c2" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "binary-merkle-tree", "frame-benchmarking", @@ -9578,8 +9520,7 @@ dependencies = [ [[package]] name = "rococo-runtime-constants" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fef0b660c7a725559c6be97a47511be63561c137da105ee13b07d9c7a462e43" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-support", "polkadot-primitives", @@ -9689,9 +9630,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.36.16" +version = "0.36.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6da3636faa25820d8648e0e31c5d519bbb01f72fdf57131f0f5f7da5fed36eab" +checksum = "305efbd14fde4139eb501df5f136994bb520b033fa9fbdce287507dc23b8c7ed" dependencies = [ "bitflags 1.3.2", "errno", @@ -9703,9 +9644,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.37.26" +version = "0.37.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84f3f8f960ed3b5a59055428714943298bf3fa2d4a1d53135084e0544829d995" +checksum = "fea8ca367a3a01fe35e6943c400addf443c0f57670e6ec51196f71a4b8762dd2" dependencies = [ "bitflags 1.3.2", "errno", @@ -9717,9 +9658,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.20" +version = "0.38.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67ce50cb2e16c2903e30d1cbccfd8387a74b9d4c938b6a4c5ec6cc7556f7a8a0" +checksum = "2b426b0506e5d50a7d8dafcf2e81471400deb602392c7dd110815afb4eaf02a3" dependencies = [ "bitflags 2.4.1", "errno", @@ -9761,7 +9702,7 @@ checksum = "446e14c5cda4f3f30fe71863c34ec70f5ac79d6087097ad0bb433e1be5edf04c" dependencies = [ "log", "ring 0.17.5", - "rustls-webpki 0.101.7", + "rustls-webpki", "sct 0.7.1", ] @@ -9786,16 +9727,6 @@ dependencies = [ "base64 0.21.5", ] -[[package]] -name = "rustls-webpki" -version = "0.100.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f6a5fc258f1c1276dfe3016516945546e2d5383911efc0fc4f1cdc5df3a4ae3" -dependencies = [ - "ring 0.16.20", - "untrusted 0.7.1", -] - [[package]] name = "rustls-webpki" version = "0.101.7" @@ -9861,8 +9792,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "19.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bd6e58990dcb1eae76db49c456ded9a7906ee194857cf1dfb00da8bbc8cf73d" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "log", "sp-core", @@ -9873,8 +9803,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb85aa27916c2262aef532e6fc12d9654ce4717689cd25c75a88c5cc36609d18" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "futures", @@ -9902,8 +9831,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0f802a95cece137daa3a0980f41a8e9265aa65d1b078f8d771f7d2f41e04266" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "futures", "futures-timer", @@ -9926,8 +9854,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4653cc3665319f76451f651bc5e3eb84965802293daeaf2def5bfe9c1310171b" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -9942,8 +9869,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5fae1616d342e570fb4770c9f1a73ab8e1aecb9c5b71020404f8e45db458260" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "memmap2", "sc-chain-spec-derive", @@ -9962,20 +9888,18 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "9.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88a074891d17c03c58b1314c9add361a5a7fb28d4d3addd7a32dca8b119bd877" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "sc-cli" version = "0.32.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc423e21a22adc4f6056ccb5e19fca9ddc6cce1a49cd9aa44c53d6b2338fbeb3" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "array-bytes", "chrono", @@ -10014,8 +9938,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d49efb455b1b276557ba3cac01c2e42811148cc73149858296e4ae96707dc70e" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "fnv", "futures", @@ -10042,8 +9965,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.31.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1062af3e43f09e0080714382ee3e7dd850037908938323eefdcd4f4b61bdd6b" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "hash-db", "kvdb", @@ -10069,8 +9991,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5f8da1ef0f036209b80d8bde5c8990ea1a86241532d84b5fd15f5e721da849c" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "futures", @@ -10095,8 +10016,7 @@ dependencies = [ [[package]] name = "sc-consensus-aura" version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cbb98be43737b79517f2de34b5185a58238dc8f69e84ddf7e4730bc0e2e2e65" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "futures", @@ -10125,8 +10045,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e21750ec5f62320492d14c59cf47b4d84a1306e8e54e4674d5c6bc3b8059ed1" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "fork-tree", @@ -10161,8 +10080,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba36543e3ec8fe5c03a2478f5f1382e5b63bfa4c86d8418631d2db7c94960a8b" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "futures", "jsonrpsee", @@ -10184,8 +10102,7 @@ dependencies = [ [[package]] name = "sc-consensus-beefy" version = "9.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1be80ee14b37a706e7a8b701119cae4e367f07e19a0b8cd3a5e4b979b0bf04dd" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "array-bytes", "async-channel", @@ -10219,8 +10136,7 @@ dependencies = [ [[package]] name = "sc-consensus-beefy-rpc" version = "9.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0357a9c56f40f76f74b5f167f73984297d26d1cc9159474f8b16b8d3eacab2c" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "futures", "jsonrpsee", @@ -10239,8 +10155,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06fee81cdd6b24f8423db4fc660d1cd97fa0d3503edbede59bf1d53635ac3815" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "fork-tree", "parity-scale-codec", @@ -10253,8 +10168,7 @@ dependencies = [ [[package]] name = "sc-consensus-grandpa" version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98285bbed76ba058f3c9f4111471208cd4c246d2ca7b52b7fbea15afdbb40ca5" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "ahash 0.8.6", "array-bytes", @@ -10295,8 +10209,7 @@ dependencies = [ [[package]] name = "sc-consensus-grandpa-rpc" version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "451a6a65656ab70919b0bba167f03ae1c0605c442f04369bc159e7c08772f3a0" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "finality-grandpa", "futures", @@ -10316,8 +10229,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0a232d18eb53288775eaeb782cad70ca75815cd10e6212352e6e53cc3961931" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "futures", @@ -10340,8 +10252,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cfeaa8dc2a70ed5820667d3251266ed156f38d8062c2f976aa7c618411f1776" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", @@ -10363,8 +10274,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.25.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d404519f2a636d5977b1ac16c90aeb4129fe4609a5b284960a2dcb005c08da6" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "sc-allocator", "sp-maybe-compressed-blob", @@ -10376,14 +10286,13 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.25.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a82515a0cb74a2acb58f6ced20fae56eeb87ba4d813e60e46cf190a53d44c931" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "anyhow", "cfg-if", "libc", "log", - "rustix 0.36.16", + "rustix 0.36.17", "sc-allocator", "sc-executor-common", "sp-runtime-interface", @@ -10394,8 +10303,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "233ece6736217208ffac94f84de2d15465f80f676f881dacd0a9b3411b476951" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "ansi_term", "futures", @@ -10411,8 +10319,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "21.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c15cc8b79eb0832cac48fde41e9ecd011df5d57dad7608f2b89fe721e97012c" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "array-bytes", "parking_lot 0.12.1", @@ -10426,8 +10333,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3edad0e7930c2572d6920dc257bc03af6f40ba272bc45602edd0a045d94e5e59" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "array-bytes", "async-channel", @@ -10468,8 +10374,7 @@ dependencies = [ [[package]] name = "sc-network-bitswap" version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6a0d247f576989cb2fe49df0511cbbd826f1e47b444848971e2bddec8f18a65" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-channel", "cid", @@ -10489,8 +10394,7 @@ dependencies = [ [[package]] name = "sc-network-common" version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b418c79cea8ab5b43f5bbe7ee95da7d6490bdfedbe92a9b07a714ca4f09a2426" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "bitflags 1.3.2", @@ -10507,8 +10411,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27a9e8b4e16ab5b67b1fe389349855a2946d3c9168df54afcafec5dd67cae4cd" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "ahash 0.8.6", "futures", @@ -10526,8 +10429,7 @@ dependencies = [ [[package]] name = "sc-network-light" version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e36fc98d43aa75eb0d0690af6a8c6a929318f6cb4bf1fc039410ece56c8bb5a9" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "array-bytes", "async-channel", @@ -10548,8 +10450,7 @@ dependencies = [ [[package]] name = "sc-network-sync" version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d049b008a7353fc46cb45a1f6f68e5e5128442b6726cfd82da09cb676443e73" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "array-bytes", "async-channel", @@ -10583,8 +10484,7 @@ dependencies = [ [[package]] name = "sc-network-transactions" version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ef6606f7705bc9c038c9e11715b7ddbdb2a5b43c12d8e3cc346e0b9927218e4" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "array-bytes", "futures", @@ -10602,8 +10502,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "25.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b9d2458e033256bca62b01e89369bb9a7d74a460b74a5e3786afc5db3f55b1c" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "array-bytes", "bytes", @@ -10637,8 +10536,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6fc35c74a42a49d4ea4df44f78ebbd5a744f9bdca3f4ea1d3d9e5e02b0e6ee7" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -10647,8 +10545,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "25.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ede50e654b3e0c076bb9beb041612af80f07dfb883cc05d8aaae1c7a1bb72761" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "futures", "jsonrpsee", @@ -10679,8 +10576,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cac4149b7427beed423006c78e0b75c0193ac01d6e66ff0dd8a1909747cf593" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -10699,8 +10595,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "9.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a62b9c5bf359cd4923ce10d294532936aa68d0cd59e890a0414f6434397180b" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "http", "jsonrpsee", @@ -10715,8 +10610,7 @@ dependencies = [ [[package]] name = "sc-rpc-spec-v2" version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e770646ab839fb33dfeb7cbde94d98cdaf78526c70b10aa59ec5810953ff2a5" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "array-bytes", "futures", @@ -10744,8 +10638,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.31.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9c7fa14eaf48c44edff226ce9b18dc984c122e9deebbf825a8945be7c046ade" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "directories", @@ -10809,8 +10702,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.26.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43bc9266fdec30b59857e794fc329aa600aaa6ed46799f9df859a7e30c0ec34b" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "log", "parity-scale-codec", @@ -10821,8 +10713,7 @@ dependencies = [ [[package]] name = "sc-storage-monitor" version = "0.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a644660e0063cfa77a0609c4d37109050fb48cb0723562a0b87ec02214d907c2" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "clap", "fs4", @@ -10836,8 +10727,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd0c77869b8cc2854143303118efa5aa042464e7d9f9dc7ccd93a4a628df2a5d" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -10856,8 +10746,7 @@ dependencies = [ [[package]] name = "sc-sysinfo" version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ff97437e564c0e7483d7e32384e3f6571f656728ea03a6e1b07a6325e064a76" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "futures", "libc", @@ -10876,8 +10765,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "11.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b46193a2979c86da75fc43276d222359757ea257b512fe6e4128e7a50b0bb22" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "chrono", "futures", @@ -10896,8 +10784,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fcb4398268e83957ebbc84e6290307198e817caa47386135d3de6ba3316203a" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "ansi_term", "atty", @@ -10926,20 +10813,18 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "9.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71bd05d3f24c0c2489c57b90a76db883c23c25577718ca05c9b0181fd427f501" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "sc-transaction-pool" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6af477c0e8a2698aabf442a3918313e8f096eb6695ceaaa7e12679c496d2826" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "futures", @@ -10965,8 +10850,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4f1b864d0ae8f1891eb310672c12fc160d24e37ef297d5ef0db257558fe13b1" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "futures", @@ -10982,8 +10866,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "10.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8b01c8eed623f999d402e44679d42ad42586afd4638aaed38708a307b59f4d7" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-channel", "futures", @@ -11223,29 +11106,29 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "serde" -version = "1.0.190" +version = "1.0.192" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91d3c334ca1ee894a2c6f6ad698fe8c435b76d504b13d436f0685d648d6d96f7" +checksum = "bca2a08484b285dcb282d0f67b26cadc0df8b19f8c12502c13d966bf9482f001" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.190" +version = "1.0.192" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67c5609f394e5c2bd7fc51efda478004ea80ef42fee983d5c67a65e34f32c0e3" +checksum = "d6c7207fbec9faa48073f3e3074cbe553af6ea512d7c21ba46e434e70ea9fbc1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "serde_json" -version = "1.0.107" +version = "1.0.108" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b420ce6e3d8bd882e9b243c6eed35dbc9a6110c9769e74b584e0d68d1f20c65" +checksum = "3d1c7e3eac408d115102c4c24ad393e0821bb3a5df4d506a80f85f7a742a526b" dependencies = [ "itoa", "ryu", @@ -11412,8 +11295,7 @@ checksum = "826167069c09b99d56f31e9ae5c99049e932a98c9dc2dac47645b08dbbf76ba7" [[package]] name = "slot-range-helper" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5109eff24021551c130973a924318728720e6c74fc98d206b4f42b7763978fdc" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "enumn", "parity-scale-codec", @@ -11446,12 +11328,12 @@ dependencies = [ "async-channel", "async-executor", "async-fs", - "async-io", - "async-lock", + "async-io 1.13.0", + "async-lock 2.8.0", "async-net", "async-process", "blocking", - "futures-lite", + "futures-lite 1.13.0", ] [[package]] @@ -11461,7 +11343,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0bb30cf57b7b5f6109ce17c3164445e2d6f270af2cb48f6e4d31c2967c9a9f5" dependencies = [ "arrayvec 0.7.4", - "async-lock", + "async-lock 2.8.0", "atomic-take", "base64 0.21.5", "bip39", @@ -11474,7 +11356,7 @@ dependencies = [ "either", "event-listener 2.5.3", "fnv", - "futures-lite", + "futures-lite 1.13.0", "futures-util", "hashbrown 0.14.2", "hex", @@ -11515,7 +11397,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "256b5bad1d6b49045e95fe87492ce73d5af81545d8b4d8318a872d2007024c33" dependencies = [ "async-channel", - "async-lock", + "async-lock 2.8.0", "base64 0.21.5", "blake2-rfc", "derive_more", @@ -11523,7 +11405,7 @@ dependencies = [ "event-listener 2.5.3", "fnv", "futures-channel", - "futures-lite", + "futures-lite 1.13.0", "futures-util", "hashbrown 0.14.2", "hex", @@ -11607,8 +11489,7 @@ dependencies = [ [[package]] name = "sp-api" version = "22.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddc5213210472ba2becdc094fbb9d30c4455753b1a608962797e1e971c3e5ec4" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "hash-db", "log", @@ -11629,8 +11510,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "11.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20e7f093302d30b9d35436db024376459bdc9da7530abcacf5d87c32a67d94fd" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "Inflector", "blake2", @@ -11638,14 +11518,13 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "sp-application-crypto" version = "26.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b74454c936a45ac55c8de95b9fd8b5e38f8b43d97df8f4274dd6777b20d95569" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "parity-scale-codec", "scale-info", @@ -11658,8 +11537,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "19.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e41f710a77e9debd1c9b80f862709dce648e50f0904cde4117488e7d11d4796d" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "integer-sqrt", "num-traits", @@ -11673,8 +11551,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "22.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3259fe9bf2e48eba37067f464a3db79ef20e25f1297cbad310c11738757c5c6a" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "parity-scale-codec", "scale-info", @@ -11687,8 +11564,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "22.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c6a066e310d4c0c240829d7bb5d6bd01dde55d03e15b665f0372b40952f37e6" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "sp-api", "sp-inherents", @@ -11699,8 +11575,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f506119858f25a73ed9d61a2ead0d5b97b5141055b3b4a12b9b82e530b06c673" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "futures", "log", @@ -11718,8 +11593,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04e142e27f140d50701e613d925f61482fafccb7d90933ee30d7bae54d293ea3" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "futures", @@ -11734,8 +11608,7 @@ dependencies = [ [[package]] name = "sp-consensus-aura" version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0dcc6df7a006a55651d0e7bdf2d8d4583d5b917cb4b7b6a1331398e96307a883" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "parity-scale-codec", @@ -11752,8 +11625,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "572374a1260687fa18481ccac58c4a64611df379fb1aa65389ce96c6661b3b05" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "parity-scale-codec", @@ -11772,8 +11644,7 @@ dependencies = [ [[package]] name = "sp-consensus-beefy" version = "9.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1969665f2c07bd7403810c3e1180ef03e388f74be04a1362fe4471d14a7cda14" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "lazy_static", "parity-scale-codec", @@ -11792,8 +11663,7 @@ dependencies = [ [[package]] name = "sp-consensus-grandpa" version = "9.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04d20516ed05a6a17f712050d6be385ca53c16b2d49938a29ca05e07f7aa5118" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "finality-grandpa", "log", @@ -11811,8 +11681,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ebe1c46246a76af1105639c7434c1383d376fd45a8548fc18ed66dbf86f803c" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "parity-scale-codec", "scale-info", @@ -11824,8 +11693,7 @@ dependencies = [ [[package]] name = "sp-core" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7921d278ed2aebbb21a644c96e09663dc49a6139d1e2e063c059dc9f866e149b" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "array-bytes", "bitflags 1.3.2", @@ -11870,8 +11738,7 @@ dependencies = [ [[package]] name = "sp-core-hashing" version = "12.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7cb5c31aa385d6997a5b73fdc9837c1c0145559205198555c3000739a474767" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "blake2b_simd", "byteorder", @@ -11884,19 +11751,17 @@ dependencies = [ [[package]] name = "sp-core-hashing-proc-macro" version = "12.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a4327a220777a8d492ed3d0bcd4c769cbb030301e7d4a2d9e09513d690c313b" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "quote", "sp-core-hashing", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "sp-database" version = "8.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab25f79468af89010a8eb84e6bf56068b59929a55291c03519f47208360f3ebe" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "kvdb", "parking_lot 0.12.1", @@ -11905,19 +11770,17 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "11.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16f7d375610590566e11882bf5b5a4b8d0666a96ba86808b2650bbbd9be50bf8" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "sp-externalities" version = "0.22.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ede074871514ca7c5d2eca9563515d858c6220b47ae815714ed4393a4e99db4a" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "environmental", "parity-scale-codec", @@ -11928,8 +11791,7 @@ dependencies = [ [[package]] name = "sp-genesis-builder" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10b9f0251a09b578393f3297abe54a29abdb7e93c17e89a88dc1cabb8e2d5a2d" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "serde_json", "sp-api", @@ -11940,8 +11802,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "22.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "439882da80e9bcfd1ba53df7ec5070d4d7f2a9a93f988aa3598f99ee5bfc76eb" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -11955,8 +11816,7 @@ dependencies = [ [[package]] name = "sp-io" version = "26.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88fb6e281de5054565f07a9f79504d21133e115db549993c99f1b21236c677a5" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "bytes", "ed25519-dalek", @@ -11980,8 +11840,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "27.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05f09927534d2233e135e4b4a0c758554d0ff66178f6e9cfba2e151dfeac97b3" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "lazy_static", "sp-core", @@ -11992,8 +11851,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b9f19e773319d96223ce8dba960267e6cb977907537a8f738746ceb86592413" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", @@ -12005,8 +11863,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "8.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "377a0e22a104a1a83804562fba6702537af6a36df9ee2049c89c3be9148b42b1" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "thiserror", "zstd 0.12.4", @@ -12015,8 +11872,7 @@ dependencies = [ [[package]] name = "sp-metadata-ir" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb0dec8af38c68358600da59cf14424e1230fe9ae1d4b4f64a098288145c0775" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-metadata", "parity-scale-codec", @@ -12027,8 +11883,7 @@ dependencies = [ [[package]] name = "sp-mmr-primitives" version = "22.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f616a1e1f731d027808d06d6b10de8d1e401397571e8f8e4ba84c1e74afc334c" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "ckb-merkle-mountain-range", "log", @@ -12046,8 +11901,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "22.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec60b253bf9097e8ffe103563c515ef80550556ab3b2ec5513ed17a4ad7de520" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "parity-scale-codec", "scale-info", @@ -12061,8 +11915,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "22.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50b1501eb4ede6471162ff48c85ccabb21434b698c8b61e2651f85c00bc1656f" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "sp-api", "sp-core", @@ -12072,8 +11925,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "11.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd099ba2d6c1bfe5d0c79aa56e440fa3c9257eadfc0c782c09cdc2122b1e60ed" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "backtrace", "lazy_static", @@ -12083,8 +11935,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "22.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d8534ae0a6043f70a93054bf0d3da27436637a8134ed44667c360e7a955cb3d" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "rustc-hash", "serde", @@ -12094,8 +11945,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "27.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46c0641e1a9d340960b562bcceea1457680fd0e109fc1040f8f5364fd7bc2506" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "either", "hash256-std-hasher", @@ -12117,8 +11967,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "20.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17a4030ad93f05c93f2cc294c74bc5fea227f90fb3d1426d4a6f165e017fb7ea" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -12136,21 +11985,19 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "14.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b232943ee7ca83a6d56face33b8af12e9fb470a15a53835f4e12a6e452a41c1c" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "Inflector", "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "sp-session" version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfd062688577cc54493ba6f58383bfed89c66d5ef7b7c3747293b0da06c7f795" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "parity-scale-codec", "scale-info", @@ -12165,8 +12012,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "22.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d3b2a4a7aa67a9adb2a8f49ed516f6694b5fa70792ab9b0125934b1c8cdc2e3" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -12180,8 +12026,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.31.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bf4c76bea1a9e4a2e79afe70f42f1d368a8a45308e58f19bfd755c5ddb2b4a3" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "hash-db", "log", @@ -12202,8 +12047,7 @@ dependencies = [ [[package]] name = "sp-statement-store" version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a11bbdc403457dd7a850078936aa7cc753c617b7bbeba5f5766ce5a55b2bf124" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "aes-gcm 0.10.3", "curve25519-dalek 4.1.1", @@ -12227,14 +12071,12 @@ dependencies = [ [[package]] name = "sp-std" version = "11.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c91d32e165d08a14098ce5ec923eaec59d1d0583758a18a770beec1b780b0d0" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" [[package]] name = "sp-storage" version = "16.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac9660ecd48314443e73ad0f44d58b76426666a1343d72f6f65664e174da9244" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "impl-serde", "parity-scale-codec", @@ -12247,8 +12089,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "22.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b0ab4b6b2d31db93e7da68894ccb7c5a305524cea051109820b958361d162be" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "parity-scale-codec", @@ -12261,8 +12102,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "13.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69a61948986d2a9f8d67d60884ff0277d910df09ebe08d0e1f309da777516453" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "parity-scale-codec", "sp-std", @@ -12274,8 +12114,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "22.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42ea9c85f85f52e0a49c3f2ec6cff952fdc3ffe8392bebe21ed30eddd8d059c5" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "sp-api", "sp-runtime", @@ -12284,8 +12123,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "22.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30a2d2d676a4c8e9ff18cb43782ed557d00de28ee9fb090842a8510e4a7ce0a7" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "parity-scale-codec", @@ -12300,8 +12138,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "25.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bb2d292eb90452dcb0909fb44e74bf04395e3ffa37a66c0f1635a00600382a4" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "ahash 0.8.6", "hash-db", @@ -12324,8 +12161,7 @@ dependencies = [ [[package]] name = "sp-version" version = "25.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "125da59ea46ecb23860e7d895f6f2882f596b71ffca0ae4887558aac541f4342" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "impl-serde", "parity-scale-codec", @@ -12342,20 +12178,18 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "11.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92897ffa04436cbd100c49ea1f8b637cb68e2a9fe144115f4b545b5ace2f47e2" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "parity-scale-codec", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "sp-wasm-interface" version = "17.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf43bb0c8eb76dc41057ce0fb6b744b94c9aec28b31dff53a1efc4f04ef25384" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "anyhow", "impl-trait-for-tuples", @@ -12368,8 +12202,7 @@ dependencies = [ [[package]] name = "sp-weights" version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e1cef0aad13ed8a8522a6e86ace16fb97ab220c16d2357e628352b528582693" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "parity-scale-codec", "scale-info", @@ -12448,8 +12281,7 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "staging-kusama-runtime" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf9f3aacda7b7b476b59f2dca23140b4362f5c46f038fd83c2def6ab431c5a38" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "binary-merkle-tree", "bitvec", @@ -12556,8 +12388,7 @@ dependencies = [ [[package]] name = "staging-parachain-info" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a5bab12d15197074042e4f63034a58a1fad1abca3c779b9623696e163f549b5" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "cumulus-primitives-core", "frame-support", @@ -12570,9 +12401,8 @@ dependencies = [ [[package]] name = "staging-xcm" -version = "3.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b199be791bd630ec9edc78b3896826d802f59202739a73cca5d0cd4d95b6088" +version = "3.0.0" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "bounded-collections", "derivative", @@ -12588,9 +12418,8 @@ dependencies = [ [[package]] name = "staging-xcm-builder" -version = "3.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "855a422587cd951cae29249a6011c18c55486e6f4ae44f1dad1e971413eac880" +version = "3.0.0" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-support", "frame-system", @@ -12612,8 +12441,7 @@ dependencies = [ [[package]] name = "staging-xcm-executor" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a50ece4a1d0651af4ccb78170e8008a44cd119ee4fdf5190d997c78e24e46a03" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "environmental", "frame-benchmarking", @@ -12708,7 +12536,7 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -12732,9 +12560,9 @@ dependencies = [ [[package]] name = "substrate-bip39" -version = "0.4.4" +version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49eee6965196b32f882dd2ee85a92b1dbead41b04e53907f269de3b0dc04733c" +checksum = "e620c7098893ba667438b47169c00aacdd9e7c10e042250ce2b60b087ec97328" dependencies = [ "hmac 0.11.0", "pbkdf2 0.8.0", @@ -12746,14 +12574,12 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "8.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78127cdb5849eed7399ff9c730faea57c2a4e148e3b46e565abe98248432feb9" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" [[package]] name = "substrate-frame-rpc-system" version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5978d5bc95506e7770fe7de97610db13ee72dd1e242894d4843587dc5954102" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-system-rpc-runtime-api", "futures", @@ -12772,8 +12598,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e99fe4e955b8d7c25bd3a88a6907933867d11ef6194ef935e865a9e87c320ff" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "hyper", "log", @@ -12785,8 +12610,7 @@ dependencies = [ [[package]] name = "substrate-rpc-client" version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "624257055386482adba21684a4af2cebdbaf0a8dd0e1b7cd9eec05b564afa5db" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "jsonrpsee", @@ -12799,8 +12623,7 @@ dependencies = [ [[package]] name = "substrate-state-trie-migration-rpc" version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7022de77deb109177d7897b57fa8148ee821a04d0aa9f685210974278c883b01" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -12817,8 +12640,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "13.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a23975404eca6d81818f3f3d4ecde9635dae3e616f366dbc1a0d510c86f02a2" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "ansi_term", "build-helper", @@ -12867,9 +12689,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.38" +version = "2.0.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e96b79aaa137db8f61e26363a0c9b47d8b4ec75da28b7d1d614c2303e232408b" +checksum = "23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a" dependencies = [ "proc-macro2", "quote", @@ -12923,14 +12745,14 @@ checksum = "14c39fd04924ca3a864207c66fc2cd7d22d7c016007f9ce846cbb9326331930a" [[package]] name = "tempfile" -version = "3.8.0" +version = "3.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb94d2f3cc536af71caac6b6fcebf65860b347e7ce0cc9ebe8f70d3e521054ef" +checksum = "7ef1adac450ad7f4b3c28589471ade84f25f731a7a0fe30d71dfa9f60fd808e5" dependencies = [ "cfg-if", "fastrand 2.0.1", - "redox_syscall 0.3.5", - "rustix 0.38.20", + "redox_syscall 0.4.1", + "rustix 0.38.21", "windows-sys 0.48.0", ] @@ -12986,7 +12808,7 @@ checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -13157,7 +12979,7 @@ checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -13244,7 +13066,7 @@ version = "0.19.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" dependencies = [ - "indexmap 2.0.2", + "indexmap 2.1.0", "serde", "serde_spanned", "toml_datetime", @@ -13312,7 +13134,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -13338,8 +13160,7 @@ dependencies = [ [[package]] name = "tracing-gum" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "388d505e3d23a34f23f4093937252f9a3a874184083680292a3c80f16c2937a7" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "coarsetime", "polkadot-node-jaeger", @@ -13351,14 +13172,13 @@ dependencies = [ [[package]] name = "tracing-gum-proc-macro" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0f4ac73c340c95608556d9a52545c227be6b262ab3f3039a4dc005aad449bff" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "expander 2.0.0", "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -13482,8 +13302,7 @@ checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" [[package]] name = "try-runtime-cli" version = "0.34.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e30562bc5a4beccd52cc4091607830fa0b77c1ce09d55b47f232c8b3d03e23fa" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "async-trait", "clap", @@ -13970,9 +13789,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.87" +version = "0.2.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342" +checksum = "7daec296f25a1bae309c0cd5c29c4b260e510e6d813c286b19eaadf409d40fce" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -13980,24 +13799,24 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.87" +version = "0.2.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd" +checksum = "e397f4664c0e4e428e8313a469aaa58310d302159845980fd23b0f22a847f217" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.37" +version = "0.4.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c02dbc21516f9f1f04f187958890d7e6026df8d16540b7ad9492bc34a67cea03" +checksum = "9afec9963e3d0994cac82455b2b3502b81a7f40f9a0d32181f7528d9f4b43e02" dependencies = [ "cfg-if", "js-sys", @@ -14007,9 +13826,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.87" +version = "0.2.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d" +checksum = "5961017b3b08ad5f3fe39f1e79877f8ee7c23c5e5fd5eb80de95abc41f1f16b2" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -14017,22 +13836,22 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.87" +version = "0.2.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" +checksum = "c5353b8dab669f5e10f5bd76df26a9360c748f054f862ff5f3f8aae0c7fb3907" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.87" +version = "0.2.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1" +checksum = "0d046c5d029ba91a1ed14da14dca44b68bf2f124cfbaf741c54151fdb3e0750b" [[package]] name = "wasm-instrument" @@ -14197,7 +14016,7 @@ dependencies = [ "directories-next", "file-per-thread-logger", "log", - "rustix 0.36.16", + "rustix 0.36.17", "serde", "sha2 0.10.8", "toml 0.5.11", @@ -14293,7 +14112,7 @@ checksum = "6e0554b84c15a27d76281d06838aed94e13a77d7bf604bbbaf548aa20eb93846" dependencies = [ "object 0.30.4", "once_cell", - "rustix 0.36.16", + "rustix 0.36.17", ] [[package]] @@ -14324,7 +14143,7 @@ dependencies = [ "memoffset 0.8.0", "paste", "rand 0.8.5", - "rustix 0.36.16", + "rustix 0.36.17", "wasmtime-asm-macros", "wasmtime-environ", "wasmtime-jit-debug", @@ -14345,9 +14164,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.64" +version = "0.3.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b85cbef8c220a6abc02aefd892dfc0fc23afb1c6a426316ec33253a3877249b" +checksum = "5db499c5f66323272151db0e666cd34f78617522fb0c1604d31a27c50c206a85" dependencies = [ "js-sys", "wasm-bindgen", @@ -14382,15 +14201,6 @@ dependencies = [ "webpki 0.22.4", ] -[[package]] -name = "webpki-roots" -version = "0.23.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b03058f88386e5ff5310d9111d53f48b17d732b401aeb83a8d5190f2ac459338" -dependencies = [ - "rustls-webpki 0.100.3", -] - [[package]] name = "webpki-roots" version = "0.25.2" @@ -14608,8 +14418,7 @@ dependencies = [ [[package]] name = "westend-runtime" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "268a959ee1b83395e89fb9a10cbb10d604a073ae97a199988bfc90f8761b2928" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "binary-merkle-tree", "bitvec", @@ -14709,8 +14518,7 @@ dependencies = [ [[package]] name = "westend-runtime-constants" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "281a188361cdcd28ade41bfca74d1b52f28bb6eb8f51bfd15ca3be721396ab75" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-support", "polkadot-primitives", @@ -14730,7 +14538,7 @@ dependencies = [ "either", "home", "once_cell", - "rustix 0.38.20", + "rustix 0.38.21", ] [[package]] @@ -14933,9 +14741,9 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "winnow" -version = "0.5.17" +version = "0.5.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3b801d0e0a6726477cc207f60162da452f3a95adb368399bef20a946e06f65c" +checksum = "829846f3e3db426d4cee4510841b71a8e58aa2a76b1132579487ae430ccd9c7b" dependencies = [ "memchr", ] @@ -15022,20 +14830,18 @@ dependencies = [ [[package]] name = "xcm-procedural" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d69991e802386307acc13e9d67004da522d083fe338111fe79c4317878445e4" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "Inflector", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "xcm-simulator" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4814e2bb869bda3a340975f3d0298e3d7d9e7c0bfd812cad856b2a13e06f901" +source = "git+https://github.com/virto-network/polkadot-sdk?branch=virto-crates-io-v1.2.0#4c053d65bfc66fdce8ec8907453f21fa2cb851d2" dependencies = [ "frame-support", "parity-scale-codec", @@ -15075,22 +14881,22 @@ dependencies = [ [[package]] name = "zerocopy" -version = "0.7.15" +version = "0.7.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81ba595b9f2772fbee2312de30eeb80ec773b4cb2f1e8098db024afadda6c06f" +checksum = "8cd369a67c0edfef15010f980c3cbe45d7f651deac2cd67ce097cd801de16557" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.7.15" +version = "0.7.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "772666c41fb6dceaf520b564b962d738a8e1a83b41bd48945f50837aed78bb1d" +checksum = "c2f140bda219a26ccc0cdb03dba58af72590c53b22642577d88a927bc5c87d6b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -15110,7 +14916,7 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 51f9c05e..430d86f8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,141 +50,143 @@ jsonrpsee = { version = "0.16.3" } pallet-asset-registry = { default-features = false, path = "pallets/asset-registry" } pallet-burner = { default-features = false, path = "pallets/burner" } pallet-lockdown-mode = { default-features = false, path = "pallets/lockdown-mode" } +pallet-payments = { default-features = false, path = "pallets/payments" } + # Virto common virto-common = { default-features = false, path = "runtime/common" } # Substrate std -try-runtime-cli = { version = "0.34.0" } -frame-benchmarking-cli = { version = "28.0.0" } -frame-rpc-system = { package = "substrate-frame-rpc-system", default-features = false, version = "24.0.0" } -pallet-transaction-payment-rpc = { version = "26.0.0" } -sc-basic-authorship = { version = "0.30.0" } -sc-chain-spec = { version = "23.0.0" } -sc-consensus = { version = "0.29.0" } -sc-cli = { version = "0.32.0" } -sc-client-api = { version = "24.0.0" } -sc-executor = { version = "0.28.0" } -sc-service = { version = "0.31.0" } -sc-telemetry = { version = "11.0.0" } -sc-transaction-pool = { version = "24.0.0" } -sc-network = { version = "0.30.0" } -sc-network-sync = { version = "0.29.0" } -sc-rpc = { version = "25.0.0" } -sc-tracing = { version = "24.0.0" } -sc-sysinfo = { version = "23.0.0" } -sp-blockchain = { version = "24.0.0" } -sp-consensus = { version = "0.28.0" } -sp-keyring = { version = "27.0.0" } -substrate-prometheus-endpoint = { version = "0.15.0" } -substrate-state-trie-migration-rpc = { version = "23.0.0" } +try-runtime-cli = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +frame-benchmarking-cli = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +frame-rpc-system = { package = "substrate-frame-rpc-system", git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-transaction-payment-rpc = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sc-basic-authorship = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sc-chain-spec = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sc-consensus = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sc-cli = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sc-client-api = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sc-executor = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sc-service = {git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sc-telemetry = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sc-transaction-pool = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sc-network = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sc-network-sync = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sc-rpc = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sc-tracing = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sc-sysinfo = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sp-blockchain = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sp-consensus = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sp-keyring = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +substrate-prometheus-endpoint = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +substrate-state-trie-migration-rpc = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } # Substrate non-std -frame-benchmarking = { default-features = false, version = "24.0.0" } -sp-io = { default-features = false, version = "26.0.0" } -sp-core = { default-features = false, version = "24.0.0" } -sp-session = { default-features = false, version = "23.0.0" } -sp-timestamp = { default-features = false, version = "22.0.0" } -sp-block-builder = { default-features = false, version = "22.0.0" } -sp-keystore = { default-features = false, version = "0.30.0" } -sp-offchain = { default-features = false, version = "22.0.0" } -sp-api = { default-features = false, version = "22.0.0" } -sp-consensus-aura = { default-features = false, version = "0.28.0" } -sp-transaction-pool = { default-features = false, version = "22.0.0" } -sc-transaction-pool-api = { default-features = false, version = "24.0.0" } +frame-benchmarking = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sp-io = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sp-core = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sp-session = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sp-timestamp = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sp-block-builder = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sp-keystore = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sp-offchain = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sp-api = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sp-consensus-aura = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sp-transaction-pool = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sc-transaction-pool-api = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } # Substrate Runtime -sp-runtime = { default-features = false, version = "27.0.0" } -sp-inherents = { default-features = false, version = "22.0.0" } -sp-arithmetic = { default-features = false, version = "19.0.0" } -sp-std = { default-features = false, version = "11.0.0" } -sp-version = { default-features = false, version = "25.0.0" } -sp-weights = { default-features = false, version = "23.0.0" } +sp-runtime = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sp-inherents = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sp-arithmetic = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sp-std = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sp-version = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +sp-weights = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } # Build Dependencies -substrate-build-script-utils = { version = "8.0.0" } -substrate-wasm-builder = { version = "13.0.0" } +substrate-build-script-utils = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +substrate-wasm-builder = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } ## Substrate FRAME Dependencies -frame-try-runtime = { default-features = false, version = "0.30.0" } -frame-executive = { default-features = false, version = "24.0.0" } -frame-support = { default-features = false, version = "24.0.0" } -frame-system = { default-features = false, version = "24.0.0" } -frame-system-benchmarking = { default-features = false, version = "24.0.0" } -frame-system-rpc-runtime-api = { default-features = false, version = "22.0.0" } +frame-try-runtime = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +frame-executive = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +frame-support = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +frame-system = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +frame-system-benchmarking = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +frame-system-rpc-runtime-api = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } ## Substrate Pallet Dependencies -pallet-assets = { default-features = false, version = "25.0.0" } -pallet-asset-tx-payment = { default-features = false, version = "24.0.0" } -pallet-aura = { default-features = false, version = "23.0.0" } -pallet-authorship = { default-features = false, version = "24.0.0" } -pallet-balances = { default-features = false, version = "24.0.0" } -pallet-collective = { default-features = false, version = "24.0.0" } -pallet-contracts = { default-features = false, version = "23.0.0" } -pallet-contracts-primitives = { default-features = false, version = "27.0.0" } -pallet-democracy = { default-features = false, version = "24.0.0" } -pallet-identity = { default-features = false, version = "24.0.0" } -pallet-multisig = { default-features = false, version = "24.0.0" } -pallet-proxy = { default-features = false, version = "24.0.0" } -pallet-preimage = { default-features = false, version = "24.0.0" } -pallet-insecure-randomness-collective-flip = { default-features = false, version = "12.0.0" } -pallet-session = { default-features = false, version = "24.0.0" } -pallet-scheduler = { default-features = false, version = "25.0.0" } -pallet-sudo = { default-features = false, version = "24.0.0" } -pallet-timestamp = { default-features = false, version = "23.0.0" } -pallet-transaction-payment = { default-features = false, version = "24.0.0" } -pallet-transaction-payment-rpc-runtime-api = { default-features = false, version = "24.0.0" } -pallet-uniques = { default-features = false, version = "24.0.0" } -pallet-utility = { default-features = false, version = "24.0.0" } -pallet-treasury = { default-features = false, version = "23.0.0" } +pallet-assets = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-asset-tx-payment = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-aura = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-authorship = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-balances = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-collective = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-contracts = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-contracts-primitives = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-democracy = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-identity = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-multisig = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-proxy = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-preimage = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-insecure-randomness-collective-flip = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-session = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-scheduler = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-sudo = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-remark = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-timestamp = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-transaction-payment = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-transaction-payment-rpc-runtime-api = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-uniques = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-utility = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-treasury = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } # Cumulus client dependencies -cumulus-client-cli = { version = "0.3.0" } -cumulus-client-collator = { version = "0.3.0" } -cumulus-client-consensus-aura = { version = "0.3.0" } -cumulus-client-consensus-relay-chain = { version = "0.3.0" } -cumulus-client-consensus-common = { version = "0.3.0" } -cumulus-client-consensus-proposer = { version = "0.3.0" } -cumulus-client-service = { version = "0.3.0" } -cumulus-client-network = { version = "0.3.0" } -cumulus-primitives-parachain-inherent = { version = "0.3.0" } -cumulus-relay-chain-interface = { version = "0.3.0" } +cumulus-client-cli = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +cumulus-client-collator = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +cumulus-client-consensus-aura = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +cumulus-client-consensus-relay-chain = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +cumulus-client-consensus-common = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +cumulus-client-consensus-proposer = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +cumulus-client-service = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +cumulus-client-network = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +cumulus-primitives-parachain-inherent = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +cumulus-relay-chain-interface = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } # Cumulus runtime dependencies -assets-common = { default-features = false, version = "0.3.0" } -cumulus-pallet-aura-ext = { default-features = false, version = "0.3.0" } -cumulus-pallet-dmp-queue = { default-features = false, version = "0.3.0" } -cumulus-pallet-parachain-system = { default-features = false, version = "0.3.0" } -cumulus-pallet-xcm = { default-features = false, version = "0.3.0" } -cumulus-pallet-xcmp-queue = { default-features = false, version = "0.3.0" } -cumulus-ping = { default-features = false, version = "0.3.0" } -cumulus-primitives-core = { default-features = false, version = "0.3.0" } -cumulus-primitives-timestamp = { default-features = false, version = "0.3.0" } -cumulus-primitives-utility = { default-features = false, version = "0.3.0" } -pallet-collator-selection = { default-features = false, version = "5.0.0" } -parachains-common = { default-features = false, version = "3.0.0" } -parachain-info = { package = "staging-parachain-info", default-features = false, version = "0.3.0" } -cumulus-pallet-session-benchmarking = { default-features = false, version = "5.0.0" } +assets-common = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +cumulus-pallet-aura-ext = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +cumulus-pallet-dmp-queue = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +cumulus-pallet-parachain-system = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +cumulus-pallet-xcm = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +cumulus-pallet-xcmp-queue = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +cumulus-ping = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +cumulus-primitives-core = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +cumulus-primitives-timestamp = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +cumulus-primitives-utility = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-collator-selection = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +parachains-common = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +parachain-info = { package = "staging-parachain-info", default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +cumulus-pallet-session-benchmarking = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } # Polkadot -polkadot-cli = { features = ["rococo-native"], version = "3.0.0" } -polkadot-primitives = { version = "3.0.0" } -polkadot-service = { version = "3.0.0" } -polkadot-runtime-parachains = { default-features = false, version = "3.0.0" } +polkadot-cli = { features = ["rococo-native"], git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +polkadot-primitives = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +polkadot-service = { git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +polkadot-runtime-parachains = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } # Polkadot Dependencies -kusama-runtime-constants = { default-features = false, version = "3.0.0" } -pallet-xcm = { default-features = false, version = "3.0.0" } -polkadot-core-primitives = { default-features = false, version = "3.0.0" } -polkadot-parachain-primitives = { default-features = false, version = "2.0.0" } -polkadot-runtime-common = { default-features = false, version = "3.0.0" } -xcm = { package = "staging-xcm", default-features = false, version = "3.0.1" } -xcm-builder = { package = "staging-xcm-builder", default-features = false, version = "3.0.1" } -xcm-executor = { package = "staging-xcm-executor", default-features = false, version = "3.0.0" } -xcm-primitives = { path = "primitives/xcm", default-features = false } -xcm-simulator = { default-features = false, version = "3.0.0" } -pallet-xcm-benchmarks = { default-features = false, version = "3.0.0" } +kusama-runtime-constants = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-xcm = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +polkadot-core-primitives = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +polkadot-parachain-primitives = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +polkadot-runtime-common = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +xcm = { package = "staging-xcm", default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +xcm-builder = { package = "staging-xcm-builder", default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +xcm-executor = { package = "staging-xcm-executor", default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +xcm-simulator = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } +pallet-xcm-benchmarks = { default-features = false, git = "https://github.com/virto-network/polkadot-sdk", branch = "virto-crates-io-v1.2.0" } # Dev dependencies assert_cmd = "2.0" @@ -192,4 +194,3 @@ nix = "0.26" tempfile = "3.7" tokio = { version = "1.32.0", features = ["macros", "time", "parking_lot"] } wait-timeout = "0.2" -pallet-remark = { default-features = false, version = "24.0.0" } diff --git a/pallets/asset-registry/src/mock.rs b/pallets/asset-registry/src/mock.rs index 83812bf0..6fca4e23 100644 --- a/pallets/asset-registry/src/mock.rs +++ b/pallets/asset-registry/src/mock.rs @@ -106,6 +106,8 @@ impl pallet_assets::Config for Test { type WeightInfo = (); type Extra = (); type RemoveItemsLimit = ConstU32<5>; + type RuntimeHoldReason = RuntimeHoldReason; + type MaxHolds = ConstU32<50>; #[cfg(feature = "runtime-benchmarks")] type BenchmarkHelper = (); type CallbackHandle = (); diff --git a/pallets/lockdown-mode/Cargo.toml b/pallets/lockdown-mode/Cargo.toml index 676cfe40..bcf75afd 100644 --- a/pallets/lockdown-mode/Cargo.toml +++ b/pallets/lockdown-mode/Cargo.toml @@ -8,11 +8,14 @@ repository = "https://github.com/paritytech/trappist" [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] + [dependencies] parity-scale-codec = { workspace = true, features = [ "derive" ] } scale-info = { workspace = true } sp-runtime = { workspace = true } sp-std = { workspace = true } +sp-core = { workspace = true } +sp-io = { workspace = true } frame-benchmarking = { workspace = true } frame-support = { workspace = true } frame-system = { workspace = true } @@ -24,8 +27,6 @@ log = { workspace = true } xcm = { workspace = true } [dev-dependencies] -sp-core = { workspace = true } -sp-io = { workspace = true } sp-runtime = { workspace = true } pallet-remark = { workspace = true } sp-keystore = { workspace = true } diff --git a/pallets/lockdown-mode/src/tests.rs b/pallets/lockdown-mode/src/tests.rs index 6cd7c221..066b52b1 100644 --- a/pallets/lockdown-mode/src/tests.rs +++ b/pallets/lockdown-mode/src/tests.rs @@ -64,7 +64,7 @@ fn call_filtered_in_lockdown_mode() { fn call_not_filtered_in_lockdown_mode() { new_test_ext(DEACTIVATED).execute_with(|| { assert_ok!(LockdownMode::activate_lockdown_mode(RuntimeOrigin::root())); - let balance_call = RuntimeCall::Balances(BalancesCall::transfer { dest: 1, value: 2 }); + let balance_call = RuntimeCall::Balances(BalancesCall::transfer_keep_alive { dest: 1, value: 2 }); let allowed: bool = LockdownMode::contains(&balance_call); assert!(allowed); }); @@ -75,7 +75,7 @@ fn call_not_filtered_in_normal_mode() { new_test_ext(DEACTIVATED).execute_with(|| { let lockdown_mode = LockdownModeStatus::::get(); assert_eq!(lockdown_mode, DEACTIVATED); - let balance_call = RuntimeCall::Balances(BalancesCall::transfer { dest: 1, value: 2 }); + let balance_call = RuntimeCall::Balances(BalancesCall::transfer_keep_alive { dest: 1, value: 2 }); let result: bool = LockdownMode::contains(&balance_call); assert!(result); }); diff --git a/pallets/payments/Cargo.toml b/pallets/payments/Cargo.toml index 17fd2305..cf4a05c9 100644 --- a/pallets/payments/Cargo.toml +++ b/pallets/payments/Cargo.toml @@ -11,35 +11,30 @@ edition = "2021" targets = ["x86_64-unknown-linux-gnu"] [dependencies] -codec = { package = "parity-scale-codec", version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.2.0", default-features = false, features = ["derive"] } -log = "0.4.0" - -# Substrate -frame-benchmarking = { git = "https://github.com/virto-network/substrate", default-features = false, optional = true, branch = "nicof-adding-hold-traits-asset-pallet" } -frame-support = { git = "https://github.com/virto-network/substrate", default-features = false, branch = "nicof-adding-hold-traits-asset-pallet" } -frame-system = { git = "https://github.com/virto-network/substrate", default-features = false, branch = "nicof-adding-hold-traits-asset-pallet" } -sp-runtime = { git = "https://github.com/virto-network/substrate", default-features = false, branch = "nicof-adding-hold-traits-asset-pallet" } -sp-std = { git = "https://github.com/virto-network/substrate", default-features = false, branch = "nicof-adding-hold-traits-asset-pallet" } - +parity-scale-codec = { workspace = true, features = [ "derive" ] } +scale-info = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } +sp-core = { workspace = true } +sp-io = { workspace = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +frame-benchmarking = { workspace = true, optional = true } [dev-dependencies] -serde = { version = "1.0.132" } -pallet-balances = { git = "https://github.com/virto-network/substrate", default-features = false, branch = "nicof-adding-hold-traits-asset-pallet" } -pallet-sudo = { git = "https://github.com/virto-network/substrate", default-features = false, branch = "nicof-adding-hold-traits-asset-pallet" } -pallet-assets = { git = "https://github.com/virto-network/substrate", default-features = false, branch = "nicof-adding-hold-traits-asset-pallet" } -sp-keystore = { git = "https://github.com/virto-network/substrate", branch = "nicof-adding-hold-traits-asset-pallet" } - -# Substrate -sp-core = { git = "https://github.com/virto-network/substrate", default-features = false, branch = "nicof-adding-hold-traits-asset-pallet" } -sp-io = { git = "https://github.com/virto-network/substrate", default-features = false, branch = "nicof-adding-hold-traits-asset-pallet" } -sp-runtime = { git = "https://github.com/virto-network/substrate", default-features = false, branch = "nicof-adding-hold-traits-asset-pallet" } +serde = { workspace = true } +pallet-balances = { workspace = true } +pallet-sudo = { workspace = true } +pallet-assets = { workspace = true } +sp-keystore = { workspace = true } +pallet-preimage = { workspace = true } +pallet-scheduler= { workspace = true } [features] default = ["std"] runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks"] std = [ - "codec/std", + "parity-scale-codec/std", "scale-info/std", "frame-benchmarking/std", "frame-support/std", @@ -48,6 +43,9 @@ std = [ "pallet-balances/std", "pallet-sudo/std", "pallet-assets/std", - "sp-std/std" + "pallet-preimage/std", + "pallet-scheduler/std", + "sp-std/std", + "sp-io/std", ] try-runtime = [ "frame-support/try-runtime" ] diff --git a/pallets/payments/src/lib.rs b/pallets/payments/src/lib.rs index 1b9a1454..028f020e 100644 --- a/pallets/payments/src/lib.rs +++ b/pallets/payments/src/lib.rs @@ -12,26 +12,31 @@ mod mock; #[cfg(test)] mod tests; -pub use codec::{Decode, Encode, MaxEncodedLen}; +pub use parity_scale_codec::{Decode, Encode, MaxEncodedLen}; +use sp_io::hashing::blake2_256; use frame_support::{ + dispatch::{GetDispatchInfo, PostDispatchInfo}, ensure, fail, traits::{ fungibles::{ hold::Mutate as FunHoldMutate, Balanced as FunBalanced, Inspect as FunInspect, Mutate as FunMutate, }, + schedule::{v3::Named as ScheduleNamed, DispatchTime}, tokens::{ fungibles::Inspect as FunsInspect, Fortitude::Polite, Precision::Exact, Preservation::{Expendable, Preserve}, }, + Bounded, CallerTrait, QueryPreimage, StorePreimage, }, }; +use sp_std::vec::Vec; pub mod weights; use sp_runtime::{ - traits::{One, StaticLookup, Zero}, + traits::{CheckedAdd, Dispatchable, One, StaticLookup, Zero}, DispatchError, DispatchResult, Percent, Saturating, }; pub use weights::*; @@ -41,6 +46,7 @@ pub use types::*; #[frame_support::pallet] pub mod pallet { + use super::*; use frame_support::{dispatch::DispatchResultWithPostInfo, pallet_prelude::*, PalletId}; use frame_system::pallet_prelude::*; @@ -50,6 +56,17 @@ pub mod pallet { pub trait Config: frame_system::Config { type RuntimeEvent: From> + IsType<::RuntimeEvent>; + /// The caller origin, overarching type of all pallets origins. + type PalletsOrigin: From> + + CallerTrait + + MaxEncodedLen; + + /// The aggregated call type. + type RuntimeCall: Parameter + + Dispatchable + + GetDispatchInfo + + From>; + /// Currency type that this works on. type Assets: FunInspect + FunMutate @@ -60,7 +77,7 @@ pub mod pallet { /// Just the `Currency::Balance` type; we have this item to allow us to /// constrain it to `From`. type AssetsBalance: sp_runtime::traits::AtLeast32BitUnsigned - + codec::FullCodec + + parity_scale_codec::FullCodec + Copy + MaybeSerializeDeserialize + sp_std::fmt::Debug @@ -71,7 +88,7 @@ pub mod pallet { type FeeHandler: FeeHandler; - type DisputeResolver: EnsureOrigin; + type DisputeResolver: EnsureOrigin; type PaymentId: Member + Parameter @@ -83,15 +100,20 @@ pub mod pallet { + One + Zero; + type Scheduler: ScheduleNamed, CallOf, Self::PalletsOrigin, Hasher = Self::Hashing>; + + /// The preimage provider used to look up call hashes to get the call. + type Preimages: QueryPreimage + StorePreimage; + + /// The overarching hold reason. + type RuntimeHoldReason: From; + #[pallet::constant] type PalletId: Get; #[pallet::constant] type IncentivePercentage: Get; - /// The overarching hold reason. - type RuntimeHoldReason: From; - #[pallet::constant] type MaxRemarkLength: Get; @@ -100,7 +122,11 @@ pub mod pallet { #[pallet::constant] type MaxDiscounts: Get; - //type WeightInfo: WeightInfo; + + /// Buffer period - number of blocks to wait before user can claim + /// canceled payment + #[pallet::constant] + type CancelBufferBlockLength: Get>; } #[pallet::pallet] @@ -162,6 +188,11 @@ pub mod pallet { beneficiary: T::AccountId, expiry: BlockNumberFor, }, + /// the payment was refunded + PaymentRefunded { + sender: T::AccountId, + beneficiary: T::AccountId, + }, /// the refund request from creator was disputed by recipient PaymentRefundDisputed { sender: T::AccountId, @@ -233,16 +264,11 @@ pub mod pallet { let sender = ensure_signed(origin)?; let beneficiary = T::Lookup::lookup(beneficiary)?; - let last_id = LastId::::get().unwrap_or(Zero::zero()); - - let payment_id: T::PaymentId = last_id.saturating_add(One::one()); - // create PaymentDetail and add to storage let payment_detail = Self::create_payment( &sender, &beneficiary, asset.clone(), - payment_id, amount, PaymentState::Created, T::IncentivePercentage::get(), @@ -279,7 +305,7 @@ pub mod pallet { Payment::::get((&sender, &beneficiary, &payment_id)).map_err(|_| Error::::InvalidPayment)?; ensure!(payment.state == PaymentState::Created, Error::::InvalidAction); - Self::settle_payment(&sender, &beneficiary, &payment_id)?; + Self::settle_payment(&sender, &beneficiary, &payment_id, None)?; Self::deposit_event(Event::PaymentReleased { sender, beneficiary }); Ok(().into()) @@ -308,11 +334,219 @@ pub mod pallet { sender: sender.clone(), beneficiary: beneficiary.clone(), }); - Payment::::remove((&sender, &beneficiary, &payment_id)); + } + PaymentState::RefundRequested { cancel_block: _ } => { + Self::cancel_payment(&sender, &beneficiary, payment)?; + Self::deposit_event(Event::PaymentRefunded { + sender: sender.clone(), + beneficiary: beneficiary.clone(), + }); } _ => fail!(Error::::InvalidAction), } + Payment::::remove((&sender, &beneficiary, &payment_id)); + + Ok(().into()) + } + + /// Allow the creator of a payment to initiate a refund that will return + /// the funds after a configured amount of time that the reveiver has to + /// react and opose the request + #[pallet::call_index(3)] + #[pallet::weight(Weight::from_parts(10_000, 0) + T::DbWeight::get().writes(1))] + pub fn request_refund( + origin: OriginFor, + beneficiary: AccountIdLookupOf, + payment_id: T::PaymentId, + ) -> DispatchResultWithPostInfo { + let sender = ensure_signed(origin.clone())?; + let beneficiary = T::Lookup::lookup(beneficiary)?; + + let expiry = Payment::::try_mutate( + (&sender, &beneficiary, payment_id), + |maybe_payment| -> Result<_, DispatchError> { + // ensure the payment exists + let payment = maybe_payment.as_mut().map_err(|_| Error::::InvalidPayment)?; + // refunds only possible for payments in created state + ensure!(payment.state == PaymentState::Created, Error::::InvalidAction); + + // set the payment to requested refund + let current_block = frame_system::Pallet::::block_number(); + let cancel_block = current_block + .checked_add(&T::CancelBufferBlockLength::get()) + .ok_or(Error::::MathError)?; + + let sender_unlookup = T::Lookup::unlookup(sender.clone()); + + let cancel_call = ::RuntimeCall::from(pallet::Call::::cancel { + sender: sender_unlookup, + payment_id, + }); + + T::Scheduler::schedule_named( + ("payment", payment_id).using_encoded(blake2_256), + DispatchTime::At(cancel_block), + None, + 63, + frame_system::RawOrigin::Signed(beneficiary.clone()).into(), + T::Preimages::bound(cancel_call)?, + )?; + + payment.state = PaymentState::RefundRequested { cancel_block }; + + Ok(cancel_block) + }, + )?; + + Self::deposit_event(Event::PaymentCreatorRequestedRefund { + sender, + beneficiary, + expiry, + }); + + Ok(().into()) + } + + /// Allow payment beneficiary to dispute the refund request from the + /// payment creator This does not cancel the request, instead sends the + /// payment to a NeedsReview state The assigned resolver account can + /// then change the state of the payment after review. + #[pallet::call_index(4)] + #[pallet::weight(Weight::from_parts(10_000, 0) + T::DbWeight::get().writes(1))] + pub fn dispute_refund( + origin: OriginFor, + sender: AccountIdLookupOf, + payment_id: T::PaymentId, + ) -> DispatchResultWithPostInfo { + use PaymentState::*; + let beneficiary = ensure_signed(origin)?; + let sender = T::Lookup::lookup(sender)?; + + Payment::::try_mutate( + (&sender, &beneficiary, payment_id), + |maybe_payment| -> Result<_, DispatchError> { + // ensure the payment exists + let payment = maybe_payment.as_mut().map_err(|_| Error::::InvalidPayment)?; + + // ensure the payment is in Requested Refund state + let RefundRequested {cancel_block} = payment.state else { + fail!(Error::::InvalidAction); + }; + ensure!( + cancel_block > frame_system::Pallet::::block_number(), + Error::::InvalidAction + ); + + // Hold beneficiary incentive amount to balance the incentives at the time to + // resolve the dispute + let reason = &HoldReason::TransferPayment.into(); + T::Assets::hold(payment.asset.clone(), reason, &beneficiary, payment.incentive_amount)?; + + payment.state = PaymentState::NeedsReview; + + T::Scheduler::cancel_named(("payment", payment_id).using_encoded(blake2_256)) + }, + )?; + + Self::deposit_event(Event::PaymentRefundDisputed { sender, beneficiary }); + Ok(().into()) + } + + #[pallet::call_index(5)] + #[pallet::weight(Weight::from_parts(10_000, 0) + T::DbWeight::get().writes(1))] + pub fn resolve_dispute( + origin: OriginFor, + sender: AccountIdLookupOf, + beneficiary: AccountIdLookupOf, + payment_id: T::PaymentId, + dispute_result: DisputeResult, + ) -> DispatchResultWithPostInfo { + let dispute_resolver = T::DisputeResolver::ensure_origin(origin)?; + let sender = T::Lookup::lookup(sender)?; + let beneficiary = T::Lookup::lookup(beneficiary)?; + + let payment = + Payment::::get((&sender, &beneficiary, &payment_id)).map_err(|_| Error::::InvalidPayment)?; + ensure!(payment.state == PaymentState::NeedsReview, Error::::InvalidAction); + + let dispute = Some((dispute_result, dispute_resolver)); + Self::settle_payment(&sender, &beneficiary, &payment_id, dispute)?; + + Self::deposit_event(Event::PaymentRefundDisputed { sender, beneficiary }); + Ok(().into()) + } + + // Creates a new payment with the given details. This can be called by the + // recipient of the payment to create a payment and then completed by the sender + // using the `accept_and_pay` extrinsic. The payment will be in + // PaymentRequested State and can only be modified by the `accept_and_pay` + // extrinsic. + #[pallet::call_index(6)] + #[pallet::weight(Weight::from_parts(10_000, 0) + T::DbWeight::get().writes(1))] + pub fn request_payment( + origin: OriginFor, + sender: AccountIdLookupOf, + asset: AssetIdOf, + #[pallet::compact] amount: BalanceOf, + ) -> DispatchResultWithPostInfo { + let beneficiary = ensure_signed(origin)?; + let sender = T::Lookup::lookup(sender)?; + // create PaymentDetail and add to storage + Self::create_payment( + &sender, + &beneficiary, + asset, + amount, + PaymentState::PaymentRequested, + T::IncentivePercentage::get(), + None, + )?; + + Self::deposit_event(Event::PaymentRequestCreated { sender, beneficiary }); + + Ok(().into()) + } + + #[pallet::call_index(7)] + #[pallet::weight(Weight::from_parts(10_000, 0) + T::DbWeight::get().writes(1))] + pub fn accept_and_pay( + origin: OriginFor, + beneficiary: AccountIdLookupOf, + payment_id: T::PaymentId, + ) -> DispatchResultWithPostInfo { + let sender = ensure_signed(origin)?; + let beneficiary = T::Lookup::lookup(beneficiary)?; + + Payment::::try_mutate( + (&sender, &beneficiary, payment_id), + |maybe_payment| -> Result<_, DispatchError> { + let payment = maybe_payment.as_mut().map_err(|_| Error::::InvalidPayment)?; + const IS_DISPUTE: bool = false; + + // Release sender fees recipients + let (fee_sender_recipients, _total_sender_fee_amount_mandatory, _total_sender_fee_amount_optional) = + payment.fees.summary_for(Role::Sender, IS_DISPUTE)?; + + let ( + fee_beneficiary_recipients, + _total_beneficiary_fee_amount_mandatory, + _total_beneficiary_fee_amount_optional, + ) = payment.fees.summary_for(Role::Beneficiary, IS_DISPUTE)?; + + Self::try_transfer_fees(&sender, payment, fee_sender_recipients, IS_DISPUTE)?; + + T::Assets::transfer(payment.asset.clone(), &sender, &beneficiary, payment.amount, Expendable) + .map_err(|_| Error::::TransferFailed)?; + + Self::try_transfer_fees(&beneficiary, payment, fee_beneficiary_recipients, IS_DISPUTE)?; + + payment.state = PaymentState::Finished; + Ok(()) + }, + )?; + + Self::deposit_event(Event::PaymentRequestCreated { sender, beneficiary }); Ok(().into()) } } @@ -327,15 +561,15 @@ impl Pallet { sender: &T::AccountId, beneficiary: &T::AccountId, asset: AssetIdOf, - payment_id: T::PaymentId, amount: BalanceOf, payment_state: PaymentState>, incentive_percentage: Percent, remark: Option<&[u8]>, - ) -> Result, sp_runtime::DispatchError> { + ) -> Result, DispatchError> { + let payment_id = Self::next_payment_id()?; Payment::::try_mutate( (sender, beneficiary, payment_id), - |maybe_payment| -> Result, sp_runtime::DispatchError> { + |maybe_payment| -> Result<_, DispatchError> { if let Ok(payment) = maybe_payment { ensure!( payment.state == PaymentState::PaymentRequested, @@ -352,7 +586,7 @@ impl Pallet { amount, incentive_amount, state: payment_state, - fees_details, + fees: fees_details, }; *maybe_payment = Ok(new_payment.clone()); @@ -367,9 +601,12 @@ impl Pallet { beneficiary: &T::AccountId, payment: PaymentDetail, ) -> DispatchResult { - let (_fee_recipients, total_fee_from_sender) = &payment.fees_details.get_fees_details_for_sender()?; + let (_fee_recipients, total_fee_from_sender_mandatory, total_fee_from_sender_optional) = + payment.fees.summary_for(Role::Sender, false)?; - let total_hold_amount = total_fee_from_sender.saturating_add(payment.incentive_amount); + let total_hold_amount = total_fee_from_sender_mandatory + .saturating_add(payment.incentive_amount) + .saturating_add(total_fee_from_sender_optional); let reason = &HoldReason::TransferPayment.into(); T::Assets::hold(payment.asset.clone(), reason, sender, total_hold_amount)?; @@ -388,9 +625,14 @@ impl Pallet { } fn cancel_payment(sender: &T::AccountId, beneficiary: &T::AccountId, payment: PaymentDetail) -> DispatchResult { - let (_fee_recipients, total_fee_from_sender) = &payment.fees_details.get_fees_details_for_sender()?; - let total_hold_amount = total_fee_from_sender.saturating_add(payment.incentive_amount); + let (_fee_recipients, total_fee_from_sender_mandatory, total_fee_from_sender_optional) = + payment.fees.summary_for(Role::Sender, false)?; + + let total_hold_amount = total_fee_from_sender_mandatory + .saturating_add(payment.incentive_amount) + .saturating_add(total_fee_from_sender_optional); let reason = &HoldReason::TransferPayment.into(); + T::Assets::release(payment.asset.clone(), reason, sender, total_hold_amount, Exact) .map_err(|_| Error::::ReleaseFailed)?; @@ -403,53 +645,114 @@ impl Pallet { Ok(()) } - fn settle_payment(sender: &T::AccountId, beneficiary: &T::AccountId, payment_id: &T::PaymentId) -> DispatchResult { + fn settle_payment( + sender: &T::AccountId, + beneficiary: &T::AccountId, + payment_id: &T::PaymentId, + maybe_dispute: Option<(DisputeResult, T::AccountId)>, + ) -> DispatchResult { Payment::::try_mutate((sender, beneficiary, payment_id), |maybe_payment| -> DispatchResult { let payment = maybe_payment.as_mut().map_err(|_| Error::::InvalidPayment)?; let reason = &HoldReason::TransferPayment.into(); + let is_dispute = maybe_dispute.is_some(); // Release sender fees recipients - let (fee_sender_recipients, total_sender_fee_amount) = - payment.fees_details.get_fees_details_for_sender()?; - let total_sender_release = total_sender_fee_amount.saturating_add(payment.incentive_amount); + let (fee_sender_recipients, total_sender_fee_amount_mandatory, total_sender_fee_amount_optional) = + payment.fees.summary_for(Role::Sender, is_dispute)?; + + let total_sender_release = total_sender_fee_amount_mandatory + .saturating_add(payment.incentive_amount) + .saturating_add(total_sender_fee_amount_optional); T::Assets::release(payment.asset.clone(), reason, sender, total_sender_release, Exact) .map_err(|_| Error::::ReleaseFailed)?; - for (sender_fee_recipient_account, fee_amount) in fee_sender_recipients.iter() { - T::Assets::transfer( - payment.asset.clone(), - sender, - sender_fee_recipient_account, - *fee_amount, - Preserve, - ) - .map_err(|_| Error::::TransferFailed)?; + let ( + fee_beneficiary_recipients, + _total_beneficiary_fee_amount_mandatory, + _total_beneficiary_fee_amount_optional, + ) = payment.fees.summary_for(Role::Beneficiary, is_dispute)?; + + let mut beneficiary_release_amount = payment.amount; + + if is_dispute { + beneficiary_release_amount = beneficiary_release_amount.saturating_add(payment.incentive_amount); } - // Release the whole payment - T::Assets::release(payment.asset.clone(), reason, beneficiary, payment.amount, Exact) - .map_err(|_| Error::::ReleaseFailed)?; + T::Assets::release( + payment.asset.clone(), + reason, + beneficiary, + beneficiary_release_amount, + Exact, + ) + .map_err(|_| Error::::ReleaseFailed)?; - let (fee_beneficiary_recipients, _) = payment.fees_details.get_fees_details_for_beneficiary()?; - - for (beneficiary_recipient_account, fee_amount) in fee_beneficiary_recipients.iter() { - T::Assets::transfer( - payment.asset.clone(), - beneficiary, - beneficiary_recipient_account, - *fee_amount, - Preserve, - ) - .map_err(|_| Error::::TransferFailed)?; + Self::try_transfer_fees(sender, payment, fee_sender_recipients, is_dispute)?; + Self::try_transfer_fees(beneficiary, payment, fee_beneficiary_recipients, is_dispute)?; + + if let Some((dispute_result, resolver)) = maybe_dispute { + match dispute_result.in_favor_of { + Role::Sender => { + let amount_to_sender = dispute_result.percent_beneficiary.mul_floor(payment.amount); + + // Beneficiary looses the dispute and has to transfer the incentive_amount to + // the dispute_resolver. + T::Assets::transfer( + payment.asset.clone(), + beneficiary, + &resolver, + payment.incentive_amount, + Expendable, + ) + .map_err(|_| Error::::TransferFailed)?; + + T::Assets::transfer(payment.asset.clone(), beneficiary, sender, amount_to_sender, Expendable) + .map_err(|_| Error::::TransferFailed)?; + } + Role::Beneficiary => { + let amount_to_beneficiary = dispute_result.percent_beneficiary.mul_floor(payment.amount); + let amount_to_sender = payment.amount.saturating_sub(amount_to_beneficiary); + + T::Assets::transfer( + payment.asset.clone(), + sender, + &resolver, + payment.incentive_amount, + Expendable, + ) + .map_err(|_| Error::::TransferFailed)?; + + T::Assets::transfer(payment.asset.clone(), beneficiary, sender, amount_to_sender, Expendable) + .map_err(|_| Error::::TransferFailed)?; + } + } } payment.state = PaymentState::Finished; - *maybe_payment = Ok(payment.clone()); - Ok(()) - })?; + }) + } + + fn try_transfer_fees( + account: &T::AccountId, + payment: &PaymentDetail, + fee_recipients: Vec>, + is_dispute: bool, + ) -> Result<(), sp_runtime::DispatchError> { + for (recipient_account, fee_amount, mandatory) in fee_recipients.iter() { + if !is_dispute || *mandatory { + T::Assets::transfer(payment.asset.clone(), account, recipient_account, *fee_amount, Preserve) + .map_err(|_| Error::::TransferFailed)?; + } + } Ok(()) } + + fn next_payment_id() -> Result { + let last_id = LastId::::get().unwrap_or(Zero::zero()); + let payment_id: T::PaymentId = last_id.saturating_add(One::one()); + Ok(payment_id) + } } diff --git a/pallets/payments/src/mock.rs b/pallets/payments/src/mock.rs index 5cf489be..f2ccbdd8 100644 --- a/pallets/payments/src/mock.rs +++ b/pallets/payments/src/mock.rs @@ -2,10 +2,12 @@ pub use crate as pallet_payments; pub use crate::types::*; use frame_support::{ parameter_types, - traits::{AsEnsureOriginWithArg, ConstU32, ConstU64}, + traits::{AsEnsureOriginWithArg, ConstU32, ConstU64, EqualPrivilegeOnly, OnFinalize, OnInitialize}, + weights::Weight, PalletId, }; +use frame_system::EnsureRoot; use sp_core::H256; use sp_keystore::{testing::MemoryKeystore, KeystoreExt}; use sp_runtime::{ @@ -18,24 +20,23 @@ type AccountId = u64; pub const SENDER_ACCOUNT: AccountId = 10; pub const PAYMENT_BENEFICIARY: AccountId = 11; -pub const ASSET_ADMIN_ACCOUNT: AccountId = 1; +pub const ASSET_ADMIN_ACCOUNT: AccountId = 3; +pub const ROOT_ACCOUNT: AccountId = 1; + pub const ASSET_ID: u32 = 1; pub const INCENTIVE_PERCENTAGE: u8 = 10; -pub const MARKETPLACE_FEE_PERCENTAGE: u8 = 10; +pub const MARKETPLACE_FEE_PERCENTAGE: u8 = 15; pub const INITIAL_BALANCE: u64 = 100; pub const PAYMENT_ID: u32 = 1; -/* for future uses -pub const PAYMENT_RECIPENT_FEE_CHARGED: AccountId = 21; -pub const CANCEL_BLOCK_BUFFER: u64 = 600; -*/ -/// Destination account for the fee payment pub const FEE_SENDER_ACCOUNT: AccountId = 30; pub const FEE_BENEFICIARY_ACCOUNT: AccountId = 31; pub const FEE_SYSTEM_ACCOUNT: AccountId = 32; -pub const SYSTEM_FEE: u64 = 2; -pub const EXPECTED_SYSTEM_TOTAL_FEE: u64 = 4; +pub const SYSTEM_FEE: u64 = 3; +pub const EXPECTED_SYSTEM_TOTAL_FEE: u64 = 6; +pub const EXPECTED_SYSTEM_SENDER_FEE: u64 = 3; // 15% of 20 + pub const FEE_SENDER_AMOUNT: Balance = 2; pub const FEE_BENEFICIARY_AMOUNT: Balance = 3; pub const PAYMENT_AMOUNT: u64 = 20; @@ -50,12 +51,16 @@ frame_support::construct_runtime!( Assets: pallet_assets, Sudo: pallet_sudo, Payments: pallet_payments, + Scheduler: pallet_scheduler, + Preimage: pallet_preimage, } ); parameter_types! { pub const BlockHashCount: u64 = 250; pub const SS58Prefix: u8 = 42; + pub MaxWeight: Weight = Weight::from_parts(2_000_000_000_000, u64::MAX); + } pub type Balance = u64; @@ -133,8 +138,31 @@ impl pallet_sudo::Config for Test { type WeightInfo = (); } +impl pallet_preimage::Config for Test { + type RuntimeEvent = RuntimeEvent; + type WeightInfo = (); + type Currency = Balances; + type ManagerOrigin = EnsureRoot; + type Consideration = (); +} + +impl pallet_scheduler::Config for Test { + type RuntimeEvent = RuntimeEvent; + type RuntimeOrigin = RuntimeOrigin; + type PalletsOrigin = OriginCaller; + type RuntimeCall = RuntimeCall; + type MaximumWeight = MaxWeight; + type ScheduleOrigin = EnsureRoot; + type MaxScheduledPerBlock = ConstU32<100>; + type WeightInfo = (); + type OriginPrivilegeCmp = EqualPrivilegeOnly; + type Preimages = Preimage; +} + pub struct MockFeeHandler; +const MANDATORY_FEE: bool = true; + impl crate::types::FeeHandler for MockFeeHandler { fn apply_fees( _asset: &AssetIdOf, @@ -144,23 +172,35 @@ impl crate::types::FeeHandler for MockFeeHandler { _remark: Option<&[u8]>, ) -> Fees { let sender_fees = vec![ - SubTypes::Fixed(FEE_SENDER_ACCOUNT, FEE_SENDER_AMOUNT), - SubTypes::Percentage(FEE_SYSTEM_ACCOUNT, Percent::from_percent(MARKETPLACE_FEE_PERCENTAGE)), + SubTypes::Fixed(FEE_SENDER_ACCOUNT, FEE_SENDER_AMOUNT, !MANDATORY_FEE), + SubTypes::Percentage( + FEE_SYSTEM_ACCOUNT, + Percent::from_percent(MARKETPLACE_FEE_PERCENTAGE), + MANDATORY_FEE, + ), ]; let beneficiary_fees = vec![ - SubTypes::Fixed(FEE_BENEFICIARY_ACCOUNT, FEE_BENEFICIARY_AMOUNT), - SubTypes::Percentage(FEE_SYSTEM_ACCOUNT, Percent::from_percent(MARKETPLACE_FEE_PERCENTAGE)), + SubTypes::Fixed(FEE_BENEFICIARY_ACCOUNT, FEE_BENEFICIARY_AMOUNT, !MANDATORY_FEE), + SubTypes::Percentage( + FEE_SYSTEM_ACCOUNT, + Percent::from_percent(MARKETPLACE_FEE_PERCENTAGE), + MANDATORY_FEE, + ), ]; let compute_fee = |fees: &Vec>| -> FeeDetails { let details = fees .iter() .map(|fee| match fee { - SubTypes::Fixed(account, amount_fixed) => (*account, *amount_fixed), - SubTypes::Percentage(account, percent) => (*account, percent.mul_floor(*amount)), + SubTypes::Fixed(account, amount_fixed, charged_disputes) => { + (*account, *amount_fixed, *charged_disputes) + } + SubTypes::Percentage(account, percent, charged_disputes) => { + (*account, percent.mul_floor(*amount), *charged_disputes) + } }) - .collect::>(); + .collect::>(); // This is a test, so i'm just unwrapping let bounded_details: FeeDetails = BoundedVec::try_from(details).unwrap(); bounded_details @@ -187,11 +227,16 @@ impl pallet_payments::Config for Test { type FeeHandler = MockFeeHandler; type IncentivePercentage = IncentivePercentage; type MaxRemarkLength = MaxRemarkLength; - type DisputeResolver = frame_system::EnsureRoot; + type DisputeResolver = frame_system::EnsureRootWithSuccess>; type PalletId = PaymentPalletId; type RuntimeHoldReason = RuntimeHoldReason; type MaxDiscounts = ConstU32<50>; type MaxFees = ConstU32<50>; + type RuntimeCall = RuntimeCall; + type Scheduler = Scheduler; + type Preimages = (); + type CancelBufferBlockLength = ConstU64<10>; + type PalletsOrigin = OriginCaller; } // Build genesis storage according to the mock runtime. @@ -227,8 +272,22 @@ pub(crate) fn new_test_ext() -> sp_io::TestExternalities { .assimilate_storage(&mut t) .unwrap(); + pallet_sudo::GenesisConfig:: { + key: Some(ROOT_ACCOUNT), + } + .assimilate_storage(&mut t) + .unwrap(); + let mut ext = sp_io::TestExternalities::new(t); ext.register_extension(KeystoreExt::new(MemoryKeystore::new())); ext.execute_with(|| System::set_block_number(1)); ext } + +pub fn run_to_block(n: u64) { + while System::block_number() < n { + Scheduler::on_finalize(System::block_number()); + System::set_block_number(System::block_number() + 1); + Scheduler::on_initialize(System::block_number()); + } +} diff --git a/pallets/payments/src/tests.rs b/pallets/payments/src/tests.rs index 750d9b61..dc5046cb 100644 --- a/pallets/payments/src/tests.rs +++ b/pallets/payments/src/tests.rs @@ -2,211 +2,534 @@ use super::*; use crate::{ mock::*, types::{PaymentDetail, PaymentState}, - HoldReason, Payment as PaymentStore, + Payment as PaymentStore, }; use frame_support::{assert_ok, traits::fungibles}; use sp_runtime::BoundedVec; +fn build_payment() -> Fees { + let remark: BoundedVec = BoundedVec::truncate_from(b"remark".to_vec()); + let reason: &::RuntimeHoldReason = &HoldReason::TransferPayment.into(); + + assert_ok!(Payments::pay( + RuntimeOrigin::signed(SENDER_ACCOUNT), + PAYMENT_BENEFICIARY, + ASSET_ID, + PAYMENT_AMOUNT, + Some(remark.clone()), + )); + + System::assert_has_event(RuntimeEvent::Payments(pallet_payments::Event::PaymentCreated { + sender: SENDER_ACCOUNT, + beneficiary: PAYMENT_BENEFICIARY, + asset: ASSET_ID, + amount: PAYMENT_AMOUNT, + remark: Some(remark.clone()), + })); + + let fees_details: Fees = ::FeeHandler::apply_fees( + &ASSET_ID, + &SENDER_ACCOUNT, + &PAYMENT_BENEFICIARY, + &PAYMENT_AMOUNT, + Some(remark.as_slice()), + ); + + assert_eq!( + PaymentStore::::get((SENDER_ACCOUNT, PAYMENT_BENEFICIARY, PAYMENT_ID)).unwrap(), + PaymentDetail { + asset: ASSET_ID, + amount: PAYMENT_AMOUNT, + incentive_amount: INCENTIVE_AMOUNT, + state: PaymentState::Created, + fees: fees_details.clone(), + } + ); + + assert_eq!( + >::balance_on_hold(ASSET_ID, reason, &PAYMENT_BENEFICIARY), + PAYMENT_AMOUNT + ); + assert_eq!( + >::balance_on_hold(ASSET_ID, reason, &SENDER_ACCOUNT), + INCENTIVE_AMOUNT + FEE_SENDER_AMOUNT + EXPECTED_SYSTEM_SENDER_FEE + ); + + fees_details +} + +fn check_balance_cancellation() { + assert_eq!( + >::balance(ASSET_ID, &FEE_SYSTEM_ACCOUNT), + 0 + ); + + assert_eq!( + >::balance(ASSET_ID, &FEE_SENDER_ACCOUNT), + 0 + ); + assert_eq!( + >::balance(ASSET_ID, &FEE_BENEFICIARY_ACCOUNT), + 0 + ); + assert_eq!( + >::balance(ASSET_ID, &PAYMENT_BENEFICIARY), + 0 + ); + + assert_eq!( + >::balance(ASSET_ID, &SENDER_ACCOUNT), + 100 + ); +} + /// What we will do: -/// Sender(2) pays 20 tokens to the PAYMENT_BENEFICIARY(21) +/// Sender(2) pays 20 tokens to the PAYMENT_BENEFICIARY(11) /// Sender pays the following fees: /// - 2 tokens to the FEE_SENDER_ACCOUNT(30) -/// - 10% of the payment amount (meaning 2 tokens) to the +/// - 15% of the payment amount (meaning 3 tokens) to the /// FEE_SYSTEM_ACCOUNT(31) -/// (total of 4 tokens) +/// (total of 5 tokens) /// Beneficiary pays the following fees: /// - 3 tokens to the FEE_BENEFICIARY_ACCOUNT(32) -/// - 10% of the payment amount (meaning 2 tokens) to the +/// - 15% of the payment amount (meaning 3 tokens) to the /// FEE_SYSTEM_ACCOUNT(31) -/// (total of 5 tokens) -/// The PAYMENT_BENEFICIARY will receive 15 tokens free of charge -/// The sender will need have a balance at least of 26 tokens to make the +/// (total of 6 tokens) +/// The PAYMENT_BENEFICIARY will receive 14 tokens free of charge +/// The sender will need have a balance at least of 27 tokens to make the /// purchase: -/// - 20 tokens for the payment + 4 tokens for the fee + 2 tokens for the +/// - 20 tokens for the payment + 5 tokens for the fee + 2 tokens for the /// incentive #[test] fn test_pay_and_release_works() { new_test_ext().execute_with(|| { - let remark: BoundedVec = BoundedVec::truncate_from(b"remark".to_vec()); - let reason: &::RuntimeHoldReason = &HoldReason::TransferPayment.into(); + let fees: Fees = build_payment(); - assert_ok!(Payments::pay( + assert_ok!(Payments::release( RuntimeOrigin::signed(SENDER_ACCOUNT), PAYMENT_BENEFICIARY, - ASSET_ID, - PAYMENT_AMOUNT, - Some(remark.clone()), + PAYMENT_ID )); - System::assert_has_event(RuntimeEvent::Payments(pallet_payments::Event::PaymentCreated { + System::assert_has_event(RuntimeEvent::Payments(pallet_payments::Event::PaymentReleased { sender: SENDER_ACCOUNT, beneficiary: PAYMENT_BENEFICIARY, - asset: ASSET_ID, - amount: PAYMENT_AMOUNT, - remark: Some(remark.clone()), })); - let fees_details: Fees = ::FeeHandler::apply_fees( - &ASSET_ID, - &SENDER_ACCOUNT, - &PAYMENT_BENEFICIARY, - &PAYMENT_AMOUNT, - Some(remark.as_slice()), - ); - assert_eq!( PaymentStore::::get((SENDER_ACCOUNT, PAYMENT_BENEFICIARY, PAYMENT_ID)).unwrap(), PaymentDetail { asset: ASSET_ID, amount: PAYMENT_AMOUNT, incentive_amount: INCENTIVE_AMOUNT, - state: PaymentState::Created, - fees_details: fees_details.clone(), + state: PaymentState::Finished, + fees, } ); assert_eq!( - >::balance_on_hold(ASSET_ID, reason, &PAYMENT_BENEFICIARY), - PAYMENT_AMOUNT + >::balance(ASSET_ID, &FEE_SYSTEM_ACCOUNT), + EXPECTED_SYSTEM_TOTAL_FEE + ); + + assert_eq!( + >::balance(ASSET_ID, &FEE_SENDER_ACCOUNT), + FEE_SENDER_AMOUNT ); assert_eq!( - >::balance_on_hold(ASSET_ID, reason, &SENDER_ACCOUNT), - INCENTIVE_AMOUNT + FEE_SENDER_AMOUNT + INCENTIVE_AMOUNT + >::balance(ASSET_ID, &FEE_BENEFICIARY_ACCOUNT), + FEE_BENEFICIARY_AMOUNT + ); + assert_eq!( + >::balance(ASSET_ID, &PAYMENT_BENEFICIARY), + PAYMENT_AMOUNT - FEE_BENEFICIARY_AMOUNT - SYSTEM_FEE ); - assert_ok!(Payments::release( - RuntimeOrigin::signed(SENDER_ACCOUNT), - PAYMENT_BENEFICIARY, + assert_eq!( + >::balance(ASSET_ID, &SENDER_ACCOUNT), + INITIAL_BALANCE - PAYMENT_AMOUNT - FEE_SENDER_AMOUNT - SYSTEM_FEE + ); + }); +} + +#[test] +fn test_pay_and_cancel_works() { + new_test_ext().execute_with(|| { + build_payment(); + assert_ok!(Payments::cancel( + RuntimeOrigin::signed(PAYMENT_BENEFICIARY), + SENDER_ACCOUNT, PAYMENT_ID )); - System::assert_has_event(RuntimeEvent::Payments(pallet_payments::Event::PaymentReleased { + System::assert_has_event(RuntimeEvent::Payments(pallet_payments::Event::PaymentCancelled { sender: SENDER_ACCOUNT, beneficiary: PAYMENT_BENEFICIARY, })); - assert_eq!( - PaymentStore::::get((SENDER_ACCOUNT, PAYMENT_BENEFICIARY, PAYMENT_ID)).unwrap(), - PaymentDetail { - asset: ASSET_ID, - amount: PAYMENT_AMOUNT, - incentive_amount: INCENTIVE_AMOUNT, - state: PaymentState::Finished, - fees_details, - } - ); + // This validates that the payment was removed from the storage. + assert!(PaymentStore::::get((SENDER_ACCOUNT, PAYMENT_BENEFICIARY, PAYMENT_ID)).is_err()); assert_eq!( >::balance(ASSET_ID, &FEE_SYSTEM_ACCOUNT), - EXPECTED_SYSTEM_TOTAL_FEE + 0 ); assert_eq!( >::balance(ASSET_ID, &FEE_SENDER_ACCOUNT), - FEE_SENDER_AMOUNT + 0 ); assert_eq!( >::balance(ASSET_ID, &FEE_BENEFICIARY_ACCOUNT), - FEE_BENEFICIARY_AMOUNT + 0 ); assert_eq!( >::balance(ASSET_ID, &PAYMENT_BENEFICIARY), - PAYMENT_AMOUNT - FEE_BENEFICIARY_AMOUNT - SYSTEM_FEE + 0 ); assert_eq!( >::balance(ASSET_ID, &SENDER_ACCOUNT), - INITIAL_BALANCE - PAYMENT_AMOUNT - FEE_SENDER_AMOUNT - SYSTEM_FEE + 100 ); }); } #[test] -fn test_pay_and_cancel_works() { +fn payment_refunded_request() { new_test_ext().execute_with(|| { - let remark: BoundedVec = BoundedVec::truncate_from(b"remark".to_vec()); - let reason: &::RuntimeHoldReason = &HoldReason::TransferPayment.into(); + let fees: Fees = build_payment(); - assert_ok!(Payments::pay( + assert_ok!(Payments::request_refund( RuntimeOrigin::signed(SENDER_ACCOUNT), PAYMENT_BENEFICIARY, - ASSET_ID, - PAYMENT_AMOUNT, - Some(remark.clone()), + PAYMENT_ID )); - System::assert_has_event(RuntimeEvent::Payments(pallet_payments::Event::PaymentCreated { + assert_eq!( + PaymentStore::::get((SENDER_ACCOUNT, PAYMENT_BENEFICIARY, PAYMENT_ID)).unwrap(), + PaymentDetail { + asset: ASSET_ID, + amount: PAYMENT_AMOUNT, + incentive_amount: INCENTIVE_AMOUNT, + state: PaymentState::RefundRequested { cancel_block: 11 }, + fees, + } + ); + + run_to_block(11); + + System::assert_has_event(RuntimeEvent::Payments(pallet_payments::Event::PaymentRefunded { sender: SENDER_ACCOUNT, beneficiary: PAYMENT_BENEFICIARY, - asset: ASSET_ID, - amount: PAYMENT_AMOUNT, - remark: Some(remark.clone()), })); - let fees_details: Fees = ::FeeHandler::apply_fees( - &ASSET_ID, - &SENDER_ACCOUNT, - &PAYMENT_BENEFICIARY, - &PAYMENT_AMOUNT, - Some(remark.as_slice()), + check_balance_cancellation(); + }) +} + +/// Initial balances before transactions: +/// SENDER(10) = 100 / PAYMENT_BENEFICIARY(11) = 10 +/// +/// Testing scenario: +/// 1) SENDER pays 20 tokens to the PAYMENT_BENEFICIARY +/// 2) Sender requests a refund. +/// 3) The PAYMENT_BENEFICIARY disputes the refund, a total of 2 tokens are +/// locked from the PAYMENT_BENEFICIARY because of the incentive amount. +/// 4) The RESOLVER, rule in favor of PAYMENT_BENEFICIARY to pay 90%. +/// +/// Mandatory Fees: +/// The SENDER should pay the mandatory fee: +/// - 15% of the payment amount (meaning 3 tokens) to the +/// FEE_SYSTEM_ACCOUNT +/// The PAYMENT_BENEFICIARY should pay the mandatory fee: +/// - 15% of the payment amount (meaning 3 tokens) to the +/// FEE_SYSTEM_ACCOUNT +/// +/// Fee not deducted during dispute: +/// SENDER's fee: +/// - 2 tokens to the FEE_SENDER_AMOUNT +/// PAYMENT_BENEFICIARY's fee: +/// - 3 tokens to FEE_BENEFICIARY_AMOUNT +/// +/// 4.1) PAYMENT_BENEFICIARY should receive: +/// + 18 token (90% because of dispute ruling) +/// + 2 token (incentive amount give back because of wining side of dispute) +/// - 3 tokens (deducted mandatory fee) +/// Beneficiary receives: 17 token / total balance: 27 token. +/// 4.2) SENDER should receive: +/// + 2 token (remaining 10% of dispute ruling) +/// + 2 token (fee not deducted ) +/// - 2 token (incentive amount deducted because of wining side of dispute) +/// - 3 tokens (deducted mandatory fee) +/// total: -1 token / total balance: 73 token. +/// +/// Sender's expected Balance after dispute: +/// 100(initial) - 18(payment) - 3(system fee) - 2(incentive for loosing) = +/// 77 Beneficiary's expected Balance after dispute: +/// 10(initial) + 18(payment) - 3(system fee) = 25 + +#[test] +fn payment_disputed_beneficiary_wins() { + new_test_ext().execute_with(|| { + const EXPECTED_BALANCE_SENDER: u64 = 77; + const EXPECTED_BALANCE_BENEFICIARY: u64 = 25; + + let _ = Assets::mint( + RuntimeOrigin::signed(ASSET_ADMIN_ACCOUNT), + ASSET_ID, + PAYMENT_BENEFICIARY, + 10, ); + let fees: Fees = build_payment(); + + assert_ok!(Payments::request_refund( + RuntimeOrigin::signed(SENDER_ACCOUNT), + PAYMENT_BENEFICIARY, + PAYMENT_ID + )); + + assert_ok!(Payments::dispute_refund( + RuntimeOrigin::signed(PAYMENT_BENEFICIARY), + SENDER_ACCOUNT, + PAYMENT_ID + )); + assert_eq!( PaymentStore::::get((SENDER_ACCOUNT, PAYMENT_BENEFICIARY, PAYMENT_ID)).unwrap(), PaymentDetail { asset: ASSET_ID, amount: PAYMENT_AMOUNT, incentive_amount: INCENTIVE_AMOUNT, - state: PaymentState::Created, - fees_details, + state: PaymentState::NeedsReview, + fees, } ); + assert_ok!(Payments::resolve_dispute( + RuntimeOrigin::root(), + SENDER_ACCOUNT, + PAYMENT_BENEFICIARY, + PAYMENT_ID, + DisputeResult { + percent_beneficiary: Percent::from_percent(90), + in_favor_of: Role::Beneficiary + } + )); + assert_eq!( - >::balance_on_hold(ASSET_ID, reason, &PAYMENT_BENEFICIARY), - PAYMENT_AMOUNT + >::balance(ASSET_ID, &SENDER_ACCOUNT), + EXPECTED_BALANCE_SENDER ); + assert_eq!( - >::balance_on_hold(ASSET_ID, reason, &SENDER_ACCOUNT), - INCENTIVE_AMOUNT + FEE_SENDER_AMOUNT + INCENTIVE_AMOUNT + >::balance(ASSET_ID, &PAYMENT_BENEFICIARY), + EXPECTED_BALANCE_BENEFICIARY ); - assert_ok!(Payments::cancel( + assert_eq!( + >::balance(ASSET_ID, &FEE_SENDER_ACCOUNT), + 0 + ); + + assert_eq!( + >::balance(ASSET_ID, &FEE_BENEFICIARY_ACCOUNT), + 0 + ); + + assert_eq!( + >::balance(ASSET_ID, &FEE_SYSTEM_ACCOUNT), + EXPECTED_SYSTEM_TOTAL_FEE + ); + }) +} + +/// Initial balances before transactions: +/// SENDER(10) = 100 / PAYMENT_BENEFICIARY(11) = 10 +/// +/// Testing scenario: +/// 1) SENDER pays 20 tokens to the PAYMENT_BENEFICIARY +/// 2) Sender requests a refund. +/// 3) The PAYMENT_BENEFICIARY disputes the refund, a total of 2 tokens are +/// locked from the PAYMENT_BENEFICIARY because of the incentive amount. +/// 4) The RESOLVER, rule in favor of SENDER to pay 90%. +/// +/// Mandatory Fees: +/// The SENDER should pay the mandatory fee: +/// - 15% of the payment amount (meaning 3 tokens) to the +/// FEE_SYSTEM_ACCOUNT +/// The PAYMENT_BENEFICIARY should pay the mandatory fee: +/// - 15% of the payment amount (meaning 3 tokens) to the +/// FEE_SYSTEM_ACCOUNT +/// +/// Fee not deducted during dispute: +/// SENDER's fee: +/// - 2 tokens to the FEE_SENDER_AMOUNT +/// PAYMENT_BENEFICIARY's fee: +/// - 3 tokens to FEE_BENEFICIARY_AMOUNT +/// +/// 4.1) PAYMENT_BENEFICIARY should receive: +/// + 2 token (10% because of dispute ruling) +/// - 2 token (incentive amount give back because of loosing side of dispute) +/// - 3 tokens (deducted mandatory fee) +/// Beneficiary loose: -3 tokens +/// 4.2) SENDER should receive: +/// + 18 token (remaining 90% of dispute ruling) +/// + 2 token (fee not deducted ) +/// + 2 token (incentive amount returned because of wining side of dispute) +/// - 3 tokens (deducted mandatory fee) +/// total: 19 token / total balance: 81 token. +/// +/// Sender's expected Balance after dispute: +/// 100(initial) - 2 (dispute ruling) - 3(system fee) = 95 +/// Beneficiary's expected Balance after dispute: +/// 10(initial) + 2(dispute ruling) - 3(system fee) - 2(incentive for +/// loosing)= 7 +#[test] +fn payment_disputed_sender_wins() { + new_test_ext().execute_with(|| { + const EXPECTED_BALANCE_SENDER: u64 = 95; + const EXPECTED_BALANCE_BENEFICIARY: u64 = 7; + const EXPECTED_RESOLVER_BALANCE: u64 = 2; + + let _ = Assets::mint( + RuntimeOrigin::signed(ASSET_ADMIN_ACCOUNT), + ASSET_ID, + PAYMENT_BENEFICIARY, + 10, + ); + + let fees: Fees = build_payment(); + + assert_ok!(Payments::request_refund( + RuntimeOrigin::signed(SENDER_ACCOUNT), + PAYMENT_BENEFICIARY, + PAYMENT_ID + )); + + assert_ok!(Payments::dispute_refund( RuntimeOrigin::signed(PAYMENT_BENEFICIARY), SENDER_ACCOUNT, PAYMENT_ID )); - System::assert_has_event(RuntimeEvent::Payments(pallet_payments::Event::PaymentCancelled { + assert_eq!( + PaymentStore::::get((SENDER_ACCOUNT, PAYMENT_BENEFICIARY, PAYMENT_ID)).unwrap(), + PaymentDetail { + asset: ASSET_ID, + amount: PAYMENT_AMOUNT, + incentive_amount: INCENTIVE_AMOUNT, + state: PaymentState::NeedsReview, + fees, + } + ); + + assert_ok!(Payments::resolve_dispute( + RuntimeOrigin::root(), + SENDER_ACCOUNT, + PAYMENT_BENEFICIARY, + PAYMENT_ID, + DisputeResult { + percent_beneficiary: Percent::from_percent(90), + in_favor_of: Role::Sender + } + )); + + assert_eq!( + >::balance(ASSET_ID, &SENDER_ACCOUNT), + EXPECTED_BALANCE_SENDER + ); + + assert_eq!( + >::balance(ASSET_ID, &PAYMENT_BENEFICIARY), + EXPECTED_BALANCE_BENEFICIARY + ); + + assert_eq!( + >::balance(ASSET_ID, &ROOT_ACCOUNT), + EXPECTED_RESOLVER_BALANCE + ); + + assert_eq!( + >::balance(ASSET_ID, &FEE_SENDER_ACCOUNT), + 0 + ); + + assert_eq!( + >::balance(ASSET_ID, &FEE_BENEFICIARY_ACCOUNT), + 0 + ); + + assert_eq!( + >::balance(ASSET_ID, &FEE_SYSTEM_ACCOUNT), + EXPECTED_SYSTEM_TOTAL_FEE + ); + }) +} + +#[test] +fn request_payment() { + new_test_ext().execute_with(|| { + assert_ok!(Payments::request_payment( + RuntimeOrigin::signed(PAYMENT_BENEFICIARY), + SENDER_ACCOUNT, + ASSET_ID, + PAYMENT_AMOUNT + )); + + System::assert_has_event(RuntimeEvent::Payments(pallet_payments::Event::PaymentRequestCreated { sender: SENDER_ACCOUNT, beneficiary: PAYMENT_BENEFICIARY, })); - // This validates that the payment was removed from the storage. - assert!(PaymentStore::::get((SENDER_ACCOUNT, PAYMENT_BENEFICIARY, PAYMENT_ID)).is_err()); + let fees: Fees = ::FeeHandler::apply_fees( + &ASSET_ID, + &SENDER_ACCOUNT, + &PAYMENT_BENEFICIARY, + &PAYMENT_AMOUNT, + None, + ); + + assert_eq!( + PaymentStore::::get((SENDER_ACCOUNT, PAYMENT_BENEFICIARY, PAYMENT_ID)).unwrap(), + PaymentDetail { + asset: ASSET_ID, + amount: PAYMENT_AMOUNT, + incentive_amount: INCENTIVE_AMOUNT, + state: PaymentState::PaymentRequested, + fees, + } + ); + + assert_ok!(Payments::accept_and_pay( + RuntimeOrigin::signed(SENDER_ACCOUNT), + PAYMENT_BENEFICIARY, + PAYMENT_ID + )); assert_eq!( >::balance(ASSET_ID, &FEE_SYSTEM_ACCOUNT), - 0 + EXPECTED_SYSTEM_TOTAL_FEE ); assert_eq!( >::balance(ASSET_ID, &FEE_SENDER_ACCOUNT), - 0 + FEE_SENDER_AMOUNT ); assert_eq!( >::balance(ASSET_ID, &FEE_BENEFICIARY_ACCOUNT), - 0 + FEE_BENEFICIARY_AMOUNT ); assert_eq!( >::balance(ASSET_ID, &PAYMENT_BENEFICIARY), - 0 + PAYMENT_AMOUNT - FEE_BENEFICIARY_AMOUNT - SYSTEM_FEE ); assert_eq!( >::balance(ASSET_ID, &SENDER_ACCOUNT), - 100 + INITIAL_BALANCE - PAYMENT_AMOUNT - FEE_SENDER_AMOUNT - SYSTEM_FEE ); - }); + }) } diff --git a/pallets/payments/src/types.rs b/pallets/payments/src/types.rs index 34098af5..10c406ea 100644 --- a/pallets/payments/src/types.rs +++ b/pallets/payments/src/types.rs @@ -1,7 +1,8 @@ #![allow(unused_qualifications)] use crate::*; -use codec::{Decode, Encode, HasCompact, MaxEncodedLen}; + use frame_system::pallet_prelude::BlockNumberFor; +use parity_scale_codec::{Decode, Encode, MaxEncodedLen}; use scale_info::TypeInfo; use sp_runtime::{traits::Zero, BoundedVec, Percent, Saturating}; use sp_std::{collections::btree_map::BTreeMap, vec::Vec}; @@ -13,8 +14,13 @@ pub type MaxFeesOf = ::MaxFees; pub type BalanceOf = <::Assets as FunsInspect<::AccountId>>::Balance; pub type AccountIdLookupOf = <::Lookup as StaticLookup>::Source; pub type BoundedDataOf = BoundedVec::MaxRemarkLength>; -pub type Fee = (AccountIdOf, BalanceOf); +pub type ChargableOnDisputes = bool; +pub type Fee = (AccountIdOf, BalanceOf, ChargableOnDisputes); +pub type FeesSummaryForRole = (Vec>, BalanceOf, BalanceOf); pub type FeeDetails = BoundedVec, MaxFeesOf>; +pub type CallOf = ::RuntimeCall; +pub type PreimagesOf = ::Preimages; +pub type BoundedCallOf = Bounded, ::Hashing>; /// The PaymentDetail struct stores information about the payment/escrow /// A "payment" in virto network is similar to an escrow, it is used to @@ -35,7 +41,7 @@ pub struct PaymentDetail { /// Requested] pub state: PaymentState>, /// fee charged and recipient account details - pub fees_details: Fees, + pub fees: Fees, } /// The `PaymentState` enum tracks the possible states that a payment can be in. @@ -69,10 +75,25 @@ pub trait FeeHandler { ) -> Fees; } +impl FeeHandler for () { + fn apply_fees( + _asset: &AssetIdOf, + _sender: &::AccountId, + _beneficiary: &::AccountId, + _amount: &BalanceOf, + _remark: Option<&[u8]>, + ) -> Fees { + Fees { + sender_pays: Default::default(), + beneficiary_pays: Default::default(), + } + } +} + #[derive(PartialEq, Eq, Clone, Encode, Decode, Debug, TypeInfo, MaxEncodedLen)] pub enum SubTypes { - Fixed(T::AccountId, BalanceOf), - Percentage(T::AccountId, Percent), + Fixed(T::AccountId, BalanceOf, ChargableOnDisputes), + Percentage(T::AccountId, Percent, ChargableOnDisputes), } #[derive(Clone, Encode, Decode, Eq, PartialEq, Default, MaxEncodedLen, TypeInfo, Debug)] @@ -84,26 +105,42 @@ pub struct Fees { } impl Fees { - pub fn get_fees_details_for_sender(&self) -> Result<(Vec>, BalanceOf), DispatchError> { - Self::get_fees_details_per_role(&self.sender_pays) + pub fn summary_for(&self, role: Role, is_dispute: bool) -> Result, DispatchError> { + let fees = match role { + Role::Sender => &self.sender_pays, + Role::Beneficiary => &self.beneficiary_pays, + }; + Self::get_summary(fees, is_dispute) } - pub fn get_fees_details_for_beneficiary(&self) -> Result<(Vec>, BalanceOf), DispatchError> { - Self::get_fees_details_per_role(&self.beneficiary_pays) - } + fn get_summary(fees: &FeeDetails, is_dispute: bool) -> Result, DispatchError> { + let mut fees_per_account: BTreeMap, Fee> = BTreeMap::new(); + let mut total_to_discount: BalanceOf = Zero::zero(); + let mut total_to_return: BalanceOf = Zero::zero(); - pub fn get_fees_details_per_role(fees: &FeeDetails) -> Result<(Vec>, BalanceOf), DispatchError> { - // Use BTreeMap to aggregate fees per account and track total fees - let mut fees_per_account: BTreeMap, BalanceOf> = BTreeMap::new(); - let mut total_fees: BalanceOf = Zero::zero(); + for (account, fee, charge_dispute) in fees.iter() { + if is_dispute { + if *charge_dispute { + total_to_discount = total_to_discount.saturating_add(*fee); + } else { + total_to_return = total_to_return.saturating_add(*fee); + } + } else { + total_to_discount = total_to_discount.saturating_add(*fee); + } - for (account, fee) in fees.iter() { - let current_fee = fees_per_account.entry(account.clone()).or_insert(Zero::zero()); - *current_fee = current_fee.saturating_add(*fee); - total_fees = total_fees.saturating_add(*fee); + let current_fee = fees_per_account + .entry(account.clone()) + .or_insert_with(|| (account.clone(), Zero::zero(), *charge_dispute)); + let (_, current_balance, _) = current_fee; + *current_balance = current_balance.saturating_add(*fee); } - Ok((fees_per_account.into_iter().collect(), total_fees)) + Ok(( + fees_per_account.into_values().collect(), + total_to_discount, + total_to_return, + )) } } @@ -112,13 +149,19 @@ impl Fees { pub enum Task { // payment `from` to `to` has to be cancelled Cancel, + Dispute, +} + +/// Types of Tasks that can be scheduled in the pallet +#[derive(PartialEq, Eq, Clone, Encode, Decode, Debug, TypeInfo, MaxEncodedLen)] +pub enum Role { + // payment `from` to `to` has to be cancelled + Sender, + Beneficiary, } -/// The details of a scheduled task #[derive(PartialEq, Eq, Clone, Encode, Decode, Debug, TypeInfo, MaxEncodedLen)] -pub struct ScheduledTask { - /// the type of scheduled task - pub task: Task, - /// the 'time' at which the task should be executed - pub when: Time, +pub struct DisputeResult { + pub percent_beneficiary: Percent, + pub in_favor_of: Role, } diff --git a/runtime/kreivo/Cargo.toml b/runtime/kreivo/Cargo.toml index 429b8b0b..0e99c0a0 100644 --- a/runtime/kreivo/Cargo.toml +++ b/runtime/kreivo/Cargo.toml @@ -25,6 +25,7 @@ smallvec = { workspace = true } pallet-asset-registry ={ workspace = true } pallet-lockdown-mode = { workspace = true } pallet-burner = { workspace = true } +pallet-payments = { workspace = true } virto-common = { workspace = true } # Substrate @@ -128,6 +129,7 @@ std = [ "pallet-transaction-payment/std", "pallet-treasury/std", "pallet-utility/std", + "pallet-payments/std", "pallet-xcm/std", "pallet-lockdown-mode/std", "parachain-info/std", diff --git a/runtime/kreivo/src/lib.rs b/runtime/kreivo/src/lib.rs index ccfca9a7..171c4479 100644 --- a/runtime/kreivo/src/lib.rs +++ b/runtime/kreivo/src/lib.rs @@ -527,6 +527,8 @@ impl pallet_assets::Config for Runtime { type CallbackHandle = (); type AssetAccountDeposit = AssetAccountDeposit; type RemoveItemsLimit = frame_support::traits::ConstU32<1000>; + type MaxHolds = frame_support::traits::ConstU32<50>; + type RuntimeHoldReason = RuntimeHoldReason; #[cfg(feature = "runtime-benchmarks")] type BenchmarkHelper = (); } diff --git a/runtime/virto/src/lib.rs b/runtime/virto/src/lib.rs index 7878732d..ea44f0c2 100644 --- a/runtime/virto/src/lib.rs +++ b/runtime/virto/src/lib.rs @@ -526,6 +526,8 @@ impl pallet_assets::Config for Runtime { type CallbackHandle = (); type AssetAccountDeposit = AssetAccountDeposit; type RemoveItemsLimit = frame_support::traits::ConstU32<1000>; + type MaxHolds = frame_support::traits::ConstU32<50>; + type RuntimeHoldReason = RuntimeHoldReason; #[cfg(feature = "runtime-benchmarks")] type BenchmarkHelper = (); }