diff --git a/parachain/Cargo.lock b/parachain/Cargo.lock index 4f2df9d002..b0a3563f07 100644 --- a/parachain/Cargo.lock +++ b/parachain/Cargo.lock @@ -142,9 +142,9 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.15" +version = "0.6.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64e15c1ab1f89faffbf04a634d5e1962e9074f2741eef6d97f3c4e322426d526" +checksum = "23a1e53f0f5d86382dafe1cf314783b2044280f406e7e1506368220ad11b1338" dependencies = [ "anstyle", "anstyle-parse", @@ -157,36 +157,36 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.8" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1" +checksum = "8365de52b16c035ff4fcafe0092ba9390540e3e352870ac09933bebcaa2c8c56" [[package]] name = "anstyle-parse" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb47de1e80c2b463c735db5b217a0ddc39d612e7ac9e2e96a5aed1f57616c1cb" +checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" -version = "1.1.1" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d36fc52c7f6c869915e99412912f22093507da8d9e942ceaf66fe4b7c14422a" +checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] name = "anstyle-wincon" -version = "3.0.4" +version = "3.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bf74e1b6e971609db8ca7a9ce79fd5768ab6ae46441c572e46cf596f59e57f8" +checksum = "2109dbce0e72be3ec00bed26e6a7479ca384ad226efdd66db8fa2e3a38c83125" dependencies = [ "anstyle", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -631,7 +631,7 @@ dependencies = [ "concurrent-queue", "event-listener-strategy", "futures-core", - "pin-project-lite 0.2.14", + "pin-project-lite 0.2.15", ] [[package]] @@ -715,7 +715,7 @@ checksum = "ff6e472cdea888a4bd64f342f09b3f50e1886d32afe8df3d663c01140b811b18" dependencies = [ "event-listener 5.3.1", "event-listener-strategy", - "pin-project-lite 0.2.14", + "pin-project-lite 0.2.15", ] [[package]] @@ -791,7 +791,7 @@ dependencies = [ "futures-sink", "futures-util", "memchr", - "pin-project-lite 0.2.14", + "pin-project-lite 0.2.15", ] [[package]] @@ -1377,7 +1377,7 @@ dependencies = [ "multibase", "multihash 0.17.0", "serde", - "unsigned-varint", + "unsigned-varint 0.7.2", ] [[package]] @@ -1390,7 +1390,7 @@ dependencies = [ "multibase", "multihash 0.18.1", "serde", - "unsigned-varint", + "unsigned-varint 0.7.2", ] [[package]] @@ -1497,9 +1497,9 @@ dependencies = [ [[package]] name = "colorchoice" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0" +checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" [[package]] name = "combine" @@ -3323,7 +3323,7 @@ checksum = "d93877bcde0eb80ca09131a08d23f0a5c18a620b01db137dba666d18cd9b30c2" dependencies = [ "concurrent-queue", "parking", - "pin-project-lite 0.2.14", + "pin-project-lite 0.2.15", ] [[package]] @@ -3334,7 +3334,7 @@ checksum = "6032be9bd27023a771701cc49f9f053c751055f71efb2e0ae5c15809093675ba" dependencies = [ "concurrent-queue", "parking", - "pin-project-lite 0.2.14", + "pin-project-lite 0.2.15", ] [[package]] @@ -3344,7 +3344,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0f214dc438f977e6d4e3500aaa277f5ad94ca83fbbd9b1a15713ce2344ccc5a1" dependencies = [ "event-listener 5.3.1", - "pin-project-lite 0.2.14", + "pin-project-lite 0.2.15", ] [[package]] @@ -4611,7 +4611,7 @@ dependencies = [ "futures-io", "memchr", "parking", - "pin-project-lite 0.2.14", + "pin-project-lite 0.2.15", "waker-fn", ] @@ -4625,7 +4625,7 @@ dependencies = [ "futures-core", "futures-io", "parking", - "pin-project-lite 0.2.14", + "pin-project-lite 0.2.15", ] [[package]] @@ -4682,7 +4682,7 @@ dependencies = [ "futures-sink", "futures-task", "memchr", - "pin-project-lite 0.2.14", + "pin-project-lite 0.2.15", "pin-utils", "slab", ] @@ -5068,7 +5068,7 @@ checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" dependencies = [ "bytes", "http", - "pin-project-lite 0.2.14", + "pin-project-lite 0.2.15", ] [[package]] @@ -5111,7 +5111,7 @@ dependencies = [ "httparse", "httpdate", "itoa", - "pin-project-lite 0.2.14", + "pin-project-lite 0.2.15", "socket2 0.5.7", "tokio", "tower-service", @@ -5898,7 +5898,7 @@ dependencies = [ "rw-stream-sink", "smallvec", "thiserror", - "unsigned-varint", + "unsigned-varint 0.7.2", "void", ] @@ -5980,7 +5980,7 @@ dependencies = [ "smallvec", "thiserror", "uint 0.9.5", - "unsigned-varint", + "unsigned-varint 0.7.2", "void", ] @@ -6519,6 +6519,7 @@ dependencies = [ "pallet-group", "pallet-identity", "pallet-identity-management", + "pallet-indices", "pallet-membership", "pallet-message-queue", "pallet-multisig", @@ -6538,6 +6539,7 @@ dependencies = [ "pallet-vc-management", "pallet-vesting", "pallet-xcm 7.0.0", + "parachains-common", "parity-scale-codec", "polkadot-parachain-primitives 6.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", "polkadot-primitives 7.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", @@ -6623,7 +6625,7 @@ dependencies = [ "tracing", "trust-dns-resolver 0.23.2", "uint 0.9.5", - "unsigned-varint", + "unsigned-varint 0.7.2", "url", "webpki", "x25519-dalek 2.0.1", @@ -6678,7 +6680,7 @@ dependencies = [ "tracing", "trust-dns-resolver 0.23.2", "uint 0.9.5", - "unsigned-varint", + "unsigned-varint 0.7.2", "url", "webpki", "x25519-dalek 2.0.1", @@ -7322,7 +7324,7 @@ dependencies = [ "percent-encoding", "serde", "static_assertions", - "unsigned-varint", + "unsigned-varint 0.7.2", "url", ] @@ -7351,7 +7353,7 @@ dependencies = [ "multihash-derive 0.8.1", "sha2 0.10.8", "sha3", - "unsigned-varint", + "unsigned-varint 0.7.2", ] [[package]] @@ -7368,17 +7370,17 @@ dependencies = [ "multihash-derive 0.8.1", "sha2 0.10.8", "sha3", - "unsigned-varint", + "unsigned-varint 0.7.2", ] [[package]] name = "multihash" -version = "0.19.1" +version = "0.19.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "076d548d76a0e2a0d4ab471d0b1c36c577786dfc4471242035d97a12a735c492" +checksum = "cc41f430805af9d1cf4adae4ed2149c759b877b01d909a1f40256188d09345d2" dependencies = [ "core2", - "unsigned-varint", + "unsigned-varint 0.8.0", ] [[package]] @@ -7392,7 +7394,7 @@ dependencies = [ "blake3", "core2", "digest 0.10.7", - "multihash-derive 0.9.0", + "multihash-derive 0.9.1", "ripemd", "serde", "sha1", @@ -7417,23 +7419,22 @@ dependencies = [ [[package]] name = "multihash-derive" -version = "0.9.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "890e72cb7396cb99ed98c1246a97b243cc16394470d94e0bc8b0c2c11d84290e" +checksum = "1f1b7edab35d920890b88643a765fc9bd295cf0201f4154dda231bef9b8404eb" dependencies = [ "core2", - "multihash 0.19.1", + "multihash 0.19.2", "multihash-derive-impl", ] [[package]] name = "multihash-derive-impl" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3958713ce794e12f7c6326fac9aa274c68d74c4881dd37b3e2662b8a2046bb19" +checksum = "e3dc7141bd06405929948754f0628d247f5ca1865be745099205e5086da957cb" dependencies = [ - "proc-macro-crate 2.0.0", - "proc-macro-error", + "proc-macro-crate 3.2.0", "proc-macro2", "quote", "syn 2.0.85", @@ -7463,7 +7464,7 @@ dependencies = [ "log", "pin-project", "smallvec", - "unsigned-varint", + "unsigned-varint 0.7.2", ] [[package]] @@ -8120,6 +8121,24 @@ dependencies = [ "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", ] +[[package]] +name = "pallet-asset-tx-payment" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0#8c8edacf8942298c3807a2e192860da9e7e4996a" +dependencies = [ + "frame-benchmarking 28.0.0", + "frame-support 28.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", + "frame-system 28.0.0", + "pallet-transaction-payment 28.0.0", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core 28.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", + "sp-io 30.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", + "sp-runtime 31.0.1 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", +] + [[package]] name = "pallet-assets" version = "29.1.0" @@ -8450,6 +8469,26 @@ dependencies = [ "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", ] +[[package]] +name = "pallet-collator-selection" +version = "9.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0#8c8edacf8942298c3807a2e192860da9e7e4996a" +dependencies = [ + "frame-benchmarking 28.0.0", + "frame-support 28.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", + "frame-system 28.0.0", + "log", + "pallet-authorship", + "pallet-balances 28.0.0", + "pallet-session", + "parity-scale-codec", + "rand 0.8.5", + "scale-info", + "sp-runtime 31.0.1 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", + "sp-staking 26.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", +] + [[package]] name = "pallet-collective" version = "28.0.0" @@ -9758,6 +9797,37 @@ dependencies = [ "staging-xcm-executor 7.0.0", ] +[[package]] +name = "parachains-common" +version = "7.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0#8c8edacf8942298c3807a2e192860da9e7e4996a" +dependencies = [ + "cumulus-primitives-core 0.7.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", + "cumulus-primitives-utility", + "frame-support 28.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", + "frame-system 28.0.0", + "log", + "pallet-asset-tx-payment", + "pallet-assets", + "pallet-authorship", + "pallet-balances 28.0.0", + "pallet-collator-selection", + "pallet-message-queue", + "pallet-xcm 7.0.0", + "parity-scale-codec", + "polkadot-primitives 7.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", + "scale-info", + "sp-consensus-aura 0.32.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", + "sp-core 28.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", + "sp-io 30.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", + "sp-runtime 31.0.1 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", + "staging-parachain-info", + "staging-xcm 7.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", + "staging-xcm-executor 7.0.0", + "substrate-wasm-builder", +] + [[package]] name = "paris" version = "1.5.15" @@ -9961,6 +10031,7 @@ dependencies = [ "pallet-group", "pallet-identity", "pallet-identity-management", + "pallet-indices", "pallet-membership", "pallet-message-queue", "pallet-multisig", @@ -9982,6 +10053,7 @@ dependencies = [ "pallet-vc-management", "pallet-vesting", "pallet-xcm 7.0.0", + "parachains-common", "parity-scale-codec", "polkadot-parachain-primitives 6.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", "polkadot-primitives 7.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", @@ -10125,18 +10197,18 @@ dependencies = [ [[package]] name = "pin-project" -version = "1.1.6" +version = "1.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf123a161dde1e524adf36f90bc5d8d3462824a9c43553ad07a8183161189ec" +checksum = "be57f64e946e500c8ee36ef6331845d40a93055567ec57e8fae13efd33759b95" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.1.6" +version = "1.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4502d8515ca9f32f1fb543d987f63d95a14934883db45bdb48060b6b69257f8" +checksum = "3c0f5fad0874fc7abcd4d750e76917eaebbecaa2c20bde22e1dbeeba8beb758c" dependencies = [ "proc-macro2", "quote", @@ -10151,9 +10223,9 @@ checksum = "257b64915a082f7811703966789728173279bdebb956b143dbcd23f6f970a777" [[package]] name = "pin-project-lite" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" +checksum = "915a1e146535de9163f3987b8944ed8cf49a18bb0056bcebcdcece385cece4ff" [[package]] name = "pin-utils" @@ -11589,7 +11661,7 @@ dependencies = [ "concurrent-queue", "libc", "log", - "pin-project-lite 0.2.14", + "pin-project-lite 0.2.15", "windows-sys 0.48.0", ] @@ -11602,7 +11674,7 @@ dependencies = [ "cfg-if", "concurrent-queue", "hermit-abi 0.4.0", - "pin-project-lite 0.2.14", + "pin-project-lite 0.2.15", "rustix 0.38.37", "tracing", "windows-sys 0.59.0", @@ -11807,22 +11879,13 @@ dependencies = [ "toml 0.5.11", ] -[[package]] -name = "proc-macro-crate" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e8366a6159044a37876a2b9817124296703c586a5c92e2c53751fa06d8d43e8" -dependencies = [ - "toml_edit 0.20.7", -] - [[package]] name = "proc-macro-crate" version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ecf48c7ca261d60b74ab1a7b20da18bede46776b2e55535cb958eb595c5fa7b" dependencies = [ - "toml_edit 0.22.22", + "toml_edit", ] [[package]] @@ -12103,7 +12166,7 @@ dependencies = [ "bytes", "quick-protobuf", "thiserror", - "unsigned-varint", + "unsigned-varint 0.7.2", ] [[package]] @@ -12124,7 +12187,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2e8b432585672228923edbbf64b8b12c14e1112f62e88737655b4a083dbcd78e" dependencies = [ "bytes", - "pin-project-lite 0.2.14", + "pin-project-lite 0.2.15", "quinn-proto", "quinn-udp", "rustc-hash", @@ -12415,9 +12478,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.11.0" +version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38200e5ee88914975b69f657f0801b6f6dccafd44fd9326302a4aaeecfacb1d8" +checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" dependencies = [ "aho-corasick", "memchr", @@ -12689,6 +12752,7 @@ dependencies = [ "pallet-group", "pallet-identity", "pallet-identity-management", + "pallet-indices", "pallet-membership", "pallet-message-queue", "pallet-multisig", @@ -12710,6 +12774,7 @@ dependencies = [ "pallet-vc-management", "pallet-vesting", "pallet-xcm 7.0.0", + "parachains-common", "parity-scale-codec", "polkadot-parachain-primitives 6.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", "polkadot-primitives 7.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", @@ -12928,6 +12993,7 @@ dependencies = [ "pallet-treasury", "pallet-vesting", "pallet-xcm 7.0.0", + "parachains-common", "parity-scale-codec", "polkadot-parachain-primitives 6.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", "polkadot-primitives 7.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.11.0)", @@ -14180,7 +14246,7 @@ dependencies = [ "thiserror", "tokio", "tokio-stream", - "unsigned-varint", + "unsigned-varint 0.7.2", "void", "wasm-timer", "zeroize", @@ -14231,7 +14297,7 @@ dependencies = [ "thiserror", "tokio", "tokio-stream", - "unsigned-varint", + "unsigned-varint 0.7.2", "void", "wasm-timer", "zeroize", @@ -15191,9 +15257,9 @@ dependencies = [ [[package]] name = "scale-info" -version = "2.11.4" +version = "2.11.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22760a375f81a31817aeaf6f5081e9ccb7ffd7f2da1809a6e3fc82b6656f10d5" +checksum = "1aa7ffc1c0ef49b0452c6e2986abf2b07743320641ffd5fc63d552458e3b779b" dependencies = [ "bitvec", "cfg-if", @@ -15205,14 +15271,14 @@ dependencies = [ [[package]] name = "scale-info-derive" -version = "2.11.4" +version = "2.11.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abc61ebe25a5c410c0e245028fc9934bf8fa4817199ef5a24a68092edfd34614" +checksum = "46385cc24172cf615450267463f937c10072516359b3ff1cb24228a4a08bf951" dependencies = [ "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.85", ] [[package]] @@ -16479,7 +16545,7 @@ dependencies = [ [[package]] name = "sp-crypto-ec-utils" version = "0.10.0" -source = "git+https://github.com/paritytech/polkadot-sdk#fc486e55d5f8c97c652c977f8a2295f6cb9c7231" +source = "git+https://github.com/paritytech/polkadot-sdk#7e99621108b2a98644c73a22eaceb732b1c0f743" dependencies = [ "ark-bls12-377", "ark-bls12-377-ext", @@ -16619,7 +16685,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#fc486e55d5f8c97c652c977f8a2295f6cb9c7231" +source = "git+https://github.com/paritytech/polkadot-sdk#7e99621108b2a98644c73a22eaceb732b1c0f743" dependencies = [ "proc-macro2", "quote", @@ -16649,7 +16715,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.25.0" -source = "git+https://github.com/paritytech/polkadot-sdk#fc486e55d5f8c97c652c977f8a2295f6cb9c7231" +source = "git+https://github.com/paritytech/polkadot-sdk#7e99621108b2a98644c73a22eaceb732b1c0f743" dependencies = [ "environmental", "parity-scale-codec", @@ -17166,7 +17232,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#fc486e55d5f8c97c652c977f8a2295f6cb9c7231" +source = "git+https://github.com/paritytech/polkadot-sdk#7e99621108b2a98644c73a22eaceb732b1c0f743" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -17244,7 +17310,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "17.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#fc486e55d5f8c97c652c977f8a2295f6cb9c7231" +source = "git+https://github.com/paritytech/polkadot-sdk#7e99621108b2a98644c73a22eaceb732b1c0f743" dependencies = [ "Inflector", "expander 2.2.1", @@ -17452,7 +17518,7 @@ source = "git+https://github.com/paritytech/polkadot-sdk?rev=289f5bbf7a45dc03809 [[package]] name = "sp-std" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#fc486e55d5f8c97c652c977f8a2295f6cb9c7231" +source = "git+https://github.com/paritytech/polkadot-sdk#7e99621108b2a98644c73a22eaceb732b1c0f743" [[package]] name = "sp-storage" @@ -17481,7 +17547,7 @@ dependencies = [ [[package]] name = "sp-storage" version = "19.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#fc486e55d5f8c97c652c977f8a2295f6cb9c7231" +source = "git+https://github.com/paritytech/polkadot-sdk#7e99621108b2a98644c73a22eaceb732b1c0f743" dependencies = [ "impl-serde 0.5.0", "parity-scale-codec", @@ -17566,7 +17632,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "16.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#fc486e55d5f8c97c652c977f8a2295f6cb9c7231" +source = "git+https://github.com/paritytech/polkadot-sdk#7e99621108b2a98644c73a22eaceb732b1c0f743" dependencies = [ "parity-scale-codec", "tracing", @@ -17818,7 +17884,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "20.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#fc486e55d5f8c97c652c977f8a2295f6cb9c7231" +source = "git+https://github.com/paritytech/polkadot-sdk#7e99621108b2a98644c73a22eaceb732b1c0f743" dependencies = [ "anyhow", "impl-trait-for-tuples", @@ -18713,7 +18779,7 @@ dependencies = [ "libc", "mio", "parking_lot 0.12.3", - "pin-project-lite 0.2.14", + "pin-project-lite 0.2.15", "signal-hook-registry", "socket2 0.5.7", "tokio-macros", @@ -18770,7 +18836,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4f4e6ce100d0eb49a2734f8c0812bcd324cf357d21810932c5df6b96ef2b86f1" dependencies = [ "futures-core", - "pin-project-lite 0.2.14", + "pin-project-lite 0.2.15", "tokio", "tokio-util", ] @@ -18800,7 +18866,7 @@ dependencies = [ "futures-core", "futures-io", "futures-sink", - "pin-project-lite 0.2.14", + "pin-project-lite 0.2.15", "tokio", ] @@ -18822,7 +18888,7 @@ dependencies = [ "serde", "serde_spanned", "toml_datetime", - "toml_edit 0.22.22", + "toml_edit", ] [[package]] @@ -18834,17 +18900,6 @@ dependencies = [ "serde", ] -[[package]] -name = "toml_edit" -version = "0.20.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70f427fce4d84c72b5b732388bf4a9f4531b53f74e2887e3ecb2481f68f66d81" -dependencies = [ - "indexmap 2.6.0", - "toml_datetime", - "winnow 0.5.40", -] - [[package]] name = "toml_edit" version = "0.22.22" @@ -18855,7 +18910,7 @@ dependencies = [ "serde", "serde_spanned", "toml_datetime", - "winnow 0.6.20", + "winnow", ] [[package]] @@ -18867,7 +18922,7 @@ dependencies = [ "futures-core", "futures-util", "pin-project", - "pin-project-lite 0.2.14", + "pin-project-lite 0.2.15", "tower-layer", "tower-service", "tracing", @@ -18886,7 +18941,7 @@ dependencies = [ "http", "http-body", "http-range-header", - "pin-project-lite 0.2.14", + "pin-project-lite 0.2.15", "tower-layer", "tower-service", ] @@ -18910,7 +18965,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" dependencies = [ "log", - "pin-project-lite 0.2.14", + "pin-project-lite 0.2.15", "tracing-attributes", "tracing-core", ] @@ -19383,6 +19438,12 @@ dependencies = [ "tokio-util", ] +[[package]] +name = "unsigned-varint" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb066959b24b5196ae73cb057f45598450d2c5f71460e98c49b738086eff9c06" + [[package]] name = "untrusted" version = "0.7.1" @@ -20362,15 +20423,6 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" -[[package]] -name = "winnow" -version = "0.5.40" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" -dependencies = [ - "memchr", -] - [[package]] name = "winnow" version = "0.6.20" diff --git a/parachain/Cargo.toml b/parachain/Cargo.toml index c365278b4c..edc6946362 100644 --- a/parachain/Cargo.toml +++ b/parachain/Cargo.toml @@ -195,6 +195,7 @@ pallet-bounties = { git = "https://github.com/paritytech/polkadot-sdk", branch = pallet-collective = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false } pallet-democracy = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false } pallet-identity = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false } +pallet-indices = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false } pallet-membership = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false } pallet-message-queue = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false } pallet-multisig = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false } @@ -211,6 +212,7 @@ pallet-sudo = { git = "https://github.com/paritytech/polkadot-sdk", branch = "re pallet-tips = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false } pallet-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false } pallet-xcm = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false } +parachains-common = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false } xcm = { package = "staging-xcm", git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false } xcm-builder = { package = "staging-xcm-builder", git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false } xcm-executor = { package = "staging-xcm-executor", git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.11.0", default-features = false } diff --git a/parachain/node/Cargo.toml b/parachain/node/Cargo.toml index 4ef28dcd1a..ade8a90a73 100644 --- a/parachain/node/Cargo.toml +++ b/parachain/node/Cargo.toml @@ -49,7 +49,7 @@ sp-block-builder = { workspace = true, features = ["std"] } sp-blockchain = { workspace = true } sp-consensus-aura = { workspace = true, features = ["std"] } sp-core = { workspace = true, features = ["std"] } -sp-io = { workspace = true, features = ["std"] } +sp-io = { workspace = true, features = ["std", "disable_panic_handler"] } sp-keystore = { workspace = true, features = ["std"] } sp-offchain = { workspace = true, features = ["std"] } sp-runtime = { workspace = true, features = ["std"] } diff --git a/parachain/pallets/bitacross/Cargo.toml b/parachain/pallets/bitacross/Cargo.toml index 9eaa20ae93..36a23cdfde 100644 --- a/parachain/pallets/bitacross/Cargo.toml +++ b/parachain/pallets/bitacross/Cargo.toml @@ -20,7 +20,7 @@ core-primitives = { workspace = true } [dev-dependencies] pallet-balances = { workspace = true, features = ["std"] } pallet-timestamp = { workspace = true, features = ["std"] } -sp-io = { workspace = true, features = ["std"] } +sp-io = { workspace = true, features = ["std", "disable_panic_handler"] } [features] default = ["std"] diff --git a/parachain/pallets/bridge/assets-handler/Cargo.toml b/parachain/pallets/bridge/assets-handler/Cargo.toml index 7415a47c27..541af5c981 100644 --- a/parachain/pallets/bridge/assets-handler/Cargo.toml +++ b/parachain/pallets/bridge/assets-handler/Cargo.toml @@ -21,7 +21,7 @@ pallet-bridge-common = { workspace = true } pallet-chain-bridge = { workspace = true } pallet-parachain-staking = { workspace = true } sp-core = { workspace = true } -sp-io = { workspace = true } +sp-io = { workspace = true, features = ["disable_panic_handler"] } sp-runtime = { workspace = true } sp-std = { workspace = true } diff --git a/parachain/pallets/bridge/bridge-transfer/Cargo.toml b/parachain/pallets/bridge/bridge-transfer/Cargo.toml index 36d7723b23..4b41ac4ddc 100644 --- a/parachain/pallets/bridge/bridge-transfer/Cargo.toml +++ b/parachain/pallets/bridge/bridge-transfer/Cargo.toml @@ -13,7 +13,7 @@ scale-info = { workspace = true } sp-arithmetic = { workspace = true } sp-core = { workspace = true } -sp-io = { workspace = true } +sp-io = { workspace = true, features = ["disable_panic_handler"] } sp-runtime = { workspace = true } sp-std = { workspace = true } diff --git a/parachain/pallets/bridge/chain-bridge/Cargo.toml b/parachain/pallets/bridge/chain-bridge/Cargo.toml index b747c4b206..fb873754a9 100644 --- a/parachain/pallets/bridge/chain-bridge/Cargo.toml +++ b/parachain/pallets/bridge/chain-bridge/Cargo.toml @@ -12,7 +12,7 @@ scale-info = { workspace = true } sp-core = { workspace = true } sp-core-hashing = { workspace = true } -sp-io = { workspace = true } +sp-io = { workspace = true, features = ["disable_panic_handler"] } sp-runtime = { workspace = true } sp-std = { workspace = true } diff --git a/parachain/pallets/evm-address/Cargo.toml b/parachain/pallets/evm-address/Cargo.toml index 6fd0db9840..02f1a792d1 100644 --- a/parachain/pallets/evm-address/Cargo.toml +++ b/parachain/pallets/evm-address/Cargo.toml @@ -20,7 +20,7 @@ sp-std = { workspace = true } [dev-dependencies] hex-literal = { workspace = true } sp-core = { workspace = true, features = ["std"] } -sp-io = { workspace = true, features = ["std"] } +sp-io = { workspace = true, features = ["std", "disable_panic_handler"] } pallet-balances = { workspace = true, features = ["std"] } pallet-timestamp = { workspace = true, features = ["std"] } pallet-ethereum = { workspace = true, features = ["std"] } diff --git a/parachain/pallets/evm-assertions/Cargo.toml b/parachain/pallets/evm-assertions/Cargo.toml index 23eea55867..14b27cd8e3 100644 --- a/parachain/pallets/evm-assertions/Cargo.toml +++ b/parachain/pallets/evm-assertions/Cargo.toml @@ -18,7 +18,7 @@ sp-std = { workspace = true } [dev-dependencies] pallet-balances = { workspace = true, features = ["std"] } -sp-io = { workspace = true, features = ["std"] } +sp-io = { workspace = true, features = ["std", "disable_panic_handler"] } [features] diff --git a/parachain/pallets/extrinsic-filter/Cargo.toml b/parachain/pallets/extrinsic-filter/Cargo.toml index 0a4c0b9cd8..b1ae1e117c 100644 --- a/parachain/pallets/extrinsic-filter/Cargo.toml +++ b/parachain/pallets/extrinsic-filter/Cargo.toml @@ -20,7 +20,7 @@ sp-std = { workspace = true } [dev-dependencies] sp-core = { workspace = true, features = ["std"] } -sp-io = { workspace = true, features = ["std"] } +sp-io = { workspace = true, features = ["std", "disable_panic_handler"] } pallet-balances = { workspace = true, features = ["std"] } pallet-timestamp = { workspace = true, features = ["std"] } diff --git a/parachain/pallets/group/Cargo.toml b/parachain/pallets/group/Cargo.toml index 3c3800cccc..8e503ece2e 100644 --- a/parachain/pallets/group/Cargo.toml +++ b/parachain/pallets/group/Cargo.toml @@ -15,7 +15,7 @@ frame-support = { workspace = true } frame-system = { workspace = true } pallet-balances = { workspace = true } sp-core = { workspace = true } -sp-io = { workspace = true } +sp-io = { workspace = true, features = ["disable_panic_handler"] } sp-runtime = { workspace = true } sp-std = { workspace = true } diff --git a/parachain/pallets/identity-management/Cargo.toml b/parachain/pallets/identity-management/Cargo.toml index 82917f6882..92d521ad94 100644 --- a/parachain/pallets/identity-management/Cargo.toml +++ b/parachain/pallets/identity-management/Cargo.toml @@ -23,7 +23,7 @@ pallet-teebag = { workspace = true, optional = true } [dev-dependencies] pallet-balances = { workspace = true, features = ["std"] } pallet-timestamp = { workspace = true, features = ["std"] } -sp-io = { workspace = true, features = ["std"] } +sp-io = { workspace = true, features = ["std", "disable_panic_handler"] } pallet-teebag = { workspace = true, features = ["std", "test-util"] } pallet-group = { workspace = true, features = ["std"] } pallet-utility = { workspace = true, features = ["std"] } diff --git a/parachain/pallets/omni-account/Cargo.toml b/parachain/pallets/omni-account/Cargo.toml index fb5c35df7e..ee5367b974 100644 --- a/parachain/pallets/omni-account/Cargo.toml +++ b/parachain/pallets/omni-account/Cargo.toml @@ -14,7 +14,7 @@ frame-support = { workspace = true } frame-system = { workspace = true } sp-core = { workspace = true } -sp-io = { workspace = true } +sp-io = { workspace = true, features = ["disable_panic_handler"] } sp-runtime = { workspace = true } sp-std = { workspace = true } diff --git a/parachain/pallets/parachain-staking/Cargo.toml b/parachain/pallets/parachain-staking/Cargo.toml index 8267625ddf..b4a3edbb7d 100644 --- a/parachain/pallets/parachain-staking/Cargo.toml +++ b/parachain/pallets/parachain-staking/Cargo.toml @@ -31,7 +31,7 @@ substrate-fixed = { workspace = true } [dev-dependencies] similar-asserts = { workspace = true } sp-core = { workspace = true, features = ["std"] } -sp-io = { workspace = true, features = ["std"] } +sp-io = { workspace = true, features = ["std", "disable_panic_handler"] } [features] default = ["std"] diff --git a/parachain/pallets/score-staking/Cargo.toml b/parachain/pallets/score-staking/Cargo.toml index a4869ecd19..f094dd0870 100644 --- a/parachain/pallets/score-staking/Cargo.toml +++ b/parachain/pallets/score-staking/Cargo.toml @@ -21,7 +21,7 @@ core-primitives = { workspace = true } pallet-parachain-staking = { workspace = true } [dev-dependencies] -sp-io = { workspace = true } +sp-io = { workspace = true, features = ["disable_panic_handler"] } pallet-balances = { workspace = true } sp-keyring = { workspace = true } diff --git a/parachain/pallets/teebag/Cargo.toml b/parachain/pallets/teebag/Cargo.toml index 3fc4cf3815..7d5c528903 100644 --- a/parachain/pallets/teebag/Cargo.toml +++ b/parachain/pallets/teebag/Cargo.toml @@ -30,7 +30,7 @@ pallet-balances = { workspace = true, optional = true } pallet-timestamp = { workspace = true } pallet-utility = { workspace = true } sp-core = { workspace = true } -sp-io = { workspace = true } +sp-io = { workspace = true, features = ["disable_panic_handler"] } sp-runtime = { workspace = true } sp-std = { workspace = true } diff --git a/parachain/pallets/vc-management/Cargo.toml b/parachain/pallets/vc-management/Cargo.toml index 423d323f61..ba8db587c7 100644 --- a/parachain/pallets/vc-management/Cargo.toml +++ b/parachain/pallets/vc-management/Cargo.toml @@ -24,7 +24,7 @@ pallet-teebag = { workspace = true, optional = true } frame-benchmarking = { workspace = true, features = ["std"] } pallet-balances = { workspace = true, features = ["std"] } pallet-timestamp = { workspace = true, features = ["std"] } -sp-io = { workspace = true, features = ["std"] } +sp-io = { workspace = true, features = ["std", "disable_panic_handler"] } pallet-group = { workspace = true, features = ["std"] } pallet-teebag = { workspace = true, features = ["std", "test-util"] } pallet-utility = { workspace = true, features = ["std"] } diff --git a/parachain/pallets/xcm-asset-manager/Cargo.toml b/parachain/pallets/xcm-asset-manager/Cargo.toml index e3b82ee97c..22b7440cca 100644 --- a/parachain/pallets/xcm-asset-manager/Cargo.toml +++ b/parachain/pallets/xcm-asset-manager/Cargo.toml @@ -12,7 +12,7 @@ frame-benchmarking = { workspace = true, optional = true } frame-support = { workspace = true } frame-system = { workspace = true } orml-traits = { workspace = true } -sp-io = { workspace = true } +sp-io = { workspace = true, features = ["disable_panic_handler"] } sp-runtime = { workspace = true } sp-std = { workspace = true } xcm = { workspace = true } diff --git a/parachain/precompiles/assets-erc20/Cargo.toml b/parachain/precompiles/assets-erc20/Cargo.toml index b96777d653..78ddf260a1 100644 --- a/parachain/precompiles/assets-erc20/Cargo.toml +++ b/parachain/precompiles/assets-erc20/Cargo.toml @@ -10,7 +10,7 @@ frame-system = { workspace = true } pallet-assets = { workspace = true } pallet-balances = { workspace = true } sp-core = { workspace = true } -sp-io = { workspace = true } +sp-io = { workspace = true, features = ["disable_panic_handler"] } sp-runtime = { workspace = true } sp-std = { workspace = true } diff --git a/parachain/precompiles/parachain-staking/Cargo.toml b/parachain/precompiles/parachain-staking/Cargo.toml index 76f6e9e742..c3036c0a3e 100644 --- a/parachain/precompiles/parachain-staking/Cargo.toml +++ b/parachain/precompiles/parachain-staking/Cargo.toml @@ -11,7 +11,7 @@ precompile-utils = { workspace = true } frame-support = { workspace = true } frame-system = { workspace = true } sp-core = { workspace = true } -sp-io = { workspace = true } +sp-io = { workspace = true, features = ["disable_panic_handler"] } sp-runtime = { workspace = true } sp-std = { workspace = true } diff --git a/parachain/precompiles/score-staking/Cargo.toml b/parachain/precompiles/score-staking/Cargo.toml index e9bc95f33d..40f8280ec1 100644 --- a/parachain/precompiles/score-staking/Cargo.toml +++ b/parachain/precompiles/score-staking/Cargo.toml @@ -13,7 +13,7 @@ frame-support = { workspace = true } frame-system = { workspace = true } pallet-evm = { workspace = true } sp-core = { workspace = true } -sp-io = { workspace = true } +sp-io = { workspace = true, features = ["disable_panic_handler"] } sp-runtime = { workspace = true } sp-std = { workspace = true } diff --git a/parachain/runtime/common/Cargo.toml b/parachain/runtime/common/Cargo.toml index 25021e0ea8..baa64e60d6 100644 --- a/parachain/runtime/common/Cargo.toml +++ b/parachain/runtime/common/Cargo.toml @@ -13,7 +13,7 @@ scale-info = { workspace = true } frame-support = { workspace = true } frame-system = { workspace = true } sp-core = { workspace = true } -sp-io = { workspace = true } +sp-io = { workspace = true, features = ["disable_panic_handler"] } sp-runtime = { workspace = true } sp-state-machine = { workspace = true } sp-std = { workspace = true } @@ -35,6 +35,7 @@ cumulus-primitives-parachain-inherent = { workspace = true } parachain-info = { workspace = true } pallet-xcm = { workspace = true } +parachains-common = { workspace = true } xcm = { workspace = true } xcm-builder = { workspace = true } xcm-executor = { workspace = true } @@ -94,6 +95,7 @@ std = [ "pallet-omni-account/std", "pallet-teebag/std", "orml-xtokens/std", + "parachains-common/std", ] runtime-benchmarks = [ diff --git a/parachain/runtime/litentry/Cargo.toml b/parachain/runtime/litentry/Cargo.toml index eb73b8b8ef..addc1a2dcd 100644 --- a/parachain/runtime/litentry/Cargo.toml +++ b/parachain/runtime/litentry/Cargo.toml @@ -19,7 +19,7 @@ sp-consensus-aura = { workspace = true } sp-core = { workspace = true } sp-debug-derive = { workspace = true, features = ["force-debug"], optional = true } sp-inherents = { workspace = true } -sp-io = { workspace = true } +sp-io = { workspace = true, features = ["disable_panic_handler"] } sp-offchain = { workspace = true } sp-runtime = { workspace = true } sp-session = { workspace = true } @@ -42,6 +42,7 @@ pallet-bounties = { workspace = true } pallet-collective = { workspace = true } pallet-democracy = { workspace = true } pallet-identity = { workspace = true } +pallet-indices = { workspace = true } pallet-membership = { workspace = true } pallet-multisig = { workspace = true } pallet-preimage = { workspace = true } @@ -66,6 +67,7 @@ cumulus-primitives-utility = { workspace = true } parachain-info = { workspace = true } pallet-xcm = { workspace = true } +parachains-common = { workspace = true } polkadot-parachain-primitives = { workspace = true } xcm = { workspace = true } xcm-builder = { workspace = true } @@ -220,6 +222,7 @@ std = [ "pallet-evm-precompile-parachain-staking/std", "pallet-evm-precompile-score-staking/std", "pallet-identity/std", + "pallet-indices/std", "pallet-membership/std", "pallet-multisig/std", "pallet-parachain-staking/std", @@ -267,6 +270,7 @@ std = [ "moonbeam-rpc-primitives-debug/std", "moonbeam-rpc-primitives-txpool/std", "precompile-utils/std", + "parachains-common/std", ] try-runtime = [ "hex", diff --git a/parachain/runtime/paseo/Cargo.toml b/parachain/runtime/paseo/Cargo.toml index 26da517237..59ab9ccd5b 100644 --- a/parachain/runtime/paseo/Cargo.toml +++ b/parachain/runtime/paseo/Cargo.toml @@ -17,7 +17,7 @@ sp-block-builder = { workspace = true } sp-consensus-aura = { workspace = true } sp-core = { workspace = true } sp-inherents = { workspace = true } -sp-io = { workspace = true } +sp-io = { workspace = true, features = ["disable_panic_handler"] } sp-offchain = { workspace = true } sp-runtime = { workspace = true } sp-session = { workspace = true } @@ -38,6 +38,7 @@ pallet-bounties = { workspace = true } pallet-collective = { workspace = true } pallet-democracy = { workspace = true } pallet-identity = { workspace = true } +pallet-indices = { workspace = true } pallet-membership = { workspace = true } pallet-multisig = { workspace = true } pallet-preimage = { workspace = true } @@ -64,6 +65,7 @@ cumulus-primitives-utility = { workspace = true } parachain-info = { workspace = true } pallet-xcm = { workspace = true } +parachains-common = { workspace = true } polkadot-parachain-primitives = { workspace = true } xcm = { workspace = true } xcm-builder = { workspace = true } @@ -224,6 +226,7 @@ std = [ "pallet-evm-precompile-parachain-staking/std", "pallet-evm-precompile-score-staking/std", "pallet-identity/std", + "pallet-indices/std", "pallet-membership/std", "pallet-message-queue/std", "pallet-multisig/std", @@ -278,6 +281,7 @@ std = [ "moonbeam-rpc-primitives-txpool/std", "pallet-bitacross/std", "precompile-utils/std", + "parachains-common/std", ] try-runtime = [ "cumulus-pallet-aura-ext/try-runtime", diff --git a/parachain/runtime/rococo/Cargo.toml b/parachain/runtime/rococo/Cargo.toml index 40079de73d..bca1dfb903 100644 --- a/parachain/runtime/rococo/Cargo.toml +++ b/parachain/runtime/rococo/Cargo.toml @@ -17,7 +17,7 @@ sp-block-builder = { workspace = true } sp-consensus-aura = { workspace = true } sp-core = { workspace = true } sp-inherents = { workspace = true } -sp-io = { workspace = true } +sp-io = { workspace = true, features = ["disable_panic_handler"] } sp-offchain = { workspace = true } sp-runtime = { workspace = true } sp-session = { workspace = true } @@ -38,6 +38,7 @@ pallet-bounties = { workspace = true } pallet-collective = { workspace = true } pallet-democracy = { workspace = true } pallet-identity = { workspace = true } +pallet-indices = { workspace = true } pallet-membership = { workspace = true } pallet-multisig = { workspace = true } pallet-preimage = { workspace = true } @@ -64,6 +65,7 @@ cumulus-primitives-utility = { workspace = true } parachain-info = { workspace = true } pallet-xcm = { workspace = true } +parachains-common = { workspace = true } polkadot-parachain-primitives = { workspace = true } xcm = { workspace = true } xcm-builder = { workspace = true } @@ -224,6 +226,7 @@ std = [ "pallet-evm-precompile-parachain-staking/std", "pallet-evm-precompile-score-staking/std", "pallet-identity/std", + "pallet-indices/std", "pallet-membership/std", "pallet-message-queue/std", "pallet-multisig/std", @@ -278,6 +281,7 @@ std = [ "moonbeam-rpc-primitives-txpool/std", "pallet-bitacross/std", "precompile-utils/std", + "parachains-common/std", ] try-runtime = [ "cumulus-pallet-aura-ext/try-runtime", diff --git a/parachain/runtime/rococo/src/lib.rs b/parachain/runtime/rococo/src/lib.rs index e93c49ddeb..ea72e23f00 100644 --- a/parachain/runtime/rococo/src/lib.rs +++ b/parachain/runtime/rococo/src/lib.rs @@ -25,8 +25,10 @@ extern crate frame_benchmarking; use cumulus_pallet_parachain_system::RelayNumberStrictlyIncreases; +use cumulus_primitives_core::{AggregateMessageOrigin, ParaId}; use frame_support::{ construct_runtime, parameter_types, + dynamic_params::{dynamic_pallet_params, dynamic_params}, traits::{ ConstBool, ConstU128, ConstU32, ConstU64, ConstU8, Contains, ContainsLengthBound, EnsureOrigin, Everything, FindAuthor, InstanceFilter, OnFinalize, SortedMembers, @@ -35,7 +37,7 @@ use frame_support::{ weights::{constants::RocksDbWeight, ConstantMultiplier, Weight}, ConsensusEngineId, PalletId, }; -use frame_system::EnsureRoot; +use frame_system::{EnsureRoot, pallet_prelude::BlockNumberFor}; use hex_literal::hex; use parity_scale_codec::{Decode, Encode, MaxEncodedLen}; @@ -43,6 +45,8 @@ use runtime_common::EnsureEnclaveSigner; // for TEE pub use pallet_balances::Call as BalancesCall; +use parachains_common::message_queue::{NarrowOriginToSibling, ParaIdToSibling}; + use sp_api::impl_runtime_apis; pub use sp_consensus_aura::sr25519::AuthorityId as AuraId; use sp_core::{crypto::KeyTypeId, OpaqueMetadata, RuntimeDebug, H160, H256, U256}; @@ -74,7 +78,7 @@ pub use core_primitives::{ pub use runtime_common::currency::*; use runtime_common::{ - impl_runtime_transaction_payment_fees, prod_or_fast, BlockHashCount, BlockLength, + impl_runtime_transaction_payment_fees, prod_or_fast, BlockHashCount, BlockLength, MessageQueue, CouncilInstance, CouncilMembershipInstance, DeveloperCommitteeInstance, DeveloperCommitteeMembershipInstance, EnsureOmniAccount, EnsureRootOrAllCouncil, EnsureRootOrAllTechnicalCommittee, EnsureRootOrHalfCouncil, EnsureRootOrHalfTechnicalCommittee, @@ -437,8 +441,18 @@ impl pallet_preimage::Config for Runtime { type RuntimeEvent = RuntimeEvent; type Currency = Balances; type ManagerOrigin = EnsureRootOrAllCouncil; - type BaseDeposit = PreimageBaseDeposit; - type ByteDeposit = PreimageByteDeposit; + // type BaseDeposit = PreimageBaseDeposit; + // type ByteDeposit = PreimageByteDeposit; + type Consideration = HoldConsideration< + AccountId, + Balances, + PreimageHoldReason, + LinearStoragePrice< + dynamic_params::preimage::BaseDeposit, + dynamic_params::preimage::ByteDeposit, + Balance, + >, + >; } parameter_types! { @@ -458,8 +472,9 @@ impl pallet_balances::Config for Runtime { type MaxReserves = ConstU32<50>; type ReserveIdentifier = [u8; 8]; type RuntimeHoldReason = (); + type RuntimeFreezeReason = (); type FreezeIdentifier = (); - type MaxHolds = (); + // type MaxHolds = (); type MaxFreezes = (); } @@ -684,6 +699,9 @@ impl pallet_treasury::Config for Runtime { type SpendFunds = Bounties; type WeightInfo = weights::pallet_treasury::WeightInfo; type MaxApprovals = ConstU32<100>; + type AssetKind = u32; + type Beneficiary = AccountId; + type BeneficiaryLookup = Indices; } pub struct CouncilProvider; @@ -735,6 +753,7 @@ impl pallet_tips::Config for Runtime { type TipFindersFee = TipFindersFee; type TipReportDepositBase = TipReportDepositBase; type WeightInfo = (); + type MaxTipAmount = ConstU128<{ 500 * DOLLARS }>; } impl pallet_identity::Config for Runtime { @@ -771,18 +790,21 @@ impl pallet_account_fix::Config for Runtime { parameter_types! { pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4); pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4); + pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent; } impl cumulus_pallet_parachain_system::Config for Runtime { + type WeightInfo = (); type RuntimeEvent = RuntimeEvent; type OnSystemEvent = (); type SelfParaId = parachain_info::Pallet; - type DmpMessageHandler = DmpQueue; + // type DmpMessageHandler = DmpQueue; type ReservedDmpWeight = ReservedDmpWeight; type OutboundXcmpMessageSource = XcmpQueue; type XcmpMessageHandler = XcmpQueue; type ReservedXcmpWeight = ReservedXcmpWeight; type CheckAssociatedRelayNumber = RelayNumberStrictlyIncreases; + type DmpQueue = frame_support::traits::EnqueueWithOrigin; } impl parachain_info::Config for Runtime {} @@ -791,21 +813,26 @@ impl cumulus_pallet_aura_ext::Config for Runtime {} impl cumulus_pallet_xcmp_queue::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type XcmExecutor = XcmExecutor; + // type XcmExecutor = XcmExecutor; type ChannelInfo = ParachainSystem; // We use pallet_xcm to confirm the version of xcm type VersionWrapper = PolkadotXcm; - type ExecuteOverweightOrigin = EnsureRootOrAllCouncil; + // type ExecuteOverweightOrigin = EnsureRootOrAllCouncil; type ControllerOrigin = EnsureRootOrAllCouncil; type ControllerOriginConverter = XcmOriginToTransactDispatchOrigin; type WeightInfo = weights::cumulus_pallet_xcmp_queue::WeightInfo; type PriceForSiblingDelivery = (); + // Enqueue XCMP messages from siblings for later processing. + type XcmpQueue = TransformOrigin; + type MaxInboundSuspended = sp_core::ConstU32<1_000>; } impl cumulus_pallet_dmp_queue::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type XcmExecutor = XcmExecutor; - type ExecuteOverweightOrigin = EnsureRootOrAllCouncil; + // type XcmExecutor = XcmExecutor; + // type ExecuteOverweightOrigin = EnsureRootOrAllCouncil; + type WeightInfo = weights::cumulus_pallet_dmp_queue::WeightInfo; + type DmpSink = (); } parameter_types! { @@ -831,6 +858,7 @@ impl pallet_aura::Config for Runtime { type DisabledValidators = (); type MaxAuthorities = ConstU32<100_000>; type AllowMultipleBlocksPerSlot = ConstBool; + type SlotDuration = pallet_aura::MinimumPeriodTimesTwo; } parameter_types! { @@ -905,6 +933,7 @@ impl pallet_vesting::Config for Runtime { // highest number of schedules that encodes less than 2^10. const MAX_VESTING_SCHEDULES: u32 = 28; type UnvestedFundsAllowedWithdrawReasons = UnvestedFundsAllowedWithdrawReasons; + type BlockNumberProvider: BlockNumberProvider>; } parameter_types! { @@ -1114,7 +1143,7 @@ where { if let Some(author_index) = pallet_aura::Pallet::::find_author(digests) { let authority_id = - >::authorities()[author_index as usize].clone(); + pallet_aura::Authorities::::get()[author_index as usize].clone(); return Some(H160::from_slice(&authority_id.encode()[4..24])); } @@ -1145,6 +1174,7 @@ impl pallet_evm::Config for Runtime { // BlockGasLimit / MAX_POV_SIZE type GasLimitPovSizeRatio = GasLimitPovSizeRatio; type WeightInfo = weights::pallet_evm::WeightInfo; + type SuicideQuickClearLimit = ConstU32<0>; } parameter_types! { @@ -1417,7 +1447,7 @@ impl_runtime_apis! { Executive::execute_block(block); } - fn initialize_block(header: &::Header) { + fn initialize_block(header: &::Header) -> sp_runtime::ExtrinsicInclusionMode { Executive::initialize_block(header) } } @@ -1490,7 +1520,7 @@ impl_runtime_apis! { } fn authorities() -> Vec { - Aura::authorities().into_inner() + pallet_aura::Authorities::::get().into_inner() } } @@ -1780,6 +1810,7 @@ impl_runtime_apis! { fn trace_transaction( extrinsics: Vec<::Extrinsic>, traced_transaction: &pallet_ethereum::Transaction, + header: &::Header, ) -> Result< (), sp_runtime::DispatchError, @@ -1809,6 +1840,7 @@ impl_runtime_apis! { fn trace_block( extrinsics: Vec<::Extrinsic>, known_transactions: Vec, + header: &::Header, ) -> Result< (), sp_runtime::DispatchError, @@ -1838,6 +1870,91 @@ impl_runtime_apis! { Ok(()) } + + fn trace_call( + header: &::Header, + from: H160, + to: H160, + data: Vec, + value: U256, + gas_limit: U256, + max_fee_per_gas: Option, + max_priority_fee_per_gas: Option, + nonce: Option, + access_list: Option)>>, + ) -> Result<(), sp_runtime::DispatchError> { + #[cfg(feature = "evm-tracing")] + { + use moonbeam_evm_tracer::tracer::EvmTracer; + + // Initialize block: calls the "on_initialize" hook on every pallet + // in AllPalletsWithSystem. + Executive::initialize_block(header); + + EvmTracer::new().trace(|| { + let is_transactional = false; + let validate = true; + let without_base_extrinsic_weight = true; + + + // Estimated encoded transaction size must be based on the heaviest transaction + // type (EIP1559Transaction) to be compatible with all transaction types. + let mut estimated_transaction_len = data.len() + + // pallet ethereum index: 1 + // transact call index: 1 + // Transaction enum variant: 1 + // chain_id 8 bytes + // nonce: 32 + // max_priority_fee_per_gas: 32 + // max_fee_per_gas: 32 + // gas_limit: 32 + // action: 21 (enum varianrt + call address) + // value: 32 + // access_list: 1 (empty vec size) + // 65 bytes signature + 258; + + if access_list.is_some() { + estimated_transaction_len += access_list.encoded_size(); + } + + let gas_limit = gas_limit.min(u64::MAX.into()).low_u64(); + + let (weight_limit, proof_size_base_cost) = + match ::GasWeightMapping::gas_to_weight( + gas_limit, + without_base_extrinsic_weight + ) { + weight_limit if weight_limit.proof_size() > 0 => { + (Some(weight_limit), Some(estimated_transaction_len as u64)) + } + _ => (None, None), + }; + + let _ = ::Runner::call( + from, + to, + data, + value, + gas_limit, + max_fee_per_gas, + max_priority_fee_per_gas, + nonce, + access_list.unwrap_or_default(), + is_transactional, + validate, + weight_limit, + proof_size_base_cost, + ::config(), + ); + }); + Ok(()) + } + #[cfg(not(feature = "evm-tracing"))] + Err(sp_runtime::DispatchError::Other( + "Missing `evm-tracing` compile time feature flag.", + )) + } } impl moonbeam_rpc_primitives_txpool::TxPoolRuntimeApi for Runtime {