From 13c6b362ba9fb2923595ec4a37c059a922516bc7 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Fri, 30 May 2025 16:08:03 +0200 Subject: [PATCH 01/49] bump to polkadot-sdk-stable2412-5 + bump frontier rev --- Cargo.lock | 4393 ++++++++++++++++++++++++++++++++++++++-------------- Cargo.toml | 198 +-- 2 files changed, 3316 insertions(+), 1275 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b0c56ffb2e..fd60abf24a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -77,7 +77,7 @@ version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" dependencies = [ - "getrandom", + "getrandom 0.2.15", "once_cell", "version_check", ] @@ -89,7 +89,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" dependencies = [ "cfg-if", - "getrandom", + "getrandom 0.2.15", "once_cell", "version_check", "zerocopy", @@ -200,7 +200,7 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -533,7 +533,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94893f1e0c6eeab764ade8dc4c0db24caf4fe7cbbaafc0eba0a9030f447b5185" dependencies = [ "num-traits", - "rand", + "rand 0.8.5", "rayon", ] @@ -549,6 +549,15 @@ version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" +[[package]] +name = "arrayvec" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd9fd44efafa8690358b7408d253adf110036b88f55672a933f01d616ad9b1b9" +dependencies = [ + "nodrop", +] + [[package]] name = "arrayvec" version = "0.7.6" @@ -567,23 +576,23 @@ dependencies = [ "nom", "num-traits", "rusticata-macros", - "thiserror", + "thiserror 1.0.64", "time", ] [[package]] name = "asn1-rs" -version = "0.6.2" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5493c3bedbacf7fd7382c6346bbd66687d12bbaad3a89a2d2c303ee6cf20b048" +checksum = "56624a96882bb8c26d61312ae18cb45868e5a9992ea73c58e45c3101e56a1e60" dependencies = [ - "asn1-rs-derive 0.5.1", + "asn1-rs-derive 0.6.0", "asn1-rs-impl 0.2.0", "displaydoc", "nom", "num-traits", "rusticata-macros", - "thiserror", + "thiserror 2.0.12", "time", ] @@ -601,13 +610,13 @@ dependencies = [ [[package]] name = "asn1-rs-derive" -version = "0.5.1" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "965c2d33e53cb6b267e148a4cb0760bc01f4904c1cd4bb4002a085bb016d1490" +checksum = "3109e49b1e4909e9db6515a30c633684d68cdeaa252f215214cb4fa1a5bfee2c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", "synstructure 0.13.1", ] @@ -630,7 +639,7 @@ checksum = "7b18050c2cd6fe86c3a76584ef5e0baf286d038cda203eb6223df2cc413565f7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -650,6 +659,43 @@ dependencies = [ "futures-core", ] +[[package]] +name = "async-channel" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "89b47800b0be77592da0afd425cc03468052844aff33b84e33cc696f64e77b6a" +dependencies = [ + "concurrent-queue", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-executor" +version = "1.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb812ffb58524bdd10860d7d974e2f01cc0950c2438a74ee5ec2e2280c6c4ffa" +dependencies = [ + "async-task", + "concurrent-queue", + "fastrand", + "futures-lite", + "pin-project-lite", + "slab", +] + +[[package]] +name = "async-fs" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebcd09b382f40fcd159c2d695175b2ae620ffa5f3bd6f664131efff4e8b9e04a" +dependencies = [ + "async-lock", + "blocking", + "futures-lite", +] + [[package]] name = "async-io" version = "2.3.4" @@ -680,15 +726,69 @@ dependencies = [ "pin-project-lite", ] +[[package]] +name = "async-net" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b948000fad4873c1c9339d60f2623323a0cfd3816e5181033c6a5cb68b2accf7" +dependencies = [ + "async-io", + "blocking", + "futures-lite", +] + +[[package]] +name = "async-process" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63255f1dc2381611000436537bbedfe83183faa303a5a0edaf191edef06526bb" +dependencies = [ + "async-channel 2.3.1", + "async-io", + "async-lock", + "async-signal", + "async-task", + "blocking", + "cfg-if", + "event-listener 5.3.1", + "futures-lite", + "rustix 0.38.37", + "tracing", +] + +[[package]] +name = "async-signal" +version = "0.2.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "637e00349800c0bdf8bfc21ebbc0b6524abea702b0da4168ac00d070d0c0b9f3" +dependencies = [ + "async-io", + "async-lock", + "atomic-waker", + "cfg-if", + "futures-core", + "futures-io", + "rustix 0.38.37", + "signal-hook-registry", + "slab", + "windows-sys 0.59.0", +] + +[[package]] +name = "async-task" +version = "4.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" + [[package]] name = "async-trait" -version = "0.1.83" +version = "0.1.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "721cae7de5c34fbb2acd27e21e6d2cf7b886dce0c27388d46c4e6c47ea4318dd" +checksum = "e539d3fca749fcee5236ab05e93a52867dd549cc157c8cb7f99595f3cedffdb5" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -713,6 +813,12 @@ dependencies = [ "num-traits", ] +[[package]] +name = "atomic-take" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8ab6b55fe97976e46f91ddbed8d147d966475dc29b2032757ba47e02376fbc3" + [[package]] name = "atomic-waker" version = "1.1.2" @@ -738,7 +844,7 @@ checksum = "3c87f3f15e7794432337fc718554eaa4dc8f04c9677a950ffe366f20a162ae42" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -774,6 +880,12 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" +[[package]] +name = "base58" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6107fe1be6682a68940da878d9e9f5e90ca5745b3dec9fd1bb393c8777d4f581" + [[package]] name = "base64" version = "0.13.1" @@ -798,6 +910,25 @@ version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" +[[package]] +name = "beef" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a8241f3ebb85c056b509d4327ad0358fbbba6ffb340bf388f26350aeda225b1" +dependencies = [ + "serde", +] + +[[package]] +name = "binary-merkle-tree" +version = "16.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +dependencies = [ + "hash-db", + "log", + "parity-scale-codec", +] + [[package]] name = "bincode" version = "1.3.3" @@ -819,13 +950,41 @@ dependencies = [ "lazy_static", "lazycell", "peeking_take_while", - "prettyplease 0.2.22", + "prettyplease", "proc-macro2", "quote", "regex", "rustc-hash 1.1.0", "shlex", - "syn 2.0.90", + "syn 2.0.101", +] + +[[package]] +name = "bip32" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db40d3dfbeab4e031d78c844642fa0caa0b0db11ce1607ac9d2986dff1405c69" +dependencies = [ + "bs58", + "hmac 0.12.1", + "k256", + "rand_core 0.6.4", + "ripemd", + "secp256k1 0.27.0", + "sha2 0.10.8", + "subtle 2.6.1", + "zeroize", +] + +[[package]] +name = "bip39" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33415e24172c1b7d6066f6d999545375ab8e1d95421d6784bdfff9496f292387" +dependencies = [ + "bitcoin_hashes", + "serde", + "unicode-normalization", ] [[package]] @@ -864,6 +1023,7 @@ checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c" dependencies = [ "funty", "radium", + "serde", "tap", "wyz", ] @@ -889,6 +1049,16 @@ dependencies = [ "digest 0.10.7", ] +[[package]] +name = "blake2-rfc" +version = "0.2.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d6d530bdd2d52966a6d03b7a964add7ae1a288d25214066fd4b600f0f796400" +dependencies = [ + "arrayvec 0.4.12", + "constant_time_eq 0.1.5", +] + [[package]] name = "blake2b_simd" version = "1.0.2" @@ -896,8 +1066,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "23285ad32269793932e830392f2fe2f83e26488fd3ec778883a93c8323735780" dependencies = [ "arrayref", - "arrayvec", - "constant_time_eq", + "arrayvec 0.7.6", + "constant_time_eq 0.3.1", ] [[package]] @@ -907,8 +1077,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94230421e395b9920d23df13ea5d77a20e1725331f90fbbf6df6040b33f756ae" dependencies = [ "arrayref", - "arrayvec", - "constant_time_eq", + "arrayvec 0.7.6", + "constant_time_eq 0.3.1", ] [[package]] @@ -918,10 +1088,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d82033247fd8e890df8f740e407ad4d038debb9eb1f40533fffb32e7d17dc6f7" dependencies = [ "arrayref", - "arrayvec", + "arrayvec 0.7.6", "cc", "cfg-if", - "constant_time_eq", + "constant_time_eq 0.3.1", ] [[package]] @@ -942,6 +1112,19 @@ dependencies = [ "generic-array 0.14.7", ] +[[package]] +name = "blocking" +version = "1.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "703f41c54fc768e63e091340b424302bb1c29ef4aa0c7f10fe849dfb114d29ea" +dependencies = [ + "async-channel 2.3.1", + "async-task", + "futures-io", + "futures-lite", + "piper", +] + [[package]] name = "bounded-collections" version = "0.2.0" @@ -955,10 +1138,13 @@ dependencies = [ ] [[package]] -name = "bs58" -version = "0.4.0" +name = "bounded-vec" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" +checksum = "68534a48cbf63a4b1323c433cf21238c9ec23711e0df13b08c33e5c2082663ce" +dependencies = [ + "thiserror 1.0.64", +] [[package]] name = "bs58" @@ -966,6 +1152,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4" dependencies = [ + "sha2 0.10.8", "tinyvec", ] @@ -986,9 +1173,9 @@ checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" [[package]] name = "byte-slice-cast" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3ac9f8b63eca6fd385229b3675f6cc0dc5c8a5c8a54a59d4f52ffd670d87b0c" +checksum = "7575182f7272186991736b70173b0ea045398f984bf5ebbb3804736ce1330c9d" [[package]] name = "byte-tools" @@ -1010,9 +1197,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.7.2" +version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "428d9aa8fbc0670b7b8d6030a7fadd0f86151cae55e4dbbece15f3780a3dfaf3" +checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a" [[package]] name = "bzip2-sys" @@ -1064,7 +1251,7 @@ dependencies = [ "semver 1.0.23", "serde", "serde_json", - "thiserror", + "thiserror 1.0.64", ] [[package]] @@ -1084,6 +1271,12 @@ dependencies = [ "shlex", ] +[[package]] +name = "cesu8" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" + [[package]] name = "cexpr" version = "0.6.0" @@ -1114,6 +1307,12 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" +[[package]] +name = "cfg_aliases" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + [[package]] name = "chacha" version = "0.3.0" @@ -1178,15 +1377,14 @@ dependencies = [ [[package]] name = "cid" -version = "0.10.1" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd94671561e36e4e7de75f753f577edafb0e7c05d6e4547229fdf7938fbcd2c3" +checksum = "3147d8272e8fa0ccd29ce51194dd98f79ddfb8191ba9e3409884e751798acf3a" dependencies = [ "core2", "multibase", - "multihash 0.18.1", - "serde", - "unsigned-varint 0.7.2", + "multihash 0.19.2", + "unsigned-varint 0.8.0", ] [[package]] @@ -1239,7 +1437,7 @@ dependencies = [ "anstream", "anstyle", "clap_lex", - "strsim", + "strsim 0.11.1", "terminal_size", ] @@ -1252,7 +1450,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -1261,6 +1459,17 @@ version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97" +[[package]] +name = "coarsetime" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91849686042de1b41cd81490edc83afbcb0abe5a9b6f2c4114f23ce8cca1bcf4" +dependencies = [ + "libc", + "wasix", + "wasm-bindgen", +] + [[package]] name = "codespan-reporting" version = "0.11.1" @@ -1326,6 +1535,19 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "const-hex" +version = "1.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83e22e0ed40b96a48d3db274f72fd365bd78f67af39b6bbd47e8a15e1c6207ff" +dependencies = [ + "cfg-if", + "cpufeatures", + "hex", + "proptest", + "serde", +] + [[package]] name = "const-oid" version = "0.9.6" @@ -1347,11 +1569,37 @@ version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e" dependencies = [ - "getrandom", + "getrandom 0.2.15", "once_cell", "tiny-keccak", ] +[[package]] +name = "const_format" +version = "0.2.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "126f97965c8ad46d6d9163268ff28432e8f6a1196a55578867832e3049df63dd" +dependencies = [ + "const_format_proc_macros", +] + +[[package]] +name = "const_format_proc_macros" +version = "0.2.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d57c2eccfb16dbac1f4e61e206105db5820c9d26c3c472bc17c774259ef7744" +dependencies = [ + "proc-macro2", + "quote", + "unicode-xid", +] + +[[package]] +name = "constant_time_eq" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" + [[package]] name = "constant_time_eq" version = "0.3.1" @@ -1380,6 +1628,16 @@ dependencies = [ "libc", ] +[[package]] +name = "core-foundation" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b55271e5c8c478ad3f38ad24ef34923091e0548492a266d19b3c0b4d82574c63" +dependencies = [ + "core-foundation-sys", + "libc", +] + [[package]] name = "core-foundation-sys" version = "0.8.7" @@ -1582,7 +1840,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" dependencies = [ "generic-array 0.14.7", - "rand_core", + "rand_core 0.6.4", "subtle 2.6.1", "zeroize", ] @@ -1594,7 +1852,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" dependencies = [ "generic-array 0.14.7", - "rand_core", + "rand_core 0.6.4", "typenum 1.17.0", ] @@ -1628,49 +1886,143 @@ dependencies = [ ] [[package]] -name = "curve25519-dalek" -version = "4.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" +name = "cumulus-client-parachain-inherent" +version = "0.15.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ - "cfg-if", - "cpufeatures", - "curve25519-dalek-derive", - "digest 0.10.7", - "fiat-crypto", - "rustc_version 0.4.1", - "subtle 2.6.1", - "zeroize", + "async-trait", + "cumulus-primitives-core", + "cumulus-primitives-parachain-inherent", + "cumulus-relay-chain-interface", + "cumulus-test-relay-sproof-builder", + "parity-scale-codec", + "sc-client-api", + "sp-api", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-inherents", + "sp-runtime", + "sp-state-machine", + "sp-storage 22.0.0", + "sp-trie", + "tracing", ] [[package]] -name = "curve25519-dalek-derive" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" +name = "cumulus-primitives-core" +version = "0.17.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.90", + "parity-scale-codec", + "polkadot-core-primitives", + "polkadot-parachain-primitives", + "polkadot-primitives", + "scale-info", + "sp-api", + "sp-runtime", + "sp-trie", + "staging-xcm", ] [[package]] -name = "cxx" -version = "1.0.128" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54ccead7d199d584d139148b04b4a368d1ec7556a1d9ea2548febb1b9d49f9a4" +name = "cumulus-primitives-parachain-inherent" +version = "0.17.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ - "cc", - "cxxbridge-flags", - "cxxbridge-macro", - "link-cplusplus", + "async-trait", + "cumulus-primitives-core", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-inherents", + "sp-trie", ] [[package]] -name = "cxx-build" -version = "1.0.128" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c77953e99f01508f89f55c494bfa867171ef3a6c8cea03d26975368f2121a5c1" +name = "cumulus-primitives-proof-size-hostfunction" +version = "0.11.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +dependencies = [ + "sp-externalities 0.30.0", + "sp-runtime-interface 29.0.0", + "sp-trie", +] + +[[package]] +name = "cumulus-relay-chain-interface" +version = "0.21.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +dependencies = [ + "async-trait", + "cumulus-primitives-core", + "futures", + "jsonrpsee-core 0.24.7", + "parity-scale-codec", + "polkadot-overseer", + "sc-client-api", + "sp-api", + "sp-blockchain", + "sp-state-machine", + "sp-version", + "thiserror 1.0.64", +] + +[[package]] +name = "cumulus-test-relay-sproof-builder" +version = "0.17.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +dependencies = [ + "cumulus-primitives-core", + "parity-scale-codec", + "polkadot-primitives", + "sp-runtime", + "sp-state-machine", + "sp-trie", +] + +[[package]] +name = "curve25519-dalek" +version = "4.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" +dependencies = [ + "cfg-if", + "cpufeatures", + "curve25519-dalek-derive", + "digest 0.10.7", + "fiat-crypto", + "rustc_version 0.4.1", + "subtle 2.6.1", + "zeroize", +] + +[[package]] +name = "curve25519-dalek-derive" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", +] + +[[package]] +name = "cxx" +version = "1.0.128" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54ccead7d199d584d139148b04b4a368d1ec7556a1d9ea2548febb1b9d49f9a4" +dependencies = [ + "cc", + "cxxbridge-flags", + "cxxbridge-macro", + "link-cplusplus", +] + +[[package]] +name = "cxx-build" +version = "1.0.128" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c77953e99f01508f89f55c494bfa867171ef3a6c8cea03d26975368f2121a5c1" dependencies = [ "cc", "codespan-reporting", @@ -1678,7 +2030,7 @@ dependencies = [ "proc-macro2", "quote", "scratch", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -1695,7 +2047,17 @@ checksum = "98532a60dedaebc4848cb2cba5023337cc9ea3af16a5b062633fabfd9f18fb60" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", +] + +[[package]] +name = "darling" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b750cb3417fd1b327431a470f388520309479ab0bf5e323505daf0290cd3850" +dependencies = [ + "darling_core 0.14.4", + "darling_macro 0.14.4", ] [[package]] @@ -1704,8 +2066,22 @@ version = "0.20.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f63b86c8a8826a49b8c21f08a2d07338eec8d900540f8630dc76284be802989" dependencies = [ - "darling_core", - "darling_macro", + "darling_core 0.20.10", + "darling_macro 0.20.10", +] + +[[package]] +name = "darling_core" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "109c1ca6e6b7f82cc233a97004ea8ed7ca123a9af07a8230878fcfda9b158bf0" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "strsim 0.10.0", + "syn 1.0.109", ] [[package]] @@ -1718,8 +2094,19 @@ dependencies = [ "ident_case", "proc-macro2", "quote", - "strsim", - "syn 2.0.90", + "strsim 0.11.1", + "syn 2.0.101", +] + +[[package]] +name = "darling_macro" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4aab4dbc9f7611d8b55048a3a16d2d010c2c8334e46304b40ac1cc14bf3b48e" +dependencies = [ + "darling_core 0.14.4", + "quote", + "syn 1.0.109", ] [[package]] @@ -1728,9 +2115,9 @@ version = "0.20.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" dependencies = [ - "darling_core", + "darling_core 0.20.10", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -1798,11 +2185,11 @@ dependencies = [ [[package]] name = "der-parser" -version = "9.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cd0a5c643689626bec213c4d8bd4d96acc8ffdb4ad4bb6bc16abf27d5f4b553" +checksum = "07da5016415d5a3c4dd39b11ed26f915f52fc4e0dc197d87908bc916e51bc1a6" dependencies = [ - "asn1-rs 0.6.2", + "asn1-rs 0.7.1", "displaydoc", "nom", "num-bigint", @@ -1839,7 +2226,18 @@ checksum = "d65d7ce8132b7c0e54497a4d9a55a1c2a0912a0d786cf894472ba818fba45762" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", +] + +[[package]] +name = "derive-where" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e73f2692d4bd3cac41dca28934a39894200c9fabf49586d77d0e5954af1d7902" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", ] [[package]] @@ -1852,7 +2250,27 @@ dependencies = [ "proc-macro2", "quote", "rustc_version 0.4.1", - "syn 2.0.90", + "syn 2.0.101", +] + +[[package]] +name = "derive_more" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a9b99b9cbbe49445b21764dc0625032a89b145a2642e67603e1c936f5458d05" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb7330aeadfbe296029522e6c40f315320aba36fc43a5b3632f3795348f3bd22" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", ] [[package]] @@ -1941,23 +2359,23 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] name = "docify" -version = "0.2.8" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43a2f138ad521dc4a2ced1a4576148a6a610b4c5923933b062a263130a6802ce" +checksum = "a772b62b1837c8f060432ddcc10b17aae1453ef17617a99bc07789252d2a5896" dependencies = [ "docify_macros", ] [[package]] name = "docify_macros" -version = "0.2.8" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a081e51fb188742f5a7a1164ad752121abcb22874b21e2c3b0dd040c515fdad" +checksum = "60e6be249b0a462a14784a99b19bf35a667bb5e09de611738bb7362fa4c95ff7" dependencies = [ "common-path", "derive-syn-parse", @@ -1965,7 +2383,7 @@ dependencies = [ "proc-macro2", "quote", "regex", - "syn 2.0.90", + "syn 2.0.101", "termcolor", "toml 0.8.19", "walkdir", @@ -1983,6 +2401,12 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1435fa1053d8b2fbbe9be7e97eca7f33d37b28409959813daefc1446a14247f1" +[[package]] +name = "downcast-rs" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2" + [[package]] name = "dtoa" version = "1.0.9" @@ -2049,7 +2473,7 @@ checksum = "4a3daa8e81a3963a60642bcc1f90a670680bd4a77535faa384e9d1c79d620871" dependencies = [ "curve25519-dalek", "ed25519", - "rand_core", + "rand_core 0.6.4", "serde", "sha2 0.10.8", "subtle 2.6.1", @@ -2066,7 +2490,7 @@ dependencies = [ "ed25519", "hashbrown 0.14.5", "hex", - "rand_core", + "rand_core 0.6.4", "sha2 0.10.8", "zeroize", ] @@ -2093,7 +2517,7 @@ dependencies = [ "generic-array 0.14.7", "group", "pkcs8", - "rand_core", + "rand_core 0.6.4", "sec1", "serdect", "subtle 2.6.1", @@ -2127,7 +2551,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -2147,7 +2571,7 @@ checksum = "de0d48a183585823424a4ce1aa132d174a6a81bd540895822eb4c8373a8e49e8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -2193,9 +2617,22 @@ checksum = "c22d4b5885b6aa2fe5e8b9329fb8d232bf739e434e6b87347c63bdd00c120f60" dependencies = [ "crunchy", "fixed-hash", - "impl-codec", - "impl-rlp", - "impl-serde", + "impl-rlp 0.3.0", + "impl-serde 0.4.0", + "tiny-keccak", +] + +[[package]] +name = "ethbloom" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c321610643004cf908ec0f5f2aa0d8f1f8e14b540562a2887a1111ff1ecbf7b" +dependencies = [ + "crunchy", + "fixed-hash", + "impl-codec 0.7.1", + "impl-rlp 0.4.0", + "impl-serde 0.5.0", "scale-info", "tiny-keccak", ] @@ -2203,15 +2640,14 @@ dependencies = [ [[package]] name = "ethereum" version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e04d24d20b8ff2235cffbf242d5092de3aa45f77c5270ddbfadd2778ca13fea" +source = "git+https://github.com/rust-ethereum/ethereum?rev=3be0d8fd4c2ad1ba216b69ef65b9382612efc8ba#3be0d8fd4c2ad1ba216b69ef65b9382612efc8ba" dependencies = [ "bytes", - "ethereum-types", + "ethereum-types 0.15.1", "hash-db", "hash256-std-hasher", "parity-scale-codec", - "rlp", + "rlp 0.6.1", "scale-info", "serde", "sha3", @@ -2224,14 +2660,28 @@ version = "0.14.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "02d215cbf040552efcbe99a38372fe80ab9d00268e20012b79fcd0f073edd8ee" dependencies = [ - "ethbloom", + "ethbloom 0.13.0", + "fixed-hash", + "impl-rlp 0.3.0", + "impl-serde 0.4.0", + "primitive-types 0.12.2", + "uint 0.9.5", +] + +[[package]] +name = "ethereum-types" +version = "0.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ab15ed80916029f878e0267c3a9f92b67df55e79af370bf66199059ae2b4ee3" +dependencies = [ + "ethbloom 0.14.1", "fixed-hash", - "impl-codec", - "impl-rlp", - "impl-serde", - "primitive-types", + "impl-codec 0.7.1", + "impl-rlp 0.4.0", + "impl-serde 0.5.0", + "primitive-types 0.13.1", "scale-info", - "uint", + "uint 0.10.0", ] [[package]] @@ -2240,6 +2690,16 @@ version = "2.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" +[[package]] +name = "event-listener" +version = "4.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b215c49b2b248c855fb73579eb1f4f26c38ffdc12973e20e07b91d78d5646e" +dependencies = [ + "concurrent-queue", + "pin-project-lite", +] + [[package]] name = "event-listener" version = "5.3.1" @@ -2263,9 +2723,8 @@ dependencies = [ [[package]] name = "evm" -version = "0.41.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "767f43e9630cc36cf8ff2777cbb0121b055f0d1fd6eaaa13b46a1808f0d0e7e9" +version = "0.42.0" +source = "git+https://github.com/rust-ethereum/evm?rev=e81732d6bb47e3d3d68d233e43919c4522598361#e81732d6bb47e3d3d68d233e43919c4522598361" dependencies = [ "auto_impl", "environmental", @@ -2275,8 +2734,8 @@ dependencies = [ "evm-runtime", "log", "parity-scale-codec", - "primitive-types", - "rlp", + "primitive-types 0.13.1", + "rlp 0.6.1", "scale-info", "serde", "sha3", @@ -2284,38 +2743,35 @@ dependencies = [ [[package]] name = "evm-core" -version = "0.41.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1da6cedc5cedb4208e59467106db0d1f50db01b920920589f8e672c02fdc04f" +version = "0.42.0" +source = "git+https://github.com/rust-ethereum/evm?rev=e81732d6bb47e3d3d68d233e43919c4522598361#e81732d6bb47e3d3d68d233e43919c4522598361" dependencies = [ "parity-scale-codec", - "primitive-types", + "primitive-types 0.13.1", "scale-info", "serde", ] [[package]] name = "evm-gasometer" -version = "0.41.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1dc0eb591abc5cd7b05bef6a036c2bb6c66ab6c5e0c5ce94bfe377ab670b1fd7" +version = "0.42.0" +source = "git+https://github.com/rust-ethereum/evm?rev=e81732d6bb47e3d3d68d233e43919c4522598361#e81732d6bb47e3d3d68d233e43919c4522598361" dependencies = [ "environmental", "evm-core", "evm-runtime", - "primitive-types", + "primitive-types 0.13.1", ] [[package]] name = "evm-runtime" -version = "0.41.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84bbe09b64ae13a29514048c1bb6fda6374ac0b4f6a1f15a443348ab88ef42cd" +version = "0.42.0" +source = "git+https://github.com/rust-ethereum/evm?rev=e81732d6bb47e3d3d68d233e43919c4522598361#e81732d6bb47e3d3d68d233e43919c4522598361" dependencies = [ "auto_impl", "environmental", "evm-core", - "primitive-types", + "primitive-types 0.13.1", "sha3", ] @@ -2337,10 +2793,10 @@ dependencies = [ "blake2 0.10.6", "file-guard", "fs-err", - "prettyplease 0.2.22", + "prettyplease", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -2361,10 +2817,34 @@ version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e8c02a5121d4ea3eb16a80748c74f5549a5665e4c21333c6098f283870fbdea6" +[[package]] +name = "fatality" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec6f82451ff7f0568c6181287189126d492b5654e30a788add08027b6363d019" +dependencies = [ + "fatality-proc-macro", + "thiserror 1.0.64", +] + +[[package]] +name = "fatality-proc-macro" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb42427514b063d97ce21d5199f36c0c307d981434a6be32582bc79fe5bd2303" +dependencies = [ + "expander", + "indexmap 2.9.0", + "proc-macro-crate 3.2.0", + "proc-macro2", + "quote", + "syn 2.0.101", +] + [[package]] name = "fc-api" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "async-trait", "fp-storage", @@ -2376,7 +2856,7 @@ dependencies = [ [[package]] name = "fc-aura" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "fc-rpc", "fp-storage", @@ -2392,7 +2872,7 @@ dependencies = [ [[package]] name = "fc-consensus" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "async-trait", "fp-consensus", @@ -2402,13 +2882,13 @@ dependencies = [ "sp-block-builder", "sp-consensus", "sp-runtime", - "thiserror", + "thiserror 1.0.64", ] [[package]] name = "fc-db" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "async-trait", "ethereum", @@ -2438,7 +2918,7 @@ dependencies = [ [[package]] name = "fc-mapping-sync" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "fc-db", "fc-storage", @@ -2461,10 +2941,10 @@ dependencies = [ [[package]] name = "fc-rpc" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "ethereum", - "ethereum-types", + "ethereum-types 0.15.1", "evm", "fc-api", "fc-mapping-sync", @@ -2475,14 +2955,14 @@ dependencies = [ "fp-storage", "futures", "hex", - "jsonrpsee", + "jsonrpsee 0.24.7", "libsecp256k1", "log", "pallet-evm", "parity-scale-codec", "prometheus", - "rand", - "rlp", + "rand 0.8.5", + "rlp 0.6.1", "sc-client-api", "sc-network", "sc-network-sync", @@ -2498,39 +2978,39 @@ dependencies = [ "sp-blockchain", "sp-consensus", "sp-core", - "sp-externalities 0.29.0", + "sp-externalities 0.30.0", "sp-inherents", "sp-io", "sp-runtime", "sp-state-machine", - "sp-storage 21.0.0", + "sp-storage 22.0.0", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.64", "tokio", ] [[package]] name = "fc-rpc-core" version = "1.1.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "ethereum", - "ethereum-types", - "jsonrpsee", - "rlp", + "ethereum-types 0.15.1", + "jsonrpsee 0.24.7", + "rlp 0.6.1", "rustc-hex", "serde", "serde_json", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", ] [[package]] name = "fc-storage" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "ethereum", - "ethereum-types", + "ethereum-types 0.15.1", "fp-rpc", "fp-storage", "parity-scale-codec", @@ -2538,7 +3018,7 @@ dependencies = [ "sp-api", "sp-io", "sp-runtime", - "sp-storage 21.0.0", + "sp-storage 22.0.0", ] [[package]] @@ -2548,7 +3028,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e182f7dbc2ef73d9ef67351c5fbbea084729c48362d3ce9dd44c28e32e277fe5" dependencies = [ "libc", - "thiserror", + "thiserror 1.0.64", ] [[package]] @@ -2557,7 +3037,7 @@ version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ded41244b729663b1e574f1b4fb731469f69f79c17667b5d776b16cda0479449" dependencies = [ - "rand_core", + "rand_core 0.6.4", "subtle 2.6.1", ] @@ -2615,6 +3095,16 @@ dependencies = [ "scale-info", ] +[[package]] +name = "finito" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2384245d85162258a14b43567a9ee3598f5ae746a1581fb5d3d2cb780f0dbf95" +dependencies = [ + "futures-timer", + "pin-project", +] + [[package]] name = "fixed-hash" version = "0.8.0" @@ -2622,7 +3112,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "835c052cb0c08c1acf6ffd71c022172e18723949c8282f2b9f27efbc51e64534" dependencies = [ "byteorder", - "rand", + "rand 0.8.5", "rustc-hex", "static_assertions", ] @@ -2682,8 +3172,8 @@ checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" [[package]] name = "fork-tree" -version = "13.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "13.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "parity-scale-codec", ] @@ -2704,16 +3194,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8835f84f38484cc86f110a805655697908257fb9a7af005234060891557198e9" dependencies = [ "nonempty", - "thiserror", + "thiserror 1.0.64", ] [[package]] name = "fp-account" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "hex", - "impl-serde", + "impl-serde 0.5.0", "libsecp256k1", "log", "parity-scale-codec", @@ -2722,14 +3212,14 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-runtime-interface 28.0.0", + "sp-runtime-interface 29.0.0", "staging-xcm", ] [[package]] name = "fp-consensus" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "ethereum", "parity-scale-codec", @@ -2740,10 +3230,10 @@ dependencies = [ [[package]] name = "fp-ethereum" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "ethereum", - "ethereum-types", + "ethereum-types 0.15.1", "fp-evm", "frame-support", "parity-scale-codec", @@ -2752,8 +3242,9 @@ dependencies = [ [[package]] name = "fp-evm" version = "3.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ + "environmental", "evm", "frame-support", "num_enum", @@ -2767,10 +3258,10 @@ dependencies = [ [[package]] name = "fp-rpc" version = "3.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "ethereum", - "ethereum-types", + "ethereum-types 0.15.1", "fp-evm", "parity-scale-codec", "scale-info", @@ -2783,7 +3274,7 @@ dependencies = [ [[package]] name = "fp-self-contained" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "frame-support", "parity-scale-codec", @@ -2795,7 +3286,7 @@ dependencies = [ [[package]] name = "fp-storage" version = "2.0.0" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "parity-scale-codec", "serde", @@ -2809,8 +3300,8 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" [[package]] name = "frame-benchmarking" -version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "39.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "frame-support", "frame-support-procedural", @@ -2826,32 +3317,36 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-runtime-interface 28.0.0", - "sp-storage 21.0.0", + "sp-runtime-interface 29.0.0", + "sp-storage 22.0.0", "static_assertions", ] [[package]] name = "frame-benchmarking-cli" -version = "43.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "46.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "Inflector", "array-bytes", "chrono", "clap", "comfy-table", + "cumulus-client-parachain-inherent", + "cumulus-primitives-proof-size-hostfunction", "frame-benchmarking", "frame-support", "frame-system", "gethostname", "handlebars", + "hex", "itertools 0.11.0", - "lazy_static", "linked-hash-map", "log", "parity-scale-codec", - "rand", + "polkadot-parachain-primitives", + "polkadot-primitives", + "rand 0.8.5", "rand_pcg", "sc-block-builder", "sc-chain-spec", @@ -2859,32 +3354,40 @@ dependencies = [ "sc-client-api", "sc-client-db", "sc-executor", + "sc-executor-common", "sc-service", "sc-sysinfo", "serde", "serde_json", "sp-api", + "sp-block-builder", "sp-blockchain", "sp-core", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", "sp-database", - "sp-externalities 0.29.0", + "sp-externalities 0.30.0", "sp-genesis-builder", "sp-inherents", "sp-io", "sp-keystore", "sp-runtime", "sp-state-machine", - "sp-storage 21.0.0", + "sp-storage 22.0.0", + "sp-timestamp", + "sp-transaction-pool", "sp-trie", + "sp-version", "sp-wasm-interface 21.0.1", - "thiserror", + "subxt", + "subxt-signer", + "thiserror 1.0.64", "thousands", ] [[package]] name = "frame-executive" -version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "39.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "aquamarine", "frame-support", @@ -2899,6 +3402,17 @@ dependencies = [ "sp-tracing 17.0.1", ] +[[package]] +name = "frame-metadata" +version = "15.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "878babb0b136e731cc77ec2fd883ff02745ff21e6fb662729953d44923df009c" +dependencies = [ + "cfg-if", + "parity-scale-codec", + "scale-info", +] + [[package]] name = "frame-metadata" version = "16.0.0" @@ -2911,12 +3425,25 @@ dependencies = [ "serde", ] +[[package]] +name = "frame-metadata" +version = "18.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daaf440c68eb2c3d88e5760fe8c7af3f9fee9181fab6c2f2c4e7cc48dcc40bb8" +dependencies = [ + "cfg-if", + "parity-scale-codec", + "scale-info", + "serde", +] + [[package]] name = "frame-metadata-hash-extension" -version = "0.6.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.7.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "array-bytes", + "const-hex", "docify", "frame-support", "frame-system", @@ -2928,15 +3455,16 @@ dependencies = [ [[package]] name = "frame-support" -version = "38.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "39.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "aquamarine", "array-bytes", + "binary-merkle-tree", "bitflags 1.3.2", "docify", "environmental", - "frame-metadata", + "frame-metadata 18.0.0", "frame-support-procedural", "impl-trait-for-tuples", "k256", @@ -2952,7 +3480,7 @@ dependencies = [ "sp-arithmetic", "sp-core", "sp-crypto-hashing-proc-macro", - "sp-debug-derive 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-debug-derive 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", "sp-genesis-builder", "sp-inherents", "sp-io", @@ -2960,8 +3488,9 @@ dependencies = [ "sp-runtime", "sp-staking", "sp-state-machine", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", "sp-tracing 17.0.1", + "sp-trie", "sp-weights", "static_assertions", "tt-call", @@ -2969,22 +3498,22 @@ dependencies = [ [[package]] name = "frame-support-procedural" -version = "30.0.6" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "31.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "Inflector", "cfg-expr", "derive-syn-parse", "docify", "expander", - "frame-support-procedural-tools 13.0.0", + "frame-support-procedural-tools 13.0.1", "itertools 0.11.0", "macro_magic", "proc-macro-warning 1.0.2", "proc-macro2", "quote", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", - "syn 2.0.90", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "syn 2.0.101", ] [[package]] @@ -2997,19 +3526,19 @@ dependencies = [ "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] name = "frame-support-procedural-tools" -version = "13.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "13.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "frame-support-procedural-tools-derive 12.0.0", "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -3020,23 +3549,23 @@ checksum = "68672b9ec6fe72d259d3879dc212c5e42e977588cdac830c76f54d9f492aeb58" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] name = "frame-support-procedural-tools-derive" version = "12.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] name = "frame-system" -version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "39.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "cfg-if", "docify", @@ -3048,15 +3577,15 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", "sp-version", "sp-weights", ] [[package]] name = "frame-system-benchmarking" -version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "39.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "frame-benchmarking", "frame-support", @@ -3069,8 +3598,8 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" -version = "34.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "35.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "docify", "parity-scale-codec", @@ -3079,8 +3608,8 @@ dependencies = [ [[package]] name = "frame-try-runtime" -version = "0.44.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.45.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "frame-support", "parity-scale-codec", @@ -3189,7 +3718,10 @@ version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "52527eb5074e35e9339c6b4e8d12600c7128b68fb25dcb9fa9dec18f7c25f3a5" dependencies = [ + "fastrand", "futures-core", + "futures-io", + "parking", "pin-project-lite", ] @@ -3201,7 +3733,7 @@ checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -3297,7 +3829,19 @@ checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ "cfg-if", "libc", - "wasi", + "wasi 0.11.0+wasi-snapshot-preview1", +] + +[[package]] +name = "getrandom" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4" +dependencies = [ + "cfg-if", + "libc", + "r-efi", + "wasi 0.14.2+wasi-0.2.4", ] [[package]] @@ -3306,8 +3850,8 @@ version = "0.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ea1015b5a70616b688dc230cfe50c8af89d972cb132d5a622814d29773b10b9" dependencies = [ - "rand", - "rand_core", + "rand 0.8.5", + "rand_core 0.6.4", ] [[package]] @@ -3368,7 +3912,7 @@ dependencies = [ "parking_lot 0.12.3", "portable-atomic", "quanta", - "rand", + "rand 0.8.5", "smallvec", "spinning_top", ] @@ -3380,7 +3924,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" dependencies = [ "ff", - "rand_core", + "rand_core 0.6.4", "subtle 2.6.1", ] @@ -3396,7 +3940,7 @@ dependencies = [ "futures-sink", "futures-util", "http 0.2.12", - "indexmap 2.6.0", + "indexmap 2.9.0", "slab", "tokio", "tokio-util", @@ -3415,7 +3959,7 @@ dependencies = [ "futures-core", "futures-sink", "http 1.1.0", - "indexmap 2.6.0", + "indexmap 2.9.0", "slab", "tokio", "tokio-util", @@ -3439,7 +3983,7 @@ dependencies = [ "pest_derive", "serde", "serde_json", - "thiserror", + "thiserror 1.0.64", ] [[package]] @@ -3483,6 +4027,7 @@ checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" dependencies = [ "ahash 0.8.11", "allocator-api2", + "serde", ] [[package]] @@ -3560,19 +4105,64 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46" [[package]] -name = "hkdf" -version = "0.12.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7" -dependencies = [ - "hmac 0.12.1", -] - -[[package]] -name = "hmac" -version = "0.8.1" +name = "hickory-proto" +version = "0.24.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840" +checksum = "92652067c9ce6f66ce53cc38d1169daa36e6e7eb7dd3b63b5103bd9d97117248" +dependencies = [ + "async-trait", + "cfg-if", + "data-encoding", + "enum-as-inner 0.6.1", + "futures-channel", + "futures-io", + "futures-util", + "idna 1.0.3", + "ipnet", + "once_cell", + "rand 0.8.5", + "thiserror 1.0.64", + "tinyvec", + "tokio", + "tracing", + "url", +] + +[[package]] +name = "hickory-resolver" +version = "0.24.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbb117a1ca520e111743ab2f6688eddee69db4e0ea242545a604dce8a66fd22e" +dependencies = [ + "cfg-if", + "futures-util", + "hickory-proto", + "ipconfig", + "lru-cache", + "once_cell", + "parking_lot 0.12.3", + "rand 0.8.5", + "resolv-conf", + "smallvec", + "thiserror 1.0.64", + "tokio", + "tracing", +] + +[[package]] +name = "hkdf" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7" +dependencies = [ + "hmac 0.12.1", +] + +[[package]] +name = "hmac" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840" dependencies = [ "crypto-mac 0.8.0", "digest 0.9.0", @@ -3598,15 +4188,6 @@ dependencies = [ "hmac 0.8.1", ] -[[package]] -name = "home" -version = "0.5.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5" -dependencies = [ - "windows-sys 0.52.0", -] - [[package]] name = "hostname" version = "0.3.1" @@ -3709,7 +4290,7 @@ dependencies = [ "httpdate", "itoa", "pin-project-lite", - "socket2 0.5.7", + "socket2 0.4.10", "tokio", "tower-service", "tracing", @@ -3734,6 +4315,7 @@ dependencies = [ "pin-project-lite", "smallvec", "tokio", + "want", ] [[package]] @@ -3747,9 +4329,27 @@ dependencies = [ "hyper 0.14.30", "log", "rustls 0.21.12", - "rustls-native-certs", + "rustls-native-certs 0.6.3", + "tokio", + "tokio-rustls 0.24.1", +] + +[[package]] +name = "hyper-rustls" +version = "0.27.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03a01595e11bdcec50946522c32dde3fc6914743000a68b93000965f2f02406d" +dependencies = [ + "http 1.1.0", + "hyper 1.5.0", + "hyper-util", + "log", + "rustls 0.23.27", + "rustls-native-certs 0.8.1", + "rustls-pki-types", "tokio", - "tokio-rustls", + "tokio-rustls 0.26.2", + "tower-service", ] [[package]] @@ -3759,13 +4359,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df2dcfbe0677734ab2f3ffa7fa7bfd4706bfdc1ef393f2ee30184aed67e631b4" dependencies = [ "bytes", + "futures-channel", "futures-util", "http 1.1.0", "http-body 1.0.1", "hyper 1.5.0", "pin-project-lite", + "socket2 0.5.9", "tokio", "tower-service", + "tracing", ] [[package]] @@ -3791,6 +4394,92 @@ dependencies = [ "cc", ] +[[package]] +name = "icu_collections" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "200072f5d0e3614556f94a9930d5dc3e0662a652823904c3a75dc3b0af7fee47" +dependencies = [ + "displaydoc", + "potential_utf", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cde2700ccaed3872079a65fb1a78f6c0a36c91570f28755dda67bc8f7d9f00a" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "436880e8e18df4d7bbc06d58432329d6458cc84531f7ac5f024e93deadb37979" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00210d6893afc98edb752b664b8890f0ef174c8adbb8d0be9710fa66fbbf72d3" + +[[package]] +name = "icu_properties" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "016c619c1eeb94efb86809b015c58f479963de65bdb6253345c1a1276f22e32b" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "potential_utf", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "298459143998310acd25ffe6810ed544932242d3f07083eee1084d83a71bd632" + +[[package]] +name = "icu_provider" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03c80da27b5f4187909049ee2d72f276f0d9f99a42c306bd0131ecfe04d8e5af" +dependencies = [ + "displaydoc", + "icu_locale_core", + "stable_deref_trait", + "tinystr", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + [[package]] name = "ident_case" version = "1.0.1" @@ -3820,12 +4509,23 @@ dependencies = [ [[package]] name = "idna" -version = "0.5.0" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" +checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" dependencies = [ - "unicode-bidi", - "unicode-normalization", + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344" +dependencies = [ + "icu_normalizer", + "icu_properties", ] [[package]] @@ -3845,7 +4545,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6b0422c86d7ce0e97169cc42e04ae643caf278874a7a3c87b8150a220dc7e1e" dependencies = [ "async-io", - "core-foundation", + "core-foundation 0.9.4", "fnv", "futures", "if-addrs", @@ -3870,7 +4570,7 @@ dependencies = [ "http 0.2.12", "hyper 0.14.30", "log", - "rand", + "rand 0.8.5", "tokio", "url", "xmltree", @@ -3885,13 +4585,42 @@ dependencies = [ "parity-scale-codec", ] +[[package]] +name = "impl-codec" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d40b9d5e17727407e55028eafc22b2dc68781786e6d7eb8a21103f5058e3a14" +dependencies = [ + "parity-scale-codec", +] + +[[package]] +name = "impl-num-traits" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "803d15461ab0dcc56706adf266158acbc44ccf719bf7d0af30705f58b90a4b8c" +dependencies = [ + "integer-sqrt", + "num-traits", + "uint 0.10.0", +] + [[package]] name = "impl-rlp" version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f28220f89297a075ddc7245cd538076ee98b01f2a9c23a53a4f1105d5a322808" dependencies = [ - "rlp", + "rlp 0.5.2", +] + +[[package]] +name = "impl-rlp" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54ed8ad1f3877f7e775b8cbf30ed1bd3209a95401817f19a0eb4402d13f8cf90" +dependencies = [ + "rlp 0.6.1", ] [[package]] @@ -3903,15 +4632,24 @@ dependencies = [ "serde", ] +[[package]] +name = "impl-serde" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a143eada6a1ec4aefa5049037a26a6d597bfd64f8c026d07b77133e02b7dd0b" +dependencies = [ + "serde", +] + [[package]] name = "impl-trait-for-tuples" -version = "0.2.2" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11d7a9f6330b71fea57921c9b61c47ee6e84f72d394754eff6163ae67e7395eb" +checksum = "a0eb5a3343abf848c0984fe4604b2b105da9539376e24fc0a3b0007411ae4fd9" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.101", ] [[package]] @@ -3946,14 +4684,20 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.6.0" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da" +checksum = "cea70ddb795996207ad57735b50c5982d8844f38ba9ee5f1aedcfb708a2aa11e" dependencies = [ "equivalent", "hashbrown 0.15.2", ] +[[package]] +name = "indexmap-nostd" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e04e2fd2b8188ea827b32ef11de88377086d690286ab35747ef7f9bf3ccb590" + [[package]] name = "inout" version = "0.1.3" @@ -4004,7 +4748,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b58db92f96b720de98181bbbe63c831e87005ab460c1bf306eb2622b4707997f" dependencies = [ - "socket2 0.5.7", + "socket2 0.5.9", "widestring", "windows-sys 0.48.0", "winreg", @@ -4066,6 +4810,26 @@ version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" +[[package]] +name = "jni" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6df18c2e3db7e453d3c6ac5b3e9d5182664d28788126d39b91f2d1e22b017ec" +dependencies = [ + "cesu8", + "combine", + "jni-sys", + "log", + "thiserror 1.0.64", + "walkdir", +] + +[[package]] +name = "jni-sys" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" + [[package]] name = "jobserver" version = "0.1.32" @@ -4084,20 +4848,132 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "jsonrpsee" +version = "0.22.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfdb12a2381ea5b2e68c3469ec604a007b367778cdb14d09612c8069ebd616ad" +dependencies = [ + "jsonrpsee-client-transport 0.22.5", + "jsonrpsee-core 0.22.5", + "jsonrpsee-http-client", + "jsonrpsee-types 0.22.5", +] + +[[package]] +name = "jsonrpsee" +version = "0.23.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62b089779ad7f80768693755a031cc14a7766aba707cbe886674e3f79e9b7e47" +dependencies = [ + "jsonrpsee-core 0.23.2", + "jsonrpsee-types 0.23.2", + "jsonrpsee-ws-client", +] + [[package]] name = "jsonrpsee" version = "0.24.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c5c71d8c1a731cc4227c2f698d377e7848ca12c8a48866fc5e6951c43a4db843" dependencies = [ - "jsonrpsee-core", + "jsonrpsee-core 0.24.7", "jsonrpsee-proc-macros", "jsonrpsee-server", - "jsonrpsee-types", + "jsonrpsee-types 0.24.7", "tokio", "tracing", ] +[[package]] +name = "jsonrpsee-client-transport" +version = "0.22.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4978087a58c3ab02efc5b07c5e5e2803024536106fd5506f558db172c889b3aa" +dependencies = [ + "futures-util", + "http 0.2.12", + "jsonrpsee-core 0.22.5", + "pin-project", + "rustls-native-certs 0.7.3", + "rustls-pki-types", + "soketto 0.7.1", + "thiserror 1.0.64", + "tokio", + "tokio-rustls 0.25.0", + "tokio-util", + "tracing", + "url", +] + +[[package]] +name = "jsonrpsee-client-transport" +version = "0.23.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08163edd8bcc466c33d79e10f695cdc98c00d1e6ddfb95cec41b6b0279dd5432" +dependencies = [ + "base64 0.22.1", + "futures-util", + "http 1.1.0", + "jsonrpsee-core 0.23.2", + "pin-project", + "rustls 0.23.27", + "rustls-pki-types", + "rustls-platform-verifier", + "soketto 0.8.0", + "thiserror 1.0.64", + "tokio", + "tokio-rustls 0.26.2", + "tokio-util", + "tracing", + "url", +] + +[[package]] +name = "jsonrpsee-core" +version = "0.22.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4b257e1ec385e07b0255dde0b933f948b5c8b8c28d42afda9587c3a967b896d" +dependencies = [ + "anyhow", + "async-trait", + "beef", + "futures-timer", + "futures-util", + "hyper 0.14.30", + "jsonrpsee-types 0.22.5", + "pin-project", + "rustc-hash 1.1.0", + "serde", + "serde_json", + "thiserror 1.0.64", + "tokio", + "tokio-stream", + "tracing", +] + +[[package]] +name = "jsonrpsee-core" +version = "0.23.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79712302e737d23ca0daa178e752c9334846b08321d439fd89af9a384f8c830b" +dependencies = [ + "anyhow", + "async-trait", + "beef", + "futures-timer", + "futures-util", + "jsonrpsee-types 0.23.2", + "pin-project", + "rustc-hash 1.1.0", + "serde", + "serde_json", + "thiserror 1.0.64", + "tokio", + "tokio-stream", + "tracing", +] + [[package]] name = "jsonrpsee-core" version = "0.24.7" @@ -4110,17 +4986,37 @@ dependencies = [ "http 1.1.0", "http-body 1.0.1", "http-body-util", - "jsonrpsee-types", + "jsonrpsee-types 0.24.7", "parking_lot 0.12.3", - "rand", + "rand 0.8.5", "rustc-hash 2.0.0", "serde", "serde_json", - "thiserror", + "thiserror 1.0.64", "tokio", "tracing", ] +[[package]] +name = "jsonrpsee-http-client" +version = "0.22.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ccf93fc4a0bfe05d851d37d7c32b7f370fe94336b52a2f0efc5f1981895c2e5" +dependencies = [ + "async-trait", + "hyper 0.14.30", + "hyper-rustls 0.24.2", + "jsonrpsee-core 0.22.5", + "jsonrpsee-types 0.22.5", + "serde", + "serde_json", + "thiserror 1.0.64", + "tokio", + "tower", + "tracing", + "url", +] + [[package]] name = "jsonrpsee-proc-macros" version = "0.24.7" @@ -4131,7 +5027,7 @@ dependencies = [ "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -4146,14 +5042,14 @@ dependencies = [ "http-body-util", "hyper 1.5.0", "hyper-util", - "jsonrpsee-core", - "jsonrpsee-types", + "jsonrpsee-core 0.24.7", + "jsonrpsee-types 0.24.7", "pin-project", "route-recognizer", "serde", "serde_json", - "soketto", - "thiserror", + "soketto 0.8.0", + "thiserror 1.0.64", "tokio", "tokio-stream", "tokio-util", @@ -4161,6 +5057,32 @@ dependencies = [ "tracing", ] +[[package]] +name = "jsonrpsee-types" +version = "0.22.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "150d6168405890a7a3231a3c74843f58b8959471f6df76078db2619ddee1d07d" +dependencies = [ + "anyhow", + "beef", + "serde", + "serde_json", + "thiserror 1.0.64", +] + +[[package]] +name = "jsonrpsee-types" +version = "0.23.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c465fbe385238e861fdc4d1c85e04ada6c1fd246161d26385c1b311724d2af" +dependencies = [ + "beef", + "http 1.1.0", + "serde", + "serde_json", + "thiserror 1.0.64", +] + [[package]] name = "jsonrpsee-types" version = "0.24.7" @@ -4170,7 +5092,20 @@ dependencies = [ "http 1.1.0", "serde", "serde_json", - "thiserror", + "thiserror 1.0.64", +] + +[[package]] +name = "jsonrpsee-ws-client" +version = "0.23.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c28759775f5cb2f1ea9667672d3fe2b0e701d1f4b7b67954e60afe7fd058b5e" +dependencies = [ + "http 1.1.0", + "jsonrpsee-client-transport 0.23.2", + "jsonrpsee-core 0.23.2", + "jsonrpsee-types 0.23.2", + "url", ] [[package]] @@ -4196,6 +5131,16 @@ dependencies = [ "cpufeatures", ] +[[package]] +name = "keccak-hash" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b286e6b663fb926e1eeb68528e69cb70ed46c6d65871a21b2215ae8154c6d3c" +dependencies = [ + "primitive-types 0.12.2", + "tiny-keccak", +] + [[package]] name = "keystream" version = "1.0.0" @@ -4279,7 +5224,7 @@ dependencies = [ "either", "futures", "futures-timer", - "getrandom", + "getrandom 0.2.15", "instant", "libp2p-allow-block-list", "libp2p-connection-limits", @@ -4303,7 +5248,7 @@ dependencies = [ "multiaddr 0.18.2", "pin-project", "rw-stream-sink", - "thiserror", + "thiserror 1.0.64", ] [[package]] @@ -4350,10 +5295,10 @@ dependencies = [ "parking_lot 0.12.3", "pin-project", "quick-protobuf", - "rand", + "rand 0.8.5", "rw-stream-sink", "smallvec", - "thiserror", + "thiserror 1.0.64", "unsigned-varint 0.7.2", "void", ] @@ -4393,7 +5338,7 @@ dependencies = [ "quick-protobuf", "quick-protobuf-codec", "smallvec", - "thiserror", + "thiserror 1.0.64", "void", ] @@ -4403,14 +5348,14 @@ version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "55cca1eb2bc1fd29f099f3daaab7effd01e1a54b7c577d0ed082521034d912e8" dependencies = [ - "bs58 0.5.1", + "bs58", "ed25519-dalek", "hkdf", "multihash 0.19.2", "quick-protobuf", - "rand", + "rand 0.8.5", "sha2 0.10.8", - "thiserror", + "thiserror 1.0.64", "tracing", "zeroize", ] @@ -4421,7 +5366,7 @@ version = "0.44.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "16ea178dabba6dde6ffc260a8e0452ccdc8f79becf544946692fff9d412fc29d" dependencies = [ - "arrayvec", + "arrayvec 0.7.6", "asynchronous-codec", "bytes", "either", @@ -4435,11 +5380,11 @@ dependencies = [ "log", "quick-protobuf", "quick-protobuf-codec", - "rand", + "rand 0.8.5", "sha2 0.10.8", "smallvec", - "thiserror", - "uint", + "thiserror 1.0.64", + "uint 0.9.5", "unsigned-varint 0.7.2", "void", ] @@ -4457,9 +5402,9 @@ dependencies = [ "libp2p-identity", "libp2p-swarm", "log", - "rand", + "rand 0.8.5", "smallvec", - "socket2 0.5.7", + "socket2 0.5.9", "tokio", "trust-dns-proto 0.22.0", "void", @@ -4498,11 +5443,11 @@ dependencies = [ "multihash 0.19.2", "once_cell", "quick-protobuf", - "rand", + "rand 0.8.5", "sha2 0.10.8", "snow", "static_assertions", - "thiserror", + "thiserror 1.0.64", "x25519-dalek", "zeroize", ] @@ -4521,7 +5466,7 @@ dependencies = [ "libp2p-identity", "libp2p-swarm", "log", - "rand", + "rand 0.8.5", "void", ] @@ -4540,12 +5485,12 @@ dependencies = [ "libp2p-tls", "log", "parking_lot 0.12.3", - "quinn 0.10.2", - "rand", + "quinn", + "rand 0.8.5", "ring 0.16.20", "rustls 0.21.12", - "socket2 0.5.7", - "thiserror", + "socket2 0.5.9", + "thiserror 1.0.64", "tokio", ] @@ -4562,7 +5507,7 @@ dependencies = [ "libp2p-identity", "libp2p-swarm", "log", - "rand", + "rand 0.8.5", "smallvec", "void", ] @@ -4584,7 +5529,7 @@ dependencies = [ "log", "multistream-select", "once_cell", - "rand", + "rand 0.8.5", "smallvec", "tokio", "void", @@ -4600,7 +5545,7 @@ dependencies = [ "proc-macro-warning 0.4.2", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -4616,7 +5561,7 @@ dependencies = [ "libp2p-core", "libp2p-identity", "log", - "socket2 0.5.7", + "socket2 0.5.9", "tokio", ] @@ -4633,8 +5578,8 @@ dependencies = [ "rcgen", "ring 0.16.20", "rustls 0.21.12", - "rustls-webpki", - "thiserror", + "rustls-webpki 0.101.7", + "thiserror 1.0.64", "x509-parser 0.15.1", "yasna", ] @@ -4684,10 +5629,10 @@ dependencies = [ "parking_lot 0.12.3", "pin-project-lite", "rw-stream-sink", - "soketto", - "thiserror", + "soketto 0.8.0", + "thiserror 1.0.64", "url", - "webpki-roots", + "webpki-roots 0.25.4", ] [[package]] @@ -4699,8 +5644,8 @@ dependencies = [ "futures", "libp2p-core", "log", - "thiserror", - "yamux", + "thiserror 1.0.64", + "yamux 0.12.1", ] [[package]] @@ -4742,7 +5687,7 @@ dependencies = [ "libsecp256k1-core", "libsecp256k1-gen-ecmult", "libsecp256k1-gen-genmult", - "rand", + "rand 0.8.5", "serde", "sha2 0.9.9", "typenum 1.17.0", @@ -4856,57 +5801,55 @@ dependencies = [ "keystream", ] +[[package]] +name = "litemap" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "241eaef5fd12c88705a01fc1066c48c4b36e0dd4377dcdc7ec3942cea7a69956" + [[package]] name = "litep2p" -version = "0.6.2" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f46c51c205264b834ceed95c8b195026e700494bc3991aaba3b4ea9e20626d9" +checksum = "d71056c23c896bb0e18113b2d2f1989be95135e6bdeedb0b757422ee21a073eb" dependencies = [ "async-trait", - "bs58 0.4.0", + "bs58", "bytes", - "cid 0.10.1", + "cid 0.11.1", "ed25519-dalek", "futures", "futures-timer", - "hex-literal", - "indexmap 2.6.0", + "hickory-resolver", + "indexmap 2.9.0", "libc", - "mockall 0.12.1", + "mockall 0.13.1", "multiaddr 0.17.1", "multihash 0.17.0", "network-interface", - "nohash-hasher", "parking_lot 0.12.3", "pin-project", - "prost 0.12.6", - "prost-build 0.11.9", - "quinn 0.9.4", - "rand", - "rcgen", - "ring 0.16.20", - "rustls 0.20.9", + "prost 0.13.5", + "prost-build", + "rand 0.8.5", "serde", "sha2 0.10.8", "simple-dns", "smallvec", "snow", - "socket2 0.5.7", - "static_assertions", - "str0m", - "thiserror", + "socket2 0.5.9", + "thiserror 2.0.12", "tokio", "tokio-stream", "tokio-tungstenite", "tokio-util", "tracing", - "trust-dns-resolver", - "uint", + "uint 0.10.0", "unsigned-varint 0.8.0", "url", - "webpki", "x25519-dalek", - "x509-parser 0.16.0", + "x509-parser 0.17.0", + "yamux 0.13.5", "yasna", "zeroize", ] @@ -4991,7 +5934,7 @@ dependencies = [ "macro_magic_core", "macro_magic_macros", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -5005,7 +5948,7 @@ dependencies = [ "macro_magic_core_macros", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -5016,7 +5959,7 @@ checksum = "b02abfe41815b5bd98dbd4260173db2c116dda171dc0fe7838cb206333b83308" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -5027,7 +5970,7 @@ checksum = "73ea28ee64b88876bf45277ed9a5817c1817df061a74f2b988971a12570e5869" dependencies = [ "macro_magic_core", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -5114,13 +6057,13 @@ dependencies = [ [[package]] name = "merkleized-metadata" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f313fcff1d2a4bcaa2deeaa00bf7530d77d5f7bd0467a117dde2e29a75a7a17a" +checksum = "38c592efaf1b3250df14c8f3c2d952233f0302bb81d3586db2f303666c1cd607" dependencies = [ "array-bytes", "blake3", - "frame-metadata", + "frame-metadata 18.0.0", "parity-scale-codec", "scale-decode", "scale-info", @@ -5134,7 +6077,7 @@ checksum = "58c38e2799fc0978b65dfff8023ec7843e2330bb462f19198840b34b6582397d" dependencies = [ "byteorder", "keccak", - "rand_core", + "rand_core 0.6.4", "zeroize", ] @@ -5161,7 +6104,7 @@ checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec" dependencies = [ "hermit-abi 0.3.9", "libc", - "wasi", + "wasi 0.11.0+wasi-snapshot-preview1", "windows-sys 0.52.0", ] @@ -5172,7 +6115,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "daa3eb39495d8e2e2947a1d862852c90cc6a4a8845f8b41c8829cb9fcc047f4a" dependencies = [ "arrayref", - "arrayvec", + "arrayvec 0.7.6", "bitflags 1.3.2", "blake2 0.10.6", "c2-chacha", @@ -5182,11 +6125,11 @@ dependencies = [ "lioness", "log", "parking_lot 0.12.3", - "rand", - "rand_chacha", + "rand 0.8.5", + "rand_chacha 0.3.1", "rand_distr", "subtle 2.6.1", - "thiserror", + "thiserror 1.0.64", "zeroize", ] @@ -5207,15 +6150,14 @@ dependencies = [ [[package]] name = "mockall" -version = "0.12.1" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43766c2b5203b10de348ffe19f7e54564b64f3d6018ff7648d1e2d6d3a0f0a48" +checksum = "39a6bfcc6c8c7eed5ee98b9c3e33adc726054389233e201c95dab2d41a3839d2" dependencies = [ "cfg-if", "downcast", "fragile", - "lazy_static", - "mockall_derive 0.12.1", + "mockall_derive 0.13.1", "predicates 3.1.2", "predicates-tree", ] @@ -5234,14 +6176,14 @@ dependencies = [ [[package]] name = "mockall_derive" -version = "0.12.1" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af7cbce79ec385a1d4f54baa90a76401eb15d9cab93685f62e7e9f942aa00ae2" +checksum = "25ca3004c2efe9011bd4e461bd8256445052b9615405b4f7ea43fc8ca5c20898" dependencies = [ "cfg-if", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -5287,34 +6229,17 @@ name = "multibase" version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b3539ec3c1f04ac9748a260728e855f261b4977f5c3406612c884564f329404" -dependencies = [ - "base-x", - "data-encoding", - "data-encoding-macro", -] - -[[package]] -name = "multihash" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "835d6ff01d610179fbce3de1694d007e500bf33a7f29689838941d6bf783ae40" -dependencies = [ - "blake2b_simd", - "blake2s_simd", - "blake3", - "core2", - "digest 0.10.7", - "multihash-derive", - "sha2 0.10.8", - "sha3", - "unsigned-varint 0.7.2", +dependencies = [ + "base-x", + "data-encoding", + "data-encoding-macro", ] [[package]] name = "multihash" -version = "0.18.1" +version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfd8a792c1694c6da4f68db0a9d707c72bd260994da179e6030a5dcee00bb815" +checksum = "835d6ff01d610179fbce3de1694d007e500bf33a7f29689838941d6bf783ae40" dependencies = [ "blake2b_simd", "blake2s_simd", @@ -5395,7 +6320,7 @@ checksum = "254a5372af8fc138e36684761d3c0cdb758a4410e938babcff1c860ce14ddbfc" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -5404,9 +6329,15 @@ version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7bddcd3bf5144b6392de80e04c347cd7fab2508f6df16a85fc496ecd5cec39bc" dependencies = [ - "rand", + "rand 0.8.5", ] +[[package]] +name = "nanorand" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a51313c5820b0b02bd422f4b44776fbf47961755c74ce64afc73bfad10226c3" + [[package]] name = "native-tls" version = "0.2.12" @@ -5419,7 +6350,7 @@ dependencies = [ "openssl-probe", "openssl-sys", "schannel", - "security-framework", + "security-framework 2.11.1", "security-framework-sys", "tempfile", ] @@ -5472,7 +6403,7 @@ dependencies = [ "anyhow", "byteorder", "paste", - "thiserror", + "thiserror 1.0.64", ] [[package]] @@ -5486,7 +6417,7 @@ dependencies = [ "log", "netlink-packet-core", "netlink-sys", - "thiserror", + "thiserror 1.0.64", "tokio", ] @@ -5505,13 +6436,13 @@ dependencies = [ [[package]] name = "network-interface" -version = "1.1.4" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a43439bf756eed340bdf8feba761e2d50c7d47175d87545cd5cbe4a137c4d1" +checksum = "c3329f515506e4a2de3aa6e07027a6758e22e0f0e8eaf64fa47261cec2282602" dependencies = [ "cc", "libc", - "thiserror", + "thiserror 1.0.64", "winapi", ] @@ -5532,6 +6463,12 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b93853da6d84c2e3c7d730d6473e8817692dd89be387eb01b94d7f108ecb5b8c" +[[package]] +name = "no-std-net" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43794a0ace135be66a25d3ae77d41b91615fb68ae937f904090203e81f755b65" + [[package]] name = "node-subtensor" version = "4.0.0-dev" @@ -5555,7 +6492,7 @@ dependencies = [ "frame-system-rpc-runtime-api", "futures", "hex", - "jsonrpsee", + "jsonrpsee 0.24.7", "memmap2 0.9.5", "node-subtensor-runtime", "num-traits", @@ -5596,7 +6533,7 @@ dependencies = [ "sp-consensus-aura", "sp-consensus-grandpa", "sp-core", - "sp-crypto-ec-utils 0.14.0", + "sp-crypto-ec-utils 0.15.0", "sp-inherents", "sp-io", "sp-keyring", @@ -5612,7 +6549,7 @@ dependencies = [ "subtensor-custom-rpc", "subtensor-custom-rpc-runtime-api", "subtensor-runtime-common", - "thiserror", + "thiserror 1.0.64", ] [[package]] @@ -5626,14 +6563,14 @@ dependencies = [ "fp-self-contained", "frame-benchmarking", "frame-executive", - "frame-metadata", + "frame-metadata 16.0.0", "frame-metadata-hash-extension", "frame-support", "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", - "getrandom", + "getrandom 0.2.15", "hex", "log", "pallet-admin-utils", @@ -5668,7 +6605,7 @@ dependencies = [ "pallet-utility 38.0.0", "parity-scale-codec", "precompile-utils", - "rand_chacha", + "rand_chacha 0.3.1", "scale-info", "serde_json", "sha2 0.10.8", @@ -5683,8 +6620,8 @@ dependencies = [ "sp-offchain", "sp-runtime", "sp-session", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", - "sp-storage 21.0.0", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-storage 22.0.0", "sp-tracing 17.0.1", "sp-transaction-pool", "sp-version", @@ -5697,6 +6634,12 @@ dependencies = [ "w3f-bls", ] +[[package]] +name = "nodrop" +version = "0.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb" + [[package]] name = "nohash-hasher" version = "0.2.0" @@ -5786,7 +6729,7 @@ version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a652d9771a63711fd3c3deb670acfbe5c30a4072e664d7a3bf5a9e1056ac72c3" dependencies = [ - "arrayvec", + "arrayvec 0.7.6", "itoa", ] @@ -5859,7 +6802,7 @@ dependencies = [ "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -5903,11 +6846,11 @@ dependencies = [ [[package]] name = "oid-registry" -version = "0.7.1" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8d8034d9489cdaf79228eb9f6a3b8d7bb32ba00d6645ebd48eef4077ceb5bd9" +checksum = "12f40cff3dde1b6087cc5d5f5d4d65712f34016a03ed60e9c08dcc392736b5b7" dependencies = [ - "asn1-rs 0.6.2", + "asn1-rs 0.7.1", ] [[package]] @@ -5954,7 +6897,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -5963,15 +6906,6 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" -[[package]] -name = "openssl-src" -version = "300.4.0+3.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a709e02f2b4aca747929cca5ed248880847c650233cf8b8cdc48f40aaf4898a6" -dependencies = [ - "cc", -] - [[package]] name = "openssl-sys" version = "0.9.107" @@ -5980,7 +6914,6 @@ checksum = "8288979acd84749c744a9014b4382d42b8f7b2592847b5afb2ed29e5d16ede07" dependencies = [ "cc", "libc", - "openssl-src", "pkg-config", "vcpkg", ] @@ -5991,6 +6924,39 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" +[[package]] +name = "orchestra" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41f6bbacc8c189a3f2e45e0fd0436e5d97f194db888e721bdbc3973e7dbed4c2" +dependencies = [ + "async-trait", + "dyn-clonable", + "futures", + "futures-timer", + "orchestra-proc-macro", + "pin-project", + "prioritized-metered-channel", + "thiserror 1.0.64", + "tracing", +] + +[[package]] +name = "orchestra-proc-macro" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7b1d40dd8f367db3c65bec8d3dd47d4a604ee8874480738f93191bddab4e0e0" +dependencies = [ + "expander", + "indexmap 2.9.0", + "itertools 0.11.0", + "petgraph", + "proc-macro-crate 3.2.0", + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "overload" version = "0.1.1" @@ -6018,7 +6984,7 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", "sp-tracing 17.0.1", "sp-weights", "substrate-fixed", @@ -6027,8 +6993,8 @@ dependencies = [ [[package]] name = "pallet-aura" -version = "37.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "38.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "frame-support", "frame-system", @@ -6043,8 +7009,8 @@ dependencies = [ [[package]] name = "pallet-authorship" -version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "39.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "frame-support", "frame-system", @@ -6056,8 +7022,8 @@ dependencies = [ [[package]] name = "pallet-balances" -version = "39.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "40.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "docify", "frame-benchmarking", @@ -6072,7 +7038,7 @@ dependencies = [ [[package]] name = "pallet-base-fee" version = "1.0.0" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "fp-evm", "frame-support", @@ -6096,7 +7062,7 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", "subtensor-macros", ] @@ -6115,13 +7081,13 @@ dependencies = [ "pallet-drand", "pallet-subtensor", "parity-scale-codec", - "rand_chacha", + "rand_chacha 0.3.1", "scale-info", "sha2 0.10.8", "sp-core", "sp-io", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", "subtensor-macros", "tle", "w3f-bls", @@ -6142,7 +7108,7 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", "subtensor-macros", ] @@ -6182,10 +7148,10 @@ dependencies = [ [[package]] name = "pallet-ethereum" version = "4.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "ethereum", - "ethereum-types", + "ethereum-types 0.15.1", "evm", "fp-consensus", "fp-ethereum", @@ -6199,12 +7165,13 @@ dependencies = [ "scale-info", "sp-io", "sp-runtime", + "sp-version", ] [[package]] name = "pallet-evm" version = "6.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "environmental", "evm", @@ -6227,7 +7194,7 @@ dependencies = [ [[package]] name = "pallet-evm-chain-id" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "frame-support", "frame-system", @@ -6238,7 +7205,7 @@ dependencies = [ [[package]] name = "pallet-evm-precompile-modexp" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "fp-evm", "num", @@ -6247,7 +7214,7 @@ dependencies = [ [[package]] name = "pallet-evm-precompile-sha3fips" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "fp-evm", "tiny-keccak", @@ -6256,7 +7223,7 @@ dependencies = [ [[package]] name = "pallet-evm-precompile-simple" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "fp-evm", "ripemd", @@ -6265,8 +7232,8 @@ dependencies = [ [[package]] name = "pallet-grandpa" -version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "39.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "frame-benchmarking", "frame-support", @@ -6288,7 +7255,7 @@ dependencies = [ [[package]] name = "pallet-hotfix-sufficients" version = "1.0.0" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "frame-benchmarking", "frame-support", @@ -6302,8 +7269,8 @@ dependencies = [ [[package]] name = "pallet-insecure-randomness-collective-flip" -version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "27.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "frame-support", "frame-system", @@ -6315,8 +7282,8 @@ dependencies = [ [[package]] name = "pallet-membership" -version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "39.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "frame-benchmarking", "frame-support", @@ -6331,23 +7298,19 @@ dependencies = [ [[package]] name = "pallet-multisig" -version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "39.1.1" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", "log", "parity-scale-codec", + "polkadot-sdk-frame", "scale-info", - "sp-io", - "sp-runtime", ] [[package]] name = "pallet-preimage" -version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "39.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "frame-benchmarking", "frame-support", @@ -6379,16 +7342,12 @@ dependencies = [ [[package]] name = "pallet-proxy" -version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "39.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", "parity-scale-codec", + "polkadot-sdk-frame", "scale-info", - "sp-io", - "sp-runtime", ] [[package]] @@ -6404,14 +7363,14 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", "subtensor-macros", ] [[package]] name = "pallet-root-testing" -version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "15.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "frame-support", "frame-system", @@ -6424,16 +7383,16 @@ dependencies = [ [[package]] name = "pallet-safe-mode" -version = "19.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "20.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "docify", "frame-benchmarking", "frame-support", "frame-system", "pallet-balances", - "pallet-proxy 38.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", - "pallet-utility 38.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "pallet-proxy 39.1.0", + "pallet-utility 39.1.0", "parity-scale-codec", "scale-info", "sp-arithmetic", @@ -6442,8 +7401,8 @@ dependencies = [ [[package]] name = "pallet-scheduler" -version = "39.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "40.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "docify", "frame-benchmarking", @@ -6459,8 +7418,8 @@ dependencies = [ [[package]] name = "pallet-session" -version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "39.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "frame-support", "frame-system", @@ -6504,8 +7463,8 @@ dependencies = [ "pallet-utility 38.0.0", "parity-scale-codec", "parity-util-mem", - "rand", - "rand_chacha", + "rand 0.8.5", + "rand_chacha 0.3.1", "safe-math", "scale-info", "serde", @@ -6518,7 +7477,7 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", "sp-tracing 17.0.1", "sp-version", "substrate-fixed", @@ -6529,8 +7488,8 @@ dependencies = [ [[package]] name = "pallet-sudo" -version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "39.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "docify", "frame-benchmarking", @@ -6544,8 +7503,8 @@ dependencies = [ [[package]] name = "pallet-timestamp" -version = "37.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "docify", "frame-benchmarking", @@ -6557,15 +7516,16 @@ dependencies = [ "sp-inherents", "sp-io", "sp-runtime", - "sp-storage 21.0.0", + "sp-storage 22.0.0", "sp-timestamp", ] [[package]] name = "pallet-transaction-payment" -version = "38.0.2" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "39.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ + "frame-benchmarking", "frame-support", "frame-system", "parity-scale-codec", @@ -6578,10 +7538,10 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" -version = "41.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "42.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ - "jsonrpsee", + "jsonrpsee 0.24.7", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", "sp-api", @@ -6594,8 +7554,8 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" -version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "39.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -6625,8 +7585,8 @@ dependencies = [ [[package]] name = "pallet-utility" -version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "39.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "frame-benchmarking", "frame-support", @@ -6645,8 +7605,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4e69bf016dc406eff7d53a7d3f7cf1c2e72c82b9088aac1118591e36dd2cd3e9" dependencies = [ "bitcoin_hashes", - "rand", - "rand_core", + "rand 0.8.5", + "rand_core 0.6.4", "serde", "unicode-normalization", ] @@ -6666,37 +7626,39 @@ dependencies = [ "lz4", "memmap2 0.5.10", "parking_lot 0.12.3", - "rand", - "siphasher", + "rand 0.8.5", + "siphasher 0.3.11", "snap", "winapi", ] [[package]] name = "parity-scale-codec" -version = "3.6.12" +version = "3.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "306800abfa29c7f16596b5970a588435e3d5b3149683d00c12b699cc19f895ee" +checksum = "799781ae679d79a948e13d4824a40970bfa500058d245760dd857301059810fa" dependencies = [ - "arrayvec", + "arrayvec 0.7.6", "bitvec", "byte-slice-cast", "bytes", + "const_format", "impl-trait-for-tuples", "parity-scale-codec-derive", + "rustversion", "serde", ] [[package]] name = "parity-scale-codec-derive" -version = "3.6.12" +version = "3.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d830939c76d294956402033aee57a6da7b438f2294eb94864c37b0569053a42c" +checksum = "34b4653168b563151153c9e4c08ebed57fb8262bebfa79711552fa983c623e7a" dependencies = [ "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.101", ] [[package]] @@ -6706,13 +7668,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0d32c34f4f5ca7f9196001c0aba5a1f9a5a12382c8944b8b0f90233282d1e8f8" dependencies = [ "cfg-if", - "ethereum-types", + "ethereum-types 0.14.1", "hashbrown 0.12.3", "impl-trait-for-tuples", "lru 0.8.1", "parity-util-mem-derive", "parking_lot 0.12.3", - "primitive-types", + "primitive-types 0.12.2", "smallvec", "winapi", ] @@ -6801,7 +7763,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "346f04948ba92c43e8469c1ee6736c7563d71012b17d40745260fe106aac2166" dependencies = [ "base64ct", - "rand_core", + "rand_core 0.6.4", "subtle 2.6.1", ] @@ -6849,7 +7811,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fdbef9d1d47087a895abd220ed25eb4ad973a5e26f6a4367b038c25e28dfc2d9" dependencies = [ "memchr", - "thiserror", + "thiserror 1.0.64", "ucd-trie", ] @@ -6873,7 +7835,7 @@ dependencies = [ "pest_meta", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -6894,27 +7856,27 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" dependencies = [ "fixedbitset", - "indexmap 2.6.0", + "indexmap 2.9.0", ] [[package]] name = "pin-project" -version = "1.1.5" +version = "1.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6bf43b791c5b9e34c3d182969b4abb522f9343702850a2e57f460d00d09b4b3" +checksum = "677f1add503faace112b9f1373e43e9e054bfdd22ff1a63c1bc485eaec6a6a8a" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.1.5" +version = "1.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" +checksum = "6e918e4ff8c4549eb882f14b3a4bc8c8bc93de829416eacf579f1207a8fbf861" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -6930,21 +7892,253 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] -name = "pkcs8" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" +name = "piper" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96c8c490f422ef9a4efd2cb5b42b76c8613d7e7dfc1caf667b8a3350a5acc066" +dependencies = [ + "atomic-waker", + "fastrand", + "futures-io", +] + +[[package]] +name = "pkcs8" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" +dependencies = [ + "der", + "spki", +] + +[[package]] +name = "pkg-config" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2" + +[[package]] +name = "polkadot-core-primitives" +version = "16.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +dependencies = [ + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime", +] + +[[package]] +name = "polkadot-node-metrics" +version = "21.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +dependencies = [ + "bs58", + "futures", + "futures-timer", + "log", + "parity-scale-codec", + "polkadot-primitives", + "prioritized-metered-channel", + "sc-cli", + "sc-service", + "sc-tracing", + "substrate-prometheus-endpoint", + "tracing-gum", +] + +[[package]] +name = "polkadot-node-network-protocol" +version = "21.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +dependencies = [ + "async-channel 1.9.0", + "async-trait", + "bitvec", + "derive_more 0.99.18", + "fatality", + "futures", + "hex", + "parity-scale-codec", + "polkadot-node-primitives", + "polkadot-primitives", + "rand 0.8.5", + "sc-authority-discovery", + "sc-network", + "sc-network-types", + "sp-runtime", + "strum 0.26.3", + "thiserror 1.0.64", + "tracing-gum", +] + +[[package]] +name = "polkadot-node-primitives" +version = "17.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +dependencies = [ + "bitvec", + "bounded-vec", + "futures", + "futures-timer", + "parity-scale-codec", + "polkadot-parachain-primitives", + "polkadot-primitives", + "sc-keystore", + "schnorrkel", + "serde", + "sp-application-crypto", + "sp-consensus-babe", + "sp-consensus-slots", + "sp-core", + "sp-keystore", + "sp-maybe-compressed-blob", + "sp-runtime", + "thiserror 1.0.64", + "zstd 0.12.4", +] + +[[package]] +name = "polkadot-node-subsystem-types" +version = "21.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +dependencies = [ + "async-trait", + "bitvec", + "derive_more 0.99.18", + "fatality", + "futures", + "orchestra", + "polkadot-node-network-protocol", + "polkadot-node-primitives", + "polkadot-primitives", + "polkadot-statement-table", + "sc-client-api", + "sc-network", + "sc-network-types", + "sc-transaction-pool-api", + "smallvec", + "sp-api", + "sp-authority-discovery", + "sp-blockchain", + "sp-consensus-babe", + "sp-runtime", + "substrate-prometheus-endpoint", + "thiserror 1.0.64", +] + +[[package]] +name = "polkadot-overseer" +version = "21.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +dependencies = [ + "async-trait", + "futures", + "futures-timer", + "orchestra", + "parking_lot 0.12.3", + "polkadot-node-metrics", + "polkadot-node-network-protocol", + "polkadot-node-primitives", + "polkadot-node-subsystem-types", + "polkadot-primitives", + "sc-client-api", + "sp-api", + "sp-core", + "tikv-jemalloc-ctl", + "tracing-gum", +] + +[[package]] +name = "polkadot-parachain-primitives" +version = "15.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +dependencies = [ + "bounded-collections", + "derive_more 0.99.18", + "parity-scale-codec", + "polkadot-core-primitives", + "scale-info", + "serde", + "sp-core", + "sp-runtime", + "sp-weights", +] + +[[package]] +name = "polkadot-primitives" +version = "17.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +dependencies = [ + "bitvec", + "hex-literal", + "log", + "parity-scale-codec", + "polkadot-core-primitives", + "polkadot-parachain-primitives", + "scale-info", + "serde", + "sp-api", + "sp-application-crypto", + "sp-arithmetic", + "sp-authority-discovery", + "sp-consensus-slots", + "sp-core", + "sp-inherents", + "sp-io", + "sp-keystore", + "sp-runtime", + "sp-staking", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "thiserror 1.0.64", +] + +[[package]] +name = "polkadot-sdk-frame" +version = "0.8.1" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +dependencies = [ + "docify", + "frame-benchmarking", + "frame-executive", + "frame-support", + "frame-system", + "frame-system-benchmarking", + "frame-system-rpc-runtime-api", + "frame-try-runtime", + "log", + "parity-scale-codec", + "scale-info", + "sp-api", + "sp-arithmetic", + "sp-block-builder", + "sp-consensus-aura", + "sp-consensus-grandpa", + "sp-core", + "sp-genesis-builder", + "sp-inherents", + "sp-io", + "sp-keyring", + "sp-offchain", + "sp-runtime", + "sp-session", + "sp-storage 22.0.0", + "sp-transaction-pool", + "sp-version", +] + +[[package]] +name = "polkadot-statement-table" +version = "17.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ - "der", - "spki", + "parity-scale-codec", + "polkadot-primitives", + "sp-core", + "tracing-gum", ] -[[package]] -name = "pkg-config" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2" - [[package]] name = "polkavm" version = "0.9.3" @@ -6994,7 +8188,7 @@ dependencies = [ "polkavm-common", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -7004,7 +8198,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ba81f7b5faac81e528eb6158a6f3c9e0bb1008e0ffa19653bc8dea925ecb429" dependencies = [ "polkavm-derive-impl", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -7072,6 +8266,15 @@ version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2" +[[package]] +name = "potential_utf" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5a7c30837279ca13e7c867e9e40053bc68740f988cb07f7ca6df43cc734b585" +dependencies = [ + "zerovec", +] + [[package]] name = "powerfmt" version = "0.2.0" @@ -7090,7 +8293,7 @@ dependencies = [ [[package]] name = "precompile-utils" version = "0.1.0" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "environmental", "evm", @@ -7114,15 +8317,15 @@ dependencies = [ [[package]] name = "precompile-utils-macro" version = "0.1.0" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" dependencies = [ "case", "num_enum", - "prettyplease 0.2.22", + "prettyplease", "proc-macro2", "quote", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", - "syn 1.0.109", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "syn 2.0.101", ] [[package]] @@ -7167,36 +8370,57 @@ dependencies = [ [[package]] name = "prettyplease" -version = "0.1.25" +version = "0.2.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c8646e95016a7a6c4adea95bafa8a16baab64b583356217f2c85db4a39d9a86" +checksum = "664ec5419c51e34154eec046ebcba56312d5a2fc3b09a06da188e1ad21afadf6" dependencies = [ "proc-macro2", - "syn 1.0.109", + "syn 2.0.101", ] [[package]] -name = "prettyplease" -version = "0.2.22" +name = "primitive-types" +version = "0.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "479cf940fbbb3426c32c5d5176f62ad57549a0bb84773423ba8be9d089f5faba" +checksum = "0b34d9fd68ae0b74a41b21c03c2f62847aa0ffea044eee893b4c140b37e244e2" dependencies = [ - "proc-macro2", - "syn 2.0.90", + "fixed-hash", + "impl-codec 0.6.0", + "impl-rlp 0.3.0", + "impl-serde 0.4.0", + "scale-info", + "uint 0.9.5", ] [[package]] name = "primitive-types" -version = "0.12.2" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b34d9fd68ae0b74a41b21c03c2f62847aa0ffea044eee893b4c140b37e244e2" +checksum = "d15600a7d856470b7d278b3fe0e311fe28c2526348549f8ef2ff7db3299c87f5" dependencies = [ "fixed-hash", - "impl-codec", - "impl-rlp", - "impl-serde", + "impl-codec 0.7.1", + "impl-num-traits", + "impl-rlp 0.4.0", + "impl-serde 0.5.0", "scale-info", - "uint", + "uint 0.10.0", +] + +[[package]] +name = "prioritized-metered-channel" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a172e6cc603231f2cf004232eabcecccc0da53ba576ab286ef7baa0cfc7927ad" +dependencies = [ + "coarsetime", + "crossbeam-queue", + "derive_more 0.99.18", + "futures", + "futures-timer", + "nanorand", + "thiserror 1.0.64", + "tracing", ] [[package]] @@ -7205,7 +8429,7 @@ version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e17d47ce914bf4de440332250b0edd23ce48c005f59fab39d3335866b114f11a" dependencies = [ - "thiserror", + "thiserror 1.0.64", "toml 0.5.11", ] @@ -7250,7 +8474,7 @@ checksum = "3d1eaa7fa0aa1929ffdf7eeb6eac234dde6268914a14ad44d23521ab6a9b258e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -7261,14 +8485,14 @@ checksum = "834da187cfe638ae8abb0203f0b33e5ccdb02a28e7199f2f47b3e2754f50edca" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] name = "proc-macro2" -version = "1.0.92" +version = "1.0.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0" +checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778" dependencies = [ "unicode-ident", ] @@ -7289,7 +8513,7 @@ dependencies = [ "quote", "regex", "sp-crypto-hashing 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -7303,7 +8527,7 @@ dependencies = [ "lazy_static", "memchr", "parking_lot 0.12.3", - "thiserror", + "thiserror 1.0.64", ] [[package]] @@ -7326,17 +8550,23 @@ checksum = "440f724eba9f6996b75d63681b0a92b06947f1457076d503a4d2e2c8f56442b8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] -name = "prost" -version = "0.11.9" +name = "proptest" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b82eaa1d779e9a4bc1c3217db8ffbeabaae1dca241bf70183242128d48681cd" +checksum = "14cae93065090804185d3b75f0bf93b8eeda30c7a9b4a33d3bdb3988d6229e50" dependencies = [ - "bytes", - "prost-derive 0.11.9", + "bitflags 2.6.0", + "lazy_static", + "num-traits", + "rand 0.8.5", + "rand_chacha 0.3.1", + "rand_xorshift", + "regex-syntax 0.8.5", + "unarray", ] [[package]] @@ -7350,90 +8580,68 @@ dependencies = [ ] [[package]] -name = "prost-build" -version = "0.11.9" +name = "prost" +version = "0.13.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "119533552c9a7ffacc21e099c24a0ac8bb19c2a2a3f363de84cd9b844feab270" +checksum = "2796faa41db3ec313a31f7624d9286acf277b52de526150b7e69f3debf891ee5" dependencies = [ "bytes", - "heck 0.4.1", - "itertools 0.10.5", - "lazy_static", - "log", - "multimap", - "petgraph", - "prettyplease 0.1.25", - "prost 0.11.9", - "prost-types 0.11.9", - "regex", - "syn 1.0.109", - "tempfile", - "which", + "prost-derive 0.13.5", ] [[package]] name = "prost-build" -version = "0.12.6" +version = "0.13.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22505a5c94da8e3b7c2996394d1c933236c4d743e81a410bcca4e6989fc066a4" +checksum = "be769465445e8c1474e9c5dac2018218498557af32d9ed057325ec9a41ae81bf" dependencies = [ - "bytes", "heck 0.5.0", "itertools 0.12.1", "log", "multimap", "once_cell", "petgraph", - "prettyplease 0.2.22", - "prost 0.12.6", - "prost-types 0.12.6", + "prettyplease", + "prost 0.13.5", + "prost-types", "regex", - "syn 2.0.90", + "syn 2.0.101", "tempfile", ] [[package]] name = "prost-derive" -version = "0.11.9" +version = "0.12.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5d2d8d10f3c6ded6da8b05b5fb3b8a5082514344d56c9f871412d29b4e075b4" +checksum = "81bddcdb20abf9501610992b6759a4c888aef7d1a7247ef75e2404275ac24af1" dependencies = [ "anyhow", - "itertools 0.10.5", + "itertools 0.12.1", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.101", ] [[package]] name = "prost-derive" -version = "0.12.6" +version = "0.13.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81bddcdb20abf9501610992b6759a4c888aef7d1a7247ef75e2404275ac24af1" +checksum = "8a56d757972c98b346a9b766e3f02746cde6dd1cd1d1d563472929fdd74bec4d" dependencies = [ "anyhow", "itertools 0.12.1", "proc-macro2", "quote", - "syn 2.0.90", -] - -[[package]] -name = "prost-types" -version = "0.11.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "213622a1460818959ac1181aaeb2dc9c7f63df720db7d788b3e24eacd1983e13" -dependencies = [ - "prost 0.11.9", + "syn 2.0.101", ] [[package]] name = "prost-types" -version = "0.12.6" +version = "0.13.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9091c90b0a32608e984ff2fa4091273cbdd755d54935c51d520887f4a1dbd5b0" +checksum = "52c2c1bf36ddb1a1c396b3601a3cec27c2462e45f07c386894ec3ccf5332bd16" dependencies = [ - "prost 0.12.6", + "prost 0.13.5", ] [[package]] @@ -7455,7 +8663,7 @@ dependencies = [ "libc", "once_cell", "raw-cpuid", - "wasi", + "wasi 0.11.0+wasi-snapshot-preview1", "web-sys", "winapi", ] @@ -7484,28 +8692,10 @@ dependencies = [ "asynchronous-codec", "bytes", "quick-protobuf", - "thiserror", + "thiserror 1.0.64", "unsigned-varint 0.7.2", ] -[[package]] -name = "quinn" -version = "0.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e8b432585672228923edbbf64b8b12c14e1112f62e88737655b4a083dbcd78e" -dependencies = [ - "bytes", - "pin-project-lite", - "quinn-proto 0.9.6", - "quinn-udp 0.3.2", - "rustc-hash 1.1.0", - "rustls 0.20.9", - "thiserror", - "tokio", - "tracing", - "webpki", -] - [[package]] name = "quinn" version = "0.10.2" @@ -7515,33 +8705,15 @@ dependencies = [ "bytes", "futures-io", "pin-project-lite", - "quinn-proto 0.10.6", - "quinn-udp 0.4.1", + "quinn-proto", + "quinn-udp", "rustc-hash 1.1.0", "rustls 0.21.12", - "thiserror", + "thiserror 1.0.64", "tokio", "tracing", ] -[[package]] -name = "quinn-proto" -version = "0.9.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94b0b33c13a79f669c85defaf4c275dc86a0c0372807d0ca3d78e0bb87274863" -dependencies = [ - "bytes", - "rand", - "ring 0.16.20", - "rustc-hash 1.1.0", - "rustls 0.20.9", - "slab", - "thiserror", - "tinyvec", - "tracing", - "webpki", -] - [[package]] name = "quinn-proto" version = "0.10.6" @@ -7549,29 +8721,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "141bf7dfde2fbc246bfd3fe12f2455aa24b0fbd9af535d8c86c7bd1381ff2b1a" dependencies = [ "bytes", - "rand", + "rand 0.8.5", "ring 0.16.20", "rustc-hash 1.1.0", "rustls 0.21.12", "slab", - "thiserror", + "thiserror 1.0.64", "tinyvec", "tracing", ] -[[package]] -name = "quinn-udp" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "641538578b21f5e5c8ea733b736895576d0fe329bb883b937db6f4d163dbaaf4" -dependencies = [ - "libc", - "quinn-proto 0.9.6", - "socket2 0.4.10", - "tracing", - "windows-sys 0.42.0", -] - [[package]] name = "quinn-udp" version = "0.4.1" @@ -7580,20 +8739,26 @@ checksum = "055b4e778e8feb9f93c4e439f71dc2156ef13360b432b799e179a8c4cdf0b1d7" dependencies = [ "bytes", "libc", - "socket2 0.5.7", + "socket2 0.5.9", "tracing", "windows-sys 0.48.0", ] [[package]] name = "quote" -version = "1.0.37" +version = "1.0.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" +checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d" dependencies = [ "proc-macro2", ] +[[package]] +name = "r-efi" +version = "5.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5" + [[package]] name = "radium" version = "0.7.0" @@ -7607,8 +8772,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "libc", - "rand_chacha", - "rand_core", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fbfd9d094a40bf3ae768db9361049ace4c0e04a4fd6b359518bd7b73a73dd97" +dependencies = [ + "rand_chacha 0.9.0", + "rand_core 0.9.3", ] [[package]] @@ -7618,7 +8793,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", - "rand_core", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core 0.9.3", ] [[package]] @@ -7627,7 +8812,16 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom", + "getrandom 0.2.15", +] + +[[package]] +name = "rand_core" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" +dependencies = [ + "getrandom 0.3.3", ] [[package]] @@ -7637,7 +8831,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32cb0b9bc82b0a0876c2dd994a7e7a2683d3e7390ca40e6886785ef0c7e3ee31" dependencies = [ "num-traits", - "rand", + "rand 0.8.5", ] [[package]] @@ -7646,7 +8840,16 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "59cad018caf63deb318e5a4586d99a24424a364f40f1e5778c29aca23f4fc73e" dependencies = [ - "rand_core", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_xorshift" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d25bf25ec5ae4a3f1b92f929810509a2f53d7dca2f50b794ff57e3face536c8f" +dependencies = [ + "rand_core 0.6.4", ] [[package]] @@ -7696,6 +8899,22 @@ dependencies = [ "yasna", ] +[[package]] +name = "reconnecting-jsonrpsee-ws-client" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06fa4f17e09edfc3131636082faaec633c7baa269396b4004040bc6c52f49f65" +dependencies = [ + "cfg_aliases 0.2.1", + "finito", + "futures", + "jsonrpsee 0.23.2", + "serde_json", + "thiserror 1.0.64", + "tokio", + "tracing", +] + [[package]] name = "redox_syscall" version = "0.2.16" @@ -7720,9 +8939,9 @@ version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" dependencies = [ - "getrandom", + "getrandom 0.2.15", "libredox", - "thiserror", + "thiserror 1.0.64", ] [[package]] @@ -7742,7 +8961,7 @@ checksum = "bcc303e793d3734489387d205e9b186fac9c6cfacedd98cbb2e8a5943595f3e6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -7857,7 +9076,7 @@ checksum = "70ac5d832aa16abd7d1def883a8545280c20a60f523a370aa3a9617c2b8550ee" dependencies = [ "cc", "cfg-if", - "getrandom", + "getrandom 0.2.15", "libc", "untrusted 0.9.0", "windows-sys 0.52.0", @@ -7877,6 +9096,16 @@ name = "rlp" version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bb919243f34364b6bd2fc10ef797edbfa75f33c252e7998527479c6d6b47e1ec" +dependencies = [ + "bytes", + "rustc-hex", +] + +[[package]] +name = "rlp" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa24e92bb2a83198bb76d661a71df9f7076b8c420b8696e4d3d97d50d94479e3" dependencies = [ "bytes", "rlp-derive", @@ -7885,13 +9114,13 @@ dependencies = [ [[package]] name = "rlp-derive" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e33d7b2abe0c340d8797fe2907d3f20d3b5ea5908683618bfe80df7f621f672a" +checksum = "652db34deaaa57929e10ca18e5454a32cb0efc351ae80d320334bbf907b908b3" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.101", ] [[package]] @@ -7932,7 +9161,7 @@ dependencies = [ "netlink-packet-route", "netlink-proto", "nix", - "thiserror", + "thiserror 1.0.64", "tokio", ] @@ -8026,25 +9255,43 @@ dependencies = [ [[package]] name = "rustls" -version = "0.20.9" +version = "0.21.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b80e3dec595989ea8510028f30c408a4630db12c9cbb8de34203b89d6577e99" +checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e" dependencies = [ - "ring 0.16.20", + "log", + "ring 0.17.13", + "rustls-webpki 0.101.7", "sct", - "webpki", ] [[package]] name = "rustls" -version = "0.21.12" +version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e" +checksum = "bf4ef73721ac7bcd79b2b315da7779d8fc09718c6b3d2d1b2d94850eb8c18432" dependencies = [ "log", "ring 0.17.13", - "rustls-webpki", - "sct", + "rustls-pki-types", + "rustls-webpki 0.102.8", + "subtle 2.6.1", + "zeroize", +] + +[[package]] +name = "rustls" +version = "0.23.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "730944ca083c1c233a75c09f199e973ca499344a2b7ba9e755c457e86fb4a321" +dependencies = [ + "log", + "once_cell", + "ring 0.17.13", + "rustls-pki-types", + "rustls-webpki 0.103.3", + "subtle 2.6.1", + "zeroize", ] [[package]] @@ -8054,27 +9301,119 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a9aace74cb666635c918e9c12bc0d348266037aa8eb599b5cba565709a8dff00" dependencies = [ "openssl-probe", - "rustls-pemfile", + "rustls-pemfile 1.0.4", + "schannel", + "security-framework 2.11.1", +] + +[[package]] +name = "rustls-native-certs" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5bfb394eeed242e909609f56089eecfe5fda225042e8b171791b9c95f5931e5" +dependencies = [ + "openssl-probe", + "rustls-pemfile 2.2.0", + "rustls-pki-types", + "schannel", + "security-framework 2.11.1", +] + +[[package]] +name = "rustls-native-certs" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7fcff2dd52b58a8d98a70243663a0d234c4e2b79235637849d15913394a247d3" +dependencies = [ + "openssl-probe", + "rustls-pki-types", "schannel", - "security-framework", + "security-framework 3.2.0", ] [[package]] name = "rustls-pemfile" version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" +checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" +dependencies = [ + "base64 0.21.7", +] + +[[package]] +name = "rustls-pemfile" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "rustls-pki-types" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "229a4a4c221013e7e1f1a043678c5cc39fe5171437c88fb47151a21e6f5b5c79" +dependencies = [ + "zeroize", +] + +[[package]] +name = "rustls-platform-verifier" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "afbb878bdfdf63a336a5e63561b1835e7a8c91524f51621db870169eac84b490" +dependencies = [ + "core-foundation 0.9.4", + "core-foundation-sys", + "jni", + "log", + "once_cell", + "rustls 0.23.27", + "rustls-native-certs 0.7.3", + "rustls-platform-verifier-android", + "rustls-webpki 0.102.8", + "security-framework 2.11.1", + "security-framework-sys", + "webpki-roots 0.26.11", + "winapi", +] + +[[package]] +name = "rustls-platform-verifier-android" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f" + +[[package]] +name = "rustls-webpki" +version = "0.101.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" +dependencies = [ + "ring 0.17.13", + "untrusted 0.9.0", +] + +[[package]] +name = "rustls-webpki" +version = "0.102.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9" dependencies = [ - "base64 0.21.7", + "ring 0.17.13", + "rustls-pki-types", + "untrusted 0.9.0", ] [[package]] name = "rustls-webpki" -version = "0.101.7" +version = "0.103.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" +checksum = "e4a72fe2bcf7a6ac6fd7d0b9e5cb68aeb7d4c0a0271730218b3e92d43b4eb435" dependencies = [ "ring 0.17.13", + "rustls-pki-types", "untrusted 0.9.0", ] @@ -8084,6 +9423,17 @@ version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" +[[package]] +name = "ruzstd" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58c4eb8a81997cf040a091d1f7e1938aeab6749d3a0dfa73af43cdc32393483d" +dependencies = [ + "byteorder", + "derive_more 0.99.18", + "twox-hash", +] + [[package]] name = "rw-stream-sink" version = "0.4.0" @@ -8106,7 +9456,7 @@ name = "safe-math" version = "0.1.0" dependencies = [ "num-traits", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", "substrate-fixed", ] @@ -8139,19 +9489,49 @@ dependencies = [ [[package]] name = "sc-allocator" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "30.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "log", "sp-core", "sp-wasm-interface 21.0.1", - "thiserror", + "thiserror 1.0.64", +] + +[[package]] +name = "sc-authority-discovery" +version = "0.48.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +dependencies = [ + "async-trait", + "futures", + "futures-timer", + "ip_network", + "libp2p", + "linked_hash_set", + "log", + "multihash 0.19.2", + "parity-scale-codec", + "prost 0.12.6", + "prost-build", + "rand 0.8.5", + "sc-client-api", + "sc-network", + "sc-network-types", + "sp-api", + "sp-authority-discovery", + "sp-blockchain", + "sp-core", + "sp-keystore", + "sp-runtime", + "substrate-prometheus-endpoint", + "thiserror 1.0.64", ] [[package]] name = "sc-basic-authorship" -version = "0.45.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.48.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "futures", "futures-timer", @@ -8172,8 +9552,8 @@ dependencies = [ [[package]] name = "sc-block-builder" -version = "0.42.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.43.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "parity-scale-codec", "sp-api", @@ -8187,8 +9567,8 @@ dependencies = [ [[package]] name = "sc-chain-spec" -version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "41.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "array-bytes", "docify", @@ -8204,7 +9584,7 @@ dependencies = [ "serde_json", "sp-blockchain", "sp-core", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", "sp-genesis-builder", "sp-io", "sp-runtime", @@ -8215,18 +9595,18 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "12.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] name = "sc-cli" -version = "0.47.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.50.1" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "array-bytes", "chrono", @@ -8239,7 +9619,7 @@ dependencies = [ "names", "parity-bip39", "parity-scale-codec", - "rand", + "rand 0.8.5", "regex", "rpassword", "sc-client-api", @@ -8250,6 +9630,7 @@ dependencies = [ "sc-service", "sc-telemetry", "sc-tracing", + "sc-transaction-pool", "sc-utils", "serde", "serde_json", @@ -8260,14 +9641,14 @@ dependencies = [ "sp-panic-handler", "sp-runtime", "sp-version", - "thiserror", + "thiserror 1.0.64", "tokio", ] [[package]] name = "sc-client-api" -version = "37.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "fnv", "futures", @@ -8282,19 +9663,19 @@ dependencies = [ "sp-consensus", "sp-core", "sp-database", - "sp-externalities 0.29.0", + "sp-externalities 0.30.0", "sp-runtime", "sp-state-machine", "sp-statement-store", - "sp-storage 21.0.0", + "sp-storage 22.0.0", "sp-trie", "substrate-prometheus-endpoint", ] [[package]] name = "sc-client-db" -version = "0.44.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.45.1" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "hash-db", "kvdb", @@ -8319,8 +9700,8 @@ dependencies = [ [[package]] name = "sc-consensus" -version = "0.44.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.47.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "async-trait", "futures", @@ -8338,13 +9719,13 @@ dependencies = [ "sp-runtime", "sp-state-machine", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.64", ] [[package]] name = "sc-consensus-aura" -version = "0.45.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.48.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "async-trait", "futures", @@ -8367,13 +9748,13 @@ dependencies = [ "sp-keystore", "sp-runtime", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.64", ] [[package]] name = "sc-consensus-babe" -version = "0.45.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.48.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "async-trait", "fork-tree", @@ -8398,18 +9779,18 @@ dependencies = [ "sp-consensus-babe", "sp-consensus-slots", "sp-core", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", "sp-inherents", "sp-keystore", "sp-runtime", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.64", ] [[package]] name = "sc-consensus-epochs" -version = "0.44.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.47.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "fork-tree", "parity-scale-codec", @@ -8421,8 +9802,8 @@ dependencies = [ [[package]] name = "sc-consensus-grandpa" -version = "0.30.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.33.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "ahash 0.8.11", "array-bytes", @@ -8435,7 +9816,7 @@ dependencies = [ "log", "parity-scale-codec", "parking_lot 0.12.3", - "rand", + "rand 0.8.5", "sc-block-builder", "sc-chain-spec", "sc-client-api", @@ -8456,21 +9837,21 @@ dependencies = [ "sp-consensus", "sp-consensus-grandpa", "sp-core", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", "sp-keystore", "sp-runtime", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.64", ] [[package]] name = "sc-consensus-grandpa-rpc" -version = "0.30.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.33.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "finality-grandpa", "futures", - "jsonrpsee", + "jsonrpsee 0.24.7", "log", "parity-scale-codec", "sc-client-api", @@ -8480,19 +9861,19 @@ dependencies = [ "sp-blockchain", "sp-core", "sp-runtime", - "thiserror", + "thiserror 1.0.64", ] [[package]] name = "sc-consensus-manual-seal" -version = "0.46.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.49.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "assert_matches", "async-trait", "futures", "futures-timer", - "jsonrpsee", + "jsonrpsee 0.24.7", "log", "parity-scale-codec", "sc-client-api", @@ -8515,13 +9896,13 @@ dependencies = [ "sp-runtime", "sp-timestamp", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.64", ] [[package]] name = "sc-consensus-slots" -version = "0.44.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.47.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "async-trait", "futures", @@ -8543,8 +9924,8 @@ dependencies = [ [[package]] name = "sc-executor" -version = "0.40.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.41.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "parity-scale-codec", "parking_lot 0.12.3", @@ -8554,10 +9935,10 @@ dependencies = [ "schnellru", "sp-api", "sp-core", - "sp-externalities 0.29.0", + "sp-externalities 0.30.0", "sp-io", "sp-panic-handler", - "sp-runtime-interface 28.0.0", + "sp-runtime-interface 29.0.0", "sp-trie", "sp-version", "sp-wasm-interface 21.0.1", @@ -8566,21 +9947,21 @@ dependencies = [ [[package]] name = "sc-executor-common" -version = "0.35.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.36.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "polkavm", "sc-allocator", "sp-maybe-compressed-blob", "sp-wasm-interface 21.0.1", - "thiserror", + "thiserror 1.0.64", "wasm-instrument", ] [[package]] name = "sc-executor-polkavm" -version = "0.32.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.33.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "log", "polkavm", @@ -8590,8 +9971,8 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" -version = "0.35.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.36.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "anyhow", "cfg-if", @@ -8601,15 +9982,15 @@ dependencies = [ "rustix 0.36.17", "sc-allocator", "sc-executor-common", - "sp-runtime-interface 28.0.0", + "sp-runtime-interface 29.0.0", "sp-wasm-interface 21.0.1", "wasmtime", ] [[package]] name = "sc-informant" -version = "0.44.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.47.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "console", "futures", @@ -8625,8 +10006,8 @@ dependencies = [ [[package]] name = "sc-keystore" -version = "33.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "34.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "array-bytes", "parking_lot 0.12.3", @@ -8634,16 +10015,16 @@ dependencies = [ "sp-application-crypto", "sp-core", "sp-keystore", - "thiserror", + "thiserror 1.0.64", ] [[package]] name = "sc-mixnet" -version = "0.15.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "array-bytes", - "arrayvec", + "arrayvec 0.7.6", "blake2 0.10.6", "bytes", "futures", @@ -8663,16 +10044,16 @@ dependencies = [ "sp-keystore", "sp-mixnet", "sp-runtime", - "thiserror", + "thiserror 1.0.64", ] [[package]] name = "sc-network" -version = "0.45.6" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.48.3" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "array-bytes", - "async-channel", + "async-channel 1.9.0", "async-trait", "asynchronous-codec", "bytes", @@ -8693,8 +10074,8 @@ dependencies = [ "partial_sort", "pin-project", "prost 0.12.6", - "prost-build 0.12.6", - "rand", + "prost-build", + "rand 0.8.5", "sc-client-api", "sc-network-common", "sc-network-types", @@ -8708,7 +10089,7 @@ dependencies = [ "sp-core", "sp-runtime", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.64", "tokio", "tokio-stream", "unsigned-varint 0.7.2", @@ -8719,15 +10100,15 @@ dependencies = [ [[package]] name = "sc-network-common" -version = "0.44.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.47.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "async-trait", "bitflags 1.3.2", "futures", "libp2p-identity", "parity-scale-codec", - "prost-build 0.12.6", + "prost-build", "sc-consensus", "sc-network-types", "sp-consensus", @@ -8737,8 +10118,8 @@ dependencies = [ [[package]] name = "sc-network-gossip" -version = "0.45.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.48.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "ahash 0.8.11", "futures", @@ -8756,42 +10137,41 @@ dependencies = [ [[package]] name = "sc-network-light" -version = "0.44.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.47.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "array-bytes", - "async-channel", + "async-channel 1.9.0", "futures", "log", "parity-scale-codec", "prost 0.12.6", - "prost-build 0.12.6", + "prost-build", "sc-client-api", "sc-network", "sc-network-types", "sp-blockchain", "sp-core", "sp-runtime", - "thiserror", + "thiserror 1.0.64", ] [[package]] name = "sc-network-sync" -version = "0.44.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.47.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "array-bytes", - "async-channel", + "async-channel 1.9.0", "async-trait", "fork-tree", "futures", "futures-timer", - "libp2p", "log", "mockall 0.11.4", "parity-scale-codec", "prost 0.12.6", - "prost-build 0.12.6", + "prost-build", "sc-client-api", "sc-consensus", "sc-network", @@ -8807,15 +10187,15 @@ dependencies = [ "sp-core", "sp-runtime", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.64", "tokio", "tokio-stream", ] [[package]] name = "sc-network-transactions" -version = "0.44.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.47.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "array-bytes", "futures", @@ -8833,39 +10213,42 @@ dependencies = [ [[package]] name = "sc-network-types" -version = "0.12.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.15.2" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ - "bs58 0.5.1", + "bs58", "ed25519-dalek", "libp2p-identity", "litep2p", "log", "multiaddr 0.18.2", "multihash 0.19.2", - "rand", - "thiserror", + "rand 0.8.5", + "thiserror 1.0.64", "zeroize", ] [[package]] name = "sc-offchain" -version = "40.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "43.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "array-bytes", "bytes", "fnv", "futures", "futures-timer", - "hyper 0.14.30", - "hyper-rustls", + "http-body-util", + "hyper 1.5.0", + "hyper-rustls 0.27.6", + "hyper-util", "log", "num_cpus", "once_cell", "parity-scale-codec", "parking_lot 0.12.3", - "rand", + "rand 0.8.5", + "rustls 0.23.27", "sc-client-api", "sc-network", "sc-network-common", @@ -8874,7 +10257,7 @@ dependencies = [ "sc-utils", "sp-api", "sp-core", - "sp-externalities 0.29.0", + "sp-externalities 0.30.0", "sp-keystore", "sp-offchain", "sp-runtime", @@ -8885,7 +10268,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.18.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -8893,11 +10276,11 @@ dependencies = [ [[package]] name = "sc-rpc" -version = "40.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "43.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "futures", - "jsonrpsee", + "jsonrpsee 0.24.7", "log", "parity-scale-codec", "parking_lot 0.12.3", @@ -8925,10 +10308,10 @@ dependencies = [ [[package]] name = "sc-rpc-api" -version = "0.44.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.47.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ - "jsonrpsee", + "jsonrpsee 0.24.7", "parity-scale-codec", "sc-chain-spec", "sc-mixnet", @@ -8940,13 +10323,13 @@ dependencies = [ "sp-rpc", "sp-runtime", "sp-version", - "thiserror", + "thiserror 1.0.64", ] [[package]] name = "sc-rpc-server" -version = "17.1.2" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "20.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "dyn-clone", "forwarded-header-value", @@ -8956,7 +10339,7 @@ dependencies = [ "http-body-util", "hyper 1.5.0", "ip_network", - "jsonrpsee", + "jsonrpsee 0.24.7", "log", "sc-rpc-api", "serde", @@ -8969,23 +10352,23 @@ dependencies = [ [[package]] name = "sc-rpc-spec-v2" -version = "0.45.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.48.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "array-bytes", "futures", "futures-util", "hex", - "jsonrpsee", + "itertools 0.11.0", + "jsonrpsee 0.24.7", "log", "parity-scale-codec", "parking_lot 0.12.3", - "rand", + "rand 0.8.5", "sc-chain-spec", "sc-client-api", "sc-rpc", "sc-transaction-pool-api", - "sc-utils", "schnellru", "serde", "sp-api", @@ -8994,27 +10377,27 @@ dependencies = [ "sp-rpc", "sp-runtime", "sp-version", - "thiserror", + "thiserror 1.0.64", "tokio", "tokio-stream", ] [[package]] name = "sc-service" -version = "0.46.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.49.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "async-trait", "directories", "exit-future", "futures", "futures-timer", - "jsonrpsee", + "jsonrpsee 0.24.7", "log", "parity-scale-codec", "parking_lot 0.12.3", "pin-project", - "rand", + "rand 0.8.5", "sc-chain-spec", "sc-client-api", "sc-client-db", @@ -9044,12 +10427,12 @@ dependencies = [ "sp-blockchain", "sp-consensus", "sp-core", - "sp-externalities 0.29.0", + "sp-externalities 0.30.0", "sp-keystore", "sp-runtime", "sp-session", "sp-state-machine", - "sp-storage 21.0.0", + "sp-storage 22.0.0", "sp-transaction-pool", "sp-transaction-storage-proof", "sp-trie", @@ -9057,7 +10440,7 @@ dependencies = [ "static_init", "substrate-prometheus-endpoint", "tempfile", - "thiserror", + "thiserror 1.0.64", "tokio", "tracing", "tracing-futures", @@ -9065,8 +10448,8 @@ dependencies = [ [[package]] name = "sc-state-db" -version = "0.36.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.37.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "log", "parity-scale-codec", @@ -9076,29 +10459,29 @@ dependencies = [ [[package]] name = "sc-sysinfo" -version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "41.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ - "derive_more", + "derive_more 0.99.18", "futures", "libc", "log", - "rand", + "rand 0.8.5", "rand_pcg", "regex", "sc-telemetry", "serde", "serde_json", "sp-core", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", "sp-io", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", ] [[package]] name = "sc-telemetry" -version = "25.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "chrono", "futures", @@ -9106,24 +10489,23 @@ dependencies = [ "log", "parking_lot 0.12.3", "pin-project", - "rand", + "rand 0.8.5", "sc-network", "sc-utils", "serde", "serde_json", - "thiserror", + "thiserror 1.0.64", "wasm-timer", ] [[package]] name = "sc-tracing" -version = "37.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "chrono", "console", "is-terminal", - "lazy_static", "libc", "log", "parity-scale-codec", @@ -9138,7 +10520,7 @@ dependencies = [ "sp-rpc", "sp-runtime", "sp-tracing 17.0.1", - "thiserror", + "thiserror 1.0.64", "tracing", "tracing-log", "tracing-subscriber 0.3.18", @@ -9147,22 +10529,24 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] name = "sc-transaction-pool" -version = "37.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "38.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "async-trait", "futures", "futures-timer", + "indexmap 2.9.0", + "itertools 0.11.0", "linked-hash-map", "log", "parity-scale-codec", @@ -9174,18 +10558,20 @@ dependencies = [ "sp-api", "sp-blockchain", "sp-core", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", "sp-runtime", "sp-tracing 17.0.1", "sp-transaction-pool", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.64", + "tokio", + "tokio-stream", ] [[package]] name = "sc-transaction-pool-api" -version = "37.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "38.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "async-trait", "futures", @@ -9195,18 +10581,17 @@ dependencies = [ "sp-blockchain", "sp-core", "sp-runtime", - "thiserror", + "thiserror 1.0.64", ] [[package]] name = "sc-utils" -version = "17.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ - "async-channel", + "async-channel 1.9.0", "futures", "futures-timer", - "lazy_static", "log", "parking_lot 0.12.3", "prometheus", @@ -9220,7 +10605,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e57b1e7f6b65ed1f04e79a85a57d755ad56d76fdf1e9bddcc9ae14f71fcdcf54" dependencies = [ "parity-scale-codec", + "scale-info", "scale-type-resolver", + "serde", ] [[package]] @@ -9229,22 +10616,64 @@ version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e98f3262c250d90e700bb802eb704e1f841e03331c2eb815e46516c4edbf5b27" dependencies = [ - "derive_more", + "derive_more 0.99.18", + "parity-scale-codec", + "primitive-types 0.12.2", + "scale-bits", + "scale-decode-derive", + "scale-type-resolver", + "smallvec", +] + +[[package]] +name = "scale-decode-derive" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bb22f574168103cdd3133b19281639ca65ad985e24612728f727339dcaf4021" +dependencies = [ + "darling 0.14.4", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "scale-encode" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "528464e6ae6c8f98e2b79633bf79ef939552e795e316579dab09c61670d56602" +dependencies = [ + "derive_more 0.99.18", "parity-scale-codec", + "primitive-types 0.12.2", "scale-bits", + "scale-encode-derive", "scale-type-resolver", "smallvec", ] +[[package]] +name = "scale-encode-derive" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef2618f123c88da9cd8853b69d766068f1eddc7692146d7dfe9b89e25ce2efd" +dependencies = [ + "darling 0.20.10", + "proc-macro-crate 3.2.0", + "proc-macro2", + "quote", + "syn 2.0.101", +] + [[package]] name = "scale-info" -version = "2.11.3" +version = "2.11.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eca070c12893629e2cc820a9761bedf6ce1dcddc9852984d1dc734b8bd9bd024" +checksum = "346a3b32eba2640d17a9cb5927056b08f3de90f65b72fe09402c2ad07d684d0b" dependencies = [ "bitvec", "cfg-if", - "derive_more", + "derive_more 1.0.0", "parity-scale-codec", "scale-info-derive", "serde", @@ -9252,14 +10681,14 @@ dependencies = [ [[package]] name = "scale-info-derive" -version = "2.11.3" +version = "2.11.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d35494501194174bda522a32605929eefc9ecf7e0a326c26db1fdd85881eb62" +checksum = "c6630024bf739e2179b91fb424b28898baf819414262c5d376677dbff1fe7ebf" dependencies = [ "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.101", ] [[package]] @@ -9267,6 +10696,44 @@ name = "scale-type-resolver" version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0cded6518aa0bd6c1be2b88ac81bf7044992f0f154bfbabd5ad34f43512abcb" +dependencies = [ + "scale-info", + "smallvec", +] + +[[package]] +name = "scale-typegen" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "498d1aecf2ea61325d4511787c115791639c0fd21ef4f8e11e49dd09eff2bbac" +dependencies = [ + "proc-macro2", + "quote", + "scale-info", + "syn 2.0.101", + "thiserror 1.0.64", +] + +[[package]] +name = "scale-value" +version = "0.16.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cd6ab090d823e75cfdb258aad5fe92e13f2af7d04b43a55d607d25fcc38c811" +dependencies = [ + "base58", + "blake2 0.10.6", + "derive_more 0.99.18", + "either", + "frame-metadata 15.1.0", + "parity-scale-codec", + "scale-bits", + "scale-decode", + "scale-encode", + "scale-info", + "scale-type-resolver", + "serde", + "yap", +] [[package]] name = "schannel" @@ -9279,9 +10746,9 @@ dependencies = [ [[package]] name = "schnellru" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9a8ef13a93c54d20580de1e5c413e624e53121d42fc7e2c11d10ef7f8b02367" +checksum = "356285bbf17bea63d9e52e96bd18f039672ac92b55b8cb997d6162a2a37d1649" dependencies = [ "ahash 0.8.11", "cfg-if", @@ -9296,11 +10763,11 @@ checksum = "8de18f6d8ba0aad7045f5feae07ec29899c1112584a38509a84ad7b04451eaa0" dependencies = [ "aead", "arrayref", - "arrayvec", + "arrayvec 0.7.6", "curve25519-dalek", "getrandom_or_panic", "merlin", - "rand_core", + "rand_core 0.6.4", "serde_bytes", "sha2 0.10.8", "subtle 2.6.1", @@ -9329,21 +10796,6 @@ dependencies = [ "untrusted 0.9.0", ] -[[package]] -name = "sctp-proto" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6220f78bb44c15f326b0596113305f6101097a18755d53727a575c97e09fb24" -dependencies = [ - "bytes", - "crc", - "fxhash", - "log", - "rand", - "slab", - "thiserror", -] - [[package]] name = "sec1" version = "0.7.3" @@ -9359,13 +10811,31 @@ dependencies = [ "zeroize", ] +[[package]] +name = "secp256k1" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25996b82292a7a57ed3508f052cfff8640d38d32018784acd714758b43da9c8f" +dependencies = [ + "secp256k1-sys 0.8.1", +] + [[package]] name = "secp256k1" version = "0.28.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d24b59d129cdadea20aea4fb2352fa053712e5d713eee47d700cd4b2bc002f10" dependencies = [ - "secp256k1-sys", + "secp256k1-sys 0.9.2", +] + +[[package]] +name = "secp256k1-sys" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70a129b9e9efbfb223753b9163c4ab3b13cff7fd9c7f010fbac25ab4099fa07e" +dependencies = [ + "cc", ] [[package]] @@ -9393,7 +10863,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" dependencies = [ "bitflags 2.6.0", - "core-foundation", + "core-foundation 0.9.4", + "core-foundation-sys", + "libc", + "num-bigint", + "security-framework-sys", +] + +[[package]] +name = "security-framework" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "271720403f46ca04f7ba6f55d438f8bd878d6b8ca0a1046e8228c4145bcbb316" +dependencies = [ + "bitflags 2.6.0", + "core-foundation 0.10.0", "core-foundation-sys", "libc", "security-framework-sys", @@ -9401,9 +10885,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.12.0" +version = "2.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea4a292869320c0272d7bc55a5a6aafaff59b4f63404a003887b679a2e05b4b6" +checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32" dependencies = [ "core-foundation-sys", "libc", @@ -9450,9 +10934,9 @@ checksum = "cd0b0ec5f1c1ca621c432a25813d8d60c88abe6d3e08a3eb9cf37d97a0fe3d73" [[package]] name = "serde" -version = "1.0.216" +version = "1.0.219" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b9781016e935a97e8beecf0c933758c97a5520d32930e460142b4cd80c6338e" +checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" dependencies = [ "serde_derive", ] @@ -9487,20 +10971,20 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.216" +version = "1.0.219" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46f859dbbf73865c6627ed570e78961cd3ac92407a2d117204c49232485da55e" +checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] name = "serde_json" -version = "1.0.128" +version = "1.0.140" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8" +checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373" dependencies = [ "itoa", "memchr", @@ -9551,10 +11035,10 @@ version = "2.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "881b6f881b17d13214e5d494c939ebab463d01264ce1811e9d4ac3a882e7695f" dependencies = [ - "darling", + "darling 0.20.10", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -9569,14 +11053,15 @@ dependencies = [ [[package]] name = "sha-1" -version = "0.10.1" +version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5058ada175748e33390e40e872bd0fe59a19f265d0158daa551c5a88a76009c" +checksum = "99cd6713db3cf16b6c84e06321e049a9b9f699826e16096d23bbcc44d15d51a6" dependencies = [ + "block-buffer 0.9.0", "cfg-if", "cpufeatures", - "digest 0.10.7", - "sha1-asm", + "digest 0.9.0", + "opaque-debug 0.3.1", ] [[package]] @@ -9590,15 +11075,6 @@ dependencies = [ "digest 0.10.7", ] -[[package]] -name = "sha1-asm" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "286acebaf8b67c1130aedffad26f594eff0c1292389158135327d2e23aed582b" -dependencies = [ - "cc", -] - [[package]] name = "sha2" version = "0.9.9" @@ -9647,7 +11123,7 @@ name = "share-pool" version = "0.1.0" dependencies = [ "safe-math", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", "substrate-fixed", ] @@ -9673,7 +11149,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" dependencies = [ "digest 0.10.7", - "rand_core", + "rand_core 0.6.4", ] [[package]] @@ -9691,9 +11167,9 @@ dependencies = [ [[package]] name = "simple-dns" -version = "0.5.7" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cae9a3fcdadafb6d97f4c0e007e4247b114ee0f119f650c3cbf3a8b3a1479694" +checksum = "dee851d0e5e7af3721faea1843e8015e820a234f81fda3dea9247e15bac9a86a" dependencies = [ "bitflags 2.6.0", ] @@ -9710,26 +11186,140 @@ version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" +[[package]] +name = "siphasher" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d" + [[package]] name = "slab" version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" +checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" +dependencies = [ + "autocfg", +] + +[[package]] +name = "slice-group-by" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "826167069c09b99d56f31e9ae5c99049e932a98c9dc2dac47645b08dbbf76ba7" + +[[package]] +name = "smallvec" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8917285742e9f3e1683f0a9c4e6b57960b7314d0b08d30d1ecd426713ee2eee9" + +[[package]] +name = "smol" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a33bd3e260892199c3ccfc487c88b2da2265080acb316cd920da72fdfd7c599f" dependencies = [ - "autocfg", + "async-channel 2.3.1", + "async-executor", + "async-fs", + "async-io", + "async-lock", + "async-net", + "async-process", + "blocking", + "futures-lite", ] [[package]] -name = "slice-group-by" -version = "0.3.1" +name = "smoldot" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "826167069c09b99d56f31e9ae5c99049e932a98c9dc2dac47645b08dbbf76ba7" +checksum = "e6d1eaa97d77be4d026a1e7ffad1bb3b78448763b357ea6f8188d3e6f736a9b9" +dependencies = [ + "arrayvec 0.7.6", + "async-lock", + "atomic-take", + "base64 0.21.7", + "bip39", + "blake2-rfc", + "bs58", + "chacha20", + "crossbeam-queue", + "derive_more 0.99.18", + "ed25519-zebra", + "either", + "event-listener 4.0.3", + "fnv", + "futures-lite", + "futures-util", + "hashbrown 0.14.5", + "hex", + "hmac 0.12.1", + "itertools 0.12.1", + "libm", + "libsecp256k1", + "merlin", + "no-std-net", + "nom", + "num-bigint", + "num-rational", + "num-traits", + "pbkdf2", + "pin-project", + "poly1305", + "rand 0.8.5", + "rand_chacha 0.3.1", + "ruzstd", + "schnorrkel", + "serde", + "serde_json", + "sha2 0.10.8", + "sha3", + "siphasher 1.0.1", + "slab", + "smallvec", + "soketto 0.7.1", + "twox-hash", + "wasmi", + "x25519-dalek", + "zeroize", +] [[package]] -name = "smallvec" -version = "1.13.2" +name = "smoldot-light" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" +checksum = "5496f2d116b7019a526b1039ec2247dd172b8670633b1a64a614c9ea12c9d8c7" +dependencies = [ + "async-channel 2.3.1", + "async-lock", + "base64 0.21.7", + "blake2-rfc", + "derive_more 0.99.18", + "either", + "event-listener 4.0.3", + "fnv", + "futures-channel", + "futures-lite", + "futures-util", + "hashbrown 0.14.5", + "hex", + "itertools 0.12.1", + "log", + "lru 0.12.5", + "no-std-net", + "parking_lot 0.12.3", + "pin-project", + "rand 0.8.5", + "rand_chacha 0.3.1", + "serde", + "serde_json", + "siphasher 1.0.1", + "slab", + "smol", + "smoldot", + "zeroize", +] [[package]] name = "snap" @@ -9747,7 +11337,7 @@ dependencies = [ "blake2 0.10.6", "chacha20poly1305", "curve25519-dalek", - "rand_core", + "rand_core 0.6.4", "ring 0.17.13", "rustc_version 0.4.1", "sha2 0.10.8", @@ -9766,14 +11356,29 @@ dependencies = [ [[package]] name = "socket2" -version = "0.5.7" +version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c" +checksum = "4f5fd57c80058a56cf5c777ab8a126398ece8e442983605d280a44ce79d0edef" dependencies = [ "libc", "windows-sys 0.52.0", ] +[[package]] +name = "soketto" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d1c5305e39e09653383c2c7244f2f78b3bcae37cf50c64cb4789c9f5096ec2" +dependencies = [ + "base64 0.13.1", + "bytes", + "futures", + "httparse", + "log", + "rand 0.8.5", + "sha-1", +] + [[package]] name = "soketto" version = "0.8.0" @@ -9786,14 +11391,14 @@ dependencies = [ "http 1.1.0", "httparse", "log", - "rand", + "rand 0.8.5", "sha1", ] [[package]] name = "sp-api" -version = "34.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "35.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "docify", "hash-db", @@ -9802,20 +11407,20 @@ dependencies = [ "scale-info", "sp-api-proc-macro", "sp-core", - "sp-externalities 0.29.0", + "sp-externalities 0.30.0", "sp-metadata-ir", "sp-runtime", - "sp-runtime-interface 28.0.0", + "sp-runtime-interface 29.0.0", "sp-state-machine", "sp-trie", "sp-version", - "thiserror", + "thiserror 1.0.64", ] [[package]] name = "sp-api-proc-macro" -version = "20.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "21.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "Inflector", "blake2 0.10.6", @@ -9823,13 +11428,13 @@ dependencies = [ "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] name = "sp-application-crypto" -version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "39.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "parity-scale-codec", "scale-info", @@ -9841,7 +11446,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "docify", "integer-sqrt", @@ -9861,10 +11466,22 @@ dependencies = [ "sp-crypto-ec-utils 0.10.0", ] +[[package]] +name = "sp-authority-discovery" +version = "35.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +dependencies = [ + "parity-scale-codec", + "scale-info", + "sp-api", + "sp-application-crypto", + "sp-runtime", +] + [[package]] name = "sp-block-builder" -version = "34.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "35.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "sp-api", "sp-inherents", @@ -9873,8 +11490,8 @@ dependencies = [ [[package]] name = "sp-blockchain" -version = "37.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "futures", "parity-scale-codec", @@ -9886,14 +11503,14 @@ dependencies = [ "sp-database", "sp-runtime", "sp-state-machine", - "thiserror", + "thiserror 1.0.64", "tracing", ] [[package]] name = "sp-consensus" -version = "0.40.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.41.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "async-trait", "futures", @@ -9902,13 +11519,13 @@ dependencies = [ "sp-inherents", "sp-runtime", "sp-state-machine", - "thiserror", + "thiserror 1.0.64", ] [[package]] name = "sp-consensus-aura" -version = "0.40.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.41.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "async-trait", "parity-scale-codec", @@ -9923,8 +11540,8 @@ dependencies = [ [[package]] name = "sp-consensus-babe" -version = "0.40.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.41.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "async-trait", "parity-scale-codec", @@ -9941,8 +11558,8 @@ dependencies = [ [[package]] name = "sp-consensus-grandpa" -version = "21.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "22.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "finality-grandpa", "log", @@ -9958,8 +11575,8 @@ dependencies = [ [[package]] name = "sp-consensus-slots" -version = "0.40.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.41.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "parity-scale-codec", "scale-info", @@ -9969,20 +11586,20 @@ dependencies = [ [[package]] name = "sp-core" -version = "34.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "35.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "array-bytes", "bitflags 1.3.2", "blake2 0.10.6", "bounded-collections", - "bs58 0.5.1", + "bs58", "dyn-clonable", "ed25519-zebra", "futures", "hash-db", "hash256-std-hasher", - "impl-serde", + "impl-serde 0.5.0", "itertools 0.11.0", "k256", "libsecp256k1", @@ -9992,22 +11609,22 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.12.3", "paste", - "primitive-types", - "rand", + "primitive-types 0.13.1", + "rand 0.8.5", "scale-info", "schnorrkel", - "secp256k1", + "secp256k1 0.28.2", "secrecy", "serde", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", - "sp-debug-derive 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", - "sp-externalities 0.29.0", - "sp-runtime-interface 28.0.0", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", - "sp-storage 21.0.0", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-debug-derive 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-externalities 0.30.0", + "sp-runtime-interface 29.0.0", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-storage 22.0.0", "ss58-registry", "substrate-bip39", - "thiserror", + "thiserror 1.0.64", "tracing", "w3f-bls", "zeroize", @@ -10035,8 +11652,8 @@ dependencies = [ [[package]] name = "sp-crypto-ec-utils" -version = "0.14.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.15.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "ark-bls12-377", "ark-bls12-377-ext", @@ -10050,7 +11667,7 @@ dependencies = [ "ark-ed-on-bls12-381-bandersnatch", "ark-ed-on-bls12-381-bandersnatch-ext", "ark-scale 0.0.12", - "sp-runtime-interface 28.0.0", + "sp-runtime-interface 29.0.0", ] [[package]] @@ -10070,7 +11687,7 @@ dependencies = [ [[package]] name = "sp-crypto-hashing" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "blake2b_simd", "byteorder", @@ -10083,17 +11700,17 @@ dependencies = [ [[package]] name = "sp-crypto-hashing-proc-macro" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "quote", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", - "syn 2.0.90", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "syn 2.0.101", ] [[package]] name = "sp-database" version = "10.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "kvdb", "parking_lot 0.12.3", @@ -10102,11 +11719,11 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -10116,7 +11733,7 @@ source = "git+https://github.com/paritytech/polkadot-sdk#8614dc0e055d06de4a3774a dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -10131,18 +11748,18 @@ dependencies = [ [[package]] name = "sp-externalities" -version = "0.29.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.30.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "environmental", "parity-scale-codec", - "sp-storage 21.0.0", + "sp-storage 22.0.0", ] [[package]] name = "sp-genesis-builder" -version = "0.15.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.16.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "parity-scale-codec", "scale-info", @@ -10153,21 +11770,21 @@ dependencies = [ [[package]] name = "sp-inherents" -version = "34.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "35.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "async-trait", "impl-trait-for-tuples", "parity-scale-codec", "scale-info", "sp-runtime", - "thiserror", + "thiserror 1.0.64", ] [[package]] name = "sp-io" -version = "38.0.2" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "39.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "bytes", "docify", @@ -10177,12 +11794,12 @@ dependencies = [ "parity-scale-codec", "polkavm-derive", "rustversion", - "secp256k1", + "secp256k1 0.28.2", "sp-core", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", - "sp-externalities 0.29.0", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-externalities 0.30.0", "sp-keystore", - "sp-runtime-interface 28.0.0", + "sp-runtime-interface 29.0.0", "sp-state-machine", "sp-tracing 17.0.1", "sp-trie", @@ -10192,8 +11809,8 @@ dependencies = [ [[package]] name = "sp-keyring" -version = "39.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "40.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "sp-core", "sp-runtime", @@ -10202,38 +11819,38 @@ dependencies = [ [[package]] name = "sp-keystore" -version = "0.40.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.41.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "parity-scale-codec", "parking_lot 0.12.3", "sp-core", - "sp-externalities 0.29.0", + "sp-externalities 0.30.0", ] [[package]] name = "sp-maybe-compressed-blob" version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ - "thiserror", + "thiserror 1.0.64", "zstd 0.12.4", ] [[package]] name = "sp-metadata-ir" -version = "0.7.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ - "frame-metadata", + "frame-metadata 18.0.0", "parity-scale-codec", "scale-info", ] [[package]] name = "sp-mixnet" -version = "0.12.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.13.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "parity-scale-codec", "scale-info", @@ -10243,8 +11860,8 @@ dependencies = [ [[package]] name = "sp-offchain" -version = "34.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "35.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "sp-api", "sp-core", @@ -10253,18 +11870,17 @@ dependencies = [ [[package]] name = "sp-panic-handler" -version = "13.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "13.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "backtrace", - "lazy_static", "regex", ] [[package]] name = "sp-rpc" -version = "32.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "33.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "rustc-hash 1.1.0", "serde", @@ -10273,9 +11889,10 @@ dependencies = [ [[package]] name = "sp-runtime" -version = "39.0.5" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "40.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ + "binary-merkle-tree", "docify", "either", "hash256-std-hasher", @@ -10284,7 +11901,7 @@ dependencies = [ "num-traits", "parity-scale-codec", "paste", - "rand", + "rand 0.8.5", "scale-info", "serde", "simple-mermaid", @@ -10292,9 +11909,11 @@ dependencies = [ "sp-arithmetic", "sp-core", "sp-io", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-trie", "sp-weights", "tracing", + "tuplex", ] [[package]] @@ -10306,7 +11925,7 @@ dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "polkavm-derive", - "primitive-types", + "primitive-types 0.12.2", "sp-externalities 0.25.0", "sp-runtime-interface-proc-macro 17.0.0", "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk)", @@ -10318,18 +11937,18 @@ dependencies = [ [[package]] name = "sp-runtime-interface" -version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "bytes", "impl-trait-for-tuples", "parity-scale-codec", "polkavm-derive", - "primitive-types", - "sp-externalities 0.29.0", + "primitive-types 0.13.1", + "sp-externalities 0.30.0", "sp-runtime-interface-proc-macro 18.0.0", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", - "sp-storage 21.0.0", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-storage 22.0.0", "sp-tracing 17.0.1", "sp-wasm-interface 21.0.1", "static_assertions", @@ -10345,26 +11964,26 @@ dependencies = [ "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] name = "sp-runtime-interface-proc-macro" version = "18.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "Inflector", "expander", "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] name = "sp-session" -version = "36.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "37.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "parity-scale-codec", "scale-info", @@ -10377,8 +11996,8 @@ dependencies = [ [[package]] name = "sp-staking" -version = "36.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "37.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -10390,52 +12009,52 @@ dependencies = [ [[package]] name = "sp-state-machine" -version = "0.43.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.44.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "hash-db", "log", "parity-scale-codec", "parking_lot 0.12.3", - "rand", + "rand 0.8.5", "smallvec", "sp-core", - "sp-externalities 0.29.0", + "sp-externalities 0.30.0", "sp-panic-handler", "sp-trie", - "thiserror", + "thiserror 1.0.64", "tracing", "trie-db", ] [[package]] name = "sp-statement-store" -version = "18.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "19.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "aes-gcm", "curve25519-dalek", "ed25519-dalek", "hkdf", "parity-scale-codec", - "rand", + "rand 0.8.5", "scale-info", "sha2 0.10.8", "sp-api", "sp-application-crypto", "sp-core", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", - "sp-externalities 0.29.0", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-externalities 0.30.0", "sp-runtime", - "sp-runtime-interface 28.0.0", - "thiserror", + "sp-runtime-interface 29.0.0", + "thiserror 1.0.64", "x25519-dalek", ] [[package]] name = "sp-std" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" [[package]] name = "sp-std" @@ -10447,7 +12066,7 @@ name = "sp-storage" version = "19.0.0" source = "git+https://github.com/paritytech/polkadot-sdk#8614dc0e055d06de4a3774ac1da0a422b33f34e2" dependencies = [ - "impl-serde", + "impl-serde 0.4.0", "parity-scale-codec", "ref-cast", "serde", @@ -10456,26 +12075,26 @@ dependencies = [ [[package]] name = "sp-storage" -version = "21.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "22.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ - "impl-serde", + "impl-serde 0.5.0", "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-debug-derive 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", ] [[package]] name = "sp-timestamp" -version = "34.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "35.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "async-trait", "parity-scale-codec", "sp-inherents", "sp-runtime", - "thiserror", + "thiserror 1.0.64", ] [[package]] @@ -10492,7 +12111,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "17.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "parity-scale-codec", "tracing", @@ -10502,8 +12121,8 @@ dependencies = [ [[package]] name = "sp-transaction-pool" -version = "34.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "35.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "sp-api", "sp-runtime", @@ -10511,8 +12130,8 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" -version = "34.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "35.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "async-trait", "parity-scale-codec", @@ -10525,22 +12144,21 @@ dependencies = [ [[package]] name = "sp-trie" -version = "37.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "ahash 0.8.11", "hash-db", - "lazy_static", "memory-db", "nohash-hasher", "parity-scale-codec", "parking_lot 0.12.3", - "rand", + "rand 0.8.5", "scale-info", "schnellru", "sp-core", - "sp-externalities 0.29.0", - "thiserror", + "sp-externalities 0.30.0", + "thiserror 1.0.64", "tracing", "trie-db", "trie-root", @@ -10548,30 +12166,31 @@ dependencies = [ [[package]] name = "sp-version" -version = "37.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ - "impl-serde", + "impl-serde 0.5.0", "parity-scale-codec", "parity-wasm", "scale-info", "serde", "sp-crypto-hashing-proc-macro", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", "sp-version-proc-macro", - "thiserror", + "thiserror 1.0.64", ] [[package]] name = "sp-version-proc-macro" -version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "15.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "parity-scale-codec", + "proc-macro-warning 1.0.2", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -10588,7 +12207,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "21.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "anyhow", "impl-trait-for-tuples", @@ -10600,7 +12219,7 @@ dependencies = [ [[package]] name = "sp-weights" version = "31.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "bounded-collections", "parity-scale-codec", @@ -10608,7 +12227,7 @@ dependencies = [ "serde", "smallvec", "sp-arithmetic", - "sp-debug-derive 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-debug-derive 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", ] [[package]] @@ -10687,7 +12306,7 @@ dependencies = [ "hashbrown 0.14.5", "hashlink 0.9.1", "hex", - "indexmap 2.6.0", + "indexmap 2.9.0", "log", "memchr", "native-tls", @@ -10698,7 +12317,7 @@ dependencies = [ "sha2 0.10.8", "smallvec", "sqlformat", - "thiserror", + "thiserror 1.0.64", "tokio", "tokio-stream", "tracing", @@ -10715,7 +12334,7 @@ dependencies = [ "quote", "sqlx-core", "sqlx-macros-core", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -10736,7 +12355,7 @@ dependencies = [ "sha2 0.10.8", "sqlx-core", "sqlx-sqlite", - "syn 2.0.90", + "syn 2.0.101", "tempfile", "tokio", "url", @@ -10788,13 +12407,15 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "staging-xcm" -version = "14.2.2" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "15.0.3" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "array-bytes", "bounded-collections", "derivative", "environmental", + "frame-support", + "hex-literal", "impl-trait-for-tuples", "log", "parity-scale-codec", @@ -10818,7 +12439,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a2a1c578e98c1c16fc3b8ec1328f7659a500737d7a0c6d625e73e830ff9c1f6" dependencies = [ "bitflags 1.3.2", - "cfg_aliases", + "cfg_aliases 0.1.1", "libc", "parking_lot 0.11.2", "parking_lot_core 0.8.6", @@ -10832,7 +12453,7 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "70a2595fc3aa78f2d0e45dd425b22282dd863273761cc77780914b2cf3003acf" dependencies = [ - "cfg_aliases", + "cfg_aliases 0.1.1", "memchr", "proc-macro2", "quote", @@ -10840,24 +12461,10 @@ dependencies = [ ] [[package]] -name = "str0m" -version = "0.5.1" +name = "strsim" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6706347e49b13373f7ddfafad47df7583ed52083d6fc8a594eb2c80497ef959d" -dependencies = [ - "combine", - "crc", - "fastrand", - "hmac 0.12.1", - "once_cell", - "openssl", - "openssl-sys", - "sctp-proto", - "serde", - "sha-1", - "thiserror", - "tracing", -] +checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" [[package]] name = "strsim" @@ -10903,13 +12510,13 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] name = "substrate-bip39" version = "0.6.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "hmac 0.12.1", "pbkdf2", @@ -10921,7 +12528,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" [[package]] name = "substrate-fixed" @@ -10936,13 +12543,13 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" -version = "39.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "42.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "docify", "frame-system-rpc-runtime-api", "futures", - "jsonrpsee", + "jsonrpsee 0.24.7", "log", "parity-scale-codec", "sc-rpc-api", @@ -10956,35 +12563,36 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" -version = "0.17.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "0.17.1" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "http-body-util", "hyper 1.5.0", "hyper-util", "log", "prometheus", - "thiserror", + "thiserror 1.0.64", "tokio", ] [[package]] name = "substrate-wasm-builder" -version = "24.0.2" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "25.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "array-bytes", "build-helper", "cargo_metadata", "console", "filetime", - "frame-metadata", + "frame-metadata 18.0.0", "jobserver", "merkleized-metadata", "parity-scale-codec", "parity-wasm", "polkavm-linker", "sc-executor", + "shlex", "sp-core", "sp-io", "sp-maybe-compressed-blob", @@ -11007,7 +12615,7 @@ dependencies = [ "quote", "rayon", "subtensor-linting", - "syn 2.0.90", + "syn 2.0.101", "walkdir", ] @@ -11015,7 +12623,7 @@ dependencies = [ name = "subtensor-custom-rpc" version = "0.0.2" dependencies = [ - "jsonrpsee", + "jsonrpsee 0.24.7", "pallet-subtensor", "parity-scale-codec", "serde", @@ -11045,7 +12653,7 @@ dependencies = [ "proc-macro2", "procedural-fork", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -11055,7 +12663,7 @@ dependencies = [ "ahash 0.8.11", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -11078,7 +12686,7 @@ dependencies = [ "precompile-utils", "sp-core", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", "subtensor-runtime-common", ] @@ -11104,16 +12712,169 @@ dependencies = [ ] [[package]] -name = "subtle" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d67a5a62ba6e01cb2192ff309324cb4875d0c451d55fe2319433abe7a05a8ee" - -[[package]] -name = "subtle" -version = "2.6.1" +name = "subtle" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d67a5a62ba6e01cb2192ff309324cb4875d0c451d55fe2319433abe7a05a8ee" + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "subxt" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a160cba1edbf3ec4fbbeaea3f1a185f70448116a6bccc8276bb39adb3b3053bd" +dependencies = [ + "async-trait", + "derive-where", + "either", + "frame-metadata 16.0.0", + "futures", + "hex", + "impl-serde 0.4.0", + "instant", + "jsonrpsee 0.22.5", + "parity-scale-codec", + "primitive-types 0.12.2", + "reconnecting-jsonrpsee-ws-client", + "scale-bits", + "scale-decode", + "scale-encode", + "scale-info", + "scale-value", + "serde", + "serde_json", + "sp-crypto-hashing 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "subxt-core", + "subxt-lightclient", + "subxt-macro", + "subxt-metadata", + "thiserror 1.0.64", + "tokio-util", + "tracing", + "url", +] + +[[package]] +name = "subxt-codegen" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d703dca0905cc5272d7cc27a4ac5f37dcaae7671acc7fef0200057cc8c317786" +dependencies = [ + "frame-metadata 16.0.0", + "heck 0.5.0", + "hex", + "jsonrpsee 0.22.5", + "parity-scale-codec", + "proc-macro2", + "quote", + "scale-info", + "scale-typegen", + "subxt-metadata", + "syn 2.0.101", + "thiserror 1.0.64", + "tokio", +] + +[[package]] +name = "subxt-core" +version = "0.37.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3af3b36405538a36b424d229dc908d1396ceb0994c90825ce928709eac1a159a" +dependencies = [ + "base58", + "blake2 0.10.6", + "derive-where", + "frame-metadata 16.0.0", + "hashbrown 0.14.5", + "hex", + "impl-serde 0.4.0", + "parity-scale-codec", + "primitive-types 0.12.2", + "scale-bits", + "scale-decode", + "scale-encode", + "scale-info", + "scale-value", + "serde", + "serde_json", + "sp-crypto-hashing 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "subxt-metadata", + "tracing", +] + +[[package]] +name = "subxt-lightclient" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d9406fbdb9548c110803cb8afa750f8b911d51eefdf95474b11319591d225d9" +dependencies = [ + "futures", + "futures-util", + "serde", + "serde_json", + "smoldot-light", + "thiserror 1.0.64", + "tokio", + "tokio-stream", + "tracing", +] + +[[package]] +name = "subxt-macro" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c195f803d70687e409aba9be6c87115b5da8952cd83c4d13f2e043239818fcd" +dependencies = [ + "darling 0.20.10", + "parity-scale-codec", + "proc-macro-error", + "quote", + "scale-typegen", + "subxt-codegen", + "syn 2.0.101", +] + +[[package]] +name = "subxt-metadata" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "738be5890fdeff899bbffff4d9c0f244fe2a952fb861301b937e3aa40ebb55da" +dependencies = [ + "frame-metadata 16.0.0", + "hashbrown 0.14.5", + "parity-scale-codec", + "scale-info", + "sp-crypto-hashing 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "subxt-signer" +version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" +checksum = "f49888ae6ae90fe01b471193528eea5bd4ed52d8eecd2d13f4a2333b87388850" +dependencies = [ + "bip32", + "bip39", + "cfg-if", + "hex", + "hmac 0.12.1", + "keccak-hash", + "parity-scale-codec", + "pbkdf2", + "regex", + "schnorrkel", + "secp256k1 0.28.2", + "secrecy", + "sha2 0.10.8", + "sp-crypto-hashing 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "subxt-core", + "zeroize", +] [[package]] name = "syn" @@ -11128,9 +12889,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.90" +version = "2.0.101" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "919d3b74a5dd0ccd15aeb8f93e7006bd9e14c295087c9896a110f490752bcf31" +checksum = "8ce2b7fc941b3a24138a0a7cf8e858bfc6a992e7978a068a5c760deb0ed43caf" dependencies = [ "proc-macro2", "quote", @@ -11157,7 +12918,7 @@ checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -11167,7 +12928,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" dependencies = [ "bitflags 1.3.2", - "core-foundation", + "core-foundation 0.9.4", "system-configuration-sys", ] @@ -11237,7 +12998,16 @@ version = "1.0.64" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d50af8abc119fb8bb6dbabcfa89656f46f84aa0ac7688088608076ad2b459a84" dependencies = [ - "thiserror-impl", + "thiserror-impl 1.0.64", +] + +[[package]] +name = "thiserror" +version = "2.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708" +dependencies = [ + "thiserror-impl 2.0.12", ] [[package]] @@ -11248,7 +13018,18 @@ checksum = "08904e7672f5eb876eaaf87e0ce17857500934f4981c4a0ab2b4aa98baac7fc3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", ] [[package]] @@ -11276,6 +13057,17 @@ dependencies = [ "num_cpus", ] +[[package]] +name = "tikv-jemalloc-ctl" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "619bfed27d807b54f7f776b9430d4f8060e66ee138a28632ca898584d462c31c" +dependencies = [ + "libc", + "paste", + "tikv-jemalloc-sys", +] + [[package]] name = "tikv-jemalloc-sys" version = "0.5.4+5.3.0-patched" @@ -11326,6 +13118,16 @@ dependencies = [ "crunchy", ] +[[package]] +name = "tinystr" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d4f6d1145dcb577acf783d4e601bc1d76a13337bb54e6233add580b07344c8b" +dependencies = [ + "displaydoc", + "zerovec", +] + [[package]] name = "tinyvec" version = "1.8.0" @@ -11358,8 +13160,8 @@ dependencies = [ "chacha20poly1305", "generic-array 0.14.7", "parity-scale-codec", - "rand_chacha", - "rand_core", + "rand_chacha 0.3.1", + "rand_core 0.6.4", "scale-info", "serde", "serde_cbor", @@ -11382,7 +13184,7 @@ dependencies = [ "parking_lot 0.12.3", "pin-project-lite", "signal-hook-registry", - "socket2 0.5.7", + "socket2 0.5.9", "tokio-macros", "windows-sys 0.52.0", ] @@ -11395,7 +13197,7 @@ checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -11408,6 +13210,27 @@ dependencies = [ "tokio", ] +[[package]] +name = "tokio-rustls" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "775e0c0f0adb3a2f22a00c4745d728b479985fc15ee7ca6a2608388c5569860f" +dependencies = [ + "rustls 0.22.4", + "rustls-pki-types", + "tokio", +] + +[[package]] +name = "tokio-rustls" +version = "0.26.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e727b36a1a0e8b74c376ac2211e40c2c8af09fb4013c60d910495810f008e9b" +dependencies = [ + "rustls 0.23.27", + "tokio", +] + [[package]] name = "tokio-stream" version = "0.1.16" @@ -11422,24 +13245,25 @@ dependencies = [ [[package]] name = "tokio-tungstenite" -version = "0.20.1" +version = "0.26.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "212d5dcb2a1ce06d81107c3d0ffa3121fe974b73f068c8282cb1c32328113b6c" +checksum = "7a9daff607c6d2bf6c16fd681ccb7eecc83e4e2cdc1ca067ffaadfca5de7f084" dependencies = [ "futures-util", "log", - "rustls 0.21.12", - "rustls-native-certs", + "rustls 0.23.27", + "rustls-native-certs 0.8.1", + "rustls-pki-types", "tokio", - "tokio-rustls", + "tokio-rustls 0.26.2", "tungstenite", ] [[package]] name = "tokio-util" -version = "0.7.12" +version = "0.7.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61e7c3654c13bcd040d4a03abee2c75b1d14a37b423cf5a813ceae1cc903ec6a" +checksum = "66a539a9ad6d5d281510d5bd368c973d636c02dbf8a67300bfb6b950696ad7df" dependencies = [ "bytes", "futures-core", @@ -11485,7 +13309,7 @@ version = "0.22.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5" dependencies = [ - "indexmap 2.6.0", + "indexmap 2.9.0", "serde", "serde_spanned", "toml_datetime", @@ -11555,7 +13379,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -11578,6 +13402,29 @@ dependencies = [ "tracing", ] +[[package]] +name = "tracing-gum" +version = "17.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +dependencies = [ + "coarsetime", + "polkadot-primitives", + "tracing", + "tracing-gum-proc-macro", +] + +[[package]] +name = "tracing-gum-proc-macro" +version = "5.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +dependencies = [ + "expander", + "proc-macro-crate 3.2.0", + "proc-macro2", + "quote", + "syn 2.0.101", +] + [[package]] name = "tracing-log" version = "0.2.0" @@ -11655,10 +13502,10 @@ dependencies = [ "idna 0.2.3", "ipnet", "lazy_static", - "rand", + "rand 0.8.5", "smallvec", "socket2 0.4.10", - "thiserror", + "thiserror 1.0.64", "tinyvec", "tokio", "tracing", @@ -11681,9 +13528,9 @@ dependencies = [ "idna 0.4.0", "ipnet", "once_cell", - "rand", + "rand 0.8.5", "smallvec", - "thiserror", + "thiserror 1.0.64", "tinyvec", "tokio", "tracing", @@ -11702,10 +13549,10 @@ dependencies = [ "lru-cache", "once_cell", "parking_lot 0.12.3", - "rand", + "rand 0.8.5", "resolv-conf", "smallvec", - "thiserror", + "thiserror 1.0.64", "tokio", "tracing", "trust-dns-proto 0.23.2", @@ -11725,24 +13572,30 @@ checksum = "f4f195fd851901624eee5a58c4bb2b4f06399148fcd0ed336e6f1cb60a9881df" [[package]] name = "tungstenite" -version = "0.20.1" +version = "0.26.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e3dac10fd62eaf6617d3a904ae222845979aec67c615d1c842b4002c7666fb9" +checksum = "4793cb5e56680ecbb1d843515b23b6de9a75eb04b66643e256a396d43be33c13" dependencies = [ - "byteorder", "bytes", "data-encoding", - "http 0.2.12", + "http 1.1.0", "httparse", "log", - "rand", - "rustls 0.21.12", + "rand 0.9.1", + "rustls 0.23.27", + "rustls-pki-types", "sha1", - "thiserror", + "thiserror 2.0.12", "url", "utf-8", ] +[[package]] +name = "tuplex" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "676ac81d5454c4dcf37955d34fa8626ede3490f744b86ca14a7b90168d2a08aa" + [[package]] name = "twox-hash" version = "1.6.3" @@ -11751,7 +13604,7 @@ checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ "cfg-if", "digest 0.10.7", - "rand", + "rand 0.8.5", "static_assertions", ] @@ -11788,6 +13641,24 @@ dependencies = [ "static_assertions", ] +[[package]] +name = "uint" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "909988d098b2f738727b161a106cfc7cab00c539c2687a8836f8e565976fb53e" +dependencies = [ + "byteorder", + "crunchy", + "hex", + "static_assertions", +] + +[[package]] +name = "unarray" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94" + [[package]] name = "unicode-bidi" version = "0.3.17" @@ -11873,12 +13744,12 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.2" +version = "2.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c" +checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" dependencies = [ "form_urlencoded", - "idna 0.5.0", + "idna 1.0.3", "percent-encoding", ] @@ -11888,6 +13759,12 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + [[package]] name = "utf8parse" version = "0.2.2" @@ -11933,12 +13810,12 @@ dependencies = [ "arrayref", "constcat", "digest 0.10.7", - "rand", - "rand_chacha", - "rand_core", + "rand 0.8.5", + "rand_chacha 0.3.1", + "rand_core 0.6.4", "sha2 0.10.8", "sha3", - "thiserror", + "thiserror 1.0.64", "zeroize", ] @@ -11967,6 +13844,24 @@ version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" +[[package]] +name = "wasi" +version = "0.14.2+wasi-0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3" +dependencies = [ + "wit-bindgen-rt", +] + +[[package]] +name = "wasix" +version = "0.12.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1fbb4ef9bbca0c1170e0b00dd28abc9e3b68669821600cad1caaed606583c6d" +dependencies = [ + "wasi 0.11.0+wasi-snapshot-preview1", +] + [[package]] name = "wasm-bindgen" version = "0.2.93" @@ -11989,7 +13884,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", "wasm-bindgen-shared", ] @@ -12023,7 +13918,7 @@ checksum = "afc340c74d9005395cf9dd098506f7f44e38f2b4a21c6aaacf9a105ea5e1e836" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -12054,7 +13949,7 @@ dependencies = [ "strum 0.24.1", "strum_macros 0.24.3", "tempfile", - "thiserror", + "thiserror 1.0.64", "wasm-opt-cxx-sys", "wasm-opt-sys", ] @@ -12098,6 +13993,37 @@ dependencies = [ "web-sys", ] +[[package]] +name = "wasmi" +version = "0.31.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77a8281d1d660cdf54c76a3efa9ddd0c270cada1383a995db3ccb43d166456c7" +dependencies = [ + "smallvec", + "spin 0.9.8", + "wasmi_arena", + "wasmi_core", + "wasmparser-nostd", +] + +[[package]] +name = "wasmi_arena" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "104a7f73be44570cac297b3035d76b169d6599637631cf37a1703326a0727073" + +[[package]] +name = "wasmi_core" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dcf1a7db34bff95b85c261002720c00c3a6168256dcb93041d3fa2054d19856a" +dependencies = [ + "downcast-rs", + "libm", + "num-traits", + "paste", +] + [[package]] name = "wasmparser" version = "0.102.0" @@ -12108,6 +14034,15 @@ dependencies = [ "url", ] +[[package]] +name = "wasmparser-nostd" +version = "0.100.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5a015fe95f3504a94bb1462c717aae75253e39b9dd6c3fb1062c934535c64aa" +dependencies = [ + "indexmap-nostd", +] + [[package]] name = "wasmtime" version = "8.0.1" @@ -12181,7 +14116,7 @@ dependencies = [ "log", "object 0.30.4", "target-lexicon", - "thiserror", + "thiserror 1.0.64", "wasmparser", "wasmtime-cranelift-shared", "wasmtime-environ", @@ -12216,7 +14151,7 @@ dependencies = [ "object 0.30.4", "serde", "target-lexicon", - "thiserror", + "thiserror 1.0.64", "wasmparser", "wasmtime-types", ] @@ -12283,7 +14218,7 @@ dependencies = [ "memfd", "memoffset", "paste", - "rand", + "rand 0.8.5", "rustix 0.36.17", "wasmtime-asm-macros", "wasmtime-environ", @@ -12299,7 +14234,7 @@ checksum = "a4f6fffd2a1011887d57f07654dd112791e872e3ff4a2e626aee8059ee17f06f" dependencies = [ "cranelift-entity", "serde", - "thiserror", + "thiserror 1.0.64", "wasmparser", ] @@ -12314,13 +14249,13 @@ dependencies = [ ] [[package]] -name = "webpki" -version = "0.22.4" +name = "web-time" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed63aea5ce73d0ff405984102c42de94fc55a6b75765d621c65262469b3c9b53" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" dependencies = [ - "ring 0.17.13", - "untrusted 0.9.0", + "js-sys", + "wasm-bindgen", ] [[package]] @@ -12330,15 +14265,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1" [[package]] -name = "which" -version = "4.4.2" +name = "webpki-roots" +version = "0.26.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7" +checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9" dependencies = [ - "either", - "home", - "once_cell", - "rustix 0.38.37", + "webpki-roots 1.0.0", +] + +[[package]] +name = "webpki-roots" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2853738d1cc4f2da3a225c18ec6c3721abb31961096e9dbf5ab35fa88b19cfdb" +dependencies = [ + "rustls-pki-types", ] [[package]] @@ -12416,21 +14357,6 @@ dependencies = [ "windows-targets 0.52.6", ] -[[package]] -name = "windows-sys" -version = "0.42.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" -dependencies = [ - "windows_aarch64_gnullvm 0.42.2", - "windows_aarch64_msvc 0.42.2", - "windows_i686_gnu 0.42.2", - "windows_i686_msvc 0.42.2", - "windows_x86_64_gnu 0.42.2", - "windows_x86_64_gnullvm 0.42.2", - "windows_x86_64_msvc 0.42.2", -] - [[package]] name = "windows-sys" version = "0.45.0" @@ -12664,6 +14590,21 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "wit-bindgen-rt" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1" +dependencies = [ + "bitflags 2.6.0", +] + +[[package]] +name = "writeable" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea2f10b9bb0928dfb1b42b65e1f9e36f7f54dbdf08457afefb38afcdec4fa2bb" + [[package]] name = "wyz" version = "0.5.1" @@ -12680,7 +14621,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7e468321c81fb07fa7f4c636c3972b9100f0346e5b6a9f2bd0603a52f7ed277" dependencies = [ "curve25519-dalek", - "rand_core", + "rand_core 0.6.4", "serde", "zeroize", ] @@ -12698,36 +14639,36 @@ dependencies = [ "nom", "oid-registry 0.6.1", "rusticata-macros", - "thiserror", + "thiserror 1.0.64", "time", ] [[package]] name = "x509-parser" -version = "0.16.0" +version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcbc162f30700d6f3f82a24bf7cc62ffe7caea42c0b2cba8bf7f3ae50cf51f69" +checksum = "4569f339c0c402346d4a75a9e39cf8dad310e287eef1ff56d4c68e5067f53460" dependencies = [ - "asn1-rs 0.6.2", + "asn1-rs 0.7.1", "data-encoding", - "der-parser 9.0.0", + "der-parser 10.0.0", "lazy_static", "nom", - "oid-registry 0.7.1", + "oid-registry 0.8.1", "rusticata-macros", - "thiserror", + "thiserror 2.0.12", "time", ] [[package]] name = "xcm-procedural" -version = "10.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2409-7#0c9644766f02c872f51e5b72adf1051189fe9126" +version = "11.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" dependencies = [ "Inflector", "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", ] [[package]] @@ -12756,10 +14697,32 @@ dependencies = [ "nohash-hasher", "parking_lot 0.12.3", "pin-project", - "rand", + "rand 0.8.5", + "static_assertions", +] + +[[package]] +name = "yamux" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3da1acad1c2dc53f0dde419115a38bd8221d8c3e47ae9aeceaf453266d29307e" +dependencies = [ + "futures", + "log", + "nohash-hasher", + "parking_lot 0.12.3", + "pin-project", + "rand 0.9.1", "static_assertions", + "web-time", ] +[[package]] +name = "yap" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff4524214bc4629eba08d78ceb1d6507070cc0bcbbed23af74e19e6e924a24cf" + [[package]] name = "yasna" version = "0.5.2" @@ -12769,6 +14732,30 @@ dependencies = [ "time", ] +[[package]] +name = "yoke" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f41bb01b8226ef4bfd589436a297c53d118f65921786300e427be8d487695cc" +dependencies = [ + "serde", + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38da3c9736e16c5d3c8c597a9aaa5d1fa565d0532ae05e27c24aa62fb32c0ab6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", + "synstructure 0.13.1", +] + [[package]] name = "zerocopy" version = "0.7.35" @@ -12787,7 +14774,28 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", +] + +[[package]] +name = "zerofrom" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", + "synstructure 0.13.1", ] [[package]] @@ -12807,7 +14815,40 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.90", + "syn 2.0.101", +] + +[[package]] +name = "zerotrie" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36f0bbd478583f79edad978b407914f61b2972f5af6fa089686016be8f9af595" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a05eb080e015ba39cc9e23bbe5e7fb04d5fb040350f99f34e338d5fdd294428" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b96237efa0c878c64bd89c436f661be4e46b2f3eff1ebb976f7ef2321d2f58f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 548bc5af63..51228c94a6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -57,7 +57,7 @@ node-subtensor-runtime = { default-features = false, path = "runtime" } async-trait = "0.1" cargo-husky = { version = "1", default-features = false } clap = "4.5.4" -codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = [ +codec = { package = "parity-scale-codec", version = "3.7.5", default-features = false, features = [ "derive", ] } ed25519-dalek = { version = "2.1.0", default-features = false, features = [ @@ -100,128 +100,128 @@ approx = "0.5" subtensor-macros = { path = "support/macros" } -frame-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -frame-benchmarking-cli = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -frame-executive = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -frame-metadata-hash-extension = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -frame-support = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -frame-system = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -frame-system-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -frame-try-runtime = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } +frame-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +frame-benchmarking-cli = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +frame-executive = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +frame-metadata-hash-extension = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +frame-support = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +frame-system = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +frame-system-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +frame-try-runtime = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -pallet-aura = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -pallet-balances = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -pallet-grandpa = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -pallet-insecure-randomness-collective-flip = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -pallet-membership = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -pallet-multisig = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -pallet-preimage = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } +pallet-aura = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +pallet-balances = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +pallet-grandpa = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +pallet-insecure-randomness-collective-flip = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +pallet-membership = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +pallet-multisig = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +pallet-preimage = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } pallet-proxy = { path = "pallets/proxy", default-features = false } -pallet-safe-mode = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -pallet-scheduler = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -pallet-sudo = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -pallet-timestamp = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -pallet-transaction-payment = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } +pallet-safe-mode = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +pallet-scheduler = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +pallet-sudo = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +pallet-timestamp = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +pallet-transaction-payment = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } pallet-utility = { path = "pallets/utility", default-features = false } -pallet-root-testing = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } +pallet-root-testing = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -sc-basic-authorship = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -sc-cli = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -sc-client-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -sc-consensus = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -sc-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -sc-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -sc-consensus-grandpa-rpc = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -sc-chain-spec-derive = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -sc-chain-spec = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -sc-consensus-slots = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -sc-executor = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -sc-keystore = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -sc-network = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -sc-offchain = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -sc-rpc = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -sc-rpc-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -sc-service = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -sc-telemetry = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -sc-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -sc-transaction-pool-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } +sc-basic-authorship = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sc-cli = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sc-client-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sc-consensus = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sc-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sc-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sc-consensus-grandpa-rpc = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sc-chain-spec-derive = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sc-chain-spec = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sc-consensus-slots = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sc-executor = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sc-keystore = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sc-network = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sc-offchain = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sc-rpc = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sc-rpc-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sc-service = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sc-telemetry = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sc-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sc-transaction-pool-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sp-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -sp-block-builder = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -sp-blockchain = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -sp-consensus = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -sp-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -sp-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -sp-genesis-builder = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -sp-core = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -sp-inherents = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -sp-io = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -sp-keyring = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -sp-offchain = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -sp-rpc = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -sp-session = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -sp-std = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -sp-storage = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -sp-timestamp = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -sp-tracing = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -sp-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -sp-version = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -sp-weights = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } +sp-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sp-block-builder = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sp-blockchain = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sp-consensus = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sp-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sp-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sp-genesis-builder = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sp-core = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sp-inherents = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sp-io = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sp-keyring = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sp-offchain = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sp-rpc = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sp-session = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sp-std = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sp-storage = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sp-timestamp = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sp-tracing = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sp-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sp-version = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sp-weights = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -substrate-build-script-utils = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } +substrate-build-script-utils = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } substrate-fixed = { git = "https://github.com/opentensor/substrate-fixed.git", tag = "v0.5.9" } -substrate-frame-rpc-system = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } -substrate-wasm-builder = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7" } +substrate-frame-rpc-system = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +substrate-wasm-builder = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sc-consensus-manual-seal = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -sc-network-sync = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } -substrate-prometheus-endpoint = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } +sc-consensus-manual-seal = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sc-network-sync = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +substrate-prometheus-endpoint = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } # Frontier -fp-evm = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } -fp-rpc = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } -fp-self-contained = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false, features = [ +fp-evm = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +fp-rpc = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +fp-self-contained = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false, features = [ "serde", ] } -fp-account = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } -fc-storage = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } -fc-db = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } -fc-consensus = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } -fp-consensus = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } -fp-dynamic-fee = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } -fc-api = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } -fc-rpc = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false, features = [ +fp-account = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +fc-storage = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +fc-db = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +fc-consensus = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +fp-consensus = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +fp-dynamic-fee = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +fc-api = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +fc-rpc = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false, features = [ "rpc-binary-search-estimate", ] } -fc-rpc-core = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } -fc-aura = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } -fc-mapping-sync = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } -precompile-utils = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } +fc-rpc-core = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +fc-aura = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +fc-mapping-sync = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +precompile-utils = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } # Frontier FRAME -pallet-base-fee = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } -pallet-dynamic-fee = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } -pallet-ethereum = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } -pallet-evm = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } -pallet-evm-chain-id = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } -pallet-evm-precompile-modexp = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } -pallet-evm-precompile-sha3fips = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } -pallet-evm-precompile-simple = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } -pallet-hotfix-sufficients = { git = "https://github.com/opentensor/frontier", rev = "cd6bca14a3", default-features = false } +pallet-base-fee = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +pallet-dynamic-fee = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +pallet-ethereum = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +pallet-evm = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +pallet-evm-chain-id = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +pallet-evm-precompile-modexp = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +pallet-evm-precompile-sha3fips = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +pallet-evm-precompile-simple = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +pallet-hotfix-sufficients = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } #DRAND pallet-drand = { path = "pallets/drand", default-features = false } -sp-crypto-ec-utils = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", features = [ +sp-crypto-ec-utils = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", features = [ "bls12-381", ] } getrandom = { version = "0.2.15", features = [ "custom", ], default-features = false } -sp-keystore = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409-7", default-features = false } +sp-keystore = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } w3f-bls = { version = "=0.1.3", default-features = false } ark-crypto-primitives = { version = "0.4.0", default-features = false, features = [ "r1cs", From cf8bc0f1048a7bd425ff0bbd05151f17bd754a31 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Fri, 30 May 2025 16:08:50 +0200 Subject: [PATCH 02/49] fix ambiguous types --- pallets/admin-utils/src/lib.rs | 138 ++++++++++++++++----------------- pallets/commitments/src/lib.rs | 11 ++- 2 files changed, 76 insertions(+), 73 deletions(-) diff --git a/pallets/admin-utils/src/lib.rs b/pallets/admin-utils/src/lib.rs index 2b41539816..de18289409 100644 --- a/pallets/admin-utils/src/lib.rs +++ b/pallets/admin-utils/src/lib.rs @@ -140,8 +140,8 @@ pub mod pallet { /// The extrinsic will call the Aura pallet to change the authorities. #[pallet::call_index(0)] #[pallet::weight(Weight::from_parts(6_265_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(2_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(2_u64)))] pub fn swap_authorities( origin: OriginFor, new_authorities: BoundedVec<::AuthorityId, T::MaxAuthorities>, @@ -161,8 +161,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the default take. #[pallet::call_index(1)] #[pallet::weight(Weight::from_parts(6_942_000, 0) - .saturating_add(T::DbWeight::get().reads(0_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(0_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_default_take(origin: OriginFor, default_take: u16) -> DispatchResult { ensure_root(origin)?; pallet_subtensor::Pallet::::set_max_delegate_take(default_take); @@ -187,8 +187,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the serving rate limit. #[pallet::call_index(3)] #[pallet::weight(Weight::from_parts(7_815_000, 0) - .saturating_add(T::DbWeight::get().reads(0_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(0_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_serving_rate_limit( origin: OriginFor, netuid: u16, @@ -209,8 +209,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the minimum difficulty. #[pallet::call_index(4)] #[pallet::weight(Weight::from_parts(19_780_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_min_difficulty( origin: OriginFor, netuid: u16, @@ -236,8 +236,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the maximum difficulty. #[pallet::call_index(5)] #[pallet::weight(Weight::from_parts(20_050_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_max_difficulty( origin: OriginFor, netuid: u16, @@ -263,8 +263,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the weights version key. #[pallet::call_index(6)] #[pallet::weight(Weight::from_parts(19_990_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_weights_version_key( origin: OriginFor, netuid: u16, @@ -313,8 +313,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the weights set rate limit. #[pallet::call_index(7)] #[pallet::weight(Weight::from_parts(20_050_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_weights_set_rate_limit( origin: OriginFor, netuid: u16, @@ -343,8 +343,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the adjustment interval. #[pallet::call_index(8)] #[pallet::weight(Weight::from_parts(20_010_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_adjustment_interval( origin: OriginFor, netuid: u16, @@ -371,8 +371,8 @@ pub mod pallet { #[pallet::call_index(9)] #[pallet::weight(( Weight::from_parts(14_000_000, 0) - .saturating_add(T::DbWeight::get().writes(1)) - .saturating_add(T::DbWeight::get().reads(1)), + .saturating_add(::DbWeight::get().writes(1)) + .saturating_add(::DbWeight::get().reads(1)), DispatchClass::Operational, Pays::No ))] @@ -400,8 +400,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the adjustment beta. #[pallet::call_index(12)] #[pallet::weight(Weight::from_parts(19_240_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_max_weight_limit( origin: OriginFor, netuid: u16, @@ -427,8 +427,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the immunity period. #[pallet::call_index(13)] #[pallet::weight(Weight::from_parts(19_380_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_immunity_period( origin: OriginFor, netuid: u16, @@ -454,8 +454,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the minimum allowed weights. #[pallet::call_index(14)] #[pallet::weight(Weight::from_parts(19_770_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_min_allowed_weights( origin: OriginFor, netuid: u16, @@ -481,8 +481,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the maximum allowed UIDs for a subnet. #[pallet::call_index(15)] #[pallet::weight(Weight::from_parts(23_820_000, 0) - .saturating_add(T::DbWeight::get().reads(2_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(2_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_max_allowed_uids( origin: OriginFor, netuid: u16, @@ -511,8 +511,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the kappa. #[pallet::call_index(16)] #[pallet::weight(Weight::from_parts(19_590_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_kappa(origin: OriginFor, netuid: u16, kappa: u16) -> DispatchResult { pallet_subtensor::Pallet::::ensure_subnet_owner_or_root(origin, netuid)?; @@ -530,8 +530,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the rho. #[pallet::call_index(17)] #[pallet::weight(Weight::from_parts(16_420_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_rho(origin: OriginFor, netuid: u16, rho: u16) -> DispatchResult { pallet_subtensor::Pallet::::ensure_subnet_owner_or_root(origin, netuid)?; @@ -549,8 +549,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the activity cutoff. #[pallet::call_index(18)] #[pallet::weight(Weight::from_parts(22_600_000, 0) - .saturating_add(T::DbWeight::get().reads(2_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(2_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_activity_cutoff( origin: OriginFor, netuid: u16, @@ -583,8 +583,8 @@ pub mod pallet { #[pallet::call_index(19)] #[pallet::weight(( Weight::from_parts(8_696_000, 0) - .saturating_add(T::DbWeight::get().reads(0)) - .saturating_add(T::DbWeight::get().writes(1)), + .saturating_add(::DbWeight::get().reads(0)) + .saturating_add(::DbWeight::get().writes(1)), DispatchClass::Operational, Pays::No ))] @@ -612,7 +612,7 @@ pub mod pallet { #[pallet::call_index(20)] #[pallet::weight(( Weight::from_parts(14_000_000, 0) - .saturating_add(T::DbWeight::get().writes(1)), + .saturating_add(::DbWeight::get().writes(1)), DispatchClass::Operational, Pays::No ))] @@ -639,8 +639,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the target registrations per interval. #[pallet::call_index(21)] #[pallet::weight(Weight::from_parts(19_830_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_target_registrations_per_interval( origin: OriginFor, netuid: u16, @@ -669,8 +669,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the minimum burn. #[pallet::call_index(22)] #[pallet::weight(Weight::from_parts(19_840_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_min_burn( origin: OriginFor, netuid: u16, @@ -696,8 +696,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the maximum burn. #[pallet::call_index(23)] #[pallet::weight(Weight::from_parts(19_740_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_max_burn( origin: OriginFor, netuid: u16, @@ -723,8 +723,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the difficulty. #[pallet::call_index(24)] #[pallet::weight(Weight::from_parts(20_280_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_difficulty( origin: OriginFor, netuid: u16, @@ -749,8 +749,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the maximum allowed validators. #[pallet::call_index(25)] #[pallet::weight(Weight::from_parts(25_210_000, 0) - .saturating_add(T::DbWeight::get().reads(2_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(2_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_max_allowed_validators( origin: OriginFor, netuid: u16, @@ -784,8 +784,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the bonds moving average. #[pallet::call_index(26)] #[pallet::weight(Weight::from_parts(20_270_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_bonds_moving_average( origin: OriginFor, netuid: u16, @@ -818,8 +818,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the bonds penalty. #[pallet::call_index(60)] #[pallet::weight(Weight::from_parts(20_030_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_bonds_penalty( origin: OriginFor, netuid: u16, @@ -845,8 +845,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the maximum registrations per block. #[pallet::call_index(27)] #[pallet::weight(Weight::from_parts(19_680_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_max_registrations_per_block( origin: OriginFor, netuid: u16, @@ -876,7 +876,7 @@ pub mod pallet { #[pallet::call_index(28)] #[pallet::weight(( Weight::from_parts(14_000_000, 0) - .saturating_add(T::DbWeight::get().writes(1)), + .saturating_add(::DbWeight::get().writes(1)), DispatchClass::Operational, Pays::No ))] @@ -899,7 +899,7 @@ pub mod pallet { #[pallet::call_index(29)] #[pallet::weight(( Weight::from_parts(14_000_000, 0) - .saturating_add(T::DbWeight::get().writes(1)), + .saturating_add(::DbWeight::get().writes(1)), DispatchClass::Operational, Pays::No ))] @@ -918,8 +918,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the tempo. #[pallet::call_index(30)] #[pallet::weight(Weight::from_parts(19_900_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_tempo(origin: OriginFor, netuid: u16, tempo: u16) -> DispatchResult { ensure_root(origin)?; ensure!( @@ -953,7 +953,7 @@ pub mod pallet { #[pallet::call_index(35)] #[pallet::weight(( Weight::from_parts(14_000_000, 0) - .saturating_add(T::DbWeight::get().writes(1)), + .saturating_add(::DbWeight::get().writes(1)), DispatchClass::Operational, Pays::No ))] @@ -976,7 +976,7 @@ pub mod pallet { #[pallet::call_index(36)] #[pallet::weight(( Weight::from_parts(14_000_000, 0) - .saturating_add(T::DbWeight::get().writes(1)), + .saturating_add(::DbWeight::get().writes(1)), DispatchClass::Operational, Pays::No ))] @@ -999,7 +999,7 @@ pub mod pallet { #[pallet::call_index(37)] #[pallet::weight(( Weight::from_parts(14_000_000, 0) - .saturating_add(T::DbWeight::get().writes(1)), + .saturating_add(::DbWeight::get().writes(1)), DispatchClass::Operational, Pays::No ))] @@ -1014,7 +1014,7 @@ pub mod pallet { #[pallet::call_index(38)] #[pallet::weight(( Weight::from_parts(14_000_000, 0) - .saturating_add(T::DbWeight::get().writes(1)), + .saturating_add(::DbWeight::get().writes(1)), DispatchClass::Operational, Pays::No ))] @@ -1138,8 +1138,8 @@ pub mod pallet { /// The extrinsic will call the Subtensor pallet to set the value. #[pallet::call_index(49)] #[pallet::weight(Weight::from_parts(19_480_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_commit_reveal_weights_enabled( origin: OriginFor, netuid: u16, @@ -1339,8 +1339,8 @@ pub mod pallet { /// Weight is handled by the `#[pallet::weight]` attribute. #[pallet::call_index(57)] #[pallet::weight(Weight::from_parts(20_490_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_commit_reveal_weights_interval( origin: OriginFor, netuid: u16, @@ -1375,8 +1375,8 @@ pub mod pallet { /// Weight is handled by the `#[pallet::weight]` attribute. #[pallet::call_index(58)] #[pallet::weight(Weight::from_parts(27_199_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_evm_chain_id(origin: OriginFor, chain_id: u64) -> DispatchResult { // Ensure the call is made by the root account ensure_root(origin)?; @@ -1402,8 +1402,8 @@ pub mod pallet { /// is already pending. #[pallet::call_index(59)] #[pallet::weight(Weight::from_parts(11_550_000, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)))] + .saturating_add(::DbWeight::get().reads(1_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn schedule_grandpa_change( origin: OriginFor, // grandpa ID is always the same type, so we don't need to parametrize it via `Config` @@ -1503,7 +1503,7 @@ pub mod pallet { pub fn sudo_set_subnet_owner_hotkey( origin: OriginFor, netuid: u16, - hotkey: T::AccountId, + hotkey: ::AccountId, ) -> DispatchResult { pallet_subtensor::Pallet::::ensure_subnet_owner(origin.clone(), netuid)?; pallet_subtensor::Pallet::::set_subnet_owner_hotkey(netuid, &hotkey); @@ -1637,7 +1637,7 @@ pub mod pallet { pub fn sudo_set_sn_owner_hotkey( origin: OriginFor, netuid: u16, - hotkey: T::AccountId, + hotkey: ::AccountId, ) -> DispatchResult { pallet_subtensor::Pallet::::do_set_sn_owner_hotkey(origin, netuid, &hotkey) } diff --git a/pallets/commitments/src/lib.rs b/pallets/commitments/src/lib.rs index 5b1ff7f3a8..8331e76991 100644 --- a/pallets/commitments/src/lib.rs +++ b/pallets/commitments/src/lib.rs @@ -411,7 +411,8 @@ pub struct CommitmentsSignedExtension(pub Ph impl Default for CommitmentsSignedExtension where - T::RuntimeCall: Dispatchable, + ::RuntimeCall: + Dispatchable, ::RuntimeCall: IsSubType>, { fn default() -> Self { @@ -421,7 +422,8 @@ where impl CommitmentsSignedExtension where - T::RuntimeCall: Dispatchable, + ::RuntimeCall: + Dispatchable, ::RuntimeCall: IsSubType>, { pub fn new() -> Self { @@ -443,13 +445,14 @@ impl sp_std::fmt::Debug for CommitmentsSigne impl SignedExtension for CommitmentsSignedExtension where - T::RuntimeCall: Dispatchable, + ::RuntimeCall: + Dispatchable, ::RuntimeCall: IsSubType>, { const IDENTIFIER: &'static str = "CommitmentsSignedExtension"; type AccountId = T::AccountId; - type Call = T::RuntimeCall; + type Call = ::RuntimeCall; type AdditionalSigned = (); type Pre = (CallType, u64, Self::AccountId); From 631d0981cc03cb862927248fc8be689d62e1fe02 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Fri, 30 May 2025 16:09:25 +0200 Subject: [PATCH 03/49] fix dispatch_info.weight to .call_weight --- pallets/collective/src/lib.rs | 6 ++--- pallets/crowdloan/src/lib.rs | 2 +- pallets/proxy/src/lib.rs | 4 ++-- pallets/utility/src/lib.rs | 6 ++--- pallets/utility/src/tests.rs | 42 +++++++++++++++++------------------ precompiles/src/extensions.rs | 12 +++++----- 6 files changed, 36 insertions(+), 36 deletions(-) diff --git a/pallets/collective/src/lib.rs b/pallets/collective/src/lib.rs index 03d84b063e..baea090307 100644 --- a/pallets/collective/src/lib.rs +++ b/pallets/collective/src/lib.rs @@ -475,7 +475,7 @@ pub mod pallet { T::WeightInfo::execute( *length_bound, // B T::MaxMembers::get(), // M - ).saturating_add(proposal.get_dispatch_info().weight), // P + ).saturating_add(proposal.get_dispatch_info().call_weight), // P DispatchClass::Operational ))] pub fn execute( @@ -934,7 +934,7 @@ impl, I: 'static> Pallet { Error::::ProposalLengthBoundLessThanProposalLength ); let proposal = ProposalOf::::get(hash).ok_or(Error::::ProposalNotExists)?; - let proposal_weight = proposal.get_dispatch_info().weight; + let proposal_weight = proposal.get_dispatch_info().call_weight; ensure!( proposal_weight.all_lte(weight_bound), Error::::ProposalWeightLessThanDispatchCallWeight @@ -964,7 +964,7 @@ impl, I: 'static> Pallet { ) -> (Weight, u32) { Self::deposit_event(Event::Approved { proposal_hash }); - let dispatch_weight = proposal.get_dispatch_info().weight; + let dispatch_weight = proposal.get_dispatch_info().call_weight; let origin = RawOrigin::Members(yes_votes, seats).into(); let result = proposal.dispatch(origin); Self::deposit_event(Event::Executed { diff --git a/pallets/crowdloan/src/lib.rs b/pallets/crowdloan/src/lib.rs index 1d4ed4e263..f068a9e2b0 100644 --- a/pallets/crowdloan/src/lib.rs +++ b/pallets/crowdloan/src/lib.rs @@ -309,7 +309,7 @@ pub mod pallet { #[pallet::weight({ let di = call.as_ref().map(|c| c.get_dispatch_info()); let inner_call_weight = match di { - Some(di) => di.weight, + Some(di) => di.call_weight, None => Weight::zero(), }; let base_weight = T::WeightInfo::create(); diff --git a/pallets/proxy/src/lib.rs b/pallets/proxy/src/lib.rs index 3f45951190..3ae6b6f8cb 100644 --- a/pallets/proxy/src/lib.rs +++ b/pallets/proxy/src/lib.rs @@ -197,7 +197,7 @@ pub mod pallet { #[pallet::weight({ let di = call.get_dispatch_info(); let inner_call_weight = match di.pays_fee { - Pays::Yes => di.weight, + Pays::Yes => di.call_weight, Pays::No => Weight::zero(), }; let base_weight = T::WeightInfo::proxy(T::MaxProxies::get()) @@ -503,7 +503,7 @@ pub mod pallet { (T::WeightInfo::proxy_announced(T::MaxPending::get(), T::MaxProxies::get()) // AccountData for inner call origin accountdata. .saturating_add(T::DbWeight::get().reads_writes(1, 1)) - .saturating_add(di.weight), + .saturating_add(di.call_weight), di.class) })] pub fn proxy_announced( diff --git a/pallets/utility/src/lib.rs b/pallets/utility/src/lib.rs index 2677f744b6..35f11cbc53 100644 --- a/pallets/utility/src/lib.rs +++ b/pallets/utility/src/lib.rs @@ -260,7 +260,7 @@ pub mod pallet { T::WeightInfo::as_derivative() // AccountData for inner call origin accountdata. .saturating_add(T::DbWeight::get().reads_writes(1, 1)) - .saturating_add(dispatch_info.weight), + .saturating_add(dispatch_info.call_weight), dispatch_info.class, ) })] @@ -368,7 +368,7 @@ pub mod pallet { let dispatch_info = call.get_dispatch_info(); ( T::WeightInfo::dispatch_as() - .saturating_add(dispatch_info.weight), + .saturating_add(dispatch_info.call_weight), dispatch_info.class, ) })] @@ -484,7 +484,7 @@ pub mod pallet { |(total_weight, dispatch_class), di| { ( if di.pays_fee == Pays::Yes { - total_weight.saturating_add(di.weight) + total_weight.saturating_add(di.call_weight) } else { total_weight }, diff --git a/pallets/utility/src/tests.rs b/pallets/utility/src/tests.rs index 34ed8d323e..d02e2e0faa 100644 --- a/pallets/utility/src/tests.rs +++ b/pallets/utility/src/tests.rs @@ -327,7 +327,7 @@ fn as_derivative_handles_weight_refund() { let info = call.get_dispatch_info(); let result = call.dispatch(RuntimeOrigin::signed(1)); assert_ok!(result); - assert_eq!(extract_actual_weight(&result, &info), info.weight); + assert_eq!(extract_actual_weight(&result, &info), info.call_weight); // Refund weight when ok let inner_call = call_foobar(false, start_weight, Some(end_weight)); @@ -339,7 +339,7 @@ fn as_derivative_handles_weight_refund() { let result = call.dispatch(RuntimeOrigin::signed(1)); assert_ok!(result); // Diff is refunded - assert_eq!(extract_actual_weight(&result, &info), info.weight - diff); + assert_eq!(extract_actual_weight(&result, &info), info.call_weight - diff); // Full weight when err let inner_call = call_foobar(true, start_weight, None); @@ -354,7 +354,7 @@ fn as_derivative_handles_weight_refund() { DispatchErrorWithPostInfo { post_info: PostDispatchInfo { // No weight is refunded - actual_weight: Some(info.weight), + actual_weight: Some(info.call_weight), pays_fee: Pays::Yes, }, error: DispatchError::Other("The cake is a lie."), @@ -374,7 +374,7 @@ fn as_derivative_handles_weight_refund() { DispatchErrorWithPostInfo { post_info: PostDispatchInfo { // Diff is refunded - actual_weight: Some(info.weight - diff), + actual_weight: Some(info.call_weight - diff), pays_fee: Pays::Yes, }, error: DispatchError::Other("The cake is a lie."), @@ -489,14 +489,14 @@ fn batch_weight_calculation_doesnt_overflow() { let big_call = RuntimeCall::RootTesting(RootTestingCall::fill_block { ratio: Perbill::from_percent(50), }); - assert_eq!(big_call.get_dispatch_info().weight, Weight::MAX / 2); + assert_eq!(big_call.get_dispatch_info().call_weight, Weight::MAX / 2); // 3 * 50% saturates to 100% let batch_call = RuntimeCall::Utility(crate::Call::batch { calls: vec![big_call.clone(), big_call.clone(), big_call.clone()], }); - assert_eq!(batch_call.get_dispatch_info().weight, Weight::MAX); + assert_eq!(batch_call.get_dispatch_info().call_weight, Weight::MAX); }); } @@ -515,7 +515,7 @@ fn batch_handles_weight_refund() { let info = call.get_dispatch_info(); let result = call.dispatch(RuntimeOrigin::signed(1)); assert_ok!(result); - assert_eq!(extract_actual_weight(&result, &info), info.weight); + assert_eq!(extract_actual_weight(&result, &info), info.call_weight); // Refund weight when ok let inner_call = call_foobar(false, start_weight, Some(end_weight)); @@ -527,7 +527,7 @@ fn batch_handles_weight_refund() { // Diff is refunded assert_eq!( extract_actual_weight(&result, &info), - info.weight - diff * batch_len + info.call_weight - diff * batch_len ); // Full weight when err @@ -546,7 +546,7 @@ fn batch_handles_weight_refund() { .into(), ); // No weight is refunded - assert_eq!(extract_actual_weight(&result, &info), info.weight); + assert_eq!(extract_actual_weight(&result, &info), info.call_weight); // Refund weight when err let good_call = call_foobar(false, start_weight, Some(end_weight)); @@ -566,7 +566,7 @@ fn batch_handles_weight_refund() { ); assert_eq!( extract_actual_weight(&result, &info), - info.weight - diff * batch_len + info.call_weight - diff * batch_len ); // Partial batch completion @@ -626,7 +626,7 @@ fn batch_all_revert() { DispatchErrorWithPostInfo { post_info: PostDispatchInfo { actual_weight: Some( - ::WeightInfo::batch_all(2) + info.weight * 2 + ::WeightInfo::batch_all(2) + info.call_weight * 2 ), pays_fee: Pays::Yes }, @@ -653,7 +653,7 @@ fn batch_all_handles_weight_refund() { let info = call.get_dispatch_info(); let result = call.dispatch(RuntimeOrigin::signed(1)); assert_ok!(result); - assert_eq!(extract_actual_weight(&result, &info), info.weight); + assert_eq!(extract_actual_weight(&result, &info), info.call_weight); // Refund weight when ok let inner_call = call_foobar(false, start_weight, Some(end_weight)); @@ -665,7 +665,7 @@ fn batch_all_handles_weight_refund() { // Diff is refunded assert_eq!( extract_actual_weight(&result, &info), - info.weight - diff * batch_len + info.call_weight - diff * batch_len ); // Full weight when err @@ -677,7 +677,7 @@ fn batch_all_handles_weight_refund() { let result = call.dispatch(RuntimeOrigin::signed(1)); assert_err_ignore_postinfo!(result, "The cake is a lie."); // No weight is refunded - assert_eq!(extract_actual_weight(&result, &info), info.weight); + assert_eq!(extract_actual_weight(&result, &info), info.call_weight); // Refund weight when err let good_call = call_foobar(false, start_weight, Some(end_weight)); @@ -690,7 +690,7 @@ fn batch_all_handles_weight_refund() { assert_err_ignore_postinfo!(result, "The cake is a lie."); assert_eq!( extract_actual_weight(&result, &info), - info.weight - diff * batch_len + info.call_weight - diff * batch_len ); // Partial batch completion @@ -729,7 +729,7 @@ fn batch_all_does_not_nest() { Utility::batch_all(RuntimeOrigin::signed(1), vec![batch_all.clone()]), DispatchErrorWithPostInfo { post_info: PostDispatchInfo { - actual_weight: Some(::WeightInfo::batch_all(1) + info.weight), + actual_weight: Some(::WeightInfo::batch_all(1) + info.call_weight), pays_fee: Pays::Yes }, error: frame_system::Error::::CallFiltered.into(), @@ -868,7 +868,7 @@ fn batch_all_doesnt_work_with_inherents() { batch_all.dispatch(RuntimeOrigin::signed(1)), DispatchErrorWithPostInfo { post_info: PostDispatchInfo { - actual_weight: Some(info.weight), + actual_weight: Some(info.call_weight), pays_fee: Pays::Yes }, error: frame_system::Error::::CallFiltered.into(), @@ -886,7 +886,7 @@ fn batch_works_with_council_origin() { )], }); let proposal_len: u32 = proposal.using_encoded(|p| p.len() as u32); - let proposal_weight = proposal.get_dispatch_info().weight; + let proposal_weight = proposal.get_dispatch_info().call_weight; let hash = BlakeTwo256::hash_of(&proposal); assert_ok!(Council::propose( @@ -926,7 +926,7 @@ fn force_batch_works_with_council_origin() { )], }); let proposal_len: u32 = proposal.using_encoded(|p| p.len() as u32); - let proposal_weight = proposal.get_dispatch_info().weight; + let proposal_weight = proposal.get_dispatch_info().call_weight; let hash = BlakeTwo256::hash_of(&proposal); assert_ok!(Council::propose( @@ -977,7 +977,7 @@ fn with_weight_works() { )); // Weight before is max. assert_eq!( - upgrade_code_call.get_dispatch_info().weight, + upgrade_code_call.get_dispatch_info().call_weight, ::SystemWeightInfo::set_code() ); assert_eq!( @@ -991,7 +991,7 @@ fn with_weight_works() { }; // Weight after is set by Root. assert_eq!( - with_weight_call.get_dispatch_info().weight, + with_weight_call.get_dispatch_info().call_weight, Weight::from_parts(123, 456) ); assert_eq!( diff --git a/precompiles/src/extensions.rs b/precompiles/src/extensions.rs index 1c90922c57..ffa8da5778 100644 --- a/precompiles/src/extensions.rs +++ b/precompiles/src/extensions.rs @@ -56,7 +56,7 @@ pub(crate) trait PrecompileHandleExt: PrecompileHandle { if let Some(gas) = target_gas { let valid_weight = ::GasWeightMapping::gas_to_weight(gas, false).ref_time(); - if info.weight.ref_time() > valid_weight { + if info.call_weight.ref_time() > valid_weight { return Err(PrecompileFailure::Error { exit_status: ExitError::OutOfGas, }); @@ -64,27 +64,27 @@ pub(crate) trait PrecompileHandleExt: PrecompileHandle { } self.record_external_cost( - Some(info.weight.ref_time()), - Some(info.weight.proof_size()), + Some(info.call_weight.ref_time()), + Some(info.call_weight.proof_size()), None, )?; match call.dispatch(R::RuntimeOrigin::from(origin)) { Ok(post_info) => { if post_info.pays_fee(&info) == Pays::Yes { - let actual_weight = post_info.actual_weight.unwrap_or(info.weight); + let actual_weight = post_info.actual_weight.unwrap_or(info.call_weight); let cost = ::GasWeightMapping::weight_to_gas(actual_weight); self.record_cost(cost)?; self.refund_external_cost( Some( - info.weight + info.call_weight .ref_time() .saturating_sub(actual_weight.ref_time()), ), Some( - info.weight + info.call_weight .proof_size() .saturating_sub(actual_weight.proof_size()), ), From aedad2e8e8b863ba6fde515824bb599fbcebcc7e Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Fri, 30 May 2025 16:10:01 +0200 Subject: [PATCH 04/49] refactor imports and fix hash conversion in subnet registration --- pallets/subtensor/src/migrations/migrate_rao.rs | 3 +-- pallets/subtensor/src/subnets/registration.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pallets/subtensor/src/migrations/migrate_rao.rs b/pallets/subtensor/src/migrations/migrate_rao.rs index 975ab55c11..be27ba8e2e 100644 --- a/pallets/subtensor/src/migrations/migrate_rao.rs +++ b/pallets/subtensor/src/migrations/migrate_rao.rs @@ -1,8 +1,7 @@ -use alloc::string::String; +use alloc::{format, string::String}; use frame_support::IterableStorageMap; use frame_support::{traits::Get, weights::Weight}; -use sp_runtime::format; use super::*; diff --git a/pallets/subtensor/src/subnets/registration.rs b/pallets/subtensor/src/subnets/registration.rs index 5c698c1b33..9e772d865a 100644 --- a/pallets/subtensor/src/subnets/registration.rs +++ b/pallets/subtensor/src/subnets/registration.rs @@ -481,7 +481,7 @@ impl Pallet { /// was too high. pub fn hash_meets_difficulty(hash: &H256, difficulty: U256) -> bool { let bytes: &[u8] = hash.as_bytes(); - let num_hash: U256 = U256::from(bytes); + let num_hash: U256 = U256::from_little_endian(bytes); let (value, overflowed) = num_hash.overflowing_mul(difficulty); log::trace!( From b389891370c1d1ed9103a216ba4fe6f475334c91 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Fri, 6 Jun 2025 12:16:59 +0200 Subject: [PATCH 05/49] bump polkadot sdk to stable2412-6 and frontier --- Cargo.lock | 522 +++++++++++++++++++++++++++-------------------------- Cargo.toml | 198 ++++++++++---------- 2 files changed, 369 insertions(+), 351 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index fd60abf24a..f9a51feefd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -922,7 +922,7 @@ dependencies = [ [[package]] name = "binary-merkle-tree" version = "16.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "hash-db", "log", @@ -1888,7 +1888,7 @@ dependencies = [ [[package]] name = "cumulus-client-parachain-inherent" version = "0.15.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -1898,7 +1898,7 @@ dependencies = [ "parity-scale-codec", "sc-client-api", "sp-api", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "sp-inherents", "sp-runtime", "sp-state-machine", @@ -1910,7 +1910,7 @@ dependencies = [ [[package]] name = "cumulus-primitives-core" version = "0.17.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "parity-scale-codec", "polkadot-core-primitives", @@ -1926,7 +1926,7 @@ dependencies = [ [[package]] name = "cumulus-primitives-parachain-inherent" version = "0.17.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -1940,22 +1940,39 @@ dependencies = [ [[package]] name = "cumulus-primitives-proof-size-hostfunction" version = "0.11.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "sp-externalities 0.30.0", "sp-runtime-interface 29.0.0", "sp-trie", ] +[[package]] +name = "cumulus-primitives-storage-weight-reclaim" +version = "9.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" +dependencies = [ + "cumulus-primitives-core", + "cumulus-primitives-proof-size-hostfunction", + "docify", + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-runtime", +] + [[package]] name = "cumulus-relay-chain-interface" version = "0.21.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-trait", "cumulus-primitives-core", "futures", - "jsonrpsee-core 0.24.7", + "jsonrpsee-core 0.24.9", "parity-scale-codec", "polkadot-overseer", "sc-client-api", @@ -1969,7 +1986,7 @@ dependencies = [ [[package]] name = "cumulus-test-relay-sproof-builder" version = "0.17.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "cumulus-primitives-core", "parity-scale-codec", @@ -2844,7 +2861,7 @@ dependencies = [ [[package]] name = "fc-api" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "async-trait", "fp-storage", @@ -2856,7 +2873,7 @@ dependencies = [ [[package]] name = "fc-aura" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "fc-rpc", "fp-storage", @@ -2872,7 +2889,7 @@ dependencies = [ [[package]] name = "fc-consensus" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "async-trait", "fp-consensus", @@ -2882,13 +2899,13 @@ dependencies = [ "sp-block-builder", "sp-consensus", "sp-runtime", - "thiserror 1.0.64", + "thiserror 2.0.12", ] [[package]] name = "fc-db" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "async-trait", "ethereum", @@ -2918,7 +2935,7 @@ dependencies = [ [[package]] name = "fc-mapping-sync" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "fc-db", "fc-storage", @@ -2941,7 +2958,7 @@ dependencies = [ [[package]] name = "fc-rpc" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "ethereum", "ethereum-types 0.15.1", @@ -2955,20 +2972,19 @@ dependencies = [ "fp-storage", "futures", "hex", - "jsonrpsee 0.24.7", + "jsonrpsee 0.24.9", "libsecp256k1", "log", "pallet-evm", "parity-scale-codec", "prometheus", - "rand 0.8.5", + "rand 0.9.1", "rlp 0.6.1", "sc-client-api", "sc-network", "sc-network-sync", "sc-rpc", "sc-service", - "sc-transaction-pool", "sc-transaction-pool-api", "sc-utils", "schnellru", @@ -2984,30 +3000,31 @@ dependencies = [ "sp-runtime", "sp-state-machine", "sp-storage 22.0.0", + "sp-trie", "substrate-prometheus-endpoint", - "thiserror 1.0.64", + "thiserror 2.0.12", "tokio", ] [[package]] name = "fc-rpc-core" version = "1.1.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "ethereum", "ethereum-types 0.15.1", - "jsonrpsee 0.24.7", + "jsonrpsee 0.24.9", "rlp 0.6.1", "rustc-hex", "serde", "serde_json", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", ] [[package]] name = "fc-storage" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "ethereum", "ethereum-types 0.15.1", @@ -3173,7 +3190,7 @@ checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" [[package]] name = "fork-tree" version = "13.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "parity-scale-codec", ] @@ -3200,7 +3217,7 @@ dependencies = [ [[package]] name = "fp-account" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "hex", "impl-serde 0.5.0", @@ -3219,7 +3236,7 @@ dependencies = [ [[package]] name = "fp-consensus" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "ethereum", "parity-scale-codec", @@ -3230,7 +3247,7 @@ dependencies = [ [[package]] name = "fp-ethereum" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "ethereum", "ethereum-types 0.15.1", @@ -3242,7 +3259,7 @@ dependencies = [ [[package]] name = "fp-evm" version = "3.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "environmental", "evm", @@ -3258,7 +3275,7 @@ dependencies = [ [[package]] name = "fp-rpc" version = "3.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "ethereum", "ethereum-types 0.15.1", @@ -3274,7 +3291,7 @@ dependencies = [ [[package]] name = "fp-self-contained" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "frame-support", "parity-scale-codec", @@ -3286,7 +3303,7 @@ dependencies = [ [[package]] name = "fp-storage" version = "2.0.0" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "parity-scale-codec", "serde", @@ -3300,8 +3317,8 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" [[package]] name = "frame-benchmarking" -version = "39.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +version = "39.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "frame-support", "frame-support-procedural", @@ -3324,8 +3341,8 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" -version = "46.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +version = "46.2.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "Inflector", "array-bytes", @@ -3363,7 +3380,7 @@ dependencies = [ "sp-block-builder", "sp-blockchain", "sp-core", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "sp-database", "sp-externalities 0.30.0", "sp-genesis-builder", @@ -3387,7 +3404,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "39.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "aquamarine", "frame-support", @@ -3440,7 +3457,7 @@ dependencies = [ [[package]] name = "frame-metadata-hash-extension" version = "0.7.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "array-bytes", "const-hex", @@ -3456,7 +3473,7 @@ dependencies = [ [[package]] name = "frame-support" version = "39.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "aquamarine", "array-bytes", @@ -3480,7 +3497,7 @@ dependencies = [ "sp-arithmetic", "sp-core", "sp-crypto-hashing-proc-macro", - "sp-debug-derive 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-debug-derive 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "sp-genesis-builder", "sp-inherents", "sp-io", @@ -3488,7 +3505,7 @@ dependencies = [ "sp-runtime", "sp-staking", "sp-state-machine", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "sp-tracing 17.0.1", "sp-trie", "sp-weights", @@ -3499,7 +3516,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "31.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "Inflector", "cfg-expr", @@ -3512,7 +3529,7 @@ dependencies = [ "proc-macro-warning 1.0.2", "proc-macro2", "quote", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "syn 2.0.101", ] @@ -3532,7 +3549,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "13.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "frame-support-procedural-tools-derive 12.0.0", "proc-macro-crate 3.2.0", @@ -3555,7 +3572,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "12.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "proc-macro2", "quote", @@ -3565,7 +3582,7 @@ dependencies = [ [[package]] name = "frame-system" version = "39.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "cfg-if", "docify", @@ -3577,7 +3594,7 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "sp-version", "sp-weights", ] @@ -3585,7 +3602,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "39.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "frame-benchmarking", "frame-support", @@ -3599,7 +3616,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "35.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "docify", "parity-scale-codec", @@ -3609,7 +3626,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.45.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "frame-support", "parity-scale-codec", @@ -4290,7 +4307,7 @@ dependencies = [ "httpdate", "itoa", "pin-project-lite", - "socket2 0.4.10", + "socket2 0.5.9", "tokio", "tower-service", "tracing", @@ -4873,14 +4890,14 @@ dependencies = [ [[package]] name = "jsonrpsee" -version = "0.24.7" +version = "0.24.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5c71d8c1a731cc4227c2f698d377e7848ca12c8a48866fc5e6951c43a4db843" +checksum = "37b26c20e2178756451cfeb0661fb74c47dd5988cb7e3939de7e9241fd604d42" dependencies = [ - "jsonrpsee-core 0.24.7", + "jsonrpsee-core 0.24.9", "jsonrpsee-proc-macros", "jsonrpsee-server", - "jsonrpsee-types 0.24.7", + "jsonrpsee-types 0.24.9", "tokio", "tracing", ] @@ -4976,9 +4993,9 @@ dependencies = [ [[package]] name = "jsonrpsee-core" -version = "0.24.7" +version = "0.24.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2882f6f8acb9fdaec7cefc4fd607119a9bd709831df7d7672a1d3b644628280" +checksum = "456196007ca3a14db478346f58c7238028d55ee15c1df15115596e411ff27925" dependencies = [ "async-trait", "bytes", @@ -4986,7 +5003,7 @@ dependencies = [ "http 1.1.0", "http-body 1.0.1", "http-body-util", - "jsonrpsee-types 0.24.7", + "jsonrpsee-types 0.24.9", "parking_lot 0.12.3", "rand 0.8.5", "rustc-hash 2.0.0", @@ -5019,9 +5036,9 @@ dependencies = [ [[package]] name = "jsonrpsee-proc-macros" -version = "0.24.7" +version = "0.24.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c06c01ae0007548e73412c08e2285ffe5d723195bf268bce67b1b77c3bb2a14d" +checksum = "5e65763c942dfc9358146571911b0cd1c361c2d63e2d2305622d40d36376ca80" dependencies = [ "heck 0.5.0", "proc-macro-crate 3.2.0", @@ -5032,9 +5049,9 @@ dependencies = [ [[package]] name = "jsonrpsee-server" -version = "0.24.7" +version = "0.24.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82ad8ddc14be1d4290cd68046e7d1d37acd408efed6d3ca08aefcc3ad6da069c" +checksum = "55e363146da18e50ad2b51a0a7925fc423137a0b1371af8235b1c231a0647328" dependencies = [ "futures-util", "http 1.1.0", @@ -5042,8 +5059,8 @@ dependencies = [ "http-body-util", "hyper 1.5.0", "hyper-util", - "jsonrpsee-core 0.24.7", - "jsonrpsee-types 0.24.7", + "jsonrpsee-core 0.24.9", + "jsonrpsee-types 0.24.9", "pin-project", "route-recognizer", "serde", @@ -5085,9 +5102,9 @@ dependencies = [ [[package]] name = "jsonrpsee-types" -version = "0.24.7" +version = "0.24.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a178c60086f24cc35bb82f57c651d0d25d99c4742b4d335de04e97fa1f08a8a1" +checksum = "08a8e70baf945b6b5752fc8eb38c918a48f1234daf11355e07106d963f860089" dependencies = [ "http 1.1.0", "serde", @@ -6492,7 +6509,7 @@ dependencies = [ "frame-system-rpc-runtime-api", "futures", "hex", - "jsonrpsee 0.24.7", + "jsonrpsee 0.24.9", "memmap2 0.9.5", "node-subtensor-runtime", "num-traits", @@ -6620,7 +6637,7 @@ dependencies = [ "sp-offchain", "sp-runtime", "sp-session", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "sp-storage 22.0.0", "sp-tracing 17.0.1", "sp-transaction-pool", @@ -6984,7 +7001,7 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "sp-tracing 17.0.1", "sp-weights", "substrate-fixed", @@ -6994,7 +7011,7 @@ dependencies = [ [[package]] name = "pallet-aura" version = "38.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "frame-support", "frame-system", @@ -7010,7 +7027,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "39.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "frame-support", "frame-system", @@ -7023,7 +7040,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "40.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "docify", "frame-benchmarking", @@ -7038,7 +7055,7 @@ dependencies = [ [[package]] name = "pallet-base-fee" version = "1.0.0" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "fp-evm", "frame-support", @@ -7062,7 +7079,7 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "subtensor-macros", ] @@ -7087,7 +7104,7 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "subtensor-macros", "tle", "w3f-bls", @@ -7108,7 +7125,7 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "subtensor-macros", ] @@ -7148,7 +7165,7 @@ dependencies = [ [[package]] name = "pallet-ethereum" version = "4.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "ethereum", "ethereum-types 0.15.1", @@ -7171,8 +7188,9 @@ dependencies = [ [[package]] name = "pallet-evm" version = "6.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ + "cumulus-primitives-storage-weight-reclaim", "environmental", "evm", "fp-account", @@ -7194,7 +7212,7 @@ dependencies = [ [[package]] name = "pallet-evm-chain-id" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "frame-support", "frame-system", @@ -7205,7 +7223,7 @@ dependencies = [ [[package]] name = "pallet-evm-precompile-modexp" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "fp-evm", "num", @@ -7214,7 +7232,7 @@ dependencies = [ [[package]] name = "pallet-evm-precompile-sha3fips" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "fp-evm", "tiny-keccak", @@ -7223,7 +7241,7 @@ dependencies = [ [[package]] name = "pallet-evm-precompile-simple" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "fp-evm", "ripemd", @@ -7233,7 +7251,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "39.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "frame-benchmarking", "frame-support", @@ -7255,7 +7273,7 @@ dependencies = [ [[package]] name = "pallet-hotfix-sufficients" version = "1.0.0" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "frame-benchmarking", "frame-support", @@ -7270,7 +7288,7 @@ dependencies = [ [[package]] name = "pallet-insecure-randomness-collective-flip" version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "frame-support", "frame-system", @@ -7283,7 +7301,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "39.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "frame-benchmarking", "frame-support", @@ -7299,7 +7317,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "39.1.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "log", "parity-scale-codec", @@ -7310,7 +7328,7 @@ dependencies = [ [[package]] name = "pallet-preimage" version = "39.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "frame-benchmarking", "frame-support", @@ -7343,7 +7361,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "39.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "parity-scale-codec", "polkadot-sdk-frame", @@ -7363,14 +7381,14 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "subtensor-macros", ] [[package]] name = "pallet-root-testing" version = "15.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "frame-support", "frame-system", @@ -7384,7 +7402,7 @@ dependencies = [ [[package]] name = "pallet-safe-mode" version = "20.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "docify", "frame-benchmarking", @@ -7401,8 +7419,8 @@ dependencies = [ [[package]] name = "pallet-scheduler" -version = "40.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +version = "40.2.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "docify", "frame-benchmarking", @@ -7419,7 +7437,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "39.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "frame-support", "frame-system", @@ -7477,7 +7495,7 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "sp-tracing 17.0.1", "sp-version", "substrate-fixed", @@ -7489,7 +7507,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "39.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "docify", "frame-benchmarking", @@ -7504,7 +7522,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "docify", "frame-benchmarking", @@ -7523,7 +7541,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "39.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "frame-benchmarking", "frame-support", @@ -7539,9 +7557,9 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "42.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ - "jsonrpsee 0.24.7", + "jsonrpsee 0.24.9", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", "sp-api", @@ -7555,7 +7573,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "39.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -7586,7 +7604,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "39.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "frame-benchmarking", "frame-support", @@ -7921,7 +7939,7 @@ checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2" [[package]] name = "polkadot-core-primitives" version = "16.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "parity-scale-codec", "scale-info", @@ -7932,7 +7950,7 @@ dependencies = [ [[package]] name = "polkadot-node-metrics" version = "21.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "bs58", "futures", @@ -7951,7 +7969,7 @@ dependencies = [ [[package]] name = "polkadot-node-network-protocol" version = "21.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-channel 1.9.0", "async-trait", @@ -7976,7 +7994,7 @@ dependencies = [ [[package]] name = "polkadot-node-primitives" version = "17.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "bitvec", "bounded-vec", @@ -8002,7 +8020,7 @@ dependencies = [ [[package]] name = "polkadot-node-subsystem-types" version = "21.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-trait", "bitvec", @@ -8031,7 +8049,7 @@ dependencies = [ [[package]] name = "polkadot-overseer" version = "21.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-trait", "futures", @@ -8053,7 +8071,7 @@ dependencies = [ [[package]] name = "polkadot-parachain-primitives" version = "15.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "bounded-collections", "derive_more 0.99.18", @@ -8069,7 +8087,7 @@ dependencies = [ [[package]] name = "polkadot-primitives" version = "17.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "bitvec", "hex-literal", @@ -8090,14 +8108,14 @@ dependencies = [ "sp-keystore", "sp-runtime", "sp-staking", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "thiserror 1.0.64", ] [[package]] name = "polkadot-sdk-frame" version = "0.8.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "docify", "frame-benchmarking", @@ -8131,7 +8149,7 @@ dependencies = [ [[package]] name = "polkadot-statement-table" version = "17.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "parity-scale-codec", "polkadot-primitives", @@ -8293,7 +8311,7 @@ dependencies = [ [[package]] name = "precompile-utils" version = "0.1.0" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "environmental", "evm", @@ -8317,14 +8335,14 @@ dependencies = [ [[package]] name = "precompile-utils-macro" version = "0.1.0" -source = "git+https://github.com/opentensor/frontier?rev=b0d0c2fe2e#b0d0c2fe2edab5cfa2252c57fab69059201ed3d7" +source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" dependencies = [ "case", "num_enum", "prettyplease", "proc-macro2", "quote", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "syn 2.0.101", ] @@ -9456,7 +9474,7 @@ name = "safe-math" version = "0.1.0" dependencies = [ "num-traits", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "substrate-fixed", ] @@ -9490,7 +9508,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "30.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "log", "sp-core", @@ -9501,7 +9519,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.48.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-trait", "futures", @@ -9531,7 +9549,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.48.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "futures", "futures-timer", @@ -9553,7 +9571,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.43.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "parity-scale-codec", "sp-api", @@ -9568,7 +9586,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "41.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "array-bytes", "docify", @@ -9584,7 +9602,7 @@ dependencies = [ "serde_json", "sp-blockchain", "sp-core", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "sp-genesis-builder", "sp-io", "sp-runtime", @@ -9595,7 +9613,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "12.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "proc-macro-crate 3.2.0", "proc-macro2", @@ -9606,7 +9624,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.50.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "array-bytes", "chrono", @@ -9648,7 +9666,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "fnv", "futures", @@ -9675,7 +9693,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.45.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "hash-db", "kvdb", @@ -9701,7 +9719,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.47.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-trait", "futures", @@ -9725,7 +9743,7 @@ dependencies = [ [[package]] name = "sc-consensus-aura" version = "0.48.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-trait", "futures", @@ -9754,7 +9772,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.48.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-trait", "fork-tree", @@ -9779,7 +9797,7 @@ dependencies = [ "sp-consensus-babe", "sp-consensus-slots", "sp-core", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "sp-inherents", "sp-keystore", "sp-runtime", @@ -9790,7 +9808,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.47.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "fork-tree", "parity-scale-codec", @@ -9803,7 +9821,7 @@ dependencies = [ [[package]] name = "sc-consensus-grandpa" version = "0.33.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "ahash 0.8.11", "array-bytes", @@ -9837,7 +9855,7 @@ dependencies = [ "sp-consensus", "sp-consensus-grandpa", "sp-core", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "sp-keystore", "sp-runtime", "substrate-prometheus-endpoint", @@ -9847,11 +9865,11 @@ dependencies = [ [[package]] name = "sc-consensus-grandpa-rpc" version = "0.33.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "finality-grandpa", "futures", - "jsonrpsee 0.24.7", + "jsonrpsee 0.24.9", "log", "parity-scale-codec", "sc-client-api", @@ -9867,13 +9885,13 @@ dependencies = [ [[package]] name = "sc-consensus-manual-seal" version = "0.49.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "assert_matches", "async-trait", "futures", "futures-timer", - "jsonrpsee 0.24.7", + "jsonrpsee 0.24.9", "log", "parity-scale-codec", "sc-client-api", @@ -9902,7 +9920,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.47.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-trait", "futures", @@ -9925,7 +9943,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.41.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "parity-scale-codec", "parking_lot 0.12.3", @@ -9948,7 +9966,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.36.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "polkavm", "sc-allocator", @@ -9961,7 +9979,7 @@ dependencies = [ [[package]] name = "sc-executor-polkavm" version = "0.33.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "log", "polkavm", @@ -9972,7 +9990,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.36.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "anyhow", "cfg-if", @@ -9990,7 +10008,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.47.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "console", "futures", @@ -10007,7 +10025,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "34.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "array-bytes", "parking_lot 0.12.3", @@ -10021,7 +10039,7 @@ dependencies = [ [[package]] name = "sc-mixnet" version = "0.18.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "array-bytes", "arrayvec 0.7.6", @@ -10049,8 +10067,8 @@ dependencies = [ [[package]] name = "sc-network" -version = "0.48.3" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +version = "0.48.4" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "array-bytes", "async-channel 1.9.0", @@ -10101,7 +10119,7 @@ dependencies = [ [[package]] name = "sc-network-common" version = "0.47.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-trait", "bitflags 1.3.2", @@ -10119,7 +10137,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.48.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "ahash 0.8.11", "futures", @@ -10138,7 +10156,7 @@ dependencies = [ [[package]] name = "sc-network-light" version = "0.47.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "array-bytes", "async-channel 1.9.0", @@ -10159,7 +10177,7 @@ dependencies = [ [[package]] name = "sc-network-sync" version = "0.47.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "array-bytes", "async-channel 1.9.0", @@ -10195,7 +10213,7 @@ dependencies = [ [[package]] name = "sc-network-transactions" version = "0.47.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "array-bytes", "futures", @@ -10214,7 +10232,7 @@ dependencies = [ [[package]] name = "sc-network-types" version = "0.15.2" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "bs58", "ed25519-dalek", @@ -10231,7 +10249,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "43.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "array-bytes", "bytes", @@ -10268,7 +10286,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.18.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -10277,10 +10295,10 @@ dependencies = [ [[package]] name = "sc-rpc" version = "43.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "futures", - "jsonrpsee 0.24.7", + "jsonrpsee 0.24.9", "log", "parity-scale-codec", "parking_lot 0.12.3", @@ -10309,9 +10327,9 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.47.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ - "jsonrpsee 0.24.7", + "jsonrpsee 0.24.9", "parity-scale-codec", "sc-chain-spec", "sc-mixnet", @@ -10329,7 +10347,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "20.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "dyn-clone", "forwarded-header-value", @@ -10339,7 +10357,7 @@ dependencies = [ "http-body-util", "hyper 1.5.0", "ip_network", - "jsonrpsee 0.24.7", + "jsonrpsee 0.24.9", "log", "sc-rpc-api", "serde", @@ -10353,14 +10371,14 @@ dependencies = [ [[package]] name = "sc-rpc-spec-v2" version = "0.48.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "array-bytes", "futures", "futures-util", "hex", "itertools 0.11.0", - "jsonrpsee 0.24.7", + "jsonrpsee 0.24.9", "log", "parity-scale-codec", "parking_lot 0.12.3", @@ -10385,14 +10403,14 @@ dependencies = [ [[package]] name = "sc-service" version = "0.49.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-trait", "directories", "exit-future", "futures", "futures-timer", - "jsonrpsee 0.24.7", + "jsonrpsee 0.24.9", "log", "parity-scale-codec", "parking_lot 0.12.3", @@ -10449,7 +10467,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.37.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "log", "parity-scale-codec", @@ -10460,7 +10478,7 @@ dependencies = [ [[package]] name = "sc-sysinfo" version = "41.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "derive_more 0.99.18", "futures", @@ -10473,15 +10491,15 @@ dependencies = [ "serde", "serde_json", "sp-core", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "sp-io", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", ] [[package]] name = "sc-telemetry" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "chrono", "futures", @@ -10501,7 +10519,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "chrono", "console", @@ -10529,7 +10547,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "proc-macro-crate 3.2.0", "proc-macro2", @@ -10540,7 +10558,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "38.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-trait", "futures", @@ -10558,7 +10576,7 @@ dependencies = [ "sp-api", "sp-blockchain", "sp-core", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "sp-runtime", "sp-tracing 17.0.1", "sp-transaction-pool", @@ -10571,7 +10589,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "38.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-trait", "futures", @@ -10587,7 +10605,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "18.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-channel 1.9.0", "futures", @@ -11123,7 +11141,7 @@ name = "share-pool" version = "0.1.0" dependencies = [ "safe-math", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "substrate-fixed", ] @@ -11398,7 +11416,7 @@ dependencies = [ [[package]] name = "sp-api" version = "35.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "docify", "hash-db", @@ -11420,7 +11438,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "21.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "Inflector", "blake2 0.10.6", @@ -11434,7 +11452,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "39.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "parity-scale-codec", "scale-info", @@ -11446,7 +11464,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "docify", "integer-sqrt", @@ -11469,7 +11487,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "35.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "parity-scale-codec", "scale-info", @@ -11481,7 +11499,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "35.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "sp-api", "sp-inherents", @@ -11491,7 +11509,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "futures", "parity-scale-codec", @@ -11510,7 +11528,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.41.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-trait", "futures", @@ -11525,7 +11543,7 @@ dependencies = [ [[package]] name = "sp-consensus-aura" version = "0.41.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-trait", "parity-scale-codec", @@ -11541,7 +11559,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.41.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-trait", "parity-scale-codec", @@ -11559,7 +11577,7 @@ dependencies = [ [[package]] name = "sp-consensus-grandpa" version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "finality-grandpa", "log", @@ -11576,7 +11594,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.41.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "parity-scale-codec", "scale-info", @@ -11587,7 +11605,7 @@ dependencies = [ [[package]] name = "sp-core" version = "35.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "array-bytes", "bitflags 1.3.2", @@ -11616,11 +11634,11 @@ dependencies = [ "secp256k1 0.28.2", "secrecy", "serde", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", - "sp-debug-derive 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", + "sp-debug-derive 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "sp-externalities 0.30.0", "sp-runtime-interface 29.0.0", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "sp-storage 22.0.0", "ss58-registry", "substrate-bip39", @@ -11653,7 +11671,7 @@ dependencies = [ [[package]] name = "sp-crypto-ec-utils" version = "0.15.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "ark-bls12-377", "ark-bls12-377-ext", @@ -11687,7 +11705,7 @@ dependencies = [ [[package]] name = "sp-crypto-hashing" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "blake2b_simd", "byteorder", @@ -11700,17 +11718,17 @@ dependencies = [ [[package]] name = "sp-crypto-hashing-proc-macro" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "quote", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "syn 2.0.101", ] [[package]] name = "sp-database" version = "10.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "kvdb", "parking_lot 0.12.3", @@ -11719,7 +11737,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "proc-macro2", "quote", @@ -11749,7 +11767,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.30.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "environmental", "parity-scale-codec", @@ -11759,7 +11777,7 @@ dependencies = [ [[package]] name = "sp-genesis-builder" version = "0.16.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "parity-scale-codec", "scale-info", @@ -11771,7 +11789,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "35.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -11784,7 +11802,7 @@ dependencies = [ [[package]] name = "sp-io" version = "39.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "bytes", "docify", @@ -11796,7 +11814,7 @@ dependencies = [ "rustversion", "secp256k1 0.28.2", "sp-core", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "sp-externalities 0.30.0", "sp-keystore", "sp-runtime-interface 29.0.0", @@ -11810,7 +11828,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "40.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "sp-core", "sp-runtime", @@ -11820,7 +11838,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.41.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "parity-scale-codec", "parking_lot 0.12.3", @@ -11831,7 +11849,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "thiserror 1.0.64", "zstd 0.12.4", @@ -11840,7 +11858,7 @@ dependencies = [ [[package]] name = "sp-metadata-ir" version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "frame-metadata 18.0.0", "parity-scale-codec", @@ -11850,7 +11868,7 @@ dependencies = [ [[package]] name = "sp-mixnet" version = "0.13.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "parity-scale-codec", "scale-info", @@ -11861,7 +11879,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "35.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "sp-api", "sp-core", @@ -11871,7 +11889,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "13.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "backtrace", "regex", @@ -11880,7 +11898,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "33.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "rustc-hash 1.1.0", "serde", @@ -11890,7 +11908,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "40.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "binary-merkle-tree", "docify", @@ -11909,7 +11927,7 @@ dependencies = [ "sp-arithmetic", "sp-core", "sp-io", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "sp-trie", "sp-weights", "tracing", @@ -11938,7 +11956,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -11947,7 +11965,7 @@ dependencies = [ "primitive-types 0.13.1", "sp-externalities 0.30.0", "sp-runtime-interface-proc-macro 18.0.0", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "sp-storage 22.0.0", "sp-tracing 17.0.1", "sp-wasm-interface 21.0.1", @@ -11970,7 +11988,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "18.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "Inflector", "expander", @@ -11983,7 +12001,7 @@ dependencies = [ [[package]] name = "sp-session" version = "37.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "parity-scale-codec", "scale-info", @@ -11997,7 +12015,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "37.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -12010,7 +12028,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.44.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "hash-db", "log", @@ -12030,7 +12048,7 @@ dependencies = [ [[package]] name = "sp-statement-store" version = "19.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "aes-gcm", "curve25519-dalek", @@ -12043,7 +12061,7 @@ dependencies = [ "sp-api", "sp-application-crypto", "sp-core", - "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-crypto-hashing 0.1.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "sp-externalities 0.30.0", "sp-runtime", "sp-runtime-interface 29.0.0", @@ -12054,7 +12072,7 @@ dependencies = [ [[package]] name = "sp-std" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" [[package]] name = "sp-std" @@ -12076,19 +12094,19 @@ dependencies = [ [[package]] name = "sp-storage" version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "impl-serde 0.5.0", "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-debug-derive 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", ] [[package]] name = "sp-timestamp" version = "35.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-trait", "parity-scale-codec", @@ -12111,7 +12129,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "17.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "parity-scale-codec", "tracing", @@ -12122,7 +12140,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "35.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "sp-api", "sp-runtime", @@ -12131,7 +12149,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "35.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "async-trait", "parity-scale-codec", @@ -12145,7 +12163,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "ahash 0.8.11", "hash-db", @@ -12167,7 +12185,7 @@ dependencies = [ [[package]] name = "sp-version" version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "impl-serde 0.5.0", "parity-scale-codec", @@ -12176,7 +12194,7 @@ dependencies = [ "serde", "sp-crypto-hashing-proc-macro", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "sp-version-proc-macro", "thiserror 1.0.64", ] @@ -12184,7 +12202,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "15.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "parity-scale-codec", "proc-macro-warning 1.0.2", @@ -12207,7 +12225,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "21.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "anyhow", "impl-trait-for-tuples", @@ -12219,7 +12237,7 @@ dependencies = [ [[package]] name = "sp-weights" version = "31.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "bounded-collections", "parity-scale-codec", @@ -12227,7 +12245,7 @@ dependencies = [ "serde", "smallvec", "sp-arithmetic", - "sp-debug-derive 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-debug-derive 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", ] [[package]] @@ -12407,8 +12425,8 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "staging-xcm" -version = "15.0.3" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +version = "15.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "array-bytes", "bounded-collections", @@ -12516,7 +12534,7 @@ dependencies = [ [[package]] name = "substrate-bip39" version = "0.6.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "hmac 0.12.1", "pbkdf2", @@ -12528,7 +12546,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" [[package]] name = "substrate-fixed" @@ -12544,12 +12562,12 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "42.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "docify", "frame-system-rpc-runtime-api", "futures", - "jsonrpsee 0.24.7", + "jsonrpsee 0.24.9", "log", "parity-scale-codec", "sc-rpc-api", @@ -12564,7 +12582,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.17.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "http-body-util", "hyper 1.5.0", @@ -12578,7 +12596,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "25.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "array-bytes", "build-helper", @@ -12623,7 +12641,7 @@ dependencies = [ name = "subtensor-custom-rpc" version = "0.0.2" dependencies = [ - "jsonrpsee 0.24.7", + "jsonrpsee 0.24.9", "pallet-subtensor", "parity-scale-codec", "serde", @@ -12686,7 +12704,7 @@ dependencies = [ "precompile-utils", "sp-core", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5)", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6)", "subtensor-runtime-common", ] @@ -13405,7 +13423,7 @@ dependencies = [ [[package]] name = "tracing-gum" version = "17.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "coarsetime", "polkadot-primitives", @@ -13416,7 +13434,7 @@ dependencies = [ [[package]] name = "tracing-gum-proc-macro" version = "5.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "expander", "proc-macro-crate 3.2.0", @@ -14663,7 +14681,7 @@ dependencies = [ [[package]] name = "xcm-procedural" version = "11.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-5#d77b878daef34cf840eb34657d48f644ed9ca197" +source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2412-6#bbc435c7667d3283ba280a8fec44676357392753" dependencies = [ "Inflector", "proc-macro2", diff --git a/Cargo.toml b/Cargo.toml index 51228c94a6..3cb6010d49 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -67,7 +67,7 @@ enumflags2 = "0.7.9" futures = "0.3.30" hex = { version = "0.4", default-features = false } hex-literal = "0.4.1" -jsonrpsee = { version = "0.24.4", default-features = false } +jsonrpsee = { version = "0.24.9", default-features = false } libsecp256k1 = { version = "0.7.2", default-features = false } log = { version = "0.4.21", default-features = false } memmap2 = "0.9.4" @@ -100,128 +100,128 @@ approx = "0.5" subtensor-macros = { path = "support/macros" } -frame-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -frame-benchmarking-cli = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -frame-executive = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -frame-metadata-hash-extension = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -frame-support = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -frame-system = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -frame-system-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -frame-try-runtime = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +frame-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +frame-benchmarking-cli = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +frame-executive = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +frame-metadata-hash-extension = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +frame-support = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +frame-system = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +frame-system-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +frame-try-runtime = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } -pallet-aura = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -pallet-balances = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -pallet-grandpa = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -pallet-insecure-randomness-collective-flip = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -pallet-membership = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -pallet-multisig = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -pallet-preimage = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +pallet-aura = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +pallet-balances = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +pallet-grandpa = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +pallet-insecure-randomness-collective-flip = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +pallet-membership = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +pallet-multisig = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +pallet-preimage = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } pallet-proxy = { path = "pallets/proxy", default-features = false } -pallet-safe-mode = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -pallet-scheduler = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -pallet-sudo = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -pallet-timestamp = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -pallet-transaction-payment = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +pallet-safe-mode = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +pallet-scheduler = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +pallet-sudo = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +pallet-timestamp = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +pallet-transaction-payment = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } pallet-utility = { path = "pallets/utility", default-features = false } -pallet-root-testing = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +pallet-root-testing = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } -sc-basic-authorship = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sc-cli = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sc-client-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sc-consensus = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sc-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sc-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sc-consensus-grandpa-rpc = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sc-chain-spec-derive = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sc-chain-spec = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sc-consensus-slots = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sc-executor = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sc-keystore = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sc-network = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sc-offchain = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sc-rpc = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sc-rpc-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sc-service = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sc-telemetry = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sc-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sc-transaction-pool-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +sc-basic-authorship = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +sc-cli = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +sc-client-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +sc-consensus = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +sc-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +sc-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +sc-consensus-grandpa-rpc = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +sc-chain-spec-derive = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +sc-chain-spec = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +sc-consensus-slots = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +sc-executor = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +sc-keystore = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +sc-network = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +sc-offchain = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +sc-rpc = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +sc-rpc-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +sc-service = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +sc-telemetry = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +sc-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +sc-transaction-pool-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } -sp-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -sp-block-builder = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -sp-blockchain = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -sp-consensus = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sp-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -sp-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -sp-genesis-builder = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -sp-core = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -sp-inherents = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -sp-io = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -sp-keyring = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -sp-offchain = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -sp-rpc = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -sp-session = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -sp-std = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -sp-storage = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -sp-timestamp = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -sp-tracing = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -sp-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -sp-version = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -sp-weights = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sp-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +sp-block-builder = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +sp-blockchain = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +sp-consensus = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +sp-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +sp-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +sp-genesis-builder = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +sp-core = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +sp-inherents = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +sp-io = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +sp-keyring = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +sp-offchain = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +sp-rpc = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +sp-session = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +sp-std = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +sp-storage = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +sp-timestamp = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +sp-tracing = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +sp-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +sp-version = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +sp-weights = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } -substrate-build-script-utils = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +substrate-build-script-utils = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } substrate-fixed = { git = "https://github.com/opentensor/substrate-fixed.git", tag = "v0.5.9" } -substrate-frame-rpc-system = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } -substrate-wasm-builder = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5" } +substrate-frame-rpc-system = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } +substrate-wasm-builder = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6" } -sc-consensus-manual-seal = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -sc-network-sync = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } -substrate-prometheus-endpoint = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sc-consensus-manual-seal = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +sc-network-sync = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +substrate-prometheus-endpoint = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } # Frontier -fp-evm = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } -fp-rpc = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } -fp-self-contained = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false, features = [ +fp-evm = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +fp-rpc = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +fp-self-contained = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false, features = [ "serde", ] } -fp-account = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } -fc-storage = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } -fc-db = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } -fc-consensus = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } -fp-consensus = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } -fp-dynamic-fee = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } -fc-api = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } -fc-rpc = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false, features = [ +fp-account = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +fc-storage = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +fc-db = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +fc-consensus = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +fp-consensus = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +fp-dynamic-fee = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +fc-api = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +fc-rpc = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false, features = [ "rpc-binary-search-estimate", ] } -fc-rpc-core = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } -fc-aura = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } -fc-mapping-sync = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } -precompile-utils = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +fc-rpc-core = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +fc-aura = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +fc-mapping-sync = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +precompile-utils = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } # Frontier FRAME -pallet-base-fee = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } -pallet-dynamic-fee = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } -pallet-ethereum = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } -pallet-evm = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } -pallet-evm-chain-id = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } -pallet-evm-precompile-modexp = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } -pallet-evm-precompile-sha3fips = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } -pallet-evm-precompile-simple = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } -pallet-hotfix-sufficients = { git = "https://github.com/opentensor/frontier", rev = "b0d0c2fe2e", default-features = false } +pallet-base-fee = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +pallet-dynamic-fee = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +pallet-ethereum = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +pallet-evm = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +pallet-evm-chain-id = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +pallet-evm-precompile-modexp = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +pallet-evm-precompile-sha3fips = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +pallet-evm-precompile-simple = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +pallet-hotfix-sufficients = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } #DRAND pallet-drand = { path = "pallets/drand", default-features = false } -sp-crypto-ec-utils = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", features = [ +sp-crypto-ec-utils = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", features = [ "bls12-381", ] } getrandom = { version = "0.2.15", features = [ "custom", ], default-features = false } -sp-keystore = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-5", default-features = false } +sp-keystore = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } w3f-bls = { version = "=0.1.3", default-features = false } ark-crypto-primitives = { version = "0.4.0", default-features = false, features = [ "r1cs", From 7d634e6546c0eb339b49d8f43c5bfa023f7603e1 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Fri, 6 Jun 2025 12:17:51 +0200 Subject: [PATCH 06/49] fix transaction pool from frontier types --- node/src/ethereum.rs | 108 ++++++++++++++++++++++++++++--------------- node/src/rpc.rs | 26 ++++++----- node/src/service.rs | 34 ++++++++------ 3 files changed, 107 insertions(+), 61 deletions(-) diff --git a/node/src/ethereum.rs b/node/src/ethereum.rs index c708efd714..9179f30598 100644 --- a/node/src/ethereum.rs +++ b/node/src/ethereum.rs @@ -17,10 +17,9 @@ use sc_client_api::client::BlockchainEvents; use sc_network_sync::SyncingService; use sc_rpc::SubscriptionTaskExecutor; use sc_service::{Configuration, TaskManager, error::Error as ServiceError}; -use sc_transaction_pool::ChainApi; use sc_transaction_pool_api::TransactionPool; use sp_inherents::CreateInherentDataProviders; -use sp_runtime::traits::Block as BlockT; +use sp_runtime::{OpaqueExtrinsic, traits::BlakeTwo256, traits::Block as BlockT}; use std::path::PathBuf; use std::time::Duration; use std::{ @@ -196,13 +195,18 @@ pub async fn spawn_frontier_tasks( ); } -fn extend_rpc_aet_api( +fn extend_rpc_aet_api( io: &mut RpcModule<()>, - deps: &EthDeps, + deps: &EthDeps, ) -> Result<(), Box> where - P: TransactionPool + 'static, - A: ChainApi + 'static, + P: TransactionPool< + Block = Block, + Hash = , + OpaqueExtrinsic, + > as BlockT>::Hash, + > + 'static, CT: ConvertTransaction<::Extrinsic> + Send + Sync + Clone + 'static, CIDP: CreateInherentDataProviders + Send + Clone + 'static, EC: EthConfig, @@ -213,7 +217,7 @@ where } io.merge( - Eth::::new( + Eth::::new( deps.client.clone(), deps.pool.clone(), deps.graph.clone(), @@ -239,13 +243,18 @@ where Ok(()) } -fn extend_rpc_eth_filter( +fn extend_rpc_eth_filter( io: &mut RpcModule<()>, - deps: &EthDeps, + deps: &EthDeps, ) -> Result<(), Box> where - P: TransactionPool + 'static, - A: ChainApi + 'static, + P: TransactionPool< + Block = Block, + Hash = , + OpaqueExtrinsic, + > as BlockT>::Hash, + > + 'static, CT: ConvertTransaction<::Extrinsic> + Send + Sync + Clone + 'static, CIDP: CreateInherentDataProviders + Send + Clone + 'static, { @@ -267,9 +276,9 @@ where } // Function for EthPubSub merge -fn extend_rpc_eth_pubsub( +fn extend_rpc_eth_pubsub( io: &mut RpcModule<()>, - deps: &EthDeps, + deps: &EthDeps, subscription_task_executor: SubscriptionTaskExecutor, pubsub_notification_sinks: Arc< fc_mapping_sync::EthereumBlockNotificationSinks< @@ -278,8 +287,13 @@ fn extend_rpc_eth_pubsub( >, ) -> Result<(), Box> where - P: TransactionPool + 'static, - A: ChainApi + 'static, + P: TransactionPool< + Block = Block, + Hash = , + OpaqueExtrinsic, + > as BlockT>::Hash, + > + 'static, CT: ConvertTransaction<::Extrinsic> + Send + Sync + 'static, CIDP: CreateInherentDataProviders + Send + 'static, { @@ -297,13 +311,18 @@ where Ok(()) } -fn extend_rpc_net( +fn extend_rpc_net( io: &mut RpcModule<()>, - deps: &EthDeps, + deps: &EthDeps, ) -> Result<(), Box> where - P: TransactionPool + 'static, - A: ChainApi + 'static, + P: TransactionPool< + Block = Block, + Hash = , + OpaqueExtrinsic, + > as BlockT>::Hash, + > + 'static, CT: ConvertTransaction<::Extrinsic> + Send + Sync + 'static, CIDP: CreateInherentDataProviders + Send + 'static, { @@ -318,13 +337,18 @@ where Ok(()) } -fn extend_rpc_web3( +fn extend_rpc_web3( io: &mut RpcModule<()>, - deps: &EthDeps, + deps: &EthDeps, ) -> Result<(), Box> where - P: TransactionPool + 'static, - A: ChainApi + 'static, + P: TransactionPool< + Block = Block, + Hash = , + OpaqueExtrinsic, + > as BlockT>::Hash, + > + 'static, CT: ConvertTransaction<::Extrinsic> + Send + Sync + 'static, CIDP: CreateInherentDataProviders + Send + 'static, { @@ -332,13 +356,18 @@ where Ok(()) } -fn extend_rpc_debug( +fn extend_rpc_debug( io: &mut RpcModule<()>, - deps: &EthDeps, + deps: &EthDeps, ) -> Result<(), Box> where - P: TransactionPool + 'static, - A: ChainApi + 'static, + P: TransactionPool< + Block = Block, + Hash = , + OpaqueExtrinsic, + > as BlockT>::Hash, + > + 'static, CT: ConvertTransaction<::Extrinsic> + Send + Sync + 'static, CIDP: CreateInherentDataProviders + Send + 'static, { @@ -355,9 +384,9 @@ where } /// Extend RpcModule with Eth RPCs -pub fn create_eth( +pub fn create_eth( mut io: RpcModule<()>, - deps: EthDeps, + deps: EthDeps, subscription_task_executor: SubscriptionTaskExecutor, pubsub_notification_sinks: Arc< fc_mapping_sync::EthereumBlockNotificationSinks< @@ -366,23 +395,28 @@ pub fn create_eth( >, ) -> Result, Box> where - P: TransactionPool + 'static, - A: ChainApi + 'static, + P: TransactionPool< + Block = Block, + Hash = , + OpaqueExtrinsic, + > as BlockT>::Hash, + > + 'static, CT: ConvertTransaction<::Extrinsic> + Send + Sync + Clone + 'static, CIDP: CreateInherentDataProviders + Send + Clone + 'static, EC: EthConfig, { - extend_rpc_aet_api::(&mut io, &deps)?; - extend_rpc_eth_filter::(&mut io, &deps)?; - extend_rpc_eth_pubsub::( + extend_rpc_aet_api::(&mut io, &deps)?; + extend_rpc_eth_filter::(&mut io, &deps)?; + extend_rpc_eth_pubsub::( &mut io, &deps, subscription_task_executor, pubsub_notification_sinks, )?; - extend_rpc_net::(&mut io, &deps)?; - extend_rpc_web3::(&mut io, &deps)?; - extend_rpc_debug::(&mut io, &deps)?; + extend_rpc_net::(&mut io, &deps)?; + extend_rpc_web3::(&mut io, &deps)?; + extend_rpc_debug::(&mut io, &deps)?; Ok(io) } diff --git a/node/src/rpc.rs b/node/src/rpc.rs index 0d4cd355de..5f184ca7e0 100644 --- a/node/src/rpc.rs +++ b/node/src/rpc.rs @@ -18,11 +18,10 @@ use sc_consensus_manual_seal::EngineCommand; use sc_network::service::traits::NetworkService; use sc_network_sync::SyncingService; use sc_rpc::SubscriptionTaskExecutor; -use sc_transaction_pool::{ChainApi, Pool}; use sc_transaction_pool_api::TransactionPool; use sp_core::H256; use sp_inherents::CreateInherentDataProviders; -use sp_runtime::traits::Block as BlockT; +use sp_runtime::{OpaqueExtrinsic, traits::BlakeTwo256, traits::Block as BlockT}; use subtensor_runtime_common::Hash; use crate::{ @@ -31,13 +30,13 @@ use crate::{ }; /// Extra dependencies for Ethereum compatibility. -pub struct EthDeps { +pub struct EthDeps { /// The client instance to use. pub client: Arc, /// Transaction pool instance. pub pool: Arc

, /// Graph pool instance. - pub graph: Arc>, + pub graph: Arc

, /// Ethereum transaction converter. pub converter: Option, /// The Node authority flag @@ -84,7 +83,7 @@ impl fc_rpc::EthConfig for DefaultEthConfig { } /// Full client dependencies. -pub struct FullDeps { +pub struct FullDeps { /// The client instance to use. pub client: Arc, /// Transaction pool instance. @@ -92,12 +91,12 @@ pub struct FullDeps { /// Manual seal command sink pub command_sink: Option>>, /// Ethereum-compatibility specific dependencies. - pub eth: EthDeps, + pub eth: EthDeps, } /// Instantiate all full RPC extensions. -pub fn create_full( - deps: FullDeps, +pub fn create_full( + deps: FullDeps, subscription_task_executor: SubscriptionTaskExecutor, pubsub_notification_sinks: Arc< fc_mapping_sync::EthereumBlockNotificationSinks< @@ -106,8 +105,13 @@ pub fn create_full( >, ) -> Result, Box> where - P: TransactionPool + 'static, - A: ChainApi + 'static, + P: TransactionPool< + Block = Block, + Hash = , + OpaqueExtrinsic, + > as BlockT>::Hash, + > + 'static, CIDP: CreateInherentDataProviders + Send + Clone + 'static, CT: fp_rpc::ConvertTransaction<::Extrinsic> + Send + Sync + Clone + 'static, { @@ -144,7 +148,7 @@ where } // Ethereum compatibility RPCs - let module = create_eth::<_, _, _, _, DefaultEthConfig>( + let module = create_eth::<_, _, _, DefaultEthConfig>( module, eth, subscription_task_executor, diff --git a/node/src/service.rs b/node/src/service.rs index 4ce041b0a4..d729c0ac6c 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -13,7 +13,7 @@ use sc_consensus_slots::BackoffAuthoringOnFinalizedHeadLagging; use sc_network_sync::strategy::warp::{WarpSyncConfig, WarpSyncProvider}; use sc_service::{Configuration, PartialComponents, TaskManager, error::Error as ServiceError}; use sc_telemetry::{Telemetry, TelemetryHandle, TelemetryWorker, log}; -use sc_transaction_pool::FullPool; +use sc_transaction_pool::TransactionPoolHandle; use sc_transaction_pool_api::OffchainTransactionPoolFactory; use sp_api::ProvideRuntimeApi; use sp_block_builder::BlockBuilder as BlockBuilderApi; @@ -51,7 +51,7 @@ pub fn new_partial( FullBackend, FullSelectChain, BasicQueue, - FullPool, + TransactionPoolHandle, ( Option, BoxBlockImport, @@ -148,12 +148,15 @@ where grandpa_block_import, )?; - let transaction_pool = sc_transaction_pool::BasicPool::new_full( - config.transaction_pool.clone(), - config.role.is_authority().into(), - config.prometheus_registry(), - task_manager.spawn_essential_handle(), - client.clone(), + let transaction_pool = Arc::from( + sc_transaction_pool::Builder::new( + task_manager.spawn_essential_handle(), + client.clone(), + config.role.is_authority().into(), + ) + .with_options(config.transaction_pool.clone()) + .with_prometheus(config.prometheus_registry()) + .build(), ); Ok(PartialComponents { @@ -461,7 +464,7 @@ where network_provider: Arc::new(network.clone()), enable_http_requests: true, custom_extensions: |_| vec![], - }) + })? .run(client.clone(), task_manager.spawn_handle()) .boxed(), ); @@ -536,7 +539,7 @@ where let eth_deps = crate::rpc::EthDeps { client: client.clone(), pool: pool.clone(), - graph: pool.pool().clone(), + graph: pool.clone(), converter: Some(TransactionConverter::::default()), is_authority, enable_dev_signer, @@ -726,12 +729,17 @@ pub async fn build_full( sealing: Option, ) -> Result { match config.network.network_backend { - sc_network::config::NetworkBackendType::Libp2p => { + Some(sc_network::config::NetworkBackendType::Libp2p) => { new_full::>(config, eth_config, sealing).await } - sc_network::config::NetworkBackendType::Litep2p => { + Some(sc_network::config::NetworkBackendType::Litep2p) => { new_full::>(config, eth_config, sealing).await } + _ => { + return Err(ServiceError::Other( + "Network backend not supported".to_string(), + )); + } } } @@ -764,7 +772,7 @@ pub fn new_chain_ops( fn run_manual_seal_authorship( sealing: Sealing, client: Arc, - transaction_pool: Arc>, + transaction_pool: Arc>, select_chain: FullSelectChain, block_import: BoxBlockImport, task_manager: &TaskManager, From 1a16adca31c33d7ad8be9b8631c945edcc067895 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Fri, 6 Jun 2025 15:07:59 +0200 Subject: [PATCH 07/49] bump frontier commit hash --- Cargo.lock | 50 +++++++++++++++++++++++++------------------------- Cargo.toml | 48 ++++++++++++++++++++++++------------------------ 2 files changed, 49 insertions(+), 49 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f9a51feefd..c246c94a4d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2861,7 +2861,7 @@ dependencies = [ [[package]] name = "fc-api" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "async-trait", "fp-storage", @@ -2873,7 +2873,7 @@ dependencies = [ [[package]] name = "fc-aura" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "fc-rpc", "fp-storage", @@ -2889,7 +2889,7 @@ dependencies = [ [[package]] name = "fc-consensus" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "async-trait", "fp-consensus", @@ -2905,7 +2905,7 @@ dependencies = [ [[package]] name = "fc-db" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "async-trait", "ethereum", @@ -2935,7 +2935,7 @@ dependencies = [ [[package]] name = "fc-mapping-sync" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "fc-db", "fc-storage", @@ -2958,7 +2958,7 @@ dependencies = [ [[package]] name = "fc-rpc" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "ethereum", "ethereum-types 0.15.1", @@ -3009,7 +3009,7 @@ dependencies = [ [[package]] name = "fc-rpc-core" version = "1.1.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "ethereum", "ethereum-types 0.15.1", @@ -3024,7 +3024,7 @@ dependencies = [ [[package]] name = "fc-storage" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "ethereum", "ethereum-types 0.15.1", @@ -3217,7 +3217,7 @@ dependencies = [ [[package]] name = "fp-account" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "hex", "impl-serde 0.5.0", @@ -3236,7 +3236,7 @@ dependencies = [ [[package]] name = "fp-consensus" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "ethereum", "parity-scale-codec", @@ -3247,7 +3247,7 @@ dependencies = [ [[package]] name = "fp-ethereum" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "ethereum", "ethereum-types 0.15.1", @@ -3259,7 +3259,7 @@ dependencies = [ [[package]] name = "fp-evm" version = "3.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "environmental", "evm", @@ -3275,7 +3275,7 @@ dependencies = [ [[package]] name = "fp-rpc" version = "3.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "ethereum", "ethereum-types 0.15.1", @@ -3291,7 +3291,7 @@ dependencies = [ [[package]] name = "fp-self-contained" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "frame-support", "parity-scale-codec", @@ -3303,7 +3303,7 @@ dependencies = [ [[package]] name = "fp-storage" version = "2.0.0" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "parity-scale-codec", "serde", @@ -7055,7 +7055,7 @@ dependencies = [ [[package]] name = "pallet-base-fee" version = "1.0.0" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "fp-evm", "frame-support", @@ -7165,7 +7165,7 @@ dependencies = [ [[package]] name = "pallet-ethereum" version = "4.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "ethereum", "ethereum-types 0.15.1", @@ -7188,7 +7188,7 @@ dependencies = [ [[package]] name = "pallet-evm" version = "6.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "cumulus-primitives-storage-weight-reclaim", "environmental", @@ -7212,7 +7212,7 @@ dependencies = [ [[package]] name = "pallet-evm-chain-id" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "frame-support", "frame-system", @@ -7223,7 +7223,7 @@ dependencies = [ [[package]] name = "pallet-evm-precompile-modexp" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "fp-evm", "num", @@ -7232,7 +7232,7 @@ dependencies = [ [[package]] name = "pallet-evm-precompile-sha3fips" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "fp-evm", "tiny-keccak", @@ -7241,7 +7241,7 @@ dependencies = [ [[package]] name = "pallet-evm-precompile-simple" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "fp-evm", "ripemd", @@ -7273,7 +7273,7 @@ dependencies = [ [[package]] name = "pallet-hotfix-sufficients" version = "1.0.0" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "frame-benchmarking", "frame-support", @@ -8311,7 +8311,7 @@ dependencies = [ [[package]] name = "precompile-utils" version = "0.1.0" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "environmental", "evm", @@ -8335,7 +8335,7 @@ dependencies = [ [[package]] name = "precompile-utils-macro" version = "0.1.0" -source = "git+https://github.com/opentensor/frontier?rev=07fe5284ea77602526c63250b9cf8daf319581c8#07fe5284ea77602526c63250b9cf8daf319581c8" +source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" dependencies = [ "case", "num_enum", diff --git a/Cargo.toml b/Cargo.toml index 3cb6010d49..db7cd8dfec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -182,36 +182,36 @@ sc-network-sync = { git = "https://github.com/paritytech/polkadot-sdk.git", tag substrate-prometheus-endpoint = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } # Frontier -fp-evm = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } -fp-rpc = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } -fp-self-contained = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false, features = [ +fp-evm = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +fp-rpc = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +fp-self-contained = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false, features = [ "serde", ] } -fp-account = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } -fc-storage = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } -fc-db = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } -fc-consensus = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } -fp-consensus = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } -fp-dynamic-fee = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } -fc-api = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } -fc-rpc = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false, features = [ +fp-account = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +fc-storage = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +fc-db = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +fc-consensus = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +fp-consensus = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +fp-dynamic-fee = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +fc-api = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +fc-rpc = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false, features = [ "rpc-binary-search-estimate", ] } -fc-rpc-core = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } -fc-aura = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } -fc-mapping-sync = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } -precompile-utils = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +fc-rpc-core = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +fc-aura = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +fc-mapping-sync = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +precompile-utils = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } # Frontier FRAME -pallet-base-fee = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } -pallet-dynamic-fee = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } -pallet-ethereum = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } -pallet-evm = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } -pallet-evm-chain-id = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } -pallet-evm-precompile-modexp = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } -pallet-evm-precompile-sha3fips = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } -pallet-evm-precompile-simple = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } -pallet-hotfix-sufficients = { git = "https://github.com/opentensor/frontier", rev = "07fe5284ea77602526c63250b9cf8daf319581c8", default-features = false } +pallet-base-fee = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +pallet-dynamic-fee = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +pallet-ethereum = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +pallet-evm = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +pallet-evm-chain-id = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +pallet-evm-precompile-modexp = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +pallet-evm-precompile-sha3fips = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +pallet-evm-precompile-simple = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +pallet-hotfix-sufficients = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } #DRAND pallet-drand = { path = "pallets/drand", default-features = false } From 6489d6a464e9ee0bd9bd0a26406f6cc0b9d6dee1 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Mon, 9 Jun 2025 22:11:22 +0200 Subject: [PATCH 08/49] bump frame-metadata version --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c246c94a4d..1ee75e34d3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6580,7 +6580,7 @@ dependencies = [ "fp-self-contained", "frame-benchmarking", "frame-executive", - "frame-metadata 16.0.0", + "frame-metadata 18.0.0", "frame-metadata-hash-extension", "frame-support", "frame-system", diff --git a/Cargo.toml b/Cargo.toml index db7cd8dfec..6785f420c6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -109,6 +109,7 @@ frame-system = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = " frame-system-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } frame-try-runtime = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } +frame-metadata = "18.0.0" pallet-aura = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } pallet-balances = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } @@ -245,7 +246,6 @@ sha2 = { version = "0.10.8", default-features = false } rand_chacha = { version = "0.3.1", default-features = false } tle = { git = "https://github.com/ideal-lab5/timelock", rev = "5416406cfd32799e31e1795393d4916894de4468", default-features = false } -frame-metadata = "16" [profile.release] panic = "unwind" From c91f4b076190dc8cbf2526033627463678768825 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Mon, 9 Jun 2025 23:26:40 +0200 Subject: [PATCH 09/49] fix weight field renaming --- pallets/collective/src/tests.rs | 30 ++++++++++----------- pallets/subtensor/src/tests/registration.rs | 3 ++- pallets/subtensor/src/tests/serving.rs | 6 +++-- pallets/subtensor/src/tests/staking.rs | 6 +++-- pallets/subtensor/src/tests/staking2.rs | 2 +- 5 files changed, 26 insertions(+), 21 deletions(-) diff --git a/pallets/collective/src/tests.rs b/pallets/collective/src/tests.rs index ae3ad69c8d..46c10f52e2 100644 --- a/pallets/collective/src/tests.rs +++ b/pallets/collective/src/tests.rs @@ -26,12 +26,12 @@ use frame_system::{EnsureRoot, EventRecord, Phase}; use sp_core::H256; use sp_runtime::{ BuildStorage, - testing::Header, + testing::{Header, TestXt}, traits::{BlakeTwo256, IdentityLookup}, }; pub type Block = sp_runtime::generic::Block; -pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic; +pub type UncheckedExtrinsic = TestXt; frame_support::construct_runtime!( pub enum Test @@ -285,7 +285,7 @@ fn close_works() { new_test_ext().execute_with(|| { let proposal = make_proposal(42); let proposal_len: u32 = proposal.using_encoded(|p| p.len() as u32); - let proposal_weight = proposal.get_dispatch_info().weight; + let proposal_weight = proposal.get_dispatch_info().call_weight; let hash = BlakeTwo256::hash_of(&proposal); assert_ok!(Collective::propose( @@ -355,7 +355,7 @@ fn proposal_weight_limit_works_on_approve() { old_count: ::get(), }); let proposal_len: u32 = proposal.using_encoded(|p| p.len() as u32); - let proposal_weight = proposal.get_dispatch_info().weight; + let proposal_weight = proposal.get_dispatch_info().call_weight; let hash = BlakeTwo256::hash_of(&proposal); // Set 1 as prime voter Prime::::set(Some(1)); @@ -397,7 +397,7 @@ fn proposal_weight_limit_ignored_on_disapprove() { old_count: ::get(), }); let proposal_len: u32 = proposal.using_encoded(|p| p.len() as u32); - let proposal_weight = proposal.get_dispatch_info().weight; + let proposal_weight = proposal.get_dispatch_info().call_weight; let hash = BlakeTwo256::hash_of(&proposal); assert_ok!(Collective::propose( @@ -423,7 +423,7 @@ fn close_with_prime_works() { new_test_ext().execute_with(|| { let proposal = make_proposal(42); let proposal_len: u32 = proposal.using_encoded(|p| p.len() as u32); - let proposal_weight = proposal.get_dispatch_info().weight; + let proposal_weight = proposal.get_dispatch_info().call_weight; let hash = BlakeTwo256::hash_of(&proposal); assert_ok!(Collective::set_members( RuntimeOrigin::root(), @@ -483,7 +483,7 @@ fn close_with_voting_prime_works() { new_test_ext().execute_with(|| { let proposal = make_proposal(42); let proposal_len: u32 = proposal.using_encoded(|p| p.len() as u32); - let proposal_weight = proposal.get_dispatch_info().weight; + let proposal_weight = proposal.get_dispatch_info().call_weight; let hash = BlakeTwo256::hash_of(&proposal); assert_ok!(Collective::set_members( RuntimeOrigin::root(), @@ -547,7 +547,7 @@ fn close_with_no_prime_but_majority_works() { new_test_ext().execute_with(|| { let proposal = make_proposal(42); let proposal_len: u32 = proposal.using_encoded(|p| p.len() as u32); - let proposal_weight = proposal.get_dispatch_info().weight; + let proposal_weight = proposal.get_dispatch_info().call_weight; let hash = BlakeTwo256::hash_of(&proposal); assert_ok!(CollectiveMajority::set_members( RuntimeOrigin::root(), @@ -883,7 +883,7 @@ fn correct_validate_and_get_proposal() { )); let hash = BlakeTwo256::hash_of(&proposal); - let weight = proposal.get_dispatch_info().weight; + let weight = proposal.get_dispatch_info().call_weight; assert_noop!( Collective::validate_and_get_proposal( &BlakeTwo256::hash_of(&vec![3; 4]), @@ -1107,7 +1107,7 @@ fn motions_all_first_vote_free_works() { // Test close() Extrincis | Check DispatchResultWithPostInfo with Pay Info - let proposal_weight = proposal.get_dispatch_info().weight; + let proposal_weight = proposal.get_dispatch_info().call_weight; let close_rval: DispatchResultWithPostInfo = Collective::close( RuntimeOrigin::root(), hash, @@ -1135,7 +1135,7 @@ fn motions_reproposing_disapproved_works() { new_test_ext().execute_with(|| { let proposal = make_proposal(42); let proposal_len: u32 = proposal.using_encoded(|p| p.len() as u32); - let proposal_weight = proposal.get_dispatch_info().weight; + let proposal_weight = proposal.get_dispatch_info().call_weight; let hash: H256 = proposal.blake2_256().into(); assert_ok!(Collective::propose( RuntimeOrigin::signed(1), @@ -1170,7 +1170,7 @@ fn motions_approval_with_enough_votes_and_lower_voting_threshold_works() { new_test_ext().execute_with(|| { let proposal = RuntimeCall::Democracy(mock_democracy::Call::external_propose_majority {}); let proposal_len: u32 = proposal.using_encoded(|p| p.len() as u32); - let proposal_weight = proposal.get_dispatch_info().weight; + let proposal_weight = proposal.get_dispatch_info().call_weight; let hash: H256 = proposal.blake2_256().into(); // The voting threshold is 2, but the required votes for `ExternalMajorityOrigin` is 3. // The proposal will be executed regardless of the voting threshold @@ -1304,7 +1304,7 @@ fn motions_disapproval_works() { new_test_ext().execute_with(|| { let proposal = make_proposal(42); let proposal_len: u32 = proposal.using_encoded(|p| p.len() as u32); - let proposal_weight = proposal.get_dispatch_info().weight; + let proposal_weight = proposal.get_dispatch_info().call_weight; let hash: H256 = proposal.blake2_256().into(); assert_ok!(Collective::propose( RuntimeOrigin::signed(1), @@ -1363,7 +1363,7 @@ fn motions_approval_works() { new_test_ext().execute_with(|| { let proposal = make_proposal(42); let proposal_len: u32 = proposal.using_encoded(|p| p.len() as u32); - let proposal_weight = proposal.get_dispatch_info().weight; + let proposal_weight = proposal.get_dispatch_info().call_weight; let hash: H256 = proposal.blake2_256().into(); assert_ok!(Collective::propose( RuntimeOrigin::signed(1), @@ -1426,7 +1426,7 @@ fn motion_with_no_votes_closes_with_disapproval() { new_test_ext().execute_with(|| { let proposal = make_proposal(42); let proposal_len: u32 = proposal.using_encoded(|p| p.len() as u32); - let proposal_weight = proposal.get_dispatch_info().weight; + let proposal_weight = proposal.get_dispatch_info().call_weight; let hash: H256 = proposal.blake2_256().into(); assert_ok!(Collective::propose( RuntimeOrigin::signed(1), diff --git a/pallets/subtensor/src/tests/registration.rs b/pallets/subtensor/src/tests/registration.rs index 3a8ce39ba3..c50c103f8b 100644 --- a/pallets/subtensor/src/tests/registration.rs +++ b/pallets/subtensor/src/tests/registration.rs @@ -37,7 +37,8 @@ fn test_registration_subscribe_ok_dispatch_info_ok() { assert_eq!( call.get_dispatch_info(), DispatchInfo { - weight: frame_support::weights::Weight::from_parts(3_166_200_000, 0), + call_weight: frame_support::weights::Weight::from_parts(3_166_200_000, 0), + extension_weight: frame_support::weights::Weight::zero(), class: DispatchClass::Normal, pays_fee: Pays::No } diff --git a/pallets/subtensor/src/tests/serving.rs b/pallets/subtensor/src/tests/serving.rs index 251dde2078..784ddd8a3c 100644 --- a/pallets/subtensor/src/tests/serving.rs +++ b/pallets/subtensor/src/tests/serving.rs @@ -53,7 +53,8 @@ fn test_serving_subscribe_ok_dispatch_info_ok() { assert_eq!( call.get_dispatch_info(), DispatchInfo { - weight: frame_support::weights::Weight::from_parts(235_670_000, 0), + call_weight: frame_support::weights::Weight::from_parts(235_670_000, 0), + extension_weight: frame_support::weights::Weight::zero(), class: DispatchClass::Normal, pays_fee: Pays::No } @@ -355,7 +356,8 @@ fn test_prometheus_serving_subscribe_ok_dispatch_info_ok() { assert_eq!( call.get_dispatch_info(), DispatchInfo { - weight: frame_support::weights::Weight::from_parts(231_170_000, 0), + call_weight: frame_support::weights::Weight::from_parts(231_170_000, 0), + extension_weight: frame_support::weights::Weight::zero(), class: DispatchClass::Normal, pays_fee: Pays::No } diff --git a/pallets/subtensor/src/tests/staking.rs b/pallets/subtensor/src/tests/staking.rs index 9a672676ee..ddc04ea865 100644 --- a/pallets/subtensor/src/tests/staking.rs +++ b/pallets/subtensor/src/tests/staking.rs @@ -31,7 +31,8 @@ fn test_add_stake_dispatch_info_ok() { assert_eq!( call.get_dispatch_info(), DispatchInfo { - weight: frame_support::weights::Weight::from_parts(1_501_000_000, 0), + call_weight: frame_support::weights::Weight::from_parts(1_501_000_000, 0), + extension_weight: frame_support::weights::Weight::zero(), class: DispatchClass::Normal, pays_fee: Pays::No } @@ -1210,8 +1211,9 @@ fn test_remove_stake_dispatch_info_ok() { assert_eq!( call.get_dispatch_info(), DispatchInfo { - weight: frame_support::weights::Weight::from_parts(1_671_800_000, 0) + call_weight: frame_support::weights::Weight::from_parts(1_671_800_000, 0) .add_proof_size(0), + extension_weight: frame_support::weights::Weight::zero(), class: DispatchClass::Normal, pays_fee: Pays::No } diff --git a/pallets/subtensor/src/tests/staking2.rs b/pallets/subtensor/src/tests/staking2.rs index 6fbabf83b2..49bc49cdfd 100644 --- a/pallets/subtensor/src/tests/staking2.rs +++ b/pallets/subtensor/src/tests/staking2.rs @@ -594,7 +594,7 @@ fn test_try_associate_hotkey() { RuntimeCall::SubtensorModule(crate::Call::try_associate_hotkey { hotkey: hotkey1 }); let dispatch_info = call.get_dispatch_info(); // Verify tx weight > 0 - assert!(dispatch_info.weight.all_gte(Weight::from_all(0))); + assert!(dispatch_info.call_weight.all_gte(Weight::from_all(0))); // Verify pays Yes is set assert_eq!(dispatch_info.pays_fee, Pays::Yes); From 828660c2324ff69b4f4a8462a3a6404fbfe5aa1e Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Mon, 9 Jun 2025 23:28:45 +0200 Subject: [PATCH 10/49] fix benchmark tx extension conversion --- node/src/benchmarking.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node/src/benchmarking.rs b/node/src/benchmarking.rs index 40031ac1aa..7fabad6b3b 100644 --- a/node/src/benchmarking.rs +++ b/node/src/benchmarking.rs @@ -132,11 +132,11 @@ pub fn create_benchmark_extrinsic( period, best_block.saturated_into(), )), - check_nonce::CheckNonce::::from(nonce), + check_nonce::CheckNonce::::from(nonce).into(), frame_system::CheckWeight::::new(), pallet_transaction_payment::ChargeTransactionPayment::::from(0), - pallet_subtensor::SubtensorSignedExtension::::new(), - pallet_commitments::CommitmentsSignedExtension::::new(), + pallet_subtensor::SubtensorSignedExtension::::new().into(), + pallet_commitments::CommitmentsSignedExtension::::new().into(), frame_metadata_hash_extension::CheckMetadataHash::::new(true), ); From 3b4c7cf87e1d8709b0d37069fa66917125001bbb Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Mon, 9 Jun 2025 23:28:59 +0200 Subject: [PATCH 11/49] fix benchmark command new api params --- node/src/command.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/src/command.rs b/node/src/command.rs index aea800596e..e2df46844f 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -196,11 +196,12 @@ pub fn run() -> sc_cli::Result<()> { let ext_builder = RemarkBuilder::new(client.clone()); cmd.run( - config, + config.chain_spec.name().into(), client, inherent_benchmark_data()?, Vec::new(), &ext_builder, + false, ) } BenchmarkCmd::Extrinsic(cmd) => { From e9cf4804527eb7c1355b9171da3d8a411f9f5a17 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Mon, 9 Jun 2025 23:31:54 +0200 Subject: [PATCH 12/49] start converting from signed extension to transaction extension --- pallets/admin-utils/src/tests/mock.rs | 46 +++++++++++------- pallets/commitments/src/mock.rs | 50 +++++++++++-------- pallets/drand/src/lib.rs | 8 ++-- pallets/drand/src/mock.rs | 25 +++++++--- pallets/subtensor/src/tests/mock.rs | 50 +++++++++++-------- runtime/src/lib.rs | 69 ++++++++++++++++----------- 6 files changed, 154 insertions(+), 94 deletions(-) diff --git a/pallets/admin-utils/src/tests/mock.rs b/pallets/admin-utils/src/tests/mock.rs index f8b3e6a9b6..21b86d60a4 100644 --- a/pallets/admin-utils/src/tests/mock.rs +++ b/pallets/admin-utils/src/tests/mock.rs @@ -2,10 +2,10 @@ use frame_support::{ assert_ok, derive_impl, parameter_types, - traits::{Everything, Hooks, PrivilegeCmp}, + traits::{Everything, Hooks, InherentBuilder, PrivilegeCmp}, weights, }; -use frame_system as system; +use frame_system::{self as system, offchain::CreateTransactionBase}; use frame_system::{EnsureNever, EnsureRoot, limits}; use sp_consensus_aura::sr25519::AuthorityId as AuraId; use sp_consensus_grandpa::AuthorityList as GrandpaAuthorityList; @@ -68,7 +68,6 @@ pub type Balance = u64; pub type BlockNumber = u64; pub type TestAuthId = test_crypto::TestAuthId; -pub type Index = u64; pub type UncheckedExtrinsic = TestXt; parameter_types! { @@ -361,26 +360,37 @@ mod test_crypto { } } -impl frame_system::offchain::CreateSignedTransaction> for Test { - fn create_transaction>( - call: RuntimeCall, - _public: Self::Public, - _account: Self::AccountId, - nonce: Index, - ) -> Option<( - RuntimeCall, - ::SignaturePayload, - )> { - Some((call, (nonce, ()))) +impl frame_system::offchain::CreateTransactionBase for Test +where + RuntimeCall: From, +{ + type Extrinsic = UncheckedExtrinsic; + type RuntimeCall = RuntimeCall; +} + +impl frame_system::offchain::CreateInherent for Test +where + RuntimeCall: From, +{ + fn create_inherent(call: Self::RuntimeCall) -> Self::Extrinsic { + UncheckedExtrinsic::new_inherent(call) } } -impl frame_system::offchain::SendTransactionTypes for Test +impl frame_system::offchain::CreateSignedTransaction for Test where - RuntimeCall: From, + RuntimeCall: From, { - type Extrinsic = UncheckedExtrinsic; - type OverarchingCall = RuntimeCall; + fn create_signed_transaction< + C: frame_system::offchain::AppCrypto, + >( + call: >::RuntimeCall, + _public: Self::Public, + _account: Self::AccountId, + nonce: Self::Nonce, + ) -> Option { + Some(UncheckedExtrinsic::new_signed(call, nonce, (), ())) + } } // Build genesis storage according to the mock runtime. diff --git a/pallets/commitments/src/mock.rs b/pallets/commitments/src/mock.rs index 4e6aa123bd..bf57e65ccf 100644 --- a/pallets/commitments/src/mock.rs +++ b/pallets/commitments/src/mock.rs @@ -2,8 +2,9 @@ use crate as pallet_commitments; use frame_support::{ derive_impl, pallet_prelude::{Get, TypeInfo}, - traits::{ConstU32, ConstU64}, + traits::{ConstU32, ConstU64, InherentBuilder}, }; +use frame_system::offchain::CreateTransactionBase; use sp_core::H256; use sp_runtime::{ BuildStorage, @@ -159,32 +160,43 @@ impl frame_system::offchain::SigningTypes for Test { type Signature = test_crypto::Signature; } -impl frame_system::offchain::CreateSignedTransaction> for Test { - fn create_transaction>( - call: RuntimeCall, +impl frame_system::offchain::CreateTransactionBase for Test +where + RuntimeCall: From, +{ + type Extrinsic = UncheckedExtrinsic; + type RuntimeCall = RuntimeCall; +} + +impl frame_system::offchain::CreateInherent for Test +where + RuntimeCall: From, +{ + fn create_inherent(call: Self::RuntimeCall) -> Self::Extrinsic { + UncheckedExtrinsic::new_inherent(call) + } +} + +impl frame_system::offchain::CreateSignedTransaction for Test +where + RuntimeCall: From, +{ + fn create_signed_transaction< + C: frame_system::offchain::AppCrypto, + >( + call: >::RuntimeCall, _public: Self::Public, - account: Self::AccountId, - _nonce: u32, - ) -> Option<( - RuntimeCall, - ::SignaturePayload, - )> { + _account: Self::AccountId, + nonce: Self::Nonce, + ) -> Option { // Create a dummy sr25519 signature from a raw byte array let dummy_raw = [0u8; 64]; let dummy_signature = sp_core::sr25519::Signature::from(dummy_raw); let signature = test_crypto::Signature::from(dummy_signature); - Some((call, (account, signature, ()))) + Some(UncheckedExtrinsic::new_signed(call, nonce.into(), signature, ())) } } -impl frame_system::offchain::SendTransactionTypes for Test -where - RuntimeCall: From, -{ - type Extrinsic = UncheckedExtrinsic; - type OverarchingCall = RuntimeCall; -} - pub fn new_test_ext() -> sp_io::TestExternalities { let t = frame_system::GenesisConfig::::default() .build_storage() diff --git a/pallets/drand/src/lib.rs b/pallets/drand/src/lib.rs index dd172befc0..762aa65238 100644 --- a/pallets/drand/src/lib.rs +++ b/pallets/drand/src/lib.rs @@ -43,8 +43,8 @@ use codec::Encode; use frame_support::{pallet_prelude::*, traits::Randomness}; use frame_system::{ offchain::{ - AppCrypto, CreateSignedTransaction, SendUnsignedTransaction, SignedPayload, Signer, - SigningTypes, + AppCrypto, CreateInherent, CreateSignedTransaction, SendUnsignedTransaction, SignedPayload, + Signer, SigningTypes, }, pallet_prelude::BlockNumberFor, }; @@ -155,7 +155,9 @@ pub mod pallet { pub struct Pallet(_); #[pallet::config] - pub trait Config: CreateSignedTransaction> + frame_system::Config { + pub trait Config: + CreateSignedTransaction> + CreateInherent> + frame_system::Config + { /// The identifier type for an offchain worker. type AuthorityId: AppCrypto; /// The overarching runtime event type. diff --git a/pallets/drand/src/mock.rs b/pallets/drand/src/mock.rs index 6ef1f2bf8a..f8c0d9ab4d 100644 --- a/pallets/drand/src/mock.rs +++ b/pallets/drand/src/mock.rs @@ -3,14 +3,14 @@ use crate::verifier::*; use crate::*; use frame_support::{ derive_impl, parameter_types, - traits::{ConstU16, ConstU64}, + traits::{ConstU16, ConstU64, InherentBuilder}, }; use sp_core::{H256, sr25519::Signature}; use sp_keystore::{KeystoreExt, testing::MemoryKeystore}; use sp_runtime::{ BuildStorage, testing::TestXt, - traits::{BlakeTwo256, Extrinsic as ExtrinsicT, IdentifyAccount, IdentityLookup, Verify}, + traits::{BlakeTwo256, IdentifyAccount, IdentityLookup, Verify}, }; type Block = frame_system::mocking::MockBlock; @@ -59,25 +59,36 @@ impl frame_system::offchain::SigningTypes for Test { type Signature = Signature; } -impl frame_system::offchain::SendTransactionTypes for Test +impl frame_system::offchain::CreateTransactionBase for Test where RuntimeCall: From, { - type OverarchingCall = RuntimeCall; + type RuntimeCall = RuntimeCall; type Extrinsic = Extrinsic; } +impl frame_system::offchain::CreateInherent for Test +where + RuntimeCall: From, +{ + fn create_inherent(call: RuntimeCall) -> Self::Extrinsic { + Extrinsic::new_inherent(call) + } +} + impl frame_system::offchain::CreateSignedTransaction for Test where RuntimeCall: From, { - fn create_transaction>( + fn create_signed_transaction< + C: frame_system::offchain::AppCrypto, + >( call: RuntimeCall, _public: ::Signer, _account: AccountId, nonce: u64, - ) -> Option<(RuntimeCall, ::SignaturePayload)> { - Some((call, (nonce, ()))) + ) -> Option { + Some(Extrinsic::new_signed(call, nonce, (), ())) } } diff --git a/pallets/subtensor/src/tests/mock.rs b/pallets/subtensor/src/tests/mock.rs index 221d802ccd..223ee1d9d2 100644 --- a/pallets/subtensor/src/tests/mock.rs +++ b/pallets/subtensor/src/tests/mock.rs @@ -8,8 +8,9 @@ use frame_support::{ assert_ok, parameter_types, traits::{Everything, Hooks, PrivilegeCmp}, }; +use frame_support::traits::InherentBuilder; use frame_system as system; -use frame_system::{EnsureNever, EnsureRoot, RawOrigin, limits}; +use frame_system::{EnsureNever, EnsureRoot, RawOrigin, limits, offchain::CreateTransactionBase}; use pallet_collective::MemberCount; use sp_core::{ConstU64, Get, H256, U256, offchain::KeyTypeId}; use sp_runtime::Perbill; @@ -53,8 +54,6 @@ pub type BalanceCall = pallet_balances::Call; #[allow(dead_code)] pub type TestRuntimeCall = frame_system::Call; -pub type Index = u64; - pub const KEY_TYPE: KeyTypeId = KeyTypeId(*b"test"); #[allow(dead_code)] @@ -503,14 +502,6 @@ mod test_crypto { pub type TestAuthId = test_crypto::TestAuthId; -impl frame_system::offchain::SendTransactionTypes for Test -where - RuntimeCall: From, -{ - type Extrinsic = UncheckedExtrinsic; - type OverarchingCall = RuntimeCall; -} - impl pallet_drand::Config for Test { type RuntimeEvent = RuntimeEvent; type AuthorityId = TestAuthId; @@ -526,17 +517,36 @@ impl frame_system::offchain::SigningTypes for Test { pub type UncheckedExtrinsic = sp_runtime::testing::TestXt; -impl frame_system::offchain::CreateSignedTransaction> for Test { - fn create_transaction>( - call: RuntimeCall, +impl frame_system::offchain::CreateTransactionBase for Test +where + RuntimeCall: From, +{ + type Extrinsic = UncheckedExtrinsic; + type RuntimeCall = RuntimeCall; +} + +impl frame_system::offchain::CreateInherent for Test +where + RuntimeCall: From, +{ + fn create_inherent(call: Self::RuntimeCall) -> Self::Extrinsic { + UncheckedExtrinsic::new_inherent(call) + } +} + +impl frame_system::offchain::CreateSignedTransaction for Test +where + RuntimeCall: From, +{ + fn create_signed_transaction< + C: frame_system::offchain::AppCrypto, + >( + call: >::RuntimeCall, _public: Self::Public, _account: Self::AccountId, - nonce: Index, - ) -> Option<( - RuntimeCall, - ::SignaturePayload, - )> { - Some((call, (nonce, ()))) + nonce: Self::Nonce, + ) -> Option { + Some(UncheckedExtrinsic::new_signed(call, nonce.into(), (), ())) } } diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 95b032f9e6..5a877d1534 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -49,6 +49,7 @@ use sp_core::{ }; use sp_runtime::generic::Era; use sp_runtime::{ +traits::transaction_extension::AsTransactionExtension, AccountId32, ApplyExtrinsicResult, ConsensusEngineId, create_runtime_str, generic, impl_opaque_keys, traits::{ @@ -113,24 +114,29 @@ impl frame_system::offchain::SigningTypes for Runtime { type Signature = Signature; } -impl frame_system::offchain::SendTransactionTypes for Runtime +impl frame_system::offchain::CreateTransactionBase for Runtime where RuntimeCall: From, { type Extrinsic = UncheckedExtrinsic; - type OverarchingCall = RuntimeCall; + type RuntimeCall = RuntimeCall; +} + +impl frame_system::offchain::CreateInherent> for Runtime { + fn create_inherent(call: Self::RuntimeCall) -> Self::Extrinsic { + UncheckedExtrinsic::new_bare(call) + } } impl frame_system::offchain::CreateSignedTransaction> for Runtime { - fn create_transaction>( + fn create_signed_transaction< + S: frame_system::offchain::AppCrypto, + >( call: RuntimeCall, - public: ::Signer, - account: AccountId, - index: Index, - ) -> Option<( - RuntimeCall, - ::SignaturePayload, - )> { + public: Self::Public, + account: Self::AccountId, + nonce: Self::Nonce, + ) -> Option { use sp_runtime::traits::StaticLookup; let address = ::Lookup::unlookup(account.clone()); @@ -140,20 +146,20 @@ impl frame_system::offchain::CreateSignedTransaction frame_system::CheckTxVersion::::new(), frame_system::CheckGenesis::::new(), frame_system::CheckEra::::from(Era::Immortal), - check_nonce::CheckNonce::::from(index), + check_nonce::CheckNonce::::from(nonce).into(), frame_system::CheckWeight::::new(), pallet_transaction_payment::ChargeTransactionPayment::::from(0), - pallet_subtensor::SubtensorSignedExtension::::new(), - pallet_commitments::CommitmentsSignedExtension::::new(), + pallet_subtensor::SubtensorSignedExtension::::new().into(), + pallet_commitments::CommitmentsSignedExtension::::new().into(), frame_metadata_hash_extension::CheckMetadataHash::::new(true), ); let raw_payload = SignedPayload::new(call.clone(), extra.clone()).ok()?; let signature = raw_payload.using_encoded(|payload| S::sign(payload, public))?; - let signature_payload = (address, signature, extra); - - Some((call, signature_payload)) + Some(UncheckedExtrinsic::new_signed( + call, address, signature, extra, + )) } } @@ -213,7 +219,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1, - state_version: 1, + system_version: 1, }; pub const MAXIMUM_BLOCK_WEIGHT: Weight = @@ -299,6 +305,7 @@ impl frame_system::Config for Runtime { type PreInherents = (); type PostInherents = (); type PostTransactions = (); + type ExtensionsWeightInfo = (); } impl pallet_insecure_randomness_collective_flip::Config for Runtime {} @@ -410,6 +417,7 @@ impl pallet_balances::Config for Runtime { type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = RuntimeFreezeReason; type MaxFreezes = ConstU32<50>; + type DoneSlashHandler = (); } pub struct LinearWeightToFee; @@ -467,6 +475,7 @@ impl pallet_transaction_payment::Config for Runtime { type OperationalFeeMultiplier = OperationalFeeMultiplier; type LengthToFee = IdentityFee; type FeeMultiplierUpdate = ConstFeeMultiplier; + type WeightInfo = pallet_transaction_payment::weights::SubstrateWeight; } // Configure collective pallet for council @@ -1244,7 +1253,6 @@ parameter_types! { pub const GasLimitPovSizeRatio: u64 = 0; pub PrecompilesValue: Precompiles = Precompiles::<_>::new(); pub WeightPerGas: Weight = weight_per_gas(); - pub SuicideQuickClearLimit: u32 = 0; } /// The difference between EVM decimals and Substrate decimals. @@ -1325,16 +1333,24 @@ impl pallet_evm::Config for Runtime { type OnCreate = (); type FindAuthor = FindAuthorTruncated; type GasLimitPovSizeRatio = GasLimitPovSizeRatio; - type SuicideQuickClearLimit = SuicideQuickClearLimit; type Timestamp = Timestamp; type WeightInfo = pallet_evm::weights::SubstrateWeight; type BalanceConverter = SubtensorEvmBalanceConverter; + type AccountProvider = pallet_evm::FrameSystemAccountProvider; + type GasLimitStorageGrowthRatio = (); } parameter_types! { pub const PostBlockAndTxnHashes: PostLogContent = PostLogContent::BlockAndTxnHashes; } +// Required for the IntermediateStateRoot +impl sp_core::Get for Runtime { + fn get() -> sp_version::RuntimeVersion { + VERSION + } +} + impl pallet_ethereum::Config for Runtime { type RuntimeEvent = RuntimeEvent; type StateRoot = pallet_ethereum::IntermediateStateRoot; @@ -1383,7 +1399,7 @@ impl fp_rpc::ConvertTransaction<::Extrinsic> for Transac &self, transaction: pallet_ethereum::Transaction, ) -> ::Extrinsic { - let extrinsic = UncheckedExtrinsic::new_unsigned( + let extrinsic = UncheckedExtrinsic::new_bare( pallet_ethereum::Call::::transact { transaction }.into(), ); let encoded = extrinsic.encode(); @@ -1536,11 +1552,11 @@ pub type SignedExtra = ( frame_system::CheckTxVersion, frame_system::CheckGenesis, frame_system::CheckEra, - check_nonce::CheckNonce, + AsTransactionExtension>, frame_system::CheckWeight, pallet_transaction_payment::ChargeTransactionPayment, - pallet_subtensor::SubtensorSignedExtension, - pallet_commitments::CommitmentsSignedExtension, + AsTransactionExtension>, + AsTransactionExtension>, frame_metadata_hash_extension::CheckMetadataHash, ); @@ -1853,9 +1869,8 @@ impl_runtime_apis! { } fn storage_at(address: H160, index: U256) -> H256 { - let mut tmp = [0u8; 32]; - index.to_big_endian(&mut tmp); - pallet_evm::AccountStorages::::get(address, H256::from_slice(&tmp[..])) + let index_hash = H256::from_slice(&index.to_big_endian()); + pallet_evm::AccountStorages::::get(address, index_hash) } fn call( @@ -2081,7 +2096,7 @@ impl_runtime_apis! { impl fp_rpc::ConvertTransactionRuntimeApi for Runtime { fn convert_transaction(transaction: EthereumTransaction) -> ::Extrinsic { - UncheckedExtrinsic::new_unsigned( + UncheckedExtrinsic::new_bare( pallet_ethereum::Call::::transact { transaction }.into(), ) } From 3db48139fc7577d4ce0a267466ccc19a8588bb20 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Mon, 9 Jun 2025 23:37:27 +0200 Subject: [PATCH 13/49] cargo clippy --- node/src/service.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/src/service.rs b/node/src/service.rs index d729c0ac6c..1539a33935 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -736,9 +736,9 @@ pub async fn build_full( new_full::>(config, eth_config, sealing).await } _ => { - return Err(ServiceError::Other( + Err(ServiceError::Other( "Network backend not supported".to_string(), - )); + )) } } } From 1406f5ea7369c775762c035e32a7f9fd2d601f74 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Mon, 9 Jun 2025 23:38:13 +0200 Subject: [PATCH 14/49] cargo fmt --- node/src/service.rs | 8 +++----- pallets/commitments/src/mock.rs | 7 ++++++- pallets/subtensor/src/tests/mock.rs | 2 +- pallets/utility/src/tests.rs | 9 +++++++-- runtime/src/lib.rs | 2 +- 5 files changed, 18 insertions(+), 10 deletions(-) diff --git a/node/src/service.rs b/node/src/service.rs index 1539a33935..4b95f6eb5d 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -735,11 +735,9 @@ pub async fn build_full( Some(sc_network::config::NetworkBackendType::Litep2p) => { new_full::>(config, eth_config, sealing).await } - _ => { - Err(ServiceError::Other( - "Network backend not supported".to_string(), - )) - } + _ => Err(ServiceError::Other( + "Network backend not supported".to_string(), + )), } } diff --git a/pallets/commitments/src/mock.rs b/pallets/commitments/src/mock.rs index bf57e65ccf..8339f1c232 100644 --- a/pallets/commitments/src/mock.rs +++ b/pallets/commitments/src/mock.rs @@ -193,7 +193,12 @@ where let dummy_raw = [0u8; 64]; let dummy_signature = sp_core::sr25519::Signature::from(dummy_raw); let signature = test_crypto::Signature::from(dummy_signature); - Some(UncheckedExtrinsic::new_signed(call, nonce.into(), signature, ())) + Some(UncheckedExtrinsic::new_signed( + call, + nonce.into(), + signature, + (), + )) } } diff --git a/pallets/subtensor/src/tests/mock.rs b/pallets/subtensor/src/tests/mock.rs index 223ee1d9d2..1f4a9eaf74 100644 --- a/pallets/subtensor/src/tests/mock.rs +++ b/pallets/subtensor/src/tests/mock.rs @@ -2,13 +2,13 @@ use crate::utils::rate_limiting::TransactionType; use frame_support::derive_impl; use frame_support::dispatch::DispatchResultWithPostInfo; +use frame_support::traits::InherentBuilder; use frame_support::weights::Weight; use frame_support::weights::constants::RocksDbWeight; use frame_support::{ assert_ok, parameter_types, traits::{Everything, Hooks, PrivilegeCmp}, }; -use frame_support::traits::InherentBuilder; use frame_system as system; use frame_system::{EnsureNever, EnsureRoot, RawOrigin, limits, offchain::CreateTransactionBase}; use pallet_collective::MemberCount; diff --git a/pallets/utility/src/tests.rs b/pallets/utility/src/tests.rs index d02e2e0faa..f0389187a9 100644 --- a/pallets/utility/src/tests.rs +++ b/pallets/utility/src/tests.rs @@ -339,7 +339,10 @@ fn as_derivative_handles_weight_refund() { let result = call.dispatch(RuntimeOrigin::signed(1)); assert_ok!(result); // Diff is refunded - assert_eq!(extract_actual_weight(&result, &info), info.call_weight - diff); + assert_eq!( + extract_actual_weight(&result, &info), + info.call_weight - diff + ); // Full weight when err let inner_call = call_foobar(true, start_weight, None); @@ -729,7 +732,9 @@ fn batch_all_does_not_nest() { Utility::batch_all(RuntimeOrigin::signed(1), vec![batch_all.clone()]), DispatchErrorWithPostInfo { post_info: PostDispatchInfo { - actual_weight: Some(::WeightInfo::batch_all(1) + info.call_weight), + actual_weight: Some( + ::WeightInfo::batch_all(1) + info.call_weight + ), pays_fee: Pays::Yes }, error: frame_system::Error::::CallFiltered.into(), diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 5a877d1534..891e8c709e 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -49,9 +49,9 @@ use sp_core::{ }; use sp_runtime::generic::Era; use sp_runtime::{ -traits::transaction_extension::AsTransactionExtension, AccountId32, ApplyExtrinsicResult, ConsensusEngineId, create_runtime_str, generic, impl_opaque_keys, + traits::transaction_extension::AsTransactionExtension, traits::{ AccountIdLookup, BlakeTwo256, Block as BlockT, DispatchInfoOf, Dispatchable, NumberFor, One, PostDispatchInfoOf, UniqueSaturatedInto, Verify, From 0906bdb02ea7522f5adfe1a8aa0ba3489229c7a7 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Tue, 10 Jun 2025 15:55:21 +0200 Subject: [PATCH 15/49] bump frontier hash to master --- Cargo.lock | 52 ++++++++++++++++++++++++++-------------------------- Cargo.toml | 50 +++++++++++++++++++++++++------------------------- 2 files changed, 51 insertions(+), 51 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1c122c8c15..049d7c747f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2861,7 +2861,7 @@ dependencies = [ [[package]] name = "fc-api" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "async-trait", "fp-storage", @@ -2873,7 +2873,7 @@ dependencies = [ [[package]] name = "fc-aura" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "fc-rpc", "fp-storage", @@ -2889,7 +2889,7 @@ dependencies = [ [[package]] name = "fc-consensus" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "async-trait", "fp-consensus", @@ -2905,7 +2905,7 @@ dependencies = [ [[package]] name = "fc-db" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "async-trait", "ethereum", @@ -2935,7 +2935,7 @@ dependencies = [ [[package]] name = "fc-mapping-sync" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "fc-db", "fc-storage", @@ -2958,7 +2958,7 @@ dependencies = [ [[package]] name = "fc-rpc" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "ethereum", "ethereum-types 0.15.1", @@ -3009,7 +3009,7 @@ dependencies = [ [[package]] name = "fc-rpc-core" version = "1.1.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "ethereum", "ethereum-types 0.15.1", @@ -3024,7 +3024,7 @@ dependencies = [ [[package]] name = "fc-storage" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "ethereum", "ethereum-types 0.15.1", @@ -3217,7 +3217,7 @@ dependencies = [ [[package]] name = "fp-account" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "hex", "impl-serde 0.5.0", @@ -3236,7 +3236,7 @@ dependencies = [ [[package]] name = "fp-consensus" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "ethereum", "parity-scale-codec", @@ -3247,7 +3247,7 @@ dependencies = [ [[package]] name = "fp-ethereum" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "ethereum", "ethereum-types 0.15.1", @@ -3259,7 +3259,7 @@ dependencies = [ [[package]] name = "fp-evm" version = "3.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "environmental", "evm", @@ -3275,7 +3275,7 @@ dependencies = [ [[package]] name = "fp-rpc" version = "3.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "ethereum", "ethereum-types 0.15.1", @@ -3291,7 +3291,7 @@ dependencies = [ [[package]] name = "fp-self-contained" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "frame-support", "parity-scale-codec", @@ -3303,7 +3303,7 @@ dependencies = [ [[package]] name = "fp-storage" version = "2.0.0" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "parity-scale-codec", "serde", @@ -7055,7 +7055,7 @@ dependencies = [ [[package]] name = "pallet-base-fee" version = "1.0.0" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "fp-evm", "frame-support", @@ -7165,7 +7165,7 @@ dependencies = [ [[package]] name = "pallet-ethereum" version = "4.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "ethereum", "ethereum-types 0.15.1", @@ -7188,7 +7188,7 @@ dependencies = [ [[package]] name = "pallet-evm" version = "6.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "cumulus-primitives-storage-weight-reclaim", "environmental", @@ -7212,7 +7212,7 @@ dependencies = [ [[package]] name = "pallet-evm-chain-id" version = "1.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "frame-support", "frame-system", @@ -7223,7 +7223,7 @@ dependencies = [ [[package]] name = "pallet-evm-precompile-dispatch" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=cd6bca14a3#cd6bca14a366cc7cb1c3b1b1d7bc8213667e4126" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "fp-evm", "frame-support", @@ -7235,7 +7235,7 @@ dependencies = [ [[package]] name = "pallet-evm-precompile-modexp" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "fp-evm", "num", @@ -7244,7 +7244,7 @@ dependencies = [ [[package]] name = "pallet-evm-precompile-sha3fips" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "fp-evm", "tiny-keccak", @@ -7253,7 +7253,7 @@ dependencies = [ [[package]] name = "pallet-evm-precompile-simple" version = "2.0.0-dev" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "fp-evm", "ripemd", @@ -7285,7 +7285,7 @@ dependencies = [ [[package]] name = "pallet-hotfix-sufficients" version = "1.0.0" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "frame-benchmarking", "frame-support", @@ -8323,7 +8323,7 @@ dependencies = [ [[package]] name = "precompile-utils" version = "0.1.0" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "environmental", "evm", @@ -8347,7 +8347,7 @@ dependencies = [ [[package]] name = "precompile-utils-macro" version = "0.1.0" -source = "git+https://github.com/opentensor/frontier?rev=2dec35b654c077d076350a39d3f063dd9b838518#2dec35b654c077d076350a39d3f063dd9b838518" +source = "git+https://github.com/opentensor/frontier?rev=4aeb35e5ce815a2d4998a349d47e773190a3396c#4aeb35e5ce815a2d4998a349d47e773190a3396c" dependencies = [ "case", "num_enum", diff --git a/Cargo.toml b/Cargo.toml index 83286e51a3..10f3d4b0b9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -184,37 +184,37 @@ sc-network-sync = { git = "https://github.com/paritytech/polkadot-sdk.git", tag substrate-prometheus-endpoint = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false } # Frontier -fp-evm = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } -fp-rpc = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } -fp-self-contained = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false, features = [ +fp-evm = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } +fp-rpc = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } +fp-self-contained = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false, features = [ "serde", ] } -fp-account = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } -fc-storage = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } -fc-db = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } -fc-consensus = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } -fp-consensus = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } -fp-dynamic-fee = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } -fc-api = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } -fc-rpc = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false, features = [ +fp-account = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } +fc-storage = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } +fc-db = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } +fc-consensus = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } +fp-consensus = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } +fp-dynamic-fee = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } +fc-api = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } +fc-rpc = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false, features = [ "rpc-binary-search-estimate", ] } -fc-rpc-core = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } -fc-aura = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } -fc-mapping-sync = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } -precompile-utils = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +fc-rpc-core = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } +fc-aura = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } +fc-mapping-sync = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } +precompile-utils = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } # Frontier FRAME -pallet-base-fee = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } -pallet-dynamic-fee = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } -pallet-ethereum = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } -pallet-evm = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } -pallet-evm-precompile-dispatch = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } -pallet-evm-chain-id = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } -pallet-evm-precompile-modexp = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } -pallet-evm-precompile-sha3fips = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } -pallet-evm-precompile-simple = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } -pallet-hotfix-sufficients = { git = "https://github.com/opentensor/frontier", rev = "2dec35b654c077d076350a39d3f063dd9b838518", default-features = false } +pallet-base-fee = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } +pallet-dynamic-fee = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } +pallet-ethereum = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } +pallet-evm = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } +pallet-evm-precompile-dispatch = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } +pallet-evm-chain-id = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } +pallet-evm-precompile-modexp = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } +pallet-evm-precompile-sha3fips = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } +pallet-evm-precompile-simple = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } +pallet-hotfix-sufficients = { git = "https://github.com/opentensor/frontier", rev = "4aeb35e5ce815a2d4998a349d47e773190a3396c", default-features = false } #DRAND pallet-drand = { path = "pallets/drand", default-features = false } From c277b5cb33b8759f5938e7a9ad2b743ca89e6e1f Mon Sep 17 00:00:00 2001 From: open-junius Date: Tue, 10 Jun 2025 23:17:04 +0800 Subject: [PATCH 16/49] fix compilation --- precompiles/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/precompiles/src/lib.rs b/precompiles/src/lib.rs index 89902ec9ee..3e2b874012 100644 --- a/precompiles/src/lib.rs +++ b/precompiles/src/lib.rs @@ -130,7 +130,7 @@ where + Dispatchable + Decode, <::RuntimeCall as Dispatchable>::RuntimeOrigin: - From>, + From>>, ::AddressMapping: AddressMapping, ::Balance: TryFrom, <::Lookup as StaticLookup>::Source: From, From 75f419c28a1b14579be3f84e45426f219e3e357a Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Tue, 10 Jun 2025 19:54:03 +0200 Subject: [PATCH 17/49] fix unused imports --- pallets/subtensor/src/migrations/migrate_delete_subnet_21.rs | 1 - pallets/subtensor/src/migrations/migrate_delete_subnet_3.rs | 1 - .../subtensor/src/migrations/migrate_to_v1_separate_emission.rs | 1 - .../subtensor/src/migrations/migrate_to_v2_fixed_total_stake.rs | 1 - 4 files changed, 4 deletions(-) diff --git a/pallets/subtensor/src/migrations/migrate_delete_subnet_21.rs b/pallets/subtensor/src/migrations/migrate_delete_subnet_21.rs index d12a58ed37..58360d5c67 100644 --- a/pallets/subtensor/src/migrations/migrate_delete_subnet_21.rs +++ b/pallets/subtensor/src/migrations/migrate_delete_subnet_21.rs @@ -1,6 +1,5 @@ use super::*; use frame_support::{ - pallet_prelude::*, storage_alias, traits::{Get, GetStorageVersion, StorageVersion}, weights::Weight, diff --git a/pallets/subtensor/src/migrations/migrate_delete_subnet_3.rs b/pallets/subtensor/src/migrations/migrate_delete_subnet_3.rs index 0e85c56554..d553db79d0 100644 --- a/pallets/subtensor/src/migrations/migrate_delete_subnet_3.rs +++ b/pallets/subtensor/src/migrations/migrate_delete_subnet_3.rs @@ -1,6 +1,5 @@ use super::*; use frame_support::{ - pallet_prelude::*, storage_alias, traits::{Get, GetStorageVersion, StorageVersion}, weights::Weight, diff --git a/pallets/subtensor/src/migrations/migrate_to_v1_separate_emission.rs b/pallets/subtensor/src/migrations/migrate_to_v1_separate_emission.rs index 5d28337dcb..d08b8de07d 100644 --- a/pallets/subtensor/src/migrations/migrate_to_v1_separate_emission.rs +++ b/pallets/subtensor/src/migrations/migrate_to_v1_separate_emission.rs @@ -1,6 +1,5 @@ use super::*; use frame_support::{ - pallet_prelude::*, storage_alias, traits::{Get, GetStorageVersion, StorageVersion}, weights::Weight, diff --git a/pallets/subtensor/src/migrations/migrate_to_v2_fixed_total_stake.rs b/pallets/subtensor/src/migrations/migrate_to_v2_fixed_total_stake.rs index b0a711ac77..6410f79321 100644 --- a/pallets/subtensor/src/migrations/migrate_to_v2_fixed_total_stake.rs +++ b/pallets/subtensor/src/migrations/migrate_to_v2_fixed_total_stake.rs @@ -1,6 +1,5 @@ use super::*; use frame_support::{ - pallet_prelude::*, storage_alias, traits::{Get, GetStorageVersion}, weights::Weight, From 468d102485679a8533faba938e3811814483bb80 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 02:08:15 +0200 Subject: [PATCH 18/49] convert subtensor signed ext to tx ext --- pallets/subtensor/src/lib.rs | 417 +++++++++++++++-------------------- runtime/src/lib.rs | 4 +- 2 files changed, 180 insertions(+), 241 deletions(-) diff --git a/pallets/subtensor/src/lib.rs b/pallets/subtensor/src/lib.rs index ec9d9c7ed9..7ab6d0bf71 100644 --- a/pallets/subtensor/src/lib.rs +++ b/pallets/subtensor/src/lib.rs @@ -12,10 +12,11 @@ use frame_support::{ dispatch::{self, DispatchInfo, DispatchResult, DispatchResultWithPostInfo, PostDispatchInfo}, ensure, pallet_macros::import_section, + pallet_prelude::*, traits::{IsSubType, tokens::fungible}, }; -use codec::{Decode, Encode}; +use codec::{Decode, DecodeWithMemTracking, Encode}; use frame_support::sp_runtime::transaction_validity::InvalidTransaction; use frame_support::sp_runtime::transaction_validity::ValidTransaction; use pallet_balances::Call as BalancesCall; @@ -24,7 +25,10 @@ use scale_info::TypeInfo; use sp_core::Get; use sp_runtime::{ DispatchError, - traits::{DispatchInfoOf, Dispatchable, PostDispatchInfoOf, SignedExtension}, + traits::{ + AsSystemOriginSigner, DispatchInfoOf, Dispatchable, Implication, PostDispatchInfoOf, + TransactionExtension, ValidateResult, + }, transaction_validity::{TransactionValidity, TransactionValidityError}, }; use sp_std::marker::PhantomData; @@ -1783,22 +1787,23 @@ impl From for u8 { } } -#[freeze_struct("61e2b893d5ce6701")] -#[derive(Encode, Decode, Clone, Eq, PartialEq, TypeInfo)] -pub struct SubtensorSignedExtension(pub PhantomData); +impl From for TransactionValidityError { + fn from(variant: CustomTransactionError) -> Self { + TransactionValidityError::Invalid(InvalidTransaction::Custom(variant.into())) + } +} -impl Default for SubtensorSignedExtension -where - ::RuntimeCall: - Dispatchable, - ::RuntimeCall: IsSubType>, -{ - fn default() -> Self { - Self::new() +#[freeze_struct("2e02eb32e5cb25d3")] +#[derive(Default, Encode, Decode, DecodeWithMemTracking, Clone, Eq, PartialEq, TypeInfo)] +pub struct SubtensorTransactionExtension(pub PhantomData); + +impl sp_std::fmt::Debug for SubtensorTransactionExtension { + fn fmt(&self, f: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { + write!(f, "SubtensorTransactionExtension") } } -impl SubtensorSignedExtension +impl SubtensorTransactionExtension where ::RuntimeCall: Dispatchable, @@ -1832,59 +1837,31 @@ where pub fn result_to_validity(result: Result<(), Error>, priority: u64) -> TransactionValidity { if let Err(err) = result { - match err { - Error::::AmountTooLow => Err(InvalidTransaction::Custom( - CustomTransactionError::StakeAmountTooLow.into(), - ) - .into()), - Error::::SubnetNotExists => Err(InvalidTransaction::Custom( - CustomTransactionError::SubnetDoesntExist.into(), - ) - .into()), - Error::::NotEnoughBalanceToStake => Err(InvalidTransaction::Custom( - CustomTransactionError::BalanceTooLow.into(), - ) - .into()), - Error::::HotKeyAccountNotExists => Err(InvalidTransaction::Custom( - CustomTransactionError::HotkeyAccountDoesntExist.into(), - ) - .into()), - Error::::NotEnoughStakeToWithdraw => Err(InvalidTransaction::Custom( - CustomTransactionError::NotEnoughStakeToWithdraw.into(), - ) - .into()), - Error::::InsufficientLiquidity => Err(InvalidTransaction::Custom( - CustomTransactionError::InsufficientLiquidity.into(), - ) - .into()), - Error::::SlippageTooHigh => Err(InvalidTransaction::Custom( - CustomTransactionError::SlippageTooHigh.into(), - ) - .into()), - Error::::TransferDisallowed => Err(InvalidTransaction::Custom( - CustomTransactionError::TransferDisallowed.into(), - ) - .into()), - Error::::HotKeyNotRegisteredInNetwork => Err(InvalidTransaction::Custom( - CustomTransactionError::HotKeyNotRegisteredInNetwork.into(), - ) - .into()), - Error::::InvalidIpAddress => Err(InvalidTransaction::Custom( - CustomTransactionError::InvalidIpAddress.into(), - ) - .into()), - Error::::ServingRateLimitExceeded => Err(InvalidTransaction::Custom( - CustomTransactionError::ServingRateLimitExceeded.into(), - ) - .into()), - Error::::InvalidPort => Err(InvalidTransaction::Custom( - CustomTransactionError::InvalidPort.into(), - ) - .into()), - _ => Err( - InvalidTransaction::Custom(CustomTransactionError::BadRequest.into()).into(), - ), - } + Err(match err { + Error::::AmountTooLow => CustomTransactionError::StakeAmountTooLow.into(), + Error::::SubnetNotExists => CustomTransactionError::SubnetDoesntExist.into(), + Error::::NotEnoughBalanceToStake => CustomTransactionError::BalanceTooLow.into(), + Error::::HotKeyAccountNotExists => { + CustomTransactionError::HotkeyAccountDoesntExist.into() + } + Error::::NotEnoughStakeToWithdraw => { + CustomTransactionError::NotEnoughStakeToWithdraw.into() + } + Error::::InsufficientLiquidity => { + CustomTransactionError::InsufficientLiquidity.into() + } + Error::::SlippageTooHigh => CustomTransactionError::SlippageTooHigh.into(), + Error::::TransferDisallowed => CustomTransactionError::TransferDisallowed.into(), + Error::::HotKeyNotRegisteredInNetwork => { + CustomTransactionError::HotKeyNotRegisteredInNetwork.into() + } + Error::::InvalidIpAddress => CustomTransactionError::InvalidIpAddress.into(), + Error::::ServingRateLimitExceeded => { + CustomTransactionError::ServingRateLimitExceeded.into() + } + Error::::InvalidPort => CustomTransactionError::InvalidPort.into(), + _ => CustomTransactionError::BadRequest.into(), + }) } else { Ok(ValidTransaction { priority, @@ -1894,127 +1871,118 @@ where } } -impl sp_std::fmt::Debug for SubtensorSignedExtension { - fn fmt(&self, f: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { - write!(f, "SubtensorSignedExtension") - } -} - -impl SignedExtension - for SubtensorSignedExtension +impl + TransactionExtension<::RuntimeCall> + for SubtensorTransactionExtension where ::RuntimeCall: Dispatchable, + ::RuntimeOrigin: AsSystemOriginSigner + Clone, ::RuntimeCall: IsSubType>, ::RuntimeCall: IsSubType>, { - const IDENTIFIER: &'static str = "SubtensorSignedExtension"; + const IDENTIFIER: &'static str = "SubtensorTransactionExtension"; - type AccountId = T::AccountId; - type Call = ::RuntimeCall; - type AdditionalSigned = (); - type Pre = (CallType, u64, Self::AccountId); + type Implicit = (); + type Val = Option; + type Pre = Option; - fn additional_signed(&self) -> Result { - Ok(()) + fn weight(&self, _call: &::RuntimeCall) -> Weight { + // TODO: benchmark transaction extension + Weight::zero() } fn validate( &self, - who: &Self::AccountId, - call: &Self::Call, - _info: &DispatchInfoOf, + origin: ::RuntimeOrigin, + call: &::RuntimeCall, + _info: &DispatchInfoOf<::RuntimeCall>, _len: usize, - ) -> TransactionValidity { + _self_implicit: Self::Implicit, + _inherited_implication: &impl Implication, + _source: TransactionSource, + ) -> ValidateResult::RuntimeCall> { + let Some(who) = origin.as_system_origin_signer() else { + return Ok((Default::default(), None, origin)); + }; + match call.is_sub_type() { Some(Call::commit_weights { netuid, .. }) => { if Self::check_weights_min_stake(who, *netuid) { let priority: u64 = Self::get_priority_set_weights(who, *netuid); - Ok(ValidTransaction { + let validity = ValidTransaction { priority, longevity: 1, ..Default::default() - }) + }; + Ok((validity, Some(who.clone()), origin)) } else { - Err(InvalidTransaction::Custom( - CustomTransactionError::StakeAmountTooLow.into(), - ) - .into()) + Err(CustomTransactionError::StakeAmountTooLow.into()) } } Some(Call::reveal_weights { netuid, .. }) => { if Self::check_weights_min_stake(who, *netuid) { let priority: u64 = Self::get_priority_set_weights(who, *netuid); - Ok(ValidTransaction { + let validity = ValidTransaction { priority, longevity: 1, ..Default::default() - }) + }; + Ok((validity, Some(who.clone()), origin)) } else { - Err(InvalidTransaction::Custom( - CustomTransactionError::StakeAmountTooLow.into(), - ) - .into()) + Err(CustomTransactionError::StakeAmountTooLow.into()) } } Some(Call::batch_reveal_weights { netuid, .. }) => { if Self::check_weights_min_stake(who, *netuid) { let priority: u64 = Self::get_priority_set_weights(who, *netuid); - Ok(ValidTransaction { + let validity = ValidTransaction { priority, longevity: 1, ..Default::default() - }) + }; + Ok((validity, Some(who.clone()), origin)) } else { - Err(InvalidTransaction::Custom( - CustomTransactionError::StakeAmountTooLow.into(), - ) - .into()) + Err(CustomTransactionError::StakeAmountTooLow.into()) } } Some(Call::set_weights { netuid, .. }) => { if Self::check_weights_min_stake(who, *netuid) { let priority: u64 = Self::get_priority_set_weights(who, *netuid); - Ok(ValidTransaction { + let validity = ValidTransaction { priority, longevity: 1, ..Default::default() - }) + }; + Ok((validity, Some(who.clone()), origin)) } else { - Err(InvalidTransaction::Custom( - CustomTransactionError::StakeAmountTooLow.into(), - ) - .into()) + Err(CustomTransactionError::StakeAmountTooLow.into()) } } Some(Call::set_tao_weights { netuid, hotkey, .. }) => { if Self::check_weights_min_stake(hotkey, *netuid) { let priority: u64 = Self::get_priority_set_weights(hotkey, *netuid); - Ok(ValidTransaction { + let validity = ValidTransaction { priority, longevity: 1, ..Default::default() - }) + }; + Ok((validity, Some(who.clone()), origin)) } else { - Err(InvalidTransaction::Custom( - CustomTransactionError::StakeAmountTooLow.into(), - ) - .into()) + Err(CustomTransactionError::StakeAmountTooLow.into()) } } Some(Call::commit_crv3_weights { netuid, .. }) => { if Self::check_weights_min_stake(who, *netuid) { let priority: u64 = Pallet::::get_priority_set_weights(who, *netuid); - Ok(ValidTransaction { + let validity = ValidTransaction { priority, longevity: 1, ..Default::default() - }) + }; + Ok((validity, Some(who.clone()), origin)) } else { - Err(InvalidTransaction::Custom( - CustomTransactionError::StakeAmountTooLow.into(), - ) - .into()) + Err(CustomTransactionError::StakeAmountTooLow.into()) } } Some(Call::add_stake { @@ -2023,11 +1991,9 @@ where amount_staked, }) => { if ColdkeySwapScheduled::::contains_key(who) { - return InvalidTransaction::Custom( - CustomTransactionError::ColdkeyInSwapSchedule.into(), - ) - .into(); + return Err(CustomTransactionError::ColdkeyInSwapSchedule.into()); } + // Fully validate the user input Self::result_to_validity( Pallet::::validate_add_stake( @@ -2039,7 +2005,7 @@ where false, ), Self::get_priority_staking(who, hotkey, *amount_staked), - ) + ).map(|validity| (validity, Some(who.clone()), origin.clone())) } Some(Call::add_stake_limit { hotkey, @@ -2049,18 +2015,12 @@ where allow_partial, }) => { if ColdkeySwapScheduled::::contains_key(who) { - return InvalidTransaction::Custom( - CustomTransactionError::ColdkeyInSwapSchedule.into(), - ) - .into(); + return Err(CustomTransactionError::ColdkeyInSwapSchedule.into()); } // Calculate the maximum amount that can be executed with price limit let Ok(max_amount) = Pallet::::get_max_amount_add(*netuid, *limit_price) else { - return InvalidTransaction::Custom( - CustomTransactionError::ZeroMaxAmount.into(), - ) - .into(); + return Err(CustomTransactionError::ZeroMaxAmount.into()); }; // Fully validate the user input @@ -2074,7 +2034,7 @@ where *allow_partial, ), Self::get_priority_staking(who, hotkey, *amount_staked), - ) + ).map(|validity| (validity, Some(who.clone()), origin.clone())) } Some(Call::remove_stake { hotkey, @@ -2092,7 +2052,7 @@ where false, ), Self::get_priority_staking(who, hotkey, *amount_unstaked), - ) + ).map(|validity| (validity, Some(who.clone()), origin.clone())) } Some(Call::remove_stake_limit { hotkey, @@ -2104,10 +2064,7 @@ where // Calculate the maximum amount that can be executed with price limit let Ok(max_amount) = Pallet::::get_max_amount_remove(*netuid, *limit_price) else { - return InvalidTransaction::Custom( - CustomTransactionError::ZeroMaxAmount.into(), - ) - .into(); + return Err(CustomTransactionError::ZeroMaxAmount.into()); }; // Fully validate the user input @@ -2121,21 +2078,21 @@ where *allow_partial, ), Self::get_priority_staking(who, hotkey, *amount_unstaked), - ) + ).map(|validity| (validity, Some(who.clone()), origin.clone())) } Some(Call::unstake_all { hotkey }) => { // Fully validate the user input Self::result_to_validity( Pallet::::validate_unstake_all(who, hotkey, false), Self::get_priority_vanilla(), - ) + ).map(|validity| (validity, Some(who.clone()), origin.clone())) } Some(Call::unstake_all_alpha { hotkey }) => { // Fully validate the user input Self::result_to_validity( Pallet::::validate_unstake_all(who, hotkey, true), Self::get_priority_vanilla(), - ) + ).map(|validity| (validity, Some(who.clone()), origin.clone())) } Some(Call::move_stake { origin_hotkey, @@ -2145,10 +2102,7 @@ where alpha_amount, }) => { if ColdkeySwapScheduled::::contains_key(who) { - return InvalidTransaction::Custom( - CustomTransactionError::ColdkeyInSwapSchedule.into(), - ) - .into(); + return Err(CustomTransactionError::ColdkeyInSwapSchedule.into()); } // Fully validate the user input @@ -2166,7 +2120,7 @@ where false, ), Self::get_priority_staking(who, origin_hotkey, *alpha_amount), - ) + ).map(|validity| (validity, Some(who.clone()), origin.clone())) } Some(Call::transfer_stake { destination_coldkey, @@ -2176,10 +2130,7 @@ where alpha_amount, }) => { if ColdkeySwapScheduled::::contains_key(who) { - return InvalidTransaction::Custom( - CustomTransactionError::ColdkeyInSwapSchedule.into(), - ) - .into(); + return Err(CustomTransactionError::ColdkeyInSwapSchedule.into()); } // Fully validate the user input @@ -2197,7 +2148,7 @@ where true, ), Self::get_priority_staking(who, hotkey, *alpha_amount), - ) + ).map(|validity| (validity, Some(who.clone()), origin.clone())) } Some(Call::swap_stake { hotkey, @@ -2206,10 +2157,7 @@ where alpha_amount, }) => { if ColdkeySwapScheduled::::contains_key(who) { - return InvalidTransaction::Custom( - CustomTransactionError::ColdkeyInSwapSchedule.into(), - ) - .into(); + return Err(CustomTransactionError::ColdkeyInSwapSchedule.into()); } // Fully validate the user input @@ -2227,7 +2175,7 @@ where false, ), Self::get_priority_staking(who, hotkey, *alpha_amount), - ) + ).map(|validity| (validity, Some(who.clone()), origin.clone())) } Some(Call::swap_stake_limit { hotkey, @@ -2238,10 +2186,7 @@ where allow_partial, }) => { if ColdkeySwapScheduled::::contains_key(who) { - return InvalidTransaction::Custom( - CustomTransactionError::ColdkeyInSwapSchedule.into(), - ) - .into(); + return Err(CustomTransactionError::ColdkeyInSwapSchedule.into()); } // Get the max amount possible to exchange @@ -2250,10 +2195,7 @@ where *destination_netuid, *limit_price, ) else { - return InvalidTransaction::Custom( - CustomTransactionError::ZeroMaxAmount.into(), - ) - .into(); + return Err(CustomTransactionError::ZeroMaxAmount.into()); }; // Fully validate the user input @@ -2271,14 +2213,11 @@ where false, ), Self::get_priority_staking(who, hotkey, *alpha_amount), - ) + ).map(|validity| (validity, Some(who.clone()), origin.clone())) } Some(Call::register { netuid, .. } | Call::burned_register { netuid, .. }) => { if ColdkeySwapScheduled::::contains_key(who) { - return InvalidTransaction::Custom( - CustomTransactionError::ColdkeyInSwapSchedule.into(), - ) - .into(); + return Err(CustomTransactionError::ColdkeyInSwapSchedule.into()); } let registrations_this_interval = @@ -2288,29 +2227,31 @@ where if registrations_this_interval >= (max_registrations_per_interval.saturating_mul(3)) { // If the registration limit for the interval is exceeded, reject the transaction - return Err(InvalidTransaction::Custom( - CustomTransactionError::RateLimitExceeded.into(), - ) - .into()); + return Err(CustomTransactionError::RateLimitExceeded.into()); } - Ok(ValidTransaction { + let validity = ValidTransaction { priority: Self::get_priority_vanilla(), ..Default::default() - }) + }; + Ok((validity, Some(who.clone()), origin)) + } + Some(Call::register_network { .. }) => { + let validity = ValidTransaction { + priority: Self::get_priority_vanilla(), + ..Default::default() + }; + + Ok((validity, Some(who.clone()), origin)) } - Some(Call::register_network { .. }) => Ok(ValidTransaction { - priority: Self::get_priority_vanilla(), - ..Default::default() - }), Some(Call::dissolve_network { .. }) => { if ColdkeySwapScheduled::::contains_key(who) { - InvalidTransaction::Custom(CustomTransactionError::ColdkeyInSwapSchedule.into()) - .into() + return Err(CustomTransactionError::ColdkeyInSwapSchedule.into()); } else { - Ok(ValidTransaction { + let validity = ValidTransaction { priority: Self::get_priority_vanilla(), ..Default::default() - }) + }; + Ok((validity, Some(who.clone()), origin)) } } Some(Call::serve_axon { @@ -2337,7 +2278,7 @@ where *placeholder2, ), Self::get_priority_vanilla(), - ) + ).map(|validity| (validity, Some(who.clone()), origin.clone())) } _ => { if let Some( @@ -2347,102 +2288,100 @@ where ) = call.is_sub_type() { if ColdkeySwapScheduled::::contains_key(who) { - return InvalidTransaction::Custom( - CustomTransactionError::ColdkeyInSwapSchedule.into(), - ) - .into(); + return Err(CustomTransactionError::ColdkeyInSwapSchedule.into()); } } - Ok(ValidTransaction { + let validity = ValidTransaction { priority: Self::get_priority_vanilla(), ..Default::default() - }) + }; + Ok((validity, Some(who.clone()), origin)) } } } // NOTE: Add later when we put in a pre and post dispatch step. - fn pre_dispatch( + fn prepare( self, - who: &Self::AccountId, - call: &Self::Call, - info: &DispatchInfoOf, - len: usize, + val: Self::Val, + _origin: &::RuntimeOrigin, + call: &::RuntimeCall, + _info: &DispatchInfoOf<::RuntimeCall>, + _len: usize, ) -> Result { + let who = match val { + Some(who) => who, + None => return Ok(None), + }; + // We need to perform same checks as Self::validate so that // the validation is performed during Executive::apply_extrinsic as well. // this prevents inclusion of invalid tx in a block by malicious block author. - self.validate(who, call, info, len)?; + // self.validate(who, call, info, len)?; match call.is_sub_type() { Some(Call::add_stake { .. }) => { - let transaction_fee = 100000; - Ok((CallType::AddStake, transaction_fee, who.clone())) + Ok(Some(CallType::AddStake)) } Some(Call::remove_stake { .. }) => { - let transaction_fee = 0; - Ok((CallType::RemoveStake, transaction_fee, who.clone())) + Ok(Some(CallType::RemoveStake)) } Some(Call::set_weights { .. }) => { - let transaction_fee = 0; - Ok((CallType::SetWeights, transaction_fee, who.clone())) + Ok(Some(CallType::SetWeights)) } Some(Call::commit_weights { .. }) => { - let transaction_fee = 0; - Ok((CallType::SetWeights, transaction_fee, who.clone())) + Ok(Some(CallType::SetWeights)) } Some(Call::reveal_weights { .. }) => { - let transaction_fee = 0; - Ok((CallType::SetWeights, transaction_fee, who.clone())) + Ok(Some(CallType::SetWeights)) } Some(Call::register { .. }) => { - let transaction_fee = 0; - Ok((CallType::Register, transaction_fee, who.clone())) + Ok(Some(CallType::Register)) } Some(Call::serve_axon { .. }) => { - let transaction_fee = 0; - Ok((CallType::Serve, transaction_fee, who.clone())) + Ok(Some(CallType::Serve)) } Some(Call::serve_axon_tls { .. }) => { - let transaction_fee = 0; - Ok((CallType::Serve, transaction_fee, who.clone())) + Ok(Some(CallType::Serve)) } Some(Call::register_network { .. }) => { - let transaction_fee = 0; - Ok((CallType::RegisterNetwork, transaction_fee, who.clone())) + Ok(Some(CallType::RegisterNetwork)) } _ => { - let transaction_fee = 0; - Ok((CallType::Other, transaction_fee, who.clone())) + Ok(Some(CallType::Other)) } } } fn post_dispatch( - maybe_pre: Option, - _info: &DispatchInfoOf, - _post_info: &PostDispatchInfoOf, + pre: Self::Pre, + _info: &DispatchInfoOf<::RuntimeCall>, + _post_info: &mut PostDispatchInfoOf<::RuntimeCall>, _len: usize, _result: &dispatch::DispatchResult, ) -> Result<(), TransactionValidityError> { - if let Some((call_type, _transaction_fee, _who)) = maybe_pre { - match call_type { - CallType::SetWeights => { - log::debug!("Not Implemented!"); - } - CallType::AddStake => { - log::debug!("Not Implemented! Need to add potential transaction fees here."); - } - CallType::RemoveStake => { - log::debug!("Not Implemented! Need to add potential transaction fees here."); - } - CallType::Register => { - log::debug!("Not Implemented!"); - } - _ => { - log::debug!("Not Implemented!"); - } + let call_type = match pre { + Some(call_type) => call_type, + None => return Ok(()), + }; + + match call_type { + CallType::SetWeights => { + log::debug!("Not Implemented!"); + } + CallType::AddStake => { + log::debug!("Not Implemented! Need to add potential transaction fees here."); + } + CallType::RemoveStake => { + log::debug!("Not Implemented! Need to add potential transaction fees here."); + } + CallType::Register => { + log::debug!("Not Implemented!"); + } + _ => { + log::debug!("Not Implemented!"); } } + Ok(()) } } diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index cfc594a966..76cba1503b 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -149,7 +149,7 @@ impl frame_system::offchain::CreateSignedTransaction check_nonce::CheckNonce::::from(nonce).into(), frame_system::CheckWeight::::new(), pallet_transaction_payment::ChargeTransactionPayment::::from(0), - pallet_subtensor::SubtensorSignedExtension::::new().into(), + pallet_subtensor::SubtensorTransactionExtension::::new(), pallet_commitments::CommitmentsSignedExtension::::new().into(), frame_metadata_hash_extension::CheckMetadataHash::::new(true), ); @@ -1581,7 +1581,7 @@ pub type SignedExtra = ( AsTransactionExtension>, frame_system::CheckWeight, pallet_transaction_payment::ChargeTransactionPayment, - AsTransactionExtension>, + pallet_subtensor::SubtensorTransactionExtension, AsTransactionExtension>, frame_metadata_hash_extension::CheckMetadataHash, ); From 21c31bcb3ec6c0172d5851b1a8087971cade91d2 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 02:12:01 +0200 Subject: [PATCH 19/49] addd comment --- pallets/subtensor/src/lib.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pallets/subtensor/src/lib.rs b/pallets/subtensor/src/lib.rs index 7ab6d0bf71..9214ca2396 100644 --- a/pallets/subtensor/src/lib.rs +++ b/pallets/subtensor/src/lib.rs @@ -1902,6 +1902,7 @@ where _inherited_implication: &impl Implication, _source: TransactionSource, ) -> ValidateResult::RuntimeCall> { + // Ensure the transaction is signed, else we just skip the extension. let Some(who) = origin.as_system_origin_signer() else { return Ok((Default::default(), None, origin)); }; @@ -2309,15 +2310,11 @@ where _info: &DispatchInfoOf<::RuntimeCall>, _len: usize, ) -> Result { - let who = match val { - Some(who) => who, - None => return Ok(None), - }; + // The transaction is not signed, given val is None, so we just skip this step. + if let None = val { + return Ok(None); + } - // We need to perform same checks as Self::validate so that - // the validation is performed during Executive::apply_extrinsic as well. - // this prevents inclusion of invalid tx in a block by malicious block author. - // self.validate(who, call, info, len)?; match call.is_sub_type() { Some(Call::add_stake { .. }) => { Ok(Some(CallType::AddStake)) @@ -2359,6 +2356,7 @@ where _len: usize, _result: &dispatch::DispatchResult, ) -> Result<(), TransactionValidityError> { + // Skip this step if the transaction is not signed, meaning pre is None. let call_type = match pre { Some(call_type) => call_type, None => return Ok(()), From 26fbbef9372ee68c4e3249e03e99e00708689932 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 02:20:23 +0200 Subject: [PATCH 20/49] fix deprecated macro for runtime str --- runtime/src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 76cba1503b..668e7344a2 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -13,6 +13,7 @@ mod migrations; use codec::{Compact, Decode, Encode}; use frame_support::traits::{Imbalance, InsideBoth}; +use sp_runtime::Cow; use frame_support::{ PalletId, dispatch::DispatchResultWithPostInfo, @@ -49,7 +50,7 @@ use sp_core::{ }; use sp_runtime::generic::Era; use sp_runtime::{ - AccountId32, ApplyExtrinsicResult, ConsensusEngineId, create_runtime_str, generic, + AccountId32, ApplyExtrinsicResult, ConsensusEngineId, generic, impl_opaque_keys, traits::transaction_extension::AsTransactionExtension, traits::{ @@ -207,8 +208,8 @@ pub mod opaque { // https://docs.substrate.io/main-docs/build/upgrade#runtime-versioning #[sp_version::runtime_version] pub const VERSION: RuntimeVersion = RuntimeVersion { - spec_name: create_runtime_str!("node-subtensor"), - impl_name: create_runtime_str!("node-subtensor"), + spec_name: Cow::Borrowed("node-subtensor"), + impl_name: Cow::Borrowed("node-subtensor"), authoring_version: 1, // The version of the runtime specification. A full node will not attempt to use its native // runtime in substitute for the on-chain Wasm runtime unless all of `spec_name`, From 220742fa407ed22d742d29df1527abb648e00245 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 14:55:20 +0200 Subject: [PATCH 21/49] fix tests --- node/src/benchmarking.rs | 2 +- pallets/subtensor/src/tests/move_stake.rs | 69 ++++-- pallets/subtensor/src/tests/registration.rs | 80 +++++-- pallets/subtensor/src/tests/serving.rs | 35 ++- pallets/subtensor/src/tests/staking.rs | 150 ++++++++----- pallets/subtensor/src/tests/swap_coldkey.rs | 230 +++++++++++++------- pallets/subtensor/src/tests/weights.rs | 151 ++++++++++--- 7 files changed, 507 insertions(+), 210 deletions(-) diff --git a/node/src/benchmarking.rs b/node/src/benchmarking.rs index 7fabad6b3b..5476e22266 100644 --- a/node/src/benchmarking.rs +++ b/node/src/benchmarking.rs @@ -135,7 +135,7 @@ pub fn create_benchmark_extrinsic( check_nonce::CheckNonce::::from(nonce).into(), frame_system::CheckWeight::::new(), pallet_transaction_payment::ChargeTransactionPayment::::from(0), - pallet_subtensor::SubtensorSignedExtension::::new().into(), + pallet_subtensor::SubtensorTransactionExtension::::new().into(), pallet_commitments::CommitmentsSignedExtension::::new().into(), frame_metadata_hash_extension::CheckMetadataHash::::new(true), ); diff --git a/pallets/subtensor/src/tests/move_stake.rs b/pallets/subtensor/src/tests/move_stake.rs index dd85ab9075..ebfbc6b405 100644 --- a/pallets/subtensor/src/tests/move_stake.rs +++ b/pallets/subtensor/src/tests/move_stake.rs @@ -2,6 +2,8 @@ use super::mock::*; use crate::*; use approx::assert_abs_diff_eq; use frame_support::{assert_err, assert_noop, assert_ok}; +use frame_system::RawOrigin; +use sp_runtime::traits::TxBaseImplication; use sp_core::{Get, U256}; use substrate_fixed::types::{U64F64, U96F32}; @@ -1562,16 +1564,21 @@ fn test_swap_stake_limit_validate() { let info: crate::DispatchInfo = crate::DispatchInfoOf::<::RuntimeCall>::default(); - let extension = crate::SubtensorSignedExtension::::new(); + let extension = crate::SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function - let result_no_stake = extension.validate(&coldkey, &call.clone(), &info, 10); + let result_no_stake = extension.validate( + RawOrigin::Signed(coldkey).into(), &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail due to slippage - assert_err!( - result_no_stake, - crate::TransactionValidityError::Invalid(crate::InvalidTransaction::Custom( - CustomTransactionError::SlippageTooHigh.into() - )) + assert_eq!( + result_no_stake.unwrap_err(), + CustomTransactionError::SlippageTooHigh.into() ); }); } @@ -1608,19 +1615,25 @@ fn test_stake_transfers_disabled_validate() { let info: crate::DispatchInfo = crate::DispatchInfoOf::<::RuntimeCall>::default(); - let extension = crate::SubtensorSignedExtension::::new(); + let extension = crate::SubtensorTransactionExtension::::new(); // Disable transfers in origin subnet TransferToggle::::insert(origin_netuid, false); TransferToggle::::insert(destination_netuid, true); // Submit to the signed extension validate function - let result1 = extension.validate(&coldkey, &call.clone(), &info, 10); - assert_err!( - result1, - crate::TransactionValidityError::Invalid(crate::InvalidTransaction::Custom( - CustomTransactionError::TransferDisallowed.into() - )) + let result1 = extension.validate( + RawOrigin::Signed(coldkey).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); + assert_eq!( + result1.unwrap_err(), + CustomTransactionError::TransferDisallowed.into() ); // Disable transfers in destination subnet @@ -1628,12 +1641,18 @@ fn test_stake_transfers_disabled_validate() { TransferToggle::::insert(destination_netuid, false); // Submit to the signed extension validate function - let result2 = extension.validate(&coldkey, &call.clone(), &info, 10); - assert_err!( - result2, - crate::TransactionValidityError::Invalid(crate::InvalidTransaction::Custom( - CustomTransactionError::TransferDisallowed.into() - )) + let result2 = extension.validate( + RawOrigin::Signed(coldkey).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); + assert_eq!( + result2.unwrap_err(), + CustomTransactionError::TransferDisallowed.into() ); // Enable transfers @@ -1641,7 +1660,15 @@ fn test_stake_transfers_disabled_validate() { TransferToggle::::insert(destination_netuid, true); // Submit to the signed extension validate function - let result3 = extension.validate(&coldkey, &call.clone(), &info, 10); + let result3 = extension.validate( + RawOrigin::Signed(coldkey).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); assert_ok!(result3); }); } diff --git a/pallets/subtensor/src/tests/registration.rs b/pallets/subtensor/src/tests/registration.rs index c50c103f8b..34842005df 100644 --- a/pallets/subtensor/src/tests/registration.rs +++ b/pallets/subtensor/src/tests/registration.rs @@ -4,13 +4,13 @@ use approx::assert_abs_diff_eq; use frame_support::traits::Currency; use super::mock::*; -use crate::{AxonInfoOf, CustomTransactionError, Error, SubtensorSignedExtension}; +use crate::{AxonInfoOf, CustomTransactionError, Error, SubtensorTransactionExtension}; use frame_support::dispatch::{DispatchClass, DispatchInfo, GetDispatchInfo, Pays}; -use frame_support::sp_runtime::{DispatchError, transaction_validity::InvalidTransaction}; +use frame_support::sp_runtime::{DispatchError, transaction_validity::TransactionSource}; use frame_support::{assert_err, assert_noop, assert_ok}; -use frame_system::Config; +use frame_system::{Config, RawOrigin}; use sp_core::U256; -use sp_runtime::traits::{DispatchInfoOf, SignedExtension}; +use sp_runtime::traits::{DispatchInfoOf, TxBaseImplication, TransactionExtension}; /******************************************** subscribing::subscribe() tests @@ -219,9 +219,17 @@ fn test_registration_under_limit() { }; let info: DispatchInfo = DispatchInfoOf::<::RuntimeCall>::default(); - let extension = SubtensorSignedExtension::::new(); + let extension = SubtensorTransactionExtension::::new(); //does not actually call register - let result = extension.validate(&who, &call.into(), &info, 10); + let result = extension.validate( + RawOrigin::Signed(who).into(), + &call.into(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); assert_ok!(result); //actually call register @@ -272,13 +280,21 @@ fn test_registration_rate_limit_exceeded() { }; let info: DispatchInfo = DispatchInfoOf::<::RuntimeCall>::default(); - let extension = SubtensorSignedExtension::::new(); - let result = extension.validate(&who, &call.into(), &info, 10); + let extension = SubtensorTransactionExtension::::new(); + let result = extension.validate( + RawOrigin::Signed(who).into(), + &call.into(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Expectation: The transaction should be rejected - assert_err!( - result, - InvalidTransaction::Custom(CustomTransactionError::RateLimitExceeded.into()) + assert_eq!( + result.unwrap_err(), + CustomTransactionError::RateLimitExceeded.into() ); let current_registrants = SubtensorModule::get_registrations_this_interval(netuid); @@ -316,10 +332,18 @@ fn test_burned_registration_under_limit() { let info: DispatchInfo = DispatchInfoOf::<::RuntimeCall>::default(); - let extension = SubtensorSignedExtension::::new(); + let extension = SubtensorTransactionExtension::::new(); //does not actually call register let burned_register_result = - extension.validate(&who, &call_burned_register.into(), &info, 10); + extension.validate( + RawOrigin::Signed(who).into(), + &call_burned_register.into(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); assert_ok!(burned_register_result); //actually call register @@ -356,14 +380,22 @@ fn test_burned_registration_rate_limit_exceeded() { let info: DispatchInfo = DispatchInfoOf::<::RuntimeCall>::default(); - let extension = SubtensorSignedExtension::::new(); + let extension = SubtensorTransactionExtension::::new(); let burned_register_result = - extension.validate(&who, &call_burned_register.into(), &info, 10); + extension.validate( + RawOrigin::Signed(who).into(), + &call_burned_register.into(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Expectation: The transaction should be rejected - assert_err!( - burned_register_result, - InvalidTransaction::Custom(CustomTransactionError::RateLimitExceeded.into()) + assert_eq!( + burned_register_result.unwrap_err(), + CustomTransactionError::RateLimitExceeded.into() ); let current_registrants = SubtensorModule::get_registrations_this_interval(netuid); @@ -401,10 +433,18 @@ fn test_burned_registration_rate_allows_burn_adjustment() { let info: DispatchInfo = DispatchInfoOf::<::RuntimeCall>::default(); - let extension = SubtensorSignedExtension::::new(); + let extension = SubtensorTransactionExtension::::new(); //does not actually call register let burned_register_result = - extension.validate(&who, &call_burned_register.into(), &info, 10); + extension.validate( + RawOrigin::Signed(who).into(), + &call_burned_register.into(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); assert_ok!(burned_register_result); //actually call register diff --git a/pallets/subtensor/src/tests/serving.rs b/pallets/subtensor/src/tests/serving.rs index d01d6e5536..260ee0c6c9 100644 --- a/pallets/subtensor/src/tests/serving.rs +++ b/pallets/subtensor/src/tests/serving.rs @@ -3,13 +3,14 @@ use super::mock::*; use crate::Error; use crate::*; use frame_support::pallet_prelude::Weight; -use frame_support::{assert_err, assert_noop}; +use frame_support::assert_noop; use frame_support::{ assert_ok, dispatch::{DispatchClass, DispatchInfo, GetDispatchInfo, Pays}, }; -use frame_system::Config; +use frame_system::{Config, RawOrigin}; use sp_core::U256; +use sp_runtime::traits::TxBaseImplication; mod test { use std::net::{Ipv4Addr, Ipv6Addr}; @@ -1336,16 +1337,22 @@ fn test_serve_axon_validate() { let info: crate::DispatchInfo = crate::DispatchInfoOf::<::RuntimeCall>::default(); - let extension = crate::SubtensorSignedExtension::::new(); + let extension = crate::SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function - let result_bad = extension.validate(&hotkey, &call.clone(), &info, 10); + let result_bad = extension.validate( + RawOrigin::Signed(hotkey).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail due to insufficient stake - assert_err!( - result_bad, - crate::TransactionValidityError::Invalid(crate::InvalidTransaction::Custom( - CustomTransactionError::HotKeyNotRegisteredInNetwork.into() - )) + assert_eq!( + result_bad.unwrap_err(), + CustomTransactionError::HotKeyNotRegisteredInNetwork.into() ); // Register the hotkey in the subnet and try again @@ -1354,7 +1361,15 @@ fn test_serve_axon_validate() { register_ok_neuron(netuid, hotkey, coldkey, 0); // Submit to the signed extension validate function - let result_ok = extension.validate(&hotkey, &call.clone(), &info, 10); + let result_ok = extension.validate( + RawOrigin::Signed(hotkey).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Now the call passes assert_ok!(result_ok); diff --git a/pallets/subtensor/src/tests/staking.rs b/pallets/subtensor/src/tests/staking.rs index a030f243d4..a09bb47754 100644 --- a/pallets/subtensor/src/tests/staking.rs +++ b/pallets/subtensor/src/tests/staking.rs @@ -10,7 +10,7 @@ use super::mock::*; use crate::*; use approx::assert_abs_diff_eq; use frame_support::dispatch::{DispatchClass, DispatchInfo, GetDispatchInfo, Pays}; -use frame_support::sp_runtime::DispatchError; +use frame_support::sp_runtime::{DispatchError, transaction_validity::TransactionSource, traits::TxBaseImplication}; use sp_core::{Get, H256, U256}; use substrate_fixed::types::{I96F32, I110F18, U64F64, U96F32}; /*********************************************************** @@ -2532,16 +2532,22 @@ fn test_stake_below_min_validate() { let info: DispatchInfo = DispatchInfoOf::<::RuntimeCall>::default(); - let extension = SubtensorSignedExtension::::new(); + let extension = SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function - let result_no_stake = extension.validate(&coldkey, &call.clone(), &info, 10); + let result_no_stake = extension.validate( + RawOrigin::Signed(coldkey).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail due to insufficient stake - assert_err!( - result_no_stake, - TransactionValidityError::Invalid(InvalidTransaction::Custom( - CustomTransactionError::StakeAmountTooLow.into() - )) + assert_eq!( + result_no_stake.unwrap_err(), + CustomTransactionError::StakeAmountTooLow.into() ); // Increase the stake to be equal to the minimum, but leave the balance low @@ -2553,21 +2559,35 @@ fn test_stake_below_min_validate() { }); // Submit to the signed extension validate function - let result_low_balance = extension.validate(&coldkey, &call_2.clone(), &info, 10); + let result_low_balance = extension.validate( + RawOrigin::Signed(coldkey).into(), + &call_2.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Still doesn't pass, but with a different reason (balance too low) - assert_err!( - result_low_balance, - TransactionValidityError::Invalid(InvalidTransaction::Custom( - CustomTransactionError::BalanceTooLow.into() - )) + assert_eq!( + result_low_balance.unwrap_err(), + CustomTransactionError::BalanceTooLow.into() ); // Increase the coldkey balance to match the minimum SubtensorModule::add_balance_to_coldkey_account(&coldkey, 1); // Submit to the signed extension validate function - let result_min_stake = extension.validate(&coldkey, &call_2.clone(), &info, 10); + let result_min_stake = extension.validate( + RawOrigin::Signed(coldkey).into(), + &call_2.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Now the call passes assert_ok!(result_min_stake); @@ -2615,16 +2635,22 @@ fn test_add_stake_limit_validate() { let info: DispatchInfo = DispatchInfoOf::<::RuntimeCall>::default(); - let extension = SubtensorSignedExtension::::new(); + let extension = SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function - let result_no_stake = extension.validate(&coldkey, &call.clone(), &info, 10); + let result_no_stake = extension.validate( + RawOrigin::Signed(coldkey).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail due to slippage - assert_err!( - result_no_stake, - TransactionValidityError::Invalid(InvalidTransaction::Custom( - CustomTransactionError::SlippageTooHigh.into() - )) + assert_eq!( + result_no_stake.unwrap_err(), + CustomTransactionError::SlippageTooHigh.into() ); }); } @@ -2675,16 +2701,22 @@ fn test_remove_stake_limit_validate() { let info: DispatchInfo = DispatchInfoOf::<::RuntimeCall>::default(); - let extension = SubtensorSignedExtension::::new(); + let extension = SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function - let result_no_stake = extension.validate(&coldkey, &call.clone(), &info, 10); + let result_no_stake = extension.validate( + RawOrigin::Signed(coldkey).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail due to slippage - assert_err!( - result_no_stake, - TransactionValidityError::Invalid(InvalidTransaction::Custom( - CustomTransactionError::SlippageTooHigh.into() - )) + assert_eq!( + result_no_stake.unwrap_err(), + CustomTransactionError::SlippageTooHigh.into() ); }); } @@ -2768,16 +2800,22 @@ fn test_stake_low_liquidity_validate() { let info: DispatchInfo = DispatchInfoOf::<::RuntimeCall>::default(); - let extension = SubtensorSignedExtension::::new(); + let extension = SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function - let result_no_stake = extension.validate(&coldkey, &call.clone(), &info, 10); + let result_no_stake = extension.validate( + RawOrigin::Signed(coldkey).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail due to insufficient stake - assert_err!( - result_no_stake, - TransactionValidityError::Invalid(InvalidTransaction::Custom( - CustomTransactionError::InsufficientLiquidity.into() - )) + assert_eq!( + result_no_stake.unwrap_err(), + CustomTransactionError::InsufficientLiquidity.into() ); }); } @@ -2823,16 +2861,22 @@ fn test_unstake_low_liquidity_validate() { let info: DispatchInfo = DispatchInfoOf::<::RuntimeCall>::default(); - let extension = SubtensorSignedExtension::::new(); + let extension = SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function - let result_no_stake = extension.validate(&coldkey, &call.clone(), &info, 10); + let result_no_stake = extension.validate( + RawOrigin::Signed(coldkey).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail due to insufficient stake - assert_err!( - result_no_stake, - TransactionValidityError::Invalid(InvalidTransaction::Custom( - CustomTransactionError::InsufficientLiquidity.into() - )) + assert_eq!( + result_no_stake.unwrap_err(), + CustomTransactionError::InsufficientLiquidity.into() ); }); } @@ -2874,16 +2918,22 @@ fn test_unstake_all_validate() { let info: DispatchInfo = DispatchInfoOf::<::RuntimeCall>::default(); - let extension = SubtensorSignedExtension::::new(); + let extension = SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function - let result_no_stake = extension.validate(&coldkey, &call.clone(), &info, 10); + let result_no_stake = extension.validate( + RawOrigin::Signed(coldkey).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail due to insufficient stake - assert_err!( - result_no_stake, - TransactionValidityError::Invalid(InvalidTransaction::Custom( - CustomTransactionError::StakeAmountTooLow.into() - )) + assert_eq!( + result_no_stake.unwrap_err(), + CustomTransactionError::StakeAmountTooLow.into() ); }); } diff --git a/pallets/subtensor/src/tests/swap_coldkey.rs b/pallets/subtensor/src/tests/swap_coldkey.rs index 385830904c..efea978eb9 100644 --- a/pallets/subtensor/src/tests/swap_coldkey.rs +++ b/pallets/subtensor/src/tests/swap_coldkey.rs @@ -13,7 +13,7 @@ use frame_support::traits::OnInitialize; use frame_support::traits::schedule::DispatchTime; use frame_support::traits::schedule::v3::Named as ScheduleNamed; use sp_core::{Get, H256, U256}; -use sp_runtime::DispatchError; +use sp_runtime::{DispatchError, traits::TxBaseImplication}; use substrate_fixed::types::U96F32; // // SKIP_WASM_BUILD=1 RUST_LOG=debug cargo test --test swap_coldkey -- test_swap_total_hotkey_coldkey_stakes_this_interval --exact --nocapture @@ -1799,7 +1799,7 @@ fn test_schedule_swap_coldkey_execution() { run_to_block(execution_block); // Run on_initialize for the execution block - SubtensorModule::on_initialize(execution_block); + >::on_initialize(execution_block); // Also run Scheduler's on_initialize as OnInitialize>::on_initialize( @@ -2168,7 +2168,7 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { // Setup the extension let info: crate::DispatchInfo = crate::DispatchInfoOf::<::RuntimeCall>::default(); - let extension = crate::SubtensorSignedExtension::::new(); + let extension = crate::SubtensorTransactionExtension::::new(); // Try each call @@ -2178,15 +2178,21 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { netuid, amount_staked: 100_000_000_000, }); - let result: Result = - extension.validate(&who, &call.clone(), &info, 10); + let result = + extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail - assert_err!( + assert_eq!( // Should get an invalid transaction error - result, - crate::TransactionValidityError::Invalid(crate::InvalidTransaction::Custom( - CustomTransactionError::ColdkeyInSwapSchedule.into() - )) + result.unwrap_err(), + CustomTransactionError::ColdkeyInSwapSchedule.into() ); // Add stake limit @@ -2197,14 +2203,20 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { limit_price: 100_000_000_000, allow_partial: false, }); - let result = extension.validate(&who, &call.clone(), &info, 10); + let result = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail - assert_err!( + assert_eq!( // Should get an invalid transaction error - result, - crate::TransactionValidityError::Invalid(crate::InvalidTransaction::Custom( - CustomTransactionError::ColdkeyInSwapSchedule.into() - )) + result.unwrap_err(), + CustomTransactionError::ColdkeyInSwapSchedule.into() ); // Swap stake @@ -2214,14 +2226,20 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { destination_netuid: netuid, alpha_amount: 100_000_000_000, }); - let result = extension.validate(&who, &call.clone(), &info, 10); + let result = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail - assert_err!( + assert_eq!( // Should get an invalid transaction error - result, - crate::TransactionValidityError::Invalid(crate::InvalidTransaction::Custom( - CustomTransactionError::ColdkeyInSwapSchedule.into() - )) + result.unwrap_err(), + CustomTransactionError::ColdkeyInSwapSchedule.into() ); // Swap stake limit @@ -2233,14 +2251,20 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { limit_price: 100_000_000_000, allow_partial: false, }); - let result = extension.validate(&who, &call.clone(), &info, 10); + let result = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail - assert_err!( + assert_eq!( // Should get an invalid transaction error - result, - crate::TransactionValidityError::Invalid(crate::InvalidTransaction::Custom( - CustomTransactionError::ColdkeyInSwapSchedule.into() - )) + result.unwrap_err(), + CustomTransactionError::ColdkeyInSwapSchedule.into() ); // Move stake @@ -2251,14 +2275,20 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { destination_netuid: netuid, alpha_amount: 100_000_000_000, }); - let result = extension.validate(&who, &call.clone(), &info, 10); + let result = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail - assert_err!( + assert_eq!( // Should get an invalid transaction error - result, - crate::TransactionValidityError::Invalid(crate::InvalidTransaction::Custom( - CustomTransactionError::ColdkeyInSwapSchedule.into() - )) + result.unwrap_err(), + CustomTransactionError::ColdkeyInSwapSchedule.into() ); // Transfer stake @@ -2269,14 +2299,20 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { destination_netuid: netuid, alpha_amount: 100_000_000_000, }); - let result = extension.validate(&who, &call.clone(), &info, 10); + let result = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail - assert_err!( + assert_eq!( // Should get an invalid transaction error - result, - crate::TransactionValidityError::Invalid(crate::InvalidTransaction::Custom( - CustomTransactionError::ColdkeyInSwapSchedule.into() - )) + result.unwrap_err(), + CustomTransactionError::ColdkeyInSwapSchedule.into() ); // Transfer all @@ -2284,14 +2320,20 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { dest: new_coldkey, keep_alive: false, }); - let result = extension.validate(&who, &call.clone(), &info, 10); + let result = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail - assert_err!( + assert_eq!( // Should get an invalid transaction error - result, - crate::TransactionValidityError::Invalid(crate::InvalidTransaction::Custom( - CustomTransactionError::ColdkeyInSwapSchedule.into() - )) + result.unwrap_err(), + CustomTransactionError::ColdkeyInSwapSchedule.into() ); // Transfer keep alive @@ -2299,14 +2341,20 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { dest: new_coldkey, value: 100_000_000_000, }); - let result = extension.validate(&who, &call.clone(), &info, 10); + let result = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail - assert_err!( + assert_eq!( // Should get an invalid transaction error - result, - crate::TransactionValidityError::Invalid(crate::InvalidTransaction::Custom( - CustomTransactionError::ColdkeyInSwapSchedule.into() - )) + result.unwrap_err(), + CustomTransactionError::ColdkeyInSwapSchedule.into() ); // Transfer allow death @@ -2314,26 +2362,38 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { dest: new_coldkey, value: 100_000_000_000, }); - let result = extension.validate(&who, &call.clone(), &info, 10); + let result = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail - assert_err!( + assert_eq!( // Should get an invalid transaction error - result, - crate::TransactionValidityError::Invalid(crate::InvalidTransaction::Custom( - CustomTransactionError::ColdkeyInSwapSchedule.into() - )) + result.unwrap_err(), + CustomTransactionError::ColdkeyInSwapSchedule.into() ); // Burned register let call = RuntimeCall::SubtensorModule(SubtensorCall::burned_register { netuid, hotkey }); - let result = extension.validate(&who, &call.clone(), &info, 10); + let result = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail - assert_err!( + assert_eq!( // Should get an invalid transaction error - result, - crate::TransactionValidityError::Invalid(crate::InvalidTransaction::Custom( - CustomTransactionError::ColdkeyInSwapSchedule.into() - )) + result.unwrap_err(), + CustomTransactionError::ColdkeyInSwapSchedule.into() ); // Remove stake @@ -2342,7 +2402,15 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { netuid, amount_unstaked: 1_000_000, }); - let result = extension.validate(&who, &call.clone(), &info, 10); + let result = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should pass, not in list. assert_ok!(result); @@ -2354,7 +2422,15 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { limit_price: 123456789, // should be low enough allow_partial: true, }); - let result = extension.validate(&who, &call.clone(), &info, 10); + let result = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should pass, not in list. assert_ok!(result); }); @@ -2410,22 +2486,28 @@ fn test_coldkey_in_swap_schedule_prevents_critical_calls() { // Setup the extension let info: crate::DispatchInfo = crate::DispatchInfoOf::<::RuntimeCall>::default(); - let extension = crate::SubtensorSignedExtension::::new(); + let extension = crate::SubtensorTransactionExtension::::new(); // Try each call // Dissolve network let call = RuntimeCall::SubtensorModule(SubtensorCall::dissolve_network { netuid, coldkey }); - let result: Result = - extension.validate(&who, &call.clone(), &info, 10); + let result = + extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail - assert_err!( + assert_eq!( // Should get an invalid transaction error - result, - crate::TransactionValidityError::Invalid(crate::InvalidTransaction::Custom( - CustomTransactionError::ColdkeyInSwapSchedule.into() - )) + result.unwrap_err(), + CustomTransactionError::ColdkeyInSwapSchedule.into() ); }); } diff --git a/pallets/subtensor/src/tests/weights.rs b/pallets/subtensor/src/tests/weights.rs index 3d240750cf..22f89ccce7 100644 --- a/pallets/subtensor/src/tests/weights.rs +++ b/pallets/subtensor/src/tests/weights.rs @@ -8,13 +8,14 @@ use frame_support::{ assert_err, assert_ok, dispatch::{DispatchClass, DispatchResult, GetDispatchInfo, Pays}, }; +use frame_system::RawOrigin; use rand_chacha::{ChaCha20Rng, rand_core::SeedableRng}; use scale_info::prelude::collections::HashMap; use sha2::Digest; use sp_core::{Get, H256, U256}; use sp_runtime::{ BoundedVec, DispatchError, - traits::{BlakeTwo256, ConstU32, Hash, SignedExtension}, + traits::{BlakeTwo256, ConstU32, Hash, TxBaseImplication}, }; use sp_std::collections::vec_deque::VecDeque; use substrate_fixed::types::I32F32; @@ -98,16 +99,22 @@ fn test_set_rootweights_validate() { let info: crate::DispatchInfo = crate::DispatchInfoOf::<::RuntimeCall>::default(); - let extension = crate::SubtensorSignedExtension::::new(); + let extension = crate::SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function - let result_no_stake = extension.validate(&who, &call.clone(), &info, 10); + let result_no_stake = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail - assert_err!( + assert_eq!( // Should get an invalid transaction error - result_no_stake, - crate::TransactionValidityError::Invalid(crate::InvalidTransaction::Custom( - CustomTransactionError::StakeAmountTooLow.into() - )) + result_no_stake.unwrap_err(), + CustomTransactionError::StakeAmountTooLow.into() ); // Increase the stake to be equal to the minimum @@ -125,7 +132,15 @@ fn test_set_rootweights_validate() { ); // Submit to the signed extension validate function - let result_min_stake = extension.validate(&who, &call.clone(), &info, 10); + let result_min_stake = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Now the call should pass assert_ok!(result_min_stake); @@ -140,7 +155,15 @@ fn test_set_rootweights_validate() { // Verify stake is more than minimum assert!(SubtensorModule::get_total_stake_for_hotkey(&hotkey) > min_stake); - let result_more_stake = extension.validate(&who, &call.clone(), &info, 10); + let result_more_stake = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // The call should still pass assert_ok!(result_more_stake); }); @@ -215,14 +238,22 @@ fn test_commit_weights_validate() { let info: crate::DispatchInfo = crate::DispatchInfoOf::<::RuntimeCall>::default(); - let extension = crate::SubtensorSignedExtension::::new(); + let extension = crate::SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function - let result_no_stake = extension.validate(&who, &call.clone(), &info, 10); + let result_no_stake = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail - assert_err!( + assert_eq!( // Should get an invalid transaction error - result_no_stake, - crate::TransactionValidityError::Invalid(crate::InvalidTransaction::Custom(1)) + result_no_stake.unwrap_err(), + CustomTransactionError::StakeAmountTooLow.into() ); // Increase the stake to be equal to the minimum @@ -240,7 +271,15 @@ fn test_commit_weights_validate() { ); // Submit to the signed extension validate function - let result_min_stake = extension.validate(&who, &call.clone(), &info, 10); + let result_min_stake = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Now the call should pass assert_ok!(result_min_stake); @@ -255,7 +294,15 @@ fn test_commit_weights_validate() { // Verify stake is more than minimum assert!(SubtensorModule::get_total_stake_for_hotkey(&hotkey) > min_stake); - let result_more_stake = extension.validate(&who, &call.clone(), &info, 10); + let result_more_stake = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // The call should still pass assert_ok!(result_more_stake); }); @@ -324,15 +371,21 @@ fn test_set_weights_validate() { let info: crate::DispatchInfo = crate::DispatchInfoOf::<::RuntimeCall>::default(); - let extension = crate::SubtensorSignedExtension::::new(); + let extension = crate::SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function - let result_no_stake = extension.validate(&who, &call.clone(), &info, 10); + let result_no_stake = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail due to insufficient stake - assert_err!( - result_no_stake, - crate::TransactionValidityError::Invalid(crate::InvalidTransaction::Custom( - CustomTransactionError::StakeAmountTooLow.into() - )) + assert_eq!( + result_no_stake.unwrap_err(), + CustomTransactionError::StakeAmountTooLow.into() ); // Increase the stake to be equal to the minimum @@ -350,7 +403,15 @@ fn test_set_weights_validate() { ); // Submit to the signed extension validate function - let result_min_stake = extension.validate(&who, &call.clone(), &info, 10); + let result_min_stake = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Now the call should pass assert_ok!(result_min_stake); }); @@ -399,16 +460,22 @@ fn test_reveal_weights_validate() { let info: crate::DispatchInfo = crate::DispatchInfoOf::<::RuntimeCall>::default(); - let extension = crate::SubtensorSignedExtension::::new(); + let extension = crate::SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function - let result_no_stake = extension.validate(&who, &call.clone(), &info, 10); + let result_no_stake = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail - assert_err!( + assert_eq!( // Should get an invalid transaction error - result_no_stake, - crate::TransactionValidityError::Invalid(crate::InvalidTransaction::Custom( - CustomTransactionError::StakeAmountTooLow.into() - )) + result_no_stake.unwrap_err(), + CustomTransactionError::StakeAmountTooLow.into() ); // Increase the stake to be equal to the minimum @@ -426,7 +493,15 @@ fn test_reveal_weights_validate() { ); // Submit to the signed extension validate function - let result_min_stake = extension.validate(&who, &call.clone(), &info, 10); + let result_min_stake = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Now the call should pass assert_ok!(result_min_stake); @@ -441,7 +516,15 @@ fn test_reveal_weights_validate() { // Verify stake is more than minimum assert!(SubtensorModule::get_total_stake_for_hotkey(&hotkey) > min_stake); - let result_more_stake = extension.validate(&who, &call.clone(), &info, 10); + let result_more_stake = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // The call should still pass assert_ok!(result_more_stake); }); From 34741c0e8744a0515f9b633d6359f34d7e130d10 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 16:16:15 +0200 Subject: [PATCH 22/49] remove unused CommitmentsSignedExtension --- node/src/benchmarking.rs | 1 - pallets/commitments/src/lib.rs | 113 +-------------------------------- runtime/src/lib.rs | 2 - 3 files changed, 1 insertion(+), 115 deletions(-) diff --git a/node/src/benchmarking.rs b/node/src/benchmarking.rs index 5476e22266..16d46ff136 100644 --- a/node/src/benchmarking.rs +++ b/node/src/benchmarking.rs @@ -136,7 +136,6 @@ pub fn create_benchmark_extrinsic( frame_system::CheckWeight::::new(), pallet_transaction_payment::ChargeTransactionPayment::::from(0), pallet_subtensor::SubtensorTransactionExtension::::new().into(), - pallet_commitments::CommitmentsSignedExtension::::new().into(), frame_metadata_hash_extension::CheckMetadataHash::::new(true), ); diff --git a/pallets/commitments/src/lib.rs b/pallets/commitments/src/lib.rs index 8331e76991..51f2d7fd5b 100644 --- a/pallets/commitments/src/lib.rs +++ b/pallets/commitments/src/lib.rs @@ -11,7 +11,6 @@ pub mod types; pub mod weights; pub use pallet::*; -use subtensor_macros::freeze_struct; pub use types::*; pub use weights::WeightInfo; @@ -393,117 +392,7 @@ pub enum CallType { Other, } -use { - frame_support::{ - dispatch::{DispatchInfo, DispatchResult, PostDispatchInfo}, - pallet_prelude::{Decode, Encode, PhantomData, TypeInfo}, - traits::IsSubType, - }, - sp_runtime::{ - traits::{DispatchInfoOf, Dispatchable, PostDispatchInfoOf, SignedExtension}, - transaction_validity::{TransactionValidity, TransactionValidityError, ValidTransaction}, - }, -}; - -#[freeze_struct("6a00398e14a8a984")] -#[derive(Encode, Decode, Clone, Eq, PartialEq, TypeInfo)] -pub struct CommitmentsSignedExtension(pub PhantomData); - -impl Default for CommitmentsSignedExtension -where - ::RuntimeCall: - Dispatchable, - ::RuntimeCall: IsSubType>, -{ - fn default() -> Self { - Self::new() - } -} - -impl CommitmentsSignedExtension -where - ::RuntimeCall: - Dispatchable, - ::RuntimeCall: IsSubType>, -{ - pub fn new() -> Self { - Self(Default::default()) - } - - pub fn get_priority_vanilla() -> u64 { - // Return high priority so that every extrinsic except set_weights function will - // have a higher priority than the set_weights call - u64::MAX - } -} - -impl sp_std::fmt::Debug for CommitmentsSignedExtension { - fn fmt(&self, f: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { - write!(f, "SignedExtension") - } -} - -impl SignedExtension for CommitmentsSignedExtension -where - ::RuntimeCall: - Dispatchable, - ::RuntimeCall: IsSubType>, -{ - const IDENTIFIER: &'static str = "CommitmentsSignedExtension"; - - type AccountId = T::AccountId; - type Call = ::RuntimeCall; - type AdditionalSigned = (); - type Pre = (CallType, u64, Self::AccountId); - - fn additional_signed(&self) -> Result { - Ok(()) - } - - fn validate( - &self, - _: &Self::AccountId, - call: &Self::Call, - _info: &DispatchInfoOf, - _len: usize, - ) -> TransactionValidity { - call.is_sub_type(); - Ok(ValidTransaction { - priority: Self::get_priority_vanilla(), - ..Default::default() - }) - } - - // NOTE: Add later when we put in a pre and post dispatch step. - fn pre_dispatch( - self, - who: &Self::AccountId, - call: &Self::Call, - _info: &DispatchInfoOf, - _len: usize, - ) -> Result { - match call.is_sub_type() { - Some(Call::set_commitment { .. }) => { - let transaction_fee = 0; - Ok((CallType::SetCommitment, transaction_fee, who.clone())) - } - _ => { - let transaction_fee = 0; - Ok((CallType::Other, transaction_fee, who.clone())) - } - } - } - - fn post_dispatch( - _maybe_pre: Option, - _info: &DispatchInfoOf, - _post_info: &PostDispatchInfoOf, - _len: usize, - _result: &DispatchResult, - ) -> Result<(), TransactionValidityError> { - Ok(()) - } -} +use frame_support::{dispatch::DispatchResult, pallet_prelude::TypeInfo}; impl Pallet { pub fn reveal_timelocked_commitments() -> DispatchResult { diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 668e7344a2..1eb782bc35 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -151,7 +151,6 @@ impl frame_system::offchain::CreateSignedTransaction frame_system::CheckWeight::::new(), pallet_transaction_payment::ChargeTransactionPayment::::from(0), pallet_subtensor::SubtensorTransactionExtension::::new(), - pallet_commitments::CommitmentsSignedExtension::::new().into(), frame_metadata_hash_extension::CheckMetadataHash::::new(true), ); @@ -1583,7 +1582,6 @@ pub type SignedExtra = ( frame_system::CheckWeight, pallet_transaction_payment::ChargeTransactionPayment, pallet_subtensor::SubtensorTransactionExtension, - AsTransactionExtension>, frame_metadata_hash_extension::CheckMetadataHash, ); From 192e871bc59835c854ef4a43519296d35cbd26eb Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 17:16:45 +0200 Subject: [PATCH 23/49] update check_nonce tx extension --- node/src/benchmarking.rs | 6 +- runtime/src/check_nonce.rs | 204 ++++++++++++++++++++++--------------- runtime/src/lib.rs | 15 ++- 3 files changed, 130 insertions(+), 95 deletions(-) diff --git a/node/src/benchmarking.rs b/node/src/benchmarking.rs index 16d46ff136..354acadae5 100644 --- a/node/src/benchmarking.rs +++ b/node/src/benchmarking.rs @@ -123,7 +123,7 @@ pub fn create_benchmark_extrinsic( .checked_next_power_of_two() .map(|c| c / 2) .unwrap_or(2) as u64; - let extra: runtime::SignedExtra = ( + let extra: runtime::TransactionExtensions = ( frame_system::CheckNonZeroSender::::new(), frame_system::CheckSpecVersion::::new(), frame_system::CheckTxVersion::::new(), @@ -132,10 +132,10 @@ pub fn create_benchmark_extrinsic( period, best_block.saturated_into(), )), - check_nonce::CheckNonce::::from(nonce).into(), + check_nonce::CheckNonce::::from(nonce), frame_system::CheckWeight::::new(), pallet_transaction_payment::ChargeTransactionPayment::::from(0), - pallet_subtensor::SubtensorTransactionExtension::::new().into(), + pallet_subtensor::SubtensorTransactionExtension::::new(), frame_metadata_hash_extension::CheckMetadataHash::::new(true), ); diff --git a/runtime/src/check_nonce.rs b/runtime/src/check_nonce.rs index 94c06c6480..37d0e97cb7 100644 --- a/runtime/src/check_nonce.rs +++ b/runtime/src/check_nonce.rs @@ -1,12 +1,18 @@ +// Customized from the original implementation in the Polkadot SDK. +// https://github.com/paritytech/polkadot-sdk/blob/b600af050d6b6c8da59ae2a2a793ee2d8827ab1e/substrate/frame/system/src/extensions/check_nonce.rs + use codec::{Decode, Encode}; -use frame_support::dispatch::{DispatchInfo, Pays}; +use frame_support::{dispatch::{DispatchInfo, Pays}, RuntimeDebugNoBound}; use frame_system::Config; use scale_info::TypeInfo; use sp_runtime::{ + DispatchResult, + Weight, Saturating, - traits::{DispatchInfoOf, Dispatchable, One, SignedExtension, Zero}, + traits::{DispatchInfoOf, Dispatchable, One, Zero, TransactionExtension, AsSystemOriginSigner, ValidateResult, PostDispatchInfoOf}, transaction_validity::{ - InvalidTransaction, TransactionLongevity, TransactionValidity, TransactionValidityError, + TransactionSource, + InvalidTransaction, TransactionLongevity,TransactionValidityError, ValidTransaction, }, }; @@ -18,9 +24,14 @@ use subtensor_macros::freeze_struct; /// # Transaction Validity /// /// This extension affects `requires` and `provides` tags of validity, but DOES NOT -/// set the `priority` field. Make sure that AT LEAST one of the signed extension sets +/// set the `priority` field. Make sure that AT LEAST one of the transaction extension sets /// some kind of priority upon validating transactions. -#[freeze_struct("610b76f62cdb521e")] +/// +/// The preparation step assumes that the nonce information has not changed since the validation +/// step. This means that other extensions ahead of `CheckNonce` in the pipeline must not alter the +/// nonce during their own preparation step, or else the transaction may be rejected during dispatch +/// or lead to an inconsistent account state.. +#[freeze_struct("feac7c9db94d39ac")] #[derive(Encode, Decode, Clone, Eq, PartialEq, TypeInfo)] #[scale_info(skip_type_params(T))] pub struct CheckNonce(#[codec(compact)] pub T::Nonce); @@ -44,87 +55,112 @@ impl sp_std::fmt::Debug for CheckNonce { } } -impl SignedExtension for CheckNonce +/// Operation to perform from `validate` to `prepare` in [`CheckNonce`] transaction extension. +#[derive(RuntimeDebugNoBound)] +pub enum Val { + /// Account and its nonce to check for. + CheckNonce((T::AccountId, T::Nonce)), + /// Weight to refund. + Refund(Weight), +} + +/// Operation to perform from `prepare` to `post_dispatch_details` in [`CheckNonce`] transaction +/// extension. +#[derive(RuntimeDebugNoBound)] +pub enum Pre { + /// The transaction extension weight should not be refunded. + NonceChecked, + /// The transaction extension weight should be refunded. + Refund(Weight), +} + +impl TransactionExtension for CheckNonce where - T::RuntimeCall: Dispatchable, + T::RuntimeCall: Dispatchable, + ::RuntimeOrigin: AsSystemOriginSigner + Clone, { - type AccountId = T::AccountId; - type Call = T::RuntimeCall; - type AdditionalSigned = (); - type Pre = (); - const IDENTIFIER: &'static str = "CheckNonce"; + const IDENTIFIER: &'static str = "CheckNonce"; + type Implicit = (); + type Val = Val; + type Pre = Pre; - fn additional_signed(&self) -> sp_std::result::Result<(), TransactionValidityError> { - Ok(()) - } + fn weight(&self, _: &T::RuntimeCall) -> Weight { + // TODO: benchmark transaction extension + Weight::zero() + } - fn pre_dispatch( - self, - who: &Self::AccountId, - _call: &Self::Call, - info: &DispatchInfoOf, - _len: usize, - ) -> Result<(), TransactionValidityError> { - let mut account = frame_system::Account::::get(who); - match info.pays_fee { - Pays::Yes => { - if account.providers.is_zero() && account.sufficients.is_zero() { - // Nonce storage not paid for - return Err(InvalidTransaction::Payment.into()); - } - } - // not check providers and sufficients for Pays::No extrinsic - Pays::No => {} - } - - if self.0 != account.nonce { - return Err(if self.0 < account.nonce { - InvalidTransaction::Stale - } else { - InvalidTransaction::Future - } - .into()); - } - account.nonce.saturating_inc(); - frame_system::Account::::insert(who, account); - Ok(()) - } + fn validate( + &self, + origin: ::RuntimeOrigin, + call: &T::RuntimeCall, + info: &DispatchInfoOf, + _len: usize, + _self_implicit: Self::Implicit, + _inherited_implication: &impl Encode, + _source: TransactionSource, + ) -> ValidateResult { + let Some(who) = origin.as_system_origin_signer() else { + return Ok((Default::default(), Val::Refund(self.weight(call)), origin)) + }; + let account = frame_system::Account::::get(who); + if info.pays_fee == Pays::Yes && account.providers.is_zero() && account.sufficients.is_zero() { + // Nonce storage not paid for + return Err(InvalidTransaction::Payment.into()) + } + if self.0 < account.nonce { + return Err(InvalidTransaction::Stale.into()) + } - fn validate( - &self, - who: &Self::AccountId, - _call: &Self::Call, - info: &DispatchInfoOf, - _len: usize, - ) -> TransactionValidity { - let account = frame_system::Account::::get(who); - match info.pays_fee { - Pays::Yes => { - if account.providers.is_zero() && account.sufficients.is_zero() { - // Nonce storage not paid for - return Err(InvalidTransaction::Payment.into()); - } - } - // not check providers and sufficients for Pays::No extrinsic - Pays::No => {} - } - if self.0 < account.nonce { - return InvalidTransaction::Stale.into(); - } - - let provides = vec![Encode::encode(&(who, self.0))]; - let requires = if account.nonce < self.0 { - vec![Encode::encode(&(who, self.0.saturating_sub(One::one())))] - } else { - vec![] - }; - - Ok(ValidTransaction { - priority: 0, - requires, - provides, - longevity: TransactionLongevity::MAX, - propagate: true, - }) - } -} + let provides = vec![Encode::encode(&(&who, self.0))]; + let requires = if account.nonce < self.0 { + vec![Encode::encode(&(&who, self.0.saturating_sub(One::one())))] + } else { + vec![] + }; + + let validity = ValidTransaction { + priority: 0, + requires, + provides, + longevity: TransactionLongevity::max_value(), + propagate: true, + }; + + Ok((validity, Val::CheckNonce((who.clone(), account.nonce)), origin)) + } + + fn prepare( + self, + val: Self::Val, + _origin: &T::RuntimeOrigin, + _call: &T::RuntimeCall, + _info: &DispatchInfoOf, + _len: usize, + ) -> Result { + let (who, mut nonce) = match val { + Val::CheckNonce((who, nonce)) => (who, nonce), + Val::Refund(weight) => return Ok(Pre::Refund(weight)), + }; + + // `self.0 < nonce` already checked in `validate`. + if self.0 > nonce { + return Err(InvalidTransaction::Future.into()) + } + nonce += T::Nonce::one(); + frame_system::Account::::mutate(who, |account| account.nonce = nonce); + Ok(Pre::NonceChecked) + } + + fn post_dispatch_details( + pre: Self::Pre, + _info: &DispatchInfo, + _post_info: &PostDispatchInfoOf, + _len: usize, + _result: &DispatchResult, + ) -> Result { + match pre { + Pre::NonceChecked => Ok(Weight::zero()), + Pre::Refund(weight) => Ok(weight), + } + } +} \ No newline at end of file diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 1eb782bc35..e2e689bb28 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -52,7 +52,6 @@ use sp_runtime::generic::Era; use sp_runtime::{ AccountId32, ApplyExtrinsicResult, ConsensusEngineId, generic, impl_opaque_keys, - traits::transaction_extension::AsTransactionExtension, traits::{ AccountIdLookup, BlakeTwo256, Block as BlockT, DispatchInfoOf, Dispatchable, NumberFor, One, PostDispatchInfoOf, UniqueSaturatedInto, Verify, @@ -141,7 +140,7 @@ impl frame_system::offchain::CreateSignedTransaction use sp_runtime::traits::StaticLookup; let address = ::Lookup::unlookup(account.clone()); - let extra: SignedExtra = ( + let extra: TransactionExtensions = ( frame_system::CheckNonZeroSender::::new(), frame_system::CheckSpecVersion::::new(), frame_system::CheckTxVersion::::new(), @@ -1571,14 +1570,14 @@ pub type Address = sp_runtime::MultiAddress; pub type Header = generic::Header; // Block type as expected by this runtime. pub type Block = generic::Block; -// The SignedExtension to the basic transaction logic. -pub type SignedExtra = ( +// The extensions to the basic transaction logic. +pub type TransactionExtensions = ( frame_system::CheckNonZeroSender, frame_system::CheckSpecVersion, frame_system::CheckTxVersion, frame_system::CheckGenesis, frame_system::CheckEra, - AsTransactionExtension>, + check_nonce::CheckNonce, frame_system::CheckWeight, pallet_transaction_payment::ChargeTransactionPayment, pallet_subtensor::SubtensorTransactionExtension, @@ -1595,14 +1594,14 @@ type Migrations = ( // Unchecked extrinsic type as expected by this runtime. pub type UncheckedExtrinsic = - fp_self_contained::UncheckedExtrinsic; + fp_self_contained::UncheckedExtrinsic; /// Extrinsic type that has already been checked. pub type CheckedExtrinsic = - fp_self_contained::CheckedExtrinsic; + fp_self_contained::CheckedExtrinsic; // The payload being signed in transactions. -pub type SignedPayload = generic::SignedPayload; +pub type SignedPayload = generic::SignedPayload; // Executive: handles dispatch to the various modules. pub type Executive = frame_executive::Executive< Runtime, From fba3eaca0277a33ef808f4d419b2f9f21eacac82 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 17:21:54 +0200 Subject: [PATCH 24/49] commit Cargo.lock --- pallets/subtensor/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pallets/subtensor/src/lib.rs b/pallets/subtensor/src/lib.rs index 9214ca2396..3451f896f0 100644 --- a/pallets/subtensor/src/lib.rs +++ b/pallets/subtensor/src/lib.rs @@ -2246,7 +2246,7 @@ where } Some(Call::dissolve_network { .. }) => { if ColdkeySwapScheduled::::contains_key(who) { - return Err(CustomTransactionError::ColdkeyInSwapSchedule.into()); + Err(CustomTransactionError::ColdkeyInSwapSchedule.into()) } else { let validity = ValidTransaction { priority: Self::get_priority_vanilla(), @@ -2311,7 +2311,7 @@ where _len: usize, ) -> Result { // The transaction is not signed, given val is None, so we just skip this step. - if let None = val { + if val.is_none() { return Ok(None); } From 64e9571f0598badfc3479409d32770385cf47315 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 17:30:54 +0200 Subject: [PATCH 25/49] commit Cargo.lock --- node/src/benchmarking.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/node/src/benchmarking.rs b/node/src/benchmarking.rs index 354acadae5..4f68d439e4 100644 --- a/node/src/benchmarking.rs +++ b/node/src/benchmarking.rs @@ -153,7 +153,6 @@ pub fn create_benchmark_extrinsic( (), (), (), - None, ), ); let signature = raw_payload.using_encoded(|e| sender.sign(e)); From 9d880338abd0ab8c4f11b6a2b3490ee41afdd334 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 17:32:52 +0200 Subject: [PATCH 26/49] commit Cargo.lock --- node/src/benchmarking.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/src/benchmarking.rs b/node/src/benchmarking.rs index 4f68d439e4..1590422c08 100644 --- a/node/src/benchmarking.rs +++ b/node/src/benchmarking.rs @@ -152,7 +152,7 @@ pub fn create_benchmark_extrinsic( (), (), (), - (), + None, ), ); let signature = raw_payload.using_encoded(|e| sender.sign(e)); From c3c2baad8f1af56db82933785b6e002bd5188567 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 17:34:08 +0200 Subject: [PATCH 27/49] cargo fmt --- pallets/subtensor/src/lib.rs | 73 +++---- pallets/subtensor/src/tests/move_stake.rs | 25 +-- pallets/subtensor/src/tests/registration.rs | 71 ++++--- pallets/subtensor/src/tests/serving.rs | 14 +- pallets/subtensor/src/tests/staking.rs | 52 ++--- pallets/subtensor/src/tests/swap_coldkey.rs | 104 +++++----- pallets/subtensor/src/tests/weights.rs | 66 +++---- runtime/src/check_nonce.rs | 206 ++++++++++---------- runtime/src/lib.rs | 5 +- 9 files changed, 307 insertions(+), 309 deletions(-) diff --git a/pallets/subtensor/src/lib.rs b/pallets/subtensor/src/lib.rs index 3451f896f0..288630be18 100644 --- a/pallets/subtensor/src/lib.rs +++ b/pallets/subtensor/src/lib.rs @@ -2006,7 +2006,8 @@ where false, ), Self::get_priority_staking(who, hotkey, *amount_staked), - ).map(|validity| (validity, Some(who.clone()), origin.clone())) + ) + .map(|validity| (validity, Some(who.clone()), origin.clone())) } Some(Call::add_stake_limit { hotkey, @@ -2035,7 +2036,8 @@ where *allow_partial, ), Self::get_priority_staking(who, hotkey, *amount_staked), - ).map(|validity| (validity, Some(who.clone()), origin.clone())) + ) + .map(|validity| (validity, Some(who.clone()), origin.clone())) } Some(Call::remove_stake { hotkey, @@ -2053,7 +2055,8 @@ where false, ), Self::get_priority_staking(who, hotkey, *amount_unstaked), - ).map(|validity| (validity, Some(who.clone()), origin.clone())) + ) + .map(|validity| (validity, Some(who.clone()), origin.clone())) } Some(Call::remove_stake_limit { hotkey, @@ -2079,21 +2082,24 @@ where *allow_partial, ), Self::get_priority_staking(who, hotkey, *amount_unstaked), - ).map(|validity| (validity, Some(who.clone()), origin.clone())) + ) + .map(|validity| (validity, Some(who.clone()), origin.clone())) } Some(Call::unstake_all { hotkey }) => { // Fully validate the user input Self::result_to_validity( Pallet::::validate_unstake_all(who, hotkey, false), Self::get_priority_vanilla(), - ).map(|validity| (validity, Some(who.clone()), origin.clone())) + ) + .map(|validity| (validity, Some(who.clone()), origin.clone())) } Some(Call::unstake_all_alpha { hotkey }) => { // Fully validate the user input Self::result_to_validity( Pallet::::validate_unstake_all(who, hotkey, true), Self::get_priority_vanilla(), - ).map(|validity| (validity, Some(who.clone()), origin.clone())) + ) + .map(|validity| (validity, Some(who.clone()), origin.clone())) } Some(Call::move_stake { origin_hotkey, @@ -2121,7 +2127,8 @@ where false, ), Self::get_priority_staking(who, origin_hotkey, *alpha_amount), - ).map(|validity| (validity, Some(who.clone()), origin.clone())) + ) + .map(|validity| (validity, Some(who.clone()), origin.clone())) } Some(Call::transfer_stake { destination_coldkey, @@ -2149,7 +2156,8 @@ where true, ), Self::get_priority_staking(who, hotkey, *alpha_amount), - ).map(|validity| (validity, Some(who.clone()), origin.clone())) + ) + .map(|validity| (validity, Some(who.clone()), origin.clone())) } Some(Call::swap_stake { hotkey, @@ -2176,7 +2184,8 @@ where false, ), Self::get_priority_staking(who, hotkey, *alpha_amount), - ).map(|validity| (validity, Some(who.clone()), origin.clone())) + ) + .map(|validity| (validity, Some(who.clone()), origin.clone())) } Some(Call::swap_stake_limit { hotkey, @@ -2214,7 +2223,8 @@ where false, ), Self::get_priority_staking(who, hotkey, *alpha_amount), - ).map(|validity| (validity, Some(who.clone()), origin.clone())) + ) + .map(|validity| (validity, Some(who.clone()), origin.clone())) } Some(Call::register { netuid, .. } | Call::burned_register { netuid, .. }) => { if ColdkeySwapScheduled::::contains_key(who) { @@ -2279,7 +2289,8 @@ where *placeholder2, ), Self::get_priority_vanilla(), - ).map(|validity| (validity, Some(who.clone()), origin.clone())) + ) + .map(|validity| (validity, Some(who.clone()), origin.clone())) } _ => { if let Some( @@ -2316,36 +2327,16 @@ where } match call.is_sub_type() { - Some(Call::add_stake { .. }) => { - Ok(Some(CallType::AddStake)) - } - Some(Call::remove_stake { .. }) => { - Ok(Some(CallType::RemoveStake)) - } - Some(Call::set_weights { .. }) => { - Ok(Some(CallType::SetWeights)) - } - Some(Call::commit_weights { .. }) => { - Ok(Some(CallType::SetWeights)) - } - Some(Call::reveal_weights { .. }) => { - Ok(Some(CallType::SetWeights)) - } - Some(Call::register { .. }) => { - Ok(Some(CallType::Register)) - } - Some(Call::serve_axon { .. }) => { - Ok(Some(CallType::Serve)) - } - Some(Call::serve_axon_tls { .. }) => { - Ok(Some(CallType::Serve)) - } - Some(Call::register_network { .. }) => { - Ok(Some(CallType::RegisterNetwork)) - } - _ => { - Ok(Some(CallType::Other)) - } + Some(Call::add_stake { .. }) => Ok(Some(CallType::AddStake)), + Some(Call::remove_stake { .. }) => Ok(Some(CallType::RemoveStake)), + Some(Call::set_weights { .. }) => Ok(Some(CallType::SetWeights)), + Some(Call::commit_weights { .. }) => Ok(Some(CallType::SetWeights)), + Some(Call::reveal_weights { .. }) => Ok(Some(CallType::SetWeights)), + Some(Call::register { .. }) => Ok(Some(CallType::Register)), + Some(Call::serve_axon { .. }) => Ok(Some(CallType::Serve)), + Some(Call::serve_axon_tls { .. }) => Ok(Some(CallType::Serve)), + Some(Call::register_network { .. }) => Ok(Some(CallType::RegisterNetwork)), + _ => Ok(Some(CallType::Other)), } } diff --git a/pallets/subtensor/src/tests/move_stake.rs b/pallets/subtensor/src/tests/move_stake.rs index ebfbc6b405..64713e5c2f 100644 --- a/pallets/subtensor/src/tests/move_stake.rs +++ b/pallets/subtensor/src/tests/move_stake.rs @@ -3,8 +3,8 @@ use crate::*; use approx::assert_abs_diff_eq; use frame_support::{assert_err, assert_noop, assert_ok}; use frame_system::RawOrigin; -use sp_runtime::traits::TxBaseImplication; use sp_core::{Get, U256}; +use sp_runtime::traits::TxBaseImplication; use substrate_fixed::types::{U64F64, U96F32}; // 1. test_do_move_success @@ -1567,8 +1567,9 @@ fn test_swap_stake_limit_validate() { let extension = crate::SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function let result_no_stake = extension.validate( - RawOrigin::Signed(coldkey).into(), &call.clone(), - &info, + RawOrigin::Signed(coldkey).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -1623,9 +1624,9 @@ fn test_stake_transfers_disabled_validate() { // Submit to the signed extension validate function let result1 = extension.validate( - RawOrigin::Signed(coldkey).into(), - &call.clone(), - &info, + RawOrigin::Signed(coldkey).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -1642,9 +1643,9 @@ fn test_stake_transfers_disabled_validate() { // Submit to the signed extension validate function let result2 = extension.validate( - RawOrigin::Signed(coldkey).into(), - &call.clone(), - &info, + RawOrigin::Signed(coldkey).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -1661,9 +1662,9 @@ fn test_stake_transfers_disabled_validate() { // Submit to the signed extension validate function let result3 = extension.validate( - RawOrigin::Signed(coldkey).into(), - &call.clone(), - &info, + RawOrigin::Signed(coldkey).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), diff --git a/pallets/subtensor/src/tests/registration.rs b/pallets/subtensor/src/tests/registration.rs index 34842005df..0d534cda95 100644 --- a/pallets/subtensor/src/tests/registration.rs +++ b/pallets/subtensor/src/tests/registration.rs @@ -10,7 +10,7 @@ use frame_support::sp_runtime::{DispatchError, transaction_validity::Transaction use frame_support::{assert_err, assert_noop, assert_ok}; use frame_system::{Config, RawOrigin}; use sp_core::U256; -use sp_runtime::traits::{DispatchInfoOf, TxBaseImplication, TransactionExtension}; +use sp_runtime::traits::{DispatchInfoOf, TransactionExtension, TxBaseImplication}; /******************************************** subscribing::subscribe() tests @@ -222,9 +222,9 @@ fn test_registration_under_limit() { let extension = SubtensorTransactionExtension::::new(); //does not actually call register let result = extension.validate( - RawOrigin::Signed(who).into(), - &call.into(), - &info, + RawOrigin::Signed(who).into(), + &call.into(), + &info, 10, (), &TxBaseImplication(()), @@ -282,9 +282,9 @@ fn test_registration_rate_limit_exceeded() { DispatchInfoOf::<::RuntimeCall>::default(); let extension = SubtensorTransactionExtension::::new(); let result = extension.validate( - RawOrigin::Signed(who).into(), - &call.into(), - &info, + RawOrigin::Signed(who).into(), + &call.into(), + &info, 10, (), &TxBaseImplication(()), @@ -334,16 +334,15 @@ fn test_burned_registration_under_limit() { DispatchInfoOf::<::RuntimeCall>::default(); let extension = SubtensorTransactionExtension::::new(); //does not actually call register - let burned_register_result = - extension.validate( - RawOrigin::Signed(who).into(), - &call_burned_register.into(), - &info, - 10, - (), - &TxBaseImplication(()), - TransactionSource::External, - ); + let burned_register_result = extension.validate( + RawOrigin::Signed(who).into(), + &call_burned_register.into(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); assert_ok!(burned_register_result); //actually call register @@ -381,16 +380,15 @@ fn test_burned_registration_rate_limit_exceeded() { let info: DispatchInfo = DispatchInfoOf::<::RuntimeCall>::default(); let extension = SubtensorTransactionExtension::::new(); - let burned_register_result = - extension.validate( - RawOrigin::Signed(who).into(), - &call_burned_register.into(), - &info, - 10, - (), - &TxBaseImplication(()), - TransactionSource::External, - ); + let burned_register_result = extension.validate( + RawOrigin::Signed(who).into(), + &call_burned_register.into(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Expectation: The transaction should be rejected assert_eq!( @@ -435,16 +433,15 @@ fn test_burned_registration_rate_allows_burn_adjustment() { DispatchInfoOf::<::RuntimeCall>::default(); let extension = SubtensorTransactionExtension::::new(); //does not actually call register - let burned_register_result = - extension.validate( - RawOrigin::Signed(who).into(), - &call_burned_register.into(), - &info, - 10, - (), - &TxBaseImplication(()), - TransactionSource::External, - ); + let burned_register_result = extension.validate( + RawOrigin::Signed(who).into(), + &call_burned_register.into(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); assert_ok!(burned_register_result); //actually call register diff --git a/pallets/subtensor/src/tests/serving.rs b/pallets/subtensor/src/tests/serving.rs index 260ee0c6c9..b0ee838d28 100644 --- a/pallets/subtensor/src/tests/serving.rs +++ b/pallets/subtensor/src/tests/serving.rs @@ -2,8 +2,8 @@ use super::mock::*; use crate::Error; use crate::*; -use frame_support::pallet_prelude::Weight; use frame_support::assert_noop; +use frame_support::pallet_prelude::Weight; use frame_support::{ assert_ok, dispatch::{DispatchClass, DispatchInfo, GetDispatchInfo, Pays}, @@ -1340,9 +1340,9 @@ fn test_serve_axon_validate() { let extension = crate::SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function let result_bad = extension.validate( - RawOrigin::Signed(hotkey).into(), - &call.clone(), - &info, + RawOrigin::Signed(hotkey).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -1362,9 +1362,9 @@ fn test_serve_axon_validate() { // Submit to the signed extension validate function let result_ok = extension.validate( - RawOrigin::Signed(hotkey).into(), - &call.clone(), - &info, + RawOrigin::Signed(hotkey).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), diff --git a/pallets/subtensor/src/tests/staking.rs b/pallets/subtensor/src/tests/staking.rs index a09bb47754..1911d6ef5f 100644 --- a/pallets/subtensor/src/tests/staking.rs +++ b/pallets/subtensor/src/tests/staking.rs @@ -10,7 +10,9 @@ use super::mock::*; use crate::*; use approx::assert_abs_diff_eq; use frame_support::dispatch::{DispatchClass, DispatchInfo, GetDispatchInfo, Pays}; -use frame_support::sp_runtime::{DispatchError, transaction_validity::TransactionSource, traits::TxBaseImplication}; +use frame_support::sp_runtime::{ + DispatchError, traits::TxBaseImplication, transaction_validity::TransactionSource, +}; use sp_core::{Get, H256, U256}; use substrate_fixed::types::{I96F32, I110F18, U64F64, U96F32}; /*********************************************************** @@ -2535,9 +2537,9 @@ fn test_stake_below_min_validate() { let extension = SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function let result_no_stake = extension.validate( - RawOrigin::Signed(coldkey).into(), - &call.clone(), - &info, + RawOrigin::Signed(coldkey).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -2560,9 +2562,9 @@ fn test_stake_below_min_validate() { // Submit to the signed extension validate function let result_low_balance = extension.validate( - RawOrigin::Signed(coldkey).into(), - &call_2.clone(), - &info, + RawOrigin::Signed(coldkey).into(), + &call_2.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -2580,9 +2582,9 @@ fn test_stake_below_min_validate() { // Submit to the signed extension validate function let result_min_stake = extension.validate( - RawOrigin::Signed(coldkey).into(), - &call_2.clone(), - &info, + RawOrigin::Signed(coldkey).into(), + &call_2.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -2638,9 +2640,9 @@ fn test_add_stake_limit_validate() { let extension = SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function let result_no_stake = extension.validate( - RawOrigin::Signed(coldkey).into(), - &call.clone(), - &info, + RawOrigin::Signed(coldkey).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -2704,9 +2706,9 @@ fn test_remove_stake_limit_validate() { let extension = SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function let result_no_stake = extension.validate( - RawOrigin::Signed(coldkey).into(), - &call.clone(), - &info, + RawOrigin::Signed(coldkey).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -2803,9 +2805,9 @@ fn test_stake_low_liquidity_validate() { let extension = SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function let result_no_stake = extension.validate( - RawOrigin::Signed(coldkey).into(), - &call.clone(), - &info, + RawOrigin::Signed(coldkey).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -2864,9 +2866,9 @@ fn test_unstake_low_liquidity_validate() { let extension = SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function let result_no_stake = extension.validate( - RawOrigin::Signed(coldkey).into(), - &call.clone(), - &info, + RawOrigin::Signed(coldkey).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -2921,9 +2923,9 @@ fn test_unstake_all_validate() { let extension = SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function let result_no_stake = extension.validate( - RawOrigin::Signed(coldkey).into(), - &call.clone(), - &info, + RawOrigin::Signed(coldkey).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), diff --git a/pallets/subtensor/src/tests/swap_coldkey.rs b/pallets/subtensor/src/tests/swap_coldkey.rs index efea978eb9..f273e1d292 100644 --- a/pallets/subtensor/src/tests/swap_coldkey.rs +++ b/pallets/subtensor/src/tests/swap_coldkey.rs @@ -2178,16 +2178,15 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { netuid, amount_staked: 100_000_000_000, }); - let result = - extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, - 10, - (), - &TxBaseImplication(()), - TransactionSource::External, - ); + let result = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail assert_eq!( // Should get an invalid transaction error @@ -2204,9 +2203,9 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { allow_partial: false, }); let result = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -2227,9 +2226,9 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { alpha_amount: 100_000_000_000, }); let result = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -2252,9 +2251,9 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { allow_partial: false, }); let result = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -2276,9 +2275,9 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { alpha_amount: 100_000_000_000, }); let result = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -2300,9 +2299,9 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { alpha_amount: 100_000_000_000, }); let result = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -2321,9 +2320,9 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { keep_alive: false, }); let result = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -2342,9 +2341,9 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { value: 100_000_000_000, }); let result = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -2363,9 +2362,9 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { value: 100_000_000_000, }); let result = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -2381,9 +2380,9 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { // Burned register let call = RuntimeCall::SubtensorModule(SubtensorCall::burned_register { netuid, hotkey }); let result = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -2403,9 +2402,9 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { amount_unstaked: 1_000_000, }); let result = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -2423,9 +2422,9 @@ fn test_coldkey_in_swap_schedule_prevents_funds_usage() { allow_partial: true, }); let result = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -2493,16 +2492,15 @@ fn test_coldkey_in_swap_schedule_prevents_critical_calls() { // Dissolve network let call = RuntimeCall::SubtensorModule(SubtensorCall::dissolve_network { netuid, coldkey }); - let result = - extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, - 10, - (), - &TxBaseImplication(()), - TransactionSource::External, - ); + let result = extension.validate( + RawOrigin::Signed(who).into(), + &call.clone(), + &info, + 10, + (), + &TxBaseImplication(()), + TransactionSource::External, + ); // Should fail assert_eq!( // Should get an invalid transaction error diff --git a/pallets/subtensor/src/tests/weights.rs b/pallets/subtensor/src/tests/weights.rs index 22f89ccce7..0b26755c7a 100644 --- a/pallets/subtensor/src/tests/weights.rs +++ b/pallets/subtensor/src/tests/weights.rs @@ -102,9 +102,9 @@ fn test_set_rootweights_validate() { let extension = crate::SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function let result_no_stake = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -133,9 +133,9 @@ fn test_set_rootweights_validate() { // Submit to the signed extension validate function let result_min_stake = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -156,9 +156,9 @@ fn test_set_rootweights_validate() { assert!(SubtensorModule::get_total_stake_for_hotkey(&hotkey) > min_stake); let result_more_stake = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -241,9 +241,9 @@ fn test_commit_weights_validate() { let extension = crate::SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function let result_no_stake = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -272,9 +272,9 @@ fn test_commit_weights_validate() { // Submit to the signed extension validate function let result_min_stake = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -295,9 +295,9 @@ fn test_commit_weights_validate() { assert!(SubtensorModule::get_total_stake_for_hotkey(&hotkey) > min_stake); let result_more_stake = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -374,9 +374,9 @@ fn test_set_weights_validate() { let extension = crate::SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function let result_no_stake = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -404,9 +404,9 @@ fn test_set_weights_validate() { // Submit to the signed extension validate function let result_min_stake = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -463,9 +463,9 @@ fn test_reveal_weights_validate() { let extension = crate::SubtensorTransactionExtension::::new(); // Submit to the signed extension validate function let result_no_stake = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -494,9 +494,9 @@ fn test_reveal_weights_validate() { // Submit to the signed extension validate function let result_min_stake = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), @@ -517,9 +517,9 @@ fn test_reveal_weights_validate() { assert!(SubtensorModule::get_total_stake_for_hotkey(&hotkey) > min_stake); let result_more_stake = extension.validate( - RawOrigin::Signed(who).into(), - &call.clone(), - &info, + RawOrigin::Signed(who).into(), + &call.clone(), + &info, 10, (), &TxBaseImplication(()), diff --git a/runtime/src/check_nonce.rs b/runtime/src/check_nonce.rs index 37d0e97cb7..d8688f4beb 100644 --- a/runtime/src/check_nonce.rs +++ b/runtime/src/check_nonce.rs @@ -2,17 +2,20 @@ // https://github.com/paritytech/polkadot-sdk/blob/b600af050d6b6c8da59ae2a2a793ee2d8827ab1e/substrate/frame/system/src/extensions/check_nonce.rs use codec::{Decode, Encode}; -use frame_support::{dispatch::{DispatchInfo, Pays}, RuntimeDebugNoBound}; +use frame_support::{ + RuntimeDebugNoBound, + dispatch::{DispatchInfo, Pays}, +}; use frame_system::Config; use scale_info::TypeInfo; use sp_runtime::{ - DispatchResult, - Weight, - Saturating, - traits::{DispatchInfoOf, Dispatchable, One, Zero, TransactionExtension, AsSystemOriginSigner, ValidateResult, PostDispatchInfoOf}, + DispatchResult, Saturating, Weight, + traits::{ + AsSystemOriginSigner, DispatchInfoOf, Dispatchable, One, PostDispatchInfoOf, + TransactionExtension, ValidateResult, Zero, + }, transaction_validity::{ - TransactionSource, - InvalidTransaction, TransactionLongevity,TransactionValidityError, + InvalidTransaction, TransactionLongevity, TransactionSource, TransactionValidityError, ValidTransaction, }, }; @@ -58,109 +61,116 @@ impl sp_std::fmt::Debug for CheckNonce { /// Operation to perform from `validate` to `prepare` in [`CheckNonce`] transaction extension. #[derive(RuntimeDebugNoBound)] pub enum Val { - /// Account and its nonce to check for. - CheckNonce((T::AccountId, T::Nonce)), - /// Weight to refund. - Refund(Weight), + /// Account and its nonce to check for. + CheckNonce((T::AccountId, T::Nonce)), + /// Weight to refund. + Refund(Weight), } /// Operation to perform from `prepare` to `post_dispatch_details` in [`CheckNonce`] transaction /// extension. #[derive(RuntimeDebugNoBound)] pub enum Pre { - /// The transaction extension weight should not be refunded. - NonceChecked, - /// The transaction extension weight should be refunded. - Refund(Weight), + /// The transaction extension weight should not be refunded. + NonceChecked, + /// The transaction extension weight should be refunded. + Refund(Weight), } impl TransactionExtension for CheckNonce where - T::RuntimeCall: Dispatchable, - ::RuntimeOrigin: AsSystemOriginSigner + Clone, + T::RuntimeCall: Dispatchable, + ::RuntimeOrigin: AsSystemOriginSigner + Clone, { - const IDENTIFIER: &'static str = "CheckNonce"; - type Implicit = (); - type Val = Val; - type Pre = Pre; + const IDENTIFIER: &'static str = "CheckNonce"; + type Implicit = (); + type Val = Val; + type Pre = Pre; - fn weight(&self, _: &T::RuntimeCall) -> Weight { + fn weight(&self, _: &T::RuntimeCall) -> Weight { // TODO: benchmark transaction extension Weight::zero() - } - - fn validate( - &self, - origin: ::RuntimeOrigin, - call: &T::RuntimeCall, - info: &DispatchInfoOf, - _len: usize, - _self_implicit: Self::Implicit, - _inherited_implication: &impl Encode, + } + + fn validate( + &self, + origin: ::RuntimeOrigin, + call: &T::RuntimeCall, + info: &DispatchInfoOf, + _len: usize, + _self_implicit: Self::Implicit, + _inherited_implication: &impl Encode, _source: TransactionSource, - ) -> ValidateResult { - let Some(who) = origin.as_system_origin_signer() else { - return Ok((Default::default(), Val::Refund(self.weight(call)), origin)) - }; - let account = frame_system::Account::::get(who); - if info.pays_fee == Pays::Yes && account.providers.is_zero() && account.sufficients.is_zero() { - // Nonce storage not paid for - return Err(InvalidTransaction::Payment.into()) - } - if self.0 < account.nonce { - return Err(InvalidTransaction::Stale.into()) - } - - let provides = vec![Encode::encode(&(&who, self.0))]; - let requires = if account.nonce < self.0 { - vec![Encode::encode(&(&who, self.0.saturating_sub(One::one())))] - } else { - vec![] - }; - - let validity = ValidTransaction { - priority: 0, - requires, - provides, - longevity: TransactionLongevity::max_value(), - propagate: true, - }; - - Ok((validity, Val::CheckNonce((who.clone(), account.nonce)), origin)) - } - - fn prepare( - self, - val: Self::Val, - _origin: &T::RuntimeOrigin, - _call: &T::RuntimeCall, - _info: &DispatchInfoOf, - _len: usize, - ) -> Result { - let (who, mut nonce) = match val { - Val::CheckNonce((who, nonce)) => (who, nonce), - Val::Refund(weight) => return Ok(Pre::Refund(weight)), - }; - - // `self.0 < nonce` already checked in `validate`. - if self.0 > nonce { - return Err(InvalidTransaction::Future.into()) - } - nonce += T::Nonce::one(); - frame_system::Account::::mutate(who, |account| account.nonce = nonce); - Ok(Pre::NonceChecked) - } - - fn post_dispatch_details( - pre: Self::Pre, - _info: &DispatchInfo, - _post_info: &PostDispatchInfoOf, - _len: usize, - _result: &DispatchResult, - ) -> Result { - match pre { - Pre::NonceChecked => Ok(Weight::zero()), - Pre::Refund(weight) => Ok(weight), - } - } -} \ No newline at end of file + ) -> ValidateResult { + let Some(who) = origin.as_system_origin_signer() else { + return Ok((Default::default(), Val::Refund(self.weight(call)), origin)); + }; + let account = frame_system::Account::::get(who); + if info.pays_fee == Pays::Yes + && account.providers.is_zero() + && account.sufficients.is_zero() + { + // Nonce storage not paid for + return Err(InvalidTransaction::Payment.into()); + } + if self.0 < account.nonce { + return Err(InvalidTransaction::Stale.into()); + } + + let provides = vec![Encode::encode(&(&who, self.0))]; + let requires = if account.nonce < self.0 { + vec![Encode::encode(&(&who, self.0.saturating_sub(One::one())))] + } else { + vec![] + }; + + let validity = ValidTransaction { + priority: 0, + requires, + provides, + longevity: TransactionLongevity::max_value(), + propagate: true, + }; + + Ok(( + validity, + Val::CheckNonce((who.clone(), account.nonce)), + origin, + )) + } + + fn prepare( + self, + val: Self::Val, + _origin: &T::RuntimeOrigin, + _call: &T::RuntimeCall, + _info: &DispatchInfoOf, + _len: usize, + ) -> Result { + let (who, mut nonce) = match val { + Val::CheckNonce((who, nonce)) => (who, nonce), + Val::Refund(weight) => return Ok(Pre::Refund(weight)), + }; + + // `self.0 < nonce` already checked in `validate`. + if self.0 > nonce { + return Err(InvalidTransaction::Future.into()); + } + nonce += T::Nonce::one(); + frame_system::Account::::mutate(who, |account| account.nonce = nonce); + Ok(Pre::NonceChecked) + } + + fn post_dispatch_details( + pre: Self::Pre, + _info: &DispatchInfo, + _post_info: &PostDispatchInfoOf, + _len: usize, + _result: &DispatchResult, + ) -> Result { + match pre { + Pre::NonceChecked => Ok(Weight::zero()), + Pre::Refund(weight) => Ok(weight), + } + } +} diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index e2e689bb28..36ccf07d7f 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -13,7 +13,6 @@ mod migrations; use codec::{Compact, Decode, Encode}; use frame_support::traits::{Imbalance, InsideBoth}; -use sp_runtime::Cow; use frame_support::{ PalletId, dispatch::DispatchResultWithPostInfo, @@ -48,10 +47,10 @@ use sp_core::{ H160, H256, OpaqueMetadata, U256, crypto::{ByteArray, KeyTypeId}, }; +use sp_runtime::Cow; use sp_runtime::generic::Era; use sp_runtime::{ - AccountId32, ApplyExtrinsicResult, ConsensusEngineId, generic, - impl_opaque_keys, + AccountId32, ApplyExtrinsicResult, ConsensusEngineId, generic, impl_opaque_keys, traits::{ AccountIdLookup, BlakeTwo256, Block as BlockT, DispatchInfoOf, Dispatchable, NumberFor, One, PostDispatchInfoOf, UniqueSaturatedInto, Verify, From f048f13d5fe5204c239a7838ba5bc7e3ecbed6fb Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 17:37:37 +0200 Subject: [PATCH 28/49] commit Cargo.lock --- runtime/src/check_nonce.rs | 2 +- runtime/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/src/check_nonce.rs b/runtime/src/check_nonce.rs index d8688f4beb..2e05c63867 100644 --- a/runtime/src/check_nonce.rs +++ b/runtime/src/check_nonce.rs @@ -128,7 +128,7 @@ where priority: 0, requires, provides, - longevity: TransactionLongevity::max_value(), + longevity: TransactionLongevity::MAX, propagate: true, }; diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 36ccf07d7f..6a155b65f7 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -2146,7 +2146,7 @@ impl_runtime_apis! { fn dispatch_benchmark( config: frame_benchmarking::BenchmarkConfig - ) -> Result, sp_runtime::RuntimeString> { + ) -> Result, Cow<'static, str>> { use frame_benchmarking::{baseline, Benchmarking, BenchmarkBatch}; use sp_storage::TrackedStorageKey; From 053c2675d7378aefbe24a6d34aeff41999616aa8 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 17:38:50 +0200 Subject: [PATCH 29/49] commit Cargo.lock --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 6a155b65f7..05fc5df3dc 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -2146,7 +2146,7 @@ impl_runtime_apis! { fn dispatch_benchmark( config: frame_benchmarking::BenchmarkConfig - ) -> Result, Cow<'static, str>> { + ) -> Result, parity_scale_codec::alloc::string::String> { use frame_benchmarking::{baseline, Benchmarking, BenchmarkBatch}; use sp_storage::TrackedStorageKey; From 4eb2946ec83e51148f33f4e23eb704e313b4f483 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 17:40:21 +0200 Subject: [PATCH 30/49] commit Cargo.lock --- runtime/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 05fc5df3dc..da7894eb51 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -90,7 +90,7 @@ pub use sp_runtime::{Perbill, Permill}; use core::marker::PhantomData; -use scale_info::TypeInfo; +use scale_info::{TypeInfo, prelude::string}; // Frontier use fp_rpc::TransactionStatus; @@ -2146,7 +2146,7 @@ impl_runtime_apis! { fn dispatch_benchmark( config: frame_benchmarking::BenchmarkConfig - ) -> Result, parity_scale_codec::alloc::string::String> { + ) -> Result, string::String> { use frame_benchmarking::{baseline, Benchmarking, BenchmarkBatch}; use sp_storage::TrackedStorageKey; From 20c9dabf75381f1df7f07ae584c9b497d45e2778 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 17:42:16 +0200 Subject: [PATCH 31/49] commit Cargo.lock --- pallets/subtensor/src/tests/move_stake.rs | 2 ++ runtime/src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pallets/subtensor/src/tests/move_stake.rs b/pallets/subtensor/src/tests/move_stake.rs index 64713e5c2f..f2139fd760 100644 --- a/pallets/subtensor/src/tests/move_stake.rs +++ b/pallets/subtensor/src/tests/move_stake.rs @@ -1,3 +1,5 @@ +#![allow(clippy::unwrap-used)] + use super::mock::*; use crate::*; use approx::assert_abs_diff_eq; diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index da7894eb51..639879efd3 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -90,7 +90,7 @@ pub use sp_runtime::{Perbill, Permill}; use core::marker::PhantomData; -use scale_info::{TypeInfo, prelude::string}; +use scale_info::TypeInfo; // Frontier use fp_rpc::TransactionStatus; From 07787d6e9d9757e2e7a67701ef8fb81737104682 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 17:42:56 +0200 Subject: [PATCH 32/49] commit Cargo.lock --- pallets/subtensor/src/tests/move_stake.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/subtensor/src/tests/move_stake.rs b/pallets/subtensor/src/tests/move_stake.rs index f2139fd760..c10e924ef7 100644 --- a/pallets/subtensor/src/tests/move_stake.rs +++ b/pallets/subtensor/src/tests/move_stake.rs @@ -1,4 +1,4 @@ -#![allow(clippy::unwrap-used)] +#![allow(clippy::unwrap_used)] use super::mock::*; use crate::*; From b2dc9b0c1e425df9012d724fe9450173e1d47480 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 17:44:12 +0200 Subject: [PATCH 33/49] commit Cargo.lock --- pallets/subtensor/src/tests/weights.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/subtensor/src/tests/weights.rs b/pallets/subtensor/src/tests/weights.rs index 0b26755c7a..64a45151ff 100644 --- a/pallets/subtensor/src/tests/weights.rs +++ b/pallets/subtensor/src/tests/weights.rs @@ -1,4 +1,4 @@ -#![allow(clippy::indexing_slicing)] +#![allow(clippy::indexing_slicing, clippy::unwrap_used)] use super::mock::*; use crate::coinbase::run_coinbase::WeightsTlockPayload; From f9512f8f33a72043d5f0e489377e299fe86ed6d3 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 17:45:20 +0200 Subject: [PATCH 34/49] commit Cargo.lock --- runtime/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 639879efd3..2ffeb6e8b2 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -12,6 +12,7 @@ pub mod check_nonce; mod migrations; use codec::{Compact, Decode, Encode}; +use scale_info::prelude::string; use frame_support::traits::{Imbalance, InsideBoth}; use frame_support::{ PalletId, From 1501629c125ec2c747efd1c8dce6db41efa3e619 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 17:46:35 +0200 Subject: [PATCH 35/49] cargo fmt --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 2ffeb6e8b2..6dca5c6be0 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -12,7 +12,6 @@ pub mod check_nonce; mod migrations; use codec::{Compact, Decode, Encode}; -use scale_info::prelude::string; use frame_support::traits::{Imbalance, InsideBoth}; use frame_support::{ PalletId, @@ -41,6 +40,7 @@ use pallet_subtensor::rpc_info::{ stake_info::StakeInfo, subnet_info::{SubnetHyperparams, SubnetInfo, SubnetInfov2}, }; +use scale_info::prelude::string; use smallvec::smallvec; use sp_api::impl_runtime_apis; use sp_consensus_aura::sr25519::AuthorityId as AuraId; From e15ee92568e811075ac0224eb291e65b68ac01c8 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 17:47:23 +0200 Subject: [PATCH 36/49] commit Cargo.lock --- pallets/subtensor/src/tests/serving.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pallets/subtensor/src/tests/serving.rs b/pallets/subtensor/src/tests/serving.rs index b0ee838d28..d3dea89ea6 100644 --- a/pallets/subtensor/src/tests/serving.rs +++ b/pallets/subtensor/src/tests/serving.rs @@ -1,3 +1,4 @@ +#![allow(clippy::unwrap_used)] use super::mock::*; use crate::Error; From b9efc5a8aa395674a7ea1f077348a13f0270f7cb Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 17:48:03 +0200 Subject: [PATCH 37/49] cargo clippy --- runtime/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 6dca5c6be0..639879efd3 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -40,7 +40,6 @@ use pallet_subtensor::rpc_info::{ stake_info::StakeInfo, subnet_info::{SubnetHyperparams, SubnetInfo, SubnetInfov2}, }; -use scale_info::prelude::string; use smallvec::smallvec; use sp_api::impl_runtime_apis; use sp_consensus_aura::sr25519::AuthorityId as AuraId; From b158e64bd8cde8898c722a60d7f245b5dfb15d50 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 17:50:20 +0200 Subject: [PATCH 38/49] commit Cargo.lock --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 639879efd3..1a50cf2314 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -2146,7 +2146,7 @@ impl_runtime_apis! { fn dispatch_benchmark( config: frame_benchmarking::BenchmarkConfig - ) -> Result, string::String> { + ) -> Result, alloc::string::String> { use frame_benchmarking::{baseline, Benchmarking, BenchmarkBatch}; use sp_storage::TrackedStorageKey; From 308aeffedefda5d51b67b12fcb46abf76b00d216 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 17:51:08 +0200 Subject: [PATCH 39/49] commit Cargo.lock --- runtime/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 1a50cf2314..cc90a796c9 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -11,6 +11,8 @@ include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs")); pub mod check_nonce; mod migrations; +extern crate alloc; + use codec::{Compact, Decode, Encode}; use frame_support::traits::{Imbalance, InsideBoth}; use frame_support::{ From 44208853b64a3bb86de0869d28b5987c35a62ea4 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Wed, 11 Jun 2025 20:33:39 +0200 Subject: [PATCH 40/49] fix runtime integrity test for admin-utils --- pallets/admin-utils/src/tests/mock.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pallets/admin-utils/src/tests/mock.rs b/pallets/admin-utils/src/tests/mock.rs index f3ddccb39c..fe38553e2d 100644 --- a/pallets/admin-utils/src/tests/mock.rs +++ b/pallets/admin-utils/src/tests/mock.rs @@ -3,7 +3,6 @@ use frame_support::{ assert_ok, derive_impl, parameter_types, traits::{Everything, Hooks, InherentBuilder, PrivilegeCmp}, - weights, }; use frame_system::{self as system, offchain::CreateTransactionBase}; use frame_system::{EnsureNever, EnsureRoot, limits}; @@ -74,7 +73,10 @@ parameter_types! { pub const InitialMinAllowedWeights: u16 = 0; pub const InitialEmissionValue: u16 = 0; pub const InitialMaxWeightsLimit: u16 = u16::MAX; - pub BlockWeights: limits::BlockWeights = limits::BlockWeights::simple_max(weights::Weight::from_parts(1024, 0)); + pub BlockWeights: limits::BlockWeights = limits::BlockWeights::with_sensible_defaults( + Weight::from_parts(2_000_000_000_000, u64::MAX), + Perbill::from_percent(75), + ); pub const ExistentialDeposit: Balance = 1; pub const TransactionByteFee: Balance = 100; pub const SDebug:u64 = 1; From 91d80b1c9fbd91a37dd378516345383cf8dce84c Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Thu, 12 Jun 2025 14:46:56 +0200 Subject: [PATCH 41/49] fix zepter --- node/Cargo.toml | 1 + pallets/subtensor/Cargo.toml | 1 + runtime/Cargo.toml | 1 + 3 files changed, 3 insertions(+) diff --git a/node/Cargo.toml b/node/Cargo.toml index 52ccf20de3..7f4b44efbd 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -136,6 +136,7 @@ runtime-benchmarks = [ "sp-runtime/runtime-benchmarks", "pallet-commitments/runtime-benchmarks", "pallet-drand/runtime-benchmarks", + "pallet-transaction-payment/runtime-benchmarks", ] pow-faucet = [] diff --git a/pallets/subtensor/Cargo.toml b/pallets/subtensor/Cargo.toml index cd9cf258c1..e3ea29d75f 100644 --- a/pallets/subtensor/Cargo.toml +++ b/pallets/subtensor/Cargo.toml @@ -127,6 +127,7 @@ runtime-benchmarks = [ "pallet-preimage/runtime-benchmarks", "pallet-scheduler/runtime-benchmarks", "pallet-drand/runtime-benchmarks", + "pallet-transaction-payment/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index f417a18afc..c9f3fce0a5 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -226,6 +226,7 @@ runtime-benchmarks = [ "pallet-balances/runtime-benchmarks", "pallet-grandpa/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", + "pallet-transaction-payment/runtime-benchmarks", "pallet-utility/runtime-benchmarks", "sp-runtime/runtime-benchmarks", "pallet-safe-mode/runtime-benchmarks", From fee8b2ac8c20db798ddbcd141f2b8bb5ab9069b8 Mon Sep 17 00:00:00 2001 From: John Reed <87283488+JohnReedV@users.noreply.github.com> Date: Thu, 12 Jun 2025 10:53:34 -0700 Subject: [PATCH 42/49] add new host function --- Cargo.lock | 1 + Cargo.toml | 1 + node/Cargo.toml | 1 + node/src/client.rs | 2 ++ 4 files changed, 5 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index d5669f4d2c..16a8ebe935 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6492,6 +6492,7 @@ version = "4.0.0-dev" dependencies = [ "async-trait", "clap", + "cumulus-primitives-proof-size-hostfunction", "fc-api", "fc-aura", "fc-consensus", diff --git a/Cargo.toml b/Cargo.toml index 10f3d4b0b9..0672367647 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -248,6 +248,7 @@ sha2 = { version = "0.10.8", default-features = false } rand_chacha = { version = "0.3.1", default-features = false } tle = { git = "https://github.com/ideal-lab5/timelock", rev = "5416406cfd32799e31e1795393d4916894de4468", default-features = false } +cumulus-primitives-proof-size-hostfunction = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", package = "cumulus-primitives-proof-size-hostfunction", default-features = false } [profile.release] panic = "unwind" diff --git a/node/Cargo.toml b/node/Cargo.toml index 7f4b44efbd..3c816cbff4 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -67,6 +67,7 @@ pallet-commitments = { path = "../pallets/commitments" } pallet-drand = { workspace = true } sp-crypto-ec-utils = { workspace = true } sp-keystore = { workspace = true, default-features = false } +cumulus-primitives-proof-size-hostfunction = { workspace = true, default-features = false } # These dependencies are used for the subtensor's RPCs diff --git a/node/src/client.rs b/node/src/client.rs index 1c2503f21b..59f6470a5b 100644 --- a/node/src/client.rs +++ b/node/src/client.rs @@ -1,3 +1,4 @@ +use cumulus_primitives_proof_size_hostfunction::storage_proof_size::HostFunctions as ProofSize; use node_subtensor_runtime::{RuntimeApi, opaque::Block}; use sc_executor::WasmExecutor; @@ -14,5 +15,6 @@ pub type HostFunctions = ( sp_io::SubstrateHostFunctions, frame_benchmarking::benchmarking::HostFunctions, sp_crypto_ec_utils::bls12_381::host_calls::HostFunctions, + ProofSize, ); pub type RuntimeExecutor = WasmExecutor; From e929d6adadfc2505353233702ff08d3c09421238 Mon Sep 17 00:00:00 2001 From: John Reed <87283488+JohnReedV@users.noreply.github.com> Date: Thu, 12 Jun 2025 13:23:02 -0700 Subject: [PATCH 43/49] update weight --- pallets/subtensor/src/macros/dispatches.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/subtensor/src/macros/dispatches.rs b/pallets/subtensor/src/macros/dispatches.rs index ad76d90ae2..40deabf19d 100644 --- a/pallets/subtensor/src/macros/dispatches.rs +++ b/pallets/subtensor/src/macros/dispatches.rs @@ -454,7 +454,7 @@ mod dispatches { /// - The hotkey we are delegating is not owned by the calling coldket. /// #[pallet::call_index(1)] - #[pallet::weight((Weight::from_parts(4_709_000, 0) + #[pallet::weight((Weight::from_parts(3_657_000, 0) .saturating_add(T::DbWeight::get().reads(0)) .saturating_add(T::DbWeight::get().writes(0)), DispatchClass::Normal, Pays::No))] pub fn become_delegate(_origin: OriginFor, _hotkey: T::AccountId) -> DispatchResult { From e9762efc4652063f87395f101402fd31600af96c Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Thu, 12 Jun 2025 23:44:41 +0200 Subject: [PATCH 44/49] fix admin utils benchmarks --- pallets/admin-utils/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pallets/admin-utils/src/lib.rs b/pallets/admin-utils/src/lib.rs index b1481600b3..0f544b504d 100644 --- a/pallets/admin-utils/src/lib.rs +++ b/pallets/admin-utils/src/lib.rs @@ -149,9 +149,9 @@ pub mod pallet { /// It is only callable by the root account. /// The extrinsic will call the Aura pallet to change the authorities. #[pallet::call_index(0)] - #[pallet::weight(Weight::from_parts(6_265_000, 0) - .saturating_add(::DbWeight::get().reads(1_u64)) - .saturating_add(::DbWeight::get().writes(2_u64)))] + #[pallet::weight(Weight::from_parts(5_062_000, 0) + .saturating_add(::DbWeight::get().reads(0_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn swap_authorities( origin: OriginFor, new_authorities: BoundedVec<::AuthorityId, T::MaxAuthorities>, @@ -1411,7 +1411,7 @@ pub mod pallet { /// No change should be signaled while any change is pending. Returns an error if a change /// is already pending. #[pallet::call_index(59)] - #[pallet::weight(Weight::from_parts(11_550_000, 0) + #[pallet::weight(Weight::from_parts(9_060_000, 0) .saturating_add(::DbWeight::get().reads(1_u64)) .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn schedule_grandpa_change( From 984ea2cd61332080c4677e350e236d92bbab36e5 Mon Sep 17 00:00:00 2001 From: John Reed <87283488+JohnReedV@users.noreply.github.com> Date: Thu, 12 Jun 2025 16:19:44 -0700 Subject: [PATCH 45/49] update commitments weight --- pallets/commitments/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/commitments/src/lib.rs b/pallets/commitments/src/lib.rs index 9e782baa06..527a00b13a 100644 --- a/pallets/commitments/src/lib.rs +++ b/pallets/commitments/src/lib.rs @@ -343,7 +343,7 @@ pub mod pallet { /// Sudo-set MaxSpace #[pallet::call_index(2)] #[pallet::weight(( - Weight::from_parts(3_556_000, 0) + Weight::from_parts(2_965_000, 0) .saturating_add(T::DbWeight::get().reads(0_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)), DispatchClass::Operational, From e0e5a7a455f5daca09621bd0ef9bbc6186165285 Mon Sep 17 00:00:00 2001 From: open-junius Date: Fri, 13 Jun 2025 15:26:19 +0800 Subject: [PATCH 46/49] avoid keep running after node exit --- evm-tests/run-ci.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/evm-tests/run-ci.sh b/evm-tests/run-ci.sh index cd7acb14af..363b1c52cc 100755 --- a/evm-tests/run-ci.sh +++ b/evm-tests/run-ci.sh @@ -19,6 +19,13 @@ if [ "$i" -eq 1000 ]; then exit 1 fi +sleep 5 + +if ! nc -z localhost 9944; then + echo "node subtensor exit, port not available" + exit 1 +fi + cd evm-tests yarn From ba9b1f5d76cdbad2ac4a1ecd83f533364ce385ea Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Mon, 16 Jun 2025 16:50:22 +0200 Subject: [PATCH 47/49] fix network backend type selection --- node/src/service.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/node/src/service.rs b/node/src/service.rs index 4b95f6eb5d..26071c6d0c 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -733,11 +733,12 @@ pub async fn build_full( new_full::>(config, eth_config, sealing).await } Some(sc_network::config::NetworkBackendType::Litep2p) => { + new_full::(config, eth_config, sealing).await + } + _ => { + log::debug!("no network backend selected, falling back to libp2p"); new_full::>(config, eth_config, sealing).await } - _ => Err(ServiceError::Other( - "Network backend not supported".to_string(), - )), } } From 4dac3c66f6964ca34b03b32e36f02457d4ed7a92 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Mon, 16 Jun 2025 17:03:40 +0200 Subject: [PATCH 48/49] bump spec version --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index fe8dc13472..ac34271ad9 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -215,7 +215,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // `spec_version`, and `authoring_version` are the same between Wasm and native. // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use // the compatible custom types. - spec_version: 276, + spec_version: 277, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1, From 8be6b0ead95d68097c6c2f275f877c3f5359cd2c Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Tue, 17 Jun 2025 05:17:44 +0200 Subject: [PATCH 49/49] update benchmark weight --- pallets/admin-utils/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/admin-utils/src/lib.rs b/pallets/admin-utils/src/lib.rs index 0f544b504d..8b871f88a1 100644 --- a/pallets/admin-utils/src/lib.rs +++ b/pallets/admin-utils/src/lib.rs @@ -170,7 +170,7 @@ pub mod pallet { /// It is only callable by the root account. /// The extrinsic will call the Subtensor pallet to set the default take. #[pallet::call_index(1)] - #[pallet::weight(Weight::from_parts(6_942_000, 0) + #[pallet::weight(Weight::from_parts(5_831_000, 0) .saturating_add(::DbWeight::get().reads(0_u64)) .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_default_take(origin: OriginFor, default_take: u16) -> DispatchResult {