diff --git a/.cargo-deny.toml b/.cargo-deny.toml index 08deb2e42b..348dff81e5 100644 --- a/.cargo-deny.toml +++ b/.cargo-deny.toml @@ -9,20 +9,19 @@ no-default-features = true [advisories] ignore = [ { id = "RUSTSEC-2020-0168", reason = "`mach` is unmaintained but a Substrate dependency. Re-verify upon next polkadot-sdk updates." }, - { id = "RUSTSEC-2021-0139", reason = "`ansi_term` is unmaintained but a Substrate dependency. Re-verify upon next polkadot-sdk updates." }, { id = "RUSTSEC-2022-0061", reason = "`parity-wasm` is unmaintained but a Substrate dependency. Re-verify upon next polkadot-sdk updates." }, { id = "RUSTSEC-2022-0080", reason = "`parity-util-mem` is unmaintained but a Substrate dependency. Re-verify upon next polkadot-sdk updates." }, - { id = "RUSTSEC-2023-0091", reason = "`wasmtime` has a security vulnerability but a Substrate dependency. Re-verify upon next polkadot-sdk updates." }, + { id = "RUSTSEC-2023-0091", reason = "`wasmtime` 8.0.1 has a security vulnerability but a Substrate dependency. Re-verify upon next polkadot-sdk updates." }, { id = "RUSTSEC-2024-0336", reason = "`rustls` vulnerability. Re-verify upon next polkadot-sdk updates." }, - { id = "RUSTSEC-2024-0344", reason = "`curve25519-dalek` vulnerability. Re-verify upon next polkadot-sdk updates." }, { id = "RUSTSEC-2024-0370", reason = "`proc-macro-error` is unmaintained but a Substrate dependency. Re-verify upon next polkadot-sdk updates." }, { id = "RUSTSEC-2024-0384", reason = "`instant` is unmaintained but a Substrate dependency. Re-verify upon next polkadot-sdk updates." }, { id = "RUSTSEC-2024-0388", reason = "`derivative` is unmaintained but a Substrate dependency. Re-verify upon next polkadot-sdk updates." }, { id = "RUSTSEC-2024-0421", reason = "`idna` has a security vulnerability but a Substrate dependency. Re-verify upon next polkadot-sdk updates." }, { id = "RUSTSEC-2024-0436", reason = "`paste` is unmaintained but a Substrate dependency. Re-verify upon next polkadot-sdk updates." }, - { id = "RUSTSEC-2024-0438", reason = "`wasmtime` has a security vulnerability but a Substrate dependency. Re-verify upon next polkadot-sdk updates." }, + { id = "RUSTSEC-2024-0438", reason = "`wasmtime` 8.0.1 has a security vulnerability but a Substrate dependency. Re-verify upon next polkadot-sdk updates." }, { id = "RUSTSEC-2025-0009", reason = "`ring` has a security vulnerability but a Substrate dependency. Re-verify upon next polkadot-sdk updates." }, { id = "RUSTSEC-2025-0010", reason = "`ring` 0.16.20 is unmaintained but a Substrate dependency. Re-verify upon next polkadot-sdk updates." }, + { id = "RUSTSEC-2025-0017", reason = "`trust-dns` is unmaintained (renamed) but a Substrate dependency. Re-verify upon next polkadot-sdk updates." }, ] yanked = "deny" @@ -37,14 +36,16 @@ allow = [ "BSD-2-Clause", "BSD-3-Clause", "CC0-1.0", + "CDLA-Permissive-2.0", "GPL-3.0 WITH Classpath-exception-2.0", "GPL-3.0", "ISC", "MIT", + "MIT-0", "MPL-2.0", "OpenSSL", "SSPL-1.0", - "Unicode-DFS-2016", + "Unicode-3.0", "Zlib", ] private = { ignore = false } @@ -56,6 +57,9 @@ license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }] name = "ring" [sources] -allow-git = ["https://github.com/paritytech/polkadot-sdk"] -unknown-git = "deny" +allow-git = [ + "https://github.com/paritytech/polkadot-sdk", + "https://github.com/polytope-labs/hyperbridge", +] +unknown-git = "deny" unknown-registry = "deny" diff --git a/.github/workflows/check-code.yml b/.github/workflows/check-code.yml index 921d85c284..fe03041c84 100644 --- a/.github/workflows/check-code.yml +++ b/.github/workflows/check-code.yml @@ -35,7 +35,7 @@ jobs: name: Run Clippy checks runs-on: ubuntu-latest container: - image: paritytech/ci-unified:bullseye-1.74.0 + image: paritytech/ci-unified:bullseye-1.81.0 env: # Configured by the Docker image. We can't change this unless the image does it. CARGO_HOME: /usr/local/cargo @@ -76,11 +76,11 @@ jobs: name: Check formatting runs-on: ubuntu-latest container: - image: paritytech/ci-unified:bullseye-1.74.0 + image: paritytech/ci-unified:bullseye-1.81.0 env: # Configured by the Docker image. We can't change this unless the image does it. CARGO_HOME: /usr/local/cargo - # Latest nightly version matching the base rustc version (1.74.0). + # Latest nightly version matching the base rustc version (1.18.0). RUSTUP_NIGHTLY_VERSION: nightly-2023-10-02 needs: get-commit-head if: ${{ !contains(needs.get-commit-head.outputs.headCommitMsg, 'ci-skip-rust') }} @@ -232,14 +232,14 @@ jobs: -v "${HOME}/.cargo/registry/cache:${{ env.CARGO_HOME }}/registry/cache" \ -v "${HOME}/.cargo/git/db:${{ env.CARGO_HOME }}/git/db" \ -w /workspace \ - paritytech/ci-unified:bullseye-1.74.0 \ + paritytech/ci-unified:bullseye-1.81.0 \ bash -c "cargo test --all-targets --locked ${{ matrix.features }}" cargo-doc: name: Check Rustdoc runs-on: ubuntu-latest container: - image: paritytech/ci-unified:bullseye-1.74.0 + image: paritytech/ci-unified:bullseye-1.81.0 env: # Configured by the Docker image. We can't change this unless the image does it. CARGO_HOME: /usr/local/cargo @@ -276,7 +276,7 @@ jobs: name: Run try-runtime runs-on: ubuntu-latest container: - image: paritytech/ci-unified:bullseye-1.74.0 + image: paritytech/ci-unified:bullseye-1.81.0 env: # Configured by the Docker image. We can't change this unless the image does it. CARGO_HOME: /usr/local/cargo @@ -368,7 +368,7 @@ jobs: -v "${HOME}/.cargo/registry/cache:${{ env.CARGO_HOME }}/registry/cache" \ -v "${HOME}/.cargo/git/db:${{ env.CARGO_HOME }}/git/db" \ -w /workspace \ - paritytech/ci-unified:bullseye-1.74.0 \ + paritytech/ci-unified:bullseye-1.81.0 \ bash -c "bash -x scripts/run_benches_for_runtime.sh ${{ matrix.runtime }} dev" trigger-gitlab: diff --git a/.github/workflows/publish-rustdocs.yml b/.github/workflows/publish-rustdocs.yml index 73ab18a0c4..d262661d5c 100644 --- a/.github/workflows/publish-rustdocs.yml +++ b/.github/workflows/publish-rustdocs.yml @@ -55,7 +55,7 @@ jobs: -v "${HOME}/.cargo:/root/.cargo" \ -e RUSTDOCFLAGS='-D warnings' \ -w /workspace \ - paritytech/ci-unified:bullseye-1.74.0 \ + paritytech/ci-unified:bullseye-1.81.0 \ bash -c " cargo doc --all-features --no-deps --locked && \ mv $DOCS_TARGET/help.html $DOCS_TARGET/index.html && \ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 85f99bfb15..51256a0bed 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,7 +38,7 @@ build-production-wasm: build-try-state-wasm: image: - name: paritytech/ci-unified:bullseye-1.74.0 + name: paritytech/ci-unified:bullseye-1.81.0 stage: build parallel: matrix: diff --git a/Cargo.lock b/Cargo.lock index 64013a5e49..02716fc810 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -23,18 +23,18 @@ dependencies = [ [[package]] name = "addr2line" -version = "0.22.0" +version = "0.24.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e4503c46a5c0c7844e948c9a4d6acd9f50cccb4de1c48eb9e291ea17470c678" +checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" dependencies = [ - "gimli 0.29.0", + "gimli 0.31.1", ] [[package]] -name = "adler" -version = "1.0.2" +name = "adler2" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" +checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" [[package]] name = "aead" @@ -68,7 +68,7 @@ dependencies = [ "cipher 0.4.4", "ctr", "ghash", - "subtle 2.4.1", + "subtle 2.6.1", ] [[package]] @@ -77,7 +77,7 @@ version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" dependencies = [ - "getrandom 0.2.15", + "getrandom 0.2.16", "once_cell", "version_check", ] @@ -89,10 +89,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" dependencies = [ "cfg-if", - "getrandom 0.2.15", + "getrandom 0.2.16", "once_cell", "version_check", - "zerocopy", + "zerocopy 0.7.35", ] [[package]] @@ -106,9 +106,148 @@ dependencies = [ [[package]] name = "allocator-api2" -version = "0.2.18" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" + +[[package]] +name = "alloy-primitives" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0628ec0ba5b98b3370bb6be17b12f23bfce8ee4ad83823325a20546d9b03b78" +dependencies = [ + "alloy-rlp", + "bytes", + "cfg-if", + "const-hex", + "derive_more 0.99.20", + "hex-literal 0.4.1", + "itoa", + "proptest", + "rand 0.8.5", + "ruint", + "serde", + "tiny-keccak", +] + +[[package]] +name = "alloy-primitives" +version = "0.7.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccb3ead547f4532bc8af961649942f0b9c16ee9226e26caa3f38420651cc0bf4" +dependencies = [ + "alloy-rlp", + "bytes", + "cfg-if", + "const-hex", + "derive_more 0.99.20", + "hex-literal 0.4.1", + "itoa", + "k256", + "keccak-asm", + "proptest", + "rand 0.8.5", + "ruint", + "serde", + "tiny-keccak", +] + +[[package]] +name = "alloy-rlp" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d6c1d995bff8d011f7cd6c81820d51825e6e06d6db73914c1630ecf544d83d6" +dependencies = [ + "arrayvec 0.7.6", + "bytes", +] + +[[package]] +name = "alloy-sol-macro" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a98ad1696a2e17f010ae8e43e9f2a1e930ed176a8e3ff77acfeff6dfb07b42c" +dependencies = [ + "const-hex", + "dunce", + "heck 0.4.1", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.101", + "syn-solidity 0.4.2", + "tiny-keccak", +] + +[[package]] +name = "alloy-sol-macro" +version = "0.7.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b40397ddcdcc266f59f959770f601ce1280e699a91fc1862f29cef91707cd09" +dependencies = [ + "alloy-sol-macro-expander", + "alloy-sol-macro-input", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.101", +] + +[[package]] +name = "alloy-sol-macro-expander" +version = "0.7.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "867a5469d61480fea08c7333ffeca52d5b621f5ca2e44f271b117ec1fc9a0525" +dependencies = [ + "alloy-sol-macro-input", + "const-hex", + "heck 0.5.0", + "indexmap 2.9.0", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.101", + "syn-solidity 0.7.7", + "tiny-keccak", +] + +[[package]] +name = "alloy-sol-macro-input" +version = "0.7.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e482dc33a32b6fadbc0f599adea520bd3aaa585c141a80b404d0a3e3fa72528" +dependencies = [ + "const-hex", + "dunce", + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 2.0.101", + "syn-solidity 0.7.7", +] + +[[package]] +name = "alloy-sol-types" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98d7107bed88e8f09f0ddcc3335622d87bfb6821f3e0c7473329fb1cfad5e015" +dependencies = [ + "alloy-primitives 0.4.2", + "alloy-sol-macro 0.4.2", + "const-hex", + "serde", +] + +[[package]] +name = "alloy-sol-types" +version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f" +checksum = "a91ca40fa20793ae9c3841b83e74569d1cc9af29a2f5237314fd3452d51e38c7" +dependencies = [ + "alloy-primitives 0.7.7", + "alloy-sol-macro 0.7.7", + "const-hex", +] [[package]] name = "always-assert" @@ -131,20 +270,11 @@ dependencies = [ "libc", ] -[[package]] -name = "ansi_term" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" -dependencies = [ - "winapi", -] - [[package]] name = "anstream" -version = "0.6.14" +version = "0.6.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418c75fa768af9c03be99d17643f93f79bbba589895012a80e3452a19ddda15b" +checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b" dependencies = [ "anstyle", "anstyle-parse", @@ -157,43 +287,44 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.7" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "038dfcf04a5feb68e9c60b21c9625a54c2c0616e79b72b0fd87075a056ae1d1b" +checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" [[package]] name = "anstyle-parse" -version = "0.2.4" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c03a11a9034d92058ceb6ee011ce58af4a9bf61491aa7e1e59ecd24bd40d22d4" +checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" -version = "1.1.0" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad186efb764318d35165f1758e7dcef3b10628e26d41a44bc5550652e6804391" +checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] name = "anstyle-wincon" -version = "3.0.3" +version = "3.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61a38449feb7068f52bb06c12759005cf459ee52bb4adc1d5a7c4322d716fb19" +checksum = "ca3534e77181a9cc07539ad51f2141fe32f6c3ffd4df76db8ad92346b003ae4e" dependencies = [ "anstyle", - "windows-sys 0.52.0", + "once_cell", + "windows-sys 0.59.0", ] [[package]] name = "anyhow" -version = "1.0.86" +version = "1.0.98" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" +checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487" [[package]] name = "approx" @@ -215,7 +346,7 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] @@ -225,8 +356,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fb00293ba84f51ce3bd026bd0de55899c4e68f0a39a5728cebae3a73ffdc0a4f" dependencies = [ "ark-ec", - "ark-ff", - "ark-std", + "ark-ff 0.4.2", + "ark-std 0.4.0", +] + +[[package]] +name = "ark-bls12-377-ext" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20c7021f180a0cbea0380eba97c2af3c57074cdaffe0eef7e840e1c9f2841e55" +dependencies = [ + "ark-bls12-377", + "ark-ec", + "ark-models-ext", + "ark-std 0.4.0", ] [[package]] @@ -236,9 +379,48 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c775f0d12169cba7aae4caeb547bb6a50781c7449a8aa53793827c9ec4abf488" dependencies = [ "ark-ec", - "ark-ff", - "ark-serialize", - "ark-std", + "ark-ff 0.4.2", + "ark-serialize 0.4.2", + "ark-std 0.4.0", +] + +[[package]] +name = "ark-bls12-381-ext" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1dc4b3d08f19e8ec06e949712f95b8361e43f1391d94f65e4234df03480631c" +dependencies = [ + "ark-bls12-381", + "ark-ec", + "ark-ff 0.4.2", + "ark-models-ext", + "ark-serialize 0.4.2", + "ark-std 0.4.0", +] + +[[package]] +name = "ark-bw6-761" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e0605daf0cc5aa2034b78d008aaf159f56901d92a52ee4f6ecdfdac4f426700" +dependencies = [ + "ark-bls12-377", + "ark-ec", + "ark-ff 0.4.2", + "ark-std 0.4.0", +] + +[[package]] +name = "ark-bw6-761-ext" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccee5fba47266f460067588ee1bf070a9c760bf2050c1c509982c5719aadb4f2" +dependencies = [ + "ark-bw6-761", + "ark-ec", + "ark-ff 0.4.2", + "ark-models-ext", + "ark-std 0.4.0", ] [[package]] @@ -247,14 +429,83 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "defd9a439d56ac24968cca0571f598a61bc8c55f71d50a89cda591cb750670ba" dependencies = [ - "ark-ff", + "ark-ff 0.4.2", "ark-poly", - "ark-serialize", - "ark-std", + "ark-serialize 0.4.2", + "ark-std 0.4.0", "derivative", "hashbrown 0.13.2", "itertools 0.10.5", "num-traits", + "rayon", + "zeroize", +] + +[[package]] +name = "ark-ed-on-bls12-377" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b10d901b9ac4b38f9c32beacedfadcdd64e46f8d7f8e88c1ae1060022cf6f6c6" +dependencies = [ + "ark-bls12-377", + "ark-ec", + "ark-ff 0.4.2", + "ark-std 0.4.0", +] + +[[package]] +name = "ark-ed-on-bls12-377-ext" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "524a4fb7540df2e1a8c2e67a83ba1d1e6c3947f4f9342cc2359fc2e789ad731d" +dependencies = [ + "ark-ec", + "ark-ed-on-bls12-377", + "ark-ff 0.4.2", + "ark-models-ext", + "ark-std 0.4.0", +] + +[[package]] +name = "ark-ed-on-bls12-381-bandersnatch" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9cde0f2aa063a2a5c28d39b47761aa102bda7c13c84fc118a61b87c7b2f785c" +dependencies = [ + "ark-bls12-381", + "ark-ec", + "ark-ff 0.4.2", + "ark-std 0.4.0", +] + +[[package]] +name = "ark-ed-on-bls12-381-bandersnatch-ext" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d15185f1acb49a07ff8cbe5f11a1adc5a93b19e211e325d826ae98e98e124346" +dependencies = [ + "ark-ec", + "ark-ed-on-bls12-381-bandersnatch", + "ark-ff 0.4.2", + "ark-models-ext", + "ark-std 0.4.0", +] + +[[package]] +name = "ark-ff" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b3235cc41ee7a12aaaf2c575a2ad7b46713a8a50bda2fc3b003a04845c05dd6" +dependencies = [ + "ark-ff-asm 0.3.0", + "ark-ff-macros 0.3.0", + "ark-serialize 0.3.0", + "ark-std 0.3.0", + "derivative", + "num-bigint", + "num-traits", + "paste", + "rustc_version 0.3.3", "zeroize", ] @@ -264,20 +515,30 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec847af850f44ad29048935519032c33da8aa03340876d351dfab5660d2966ba" dependencies = [ - "ark-ff-asm", - "ark-ff-macros", - "ark-serialize", - "ark-std", + "ark-ff-asm 0.4.2", + "ark-ff-macros 0.4.2", + "ark-serialize 0.4.2", + "ark-std 0.4.0", "derivative", "digest 0.10.7", "itertools 0.10.5", "num-bigint", "num-traits", "paste", - "rustc_version", + "rustc_version 0.4.1", "zeroize", ] +[[package]] +name = "ark-ff-asm" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db02d390bf6643fb404d3d22d31aee1c4bc4459600aef9113833d17e786c6e44" +dependencies = [ + "quote", + "syn 1.0.109", +] + [[package]] name = "ark-ff-asm" version = "0.4.2" @@ -288,6 +549,18 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "ark-ff-macros" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db2fd794a08ccb318058009eefdf15bcaaaaf6f8161eb3345f907222bac38b20" +dependencies = [ + "num-bigint", + "num-traits", + "quote", + "syn 1.0.109", +] + [[package]] name = "ark-ff-macros" version = "0.4.2" @@ -301,19 +574,56 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "ark-models-ext" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e9eab5d4b5ff2f228b763d38442adc9b084b0a465409b059fac5c2308835ec2" +dependencies = [ + "ark-ec", + "ark-ff 0.4.2", + "ark-serialize 0.4.2", + "ark-std 0.4.0", + "derivative", +] + [[package]] name = "ark-poly" version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d320bfc44ee185d899ccbadfa8bc31aab923ce1558716e1997a1e74057fe86bf" dependencies = [ - "ark-ff", - "ark-serialize", - "ark-std", + "ark-ff 0.4.2", + "ark-serialize 0.4.2", + "ark-std 0.4.0", "derivative", "hashbrown 0.13.2", ] +[[package]] +name = "ark-scale" +version = "0.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f69c00b3b529be29528a6f2fd5fa7b1790f8bed81b9cdca17e326538545a179" +dependencies = [ + "ark-ec", + "ark-ff 0.4.2", + "ark-serialize 0.4.2", + "ark-std 0.4.0", + "parity-scale-codec", + "scale-info", +] + +[[package]] +name = "ark-serialize" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d6c2b318ee6e10f8c2853e73a83adc0ccb88995aa978d8a3408d492ab2ee671" +dependencies = [ + "ark-std 0.3.0", + "digest 0.9.0", +] + [[package]] name = "ark-serialize" version = "0.4.2" @@ -321,7 +631,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "adb7b85a02b83d2f22f89bd5cac66c9c89474240cb6207cb1efc16d098e822a5" dependencies = [ "ark-serialize-derive", - "ark-std", + "ark-std 0.4.0", "digest 0.10.7", "num-bigint", ] @@ -339,19 +649,24 @@ dependencies = [ [[package]] name = "ark-std" -version = "0.4.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94893f1e0c6eeab764ade8dc4c0db24caf4fe7cbbaafc0eba0a9030f447b5185" +checksum = "1df2c09229cbc5a028b1d70e00fdb2acee28b1055dfb5ca73eea49c5a25c4e7c" dependencies = [ "num-traits", - "rand", + "rand 0.8.5", ] [[package]] -name = "array-bytes" -version = "4.2.0" +name = "ark-std" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f52f63c5c1316a16a4b35eaac8b76a98248961a533f061684cb2a7cb0eafb6c6" +checksum = "94893f1e0c6eeab764ade8dc4c0db24caf4fe7cbbaafc0eba0a9030f447b5185" +dependencies = [ + "num-traits", + "rand 0.8.5", + "rayon", +] [[package]] name = "array-bytes" @@ -361,9 +676,9 @@ checksum = "5d5dde061bd34119e902bbb2d9b90c5692635cf59fb91d582c2b68043f1b8293" [[package]] name = "arrayref" -version = "0.3.7" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b4930d2cb77ce62f89ee5d5289b4ac049559b1c45539271f5ed4fdc7db34545" +checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" [[package]] name = "arrayvec" @@ -376,9 +691,9 @@ dependencies = [ [[package]] name = "arrayvec" -version = "0.7.4" +version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" [[package]] name = "asn1-rs" @@ -386,13 +701,29 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f6fd5ddaf0351dff5b8da21b2fb4ff8e08ddd02857f0bf69c47639106c0fff0" dependencies = [ - "asn1-rs-derive", - "asn1-rs-impl", + "asn1-rs-derive 0.4.0", + "asn1-rs-impl 0.1.0", + "displaydoc", + "nom", + "num-traits", + "rusticata-macros", + "thiserror 1.0.69", + "time", +] + +[[package]] +name = "asn1-rs" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5493c3bedbacf7fd7382c6346bbd66687d12bbaad3a89a2d2c303ee6cf20b048" +dependencies = [ + "asn1-rs-derive 0.5.1", + "asn1-rs-impl 0.2.0", "displaydoc", "nom", "num-traits", "rusticata-macros", - "thiserror", + "thiserror 1.0.69", "time", ] @@ -408,6 +739,18 @@ dependencies = [ "synstructure 0.12.6", ] +[[package]] +name = "asn1-rs-derive" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "965c2d33e53cb6b267e148a4cb0760bc01f4904c1cd4bb4002a085bb016d1490" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", + "synstructure 0.13.1", +] + [[package]] name = "asn1-rs-impl" version = "0.1.0" @@ -420,30 +763,43 @@ dependencies = [ ] [[package]] -name = "assert_matches" -version = "1.5.0" +name = "asn1-rs-impl" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b18050c2cd6fe86c3a76584ef5e0baf286d038cda203eb6223df2cc413565f7" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", +] + +[[package]] +name = "assert_matches" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9" [[package]] name = "asset-hub-rococo-emulated-chain" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "asset-hub-rococo-runtime", + "bp-bridge-hub-rococo", "cumulus-primitives-core", "emulated-integration-tests-common", "frame-support", "parachains-common", "rococo-emulated-chain", "sp-core", + "staging-xcm", "testnet-parachains-constants", ] [[package]] name = "asset-hub-rococo-runtime" -version = "0.12.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.22.4" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "assets-common", "bp-asset-hub-rococo", @@ -457,6 +813,7 @@ dependencies = [ "cumulus-pallet-xcmp-queue", "cumulus-primitives-aura", "cumulus-primitives-core", + "cumulus-primitives-storage-weight-reclaim", "cumulus-primitives-utility", "frame-benchmarking", "frame-executive", @@ -469,8 +826,10 @@ dependencies = [ "hex-literal 0.4.1", "log", "pallet-asset-conversion", + "pallet-asset-conversion-ops", "pallet-asset-conversion-tx-payment", "pallet-assets", + "pallet-assets-freezer", "pallet-aura", "pallet-authorship", "pallet-balances", @@ -482,7 +841,6 @@ dependencies = [ "pallet-nfts-runtime-api", "pallet-proxy", "pallet-session", - "pallet-state-trie-migration", "pallet-timestamp", "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", @@ -498,6 +856,7 @@ dependencies = [ "primitive-types", "rococo-runtime-constants", "scale-info", + "serde_json", "snowbridge-router-primitives", "sp-api", "sp-block-builder", @@ -508,7 +867,6 @@ dependencies = [ "sp-offchain", "sp-runtime", "sp-session", - "sp-std", "sp-storage", "sp-transaction-pool", "sp-version", @@ -519,22 +877,25 @@ dependencies = [ "staging-xcm-executor", "substrate-wasm-builder", "testnet-parachains-constants", + "xcm-runtime-apis", ] [[package]] name = "asset-test-utils" -version = "8.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "20.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "cumulus-pallet-parachain-system", "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", "frame-support", "frame-system", + "pallet-asset-conversion", "pallet-assets", "pallet-balances", "pallet-collator-selection", "pallet-session", + "pallet-timestamp", "pallet-xcm", "pallet-xcm-bridge-hub-router", "parachains-common", @@ -542,31 +903,31 @@ dependencies = [ "parity-scale-codec", "sp-io", "sp-runtime", - "sp-std", "staging-parachain-info", "staging-xcm", "staging-xcm-builder", "staging-xcm-executor", "substrate-wasm-builder", + "xcm-runtime-apis", ] [[package]] name = "assets-common" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.3" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "cumulus-primitives-core", "frame-support", "impl-trait-for-tuples", "log", "pallet-asset-conversion", + "pallet-assets", "pallet-xcm", "parachains-common", "parity-scale-codec", "scale-info", "sp-api", "sp-runtime", - "sp-std", "staging-xcm", "staging-xcm-builder", "staging-xcm-executor", @@ -593,19 +954,19 @@ dependencies = [ "concurrent-queue", "event-listener-strategy", "futures-core", - "pin-project-lite 0.2.14", + "pin-project-lite", ] [[package]] name = "async-executor" -version = "1.12.0" +version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8828ec6e544c02b0d6691d21ed9f9218d0384a82542855073c2a3f58304aaf0" +checksum = "30ca9a001c1e8ba5149f91a74362376cc6bc5b919d92d988668657bd570bdcec" dependencies = [ "async-task", "concurrent-queue", - "fastrand 2.1.0", - "futures-lite 2.3.0", + "fastrand 2.3.0", + "futures-lite 2.6.0", "slab", ] @@ -635,7 +996,7 @@ dependencies = [ "log", "parking", "polling 2.8.0", - "rustix 0.37.27", + "rustix 0.37.28", "slab", "socket2 0.4.10", "waker-fn", @@ -643,21 +1004,21 @@ dependencies = [ [[package]] name = "async-io" -version = "2.3.3" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d6baa8f0178795da0e71bc42c9e5d13261aac7ee549853162e66a241ba17964" +checksum = "43a2b323ccce0a1d90b449fd71f2a06ca7faa7c54c2751f06c9bd851fc061059" dependencies = [ "async-lock 3.4.0", "cfg-if", "concurrent-queue", "futures-io", - "futures-lite 2.3.0", + "futures-lite 2.6.0", "parking", - "polling 3.7.2", - "rustix 0.38.34", + "polling 3.7.4", + "rustix 0.38.44", "slab", "tracing", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -675,9 +1036,9 @@ version = "3.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff6e472cdea888a4bd64f342f09b3f50e1886d32afe8df3d663c01140b811b18" dependencies = [ - "event-listener 5.3.1", + "event-listener 5.4.0", "event-listener-strategy", - "pin-project-lite 0.2.14", + "pin-project-lite", ] [[package]] @@ -704,26 +1065,26 @@ dependencies = [ "cfg-if", "event-listener 3.1.0", "futures-lite 1.13.0", - "rustix 0.38.34", + "rustix 0.38.44", "windows-sys 0.48.0", ] [[package]] name = "async-signal" -version = "0.2.8" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "794f185324c2f00e771cd9f1ae8b5ac68be2ca7abb129a87afd6e86d228bc54d" +checksum = "637e00349800c0bdf8bfc21ebbc0b6524abea702b0da4168ac00d070d0c0b9f3" dependencies = [ - "async-io 2.3.3", + "async-io 2.4.0", "async-lock 3.4.0", "atomic-waker", "cfg-if", "futures-core", "futures-io", - "rustix 0.38.34", + "rustix 0.38.44", "signal-hook-registry", "slab", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -734,13 +1095,13 @@ checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" [[package]] name = "async-trait" -version = "0.1.80" +version = "0.1.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6fa2087f2753a7da8cc1c0dbfcf89579dd57458e36769de5ac750b4671737ca" +checksum = "e539d3fca749fcee5236ab05e93a52867dd549cc157c8cb7f99595f3cedffdb5" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] @@ -753,7 +1114,7 @@ dependencies = [ "futures-sink", "futures-util", "memchr", - "pin-project-lite 0.2.14", + "pin-project-lite", ] [[package]] @@ -791,24 +1152,46 @@ dependencies = [ ] [[package]] -name = "autocfg" +name = "attohttpc" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d9a9bf8b79a749ee0b911b91b671cc2b6c670bdbc7e3dfd537576ddc94bb2a2" +dependencies = [ + "http 0.2.12", + "log", + "url", +] + +[[package]] +name = "auto_impl" version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" +checksum = "ffdcb70bdbc4d478427380519163274ac86e52916e10f0a8889adf0f96d3fee7" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", +] + +[[package]] +name = "autocfg" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" [[package]] name = "backtrace" -version = "0.3.73" +version = "0.3.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cc23269a4f8976d0a4d2e7109211a419fe30e8d88d677cd60b6bc79c5732e0a" +checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a" dependencies = [ - "addr2line 0.22.0", - "cc", + "addr2line 0.24.2", "cfg-if", "libc", "miniz_oxide", - "object 0.36.0", + "object 0.36.7", "rustc-demangle", + "windows-targets 0.52.6", ] [[package]] @@ -842,24 +1225,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" [[package]] -name = "base64ct" -version = "1.6.0" +name = "base64" +version = "0.22.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" [[package]] -name = "beef" -version = "0.5.2" +name = "base64ct" +version = "1.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a8241f3ebb85c056b509d4327ad0358fbbba6ffb340bf388f26350aeda225b1" -dependencies = [ - "serde", -] +checksum = "89e25b6adfb930f02d1981565a6e5d9c547ac15a96606256d3b59040e5cd4ca3" [[package]] name = "binary-merkle-tree" -version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "15.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "hash-db", "log", @@ -886,33 +1266,54 @@ dependencies = [ "lazy_static", "lazycell", "peeking_take_while", - "prettyplease 0.2.20", + "prettyplease 0.2.32", "proc-macro2", "quote", "regex", - "rustc-hash", + "rustc-hash 1.1.0", "shlex", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "bip39" -version = "2.0.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93f2635620bf0b9d4576eb7bb9a38a55df78bd1205d26fa994b25911a69f212f" +checksum = "33415e24172c1b7d6066f6d999545375ab8e1d95421d6784bdfff9496f292387" dependencies = [ "bitcoin_hashes", - "rand", - "rand_core 0.6.4", - "serde", - "unicode-normalization", ] +[[package]] +name = "bit-set" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" + +[[package]] +name = "bitcoin-internals" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9425c3bf7089c983facbae04de54513cce73b41c7f9ff8c845b54e7bc64ebbfb" + [[package]] name = "bitcoin_hashes" -version = "0.11.0" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90064b8dee6815a6470d60bad07bbbaee885c0e12d04177138fa3291a01b7bc4" +checksum = "1930a4dabfebb8d7d9992db18ebe3ae2876f0a305fab206fd168df931ede293b" +dependencies = [ + "bitcoin-internals", + "hex-conservative", +] [[package]] name = "bitflags" @@ -922,9 +1323,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.5.0" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" +checksum = "5c8214115b7bf84099f1309324e63141d4c5d7cc26862f97a0a857dbefe165bd" [[package]] name = "bitvec" @@ -972,37 +1373,37 @@ dependencies = [ [[package]] name = "blake2b_simd" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23285ad32269793932e830392f2fe2f83e26488fd3ec778883a93c8323735780" +checksum = "06e903a20b159e944f91ec8499fe1e55651480c541ea0a584f5d967c49ad9d99" dependencies = [ "arrayref", - "arrayvec 0.7.4", - "constant_time_eq 0.3.0", + "arrayvec 0.7.6", + "constant_time_eq 0.3.1", ] [[package]] name = "blake2s_simd" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94230421e395b9920d23df13ea5d77a20e1725331f90fbbf6df6040b33f756ae" +checksum = "e90f7deecfac93095eb874a40febd69427776e24e1bd7f87f33ac62d6f0174df" dependencies = [ "arrayref", - "arrayvec 0.7.4", - "constant_time_eq 0.3.0", + "arrayvec 0.7.6", + "constant_time_eq 0.3.1", ] [[package]] name = "blake3" -version = "1.5.1" +version = "1.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30cca6d3674597c30ddf2c587bf8d9d65c9a84d2326d941cc79c9842dfe0ef52" +checksum = "3888aaa89e4b2a40fca9848e400f6a658a5a3978de7be858e209cafa8be9a4a0" dependencies = [ "arrayref", - "arrayvec 0.7.4", + "arrayvec 0.7.6", "cc", "cfg-if", - "constant_time_eq 0.3.0", + "constant_time_eq 0.3.1", ] [[package]] @@ -1032,15 +1433,15 @@ dependencies = [ "async-channel 2.3.1", "async-task", "futures-io", - "futures-lite 2.3.0", + "futures-lite 2.6.0", "piper", ] [[package]] name = "bounded-collections" -version = "0.2.0" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d32385ecb91a31bddaf908e8dcf4a15aef1bcd3913cc03ebfad02ff6d568abc1" +checksum = "64ad8a0bed7827f0b07a5d23cec2e58cc02038a99e4ca81616cb2bb2025f804d" dependencies = [ "log", "parity-scale-codec", @@ -1054,35 +1455,39 @@ version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68534a48cbf63a4b1323c433cf21238c9ec23711e0df13b08c33e5c2082663ce" dependencies = [ - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "bp-asset-hub-rococo" -version = "0.5.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.14.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bp-xcm-bridge-hub-router", "frame-support", "parity-scale-codec", "scale-info", + "sp-core", + "staging-xcm", ] [[package]] name = "bp-asset-hub-westend" -version = "0.4.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.13.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bp-xcm-bridge-hub-router", "frame-support", "parity-scale-codec", "scale-info", + "sp-core", + "staging-xcm", ] [[package]] name = "bp-bridge-hub-cumulus" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bp-messages", "bp-polkadot-core", @@ -1096,13 +1501,15 @@ dependencies = [ [[package]] name = "bp-bridge-hub-rococo" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bp-bridge-hub-cumulus", "bp-messages", "bp-runtime", + "bp-xcm-bridge-hub", "frame-support", + "parity-scale-codec", "sp-api", "sp-runtime", "sp-std", @@ -1110,13 +1517,15 @@ dependencies = [ [[package]] name = "bp-bridge-hub-westend" -version = "0.4.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.14.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bp-bridge-hub-cumulus", "bp-messages", "bp-runtime", + "bp-xcm-bridge-hub", "frame-support", + "parity-scale-codec", "sp-api", "sp-runtime", "sp-std", @@ -1124,8 +1533,8 @@ dependencies = [ [[package]] name = "bp-header-chain" -version = "0.8.2" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bp-runtime", "finality-grandpa", @@ -1141,8 +1550,8 @@ dependencies = [ [[package]] name = "bp-messages" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bp-header-chain", "bp-runtime", @@ -1151,13 +1560,14 @@ dependencies = [ "scale-info", "serde", "sp-core", + "sp-io", "sp-std", ] [[package]] name = "bp-parachains" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bp-header-chain", "bp-polkadot-core", @@ -1171,10 +1581,23 @@ dependencies = [ "sp-std", ] +[[package]] +name = "bp-polkadot" +version = "0.16.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "bp-header-chain", + "bp-polkadot-core", + "bp-runtime", + "frame-support", + "sp-api", + "sp-std", +] + [[package]] name = "bp-polkadot-core" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bp-messages", "bp-runtime", @@ -1191,12 +1614,16 @@ dependencies = [ [[package]] name = "bp-relayers" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ + "bp-header-chain", "bp-messages", + "bp-parachains", "bp-runtime", "frame-support", + "frame-system", + "pallet-utility", "parity-scale-codec", "scale-info", "sp-runtime", @@ -1205,8 +1632,8 @@ dependencies = [ [[package]] name = "bp-runtime" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-support", "frame-system", @@ -1228,8 +1655,8 @@ dependencies = [ [[package]] name = "bp-test-utils" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bp-header-chain", "bp-parachains", @@ -1248,27 +1675,96 @@ dependencies = [ [[package]] name = "bp-xcm-bridge-hub" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.4.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ + "bp-messages", + "bp-runtime", + "frame-support", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core", + "sp-io", "sp-std", + "staging-xcm", ] [[package]] name = "bp-xcm-bridge-hub-router" -version = "0.7.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.14.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime", + "staging-xcm", +] + +[[package]] +name = "bridge-hub-common" +version = "0.10.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ + "cumulus-primitives-core", + "frame-support", + "pallet-message-queue", "parity-scale-codec", "scale-info", + "snowbridge-core", + "sp-core", + "sp-runtime", + "sp-std", + "staging-xcm", +] + +[[package]] +name = "bridge-hub-test-utils" +version = "0.20.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "asset-test-utils", + "bp-header-chain", + "bp-messages", + "bp-parachains", + "bp-polkadot-core", + "bp-relayers", + "bp-runtime", + "bp-test-utils", + "cumulus-pallet-parachain-system", + "cumulus-pallet-xcmp-queue", + "frame-support", + "frame-system", + "impl-trait-for-tuples", + "log", + "pallet-balances", + "pallet-bridge-grandpa", + "pallet-bridge-messages", + "pallet-bridge-parachains", + "pallet-bridge-relayers", + "pallet-timestamp", + "pallet-utility", + "pallet-xcm", + "pallet-xcm-bridge-hub", + "parachains-common", + "parachains-runtimes-test-utils", + "parity-scale-codec", "sp-core", + "sp-io", + "sp-keyring", "sp-runtime", + "sp-std", + "sp-tracing", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", ] [[package]] name = "bridge-runtime-common" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.3" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bp-header-chain", "bp-messages", @@ -1276,11 +1772,8 @@ dependencies = [ "bp-polkadot-core", "bp-relayers", "bp-runtime", - "bp-xcm-bridge-hub", - "bp-xcm-bridge-hub-router", "frame-support", "frame-system", - "hash-db", "log", "pallet-bridge-grandpa", "pallet-bridge-messages", @@ -1290,14 +1783,12 @@ dependencies = [ "pallet-utility", "parity-scale-codec", "scale-info", - "sp-api", - "sp-core", "sp-io", "sp-runtime", "sp-std", "sp-trie", "staging-xcm", - "staging-xcm-builder", + "tuplex", ] [[package]] @@ -1326,15 +1817,15 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.16.0" +version = "3.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" +checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf" [[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" @@ -1344,9 +1835,9 @@ checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7" [[package]] name = "bytemuck" -version = "1.18.0" +version = "1.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94bbb0ad554ad961ddc5da507a12a29b14e4ae5bda06b19f575a3e6079d2e2ae" +checksum = "b6b1fc10dbac614ebc03540c9dbd60e83887fda27794998c6528f1782047d540" [[package]] name = "byteorder" @@ -1356,18 +1847,17 @@ 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" -version = "0.1.11+1.0.8" +version = "0.1.13+1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc" +checksum = "225bff33b2141874fe80d71e07d6eec4f85c5c216453dd96388240f96e1acc14" dependencies = [ "cc", - "libc", "pkg-config", ] @@ -1383,18 +1873,18 @@ dependencies = [ [[package]] name = "camino" -version = "1.1.7" +version = "1.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0ec6b951b160caa93cc0c7b209e5a3bff7aae9062213451ac99493cd844c239" +checksum = "8b96ec4966b5813e2c0507c1f86115c8c5abaadc3980879c3424042a02fd1ad3" dependencies = [ "serde", ] [[package]] name = "cargo-platform" -version = "0.1.8" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24b1f0365a6c6bb4020cd05806fd0d33c44d38046b8bd7f0e40814b9763cabfc" +checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea" dependencies = [ "serde", ] @@ -1407,23 +1897,29 @@ checksum = "eee4243f1f26fc7a42710e7439c149e2b10b05472f88090acce52632f231a73a" dependencies = [ "camino", "cargo-platform", - "semver 1.0.23", + "semver 1.0.26", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "cc" -version = "1.2.17" +version = "1.2.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fcb57c740ae1daf453ae85f16e37396f672b039e00d9d866e07ddb24e328e3a" +checksum = "04da6a0d40b948dfc4fa8f5bbf402b0fc1a64a28dbf7d12ffd683550f2c1b63a" dependencies = [ "jobserver", "libc", "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" @@ -1490,16 +1986,16 @@ dependencies = [ [[package]] name = "chrono" -version = "0.4.38" +version = "0.4.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" +checksum = "1a7964611d71df112cb1730f2ee67324fcf4d0fc6606acbbe9bfe06df124637c" dependencies = [ "android-tzdata", "iana-time-zone", "js-sys", "num-traits", "wasm-bindgen", - "windows-targets 0.52.5", + "windows-link", ] [[package]] @@ -1512,7 +2008,20 @@ dependencies = [ "multibase", "multihash 0.17.0", "serde", - "unsigned-varint", + "unsigned-varint 0.7.2", +] + +[[package]] +name = "cid" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd94671561e36e4e7de75f753f577edafb0e7c05d6e4547229fdf7938fbcd2c3" +dependencies = [ + "core2", + "multibase", + "multihash 0.18.1", + "serde", + "unsigned-varint 0.7.2", ] [[package]] @@ -1535,15 +2044,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "ckb-merkle-mountain-range" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56ccb671c5921be8a84686e6212ca184cb1d7c51cadcdbfcbd1cc3f042f5dfb8" -dependencies = [ - "cfg-if", -] - [[package]] name = "clang-sys" version = "1.8.1" @@ -1557,9 +2057,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.7" +version = "4.5.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5db83dced34638ad474f39f250d7fea9598bdd239eaced1bdf45d597da0f433f" +checksum = "eccb054f56cbd38340b380d4a8e69ef1f02f1af43db2f0cc817a4774d80ae071" dependencies = [ "clap_builder", "clap_derive", @@ -1567,9 +2067,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.7" +version = "4.5.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7e204572485eb3fbf28f871612191521df159bc3e15a9f5064c66dba3a8c05f" +checksum = "efd9466fac8543255d3b1fcad4762c5e116ffe808c8a3043d4263cd4fd4862a2" dependencies = [ "anstream", "anstyle", @@ -1580,27 +2080,27 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.5.5" +version = "4.5.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c780290ccf4fb26629baa7a1081e68ced113f1d3ec302fa5948f1c381ebf06c6" +checksum = "09176aae279615badda0765c0c0b3f6ed53f4709118af73cf4655d85d1530cd7" dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "clap_lex" -version = "0.7.1" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b82cf0babdbd58558212896d1a4272303a57bdb245c2bf1147185fb45640e70" +checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6" [[package]] name = "coarsetime" -version = "0.1.34" +version = "0.1.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13b3839cf01bb7960114be3ccf2340f541b6d0c81f8690b007b2b39f750f7e5d" +checksum = "91849686042de1b41cd81490edc83afbcb0abe5a9b6f2c4114f23ce8cca1bcf4" dependencies = [ "libc", "wasix", @@ -1609,34 +2109,65 @@ dependencies = [ [[package]] name = "codespan-reporting" -version = "0.11.1" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3538270d33cc669650c4b093848450d380def10c331d38c768e34cac80576e6e" +checksum = "fe6d2e5af09e8c8ad56c969f2157a3d4238cebc7c55f0a517728c38f7b200f81" dependencies = [ + "serde", "termcolor", "unicode-width", ] [[package]] -name = "colorchoice" -version = "1.0.1" +name = "color-print" +version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b6a852b24ab71dffc585bcb46eaf7959d175cb865a7152e35b348d1b2960422" +checksum = "3aa954171903797d5623e047d9ab69d91b493657917bdfb8c2c80ecaf9cdb6f4" +dependencies = [ + "color-print-proc-macro", +] [[package]] -name = "comfy-table" -version = "7.1.1" +name = "color-print-proc-macro" +version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b34115915337defe99b2aff5c2ce6771e5fbc4079f4b506301f5cf394c8452f7" +checksum = "692186b5ebe54007e45a59aea47ece9eb4108e141326c304cdc91699a7118a22" dependencies = [ - "strum 0.26.2", - "strum_macros 0.26.4", - "unicode-width", + "nom", + "proc-macro2", + "quote", + "syn 2.0.101", ] [[package]] -name = "common-path" -version = "1.0.0" +name = "colorchoice" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" + +[[package]] +name = "combine" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "comfy-table" +version = "7.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a65ebfec4fb190b6f90e944a817d60499ee0744e582530e2c9900a22e591d9a" +dependencies = [ + "unicode-segmentation", + "unicode-width", +] + +[[package]] +name = "common-path" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2382f75942f4b3be3690fe4f86365e9c853c1587d6ee58212cebf6e2a9ccd101" @@ -1651,15 +2182,28 @@ dependencies = [ [[package]] name = "console" -version = "0.15.8" +version = "0.15.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e1f83fc076bd6dd27517eacdf25fef6c4dfe5f1d7448bafaaf3a26f13b5e4eb" +checksum = "054ccb5b10f9f2cbf51eb355ca1d05c2d279ce1804688d0db74b4733a5aeafd8" dependencies = [ "encode_unicode", - "lazy_static", "libc", + "once_cell", "unicode-width", - "windows-sys 0.52.0", + "windows-sys 0.59.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]] @@ -1683,28 +2227,42 @@ version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e" dependencies = [ - "getrandom 0.2.15", + "getrandom 0.2.16", "once_cell", "tiny-keccak", ] [[package]] -name = "constant_time_eq" -version = "0.1.5" +name = "const_format" +version = "0.2.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" +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.3.0" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2" +checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" [[package]] -name = "constcat" +name = "constant_time_eq" version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd7e35aee659887cbfb97aaf227ac12cad1a9d7c71e55ff3376839ed4e282d08" +checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6" [[package]] name = "convert_case" @@ -1722,11 +2280,21 @@ 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.6" +version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" [[package]] name = "core2" @@ -1758,9 +2326,9 @@ dependencies = [ [[package]] name = "cpufeatures" -version = "0.2.12" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" dependencies = [ "libc", ] @@ -1789,7 +2357,7 @@ dependencies = [ "gimli 0.27.3", "hashbrown 0.13.2", "log", - "regalloc2", + "regalloc2 0.6.1", "smallvec", "target-lexicon", ] @@ -1863,6 +2431,21 @@ dependencies = [ "wasmtime-types", ] +[[package]] +name = "crc" +version = "3.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69e6e4d7b33a94f0991c26729976b10ebde1d34c3ee82408fb536164fa10d636" +dependencies = [ + "crc-catalog", +] + +[[package]] +name = "crc-catalog" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5" + [[package]] name = "crc32fast" version = "1.4.2" @@ -1874,9 +2457,9 @@ dependencies = [ [[package]] name = "crossbeam-deque" -version = "0.8.5" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d" +checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" dependencies = [ "crossbeam-epoch", "crossbeam-utils", @@ -1893,24 +2476,24 @@ dependencies = [ [[package]] name = "crossbeam-queue" -version = "0.3.11" +version = "0.3.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df0346b5d5e76ac2fe4e327c5fd1118d6be7c51dfb18f9b7922923f287471e35" +checksum = "0f58bbc28f91df819d0aa2a2c00cd19754769c2fad90579b3592b1c9ba7a3115" dependencies = [ "crossbeam-utils", ] [[package]] name = "crossbeam-utils" -version = "0.8.20" +version = "0.8.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" [[package]] name = "crunchy" -version = "0.2.2" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" +checksum = "43da5946c66ffcc7745f48db692ffbb10a83bfe0afd96235c5c2a4fb23994929" [[package]] name = "crypto-bigint" @@ -1920,7 +2503,7 @@ checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" dependencies = [ "generic-array 0.14.7", "rand_core 0.6.4", - "subtle 2.4.1", + "subtle 2.6.1", "zeroize", ] @@ -1952,17 +2535,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" dependencies = [ "generic-array 0.14.7", - "subtle 2.4.1", -] - -[[package]] -name = "crypto-mac" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1d1a86f49236c215f271d40892d5fc950490551400b02ef360692c29815c714" -dependencies = [ - "generic-array 0.14.7", - "subtle 2.4.1", + "subtle 2.6.1", ] [[package]] @@ -1995,8 +2568,8 @@ dependencies = [ [[package]] name = "cumulus-client-cli" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "clap", "parity-scale-codec", @@ -2012,8 +2585,8 @@ dependencies = [ [[package]] name = "cumulus-client-collator" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "cumulus-client-consensus-common", "cumulus-client-network", @@ -2035,8 +2608,8 @@ dependencies = [ [[package]] name = "cumulus-client-consensus-aura" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "cumulus-client-collator", @@ -2048,6 +2621,7 @@ dependencies = [ "cumulus-relay-chain-interface", "futures", "parity-scale-codec", + "parking_lot 0.12.3", "polkadot-node-primitives", "polkadot-node-subsystem", "polkadot-overseer", @@ -2058,6 +2632,7 @@ dependencies = [ "sc-consensus-babe", "sc-consensus-slots", "sc-telemetry", + "sc-utils", "schnellru", "sp-api", "sp-application-crypto", @@ -2072,13 +2647,14 @@ dependencies = [ "sp-state-machine", "sp-timestamp", "substrate-prometheus-endpoint", + "tokio", "tracing", ] [[package]] name = "cumulus-client-consensus-common" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "cumulus-client-pov-recovery", @@ -2100,14 +2676,15 @@ dependencies = [ "sp-runtime", "sp-timestamp", "sp-trie", + "sp-version", "substrate-prometheus-endpoint", "tracing", ] [[package]] name = "cumulus-client-consensus-proposer" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.16.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "anyhow", "async-trait", @@ -2116,13 +2693,36 @@ dependencies = [ "sp-inherents", "sp-runtime", "sp-state-machine", - "thiserror", + "thiserror 1.0.69", +] + +[[package]] +name = "cumulus-client-consensus-relay-chain" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "async-trait", + "cumulus-client-consensus-common", + "cumulus-primitives-core", + "cumulus-relay-chain-interface", + "futures", + "parking_lot 0.12.3", + "sc-consensus", + "sp-api", + "sp-block-builder", + "sp-blockchain", + "sp-consensus", + "sp-core", + "sp-inherents", + "sp-runtime", + "substrate-prometheus-endpoint", + "tracing", ] [[package]] name = "cumulus-client-network" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "cumulus-relay-chain-interface", @@ -2131,21 +2731,24 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.12.3", "polkadot-node-primitives", + "polkadot-node-subsystem", "polkadot-parachain-primitives", "polkadot-primitives", "sc-client-api", + "sp-api", "sp-blockchain", "sp-consensus", "sp-core", "sp-runtime", "sp-state-machine", + "sp-version", "tracing", ] [[package]] name = "cumulus-client-parachain-inherent" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.12.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2154,13 +2757,11 @@ dependencies = [ "cumulus-test-relay-sproof-builder", "parity-scale-codec", "sc-client-api", - "scale-info", "sp-api", "sp-crypto-hashing", "sp-inherents", "sp-runtime", "sp-state-machine", - "sp-std", "sp-storage", "sp-trie", "tracing", @@ -2168,8 +2769,8 @@ dependencies = [ [[package]] name = "cumulus-client-pov-recovery" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2181,19 +2782,21 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-overseer", "polkadot-primitives", - "rand", + "rand 0.8.5", "sc-client-api", "sc-consensus", + "sp-api", "sp-consensus", "sp-maybe-compressed-blob", "sp-runtime", + "sp-version", "tracing", ] [[package]] name = "cumulus-client-service" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.19.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "cumulus-client-cli", "cumulus-client-collator", @@ -2222,14 +2825,15 @@ dependencies = [ "sp-blockchain", "sp-consensus", "sp-core", + "sp-io", "sp-runtime", "sp-transaction-pool", ] [[package]] name = "cumulus-pallet-aura-ext" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.17.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "cumulus-pallet-parachain-system", "frame-support", @@ -2241,13 +2845,29 @@ dependencies = [ "sp-application-crypto", "sp-consensus-aura", "sp-runtime", - "sp-std", +] + +[[package]] +name = "cumulus-pallet-dmp-queue" +version = "0.17.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "cumulus-primitives-core", + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-io", + "sp-runtime", + "staging-xcm", ] [[package]] name = "cumulus-pallet-parachain-system" -version = "0.8.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.17.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bytes", "cumulus-pallet-parachain-system-proc-macro", @@ -2276,24 +2896,25 @@ dependencies = [ "sp-trie", "sp-version", "staging-xcm", + "staging-xcm-builder", "trie-db", ] [[package]] name = "cumulus-pallet-parachain-system-proc-macro" version = "0.6.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "proc-macro-crate 3.1.0", + "proc-macro-crate 3.3.0", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "cumulus-pallet-session-benchmarking" -version = "10.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "19.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -2301,13 +2922,27 @@ dependencies = [ "pallet-session", "parity-scale-codec", "sp-runtime", - "sp-std", +] + +[[package]] +name = "cumulus-pallet-solo-to-para" +version = "0.17.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "cumulus-pallet-parachain-system", + "frame-support", + "frame-system", + "pallet-sudo", + "parity-scale-codec", + "polkadot-primitives", + "scale-info", + "sp-runtime", ] [[package]] name = "cumulus-pallet-xcm" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.17.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "cumulus-primitives-core", "frame-support", @@ -2316,14 +2951,13 @@ dependencies = [ "scale-info", "sp-io", "sp-runtime", - "sp-std", "staging-xcm", ] [[package]] name = "cumulus-pallet-xcmp-queue" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.17.3" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bounded-collections", "bp-xcm-bridge-hub-router", @@ -2340,29 +2974,39 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std", "staging-xcm", + "staging-xcm-builder", "staging-xcm-executor", ] [[package]] -name = "cumulus-primitives-aura" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +name = "cumulus-ping" +version = "0.17.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ + "cumulus-pallet-xcm", + "cumulus-primitives-core", + "frame-support", + "frame-system", "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-primitives", + "scale-info", + "sp-runtime", + "staging-xcm", +] + +[[package]] +name = "cumulus-primitives-aura" +version = "0.15.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ "sp-api", "sp-consensus-aura", - "sp-runtime", - "sp-std", ] [[package]] name = "cumulus-primitives-core" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.16.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "parity-scale-codec", "polkadot-core-primitives", @@ -2371,15 +3015,14 @@ dependencies = [ "scale-info", "sp-api", "sp-runtime", - "sp-std", "sp-trie", "staging-xcm", ] [[package]] name = "cumulus-primitives-parachain-inherent" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.16.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2387,14 +3030,13 @@ dependencies = [ "scale-info", "sp-core", "sp-inherents", - "sp-std", "sp-trie", ] [[package]] name = "cumulus-primitives-proof-size-hostfunction" -version = "0.3.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.10.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "sp-externalities", "sp-runtime-interface", @@ -2402,22 +3044,35 @@ dependencies = [ ] [[package]] -name = "cumulus-primitives-timestamp" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +name = "cumulus-primitives-storage-weight-reclaim" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "cumulus-primitives-core", - "futures", + "cumulus-primitives-proof-size-hostfunction", + "docify", + "frame-support", + "frame-system", + "log", "parity-scale-codec", + "scale-info", + "sp-runtime", +] + +[[package]] +name = "cumulus-primitives-timestamp" +version = "0.16.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "cumulus-primitives-core", "sp-inherents", - "sp-std", "sp-timestamp", ] [[package]] name = "cumulus-primitives-utility" -version = "0.8.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.17.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "cumulus-primitives-core", "frame-support", @@ -2425,10 +3080,7 @@ dependencies = [ "pallet-asset-conversion", "parity-scale-codec", "polkadot-runtime-common", - "polkadot-runtime-parachains", - "sp-io", "sp-runtime", - "sp-std", "staging-xcm", "staging-xcm-builder", "staging-xcm-executor", @@ -2436,8 +3088,8 @@ dependencies = [ [[package]] name = "cumulus-relay-chain-inprocess-interface" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.19.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2460,8 +3112,8 @@ dependencies = [ [[package]] name = "cumulus-relay-chain-interface" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2473,33 +3125,28 @@ dependencies = [ "sp-api", "sp-blockchain", "sp-state-machine", - "thiserror", + "sp-version", + "thiserror 1.0.69", ] [[package]] name = "cumulus-relay-chain-minimal-node" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.19.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "array-bytes 6.2.3", + "array-bytes", "async-trait", "cumulus-primitives-core", "cumulus-relay-chain-interface", "cumulus-relay-chain-rpc-interface", "futures", - "parking_lot 0.12.3", - "polkadot-availability-recovery", - "polkadot-collator-protocol", "polkadot-core-primitives", "polkadot-network-bridge", - "polkadot-node-collation-generation", - "polkadot-node-core-chain-api", - "polkadot-node-core-prospective-parachains", - "polkadot-node-core-runtime-api", "polkadot-node-network-protocol", "polkadot-node-subsystem-util", "polkadot-overseer", "polkadot-primitives", + "polkadot-service", "sc-authority-discovery", "sc-client-api", "sc-network", @@ -2519,8 +3166,8 @@ dependencies = [ [[package]] name = "cumulus-relay-chain-rpc-interface" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2532,7 +3179,7 @@ dependencies = [ "parity-scale-codec", "pin-project", "polkadot-overseer", - "rand", + "rand 0.8.5", "sc-client-api", "sc-rpc-api", "sc-service", @@ -2549,7 +3196,7 @@ dependencies = [ "sp-state-machine", "sp-storage", "sp-version", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-util", "tracing", @@ -2558,44 +3205,30 @@ dependencies = [ [[package]] name = "cumulus-test-relay-sproof-builder" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.16.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "cumulus-primitives-core", "parity-scale-codec", "polkadot-primitives", "sp-runtime", "sp-state-machine", - "sp-std", "sp-trie", ] [[package]] name = "curve25519-dalek" -version = "3.2.0" +version = "4.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b9fdf9972b2bd6af2d913799d9ebc165ea4d2e65878e329d9c6b372c4491b61" -dependencies = [ - "byteorder", - "digest 0.9.0", - "rand_core 0.5.1", - "subtle 2.4.1", - "zeroize", -] - -[[package]] -name = "curve25519-dalek" -version = "4.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" +checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" dependencies = [ "cfg-if", "cpufeatures", "curve25519-dalek-derive", "digest 0.10.7", "fiat-crypto", - "rustc_version", - "subtle 2.4.1", + "rustc_version 0.4.1", + "subtle 2.6.1", "zeroize", ] @@ -2607,7 +3240,7 @@ checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] @@ -2625,59 +3258,87 @@ dependencies = [ [[package]] name = "cxx" -version = "1.0.124" +version = "1.0.158" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "273dcfd3acd4e1e276af13ed2a43eea7001318823e7a726a6b3ed39b4acc0b82" +checksum = "a71ea7f29c73f7ffa64c50b83c9fe4d3a6d4be89a86b009eb80d5a6d3429d741" dependencies = [ "cc", + "cxxbridge-cmd", "cxxbridge-flags", "cxxbridge-macro", + "foldhash", "link-cplusplus", ] [[package]] name = "cxx-build" -version = "1.0.124" +version = "1.0.158" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8b2766fbd92be34e9ed143898fce6c572dc009de39506ed6903e5a05b68914e" +checksum = "36a8232661d66dcf713394726157d3cfe0a89bfc85f52d6e9f9bbc2306797fe7" dependencies = [ "cc", "codespan-reporting", - "once_cell", "proc-macro2", "quote", "scratch", - "syn 2.0.66", + "syn 2.0.101", +] + +[[package]] +name = "cxxbridge-cmd" +version = "1.0.158" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f44296c8693e9ea226a48f6a122727f77aa9e9e338380cb021accaeeb7ee279" +dependencies = [ + "clap", + "codespan-reporting", + "proc-macro2", + "quote", + "syn 2.0.101", ] [[package]] name = "cxxbridge-flags" -version = "1.0.124" +version = "1.0.158" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "839fcd5e43464614ffaa989eaf1c139ef1f0c51672a1ed08023307fa1b909ccd" +checksum = "c42f69c181c176981ae44ba9876e2ea41ce8e574c296b38d06925ce9214fb8e4" [[package]] name = "cxxbridge-macro" -version = "1.0.124" +version = "1.0.158" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b2c1c1776b986979be68bb2285da855f8d8a35851a769fca8740df7c3d07877" +checksum = "8faff5d4467e0709448187df29ccbf3b0982cc426ee444a193f87b11afb565a8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "rustversion", + "syn 2.0.101", +] + +[[package]] +name = "dashmap" +version = "5.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" +dependencies = [ + "cfg-if", + "hashbrown 0.14.5", + "lock_api", + "once_cell", + "parking_lot_core 0.9.10", ] [[package]] name = "data-encoding" -version = "2.6.0" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8566979429cf69b49a5c740c60791108e86440e8be149bbea4fe54d2c32d6e2" +checksum = "2a2330da5de22e8a3cb63252ce2abb30116bf5265e89c0e01bc17015ce30a476" [[package]] name = "data-encoding-macro" -version = "0.1.15" +version = "0.1.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1559b6cba622276d6d63706db152618eeb15b89b3e4041446b05876e352e639" +checksum = "47ce6c96ea0102f01122a185683611bd5ac8d99e62bc59dd12e6bda344ee673d" dependencies = [ "data-encoding", "data-encoding-macro-internal", @@ -2685,12 +3346,12 @@ dependencies = [ [[package]] name = "data-encoding-macro-internal" -version = "0.1.13" +version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "332d754c0af53bc87c108fed664d121ecf59207ec4196041f04d6ab9002ad33f" +checksum = "8d162beedaa69905488a8da94f5ac3edb4dd4788b732fadb7bd120b2625c1976" dependencies = [ "data-encoding", - "syn 1.0.109", + "syn 2.0.101", ] [[package]] @@ -2719,9 +3380,9 @@ dependencies = [ [[package]] name = "der" -version = "0.7.9" +version = "0.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f55bf8e7b65898637379c1b74eb1551107c8294ed26d855ceb9fd1a09cfc9bc0" +checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb" dependencies = [ "const-oid", "zeroize", @@ -2733,7 +3394,21 @@ version = "8.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dbd676fbbab537128ef0278adb5576cf363cff6aa22a7b24effe97347cfab61e" dependencies = [ - "asn1-rs", + "asn1-rs 0.5.2", + "displaydoc", + "nom", + "num-bigint", + "num-traits", + "rusticata-macros", +] + +[[package]] +name = "der-parser" +version = "9.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5cd0a5c643689626bec213c4d8bd4d96acc8ffdb4ad4bb6bc16abf27d5f4b553" +dependencies = [ + "asn1-rs 0.6.2", "displaydoc", "nom", "num-bigint", @@ -2743,9 +3418,9 @@ dependencies = [ [[package]] name = "deranged" -version = "0.3.11" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4" +checksum = "9c9e6a11ca8224451684bc0d7d5a7adbf8f2fd6887261a1cfc3c0432f9d4068e" dependencies = [ "powerfmt", ] @@ -2763,37 +3438,47 @@ dependencies = [ [[package]] name = "derive-syn-parse" -version = "0.1.5" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e79116f119dd1dba1abf1f3405f03b9b0e79a27a3883864bfebded8a3dc768cd" +checksum = "d65d7ce8132b7c0e54497a4d9a55a1c2a0912a0d786cf894472ba818fba45762" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.101", ] [[package]] -name = "derive-syn-parse" -version = "0.2.0" +name = "derive_more" +version = "0.99.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d65d7ce8132b7c0e54497a4d9a55a1c2a0912a0d786cf894472ba818fba45762" +checksum = "6edb4b64a43d977b8e99788fe3a04d483834fba1215a7e02caa415b626497f7f" dependencies = [ + "convert_case", "proc-macro2", "quote", - "syn 2.0.66", + "rustc_version 0.4.1", + "syn 2.0.101", ] [[package]] name = "derive_more" -version = "0.99.18" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f33878137e4dafd7fa914ad4e259e18a4e8e532b9617a2d0150262bf53abfce" +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 = [ - "convert_case", "proc-macro2", "quote", - "rustc_version", - "syn 2.0.66", + "syn 2.0.101", + "unicode-xid", ] [[package]] @@ -2853,7 +3538,7 @@ dependencies = [ "block-buffer 0.10.4", "const-oid", "crypto-common", - "subtle 2.4.1", + "subtle 2.6.1", ] [[package]] @@ -3115,39 +3800,39 @@ dependencies = [ [[package]] name = "displaydoc" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "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 0.2.0", + "derive-syn-parse", "once_cell", "proc-macro2", "quote", "regex", - "syn 2.0.66", + "syn 2.0.101", "termcolor", - "toml 0.8.14", + "toml 0.8.21", "walkdir", ] @@ -3165,15 +3850,21 @@ checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2" [[package]] name = "dtoa" -version = "1.0.9" +version = "1.0.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6add3b8cff394282be81f3fc1a0605db594ed69890078ca6e2cab1c408bcf04" + +[[package]] +name = "dunce" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcbb2bf8e87535c23f7a8a321e364ce21462d0ff10cb6407820e8e96dfff6653" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" [[package]] name = "dyn-clonable" -version = "0.9.0" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e9232f0e607a262ceb9bd5141a3dfb3e4db6994b31989bbfd845878cba59fd4" +checksum = "a36efbb9bfd58e1723780aa04b61aba95ace6a05d9ffabfdb0b43672552f0805" dependencies = [ "dyn-clonable-impl", "dyn-clone", @@ -3181,20 +3872,20 @@ dependencies = [ [[package]] name = "dyn-clonable-impl" -version = "0.9.0" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "558e40ea573c374cf53507fd240b7ee2f5477df7cfebdb97323ec61c719399c5" +checksum = "7e8671d54058979a37a26f3511fbf8d198ba1aa35ffb202c42587d918d77213a" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.101", ] [[package]] name = "dyn-clone" -version = "1.0.17" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d6ef0072f8a535281e4876be788938b528e9a1d43900b82c2569af7da799125" +checksum = "1c7a8fb8a9fbf66c1f703fe16184d10ca0ee9d23be5b4436400408ba54a95005" [[package]] name = "ecdsa" @@ -3206,6 +3897,7 @@ dependencies = [ "digest 0.10.7", "elliptic-curve", "rfc6979", + "serdect", "signature", "spki", ] @@ -3226,26 +3918,12 @@ version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4a3daa8e81a3963a60642bcc1f90a670680bd4a77535faa384e9d1c79d620871" dependencies = [ - "curve25519-dalek 4.1.3", + "curve25519-dalek", "ed25519", "rand_core 0.6.4", "serde", "sha2 0.10.8", - "subtle 2.4.1", - "zeroize", -] - -[[package]] -name = "ed25519-zebra" -version = "3.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c24f403d068ad0b359e577a77f92392118be3f3c927538f2bb544a5ecd828c6" -dependencies = [ - "curve25519-dalek 3.2.0", - "hashbrown 0.12.3", - "hex", - "rand_core 0.6.4", - "sha2 0.9.9", + "subtle 2.6.1", "zeroize", ] @@ -3255,7 +3933,7 @@ version = "4.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d9ce6874da5d4415896cd45ffbc4d1cfc0c4f9c079427bd870742c30f2f65a9" dependencies = [ - "curve25519-dalek 4.1.3", + "curve25519-dalek", "ed25519", "hashbrown 0.14.5", "hex", @@ -3266,9 +3944,9 @@ dependencies = [ [[package]] name = "either" -version = "1.12.0" +version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3dca9240753cf90908d7e4aac30f630662b02aebaa1b58a3cadabdb23385b58b" +checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" [[package]] name = "elliptic-curve" @@ -3285,18 +3963,19 @@ dependencies = [ "pkcs8", "rand_core 0.6.4", "sec1", - "subtle 2.4.1", + "serdect", + "subtle 2.6.1", "zeroize", ] [[package]] name = "emulated-integration-tests-common" -version = "4.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "16.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "asset-test-utils", "bp-messages", - "bridge-runtime-common", + "bp-xcm-bridge-hub", "cumulus-pallet-parachain-system", "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", @@ -3306,15 +3985,17 @@ dependencies = [ "pallet-bridge-messages", "pallet-message-queue", "pallet-xcm", + "pallet-xcm-bridge-hub", "parachains-common", "parity-scale-codec", "paste", + "polkadot-parachain-primitives", "polkadot-primitives", "polkadot-runtime-parachains", - "polkadot-service", "sc-consensus-grandpa", "sp-authority-discovery", "sp-consensus-babe", + "sp-consensus-beefy", "sp-core", "sp-runtime", "staging-xcm", @@ -3323,9 +4004,9 @@ dependencies = [ [[package]] name = "encode_unicode" -version = "0.3.6" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" +checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0" [[package]] name = "enum-as-inner" @@ -3339,6 +4020,18 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "enum-as-inner" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1e6a265c649f3f5979b601d26f1d05ada116434c87741c9493cb56218f76cbc" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 2.0.101", +] + [[package]] name = "enum-iterator" version = "2.1.0" @@ -3356,45 +4049,45 @@ checksum = "a1ab991c1362ac86c61ab6f556cff143daa22e5a15e4e189df818b2fd19fe65b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "enumflags2" -version = "0.7.10" +version = "0.7.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d232db7f5956f3f14313dc2f87985c58bd2c695ce124c8cdd984e08e15ac133d" +checksum = "ba2f4b465f5318854c6f8dd686ede6c0a9dc67d4b1ac241cf0eb51521a309147" dependencies = [ "enumflags2_derive", ] [[package]] name = "enumflags2_derive" -version = "0.7.10" +version = "0.7.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de0d48a183585823424a4ce1aa132d174a6a81bd540895822eb4c8373a8e49e8" +checksum = "fc4caf64a58d7a6d65ab00639b046ff54399a39f5f2554728895ace4b297cd79" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "enumn" -version = "0.1.13" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6fd000fd6988e73bbe993ea3db9b1aa64906ab88766d654973924340c8cddb42" +checksum = "2f9ed6b3789237c8a0c1c505af1c7eb2c560df6186f01b098c3a1064ea532f38" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "env_filter" -version = "0.1.0" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a009aa4810eb158359dda09d0c87378e4bbb89b5a801f016885a4707ba24f7ea" +checksum = "186e05a59d4c50738528153b83b0b0194d3a29507dfec16eccd4b342903397d0" dependencies = [ "log", ] @@ -3414,9 +4107,9 @@ dependencies = [ [[package]] name = "env_logger" -version = "0.11.3" +version = "0.11.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38b35839ba51819680ba087cd351788c9a3c476841207e0b8cee0b04722343b9" +checksum = "13c863f0904021b108aa8b2f55046443e6b1ebde8fd4a15c399893aae4fa069f" dependencies = [ "anstream", "anstyle", @@ -3432,18 +4125,18 @@ checksum = "e48c92028aaa870e83d51c64e5d4e0b6981b360c522198c23959f219a4e1b15b" [[package]] name = "equivalent" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" [[package]] name = "errno" -version = "0.3.9" +version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" +checksum = "976dd42dc7e85965fe702eb8164f21f450704bdde31faefd6471dba214cb594e" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -3501,28 +4194,28 @@ checksum = "d93877bcde0eb80ca09131a08d23f0a5c18a620b01db137dba666d18cd9b30c2" dependencies = [ "concurrent-queue", "parking", - "pin-project-lite 0.2.14", + "pin-project-lite", ] [[package]] name = "event-listener" -version = "5.3.1" +version = "5.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6032be9bd27023a771701cc49f9f053c751055f71efb2e0ae5c15809093675ba" +checksum = "3492acde4c3fc54c845eaab3eed8bd00c7a7d881f78bfc801e43a93dec1331ae" dependencies = [ "concurrent-queue", "parking", - "pin-project-lite 0.2.14", + "pin-project-lite", ] [[package]] name = "event-listener-strategy" -version = "0.5.2" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f214dc438f977e6d4e3500aaa277f5ad94ca83fbbd9b1a15713ce2344ccc5a1" +checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93" dependencies = [ - "event-listener 5.3.1", - "pin-project-lite 0.2.14", + "event-listener 5.4.0", + "pin-project-lite", ] [[package]] @@ -3534,18 +4227,6 @@ dependencies = [ "futures", ] -[[package]] -name = "expander" -version = "0.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a718c0675c555c5f976fff4ea9e2c150fa06cefa201cadef87cfbf9324075881" -dependencies = [ - "blake3", - "fs-err", - "proc-macro2", - "quote", -] - [[package]] name = "expander" version = "2.2.1" @@ -3555,10 +4236,10 @@ dependencies = [ "blake2 0.10.6", "file-guard", "fs-err", - "prettyplease 0.2.20", + "prettyplease 0.2.32", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] @@ -3567,6 +4248,12 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" +[[package]] +name = "fallible-iterator" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649" + [[package]] name = "fastrand" version = "1.9.0" @@ -3578,33 +4265,54 @@ dependencies = [ [[package]] name = "fastrand" -version = "2.1.0" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" + +[[package]] +name = "fastrlp" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" +checksum = "139834ddba373bbdd213dffe02c8d110508dcf1726c2be27e8d1f7d7e1856418" +dependencies = [ + "arrayvec 0.7.6", + "auto_impl", + "bytes", +] + +[[package]] +name = "fastrlp" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce8dba4714ef14b8274c371879b175aa55b16b30f269663f19d576f380018dc4" +dependencies = [ + "arrayvec 0.7.6", + "auto_impl", + "bytes", +] [[package]] name = "fatality" -version = "0.0.6" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ad875162843b0d046276327afe0136e9ed3a23d5a754210fb6f1f33610d39ab" +checksum = "ec6f82451ff7f0568c6181287189126d492b5654e30a788add08027b6363d019" dependencies = [ "fatality-proc-macro", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "fatality-proc-macro" -version = "0.0.6" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5aa1e3ae159e592ad222dc90c5acbad632b527779ba88486abe92782ab268bd" +checksum = "eb42427514b063d97ce21d5199f36c0c307d981434a6be32582bc79fe5bd2303" dependencies = [ - "expander 0.0.4", - "indexmap 1.9.3", - "proc-macro-crate 1.1.3", + "expander", + "indexmap 2.9.0", + "proc-macro-crate 3.3.0", "proc-macro2", "quote", - "syn 1.0.109", - "thiserror", + "syn 2.0.101", ] [[package]] @@ -3614,17 +4322,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e182f7dbc2ef73d9ef67351c5fbbea084729c48362d3ce9dd44c28e32e277fe5" dependencies = [ "libc", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "ff" -version = "0.13.0" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ded41244b729663b1e574f1b4fb731469f69f79c17667b5d776b16cda0479449" +checksum = "c0b50bfb653653f9ca9095b427bed08ab8d75a137839d9ad64eb11810d5b6393" dependencies = [ "rand_core 0.6.4", - "subtle 2.4.1", + "subtle 2.6.1", ] [[package]] @@ -3655,21 +4363,21 @@ dependencies = [ [[package]] name = "filetime" -version = "0.2.23" +version = "0.2.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ee447700ac8aa0b2f2bd7bc4462ad686ba06baa6727ac149a2d6277f0d240fd" +checksum = "35c0522e981e68cbfa8c3f978441a5f34b30b96e146b33cd3359176b50fe8586" dependencies = [ "cfg-if", "libc", - "redox_syscall 0.4.1", - "windows-sys 0.52.0", + "libredox", + "windows-sys 0.59.0", ] [[package]] name = "finality-grandpa" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36530797b9bf31cd4ff126dcfee8170f86b00cfdcea3269d73133cc0415945c3" +checksum = "b4f8f43dc520133541781ec03a8cab158ae8b7f7169cdf22e9050aa6cf0fbdfc" dependencies = [ "either", "futures", @@ -3688,7 +4396,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "835c052cb0c08c1acf6ffd71c022172e18723949c8282f2b9f27efbc51e64534" dependencies = [ "byteorder", - "rand", + "rand 0.8.5", "rustc-hex", "static_assertions", ] @@ -3699,17 +4407,6 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" -[[package]] -name = "flate2" -version = "1.0.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f54427cfd1c7829e2a139fcefea601bf088ebca651d2bf53ebc600eac295dae" -dependencies = [ - "crc32fast", - "libz-sys", - "miniz_oxide", -] - [[package]] name = "float-cmp" version = "0.9.0" @@ -3734,10 +4431,31 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + +[[package]] +name = "foreign-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +dependencies = [ + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" + [[package]] name = "fork-tree" -version = "12.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "13.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "parity-scale-codec", ] @@ -3751,16 +4469,37 @@ dependencies = [ "percent-encoding", ] +[[package]] +name = "fortuples" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87630a8087e9cac4b7edfb6ee5e250ddca9112b57b6b17d8f5107375a3a8eace" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "forwarded-header-value" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8835f84f38484cc86f110a805655697908257fb9a7af005234060891557198e9" +dependencies = [ + "nonempty", + "thiserror 1.0.69", +] + [[package]] name = "fragile" -version = "2.0.0" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" +checksum = "28dd6caf6059519a65843af8fe2a3ae298b14b80179855aeb4adc2c1934ee619" [[package]] name = "frame-benchmarking" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-support", "frame-support-procedural", @@ -3777,18 +4516,17 @@ dependencies = [ "sp-io", "sp-runtime", "sp-runtime-interface", - "sp-std", "sp-storage", "static_assertions", ] [[package]] name = "frame-benchmarking-cli" -version = "33.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "43.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "Inflector", - "array-bytes 6.2.3", + "array-bytes", "chrono", "clap", "comfy-table", @@ -3797,14 +4535,15 @@ dependencies = [ "frame-system", "gethostname", "handlebars", - "itertools 0.10.5", + "itertools 0.11.0", "lazy_static", "linked-hash-map", "log", "parity-scale-codec", - "rand", + "rand 0.8.5", "rand_pcg", "sc-block-builder", + "sc-chain-spec", "sc-cli", "sc-client-api", "sc-client-db", @@ -3818,6 +4557,7 @@ dependencies = [ "sp-core", "sp-database", "sp-externalities", + "sp-genesis-builder", "sp-inherents", "sp-io", "sp-keystore", @@ -3826,25 +4566,39 @@ dependencies = [ "sp-storage", "sp-trie", "sp-wasm-interface", - "thiserror", + "thiserror 1.0.69", "thousands", ] +[[package]] +name = "frame-benchmarking-pallet-pov" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-io", + "sp-runtime", +] + [[package]] name = "frame-election-provider-solution-type" -version = "13.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "14.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "proc-macro-crate 3.1.0", + "proc-macro-crate 3.3.0", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "frame-election-provider-support" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-election-provider-solution-type", "frame-support", @@ -3855,14 +4609,14 @@ dependencies = [ "sp-core", "sp-npos-elections", "sp-runtime", - "sp-std", ] [[package]] name = "frame-executive" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ + "aquamarine", "frame-support", "frame-system", "frame-try-runtime", @@ -3872,7 +4626,6 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std", "sp-tracing", ] @@ -3890,10 +4643,10 @@ dependencies = [ [[package]] name = "frame-metadata-hash-extension" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.6.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "array-bytes 6.2.3", + "array-bytes", "docify", "frame-support", "frame-system", @@ -3903,35 +4656,13 @@ dependencies = [ "sp-runtime", ] -[[package]] -name = "frame-remote-externalities" -version = "0.36.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" -dependencies = [ - "futures", - "indicatif", - "jsonrpsee", - "log", - "parity-scale-codec", - "serde", - "sp-core", - "sp-crypto-hashing", - "sp-io", - "sp-runtime", - "sp-state-machine", - "spinners", - "substrate-rpc-client", - "tokio", - "tokio-retry", -] - [[package]] name = "frame-support" -version = "29.0.2" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.2.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "aquamarine", - "array-bytes 6.2.3", + "array-bytes", "bitflags 1.3.2", "docify", "environmental", @@ -3968,49 +4699,50 @@ dependencies = [ [[package]] name = "frame-support-procedural" -version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "30.0.6" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "Inflector", "cfg-expr", - "derive-syn-parse 0.1.5", - "expander 2.2.1", + "derive-syn-parse", + "docify", + "expander", "frame-support-procedural-tools", - "itertools 0.10.5", + "itertools 0.11.0", "macro_magic", - "proc-macro-warning", + "proc-macro-warning 1.84.1", "proc-macro2", "quote", "sp-crypto-hashing", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "frame-support-procedural-tools" -version = "10.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "13.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-support-procedural-tools-derive", - "proc-macro-crate 3.1.0", + "proc-macro-crate 3.3.0", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "frame-support-procedural-tools-derive" -version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "12.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "frame-system" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "cfg-if", "docify", @@ -4029,8 +4761,8 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -4039,28 +4771,27 @@ dependencies = [ "scale-info", "sp-core", "sp-runtime", - "sp-std", ] [[package]] name = "frame-system-rpc-runtime-api" -version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "34.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ + "docify", "parity-scale-codec", "sp-api", ] [[package]] name = "frame-try-runtime" -version = "0.35.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.44.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-support", "parity-scale-codec", "sp-api", "sp-runtime", - "sp-std", ] [[package]] @@ -4088,7 +4819,7 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "29f9df8a11882c4e3335eb2d18a0137c505d9ca927470b0cac9c6f0ae07d28f7" dependencies = [ - "rustix 0.38.34", + "rustix 0.38.44", "windows-sys 0.48.0", ] @@ -4100,9 +4831,9 @@ checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" [[package]] name = "futures" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0" +checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" dependencies = [ "futures-channel", "futures-core", @@ -4113,6 +4844,16 @@ dependencies = [ "futures-util", ] +[[package]] +name = "futures-bounded" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b07bbbe7d7e78809544c6f718d875627addc73a7c3582447abc052cd3dc67e0" +dependencies = [ + "futures-timer", + "futures-util", +] + [[package]] name = "futures-channel" version = "0.3.31" @@ -4131,9 +4872,9 @@ checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" [[package]] name = "futures-executor" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d" +checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" dependencies = [ "futures-core", "futures-task", @@ -4158,21 +4899,21 @@ dependencies = [ "futures-io", "memchr", "parking", - "pin-project-lite 0.2.14", + "pin-project-lite", "waker-fn", ] [[package]] name = "futures-lite" -version = "2.3.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52527eb5074e35e9339c6b4e8d12600c7128b68fb25dcb9fa9dec18f7c25f3a5" +checksum = "f5edaec856126859abb19ed65f39e90fea3a9574b9707f13539acf4abf7eb532" dependencies = [ - "fastrand 2.1.0", + "fastrand 2.3.0", "futures-core", "futures-io", "parking", - "pin-project-lite 0.2.14", + "pin-project-lite", ] [[package]] @@ -4183,18 +4924,17 @@ checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "futures-rustls" -version = "0.22.2" +version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2411eed028cdf8c8034eaf21f9915f956b6c3abec4d4c7949ee67f0721127bd" +checksum = "35bd3cf68c183738046838e300353e4716c674dc5e56890de4826801a6622a28" dependencies = [ "futures-io", - "rustls 0.20.9", - "webpki", + "rustls 0.21.12", ] [[package]] @@ -4228,7 +4968,7 @@ dependencies = [ "futures-sink", "futures-task", "memchr", - "pin-project-lite 0.2.14", + "pin-project-lite", "pin-utils", "slab", ] @@ -4274,24 +5014,25 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.1.16" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" +checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592" dependencies = [ "cfg-if", "libc", - "wasi 0.9.0+wasi-snapshot-preview1", + "wasi 0.11.0+wasi-snapshot-preview1", ] [[package]] name = "getrandom" -version = "0.2.15" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" +checksum = "73fea8450eea4bac3940448fb7ae50d91f034f941199fcd9d909a5a07aa455f0" dependencies = [ "cfg-if", "libc", - "wasi 0.11.0+wasi-snapshot-preview1", + "r-efi", + "wasi 0.14.2+wasi-0.2.4", ] [[package]] @@ -4300,7 +5041,7 @@ version = "0.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ea1015b5a70616b688dc230cfe50c8af89d972cb132d5a622814d29773b10b9" dependencies = [ - "rand", + "rand 0.8.5", "rand_core 0.6.4", ] @@ -4320,22 +5061,52 @@ version = "0.27.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6c80984affa11d98d1b88b66ac8853f143217b399d3c74116778ff8fdb4ed2e" dependencies = [ - "fallible-iterator", + "fallible-iterator 0.2.0", "indexmap 1.9.3", "stable_deref_trait", ] [[package]] name = "gimli" -version = "0.29.0" +version = "0.28.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" +dependencies = [ + "fallible-iterator 0.3.0", + "stable_deref_trait", +] + +[[package]] +name = "gimli" +version = "0.31.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40ecd4077b5ae9fd2e9e169b102c6c330d0605168eb0e8bf79952b256dbefffd" +checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" [[package]] name = "glob" -version = "0.3.1" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2" + +[[package]] +name = "governor" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" +checksum = "68a7f542ee6b35af73b06abc0dad1c1bae89964e4e253bc4b587b91c9637867b" +dependencies = [ + "cfg-if", + "dashmap", + "futures", + "futures-timer", + "no-std-compat", + "nonzero_ext", + "parking_lot 0.12.3", + "portable-atomic", + "quanta", + "rand 0.8.5", + "smallvec", + "spinning_top", +] [[package]] name = "group" @@ -4345,7 +5116,7 @@ checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" dependencies = [ "ff", "rand_core 0.6.4", - "subtle 2.4.1", + "subtle 2.6.1", ] [[package]] @@ -4359,8 +5130,27 @@ dependencies = [ "futures-core", "futures-sink", "futures-util", - "http", - "indexmap 2.2.6", + "http 0.2.12", + "indexmap 2.9.0", + "slab", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "h2" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75249d144030531f8dee69fe9cea04d3edf809a017ae445e2abdff6629e86633" +dependencies = [ + "atomic-waker", + "bytes", + "fnv", + "futures-core", + "futures-sink", + "http 1.3.1", + "indexmap 2.9.0", "slab", "tokio", "tokio-util", @@ -4369,16 +5159,16 @@ dependencies = [ [[package]] name = "handlebars" -version = "4.5.0" +version = "5.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "faa67bab9ff362228eb3d00bd024a4965d8231bbb7921167f0cfa66c6626b225" +checksum = "d08485b96a0e6393e9e4d1b8d48cf74ad6c063cd905eb33f42c1ce3f0377539b" dependencies = [ "log", "pest", "pest_derive", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -4425,6 +5215,17 @@ dependencies = [ "serde", ] +[[package]] +name = "hashbrown" +version = "0.15.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" +dependencies = [ + "allocator-api2", + "equivalent", + "foldhash", +] + [[package]] name = "hashlink" version = "0.8.4" @@ -4458,12 +5259,24 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fbf6a919d6cf397374f7dfeeea91d974c7c0a7221d0d0f4f20d859d329e53fcc" +[[package]] +name = "hermit-abi" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbd780fe5cc30f81464441920d82ac8740e2e46b29a6fad543ddd075229ce37e" + [[package]] name = "hex" version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" +[[package]] +name = "hex-conservative" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "212ab92002354b4819390025006c897e8140934349e8635c9b077f47b4dcbd20" + [[package]] name = "hex-literal" version = "0.3.4" @@ -4495,16 +5308,6 @@ dependencies = [ "digest 0.9.0", ] -[[package]] -name = "hmac" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a2a2320eb7ec0ebe8da8f744d7812d9fc4cb4d09344ac01898dbcb6a20ae69b" -dependencies = [ - "crypto-mac 0.11.1", - "digest 0.9.0", -] - [[package]] name = "hmac" version = "0.12.1" @@ -4527,22 +5330,22 @@ dependencies = [ [[package]] name = "home" -version = "0.5.9" +version = "0.5.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5" +checksum = "589533453244b0995c858700322199b2becb13b627df2851f64a2775d024abcf" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] name = "hostname" -version = "0.3.1" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c731c3e10504cc8ed35cfe2f1db4c9274c3d35fa486e3b31df46f068ef3e867" +checksum = "a56f203cd1c76362b69e3863fd987520ac36cf70a8c92627449b2f64a8cf7d65" dependencies = [ + "cfg-if", "libc", - "match_cfg", - "winapi", + "windows-link", ] [[package]] @@ -4556,6 +5359,17 @@ dependencies = [ "itoa", ] +[[package]] +name = "http" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4a85d31aea989eead29a3aaf9e1115a180df8282431156e533de47660892565" +dependencies = [ + "bytes", + "fnv", + "itoa", +] + [[package]] name = "http-body" version = "0.4.6" @@ -4563,21 +5377,38 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" dependencies = [ "bytes", - "http", - "pin-project-lite 0.2.14", + "http 0.2.12", + "pin-project-lite", ] [[package]] -name = "http-range-header" -version = "0.3.1" +name = "http-body" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +dependencies = [ + "bytes", + "http 1.3.1", +] + +[[package]] +name = "http-body-util" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "add0ab9360ddbd88cfeb3bd9574a1d85cfdfa14db10b3e21d3700dbc4328758f" +checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" +dependencies = [ + "bytes", + "futures-core", + "http 1.3.1", + "http-body 1.0.1", + "pin-project-lite", +] [[package]] name = "httparse" -version = "1.9.4" +version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fcc0b4a115bf80b728eb8ea024ad5bd707b615bfed49e0665b6e0f86fd082d9" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" [[package]] name = "httpdate" @@ -4587,34 +5418,54 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "humantime" -version = "2.1.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" +checksum = "9b112acc8b3adf4b107a8ec20977da0273a8c386765a3ec0229bd500a1443f9f" [[package]] name = "hyper" -version = "0.14.29" +version = "0.14.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f361cde2f109281a220d4307746cdfd5ee3f410da58a70377762396775634b33" +checksum = "41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7" dependencies = [ "bytes", "futures-channel", "futures-core", "futures-util", - "h2", - "http", - "http-body", + "h2 0.3.26", + "http 0.2.12", + "http-body 0.4.6", "httparse", "httpdate", "itoa", - "pin-project-lite 0.2.14", - "socket2 0.5.7", + "pin-project-lite", + "socket2 0.5.9", "tokio", "tower-service", "tracing", "want", ] +[[package]] +name = "hyper" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80" +dependencies = [ + "bytes", + "futures-channel", + "futures-util", + "h2 0.4.9", + "http 1.3.1", + "http-body 1.0.1", + "httparse", + "httpdate", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", +] + [[package]] name = "hyper-rustls" version = "0.24.2" @@ -4622,27 +5473,44 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590" dependencies = [ "futures-util", - "http", - "hyper", + "http 0.2.12", + "hyper 0.14.32", "log", "rustls 0.21.12", - "rustls-native-certs", + "rustls-native-certs 0.6.3", + "tokio", + "tokio-rustls 0.24.1", +] + +[[package]] +name = "hyper-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "497bbc33a26fdd4af9ed9c70d63f61cf56a938375fbb32df34db9b1cd6d643f2" +dependencies = [ + "bytes", + "futures-util", + "http 1.3.1", + "http-body 1.0.1", + "hyper 1.6.0", + "pin-project-lite", "tokio", - "tokio-rustls", + "tower-service", ] [[package]] name = "iana-time-zone" -version = "0.1.60" +version = "0.1.63" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" +checksum = "b0c919e5debc312ad217002b8048a17b7d83f80703865bbfcfebb0458b0b27d8" dependencies = [ "android_system_properties", "core-foundation-sys", "iana-time-zone-haiku", "js-sys", + "log", "wasm-bindgen", - "windows-core 0.52.0", + "windows-core 0.61.0", ] [[package]] @@ -4654,6 +5522,124 @@ dependencies = [ "cc", ] +[[package]] +name = "icu_collections" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locid" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_locid_transform" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_locid_transform_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_locid_transform_data" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7515e6d781098bf9f7205ab3fc7e9709d34554ae0b21ddbcb5febfa4bc7df11d" + +[[package]] +name = "icu_normalizer" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "utf16_iter", + "utf8_iter", + "write16", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5e8338228bdc8ab83303f16b797e177953730f601a96c25d10cb3ab0daa0cb7" + +[[package]] +name = "icu_properties" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locid_transform", + "icu_properties_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85fb8799753b75aee8d2a21d7c14d9f38921b54b3dbda10f5a3c7a7b82dba5e2" + +[[package]] +name = "icu_provider" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_provider_macros", + "stable_deref_trait", + "tinystr", + "writeable", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_provider_macros" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", +] + [[package]] name = "idna" version = "0.2.3" @@ -4667,14 +5653,35 @@ dependencies = [ [[package]] name = "idna" -version = "0.5.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" +checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c" dependencies = [ "unicode-bidi", "unicode-normalization", ] +[[package]] +name = "idna" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + [[package]] name = "if-addrs" version = "0.10.2" @@ -4687,23 +5694,46 @@ dependencies = [ [[package]] name = "if-watch" -version = "3.2.0" +version = "3.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6b0422c86d7ce0e97169cc42e04ae643caf278874a7a3c87b8150a220dc7e1e" +checksum = "cdf9d64cfcf380606e64f9a0bcf493616b65331199f984151a6fa11a7b3cde38" dependencies = [ - "async-io 2.3.3", - "core-foundation", + "async-io 2.4.0", + "core-foundation 0.9.4", "fnv", "futures", "if-addrs", "ipnet", "log", + "netlink-packet-core", + "netlink-packet-route", + "netlink-proto", + "netlink-sys", "rtnetlink", "system-configuration", "tokio", "windows", ] +[[package]] +name = "igd-next" +version = "0.14.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "064d90fec10d541084e7b39ead8875a5a80d9114a2b18791565253bae25f49e4" +dependencies = [ + "async-trait", + "attohttpc", + "bytes", + "futures", + "http 0.2.12", + "hyper 0.14.32", + "log", + "rand 0.8.5", + "tokio", + "url", + "xmltree", +] + [[package]] name = "impl-codec" version = "0.6.0" @@ -4744,13 +5774,13 @@ dependencies = [ [[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]] @@ -4785,12 +5815,12 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.2.6" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" +checksum = "cea70ddb795996207ad57735b50c5982d8844f38ba9ee5f1aedcfb708a2aa11e" dependencies = [ "equivalent", - "hashbrown 0.14.5", + "hashbrown 0.15.2", ] [[package]] @@ -4800,25 +5830,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e04e2fd2b8188ea827b32ef11de88377086d690286ab35747ef7f9bf3ccb590" [[package]] -name = "indicatif" -version = "0.17.8" +name = "inout" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "763a5a8f45087d6bcea4222e7b72c291a054edf80e4ef6efd2a4979878c7bea3" +checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" dependencies = [ - "console", - "instant", - "number_prefix", - "portable-atomic", - "unicode-width", -] - -[[package]] -name = "inout" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5" -dependencies = [ - "generic-array 0.14.7", + "generic-array 0.14.7", ] [[package]] @@ -4868,7 +5885,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", @@ -4876,35 +5893,94 @@ dependencies = [ [[package]] name = "ipnet" -version = "2.9.0" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" +checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" [[package]] name = "is-terminal" -version = "0.4.12" +version = "0.4.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f23ff5ef2b80d608d61efee834934d862cd92461afc0560dedf493e4c033738b" +checksum = "e04d7f318608d35d4b61ddd75cbdaee86b023ebe2bd5a66ee0915f0bf93095a9" dependencies = [ - "hermit-abi 0.3.9", + "hermit-abi 0.5.0", "libc", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] name = "is_executable" -version = "1.0.1" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa9acdc6d67b75e626ad644734e8bc6df893d9cd2a834129065d3dd6158ea9c8" +checksum = "d4a1b5bad6f9072935961dfbf1cced2f3d129963d091b6f69f007fe04e758ae2" dependencies = [ "winapi", ] [[package]] name = "is_terminal_polyfill" -version = "1.70.0" +version = "1.70.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8478577c03552c21db0e2724ffb8986a5ce7af88107e6be5d2ee6e158c12800" +checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" + +[[package]] +name = "ismp" +version = "0.2.2" +source = "git+https://github.com/polytope-labs/hyperbridge?branch=polkadot-stable2409#c7237a7388c210a60177ce74fc512e814d331da0" +dependencies = [ + "anyhow", + "derive_more 1.0.0", + "displaydoc", + "hex", + "parity-scale-codec", + "primitive-types", + "scale-info", + "serde", + "serde-hex-utils", + "thiserror 2.0.12", +] + +[[package]] +name = "ismp-parachain" +version = "16.1.0" +source = "git+https://github.com/polytope-labs/hyperbridge?branch=polkadot-stable2409#c7237a7388c210a60177ce74fc512e814d331da0" +dependencies = [ + "hex", + "hex-literal 0.4.1", + "ismp", + "log", + "pallet-ismp", + "parity-scale-codec", + "polkadot-sdk", + "primitive-types", + "scale-info", + "serde", + "substrate-state-machine", +] + +[[package]] +name = "ismp-parachain-inherent" +version = "16.1.0" +source = "git+https://github.com/polytope-labs/hyperbridge?branch=polkadot-stable2409#c7237a7388c210a60177ce74fc512e814d331da0" +dependencies = [ + "anyhow", + "async-trait", + "ismp", + "ismp-parachain", + "ismp-parachain-runtime-api", + "log", + "pallet-ismp-runtime-api", + "parity-scale-codec", + "polkadot-sdk", +] + +[[package]] +name = "ismp-parachain-runtime-api" +version = "16.0.0" +source = "git+https://github.com/polytope-labs/hyperbridge?branch=polkadot-stable2409#c7237a7388c210a60177ce74fc512e814d331da0" +dependencies = [ + "polkadot-sdk", +] [[package]] name = "itertools" @@ -4935,36 +6011,59 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.11" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" + +[[package]] +name = "jni" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" +dependencies = [ + "cesu8", + "cfg-if", + "combine", + "jni-sys", + "log", + "thiserror 1.0.69", + "walkdir", + "windows-sys 0.45.0", +] + +[[package]] +name = "jni-sys" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" +checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" [[package]] name = "jobserver" -version = "0.1.31" +version = "0.1.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2b099aaa34a9751c5bf0878add70444e1ed2dd73f347be99003d4577277de6e" +checksum = "38f262f097c174adebe41eb73d66ae9c06b2844fb0da69969647bbddd9b0538a" dependencies = [ + "getrandom 0.3.2", "libc", ] [[package]] name = "js-sys" -version = "0.3.69" +version = "0.3.77" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d" +checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f" dependencies = [ + "once_cell", "wasm-bindgen", ] [[package]] name = "jsonrpsee" -version = "0.20.3" +version = "0.24.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "affdc52f7596ccb2d7645231fc6163bb314630c989b64998f3699a28b4d5d4dc" +checksum = "37b26c20e2178756451cfeb0661fb74c47dd5988cb7e3939de7e9241fd604d42" dependencies = [ "jsonrpsee-core", - "jsonrpsee-http-client", "jsonrpsee-proc-macros", "jsonrpsee-server", "jsonrpsee-types", @@ -4975,19 +6074,22 @@ dependencies = [ [[package]] name = "jsonrpsee-client-transport" -version = "0.20.3" +version = "0.24.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5b005c793122d03217da09af68ba9383363caa950b90d3436106df8cabce935" +checksum = "bacb85abf4117092455e1573625e21b8f8ef4dec8aff13361140b2dc266cdff2" dependencies = [ + "base64 0.22.1", "futures-util", - "http", + "http 1.3.1", "jsonrpsee-core", "pin-project", - "rustls-native-certs", - "soketto", - "thiserror", + "rustls 0.23.26", + "rustls-pki-types", + "rustls-platform-verifier", + "soketto 0.8.1", + "thiserror 1.0.69", "tokio", - "tokio-rustls", + "tokio-rustls 0.26.2", "tokio-util", "tracing", "url", @@ -4995,78 +6097,63 @@ dependencies = [ [[package]] name = "jsonrpsee-core" -version = "0.20.3" +version = "0.24.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da2327ba8df2fdbd5e897e2b5ed25ce7f299d345b9736b6828814c3dbd1fd47b" +checksum = "456196007ca3a14db478346f58c7238028d55ee15c1df15115596e411ff27925" dependencies = [ - "anyhow", - "async-lock 2.8.0", "async-trait", - "beef", + "bytes", "futures-timer", "futures-util", - "hyper", + "http 1.3.1", + "http-body 1.0.1", + "http-body-util", "jsonrpsee-types", "parking_lot 0.12.3", - "rand", - "rustc-hash", - "serde", - "serde_json", - "soketto", - "thiserror", - "tokio", - "tracing", -] - -[[package]] -name = "jsonrpsee-http-client" -version = "0.20.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f80c17f62c7653ce767e3d7288b793dfec920f97067ceb189ebdd3570f2bc20" -dependencies = [ - "async-trait", - "hyper", - "hyper-rustls", - "jsonrpsee-core", - "jsonrpsee-types", + "pin-project", + "rand 0.8.5", + "rustc-hash 2.1.1", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", "tokio", - "tower", + "tokio-stream", "tracing", - "url", ] [[package]] name = "jsonrpsee-proc-macros" -version = "0.20.3" +version = "0.24.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29110019693a4fa2dbda04876499d098fa16d70eba06b1e6e2b3f1b251419515" +checksum = "5e65763c942dfc9358146571911b0cd1c361c2d63e2d2305622d40d36376ca80" dependencies = [ - "heck 0.4.1", - "proc-macro-crate 1.1.3", + "heck 0.5.0", + "proc-macro-crate 3.3.0", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.101", ] [[package]] name = "jsonrpsee-server" -version = "0.20.3" +version = "0.24.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82c39a00449c9ef3f50b84fc00fc4acba20ef8f559f07902244abf4c15c5ab9c" +checksum = "55e363146da18e50ad2b51a0a7925fc423137a0b1371af8235b1c231a0647328" dependencies = [ "futures-util", - "http", - "hyper", + "http 1.3.1", + "http-body 1.0.1", + "http-body-util", + "hyper 1.6.0", + "hyper-util", "jsonrpsee-core", "jsonrpsee-types", + "pin-project", "route-recognizer", "serde", "serde_json", - "soketto", - "thiserror", + "soketto 0.8.1", + "thiserror 1.0.69", "tokio", "tokio-stream", "tokio-util", @@ -5076,25 +6163,23 @@ dependencies = [ [[package]] name = "jsonrpsee-types" -version = "0.20.3" +version = "0.24.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5be0be325642e850ed0bdff426674d2e66b2b7117c9be23a7caef68a2902b7d9" +checksum = "08a8e70baf945b6b5752fc8eb38c918a48f1234daf11355e07106d963f860089" dependencies = [ - "anyhow", - "beef", + "http 1.3.1", "serde", "serde_json", - "thiserror", - "tracing", + "thiserror 1.0.69", ] [[package]] name = "jsonrpsee-ws-client" -version = "0.20.3" +version = "0.24.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bca9cb3933ccae417eb6b08c3448eb1cb46e39834e5b503e395e5e5bd08546c0" +checksum = "01b3323d890aa384f12148e8d2a1fd18eb66e9e7e825f9de4fa53bcc19b93eef" dependencies = [ - "http", + "http 1.3.1", "jsonrpsee-client-transport", "jsonrpsee-core", "jsonrpsee-types", @@ -5103,14 +6188,15 @@ dependencies = [ [[package]] name = "k256" -version = "0.13.3" +version = "0.13.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "956ff9b67e26e1a6a866cb758f12c6f8746208489e3e4a4b5580802f2f0a587b" +checksum = "f6e3919bbaa2945715f0bb6d3934a173d1e9a59ac23767fbaaef277265a7411b" dependencies = [ "cfg-if", "ecdsa", "elliptic-curve", "once_cell", + "serdect", "sha2 0.10.8", ] @@ -5123,6 +6209,16 @@ dependencies = [ "cpufeatures", ] +[[package]] +name = "keccak-asm" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "505d1856a39b200489082f90d897c3f07c455563880bc5952e38eabf731c83b6" +dependencies = [ + "digest 0.10.7", + "sha3-asm", +] + [[package]] name = "kestrel-runtime" version = "1.16.0-dev" @@ -5251,9 +6347,13 @@ dependencies = [ "frame-benchmarking", "frame-benchmarking-cli", "hex-literal 0.3.4", + "ismp-parachain-inherent", + "ismp-parachain-runtime-api", "jsonrpsee", "kilt-support", "log", + "pallet-ismp-rpc", + "pallet-ismp-runtime-api", "pallet-transaction-payment-rpc", "parity-scale-codec", "peregrine-runtime", @@ -5296,7 +6396,6 @@ dependencies = [ "substrate-build-script-utils", "substrate-frame-rpc-system", "substrate-prometheus-endpoint", - "try-runtime-cli", ] [[package]] @@ -5400,14 +6499,14 @@ checksum = "9baa9eeb6e315942429397e617a190f4fdc696ef1ee0342939d641029cbb4ea7" dependencies = [ "enumflags2", "libc", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "lazy_static" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "lazycell" @@ -5417,36 +6516,37 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.155" +version = "0.2.172" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" +checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa" [[package]] name = "libloading" -version = "0.8.3" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c2a198fb6b0eada2a8df47933734e6d35d350665a33a3593d7164fa52c75c19" +checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34" dependencies = [ "cfg-if", - "windows-targets 0.52.5", + "windows-targets 0.52.6", ] [[package]] name = "libm" -version = "0.2.8" +version = "0.2.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058" +checksum = "c9627da5196e5d8ed0b0495e61e518847578da83483c37288316d9b2e03a7f72" [[package]] name = "libp2p" -version = "0.51.4" +version = "0.52.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f35eae38201a993ece6bdc823292d6abd1bffed1c4d0f4a3517d2bd8e1d917fe" +checksum = "e94495eb319a85b70a68b85e2389a95bb3555c71c49025b78c691a854a7e6464" dependencies = [ "bytes", + "either", "futures", "futures-timer", - "getrandom 0.2.15", + "getrandom 0.2.16", "instant", "libp2p-allow-block-list", "libp2p-connection-limits", @@ -5463,18 +6563,21 @@ dependencies = [ "libp2p-request-response", "libp2p-swarm", "libp2p-tcp", + "libp2p-upnp", "libp2p-wasm-ext", "libp2p-websocket", "libp2p-yamux", - "multiaddr", + "multiaddr 0.18.2", "pin-project", + "rw-stream-sink", + "thiserror 1.0.69", ] [[package]] name = "libp2p-allow-block-list" -version = "0.1.1" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "510daa05efbc25184458db837f6f9a5143888f1caa742426d92e1833ddd38a50" +checksum = "55b46558c5c0bf99d3e2a1a38fd54ff5476ca66dd1737b12466a1824dd219311" dependencies = [ "libp2p-core", "libp2p-identity", @@ -5484,9 +6587,9 @@ dependencies = [ [[package]] name = "libp2p-connection-limits" -version = "0.1.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4caa33f1d26ed664c4fe2cca81a08c8e07d4c1c04f2f4ac7655c2dd85467fda0" +checksum = "2f5107ad45cb20b2f6c3628c7b6014b996fcb13a88053f4569c872c6e30abf58" dependencies = [ "libp2p-core", "libp2p-identity", @@ -5496,9 +6599,9 @@ dependencies = [ [[package]] name = "libp2p-core" -version = "0.39.2" +version = "0.40.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c1df63c0b582aa434fb09b2d86897fa2b419ffeccf934b36f87fcedc8e835c2" +checksum = "dd44289ab25e4c9230d9246c475a22241e301b23e8f4061d3bdef304a1a99713" dependencies = [ "either", "fnv", @@ -5507,29 +6610,31 @@ dependencies = [ "instant", "libp2p-identity", "log", - "multiaddr", - "multihash 0.17.0", + "multiaddr 0.18.2", + "multihash 0.19.3", "multistream-select", "once_cell", "parking_lot 0.12.3", "pin-project", "quick-protobuf", - "rand", + "rand 0.8.5", "rw-stream-sink", "smallvec", - "thiserror", - "unsigned-varint", + "thiserror 1.0.69", + "unsigned-varint 0.7.2", "void", ] [[package]] name = "libp2p-dns" -version = "0.39.0" +version = "0.40.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "146ff7034daae62077c415c2376b8057368042df6ab95f5432ad5e88568b1554" +checksum = "e6a18db73084b4da2871438f6239fef35190b05023de7656e877c18a00541a3b" dependencies = [ + "async-trait", "futures", "libp2p-core", + "libp2p-identity", "log", "parking_lot 0.12.3", "smallvec", @@ -5538,51 +6643,52 @@ dependencies = [ [[package]] name = "libp2p-identify" -version = "0.42.2" +version = "0.43.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5455f472243e63b9c497ff320ded0314254a9eb751799a39c283c6f20b793f3c" +checksum = "45a96638a0a176bec0a4bcaebc1afa8cf909b114477209d7456ade52c61cd9cd" dependencies = [ "asynchronous-codec", "either", "futures", + "futures-bounded", "futures-timer", "libp2p-core", "libp2p-identity", "libp2p-swarm", "log", - "lru 0.10.1", + "lru 0.12.5", "quick-protobuf", "quick-protobuf-codec", "smallvec", - "thiserror", + "thiserror 1.0.69", "void", ] [[package]] name = "libp2p-identity" -version = "0.1.3" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "276bb57e7af15d8f100d3c11cbdd32c6752b7eef4ba7a18ecf464972c07abcce" +checksum = "257b5621d159b32282eac446bed6670c39c7dc68a200a992d8f056afa0066f6d" dependencies = [ - "bs58 0.4.0", + "bs58 0.5.1", "ed25519-dalek", - "log", - "multiaddr", - "multihash 0.17.0", + "hkdf", + "multihash 0.19.3", "quick-protobuf", - "rand", + "rand 0.8.5", "sha2 0.10.8", - "thiserror", + "thiserror 1.0.69", + "tracing", "zeroize", ] [[package]] name = "libp2p-kad" -version = "0.43.3" +version = "0.44.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39d5ef876a2b2323d63c258e63c2f8e36f205fe5a11f0b3095d59635650790ff" +checksum = "16ea178dabba6dde6ffc260a8e0452ccdc8f79becf544946692fff9d412fc29d" dependencies = [ - "arrayvec 0.7.4", + "arrayvec 0.7.6", "asynchronous-codec", "bytes", "either", @@ -5595,20 +6701,21 @@ dependencies = [ "libp2p-swarm", "log", "quick-protobuf", - "rand", + "quick-protobuf-codec", + "rand 0.8.5", "sha2 0.10.8", "smallvec", - "thiserror", + "thiserror 1.0.69", "uint", - "unsigned-varint", + "unsigned-varint 0.7.2", "void", ] [[package]] name = "libp2p-mdns" -version = "0.43.1" +version = "0.44.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19983e1f949f979a928f2c603de1cf180cc0dc23e4ac93a62651ccb18341460b" +checksum = "42a2567c305232f5ef54185e9604579a894fd0674819402bb0ac0246da82f52a" dependencies = [ "data-encoding", "futures", @@ -5617,73 +6724,79 @@ dependencies = [ "libp2p-identity", "libp2p-swarm", "log", - "rand", + "rand 0.8.5", "smallvec", - "socket2 0.4.10", + "socket2 0.5.9", "tokio", - "trust-dns-proto", + "trust-dns-proto 0.22.0", "void", ] [[package]] name = "libp2p-metrics" -version = "0.12.0" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a42ec91e227d7d0dafa4ce88b333cdf5f277253873ab087555c92798db2ddd46" +checksum = "239ba7d28f8d0b5d77760dc6619c05c7e88e74ec8fbbe97f856f20a56745e620" dependencies = [ + "instant", "libp2p-core", "libp2p-identify", + "libp2p-identity", "libp2p-kad", "libp2p-ping", "libp2p-swarm", + "once_cell", "prometheus-client", ] [[package]] name = "libp2p-noise" -version = "0.42.2" +version = "0.43.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c3673da89d29936bc6435bafc638e2f184180d554ce844db65915113f86ec5e" +checksum = "d2eeec39ad3ad0677551907dd304b2f13f17208ccebe333bef194076cd2e8921" dependencies = [ "bytes", - "curve25519-dalek 3.2.0", + "curve25519-dalek", "futures", "libp2p-core", "libp2p-identity", "log", + "multiaddr 0.18.2", + "multihash 0.19.3", "once_cell", "quick-protobuf", - "rand", + "rand 0.8.5", "sha2 0.10.8", "snow", "static_assertions", - "thiserror", - "x25519-dalek 1.1.1", + "thiserror 1.0.69", + "x25519-dalek", "zeroize", ] [[package]] name = "libp2p-ping" -version = "0.42.0" +version = "0.43.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e57759c19c28a73ef1eb3585ca410cefb72c1a709fcf6de1612a378e4219202" +checksum = "e702d75cd0827dfa15f8fd92d15b9932abe38d10d21f47c50438c71dd1b5dae3" dependencies = [ "either", "futures", "futures-timer", "instant", "libp2p-core", + "libp2p-identity", "libp2p-swarm", "log", - "rand", + "rand 0.8.5", "void", ] [[package]] name = "libp2p-quic" -version = "0.7.0-alpha.3" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6b26abd81cd2398382a1edfe739b539775be8a90fa6914f39b2ab49571ec735" +checksum = "130d451d83f21b81eb7b35b360bc7972aeafb15177784adc56528db082e6b927" dependencies = [ "bytes", "futures", @@ -5694,18 +6807,20 @@ dependencies = [ "libp2p-tls", "log", "parking_lot 0.12.3", - "quinn-proto", - "rand", - "rustls 0.20.9", - "thiserror", + "quinn 0.10.2", + "rand 0.8.5", + "ring 0.16.20", + "rustls 0.21.12", + "socket2 0.5.9", + "thiserror 1.0.69", "tokio", ] [[package]] name = "libp2p-request-response" -version = "0.24.1" +version = "0.25.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ffdb374267d42dc5ed5bc53f6e601d4a64ac5964779c6e40bb9e4f14c1e30d5" +checksum = "d8e3b4d67870478db72bac87bfc260ee6641d0734e0e3e275798f089c3fecfd4" dependencies = [ "async-trait", "futures", @@ -5713,15 +6828,17 @@ dependencies = [ "libp2p-core", "libp2p-identity", "libp2p-swarm", - "rand", + "log", + "rand 0.8.5", "smallvec", + "void", ] [[package]] name = "libp2p-swarm" -version = "0.42.2" +version = "0.43.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "903b3d592d7694e56204d211f29d31bc004be99386644ba8731fc3e3ef27b296" +checksum = "580189e0074af847df90e75ef54f3f30059aedda37ea5a1659e8b9fca05c0141" dependencies = [ "either", "fnv", @@ -5732,7 +6849,9 @@ dependencies = [ "libp2p-identity", "libp2p-swarm-derive", "log", - "rand", + "multistream-select", + "once_cell", + "rand 0.8.5", "smallvec", "tokio", "void", @@ -5740,36 +6859,39 @@ dependencies = [ [[package]] name = "libp2p-swarm-derive" -version = "0.32.0" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fba456131824ab6acd4c7bf61e9c0f0a3014b5fc9868ccb8e10d344594cdc4f" +checksum = "c4d5ec2a3df00c7836d7696c136274c9c59705bac69133253696a6c932cd1d74" dependencies = [ "heck 0.4.1", + "proc-macro-warning 0.4.2", + "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.101", ] [[package]] name = "libp2p-tcp" -version = "0.39.0" +version = "0.40.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33d33698596d7722d85d3ab0c86c2c322254fce1241e91208e3679b4eb3026cf" +checksum = "b558dd40d1bcd1aaaed9de898e9ec6a436019ecc2420dd0016e712fbb61c5508" dependencies = [ "futures", "futures-timer", "if-watch", "libc", "libp2p-core", + "libp2p-identity", "log", - "socket2 0.4.10", + "socket2 0.5.9", "tokio", ] [[package]] name = "libp2p-tls" -version = "0.1.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff08d13d0dc66e5e9ba6279c1de417b84fa0d0adc3b03e5732928c180ec02781" +checksum = "8218d1d5482b122ccae396bbf38abdcb283ecc96fa54760e1dfd251f0546ac61" dependencies = [ "futures", "futures-rustls", @@ -5777,56 +6899,74 @@ dependencies = [ "libp2p-identity", "rcgen", "ring 0.16.20", - "rustls 0.20.9", - "thiserror", - "webpki", - "x509-parser", + "rustls 0.21.12", + "rustls-webpki 0.101.7", + "thiserror 1.0.69", + "x509-parser 0.15.1", "yasna", ] +[[package]] +name = "libp2p-upnp" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82775a47b34f10f787ad3e2a22e2c1541e6ebef4fe9f28f3ac553921554c94c1" +dependencies = [ + "futures", + "futures-timer", + "igd-next", + "libp2p-core", + "libp2p-swarm", + "log", + "tokio", + "void", +] + [[package]] name = "libp2p-wasm-ext" -version = "0.39.0" +version = "0.40.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77dff9d32353a5887adb86c8afc1de1a94d9e8c3bc6df8b2201d7cdf5c848f43" +checksum = "1e5d8e3a9e07da0ef5b55a9f26c009c8fb3c725d492d8bb4b431715786eea79c" dependencies = [ "futures", "js-sys", "libp2p-core", - "parity-send-wrapper", + "send_wrapper", "wasm-bindgen", "wasm-bindgen-futures", ] [[package]] name = "libp2p-websocket" -version = "0.41.0" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "111273f7b3d3510524c752e8b7a5314b7f7a1fee7e68161c01a7d72cbb06db9f" +checksum = "004ee9c4a4631435169aee6aad2f62e3984dc031c43b6d29731e8e82a016c538" dependencies = [ "either", "futures", "futures-rustls", "libp2p-core", + "libp2p-identity", "log", "parking_lot 0.12.3", - "quicksink", + "pin-project-lite", "rw-stream-sink", - "soketto", + "soketto 0.8.1", + "thiserror 1.0.69", "url", "webpki-roots", ] [[package]] name = "libp2p-yamux" -version = "0.43.1" +version = "0.44.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dcd21d950662700a385d4c6d68e2f5f54d778e97068cdd718522222ef513bda" +checksum = "8eedcb62824c4300efb9cfd4e2a6edaf3ca097b9e68b36dabe45a44469fd6a85" dependencies = [ "futures", "libp2p-core", "log", - "thiserror", + "thiserror 1.0.69", "yamux", ] @@ -5836,8 +6976,9 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" dependencies = [ - "bitflags 2.5.0", + "bitflags 2.9.0", "libc", + "redox_syscall 0.5.11", ] [[package]] @@ -5857,18 +6998,18 @@ dependencies = [ [[package]] name = "libsecp256k1" -version = "0.7.1" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95b09eff1b35ed3b33b877ced3a691fc7a481919c7e29c53c906226fcf55e2a1" +checksum = "e79019718125edc905a079a70cfa5f3820bc76139fc91d6f9abc27ea2a887139" dependencies = [ "arrayref", - "base64 0.13.1", + "base64 0.22.1", "digest 0.9.0", "hmac-drbg", "libsecp256k1-core", "libsecp256k1-gen-ecmult", "libsecp256k1-gen-genmult", - "rand", + "rand 0.8.5", "serde", "sha2 0.9.9", "typenum", @@ -5882,7 +7023,7 @@ checksum = "5be9b9bb642d8522a44d533eab56c16c738301965504753b03ad1de3425d5451" dependencies = [ "crunchy", "digest 0.9.0", - "subtle 2.4.1", + "subtle 2.6.1", ] [[package]] @@ -5905,9 +7046,9 @@ dependencies = [ [[package]] name = "libz-sys" -version = "1.1.18" +version = "1.1.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c15da26e5af7e25c90b37a2d75cdbf940cf4a55316de9d84c679c9b8bfabf82e" +checksum = "8b70e7a7df205e92a1a4cd9aaae7898dac0aa555503cc0a649494d0d60e7651d" dependencies = [ "cc", "pkg-config", @@ -5916,9 +7057,9 @@ dependencies = [ [[package]] name = "link-cplusplus" -version = "1.0.9" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d240c6f7e1ba3a28b0249f774e6a9dd0175054b52dfbb61b16eb8505c3785c9" +checksum = "4a6f6da007f968f9def0d65a05b187e2960183de70c160204ecfccf0ee330212" dependencies = [ "cc", ] @@ -5931,18 +7072,18 @@ checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f" [[package]] name = "linked_hash_set" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47186c6da4d81ca383c7c47c1bfc80f4b95f4720514d860a5407aaf4233f9588" +checksum = "bae85b5be22d9843c80e5fc80e9b64c8a3b1f98f867c709956eca3efff4e92e2" dependencies = [ "linked-hash-map", ] [[package]] name = "linregress" -version = "0.5.3" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4de04dcecc58d366391f9920245b85ffa684558a5ef6e7736e754347c3aea9c2" +checksum = "a9eda9dcf4f2a99787827661f312ac3219292549c2ee992bf9a6248ffb066bf7" dependencies = [ "nalgebra", ] @@ -5961,9 +7102,15 @@ checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" [[package]] name = "linux-raw-sys" -version = "0.4.14" +version = "0.4.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" + +[[package]] +name = "linux-raw-sys" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" +checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12" [[package]] name = "lioness" @@ -5977,6 +7124,67 @@ dependencies = [ "keystream", ] +[[package]] +name = "litemap" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23fb14cb19457329c82206317a5663005a4d404783dc74f4252769b0d5f42856" + +[[package]] +name = "litep2p" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f46c51c205264b834ceed95c8b195026e700494bc3991aaba3b4ea9e20626d9" +dependencies = [ + "async-trait", + "bs58 0.4.0", + "bytes", + "cid 0.10.1", + "ed25519-dalek", + "futures", + "futures-timer", + "hex-literal 0.4.1", + "indexmap 2.9.0", + "libc", + "mockall 0.12.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 0.8.5", + "rcgen", + "ring 0.16.20", + "rustls 0.20.9", + "serde", + "sha2 0.10.8", + "simple-dns", + "smallvec", + "snow", + "socket2 0.5.9", + "static_assertions", + "str0m", + "thiserror 1.0.69", + "tokio", + "tokio-stream", + "tokio-tungstenite", + "tokio-util", + "tracing", + "trust-dns-resolver", + "uint", + "unsigned-varint 0.8.0", + "url", + "webpki", + "x25519-dalek", + "x509-parser 0.16.0", + "yasna", + "zeroize", +] + [[package]] name = "lock_api" version = "0.4.12" @@ -5989,9 +7197,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.21" +version = "0.4.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" +checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94" [[package]] name = "lru" @@ -6004,18 +7212,18 @@ dependencies = [ [[package]] name = "lru" -version = "0.10.1" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "718e8fae447df0c7e1ba7f5189829e63fd536945c8988d61444c19039f16b670" -dependencies = [ - "hashbrown 0.13.2", -] +checksum = "a4a83fb7698b3643a0e34f9ae6f2e8f0178c0fd42f8b59d493aa271ff3a5bf21" [[package]] name = "lru" -version = "0.11.1" +version = "0.12.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a83fb7698b3643a0e34f9ae6f2e8f0178c0fd42f8b59d493aa271ff3a5bf21" +checksum = "234cf4f4a04dc1f57e24b96cc0cd600cf2af460d4161ac5ecdd0af8e1f3b2a38" +dependencies = [ + "hashbrown 0.15.2", +] [[package]] name = "lru-cache" @@ -6028,19 +7236,18 @@ dependencies = [ [[package]] name = "lz4" -version = "1.25.0" +version = "1.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6eab492fe7f8651add23237ea56dbf11b3c4ff762ab83d40a47f11433421f91" +checksum = "a20b523e860d03443e98350ceaac5e71c6ba89aea7d960769ec3ce37f4de5af4" dependencies = [ - "libc", "lz4-sys", ] [[package]] name = "lz4-sys" -version = "1.9.5" +version = "1.11.1+lz4-1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9764018d143cc854c9f17f0b907de70f14393b1f502da6375dce70f00514eb3" +checksum = "6bd8c0d6c6ed0cd30b3652886bb8711dc4bb01d637a68105a3d5158039b418e6" dependencies = [ "cc", "libc", @@ -6057,81 +7264,60 @@ dependencies = [ [[package]] name = "macro_magic" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e03844fc635e92f3a0067e25fa4bf3e3dbf3f2927bf3aa01bb7bc8f1c428949d" +checksum = "cc33f9f0351468d26fbc53d9ce00a096c8522ecb42f19b50f34f2c422f76d21d" dependencies = [ "macro_magic_core", "macro_magic_macros", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "macro_magic_core" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "468155613a44cfd825f1fb0ffa532b018253920d404e6fca1e8d43155198a46d" +checksum = "1687dc887e42f352865a393acae7cf79d98fab6351cde1f58e9e057da89bf150" dependencies = [ "const-random", - "derive-syn-parse 0.1.5", + "derive-syn-parse", "macro_magic_core_macros", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "macro_magic_core_macros" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ea73aa640dc01d62a590d48c0c3521ed739d53b27f919b25c3551e233481654" +checksum = "b02abfe41815b5bd98dbd4260173db2c116dda171dc0fe7838cb206333b83308" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "macro_magic_macros" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef9d79ae96aaba821963320eb2b6e34d17df1e5a83d8a1985c29cc5be59577b3" +checksum = "73ea28ee64b88876bf45277ed9a5817c1817df061a74f2b988971a12570e5869" dependencies = [ "macro_magic_core", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] -name = "maplit" -version = "1.0.2" +name = "matchers" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d" - -[[package]] -name = "match_cfg" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffbee8634e0d45d258acb448e7eaab3fce7a0a467395d4d9f228e3c1f01fb2e4" - -[[package]] -name = "matchers" -version = "0.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f099785f7595cc4b4553a174ce30dd7589ef93391ff414dbb67f62392b9e0ce1" -dependencies = [ - "regex-automata 0.1.10", -] - -[[package]] -name = "matchers" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558" -dependencies = [ - "regex-automata 0.1.10", -] +checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558" +dependencies = [ + "regex-automata 0.1.10", +] [[package]] name = "matches" @@ -6141,9 +7327,9 @@ checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5" [[package]] name = "matrixmultiply" -version = "0.3.8" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7574c1cf36da4798ab73da5b215bbf444f50718207754cb522201d78d1cd0ff2" +checksum = "9380b911e3e96d10c1f415da0876389aaf1b56759054eeb0de7df940c456ba1a" dependencies = [ "autocfg", "rawpointer", @@ -6161,7 +7347,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2cffa4ad52c6f791f4f8b15f0c05f9824b2ced1160e88cc393d64fff9a8ac64" dependencies = [ - "rustix 0.38.34", + "rustix 0.38.44", ] [[package]] @@ -6175,9 +7361,9 @@ dependencies = [ [[package]] name = "memmap2" -version = "0.9.4" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe751422e4a8caa417e13c3ea66452215d7d63e19e604f4980461212f3ae1322" +checksum = "fd3f7eed9d3848f8b98834af67102b720745c4ec028fcd0aa0239277e7de374f" dependencies = [ "libc", ] @@ -6206,7 +7392,7 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f313fcff1d2a4bcaa2deeaa00bf7530d77d5f7bd0467a117dde2e29a75a7a17a" dependencies = [ - "array-bytes 6.2.3", + "array-bytes", "blake3", "frame-metadata", "parity-scale-codec", @@ -6233,7 +7419,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69672161530e8aeca1d1400fbf3f1a1747ff60ea604265a4e906c2442df20532" dependencies = [ "futures", - "rand", + "rand 0.8.5", "thrift", ] @@ -6245,20 +7431,19 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] name = "miniz_oxide" -version = "0.7.4" +version = "0.8.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8a240ddb74feaf34a79a7add65a741f3167852fba007066dcac1ca548d89c08" +checksum = "3be647b768db090acb35d5ec5db2b0e1f1de11133ca123b9eacf5137868f892a" dependencies = [ - "adler", + "adler2", ] [[package]] name = "mio" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec" +checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" dependencies = [ - "hermit-abi 0.3.9", "libc", "wasi 0.11.0+wasi-snapshot-preview1", "windows-sys 0.52.0", @@ -6271,28 +7456,28 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "daa3eb39495d8e2e2947a1d862852c90cc6a4a8845f8b41c8829cb9fcc047f4a" dependencies = [ "arrayref", - "arrayvec 0.7.4", + "arrayvec 0.7.6", "bitflags 1.3.2", "blake2 0.10.6", "c2-chacha", - "curve25519-dalek 4.1.3", + "curve25519-dalek", "either", "hashlink", "lioness", "log", "parking_lot 0.12.3", - "rand", + "rand 0.8.5", "rand_chacha 0.3.1", "rand_distr", - "subtle 2.4.1", - "thiserror", + "subtle 2.6.1", + "thiserror 1.0.69", "zeroize", ] [[package]] name = "mmr-gadget" -version = "30.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "40.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "futures", "log", @@ -6310,8 +7495,8 @@ dependencies = [ [[package]] name = "mmr-rpc" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -6333,8 +7518,23 @@ dependencies = [ "downcast", "fragile", "lazy_static", - "mockall_derive", - "predicates", + "mockall_derive 0.11.4", + "predicates 2.1.5", + "predicates-tree", +] + +[[package]] +name = "mockall" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43766c2b5203b10de348ffe19f7e54564b64f3d6018ff7648d1e2d6d3a0f0a48" +dependencies = [ + "cfg-if", + "downcast", + "fragile", + "lazy_static", + "mockall_derive 0.12.1", + "predicates 3.1.3", "predicates-tree", ] @@ -6350,6 +7550,24 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "mockall_derive" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af7cbce79ec385a1d4f54baa90a76401eb15d9cab93685f62e7e9f942aa00ae2" +dependencies = [ + "cfg-if", + "proc-macro2", + "quote", + "syn 2.0.101", +] + +[[package]] +name = "multi-stash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "685a9ac4b61f4e728e1d2c6a7844609c16527aeb5e6c865915c08e619c16410f" + [[package]] name = "multiaddr" version = "0.17.1" @@ -6365,7 +7583,26 @@ dependencies = [ "percent-encoding", "serde", "static_assertions", - "unsigned-varint", + "unsigned-varint 0.7.2", + "url", +] + +[[package]] +name = "multiaddr" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe6351f60b488e04c1d21bc69e56b89cb3f5e8f5d22557d6e8031bdfd79b6961" +dependencies = [ + "arrayref", + "byteorder", + "data-encoding", + "libp2p-identity", + "multibase", + "multihash 0.19.3", + "percent-encoding", + "serde", + "static_assertions", + "unsigned-varint 0.8.0", "url", ] @@ -6391,10 +7628,10 @@ dependencies = [ "blake3", "core2", "digest 0.10.7", - "multihash-derive 0.8.1", + "multihash-derive", "sha2 0.10.8", "sha3", - "unsigned-varint", + "unsigned-varint 0.7.2", ] [[package]] @@ -6403,41 +7640,25 @@ version = "0.18.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cfd8a792c1694c6da4f68db0a9d707c72bd260994da179e6030a5dcee00bb815" dependencies = [ + "blake2b_simd", + "blake2s_simd", + "blake3", "core2", "digest 0.10.7", - "multihash-derive 0.8.1", + "multihash-derive", "sha2 0.10.8", - "unsigned-varint", + "sha3", + "unsigned-varint 0.7.2", ] [[package]] name = "multihash" -version = "0.19.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "076d548d76a0e2a0d4ab471d0b1c36c577786dfc4471242035d97a12a735c492" -dependencies = [ - "core2", - "unsigned-varint", -] - -[[package]] -name = "multihash-codetable" -version = "0.1.1" +version = "0.19.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6d815ecb3c8238d00647f8630ede7060a642c9f704761cd6082cb4028af6935" +checksum = "6b430e7953c29dd6a09afc29ff0bb69c6e306329ee6794700aee27b76a1aea8d" dependencies = [ - "blake2b_simd", - "blake2s_simd", - "blake3", "core2", - "digest 0.10.7", - "multihash-derive 0.9.0", - "ripemd", - "serde", - "sha1", - "sha2 0.10.8", - "sha3", - "strobe-rs", + "unsigned-varint 0.8.0", ] [[package]] @@ -6454,31 +7675,6 @@ dependencies = [ "synstructure 0.12.6", ] -[[package]] -name = "multihash-derive" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "890e72cb7396cb99ed98c1246a97b243cc16394470d94e0bc8b0c2c11d84290e" -dependencies = [ - "core2", - "multihash 0.19.1", - "multihash-derive-impl", -] - -[[package]] -name = "multihash-derive-impl" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3958713ce794e12f7c6326fac9aa274c68d74c4881dd37b3e2662b8a2046bb19" -dependencies = [ - "proc-macro-crate 2.0.0", - "proc-macro-error", - "proc-macro2", - "quote", - "syn 2.0.66", - "synstructure 0.13.1", -] - [[package]] name = "multimap" version = "0.8.3" @@ -6487,27 +7683,26 @@ checksum = "e5ce46fe64a9d73be07dcbe690a38ce1b293be448fd8ce1e6c1b8062c9f72c6a" [[package]] name = "multistream-select" -version = "0.12.1" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8552ab875c1313b97b8d20cb857b9fd63e2d1d6a0a1b53ce9821e575405f27a" +checksum = "ea0df8e5eec2298a62b326ee4f0d7fe1a6b90a09dfcf9df37b38f947a8c42f19" dependencies = [ "bytes", "futures", "log", "pin-project", "smallvec", - "unsigned-varint", + "unsigned-varint 0.7.2", ] [[package]] name = "nalgebra" -version = "0.32.6" +version = "0.33.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b5c17de023a86f59ed79891b2e5d5a94c705dbe904a5b5c9c952ea6221b03e4" +checksum = "26aecdf64b707efd1310e3544d709c5c0ac61c13756046aaaba41be5c4f66a3b" dependencies = [ "approx", "matrixmultiply", - "nalgebra-macros", "num-complex", "num-rational", "num-traits", @@ -6515,24 +7710,13 @@ dependencies = [ "typenum", ] -[[package]] -name = "nalgebra-macros" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91761aed67d03ad966ef783ae962ef9bbaca728d2dd7ceb7939ec110fffad998" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "names" version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7bddcd3bf5144b6392de80e04c347cd7fab2508f6df16a85fc496ecd5cec39bc" dependencies = [ - "rand", + "rand 0.8.5", ] [[package]] @@ -6543,21 +7727,20 @@ checksum = "6a51313c5820b0b02bd422f4b44776fbf47961755c74ce64afc73bfad10226c3" [[package]] name = "netlink-packet-core" -version = "0.4.2" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "345b8ab5bd4e71a2986663e88c56856699d060e78e152e6e9d7966fcd5491297" +checksum = "72724faf704479d67b388da142b186f916188505e7e0b26719019c525882eda4" dependencies = [ "anyhow", "byteorder", - "libc", "netlink-packet-utils", ] [[package]] name = "netlink-packet-route" -version = "0.12.0" +version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9ea4302b9759a7a88242299225ea3688e63c85ea136371bb6cf94fd674efaab" +checksum = "053998cea5a306971f88580d0829e90f270f940befd7cf928da179d4187a5a66" dependencies = [ "anyhow", "bitflags 1.3.2", @@ -6576,29 +7759,28 @@ dependencies = [ "anyhow", "byteorder", "paste", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "netlink-proto" -version = "0.10.0" +version = "0.11.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65b4b14489ab424703c092062176d52ba55485a89c076b4f9db05092b7223aa6" +checksum = "72452e012c2f8d612410d89eea01e2d9b56205274abb35d53f60200b2ec41d60" dependencies = [ "bytes", "futures", "log", "netlink-packet-core", "netlink-sys", - "thiserror", - "tokio", + "thiserror 2.0.12", ] [[package]] name = "netlink-sys" -version = "0.8.6" +version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "416060d346fbaf1f23f9512963e3e878f1a78e707cb699ba9215761754244307" +checksum = "16c903aa70590cb93691bf97a767c8d1d6122d2cc9070433deb3bbf36ce8bd23" dependencies = [ "bytes", "futures", @@ -6607,11 +7789,23 @@ dependencies = [ "tokio", ] +[[package]] +name = "network-interface" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4a43439bf756eed340bdf8feba761e2d50c7d47175d87545cd5cbe4a137c4d1" +dependencies = [ + "cc", + "libc", + "thiserror 1.0.69", + "winapi", +] + [[package]] name = "nix" -version = "0.24.3" +version = "0.26.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa52e972a9a719cecb6864fb88568781eb706bac2cd1d4f04a648542dbf78069" +checksum = "598beaf3cc6fdd9a5dfb1630c2800c7acd31df7aaf0f565796fba2b53ca1af1b" dependencies = [ "bitflags 1.3.2", "cfg-if", @@ -6620,15 +7814,22 @@ dependencies = [ [[package]] name = "nix" -version = "0.27.1" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053" +checksum = "ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4" dependencies = [ - "bitflags 2.5.0", + "bitflags 2.9.0", "cfg-if", + "cfg_aliases", "libc", ] +[[package]] +name = "no-std-compat" +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" @@ -6657,6 +7858,18 @@ dependencies = [ "minimal-lexical", ] +[[package]] +name = "nonempty" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9e591e719385e6ebaeb5ce5d3887f7d5676fceca6411d1925ccc95745f3d6f7" + +[[package]] +name = "nonzero_ext" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38bf9645c8b145698bb0b18a4637dcacbc421ea49bef2317e4fd8065a387cf21" + [[package]] name = "normalize-line-endings" version = "0.3.0" @@ -6675,9 +7888,9 @@ dependencies = [ [[package]] name = "num-bigint" -version = "0.4.5" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c165a9ab64cf766f73521c0dd2cfdff64f488b8f0b3e621face3462d3db536d7" +checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" dependencies = [ "num-integer", "num-traits", @@ -6698,13 +7911,24 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" +[[package]] +name = "num-derive" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", +] + [[package]] name = "num-format" version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a652d9771a63711fd3c3deb670acfbe5c30a4072e664d7a3bf5a9e1056ac72c3" dependencies = [ - "arrayvec 0.7.4", + "arrayvec 0.7.6", "itoa", ] @@ -6748,12 +7972,6 @@ dependencies = [ "libc", ] -[[package]] -name = "number_prefix" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" - [[package]] name = "object" version = "0.30.4" @@ -6768,9 +7986,18 @@ dependencies = [ [[package]] name = "object" -version = "0.36.0" +version = "0.32.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441" +dependencies = [ + "memchr", +] + +[[package]] +name = "object" +version = "0.36.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "576dfe1fc8f9df304abb159d767a29d0476f7750fbf8aa7ad07816004a207434" +checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87" dependencies = [ "memchr", ] @@ -6781,14 +8008,23 @@ version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9bedf36ffb6ba96c2eb7144ef6270557b52e54b20c0a8e1eb2ff99a6c6959bff" dependencies = [ - "asn1-rs", + "asn1-rs 0.5.2", +] + +[[package]] +name = "oid-registry" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8d8034d9489cdaf79228eb9f6a3b8d7bb32ba00d6645ebd48eef4077ceb5bd9" +dependencies = [ + "asn1-rs 0.6.2", ] [[package]] name = "once_cell" -version = "1.19.0" +version = "1.21.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" +checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" [[package]] name = "opaque-debug" @@ -6802,11 +8038,59 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" +[[package]] +name = "openssl" +version = "0.10.72" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fedfea7d58a1f73118430a55da6a286e7b044961736ce96a16a17068ea25e5da" +dependencies = [ + "bitflags 2.9.0", + "cfg-if", + "foreign-types", + "libc", + "once_cell", + "openssl-macros", + "openssl-sys", +] + +[[package]] +name = "openssl-macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", +] + [[package]] name = "openssl-probe" -version = "0.1.5" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" + +[[package]] +name = "openssl-src" +version = "300.5.0+3.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" +checksum = "e8ce546f549326b0e6052b649198487d91320875da901e7bd11a06d1ee3f9c2f" +dependencies = [ + "cc", +] + +[[package]] +name = "openssl-sys" +version = "0.9.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8288979acd84749c744a9014b4382d42b8f7b2592847b5afb2ed29e5d16ede07" +dependencies = [ + "cc", + "libc", + "openssl-src", + "pkg-config", + "vcpkg", +] [[package]] name = "option-ext" @@ -6816,9 +8100,9 @@ checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" [[package]] name = "orchestra" -version = "0.3.6" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92829eef0328a3d1cd22a02c0e51deb92a5362df3e7d21a4e9bdc38934694e66" +checksum = "41f6bbacc8c189a3f2e45e0fd0436e5d97f194db888e721bdbc3973e7dbed4c2" dependencies = [ "async-trait", "dyn-clonable", @@ -6827,21 +8111,21 @@ dependencies = [ "orchestra-proc-macro", "pin-project", "prioritized-metered-channel", - "thiserror", + "thiserror 1.0.69", "tracing", ] [[package]] name = "orchestra-proc-macro" -version = "0.3.6" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1344346d5af32c95bbddea91b18a88cc83eac394192d20ef2fc4c40a74332355" +checksum = "f7b1d40dd8f367db3c65bec8d3dd47d4a604ee8874480738f93191bddab4e0e0" dependencies = [ - "expander 2.2.1", - "indexmap 2.2.6", + "expander", + "indexmap 2.9.0", "itertools 0.11.0", "petgraph", - "proc-macro-crate 3.1.0", + "proc-macro-crate 3.3.0", "proc-macro2", "quote", "syn 1.0.109", @@ -6862,14 +8146,35 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" +[[package]] +name = "pallet-alliance" +version = "37.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "array-bytes", + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "pallet-collective", + "pallet-identity", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-crypto-hashing", + "sp-io", + "sp-runtime", +] + [[package]] name = "pallet-asset-conversion" -version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "20.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", + "log", "parity-scale-codec", "scale-info", "sp-api", @@ -6877,13 +8182,30 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std", +] + +[[package]] +name = "pallet-asset-conversion-ops" +version = "0.6.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "pallet-asset-conversion", + "parity-scale-codec", + "scale-info", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", ] [[package]] name = "pallet-asset-conversion-tx-payment" -version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "20.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-support", "frame-system", @@ -6892,13 +8214,12 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-asset-rate" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "17.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -6907,7 +8228,6 @@ dependencies = [ "scale-info", "sp-core", "sp-runtime", - "sp-std", ] [[package]] @@ -6944,8 +8264,8 @@ dependencies = [ [[package]] name = "pallet-asset-tx-payment" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -6957,29 +8277,57 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-assets" -version = "30.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "40.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", + "impl-trait-for-tuples", "log", "parity-scale-codec", "scale-info", "sp-core", "sp-runtime", - "sp-std", +] + +[[package]] +name = "pallet-assets-freezer" +version = "0.5.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "pallet-assets", + "parity-scale-codec", + "scale-info", + "sp-runtime", +] + +[[package]] +name = "pallet-atomic-swap" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-io", + "sp-runtime", ] [[package]] name = "pallet-aura" -version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "37.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-support", "frame-system", @@ -6990,13 +8338,12 @@ dependencies = [ "sp-application-crypto", "sp-consensus-aura", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-authority-discovery" -version = "29.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-support", "frame-system", @@ -7006,13 +8353,12 @@ dependencies = [ "sp-application-crypto", "sp-authority-discovery", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-authorship" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-support", "frame-system", @@ -7020,13 +8366,12 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-babe" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -7044,13 +8389,12 @@ dependencies = [ "sp-runtime", "sp-session", "sp-staking", - "sp-std", ] [[package]] name = "pallet-bags-list" -version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "37.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "aquamarine", "docify", @@ -7065,14 +8409,13 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std", "sp-tracing", ] [[package]] name = "pallet-balances" -version = "29.0.2" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "39.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "docify", "frame-benchmarking", @@ -7082,13 +8425,12 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-beefy" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "39.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-support", "frame-system", @@ -7102,16 +8444,16 @@ dependencies = [ "sp-runtime", "sp-session", "sp-staking", - "sp-std", ] [[package]] name = "pallet-beefy-mmr" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "39.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "array-bytes 6.2.3", + "array-bytes", "binary-merkle-tree", + "frame-benchmarking", "frame-support", "frame-system", "log", @@ -7127,7 +8469,6 @@ dependencies = [ "sp-io", "sp-runtime", "sp-state-machine", - "sp-std", ] [[package]] @@ -7165,8 +8506,8 @@ dependencies = [ [[package]] name = "pallet-bounties" -version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "37.0.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -7178,18 +8519,16 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-bridge-grandpa" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bp-header-chain", "bp-runtime", "bp-test-utils", - "finality-grandpa", "frame-benchmarking", "frame-support", "frame-system", @@ -7199,31 +8538,31 @@ dependencies = [ "sp-consensus-grandpa", "sp-runtime", "sp-std", - "sp-trie", ] [[package]] name = "pallet-bridge-messages" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ + "bp-header-chain", "bp-messages", "bp-runtime", "frame-benchmarking", "frame-support", "frame-system", "log", - "num-traits", "parity-scale-codec", "scale-info", "sp-runtime", "sp-std", + "sp-trie", ] [[package]] name = "pallet-bridge-parachains" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bp-header-chain", "bp-parachains", @@ -7238,14 +8577,14 @@ dependencies = [ "scale-info", "sp-runtime", "sp-std", - "sp-trie", ] [[package]] name = "pallet-bridge-relayers" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ + "bp-header-chain", "bp-messages", "bp-relayers", "bp-runtime", @@ -7253,7 +8592,10 @@ dependencies = [ "frame-support", "frame-system", "log", + "pallet-bridge-grandpa", "pallet-bridge-messages", + "pallet-bridge-parachains", + "pallet-transaction-payment", "parity-scale-codec", "scale-info", "sp-arithmetic", @@ -7263,8 +8605,8 @@ dependencies = [ [[package]] name = "pallet-broker" -version = "0.7.2" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.17.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bitvec", "frame-benchmarking", @@ -7273,16 +8615,16 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", + "sp-api", "sp-arithmetic", "sp-core", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-child-bounties" -version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "37.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -7295,13 +8637,12 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-collator-selection" -version = "10.0.2" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "19.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -7311,17 +8652,16 @@ dependencies = [ "pallet-balances", "pallet-session", "parity-scale-codec", - "rand", + "rand 0.8.5", "scale-info", "sp-runtime", "sp-staking", - "sp-std", ] [[package]] name = "pallet-collective" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -7332,7 +8672,20 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std", +] + +[[package]] +name = "pallet-collective-content" +version = "0.16.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime", ] [[package]] @@ -7354,10 +8707,100 @@ dependencies = [ "sp-std", ] +[[package]] +name = "pallet-contracts" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "bitflags 1.3.2", + "environmental", + "frame-benchmarking", + "frame-support", + "frame-system", + "impl-trait-for-tuples", + "log", + "pallet-balances", + "pallet-contracts-proc-macro", + "pallet-contracts-uapi", + "parity-scale-codec", + "paste", + "rand 0.8.5", + "rand_pcg", + "scale-info", + "serde", + "smallvec", + "sp-api", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", + "staging-xcm", + "staging-xcm-builder", + "wasm-instrument", + "wasmi 0.32.3", +] + +[[package]] +name = "pallet-contracts-mock-network" +version = "14.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-support", + "frame-system", + "pallet-assets", + "pallet-balances", + "pallet-contracts", + "pallet-contracts-proc-macro", + "pallet-contracts-uapi", + "pallet-insecure-randomness-collective-flip", + "pallet-message-queue", + "pallet-proxy", + "pallet-timestamp", + "pallet-utility", + "pallet-xcm", + "parity-scale-codec", + "polkadot-parachain-primitives", + "polkadot-primitives", + "polkadot-runtime-parachains", + "scale-info", + "sp-api", + "sp-core", + "sp-io", + "sp-keystore", + "sp-runtime", + "sp-tracing", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", + "xcm-simulator", +] + +[[package]] +name = "pallet-contracts-proc-macro" +version = "23.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", +] + +[[package]] +name = "pallet-contracts-uapi" +version = "12.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "bitflags 1.3.2", + "parity-scale-codec", + "paste", + "polkavm-derive 0.9.1", + "scale-info", +] + [[package]] name = "pallet-conviction-voting" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "assert_matches", "frame-benchmarking", @@ -7368,13 +8811,45 @@ dependencies = [ "serde", "sp-io", "sp-runtime", - "sp-std", +] + +[[package]] +name = "pallet-core-fellowship" +version = "22.2.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "pallet-ranked-collective", + "parity-scale-codec", + "scale-info", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", +] + +[[package]] +name = "pallet-delegated-staking" +version = "5.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-io", + "sp-runtime", + "sp-staking", ] [[package]] name = "pallet-democracy" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -7386,7 +8861,6 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std", ] [[package]] @@ -7408,6 +8882,21 @@ dependencies = [ "sp-std", ] +[[package]] +name = "pallet-dev-mode" +version = "20.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-support", + "frame-system", + "log", + "pallet-balances", + "parity-scale-codec", + "scale-info", + "sp-io", + "sp-runtime", +] + [[package]] name = "pallet-did-lookup" version = "1.16.0-dev" @@ -7475,8 +8964,8 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" -version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "37.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -7485,21 +8974,20 @@ dependencies = [ "log", "pallet-election-provider-support-benchmarking", "parity-scale-codec", - "rand", + "rand 0.8.5", "scale-info", "sp-arithmetic", "sp-core", "sp-io", "sp-npos-elections", "sp-runtime", - "sp-std", - "strum 0.24.1", + "strum 0.26.3", ] [[package]] name = "pallet-election-provider-support-benchmarking" -version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "37.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -7507,13 +8995,12 @@ dependencies = [ "parity-scale-codec", "sp-npos-elections", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-elections-phragmen" -version = "30.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "39.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -7526,13 +9013,12 @@ dependencies = [ "sp-npos-elections", "sp-runtime", "sp-staking", - "sp-std", ] [[package]] name = "pallet-fast-unstake" -version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "37.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "docify", "frame-benchmarking", @@ -7545,13 +9031,30 @@ dependencies = [ "sp-io", "sp-runtime", "sp-staking", - "sp-std", +] + +[[package]] +name = "pallet-glutton" +version = "24.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "blake2 0.10.6", + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-inherents", + "sp-io", + "sp-runtime", ] [[package]] name = "pallet-grandpa" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -7568,13 +9071,26 @@ dependencies = [ "sp-runtime", "sp-session", "sp-staking", - "sp-std", +] + +[[package]] +name = "pallet-hyperbridge" +version = "16.0.0" +source = "git+https://github.com/polytope-labs/hyperbridge?branch=polkadot-stable2409#c7237a7388c210a60177ce74fc512e814d331da0" +dependencies = [ + "anyhow", + "ismp", + "pallet-ismp", + "parity-scale-codec", + "polkadot-sdk", + "primitive-types", + "scale-info", ] [[package]] name = "pallet-identity" -version = "29.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "enumflags2", "frame-benchmarking", @@ -7585,13 +9101,12 @@ dependencies = [ "scale-info", "sp-io", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-im-online" -version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "37.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -7605,13 +9120,12 @@ dependencies = [ "sp-io", "sp-runtime", "sp-staking", - "sp-std", ] [[package]] name = "pallet-indices" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -7622,7 +9136,6 @@ dependencies = [ "sp-io", "sp-keyring", "sp-runtime", - "sp-std", ] [[package]] @@ -7642,39 +9155,113 @@ dependencies = [ ] [[package]] -name = "pallet-membership" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +name = "pallet-insecure-randomness-collective-flip" +version = "26.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "frame-benchmarking", "frame-support", "frame-system", - "log", "parity-scale-codec", + "safe-mix", "scale-info", - "sp-core", - "sp-io", "sp-runtime", - "sp-std", ] [[package]] -name = "pallet-message-queue" -version = "32.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +name = "pallet-ismp" +version = "16.1.0" +source = "git+https://github.com/polytope-labs/hyperbridge?branch=polkadot-stable2409#c7237a7388c210a60177ce74fc512e814d331da0" dependencies = [ - "environmental", - "frame-benchmarking", - "frame-support", - "frame-system", + "anyhow", + "fortuples", + "ismp", "log", "parity-scale-codec", + "polkadot-sdk", "scale-info", - "sp-arithmetic", - "sp-core", + "serde", "sp-io", - "sp-runtime", - "sp-std", +] + +[[package]] +name = "pallet-ismp-rpc" +version = "16.0.0" +source = "git+https://github.com/polytope-labs/hyperbridge?branch=polkadot-stable2409#c7237a7388c210a60177ce74fc512e814d331da0" +dependencies = [ + "anyhow", + "hash-db", + "hex", + "hex-literal 0.4.1", + "ismp", + "jsonrpsee", + "pallet-ismp", + "pallet-ismp-runtime-api", + "parity-scale-codec", + "polkadot-sdk", + "serde", + "serde_json", + "tower", + "trie-db", +] + +[[package]] +name = "pallet-ismp-runtime-api" +version = "16.0.0" +source = "git+https://github.com/polytope-labs/hyperbridge?branch=polkadot-stable2409#c7237a7388c210a60177ce74fc512e814d331da0" +dependencies = [ + "ismp", + "pallet-ismp", + "parity-scale-codec", + "polkadot-sdk", + "primitive-types", + "serde", +] + +[[package]] +name = "pallet-lottery" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-runtime", +] + +[[package]] +name = "pallet-membership" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-io", + "sp-runtime", +] + +[[package]] +name = "pallet-message-queue" +version = "41.0.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "environmental", + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", "sp-weights", ] @@ -7710,10 +9297,46 @@ dependencies = [ "sp-std", ] +[[package]] +name = "pallet-migrations" +version = "8.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "docify", + "frame-benchmarking", + "frame-support", + "frame-system", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime", +] + +[[package]] +name = "pallet-mixnet" +version = "0.14.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "serde", + "sp-application-crypto", + "sp-arithmetic", + "sp-io", + "sp-mixnet", + "sp-runtime", +] + [[package]] name = "pallet-mmr" -version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -7725,13 +9348,12 @@ dependencies = [ "sp-io", "sp-mmr-primitives", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-multisig" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -7741,13 +9363,12 @@ dependencies = [ "scale-info", "sp-io", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-nft-fractionalization" -version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "21.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -7758,13 +9379,12 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-nfts" -version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "32.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "enumflags2", "frame-benchmarking", @@ -7776,24 +9396,22 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-nfts-runtime-api" -version = "15.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "24.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "pallet-nfts", "parity-scale-codec", "sp-api", - "sp-std", ] [[package]] name = "pallet-nis" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -7803,13 +9421,27 @@ dependencies = [ "sp-arithmetic", "sp-core", "sp-runtime", - "sp-std", +] + +[[package]] +name = "pallet-node-authorization" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-io", + "sp-runtime", ] [[package]] name = "pallet-nomination-pools" -version = "26.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "35.0.3" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-support", "frame-system", @@ -7821,20 +9453,20 @@ dependencies = [ "sp-io", "sp-runtime", "sp-staking", - "sp-std", "sp-tracing", ] [[package]] name = "pallet-nomination-pools-benchmarking" -version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "36.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-election-provider-support", "frame-support", "frame-system", "pallet-bags-list", + "pallet-delegated-staking", "pallet-nomination-pools", "pallet-staking", "parity-scale-codec", @@ -7842,24 +9474,22 @@ dependencies = [ "sp-runtime", "sp-runtime-interface", "sp-staking", - "sp-std", ] [[package]] name = "pallet-nomination-pools-runtime-api" -version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "33.0.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "pallet-nomination-pools", "parity-scale-codec", "sp-api", - "sp-std", ] [[package]] name = "pallet-offences" -version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "37.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-support", "frame-system", @@ -7870,13 +9500,12 @@ dependencies = [ "serde", "sp-runtime", "sp-staking", - "sp-std", ] [[package]] name = "pallet-offences-benchmarking" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -7894,7 +9523,40 @@ dependencies = [ "scale-info", "sp-runtime", "sp-staking", - "sp-std", +] + +[[package]] +name = "pallet-paged-list" +version = "0.16.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "docify", + "frame-benchmarking", + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-io", + "sp-metadata-ir", + "sp-runtime", +] + +[[package]] +name = "pallet-parameters" +version = "0.9.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "docify", + "frame-benchmarking", + "frame-support", + "frame-system", + "parity-scale-codec", + "paste", + "scale-info", + "serde", + "sp-core", + "sp-runtime", ] [[package]] @@ -7911,8 +9573,8 @@ dependencies = [ [[package]] name = "pallet-preimage" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -7923,13 +9585,12 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-proxy" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -7938,13 +9599,12 @@ dependencies = [ "scale-info", "sp-io", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-ranked-collective" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.2.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -7957,13 +9617,12 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-recovery" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -7972,13 +9631,12 @@ dependencies = [ "scale-info", "sp-io", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-referenda" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "assert_matches", "frame-benchmarking", @@ -7991,7 +9649,6 @@ dependencies = [ "sp-arithmetic", "sp-io", "sp-runtime", - "sp-std", ] [[package]] @@ -8015,99 +9672,286 @@ dependencies = [ ] [[package]] -name = "pallet-root-testing" -version = "5.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +name = "pallet-remark" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ + "frame-benchmarking", "frame-support", "frame-system", "parity-scale-codec", "scale-info", + "serde", "sp-core", "sp-io", "sp-runtime", - "sp-std", ] [[package]] -name = "pallet-scheduler" -version = "30.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +name = "pallet-revive" +version = "0.2.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "docify", + "bitflags 1.3.2", + "environmental", "frame-benchmarking", "frame-support", "frame-system", + "impl-trait-for-tuples", "log", + "pallet-balances", + "pallet-revive-fixtures", + "pallet-revive-proc-macro", + "pallet-revive-uapi", "parity-scale-codec", + "paste", + "polkavm 0.10.0", "scale-info", + "serde", + "sp-api", + "sp-core", "sp-io", "sp-runtime", "sp-std", - "sp-weights", + "staging-xcm", + "staging-xcm-builder", ] [[package]] -name = "pallet-session" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +name = "pallet-revive-fixtures" +version = "0.2.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "anyhow", + "frame-system", + "parity-wasm", + "polkavm-linker 0.10.0", + "sp-runtime", + "tempfile", + "toml 0.8.21", +] + +[[package]] +name = "pallet-revive-mock-network" +version = "0.2.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-support", "frame-system", - "impl-trait-for-tuples", - "log", + "pallet-assets", + "pallet-balances", + "pallet-message-queue", + "pallet-proxy", + "pallet-revive", + "pallet-revive-proc-macro", + "pallet-revive-uapi", "pallet-timestamp", + "pallet-utility", + "pallet-xcm", "parity-scale-codec", + "polkadot-parachain-primitives", + "polkadot-primitives", + "polkadot-runtime-parachains", "scale-info", + "sp-api", "sp-core", "sp-io", + "sp-keystore", "sp-runtime", - "sp-session", - "sp-staking", - "sp-state-machine", - "sp-std", - "sp-trie", + "sp-tracing", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", + "xcm-simulator", ] [[package]] -name = "pallet-session-benchmarking" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +name = "pallet-revive-proc-macro" +version = "0.1.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", +] + +[[package]] +name = "pallet-revive-uapi" +version = "0.1.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "bitflags 1.3.2", + "parity-scale-codec", + "paste", + "polkavm-derive 0.10.0", + "scale-info", +] + +[[package]] +name = "pallet-root-offences" +version = "35.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "frame-benchmarking", "frame-support", "frame-system", "pallet-session", "pallet-staking", "parity-scale-codec", - "rand", + "scale-info", "sp-runtime", - "sp-session", - "sp-std", + "sp-staking", ] [[package]] -name = "pallet-society" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +name = "pallet-root-testing" +version = "14.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "frame-benchmarking", "frame-support", "frame-system", - "log", "parity-scale-codec", - "rand_chacha 0.2.2", "scale-info", - "sp-arithmetic", + "sp-core", "sp-io", "sp-runtime", - "sp-std", ] [[package]] -name = "pallet-staking" -version = "29.0.3" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +name = "pallet-safe-mode" +version = "19.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "docify", + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-balances", + "pallet-proxy", + "pallet-utility", + "parity-scale-codec", + "scale-info", + "sp-arithmetic", + "sp-runtime", +] + +[[package]] +name = "pallet-salary" +version = "23.2.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "pallet-ranked-collective", + "parity-scale-codec", + "scale-info", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", +] + +[[package]] +name = "pallet-scheduler" +version = "39.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "docify", + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-io", + "sp-runtime", + "sp-weights", +] + +[[package]] +name = "pallet-scored-pool" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-io", + "sp-runtime", +] + +[[package]] +name = "pallet-session" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-support", + "frame-system", + "impl-trait-for-tuples", + "log", + "pallet-timestamp", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-io", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-state-machine", + "sp-trie", +] + +[[package]] +name = "pallet-session-benchmarking" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-session", + "pallet-staking", + "parity-scale-codec", + "rand 0.8.5", + "sp-runtime", + "sp-session", +] + +[[package]] +name = "pallet-skip-feeless-payment" +version = "13.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-runtime", +] + +[[package]] +name = "pallet-society" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "rand_chacha 0.3.1", + "scale-info", + "sp-arithmetic", + "sp-io", + "sp-runtime", +] + +[[package]] +name = "pallet-staking" +version = "38.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -8117,31 +9961,19 @@ dependencies = [ "pallet-authorship", "pallet-session", "parity-scale-codec", - "rand_chacha 0.2.2", + "rand_chacha 0.3.1", "scale-info", "serde", "sp-application-crypto", "sp-io", "sp-runtime", "sp-staking", - "sp-std", -] - -[[package]] -name = "pallet-staking-reward-curve" -version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" -dependencies = [ - "proc-macro-crate 3.1.0", - "proc-macro2", - "quote", - "syn 2.0.66", ] [[package]] name = "pallet-staking-reward-fn" -version = "20.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "22.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "log", "sp-arithmetic", @@ -8149,8 +9981,8 @@ dependencies = [ [[package]] name = "pallet-staking-runtime-api" -version = "15.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "24.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "parity-scale-codec", "sp-api", @@ -8159,8 +9991,8 @@ dependencies = [ [[package]] name = "pallet-state-trie-migration" -version = "30.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "40.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -8171,13 +10003,29 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std", +] + +[[package]] +name = "pallet-statement" +version = "20.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-api", + "sp-core", + "sp-io", + "sp-runtime", + "sp-statement-store", ] [[package]] name = "pallet-sudo" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "docify", "frame-benchmarking", @@ -8187,13 +10035,12 @@ dependencies = [ "scale-info", "sp-io", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-timestamp" -version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "37.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "docify", "frame-benchmarking", @@ -8205,15 +10052,14 @@ dependencies = [ "sp-inherents", "sp-io", "sp-runtime", - "sp-std", "sp-storage", "sp-timestamp", ] [[package]] name = "pallet-tips" -version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "37.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -8226,13 +10072,32 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std", +] + +[[package]] +name = "pallet-token-gateway" +version = "16.2.0" +source = "git+https://github.com/polytope-labs/hyperbridge?branch=polkadot-stable2409#c7237a7388c210a60177ce74fc512e814d331da0" +dependencies = [ + "alloy-primitives 0.7.7", + "alloy-sol-macro 0.7.7", + "alloy-sol-types 0.7.7", + "anyhow", + "ismp", + "log", + "pallet-hyperbridge", + "pallet-ismp", + "parity-scale-codec", + "polkadot-sdk", + "primitive-types", + "scale-info", + "token-gateway-primitives", ] [[package]] name = "pallet-transaction-payment" -version = "29.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-support", "frame-system", @@ -8242,13 +10107,12 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-transaction-payment-rpc" -version = "31.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "41.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", @@ -8263,8 +10127,8 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -8273,10 +10137,30 @@ dependencies = [ "sp-weights", ] +[[package]] +name = "pallet-transaction-storage" +version = "37.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "array-bytes", + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "pallet-balances", + "parity-scale-codec", + "scale-info", + "serde", + "sp-inherents", + "sp-io", + "sp-runtime", + "sp-transaction-storage-proof", +] + [[package]] name = "pallet-treasury" -version = "28.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "37.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "docify", "frame-benchmarking", @@ -8289,13 +10173,29 @@ dependencies = [ "serde", "sp-core", "sp-runtime", - "sp-std", +] + +[[package]] +name = "pallet-tx-pause" +version = "19.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "docify", + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-balances", + "pallet-proxy", + "pallet-utility", + "parity-scale-codec", + "scale-info", + "sp-runtime", ] [[package]] name = "pallet-uniques" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -8304,13 +10204,12 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-utility" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -8320,13 +10219,12 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-vesting" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -8335,7 +10233,6 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-runtime", - "sp-std", ] [[package]] @@ -8359,8 +10256,8 @@ dependencies = [ [[package]] name = "pallet-whitelist" -version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "37.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", @@ -8369,13 +10266,12 @@ dependencies = [ "scale-info", "sp-api", "sp-runtime", - "sp-std", ] [[package]] name = "pallet-xcm" -version = "8.0.5" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "17.0.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bounded-collections", "frame-benchmarking", @@ -8389,25 +10285,46 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std", "staging-xcm", "staging-xcm-builder", "staging-xcm-executor", + "tracing", + "xcm-runtime-apis", ] [[package]] name = "pallet-xcm-benchmarks" -version = "8.0.2" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "17.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "log", "parity-scale-codec", "scale-info", "sp-io", "sp-runtime", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", +] + +[[package]] +name = "pallet-xcm-bridge-hub" +version = "0.13.3" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "bp-messages", + "bp-runtime", + "bp-xcm-bridge-hub", + "frame-support", + "frame-system", + "log", + "pallet-bridge-messages", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime", "sp-std", "staging-xcm", "staging-xcm-builder", @@ -8416,8 +10333,8 @@ dependencies = [ [[package]] name = "pallet-xcm-bridge-hub-router" -version = "0.6.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.15.3" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bp-xcm-bridge-hub-router", "frame-benchmarking", @@ -8461,8 +10378,8 @@ dependencies = [ [[package]] name = "parachains-common" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "cumulus-primitives-core", "cumulus-primitives-utility", @@ -8483,7 +10400,6 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std", "staging-parachain-info", "staging-xcm", "staging-xcm-executor", @@ -8492,8 +10408,8 @@ dependencies = [ [[package]] name = "parachains-runtimes-test-utils" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "19.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "cumulus-pallet-parachain-system", "cumulus-pallet-xcmp-queue", @@ -8505,19 +10421,34 @@ dependencies = [ "pallet-balances", "pallet-collator-selection", "pallet-session", + "pallet-timestamp", "pallet-xcm", + "parachains-common", "parity-scale-codec", "polkadot-parachain-primitives", "sp-consensus-aura", "sp-core", "sp-io", "sp-runtime", - "sp-std", "sp-tracing", "staging-parachain-info", "staging-xcm", "staging-xcm-executor", "substrate-wasm-builder", + "xcm-runtime-apis", +] + +[[package]] +name = "parity-bip39" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e69bf016dc406eff7d53a7d3f7cf1c2e72c82b9088aac1118591e36dd2cd3e9" +dependencies = [ + "bitcoin_hashes", + "rand 0.8.5", + "rand_core 0.6.4", + "serde", + "unicode-normalization", ] [[package]] @@ -8541,7 +10472,7 @@ dependencies = [ "lz4", "memmap2 0.5.10", "parking_lot 0.12.3", - "rand", + "rand 0.8.5", "siphasher", "snap", "winapi", @@ -8549,37 +10480,33 @@ dependencies = [ [[package]] name = "parity-scale-codec" -version = "3.6.12" +version = "3.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "306800abfa29c7f16596b5970a588435e3d5b3149683d00c12b699cc19f895ee" +checksum = "c9fde3d0718baf5bc92f577d652001da0f8d54cd03a7974e118d04fc888dc23d" dependencies = [ - "arrayvec 0.7.4", + "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.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d830939c76d294956402033aee57a6da7b438f2294eb94864c37b0569053a42c" +checksum = "581c837bb6b9541ce7faa9377c20616e4fb7650f6b0f68bc93c827ee504fb7b3" dependencies = [ - "proc-macro-crate 3.1.0", + "proc-macro-crate 3.3.0", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.101", ] -[[package]] -name = "parity-send-wrapper" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa9777aa91b8ad9dd5aaa04a9b6bcb02c7f1deb952fca5a66034d5e63afc5c6f" - [[package]] name = "parity-util-mem" version = "0.12.0" @@ -8617,9 +10544,9 @@ checksum = "e1ad0aff30c1da14b1254fcb2af73e1fa9a28670e584a626f53a369d0e157304" [[package]] name = "parking" -version = "2.2.0" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb813b8af86854136c6922af0598d719255ecb2179515e6e7730d468f05c9cae" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" [[package]] name = "parking_lot" @@ -8664,9 +10591,9 @@ checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" dependencies = [ "cfg-if", "libc", - "redox_syscall 0.5.2", + "redox_syscall 0.5.11", "smallvec", - "windows-targets 0.52.5", + "windows-targets 0.52.6", ] [[package]] @@ -8675,6 +10602,17 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7924d1d0ad836f665c9065e26d016c673ece3993f30d340068b16f282afc1156" +[[package]] +name = "password-hash" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "346f04948ba92c43e8469c1ee6736c7563d71012b17d40745260fe106aac2166" +dependencies = [ + "base64ct", + "rand_core 0.6.4", + "subtle 2.6.1", +] + [[package]] name = "paste" version = "1.0.15" @@ -8683,20 +10621,12 @@ checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" [[package]] name = "pbkdf2" -version = "0.8.0" +version = "0.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d95f5254224e617595d2cc3cc73ff0a5eaf2637519e25f03388154e9378b6ffa" +checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2" dependencies = [ - "crypto-mac 0.11.1", -] - -[[package]] -name = "pbkdf2" -version = "0.12.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2" -dependencies = [ - "digest 0.10.7", + "digest 0.10.7", + "password-hash", ] [[package]] @@ -8724,6 +10654,7 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" name = "peregrine-runtime" version = "1.16.0-dev" dependencies = [ + "anyhow", "attestation", "cfg-if", "ctype", @@ -8748,6 +10679,9 @@ dependencies = [ "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal 0.3.4", + "ismp", + "ismp-parachain", + "ismp-parachain-runtime-api", "kilt-runtime-api-did", "kilt-runtime-api-dip-provider", "kilt-runtime-api-public-credentials", @@ -8767,8 +10701,11 @@ dependencies = [ "pallet-deposit-storage", "pallet-did-lookup", "pallet-dip-provider", + "pallet-hyperbridge", "pallet-indices", "pallet-inflation", + "pallet-ismp", + "pallet-ismp-runtime-api", "pallet-membership", "pallet-message-queue", "pallet-migration", @@ -8780,6 +10717,7 @@ dependencies = [ "pallet-sudo", "pallet-timestamp", "pallet-tips", + "pallet-token-gateway", "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-treasury", @@ -8794,6 +10732,7 @@ dependencies = [ "public-credentials", "runtime-common", "scale-info", + "serde_json", "sp-api", "sp-block-builder", "sp-consensus-aura", @@ -8819,20 +10758,20 @@ dependencies = [ [[package]] name = "pest" -version = "2.7.10" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "560131c633294438da9f7c4b08189194b20946c8274c6b9e38881a7874dc8ee8" +checksum = "198db74531d58c70a361c42201efde7e2591e976d518caf7662a47dc5720e7b6" dependencies = [ "memchr", - "thiserror", + "thiserror 2.0.12", "ucd-trie", ] [[package]] name = "pest_derive" -version = "2.7.10" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26293c9193fbca7b1a3bf9b79dc1e388e927e6cacaa78b4a3ab705a1d3d41459" +checksum = "d725d9cfd79e87dccc9341a2ef39d1b6f6353d68c4b33c177febbe1a402c97c5" dependencies = [ "pest", "pest_generator", @@ -8840,22 +10779,22 @@ dependencies = [ [[package]] name = "pest_generator" -version = "2.7.10" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ec22af7d3fb470a85dd2ca96b7c577a1eb4ef6f1683a9fe9a8c16e136c04687" +checksum = "db7d01726be8ab66ab32f9df467ae8b1148906685bbe75c82d1e65d7f5b3f841" dependencies = [ "pest", "pest_meta", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "pest_meta" -version = "2.7.10" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7a240022f37c361ec1878d646fc5b7d7c4d28d5946e1a80ad5a7a4f4ca0bdcd" +checksum = "7f9f832470494906d1fca5329f8ab5791cc60beb230c74815dff541cbd2b5ca0" dependencies = [ "once_cell", "pest", @@ -8869,40 +10808,34 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" dependencies = [ "fixedbitset", - "indexmap 2.2.6", + "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.66", + "syn 2.0.101", ] [[package]] name = "pin-project-lite" -version = "0.1.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "257b64915a082f7811703966789728173279bdebb956b143dbcd23f6f970a777" - -[[package]] -name = "pin-project-lite" -version = "0.2.14" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" +checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" [[package]] name = "pin-utils" @@ -8912,12 +10845,12 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "piper" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae1d5c74c9876f070d3e8fd503d748c7d974c3e48da8f41350fa5222ef9b4391" +checksum = "96c8c490f422ef9a4efd2cb5b42b76c8613d7e7dfc1caf667b8a3350a5acc066" dependencies = [ "atomic-waker", - "fastrand 2.1.0", + "fastrand 2.3.0", "futures-io", ] @@ -8933,19 +10866,19 @@ dependencies = [ [[package]] name = "pkg-config" -version = "0.3.30" +version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" +checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" [[package]] name = "polkadot-approval-distribution" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.2.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bitvec", "futures", "futures-timer", - "itertools 0.10.5", + "itertools 0.11.0", "polkadot-node-jaeger", "polkadot-node-metrics", "polkadot-node-network-protocol", @@ -8953,14 +10886,14 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "rand", + "rand 0.8.5", "tracing-gum", ] [[package]] name = "polkadot-availability-bitfield-distribution" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "always-assert", "futures", @@ -8969,16 +10902,16 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "rand", + "rand 0.8.5", "tracing-gum", ] [[package]] name = "polkadot-availability-distribution" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "derive_more", + "derive_more 0.99.20", "fatality", "futures", "parity-scale-codec", @@ -8988,18 +10921,19 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "rand", + "rand 0.8.5", + "sc-network", "schnellru", "sp-core", "sp-keystore", - "thiserror", + "thiserror 1.0.69", "tracing-gum", ] [[package]] name = "polkadot-availability-recovery" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "fatality", @@ -9011,18 +10945,28 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "rand", + "rand 0.8.5", "sc-network", "schnellru", - "thiserror", + "thiserror 1.0.69", "tokio", "tracing-gum", ] +[[package]] +name = "polkadot-ckb-merkle-mountain-range" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4b44320e5f7ce2c18227537a3032ae5b2c476a7e8eddba45333e1011fc31b92" +dependencies = [ + "cfg-if", + "itertools 0.10.5", +] + [[package]] name = "polkadot-cli" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "19.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "cfg-if", "clap", @@ -9042,15 +10986,15 @@ dependencies = [ "sp-io", "sp-keyring", "sp-maybe-compressed-blob", + "sp-runtime", "substrate-build-script-utils", - "thiserror", - "try-runtime-cli", + "thiserror 1.0.69", ] [[package]] name = "polkadot-collator-protocol" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bitvec", "fatality", @@ -9061,36 +11005,36 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", + "schnellru", "sp-core", "sp-keystore", "sp-runtime", - "thiserror", + "thiserror 1.0.69", "tokio-util", "tracing-gum", ] [[package]] name = "polkadot-core-primitives" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "15.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "parity-scale-codec", "scale-info", "sp-core", "sp-runtime", - "sp-std", ] [[package]] name = "polkadot-dispute-distribution" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "derive_more", + "derive_more 0.99.20", "fatality", "futures", "futures-timer", - "indexmap 2.2.6", + "indexmap 2.9.0", "parity-scale-codec", "polkadot-erasure-coding", "polkadot-node-network-protocol", @@ -9102,14 +11046,14 @@ dependencies = [ "schnellru", "sp-application-crypto", "sp-keystore", - "thiserror", + "thiserror 1.0.69", "tracing-gum", ] [[package]] name = "polkadot-erasure-coding" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "16.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "parity-scale-codec", "polkadot-node-primitives", @@ -9117,13 +11061,13 @@ dependencies = [ "reed-solomon-novelpoly", "sp-core", "sp-trie", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "polkadot-gossip-support" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "futures", "futures-timer", @@ -9131,7 +11075,7 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "rand", + "rand 0.8.5", "rand_chacha 0.3.1", "sc-network", "sc-network-common", @@ -9144,8 +11088,8 @@ dependencies = [ [[package]] name = "polkadot-network-bridge" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "always-assert", "async-trait", @@ -9161,14 +11105,14 @@ dependencies = [ "polkadot-primitives", "sc-network", "sp-consensus", - "thiserror", + "thiserror 1.0.69", "tracing-gum", ] [[package]] name = "polkadot-node-collation-generation" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "futures", "parity-scale-codec", @@ -9179,20 +11123,20 @@ dependencies = [ "polkadot-primitives", "sp-core", "sp-maybe-compressed-blob", - "thiserror", + "thiserror 1.0.69", "tracing-gum", ] [[package]] name = "polkadot-node-core-approval-voting" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.3.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bitvec", - "derive_more", + "derive_more 0.99.20", "futures", "futures-timer", - "itertools 0.10.5", + "itertools 0.11.0", "kvdb", "merlin", "parity-scale-codec", @@ -9202,7 +11146,7 @@ dependencies = [ "polkadot-node-subsystem-util", "polkadot-overseer", "polkadot-primitives", - "rand", + "rand 0.8.5", "rand_chacha 0.3.1", "rand_core 0.6.4", "sc-keystore", @@ -9212,14 +11156,14 @@ dependencies = [ "sp-consensus", "sp-consensus-slots", "sp-runtime", - "thiserror", + "thiserror 1.0.69", "tracing-gum", ] [[package]] name = "polkadot-node-core-av-store" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bitvec", "futures", @@ -9234,14 +11178,14 @@ dependencies = [ "polkadot-overseer", "polkadot-primitives", "sp-consensus", - "thiserror", + "thiserror 1.0.69", "tracing-gum", ] [[package]] name = "polkadot-node-core-backing" -version = "8.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bitvec", "fatality", @@ -9254,29 +11198,29 @@ dependencies = [ "polkadot-statement-table", "schnellru", "sp-keystore", - "thiserror", + "thiserror 1.0.69", "tracing-gum", ] [[package]] name = "polkadot-node-core-bitfield-signing" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "futures", "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", "sp-keystore", - "thiserror", + "thiserror 1.0.69", "tracing-gum", "wasm-timer", ] [[package]] name = "polkadot-node-core-candidate-validation" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "futures", @@ -9290,14 +11234,15 @@ dependencies = [ "polkadot-overseer", "polkadot-parachain-primitives", "polkadot-primitives", - "sp-maybe-compressed-blob", + "sp-application-crypto", + "sp-keystore", "tracing-gum", ] [[package]] name = "polkadot-node-core-chain-api" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "futures", "polkadot-node-metrics", @@ -9310,8 +11255,8 @@ dependencies = [ [[package]] name = "polkadot-node-core-chain-selection" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "futures", "futures-timer", @@ -9321,14 +11266,14 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "thiserror", + "thiserror 1.0.69", "tracing-gum", ] [[package]] name = "polkadot-node-core-dispute-coordinator" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "fatality", "futures", @@ -9340,14 +11285,14 @@ dependencies = [ "polkadot-primitives", "sc-keystore", "schnellru", - "thiserror", + "thiserror 1.0.69", "tracing-gum", ] [[package]] name = "polkadot-node-core-parachains-inherent" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "futures", @@ -9357,31 +11302,28 @@ dependencies = [ "polkadot-primitives", "sp-blockchain", "sp-inherents", - "thiserror", + "thiserror 1.0.69", "tracing-gum", ] [[package]] name = "polkadot-node-core-prospective-parachains" -version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "17.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "bitvec", "fatality", "futures", - "parity-scale-codec", - "polkadot-node-primitives", "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "thiserror", + "thiserror 1.0.69", "tracing-gum", ] [[package]] name = "polkadot-node-core-provisioner" -version = "8.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bitvec", "fatality", @@ -9391,23 +11333,22 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "thiserror", + "schnellru", + "thiserror 1.0.69", "tracing-gum", ] [[package]] name = "polkadot-node-core-pvf" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "always-assert", - "array-bytes 6.2.3", + "array-bytes", "blake3", "cfg-if", "futures", "futures-timer", - "is_executable", - "libc", "parity-scale-codec", "pin-project", "polkadot-core-primitives", @@ -9417,21 +11358,19 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-parachain-primitives", "polkadot-primitives", - "rand", + "rand 0.8.5", "slotmap", "sp-core", - "sp-maybe-compressed-blob", - "sp-wasm-interface", "tempfile", - "thiserror", + "thiserror 1.0.69", "tokio", "tracing-gum", ] [[package]] name = "polkadot-node-core-pvf-checker" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "futures", "polkadot-node-primitives", @@ -9440,21 +11379,20 @@ dependencies = [ "polkadot-overseer", "polkadot-primitives", "sp-keystore", - "thiserror", + "thiserror 1.0.69", "tracing-gum", ] [[package]] name = "polkadot-node-core-pvf-common" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "16.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "cfg-if", "cpu-time", "futures", "landlock", "libc", - "nix 0.27.1", + "nix 0.28.0", "parity-scale-codec", "polkadot-parachain-primitives", "polkadot-primitives", @@ -9467,14 +11405,14 @@ dependencies = [ "sp-externalities", "sp-io", "sp-tracing", - "thiserror", + "thiserror 1.0.69", "tracing-gum", ] [[package]] name = "polkadot-node-core-runtime-api" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "futures", "polkadot-node-metrics", @@ -9488,8 +11426,8 @@ dependencies = [ [[package]] name = "polkadot-node-jaeger" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "lazy_static", "log", @@ -9499,15 +11437,16 @@ dependencies = [ "polkadot-node-primitives", "polkadot-primitives", "sc-network", + "sc-network-types", "sp-core", - "thiserror", + "thiserror 1.0.69", "tokio", ] [[package]] name = "polkadot-node-metrics" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bs58 0.5.1", "futures", @@ -9525,13 +11464,13 @@ dependencies = [ [[package]] name = "polkadot-node-network-protocol" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.2.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-channel 1.9.0", "async-trait", "bitvec", - "derive_more", + "derive_more 0.99.20", "fatality", "futures", "hex", @@ -9539,41 +11478,46 @@ dependencies = [ "polkadot-node-jaeger", "polkadot-node-primitives", "polkadot-primitives", - "rand", + "rand 0.8.5", "sc-authority-discovery", "sc-network", - "strum 0.24.1", - "thiserror", + "sc-network-types", + "sp-runtime", + "strum 0.26.3", + "thiserror 1.0.69", "tracing-gum", ] [[package]] name = "polkadot-node-primitives" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "16.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bitvec", "bounded-vec", "futures", + "futures-timer", "parity-scale-codec", "polkadot-parachain-primitives", "polkadot-primitives", + "sc-keystore", "schnorrkel 0.11.4", "serde", "sp-application-crypto", "sp-consensus-babe", + "sp-consensus-slots", "sp-core", "sp-keystore", "sp-maybe-compressed-blob", "sp-runtime", - "thiserror", + "thiserror 1.0.69", "zstd 0.12.4", ] [[package]] name = "polkadot-node-subsystem" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "polkadot-node-jaeger", "polkadot-node-subsystem-types", @@ -9582,12 +11526,13 @@ dependencies = [ [[package]] name = "polkadot-node-subsystem-types" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "bitvec", - "derive_more", + "derive_more 0.99.20", + "fatality", "futures", "orchestra", "polkadot-node-jaeger", @@ -9597,6 +11542,7 @@ dependencies = [ "polkadot-statement-table", "sc-client-api", "sc-network", + "sc-network-types", "sc-transaction-pool-api", "smallvec", "sp-api", @@ -9605,25 +11551,26 @@ dependencies = [ "sp-consensus-babe", "sp-runtime", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "polkadot-node-subsystem-util" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", - "derive_more", + "derive_more 0.99.20", "fatality", "futures", "futures-channel", - "itertools 0.10.5", + "itertools 0.11.0", "kvdb", "parity-db", "parity-scale-codec", "parking_lot 0.12.3", "pin-project", + "polkadot-erasure-coding", "polkadot-node-jaeger", "polkadot-node-metrics", "polkadot-node-network-protocol", @@ -9633,20 +11580,20 @@ dependencies = [ "polkadot-overseer", "polkadot-primitives", "prioritized-metered-channel", - "rand", + "rand 0.8.5", "sc-client-api", "schnellru", "sp-application-crypto", "sp-core", "sp-keystore", - "thiserror", + "thiserror 1.0.69", "tracing-gum", ] [[package]] name = "polkadot-overseer" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "futures", @@ -9665,27 +11612,95 @@ dependencies = [ "tracing-gum", ] +[[package]] +name = "polkadot-parachain-lib" +version = "0.3.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "async-trait", + "clap", + "color-print", + "cumulus-client-cli", + "cumulus-client-collator", + "cumulus-client-consensus-aura", + "cumulus-client-consensus-common", + "cumulus-client-consensus-proposer", + "cumulus-client-consensus-relay-chain", + "cumulus-client-parachain-inherent", + "cumulus-client-service", + "cumulus-primitives-aura", + "cumulus-primitives-core", + "cumulus-relay-chain-interface", + "docify", + "frame-benchmarking", + "frame-benchmarking-cli", + "frame-support", + "frame-system-rpc-runtime-api", + "frame-try-runtime", + "futures", + "jsonrpsee", + "log", + "pallet-transaction-payment", + "pallet-transaction-payment-rpc", + "pallet-transaction-payment-rpc-runtime-api", + "parachains-common", + "parity-scale-codec", + "polkadot-cli", + "polkadot-primitives", + "sc-basic-authorship", + "sc-chain-spec", + "sc-cli", + "sc-client-api", + "sc-client-db", + "sc-consensus", + "sc-executor", + "sc-network", + "sc-rpc", + "sc-service", + "sc-sysinfo", + "sc-telemetry", + "sc-tracing", + "sc-transaction-pool", + "serde", + "serde_json", + "sp-api", + "sp-block-builder", + "sp-consensus-aura", + "sp-core", + "sp-genesis-builder", + "sp-inherents", + "sp-keystore", + "sp-runtime", + "sp-session", + "sp-timestamp", + "sp-transaction-pool", + "sp-version", + "sp-weights", + "substrate-frame-rpc-system", + "substrate-prometheus-endpoint", + "substrate-state-trie-migration-rpc", +] + [[package]] name = "polkadot-parachain-primitives" -version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "14.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bounded-collections", - "derive_more", + "derive_more 0.99.20", "parity-scale-codec", "polkadot-core-primitives", "scale-info", "serde", "sp-core", "sp-runtime", - "sp-std", "sp-weights", ] [[package]] name = "polkadot-primitives" -version = "8.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "16.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bitvec", "hex-literal 0.4.1", @@ -9706,13 +11721,12 @@ dependencies = [ "sp-keystore", "sp-runtime", "sp-staking", - "sp-std", ] [[package]] name = "polkadot-rpc" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "19.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "jsonrpsee", "mmr-rpc", @@ -9732,10 +11746,12 @@ dependencies = [ "sc-sync-state-rpc", "sc-transaction-pool-api", "sp-api", + "sp-application-crypto", "sp-block-builder", "sp-blockchain", "sp-consensus", "sp-consensus-babe", + "sp-consensus-beefy", "sp-keystore", "sp-runtime", "substrate-frame-rpc-system", @@ -9744,8 +11760,8 @@ dependencies = [ [[package]] name = "polkadot-runtime-common" -version = "8.0.2" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "17.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bitvec", "frame-benchmarking", @@ -9786,7 +11802,6 @@ dependencies = [ "sp-runtime", "sp-session", "sp-staking", - "sp-std", "staging-xcm", "staging-xcm-builder", "staging-xcm-executor", @@ -9795,25 +11810,24 @@ dependencies = [ [[package]] name = "polkadot-runtime-metrics" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "17.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bs58 0.5.1", "frame-benchmarking", "parity-scale-codec", "polkadot-primitives", - "sp-std", "sp-tracing", ] [[package]] name = "polkadot-runtime-parachains" -version = "8.0.3" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "17.0.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bitflags 1.3.2", "bitvec", - "derive_more", + "derive_more 0.99.20", "frame-benchmarking", "frame-support", "frame-system", @@ -9825,6 +11839,7 @@ dependencies = [ "pallet-balances", "pallet-broker", "pallet-message-queue", + "pallet-mmr", "pallet-session", "pallet-staking", "pallet-timestamp", @@ -9834,9 +11849,8 @@ dependencies = [ "polkadot-parachain-primitives", "polkadot-primitives", "polkadot-runtime-metrics", - "rand", + "rand 0.8.5", "rand_chacha 0.3.1", - "rustc-hex", "scale-info", "serde", "sp-api", @@ -9855,27 +11869,297 @@ dependencies = [ "static_assertions", ] +[[package]] +name = "polkadot-sdk" +version = "0.9.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "asset-test-utils", + "assets-common", + "binary-merkle-tree", + "bp-header-chain", + "bp-messages", + "bp-parachains", + "bp-polkadot", + "bp-polkadot-core", + "bp-relayers", + "bp-runtime", + "bp-test-utils", + "bp-xcm-bridge-hub", + "bp-xcm-bridge-hub-router", + "bridge-hub-common", + "bridge-hub-test-utils", + "bridge-runtime-common", + "cumulus-pallet-aura-ext", + "cumulus-pallet-dmp-queue", + "cumulus-pallet-parachain-system", + "cumulus-pallet-parachain-system-proc-macro", + "cumulus-pallet-session-benchmarking", + "cumulus-pallet-solo-to-para", + "cumulus-pallet-xcm", + "cumulus-pallet-xcmp-queue", + "cumulus-ping", + "cumulus-primitives-aura", + "cumulus-primitives-core", + "cumulus-primitives-parachain-inherent", + "cumulus-primitives-proof-size-hostfunction", + "cumulus-primitives-storage-weight-reclaim", + "cumulus-primitives-timestamp", + "cumulus-primitives-utility", + "cumulus-relay-chain-interface", + "cumulus-test-relay-sproof-builder", + "frame-benchmarking", + "frame-benchmarking-cli", + "frame-benchmarking-pallet-pov", + "frame-election-provider-support", + "frame-executive", + "frame-metadata-hash-extension", + "frame-support", + "frame-support-procedural", + "frame-system", + "frame-system-benchmarking", + "frame-system-rpc-runtime-api", + "frame-try-runtime", + "pallet-alliance", + "pallet-asset-conversion", + "pallet-asset-conversion-ops", + "pallet-asset-conversion-tx-payment", + "pallet-asset-rate", + "pallet-asset-tx-payment", + "pallet-assets", + "pallet-assets-freezer", + "pallet-atomic-swap", + "pallet-aura", + "pallet-authority-discovery", + "pallet-authorship", + "pallet-babe", + "pallet-bags-list", + "pallet-balances", + "pallet-beefy", + "pallet-beefy-mmr", + "pallet-bounties", + "pallet-bridge-grandpa", + "pallet-bridge-messages", + "pallet-bridge-parachains", + "pallet-bridge-relayers", + "pallet-broker", + "pallet-child-bounties", + "pallet-collator-selection", + "pallet-collective", + "pallet-collective-content", + "pallet-contracts", + "pallet-contracts-mock-network", + "pallet-conviction-voting", + "pallet-core-fellowship", + "pallet-delegated-staking", + "pallet-democracy", + "pallet-dev-mode", + "pallet-election-provider-multi-phase", + "pallet-election-provider-support-benchmarking", + "pallet-elections-phragmen", + "pallet-fast-unstake", + "pallet-glutton", + "pallet-grandpa", + "pallet-identity", + "pallet-im-online", + "pallet-indices", + "pallet-insecure-randomness-collective-flip", + "pallet-lottery", + "pallet-membership", + "pallet-message-queue", + "pallet-migrations", + "pallet-mixnet", + "pallet-mmr", + "pallet-multisig", + "pallet-nft-fractionalization", + "pallet-nfts", + "pallet-nfts-runtime-api", + "pallet-nis", + "pallet-node-authorization", + "pallet-nomination-pools", + "pallet-nomination-pools-benchmarking", + "pallet-nomination-pools-runtime-api", + "pallet-offences", + "pallet-offences-benchmarking", + "pallet-paged-list", + "pallet-parameters", + "pallet-preimage", + "pallet-proxy", + "pallet-ranked-collective", + "pallet-recovery", + "pallet-referenda", + "pallet-remark", + "pallet-revive", + "pallet-revive-fixtures", + "pallet-revive-mock-network", + "pallet-root-offences", + "pallet-root-testing", + "pallet-safe-mode", + "pallet-salary", + "pallet-scheduler", + "pallet-scored-pool", + "pallet-session", + "pallet-session-benchmarking", + "pallet-skip-feeless-payment", + "pallet-society", + "pallet-staking", + "pallet-staking-reward-fn", + "pallet-staking-runtime-api", + "pallet-state-trie-migration", + "pallet-statement", + "pallet-sudo", + "pallet-timestamp", + "pallet-tips", + "pallet-transaction-payment", + "pallet-transaction-payment-rpc-runtime-api", + "pallet-transaction-storage", + "pallet-treasury", + "pallet-tx-pause", + "pallet-uniques", + "pallet-utility", + "pallet-vesting", + "pallet-whitelist", + "pallet-xcm", + "pallet-xcm-benchmarks", + "pallet-xcm-bridge-hub", + "pallet-xcm-bridge-hub-router", + "parachains-common", + "parachains-runtimes-test-utils", + "polkadot-cli", + "polkadot-core-primitives", + "polkadot-node-metrics", + "polkadot-parachain-lib", + "polkadot-parachain-primitives", + "polkadot-primitives", + "polkadot-runtime-common", + "polkadot-runtime-metrics", + "polkadot-runtime-parachains", + "polkadot-sdk-frame", + "polkadot-service", + "sc-client-api", + "sc-client-db", + "sc-executor", + "sc-rpc", + "sc-service", + "slot-range-helper", + "snowbridge-beacon-primitives", + "snowbridge-core", + "snowbridge-ethereum", + "snowbridge-outbound-queue-merkle-tree", + "snowbridge-outbound-queue-runtime-api", + "snowbridge-pallet-ethereum-client", + "snowbridge-pallet-ethereum-client-fixtures", + "snowbridge-pallet-inbound-queue", + "snowbridge-pallet-inbound-queue-fixtures", + "snowbridge-pallet-outbound-queue", + "snowbridge-pallet-system", + "snowbridge-router-primitives", + "snowbridge-runtime-common", + "snowbridge-runtime-test-common", + "snowbridge-system-runtime-api", + "sp-api", + "sp-api-proc-macro", + "sp-application-crypto", + "sp-arithmetic", + "sp-authority-discovery", + "sp-block-builder", + "sp-blockchain", + "sp-consensus-aura", + "sp-consensus-babe", + "sp-consensus-beefy", + "sp-consensus-grandpa", + "sp-consensus-pow", + "sp-consensus-slots", + "sp-core", + "sp-core-hashing", + "sp-crypto-ec-utils", + "sp-crypto-hashing", + "sp-debug-derive", + "sp-externalities", + "sp-genesis-builder", + "sp-inherents", + "sp-io", + "sp-keyring", + "sp-keystore", + "sp-metadata-ir", + "sp-mixnet", + "sp-mmr-primitives", + "sp-npos-elections", + "sp-offchain", + "sp-runtime", + "sp-runtime-interface", + "sp-session", + "sp-staking", + "sp-state-machine", + "sp-statement-store", + "sp-std", + "sp-storage", + "sp-timestamp", + "sp-tracing", + "sp-transaction-pool", + "sp-transaction-storage-proof", + "sp-trie", + "sp-version", + "sp-wasm-interface", + "sp-weights", + "staging-node-inspect", + "staging-parachain-info", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", + "substrate-bip39", + "testnet-parachains-constants", + "xcm-runtime-apis", +] + +[[package]] +name = "polkadot-sdk-frame" +version = "0.7.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +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-inherents", + "sp-io", + "sp-offchain", + "sp-runtime", + "sp-session", + "sp-storage", + "sp-transaction-pool", + "sp-version", +] + [[package]] name = "polkadot-service" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "19.0.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "frame-benchmarking", "frame-benchmarking-cli", - "frame-support", "frame-system", "frame-system-rpc-runtime-api", "futures", - "hex-literal 0.4.1", "is_executable", "kvdb", "kvdb-rocksdb", "log", "mmr-gadget", - "pallet-babe", - "pallet-im-online", - "pallet-staking", "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "parity-db", @@ -9911,7 +12195,6 @@ dependencies = [ "polkadot-node-subsystem-types", "polkadot-node-subsystem-util", "polkadot-overseer", - "polkadot-parachain-primitives", "polkadot-primitives", "polkadot-rpc", "polkadot-runtime-parachains", @@ -9919,10 +12202,8 @@ dependencies = [ "rococo-runtime", "sc-authority-discovery", "sc-basic-authorship", - "sc-block-builder", "sc-chain-spec", "sc-client-api", - "sc-client-db", "sc-consensus", "sc-consensus-babe", "sc-consensus-beefy", @@ -9931,7 +12212,6 @@ dependencies = [ "sc-executor", "sc-keystore", "sc-network", - "sc-network-common", "sc-network-sync", "sc-offchain", "sc-service", @@ -9940,7 +12220,6 @@ dependencies = [ "sc-telemetry", "sc-transaction-pool", "sc-transaction-pool-api", - "schnellru", "serde", "serde_json", "sp-api", @@ -9952,37 +12231,37 @@ dependencies = [ "sp-consensus-beefy", "sp-consensus-grandpa", "sp-core", + "sp-genesis-builder", "sp-inherents", "sp-io", "sp-keyring", - "sp-keystore", "sp-mmr-primitives", "sp-offchain", "sp-runtime", "sp-session", - "sp-state-machine", - "sp-storage", "sp-timestamp", "sp-transaction-pool", "sp-version", "sp-weights", + "staging-xcm", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.69", "tracing-gum", "westend-runtime", + "xcm-runtime-apis", ] [[package]] name = "polkadot-statement-distribution" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "arrayvec 0.7.4", + "arrayvec 0.7.6", "bitvec", "fatality", "futures", "futures-timer", - "indexmap 2.2.6", + "indexmap 2.9.0", "parity-scale-codec", "polkadot-node-network-protocol", "polkadot-node-primitives", @@ -9991,21 +12270,188 @@ dependencies = [ "polkadot-primitives", "sp-keystore", "sp-staking", - "thiserror", + "thiserror 1.0.69", + "tracing-gum", +] + +[[package]] +name = "polkadot-statement-table" +version = "16.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "parity-scale-codec", + "polkadot-primitives", + "sp-core", "tracing-gum", ] [[package]] -name = "polkadot-statement-table" -version = "8.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +name = "polkavm" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a3693e5efdb2bf74e449cd25fd777a28bd7ed87e41f5d5da75eb31b4de48b94" +dependencies = [ + "libc", + "log", + "polkavm-assembler 0.9.0", + "polkavm-common 0.9.0", + "polkavm-linux-raw 0.9.0", +] + +[[package]] +name = "polkavm" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7ec0c5935f2eff23cfc4653002f4f8d12b37f87a720e0631282d188c32089d6" +dependencies = [ + "libc", + "log", + "polkavm-assembler 0.10.0", + "polkavm-common 0.10.0", + "polkavm-linux-raw 0.10.0", +] + +[[package]] +name = "polkavm-assembler" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa96d6d868243acc12de813dd48e756cbadcc8e13964c70d272753266deadc1" +dependencies = [ + "log", +] + +[[package]] +name = "polkavm-assembler" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8e4fd5a43100bf1afe9727b8130d01f966f5cfc9144d5604b21e795c2bcd80e" +dependencies = [ + "log", +] + +[[package]] +name = "polkavm-common" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d9428a5cfcc85c5d7b9fc4b6a18c4b802d0173d768182a51cc7751640f08b92" +dependencies = [ + "log", +] + +[[package]] +name = "polkavm-common" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0097b48bc0bedf9f3f537ce8f37e8f1202d8d83f9b621bdb21ff2c59b9097c50" +dependencies = [ + "log", + "polkavm-assembler 0.10.0", +] + +[[package]] +name = "polkavm-derive" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae8c4bea6f3e11cd89bb18bcdddac10bd9a24015399bd1c485ad68a985a19606" +dependencies = [ + "polkavm-derive-impl-macro 0.9.0", +] + +[[package]] +name = "polkavm-derive" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0dcc701385c08c31bdb0569f0c51a290c580d892fa77f1dd88a7352a62679ecf" +dependencies = [ + "polkavm-derive-impl-macro 0.10.0", +] + +[[package]] +name = "polkavm-derive-impl" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c4fdfc49717fb9a196e74a5d28e0bc764eb394a2c803eb11133a31ac996c60c" +dependencies = [ + "polkavm-common 0.9.0", + "proc-macro2", + "quote", + "syn 2.0.101", +] + +[[package]] +name = "polkavm-derive-impl" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7855353a5a783dd5d09e3b915474bddf66575f5a3cf45dec8d1c5e051ba320dc" +dependencies = [ + "polkavm-common 0.10.0", + "proc-macro2", + "quote", + "syn 2.0.101", +] + +[[package]] +name = "polkavm-derive-impl-macro" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ba81f7b5faac81e528eb6158a6f3c9e0bb1008e0ffa19653bc8dea925ecb429" +dependencies = [ + "polkavm-derive-impl 0.9.0", + "syn 2.0.101", +] + +[[package]] +name = "polkavm-derive-impl-macro" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9324fe036de37c17829af233b46ef6b5562d4a0c09bb7fdb9f8378856dee30cf" +dependencies = [ + "polkavm-derive-impl 0.10.0", + "syn 2.0.101", +] + +[[package]] +name = "polkavm-linker" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c7be503e60cf56c0eb785f90aaba4b583b36bff00e93997d93fef97f9553c39" +dependencies = [ + "gimli 0.28.1", + "hashbrown 0.14.5", + "log", + "object 0.32.2", + "polkavm-common 0.9.0", + "regalloc2 0.9.3", + "rustc-demangle", +] + +[[package]] +name = "polkavm-linker" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d704edfe7bdcc876784f19436d53d515b65eb07bc9a0fae77085d552c2dbbb5" dependencies = [ - "parity-scale-codec", - "polkadot-primitives", - "sp-core", - "tracing-gum", + "gimli 0.28.1", + "hashbrown 0.14.5", + "log", + "object 0.36.7", + "polkavm-common 0.10.0", + "regalloc2 0.9.3", + "rustc-demangle", ] +[[package]] +name = "polkavm-linux-raw" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26e85d3456948e650dff0cfc85603915847faf893ed1e66b020bb82ef4557120" + +[[package]] +name = "polkavm-linux-raw" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26e45fa59c7e1bb12ef5289080601e9ec9b31435f6e32800a5c90c132453d126" + [[package]] name = "polling" version = "2.8.0" @@ -10018,23 +12464,23 @@ dependencies = [ "concurrent-queue", "libc", "log", - "pin-project-lite 0.2.14", + "pin-project-lite", "windows-sys 0.48.0", ] [[package]] name = "polling" -version = "3.7.2" +version = "3.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3ed00ed3fbf728b5816498ecd316d1716eecaced9c0c8d2c5a6740ca214985b" +checksum = "a604568c3202727d1507653cb121dbd627a58684eb09a820fd746bee38b4442f" dependencies = [ "cfg-if", "concurrent-queue", "hermit-abi 0.4.0", - "pin-project-lite 0.2.14", - "rustix 0.38.34", + "pin-project-lite", + "rustix 0.38.44", "tracing", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -10062,9 +12508,9 @@ dependencies = [ [[package]] name = "portable-atomic" -version = "1.6.0" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" +checksum = "350e9b48cbc6b0e028b0473b114454c6316e57336ee184ceab6e53f72c178b3e" [[package]] name = "powerfmt" @@ -10074,9 +12520,12 @@ checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" [[package]] name = "ppv-lite86" -version = "0.2.17" +version = "0.2.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy 0.8.25", +] [[package]] name = "predicates" @@ -10092,17 +12541,27 @@ dependencies = [ "regex", ] +[[package]] +name = "predicates" +version = "3.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5d19ee57562043d37e82899fade9a22ebab7be9cef5026b07fda9cdd4293573" +dependencies = [ + "anstyle", + "predicates-core", +] + [[package]] name = "predicates-core" -version = "1.0.6" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b794032607612e7abeb4db69adb4e33590fa6cf1149e95fd7cb00e634b92f174" +checksum = "727e462b119fe9c93fd0eb1429a5f7647394014cf3c04ab2c0350eeb09095ffa" [[package]] name = "predicates-tree" -version = "1.0.9" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "368ba315fb8c5052ab692e68a0eefec6ec57b23a36959c14496f0b0df2c0cecf" +checksum = "72dd2d6d381dfb73a193c7fca536518d7caee39fc8503f74e7dc0be0531b425c" dependencies = [ "predicates-core", "termtree", @@ -10120,12 +12579,12 @@ dependencies = [ [[package]] name = "prettyplease" -version = "0.2.20" +version = "0.2.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f12335488a2f3b0a83b14edad48dca9879ce89b2edd10e80237e4e852dd645e" +checksum = "664ec5419c51e34154eec046ebcba56312d5a2fc3b09a06da188e1ad21afadf6" dependencies = [ "proc-macro2", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] @@ -10151,11 +12610,11 @@ checksum = "a172e6cc603231f2cf004232eabcecccc0da53ba576ab286ef7baa0cfc7927ad" dependencies = [ "coarsetime", "crossbeam-queue", - "derive_more", + "derive_more 0.99.20", "futures", "futures-timer", "nanorand", - "thiserror", + "thiserror 1.0.69", "tracing", ] @@ -10165,26 +12624,17 @@ version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e17d47ce914bf4de440332250b0edd23ce48c005f59fab39d3335866b114f11a" dependencies = [ - "thiserror", + "thiserror 1.0.69", "toml 0.5.11", ] [[package]] name = "proc-macro-crate" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e8366a6159044a37876a2b9817124296703c586a5c92e2c53751fa06d8d43e8" -dependencies = [ - "toml_edit 0.20.7", -] - -[[package]] -name = "proc-macro-crate" -version = "3.1.0" +version = "3.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d37c51ca738a55da99dc0c4a34860fd675453b8b36209178c2249bb13651284" +checksum = "edce586971a4dfaa28950c6f18ed55e0406c1ab88bbce2c6f6293a7aaba73d35" dependencies = [ - "toml_edit 0.21.1", + "toml_edit", ] [[package]] @@ -10213,20 +12663,31 @@ dependencies = [ [[package]] name = "proc-macro-warning" -version = "1.0.2" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d1eaa7fa0aa1929ffdf7eeb6eac234dde6268914a14ad44d23521ab6a9b258e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", +] + +[[package]] +name = "proc-macro-warning" +version = "1.84.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "834da187cfe638ae8abb0203f0b33e5ccdb02a28e7199f2f47b3e2754f50edca" +checksum = "75eea531cfcd120e0851a3f8aed42c4841f78c889eefafd96339c72677ae42c3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "proc-macro2" -version = "1.0.85" +version = "1.0.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22244ce15aa966053a896d1accb3a6e68469b97c7f33f284b99f0d576879fc23" +checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778" dependencies = [ "unicode-ident", ] @@ -10242,14 +12703,14 @@ dependencies = [ "lazy_static", "memchr", "parking_lot 0.12.3", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "prometheus-client" -version = "0.19.0" +version = "0.21.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d6fa99d535dd930d1249e6c79cb3c2915f9172a540fe2b02a4c8f9ca954721e" +checksum = "3c99afa9a01501019ac3a14d71d9f94050346f55ca471ce90c799a15c58f61e2" dependencies = [ "dtoa", "itoa", @@ -10265,7 +12726,27 @@ checksum = "440f724eba9f6996b75d63681b0a92b06947f1457076d503a4d2e2c8f56442b8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", +] + +[[package]] +name = "proptest" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14cae93065090804185d3b75f0bf93b8eeda30c7a9b4a33d3bdb3988d6229e50" +dependencies = [ + "bit-set", + "bit-vec", + "bitflags 2.9.0", + "lazy_static", + "num-traits", + "rand 0.8.5", + "rand_chacha 0.3.1", + "rand_xorshift", + "regex-syntax 0.8.5", + "rusty-fork", + "tempfile", + "unarray", ] [[package]] @@ -10303,13 +12784,34 @@ dependencies = [ "petgraph", "prettyplease 0.1.25", "prost 0.11.9", - "prost-types", + "prost-types 0.11.9", "regex", "syn 1.0.109", "tempfile", "which", ] +[[package]] +name = "prost-build" +version = "0.12.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22505a5c94da8e3b7c2996394d1c933236c4d743e81a410bcca4e6989fc066a4" +dependencies = [ + "bytes", + "heck 0.5.0", + "itertools 0.12.1", + "log", + "multimap", + "once_cell", + "petgraph", + "prettyplease 0.2.32", + "prost 0.12.6", + "prost-types 0.12.6", + "regex", + "syn 2.0.101", + "tempfile", +] + [[package]] name = "prost-derive" version = "0.11.9" @@ -10333,7 +12835,7 @@ dependencies = [ "itertools 0.12.1", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] @@ -10345,11 +12847,20 @@ dependencies = [ "prost 0.11.9", ] +[[package]] +name = "prost-types" +version = "0.12.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9091c90b0a32608e984ff2fa4091273cbdd755d54935c51d520887f4a1dbd5b0" +dependencies = [ + "prost 0.12.6", +] + [[package]] name = "psm" -version = "0.1.21" +version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5787f7cda34e3033a72192c018bc5883100330f362ef279a8cbccfce8bb4e874" +checksum = "6e944464ec8536cd1beb0bbfd96987eb5e3b72f2ecdafdc5c769a37f1fa2ae1f" dependencies = [ "cc", ] @@ -10375,6 +12886,21 @@ dependencies = [ "sp-weights", ] +[[package]] +name = "quanta" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3bd1fe6824cea6538803de3ff1bc0cf3949024db3d43c9643024bfb33a807c0e" +dependencies = [ + "crossbeam-utils", + "libc", + "once_cell", + "raw-cpuid", + "wasi 0.11.0+wasi-snapshot-preview1", + "web-sys", + "winapi", +] + [[package]] name = "quick-error" version = "1.2.3" @@ -10392,26 +12918,51 @@ dependencies = [ [[package]] name = "quick-protobuf-codec" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1693116345026436eb2f10b677806169c1a1260c1c60eaaffe3fb5a29ae23d8b" +checksum = "f8ededb1cd78531627244d51dd0c7139fbe736c7d57af0092a76f0ffb2f56e98" dependencies = [ "asynchronous-codec", "bytes", "quick-protobuf", - "thiserror", - "unsigned-varint", + "thiserror 1.0.69", + "unsigned-varint 0.7.2", ] [[package]] -name = "quicksink" -version = "0.1.2" +name = "quinn" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77de3c815e5a160b1539c6592796801df2043ae35e123b46d73380cfa57af858" +checksum = "2e8b432585672228923edbbf64b8b12c14e1112f62e88737655b4a083dbcd78e" dependencies = [ - "futures-core", - "futures-sink", - "pin-project-lite 0.1.12", + "bytes", + "pin-project-lite", + "quinn-proto 0.9.6", + "quinn-udp 0.3.2", + "rustc-hash 1.1.0", + "rustls 0.20.9", + "thiserror 1.0.69", + "tokio", + "tracing", + "webpki", +] + +[[package]] +name = "quinn" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cc2c5017e4b43d5995dcea317bc46c1e09404c0a9664d2908f7f02dfe943d75" +dependencies = [ + "bytes", + "futures-io", + "pin-project-lite", + "quinn-proto 0.10.6", + "quinn-udp 0.4.1", + "rustc-hash 1.1.0", + "rustls 0.21.12", + "thiserror 1.0.69", + "tokio", + "tracing", ] [[package]] @@ -10421,26 +12972,75 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94b0b33c13a79f669c85defaf4c275dc86a0c0372807d0ca3d78e0bb87274863" dependencies = [ "bytes", - "rand", + "rand 0.8.5", "ring 0.16.20", - "rustc-hash", + "rustc-hash 1.1.0", "rustls 0.20.9", "slab", - "thiserror", + "thiserror 1.0.69", "tinyvec", "tracing", "webpki", ] +[[package]] +name = "quinn-proto" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "141bf7dfde2fbc246bfd3fe12f2455aa24b0fbd9af535d8c86c7bd1381ff2b1a" +dependencies = [ + "bytes", + "rand 0.8.5", + "ring 0.16.20", + "rustc-hash 1.1.0", + "rustls 0.21.12", + "slab", + "thiserror 1.0.69", + "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" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "055b4e778e8feb9f93c4e439f71dc2156ef13360b432b799e179a8c4cdf0b1d7" +dependencies = [ + "bytes", + "libc", + "socket2 0.5.9", + "tracing", + "windows-sys 0.48.0", +] + [[package]] name = "quote" -version = "1.0.36" +version = "1.0.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" +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" @@ -10459,13 +13059,13 @@ dependencies = [ ] [[package]] -name = "rand_chacha" -version = "0.2.2" +name = "rand" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" +checksum = "9fbfd9d094a40bf3ae768db9361049ace4c0e04a4fd6b359518bd7b73a73dd97" dependencies = [ - "ppv-lite86", - "rand_core 0.5.1", + "rand_chacha 0.9.0", + "rand_core 0.9.3", ] [[package]] @@ -10479,12 +13079,13 @@ dependencies = [ ] [[package]] -name = "rand_core" -version = "0.5.1" +name = "rand_chacha" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" dependencies = [ - "getrandom 0.1.16", + "ppv-lite86", + "rand_core 0.9.3", ] [[package]] @@ -10493,7 +13094,16 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.15", + "getrandom 0.2.16", +] + +[[package]] +name = "rand_core" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" +dependencies = [ + "getrandom 0.3.2", ] [[package]] @@ -10503,7 +13113,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32cb0b9bc82b0a0876c2dd994a7e7a2683d3e7390ca40e6886785ef0c7e3ee31" dependencies = [ "num-traits", - "rand", + "rand 0.8.5", ] [[package]] @@ -10515,6 +13125,24 @@ dependencies = [ "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]] +name = "raw-cpuid" +version = "11.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6df7ab838ed27997ba19a4664507e6f82b41fe6e20be42929332156e5e85146" +dependencies = [ + "bitflags 2.9.0", +] + [[package]] name = "rawpointer" version = "0.2.1" @@ -10564,31 +13192,22 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" -dependencies = [ - "bitflags 1.3.2", -] - -[[package]] -name = "redox_syscall" -version = "0.5.2" +version = "0.5.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c82cf8cff14456045f55ec4241383baeff27af886adb72ffb2162f99911de0fd" +checksum = "d2f103c6d277498fbceb16e84d317e2a400f160f46904d5f5410848c829511a3" dependencies = [ - "bitflags 2.5.0", + "bitflags 2.9.0", ] [[package]] name = "redox_users" -version = "0.4.5" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd283d9651eeda4b2a83a43c1c91b266c40fd76ecd39a50a8c630ae69dc72891" +checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" dependencies = [ - "getrandom 0.2.15", + "getrandom 0.2.16", "libredox", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -10597,30 +13216,30 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "87413ebb313323d431e85d0afc5a68222aaed972843537cbfe5f061cf1b4bcab" dependencies = [ - "derive_more", + "derive_more 0.99.20", "fs-err", "static_init", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "ref-cast" -version = "1.0.23" +version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccf0a6f84d5f1d581da8b41b47ec8600871962f2a528115b542b362d4b744931" +checksum = "4a0ae411dbe946a674d89546582cea4ba2bb8defac896622d6496f14c23ba5cf" dependencies = [ "ref-cast-impl", ] [[package]] name = "ref-cast-impl" -version = "1.0.23" +version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcc303e793d3734489387d205e9b186fac9c6cfacedd98cbb2e8a5943595f3e6" +checksum = "1165225c21bff1f3bbce98f5a1f889949bc902d3575308cc7b0de30b4f6d27c7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] @@ -10635,16 +13254,29 @@ dependencies = [ "smallvec", ] +[[package]] +name = "regalloc2" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad156d539c879b7a24a363a2016d77961786e71f48f2e2fc8302a92abd2429a6" +dependencies = [ + "hashbrown 0.13.2", + "log", + "rustc-hash 1.1.0", + "slice-group-by", + "smallvec", +] + [[package]] name = "regex" -version = "1.10.5" +version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f" +checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" dependencies = [ "aho-corasick", "memchr", - "regex-automata 0.4.7", - "regex-syntax 0.8.4", + "regex-automata 0.4.9", + "regex-syntax 0.8.5", ] [[package]] @@ -10658,13 +13290,13 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.7" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" +checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" dependencies = [ "aho-corasick", "memchr", - "regex-syntax 0.8.4", + "regex-syntax 0.8.5", ] [[package]] @@ -10675,18 +13307,17 @@ checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" [[package]] name = "regex-syntax" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" +checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" [[package]] name = "resolv-conf" -version = "0.7.0" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52e44394d2086d010551b14b53b1f24e31647570cd1deb0379e2c21b329aba00" +checksum = "48375394603e3dd4b2d64371f7148fd8c7baa2680e28741f2cb8d23b59e3d4c4" dependencies = [ "hostname", - "quick-error", ] [[package]] @@ -10696,7 +13327,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" dependencies = [ "hmac 0.12.1", - "subtle 2.4.1", + "subtle 2.6.1", ] [[package]] @@ -10722,21 +13353,12 @@ checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" dependencies = [ "cc", "cfg-if", - "getrandom 0.2.15", + "getrandom 0.2.16", "libc", "untrusted 0.9.0", "windows-sys 0.52.0", ] -[[package]] -name = "ripemd" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd124222d17ad93a644ed9d011a40f4fb64aa54275c08cc216524a9ea82fb09f" -dependencies = [ - "digest 0.10.7", -] - [[package]] name = "rlp" version = "0.5.2" @@ -10760,7 +13382,7 @@ dependencies = [ [[package]] name = "rococo-emulated-chain" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "emulated-integration-tests-common", "parachains-common", @@ -10776,10 +13398,11 @@ dependencies = [ [[package]] name = "rococo-runtime" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "binary-merkle-tree", + "bitvec", "frame-benchmarking", "frame-executive", "frame-metadata-hash-extension", @@ -10805,7 +13428,6 @@ dependencies = [ "pallet-elections-phragmen", "pallet-grandpa", "pallet-identity", - "pallet-im-online", "pallet-indices", "pallet-membership", "pallet-message-queue", @@ -10813,6 +13435,7 @@ dependencies = [ "pallet-multisig", "pallet-nis", "pallet-offences", + "pallet-parameters", "pallet-preimage", "pallet-proxy", "pallet-ranked-collective", @@ -10844,6 +13467,7 @@ dependencies = [ "scale-info", "serde", "serde_derive", + "serde_json", "smallvec", "sp-api", "sp-arithmetic", @@ -10851,6 +13475,7 @@ dependencies = [ "sp-block-builder", "sp-consensus-babe", "sp-consensus-beefy", + "sp-consensus-grandpa", "sp-core", "sp-genesis-builder", "sp-inherents", @@ -10860,7 +13485,6 @@ dependencies = [ "sp-runtime", "sp-session", "sp-staking", - "sp-std", "sp-storage", "sp-transaction-pool", "sp-version", @@ -10869,12 +13493,13 @@ dependencies = [ "staging-xcm-executor", "static_assertions", "substrate-wasm-builder", + "xcm-runtime-apis", ] [[package]] name = "rococo-runtime-constants" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "17.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-support", "polkadot-primitives", @@ -10895,40 +13520,76 @@ checksum = "afab94fb28594581f62d981211a9a4d53cc8130bbcbbb89a0440d9b8e81a7746" [[package]] name = "rpassword" -version = "7.3.1" +version = "7.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80472be3c897911d0137b2d2b9055faf6eeac5b14e324073d83bc17b191d7e3f" +checksum = "66d4c8b64f049c6721ec8ccec37ddfc3d641c4a7fca57e8f2a89de509c73df39" dependencies = [ "libc", "rtoolbox", - "windows-sys 0.48.0", + "windows-sys 0.59.0", ] [[package]] name = "rtnetlink" -version = "0.10.1" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "322c53fd76a18698f1c27381d58091de3a043d356aa5bd0d510608b565f469a0" +checksum = "7a552eb82d19f38c3beed3f786bd23aa434ceb9ac43ab44419ca6d67a7e186c0" dependencies = [ "futures", "log", + "netlink-packet-core", "netlink-packet-route", + "netlink-packet-utils", "netlink-proto", - "nix 0.24.3", - "thiserror", + "netlink-sys", + "nix 0.26.4", + "thiserror 1.0.69", "tokio", ] [[package]] name = "rtoolbox" -version = "0.0.2" +version = "0.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c247d24e63230cdb56463ae328478bd5eac8b8faa8c69461a77e8e323afac90e" +checksum = "a7cc970b249fbe527d6e02e0a227762c9108b2f49d81094fe357ffc6d14d7f6f" dependencies = [ "libc", - "windows-sys 0.48.0", + "windows-sys 0.52.0", +] + +[[package]] +name = "ruint" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78a46eb779843b2c4f21fac5773e25d6d5b7c8f0922876c91541790d2ca27eef" +dependencies = [ + "alloy-rlp", + "ark-ff 0.3.0", + "ark-ff 0.4.2", + "bytes", + "fastrlp 0.3.1", + "fastrlp 0.4.0", + "num-bigint", + "num-integer", + "num-traits", + "parity-scale-codec", + "primitive-types", + "proptest", + "rand 0.8.5", + "rand 0.9.1", + "rlp", + "ruint-macro", + "serde", + "valuable", + "zeroize", ] +[[package]] +name = "ruint-macro" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48fd7bd8a6377e15ad9d42a8ec25371b94ddc67abe7c8b9127bec79bebaaae18" + [[package]] name = "runtime-common" version = "1.16.0-dev" @@ -10996,6 +13657,12 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +[[package]] +name = "rustc-hash" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" + [[package]] name = "rustc-hex" version = "2.1.0" @@ -11004,11 +13671,29 @@ checksum = "3e75f6a532d0fd9f7f13144f392b6ad56a32696bfcd9c78f797f16bbb6f072d6" [[package]] name = "rustc_version" -version = "0.4.0" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" +dependencies = [ + "semver 0.9.0", +] + +[[package]] +name = "rustc_version" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0dfe2087c51c460008730de8b57e6a320782fbfb312e1f4d520e6c6fae155ee" +dependencies = [ + "semver 0.11.0", +] + +[[package]] +name = "rustc_version" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" dependencies = [ - "semver 1.0.23", + "semver 1.0.26", ] [[package]] @@ -11036,9 +13721,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.37.27" +version = "0.37.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fea8ca367a3a01fe35e6943c400addf443c0f57670e6ec51196f71a4b8762dd2" +checksum = "519165d378b97752ca44bbe15047d5d3409e875f39327546b42ac81d7e18c1b6" dependencies = [ "bitflags 1.3.2", "errno", @@ -11050,15 +13735,28 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.34" +version = "0.38.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f" +checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" dependencies = [ - "bitflags 2.5.0", + "bitflags 2.9.0", "errno", "libc", - "linux-raw-sys 0.4.14", - "windows-sys 0.52.0", + "linux-raw-sys 0.4.15", + "windows-sys 0.59.0", +] + +[[package]] +name = "rustix" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d97817398dd4bb2e6da002002db259209759911da105da92bec29ccb12cf58bf" +dependencies = [ + "bitflags 2.9.0", + "errno", + "libc", + "linux-raw-sys 0.9.4", + "windows-sys 0.59.0", ] [[package]] @@ -11067,7 +13765,6 @@ version = "0.20.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b80e3dec595989ea8510028f30c408a4630db12c9cbb8de34203b89d6577e99" dependencies = [ - "log", "ring 0.16.20", "sct", "webpki", @@ -11081,10 +13778,25 @@ checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e" dependencies = [ "log", "ring 0.17.14", - "rustls-webpki", + "rustls-webpki 0.101.7", "sct", ] +[[package]] +name = "rustls" +version = "0.23.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df51b5869f3a441595eac5e8ff14d486ff285f7b8c0df8770e49c3b56351f0f0" +dependencies = [ + "log", + "once_cell", + "ring 0.17.14", + "rustls-pki-types", + "rustls-webpki 0.103.1", + "subtle 2.6.1", + "zeroize", +] + [[package]] name = "rustls-native-certs" version = "0.6.3" @@ -11094,7 +13806,19 @@ dependencies = [ "openssl-probe", "rustls-pemfile", "schannel", - "security-framework", + "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 3.2.0", ] [[package]] @@ -11106,6 +13830,39 @@ dependencies = [ "base64 0.21.7", ] +[[package]] +name = "rustls-pki-types" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "917ce264624a4b4db1c364dcc35bfca9ded014d0a958cd47ad3e960e988ea51c" + +[[package]] +name = "rustls-platform-verifier" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4937d110d34408e9e5ad30ba0b0ca3b6a8a390f8db3636db60144ac4fa792750" +dependencies = [ + "core-foundation 0.10.0", + "core-foundation-sys", + "jni", + "log", + "once_cell", + "rustls 0.23.26", + "rustls-native-certs 0.8.1", + "rustls-platform-verifier-android", + "rustls-webpki 0.103.1", + "security-framework 3.2.0", + "security-framework-sys", + "webpki-root-certs", + "windows-sys 0.59.0", +] + +[[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" @@ -11116,11 +13873,34 @@ dependencies = [ "untrusted 0.9.0", ] +[[package]] +name = "rustls-webpki" +version = "0.103.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fef8b8769aaccf73098557a87cd1816b4f9c7c16811c9c77142aa695c16f2c03" +dependencies = [ + "ring 0.17.14", + "rustls-pki-types", + "untrusted 0.9.0", +] + [[package]] name = "rustversion" -version = "1.0.17" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eded382c5f5f786b989652c49544c4877d9f015cc22e145a5ea8ea66c2921cd2" + +[[package]] +name = "rusty-fork" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" +checksum = "cb3dcc6e454c328bb824492db107ab7c0ae8fcffe4ad210136ef014458c1bc4f" +dependencies = [ + "fnv", + "quick-error", + "tempfile", + "wait-timeout", +] [[package]] name = "ruzstd" @@ -11135,9 +13915,9 @@ dependencies = [ [[package]] name = "rw-stream-sink" -version = "0.3.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26338f5e09bb721b85b135ea05af7767c90b52f6de4f087d4f4a3a9d64e7dc04" +checksum = "d8c9026ff5d2f23da5e45bbc283f156383001bfb09c4e44256d02c1a685fe9a1" dependencies = [ "futures", "pin-project", @@ -11146,15 +13926,24 @@ dependencies = [ [[package]] name = "ryu" -version = "1.0.18" +version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" +checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f" + +[[package]] +name = "safe-mix" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d3d055a2582e6b00ed7a31c1524040aa391092bf636328350813f3a0605215c" +dependencies = [ + "rustc_version 0.2.3", +] [[package]] name = "safe_arch" -version = "0.7.2" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3460605018fdc9612bce72735cba0d27efbcd9904780d44c7e3a9948f96148a" +checksum = "96b02de82ddbe1b636e6170c21be622223aea188ef2e139be0a5b219ec215323" dependencies = [ "bytemuck", ] @@ -11170,34 +13959,35 @@ dependencies = [ [[package]] name = "sc-allocator" -version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "29.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "log", "sp-core", "sp-wasm-interface", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sc-authority-discovery" -version = "0.35.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.45.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "futures", "futures-timer", "ip_network", "libp2p", + "linked_hash_set", "log", - "multihash 0.18.1", - "multihash-codetable", + "multihash 0.19.3", "parity-scale-codec", "prost 0.12.6", - "prost-build", - "rand", + "prost-build 0.12.6", + "rand 0.8.5", "sc-client-api", "sc-network", + "sc-network-types", "sp-api", "sp-authority-discovery", "sp-blockchain", @@ -11205,13 +13995,13 @@ dependencies = [ "sp-keystore", "sp-runtime", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sc-basic-authorship" -version = "0.35.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.45.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "futures", "futures-timer", @@ -11232,8 +14022,8 @@ dependencies = [ [[package]] name = "sc-block-builder" -version = "0.34.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.42.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "parity-scale-codec", "sp-api", @@ -11247,13 +14037,13 @@ dependencies = [ [[package]] name = "sc-chain-spec" -version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "array-bytes 6.2.3", + "array-bytes", "docify", "log", - "memmap2 0.9.4", + "memmap2 0.9.5", "parity-scale-codec", "sc-chain-spec-derive", "sc-client-api", @@ -11269,36 +14059,37 @@ dependencies = [ "sp-io", "sp-runtime", "sp-state-machine", + "sp-tracing", ] [[package]] name = "sc-chain-spec-derive" -version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "12.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "proc-macro-crate 3.1.0", + "proc-macro-crate 3.3.0", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "sc-cli" -version = "0.37.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.47.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "array-bytes 6.2.3", - "bip39", + "array-bytes", "chrono", "clap", "fdlimit", "futures", - "itertools 0.10.5", + "itertools 0.11.0", "libp2p-identity", "log", "names", + "parity-bip39", "parity-scale-codec", - "rand", + "rand 0.8.5", "regex", "rpassword", "sc-client-api", @@ -11319,14 +14110,14 @@ dependencies = [ "sp-panic-handler", "sp-runtime", "sp-version", - "thiserror", + "thiserror 1.0.69", "tokio", ] [[package]] name = "sc-client-api" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "37.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "fnv", "futures", @@ -11352,8 +14143,8 @@ dependencies = [ [[package]] name = "sc-client-db" -version = "0.36.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.44.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "hash-db", "kvdb", @@ -11378,17 +14169,16 @@ dependencies = [ [[package]] name = "sc-consensus" -version = "0.34.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.44.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "futures", - "futures-timer", - "libp2p-identity", "log", - "mockall", + "mockall 0.11.4", "parking_lot 0.12.3", "sc-client-api", + "sc-network-types", "sc-utils", "serde", "sp-api", @@ -11398,13 +14188,13 @@ dependencies = [ "sp-runtime", "sp-state-machine", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sc-consensus-aura" -version = "0.35.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.45.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "futures", @@ -11427,13 +14217,13 @@ dependencies = [ "sp-keystore", "sp-runtime", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sc-consensus-babe" -version = "0.35.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.45.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "fork-tree", @@ -11463,13 +14253,13 @@ dependencies = [ "sp-keystore", "sp-runtime", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sc-consensus-babe-rpc" -version = "0.35.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.45.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "futures", "jsonrpsee", @@ -11485,15 +14275,15 @@ dependencies = [ "sp-core", "sp-keystore", "sp-runtime", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sc-consensus-beefy" -version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "24.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "array-bytes 6.2.3", + "array-bytes", "async-channel 1.9.0", "async-trait", "fnv", @@ -11506,6 +14296,7 @@ dependencies = [ "sc-network", "sc-network-gossip", "sc-network-sync", + "sc-network-types", "sc-utils", "sp-api", "sp-application-crypto", @@ -11516,18 +14307,17 @@ dependencies = [ "sp-core", "sp-crypto-hashing", "sp-keystore", - "sp-mmr-primitives", "sp-runtime", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.69", "tokio", "wasm-timer", ] [[package]] name = "sc-consensus-beefy-rpc" -version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "24.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "futures", "jsonrpsee", @@ -11537,16 +14327,17 @@ dependencies = [ "sc-consensus-beefy", "sc-rpc", "serde", + "sp-application-crypto", "sp-consensus-beefy", "sp-core", "sp-runtime", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sc-consensus-epochs" -version = "0.34.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.44.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "fork-tree", "parity-scale-codec", @@ -11558,11 +14349,11 @@ dependencies = [ [[package]] name = "sc-consensus-grandpa" -version = "0.20.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.30.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "ahash 0.8.11", - "array-bytes 6.2.3", + "array-bytes", "async-trait", "dyn-clone", "finality-grandpa", @@ -11572,7 +14363,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", @@ -11581,6 +14372,7 @@ dependencies = [ "sc-network-common", "sc-network-gossip", "sc-network-sync", + "sc-network-types", "sc-telemetry", "sc-transaction-pool-api", "sc-utils", @@ -11596,13 +14388,13 @@ dependencies = [ "sp-keystore", "sp-runtime", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sc-consensus-grandpa-rpc" -version = "0.20.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.30.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "finality-grandpa", "futures", @@ -11616,13 +14408,13 @@ dependencies = [ "sp-blockchain", "sp-core", "sp-runtime", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sc-consensus-slots" -version = "0.34.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.44.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "futures", @@ -11644,12 +14436,13 @@ dependencies = [ [[package]] name = "sc-executor" -version = "0.33.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.40.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "parity-scale-codec", "parking_lot 0.12.3", "sc-executor-common", + "sc-executor-polkavm", "sc-executor-wasmtime", "schnellru", "sp-api", @@ -11666,20 +14459,32 @@ dependencies = [ [[package]] name = "sc-executor-common" -version = "0.30.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.35.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ + "polkavm 0.9.3", "sc-allocator", "sp-maybe-compressed-blob", "sp-wasm-interface", - "thiserror", + "thiserror 1.0.69", "wasm-instrument", ] +[[package]] +name = "sc-executor-polkavm" +version = "0.32.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "log", + "polkavm 0.9.3", + "sc-executor-common", + "sp-wasm-interface", +] + [[package]] name = "sc-executor-wasmtime" -version = "0.30.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.35.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "anyhow", "cfg-if", @@ -11696,10 +14501,10 @@ dependencies = [ [[package]] name = "sc-informant" -version = "0.34.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.44.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "ansi_term", + "console", "futures", "futures-timer", "log", @@ -11713,37 +14518,37 @@ dependencies = [ [[package]] name = "sc-keystore" -version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "33.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "array-bytes 6.2.3", + "array-bytes", "parking_lot 0.12.3", "serde_json", "sp-application-crypto", "sp-core", "sp-keystore", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sc-mixnet" -version = "0.5.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.15.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "array-bytes 4.2.0", - "arrayvec 0.7.4", + "array-bytes", + "arrayvec 0.7.6", "blake2 0.10.6", "bytes", "futures", "futures-timer", - "libp2p-identity", "log", "mixnet", - "multiaddr", + "multiaddr 0.18.2", "parity-scale-codec", "parking_lot 0.12.3", "sc-client-api", "sc-network", + "sc-network-types", "sc-transaction-pool-api", "sp-api", "sp-consensus", @@ -11751,19 +14556,20 @@ dependencies = [ "sp-keystore", "sp-mixnet", "sp-runtime", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sc-network" -version = "0.35.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.45.6" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "array-bytes 6.2.3", + "array-bytes", "async-channel 1.9.0", "async-trait", "asynchronous-codec", "bytes", + "cid 0.9.0", "either", "fnv", "futures", @@ -11771,16 +14577,22 @@ dependencies = [ "ip_network", "libp2p", "linked_hash_set", + "litep2p", "log", - "mockall", + "mockall 0.11.4", + "once_cell", "parity-scale-codec", "parking_lot 0.12.3", "partial_sort", "pin-project", - "rand", + "prost 0.12.6", + "prost-build 0.12.6", + "rand 0.8.5", "sc-client-api", "sc-network-common", + "sc-network-types", "sc-utils", + "schnellru", "serde", "serde_json", "smallvec", @@ -11789,46 +14601,28 @@ dependencies = [ "sp-core", "sp-runtime", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-stream", - "unsigned-varint", + "unsigned-varint 0.7.2", + "void", "wasm-timer", "zeroize", ] -[[package]] -name = "sc-network-bitswap" -version = "0.34.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" -dependencies = [ - "async-channel 1.9.0", - "cid", - "futures", - "libp2p-identity", - "log", - "prost 0.12.6", - "prost-build", - "sc-client-api", - "sc-network", - "sp-blockchain", - "sp-runtime", - "thiserror", - "unsigned-varint", -] - [[package]] name = "sc-network-common" -version = "0.34.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.44.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "bitflags 1.3.2", "futures", "libp2p-identity", "parity-scale-codec", - "prost-build", + "prost-build 0.12.6", "sc-consensus", + "sc-network-types", "sp-consensus", "sp-consensus-grandpa", "sp-runtime", @@ -11836,17 +14630,17 @@ dependencies = [ [[package]] name = "sc-network-gossip" -version = "0.35.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.45.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "ahash 0.8.11", "futures", "futures-timer", - "libp2p", "log", "sc-network", "sc-network-common", "sc-network-sync", + "sc-network-types", "schnellru", "sp-runtime", "substrate-prometheus-endpoint", @@ -11855,31 +14649,31 @@ dependencies = [ [[package]] name = "sc-network-light" -version = "0.34.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.44.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "array-bytes 6.2.3", + "array-bytes", "async-channel 1.9.0", "futures", - "libp2p-identity", "log", "parity-scale-codec", "prost 0.12.6", - "prost-build", + "prost-build 0.12.6", "sc-client-api", "sc-network", + "sc-network-types", "sp-blockchain", "sp-core", "sp-runtime", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sc-network-sync" -version = "0.34.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.44.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "array-bytes 6.2.3", + "array-bytes", "async-channel 1.9.0", "async-trait", "fork-tree", @@ -11887,14 +14681,15 @@ dependencies = [ "futures-timer", "libp2p", "log", - "mockall", + "mockall 0.11.4", "parity-scale-codec", "prost 0.12.6", - "prost-build", + "prost-build 0.12.6", "sc-client-api", "sc-consensus", "sc-network", "sc-network-common", + "sc-network-types", "sc-utils", "schnellru", "smallvec", @@ -11905,52 +14700,69 @@ dependencies = [ "sp-core", "sp-runtime", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-stream", ] [[package]] name = "sc-network-transactions" -version = "0.34.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.44.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "array-bytes 6.2.3", + "array-bytes", "futures", - "libp2p", "log", "parity-scale-codec", "sc-network", "sc-network-common", "sc-network-sync", + "sc-network-types", "sc-utils", "sp-consensus", "sp-runtime", "substrate-prometheus-endpoint", ] +[[package]] +name = "sc-network-types" +version = "0.12.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "bs58 0.5.1", + "ed25519-dalek", + "libp2p-identity", + "litep2p", + "log", + "multiaddr 0.18.2", + "multihash 0.19.3", + "rand 0.8.5", + "thiserror 1.0.69", + "zeroize", +] + [[package]] name = "sc-offchain" -version = "30.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "40.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "array-bytes 6.2.3", + "array-bytes", "bytes", "fnv", "futures", "futures-timer", - "hyper", + "hyper 0.14.32", "hyper-rustls", - "libp2p", "log", "num_cpus", "once_cell", "parity-scale-codec", "parking_lot 0.12.3", - "rand", + "rand 0.8.5", "sc-client-api", "sc-network", "sc-network-common", + "sc-network-types", "sc-transaction-pool-api", "sc-utils", "sp-api", @@ -11965,8 +14777,8 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" -version = "0.17.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -11974,8 +14786,8 @@ dependencies = [ [[package]] name = "sc-rpc" -version = "30.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "40.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "futures", "jsonrpsee", @@ -12006,8 +14818,8 @@ dependencies = [ [[package]] name = "sc-rpc-api" -version = "0.34.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.44.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -12021,17 +14833,26 @@ dependencies = [ "sp-rpc", "sp-runtime", "sp-version", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sc-rpc-server" -version = "12.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "17.1.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "http", + "dyn-clone", + "forwarded-header-value", + "futures", + "governor", + "http 1.3.1", + "http-body-util", + "hyper 1.6.0", + "ip_network", "jsonrpsee", "log", + "sc-rpc-api", + "serde", "serde_json", "substrate-prometheus-endpoint", "tokio", @@ -12041,10 +14862,10 @@ dependencies = [ [[package]] name = "sc-rpc-spec-v2" -version = "0.35.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.45.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "array-bytes 6.2.3", + "array-bytes", "futures", "futures-util", "hex", @@ -12052,11 +14873,13 @@ dependencies = [ "log", "parity-scale-codec", "parking_lot 0.12.3", + "rand 0.8.5", "sc-chain-spec", "sc-client-api", "sc-rpc", "sc-transaction-pool-api", "sc-utils", + "schnellru", "serde", "sp-api", "sp-blockchain", @@ -12064,15 +14887,15 @@ dependencies = [ "sp-rpc", "sp-runtime", "sp-version", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-stream", ] [[package]] name = "sc-service" -version = "0.36.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.46.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "directories", @@ -12084,7 +14907,7 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.12.3", "pin-project", - "rand", + "rand 0.8.5", "sc-chain-spec", "sc-client-api", "sc-client-db", @@ -12093,11 +14916,11 @@ dependencies = [ "sc-informant", "sc-keystore", "sc-network", - "sc-network-bitswap", "sc-network-common", "sc-network-light", "sc-network-sync", "sc-network-transactions", + "sc-network-types", "sc-rpc", "sc-rpc-server", "sc-rpc-spec-v2", @@ -12107,6 +14930,7 @@ dependencies = [ "sc-transaction-pool", "sc-transaction-pool-api", "sc-utils", + "schnellru", "serde", "serde_json", "sp-api", @@ -12126,7 +14950,7 @@ dependencies = [ "static_init", "substrate-prometheus-endpoint", "tempfile", - "thiserror", + "thiserror 1.0.69", "tokio", "tracing", "tracing-futures", @@ -12134,8 +14958,8 @@ dependencies = [ [[package]] name = "sc-state-db" -version = "0.31.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.36.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "log", "parity-scale-codec", @@ -12145,21 +14969,21 @@ dependencies = [ [[package]] name = "sc-storage-monitor" -version = "0.17.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.22.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "clap", "fs4", "log", "sp-core", - "thiserror", + "thiserror 1.0.69", "tokio", ] [[package]] name = "sc-sync-state-rpc" -version = "0.35.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.45.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -12172,19 +14996,19 @@ dependencies = [ "serde_json", "sp-blockchain", "sp-runtime", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sc-sysinfo" -version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "derive_more", + "derive_more 0.99.20", "futures", "libc", "log", - "rand", + "rand 0.8.5", "rand_pcg", "regex", "sc-telemetry", @@ -12198,8 +15022,8 @@ dependencies = [ [[package]] name = "sc-telemetry" -version = "16.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "25.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "chrono", "futures", @@ -12207,29 +15031,29 @@ 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.69", "wasm-timer", ] [[package]] name = "sc-tracing" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "37.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "ansi_term", "chrono", + "console", "is-terminal", "lazy_static", "libc", "log", "parity-scale-codec", "parking_lot 0.12.3", - "regex", - "rustc-hash", + "rustc-hash 1.1.0", "sc-client-api", "sc-tracing-proc-macro", "serde", @@ -12239,27 +15063,27 @@ dependencies = [ "sp-rpc", "sp-runtime", "sp-tracing", - "thiserror", + "thiserror 1.0.69", "tracing", - "tracing-log 0.1.4", - "tracing-subscriber 0.2.25", + "tracing-log", + "tracing-subscriber", ] [[package]] name = "sc-tracing-proc-macro" version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "proc-macro-crate 3.1.0", + "proc-macro-crate 3.3.0", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "sc-transaction-pool" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "37.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "futures", @@ -12280,13 +15104,13 @@ dependencies = [ "sp-tracing", "sp-transaction-pool", "substrate-prometheus-endpoint", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sc-transaction-pool-api" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "37.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "futures", @@ -12296,13 +15120,13 @@ dependencies = [ "sp-blockchain", "sp-core", "sp-runtime", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sc-utils" -version = "15.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "17.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-channel 1.9.0", "futures", @@ -12330,7 +15154,7 @@ version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e98f3262c250d90e700bb802eb704e1f841e03331c2eb815e46516c4edbf5b27" dependencies = [ - "derive_more", + "derive_more 0.99.20", "parity-scale-codec", "scale-bits", "scale-type-resolver", @@ -12339,13 +15163,13 @@ dependencies = [ [[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", @@ -12353,14 +15177,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.1.0", + "proc-macro-crate 3.3.0", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.101", ] [[package]] @@ -12371,18 +15195,18 @@ checksum = "f0cded6518aa0bd6c1be2b88ac81bf7044992f0f154bfbabd5ad34f43512abcb" [[package]] name = "schannel" -version = "0.1.23" +version = "0.1.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbc91545643bcf3a0bbb6569265615222618bdf33ce4ffbbd13c4bbd4c093534" +checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[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", @@ -12396,7 +15220,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "844b7645371e6ecdf61ff246ba1958c29e802881a749ae3fb1993675d210d28d" dependencies = [ "arrayref", - "arrayvec 0.7.4", + "arrayvec 0.7.6", "curve25519-dalek-ng", "merlin", "rand_core 0.6.4", @@ -12413,14 +15237,14 @@ checksum = "8de18f6d8ba0aad7045f5feae07ec29899c1112584a38509a84ad7b04451eaa0" dependencies = [ "aead", "arrayref", - "arrayvec 0.7.4", - "curve25519-dalek 4.1.3", + "arrayvec 0.7.6", + "curve25519-dalek", "getrandom_or_panic", "merlin", "rand_core 0.6.4", "serde_bytes", "sha2 0.10.8", - "subtle 2.4.1", + "subtle 2.6.1", "zeroize", ] @@ -12432,9 +15256,9 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "scratch" -version = "1.0.7" +version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3cf7c11c38cb994f3d40e8a8cde3bbd1f72a435e4c49e85d6553d8312306152" +checksum = "9f6280af86e5f559536da57a45ebc84948833b3bee313a7dd25232e09c878a52" [[package]] name = "sct" @@ -12446,6 +15270,21 @@ 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 0.8.5", + "slab", + "thiserror 1.0.69", +] + [[package]] name = "sec1" version = "0.7.3" @@ -12456,7 +15295,8 @@ dependencies = [ "der", "generic-array 0.14.7", "pkcs8", - "subtle 2.4.1", + "serdect", + "subtle 2.6.1", "zeroize", ] @@ -12498,41 +15338,72 @@ dependencies = [ [[package]] name = "security-framework" -version = "2.11.0" +version = "2.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" +dependencies = [ + "bitflags 2.9.0", + "core-foundation 0.9.4", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework" +version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c627723fd09706bacdb5cf41499e95098555af3c3c29d014dc3c458ef6be11c0" +checksum = "271720403f46ca04f7ba6f55d438f8bd878d6b8ca0a1046e8228c4145bcbb316" dependencies = [ - "bitflags 2.5.0", - "core-foundation", + "bitflags 2.9.0", + "core-foundation 0.10.0", "core-foundation-sys", "libc", "security-framework-sys", ] [[package]] -name = "security-framework-sys" -version = "2.11.0" +name = "security-framework-sys" +version = "2.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "semver" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a3186ec9e65071a2095434b1f5bb24838d4e8e130f584c790f6033c79943537" +dependencies = [ + "semver-parser 0.7.0", +] + +[[package]] +name = "semver" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "317936bbbd05227752583946b9e66d7ce3b489f84e11a94a510b4437fef407d7" +checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" dependencies = [ - "core-foundation-sys", - "libc", + "semver-parser 0.7.0", ] [[package]] name = "semver" -version = "0.6.0" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a3186ec9e65071a2095434b1f5bb24838d4e8e130f584c790f6033c79943537" +checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6" dependencies = [ - "semver-parser", + "semver-parser 0.10.3", ] [[package]] name = "semver" -version = "1.0.23" +version = "1.0.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" +checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0" dependencies = [ "serde", ] @@ -12543,11 +15414,26 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" +[[package]] +name = "semver-parser" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9900206b54a3527fdc7b8a938bffd94a568bac4f4aa8113b209df75a09c0dec2" +dependencies = [ + "pest", +] + +[[package]] +name = "send_wrapper" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd0b0ec5f1c1ca621c432a25813d8d60c88abe6d3e08a3eb9cf37d97a0fe3d73" + [[package]] name = "serde" -version = "1.0.203" +version = "1.0.219" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7253ab4de971e72fb7be983802300c30b5a7f0c2e56fab8abfc6a214307c0094" +checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" dependencies = [ "serde_derive", ] @@ -12561,43 +15447,64 @@ dependencies = [ "serde", ] +[[package]] +name = "serde-hex-utils" +version = "0.1.0" +source = "git+https://github.com/polytope-labs/hyperbridge?branch=polkadot-stable2409#c7237a7388c210a60177ce74fc512e814d331da0" +dependencies = [ + "anyhow", + "hex", + "serde", +] + [[package]] name = "serde_bytes" -version = "0.11.14" +version = "0.11.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b8497c313fd43ab992087548117643f6fcd935cbf36f176ffda0aacf9591734" +checksum = "8437fd221bde2d4ca316d61b90e337e9e702b3820b87d63caa9ba6c02bd06d96" dependencies = [ "serde", ] [[package]] name = "serde_derive" -version = "1.0.203" +version = "1.0.219" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "500cbc0ebeb6f46627f50f3f5811ccf6bf00643be300b4c3eabc0ef55dc5b5ba" +checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "serde_json" -version = "1.0.117" +version = "1.0.140" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "455182ea6142b14f93f4bc5320a2b31c1f266b66a4a5c858b013302a5d8cbfc3" +checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373" dependencies = [ "itoa", + "memchr", "ryu", "serde", ] [[package]] name = "serde_spanned" -version = "0.6.6" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1" +dependencies = [ + "serde", +] + +[[package]] +name = "serdect" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79e674e01f999af37c49f70a6ede167a8a60b2503e56c5599532a65baa5969a0" +checksum = "a84f14a19e9a014bb9f4512488d9829a68e04ecabffb0f9904cd1ace94598177" dependencies = [ + "base16ct", "serde", ] @@ -12614,6 +15521,18 @@ dependencies = [ "opaque-debug 0.3.1", ] +[[package]] +name = "sha-1" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f5058ada175748e33390e40e872bd0fe59a19f265d0158daa551c5a88a76009c" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest 0.10.7", + "sha1-asm", +] + [[package]] name = "sha1" version = "0.10.6" @@ -12625,6 +15544,15 @@ 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" @@ -12659,6 +15587,16 @@ dependencies = [ "keccak", ] +[[package]] +name = "sha3-asm" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c28efc5e327c837aa837c59eae585fc250715ef939ac32881bcc11677cd02d46" +dependencies = [ + "cc", + "cfg-if", +] + [[package]] name = "sharded-slab" version = "0.1.7" @@ -12676,9 +15614,9 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" [[package]] name = "signal-hook-registry" -version = "1.4.2" +version = "1.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" +checksum = "9203b8055f63a2a00e2f593bb0510367fe707d7ff1e5c872de2f537b339e5410" dependencies = [ "libc", ] @@ -12695,9 +15633,9 @@ dependencies = [ [[package]] name = "simba" -version = "0.8.1" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "061507c94fc6ab4ba1c9a0305018408e312e17c041eb63bef8aa726fa33aceae" +checksum = "b3a386a501cd104797982c15ae17aafe8b9261315b5d07e3ec803f2ea26be0fa" dependencies = [ "approx", "num-complex", @@ -12706,6 +15644,15 @@ dependencies = [ "wide", ] +[[package]] +name = "simple-dns" +version = "0.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cae9a3fcdadafb6d97f4c0e007e4247b114ee0f119f650c3cbf3a8b3a1479694" +dependencies = [ + "bitflags 2.9.0", +] + [[package]] name = "simple-mermaid" version = "0.1.1" @@ -12735,14 +15682,13 @@ checksum = "826167069c09b99d56f31e9ae5c99049e932a98c9dc2dac47645b08dbbf76ba7" [[package]] name = "slot-range-helper" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "15.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "enumn", "parity-scale-codec", "paste", "sp-runtime", - "sp-std", ] [[package]] @@ -12756,9 +15702,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.13.2" +version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" +checksum = "8917285742e9f3e1683f0a9c4e6b57960b7314d0b08d30d1ecd426713ee2eee9" [[package]] name = "smol" @@ -12783,7 +15729,7 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0bb30cf57b7b5f6109ce17c3164445e2d6f270af2cb48f6e4d31c2967c9a9f5" dependencies = [ - "arrayvec 0.7.4", + "arrayvec 0.7.6", "async-lock 2.8.0", "atomic-take", "base64 0.21.7", @@ -12792,8 +15738,8 @@ dependencies = [ "bs58 0.5.1", "chacha20", "crossbeam-queue", - "derive_more", - "ed25519-zebra 4.0.3", + "derive_more 0.99.20", + "ed25519-zebra", "either", "event-listener 2.5.3", "fnv", @@ -12810,10 +15756,10 @@ dependencies = [ "num-bigint", "num-rational", "num-traits", - "pbkdf2 0.12.2", + "pbkdf2", "pin-project", "poly1305", - "rand", + "rand 0.8.5", "rand_chacha 0.3.1", "ruzstd", "schnorrkel 0.10.2", @@ -12824,10 +15770,10 @@ dependencies = [ "siphasher", "slab", "smallvec", - "soketto", + "soketto 0.7.1", "twox-hash", - "wasmi", - "x25519-dalek 2.0.1", + "wasmi 0.31.2", + "x25519-dalek", "zeroize", ] @@ -12841,7 +15787,7 @@ dependencies = [ "async-lock 2.8.0", "base64 0.21.7", "blake2-rfc", - "derive_more", + "derive_more 0.99.20", "either", "event-listener 2.5.3", "fnv", @@ -12856,7 +15802,7 @@ dependencies = [ "no-std-net", "parking_lot 0.12.3", "pin-project", - "rand", + "rand 0.8.5", "rand_chacha 0.3.1", "serde", "serde_json", @@ -12882,12 +15828,12 @@ dependencies = [ "aes-gcm", "blake2 0.10.6", "chacha20poly1305", - "curve25519-dalek 4.1.3", + "curve25519-dalek", "rand_core 0.6.4", "ring 0.17.14", - "rustc_version", + "rustc_version 0.4.1", "sha2 0.10.8", - "subtle 2.4.1", + "subtle 2.6.1", ] [[package]] @@ -12902,12 +15848,11 @@ dependencies = [ [[package]] name = "snowbridge-beacon-primitives" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.10.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "byte-slice-cast", "frame-support", - "frame-system", "hex", "parity-scale-codec", "rlp", @@ -12921,13 +15866,12 @@ dependencies = [ "sp-std", "ssz_rs", "ssz_rs_derive", - "static_assertions", ] [[package]] name = "snowbridge-core" -version = "0.1.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.10.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "ethabi-decode", "frame-support", @@ -12949,8 +15893,8 @@ dependencies = [ [[package]] name = "snowbridge-ethereum" -version = "0.2.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.9.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "ethabi-decode", "ethbloom", @@ -12959,11 +15903,9 @@ dependencies = [ "parity-bytes", "parity-scale-codec", "rlp", - "rustc-hex", "scale-info", "serde", "serde-big-array", - "sp-core", "sp-io", "sp-runtime", "sp-std", @@ -12978,33 +15920,231 @@ dependencies = [ "hex", "lazy_static", "parity-scale-codec", - "rand", + "rand 0.8.5", "scale-info", "snowbridge-amcl", "zeroize", ] [[package]] -name = "snowbridge-router-primitives" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +name = "snowbridge-outbound-queue-merkle-tree" +version = "0.9.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-runtime", +] + +[[package]] +name = "snowbridge-outbound-queue-runtime-api" +version = "0.10.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-support", + "parity-scale-codec", + "snowbridge-core", + "snowbridge-outbound-queue-merkle-tree", + "sp-api", + "sp-std", +] + +[[package]] +name = "snowbridge-pallet-ethereum-client" +version = "0.10.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "hex-literal 0.4.1", + "log", + "pallet-timestamp", + "parity-scale-codec", + "scale-info", + "serde", + "snowbridge-beacon-primitives", + "snowbridge-core", + "snowbridge-ethereum", + "snowbridge-pallet-ethereum-client-fixtures", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", + "static_assertions", +] + +[[package]] +name = "snowbridge-pallet-ethereum-client-fixtures" +version = "0.18.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "hex-literal 0.4.1", + "snowbridge-beacon-primitives", + "snowbridge-core", + "sp-core", + "sp-std", +] + +[[package]] +name = "snowbridge-pallet-inbound-queue" +version = "0.10.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "alloy-primitives 0.4.2", + "alloy-sol-types 0.4.2", + "frame-benchmarking", + "frame-support", + "frame-system", + "hex-literal 0.4.1", + "log", + "pallet-balances", + "parity-scale-codec", + "scale-info", + "serde", + "snowbridge-beacon-primitives", + "snowbridge-core", + "snowbridge-pallet-inbound-queue-fixtures", + "snowbridge-router-primitives", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", + "staging-xcm", + "staging-xcm-executor", +] + +[[package]] +name = "snowbridge-pallet-inbound-queue-fixtures" +version = "0.18.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "hex-literal 0.4.1", + "snowbridge-beacon-primitives", + "snowbridge-core", + "sp-core", + "sp-std", +] + +[[package]] +name = "snowbridge-pallet-outbound-queue" +version = "0.10.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "bridge-hub-common", + "ethabi-decode", + "frame-benchmarking", + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "serde", + "snowbridge-core", + "snowbridge-outbound-queue-merkle-tree", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", +] + +[[package]] +name = "snowbridge-pallet-system" +version = "0.10.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "snowbridge-core", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", + "staging-xcm", + "staging-xcm-executor", +] + +[[package]] +name = "snowbridge-router-primitives" +version = "0.16.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-support", + "hex-literal 0.4.1", + "log", + "parity-scale-codec", + "scale-info", + "snowbridge-core", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", + "staging-xcm", + "staging-xcm-executor", +] + +[[package]] +name = "snowbridge-runtime-common" +version = "0.10.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-support", + "log", + "parity-scale-codec", + "snowbridge-core", + "sp-arithmetic", + "sp-std", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", +] + +[[package]] +name = "snowbridge-runtime-test-common" +version = "0.12.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "cumulus-pallet-parachain-system", + "frame-support", + "frame-system", + "pallet-balances", + "pallet-collator-selection", + "pallet-message-queue", + "pallet-session", + "pallet-timestamp", + "pallet-utility", + "pallet-xcm", + "parachains-runtimes-test-utils", + "parity-scale-codec", + "snowbridge-core", + "snowbridge-pallet-ethereum-client", + "snowbridge-pallet-ethereum-client-fixtures", + "snowbridge-pallet-outbound-queue", + "snowbridge-pallet-system", + "sp-core", + "sp-io", + "sp-keyring", + "sp-runtime", + "staging-parachain-info", + "staging-xcm", + "staging-xcm-executor", +] + +[[package]] +name = "snowbridge-system-runtime-api" +version = "0.10.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "ethabi-decode", - "frame-support", - "frame-system", - "hex-literal 0.4.1", - "log", "parity-scale-codec", - "scale-info", - "serde", "snowbridge-core", - "sp-core", - "sp-io", - "sp-runtime", + "sp-api", "sp-std", "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", ] [[package]] @@ -13019,9 +16159,9 @@ 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", @@ -13035,20 +16175,35 @@ checksum = "41d1c5305e39e09653383c2c7244f2f78b3bcae37cf50c64cb4789c9f5096ec2" dependencies = [ "base64 0.13.1", "bytes", - "flate2", "futures", - "http", "httparse", "log", - "rand", - "sha-1", + "rand 0.8.5", + "sha-1 0.9.8", +] + +[[package]] +name = "soketto" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e859df029d160cb88608f5d7df7fb4753fd20fdfb4de5644f3d8b8440841721" +dependencies = [ + "base64 0.22.1", + "bytes", + "futures", + "http 1.3.1", + "httparse", + "log", + "rand 0.8.5", + "sha1", ] [[package]] name = "sp-api" -version = "27.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "34.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ + "docify", "hash-db", "log", "parity-scale-codec", @@ -13058,100 +16213,98 @@ dependencies = [ "sp-externalities", "sp-metadata-ir", "sp-runtime", + "sp-runtime-interface", "sp-state-machine", - "sp-std", "sp-trie", "sp-version", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sp-api-proc-macro" -version = "15.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "20.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "Inflector", "blake2 0.10.6", - "expander 2.2.1", - "proc-macro-crate 3.1.0", + "expander", + "proc-macro-crate 3.3.0", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "sp-application-crypto" -version = "31.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "parity-scale-codec", "scale-info", "serde", "sp-core", "sp-io", - "sp-std", ] [[package]] name = "sp-arithmetic" -version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "26.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ + "docify", "integer-sqrt", "num-traits", "parity-scale-codec", "scale-info", "serde", - "sp-std", "static_assertions", ] [[package]] name = "sp-authority-discovery" -version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "34.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "parity-scale-codec", "scale-info", "sp-api", "sp-application-crypto", "sp-runtime", - "sp-std", ] [[package]] name = "sp-block-builder" -version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "34.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "sp-api", "sp-inherents", "sp-runtime", - "sp-std", ] [[package]] name = "sp-blockchain" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "37.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "futures", - "log", "parity-scale-codec", "parking_lot 0.12.3", "schnellru", "sp-api", "sp-consensus", + "sp-core", "sp-database", "sp-runtime", "sp-state-machine", - "thiserror", + "thiserror 1.0.69", + "tracing", ] [[package]] name = "sp-consensus" -version = "0.33.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.40.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "futures", @@ -13160,13 +16313,13 @@ dependencies = [ "sp-inherents", "sp-runtime", "sp-state-machine", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sp-consensus-aura" -version = "0.33.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.40.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "parity-scale-codec", @@ -13176,14 +16329,13 @@ dependencies = [ "sp-consensus-slots", "sp-inherents", "sp-runtime", - "sp-std", "sp-timestamp", ] [[package]] name = "sp-consensus-babe" -version = "0.33.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.40.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "parity-scale-codec", @@ -13195,14 +16347,13 @@ dependencies = [ "sp-core", "sp-inherents", "sp-runtime", - "sp-std", "sp-timestamp", ] [[package]] name = "sp-consensus-beefy" -version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "22.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "lazy_static", "parity-scale-codec", @@ -13213,16 +16364,17 @@ dependencies = [ "sp-core", "sp-crypto-hashing", "sp-io", + "sp-keystore", "sp-mmr-primitives", "sp-runtime", - "sp-std", - "strum 0.24.1", + "sp-weights", + "strum 0.26.3", ] [[package]] name = "sp-consensus-grandpa" -version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "21.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "finality-grandpa", "log", @@ -13234,47 +16386,57 @@ dependencies = [ "sp-core", "sp-keystore", "sp-runtime", - "sp-std", +] + +[[package]] +name = "sp-consensus-pow" +version = "0.40.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "parity-scale-codec", + "sp-api", + "sp-core", + "sp-runtime", ] [[package]] name = "sp-consensus-slots" -version = "0.33.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.40.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-std", "sp-timestamp", ] [[package]] name = "sp-core" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "34.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "array-bytes 6.2.3", - "bip39", + "array-bytes", "bitflags 1.3.2", "blake2 0.10.6", "bounded-collections", "bs58 0.5.1", "dyn-clonable", - "ed25519-zebra 3.1.0", + "ed25519-zebra", "futures", "hash-db", "hash256-std-hasher", "impl-serde", - "itertools 0.10.5", + "itertools 0.11.0", + "k256", "libsecp256k1", "log", "merlin", + "parity-bip39", "parity-scale-codec", "parking_lot 0.12.3", "paste", "primitive-types", - "rand", + "rand 0.8.5", "scale-info", "schnorrkel 0.11.4", "secp256k1", @@ -13288,16 +16450,44 @@ dependencies = [ "sp-storage", "ss58-registry", "substrate-bip39", - "thiserror", + "thiserror 1.0.69", "tracing", "w3f-bls", "zeroize", ] +[[package]] +name = "sp-core-hashing" +version = "16.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "sp-crypto-hashing", +] + +[[package]] +name = "sp-crypto-ec-utils" +version = "0.14.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "ark-bls12-377", + "ark-bls12-377-ext", + "ark-bls12-381", + "ark-bls12-381-ext", + "ark-bw6-761", + "ark-bw6-761-ext", + "ark-ec", + "ark-ed-on-bls12-377", + "ark-ed-on-bls12-377-ext", + "ark-ed-on-bls12-381-bandersnatch", + "ark-ed-on-bls12-381-bandersnatch-ext", + "ark-scale", + "sp-runtime-interface", +] + [[package]] name = "sp-crypto-hashing" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "blake2b_simd", "byteorder", @@ -13310,17 +16500,17 @@ dependencies = [ [[package]] name = "sp-crypto-hashing-proc-macro" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "quote", "sp-crypto-hashing", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "sp-database" version = "10.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "kvdb", "parking_lot 0.12.3", @@ -13329,59 +16519,60 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "sp-externalities" -version = "0.26.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.29.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "environmental", "parity-scale-codec", - "sp-std", "sp-storage", ] [[package]] name = "sp-genesis-builder" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.15.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ + "parity-scale-codec", + "scale-info", "serde_json", "sp-api", "sp-runtime", - "sp-std", ] [[package]] name = "sp-inherents" -version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "34.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "impl-trait-for-tuples", "parity-scale-codec", "scale-info", "sp-runtime", - "sp-std", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sp-io" -version = "31.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bytes", + "docify", "ed25519-dalek", "libsecp256k1", "log", "parity-scale-codec", + "polkavm-derive 0.9.1", "rustversion", "secp256k1", "sp-core", @@ -13390,7 +16581,6 @@ dependencies = [ "sp-keystore", "sp-runtime-interface", "sp-state-machine", - "sp-std", "sp-tracing", "sp-trie", "tracing", @@ -13399,80 +16589,76 @@ dependencies = [ [[package]] name = "sp-keyring" -version = "32.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "39.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "sp-core", "sp-runtime", - "strum 0.24.1", + "strum 0.26.3", ] [[package]] name = "sp-keystore" -version = "0.35.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.40.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "parity-scale-codec", "parking_lot 0.12.3", "sp-core", "sp-externalities", - "thiserror", ] [[package]] name = "sp-maybe-compressed-blob" version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "thiserror", + "thiserror 1.0.69", "zstd 0.12.4", ] [[package]] name = "sp-metadata-ir" -version = "0.6.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.7.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-metadata", "parity-scale-codec", "scale-info", - "sp-std", ] [[package]] name = "sp-mixnet" -version = "0.5.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.12.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "parity-scale-codec", "scale-info", "sp-api", "sp-application-crypto", - "sp-std", ] [[package]] name = "sp-mmr-primitives" -version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "34.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "ckb-merkle-mountain-range", "log", "parity-scale-codec", + "polkadot-ckb-merkle-mountain-range", "scale-info", "serde", "sp-api", "sp-core", "sp-debug-derive", "sp-runtime", - "sp-std", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sp-npos-elections" -version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "34.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "parity-scale-codec", "scale-info", @@ -13480,13 +16666,12 @@ dependencies = [ "sp-arithmetic", "sp-core", "sp-runtime", - "sp-std", ] [[package]] name = "sp-offchain" -version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "34.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "sp-api", "sp-core", @@ -13496,7 +16681,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "13.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "backtrace", "lazy_static", @@ -13505,27 +16690,28 @@ dependencies = [ [[package]] name = "sp-rpc" -version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "32.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "rustc-hash", + "rustc-hash 1.1.0", "serde", "sp-core", ] [[package]] name = "sp-runtime" -version = "32.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "39.0.5" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "docify", "either", "hash256-std-hasher", "impl-trait-for-tuples", "log", + "num-traits", "parity-scale-codec", "paste", - "rand", + "rand 0.8.5", "scale-info", "serde", "simple-mermaid", @@ -13535,16 +16721,18 @@ dependencies = [ "sp-io", "sp-std", "sp-weights", + "tracing", ] [[package]] name = "sp-runtime-interface" -version = "25.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bytes", "impl-trait-for-tuples", "parity-scale-codec", + "polkavm-derive 0.9.1", "primitive-types", "sp-externalities", "sp-runtime-interface-proc-macro", @@ -13557,21 +16745,21 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" -version = "17.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "Inflector", - "expander 2.2.1", - "proc-macro-crate 3.1.0", + "expander", + "proc-macro-crate 3.3.0", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "sp-session" -version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "36.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "parity-scale-codec", "scale-info", @@ -13580,13 +16768,12 @@ dependencies = [ "sp-keystore", "sp-runtime", "sp-staking", - "sp-std", ] [[package]] name = "sp-staking" -version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "36.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -13594,41 +16781,39 @@ dependencies = [ "serde", "sp-core", "sp-runtime", - "sp-std", ] [[package]] name = "sp-state-machine" -version = "0.36.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.43.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "hash-db", "log", "parity-scale-codec", "parking_lot 0.12.3", - "rand", + "rand 0.8.5", "smallvec", "sp-core", "sp-externalities", "sp-panic-handler", - "sp-std", "sp-trie", - "thiserror", + "thiserror 1.0.69", "tracing", "trie-db", ] [[package]] name = "sp-statement-store" -version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "aes-gcm", - "curve25519-dalek 4.1.3", + "curve25519-dalek", "ed25519-dalek", "hkdf", "parity-scale-codec", - "rand", + "rand 0.8.5", "scale-info", "sha2 0.10.8", "sp-api", @@ -13638,58 +16823,54 @@ dependencies = [ "sp-externalities", "sp-runtime", "sp-runtime-interface", - "sp-std", - "thiserror", - "x25519-dalek 2.0.1", + "thiserror 1.0.69", + "x25519-dalek", ] [[package]] name = "sp-std" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" [[package]] name = "sp-storage" -version = "20.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "21.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", "sp-debug-derive", - "sp-std", ] [[package]] name = "sp-timestamp" -version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "34.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "parity-scale-codec", "sp-inherents", "sp-runtime", - "sp-std", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sp-tracing" -version = "16.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "17.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "parity-scale-codec", - "sp-std", "tracing", "tracing-core", - "tracing-subscriber 0.2.25", + "tracing-subscriber", ] [[package]] name = "sp-transaction-pool" -version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "34.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "sp-api", "sp-runtime", @@ -13697,8 +16878,8 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" -version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "34.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "async-trait", "parity-scale-codec", @@ -13706,14 +16887,13 @@ dependencies = [ "sp-core", "sp-inherents", "sp-runtime", - "sp-std", "sp-trie", ] [[package]] name = "sp-trie" -version = "30.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "37.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "ahash 0.8.11", "hash-db", @@ -13722,13 +16902,12 @@ dependencies = [ "nohash-hasher", "parity-scale-codec", "parking_lot 0.12.3", - "rand", + "rand 0.8.5", "scale-info", "schnellru", "sp-core", "sp-externalities", - "sp-std", - "thiserror", + "thiserror 1.0.69", "tracing", "trie-db", "trie-root", @@ -13736,8 +16915,8 @@ dependencies = [ [[package]] name = "sp-version" -version = "30.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "37.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "impl-serde", "parity-scale-codec", @@ -13748,37 +16927,36 @@ dependencies = [ "sp-runtime", "sp-std", "sp-version-proc-macro", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "sp-version-proc-macro" -version = "13.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "14.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "parity-scale-codec", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "sp-wasm-interface" -version = "20.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "21.0.1" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "anyhow", "impl-trait-for-tuples", "log", "parity-scale-codec", - "sp-std", "wasmtime", ] [[package]] name = "sp-weights" -version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "31.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "bounded-collections", "parity-scale-codec", @@ -13787,7 +16965,6 @@ dependencies = [ "smallvec", "sp-arithmetic", "sp-debug-derive", - "sp-std", ] [[package]] @@ -13803,20 +16980,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" [[package]] -name = "spinners" -version = "4.1.1" +name = "spinning_top" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0ef947f358b9c238923f764c72a4a9d42f2d637c46e059dbd319d6e7cfb4f82" +checksum = "d96d2d1d716fb500937168cc09353ffdc7a012be8475ac7308e1bdf0e3923300" dependencies = [ - "lazy_static", - "maplit", - "strum 0.24.1", + "lock_api", ] [[package]] name = "spiritnet-runtime" version = "1.16.0-dev" dependencies = [ + "anyhow", "attestation", "cfg-if", "ctype", @@ -13841,6 +17017,9 @@ dependencies = [ "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal 0.3.4", + "ismp", + "ismp-parachain", + "ismp-parachain-runtime-api", "kilt-runtime-api-did", "kilt-runtime-api-dip-provider", "kilt-runtime-api-public-credentials", @@ -13853,13 +17032,18 @@ dependencies = [ "pallet-aura", "pallet-authorship", "pallet-balances", + "pallet-bonded-coins", + "pallet-bonded-coins-runtime-api", "pallet-collective", "pallet-democracy", "pallet-deposit-storage", "pallet-did-lookup", "pallet-dip-provider", + "pallet-hyperbridge", "pallet-indices", "pallet-inflation", + "pallet-ismp", + "pallet-ismp-runtime-api", "pallet-membership", "pallet-message-queue", "pallet-migration", @@ -13870,6 +17054,7 @@ dependencies = [ "pallet-session", "pallet-timestamp", "pallet-tips", + "pallet-token-gateway", "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-treasury", @@ -13884,6 +17069,7 @@ dependencies = [ "public-credentials", "runtime-common", "scale-info", + "serde_json", "sp-api", "sp-block-builder", "sp-consensus-aura", @@ -13919,9 +17105,9 @@ dependencies = [ [[package]] name = "ss58-registry" -version = "1.47.0" +version = "1.51.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4743ce898933fbff7bbf414f497c459a782d496269644b3d650a398ae6a487ba" +checksum = "19409f13998e55816d1c728395af0b52ec066206341d939e22e7766df9b494b8" dependencies = [ "Inflector", "num-format", @@ -13961,10 +17147,28 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" +[[package]] +name = "staging-node-inspect" +version = "0.23.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "clap", + "parity-scale-codec", + "sc-cli", + "sc-client-api", + "sc-service", + "sp-blockchain", + "sp-core", + "sp-io", + "sp-runtime", + "sp-statement-store", + "thiserror 1.0.69", +] + [[package]] name = "staging-parachain-info" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.17.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "cumulus-primitives-core", "frame-support", @@ -13972,15 +17176,14 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-runtime", - "sp-std", ] [[package]] name = "staging-xcm" -version = "8.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "14.2.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "array-bytes 6.2.3", + "array-bytes", "bounded-collections", "derivative", "environmental", @@ -13989,19 +17192,21 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", + "sp-runtime", "sp-weights", "xcm-procedural", ] [[package]] name = "staging-xcm-builder" -version = "8.0.2" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "17.0.5" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-support", "frame-system", "impl-trait-for-tuples", "log", + "pallet-asset-conversion", "pallet-transaction-payment", "parity-scale-codec", "polkadot-parachain-primitives", @@ -14009,7 +17214,6 @@ dependencies = [ "sp-arithmetic", "sp-io", "sp-runtime", - "sp-std", "sp-weights", "staging-xcm", "staging-xcm-executor", @@ -14017,23 +17221,22 @@ dependencies = [ [[package]] name = "staging-xcm-executor" -version = "8.0.2" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "17.0.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "environmental", "frame-benchmarking", "frame-support", "impl-trait-for-tuples", - "log", "parity-scale-codec", "scale-info", "sp-arithmetic", "sp-core", "sp-io", "sp-runtime", - "sp-std", "sp-weights", "staging-xcm", + "tracing", ] [[package]] @@ -14080,7 +17283,6 @@ dependencies = [ "sp-timestamp", "substrate-build-script-utils", "substrate-frame-rpc-system", - "try-runtime-cli", ] [[package]] @@ -14106,9 +17308,9 @@ dependencies = [ [[package]] name = "static_init_macro" -version = "1.0.2" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70a2595fc3aa78f2d0e45dd425b22282dd863273761cc77780914b2cf3003acf" +checksum = "1389c88ddd739ec6d3f8f83343764a0e944cd23cfbf126a9796a714b0b6edd6f" dependencies = [ "cfg_aliases", "memchr", @@ -14118,16 +17320,34 @@ dependencies = [ ] [[package]] -name = "strobe-rs" -version = "0.8.1" +name = "str0m" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fabb238a1cccccfa4c4fb703670c0d157e1256c1ba695abf1b93bd2bb14bab2d" +checksum = "6706347e49b13373f7ddfafad47df7583ed52083d6fc8a594eb2c80497ef959d" dependencies = [ - "bitflags 1.3.2", - "byteorder", - "keccak", - "subtle 2.4.1", - "zeroize", + "combine", + "crc", + "fastrand 2.3.0", + "hmac 0.12.1", + "once_cell", + "openssl", + "openssl-sys", + "sctp-proto", + "serde", + "sha-1 0.10.1", + "thiserror 1.0.69", + "tracing", +] + +[[package]] +name = "string-interner" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c6a0d765f5807e98a091107bae0a56ea3799f66a5de47b2c84c94a39c09974e" +dependencies = [ + "cfg-if", + "hashbrown 0.14.5", + "serde", ] [[package]] @@ -14141,15 +17361,15 @@ name = "strum" version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "063e6045c0e62079840579a7e47a355ae92f60eb74daaf156fb1e84ba164e63f" -dependencies = [ - "strum_macros 0.24.3", -] [[package]] name = "strum" -version = "0.26.2" +version = "0.26.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d8cec3501a5194c432b2b7976db6b7d10ec95c253208b45f83f7136aa985e29" +checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06" +dependencies = [ + "strum_macros 0.26.4", +] [[package]] name = "strum_macros" @@ -14174,26 +17394,25 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "substrate-bip39" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a7590dc041b9bc2825e52ce5af8416c73dbe9d0654402bfd4b4941938b94d8f" +version = "0.6.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "hmac 0.11.0", - "pbkdf2 0.8.0", + "hmac 0.12.1", + "pbkdf2", "schnorrkel 0.11.4", - "sha2 0.9.9", + "sha2 0.10.8", "zeroize", ] [[package]] name = "substrate-build-script-utils" version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" [[package]] name = "substrate-fixed" @@ -14209,9 +17428,10 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" -version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "39.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ + "docify", "frame-system-rpc-runtime-api", "futures", "jsonrpsee", @@ -14229,32 +17449,36 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.17.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "hyper", + "http-body-util", + "hyper 1.6.0", + "hyper-util", "log", "prometheus", - "thiserror", + "thiserror 1.0.69", "tokio", ] [[package]] -name = "substrate-rpc-client" -version = "0.34.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +name = "substrate-state-machine" +version = "16.0.0" +source = "git+https://github.com/polytope-labs/hyperbridge?branch=polkadot-stable2409#c7237a7388c210a60177ce74fc512e814d331da0" dependencies = [ - "async-trait", - "jsonrpsee", - "log", - "sc-rpc-api", + "hash-db", + "ismp", + "pallet-ismp", + "parity-scale-codec", + "polkadot-sdk", + "primitive-types", + "scale-info", "serde", - "sp-runtime", ] [[package]] name = "substrate-state-trie-migration-rpc" -version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "38.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -14280,27 +17504,29 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" -version = "18.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "24.0.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "array-bytes 6.2.3", + "array-bytes", "build-helper", "cargo_metadata", "console", "filetime", "frame-metadata", + "jobserver", "merkleized-metadata", "parity-scale-codec", "parity-wasm", + "polkavm-linker 0.9.2", "sc-executor", "sp-core", "sp-io", "sp-maybe-compressed-blob", "sp-tracing", "sp-version", - "strum 0.24.1", + "strum 0.26.3", "tempfile", - "toml 0.8.14", + "toml 0.8.21", "walkdir", "wasm-opt", ] @@ -14313,9 +17539,9 @@ checksum = "2d67a5a62ba6e01cb2192ff309324cb4875d0c451d55fe2319433abe7a05a8ee" [[package]] name = "subtle" -version = "2.4.1" +version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "subtle-ng" @@ -14336,15 +17562,39 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.66" +version = "2.0.101" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c42f3f41a2de00b01c0aaad383c5a45241efc8b2d1eda5661812fda5f3cdcff5" +checksum = "8ce2b7fc941b3a24138a0a7cf8e858bfc6a992e7978a068a5c760deb0ed43caf" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] +[[package]] +name = "syn-solidity" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86b837ef12ab88835251726eb12237655e61ec8dc8a280085d1961cdc3dfd047" +dependencies = [ + "paste", + "proc-macro2", + "quote", + "syn 2.0.101", +] + +[[package]] +name = "syn-solidity" +version = "0.7.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c837dc8852cb7074e46b444afb81783140dab12c58867b49fb3898fbafedf7ea" +dependencies = [ + "paste", + "proc-macro2", + "quote", + "syn 2.0.101", +] + [[package]] name = "synstructure" version = "0.12.6" @@ -14365,25 +17615,25 @@ checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "system-configuration" -version = "0.5.1" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" +checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b" dependencies = [ - "bitflags 1.3.2", - "core-foundation", + "bitflags 2.9.0", + "core-foundation 0.9.4", "system-configuration-sys", ] [[package]] name = "system-configuration-sys" -version = "0.5.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9" +checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" dependencies = [ "core-foundation-sys", "libc", @@ -14397,20 +17647,21 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "target-lexicon" -version = "0.12.14" +version = "0.12.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1fc403891a21bcfb7c37834ba66a547a8f402146eba7265b5a6d88059c9ff2f" +checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" [[package]] name = "tempfile" -version = "3.10.1" +version = "3.19.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" +checksum = "7437ac7763b9b123ccf33c338a5cc1bac6f69b45a136c19bdd8a65e3916435bf" dependencies = [ - "cfg-if", - "fastrand 2.1.0", - "rustix 0.38.34", - "windows-sys 0.52.0", + "fastrand 2.3.0", + "getrandom 0.3.2", + "once_cell", + "rustix 1.0.5", + "windows-sys 0.59.0", ] [[package]] @@ -14424,47 +17675,48 @@ dependencies = [ [[package]] name = "terminal_size" -version = "0.3.0" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21bebf2b7c9e0a515f6e0f8c51dc0f8e4696391e6f1ff30379559f8365fb0df7" +checksum = "45c6481c4829e4cc63825e62c49186a34538b7b2750b73b266581ffb612fb5ed" dependencies = [ - "rustix 0.38.34", - "windows-sys 0.48.0", + "rustix 1.0.5", + "windows-sys 0.59.0", ] [[package]] name = "termtree" -version = "0.4.1" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76" +checksum = "8f50febec83f5ee1df3015341d8bd429f2d1cc62bcba7ea2076759d315084683" [[package]] name = "test-log" -version = "0.2.16" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3dffced63c2b5c7be278154d76b479f9f9920ed34e7574201407f0b14e2bbb93" +checksum = "e7f46083d221181166e5b6f6b1e5f1d499f3a76888826e6cb1d057554157cd0f" dependencies = [ - "env_logger 0.11.3", + "env_logger 0.11.8", "test-log-macros", - "tracing-subscriber 0.3.18", + "tracing-subscriber", ] [[package]] name = "test-log-macros" -version = "0.2.16" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5999e24eaa32083191ba4e425deb75cdf25efefabe5aaccb7446dd0d4122a3f5" +checksum = "888d0c3c6db53c0fdab160d2ed5e12ba745383d3e85813f2ea0f2b1475ab553f" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "testnet-parachains-constants" -version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "10.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ + "cumulus-primitives-core", "frame-support", "polkadot-core-primitives", "rococo-runtime-constants", @@ -14476,11 +17728,20 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.61" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c546c80d6be4bc6a00c0f01730c08df82eaa7a7a61f11d656526506112cc1709" +checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708" dependencies = [ - "thiserror-impl", + "thiserror-impl 2.0.12", ] [[package]] @@ -14500,18 +17761,29 @@ checksum = "e4c60d69f36615a077cc7663b9cb8e42275722d23e58a7fa3d2c7f2915d09d04" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", ] [[package]] name = "thiserror-impl" -version = "1.0.61" +version = "2.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46c3384250002a6d5af4d114f2845d37b57521033f30d5c3f46c4d70e1197533" +checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] @@ -14575,9 +17847,9 @@ dependencies = [ [[package]] name = "time" -version = "0.3.36" +version = "0.3.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885" +checksum = "8a7619e19bc266e0f9c5e6686659d394bc57973859340060a69221e57dbc0c40" dependencies = [ "deranged", "itoa", @@ -14590,15 +17862,15 @@ dependencies = [ [[package]] name = "time-core" -version = "0.1.2" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" +checksum = "c9e9a38711f559d9e3ce1cdb06dd7c5b8ea546bc90052da6d06bb76da74bb07c" [[package]] name = "time-macros" -version = "0.2.18" +version = "0.2.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf" +checksum = "3526739392ec93fd8b359c8e98514cb3e8e021beb4e5f597b00a0221f8ed8a49" dependencies = [ "num-conv", "time-core", @@ -14613,11 +17885,21 @@ dependencies = [ "crunchy", ] +[[package]] +name = "tinystr" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f" +dependencies = [ + "displaydoc", + "zerovec", +] + [[package]] name = "tinyvec" -version = "1.6.0" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" +checksum = "09b3661f17e86524eccd4371ab0429194e0d7c008abb45f7a7495b1719463c71" dependencies = [ "tinyvec_macros", ] @@ -14628,79 +17910,111 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" +[[package]] +name = "token-gateway-primitives" +version = "16.0.0" +source = "git+https://github.com/polytope-labs/hyperbridge?branch=polkadot-stable2409#c7237a7388c210a60177ce74fc512e814d331da0" +dependencies = [ + "alloy-primitives 0.7.7", + "alloy-sol-macro 0.7.7", + "alloy-sol-types 0.7.7", + "anyhow", + "ismp", + "log", + "pallet-ismp", + "parity-scale-codec", + "polkadot-sdk", + "primitive-types", + "scale-info", +] + [[package]] name = "tokio" -version = "1.42.1" +version = "1.44.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2209a14885b74764cce87ffa777ffa1b8ce81a3f3166c6f886b83337fe7e077f" +checksum = "e6b88822cbe49de4185e3a4cbf8321dd487cf5fe0c5c65695fef6346371e9c48" dependencies = [ "backtrace", "bytes", "libc", "mio", "parking_lot 0.12.3", - "pin-project-lite 0.2.14", + "pin-project-lite", "signal-hook-registry", - "socket2 0.5.7", + "socket2 0.5.9", "tokio-macros", "windows-sys 0.52.0", ] [[package]] name = "tokio-macros" -version = "2.4.0" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" +checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] -name = "tokio-retry" -version = "0.3.0" +name = "tokio-rustls" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f57eb36ecbe0fc510036adff84824dd3c24bb781e21bfa67b69d556aa85214f" +checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" dependencies = [ - "pin-project", - "rand", + "rustls 0.21.12", "tokio", ] [[package]] name = "tokio-rustls" -version = "0.24.1" +version = "0.26.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" +checksum = "8e727b36a1a0e8b74c376ac2211e40c2c8af09fb4013c60d910495810f008e9b" dependencies = [ - "rustls 0.21.12", + "rustls 0.23.26", "tokio", ] [[package]] name = "tokio-stream" -version = "0.1.15" +version = "0.1.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "267ac89e0bec6e691e5813911606935d77c476ff49024f98abcea3e7b15e37af" +checksum = "eca58d7bba4a75707817a2c44174253f9236b2d5fbd055602e9d5c07c139a047" dependencies = [ "futures-core", - "pin-project-lite 0.2.14", + "pin-project-lite", "tokio", "tokio-util", ] +[[package]] +name = "tokio-tungstenite" +version = "0.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "212d5dcb2a1ce06d81107c3d0ffa3121fe974b73f068c8282cb1c32328113b6c" +dependencies = [ + "futures-util", + "log", + "rustls 0.21.12", + "rustls-native-certs 0.6.3", + "tokio", + "tokio-rustls 0.24.1", + "tungstenite", +] + [[package]] name = "tokio-util" -version = "0.7.11" +version = "0.7.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cf6b47b3771c49ac75ad09a6162f53ad4b8088b76ac60e8ec1455b31a189fe1" +checksum = "66a539a9ad6d5d281510d5bd368c973d636c02dbf8a67300bfb6b950696ad7df" dependencies = [ "bytes", "futures-core", "futures-io", "futures-sink", - "pin-project-lite 0.2.14", + "pin-project-lite", "tokio", ] @@ -14715,59 +18029,44 @@ dependencies = [ [[package]] name = "toml" -version = "0.8.14" +version = "0.8.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f49eb2ab21d2f26bd6db7bf383edc527a7ebaee412d17af4d40fdccd442f335" +checksum = "900f6c86a685850b1bc9f6223b20125115ee3f31e01207d81655bbcc0aea9231" dependencies = [ "serde", "serde_spanned", "toml_datetime", - "toml_edit 0.22.14", + "toml_edit", ] [[package]] name = "toml_datetime" -version = "0.6.6" +version = "0.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4badfd56924ae69bcc9039335b2e017639ce3f9b001c393c1b2d1ef846ce2cbf" +checksum = "3da5db5a963e24bc68be8b17b6fa82814bb22ee8660f192bb182771d498f09a3" dependencies = [ "serde", ] [[package]] name = "toml_edit" -version = "0.20.7" +version = "0.22.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70f427fce4d84c72b5b732388bf4a9f4531b53f74e2887e3ecb2481f68f66d81" +checksum = "10558ed0bd2a1562e630926a2d1f0b98c827da99fabd3fe20920a59642504485" dependencies = [ - "indexmap 2.2.6", - "toml_datetime", - "winnow 0.5.40", -] - -[[package]] -name = "toml_edit" -version = "0.21.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a8534fd7f78b5405e860340ad6575217ce99f38d4d5c8f2442cb5ecb50090e1" -dependencies = [ - "indexmap 2.2.6", + "indexmap 2.9.0", + "serde", + "serde_spanned", "toml_datetime", - "winnow 0.5.40", + "toml_write", + "winnow", ] [[package]] -name = "toml_edit" -version = "0.22.14" +name = "toml_write" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f21c7aaf97f1bd9ca9d4f9e73b0a6c74bd5afef56f2bc931943a6e1c37e04e38" -dependencies = [ - "indexmap 2.2.6", - "serde", - "serde_spanned", - "toml_datetime", - "winnow 0.6.13", -] +checksum = "28391a4201ba7eb1984cfeb6862c0b3ea2cfe23332298967c749dddc0d6cd976" [[package]] name = "tower" @@ -14778,7 +18077,7 @@ dependencies = [ "futures-core", "futures-util", "pin-project", - "pin-project-lite 0.2.14", + "pin-project-lite", "tower-layer", "tower-service", "tracing", @@ -14786,62 +18085,60 @@ dependencies = [ [[package]] name = "tower-http" -version = "0.4.4" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61c5bb1d698276a2443e5ecfabc1008bf15a36c12e6a7176e7bf089ea9131140" +checksum = "1e9cd434a998747dd2c4276bc96ee2e0c7a2eadf3cae88e52be55a05fa9053f5" dependencies = [ - "bitflags 2.5.0", + "bitflags 2.9.0", "bytes", - "futures-core", - "futures-util", - "http", - "http-body", - "http-range-header", - "pin-project-lite 0.2.14", + "http 1.3.1", + "http-body 1.0.1", + "http-body-util", + "pin-project-lite", "tower-layer", "tower-service", ] [[package]] name = "tower-layer" -version = "0.3.2" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c20c8dbed6283a09604c3e69b4b7eeb54e298b8a600d4d5ecb5ad39de609f1d0" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" [[package]] name = "tower-service" -version = "0.3.2" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" [[package]] name = "tracing" -version = "0.1.40" +version = "0.1.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" +checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" dependencies = [ "log", - "pin-project-lite 0.2.14", + "pin-project-lite", "tracing-attributes", "tracing-core", ] [[package]] name = "tracing-attributes" -version = "0.1.27" +version = "0.1.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" +checksum = "395ae124c09f9e6918a2310af6038fba074bcf474ac352496d5910dd59a2226d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", ] [[package]] name = "tracing-core" -version = "0.1.32" +version = "0.1.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" +checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c" dependencies = [ "once_cell", "valuable", @@ -14859,8 +18156,8 @@ dependencies = [ [[package]] name = "tracing-gum" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "16.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "coarsetime", "polkadot-primitives", @@ -14871,24 +18168,13 @@ dependencies = [ [[package]] name = "tracing-gum-proc-macro" version = "5.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ - "expander 2.2.1", - "proc-macro-crate 3.1.0", + "expander", + "proc-macro-crate 3.3.0", "proc-macro2", "quote", - "syn 2.0.66", -] - -[[package]] -name = "tracing-log" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f751112709b4e791d8ce53e32c4ed2d353565a795ce84da2285393f41557bdf2" -dependencies = [ - "log", - "once_cell", - "tracing-core", + "syn 2.0.101", ] [[package]] @@ -14902,64 +18188,33 @@ dependencies = [ "tracing-core", ] -[[package]] -name = "tracing-serde" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc6b213177105856957181934e4920de57730fc69bf42c37ee5bb664d406d9e1" -dependencies = [ - "serde", - "tracing-core", -] - -[[package]] -name = "tracing-subscriber" -version = "0.2.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e0d2eaa99c3c2e41547cfa109e910a68ea03823cccad4a0525dcbc9b01e8c71" -dependencies = [ - "ansi_term", - "chrono", - "lazy_static", - "matchers 0.0.1", - "parking_lot 0.11.2", - "regex", - "serde", - "serde_json", - "sharded-slab", - "smallvec", - "thread_local", - "tracing", - "tracing-core", - "tracing-log 0.1.4", - "tracing-serde", -] - [[package]] name = "tracing-subscriber" -version = "0.3.18" +version = "0.3.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b" +checksum = "e8189decb5ac0fa7bc8b96b7cb9b2701d60d48805aca84a238004d665fcc4008" dependencies = [ - "matchers 0.1.0", + "matchers", "nu-ansi-term", "once_cell", + "parking_lot 0.12.3", "regex", "sharded-slab", + "smallvec", "thread_local", + "time", "tracing", "tracing-core", - "tracing-log 0.2.0", + "tracing-log", ] [[package]] name = "trie-db" -version = "0.28.0" +version = "0.29.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff28e0f815c2fea41ebddf148e008b077d2faddb026c9555b29696114d602642" +checksum = "0c992b4f40c234a074d48a757efeabb1a6be88af84c0c23f7ca158950cb0ae7f" dependencies = [ "hash-db", - "hashbrown 0.13.2", "log", "rustc-hex", "smallvec", @@ -14983,17 +18238,42 @@ dependencies = [ "async-trait", "cfg-if", "data-encoding", - "enum-as-inner", + "enum-as-inner 0.5.1", "futures-channel", "futures-io", "futures-util", "idna 0.2.3", "ipnet", "lazy_static", - "rand", + "rand 0.8.5", "smallvec", "socket2 0.4.10", - "thiserror", + "thiserror 1.0.69", + "tinyvec", + "tokio", + "tracing", + "url", +] + +[[package]] +name = "trust-dns-proto" +version = "0.23.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3119112651c157f4488931a01e586aa459736e9d6046d3bd9105ffb69352d374" +dependencies = [ + "async-trait", + "cfg-if", + "data-encoding", + "enum-as-inner 0.6.1", + "futures-channel", + "futures-io", + "futures-util", + "idna 0.4.0", + "ipnet", + "once_cell", + "rand 0.8.5", + "smallvec", + "thiserror 1.0.69", "tinyvec", "tokio", "tracing", @@ -15002,22 +18282,23 @@ dependencies = [ [[package]] name = "trust-dns-resolver" -version = "0.22.0" +version = "0.23.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aff21aa4dcefb0a1afbfac26deb0adc93888c7d295fb63ab273ef276ba2b7cfe" +checksum = "10a3e6c3aff1718b3c73e395d1f35202ba2ffa847c6a62eea0db8fb4cfe30be6" dependencies = [ "cfg-if", "futures-util", "ipconfig", - "lazy_static", "lru-cache", + "once_cell", "parking_lot 0.12.3", + "rand 0.8.5", "resolv-conf", "smallvec", - "thiserror", + "thiserror 1.0.69", "tokio", "tracing", - "trust-dns-proto", + "trust-dns-proto 0.23.2", ] [[package]] @@ -15027,46 +18308,36 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] -name = "try-runtime-cli" -version = "0.39.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +name = "tt-call" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4f195fd851901624eee5a58c4bb2b4f06399148fcd0ed336e6f1cb60a9881df" + +[[package]] +name = "tungstenite" +version = "0.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e3dac10fd62eaf6617d3a904ae222845979aec67c615d1c842b4002c7666fb9" dependencies = [ - "async-trait", - "clap", - "frame-remote-externalities", - "frame-try-runtime", - "hex", + "byteorder", + "bytes", + "data-encoding", + "http 0.2.12", + "httparse", "log", - "parity-scale-codec", - "sc-cli", - "sc-executor", - "serde", - "serde_json", - "sp-api", - "sp-consensus-aura", - "sp-consensus-babe", - "sp-core", - "sp-debug-derive", - "sp-externalities", - "sp-inherents", - "sp-io", - "sp-keystore", - "sp-rpc", - "sp-runtime", - "sp-state-machine", - "sp-timestamp", - "sp-transaction-storage-proof", - "sp-version", - "sp-weights", - "substrate-rpc-client", - "zstd 0.12.4", + "rand 0.8.5", + "rustls 0.21.12", + "sha1", + "thiserror 1.0.69", + "url", + "utf-8", ] [[package]] -name = "tt-call" -version = "1.0.9" +name = "tuplex" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4f195fd851901624eee5a58c4bb2b4f06399148fcd0ed336e6f1cb60a9881df" +checksum = "676ac81d5454c4dcf37955d34fa8626ede3490f744b86ca14a7b90168d2a08aa" [[package]] name = "twox-hash" @@ -15076,21 +18347,21 @@ checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ "cfg-if", "digest 0.10.7", - "rand", + "rand 0.8.5", "static_assertions", ] [[package]] name = "typenum" -version = "1.17.0" +version = "1.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" +checksum = "1dccffe3ce07af9386bfd29e80c0ab1a8205a2fc34e4bcd40364df902cfa8f3f" [[package]] name = "ucd-trie" -version = "0.1.6" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9" +checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971" [[package]] name = "uint" @@ -15104,17 +18375,23 @@ dependencies = [ "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.15" +version = "0.3.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" +checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5" [[package]] name = "unicode-ident" -version = "1.0.12" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" +checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512" [[package]] name = "unicode-normalization" @@ -15125,17 +18402,23 @@ dependencies = [ "tinyvec", ] +[[package]] +name = "unicode-segmentation" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" + [[package]] name = "unicode-width" -version = "0.1.13" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d" +checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd" [[package]] name = "unicode-xid" -version = "0.2.4" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" [[package]] name = "universal-hash" @@ -15144,7 +18427,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea" dependencies = [ "crypto-common", - "subtle 2.4.1", + "subtle 2.6.1", ] [[package]] @@ -15159,6 +18442,16 @@ dependencies = [ "futures-util", ] +[[package]] +name = "unsigned-varint" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb066959b24b5196ae73cb057f45598450d2c5f71460e98c49b738086eff9c06" +dependencies = [ + "bytes", + "tokio-util", +] + [[package]] name = "untrusted" version = "0.7.1" @@ -15173,15 +18466,33 @@ 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", ] +[[package]] +name = "utf-8" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" + +[[package]] +name = "utf16_iter" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" + +[[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" @@ -15190,9 +18501,9 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" [[package]] name = "valuable" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" +checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" [[package]] name = "vcpkg" @@ -15202,9 +18513,9 @@ checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" [[package]] name = "version_check" -version = "0.9.4" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] name = "void" @@ -15214,28 +18525,35 @@ checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" [[package]] name = "w3f-bls" -version = "0.1.4" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c5da5fa2c6afa2c9158eaa7cd9aee249765eb32b5fb0c63ad8b9e79336a47ec" +checksum = "e6bfb937b3d12077654a9e43e32a4e9c20177dd9fea0f3aba673e7840bb54f32" dependencies = [ "ark-bls12-377", "ark-bls12-381", "ark-ec", - "ark-ff", - "ark-serialize", + "ark-ff 0.4.2", + "ark-serialize 0.4.2", "ark-serialize-derive", "arrayref", - "constcat", "digest 0.10.7", - "rand", + "rand 0.8.5", "rand_chacha 0.3.1", "rand_core 0.6.4", "sha2 0.10.8", "sha3", - "thiserror", "zeroize", ] +[[package]] +name = "wait-timeout" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ac3b126d3914f9849036f826e054cbabdc8519970b8998ddaf3b5bd3c65f11" +dependencies = [ + "libc", +] + [[package]] name = "waker-fn" version = "1.2.0" @@ -15263,15 +18581,18 @@ dependencies = [ [[package]] name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" +version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasi" -version = "0.11.0+wasi-snapshot-preview1" +version = "0.14.2+wasi-0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" +checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3" +dependencies = [ + "wit-bindgen-rt", +] [[package]] name = "wasix" @@ -15284,46 +18605,48 @@ dependencies = [ [[package]] name = "wasm-bindgen" -version = "0.2.92" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8" +checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5" dependencies = [ "cfg-if", + "once_cell", + "rustversion", "wasm-bindgen-macro", ] [[package]] name = "wasm-bindgen-backend" -version = "0.2.92" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da" +checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6" dependencies = [ "bumpalo", "log", - "once_cell", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.42" +version = "0.4.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76bc14366121efc8dbb487ab05bcc9d346b3b5ec0eaa76e46594cabbe51762c0" +checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61" dependencies = [ "cfg-if", "js-sys", + "once_cell", "wasm-bindgen", "web-sys", ] [[package]] name = "wasm-bindgen-macro" -version = "0.2.92" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726" +checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -15331,22 +18654,25 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.92" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" +checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.92" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" +checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d" +dependencies = [ + "unicode-ident", +] [[package]] name = "wasm-instrument" @@ -15368,7 +18694,7 @@ dependencies = [ "strum 0.24.1", "strum_macros 0.24.3", "tempfile", - "thiserror", + "thiserror 1.0.69", "wasm-opt-cxx-sys", "wasm-opt-sys", ] @@ -15421,7 +18747,24 @@ dependencies = [ "smallvec", "spin 0.9.8", "wasmi_arena", - "wasmi_core", + "wasmi_core 0.13.0", + "wasmparser-nostd", +] + +[[package]] +name = "wasmi" +version = "0.32.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50386c99b9c32bd2ed71a55b6dd4040af2580530fae8bdb9a6576571a80d0cca" +dependencies = [ + "arrayvec 0.7.6", + "multi-stash", + "num-derive", + "num-traits", + "smallvec", + "spin 0.9.8", + "wasmi_collections", + "wasmi_core 0.32.3", "wasmparser-nostd", ] @@ -15431,6 +18774,17 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "104a7f73be44570cac297b3035d76b169d6599637631cf37a1703326a0727073" +[[package]] +name = "wasmi_collections" +version = "0.32.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c128c039340ffd50d4195c3f8ce31aac357f06804cfc494c8b9508d4b30dca4" +dependencies = [ + "ahash 0.8.11", + "hashbrown 0.14.5", + "string-interner", +] + [[package]] name = "wasmi_core" version = "0.13.0" @@ -15443,6 +18797,18 @@ dependencies = [ "paste", ] +[[package]] +name = "wasmi_core" +version = "0.32.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a23b3a7f6c8c3ceeec6b83531ee61f0013c56e51cbf2b14b0f213548b23a4b41" +dependencies = [ + "downcast-rs", + "libm", + "num-traits", + "paste", +] + [[package]] name = "wasmparser" version = "0.102.0" @@ -15535,7 +18901,7 @@ dependencies = [ "log", "object 0.30.4", "target-lexicon", - "thiserror", + "thiserror 1.0.69", "wasmparser", "wasmtime-cranelift-shared", "wasmtime-environ", @@ -15570,7 +18936,7 @@ dependencies = [ "object 0.30.4", "serde", "target-lexicon", - "thiserror", + "thiserror 1.0.69", "wasmparser", "wasmtime-types", ] @@ -15637,7 +19003,7 @@ dependencies = [ "memfd", "memoffset", "paste", - "rand", + "rand 0.8.5", "rustix 0.36.17", "wasmtime-asm-macros", "wasmtime-environ", @@ -15653,15 +19019,15 @@ checksum = "a4f6fffd2a1011887d57f07654dd112791e872e3ff4a2e626aee8059ee17f06f" dependencies = [ "cranelift-entity", "serde", - "thiserror", + "thiserror 1.0.69", "wasmparser", ] [[package]] name = "web-sys" -version = "0.3.69" +version = "0.3.77" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77afa9a11836342370f4817622a2f0f418b134426d91a82dfb48f532d2ec13ef" +checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2" dependencies = [ "js-sys", "wasm-bindgen", @@ -15678,18 +19044,24 @@ dependencies = [ ] [[package]] -name = "webpki-roots" -version = "0.22.6" +name = "webpki-root-certs" +version = "0.26.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6c71e40d7d2c34a5106301fb632274ca37242cd0c9d3e64dbece371a40a2d87" +checksum = "180d2741b6115c3d906577e6533ad89472d48d96df00270fccb78233073d77f7" dependencies = [ - "webpki", + "rustls-pki-types", ] +[[package]] +name = "webpki-roots" +version = "0.25.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1" + [[package]] name = "westend-runtime" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "18.0.2" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "binary-merkle-tree", "bitvec", @@ -15714,6 +19086,7 @@ dependencies = [ "pallet-beefy-mmr", "pallet-collective", "pallet-conviction-voting", + "pallet-delegated-staking", "pallet-democracy", "pallet-election-provider-multi-phase", "pallet-election-provider-support-benchmarking", @@ -15721,7 +19094,6 @@ dependencies = [ "pallet-fast-unstake", "pallet-grandpa", "pallet-identity", - "pallet-im-online", "pallet-indices", "pallet-membership", "pallet-message-queue", @@ -15732,6 +19104,7 @@ dependencies = [ "pallet-nomination-pools-runtime-api", "pallet-offences", "pallet-offences-benchmarking", + "pallet-parameters", "pallet-preimage", "pallet-proxy", "pallet-recovery", @@ -15742,7 +19115,6 @@ dependencies = [ "pallet-session-benchmarking", "pallet-society", "pallet-staking", - "pallet-staking-reward-curve", "pallet-staking-runtime-api", "pallet-state-trie-migration", "pallet-sudo", @@ -15760,10 +19132,10 @@ dependencies = [ "polkadot-primitives", "polkadot-runtime-common", "polkadot-runtime-parachains", - "rustc-hex", "scale-info", "serde", "serde_derive", + "serde_json", "smallvec", "sp-api", "sp-application-crypto", @@ -15772,6 +19144,7 @@ dependencies = [ "sp-block-builder", "sp-consensus-babe", "sp-consensus-beefy", + "sp-consensus-grandpa", "sp-core", "sp-genesis-builder", "sp-inherents", @@ -15782,7 +19155,6 @@ dependencies = [ "sp-runtime", "sp-session", "sp-staking", - "sp-std", "sp-storage", "sp-transaction-pool", "sp-version", @@ -15791,12 +19163,13 @@ dependencies = [ "staging-xcm-executor", "substrate-wasm-builder", "westend-runtime-constants", + "xcm-runtime-apis", ] [[package]] name = "westend-runtime-constants" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "17.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "frame-support", "polkadot-primitives", @@ -15818,14 +19191,14 @@ dependencies = [ "either", "home", "once_cell", - "rustix 0.38.34", + "rustix 0.38.44", ] [[package]] name = "wide" -version = "0.7.24" +version = "0.7.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a040b111774ab63a19ef46bbc149398ab372b4ccdcfd719e9814dbd7dfd76c8" +checksum = "41b5576b9a81633f3e8df296ce0063042a73507636cbe956c61133dd7034ab22" dependencies = [ "bytemuck", "safe_arch", @@ -15833,9 +19206,9 @@ dependencies = [ [[package]] name = "widestring" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7219d36b6eac893fa81e84ebe06485e7dcbb616177469b142df14f1f4deb1311" +checksum = "dd7cf3379ca1aac9eea11fba24fd7e315d621f8dfe35c8d7d2be8b793726e07d" [[package]] name = "winapi" @@ -15855,11 +19228,11 @@ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" [[package]] name = "winapi-util" -version = "0.1.8" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d4cc384e1e73b93bafa6fb4f1df8c41695c8a91cf9c4c64358067d15a7b6c6b" +checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -15870,30 +19243,105 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windows" -version = "0.51.1" +version = "0.53.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca229916c5ee38c2f2bc1e9d8f04df975b4bd93f9955dc69fabb5d91270045c9" +checksum = "efc5cf48f83140dcaab716eeaea345f9e93d0018fb81162753a3f76c3397b538" dependencies = [ - "windows-core 0.51.1", - "windows-targets 0.48.5", + "windows-core 0.53.0", + "windows-targets 0.52.6", ] [[package]] name = "windows-core" -version = "0.51.1" +version = "0.53.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1f8cf84f35d2db49a46868f947758c7a1138116f7fac3bc844f43ade1292e64" +checksum = "9dcc5b895a6377f1ab9fa55acedab1fd5ac0db66ad1e6c7f47e28a22e446a5dd" dependencies = [ - "windows-targets 0.48.5", + "windows-result 0.1.2", + "windows-targets 0.52.6", ] [[package]] name = "windows-core" -version = "0.52.0" +version = "0.61.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4763c1de310c86d75a878046489e2e5ba02c649d185f21c67d4cf8a56d098980" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link", + "windows-result 0.3.2", + "windows-strings", +] + +[[package]] +name = "windows-implement" +version = "0.60.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a47fddd13af08290e67f4acabf4b459f647552718f683a7b415d290ac744a836" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", +] + +[[package]] +name = "windows-interface" +version = "0.59.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd9211b69f8dcdfa817bfd14bf1c97c9188afa36f4750130fcdf3f400eca9fa8" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", +] + +[[package]] +name = "windows-link" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76840935b766e1b0a05c0066835fb9ec80071d4c09a16f6bd5f7e655e3c14c38" + +[[package]] +name = "windows-result" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e383302e8ec8515204254685643de10811af0ed97ea37210dc26fb0032647f8" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-result" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c64fd11a4fd95df68efcfee5f44a294fe71b8bc6a91993e2791938abcc712252" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a2ba9642430ee452d5a7aa78d72907ebe8cfda358e8cb7918a2050581322f97" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-sys" +version = "0.42.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" +checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" dependencies = [ - "windows-targets 0.52.5", + "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]] @@ -15920,7 +19368,16 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "windows-targets 0.52.5", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", ] [[package]] @@ -15955,18 +19412,18 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" dependencies = [ - "windows_aarch64_gnullvm 0.52.5", - "windows_aarch64_msvc 0.52.5", - "windows_i686_gnu 0.52.5", + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", "windows_i686_gnullvm", - "windows_i686_msvc 0.52.5", - "windows_x86_64_gnu 0.52.5", - "windows_x86_64_gnullvm 0.52.5", - "windows_x86_64_msvc 0.52.5", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", ] [[package]] @@ -15983,9 +19440,9 @@ checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" [[package]] name = "windows_aarch64_gnullvm" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" [[package]] name = "windows_aarch64_msvc" @@ -16001,9 +19458,9 @@ checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" [[package]] name = "windows_aarch64_msvc" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" [[package]] name = "windows_i686_gnu" @@ -16019,15 +19476,15 @@ checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" [[package]] name = "windows_i686_gnu" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88ba073cf16d5372720ec942a8ccbf61626074c6d4dd2e745299726ce8b89670" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" [[package]] name = "windows_i686_gnullvm" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" [[package]] name = "windows_i686_msvc" @@ -16043,9 +19500,9 @@ checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" [[package]] name = "windows_i686_msvc" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" [[package]] name = "windows_x86_64_gnu" @@ -16061,9 +19518,9 @@ checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" [[package]] name = "windows_x86_64_gnu" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" [[package]] name = "windows_x86_64_gnullvm" @@ -16079,9 +19536,9 @@ checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" [[package]] name = "windows_x86_64_gnullvm" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" [[package]] name = "windows_x86_64_msvc" @@ -16097,24 +19554,15 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "windows_x86_64_msvc" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0" - -[[package]] -name = "winnow" -version = "0.5.40" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" -dependencies = [ - "memchr", -] +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "winnow" -version = "0.6.13" +version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59b5e5f6c299a3c7890b876a2a587f3115162487e704907d9b6cd29473052ba1" +checksum = "6cb8234a863ea0e8cd7284fcdd4f145233eb00fee02bbdd9861aec44e6477bc5" dependencies = [ "memchr", ] @@ -16130,23 +19578,33 @@ dependencies = [ ] [[package]] -name = "wyz" -version = "0.5.1" +name = "wit-bindgen-rt" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed" +checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1" dependencies = [ - "tap", + "bitflags 2.9.0", ] [[package]] -name = "x25519-dalek" -version = "1.1.1" +name = "write16" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" + +[[package]] +name = "writeable" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" + +[[package]] +name = "wyz" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a0c105152107e3b96f6a00a65e86ce82d9b125230e1c4302940eca58ff71f4f" +checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed" dependencies = [ - "curve25519-dalek 3.2.0", - "rand_core 0.5.1", - "zeroize", + "tap", ] [[package]] @@ -16155,7 +19613,7 @@ version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7e468321c81fb07fa7f4c636c3972b9100f0346e5b6a9f2bd0603a52f7ed277" dependencies = [ - "curve25519-dalek 4.1.3", + "curve25519-dalek", "rand_core 0.6.4", "serde", "zeroize", @@ -16163,27 +19621,44 @@ dependencies = [ [[package]] name = "x509-parser" -version = "0.14.0" +version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0ecbeb7b67ce215e40e3cc7f2ff902f94a223acf44995934763467e7b1febc8" +checksum = "7069fba5b66b9193bd2c5d3d4ff12b839118f6bcbef5328efafafb5395cf63da" dependencies = [ - "asn1-rs", - "base64 0.13.1", + "asn1-rs 0.5.2", + "data-encoding", + "der-parser 8.2.0", + "lazy_static", + "nom", + "oid-registry 0.6.1", + "rusticata-macros", + "thiserror 1.0.69", + "time", +] + +[[package]] +name = "x509-parser" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcbc162f30700d6f3f82a24bf7cc62ffe7caea42c0b2cba8bf7f3ae50cf51f69" +dependencies = [ + "asn1-rs 0.6.2", "data-encoding", - "der-parser", + "der-parser 9.0.0", "lazy_static", "nom", - "oid-registry", + "oid-registry 0.7.1", "rusticata-macros", - "thiserror", + "thiserror 1.0.69", "time", ] [[package]] name = "xcm-emulator" -version = "0.6.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "0.16.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ + "array-bytes", "cumulus-pallet-parachain-system", "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", @@ -16257,26 +19732,78 @@ dependencies = [ [[package]] name = "xcm-procedural" -version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-crates-io-v1.7.0#e046d3b2caaca6c43a60f26594052c5c806b980e" +version = "10.1.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" dependencies = [ "Inflector", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", +] + +[[package]] +name = "xcm-runtime-apis" +version = "0.4.3" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-support", + "parity-scale-codec", + "scale-info", + "sp-api", + "sp-weights", + "staging-xcm", + "staging-xcm-executor", +] + +[[package]] +name = "xcm-simulator" +version = "17.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=stable2409#be2d857aeff5cdb6c9cb0987f9880df223a528db" +dependencies = [ + "frame-support", + "frame-system", + "parity-scale-codec", + "paste", + "polkadot-core-primitives", + "polkadot-parachain-primitives", + "polkadot-primitives", + "polkadot-runtime-parachains", + "scale-info", + "sp-io", + "sp-runtime", + "sp-std", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", +] + +[[package]] +name = "xml-rs" +version = "0.8.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a62ce76d9b56901b19a74f19431b0d8b3bc7ca4ad685a746dfd78ca8f4fc6bda" + +[[package]] +name = "xmltree" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7d8a75eaf6557bb84a65ace8609883db44a29951042ada9b393151532e41fcb" +dependencies = [ + "xml-rs", ] [[package]] name = "yamux" -version = "0.10.2" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5d9ba232399af1783a58d8eb26f6b5006fbefe2dc9ef36bd283324792d03ea5" +checksum = "9ed0164ae619f2dc144909a9f082187ebb5893693d8c0196e8085283ccd4b776" dependencies = [ "futures", "log", "nohash-hasher", "parking_lot 0.12.3", - "rand", + "pin-project", + "rand 0.8.5", "static_assertions", ] @@ -16289,24 +19816,89 @@ dependencies = [ "time", ] +[[package]] +name = "yoke" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "120e6aef9aa629e3d4f52dc8cc43a015c7724194c97dfaf45180d2daf2b77f40" +dependencies = [ + "serde", + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", + "synstructure 0.13.1", +] + +[[package]] +name = "zerocopy" +version = "0.7.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" +dependencies = [ + "zerocopy-derive 0.7.35", +] + [[package]] name = "zerocopy" -version = "0.7.34" +version = "0.8.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1702d9583232ddb9174e01bb7c15a2ab8fb1bc6f227aa1233858c351a3ba0cb" +dependencies = [ + "zerocopy-derive 0.8.25", +] + +[[package]] +name = "zerocopy-derive" +version = "0.7.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae87e3fcd617500e5d106f0380cf7b77f3c6092aae37191433159dda23cfb087" +checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ - "zerocopy-derive", + "proc-macro2", + "quote", + "syn 2.0.101", ] [[package]] name = "zerocopy-derive" -version = "0.7.34" +version = "0.8.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28a6e20d751156648aa063f3800b706ee209a32c0b4d9f24be3d980b01be55ef" +dependencies = [ + "proc-macro2", + "quote", + "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 = "15e934569e47891f7d9411f1a451d947a60e000ab3bd24fbb970f000387d1b3b" +checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", + "synstructure 0.13.1", ] [[package]] @@ -16326,7 +19918,29 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.101", +] + +[[package]] +name = "zerovec" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.101", ] [[package]] @@ -16369,9 +19983,9 @@ dependencies = [ [[package]] name = "zstd-sys" -version = "2.0.11+zstd.1.5.6" +version = "2.0.15+zstd.1.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75652c55c0b6f3e6f12eb786fe1bc960396bf05a1eb3bf1f3691c3610ac2e6d4" +checksum = "eb81183ddd97d0c74cedf1d50d85c8d08c1b8b68ee863bdee9e706eedba1a237" dependencies = [ "cc", "pkg-config", diff --git a/Cargo.toml b/Cargo.toml index 193926cb61..b5a575d1bf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,9 +25,10 @@ version = "1.16.0-dev" [workspace.dependencies] # Build deps -substrate-wasm-builder = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +substrate-wasm-builder = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } # External (without extra features and with default disabled if necessary) +anyhow = { version = "1.0", default-features = false } base58 = { version = "0.2.0", default-features = false } bitflags = { version = "1.3.2", default-features = false } cfg-if = { version = "1.0" } @@ -39,13 +40,14 @@ futures = { version = "0.3.21", default-features = false } hash-db = { version = "0.16.0", default-features = false } hex = { version = "0.4.0", default-features = false } hex-literal = { version = "0.3.4" } -jsonrpsee = { version = "0.20.3" } +jsonrpsee = { version = "0.24.0" } +jsonrpsee-core = { version = "0.24.0" } libsecp256k1 = { version = "0.7", default-features = false } log = { version = "0.4.17" } -parity-scale-codec = { version = "3.1.5", default-features = false } -scale-info = { version = "2.1.1", default-features = false } -serde = { version = "1.0.144", default-features = false } -serde_json = { version = "1.0.85" } +parity-scale-codec = { version = "3.6.12", default-features = false } +scale-info = { version = "2.11.1", default-features = false } +serde = { version = "1.0.197", default-features = false } +serde_json = { version = "1.0.121", default-features = false } sha3 = { version = "0.10.0", default-features = false } smallvec = { version = "1.8.0" } substrate-fixed = { version = "0.5.9", default-features = false } @@ -97,153 +99,163 @@ peregrine-runtime = { path = "runtimes/peregrine", default-features = false } spiritnet-runtime = { path = "runtimes/spiritnet", default-features = false } # Benchmarking (with default disabled) -cumulus-pallet-session-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -frame-system-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +cumulus-pallet-session-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +frame-system-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } # Cumulus (with default disabled) -cumulus-pallet-aura-ext = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -cumulus-pallet-parachain-system = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -cumulus-pallet-xcm = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -cumulus-pallet-xcmp-queue = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -cumulus-primitives-aura = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -cumulus-primitives-core = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -cumulus-primitives-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -cumulus-primitives-utility = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -parachain-info = { package = "staging-parachain-info", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -parachains-common = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +cumulus-pallet-aura-ext = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +cumulus-pallet-parachain-system = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +cumulus-pallet-xcm = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +cumulus-pallet-xcmp-queue = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +cumulus-primitives-aura = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +cumulus-primitives-core = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +cumulus-primitives-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +cumulus-primitives-utility = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +parachain-info = { package = "staging-parachain-info", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +parachains-common = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } # XCM Emulator tests -asset-hub-kusama-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -asset-hub-polkadot-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -asset-hub-rococo-emulated-chain = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -asset-hub-rococo-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -asset-hub-westend-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -bridge-hub-kusama-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -bridge-hub-polkadot-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -bridge-hub-rococo-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -collectives-polkadot-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -emulated-integration-tests-common = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -penpal-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -rococo-emulated-chain = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -xcm-emulator = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +asset-hub-kusama-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +asset-hub-polkadot-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +asset-hub-rococo-emulated-chain = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +asset-hub-rococo-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +asset-hub-westend-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +bridge-hub-kusama-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +bridge-hub-polkadot-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +bridge-hub-rococo-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +collectives-polkadot-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +emulated-integration-tests-common = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +penpal-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +rococo-emulated-chain = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +xcm-emulator = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } # Substrate (with default disabled) -frame-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -frame-benchmarking-cli = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -frame-executive = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -frame-metadata-hash-extension = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -frame-support = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -frame-system = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -frame-try-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-assets = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-aura = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-authorship = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-balances = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-collator-selection = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-collective = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-democracy = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-im-online = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-indices = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-membership = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-message-queue = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-multisig = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-preimage = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-proxy = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-scheduler = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-session = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-sudo = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-tips = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-transaction-payment = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-treasury = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-utility = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -pallet-vesting = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-api = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-arithmetic = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-authority-discovery = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-block-builder = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-consensus-babe = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-core = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-genesis-builder = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-inherents = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-io = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-metadata-ir = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-offchain = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-session = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-staking = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-state-machine = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-std = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-tracing = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-trie = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-version = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -sp-weights = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -try-runtime-cli = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +frame-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +frame-benchmarking-cli = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +frame-executive = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +frame-metadata-hash-extension = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +frame-support = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +frame-system = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +frame-try-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-assets = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-aura = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-authorship = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-balances = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-collator-selection = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-collective = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-democracy = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-im-online = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-indices = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-membership = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-message-queue = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-multisig = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-preimage = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-proxy = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-scheduler = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-session = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-sudo = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-tips = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-transaction-payment = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-treasury = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-utility = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +pallet-vesting = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-api = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-arithmetic = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-authority-discovery = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-block-builder = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-consensus-babe = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-core = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-genesis-builder = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-inherents = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-io = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-metadata-ir = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-offchain = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-session = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-staking = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-state-machine = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-std = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-tracing = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-trie = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-version = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +sp-weights = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } # Polkadot (with default disabled) -pallet-xcm = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -polkadot-parachain = { package = "polkadot-parachain-primitives", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -polkadot-runtime-common = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -polkadot-runtime-parachains = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -rococo-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -xcm = { package = "staging-xcm", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -xcm-builder = { package = "staging-xcm-builder", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -xcm-executor = { package = "staging-xcm-executor", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } -xcm-simulator = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" } +pallet-xcm = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +polkadot-parachain = { package = "polkadot-parachain-primitives", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +polkadot-runtime-common = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +polkadot-runtime-parachains = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +rococo-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +xcm = { package = "staging-xcm", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +xcm-builder = { package = "staging-xcm-builder", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +xcm-executor = { package = "staging-xcm-executor", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } +xcm-simulator = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "stable2409" } # Client-only (with default enabled) -cumulus-client-cli = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -cumulus-client-collator = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -cumulus-client-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -cumulus-client-consensus-common = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -cumulus-client-consensus-proposer = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -cumulus-client-network = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -cumulus-client-service = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -cumulus-primitives-parachain-inherent = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -cumulus-relay-chain-inprocess-interface = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -cumulus-relay-chain-interface = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -cumulus-relay-chain-minimal-node = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -cumulus-relay-chain-rpc-interface = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -polkadot-cli = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -polkadot-primitives = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -polkadot-service = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sc-basic-authorship = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sc-chain-spec = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sc-cli = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sc-client-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sc-consensus = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sc-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sc-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sc-executor = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sc-keystore = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sc-network = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sc-network-sync = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sc-offchain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sc-rpc-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sc-service = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sc-sysinfo = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sc-telemetry = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sc-tracing = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sc-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sc-transaction-pool-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sp-blockchain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sp-consensus = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sp-consensus-beefy = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sp-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sp-keyring = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sp-keystore = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -sp-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -substrate-build-script-utils = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -substrate-frame-rpc-system = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } -substrate-prometheus-endpoint = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.7.0" } +cumulus-client-cli = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +cumulus-client-collator = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +cumulus-client-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +cumulus-client-consensus-common = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +cumulus-client-consensus-proposer = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +cumulus-client-network = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +cumulus-client-service = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +cumulus-primitives-parachain-inherent = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +cumulus-relay-chain-inprocess-interface = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +cumulus-relay-chain-interface = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +cumulus-relay-chain-minimal-node = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +cumulus-relay-chain-rpc-interface = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +polkadot-cli = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +polkadot-primitives = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +polkadot-service = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sc-basic-authorship = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sc-chain-spec = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sc-cli = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sc-client-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sc-consensus = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sc-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sc-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sc-executor = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sc-keystore = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sc-network = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sc-network-sync = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sc-offchain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sc-rpc-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sc-service = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sc-sysinfo = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sc-telemetry = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sc-tracing = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sc-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sc-transaction-pool-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sp-blockchain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sp-consensus = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sp-consensus-beefy = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sp-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sp-keyring = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sp-keystore = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +sp-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +substrate-build-script-utils = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +substrate-frame-rpc-system = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } +substrate-prometheus-endpoint = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2409" } + +# ISMP +ismp = { git = "https://github.com/polytope-labs/hyperbridge", branch = "polkadot-stable2409", default-features = false } +ismp-parachain = { git = "https://github.com/polytope-labs/hyperbridge", branch = "polkadot-stable2409", default-features = false } +ismp-parachain-inherent = { git = "https://github.com/polytope-labs/hyperbridge", branch = "polkadot-stable2409", default-features = false } +ismp-parachain-runtime-api = { git = "https://github.com/polytope-labs/hyperbridge", branch = "polkadot-stable2409", default-features = false } +pallet-hyperbridge = { git = "https://github.com/polytope-labs/hyperbridge", branch = "polkadot-stable2409", default-features = false } +pallet-ismp = { git = "https://github.com/polytope-labs/hyperbridge", branch = "polkadot-stable2409", default-features = false } +pallet-ismp-rpc = { git = "https://github.com/polytope-labs/hyperbridge", branch = "polkadot-stable2409" } +pallet-ismp-runtime-api = { git = "https://github.com/polytope-labs/hyperbridge", branch = "polkadot-stable2409", default-features = false } +pallet-token-gateway = { git = "https://github.com/polytope-labs/hyperbridge", branch = "polkadot-stable2409", default-features = false } [profile] diff --git a/Dockerfile b/Dockerfile index 42be144a31..d23a89e7e9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # this container builds the kilt-parachain binary from source files and the runtime library # pinned the version to avoid build cache invalidation -FROM paritytech/ci-unified:bullseye-1.74.0 as builder +FROM paritytech/ci-unified:bullseye-1.81.0 as builder WORKDIR /build diff --git a/crates/kilt-dip-primitives/Cargo.toml b/crates/kilt-dip-primitives/Cargo.toml index b773c8d6da..febbc9c2f7 100644 --- a/crates/kilt-dip-primitives/Cargo.toml +++ b/crates/kilt-dip-primitives/Cargo.toml @@ -11,7 +11,7 @@ repository = { workspace = true } version = { workspace = true } [dev-dependencies] -cumulus-pallet-parachain-system = { workspace = true, features = ["parameterized-consensus-hook", "std"] } +cumulus-pallet-parachain-system = { workspace = true, features = ["std"] } cumulus-primitives-core = { workspace = true } enum-iterator = { workspace = true } hex-literal = { workspace = true } diff --git a/crates/kilt-dip-primitives/src/merkle_proofs/v0/dip_subject_state/tests.rs b/crates/kilt-dip-primitives/src/merkle_proofs/v0/dip_subject_state/tests.rs index daa4f1b074..ed05091ac0 100644 --- a/crates/kilt-dip-primitives/src/merkle_proofs/v0/dip_subject_state/tests.rs +++ b/crates/kilt-dip-primitives/src/merkle_proofs/v0/dip_subject_state/tests.rs @@ -143,7 +143,7 @@ mod dip_revealed_details_and_verified_did_signature_freshness { details: DidPublicKeyDetails { // This key should be filtered out from the result, since it does not verify successfully for the // provided payload and signature. - key: DidVerificationKey::from(ed25519::Public([100; 32])).into(), + key: DidVerificationKey::from(ed25519::Public::from_raw([100; 32])).into(), block_number: 0u32, }, } @@ -176,7 +176,7 @@ mod dip_revealed_details_and_verified_did_signature_freshness { #[test] fn retrieve_signing_leaves_for_payload_no_key_present() { - let did_auth_key: DidVerificationKey = ed25519::Public([0u8; 32]).into(); + let did_auth_key: DidVerificationKey = ed25519::Public::from_raw([0u8; 32]).into(); let revealed_leaves: BoundedVec, ConstU32<1>> = vec![RevealedDidKey { id: 0u32, @@ -192,7 +192,7 @@ mod dip_revealed_details_and_verified_did_signature_freshness { let revealed_details: DipRevealedDetailsAndVerifiedDidSignatureFreshness<_, _, _, _, _, 1> = DipRevealedDetailsAndVerifiedDidSignatureFreshness { revealed_leaves, - signature: ed25519::Signature([100u8; 64]).into(), + signature: ed25519::Signature::from_raw([100u8; 64]).into(), }; assert_err!( revealed_details.retrieve_signing_leaves_for_payload(&().encode()), diff --git a/crates/kilt-dip-primitives/src/merkle_proofs/v0/input_common.rs b/crates/kilt-dip-primitives/src/merkle_proofs/v0/input_common.rs index 2b1b2b8d3d..ddf4d84a9e 100644 --- a/crates/kilt-dip-primitives/src/merkle_proofs/v0/input_common.rs +++ b/crates/kilt-dip-primitives/src/merkle_proofs/v0/input_common.rs @@ -35,7 +35,7 @@ pub struct ProviderHeadStateProof { } impl ProviderHeadStateProof { - pub fn new(relay_block_number: RelayBlockNumber, proof: Vec>) -> Self { + pub const fn new(relay_block_number: RelayBlockNumber, proof: Vec>) -> Self { Self { proof, relay_block_number, @@ -49,7 +49,7 @@ impl ProviderHeadStateProof { pub struct DipCommitmentStateProof(pub(crate) Vec>); impl DipCommitmentStateProof { - pub fn new(proof: Vec>) -> Self { + pub const fn new(proof: Vec>) -> Self { Self(proof) } } @@ -86,7 +86,7 @@ pub struct DidMerkleProof< impl DidMerkleProof { - pub fn new( + pub const fn new( blinded: Vec>, revealed: Vec< RevealedDidMerkleProofLeaf< @@ -160,7 +160,7 @@ where { fn default() -> Self { Self { - signature: DidSignature::Ed25519(sp_core::ed25519::Signature([0u8; 64])), + signature: DidSignature::Ed25519(sp_core::ed25519::Signature::from_raw([0u8; 64])), valid_until: BlockNumber::default(), } } diff --git a/crates/kilt-dip-primitives/src/merkle_proofs/v0/provider_state/tests.rs b/crates/kilt-dip-primitives/src/merkle_proofs/v0/provider_state/tests.rs index d9c121ac47..eb447321bb 100644 --- a/crates/kilt-dip-primitives/src/merkle_proofs/v0/provider_state/tests.rs +++ b/crates/kilt-dip-primitives/src/merkle_proofs/v0/provider_state/tests.rs @@ -263,6 +263,12 @@ mod dip_did_proof_with_verified_relay_state_root { type SS58Prefix = ConstU16<1>; type SystemWeightInfo = (); type Version = (); + + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } impl pallet_dip_provider::Config for TestProviderRuntime { @@ -482,7 +488,7 @@ mod dip_did_proof_with_verified_subject_commitment { id: hex!("50da6646d21f19b4d7d9f80d5beb103fbef7f4bb95eb94e0c02552175b1bff3a").into(), relationship: DidVerificationKeyRelationship::Authentication.into(), details: DidPublicKeyDetails { - key: DidVerificationKey::Ed25519(ed25519::Public(hex!( + key: DidVerificationKey::Ed25519(ed25519::Public::from_raw(hex!( "43a72e714401762df66b68c26dfbdf2682aaec9f2474eca4613e424a0fbafd3c" ))) .into(), diff --git a/crates/kilt-dip-primitives/src/verifier/parachain/v0/mock.rs b/crates/kilt-dip-primitives/src/verifier/parachain/v0/mock.rs index 6e89bc41bf..52ee6bec6e 100644 --- a/crates/kilt-dip-primitives/src/verifier/parachain/v0/mock.rs +++ b/crates/kilt-dip-primitives/src/verifier/parachain/v0/mock.rs @@ -84,6 +84,11 @@ impl frame_system::Config for TestRuntime { type SS58Prefix = ConstU16<1>; type SystemWeightInfo = (); type Version = (); + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } parameter_types! { @@ -227,7 +232,7 @@ pub(crate) fn cross_chain_proof_with_authentication_key_and_web3_name() -> Parac id: hex!("a99e99fc7ce5529bc72a0846778d0f62137ddcbab51a1af2d3e91752962d91b4").into(), relationship: DidVerificationKeyRelationship::Authentication.into(), details: DidPublicKeyDetails { - key: DidVerificationKey::Sr25519(sr25519::Public(hex!("9cf53cf19360e5cac6055254c77d91a79701381c47e03e17c3284aa85edc851e"))).into(), + key: DidVerificationKey::Sr25519(sr25519::Public::from_raw(hex!("9cf53cf19360e5cac6055254c77d91a79701381c47e03e17c3284aa85edc851e"))).into(), block_number: 144 } }.into(), @@ -235,7 +240,7 @@ pub(crate) fn cross_chain_proof_with_authentication_key_and_web3_name() -> Parac web3_name: b"9f61d55037c5886b03966c9".to_vec().try_into().unwrap(), claimed_at: 144 }.into() - ] }, signature: TimeBoundDidSignature::new(did::DidSignature::Sr25519(sr25519::Signature(hex!("3cd5e72f04d248e5155bfdabb94c308a88368db63a8a0cafc15fb3204a709b07da028cf85bd450d9a2bdb6679f2b07ac69188101185ab3acd9f41419cbfb3c81"))), SIGNATURE_VALID_UNTIL) } + ] }, signature: TimeBoundDidSignature::new(did::DidSignature::Sr25519(sr25519::Signature::from_raw(hex!("3cd5e72f04d248e5155bfdabb94c308a88368db63a8a0cafc15fb3204a709b07da028cf85bd450d9a2bdb6679f2b07ac69188101185ab3acd9f41419cbfb3c81"))), SIGNATURE_VALID_UNTIL) } } // Aliases requires because the pallet does not expose anything public. diff --git a/dip-template/nodes/dip-consumer/src/chain_spec.rs b/dip-template/nodes/dip-consumer/src/chain_spec.rs index cdb58e7c11..ac019d2c50 100644 --- a/dip-template/nodes/dip-consumer/src/chain_spec.rs +++ b/dip-template/nodes/dip-consumer/src/chain_spec.rs @@ -34,7 +34,7 @@ use sp_runtime::traits::{IdentifyAccount, Verify}; const PARA_ID: u32 = 2_001; -pub type ChainSpec = GenericChainSpec; +pub type ChainSpec = GenericChainSpec; type AccountPublic = ::Signer; pub(crate) fn get_from_seed(seed: &str) -> ::Public { @@ -97,6 +97,7 @@ fn testnet_genesis( .into_iter() .map(|(acc, aura)| (acc.clone(), acc, template_session_keys(aura))) .collect(), + ..Default::default() }, ..Default::default() } diff --git a/dip-template/nodes/dip-consumer/src/cli.rs b/dip-template/nodes/dip-consumer/src/cli.rs index 5be54426de..3459b4bd0c 100644 --- a/dip-template/nodes/dip-consumer/src/cli.rs +++ b/dip-template/nodes/dip-consumer/src/cli.rs @@ -79,7 +79,10 @@ pub struct RelayChainCli { } impl RelayChainCli { - pub fn new<'a>(para_config: &Configuration, relay_chain_args: impl Iterator) -> Self { + pub fn new<'a, I>(para_config: &Configuration, relay_chain_args: I) -> Self + where + I: Iterator, + { let extension = Extensions::try_get(&*para_config.chain_spec); let chain_id = extension.map(|e| e.relay_chain.clone()); let base_path = Some(para_config.base_path.path().join("polkadot")); diff --git a/dip-template/nodes/dip-consumer/src/command.rs b/dip-template/nodes/dip-consumer/src/command.rs index f1d0da8991..c4ad8e9d7c 100644 --- a/dip-template/nodes/dip-consumer/src/command.rs +++ b/dip-template/nodes/dip-consumer/src/command.rs @@ -16,19 +16,19 @@ // If you feel like getting in touch with us, you can do so at -use std::{fs::create_dir_all, iter::once, net::SocketAddr}; +use std::{fs::create_dir_all, iter::once}; use cumulus_primitives_core::ParaId; use dip_consumer_runtime_template::Block; use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE}; use log::info; use sc_cli::{ - ChainSpec, CliConfiguration, DefaultConfigurationValues, ImportParams, KeystoreParams, LoggerBuilder, - NetworkParams, Result, SharedParams, SubstrateCli, + ChainSpec, CliConfiguration, DefaultConfigurationValues, ImportParams, KeystoreParams, NetworkParams, Result, + SharedParams, SubstrateCli, }; use sc_service::{ config::{BasePath, PrometheusConfig}, - Configuration, Role, RpcMethods, TransactionPoolOptions, + Role, RpcMethods, TransactionPoolOptions, }; use sc_sysinfo::gather_hwbench; use sc_telemetry::TelemetryEndpoints; @@ -196,7 +196,9 @@ pub fn run() -> Result<()> { match cmd { BenchmarkCmd::Pallet(cmd) => { if cfg!(feature = "runtime-benchmarks") { - runner.sync_run(|config| cmd.run::(config)) + runner.sync_run(|config| { + cmd.run_with_spec::, ()>(Some(config.chain_spec)) + }) } else { Err("Benchmarking wasn't enabled when building the node. \ You can enable it with `--features runtime-benchmarks`." @@ -235,7 +237,7 @@ pub fn run() -> Result<()> { let hwbench = (!cli.no_hardware_benchmarks) .then_some(config.database.path().map(|database_path| { let _ = create_dir_all(database_path); - gather_hwbench(Some(database_path)) + gather_hwbench(Some(database_path), &SUBSTRATE_REFERENCE_HARDWARE) })) .flatten(); @@ -310,7 +312,7 @@ impl CliConfiguration for RelayChainCli { .or_else(|| self.base_path.clone().map(Into::into))) } - fn rpc_addr(&self, default_listen_port: u16) -> Result> { + fn rpc_addr(&self, default_listen_port: u16) -> Result>> { self.base.base.rpc_addr(default_listen_port) } @@ -322,16 +324,7 @@ impl CliConfiguration for RelayChainCli { self.base.base.prometheus_config(default_listen_port, chain_spec) } - fn init( - &self, - _support_url: &String, - _impl_version: &String, - _logger_hook: F, - _config: &Configuration, - ) -> Result<()> - where - F: FnOnce(&mut LoggerBuilder, &Configuration), - { + fn init(&self, _support_url: &String, _impl_version: &String, _logger_hook: F) -> Result<()> { unreachable!("PolkadotCli is never initialized; qed"); } diff --git a/dip-template/nodes/dip-consumer/src/rpc.rs b/dip-template/nodes/dip-consumer/src/rpc.rs index 16b499c62c..6a21bc8b8d 100644 --- a/dip-template/nodes/dip-consumer/src/rpc.rs +++ b/dip-template/nodes/dip-consumer/src/rpc.rs @@ -18,7 +18,6 @@ #![warn(missing_docs)] -pub use sc_rpc_api::DenyUnsafe; use substrate_frame_rpc_system::AccountNonceApi; use std::{error::Error, sync::Arc}; @@ -37,7 +36,6 @@ pub type RpcExtension = RpcModule<()>; pub struct FullDeps { pub client: Arc, pub pool: Arc

, - pub deny_unsafe: DenyUnsafe, } pub fn create_full(deps: FullDeps) -> Result> @@ -57,13 +55,9 @@ where use substrate_frame_rpc_system::{System, SystemApiServer}; let mut module = RpcExtension::new(()); - let FullDeps { - client, - pool, - deny_unsafe, - } = deps; + let FullDeps { client, pool } = deps; - module.merge(System::new(Arc::clone(&client), pool, deny_unsafe).into_rpc())?; + module.merge(System::new(Arc::clone(&client), pool).into_rpc())?; module.merge(TransactionPayment::new(client).into_rpc())?; Ok(module) } diff --git a/dip-template/nodes/dip-consumer/src/service.rs b/dip-template/nodes/dip-consumer/src/service.rs index fdb9291009..8e58152070 100644 --- a/dip-template/nodes/dip-consumer/src/service.rs +++ b/dip-template/nodes/dip-consumer/src/service.rs @@ -37,6 +37,7 @@ use frame_benchmarking::benchmarking::HostFunctions; use frame_benchmarking_cli::SUBSTRATE_REFERENCE_HARDWARE; use sc_client_api::Backend; use sc_consensus::{DefaultImportQueue, ImportQueue}; +#[allow(deprecated)] use sc_executor::NativeElseWasmExecutor; use sc_network::NetworkBlock; use sc_network_sync::SyncingService; @@ -67,6 +68,7 @@ impl sc_executor::NativeExecutionDispatch for ParachainNativeExecutor { } } +#[allow(deprecated)] type ParachainExecutor = NativeElseWasmExecutor; type ParachainClient = TFullClient; type ParachainBackend = TFullBackend; @@ -97,6 +99,7 @@ pub fn new_partial( }) .transpose()?; + #[allow(deprecated)] let executor = sc_service::new_native_or_wasm_executor(config); let (client, backend, keystore_container, task_manager) = new_full_parts::( @@ -175,7 +178,10 @@ async fn start_node_impl( let prometheus_registry = parachain_config.prometheus_registry().cloned(); let transaction_pool = Arc::clone(¶ms.transaction_pool); let import_queue_service = params.import_queue.service(); - let net_config = sc_network::config::FullNetworkConfiguration::new(¶chain_config.network); + let net_config = sc_network::config::FullNetworkConfiguration::<_, _, sc_network::NetworkWorker>::new( + ¶chain_config.network, + prometheus_registry.clone(), + ); let (network, system_rpc_tx, tx_handler_controller, start_network, sync_service) = build_network(BuildNetworkParams { @@ -194,22 +200,23 @@ async fn start_node_impl( if parachain_config.offchain_worker.enabled { use futures::FutureExt; + let offchain_workers = sc_offchain::OffchainWorkers::new(sc_offchain::OffchainWorkerOptions { + runtime_api_provider: Arc::clone(&client), + keystore: Some(params.keystore_container.keystore()), + offchain_db: backend.offchain_storage(), + transaction_pool: Some(OffchainTransactionPoolFactory::new(Arc::clone(&transaction_pool))), + network_provider: Arc::new(Arc::clone(&network)), + is_validator: parachain_config.role.is_authority(), + enable_http_requests: false, + custom_extensions: move |_| vec![], + }); + task_manager.spawn_handle().spawn( "offchain-workers-runner", "offchain-work", - sc_offchain::OffchainWorkers::new(sc_offchain::OffchainWorkerOptions { - runtime_api_provider: Arc::clone(&client), - keystore: Some(params.keystore_container.keystore()), - offchain_db: backend.offchain_storage(), - transaction_pool: Some(OffchainTransactionPoolFactory::new(Arc::clone(&transaction_pool))), - #[allow(clippy::clone_on_ref_ptr)] - network_provider: network.clone(), - is_validator: parachain_config.role.is_authority(), - enable_http_requests: false, - custom_extensions: move |_| vec![], - }) - .run(Arc::clone(&client), task_manager.spawn_handle()) - .boxed(), + offchain_workers + .run(Arc::clone(&client), task_manager.spawn_handle()) + .boxed(), ); } @@ -217,11 +224,10 @@ async fn start_node_impl( let client = Arc::clone(&client); let transaction_pool = Arc::clone(&transaction_pool); - Box::new(move |deny_unsafe, _| { + Box::new(move |_| { let deps = FullDeps { client: Arc::clone(&client), pool: Arc::clone(&transaction_pool), - deny_unsafe, }; create_full(deps).map_err(Into::into) @@ -245,7 +251,7 @@ async fn start_node_impl( if let Some(hwbench) = hwbench { print_hwbench(&hwbench); - match SUBSTRATE_REFERENCE_HARDWARE.check_hardware(&hwbench) { + match SUBSTRATE_REFERENCE_HARDWARE.check_hardware(&hwbench, false) { Err(err) if validator => { log::warn!( "⚠️ The hardware does not meet the minimal requirements {} for role 'Authority'.", @@ -357,7 +363,7 @@ fn start_consensus( task_manager: &TaskManager, relay_chain_interface: Arc, transaction_pool: Arc>, - sync_oracle: Arc>, + _sync_oracle: Arc>, keystore: KeystorePtr, relay_chain_slot_duration: Duration, para_id: ParaId, @@ -367,8 +373,6 @@ fn start_consensus( ) -> Result<(), sc_service::Error> { use cumulus_client_consensus_aura::collators::lookahead::{self as aura, Params as AuraParams}; - let slot_duration = cumulus_client_consensus_aura::slot_duration(&*client)?; - let proposer_factory = sc_basic_authorship::ProposerFactory::with_proof_recording( task_manager.spawn_handle(), Arc::clone(&client), @@ -393,12 +397,10 @@ fn start_consensus( para_backend: backend, relay_client: relay_chain_interface, code_hash_provider: move |block_hash| client.code_at(block_hash).ok().map(|c| ValidationCode::from(c).hash()), - sync_oracle, keystore, collator_key, para_id, overseer_handle, - slot_duration, relay_chain_slot_duration, proposer, collator_service, @@ -406,7 +408,7 @@ fn start_consensus( reinitialize: false, }; - let fut = aura::run::(params); + let fut = aura::run::(params); task_manager.spawn_essential_handle().spawn("aura", None, fut); Ok(()) diff --git a/dip-template/nodes/dip-provider/src/chain_spec.rs b/dip-template/nodes/dip-provider/src/chain_spec.rs index c9cb2192ea..685f146cba 100644 --- a/dip-template/nodes/dip-provider/src/chain_spec.rs +++ b/dip-template/nodes/dip-provider/src/chain_spec.rs @@ -34,7 +34,7 @@ use sp_runtime::traits::{IdentifyAccount, Verify}; const PARA_ID: u32 = 2_000; -pub type ChainSpec = GenericChainSpec; +pub type ChainSpec = GenericChainSpec; type AccountPublic = ::Signer; pub(crate) fn get_from_seed(seed: &str) -> ::Public { @@ -97,6 +97,7 @@ fn testnet_genesis( .into_iter() .map(|(acc, aura)| (acc.clone(), acc, template_session_keys(aura))) .collect(), + ..Default::default() }, ..Default::default() } diff --git a/dip-template/nodes/dip-provider/src/cli.rs b/dip-template/nodes/dip-provider/src/cli.rs index 5be54426de..3459b4bd0c 100644 --- a/dip-template/nodes/dip-provider/src/cli.rs +++ b/dip-template/nodes/dip-provider/src/cli.rs @@ -79,7 +79,10 @@ pub struct RelayChainCli { } impl RelayChainCli { - pub fn new<'a>(para_config: &Configuration, relay_chain_args: impl Iterator) -> Self { + pub fn new<'a, I>(para_config: &Configuration, relay_chain_args: I) -> Self + where + I: Iterator, + { let extension = Extensions::try_get(&*para_config.chain_spec); let chain_id = extension.map(|e| e.relay_chain.clone()); let base_path = Some(para_config.base_path.path().join("polkadot")); diff --git a/dip-template/nodes/dip-provider/src/command.rs b/dip-template/nodes/dip-provider/src/command.rs index c48a8fba53..9ba442716d 100644 --- a/dip-template/nodes/dip-provider/src/command.rs +++ b/dip-template/nodes/dip-provider/src/command.rs @@ -16,19 +16,19 @@ // If you feel like getting in touch with us, you can do so at -use std::{fs::create_dir_all, iter::once, net::SocketAddr}; +use std::{fs::create_dir_all, iter::once}; use cumulus_primitives_core::ParaId; use dip_provider_runtime_template::Block; use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE}; use log::info; use sc_cli::{ - ChainSpec, CliConfiguration, DefaultConfigurationValues, ImportParams, KeystoreParams, LoggerBuilder, - NetworkParams, Result, SharedParams, SubstrateCli, + ChainSpec, CliConfiguration, DefaultConfigurationValues, ImportParams, KeystoreParams, NetworkParams, Result, + SharedParams, SubstrateCli, }; use sc_service::{ config::{BasePath, PrometheusConfig}, - Configuration, Role, RpcMethods, TransactionPoolOptions, + Role, RpcMethods, TransactionPoolOptions, }; use sc_sysinfo::gather_hwbench; use sc_telemetry::TelemetryEndpoints; @@ -196,7 +196,9 @@ pub fn run() -> Result<()> { match cmd { BenchmarkCmd::Pallet(cmd) => { if cfg!(feature = "runtime-benchmarks") { - runner.sync_run(|config| cmd.run::(config)) + runner.sync_run(|config| { + cmd.run_with_spec::, ()>(Some(config.chain_spec)) + }) } else { Err("Benchmarking wasn't enabled when building the node. \ You can enable it with `--features runtime-benchmarks`." @@ -235,7 +237,7 @@ pub fn run() -> Result<()> { let hwbench = (!cli.no_hardware_benchmarks) .then_some(config.database.path().map(|database_path| { let _ = create_dir_all(database_path); - gather_hwbench(Some(database_path)) + gather_hwbench(Some(database_path), &SUBSTRATE_REFERENCE_HARDWARE) })) .flatten(); @@ -310,7 +312,7 @@ impl CliConfiguration for RelayChainCli { .or_else(|| self.base_path.clone().map(Into::into))) } - fn rpc_addr(&self, default_listen_port: u16) -> Result> { + fn rpc_addr(&self, default_listen_port: u16) -> Result>> { self.base.base.rpc_addr(default_listen_port) } @@ -322,16 +324,7 @@ impl CliConfiguration for RelayChainCli { self.base.base.prometheus_config(default_listen_port, chain_spec) } - fn init( - &self, - _support_url: &String, - _impl_version: &String, - _logger_hook: F, - _config: &Configuration, - ) -> Result<()> - where - F: FnOnce(&mut LoggerBuilder, &Configuration), - { + fn init(&self, _support_url: &String, _impl_version: &String, _logger_hook: F) -> Result<()> { unreachable!("PolkadotCli is never initialized; qed"); } diff --git a/dip-template/nodes/dip-provider/src/rpc.rs b/dip-template/nodes/dip-provider/src/rpc.rs index 9c6c6b4a40..7c6b825dc3 100644 --- a/dip-template/nodes/dip-provider/src/rpc.rs +++ b/dip-template/nodes/dip-provider/src/rpc.rs @@ -18,7 +18,6 @@ #![warn(missing_docs)] -pub use sc_rpc_api::DenyUnsafe; use substrate_frame_rpc_system::AccountNonceApi; use std::{error::Error, sync::Arc}; @@ -37,7 +36,6 @@ pub type RpcExtension = RpcModule<()>; pub struct FullDeps { pub client: Arc, pub pool: Arc

, - pub deny_unsafe: DenyUnsafe, } pub fn create_full(deps: FullDeps) -> Result> @@ -57,13 +55,9 @@ where use substrate_frame_rpc_system::{System, SystemApiServer}; let mut module = RpcExtension::new(()); - let FullDeps { - client, - pool, - deny_unsafe, - } = deps; + let FullDeps { client, pool } = deps; - module.merge(System::new(Arc::clone(&client), pool, deny_unsafe).into_rpc())?; + module.merge(System::new(Arc::clone(&client), pool).into_rpc())?; module.merge(TransactionPayment::new(client).into_rpc())?; Ok(module) } diff --git a/dip-template/nodes/dip-provider/src/service.rs b/dip-template/nodes/dip-provider/src/service.rs index 81c7d6bd0b..7b9731af43 100644 --- a/dip-template/nodes/dip-provider/src/service.rs +++ b/dip-template/nodes/dip-provider/src/service.rs @@ -37,6 +37,7 @@ use frame_benchmarking::benchmarking::HostFunctions; use frame_benchmarking_cli::SUBSTRATE_REFERENCE_HARDWARE; use sc_client_api::Backend; use sc_consensus::{DefaultImportQueue, ImportQueue}; +#[allow(deprecated)] use sc_executor::NativeElseWasmExecutor; use sc_network::NetworkBlock; use sc_network_sync::SyncingService; @@ -67,6 +68,7 @@ impl sc_executor::NativeExecutionDispatch for ParachainNativeExecutor { } } +#[allow(deprecated)] type ParachainExecutor = NativeElseWasmExecutor; type ParachainClient = TFullClient; type ParachainBackend = TFullBackend; @@ -97,6 +99,7 @@ pub fn new_partial( }) .transpose()?; + #[allow(deprecated)] let executor = sc_service::new_native_or_wasm_executor(config); let (client, backend, keystore_container, task_manager) = new_full_parts::( @@ -175,7 +178,10 @@ async fn start_node_impl( let prometheus_registry = parachain_config.prometheus_registry().cloned(); let transaction_pool = Arc::clone(¶ms.transaction_pool); let import_queue_service = params.import_queue.service(); - let net_config = sc_network::config::FullNetworkConfiguration::new(¶chain_config.network); + let net_config = sc_network::config::FullNetworkConfiguration::<_, _, sc_network::NetworkWorker>::new( + ¶chain_config.network, + prometheus_registry.clone(), + ); let (network, system_rpc_tx, tx_handler_controller, start_network, sync_service) = build_network(BuildNetworkParams { @@ -194,22 +200,23 @@ async fn start_node_impl( if parachain_config.offchain_worker.enabled { use futures::FutureExt; + let offchain_workers = sc_offchain::OffchainWorkers::new(sc_offchain::OffchainWorkerOptions { + runtime_api_provider: Arc::clone(&client), + keystore: Some(params.keystore_container.keystore()), + offchain_db: backend.offchain_storage(), + transaction_pool: Some(OffchainTransactionPoolFactory::new(Arc::clone(&transaction_pool))), + network_provider: Arc::new(Arc::clone(&network)), + is_validator: parachain_config.role.is_authority(), + enable_http_requests: false, + custom_extensions: move |_| vec![], + }); + task_manager.spawn_handle().spawn( "offchain-workers-runner", "offchain-work", - sc_offchain::OffchainWorkers::new(sc_offchain::OffchainWorkerOptions { - runtime_api_provider: Arc::clone(&client), - keystore: Some(params.keystore_container.keystore()), - offchain_db: backend.offchain_storage(), - transaction_pool: Some(OffchainTransactionPoolFactory::new(Arc::clone(&transaction_pool))), - #[allow(clippy::clone_on_ref_ptr)] - network_provider: network.clone(), - is_validator: parachain_config.role.is_authority(), - enable_http_requests: false, - custom_extensions: move |_| vec![], - }) - .run(Arc::clone(&client), task_manager.spawn_handle()) - .boxed(), + offchain_workers + .run(Arc::clone(&client), task_manager.spawn_handle()) + .boxed(), ); } @@ -217,11 +224,10 @@ async fn start_node_impl( let client = Arc::clone(&client); let transaction_pool = Arc::clone(&transaction_pool); - Box::new(move |deny_unsafe, _| { + Box::new(move |_| { let deps = FullDeps { client: Arc::clone(&client), pool: Arc::clone(&transaction_pool), - deny_unsafe, }; create_full(deps).map_err(Into::into) @@ -245,7 +251,7 @@ async fn start_node_impl( if let Some(hwbench) = hwbench { print_hwbench(&hwbench); - match SUBSTRATE_REFERENCE_HARDWARE.check_hardware(&hwbench) { + match SUBSTRATE_REFERENCE_HARDWARE.check_hardware(&hwbench, false) { Err(err) if validator => { log::warn!( "⚠️ The hardware does not meet the minimal requirements {} for role 'Authority'.", @@ -357,7 +363,7 @@ fn start_consensus( task_manager: &TaskManager, relay_chain_interface: Arc, transaction_pool: Arc>, - sync_oracle: Arc>, + _sync_oracle: Arc>, keystore: KeystorePtr, relay_chain_slot_duration: Duration, para_id: ParaId, @@ -367,8 +373,6 @@ fn start_consensus( ) -> Result<(), sc_service::Error> { use cumulus_client_consensus_aura::collators::lookahead::{self as aura, Params as AuraParams}; - let slot_duration = cumulus_client_consensus_aura::slot_duration(&*client)?; - let proposer_factory = sc_basic_authorship::ProposerFactory::with_proof_recording( task_manager.spawn_handle(), Arc::clone(&client), @@ -393,12 +397,10 @@ fn start_consensus( para_backend: backend, relay_client: relay_chain_interface, code_hash_provider: move |block_hash| client.code_at(block_hash).ok().map(|c| ValidationCode::from(c).hash()), - sync_oracle, keystore, collator_key, para_id, overseer_handle, - slot_duration, relay_chain_slot_duration, proposer, collator_service, @@ -406,7 +408,7 @@ fn start_consensus( reinitialize: false, }; - let fut = aura::run::(params); + let fut = aura::run::(params); task_manager.spawn_essential_handle().spawn("aura", None, fut); Ok(()) diff --git a/dip-template/pallets/pallet-postit/src/lib.rs b/dip-template/pallets/pallet-postit/src/lib.rs index 0b38604bde..aa6705c8ed 100644 --- a/dip-template/pallets/pallet-postit/src/lib.rs +++ b/dip-template/pallets/pallet-postit/src/lib.rs @@ -35,6 +35,8 @@ pub use pallet::*; // very end of the development cycle of a pallet, and from time to time it should be commented out to catch any issues // other than the one generated by the `pallet::event` macro. #[allow(clippy::shadow_reuse)] +// map_err is used over inspect_err in the macro-generated code, and we have to ignore it. +#[allow(clippy::manual_inspect)] pub mod pallet { use super::*; diff --git a/dip-template/runtimes/dip-consumer/Cargo.toml b/dip-template/runtimes/dip-consumer/Cargo.toml index c474da6ecc..bd68b8f5c7 100644 --- a/dip-template/runtimes/dip-consumer/Cargo.toml +++ b/dip-template/runtimes/dip-consumer/Cargo.toml @@ -58,7 +58,7 @@ sp-weights = { workspace = true } # Cumulus cumulus-pallet-aura-ext = { workspace = true } -cumulus-pallet-parachain-system = { workspace = true, features = ["parameterized-consensus-hook"] } +cumulus-pallet-parachain-system = { workspace = true } cumulus-primitives-aura = { workspace = true } cumulus-primitives-core = { workspace = true } cumulus-primitives-timestamp = { workspace = true } diff --git a/dip-template/runtimes/dip-consumer/src/dip.rs b/dip-template/runtimes/dip-consumer/src/dip.rs index 3510332b49..4d323836b2 100644 --- a/dip-template/runtimes/dip-consumer/src/dip.rs +++ b/dip-template/runtimes/dip-consumer/src/dip.rs @@ -189,7 +189,7 @@ mod get_worst_case_impl { id: hex!("78e54fc7807f8c1cbd6e3dac9f3291096e7a2d8ab879934edb402f320a3d46a0").into(), relationship: DidVerificationKeyRelationship::Authentication.into(), details: DidPublicKeyDetails { - key: DidVerificationKey::Sr25519(sr25519::Public(hex!( + key: DidVerificationKey::Sr25519(sr25519::Public::from_raw(hex!( "e68a94309d0adee950b6a63a0a141a3166c15e8ef25c301531f75e25086fe05a" ))) .into(), @@ -405,7 +405,7 @@ mod get_worst_case_impl { id: hex!("106e6b1fa2d0ac6b81387fce6eb985b760f70a43a6d8e0c3f9e78c8a9d9e548e").into(), relationship: DidVerificationKeyRelationship::CapabilityDelegation.into(), details: DidPublicKeyDetails { - key: DidVerificationKey::Ed25519(ed25519::Public(hex!( + key: DidVerificationKey::Ed25519(ed25519::Public::from_raw(hex!( "39985b639d8d21629190f2a310b0e2b935894a6261e45ba58f0fbf2bd6c0c832" ))) .into(), @@ -417,7 +417,7 @@ mod get_worst_case_impl { id: hex!("5e14c0826d524d79a17cb5bc5fd61f9b2d364c9af73a5db87408f389e83afcdf").into(), relationship: DidVerificationKeyRelationship::AssertionMethod.into(), details: DidPublicKeyDetails { - key: DidVerificationKey::Ed25519(ed25519::Public(hex!( + key: DidVerificationKey::Ed25519(ed25519::Public::from_raw(hex!( "6c89991144954da6d916f88e59ce0c52bc2dcea2e7edd065e750234ebbb8d8eb" ))) .into(), @@ -482,7 +482,7 @@ mod get_worst_case_impl { .into(), ], ); - let signature = TimeBoundDidSignature::new(DidSignature::Sr25519(sr25519::Signature(hex!("1ca20d39357dba602862e6b6371887c6b1ec46c86ead3c92178cca814e3ff45f7fd6a58395d422b53b6e1d1ab7be5944dbc2c6e640ecfac67c02a218607cc881"))), 282 as BlockNumberFor); + let signature = TimeBoundDidSignature::new(DidSignature::Sr25519(sr25519::Signature::from_raw(hex!("1ca20d39357dba602862e6b6371887c6b1ec46c86ead3c92178cca814e3ff45f7fd6a58395d422b53b6e1d1ab7be5944dbc2c6e640ecfac67c02a218607cc881"))), 282 as BlockNumberFor); let proof = ParachainDipDidProof::new(provider_head_state_proof, dip_commitment_proof, dip_proof, signature); diff --git a/dip-template/runtimes/dip-consumer/src/lib.rs b/dip-template/runtimes/dip-consumer/src/lib.rs index a52629a1bd..19a7108031 100644 --- a/dip-template/runtimes/dip-consumer/src/lib.rs +++ b/dip-template/runtimes/dip-consumer/src/lib.rs @@ -44,7 +44,7 @@ use cumulus_primitives_core::{AggregateMessageOrigin, CollationInfo}; use frame_support::{ construct_runtime, dispatch::DispatchClass, - genesis_builder_helper::{build_config, create_default_config}, + genesis_builder_helper::{build_state, get_preset}, parameter_types, traits::{ConstU32, ConstU64, ConstU8, EnqueueWithOrigin, Everything}, weights::{ @@ -64,6 +64,7 @@ use pallet_transaction_payment::{FeeDetails, FungibleAdapter, RuntimeDispatchInf use sp_api::impl_runtime_apis; use sp_consensus_aura::SlotDuration; use sp_core::{crypto::KeyTypeId, ConstBool, ConstU128, ConstU16, OpaqueMetadata}; +use sp_genesis_builder::PresetId; use sp_inherents::{CheckInherentsResult, InherentData}; use sp_runtime::{ create_runtime_str, generic, impl_opaque_keys, @@ -231,6 +232,11 @@ impl frame_system::Config for Runtime { type SS58Prefix = ConstU16; type SystemWeightInfo = weights::frame_system::WeightInfo; type Version = Version; + type MultiBlockMigrator = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); + type SingleBlockMigrations = (); } /// Maximum number of blocks simultaneously accepted by the Runtime, not yet @@ -369,6 +375,7 @@ impl pallet_aura::Config for Runtime { type AuthorityId = AuraId; type DisabledValidators = (); type MaxAuthorities = ConstU32<100_000>; + type SlotDuration = ConstU64; } impl cumulus_pallet_aura_ext::Config for Runtime {} @@ -407,7 +414,7 @@ impl_runtime_apis! { } fn authorities() -> Vec { - Aura::authorities().into_inner() + pallet_aura::Authorities::::get().into_inner() } } @@ -420,7 +427,7 @@ impl_runtime_apis! { Executive::execute_block(block) } - fn initialize_block(header: &::Header) { + fn initialize_block(header: &::Header) -> sp_runtime::ExtrinsicInclusionMode { Executive::initialize_block(header) } } @@ -545,13 +552,16 @@ impl_runtime_apis! { } impl sp_genesis_builder::GenesisBuilder for Runtime { + fn build_state(config: Vec) -> sp_genesis_builder::Result { + build_state::(config) + } - fn create_default_config() -> Vec { - create_default_config::() + fn get_preset(id: &Option) -> Option> { + get_preset::(id, |_| None) } - fn build_config(config: Vec) -> sp_genesis_builder::Result { - build_config::(config) + fn preset_names() -> Vec { + Default::default() } } diff --git a/dip-template/runtimes/dip-provider/Cargo.toml b/dip-template/runtimes/dip-provider/Cargo.toml index 8b0181b68b..018dd86617 100644 --- a/dip-template/runtimes/dip-provider/Cargo.toml +++ b/dip-template/runtimes/dip-provider/Cargo.toml @@ -58,7 +58,7 @@ sp-weights = { workspace = true } # Cumulus cumulus-pallet-aura-ext = { workspace = true } -cumulus-pallet-parachain-system = { workspace = true, features = ["parameterized-consensus-hook"] } +cumulus-pallet-parachain-system = { workspace = true } cumulus-primitives-aura = { workspace = true } cumulus-primitives-core = { workspace = true } cumulus-primitives-timestamp = { workspace = true } diff --git a/dip-template/runtimes/dip-provider/src/lib.rs b/dip-template/runtimes/dip-provider/src/lib.rs index dcda6df7da..adbc60e9f4 100644 --- a/dip-template/runtimes/dip-provider/src/lib.rs +++ b/dip-template/runtimes/dip-provider/src/lib.rs @@ -43,7 +43,7 @@ use did::{DidRawOrigin, EnsureDidOrigin}; use frame_support::{ construct_runtime, dispatch::DispatchClass, - genesis_builder_helper::{build_config, create_default_config}, + genesis_builder_helper::{build_state, get_preset}, parameter_types, traits::{ConstU32, ConstU64, ConstU8, EnqueueWithOrigin, Everything}, weights::{ @@ -65,6 +65,7 @@ use runtime_common::dip::merkle::{CompleteMerkleProof, DidMerkleProofOf, DidMerk use sp_api::impl_runtime_apis; use sp_consensus_aura::SlotDuration; use sp_core::{crypto::KeyTypeId, ConstBool, ConstU128, ConstU16, OpaqueMetadata}; +use sp_genesis_builder::PresetId; use sp_inherents::{CheckInherentsResult, InherentData}; use sp_runtime::{ create_runtime_str, generic, impl_opaque_keys, @@ -232,6 +233,11 @@ impl frame_system::Config for Runtime { type SS58Prefix = ConstU16; type SystemWeightInfo = weights::frame_system::WeightInfo; type Version = Version; + type MultiBlockMigrator = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); + type SingleBlockMigrations = (); } /// Maximum number of blocks simultaneously accepted by the Runtime, not yet @@ -370,6 +376,7 @@ impl pallet_aura::Config for Runtime { type AuthorityId = AuraId; type DisabledValidators = (); type MaxAuthorities = ConstU32<100_000>; + type SlotDuration = ConstU64; } impl cumulus_pallet_aura_ext::Config for Runtime {} @@ -489,7 +496,7 @@ impl_runtime_apis! { } fn authorities() -> Vec { - Aura::authorities().into_inner() + pallet_aura::Authorities::::get().into_inner() } } @@ -502,7 +509,7 @@ impl_runtime_apis! { Executive::execute_block(block) } - fn initialize_block(header: &::Header) { + fn initialize_block(header: &::Header) -> sp_runtime::ExtrinsicInclusionMode { Executive::initialize_block(header) } } @@ -776,15 +783,17 @@ impl_runtime_apis! { DidMerkleRootGenerator::::generate_proof(&identity_details, request.version, request.keys.iter(), request.should_include_web3_name, request.accounts.iter()).map_err(runtime_api::DipProofError::MerkleProof) } } - impl sp_genesis_builder::GenesisBuilder for Runtime { + fn build_state(config: Vec) -> sp_genesis_builder::Result { + build_state::(config) + } - fn create_default_config() -> Vec { - create_default_config::() + fn get_preset(id: &Option) -> Option> { + get_preset::(id, |_| None) } - fn build_config(config: Vec) -> sp_genesis_builder::Result { - build_config::(config) + fn preset_names() -> Vec { + Default::default() } } diff --git a/integration-tests/emulated/src/mock/para_chains.rs b/integration-tests/emulated/src/mock/para_chains.rs index 6d40c7a690..5ba467512a 100644 --- a/integration-tests/emulated/src/mock/para_chains.rs +++ b/integration-tests/emulated/src/mock/para_chains.rs @@ -51,6 +51,7 @@ pub mod spiritnet { )) .map(|(acc, key)| (acc.clone(), acc.clone(), SessionKeys { aura: key.clone() })) .collect::>(), + ..Default::default() }, balances: BalancesConfig { balances: accounts::init_balances() @@ -92,6 +93,7 @@ pub mod peregrine { )) .map(|(acc, key)| (acc.clone(), acc.clone(), SessionKeys { aura: key.clone() })) .collect::>(), + ..Default::default() }, balances: BalancesConfig { balances: accounts::init_balances() diff --git a/integration-tests/emulated/src/tests/peregrine/unpaid_execution.rs b/integration-tests/emulated/src/tests/peregrine/unpaid_execution.rs index a1c723e747..dd48016b05 100644 --- a/integration-tests/emulated/src/tests/peregrine/unpaid_execution.rs +++ b/integration-tests/emulated/src/tests/peregrine/unpaid_execution.rs @@ -79,7 +79,7 @@ fn test_unpaid_execution_from_asset_hub_to_peregrine() { assert_expected_events!( Peregrine, vec![ - PeregrineRuntimeEvent::MessageQueue(pallet_message_queue::Event::ProcessingFailed { .. }) => {}, + PeregrineRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: false, .. }) => {}, ] ); }); diff --git a/integration-tests/emulated/src/tests/spiritnet/unpaid_execution.rs b/integration-tests/emulated/src/tests/spiritnet/unpaid_execution.rs index 2f5e8fd2d0..e1e0bad5fb 100644 --- a/integration-tests/emulated/src/tests/spiritnet/unpaid_execution.rs +++ b/integration-tests/emulated/src/tests/spiritnet/unpaid_execution.rs @@ -80,7 +80,7 @@ fn test_unpaid_execution_to_spiritnet() { assert_expected_events!( Spiritnet, vec![ - SpiritnetRuntimeEvent::MessageQueue(pallet_message_queue::Event::ProcessingFailed { .. }) => {}, + SpiritnetRuntimeEvent::MessageQueue(pallet_message_queue::Event::Processed { success: false, .. }) => {}, ] ); }); diff --git a/nodes/parachain/Cargo.toml b/nodes/parachain/Cargo.toml index 1eb47f74b4..0b1de5687b 100644 --- a/nodes/parachain/Cargo.toml +++ b/nodes/parachain/Cargo.toml @@ -92,8 +92,11 @@ xcm = { workspace = true, features = ["std"] } frame-benchmarking = { workspace = true, features = ["std"] } frame-benchmarking-cli = { workspace = true } -# Runtime tests -try-runtime-cli = { workspace = true, optional = true } +#ISMP +ismp-parachain-inherent = { workspace = true } +ismp-parachain-runtime-api = { workspace = true } +pallet-ismp-rpc = { workspace = true } +pallet-ismp-runtime-api = { workspace = true } [features] default = [] @@ -118,5 +121,4 @@ try-runtime = [ "polkadot-service/try-runtime", "runtime-common/try-runtime", "spiritnet-runtime/try-runtime", - "try-runtime-cli", ] diff --git a/nodes/parachain/src/chain_spec/mod.rs b/nodes/parachain/src/chain_spec/mod.rs index b4c99456be..e9e087f6b5 100644 --- a/nodes/parachain/src/chain_spec/mod.rs +++ b/nodes/parachain/src/chain_spec/mod.rs @@ -34,7 +34,6 @@ pub(crate) mod rilt; pub(crate) mod spiritnet; pub(crate) mod utils; -const KILT_PARA_ID: u32 = 2_086; const RILT_PARA_ID: u32 = 4504; /// The extensions for the `ChainSpec`. diff --git a/nodes/parachain/src/chain_spec/peregrine/dev.rs b/nodes/parachain/src/chain_spec/peregrine/dev.rs index 66cf91ecc6..a3d77f270b 100644 --- a/nodes/parachain/src/chain_spec/peregrine/dev.rs +++ b/nodes/parachain/src/chain_spec/peregrine/dev.rs @@ -19,27 +19,14 @@ //! KILT chain specification use kilt_support::traits::InspectMetadata; -use peregrine_runtime::{ - BalancesConfig, CouncilConfig, MetadataProvider, ParachainInfoConfig, ParachainStakingConfig, PolkadotXcmConfig, - RuntimeGenesisConfig, SessionConfig, SessionKeys, SudoConfig, TechnicalCommitteeConfig, SS_58_PREFIX, WASM_BINARY, -}; -use runtime_common::{ - constants::{kilt_inflation_config, staking::MinCollatorStake, KILT, MAX_COLLATOR_STAKE}, - AccountId, AuthorityId, Balance, -}; +use peregrine_runtime::{genesis_state::KILT_PARA_ID, MetadataProvider, SS_58_PREFIX, WASM_BINARY}; use sc_service::ChainType; -use serde_json::to_value; -use sp_core::sr25519; -use crate::chain_spec::{ - peregrine::{ChainSpec, SAFE_XCM_VERSION}, - utils::{get_account_id_from_secret, get_properties, get_public_key_from_secret}, - Extensions, KILT_PARA_ID, -}; +use crate::chain_spec::{peregrine::ChainSpec, utils::get_properties, Extensions}; pub(crate) fn generate_chain_spec(relaychain_name: &str) -> ChainSpec { let wasm_binary = WASM_BINARY.expect("Development WASM binary not available"); - let genesis_config = to_value(generate_genesis_state()).expect("Creating genesis state failed"); + let genesis_config = peregrine_runtime::genesis_state::development::generate_genesis_state(); let currency_symbol = String::from_utf8(MetadataProvider::symbol()).expect("Creating currency symbol failed"); let denomination = MetadataProvider::decimals(); @@ -61,60 +48,3 @@ pub(crate) fn generate_chain_spec(relaychain_name: &str) -> ChainSpec { .with_genesis_config(genesis_config) .build() } - -fn generate_genesis_state() -> RuntimeGenesisConfig { - let alice = ( - get_account_id_from_secret::("Alice"), - get_public_key_from_secret::("Alice"), - ); - let bob = ( - get_account_id_from_secret::("Bob"), - get_public_key_from_secret::("Bob"), - ); - let endowed_accounts = [ - alice.0.clone(), - bob.0.clone(), - get_account_id_from_secret::("Charlie"), - get_account_id_from_secret::("Dave"), - get_account_id_from_secret::("Eve"), - get_account_id_from_secret::("Ferdie"), - ]; - - RuntimeGenesisConfig { - balances: BalancesConfig { - balances: endowed_accounts.map(|acc| (acc, 10_000_000 * KILT)).to_vec(), - }, - session: SessionConfig { - keys: [alice.clone(), bob.clone()] - .map(|(acc, key)| (acc.clone(), acc, SessionKeys { aura: key })) - .to_vec(), - }, - sudo: SudoConfig { - key: Some(alice.0.clone()), - }, - parachain_info: ParachainInfoConfig { - parachain_id: KILT_PARA_ID.into(), - ..Default::default() - }, - parachain_staking: ParachainStakingConfig { - stakers: [alice.clone(), bob.clone()] - .map(|(acc, _)| -> (AccountId, Option, Balance) { (acc, None, 2 * MinCollatorStake::get()) }) - .to_vec(), - inflation_config: kilt_inflation_config(), - max_candidate_stake: MAX_COLLATOR_STAKE, - }, - council: CouncilConfig { - members: [alice.clone(), bob.clone()].map(|(acc, _)| acc).to_vec(), - phantom: Default::default(), - }, - technical_committee: TechnicalCommitteeConfig { - members: [alice, bob].map(|(acc, _)| acc).to_vec(), - phantom: Default::default(), - }, - polkadot_xcm: PolkadotXcmConfig { - safe_xcm_version: Some(SAFE_XCM_VERSION), - ..Default::default() - }, - ..Default::default() - } -} diff --git a/nodes/parachain/src/chain_spec/peregrine/mod.rs b/nodes/parachain/src/chain_spec/peregrine/mod.rs index f9c37d281e..95459c38e7 100644 --- a/nodes/parachain/src/chain_spec/peregrine/mod.rs +++ b/nodes/parachain/src/chain_spec/peregrine/mod.rs @@ -21,11 +21,8 @@ pub(crate) mod dev; pub(crate) mod new; -const SAFE_XCM_VERSION: u32 = xcm::prelude::XCM_VERSION; - /// Specialized `ChainSpec` for the normal parachain runtime. -pub(crate) type ChainSpec = - sc_service::GenericChainSpec; +pub(crate) type ChainSpec = sc_service::GenericChainSpec; pub(crate) fn load_chain_spec(path: &str) -> Result { ChainSpec::from_json_file(path.into()) diff --git a/nodes/parachain/src/chain_spec/peregrine/new.rs b/nodes/parachain/src/chain_spec/peregrine/new.rs index fde6419fd4..544f4ffe9b 100644 --- a/nodes/parachain/src/chain_spec/peregrine/new.rs +++ b/nodes/parachain/src/chain_spec/peregrine/new.rs @@ -19,21 +19,14 @@ //! KILT chain specification use kilt_support::traits::InspectMetadata; -use peregrine_runtime::{ - MetadataProvider, ParachainInfoConfig, PolkadotXcmConfig, RuntimeGenesisConfig, SS_58_PREFIX, WASM_BINARY, -}; +use peregrine_runtime::{genesis_state::KILT_PARA_ID, MetadataProvider, SS_58_PREFIX, WASM_BINARY}; use sc_service::ChainType; -use serde_json::to_value; -use crate::chain_spec::{ - peregrine::{ChainSpec, SAFE_XCM_VERSION}, - utils::get_properties, - Extensions, KILT_PARA_ID, -}; +use crate::chain_spec::{peregrine::ChainSpec, utils::get_properties, Extensions}; pub(crate) fn generate_chain_spec() -> ChainSpec { let wasm_binary = WASM_BINARY.expect("WASM binary not available"); - let genesis_config = to_value(generate_genesis_state()).expect("Creating genesis state failed"); + let genesis_config = peregrine_runtime::genesis_state::production::generate_genesis_state(); let currency_symbol = String::from_utf8(MetadataProvider::symbol()).expect("Creating currency symbol failed"); let denomination = MetadataProvider::decimals(); @@ -55,17 +48,3 @@ pub(crate) fn generate_chain_spec() -> ChainSpec { .with_genesis_config(genesis_config) .build() } - -fn generate_genesis_state() -> RuntimeGenesisConfig { - RuntimeGenesisConfig { - parachain_info: ParachainInfoConfig { - parachain_id: KILT_PARA_ID.into(), - ..Default::default() - }, - polkadot_xcm: PolkadotXcmConfig { - safe_xcm_version: Some(SAFE_XCM_VERSION), - ..Default::default() - }, - ..Default::default() - } -} diff --git a/nodes/parachain/src/chain_spec/rilt/mod.rs b/nodes/parachain/src/chain_spec/rilt/mod.rs index b7cd755117..5b408fb81e 100644 --- a/nodes/parachain/src/chain_spec/rilt/mod.rs +++ b/nodes/parachain/src/chain_spec/rilt/mod.rs @@ -20,8 +20,5 @@ pub(crate) mod new; -const SAFE_XCM_VERSION: u32 = xcm::prelude::XCM_VERSION; - /// Specialized `ChainSpec` for the normal parachain runtime. -pub(crate) type ChainSpec = - sc_service::GenericChainSpec; +pub(crate) type ChainSpec = sc_service::GenericChainSpec; diff --git a/nodes/parachain/src/chain_spec/rilt/new.rs b/nodes/parachain/src/chain_spec/rilt/new.rs index f3b819fad8..2b218aa337 100644 --- a/nodes/parachain/src/chain_spec/rilt/new.rs +++ b/nodes/parachain/src/chain_spec/rilt/new.rs @@ -18,19 +18,14 @@ //! KILT chain specification -use peregrine_runtime::{ParachainInfoConfig, PolkadotXcmConfig, RuntimeGenesisConfig, WASM_BINARY}; +use peregrine_runtime::WASM_BINARY; use sc_service::ChainType; -use serde_json::to_value; -use crate::chain_spec::{ - rilt::{ChainSpec, SAFE_XCM_VERSION}, - utils::get_properties, - Extensions, RILT_PARA_ID, -}; +use crate::chain_spec::{rilt::ChainSpec, utils::get_properties, Extensions, RILT_PARA_ID}; pub(crate) fn generate_chain_spec() -> ChainSpec { let wasm_binary = WASM_BINARY.expect("WASM binary not available"); - let genesis_state = to_value(generate_genesis_state()).expect("Creating genesis state failed"); + let genesis_state = peregrine_runtime::genesis_state::development::generate_genesis_state(); ChainSpec::builder( wasm_binary, @@ -46,17 +41,3 @@ pub(crate) fn generate_chain_spec() -> ChainSpec { .with_genesis_config(genesis_state) .build() } - -fn generate_genesis_state() -> RuntimeGenesisConfig { - RuntimeGenesisConfig { - parachain_info: ParachainInfoConfig { - parachain_id: RILT_PARA_ID.into(), - ..Default::default() - }, - polkadot_xcm: PolkadotXcmConfig { - safe_xcm_version: Some(SAFE_XCM_VERSION), - ..Default::default() - }, - ..Default::default() - } -} diff --git a/nodes/parachain/src/chain_spec/spiritnet/dev.rs b/nodes/parachain/src/chain_spec/spiritnet/dev.rs index 82b3f012c9..0b6329f26b 100644 --- a/nodes/parachain/src/chain_spec/spiritnet/dev.rs +++ b/nodes/parachain/src/chain_spec/spiritnet/dev.rs @@ -18,27 +18,14 @@ //! KILT chain specification -use runtime_common::{ - constants::{kilt_inflation_config, staking::MinCollatorStake, KILT, MAX_COLLATOR_STAKE}, - AccountId, AuthorityId, Balance, -}; use sc_service::ChainType; -use serde_json::to_value; -use sp_core::sr25519; -use spiritnet_runtime::{ - BalancesConfig, CouncilConfig, ParachainInfoConfig, ParachainStakingConfig, PolkadotXcmConfig, - RuntimeGenesisConfig, SessionConfig, SessionKeys, TechnicalCommitteeConfig, WASM_BINARY, -}; +use spiritnet_runtime::{genesis_state::KILT_PARA_ID, WASM_BINARY}; -use crate::chain_spec::{ - spiritnet::{ChainSpec, SAFE_XCM_VERSION}, - utils::{get_account_id_from_secret, get_properties, get_public_key_from_secret}, - Extensions, KILT_PARA_ID, -}; +use crate::chain_spec::{spiritnet::ChainSpec, utils::get_properties, Extensions}; pub(crate) fn generate_chain_spec(relaychain_name: &str) -> ChainSpec { let wasm_binary = WASM_BINARY.expect("Development WASM binary not available"); - let genesis_state = to_value(generate_genesis_state()).expect("Creating genesis state failed"); + let genesis_state = spiritnet_runtime::genesis_state::development::generate_genesis_state(); ChainSpec::builder( wasm_binary, @@ -54,57 +41,3 @@ pub(crate) fn generate_chain_spec(relaychain_name: &str) -> ChainSpec { .with_genesis_config(genesis_state) .build() } - -fn generate_genesis_state() -> RuntimeGenesisConfig { - let alice = ( - get_account_id_from_secret::("Alice"), - get_public_key_from_secret::("Alice"), - ); - let bob = ( - get_account_id_from_secret::("Bob"), - get_public_key_from_secret::("Bob"), - ); - let endowed_accounts = [ - alice.0.clone(), - bob.0.clone(), - get_account_id_from_secret::("Charlie"), - get_account_id_from_secret::("Dave"), - get_account_id_from_secret::("Eve"), - get_account_id_from_secret::("Ferdie"), - ]; - - RuntimeGenesisConfig { - balances: BalancesConfig { - balances: endowed_accounts.map(|acc| (acc, 10_000_000 * KILT)).to_vec(), - }, - session: SessionConfig { - keys: [alice.clone(), bob.clone()] - .map(|(acc, key)| (acc.clone(), acc, SessionKeys { aura: key })) - .to_vec(), - }, - parachain_info: ParachainInfoConfig { - parachain_id: KILT_PARA_ID.into(), - ..Default::default() - }, - parachain_staking: ParachainStakingConfig { - stakers: [alice.clone(), bob.clone()] - .map(|(acc, _)| -> (AccountId, Option, Balance) { (acc, None, 2 * MinCollatorStake::get()) }) - .to_vec(), - inflation_config: kilt_inflation_config(), - max_candidate_stake: MAX_COLLATOR_STAKE, - }, - council: CouncilConfig { - members: [alice.clone(), bob.clone()].map(|(acc, _)| acc).to_vec(), - phantom: Default::default(), - }, - technical_committee: TechnicalCommitteeConfig { - members: [alice, bob].map(|(acc, _)| acc).to_vec(), - phantom: Default::default(), - }, - polkadot_xcm: PolkadotXcmConfig { - safe_xcm_version: Some(SAFE_XCM_VERSION), - ..Default::default() - }, - ..Default::default() - } -} diff --git a/nodes/parachain/src/chain_spec/spiritnet/mod.rs b/nodes/parachain/src/chain_spec/spiritnet/mod.rs index 5547255425..95459c38e7 100644 --- a/nodes/parachain/src/chain_spec/spiritnet/mod.rs +++ b/nodes/parachain/src/chain_spec/spiritnet/mod.rs @@ -21,11 +21,8 @@ pub(crate) mod dev; pub(crate) mod new; -const SAFE_XCM_VERSION: u32 = xcm::prelude::XCM_VERSION; - /// Specialized `ChainSpec` for the normal parachain runtime. -pub(crate) type ChainSpec = - sc_service::GenericChainSpec; +pub(crate) type ChainSpec = sc_service::GenericChainSpec; pub(crate) fn load_chain_spec(path: &str) -> Result { ChainSpec::from_json_file(path.into()) diff --git a/nodes/parachain/src/chain_spec/spiritnet/new.rs b/nodes/parachain/src/chain_spec/spiritnet/new.rs index 3fdeaae22f..3a1475a1da 100644 --- a/nodes/parachain/src/chain_spec/spiritnet/new.rs +++ b/nodes/parachain/src/chain_spec/spiritnet/new.rs @@ -19,24 +19,19 @@ //! KILT chain specification use sc_service::ChainType; -use serde_json::to_value; -use spiritnet_runtime::{ParachainInfoConfig, PolkadotXcmConfig, RuntimeGenesisConfig, WASM_BINARY}; +use spiritnet_runtime::WASM_BINARY; -use crate::chain_spec::{ - spiritnet::{ChainSpec, SAFE_XCM_VERSION}, - utils::get_properties, - Extensions, KILT_PARA_ID, -}; +use crate::chain_spec::{spiritnet::ChainSpec, utils::get_properties, Extensions}; pub(crate) fn generate_chain_spec() -> ChainSpec { let wasm_binary = WASM_BINARY.expect("WASM binary not available"); - let genesis_state = to_value(generate_genesis_state()).expect("Creating genesis state failed"); + let genesis_state = spiritnet_runtime::genesis_state::production::generate_genesis_state(); ChainSpec::builder( wasm_binary, Extensions { relay_chain: "relay".into(), - para_id: KILT_PARA_ID, + para_id: spiritnet_runtime::genesis_state::KILT_PARA_ID, }, ) .with_name("KILT Spiritnet New (change title)") @@ -46,17 +41,3 @@ pub(crate) fn generate_chain_spec() -> ChainSpec { .with_genesis_config(genesis_state) .build() } - -fn generate_genesis_state() -> RuntimeGenesisConfig { - RuntimeGenesisConfig { - parachain_info: ParachainInfoConfig { - parachain_id: KILT_PARA_ID.into(), - ..Default::default() - }, - polkadot_xcm: PolkadotXcmConfig { - safe_xcm_version: Some(SAFE_XCM_VERSION), - ..Default::default() - }, - ..Default::default() - } -} diff --git a/nodes/parachain/src/chain_spec/utils.rs b/nodes/parachain/src/chain_spec/utils.rs index adf38c9ec6..e4651db530 100644 --- a/nodes/parachain/src/chain_spec/utils.rs +++ b/nodes/parachain/src/chain_spec/utils.rs @@ -16,28 +16,10 @@ // If you feel like getting in touch with us, you can do so at -use runtime_common::{AccountId, AccountPublic}; use sc_service::Properties; -use sp_core::{Pair, Public}; -use sp_runtime::traits::IdentifyAccount; use crate::chain_spec::{self, ParachainRuntime, PeregrineRuntime, SpiritnetRuntime}; -/// Helper function to generate an account ID from seed -pub(crate) fn get_account_id_from_secret(seed: &str) -> AccountId -where - AccountPublic: From<::Public>, -{ - AccountPublic::from(get_public_key_from_secret::(seed)).into_account() -} - -/// Helper function to generate a crypto pair from seed -pub(crate) fn get_public_key_from_secret(seed: &str) -> ::Public { - TPublic::Pair::from_string(&format!("//{}", seed), None) - .expect("static values are valid; qed") - .public() -} - pub(crate) fn get_properties(symbol: &str, decimals: u32, ss58format: u32) -> Properties { Properties::from_iter([ ("tokenSymbol".into(), symbol.into()), diff --git a/nodes/parachain/src/cli.rs b/nodes/parachain/src/cli.rs index c2543b5c12..947880ff7f 100644 --- a/nodes/parachain/src/cli.rs +++ b/nodes/parachain/src/cli.rs @@ -16,8 +16,6 @@ // If you feel like getting in touch with us, you can do so at -use std::net::SocketAddr; - use clap::Parser; use polkadot_service::PrometheusConfig; use sc_cli::{ @@ -234,7 +232,7 @@ impl CliConfiguration for RelayChainCli { .or_else(|| self.base_path.clone().map(Into::into))) } - fn rpc_addr(&self, default_listen_port: u16) -> sc_cli::Result> { + fn rpc_addr(&self, default_listen_port: u16) -> sc_cli::Result>> { self.base.base.rpc_addr(default_listen_port) } @@ -246,16 +244,7 @@ impl CliConfiguration for RelayChainCli { self.base.base.prometheus_config(default_listen_port, chain_spec) } - fn init( - &self, - _support_url: &String, - _impl_version: &String, - _logger_hook: F, - _config: &sc_service::Configuration, - ) -> sc_cli::Result<()> - where - F: FnOnce(&mut sc_cli::LoggerBuilder, &sc_service::Configuration), - { + fn init(&self, _support_url: &String, _impl_version: &String, _logger_hook: F) -> sc_cli::Result<()> { unreachable!("PolkadotCli is never initialized; qed"); } diff --git a/nodes/parachain/src/command.rs b/nodes/parachain/src/command.rs index c77b5fd175..94ff3c7ef2 100644 --- a/nodes/parachain/src/command.rs +++ b/nodes/parachain/src/command.rs @@ -16,18 +16,16 @@ // If you feel like getting in touch with us, you can do so at use cumulus_primitives_core::ParaId; -use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE}; +use frame_benchmarking_cli::SUBSTRATE_REFERENCE_HARDWARE; use log::info; -use runtime_common::opaque::Block; use sc_cli::SubstrateCli; -use sc_executor::NativeExecutionDispatch; use sp_runtime::traits::AccountIdConversion; use std::iter::once; use crate::{ chain_spec::{self, ParachainRuntime}, cli::{Cli, RelayChainCli, Subcommand}, - service::{new_partial, PeregrineRuntimeExecutor, SpiritnetRuntimeExecutor}, + service::new_partial, }; // Returns the provided (`--chain`, ) given only a reference @@ -71,7 +69,11 @@ macro_rules! construct_async_run { /// Parse command line arguments into service configuration. pub(crate) fn run() -> sc_cli::Result<()> { - let cli = Cli::from_args(); + let mut cli = Cli::from_args(); + + // all full nodes should store request/responses, otherwise they'd basically be + // useless without it. https://docs.hyperbridge.network/developers/polkadot/pallet-ismp#offchain-indexing + cli.run.base.offchain_worker_params.indexing_enabled = true; match &cli.subcommand { Some(Subcommand::BuildSpec(cmd)) => { @@ -148,99 +150,7 @@ pub(crate) fn run() -> sc_cli::Result<()> { cmd.run(&*spec) }) } - Some(Subcommand::Benchmark(cmd)) => { - - let shared_params = match cmd { - BenchmarkCmd::Block(c) => &c.shared_params, - BenchmarkCmd::Pallet(c) => &c.shared_params, - BenchmarkCmd::Extrinsic(c) => &c.shared_params, - BenchmarkCmd::Machine(c) => &c.shared_params, - BenchmarkCmd::Overhead(c) => &c.shared_params, - BenchmarkCmd::Storage(c) => &c.shared_params, - }; - - let (_, runtime) = get_selected_chainspec(shared_params)?; - - let runner = cli.create_runner(cmd)?; - - match (cmd, runtime) { - (BenchmarkCmd::Pallet(cmd), ParachainRuntime::Spiritnet(_)) => { - if cfg!(feature = "runtime-benchmarks") { - runner.sync_run(|config| { - cmd.run::::ExtendHostFunctions>(config) - }) - } else { - Err("Benchmarking wasn't enabled when building the node. \ - You can enable it with `--features runtime-benchmarks`." - .into()) - } - } - (BenchmarkCmd::Pallet(cmd), ParachainRuntime::Peregrine(_)) => { - if cfg!(feature = "runtime-benchmarks") { - runner.sync_run(|config| { - cmd.run::::ExtendHostFunctions>(config) - }) - } else { - Err("Benchmarking wasn't enabled when building the node. \ - You can enable it with `--features runtime-benchmarks`." - .into()) - } - } - (BenchmarkCmd::Block(cmd), ParachainRuntime::Spiritnet(_)) => runner.sync_run(|config| { - let partials = new_partial::( - &config, - crate::service::build_import_queue, - )?; - cmd.run(partials.client) - }), - (BenchmarkCmd::Block(cmd), ParachainRuntime::Peregrine(_)) => runner.sync_run(|config| { - let partials = new_partial::( - &config, - crate::service::build_import_queue, - )?; - cmd.run(partials.client) - }), - #[cfg(not(feature = "runtime-benchmarks"))] - (BenchmarkCmd::Storage(_), _) => Err(sc_cli::Error::Input( - "Compile with --features=runtime-benchmarks \ - to enable storage benchmarks." - .into(), - )), - #[cfg(feature = "runtime-benchmarks")] - (BenchmarkCmd::Storage(cmd), ParachainRuntime::Spiritnet(_)) => runner.sync_run(|config| { - let partials = new_partial::( - &config, - crate::service::build_import_queue, - )?; - - let db = partials.backend.expose_db(); - let storage = partials.backend.expose_storage(); - - cmd.run(config, std::sync::Arc::clone(&partials.client), db, storage) - }), - #[cfg(feature = "runtime-benchmarks")] - (BenchmarkCmd::Storage(cmd), ParachainRuntime::Peregrine(_)) => runner.sync_run(|config| { - let partials = new_partial::( - &config, - crate::service::build_import_queue, - )?; - - let db = partials.backend.expose_db(); - let storage = partials.backend.expose_storage(); - - cmd.run(config, std::sync::Arc::clone(&partials.client), db, storage) - }), - (BenchmarkCmd::Overhead(_), _) => Err("Unsupported benchmarking command".into()), - (BenchmarkCmd::Machine(cmd), _) => { - runner.sync_run(|config| cmd.run(&config, SUBSTRATE_REFERENCE_HARDWARE.clone())) - } - // NOTE: this allows the Client to leniently implement - // new benchmark commands without requiring a companion MR. - (_, ParachainRuntime::Spiritnet(_)) | (_, ParachainRuntime::Peregrine(_)) => { - Err("Benchmarking sub-command unsupported".into()) - } - } - } + Some(Subcommand::Benchmark(_)) => Err("The `benchmark` subcommand has been migrated to a standalone CLI (https://crates.io/crates/frame-omni-bencher). It is no longer being maintained here.".into()), Some(Subcommand::TryRuntime) => Err("The `try-runtime` subcommand has been migrated to a standalone CLI (https://github.com/paritytech/try-runtime-cli). It is no longer being maintained here.".into()), None => { let runner = cli.create_runner(&cli.run.normalize())?; @@ -250,7 +160,7 @@ pub(crate) fn run() -> sc_cli::Result<()> { let hwbench = (!cli.no_hardware_benchmarks) .then_some(config.database.path().map(|database_path| { let _ = std::fs::create_dir_all(database_path); - sc_sysinfo::gather_hwbench(Some(database_path)) + sc_sysinfo::gather_hwbench(Some(database_path) , &SUBSTRATE_REFERENCE_HARDWARE) })) .flatten(); diff --git a/nodes/parachain/src/rpc.rs b/nodes/parachain/src/rpc.rs index 47a58cd035..76f8909dd9 100644 --- a/nodes/parachain/src/rpc.rs +++ b/nodes/parachain/src/rpc.rs @@ -25,8 +25,8 @@ use std::sync::Arc; -use sc_client_api::AuxStore; -pub use sc_rpc_api::DenyUnsafe; +use pallet_ismp_rpc::{IsmpApiServer, IsmpRpcHandler}; +use sc_client_api::{AuxStore, BlockBackend, ProofProvider}; use sc_transaction_pool_api::TransactionPool; use sp_api::ProvideRuntimeApi; use sp_block_builder::BlockBuilder; @@ -38,20 +38,24 @@ use runtime_common::{opaque::Block, AccountId, Balance, Nonce}; pub(crate) type RpcExtension = jsonrpsee::RpcModule<()>; /// Full client dependencies. -pub(crate) struct FullDeps { +pub(crate) struct FullDeps { /// The client instance to use. pub client: Arc, /// Transaction pool instance. pub pool: Arc

, - /// Whether to deny unsafe calls - pub deny_unsafe: DenyUnsafe, + /// Backend used by the node. + pub backend: Arc, } /// Instantiate all RPC extensions. -pub(crate) fn create_full(deps: FullDeps) -> Result> +pub(crate) fn create_full( + deps: FullDeps, +) -> Result> where C: ProvideRuntimeApi + HeaderBackend + + BlockBackend + + ProofProvider + AuxStore + HeaderMetadata + Send @@ -59,26 +63,26 @@ where + 'static, C::Api: pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi + substrate_frame_rpc_system::AccountNonceApi - + BlockBuilder, + + BlockBuilder + + pallet_ismp_runtime_api::IsmpRuntimeApi, + P: TransactionPool + 'static, + B: sc_client_api::Backend + Send + Sync + 'static, + B::State: sc_client_api::StateBackend>, { use pallet_transaction_payment_rpc::{TransactionPayment, TransactionPaymentApiServer}; use substrate_frame_rpc_system::{System, SystemApiServer}; let mut module = RpcExtension::new(()); - let FullDeps { - client, - pool, - deny_unsafe, - } = deps; - - module.merge(System::new(Arc::clone(&client), pool, deny_unsafe).into_rpc())?; - module.merge(TransactionPayment::new(client).into_rpc())?; + let FullDeps { client, pool, backend } = deps; + + module.merge(System::new(Arc::clone(&client), pool).into_rpc())?; + module.merge(TransactionPayment::new(Arc::clone(&client)).into_rpc())?; // Extend this RPC with a custom API by using the following syntax. // `YourRpcStruct` should have a reference to a client, which is needed // to call into the runtime. // - // `module.merge(YourRpcStruct::new(ReferenceToClient).into_rpc())?;` + module.merge(IsmpRpcHandler::new(client, backend)?.into_rpc())?; Ok(module) } diff --git a/nodes/parachain/src/service.rs b/nodes/parachain/src/service.rs index 23578a4f6e..fd58810244 100644 --- a/nodes/parachain/src/service.rs +++ b/nodes/parachain/src/service.rs @@ -57,7 +57,11 @@ pub(crate) type Block = sp_runtime::generic::Block; @@ -84,36 +88,6 @@ type PartialComponents = sc ), >; -/// Native Spiritnet executor instance. -pub(crate) struct SpiritnetRuntimeExecutor; - -impl sc_executor::NativeExecutionDispatch for SpiritnetRuntimeExecutor { - type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions; - - fn dispatch(method: &str, data: &[u8]) -> Option> { - spiritnet_runtime::api::dispatch(method, data) - } - - fn native_version() -> sc_executor::NativeVersion { - spiritnet_runtime::native_version() - } -} - -/// Native Peregrine executor instance. -pub(crate) struct PeregrineRuntimeExecutor; - -impl sc_executor::NativeExecutionDispatch for PeregrineRuntimeExecutor { - type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions; - - fn dispatch(method: &str, data: &[u8]) -> Option> { - peregrine_runtime::api::dispatch(method, data) - } - - fn native_version() -> sc_executor::NativeVersion { - peregrine_runtime::native_version() - } -} - /// Starts a `ServiceBuilder` for a full service. /// /// Use this macro if you don't actually need the full service, but just the @@ -153,11 +127,11 @@ where #[allow(deprecated)] let executor = ParachainExecutor::new( - config.wasm_method, - config.default_heap_pages, - config.max_runtime_instances, + config.executor.wasm_method, + config.executor.default_heap_pages, + config.executor.max_runtime_instances, None, - config.runtime_cache_size, + config.executor.runtime_cache_size, ); let (client, backend, keystore_container, task_manager) = sc_service::new_full_parts::( @@ -236,7 +210,9 @@ where + pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi + substrate_frame_rpc_system::AccountNonceApi + sp_consensus_aura::AuraApi - + cumulus_primitives_aura::AuraUnincludedSegmentApi, + + cumulus_primitives_aura::AuraUnincludedSegmentApi + + pallet_ismp_runtime_api::IsmpRuntimeApi + + ismp_parachain_runtime_api::IsmpParachainApi, sc_client_api::StateBackendFor, Block>: sp_state_machine::Backend, RB: FnOnce( Arc>>, @@ -275,7 +251,10 @@ where let prometheus_registry = parachain_config.prometheus_registry().cloned(); let transaction_pool = Arc::clone(¶ms.transaction_pool); let import_queue_service = params.import_queue.service(); - let net_config = sc_network::config::FullNetworkConfiguration::new(¶chain_config.network); + let net_config = sc_network::config::FullNetworkConfiguration::<_, _, sc_network::NetworkWorker>::new( + ¶chain_config.network, + prometheus_registry.clone(), + ); let (network, system_rpc_tx, tx_handler_controller, start_network, sync_service) = cumulus_client_service::build_network(cumulus_client_service::BuildNetworkParams { parachain_config: ¶chain_config, @@ -293,12 +272,13 @@ where let rpc_builder = { let client = Arc::clone(&client); let transaction_pool = Arc::clone(&transaction_pool); + let backend = Arc::clone(&backend); - Box::new(move |deny_unsafe, _| { + Box::new(move |_| { let deps = crate::rpc::FullDeps { client: Arc::clone(&client), pool: Arc::clone(&transaction_pool), - deny_unsafe, + backend: Arc::clone(&backend), }; crate::rpc::create_full(deps).map_err(Into::into) @@ -454,7 +434,9 @@ where + pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi + sp_consensus_aura::AuraApi + cumulus_primitives_core::CollectCollationInfo - + cumulus_primitives_aura::AuraUnincludedSegmentApi, + + cumulus_primitives_aura::AuraUnincludedSegmentApi + + pallet_ismp_runtime_api::IsmpRuntimeApi + + ismp_parachain_runtime_api::IsmpParachainApi, sc_client_api::StateBackendFor, Block>: sp_state_machine::Backend, { start_node_impl::( @@ -479,7 +461,7 @@ fn start_consensus( task_manager: &TaskManager, relay_chain_interface: Arc, transaction_pool: Arc>>, - sync_oracle: Arc>, + _sync_oracle: Arc>, keystore: KeystorePtr, relay_chain_slot_duration: Duration, para_id: ParaId, @@ -500,12 +482,12 @@ where + pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi + substrate_frame_rpc_system::AccountNonceApi + sp_consensus_aura::AuraApi - + cumulus_primitives_aura::AuraUnincludedSegmentApi, + + cumulus_primitives_aura::AuraUnincludedSegmentApi + + ismp_parachain_runtime_api::IsmpParachainApi + + pallet_ismp_runtime_api::IsmpRuntimeApi, { use cumulus_client_consensus_aura::collators::lookahead::{self as aura, Params as AuraParams}; - let slot_duration = cumulus_client_consensus_aura::slot_duration(&*client)?; - let proposer_factory = sc_basic_authorship::ProposerFactory::with_proof_recording( task_manager.spawn_handle(), Arc::clone(&client), @@ -523,19 +505,29 @@ where Arc::clone(&client), ); + let (client_clone, relay_chain_interface_clone) = (Arc::clone(&client), Arc::clone(&relay_chain_interface)); + let params = AuraParams { - create_inherent_data_providers: move |_, ()| async move { Ok(()) }, + create_inherent_data_providers: move |parent, ()| { + let client = Arc::clone(&client_clone); + let relay_chain_interface = Arc::clone(&relay_chain_interface_clone); + async move { + let inherent = + ismp_parachain_inherent::ConsensusInherentProvider::create(parent, client, relay_chain_interface) + .await?; + + Ok(inherent) + } + }, block_import, para_client: Arc::clone(&client), para_backend: backend, relay_client: relay_chain_interface, code_hash_provider: move |block_hash| client.code_at(block_hash).ok().map(|c| ValidationCode::from(c).hash()), - sync_oracle, keystore, collator_key, para_id, overseer_handle, - slot_duration, relay_chain_slot_duration, proposer, collator_service, @@ -543,7 +535,7 @@ where reinitialize: false, }; - let fut = aura::run::(params); + let fut = aura::run::(params); task_manager .spawn_essential_handle() .spawn(TASK_MANAGER_IDENTIFIER, None, fut); diff --git a/nodes/standalone/Cargo.toml b/nodes/standalone/Cargo.toml index 76191500ce..11f5a20da6 100644 --- a/nodes/standalone/Cargo.toml +++ b/nodes/standalone/Cargo.toml @@ -68,9 +68,6 @@ substrate-frame-rpc-system = { workspace = true } frame-benchmarking = { workspace = true, features = ["std"] } frame-benchmarking-cli = { workspace = true } -# Runtime tests -try-runtime-cli = { workspace = true, optional = true } - [features] default = [] runtime-benchmarks = [ @@ -87,6 +84,4 @@ try-runtime = [ "kestrel-runtime/try-runtime", "pallet-transaction-payment/try-runtime", "runtime-common/try-runtime", - "try-runtime-cli", - "try-runtime-cli/try-runtime", ] diff --git a/nodes/standalone/src/chain_spec.rs b/nodes/standalone/src/chain_spec.rs index f26d16a670..f1b6302e52 100644 --- a/nodes/standalone/src/chain_spec.rs +++ b/nodes/standalone/src/chain_spec.rs @@ -39,7 +39,7 @@ pub(crate) fn load_spec(id: &str) -> Result, Stri Ok(Box::new(chain_spec)) } -type ChainSpec = sc_service::GenericChainSpec; +type ChainSpec = sc_service::GenericChainSpec; fn generate_dev_chain_spec() -> ChainSpec { let wasm_binary = WASM_BINARY.expect("Development WASM binary not available"); @@ -88,6 +88,7 @@ fn generate_genesis_state() -> RuntimeGenesisConfig { ) }) .collect::>(), + ..Default::default() }, sudo: SudoConfig { key: Some(root_key) }, ..Default::default() diff --git a/nodes/standalone/src/command.rs b/nodes/standalone/src/command.rs index 71b738a81a..f88bb4759d 100644 --- a/nodes/standalone/src/command.rs +++ b/nodes/standalone/src/command.rs @@ -138,7 +138,18 @@ pub(crate) fn run() -> sc_cli::Result<()> { None => { let runner = cli.create_runner(&cli.run)?; runner.run_node_until_exit(|config| async move { - crate::service::new_full(config).map_err(sc_cli::Error::Service) + match config.network.network_backend { + sc_network::config::NetworkBackendType::Libp2p => crate::service::new_full::< + sc_network::NetworkWorker< + kestrel_runtime::opaque::Block, + ::Hash, + >, + >(config) + .map_err(sc_cli::Error::Service), + sc_network::config::NetworkBackendType::Litep2p => + crate::service::new_full::(config) + .map_err(sc_cli::Error::Service), + } }) } } diff --git a/nodes/standalone/src/rpc.rs b/nodes/standalone/src/rpc.rs index 6a9b5b5bbc..bf1d9d4261 100644 --- a/nodes/standalone/src/rpc.rs +++ b/nodes/standalone/src/rpc.rs @@ -27,7 +27,6 @@ use std::sync::Arc; use jsonrpsee::RpcModule; -use sc_rpc_api::DenyUnsafe; use sc_transaction_pool_api::TransactionPool; use sp_api::ProvideRuntimeApi; use sp_block_builder::BlockBuilder; @@ -41,8 +40,6 @@ pub(crate) struct FullDeps { pub(crate) client: Arc, /// Transaction pool instance. pub(crate) pool: Arc

, - /// Whether to deny unsafe calls - pub(crate) deny_unsafe: DenyUnsafe, } /// Instantiate all full RPC extensions. @@ -59,13 +56,9 @@ where use substrate_frame_rpc_system::{System, SystemApiServer}; let mut module = RpcModule::new(()); - let FullDeps { - client, - pool, - deny_unsafe, - } = deps; + let FullDeps { client, pool } = deps; - module.merge(System::new(client.clone(), pool, deny_unsafe).into_rpc())?; + module.merge(System::new(client.clone(), pool).into_rpc())?; module.merge(TransactionPayment::new(client).into_rpc())?; // Extend this RPC with a custom API by using the following syntax. diff --git a/nodes/standalone/src/service.rs b/nodes/standalone/src/service.rs index dfaf6efbf2..1d95b531c3 100644 --- a/nodes/standalone/src/service.rs +++ b/nodes/standalone/src/service.rs @@ -23,47 +23,25 @@ use futures::FutureExt; use sc_client_api::{Backend, BlockBackend}; use sc_consensus_aura::{ImportQueueParams, SlotProportion, StartAuraParams}; use sc_consensus_grandpa::SharedVoterState; -use sc_executor::WasmExecutor; -use sc_service::{error::Error as ServiceError, Configuration, TaskManager, WarpSyncParams}; +use sc_service::{error::Error as ServiceError, Configuration, TaskManager, WarpSyncConfig}; use sc_telemetry::{Telemetry, TelemetryWorker}; use sc_transaction_pool_api::OffchainTransactionPoolFactory; use sp_consensus_aura::ed25519::AuthorityPair as AuraPair; -use sp_io::SubstrateHostFunctions; use std::{sync::Arc, time::Duration}; use kestrel_runtime::{self, opaque::Block, RuntimeApi}; -// Our native executor instance. -pub(crate) struct ExecutorDispatch; - -impl sc_executor::NativeExecutionDispatch for ExecutorDispatch { - type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions; - - fn dispatch(method: &str, data: &[u8]) -> Option> { - kestrel_runtime::api::dispatch(method, data) - } - - fn native_version() -> sc_executor::NativeVersion { - kestrel_runtime::native_version() - } -} - -#[cfg(not(feature = "runtime-benchmarks"))] -type HostFunctions = SubstrateHostFunctions; -#[cfg(feature = "runtime-benchmarks")] -type HostFunctions = (SubstrateHostFunctions, frame_benchmarking::benchmarking::HostFunctions); - -type FullClient = sc_service::TFullClient>; +pub(crate) type FullClient = + sc_service::TFullClient>; type FullBackend = sc_service::TFullBackend; type FullSelectChain = sc_consensus::LongestChain; /// The minimum period of blocks on which justifications will be /// imported and generated. -/// Value is copied from the solo chain template: const GRANDPA_JUSTIFICATION_PERIOD: u32 = 512; -type PartialComponents = sc_service::PartialComponents< +pub type Service = sc_service::PartialComponents< FullClient, FullBackend, FullSelectChain, @@ -76,7 +54,7 @@ type PartialComponents = sc_service::PartialComponents< ), >; -pub(crate) fn new_partial(config: &Configuration) -> Result { +pub fn new_partial(config: &Configuration) -> Result { let telemetry = config .telemetry_endpoints .clone() @@ -88,15 +66,7 @@ pub(crate) fn new_partial(config: &Configuration) -> Result::new( - config.wasm_method, - config.default_heap_pages, - config.max_runtime_instances, - None, - config.runtime_cache_size, - ); - + let executor = sc_service::new_wasm_executor::(&config.executor); let (client, backend, keystore_container, task_manager) = sc_service::new_full_parts::( config, telemetry.as_ref().map(|(_, telemetry)| telemetry.handle()), @@ -122,26 +92,29 @@ pub(crate) fn new_partial(config: &Configuration) -> Result(ImportQueueParams { block_import: grandpa_block_import.clone(), justification_import: Some(Box::new(grandpa_block_import.clone())), client: client.clone(), - create_inherent_data_providers: move |_, ()| async move { - let timestamp = sp_timestamp::InherentDataProvider::from_system_time(); + create_inherent_data_providers: move |parent_hash, _| { + let cidp_client = cidp_client.clone(); + async move { + let slot_duration = sc_consensus_aura::standalone::slot_duration_at(&*cidp_client, parent_hash)?; + let timestamp = sp_timestamp::InherentDataProvider::from_system_time(); - let slot = sp_consensus_aura::inherents::InherentDataProvider::from_timestamp_and_slot_duration( - *timestamp, - slot_duration, - ); + let slot = sp_consensus_aura::inherents::InherentDataProvider::from_timestamp_and_slot_duration( + *timestamp, + slot_duration, + ); - Ok((slot, timestamp)) + Ok((slot, timestamp)) + } }, spawner: &task_manager.spawn_essential_handle(), registry: config.prometheus_registry(), @@ -163,7 +136,9 @@ pub(crate) fn new_partial(config: &Configuration) -> Result Result { +pub fn new_full::Hash>>( + config: Configuration, +) -> Result { let sc_service::PartialComponents { client, backend, @@ -175,15 +150,23 @@ pub(crate) fn new_full(config: Configuration) -> Result::Hash, + N, + >::new(&config.network, config.prometheus_registry().cloned()); + let metrics = N::register_notification_metrics(config.prometheus_registry()); + + let peer_store_handle = net_config.peer_store_handle(); let grandpa_protocol_name = sc_consensus_grandpa::protocol_standard_name( &client.block_hash(0).ok().flatten().expect("Genesis block exists; qed"), &config.chain_spec, ); - - let mut net_config = sc_network::config::FullNetworkConfiguration::new(&config.network); - let (grandpa_protocol_config, grandpa_notification_service) = - sc_consensus_grandpa::grandpa_peers_set_config(grandpa_protocol_name.clone()); - + let (grandpa_protocol_config, grandpa_notification_service) = sc_consensus_grandpa::grandpa_peers_set_config::<_, N>( + grandpa_protocol_name.clone(), + metrics.clone(), + peer_store_handle, + ); net_config.add_notification_protocol(grandpa_protocol_config); let warp_sync = Arc::new(sc_consensus_grandpa::warp_proof::NetworkProvider::new( @@ -192,17 +175,18 @@ pub(crate) fn new_full(config: Configuration) -> Result Result Result = None; let name = config.network.node_name.clone(); @@ -235,20 +219,18 @@ pub(crate) fn new_full(config: Configuration) -> Result Result Result Result(claim_hash: ClaimHashOf, details: Attest } pub fn sr25519_did_from_public_key(public_key: &[u8; 32]) -> SubjectId { - MultiSigner::from(sr25519::Public(*public_key)).into_account().into() + MultiSigner::from(sr25519::Public::from_raw(*public_key)) + .into_account() + .into() } pub fn claim_hash_from_seed(seed: u64) -> Hash { @@ -262,6 +264,12 @@ pub(crate) mod runtime { type SS58Prefix = SS58Prefix; type OnSetCode = (); type MaxConsumers = frame_support::traits::ConstU32<16>; + + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } parameter_types! { diff --git a/pallets/ctype/src/lib.rs b/pallets/ctype/src/lib.rs index 3ede804d60..338654715c 100644 --- a/pallets/ctype/src/lib.rs +++ b/pallets/ctype/src/lib.rs @@ -69,6 +69,8 @@ pub use crate::{default_weights::WeightInfo, pallet::*}; // very end of the development cycle of a pallet, and from time to time it should be commented out to catch any issues // other than the one generated by the `pallet::event` macro. #[allow(clippy::shadow_reuse)] +// map_err is used over inspect_err in the macro-generated code, and we have to ignore it. +#[allow(clippy::manual_inspect)] pub mod pallet { use super::*; use frame_support::{ diff --git a/pallets/ctype/src/mock.rs b/pallets/ctype/src/mock.rs index 30a30fc866..96e65547f7 100644 --- a/pallets/ctype/src/mock.rs +++ b/pallets/ctype/src/mock.rs @@ -101,6 +101,11 @@ pub mod runtime { type SS58Prefix = SS58Prefix; type OnSetCode = (); type MaxConsumers = frame_support::traits::ConstU32<16>; + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } parameter_types! { diff --git a/pallets/delegation/src/lib.rs b/pallets/delegation/src/lib.rs index 1fee73b264..03116fb697 100644 --- a/pallets/delegation/src/lib.rs +++ b/pallets/delegation/src/lib.rs @@ -99,6 +99,8 @@ use sp_std::{marker::PhantomData, vec::Vec}; // very end of the development cycle of a pallet, and from time to time it should be commented out to catch any issues // other than the one generated by the `pallet::event` macro. #[allow(clippy::shadow_reuse)] +// map_err is used over inspect_err in the macro-generated code, and we have to ignore it. +#[allow(clippy::manual_inspect)] pub mod pallet { use super::*; diff --git a/pallets/delegation/src/mock.rs b/pallets/delegation/src/mock.rs index 9543e525bb..ea6bf96347 100644 --- a/pallets/delegation/src/mock.rs +++ b/pallets/delegation/src/mock.rs @@ -248,6 +248,12 @@ pub(crate) mod runtime { type SS58Prefix = SS58Prefix; type OnSetCode = (); type MaxConsumers = frame_support::traits::ConstU32<16>; + + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } parameter_types! { diff --git a/pallets/did/src/did_details.rs b/pallets/did/src/did_details.rs index 75c2e9b6f1..82db7a3ab6 100644 --- a/pallets/did/src/did_details.rs +++ b/pallets/did/src/did_details.rs @@ -245,7 +245,7 @@ impl, AccountId> DidVerifiableIdentifier for I { ); // Safe to reconstruct the public key using the recovered value from // secp256k1_ecdsa_recover_compressed - Ok(DidVerificationKey::from(ecdsa::Public(recovered_pk))) + Ok(DidVerificationKey::from(ecdsa::Public::from_raw(recovered_pk))) } } } diff --git a/pallets/did/src/lib.rs b/pallets/did/src/lib.rs index 7e190a53d4..b2f1829d9d 100644 --- a/pallets/did/src/lib.rs +++ b/pallets/did/src/lib.rs @@ -147,6 +147,8 @@ use frame_system::RawOrigin; // very end of the development cycle of a pallet, and from time to time it should be commented out to catch any issues // other than the one generated by the `pallet::event` macro. #[allow(clippy::shadow_reuse)] +// map_err is used over inspect_err in the macro-generated code, and we have to ignore it. +#[allow(clippy::manual_inspect)] pub mod pallet { use super::*; use did_details::DidCreationDetails; diff --git a/pallets/did/src/mock.rs b/pallets/did/src/mock.rs index f0efebe973..d6c8e32b5c 100644 --- a/pallets/did/src/mock.rs +++ b/pallets/did/src/mock.rs @@ -106,6 +106,11 @@ impl frame_system::Config for Test { type SS58Prefix = SS58Prefix; type OnSetCode = (); type MaxConsumers = frame_support::traits::ConstU32<16>; + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } parameter_types! { diff --git a/pallets/did/src/tests/create_from_account.rs b/pallets/did/src/tests/create_from_account.rs index 1873f77f83..2ebf85fa3d 100644 --- a/pallets/did/src/tests/create_from_account.rs +++ b/pallets/did/src/tests/create_from_account.rs @@ -72,20 +72,20 @@ fn blueprint_test_successful(account_id: AccountIdOf, verification_key: Di #[test] fn successful_ed25519() { - let verification_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let verification_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_test_successful(ACCOUNT_00, verification_key); } #[test] fn successful_sr25519() { - let verification_key = DidVerificationKey::Sr25519(sr25519::Public(*ACCOUNT_00.as_ref())); + let verification_key = DidVerificationKey::Sr25519(sr25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_test_successful(ACCOUNT_00, verification_key); } #[test] fn successful_ecdsa() { // these values where generated with `subkey generate -n kilt --scheme ecdsa` - let verification_key = DidVerificationKey::Ecdsa(ecdsa::Public(hex_literal::hex!( + let verification_key = DidVerificationKey::Ecdsa(ecdsa::Public::from_raw(hex_literal::hex!( "02484c08122e16f2cbce7697b5a9393280ca67dd8b91a907c1bc4b93451ebf4093" ))); let account_id: AccountIdOf = @@ -101,7 +101,7 @@ fn successful_account() { #[test] fn should_not_overwrite() { - let verification_key = DidVerificationKey::Sr25519(sr25519::Public(*ACCOUNT_00.as_ref())); + let verification_key = DidVerificationKey::Sr25519(sr25519::Public::from_raw(*ACCOUNT_00.as_ref())); let account_id = ACCOUNT_00; let balance = ::BaseDeposit::get() @@ -128,7 +128,7 @@ fn should_not_overwrite() { #[test] fn should_not_recreate_deleted_did() { - let verification_key = DidVerificationKey::Sr25519(sr25519::Public(*ACCOUNT_00.as_ref())); + let verification_key = DidVerificationKey::Sr25519(sr25519::Public::from_raw(*ACCOUNT_00.as_ref())); let account_id = ACCOUNT_00; let balance = ::BaseDeposit::get() @@ -157,7 +157,7 @@ fn should_not_recreate_deleted_did() { #[test] fn should_not_create_without_funds() { - let verification_key = DidVerificationKey::Sr25519(sr25519::Public(*ACCOUNT_00.as_ref())); + let verification_key = DidVerificationKey::Sr25519(sr25519::Public::from_raw(*ACCOUNT_00.as_ref())); let account_id = ACCOUNT_00; ExtBuilder::default().build_and_execute_with_sanity_tests(None, || { diff --git a/pallets/did/src/tests/dispatch_as/attestation.rs b/pallets/did/src/tests/dispatch_as/attestation.rs index a74e3a3406..1bf4e51053 100644 --- a/pallets/did/src/tests/dispatch_as/attestation.rs +++ b/pallets/did/src/tests/dispatch_as/attestation.rs @@ -64,8 +64,8 @@ fn successful_key_dispatch_ed25519() { let deposit_owner = ACCOUNT_01; let caller = ACCOUNT_00; let did_identifier = ACCOUNT_02; - let verification_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_02.as_ref())); - let attestation_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let verification_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_02.as_ref())); + let attestation_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_successful_dispatch_with_key(did_identifier, caller, verification_key, attestation_key, deposit_owner); } @@ -74,15 +74,15 @@ fn successful_key_dispatch_sr25519() { let deposit_owner = ACCOUNT_01; let caller = ACCOUNT_00; let did_identifier = ACCOUNT_02; - let attestation_key = DidVerificationKey::Sr25519(sr25519::Public(*ACCOUNT_00.as_ref())); - let verification_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let attestation_key = DidVerificationKey::Sr25519(sr25519::Public::from_raw(*ACCOUNT_00.as_ref())); + let verification_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_successful_dispatch_with_key(did_identifier, caller, verification_key, attestation_key, deposit_owner); } #[test] fn successful_key_dispatch_ecdsa() { // these values where generated with `subkey generate -n kilt --scheme ecdsa` - let attestation_key = DidVerificationKey::Ecdsa(ecdsa::Public(hex_literal::hex!( + let attestation_key = DidVerificationKey::Ecdsa(ecdsa::Public::from_raw(hex_literal::hex!( "02484c08122e16f2cbce7697b5a9393280ca67dd8b91a907c1bc4b93451ebf4093" ))); let caller: AccountIdOf = @@ -90,7 +90,7 @@ fn successful_key_dispatch_ecdsa() { let deposit_owner = ACCOUNT_01; let did_identifier = ACCOUNT_02; - let verification_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let verification_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_successful_dispatch_with_key(did_identifier, caller, verification_key, attestation_key, deposit_owner); } @@ -100,7 +100,7 @@ fn successful_key_dispatch_account() { let caller = ACCOUNT_00; let did_identifier = ACCOUNT_02; let attestation_key = DidVerificationKey::Account(ACCOUNT_00); - let verification_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let verification_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_successful_dispatch_with_key(did_identifier, caller, verification_key, attestation_key, deposit_owner); } @@ -129,34 +129,34 @@ fn blueprint_failed_dispatch_with_key( #[test] fn failed_no_match_ed25519() { - let attestation_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_01.as_ref())); - let delegation_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); - let authentication_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let attestation_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_01.as_ref())); + let delegation_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); + let authentication_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_failed_dispatch_with_key(ACCOUNT_00, authentication_key, attestation_key, delegation_key); } #[test] fn failed_no_match_sr25519() { - let attestation_key = DidVerificationKey::Sr25519(sr25519::Public(*ACCOUNT_01.as_ref())); - let delegation_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); - let authentication_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let attestation_key = DidVerificationKey::Sr25519(sr25519::Public::from_raw(*ACCOUNT_01.as_ref())); + let delegation_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); + let authentication_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_failed_dispatch_with_key(ACCOUNT_00, authentication_key, attestation_key, delegation_key); } #[test] fn failed_no_match_ecdsa() { - let attestation_key = DidVerificationKey::Ecdsa(ecdsa::Public(hex_literal::hex!( + let attestation_key = DidVerificationKey::Ecdsa(ecdsa::Public::from_raw(hex_literal::hex!( "02484c08122e16f2cbce7697b5a9393280ca67dd8b91a907c1bc4b93451ebf4093" ))); - let delegation_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); - let authentication_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let delegation_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); + let authentication_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_failed_dispatch_with_key(ACCOUNT_00, authentication_key, attestation_key, delegation_key); } #[test] fn failed_no_match_account() { let attestation_key = DidVerificationKey::Account(ACCOUNT_01); - let delegation_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); - let authentication_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let delegation_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); + let authentication_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_failed_dispatch_with_key(ACCOUNT_00, authentication_key, attestation_key, delegation_key); } diff --git a/pallets/did/src/tests/dispatch_as/authentication.rs b/pallets/did/src/tests/dispatch_as/authentication.rs index cf94428143..ff3fd95c45 100644 --- a/pallets/did/src/tests/dispatch_as/authentication.rs +++ b/pallets/did/src/tests/dispatch_as/authentication.rs @@ -61,7 +61,7 @@ fn successful_key_dispatch_ed25519() { let deposit_owner = ACCOUNT_01; let caller = ACCOUNT_00; let did_identifier = ACCOUNT_02; - let verification_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let verification_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_successful_dispatch_with_key(did_identifier, caller, verification_key, deposit_owner); } @@ -70,14 +70,14 @@ fn successful_key_dispatch_sr25519() { let deposit_owner = ACCOUNT_01; let caller = ACCOUNT_00; let did_identifier = ACCOUNT_02; - let verification_key = DidVerificationKey::Sr25519(sr25519::Public(*ACCOUNT_00.as_ref())); + let verification_key = DidVerificationKey::Sr25519(sr25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_successful_dispatch_with_key(did_identifier, caller, verification_key, deposit_owner) } #[test] fn successful_key_dispatch_ecdsa() { // these values where generated with `subkey generate -n kilt --scheme ecdsa` - let verification_key = DidVerificationKey::Ecdsa(ecdsa::Public(hex_literal::hex!( + let verification_key = DidVerificationKey::Ecdsa(ecdsa::Public::from_raw(hex_literal::hex!( "02484c08122e16f2cbce7697b5a9393280ca67dd8b91a907c1bc4b93451ebf4093" ))); let caller: AccountIdOf = @@ -122,34 +122,34 @@ fn blueprint_failed_dispatch_with_key( #[test] fn failed_no_match_ed25519() { - let authentication_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_01.as_ref())); - let attestation_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); - let delegation_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let authentication_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_01.as_ref())); + let attestation_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); + let delegation_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_failed_dispatch_with_key(ACCOUNT_00, authentication_key, attestation_key, delegation_key); } #[test] fn failed_no_match_sr25519() { - let authentication_key = DidVerificationKey::Sr25519(sr25519::Public(*ACCOUNT_01.as_ref())); - let attestation_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); - let delegation_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let authentication_key = DidVerificationKey::Sr25519(sr25519::Public::from_raw(*ACCOUNT_01.as_ref())); + let attestation_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); + let delegation_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_failed_dispatch_with_key(ACCOUNT_00, authentication_key, attestation_key, delegation_key); } #[test] fn failed_no_match_ecdsa() { - let authentication_key = DidVerificationKey::Ecdsa(ecdsa::Public(hex_literal::hex!( + let authentication_key = DidVerificationKey::Ecdsa(ecdsa::Public::from_raw(hex_literal::hex!( "02484c08122e16f2cbce7697b5a9393280ca67dd8b91a907c1bc4b93451ebf4093" ))); - let attestation_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); - let delegation_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let attestation_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); + let delegation_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_failed_dispatch_with_key(ACCOUNT_00, authentication_key, attestation_key, delegation_key); } #[test] fn failed_no_match_account() { let authentication_key = DidVerificationKey::Account(ACCOUNT_01); - let attestation_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); - let delegation_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let attestation_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); + let delegation_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_failed_dispatch_with_key(ACCOUNT_00, authentication_key, attestation_key, delegation_key); } diff --git a/pallets/did/src/tests/dispatch_as/delegation.rs b/pallets/did/src/tests/dispatch_as/delegation.rs index fc9a2a6897..2be5b307f6 100644 --- a/pallets/did/src/tests/dispatch_as/delegation.rs +++ b/pallets/did/src/tests/dispatch_as/delegation.rs @@ -64,8 +64,8 @@ fn successful_dispatch_ed25519() { let deposit_owner = ACCOUNT_01; let caller = ACCOUNT_00; let did_identifier = ACCOUNT_02; - let verification_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_02.as_ref())); - let delegation_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let verification_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_02.as_ref())); + let delegation_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_successful_dispatch_with_key(did_identifier, caller, verification_key, delegation_key, deposit_owner); } @@ -74,15 +74,15 @@ fn successful_dispatch_sr25519() { let deposit_owner = ACCOUNT_01; let caller = ACCOUNT_00; let did_identifier = ACCOUNT_02; - let delegation_key = DidVerificationKey::Sr25519(sr25519::Public(*ACCOUNT_00.as_ref())); - let verification_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let delegation_key = DidVerificationKey::Sr25519(sr25519::Public::from_raw(*ACCOUNT_00.as_ref())); + let verification_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_successful_dispatch_with_key(did_identifier, caller, verification_key, delegation_key, deposit_owner); } #[test] fn successful_dispatch_ecdsa() { // these values where generated with `subkey generate -n kilt --scheme ecdsa` - let delegation_key = DidVerificationKey::Ecdsa(ecdsa::Public(hex_literal::hex!( + let delegation_key = DidVerificationKey::Ecdsa(ecdsa::Public::from_raw(hex_literal::hex!( "02484c08122e16f2cbce7697b5a9393280ca67dd8b91a907c1bc4b93451ebf4093" ))); let caller: AccountIdOf = @@ -90,7 +90,7 @@ fn successful_dispatch_ecdsa() { let deposit_owner = ACCOUNT_01; let did_identifier = ACCOUNT_02; - let verification_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let verification_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_successful_dispatch_with_key(did_identifier, caller, verification_key, delegation_key, deposit_owner); } @@ -100,7 +100,7 @@ fn successful_dispatch_account() { let caller = ACCOUNT_00; let did_identifier = ACCOUNT_02; let delegation_key = DidVerificationKey::Account(ACCOUNT_00); - let verification_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let verification_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_successful_dispatch_with_key(did_identifier, caller, verification_key, delegation_key, deposit_owner); } @@ -129,34 +129,34 @@ fn blueprint_failed_dispatch_with_key( #[test] fn failed_no_match_ed25519() { - let delegation_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_01.as_ref())); - let attestation_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); - let authentication_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let delegation_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_01.as_ref())); + let attestation_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); + let authentication_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_failed_dispatch_with_key(ACCOUNT_00, authentication_key, attestation_key, delegation_key); } #[test] fn failed_no_match_sr25519() { - let delegation_key = DidVerificationKey::Sr25519(sr25519::Public(*ACCOUNT_01.as_ref())); - let attestation_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); - let authentication_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let delegation_key = DidVerificationKey::Sr25519(sr25519::Public::from_raw(*ACCOUNT_01.as_ref())); + let attestation_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); + let authentication_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_failed_dispatch_with_key(ACCOUNT_00, authentication_key, attestation_key, delegation_key); } #[test] fn failed_no_match_ecdsa() { - let delegation_key = DidVerificationKey::Ecdsa(ecdsa::Public(hex_literal::hex!( + let delegation_key = DidVerificationKey::Ecdsa(ecdsa::Public::from_raw(hex_literal::hex!( "02484c08122e16f2cbce7697b5a9393280ca67dd8b91a907c1bc4b93451ebf4093" ))); - let attestation_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); - let authentication_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let attestation_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); + let authentication_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_failed_dispatch_with_key(ACCOUNT_00, authentication_key, attestation_key, delegation_key); } #[test] fn failed_no_match_account() { let delegation_key = DidVerificationKey::Account(ACCOUNT_01); - let attestation_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); - let authentication_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let attestation_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); + let authentication_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); blueprint_failed_dispatch_with_key(ACCOUNT_00, authentication_key, attestation_key, delegation_key); } diff --git a/pallets/did/src/tests/dispatch_as/error_cases.rs b/pallets/did/src/tests/dispatch_as/error_cases.rs index e0b34b1eb9..8721059795 100644 --- a/pallets/did/src/tests/dispatch_as/error_cases.rs +++ b/pallets/did/src/tests/dispatch_as/error_cases.rs @@ -40,7 +40,7 @@ fn no_did() { #[test] fn deleted_did() { let did_identifier = ACCOUNT_02; - let authentication_key = DidVerificationKey::Ed25519(ed25519::Public(*ACCOUNT_00.as_ref())); + let authentication_key = DidVerificationKey::Ed25519(ed25519::Public::from_raw(*ACCOUNT_00.as_ref())); let did_details = generate_base_did_details(authentication_key, Some(ACCOUNT_01.clone())); blueprint_failed_dispatch( diff --git a/pallets/did/src/tests/submit.rs b/pallets/did/src/tests/submit.rs index 0f3f936ec6..4b354554cd 100644 --- a/pallets/did/src/tests/submit.rs +++ b/pallets/did/src/tests/submit.rs @@ -227,7 +227,7 @@ fn check_tx_block_number_too_low_error() { Did::submit_did_call( RuntimeOrigin::signed(caller.clone()), Box::new(call_operation.operation.clone()), - did::DidSignature::from(signature.clone()) + did::DidSignature::from(signature) ), did::Error::::TransactionExpired ); @@ -270,7 +270,7 @@ fn check_tx_block_number_too_high_error() { Did::submit_did_call( RuntimeOrigin::signed(caller.clone()), Box::new(call_operation.operation.clone()), - did::DidSignature::from(signature.clone()) + did::DidSignature::from(signature) ), did::Error::::TransactionExpired ); diff --git a/pallets/did/src/traits/lifecycle_hooks/mock.rs b/pallets/did/src/traits/lifecycle_hooks/mock.rs index 622db5f732..247278624e 100644 --- a/pallets/did/src/traits/lifecycle_hooks/mock.rs +++ b/pallets/did/src/traits/lifecycle_hooks/mock.rs @@ -65,6 +65,11 @@ impl frame_system::Config for TestRuntime { type SS58Prefix = (); type SystemWeightInfo = (); type Version = (); + type MultiBlockMigrator = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); + type SingleBlockMigrations = (); } parameter_types! { diff --git a/pallets/did/src/utils.rs b/pallets/did/src/utils.rs index cf29afbb0c..770dcd51a9 100644 --- a/pallets/did/src/utils.rs +++ b/pallets/did/src/utils.rs @@ -34,8 +34,8 @@ pub fn calculate_key_id(key: &DidPublicKey>) -> KeyIdO /// Verifies that an input string contains only traditional (non-extended) ASCII /// characters. -pub(crate) fn is_valid_ascii_string(input: &str) -> bool { - input.chars().all(|c| c.is_ascii()) +pub(crate) const fn is_valid_ascii_string(input: &str) -> bool { + input.is_ascii() } /// Verifies that an input is a valid URI according to W3C RFC3986. diff --git a/pallets/pallet-asset-switch/src/lib.rs b/pallets/pallet-asset-switch/src/lib.rs index 8bc157375c..4409ca903b 100644 --- a/pallets/pallet-asset-switch/src/lib.rs +++ b/pallets/pallet-asset-switch/src/lib.rs @@ -72,6 +72,8 @@ const LOG_TARGET: &str = "runtime::pallet-asset-switch"; // very end of the development cycle of a pallet, and from time to time it should be commented out to catch any issues // other than the one generated by the `pallet::event` macro. #[allow(clippy::shadow_reuse)] +// map_err is used over inspect_err in the macro-generated code, and we have to ignore it. +#[allow(clippy::manual_inspect)] pub mod pallet { use crate::{ switch::{NewSwitchPairInfo, SwitchPairInfo, SwitchPairInfoV4, SwitchPairStatus, UnconfirmedSwitchInfo}, @@ -780,15 +782,13 @@ impl, I: 'static> Pallet { /// 3. Set the appendix, executed regardless of the outcome of the transfer: /// /// 3.1 Report back to our chain the assets in the holding registry. + /// /// This will contain either only the XCM fee token in case of successful /// transfer, or the XCM fee token + the amount of funds supposed to be /// transferred. - /// - /// 3.2 Deposit the un-transferred asset (only if the transfer - /// failed) back into our account. - /// + /// 3.2 Deposit the un-transferred asset (only if the transfer failed) + /// back into our account. /// 3.3 Refund any surplus weight. - /// /// 3.4 Deposit the remaining XCM fee assets in the user's account. /// /// 4. Withdraw the requested asset (this operation should be infallible diff --git a/pallets/pallet-asset-switch/src/mock.rs b/pallets/pallet-asset-switch/src/mock.rs index ed214a9c7e..d1bd17e84b 100644 --- a/pallets/pallet-asset-switch/src/mock.rs +++ b/pallets/pallet-asset-switch/src/mock.rs @@ -79,6 +79,12 @@ impl frame_system::Config for MockRuntime { type SS58Prefix = ConstU16<1>; type SystemWeightInfo = (); type Version = (); + + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, MaxEncodedLen, Encode, Decode, Debug, TypeInfo, Default)] diff --git a/pallets/pallet-asset-switch/src/xcm/match/mock.rs b/pallets/pallet-asset-switch/src/xcm/match/mock.rs index e128688237..78778dfa11 100644 --- a/pallets/pallet-asset-switch/src/xcm/match/mock.rs +++ b/pallets/pallet-asset-switch/src/xcm/match/mock.rs @@ -67,6 +67,11 @@ impl frame_system::Config for MockRuntime { type SS58Prefix = ConstU16<0>; type SystemWeightInfo = (); type Version = (); + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } impl pallet_balances::Config for MockRuntime { diff --git a/pallets/pallet-asset-switch/src/xcm/match/tests.rs b/pallets/pallet-asset-switch/src/xcm/match/tests.rs index f229d80ea6..f59859352c 100644 --- a/pallets/pallet-asset-switch/src/xcm/match/tests.rs +++ b/pallets/pallet-asset-switch/src/xcm/match/tests.rs @@ -115,6 +115,7 @@ fn successful_with_stored_v3() { #[test] fn successful_with_stored_v2() { + #[allow(deprecated)] let location = xcm::v2::MultiLocation { parents: 1, interior: xcm::v2::Junctions::X1(xcm::v2::Junction::Parachain(1_000)), diff --git a/pallets/pallet-asset-switch/src/xcm/query/mock.rs b/pallets/pallet-asset-switch/src/xcm/query/mock.rs index 7bfcc8dcdf..fbd82ab252 100644 --- a/pallets/pallet-asset-switch/src/xcm/query/mock.rs +++ b/pallets/pallet-asset-switch/src/xcm/query/mock.rs @@ -67,6 +67,11 @@ impl frame_system::Config for MockRuntime { type SS58Prefix = ConstU16<0>; type SystemWeightInfo = (); type Version = (); + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } impl pallet_balances::Config for MockRuntime { diff --git a/pallets/pallet-asset-switch/src/xcm/trade/switch_pair_remote_asset/mock.rs b/pallets/pallet-asset-switch/src/xcm/trade/switch_pair_remote_asset/mock.rs index 0f8a0f2e34..8b424b8a0c 100644 --- a/pallets/pallet-asset-switch/src/xcm/trade/switch_pair_remote_asset/mock.rs +++ b/pallets/pallet-asset-switch/src/xcm/trade/switch_pair_remote_asset/mock.rs @@ -67,6 +67,11 @@ impl frame_system::Config for MockRuntime { type SS58Prefix = ConstU16<0>; type SystemWeightInfo = (); type Version = (); + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } impl pallet_balances::Config for MockRuntime { diff --git a/pallets/pallet-asset-switch/src/xcm/trade/switch_pair_remote_asset/mod.rs b/pallets/pallet-asset-switch/src/xcm/trade/switch_pair_remote_asset/mod.rs index 245b6d5440..bb3641c5a2 100644 --- a/pallets/pallet-asset-switch/src/xcm/trade/switch_pair_remote_asset/mod.rs +++ b/pallets/pallet-asset-switch/src/xcm/trade/switch_pair_remote_asset/mod.rs @@ -224,9 +224,8 @@ where // We don't care if the pool is enabled, since we're sending all non-refunded // weight to the configured destination account (e.g., treasury). if self.remaining_fungible_balance > Zero::zero() { - let Ok(remaining_balance_as_local_currency) = LocalCurrencyBalanceOf::::try_from(self.remaining_fungible_balance).map_err(|e| { + let Ok(remaining_balance_as_local_currency) = LocalCurrencyBalanceOf::::try_from(self.remaining_fungible_balance).inspect_err(|_| { log::error!(target: LOG_TARGET, "Failed to convert remaining balance {:?} to local currency balance", self.remaining_fungible_balance); - e }) else { return; }; // No error should ever be thrown from inside this block. @@ -235,9 +234,8 @@ where &FeeDestinationAccount::get(), remaining_balance_as_local_currency, Preservation::Preserve, - ).map_err(|e| { + ).inspect_err(|_| { log::error!(target: LOG_TARGET, "Failed to transfer unused balance {:?} from switch pair pool account {:?} to specified account {:?}", remaining_balance_as_local_currency, switch_pair.pool_account, FeeDestinationAccount::get()); - e }); debug_assert!( diff --git a/pallets/pallet-asset-switch/src/xcm/trade/xcm_fee_asset/mock.rs b/pallets/pallet-asset-switch/src/xcm/trade/xcm_fee_asset/mock.rs index 475a638a78..f1640f7959 100644 --- a/pallets/pallet-asset-switch/src/xcm/trade/xcm_fee_asset/mock.rs +++ b/pallets/pallet-asset-switch/src/xcm/trade/xcm_fee_asset/mock.rs @@ -60,6 +60,11 @@ impl frame_system::Config for MockRuntime { type SS58Prefix = ConstU16<0>; type SystemWeightInfo = (); type Version = (); + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } parameter_types! { diff --git a/pallets/pallet-asset-switch/src/xcm/trade/xcm_fee_asset/mod.rs b/pallets/pallet-asset-switch/src/xcm/trade/xcm_fee_asset/mod.rs index 8b48335d1d..2a0a9c0e07 100644 --- a/pallets/pallet-asset-switch/src/xcm/trade/xcm_fee_asset/mod.rs +++ b/pallets/pallet-asset-switch/src/xcm/trade/xcm_fee_asset/mod.rs @@ -151,14 +151,13 @@ where .remote_xcm_fee .clone() .try_into() - .map_err(|e| { + .inspect_err(|e| { log::error!( target: LOG_TARGET, "Failed to convert stored asset ID {:?} into v4 AssetId with error {:?}", switch_pair.remote_xcm_fee, e ); - e }) .ok()?; // Double check the store asset fungibility type, in case it changes between diff --git a/pallets/pallet-asset-switch/src/xcm/trade/xcm_fee_asset/tests/buy_weight.rs b/pallets/pallet-asset-switch/src/xcm/trade/xcm_fee_asset/tests/buy_weight.rs index 179906fa2e..a7acfbd812 100644 --- a/pallets/pallet-asset-switch/src/xcm/trade/xcm_fee_asset/tests/buy_weight.rs +++ b/pallets/pallet-asset-switch/src/xcm/trade/xcm_fee_asset/tests/buy_weight.rs @@ -367,6 +367,7 @@ fn successful_on_stored_fungible_xcm_fee_asset_v3_with_input_fungible_and_non_fu #[test] fn successful_on_stored_fungible_xcm_fee_asset_v2_with_input_fungible() { + #[allow(deprecated)] let location = xcm::v2::MultiLocation { parents: 1, interior: xcm::v2::Junctions::X1(xcm::v2::Junction::Parachain(1_000)), @@ -404,6 +405,7 @@ fn successful_on_stored_fungible_xcm_fee_asset_v2_with_input_fungible() { #[test] fn fails_on_stored_fungible_xcm_fee_asset_v2_with_input_non_fungible() { + #[allow(deprecated)] let location = xcm::v2::MultiLocation { parents: 1, interior: xcm::v2::Junctions::X1(xcm::v2::Junction::Parachain(1_000)), @@ -442,6 +444,7 @@ fn fails_on_stored_fungible_xcm_fee_asset_v2_with_input_non_fungible() { #[test] fn successful_on_stored_fungible_xcm_fee_asset_v2_with_input_fungible_and_non_fungible() { + #[allow(deprecated)] let location = xcm::v2::MultiLocation { parents: 1, interior: xcm::v2::Junctions::X1(xcm::v2::Junction::Parachain(1_000)), @@ -737,6 +740,7 @@ fn skips_on_stored_non_fungible_xcm_fee_asset_v3_with_fungible_input() { #[test] fn skips_on_stored_non_fungible_xcm_fee_asset_v2_with_fungible_input() { + #[allow(deprecated)] let location = xcm::v2::MultiLocation { parents: 1, interior: xcm::v2::Junctions::X1(xcm::v2::Junction::Parachain(1_000)), @@ -748,6 +752,7 @@ fn skips_on_stored_non_fungible_xcm_fee_asset_v2_with_fungible_input() { SwitchPairStatus::Running, ); // Set XCM fee asset to the XCM version 2. + #[allow(deprecated)] let non_fungible_remote_xcm_fee_v2: xcm::v2::MultiAsset = xcm::v2::MultiAsset::try_from(new_switch_pair_info.remote_xcm_fee) .map(|asset| xcm::v2::MultiAsset { @@ -781,6 +786,7 @@ fn skips_on_stored_non_fungible_xcm_fee_asset_v2_with_fungible_input() { #[test] fn skips_on_stored_non_fungible_xcm_fee_asset_v2_with_non_fungible_input() { + #[allow(deprecated)] let location = xcm::v2::MultiLocation { parents: 1, interior: xcm::v2::Junctions::X1(xcm::v2::Junction::Parachain(1_000)), @@ -792,6 +798,7 @@ fn skips_on_stored_non_fungible_xcm_fee_asset_v2_with_non_fungible_input() { SwitchPairStatus::Running, ); // Set XCM fee asset to the XCM version 2. + #[allow(deprecated)] let non_fungible_remote_xcm_fee_v2: xcm::v2::MultiAsset = xcm::v2::MultiAsset::try_from(new_switch_pair_info.remote_xcm_fee) .map(|asset| xcm::v2::MultiAsset { diff --git a/pallets/pallet-asset-switch/src/xcm/trade/xcm_fee_asset/tests/refund_weight.rs b/pallets/pallet-asset-switch/src/xcm/trade/xcm_fee_asset/tests/refund_weight.rs index acf3cdc181..9c06259c6a 100644 --- a/pallets/pallet-asset-switch/src/xcm/trade/xcm_fee_asset/tests/refund_weight.rs +++ b/pallets/pallet-asset-switch/src/xcm/trade/xcm_fee_asset/tests/refund_weight.rs @@ -495,6 +495,7 @@ fn successful_on_stored_fungible_xcm_fee_asset_v3_with_zero_remaining_balance_an #[test] fn successful_on_stored_fungible_xcm_fee_asset_v2() { + #[allow(deprecated)] let location = xcm::v2::MultiLocation { parents: 1, interior: xcm::v2::Junctions::X1(xcm::v2::Junction::Parachain(1_000)), diff --git a/pallets/pallet-asset-switch/src/xcm/transact/mock.rs b/pallets/pallet-asset-switch/src/xcm/transact/mock.rs index 445ef94071..85ed282ca9 100644 --- a/pallets/pallet-asset-switch/src/xcm/transact/mock.rs +++ b/pallets/pallet-asset-switch/src/xcm/transact/mock.rs @@ -74,6 +74,11 @@ impl frame_system::Config for MockRuntime { type SS58Prefix = ConstU16<0>; type SystemWeightInfo = (); type Version = (); + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, MaxEncodedLen, Encode, Decode, Debug, TypeInfo, Default)] diff --git a/pallets/pallet-asset-switch/src/xcm/transfer/mock.rs b/pallets/pallet-asset-switch/src/xcm/transfer/mock.rs index d02eb65605..008235b584 100644 --- a/pallets/pallet-asset-switch/src/xcm/transfer/mock.rs +++ b/pallets/pallet-asset-switch/src/xcm/transfer/mock.rs @@ -61,6 +61,11 @@ impl frame_system::Config for MockRuntime { type SS58Prefix = ConstU16<0>; type SystemWeightInfo = (); type Version = (); + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } parameter_types! { diff --git a/pallets/pallet-asset-switch/src/xcm/transfer/switch_pair_remote_asset/mod.rs b/pallets/pallet-asset-switch/src/xcm/transfer/switch_pair_remote_asset/mod.rs index a7de6e0302..bc7c464145 100644 --- a/pallets/pallet-asset-switch/src/xcm/transfer/switch_pair_remote_asset/mod.rs +++ b/pallets/pallet-asset-switch/src/xcm/transfer/switch_pair_remote_asset/mod.rs @@ -49,9 +49,8 @@ where }; // 2. We only trust the EXACT configured remote location (no parent is allowed). - let Ok(stored_remote_reserve_location_v4): Result = switch_pair.remote_reserve_location.clone().try_into().map_err(|e| { + let Ok(stored_remote_reserve_location_v4): Result = switch_pair.remote_reserve_location.clone().try_into().inspect_err(|e| { log::error!(target: LOG_TARGET, "Failed to convert stored remote reserve location {:?} into v4 xcm version with error {:?}.", switch_pair.remote_reserve_location, e); - e }) else { return false; }; if stored_remote_reserve_location_v4 != *b { log::trace!( @@ -64,9 +63,8 @@ where } // 3. Verify the asset ID matches the remote asset ID to switch for local ones. - let Ok(stored_remote_asset_id): Result = switch_pair.remote_asset_id.clone().try_into().map_err(|e| { + let Ok(stored_remote_asset_id): Result = switch_pair.remote_asset_id.clone().try_into().inspect_err(|&e| { log::error!(target: LOG_TARGET, "Failed to convert stored remote asset ID {:?} into v4 xcm version with error {:?}.", switch_pair.remote_asset_id, e); - e }) else { return false; }; a.id == stored_remote_asset_id diff --git a/pallets/pallet-asset-switch/src/xcm/transfer/switch_pair_remote_asset/tests.rs b/pallets/pallet-asset-switch/src/xcm/transfer/switch_pair_remote_asset/tests.rs index 9d75967621..d6fa3d5be1 100644 --- a/pallets/pallet-asset-switch/src/xcm/transfer/switch_pair_remote_asset/tests.rs +++ b/pallets/pallet-asset-switch/src/xcm/transfer/switch_pair_remote_asset/tests.rs @@ -258,6 +258,7 @@ fn true_with_stored_remote_location_v3() { #[test] fn true_with_stored_remote_location_v2() { + #[allow(deprecated)] let location = xcm::v2::MultiLocation { parents: 1, interior: xcm::v2::Junctions::X1(xcm::v2::Junction::Parachain(1_000)), diff --git a/pallets/pallet-asset-switch/src/xcm/transfer/xcm_fee_asset/mod.rs b/pallets/pallet-asset-switch/src/xcm/transfer/xcm_fee_asset/mod.rs index 3429a857a0..a2b5312082 100644 --- a/pallets/pallet-asset-switch/src/xcm/transfer/xcm_fee_asset/mod.rs +++ b/pallets/pallet-asset-switch/src/xcm/transfer/xcm_fee_asset/mod.rs @@ -49,9 +49,8 @@ where }; // 2. We only trust the EXACT configured remote location (no parent is allowed). - let Ok(stored_remote_reserve_location_v4): Result = switch_pair.remote_reserve_location.clone().try_into().map_err(|e| { + let Ok(stored_remote_reserve_location_v4): Result = switch_pair.remote_reserve_location.clone().try_into().inspect_err(|e| { log::error!(target: LOG_TARGET, "Failed to convert stored remote reserve location {:?} into v4 xcm version with error {:?}.", switch_pair.remote_reserve_location, e); - e }) else { return false; }; if stored_remote_reserve_location_v4 != *b { log::trace!( @@ -64,9 +63,8 @@ where } // 3. Verify the asset ID matches the configured XCM fee asset ID. - let Ok(stored_remote_asset_fee): Result = switch_pair.remote_xcm_fee.clone().try_into().map_err(|e| { + let Ok(stored_remote_asset_fee): Result = switch_pair.remote_xcm_fee.clone().try_into().inspect_err(|e| { log::error!(target: LOG_TARGET, "Failed to convert stored remote asset fee {:?} into v4 xcm version with error {:?}.", switch_pair.remote_xcm_fee, e); - e }) else { return false; }; a.id == stored_remote_asset_fee.id diff --git a/pallets/pallet-asset-switch/src/xcm/transfer/xcm_fee_asset/tests.rs b/pallets/pallet-asset-switch/src/xcm/transfer/xcm_fee_asset/tests.rs index 23dfd5b24b..8c05fd8cc2 100644 --- a/pallets/pallet-asset-switch/src/xcm/transfer/xcm_fee_asset/tests.rs +++ b/pallets/pallet-asset-switch/src/xcm/transfer/xcm_fee_asset/tests.rs @@ -148,6 +148,7 @@ fn true_with_stored_xcm_fee_asset_v3() { #[test] fn true_with_stored_xcm_fee_asset_v2() { + #[allow(deprecated)] let location = xcm::v2::MultiLocation { parents: 1, interior: xcm::v2::Junctions::X1(xcm::v2::Junction::Parachain(1_000)), @@ -298,6 +299,7 @@ fn true_with_stored_remote_location_v3() { #[test] fn true_with_stored_remote_location_v2() { + #[allow(deprecated)] let location = xcm::v2::MultiLocation { parents: 1, interior: xcm::v2::Junctions::X1(xcm::v2::Junction::Parachain(1_000)), diff --git a/pallets/pallet-bonded-coins/src/lib.rs b/pallets/pallet-bonded-coins/src/lib.rs index 8512b50e20..441aa4ed30 100644 --- a/pallets/pallet-bonded-coins/src/lib.rs +++ b/pallets/pallet-bonded-coins/src/lib.rs @@ -54,6 +54,8 @@ pub use default_weights::WeightInfo; // very end of the development cycle of a pallet, and from time to time it should be commented out to catch any issues // other than the one generated by the `pallet::event` macro. #[allow(clippy::shadow_reuse)] +// map_err is used over inspect_err in the macro-generated code, and we have to ignore it. +#[allow(clippy::manual_inspect)] pub mod pallet { use frame_support::{ @@ -951,6 +953,8 @@ pub mod pallet { target_currency_id.clone(), &who, amount_to_burn, + // We don't care, if account gets dusted. + Preservation::Expendable, WithdrawalPrecision::Exact, Fortitude::Force, )?; @@ -1133,6 +1137,7 @@ pub mod pallet { asset_id.clone(), &who, Bounded::max_value(), + Preservation::Expendable, WithdrawalPrecision::BestEffort, Fortitude::Force, )? diff --git a/pallets/pallet-bonded-coins/src/migrations/v1.rs b/pallets/pallet-bonded-coins/src/migrations/v1.rs index 4f56bf7540..72c7fc6cd5 100644 --- a/pallets/pallet-bonded-coins/src/migrations/v1.rs +++ b/pallets/pallet-bonded-coins/src/migrations/v1.rs @@ -1,6 +1,6 @@ use frame_support::{ pallet_prelude::*, - traits::{Get, OnRuntimeUpgrade}, + traits::{Get, UncheckedOnRuntimeUpgrade}, }; use sp_runtime::traits::Saturating; @@ -98,7 +98,7 @@ fn v0_to_v1(old_value: v0::PoolDetailsOf) -> crate::PoolDetailsOf< pub struct InnerMigrateV0ToV1(core::marker::PhantomData); -impl OnRuntimeUpgrade for InnerMigrateV0ToV1 +impl UncheckedOnRuntimeUpgrade for InnerMigrateV0ToV1 where T::PoolId: sp_std::fmt::Debug, { diff --git a/pallets/pallet-bonded-coins/src/mock.rs b/pallets/pallet-bonded-coins/src/mock.rs index 1a77a47a86..8df479dd60 100644 --- a/pallets/pallet-bonded-coins/src/mock.rs +++ b/pallets/pallet-bonded-coins/src/mock.rs @@ -265,6 +265,11 @@ pub mod runtime { type SS58Prefix = SS58Prefix; type SystemWeightInfo = (); type Version = (); + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } parameter_types! { @@ -458,6 +463,7 @@ pub mod runtime { .map(|id| (id, vec![], vec![], DEFAULT_COLLATERAL_DENOMINATION)), ) .collect(), + next_asset_id: None, } .assimilate_storage(&mut storage) .expect("assimilate should not fail"); diff --git a/pallets/pallet-configuration/Cargo.toml b/pallets/pallet-configuration/Cargo.toml index a370fe83c6..6d21ba5573 100644 --- a/pallets/pallet-configuration/Cargo.toml +++ b/pallets/pallet-configuration/Cargo.toml @@ -34,6 +34,7 @@ frame-benchmarking = { workspace = true, optional = true } [features] default = ["std"] +mock = [] runtime-benchmarks = [ "cumulus-pallet-parachain-system/runtime-benchmarks", "frame-benchmarking", diff --git a/pallets/pallet-configuration/src/lib.rs b/pallets/pallet-configuration/src/lib.rs index ab5f22a5e4..0bfdafad0a 100644 --- a/pallets/pallet-configuration/src/lib.rs +++ b/pallets/pallet-configuration/src/lib.rs @@ -54,6 +54,8 @@ pub use crate::{configuration::Configuration, default_weights::WeightInfo, palle // very end of the development cycle of a pallet, and from time to time it should be commented out to catch any issues // other than the one generated by the `pallet::event` macro. #[allow(clippy::shadow_reuse)] +// map_err is used over inspect_err in the macro-generated code, and we have to ignore it. +#[allow(clippy::manual_inspect)] pub mod pallet { use super::*; diff --git a/pallets/pallet-configuration/src/mock.rs b/pallets/pallet-configuration/src/mock.rs index 5e5adfb972..00b178a134 100644 --- a/pallets/pallet-configuration/src/mock.rs +++ b/pallets/pallet-configuration/src/mock.rs @@ -80,6 +80,11 @@ pub mod runtime { type SS58Prefix = SS58Prefix; type OnSetCode = (); type MaxConsumers = frame_support::traits::ConstU32<16>; + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } parameter_types! { diff --git a/pallets/pallet-deposit-storage/src/benchmarking.rs b/pallets/pallet-deposit-storage/src/benchmarking.rs index e7cc4d500b..23e126d576 100644 --- a/pallets/pallet-deposit-storage/src/benchmarking.rs +++ b/pallets/pallet-deposit-storage/src/benchmarking.rs @@ -18,6 +18,7 @@ use frame_benchmarking::v2::*; +#[allow(clippy::multiple_bound_locations)] #[benchmarks( where T: Config + pallet_balances::Config, diff --git a/pallets/pallet-deposit-storage/src/deposit/mock.rs b/pallets/pallet-deposit-storage/src/deposit/mock.rs index c6e78cdb63..6ae496306d 100644 --- a/pallets/pallet-deposit-storage/src/deposit/mock.rs +++ b/pallets/pallet-deposit-storage/src/deposit/mock.rs @@ -86,6 +86,11 @@ impl frame_system::Config for TestRuntime { type SS58Prefix = ConstU16<1>; type SystemWeightInfo = (); type Version = (); + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } impl pallet_balances::Config for TestRuntime { diff --git a/pallets/pallet-deposit-storage/src/fungible/tests/mock.rs b/pallets/pallet-deposit-storage/src/fungible/tests/mock.rs index 4f59620251..f616d9faca 100644 --- a/pallets/pallet-deposit-storage/src/fungible/tests/mock.rs +++ b/pallets/pallet-deposit-storage/src/fungible/tests/mock.rs @@ -88,6 +88,11 @@ impl frame_system::Config for TestRuntime { type SS58Prefix = ConstU16<1>; type SystemWeightInfo = (); type Version = (); + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } impl pallet_balances::Config for TestRuntime { diff --git a/pallets/pallet-deposit-storage/src/lib.rs b/pallets/pallet-deposit-storage/src/lib.rs index 650dbb4a4c..ceaa997afd 100644 --- a/pallets/pallet-deposit-storage/src/lib.rs +++ b/pallets/pallet-deposit-storage/src/lib.rs @@ -59,6 +59,8 @@ const LOG_TARGET: &str = "runtime::pallet_deposit_storage"; // very end of the development cycle of a pallet, and from time to time it should be commented out to catch any issues // other than the one generated by the `pallet::event` macro. #[allow(clippy::shadow_reuse)] +// map_err is used over inspect_err in the macro-generated code, and we have to ignore it. +#[allow(clippy::manual_inspect)] pub mod pallet { use crate::{ default_weights::WeightInfo, diff --git a/pallets/pallet-deposit-storage/src/mock.rs b/pallets/pallet-deposit-storage/src/mock.rs index 5286e3a7bb..1812d5cc0c 100644 --- a/pallets/pallet-deposit-storage/src/mock.rs +++ b/pallets/pallet-deposit-storage/src/mock.rs @@ -73,6 +73,11 @@ impl frame_system::Config for TestRuntime { type SS58Prefix = ConstU16<1>; type SystemWeightInfo = (); type Version = (); + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } parameter_types! { diff --git a/pallets/pallet-did-lookup/src/benchmarking.rs b/pallets/pallet-did-lookup/src/benchmarking.rs index 4b82e59b9a..02499648d8 100644 --- a/pallets/pallet-did-lookup/src/benchmarking.rs +++ b/pallets/pallet-did-lookup/src/benchmarking.rs @@ -186,7 +186,7 @@ benchmarks_instance_pallet! { let sig = sp_io::crypto::ecdsa_sign_prehashed( KeyTypeId(*b"aura"), ð_public_key, - &Keccak256::digest(wrapped_payload).try_into().unwrap(), + &Keccak256::digest(wrapped_payload).into(), ).ok_or("Error while building signature.")?; make_free_for_did::(&caller); diff --git a/pallets/pallet-did-lookup/src/lib.rs b/pallets/pallet-did-lookup/src/lib.rs index 6390d4a60e..21131be59d 100644 --- a/pallets/pallet-did-lookup/src/lib.rs +++ b/pallets/pallet-did-lookup/src/lib.rs @@ -59,6 +59,8 @@ pub use crate::{default_weights::WeightInfo, pallet::*}; // very end of the development cycle of a pallet, and from time to time it should be commented out to catch any issues // other than the one generated by the `pallet::event` macro. #[allow(clippy::shadow_reuse)] +// map_err is used over inspect_err in the macro-generated code, and we have to ignore it. +#[allow(clippy::manual_inspect)] pub mod pallet { use crate::{ associate_account_request::AssociateAccountRequest, default_weights::WeightInfo, diff --git a/pallets/pallet-did-lookup/src/mock.rs b/pallets/pallet-did-lookup/src/mock.rs index c61a7e5ba2..f30877ecd5 100644 --- a/pallets/pallet-did-lookup/src/mock.rs +++ b/pallets/pallet-did-lookup/src/mock.rs @@ -81,6 +81,11 @@ impl frame_system::Config for Test { type SS58Prefix = SS58Prefix; type OnSetCode = (); type MaxConsumers = frame_support::traits::ConstU32<16>; + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } parameter_types! { diff --git a/pallets/pallet-did-lookup/src/tests/associate.rs b/pallets/pallet-did-lookup/src/tests/associate.rs index d0555ef468..c20e681d94 100644 --- a/pallets/pallet-did-lookup/src/tests/associate.rs +++ b/pallets/pallet-did-lookup/src/tests/associate.rs @@ -201,7 +201,7 @@ fn test_add_eth_association() { crate::signature::WrapType::Ethereum, ); - let sig = eth_pair.sign_prehashed(&Keccak256::digest(wrapped_payload).try_into().unwrap()); + let sig = eth_pair.sign_prehashed(&Keccak256::digest(wrapped_payload).into()); // new association. No overwrite assert_ok!(DidLookup::associate_account( diff --git a/pallets/pallet-dip-consumer/src/lib.rs b/pallets/pallet-dip-consumer/src/lib.rs index 19c4bbdf2e..4a1abced8c 100644 --- a/pallets/pallet-dip-consumer/src/lib.rs +++ b/pallets/pallet-dip-consumer/src/lib.rs @@ -50,6 +50,8 @@ const LOG_TARGET: &str = "dip::consumer::pallet_dip_consumer"; // very end of the development cycle of a pallet, and from time to time it should be commented out to catch any issues // other than the one generated by the `pallet::event` macro. #[allow(clippy::shadow_reuse)] +// map_err is used over inspect_err in the macro-generated code, and we have to ignore it. +#[allow(clippy::manual_inspect)] pub mod pallet { use super::*; @@ -202,10 +204,16 @@ pub mod pallet { // benchmarks while making sure the call is actually dispatched and passes any // filters the consumer proof verifier has set. cfg_if::cfg_if! { - if #[cfg(not(feature = "runtime-benchmark"))] { + if #[cfg(not(feature = "runtime-benchmarks"))] { call.dispatch(did_origin.into()) } else { - ().into() + log::debug!( + target: LOG_TARGET, + "Dispatching call {:#?} with origin {:#?}", + call, + did_origin + ); + Ok(().into()) } } } diff --git a/pallets/pallet-dip-consumer/src/mock.rs b/pallets/pallet-dip-consumer/src/mock.rs index 73470b69f5..159f8aa67c 100644 --- a/pallets/pallet-dip-consumer/src/mock.rs +++ b/pallets/pallet-dip-consumer/src/mock.rs @@ -67,6 +67,11 @@ impl frame_system::Config for TestRuntime { type SS58Prefix = ConstU16<1>; type SystemWeightInfo = (); type Version = (); + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } impl pallet_balances::Config for TestRuntime { @@ -193,6 +198,8 @@ impl ExtBuilder { for (subject, details) in self.1 { IdentityEntries::::insert(subject, details) } + + System::set_block_number(System::block_number() + 1); }); ext diff --git a/pallets/pallet-dip-consumer/src/tests/dispatch_as.rs b/pallets/pallet-dip-consumer/src/tests/dispatch_as.rs index 4a1851cdf0..e601fb7c4e 100644 --- a/pallets/pallet-dip-consumer/src/tests/dispatch_as.rs +++ b/pallets/pallet-dip-consumer/src/tests/dispatch_as.rs @@ -20,7 +20,7 @@ use frame_support::{assert_noop, assert_ok}; use frame_system::RawOrigin; use crate::{ - mock::{ExtBuilder, System, TestRuntime, SUBJECT, SUBMITTER}, + mock::{ExtBuilder, TestRuntime, SUBJECT, SUBMITTER}, Error, IdentityEntries, Pallet, }; @@ -30,8 +30,6 @@ fn dispatch_as_successful_no_details() { .with_balances(vec![(SUBMITTER, 10_000)]) .build() .execute_with(|| { - // Needed to test event generation. See for more context. - frame_system::Pallet::::set_block_number(1); assert!(IdentityEntries::::get(SUBJECT).is_none()); assert_ok!(Pallet::::dispatch_as( RawOrigin::Signed(SUBMITTER).into(), @@ -39,7 +37,9 @@ fn dispatch_as_successful_no_details() { true, Box::new(pallet_did_lookup::Call::associate_sender {}.into()) )); - System::assert_last_event( + + #[cfg(not(feature = "runtime-benchmarks"))] + crate::mock::System::assert_last_event( pallet_did_lookup::Event::::AssociationEstablished(SUBMITTER.into(), SUBJECT).into(), ); assert_eq!(IdentityEntries::::get(SUBJECT), Some(0)); @@ -53,15 +53,15 @@ fn dispatch_as_successful_existing_details() { .with_identity_details(vec![(SUBJECT, 100)]) .build() .execute_with(|| { - // Needed to test event generation. See for more context. - frame_system::Pallet::::set_block_number(1); assert_ok!(Pallet::::dispatch_as( RawOrigin::Signed(SUBMITTER).into(), SUBJECT, true, Box::new(pallet_did_lookup::Call::associate_sender {}.into()) )); - System::assert_last_event( + + #[cfg(not(feature = "runtime-benchmarks"))] + crate::mock::System::assert_last_event( pallet_did_lookup::Event::::AssociationEstablished(SUBMITTER.into(), SUBJECT).into(), ); // Details have been bumped up by the proof verifier, and correctly stored in diff --git a/pallets/pallet-dip-consumer/src/traits.rs b/pallets/pallet-dip-consumer/src/traits.rs index 11841a5323..2d679ce052 100644 --- a/pallets/pallet-dip-consumer/src/traits.rs +++ b/pallets/pallet-dip-consumer/src/traits.rs @@ -34,7 +34,7 @@ where /// The accepted type for a DIP identity proof. type Proof: Parameter; /// The type returned upon successful DIP proof verification. - type VerificationResult; + type VerificationResult: Debug; /// Verify a given DIP proof given the calling context, including the call /// being dispatched, the DIP subject dispatching it, the account submitting diff --git a/pallets/pallet-dip-provider/src/lib.rs b/pallets/pallet-dip-provider/src/lib.rs index 4d0593704c..10576cbb37 100644 --- a/pallets/pallet-dip-provider/src/lib.rs +++ b/pallets/pallet-dip-provider/src/lib.rs @@ -50,6 +50,8 @@ const LOG_TARGET: &str = "dip::provider::pallet_dip_provider"; // very end of the development cycle of a pallet, and from time to time it should be commented out to catch any issues // other than the one generated by the `pallet::event` macro. #[allow(clippy::shadow_reuse)] +// map_err is used over inspect_err in the macro-generated code, and we have to ignore it. +#[allow(clippy::manual_inspect)] pub mod pallet { use super::*; diff --git a/pallets/pallet-dip-provider/src/mock.rs b/pallets/pallet-dip-provider/src/mock.rs index cb1b1c1cc2..b4238f53fc 100644 --- a/pallets/pallet-dip-provider/src/mock.rs +++ b/pallets/pallet-dip-provider/src/mock.rs @@ -67,6 +67,11 @@ impl frame_system::Config for TestRuntime { type SS58Prefix = ConstU16<1>; type SystemWeightInfo = (); type Version = (); + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } impl crate::Config for TestRuntime { diff --git a/pallets/pallet-inflation/src/lib.rs b/pallets/pallet-inflation/src/lib.rs index 7843b3c4eb..b47d0a12f3 100644 --- a/pallets/pallet-inflation/src/lib.rs +++ b/pallets/pallet-inflation/src/lib.rs @@ -54,6 +54,8 @@ pub use crate::{default_weights::WeightInfo, pallet::*}; // very end of the development cycle of a pallet, and from time to time it should be commented out to catch any issues // other than the one generated by the `pallet::event` macro. #[allow(clippy::shadow_reuse)] +// map_err is used over inspect_err in the macro-generated code, and we have to ignore it. +#[allow(clippy::manual_inspect)] pub mod pallet { use super::WeightInfo; use frame_support::{ diff --git a/pallets/pallet-inflation/src/mock.rs b/pallets/pallet-inflation/src/mock.rs index 513741c40c..972af503e0 100644 --- a/pallets/pallet-inflation/src/mock.rs +++ b/pallets/pallet-inflation/src/mock.rs @@ -83,6 +83,11 @@ impl frame_system::Config for Test { type SS58Prefix = SS58Prefix; type OnSetCode = (); type MaxConsumers = frame_support::traits::ConstU32<16>; + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } parameter_types! { diff --git a/pallets/pallet-migration/src/lib.rs b/pallets/pallet-migration/src/lib.rs index 27f0b0fc3a..f63cd4acbd 100644 --- a/pallets/pallet-migration/src/lib.rs +++ b/pallets/pallet-migration/src/lib.rs @@ -41,6 +41,8 @@ pub use crate::{default_weights::WeightInfo, pallet::*}; // very end of the development cycle of a pallet, and from time to time it should be commented out to catch any issues // other than the one generated by the `pallet::event` macro. #[allow(clippy::shadow_reuse)] +// map_err is used over inspect_err in the macro-generated code, and we have to ignore it. +#[allow(clippy::manual_inspect)] pub mod pallet { use super::*; diff --git a/pallets/pallet-migration/src/mock.rs b/pallets/pallet-migration/src/mock.rs index 064446dac0..7b3211f7bf 100644 --- a/pallets/pallet-migration/src/mock.rs +++ b/pallets/pallet-migration/src/mock.rs @@ -115,6 +115,11 @@ impl frame_system::Config for Test { type SS58Prefix = SS58Prefix; type OnSetCode = (); type MaxConsumers = frame_support::traits::ConstU32<16>; + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } parameter_types! { diff --git a/pallets/pallet-relay-store/Cargo.toml b/pallets/pallet-relay-store/Cargo.toml index 04cc6522af..7f573ff9c9 100644 --- a/pallets/pallet-relay-store/Cargo.toml +++ b/pallets/pallet-relay-store/Cargo.toml @@ -20,7 +20,7 @@ sp-runtime = { workspace = true, features = ["std"] } sp-trie = { workspace = true, features = ["std"] } [dependencies] -cumulus-pallet-parachain-system = { workspace = true, features = ["parameterized-consensus-hook"] } +cumulus-pallet-parachain-system = { workspace = true } cumulus-primitives-core = { workspace = true } frame-support = { workspace = true } frame-system = { workspace = true } diff --git a/pallets/pallet-relay-store/src/benchmarking.rs b/pallets/pallet-relay-store/src/benchmarking.rs index 8e2c5882fe..5f78f1d18d 100644 --- a/pallets/pallet-relay-store/src/benchmarking.rs +++ b/pallets/pallet-relay-store/src/benchmarking.rs @@ -20,6 +20,7 @@ use crate::{Config, Pallet}; use frame_benchmarking::v2::*; use sp_std::vec::Vec; +#[allow(clippy::multiple_bound_locations)] #[benchmarks( where T: cumulus_pallet_parachain_system::Config diff --git a/pallets/pallet-relay-store/src/lib.rs b/pallets/pallet-relay-store/src/lib.rs index c037b2161d..19e12c4734 100644 --- a/pallets/pallet-relay-store/src/lib.rs +++ b/pallets/pallet-relay-store/src/lib.rs @@ -54,6 +54,8 @@ const LOG_TARGET: &str = "pallet_relay_store"; // very end of the development cycle of a pallet, and from time to time it should be commented out to catch any issues // other than the one generated by the `pallet::event` macro. #[allow(clippy::shadow_reuse)] +// map_err is used over inspect_err in the macro-generated code, and we have to ignore it. +#[allow(clippy::manual_inspect)] pub mod pallet { use super::*; @@ -114,7 +116,7 @@ pub mod pallet { pub(crate) fn on_finalize_internal(_n: BlockNumberFor) { // Called before the validation data is cleaned in the // parachain_system::on_finalize hook - let Some(new_validation_data) = cumulus_pallet_parachain_system::Pallet::::validation_data() else { + let Some(new_validation_data) = cumulus_pallet_parachain_system::ValidationData::::get() else { return; }; Self::store_new_validation_data(new_validation_data) diff --git a/pallets/pallet-relay-store/src/mock.rs b/pallets/pallet-relay-store/src/mock.rs index af38ec2700..a4c66a7d71 100644 --- a/pallets/pallet-relay-store/src/mock.rs +++ b/pallets/pallet-relay-store/src/mock.rs @@ -66,6 +66,11 @@ impl frame_system::Config for TestRuntime { type SS58Prefix = ConstU16<1>; type SystemWeightInfo = (); type Version = (); + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } parameter_types! { diff --git a/pallets/pallet-web3-names/src/benchmarking.rs b/pallets/pallet-web3-names/src/benchmarking.rs index 2fc5f5e940..3f64db0167 100644 --- a/pallets/pallet-web3-names/src/benchmarking.rs +++ b/pallets/pallet-web3-names/src/benchmarking.rs @@ -180,7 +180,6 @@ benchmarks_instance_pallet! { let web3_name_input: BoundedVec>::MaxNameLength> = BoundedVec::try_from( >::BenchmarkHelper::generate_name_input_with_length(>::MaxNameLength::get().saturated_into()) ).expect("BoundedVec creation should not fail."); - let web3_name_input_clone = web3_name_input.clone(); let origin_create = >::OwnerOrigin::generate_origin(deposit_owner_old.clone(), owner.clone()); make_free_for_did::(&deposit_owner_old); diff --git a/pallets/pallet-web3-names/src/lib.rs b/pallets/pallet-web3-names/src/lib.rs index be8614aef2..22fc391a80 100644 --- a/pallets/pallet-web3-names/src/lib.rs +++ b/pallets/pallet-web3-names/src/lib.rs @@ -53,6 +53,8 @@ pub use crate::{default_weights::WeightInfo, pallet::*}; // very end of the development cycle of a pallet, and from time to time it should be commented out to catch any issues // other than the one generated by the `pallet::event` macro. #[allow(clippy::shadow_reuse)] +// map_err is used over inspect_err in the macro-generated code, and we have to ignore it. +#[allow(clippy::manual_inspect)] pub mod pallet { use frame_support::{ pallet_prelude::*, diff --git a/pallets/pallet-web3-names/src/mock.rs b/pallets/pallet-web3-names/src/mock.rs index 17c66a6990..21b7168f39 100644 --- a/pallets/pallet-web3-names/src/mock.rs +++ b/pallets/pallet-web3-names/src/mock.rs @@ -116,6 +116,11 @@ pub(crate) mod runtime { type OnSetCode = (); type MaxConsumers = frame_support::traits::ConstU32<16>; type RuntimeTask = RuntimeTask; + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } parameter_types! { diff --git a/pallets/pallet-web3-names/src/tests/claim.rs b/pallets/pallet-web3-names/src/tests/claim.rs index dd2dce3a55..8e8af3ce78 100644 --- a/pallets/pallet-web3-names/src/tests/claim.rs +++ b/pallets/pallet-web3-names/src/tests/claim.rs @@ -86,8 +86,7 @@ fn claiming_successful() { #[test] fn claiming_invalid() { - let too_short_web3_names = vec![ - // Empty name + let too_short_web3_names = [ BoundedVec::try_from(b"".to_vec()).unwrap(), // Single-char name BoundedVec::try_from(b"1".to_vec()).unwrap(), @@ -95,8 +94,7 @@ fn claiming_invalid() { BoundedVec::try_from(b"10".to_vec()).unwrap(), ]; - let invalid_web3_names = vec![ - // Not allowed ASCII character name (invalid symbol) + let invalid_web3_names = [ BoundedVec::try_from(b"10:1".to_vec()).unwrap(), // Not allowed ASCII character name (uppercase letter) BoundedVec::try_from(b"abcdE".to_vec()).unwrap(), diff --git a/pallets/parachain-staking/src/lib.rs b/pallets/parachain-staking/src/lib.rs index 47a58f1425..185c4ce82d 100644 --- a/pallets/parachain-staking/src/lib.rs +++ b/pallets/parachain-staking/src/lib.rs @@ -150,6 +150,8 @@ pub use crate::{default_weights::WeightInfo, pallet::*}; // very end of the development cycle of a pallet, and from time to time it should be commented out to catch any issues // other than the one generated by the `pallet::event` macro. #[allow(clippy::shadow_reuse)] +// map_err is used over inspect_err in the macro-generated code, and we have to ignore it. +#[allow(clippy::manual_inspect)] pub mod pallet { use super::*; pub use crate::inflation::{InflationInfo, RewardRate, StakingInfo}; @@ -162,14 +164,14 @@ pub mod pallet { fungible::Balanced, tokens::{ fungible::{Inspect, MutateFreeze, Unbalanced}, - Fortitude, Precision, Preservation, + Fortitude, IdAmount, Precision, Preservation, }, BuildGenesisConfig, EstimateNextSessionRotation, Get, OnUnbalanced, StorageVersion, }, BoundedVec, }; use frame_system::pallet_prelude::*; - use pallet_balances::{Freezes, IdAmount}; + use pallet_balances::Freezes; use pallet_session::ShouldEndSession; use scale_info::TypeInfo; use sp_runtime::{ diff --git a/pallets/parachain-staking/src/mock.rs b/pallets/parachain-staking/src/mock.rs index c02b1484cc..fc2072e8c2 100644 --- a/pallets/parachain-staking/src/mock.rs +++ b/pallets/parachain-staking/src/mock.rs @@ -28,7 +28,7 @@ use frame_support::{ use frame_system::pallet_prelude::BlockNumberFor; use pallet_authorship::EventHandler; use sp_consensus_aura::sr25519::AuthorityId; -use sp_core::{ConstBool, H256}; +use sp_core::{ConstBool, ConstU64, H256}; use sp_runtime::{ impl_opaque_keys, testing::UintAuthorityId, @@ -93,6 +93,11 @@ impl frame_system::Config for Test { type SS58Prefix = SS58Prefix; type OnSetCode = (); type MaxConsumers = frame_support::traits::ConstU32<16>; + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } parameter_types! { pub const ExistentialDeposit: Balance = 1; @@ -120,6 +125,7 @@ impl pallet_aura::Config for Test { type DisabledValidators = (); type MaxAuthorities = MaxCollatorCandidates; type AllowMultipleBlocksPerSlot = ConstBool; + type SlotDuration = ConstU64<500>; } impl pallet_authorship::Config for Test { @@ -331,9 +337,12 @@ impl ExtBuilder { // NOTE: this will initialize the aura authorities // through OneSessionHandler::on_genesis_session - pallet_session::GenesisConfig:: { keys: session_keys } - .assimilate_storage(&mut t) - .expect("Session Pallet's storage can be assimilated"); + pallet_session::GenesisConfig:: { + keys: session_keys, + ..Default::default() + } + .assimilate_storage(&mut t) + .expect("Session Pallet's storage can be assimilated"); let mut ext = sp_io::TestExternalities::new(t); diff --git a/pallets/parachain-staking/src/set.rs b/pallets/parachain-staking/src/set.rs index b1075b07da..1dab658775 100644 --- a/pallets/parachain-staking/src/set.rs +++ b/pallets/parachain-staking/src/set.rs @@ -179,10 +179,10 @@ impl> OrderedSet { /// given element. /// /// 1. If the value is found, then Result::Ok is returned, containing the - /// index of the matching element. + /// index of the matching element. /// 2. If the value is not found, then Result::Err is returned, containing - /// the index where a matching element could be inserted while maintaining - /// sorted order. + /// the index where a matching element could be inserted while + /// maintaining sorted order. pub fn linear_search(&self, value: &T) -> Result { let size = self.0.len(); let mut loc: usize = size; diff --git a/pallets/parachain-staking/src/tests/stake.rs b/pallets/parachain-staking/src/tests/stake.rs index 953914ea4c..46e46499f1 100644 --- a/pallets/parachain-staking/src/tests/stake.rs +++ b/pallets/parachain-staking/src/tests/stake.rs @@ -18,10 +18,10 @@ //! Unit testing -use frame_support::{assert_noop, assert_ok, storage::bounded_btree_map::BoundedBTreeMap}; +use frame_support::{assert_noop, assert_ok, storage::bounded_btree_map::BoundedBTreeMap, traits::tokens::IdAmount}; use kilt_runtime_api_staking::StakingRates; use pallet_authorship::EventHandler; -use pallet_balances::{Freezes, IdAmount}; +use pallet_balances::Freezes; use sp_runtime::{traits::Zero, Perquintill}; diff --git a/pallets/public-credentials/src/lib.rs b/pallets/public-credentials/src/lib.rs index 4db6e5e90b..b88e5ba009 100644 --- a/pallets/public-credentials/src/lib.rs +++ b/pallets/public-credentials/src/lib.rs @@ -63,6 +63,8 @@ pub use crate::{ // very end of the development cycle of a pallet, and from time to time it should be commented out to catch any issues // other than the one generated by the `pallet::event` macro. #[allow(clippy::shadow_reuse)] +// map_err is used over inspect_err in the macro-generated code, and we have to ignore it. +#[allow(clippy::manual_inspect)] pub mod pallet { use super::*; diff --git a/pallets/public-credentials/src/mock.rs b/pallets/public-credentials/src/mock.rs index 7bd808b0b3..e45df57f57 100644 --- a/pallets/public-credentials/src/mock.rs +++ b/pallets/public-credentials/src/mock.rs @@ -303,6 +303,11 @@ pub(crate) mod runtime { type SS58Prefix = ConstU16<38>; type OnSetCode = (); type MaxConsumers = ConstU32<16>; + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } impl pallet_balances::Config for Test { diff --git a/runtime-api/did/src/lib.rs b/runtime-api/did/src/lib.rs index bbe96be603..b5097e0843 100644 --- a/runtime-api/did/src/lib.rs +++ b/runtime-api/did/src/lib.rs @@ -67,12 +67,12 @@ pub type RawDidLinkedInfo where + pub trait Did where DidIdentifier: Codec, AccountId: Codec, LinkableAccountId: Codec, - BlockNumber: Codec, - Key: Codec, + BlockNumber: Codec + MaxEncodedLen, + Key: Codec +Ord, Balance: Codec, LinkedResource: Codec, RuntimeCall: Codec, diff --git a/runtimes/common/src/assets.rs b/runtimes/common/src/assets.rs index 262d410436..18b255f01d 100644 --- a/runtimes/common/src/assets.rs +++ b/runtimes/common/src/assets.rs @@ -29,6 +29,7 @@ use public_credentials::CredentialEntry; use crate::{authorization::AuthorizationId, AccountId, Balance, BlockNumber, Hash}; #[cfg(feature = "runtime-benchmarks")] +#[allow(unused_imports)] pub use benchmarks::*; /// Thin wrapper around the `AssetDid` type, that implements the required diff --git a/runtimes/common/src/bonded_coins/mod.rs b/runtimes/common/src/bonded_coins/mod.rs index 2a59618d37..ea1724d59d 100644 --- a/runtimes/common/src/bonded_coins/mod.rs +++ b/runtimes/common/src/bonded_coins/mod.rs @@ -224,11 +224,17 @@ impl< asset: Self::AssetId, who: &AccountId, amount: Self::Balance, + preservation: Preservation, precision: Precision, force: Fortitude, ) -> Result { UnionOf::::burn_from( - asset, who, amount, precision, force, + asset, + who, + amount, + preservation, + precision, + force, ) } fn shelve(asset: Self::AssetId, who: &AccountId, amount: Self::Balance) -> Result { diff --git a/runtimes/common/src/constants.rs b/runtimes/common/src/constants.rs index 0b62bbb23d..9bc7afa2f2 100644 --- a/runtimes/common/src/constants.rs +++ b/runtimes/common/src/constants.rs @@ -591,6 +591,11 @@ pub mod public_credentials { } } +pub mod pallet_xcmp_queue { + pub const MAX_PAGE_SIZE: u32 = 128 * 1024; + pub const MAX_ACTIVE_OUTBOUND_CHANNELS: u32 = 128; +} + #[cfg(test)] mod tests { use super::*; diff --git a/runtimes/common/src/dip/deposit/mock.rs b/runtimes/common/src/dip/deposit/mock.rs index 0af9397360..73f9f3f94c 100644 --- a/runtimes/common/src/dip/deposit/mock.rs +++ b/runtimes/common/src/dip/deposit/mock.rs @@ -65,6 +65,11 @@ impl frame_system::Config for TestRuntime { type SS58Prefix = (); type SystemWeightInfo = (); type Version = (); + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } impl pallet_balances::Config for TestRuntime { diff --git a/runtimes/common/src/dip/merkle/v0/tests/generate_proof.rs b/runtimes/common/src/dip/merkle/v0/tests/generate_proof.rs index e6c14dd01b..7076e374b1 100644 --- a/runtimes/common/src/dip/merkle/v0/tests/generate_proof.rs +++ b/runtimes/common/src/dip/merkle/v0/tests/generate_proof.rs @@ -75,11 +75,8 @@ fn generate_proof_for_complete_linked_info() { linked_info.linked_accounts.iter(), ) .unwrap(); - let cross_chain_proof = DipDidProofWithVerifiedSubjectCommitment::new( - root, - proof, - TimeBoundDidSignature::new(signature.clone().into(), 100), - ); + let cross_chain_proof = + DipDidProofWithVerifiedSubjectCommitment::new(root, proof, TimeBoundDidSignature::new(signature.into(), 100)); let dip_origin_info = cross_chain_proof .verify_dip_proof::() @@ -161,11 +158,8 @@ fn generate_proof_for_complete_linked_info() { // 2. Generate a proof without any parts revealed. let CompleteMerkleProof { proof, root } = generate_proof(&linked_info, empty(), false, empty()).unwrap(); - let cross_chain_proof = DipDidProofWithVerifiedSubjectCommitment::new( - root, - proof, - TimeBoundDidSignature::new(signature.clone().into(), 100), - ); + let cross_chain_proof = + DipDidProofWithVerifiedSubjectCommitment::new(root, proof, TimeBoundDidSignature::new(signature.into(), 100)); // Should verify the merkle proof successfully. assert_ok!(cross_chain_proof.verify_dip_proof::()); @@ -177,11 +171,8 @@ fn generate_proof_for_complete_linked_info() { empty(), ) .unwrap(); - let cross_chain_proof = DipDidProofWithVerifiedSubjectCommitment::new( - root, - proof, - TimeBoundDidSignature::new(signature.clone().into(), 100), - ); + let cross_chain_proof = + DipDidProofWithVerifiedSubjectCommitment::new(root, proof, TimeBoundDidSignature::new(signature.into(), 100)); let dip_origin_info = cross_chain_proof .verify_dip_proof::() @@ -216,22 +207,16 @@ fn generate_proof_for_complete_linked_info() { // 4. Generate a proof with only the web3name revealed. let CompleteMerkleProof { proof, root } = generate_proof(&linked_info, empty(), true, empty()).unwrap(); - let cross_chain_proof = DipDidProofWithVerifiedSubjectCommitment::new( - root, - proof, - TimeBoundDidSignature::new(signature.clone().into(), 100), - ); + let cross_chain_proof = + DipDidProofWithVerifiedSubjectCommitment::new(root, proof, TimeBoundDidSignature::new(signature.into(), 100)); // Should verify the merkle proof successfully. assert_ok!(cross_chain_proof.verify_dip_proof::()); // 5. Generate a proof with only one linked account revealed. let CompleteMerkleProof { proof, root } = generate_proof(&linked_info, empty(), true, once(&linked_info.linked_accounts[0])).unwrap(); - let cross_chain_proof = DipDidProofWithVerifiedSubjectCommitment::new( - root, - proof, - TimeBoundDidSignature::new(signature.clone().into(), 100), - ); + let cross_chain_proof = + DipDidProofWithVerifiedSubjectCommitment::new(root, proof, TimeBoundDidSignature::new(signature.into(), 100)); // Should verify the merkle proof successfully. assert_ok!(cross_chain_proof.verify_dip_proof::()); @@ -244,11 +229,8 @@ fn generate_proof_for_complete_linked_info() { empty(), ) .unwrap(); - let cross_chain_proof = DipDidProofWithVerifiedSubjectCommitment::new( - root, - proof, - TimeBoundDidSignature::new(signature.clone().into(), 100), - ); + let cross_chain_proof = + DipDidProofWithVerifiedSubjectCommitment::new(root, proof, TimeBoundDidSignature::new(signature.into(), 100)); let dip_origin_info = cross_chain_proof .verify_dip_proof::() .and_then(|r| r.verify_signature_time(&50)) diff --git a/runtimes/common/src/dip/mock.rs b/runtimes/common/src/dip/mock.rs index 341ab533dd..c006abcf39 100644 --- a/runtimes/common/src/dip/mock.rs +++ b/runtimes/common/src/dip/mock.rs @@ -87,6 +87,11 @@ impl frame_system::Config for TestRuntime { type SS58Prefix = ConstU16<1>; type SystemWeightInfo = (); type Version = (); + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } impl pallet_balances::Config for TestRuntime { @@ -201,7 +206,7 @@ pub(crate) fn create_linked_info( ) -> LinkedDidInfoOf { let did_details = { let mut details = generate_base_did_details(auth_key.clone(), Some(SUBMITTER)); - let att_key = DidVerificationKey::Sr25519(sr25519::Public(auth_key.blake2_256())); + let att_key = DidVerificationKey::Sr25519(sr25519::Public::from_raw(auth_key.blake2_256())); let del_key = DidVerificationKey::Account(SUBMITTER); details .update_attestation_key(att_key, BlockNumberFor::::default()) diff --git a/runtimes/common/src/fees.rs b/runtimes/common/src/fees.rs index 4866177bda..dd9d5dc779 100644 --- a/runtimes/common/src/fees.rs +++ b/runtimes/common/src/fees.rs @@ -47,7 +47,7 @@ where Beneficiary2: OnUnbalanced>, Ratio: Get<(u32, u32)>, { - fn on_unbalanceds(mut fees_then_tips: impl Iterator>) { + fn on_unbalanceds(mut fees_then_tips: impl Iterator>) { let ratio = Ratio::get(); if let Some(fees) = fees_then_tips.next() { let mut split = fees.ration(ratio.0, ratio.1); @@ -220,6 +220,11 @@ mod tests { type SS58Prefix = (); type OnSetCode = (); type MaxConsumers = frame_support::traits::ConstU32<16>; + type MultiBlockMigrator = (); + type SingleBlockMigrations = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); } impl pallet_balances::Config for Test { diff --git a/runtimes/common/src/lib.rs b/runtimes/common/src/lib.rs index 358d6e9e8a..db5e15818e 100644 --- a/runtimes/common/src/lib.rs +++ b/runtimes/common/src/lib.rs @@ -35,8 +35,9 @@ use frame_support::{ use frame_system::limits; use pallet_balances::Pallet as PalletBalance; use pallet_transaction_payment::{Multiplier, TargetedFeeAdjustment}; +use sp_core::{crypto::Pair, Public}; use sp_runtime::{ - generic, + format, generic, traits::{BlakeTwo256, Bounded, IdentifyAccount, Verify}, FixedPointNumber, MultiAddress, MultiSignature, Perquintill, SaturatedConversion, }; @@ -53,7 +54,6 @@ pub mod did; pub mod dip; pub mod errors; pub mod fees; -pub mod migrations; pub mod pallet_id; pub mod session; pub mod web3_names; @@ -240,3 +240,20 @@ where debug_assert!(result.is_ok(), "The whole credit cannot be countered"); } } + +/// Generates an account ID from a given seed. This function is primarily +/// intended for use in genesis state generation and should not be used at +/// runtime, as it may panic if the seed is invalid. +pub fn get_account_id_from_secret(seed: &str) -> AccountId +where + AccountPublic: From<::Public>, +{ + AccountPublic::from(get_public_key_from_secret::(seed)).into_account() +} + +pub fn get_public_key_from_secret(seed: &str) -> ::Public { + #[allow(clippy::expect_used)] + TPublic::Pair::from_string(&format!("//{}", seed), None) + .expect("static values are valid; qed") + .public() +} diff --git a/runtimes/common/src/migrations.rs b/runtimes/common/src/migrations.rs deleted file mode 100644 index ef69f9ed5c..0000000000 --- a/runtimes/common/src/migrations.rs +++ /dev/null @@ -1,88 +0,0 @@ -// KILT Blockchain – -// Copyright (C) 2025, KILT Foundation - -// The KILT Blockchain is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// The KILT Blockchain is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - -// If you feel like getting in touch with us, you can do so at - -use frame_support::{ - traits::{GetStorageVersion, OnRuntimeUpgrade, PalletInfoAccess, StorageVersion}, - weights::Weight, -}; -use sp_core::Get; -use sp_std::{fmt::Debug, marker::PhantomData}; -use sp_weights::RuntimeDbWeight; - -const LOG_TARGET: &str = "migration::BumpStorageVersion"; - -/// There are some pallets without a storage version. -/// Based on the changes in the PR , -/// pallets without a storage version or with a wrong version throw an error -/// in the try state tests. -pub struct BumpStorageVersion(PhantomData<(T, W)>) -where - T: GetStorageVersion + PalletInfoAccess, - T::CurrentStorageVersion: Debug + Into, - StorageVersion: PartialOrd, - W: Get; - -impl OnRuntimeUpgrade for BumpStorageVersion -where - T: GetStorageVersion + PalletInfoAccess, - T::CurrentStorageVersion: Debug + Into, - StorageVersion: PartialOrd, - W: Get, -{ - #[cfg(feature = "try-runtime")] - fn pre_upgrade() -> Result, sp_runtime::TryRuntimeError> { - let (on_chain_version, current_version) = (T::on_chain_storage_version(), T::current_storage_version()); - let pallet_name = T::name(); - if on_chain_version < current_version { - log::trace!(target: LOG_TARGET, "Pallet {:?} to be migrated from version {:?} to version {:?}.", pallet_name, on_chain_version, current_version); - } else { - log::trace!(target: LOG_TARGET, "Pallet {:?} already on latest version {:?}. No migration will run.", pallet_name, current_version); - } - Ok([].into()) - } - - fn on_runtime_upgrade() -> Weight { - log::info!(target: LOG_TARGET, "Initiating migration."); - - let (on_chain_version, current_version) = (T::on_chain_storage_version(), T::current_storage_version()); - let pallet_name = T::name(); - - if on_chain_version < current_version { - log::trace!(target: LOG_TARGET, "Pallet {:?} to be migrated from version {:?} to version {:?}.", pallet_name, on_chain_version, current_version); - current_version.into().put::(); - W::get().reads_writes(1, 1) - } else { - log::trace!(target: LOG_TARGET, "Pallet {:?} already on latest version {:?}. No migration will run.", pallet_name, current_version); - W::get().reads(1) - } - } - - #[cfg(feature = "try-runtime")] - fn post_upgrade(_state: sp_std::vec::Vec) -> Result<(), sp_runtime::TryRuntimeError> { - let (on_chain_version, current_version) = (T::on_chain_storage_version(), T::current_storage_version()); - - if on_chain_version < current_version { - log::error!(target: LOG_TARGET, "Storage version for pallet {:?} was not updated to the latest version {:?}.", T::name(), current_version); - Err(sp_runtime::TryRuntimeError::Other( - "Pallet storage version was not updated to the latest version.", - )) - } else { - Ok(()) - } - } -} diff --git a/runtimes/kestrel/src/lib.rs b/runtimes/kestrel/src/lib.rs index 758758ec7f..5e0a8709e0 100644 --- a/runtimes/kestrel/src/lib.rs +++ b/runtimes/kestrel/src/lib.rs @@ -31,7 +31,7 @@ include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs")); use frame_support::{ construct_runtime, - genesis_builder_helper::{build_config, create_default_config}, + genesis_builder_helper::{build_state, get_preset}, parameter_types, traits::{Everything, InstanceFilter}, weights::{constants::RocksDbWeight, ConstantMultiplier, IdentityFee, Weight}, @@ -50,6 +50,7 @@ use scale_info::TypeInfo; use sp_api::impl_runtime_apis; use sp_consensus_aura::{ed25519::AuthorityId as AuraId, SlotDuration}; use sp_core::{ConstBool, ConstU32, ConstU64, OpaqueMetadata}; +use sp_genesis_builder::PresetId; use sp_runtime::{ create_runtime_str, generic, impl_opaque_keys, traits::{AccountIdLookup, BlakeTwo256, Block as BlockT, NumberFor, OpaqueKeys}, @@ -199,6 +200,11 @@ impl frame_system::Config for Runtime { /// The set code logic, just the default since we're not a parachain. type OnSetCode = (); type MaxConsumers = ConstU32<16>; + type MultiBlockMigrator = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); + type SingleBlockMigrations = (); } /// Maximum number of nominators per validator. @@ -214,6 +220,7 @@ impl pallet_aura::Config for Runtime { type DisabledValidators = (); type MaxAuthorities = MaxAuthorities; type AllowMultipleBlocksPerSlot = ConstBool; + type SlotDuration = ConstU64<6000>; } impl pallet_grandpa::Config for Runtime { @@ -736,7 +743,7 @@ impl did::DeriveDidCallAuthorizationVerificationKeyRelationship for RuntimeCall fn derive_verification_key_relationship(&self) -> did::DeriveDidCallKeyRelationshipResult { fn single_key_relationship(calls: &[RuntimeCall]) -> did::DeriveDidCallKeyRelationshipResult { let init = calls - .get(0) + .first() .ok_or(did::RelationshipDeriveError::InvalidCallParameter)? .derive_verification_key_relationship()?; calls @@ -848,7 +855,7 @@ impl_runtime_apis! { Executive::execute_block(block); } - fn initialize_block(header: &::Header) { + fn initialize_block(header: &::Header) -> sp_runtime::ExtrinsicInclusionMode { Executive::initialize_block(header) } } @@ -970,7 +977,7 @@ impl_runtime_apis! { } fn authorities() -> Vec { - Aura::authorities().into_inner() + pallet_aura::Authorities::::get().into_inner() } } @@ -1224,13 +1231,16 @@ impl_runtime_apis! { } impl sp_genesis_builder::GenesisBuilder for Runtime { + fn build_state(config: Vec) -> sp_genesis_builder::Result { + build_state::(config) + } - fn create_default_config() -> Vec { - create_default_config::() + fn get_preset(id: &Option) -> Option> { + get_preset::(id, |_| None) } - fn build_config(config: Vec) -> sp_genesis_builder::Result { - build_config::(config) + fn preset_names() -> Vec { + Default::default() } } diff --git a/runtimes/peregrine/Cargo.toml b/runtimes/peregrine/Cargo.toml index e71fae39f9..24dc7c4403 100644 --- a/runtimes/peregrine/Cargo.toml +++ b/runtimes/peregrine/Cargo.toml @@ -19,10 +19,12 @@ sp-io = { workspace = true } [dependencies] # External dependencies +anyhow = { workspace = true } cfg-if = { workspace = true } log = { workspace = true } parity-scale-codec = { workspace = true, features = ["derive"] } scale-info = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } hex-literal = { workspace = true, optional = true } @@ -99,7 +101,7 @@ sp-genesis-builder = { workspace = true } # Cumulus dependencies cumulus-pallet-aura-ext = { workspace = true } -cumulus-pallet-parachain-system = { workspace = true, features = ["parameterized-consensus-hook"] } +cumulus-pallet-parachain-system = { workspace = true } cumulus-pallet-xcm = { workspace = true } cumulus-pallet-xcmp-queue = { workspace = true } cumulus-primitives-aura = { workspace = true } @@ -124,6 +126,15 @@ frame-system-benchmarking = { workspace = true, optional = true } # Runtime tests frame-try-runtime = { workspace = true, optional = true } +# ISMP +ismp = { workspace = true } +ismp-parachain = { workspace = true } +ismp-parachain-runtime-api = { workspace = true } +pallet-hyperbridge = { workspace = true } +pallet-ismp = { workspace = true, features = ["unsigned"] } +pallet-ismp-runtime-api = { workspace = true } +pallet-token-gateway = { workspace = true } + [features] default = ["std"] fast-gov = ["runtime-common/fast-gov"] @@ -142,6 +153,7 @@ runtime-benchmarks = [ "frame-system-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", "hex-literal", + "ismp-parachain/runtime-benchmarks", "kilt-support/runtime-benchmarks", "pallet-asset-switch/runtime-benchmarks", "pallet-assets/runtime-benchmarks", @@ -164,6 +176,7 @@ runtime-benchmarks = [ "pallet-sudo/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", "pallet-tips/runtime-benchmarks", + "pallet-token-gateway/runtime-benchmarks", "pallet-treasury/runtime-benchmarks", "pallet-utility/runtime-benchmarks", "pallet-vesting/runtime-benchmarks", @@ -198,6 +211,9 @@ std = [ "frame-system-rpc-runtime-api/std", "frame-system/std", "frame-try-runtime?/std", + "ismp-parachain-runtime-api/std", + "ismp-parachain/std", + "ismp/std", "kilt-runtime-api-did/std", "kilt-runtime-api-dip-provider/std", "kilt-runtime-api-public-credentials/std", @@ -219,6 +235,8 @@ std = [ "pallet-dip-provider/std", "pallet-indices/std", "pallet-inflation/std", + "pallet-ismp-runtime-api/std", + "pallet-ismp/std", "pallet-membership/std", "pallet-message-queue/std", "pallet-migration/std", @@ -230,6 +248,7 @@ std = [ "pallet-sudo/std", "pallet-timestamp/std", "pallet-tips/std", + "pallet-token-gateway/std", "pallet-transaction-payment-rpc-runtime-api/std", "pallet-transaction-payment/std", "pallet-treasury/std", @@ -275,6 +294,7 @@ try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "frame-try-runtime", + "ismp-parachain/try-runtime", "kilt-support/try-runtime", "pallet-asset-switch/try-runtime", "pallet-assets/try-runtime", @@ -289,6 +309,7 @@ try-runtime = [ "pallet-dip-provider/try-runtime", "pallet-indices/try-runtime", "pallet-inflation/try-runtime", + "pallet-ismp/try-runtime", "pallet-membership/try-runtime", "pallet-message-queue/try-runtime", "pallet-migration/try-runtime", @@ -300,6 +321,7 @@ try-runtime = [ "pallet-sudo/try-runtime", "pallet-timestamp/try-runtime", "pallet-tips/try-runtime", + "pallet-token-gateway/try-runtime", "pallet-transaction-payment/try-runtime", "pallet-treasury/try-runtime", "pallet-utility/try-runtime", diff --git a/runtimes/peregrine/src/benchmarks/mod.rs b/runtimes/peregrine/src/benchmarks/mod.rs index 19a42e18c6..f10abb1c07 100644 --- a/runtimes/peregrine/src/benchmarks/mod.rs +++ b/runtimes/peregrine/src/benchmarks/mod.rs @@ -39,9 +39,9 @@ use xcm::v4::{Asset, Assets, Fungibility, Location}; use crate::{ xcm::XcmConfig, AllPalletsWithSystem, AssetSwitchPool1, Attestation, Balances, BondedCurrencies, BondedFungibles, Collators, Council, Ctype, Delegation, Democracy, DepositStorage, Did, DidLookup, DipProvider, Fungibles, Indices, - MessageQueue, Migration, Multisig, ParachainStaking, ParachainSystem, Preimage, Proxy, PublicCredentials, Runtime, - RuntimeEvent, Scheduler, Sudo, System, TechnicalCommittee, TechnicalMembership, Timestamp, Tips, TipsMembership, - Treasury, Utility, Vesting, Web3Names, + IsmpParachain, MessageQueue, Migration, Multisig, ParachainStaking, ParachainSystem, Preimage, Proxy, + PublicCredentials, Runtime, RuntimeEvent, Scheduler, Sudo, System, TechnicalCommittee, TechnicalMembership, + Timestamp, Tips, TipsMembership, TokenGateway, Treasury, Utility, Vesting, Web3Names, }; pub(crate) mod asset_switch; @@ -105,6 +105,9 @@ define_benchmarks!( // pallet assets instances [pallet_assets, Fungibles] [pallet_bonded_assets, BondedFungibles] + // ISMP + [ismp_parachain, IsmpParachain] + [pallet_token_gateway, TokenGateway] ); impl pallet_xcm::benchmarking::Config for Runtime { diff --git a/runtimes/peregrine/src/genesis_state.rs b/runtimes/peregrine/src/genesis_state.rs new file mode 100644 index 0000000000..d61481b652 --- /dev/null +++ b/runtimes/peregrine/src/genesis_state.rs @@ -0,0 +1,148 @@ +// KILT Blockchain – +// Copyright (C) 2025, KILT Foundation + +// The KILT Blockchain is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// The KILT Blockchain is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +// If you feel like getting in touch with us, you can do so at +#![allow(clippy::expect_used)] + +use crate::{ + BalancesConfig, CouncilConfig, ParachainInfoConfig, ParachainStakingConfig, PolkadotXcmConfig, + RuntimeGenesisConfig, SessionConfig, SessionKeys, SudoConfig, TechnicalCommitteeConfig, +}; +use runtime_common::{ + constants::{kilt_inflation_config, staking::MinCollatorStake, KILT, MAX_COLLATOR_STAKE}, + get_account_id_from_secret, get_public_key_from_secret, AccountId, AuthorityId, Balance, +}; +use sp_core::sr25519; +use sp_genesis_builder::PresetId; +use sp_std::{vec, vec::Vec}; + +pub const KILT_PARA_ID: u32 = 2_086; +const SAFE_XCM_VERSION: u32 = xcm::prelude::XCM_VERSION; +const NEW_RUNTIME_PRESET: &str = "new"; + +pub mod development { + + use super::*; + + pub fn generate_genesis_state() -> serde_json::Value { + let alice = ( + get_account_id_from_secret::("Alice"), + get_public_key_from_secret::("Alice"), + ); + let bob = ( + get_account_id_from_secret::("Bob"), + get_public_key_from_secret::("Bob"), + ); + let endowed_accounts = [ + alice.0.clone(), + bob.0.clone(), + get_account_id_from_secret::("Charlie"), + get_account_id_from_secret::("Dave"), + get_account_id_from_secret::("Eve"), + get_account_id_from_secret::("Ferdie"), + ]; + + let config = RuntimeGenesisConfig { + balances: BalancesConfig { + balances: endowed_accounts.map(|acc| (acc, 10_000_000 * KILT)).to_vec(), + }, + session: SessionConfig { + keys: [alice.clone(), bob.clone()] + .map(|(acc, key)| (acc.clone(), acc, SessionKeys { aura: key })) + .to_vec(), + ..Default::default() + }, + sudo: SudoConfig { + key: Some(alice.0.clone()), + }, + parachain_info: ParachainInfoConfig { + parachain_id: KILT_PARA_ID.into(), + ..Default::default() + }, + parachain_staking: ParachainStakingConfig { + stakers: [alice.clone(), bob.clone()] + .map(|(acc, _)| -> (AccountId, Option, Balance) { + (acc, None, 2u128.saturating_mul(MinCollatorStake::get())) + }) + .to_vec(), + inflation_config: kilt_inflation_config(), + max_candidate_stake: MAX_COLLATOR_STAKE, + }, + council: CouncilConfig { + members: [alice.clone(), bob.clone()].map(|(acc, _)| acc).to_vec(), + phantom: Default::default(), + }, + technical_committee: TechnicalCommitteeConfig { + members: [alice, bob].map(|(acc, _)| acc).to_vec(), + phantom: Default::default(), + }, + polkadot_xcm: PolkadotXcmConfig { + safe_xcm_version: Some(SAFE_XCM_VERSION), + ..Default::default() + }, + ..Default::default() + }; + + serde_json::to_value(config).expect("Could not build genesis config.") + } +} + +pub mod production { + use super::*; + + pub fn generate_genesis_state() -> serde_json::Value { + let config = RuntimeGenesisConfig { + parachain_info: ParachainInfoConfig { + parachain_id: KILT_PARA_ID.into(), + ..Default::default() + }, + polkadot_xcm: PolkadotXcmConfig { + safe_xcm_version: Some(SAFE_XCM_VERSION), + ..Default::default() + }, + ..Default::default() + }; + + serde_json::to_value(config).expect("Could not build genesis config.") + } +} + +/// Provides the JSON representation of predefined genesis config for given +/// `id`. +pub fn get_preset(id: &PresetId) -> Option> { + let patch = match id.try_into() { + Ok(sp_genesis_builder::DEV_RUNTIME_PRESET) | Ok(sp_genesis_builder::LOCAL_TESTNET_RUNTIME_PRESET) => { + development::generate_genesis_state() + } + Ok(NEW_RUNTIME_PRESET) => production::generate_genesis_state(), + _ => return None, + }; + + Some( + serde_json::to_string(&patch) + .expect("serialization to json is expected to work. qed.") + .into_bytes(), + ) +} + +/// List of supported presets. +pub fn preset_names() -> Vec { + vec![ + PresetId::from(sp_genesis_builder::DEV_RUNTIME_PRESET), + PresetId::from(sp_genesis_builder::LOCAL_TESTNET_RUNTIME_PRESET), + PresetId::from(NEW_RUNTIME_PRESET), + ] +} diff --git a/runtimes/peregrine/src/governance.rs b/runtimes/peregrine/src/governance.rs index 6969ed983d..d0de6eb0d2 100644 --- a/runtimes/peregrine/src/governance.rs +++ b/runtimes/peregrine/src/governance.rs @@ -27,10 +27,10 @@ use frame_support::{ }; use frame_system::{EnsureRoot, EnsureSigned}; use runtime_common::{ - constants::{self, KILT}, + constants::{self}, pallet_id, AccountId, Balance, BlockWeights, Tippers, }; -use sp_core::{ConstBool, ConstU128, ConstU32, ConstU64}; +use sp_core::{ConstBool, ConstU32, ConstU64}; use sp_runtime::{traits::AccountIdLookup, Perbill, Permill}; use crate::{ @@ -96,19 +96,14 @@ parameter_types! { impl pallet_treasury::Config for Runtime { type PalletId = pallet_id::Treasury; type Currency = Balances; - type ApproveOrigin = RootOrCollectiveProportion; type RejectOrigin = RootOrCollectiveProportion; type RuntimeEvent = RuntimeEvent; - type OnSlash = Treasury; - type ProposalBond = ProposalBond; - type ProposalBondMinimum = ConstU128<{ 20 * KILT }>; - type ProposalBondMaximum = (); type SpendPeriod = ConstU64<{ constants::governance::SPEND_PERIOD }>; #[cfg(not(feature = "runtime-benchmarks"))] type SpendOrigin = frame_support::traits::NeverEnsureOrigin; #[cfg(feature = "runtime-benchmarks")] type SpendOrigin = - frame_system::EnsureWithSuccess, AccountId, ConstU128<{ Balance::max_value() }>>; + frame_system::EnsureWithSuccess, AccountId, sp_core::ConstU128<{ Balance::MAX }>>; type Burn = Burn; type BurnDestination = (); type SpendFunds = (); @@ -135,6 +130,7 @@ impl pallet_tips::Config for Runtime { type RuntimeEvent = RuntimeEvent; type WeightInfo = weights::pallet_tips::WeightInfo; type MaxTipAmount = constants::tips::MaxTipAmount; + type OnSlash = Treasury; } #[allow(clippy::arithmetic_side_effects)] @@ -161,7 +157,7 @@ impl pallet_collective::Config for Runtime { type SetMembersOrigin = EnsureRoot; } -type TechnicalCollective = pallet_collective::Instance2; +pub(crate) type TechnicalCollective = pallet_collective::Instance2; impl pallet_collective::Config for Runtime { type RuntimeOrigin = RuntimeOrigin; type MaxProposalWeight = MaxProposalWeight; diff --git a/runtimes/peregrine/src/ismp.rs b/runtimes/peregrine/src/ismp.rs new file mode 100644 index 0000000000..c5075c9221 --- /dev/null +++ b/runtimes/peregrine/src/ismp.rs @@ -0,0 +1,103 @@ +// KILT Blockchain – +// Copyright (C) 2025, KILT Foundation + +// The KILT Blockchain is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// The KILT Blockchain is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +// If you feel like getting in touch with us, you can do so at + +use frame_support::parameter_types; +use ismp::{host::StateMachine, module::IsmpModule, router::IsmpRouter}; +use runtime_common::{AccountId, Balance}; +use sp_core::{ConstU8, Get}; +use sp_std::{boxed::Box, vec::Vec}; +use xcm::v4::Location; + +use crate::{ + governance::{RootOrCollectiveProportion, TechnicalCollective}, + Balances, Fungibles, Hyperbridge, Ismp, IsmpParachain, Runtime, RuntimeEvent, Timestamp, TokenGateway, Treasury, +}; + +parameter_types! { + // The hyperbridge parachain on Polkadot + pub const Coprocessor: Option = Some(StateMachine::Polkadot(4009)); + pub const HostStateMachine: StateMachine = StateMachine::Polkadot(2086); +} + +#[derive(Default)] +pub struct Router; + +impl IsmpRouter for Router { + fn module_for_id(&self, input: Vec) -> Result, anyhow::Error> { + match input.as_slice() { + pallet_hyperbridge::PALLET_HYPERBRIDGE_ID => Ok(Box::new(pallet_hyperbridge::Pallet::::default())), + id if TokenGateway::is_token_gateway(id) => { + Ok(Box::new(pallet_token_gateway::Pallet::::default())) + } + _ => Err(ismp::Error::ModuleNotFound(input))?, + } + } +} + +impl pallet_ismp::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type AdminOrigin = RootOrCollectiveProportion; + type HostStateMachine = HostStateMachine; + type TimestampProvider = Timestamp; + type Balance = Balance; + type Currency = Balances; + type Coprocessor = Coprocessor; + type ConsensusClients = (ismp_parachain::ParachainConsensusClient,); + type Router = Router; + + type WeightProvider = (); + type OffchainDB = (); +} + +impl pallet_hyperbridge::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type IsmpHost = Ismp; +} + +impl ismp_parachain::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type IsmpHost = Ismp; + type WeightInfo = crate::weights::ismp_parachain::WeightInfo; +} + +pub struct AssetAdmin; +impl Get for AssetAdmin { + fn get() -> AccountId { + Treasury::account_id() + } +} + +parameter_types! { + pub const NativeAssetId: Location = Location::here(); +} + +impl pallet_token_gateway::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type Dispatcher = Hyperbridge; + type Assets = Fungibles; + #[cfg(not(feature = "runtime-benchmarks"))] + type CreateOrigin = RootOrCollectiveProportion; + #[cfg(feature = "runtime-benchmarks")] + type CreateOrigin = frame_system::EnsureSigned; + type AssetAdmin = AssetAdmin; + type Decimals = ConstU8<15>; + type NativeCurrency = Balances; + type NativeAssetId = NativeAssetId; + type EvmToSubstrate = (); + type WeightInfo = crate::weights::pallet_token_gateway::WeightInfo; +} diff --git a/runtimes/peregrine/src/kilt/did.rs b/runtimes/peregrine/src/kilt/did.rs index f645e0267d..04435b87fa 100644 --- a/runtimes/peregrine/src/kilt/did.rs +++ b/runtimes/peregrine/src/kilt/did.rs @@ -34,7 +34,7 @@ impl DeriveDidCallAuthorizationVerificationKeyRelationship for RuntimeCall { /// ensure that all calls have the same VerificationKeyRelationship fn single_key_relationship(calls: &[RuntimeCall]) -> DeriveDidCallKeyRelationshipResult { let init = calls - .get(0) + .first() .ok_or(RelationshipDeriveError::InvalidCallParameter)? .derive_verification_key_relationship()?; calls diff --git a/runtimes/peregrine/src/lib.rs b/runtimes/peregrine/src/lib.rs index 21011dab62..17b72c9f50 100644 --- a/runtimes/peregrine/src/lib.rs +++ b/runtimes/peregrine/src/lib.rs @@ -52,8 +52,8 @@ use runtime_common::{constants, fees::WeightToFee, Address, Signature}; mod governance; mod kilt; pub use kilt::Web3Name; +pub mod genesis_state; mod migrations; -pub use migrations::RuntimeMigrations; mod parachain; mod runtime_apis; use runtime_apis::_InternalImplRuntimeApis; @@ -61,6 +61,7 @@ pub use runtime_apis::{api, RuntimeApi}; mod system; use sp_version::RuntimeVersion; pub use system::{SessionKeys, SS_58_PREFIX}; +mod ismp; use crate::runtime_apis::RUNTIME_API_VERSION; mod weights; @@ -183,6 +184,12 @@ construct_runtime! { // DmpQueue: cumulus_pallet_dmp_queue = 85, // Queue and pass DMP messages on to be executed. MessageQueue: pallet_message_queue = 86, + + // ISMP + Ismp: pallet_ismp = 90, + Hyperbridge: pallet_hyperbridge = 91, + IsmpParachain: ismp_parachain = 92, + TokenGateway: pallet_token_gateway = 93, } } @@ -199,7 +206,7 @@ pub type Executive = frame_executive::Executive< Runtime, // Executes pallet hooks in the order of definition in construct_runtime AllPalletsWithSystem, - RuntimeMigrations, + crate::migrations::RuntimeMigrations, >; /// Block header type as expected by this runtime. diff --git a/runtimes/peregrine/src/migrations/mod.rs b/runtimes/peregrine/src/migrations/mod.rs index 8d6fd5ef8d..f182988c7e 100644 --- a/runtimes/peregrine/src/migrations/mod.rs +++ b/runtimes/peregrine/src/migrations/mod.rs @@ -19,16 +19,21 @@ use frame_support::parameter_types; use runtime_common::constants; -use crate::{weights, Balances, Runtime, RuntimeEvent}; +use crate::{weights, Balances, ParachainSystem, Runtime, RuntimeEvent}; parameter_types! { pub const Inflation: &'static str = "Inflation"; } +impl cumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime { + type ChannelList = ParachainSystem; +} + pub type RuntimeMigrations = ( pallet_xcm::migration::MigrateToLatestXcmVersion, frame_support::migrations::RemovePallet::DbWeight>, pallet_bonded_coins::migrations::v1::MigrateV0ToV1, + cumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5, ); impl pallet_migration::Config for Runtime { diff --git a/runtimes/peregrine/src/runtime_apis.rs b/runtimes/peregrine/src/runtime_apis.rs index 3512e89044..5499dae1a4 100644 --- a/runtimes/peregrine/src/runtime_apis.rs +++ b/runtimes/peregrine/src/runtime_apis.rs @@ -4,10 +4,11 @@ use ::xcm::{ v4::{Asset, AssetId, Location}, VersionedAssetId, VersionedLocation, VersionedXcm, }; +use cumulus_pallet_parachain_system::RelayChainState; use cumulus_primitives_aura::Slot; use cumulus_primitives_core::CollationInfo; use frame_support::{ - genesis_builder_helper::{build_config, create_default_config}, + genesis_builder_helper::{build_state, get_preset}, pallet_prelude::{TransactionSource, TransactionValidity}, traits::{ fungibles::{metadata::Inspect as MetadataInspect, Inspect}, @@ -15,6 +16,11 @@ use frame_support::{ }, weights::Weight, }; +use ismp::{ + consensus::{ConsensusClientId, StateMachineHeight, StateMachineId}, + host::StateMachine, + router::{Request, Response}, +}; use kilt_runtime_api_did::RawDidLinkedInfo; use kilt_support::traits::ItemFilter; use pallet_asset_switch::xcm::AccountId32ToAccountId32JunctionConverter; @@ -49,7 +55,7 @@ use runtime_common::{ AccountId, AuthorityId, Balance, BlockNumber, DidIdentifier, Hash, Nonce, }; use sp_api::impl_runtime_apis; -use sp_core::OpaqueMetadata; +use sp_core::{OpaqueMetadata, H256}; use sp_inherents::{CheckInherentsResult, InherentData}; use sp_metadata_ir::RuntimeApiMetadataIR; use sp_runtime::{ @@ -63,8 +69,9 @@ use crate::{ kilt::{DipProofError, DipProofRequest, NativeAndForeignAssets}, parachain::ConsensusHook, xcm::UniversalLocation, - AssetSwitchPool1, Aura, Block, BondedCurrencies, BondedFungibles, Executive, InherentDataExt, ParachainStaking, - ParachainSystem, Runtime, RuntimeCall, RuntimeGenesisConfig, SessionKeys, TransactionPayment, Web3Name, VERSION, + AssetSwitchPool1, Block, BondedCurrencies, BondedFungibles, Executive, InherentDataExt, IsmpParachain, + ParachainStaking, ParachainSystem, Runtime, RuntimeCall, RuntimeGenesisConfig, SessionKeys, TransactionPayment, + Web3Name, VERSION, }; // This is necessary since by default `RUNTIME_API_VERSIONS` generated by @@ -97,7 +104,7 @@ impl_runtime_apis! { Executive::execute_block(block); } - fn initialize_block(header: &::Header) { + fn initialize_block(header: &::Header) -> sp_runtime::ExtrinsicInclusionMode { Executive::initialize_block(header) } } @@ -219,7 +226,7 @@ impl_runtime_apis! { } fn authorities() -> Vec { - Aura::authorities().into_inner() + pallet_aura::Authorities::::get().into_inner() } } @@ -239,15 +246,17 @@ impl_runtime_apis! { } impl sp_genesis_builder::GenesisBuilder for Runtime { - - fn create_default_config() -> Vec { - create_default_config::() + fn build_state(config: Vec) -> sp_genesis_builder::Result { + build_state::(config) } - fn build_config(config: Vec) -> sp_genesis_builder::Result { - build_config::(config) + fn get_preset(id: &Option) -> Option> { + get_preset::(id, crate::genesis_state::get_preset) } + fn preset_names() -> Vec { + crate::genesis_state::preset_names() + } } impl kilt_runtime_api_did::Did< @@ -615,6 +624,60 @@ impl_runtime_apis! { } } + impl pallet_ismp_runtime_api::IsmpRuntimeApi::Hash> for Runtime { + fn host_state_machine() -> StateMachine { + ::HostStateMachine::get() + } + + fn challenge_period(state_machine_id: StateMachineId) -> Option { + pallet_ismp::Pallet::::challenge_period(state_machine_id) + } + + /// Fetch all ISMP events in the block, should only be called from runtime-api. + fn block_events() -> Vec<::ismp::events::Event> { + pallet_ismp::Pallet::::block_events() + } + + /// Fetch all ISMP events and their extrinsic metadata, should only be called from runtime-api. + fn block_events_with_metadata() -> Vec<(::ismp::events::Event, Option)> { + pallet_ismp::Pallet::::block_events_with_metadata() + } + + /// Return the scale encoded consensus state + fn consensus_state(id: ConsensusClientId) -> Option> { + pallet_ismp::Pallet::::consensus_states(id) + } + + /// Return the timestamp this client was last updated in seconds + fn state_machine_update_time(height: StateMachineHeight) -> Option { + pallet_ismp::Pallet::::state_machine_update_time(height) + } + + /// Return the latest height of the state machine + fn latest_state_machine_height(id: StateMachineId) -> Option { + pallet_ismp::Pallet::::latest_state_machine_height(id) + } + + /// Get actual requests + fn requests(commitments: Vec) -> Vec { + pallet_ismp::Pallet::::requests(commitments) + } + + /// Get actual requests + fn responses(commitments: Vec) -> Vec { + pallet_ismp::Pallet::::responses(commitments) + } + } + + impl ismp_parachain_runtime_api::IsmpParachainApi for Runtime { + fn para_ids() -> Vec { + IsmpParachain::para_ids() + } + + fn current_relay_chain_state() -> RelayChainState { + IsmpParachain::current_relay_chain_state() + } + } #[cfg(feature = "runtime-benchmarks")] impl frame_benchmarking::Benchmark for Runtime { diff --git a/runtimes/peregrine/src/system/mod.rs b/runtimes/peregrine/src/system/mod.rs index 334d5439a8..05320eead7 100644 --- a/runtimes/peregrine/src/system/mod.rs +++ b/runtimes/peregrine/src/system/mod.rs @@ -18,7 +18,7 @@ use frame_support::{ parameter_types, - traits::{AsEnsureOriginWithArg, Everything, NeverEnsureOrigin, PrivilegeCmp}, + traits::{AsEnsureOriginWithArg, Everything, PrivilegeCmp}, weights::Weight, }; use frame_system::EnsureRoot; @@ -95,6 +95,11 @@ impl frame_system::Config for Runtime { /// The set code logic type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode; type MaxConsumers = frame_support::traits::ConstU32<100>; + type MultiBlockMigrator = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); + type SingleBlockMigrations = (); } impl pallet_timestamp::Config for Runtime { @@ -160,6 +165,7 @@ impl pallet_aura::Config for Runtime { type DisabledValidators = (); type MaxAuthorities = ConstU32<{ constants::staking::MAX_CANDIDATES }>; type AllowMultipleBlocksPerSlot = ConstBool; + type SlotDuration = ConstU64<{ constants::SLOT_DURATION }>; } impl pallet_authorship::Config for Runtime { @@ -289,9 +295,11 @@ impl pallet_membership::Config for Runtime { type RemoveOrigin = RootOrMoreThanHalfCouncil; type SwapOrigin = RootOrMoreThanHalfCouncil; type ResetOrigin = RootOrMoreThanHalfCouncil; - type PrimeOrigin = NeverEnsureOrigin; + #[cfg(not(feature = "runtime-benchmarks"))] + type PrimeOrigin = frame_support::traits::NeverEnsureOrigin; + #[cfg(feature = "runtime-benchmarks")] + type PrimeOrigin = frame_system::EnsureSigned; type MembershipInitialized = (); - #[cfg(feature = "runtime-benchmarks")] type MembershipChanged = crate::benchmarks::governance::MockMembershipChangedForBenchmarks; #[cfg(not(feature = "runtime-benchmarks"))] diff --git a/runtimes/peregrine/src/tests.rs b/runtimes/peregrine/src/tests.rs index 6598cc36eb..292f28701b 100644 --- a/runtimes/peregrine/src/tests.rs +++ b/runtimes/peregrine/src/tests.rs @@ -195,7 +195,7 @@ fn test_derive_did_key_lookup() { RuntimeCall::DidLookup(pallet_did_lookup::Call::associate_account { req: AssociateAccountRequest::Polkadot( AccountId::new([1u8; 32]), - sp_runtime::MultiSignature::from(sp_core::ed25519::Signature([0; 64])) + sp_runtime::MultiSignature::from(sp_core::ed25519::Signature::from_raw([0; 64])) ), expiration: BlockNumber::default(), }) diff --git a/runtimes/peregrine/src/weights/ismp_parachain.rs b/runtimes/peregrine/src/weights/ismp_parachain.rs new file mode 100644 index 0000000000..b5ce8908eb --- /dev/null +++ b/runtimes/peregrine/src/weights/ismp_parachain.rs @@ -0,0 +1,134 @@ +// KILT Blockchain – +// Copyright (C) 2025, KILT Foundation + +// The KILT Blockchain is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// The KILT Blockchain is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +// If you feel like getting in touch with us, you can do so at + +//! Autogenerated weights for `ismp_parachain` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 47.0.0 +//! DATE: 2025-05-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024 + +// Executed Command: +// frame-omni-bencher +// v1 +// benchmark +// pallet +// --pallet=ismp-parachain +// --extrinsic=* +// --genesis-builder=runtime +// --runtime=./target/release/wbuild/peregrine-runtime/peregrine_runtime.compact.compressed.wasm +// --header=HEADER-GPL +// --template=.maintain/runtime-weight-template.hbs +// --output=./runtimes/peregrine/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_imports)] +#![allow(clippy::as_conversions)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `ismp_parachain`. +pub struct WeightInfo(PhantomData); +impl ismp_parachain::WeightInfo for WeightInfo { + /// Storage: `IsmpParachain::Parachains` (r:0 w:100) + /// Proof: `IsmpParachain::Parachains` (`max_values`: None, `max_size`: Some(12), added: 2487, mode: `MaxEncodedLen`) + /// Storage: `Ismp::ChallengePeriod` (r:0 w:100) + /// Proof: `Ismp::ChallengePeriod` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `n` is `[1, 100]`. + fn add_parachain(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_388_000 picoseconds. + Weight::from_parts(6_725_135, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 4_114 + .saturating_add(Weight::from_parts(1_995_999, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into()))) + } + /// Storage: `IsmpParachain::Parachains` (r:0 w:5) + /// Proof: `IsmpParachain::Parachains` (`max_values`: None, `max_size`: Some(12), added: 2487, mode: `MaxEncodedLen`) + /// The range of component `n` is `[1, 100]`. + fn remove_parachain(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_479_000 picoseconds. + Weight::from_parts(8_755_956, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 475 + .saturating_add(Weight::from_parts(14_864, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// Storage: `IsmpParachain::ConsensusUpdated` (r:1 w:1) + /// Proof: `IsmpParachain::ConsensusUpdated` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `Ismp::ConsensusStateClient` (r:1 w:0) + /// Proof: `Ismp::ConsensusStateClient` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Ismp::ConsensusStates` (r:1 w:1) + /// Proof: `Ismp::ConsensusStates` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Ismp::FrozenConsensusClients` (r:1 w:0) + /// Proof: `Ismp::FrozenConsensusClients` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Timestamp::Now` (r:1 w:0) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + /// Storage: `Ismp::UnbondingPeriod` (r:1 w:0) + /// Proof: `Ismp::UnbondingPeriod` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Ismp::ConsensusClientUpdateTime` (r:1 w:1) + /// Proof: `Ismp::ConsensusClientUpdateTime` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `IsmpParachain::RelayChainStateCommitments` (r:1 w:0) + /// Proof: `IsmpParachain::RelayChainStateCommitments` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) + /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `IsmpParachain::Parachains` (r:2 w:0) + /// Proof: `IsmpParachain::Parachains` (`max_values`: None, `max_size`: Some(12), added: 2487, mode: `MaxEncodedLen`) + /// Storage: `Ismp::LatestStateMachineHeight` (r:1 w:1) + /// Proof: `Ismp::LatestStateMachineHeight` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Ismp::StateCommitments` (r:1 w:1) + /// Proof: `Ismp::StateCommitments` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Ismp::StateMachineUpdateTime` (r:0 w:1) + /// Proof: `Ismp::StateMachineUpdateTime` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: UNKNOWN KEY `0x7374617465859b5c7d03c68da7d492f1cc906e886ce9b49cc592d063993bdd8c` (r:1 w:1) + /// Proof: UNKNOWN KEY `0x7374617465859b5c7d03c68da7d492f1cc906e886ce9b49cc592d063993bdd8c` (r:1 w:1) + fn update_parachain_consensus() -> Weight { + // Proof Size summary in bytes: + // Measured: `753` + // Estimated: `5964` + // Minimum execution time: 75_559_000 picoseconds. + Weight::from_parts(79_529_000, 0) + .saturating_add(Weight::from_parts(0, 5964)) + .saturating_add(T::DbWeight::get().reads(14)) + .saturating_add(T::DbWeight::get().writes(7)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_update_parachain_consensus() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 5964 + ); + } +} diff --git a/runtimes/peregrine/src/weights/mod.rs b/runtimes/peregrine/src/weights/mod.rs index e6928d4e01..d0f96e2253 100644 --- a/runtimes/peregrine/src/weights/mod.rs +++ b/runtimes/peregrine/src/weights/mod.rs @@ -23,6 +23,7 @@ pub mod cumulus_pallet_parachain_system; pub mod delegation; pub mod did; pub mod frame_system; +pub mod ismp_parachain; pub mod pallet_asset_switch; pub mod pallet_assets; pub mod pallet_balances; @@ -48,6 +49,7 @@ pub mod pallet_technical_committee_collective; pub mod pallet_technical_membership; pub mod pallet_timestamp; pub mod pallet_tips; +pub mod pallet_token_gateway; pub mod pallet_treasury; pub mod pallet_utility; pub mod pallet_vesting; diff --git a/runtimes/peregrine/src/weights/pallet_assets.rs b/runtimes/peregrine/src/weights/pallet_assets.rs index 9917201b21..6bf952e5ff 100644 --- a/runtimes/peregrine/src/weights/pallet_assets.rs +++ b/runtimes/peregrine/src/weights/pallet_assets.rs @@ -18,28 +18,24 @@ //! Autogenerated weights for `pallet_assets` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 -//! DATE: 2024-08-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 47.0.0 +//! DATE: 2025-05-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024 // Executed Command: -// target/release-unoptimized/kilt-parachain +// frame-omni-bencher +// v1 // benchmark // pallet -// --template=.maintain/runtime-weight-template.hbs -// --header=HEADER-GPL -// --wasm-execution=compiled -// --heap-pages=4096 -// --steps=50 -// --repeat=20 -// --chain -// dev -// --pallet -// pallet-assets +// --pallet=pallet-assets // --extrinsic=* -// --output=./runtimes/peregrine/src/weights/pallet_assets.rs +// --genesis-builder=runtime +// --runtime=./target/release/wbuild/peregrine-runtime/peregrine_runtime.compact.compressed.wasm +// --header=HEADER-GPL +// --template=.maintain/runtime-weight-template.hbs +// --output=./runtimes/peregrine/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_imports)] @@ -53,26 +49,30 @@ pub struct WeightInfo(PhantomData); impl pallet_assets::WeightInfo for WeightInfo { /// Storage: `Fungibles::Asset` (r:1 w:1) /// Proof: `Fungibles::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`) + /// Storage: `Fungibles::NextAssetId` (r:1 w:0) + /// Proof: `Fungibles::NextAssetId` (`max_values`: Some(1), `max_size`: Some(602), added: 1097, mode: `MaxEncodedLen`) fn create() -> Weight { // Proof Size summary in bytes: // Measured: `42` // Estimated: `4273` - // Minimum execution time: 7_511_000 picoseconds. - Weight::from_parts(8_022_000, 0) + // Minimum execution time: 9_846_000 picoseconds. + Weight::from_parts(10_636_000, 0) .saturating_add(Weight::from_parts(0, 4273)) - .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Fungibles::Asset` (r:1 w:1) /// Proof: `Fungibles::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`) + /// Storage: `Fungibles::NextAssetId` (r:1 w:0) + /// Proof: `Fungibles::NextAssetId` (`max_values`: Some(1), `max_size`: Some(602), added: 1097, mode: `MaxEncodedLen`) fn force_create() -> Weight { // Proof Size summary in bytes: // Measured: `42` // Estimated: `4273` - // Minimum execution time: 7_389_000 picoseconds. - Weight::from_parts(7_993_000, 0) + // Minimum execution time: 9_609_000 picoseconds. + Weight::from_parts(9_960_000, 0) .saturating_add(Weight::from_parts(0, 4273)) - .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Fungibles::Asset` (r:1 w:1) @@ -81,8 +81,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `312` // Estimated: `4273` - // Minimum execution time: 7_724_000 picoseconds. - Weight::from_parts(8_024_000, 0) + // Minimum execution time: 9_502_000 picoseconds. + Weight::from_parts(10_078_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -98,11 +98,11 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0 + c * (212 ±0)` // Estimated: `4273 + c * (3207 ±0)` - // Minimum execution time: 10_650_000 picoseconds. - Weight::from_parts(11_066_000, 0) + // Minimum execution time: 12_708_000 picoseconds. + Weight::from_parts(12_908_000, 0) .saturating_add(Weight::from_parts(0, 4273)) - // Standard Error: 6_907 - .saturating_add(Weight::from_parts(9_817_244, 0).saturating_mul(c.into())) + // Standard Error: 8_373 + .saturating_add(Weight::from_parts(10_367_179, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -118,11 +118,11 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `447 + a * (86 ±0)` // Estimated: `4273 + a * (3221 ±0)` - // Minimum execution time: 10_767_000 picoseconds. - Weight::from_parts(10_982_000, 0) + // Minimum execution time: 13_046_000 picoseconds. + Weight::from_parts(13_596_000, 0) .saturating_add(Weight::from_parts(0, 4273)) - // Standard Error: 3_058 - .saturating_add(Weight::from_parts(3_935_847, 0).saturating_mul(a.into())) + // Standard Error: 3_824 + .saturating_add(Weight::from_parts(4_120_923, 0).saturating_mul(a.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -137,8 +137,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `278` // Estimated: `4273` - // Minimum execution time: 9_031_000 picoseconds. - Weight::from_parts(9_270_000, 0) + // Minimum execution time: 11_448_000 picoseconds. + Weight::from_parts(11_975_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -151,8 +151,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `278` // Estimated: `4273` - // Minimum execution time: 16_960_000 picoseconds. - Weight::from_parts(17_381_000, 0) + // Minimum execution time: 20_251_000 picoseconds. + Weight::from_parts(20_700_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -165,8 +165,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `384` // Estimated: `4273` - // Minimum execution time: 22_651_000 picoseconds. - Weight::from_parts(23_338_000, 0) + // Minimum execution time: 26_707_000 picoseconds. + Weight::from_parts(27_542_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -181,8 +181,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `436` // Estimated: `7404` - // Minimum execution time: 33_107_000 picoseconds. - Weight::from_parts(33_858_000, 0) + // Minimum execution time: 36_742_000 picoseconds. + Weight::from_parts(37_880_000, 0) .saturating_add(Weight::from_parts(0, 7404)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -197,8 +197,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `436` // Estimated: `7404` - // Minimum execution time: 29_877_000 picoseconds. - Weight::from_parts(30_769_000, 0) + // Minimum execution time: 32_609_000 picoseconds. + Weight::from_parts(33_722_000, 0) .saturating_add(Weight::from_parts(0, 7404)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -213,8 +213,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `436` // Estimated: `7404` - // Minimum execution time: 32_722_000 picoseconds. - Weight::from_parts(33_735_000, 0) + // Minimum execution time: 37_069_000 picoseconds. + Weight::from_parts(37_919_000, 0) .saturating_add(Weight::from_parts(0, 7404)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -227,8 +227,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `384` // Estimated: `4273` - // Minimum execution time: 10_858_000 picoseconds. - Weight::from_parts(11_325_000, 0) + // Minimum execution time: 13_216_000 picoseconds. + Weight::from_parts(13_805_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -241,8 +241,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `384` // Estimated: `4273` - // Minimum execution time: 10_834_000 picoseconds. - Weight::from_parts(11_284_000, 0) + // Minimum execution time: 13_486_000 picoseconds. + Weight::from_parts(14_055_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -253,8 +253,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `312` // Estimated: `4273` - // Minimum execution time: 7_493_000 picoseconds. - Weight::from_parts(7_911_000, 0) + // Minimum execution time: 9_750_000 picoseconds. + Weight::from_parts(10_129_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -265,8 +265,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `312` // Estimated: `4273` - // Minimum execution time: 7_613_000 picoseconds. - Weight::from_parts(7_951_000, 0) + // Minimum execution time: 9_785_000 picoseconds. + Weight::from_parts(10_292_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -279,8 +279,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `278` // Estimated: `4273` - // Minimum execution time: 9_365_000 picoseconds. - Weight::from_parts(9_594_000, 0) + // Minimum execution time: 11_901_000 picoseconds. + Weight::from_parts(12_532_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -291,8 +291,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `278` // Estimated: `4273` - // Minimum execution time: 7_928_000 picoseconds. - Weight::from_parts(8_388_000, 0) + // Minimum execution time: 10_301_000 picoseconds. + Weight::from_parts(10_801_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -303,17 +303,15 @@ impl pallet_assets::WeightInfo for WeightInfo { /// Proof: `Fungibles::Metadata` (`max_values`: None, `max_size`: Some(646), added: 3121, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 4]`. /// The range of component `s` is `[0, 4]`. - fn set_metadata(n: u32, s: u32, ) -> Weight { + fn set_metadata(n: u32, _s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `278` // Estimated: `4273` - // Minimum execution time: 9_177_000 picoseconds. - Weight::from_parts(9_513_737, 0) + // Minimum execution time: 10_783_000 picoseconds. + Weight::from_parts(12_053_448, 0) .saturating_add(Weight::from_parts(0, 4273)) - // Standard Error: 4_348 - .saturating_add(Weight::from_parts(92_631, 0).saturating_mul(n.into())) - // Standard Error: 4_348 - .saturating_add(Weight::from_parts(76_577, 0).saturating_mul(s.into())) + // Standard Error: 6_846 + .saturating_add(Weight::from_parts(35_427, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -325,8 +323,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `346` // Estimated: `4273` - // Minimum execution time: 9_824_000 picoseconds. - Weight::from_parts(10_333_000, 0) + // Minimum execution time: 11_543_000 picoseconds. + Weight::from_parts(12_348_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -337,17 +335,15 @@ impl pallet_assets::WeightInfo for WeightInfo { /// Proof: `Fungibles::Metadata` (`max_values`: None, `max_size`: Some(646), added: 3121, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 4]`. /// The range of component `s` is `[0, 4]`. - fn force_set_metadata(n: u32, s: u32, ) -> Weight { + fn force_set_metadata(_n: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `117` // Estimated: `4273` - // Minimum execution time: 8_095_000 picoseconds. - Weight::from_parts(8_730_911, 0) + // Minimum execution time: 10_576_000 picoseconds. + Weight::from_parts(11_474_294, 0) .saturating_add(Weight::from_parts(0, 4273)) - // Standard Error: 4_722 - .saturating_add(Weight::from_parts(39_054, 0).saturating_mul(n.into())) - // Standard Error: 4_722 - .saturating_add(Weight::from_parts(70_013, 0).saturating_mul(s.into())) + // Standard Error: 5_840 + .saturating_add(Weight::from_parts(41_680, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -359,8 +355,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `346` // Estimated: `4273` - // Minimum execution time: 9_583_000 picoseconds. - Weight::from_parts(9_811_000, 0) + // Minimum execution time: 11_704_000 picoseconds. + Weight::from_parts(12_366_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -371,8 +367,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `278` // Estimated: `4273` - // Minimum execution time: 7_572_000 picoseconds. - Weight::from_parts(7_975_000, 0) + // Minimum execution time: 9_939_000 picoseconds. + Weight::from_parts(10_345_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -385,8 +381,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `312` // Estimated: `4273` - // Minimum execution time: 12_806_000 picoseconds. - Weight::from_parts(13_339_000, 0) + // Minimum execution time: 15_144_000 picoseconds. + Weight::from_parts(15_578_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -403,8 +399,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `604` // Estimated: `7404` - // Minimum execution time: 41_589_000 picoseconds. - Weight::from_parts(42_096_000, 0) + // Minimum execution time: 43_878_000 picoseconds. + Weight::from_parts(44_817_000, 0) .saturating_add(Weight::from_parts(0, 7404)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) @@ -417,8 +413,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `480` // Estimated: `4273` - // Minimum execution time: 14_768_000 picoseconds. - Weight::from_parts(15_253_000, 0) + // Minimum execution time: 17_418_000 picoseconds. + Weight::from_parts(18_024_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -431,8 +427,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `480` // Estimated: `4273` - // Minimum execution time: 14_912_000 picoseconds. - Weight::from_parts(15_381_000, 0) + // Minimum execution time: 17_591_000 picoseconds. + Weight::from_parts(17_857_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -443,8 +439,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `278` // Estimated: `4273` - // Minimum execution time: 8_518_000 picoseconds. - Weight::from_parts(8_741_000, 0) + // Minimum execution time: 10_772_000 picoseconds. + Weight::from_parts(11_279_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -457,8 +453,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `278` // Estimated: `4273` - // Minimum execution time: 13_139_000 picoseconds. - Weight::from_parts(13_604_000, 0) + // Minimum execution time: 15_115_000 picoseconds. + Weight::from_parts(15_670_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -471,8 +467,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `278` // Estimated: `4273` - // Minimum execution time: 12_159_000 picoseconds. - Weight::from_parts(12_811_000, 0) + // Minimum execution time: 14_835_000 picoseconds. + Weight::from_parts(15_181_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -485,8 +481,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `402` // Estimated: `4273` - // Minimum execution time: 11_554_000 picoseconds. - Weight::from_parts(11_897_000, 0) + // Minimum execution time: 14_202_000 picoseconds. + Weight::from_parts(14_783_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -499,8 +495,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `435` // Estimated: `4273` - // Minimum execution time: 11_645_000 picoseconds. - Weight::from_parts(11_851_000, 0) + // Minimum execution time: 13_326_000 picoseconds. + Weight::from_parts(13_840_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -513,12 +509,28 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `384` // Estimated: `4273` - // Minimum execution time: 10_550_000 picoseconds. - Weight::from_parts(10_923_000, 0) + // Minimum execution time: 13_541_000 picoseconds. + Weight::from_parts(13_922_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } + /// Storage: `Fungibles::Asset` (r:1 w:1) + /// Proof: `Fungibles::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`) + /// Storage: `Fungibles::Account` (r:2 w:2) + /// Proof: `Fungibles::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + fn transfer_all() -> Weight { + // Proof Size summary in bytes: + // Measured: `436` + // Estimated: `7404` + // Minimum execution time: 44_656_000 picoseconds. + Weight::from_parts(45_847_000, 0) + .saturating_add(Weight::from_parts(0, 7404)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } } #[cfg(test)] @@ -907,4 +919,16 @@ mod tests { > 4273 ); } + #[test] + fn test_transfer_all() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 7404 + ); + } } diff --git a/runtimes/peregrine/src/weights/pallet_balances.rs b/runtimes/peregrine/src/weights/pallet_balances.rs index e998800c32..33b9b338ea 100644 --- a/runtimes/peregrine/src/weights/pallet_balances.rs +++ b/runtimes/peregrine/src/weights/pallet_balances.rs @@ -18,26 +18,24 @@ //! Autogenerated weights for `pallet_balances` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 -//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 47.0.0 +//! DATE: 2025-05-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024 // Executed Command: -// ./target/release/kilt-parachain +// frame-omni-bencher +// v1 // benchmark // pallet -// --template=.maintain/runtime-weight-template.hbs -// --header=HEADER-GPL -// --wasm-execution=compiled -// --heap-pages=4096 -// --steps=50 -// --repeat=20 -// --chain=dev // --pallet=pallet-balances // --extrinsic=* -// --output=./runtimes/peregrine/src/weights/pallet_balances.rs +// --genesis-builder=runtime +// --runtime=./target/release/wbuild/peregrine-runtime/peregrine_runtime.compact.compressed.wasm +// --header=HEADER-GPL +// --template=.maintain/runtime-weight-template.hbs +// --output=./runtimes/peregrine/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_imports)] @@ -55,8 +53,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `107` // Estimated: `6204` - // Minimum execution time: 57_680_000 picoseconds. - Weight::from_parts(58_518_000, 0) + // Minimum execution time: 51_637_000 picoseconds. + Weight::from_parts(52_926_000, 0) .saturating_add(Weight::from_parts(0, 6204)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -67,8 +65,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3597` - // Minimum execution time: 36_421_000 picoseconds. - Weight::from_parts(37_217_000, 0) + // Minimum execution time: 32_292_000 picoseconds. + Weight::from_parts(33_540_000, 0) .saturating_add(Weight::from_parts(0, 3597)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -79,8 +77,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `178` // Estimated: `3597` - // Minimum execution time: 15_716_000 picoseconds. - Weight::from_parts(16_230_000, 0) + // Minimum execution time: 12_856_000 picoseconds. + Weight::from_parts(13_355_000, 0) .saturating_add(Weight::from_parts(0, 3597)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -91,8 +89,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `178` // Estimated: `3597` - // Minimum execution time: 21_093_000 picoseconds. - Weight::from_parts(21_350_000, 0) + // Minimum execution time: 19_296_000 picoseconds. + Weight::from_parts(20_526_000, 0) .saturating_add(Weight::from_parts(0, 3597)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -103,8 +101,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `214` // Estimated: `8811` - // Minimum execution time: 60_396_000 picoseconds. - Weight::from_parts(61_513_000, 0) + // Minimum execution time: 53_749_000 picoseconds. + Weight::from_parts(54_594_000, 0) .saturating_add(Weight::from_parts(0, 8811)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -115,8 +113,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3597` - // Minimum execution time: 45_008_000 picoseconds. - Weight::from_parts(45_809_000, 0) + // Minimum execution time: 40_191_000 picoseconds. + Weight::from_parts(41_039_000, 0) .saturating_add(Weight::from_parts(0, 3597)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -127,8 +125,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `178` // Estimated: `3597` - // Minimum execution time: 17_799_000 picoseconds. - Weight::from_parts(18_465_000, 0) + // Minimum execution time: 15_368_000 picoseconds. + Weight::from_parts(15_873_000, 0) .saturating_add(Weight::from_parts(0, 3597)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -140,11 +138,11 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0 + u * (140 ±0)` // Estimated: `990 + u * (2607 ±0)` - // Minimum execution time: 17_365_000 picoseconds. - Weight::from_parts(17_698_000, 0) + // Minimum execution time: 14_634_000 picoseconds. + Weight::from_parts(14_833_000, 0) .saturating_add(Weight::from_parts(0, 990)) - // Standard Error: 10_091 - .saturating_add(Weight::from_parts(12_523_656, 0).saturating_mul(u.into())) + // Standard Error: 7_838 + .saturating_add(Weight::from_parts(10_873_191, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into()))) .saturating_add(Weight::from_parts(0, 2607).saturating_mul(u.into())) @@ -155,11 +153,31 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `1501` - // Minimum execution time: 6_558_000 picoseconds. - Weight::from_parts(6_815_000, 0) + // Minimum execution time: 5_428_000 picoseconds. + Weight::from_parts(5_647_000, 0) .saturating_add(Weight::from_parts(0, 1501)) .saturating_add(T::DbWeight::get().reads(1)) } + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + fn burn_allow_death() -> Weight { + // Proof Size summary in bytes: + // Measured: `107` + // Estimated: `3597` + // Minimum execution time: 35_830_000 picoseconds. + Weight::from_parts(36_438_000, 0) + .saturating_add(Weight::from_parts(0, 3597)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + fn burn_keep_alive() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 16_343_000 picoseconds. + Weight::from_parts(16_825_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } } #[cfg(test)] @@ -272,4 +290,16 @@ mod tests { > 1501 ); } + #[test] + fn test_burn_allow_death() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3597 + ); + } } diff --git a/runtimes/peregrine/src/weights/pallet_bonded_assets.rs b/runtimes/peregrine/src/weights/pallet_bonded_assets.rs index 72365acae2..9c66b44b0b 100644 --- a/runtimes/peregrine/src/weights/pallet_bonded_assets.rs +++ b/runtimes/peregrine/src/weights/pallet_bonded_assets.rs @@ -18,20 +18,21 @@ //! Autogenerated weights for `pallet_bonded_assets` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 -//! DATE: 2024-11-29, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 47.0.0 +//! DATE: 2025-05-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024 // Executed Command: -// ./target/release/kilt-parachain +// frame-omni-bencher +// v1 // benchmark // pallet -// --heap-pages=4096 -// --chain=dev // --pallet=pallet-bonded-assets // --extrinsic=* +// --genesis-builder=runtime +// --runtime=./target/release/wbuild/peregrine-runtime/peregrine_runtime.compact.compressed.wasm // --header=HEADER-GPL // --template=.maintain/runtime-weight-template.hbs // --output=./runtimes/peregrine/src/weights/ @@ -51,26 +52,30 @@ pub struct WeightInfo(PhantomData); impl pallet_bonded_assets::WeightInfo for WeightInfo { /// Storage: `BondedFungibles::Asset` (r:1 w:1) /// Proof: `BondedFungibles::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `BondedFungibles::NextAssetId` (r:1 w:0) + /// Proof: `BondedFungibles::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn create() -> Weight { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3675` - // Minimum execution time: 5_524_000 picoseconds. - Weight::from_parts(5_886_000, 0) + // Minimum execution time: 10_003_000 picoseconds. + Weight::from_parts(10_816_000, 0) .saturating_add(Weight::from_parts(0, 3675)) - .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `BondedFungibles::Asset` (r:1 w:1) /// Proof: `BondedFungibles::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `BondedFungibles::NextAssetId` (r:1 w:0) + /// Proof: `BondedFungibles::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn force_create() -> Weight { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3675` - // Minimum execution time: 5_401_000 picoseconds. - Weight::from_parts(5_623_000, 0) + // Minimum execution time: 9_846_000 picoseconds. + Weight::from_parts(10_130_000, 0) .saturating_add(Weight::from_parts(0, 3675)) - .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `BondedFungibles::Asset` (r:1 w:1) @@ -79,8 +84,8 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `314` // Estimated: `3675` - // Minimum execution time: 5_746_000 picoseconds. - Weight::from_parts(6_204_000, 0) + // Minimum execution time: 9_691_000 picoseconds. + Weight::from_parts(9_991_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -96,11 +101,11 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `0 + c * (212 ±0)` // Estimated: `3675 + c * (2609 ±0)` - // Minimum execution time: 11_169_000 picoseconds. - Weight::from_parts(4_540_955, 0) + // Minimum execution time: 13_235_000 picoseconds. + Weight::from_parts(13_541_000, 0) .saturating_add(Weight::from_parts(0, 3675)) - // Standard Error: 13_118 - .saturating_add(Weight::from_parts(7_987_660, 0).saturating_mul(c.into())) + // Standard Error: 8_914 + .saturating_add(Weight::from_parts(10_410_204, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -116,11 +121,11 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `451 + a * (86 ±0)` // Estimated: `3675 + a * (2623 ±0)` - // Minimum execution time: 8_275_000 picoseconds. - Weight::from_parts(8_481_000, 0) + // Minimum execution time: 13_010_000 picoseconds. + Weight::from_parts(13_468_000, 0) .saturating_add(Weight::from_parts(0, 3675)) - // Standard Error: 2_635 - .saturating_add(Weight::from_parts(3_231_941, 0).saturating_mul(a.into())) + // Standard Error: 3_880 + .saturating_add(Weight::from_parts(4_185_022, 0).saturating_mul(a.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -130,13 +135,13 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo /// Storage: `BondedFungibles::Asset` (r:1 w:1) /// Proof: `BondedFungibles::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) /// Storage: `BondedFungibles::Metadata` (r:1 w:0) - /// Proof: `BondedFungibles::Metadata` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Proof: `BondedFungibles::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) fn finish_destroy() -> Weight { // Proof Size summary in bytes: // Measured: `280` // Estimated: `3675` - // Minimum execution time: 6_581_000 picoseconds. - Weight::from_parts(6_935_000, 0) + // Minimum execution time: 11_262_000 picoseconds. + Weight::from_parts(11_855_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -149,8 +154,8 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `280` // Estimated: `3675` - // Minimum execution time: 12_312_000 picoseconds. - Weight::from_parts(12_680_000, 0) + // Minimum execution time: 19_635_000 picoseconds. + Weight::from_parts(20_505_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -163,8 +168,8 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `388` // Estimated: `3675` - // Minimum execution time: 16_661_000 picoseconds. - Weight::from_parts(17_291_000, 0) + // Minimum execution time: 25_108_000 picoseconds. + Weight::from_parts(26_140_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -179,8 +184,8 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `440` // Estimated: `6208` - // Minimum execution time: 23_697_000 picoseconds. - Weight::from_parts(24_548_000, 0) + // Minimum execution time: 36_470_000 picoseconds. + Weight::from_parts(37_648_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -195,8 +200,8 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `440` // Estimated: `6208` - // Minimum execution time: 20_724_000 picoseconds. - Weight::from_parts(21_775_000, 0) + // Minimum execution time: 32_873_000 picoseconds. + Weight::from_parts(33_469_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -211,8 +216,8 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `440` // Estimated: `6208` - // Minimum execution time: 22_727_000 picoseconds. - Weight::from_parts(24_154_000, 0) + // Minimum execution time: 36_524_000 picoseconds. + Weight::from_parts(37_309_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -225,8 +230,8 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `388` // Estimated: `3675` - // Minimum execution time: 7_572_000 picoseconds. - Weight::from_parts(8_019_000, 0) + // Minimum execution time: 13_330_000 picoseconds. + Weight::from_parts(13_742_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -239,8 +244,8 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `388` // Estimated: `3675` - // Minimum execution time: 7_513_000 picoseconds. - Weight::from_parts(8_112_000, 0) + // Minimum execution time: 13_243_000 picoseconds. + Weight::from_parts(13_788_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -251,8 +256,8 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `314` // Estimated: `3675` - // Minimum execution time: 5_282_000 picoseconds. - Weight::from_parts(5_682_000, 0) + // Minimum execution time: 9_629_000 picoseconds. + Weight::from_parts(10_087_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -263,8 +268,8 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `314` // Estimated: `3675` - // Minimum execution time: 5_361_000 picoseconds. - Weight::from_parts(5_701_000, 0) + // Minimum execution time: 9_642_000 picoseconds. + Weight::from_parts(10_182_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -272,13 +277,13 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo /// Storage: `BondedFungibles::Asset` (r:1 w:1) /// Proof: `BondedFungibles::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) /// Storage: `BondedFungibles::Metadata` (r:1 w:0) - /// Proof: `BondedFungibles::Metadata` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Proof: `BondedFungibles::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) fn transfer_ownership() -> Weight { // Proof Size summary in bytes: // Measured: `280` // Estimated: `3675` - // Minimum execution time: 6_573_000 picoseconds. - Weight::from_parts(6_884_000, 0) + // Minimum execution time: 11_978_000 picoseconds. + Weight::from_parts(12_354_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -289,8 +294,8 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `280` // Estimated: `3675` - // Minimum execution time: 5_706_000 picoseconds. - Weight::from_parts(6_144_000, 0) + // Minimum execution time: 10_268_000 picoseconds. + Weight::from_parts(10_718_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -298,31 +303,29 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo /// Storage: `BondedFungibles::Asset` (r:1 w:0) /// Proof: `BondedFungibles::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) /// Storage: `BondedFungibles::Metadata` (r:1 w:1) - /// Proof: `BondedFungibles::Metadata` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) - /// The range of component `n` is `[0, 4]`. - /// The range of component `s` is `[0, 4]`. - fn set_metadata(_n: u32, s: u32, ) -> Weight { + /// Proof: `BondedFungibles::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// The range of component `n` is `[0, 50]`. + /// The range of component `s` is `[0, 50]`. + fn set_metadata(_n: u32, _s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `280` // Estimated: `3675` - // Minimum execution time: 6_279_000 picoseconds. - Weight::from_parts(7_152_774, 0) + // Minimum execution time: 11_085_000 picoseconds. + Weight::from_parts(12_793_627, 0) .saturating_add(Weight::from_parts(0, 3675)) - // Standard Error: 4_624 - .saturating_add(Weight::from_parts(22_496, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `BondedFungibles::Asset` (r:1 w:0) /// Proof: `BondedFungibles::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) /// Storage: `BondedFungibles::Metadata` (r:1 w:1) - /// Proof: `BondedFungibles::Metadata` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Proof: `BondedFungibles::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) fn clear_metadata() -> Weight { // Proof Size summary in bytes: - // Measured: `350` + // Measured: `444` // Estimated: `3675` - // Minimum execution time: 7_113_000 picoseconds. - Weight::from_parts(7_524_000, 0) + // Minimum execution time: 11_653_000 picoseconds. + Weight::from_parts(12_068_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -330,33 +333,31 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo /// Storage: `BondedFungibles::Asset` (r:1 w:0) /// Proof: `BondedFungibles::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) /// Storage: `BondedFungibles::Metadata` (r:1 w:1) - /// Proof: `BondedFungibles::Metadata` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) - /// The range of component `n` is `[0, 4]`. - /// The range of component `s` is `[0, 4]`. - fn force_set_metadata(n: u32, s: u32, ) -> Weight { + /// Proof: `BondedFungibles::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// The range of component `n` is `[0, 50]`. + /// The range of component `s` is `[0, 50]`. + fn force_set_metadata(_n: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `119` // Estimated: `3675` - // Minimum execution time: 5_756_000 picoseconds. - Weight::from_parts(6_189_023, 0) + // Minimum execution time: 10_509_000 picoseconds. + Weight::from_parts(12_055_798, 0) .saturating_add(Weight::from_parts(0, 3675)) - // Standard Error: 3_605 - .saturating_add(Weight::from_parts(62_714, 0).saturating_mul(n.into())) - // Standard Error: 3_605 - .saturating_add(Weight::from_parts(72_261, 0).saturating_mul(s.into())) + // Standard Error: 2_305 + .saturating_add(Weight::from_parts(3_443, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `BondedFungibles::Asset` (r:1 w:0) /// Proof: `BondedFungibles::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) /// Storage: `BondedFungibles::Metadata` (r:1 w:1) - /// Proof: `BondedFungibles::Metadata` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + /// Proof: `BondedFungibles::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) fn force_clear_metadata() -> Weight { // Proof Size summary in bytes: - // Measured: `350` + // Measured: `444` // Estimated: `3675` - // Minimum execution time: 6_996_000 picoseconds. - Weight::from_parts(7_408_000, 0) + // Minimum execution time: 12_233_000 picoseconds. + Weight::from_parts(12_815_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -367,8 +368,8 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `280` // Estimated: `3675` - // Minimum execution time: 5_816_000 picoseconds. - Weight::from_parts(6_225_000, 0) + // Minimum execution time: 10_207_000 picoseconds. + Weight::from_parts(10_620_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -381,8 +382,8 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `314` // Estimated: `3675` - // Minimum execution time: 9_372_000 picoseconds. - Weight::from_parts(9_802_000, 0) + // Minimum execution time: 15_368_000 picoseconds. + Weight::from_parts(16_162_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -399,8 +400,8 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `610` // Estimated: `6208` - // Minimum execution time: 29_488_000 picoseconds. - Weight::from_parts(30_631_000, 0) + // Minimum execution time: 44_392_000 picoseconds. + Weight::from_parts(45_926_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) @@ -413,8 +414,8 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `484` // Estimated: `3675` - // Minimum execution time: 10_844_000 picoseconds. - Weight::from_parts(11_277_000, 0) + // Minimum execution time: 17_013_000 picoseconds. + Weight::from_parts(17_615_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -427,8 +428,8 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `484` // Estimated: `3675` - // Minimum execution time: 10_635_000 picoseconds. - Weight::from_parts(11_133_000, 0) + // Minimum execution time: 16_969_000 picoseconds. + Weight::from_parts(17_730_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -439,8 +440,8 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `280` // Estimated: `3675` - // Minimum execution time: 5_844_000 picoseconds. - Weight::from_parts(6_365_000, 0) + // Minimum execution time: 10_660_000 picoseconds. + Weight::from_parts(11_118_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -453,8 +454,8 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `280` // Estimated: `3675` - // Minimum execution time: 8_969_000 picoseconds. - Weight::from_parts(9_620_000, 0) + // Minimum execution time: 14_678_000 picoseconds. + Weight::from_parts(15_256_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -467,8 +468,8 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `280` // Estimated: `3675` - // Minimum execution time: 8_357_000 picoseconds. - Weight::from_parts(8_621_000, 0) + // Minimum execution time: 14_010_000 picoseconds. + Weight::from_parts(14_854_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -481,8 +482,8 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `406` // Estimated: `3675` - // Minimum execution time: 8_669_000 picoseconds. - Weight::from_parts(8_993_000, 0) + // Minimum execution time: 13_557_000 picoseconds. + Weight::from_parts(14_206_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -495,8 +496,8 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `439` // Estimated: `3675` - // Minimum execution time: 7_975_000 picoseconds. - Weight::from_parts(8_287_000, 0) + // Minimum execution time: 13_061_000 picoseconds. + Weight::from_parts(13_681_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -509,12 +510,28 @@ impl pallet_bonded_assets::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `388` // Estimated: `3675` - // Minimum execution time: 7_521_000 picoseconds. - Weight::from_parts(7_789_000, 0) + // Minimum execution time: 13_201_000 picoseconds. + Weight::from_parts(13_722_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } + /// Storage: `BondedFungibles::Asset` (r:1 w:1) + /// Proof: `BondedFungibles::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `BondedFungibles::Account` (r:2 w:2) + /// Proof: `BondedFungibles::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + fn transfer_all() -> Weight { + // Proof Size summary in bytes: + // Measured: `440` + // Estimated: `6208` + // Minimum execution time: 43_581_000 picoseconds. + Weight::from_parts(45_042_000, 0) + .saturating_add(Weight::from_parts(0, 6208)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } } #[cfg(test)] @@ -903,4 +920,16 @@ mod tests { > 3675 ); } + #[test] + fn test_transfer_all() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 6208 + ); + } } diff --git a/runtimes/peregrine/src/weights/pallet_collators.rs b/runtimes/peregrine/src/weights/pallet_collators.rs index fa6333702f..436f9995d6 100644 --- a/runtimes/peregrine/src/weights/pallet_collators.rs +++ b/runtimes/peregrine/src/weights/pallet_collators.rs @@ -18,20 +18,21 @@ //! Autogenerated weights for `pallet_collators` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 -//! DATE: 2025-04-23, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 47.0.0 +//! DATE: 2025-05-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024 // Executed Command: -// ./target/release/kilt-parachain +// frame-omni-bencher +// v1 // benchmark // pallet -// --heap-pages=4096 -// --chain=dev // --pallet=pallet-collators // --extrinsic=* +// --genesis-builder=runtime +// --runtime=./target/release/wbuild/peregrine-runtime/peregrine_runtime.compact.compressed.wasm // --header=HEADER-GPL // --template=.maintain/runtime-weight-template.hbs // --output=./runtimes/peregrine/src/weights/ @@ -56,11 +57,11 @@ impl pallet_collators::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `170 + m * (32 ±0)` // Estimated: `2510` - // Minimum execution time: 4_812_000 picoseconds. - Weight::from_parts(5_223_134, 0) + // Minimum execution time: 8_472_000 picoseconds. + Weight::from_parts(9_157_371, 0) .saturating_add(Weight::from_parts(0, 2510)) - // Standard Error: 771 - .saturating_add(Weight::from_parts(16_478, 0).saturating_mul(m.into())) + // Standard Error: 1_170 + .saturating_add(Weight::from_parts(26_129, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -75,11 +76,9 @@ impl pallet_collators::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `222 + m * (32 ±0)` // Estimated: `2510 + m * (32 ±0)` - // Minimum execution time: 6_159_000 picoseconds. - Weight::from_parts(6_682_650, 0) + // Minimum execution time: 11_115_000 picoseconds. + Weight::from_parts(12_303_767, 0) .saturating_add(Weight::from_parts(0, 2510)) - // Standard Error: 725 - .saturating_add(Weight::from_parts(15_110, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) @@ -95,11 +94,11 @@ impl pallet_collators::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `222 + m * (32 ±0)` // Estimated: `2510 + m * (32 ±0)` - // Minimum execution time: 6_279_000 picoseconds. - Weight::from_parts(6_612_007, 0) + // Minimum execution time: 10_888_000 picoseconds. + Weight::from_parts(11_823_159, 0) .saturating_add(Weight::from_parts(0, 2510)) - // Standard Error: 980 - .saturating_add(Weight::from_parts(26_782, 0).saturating_mul(m.into())) + // Standard Error: 1_913 + .saturating_add(Weight::from_parts(21_019, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) @@ -111,15 +110,15 @@ impl pallet_collators::WeightInfo for WeightInfo { /// Storage: UNKNOWN KEY `0xdfe4dad7b89644d5962c7bb034ca6f7bb10896c85af113f86bae1ab193a37922` (r:0 w:1) /// Proof: UNKNOWN KEY `0xdfe4dad7b89644d5962c7bb034ca6f7bb10896c85af113f86bae1ab193a37922` (r:0 w:1) /// The range of component `m` is `[1, 32]`. - fn reset_member(m: u32, ) -> Weight { + fn reset_members(m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `222 + m * (32 ±0)` // Estimated: `2510 + m * (32 ±0)` - // Minimum execution time: 6_318_000 picoseconds. - Weight::from_parts(6_828_217, 0) + // Minimum execution time: 10_864_000 picoseconds. + Weight::from_parts(11_892_378, 0) .saturating_add(Weight::from_parts(0, 2510)) - // Standard Error: 932 - .saturating_add(Weight::from_parts(72_412, 0).saturating_mul(m.into())) + // Standard Error: 1_333 + .saturating_add(Weight::from_parts(63_054, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) @@ -135,11 +134,11 @@ impl pallet_collators::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `222 + m * (32 ±0)` // Estimated: `2510 + m * (32 ±0)` - // Minimum execution time: 6_538_000 picoseconds. - Weight::from_parts(7_074_832, 0) + // Minimum execution time: 10_998_000 picoseconds. + Weight::from_parts(11_990_124, 0) .saturating_add(Weight::from_parts(0, 2510)) - // Standard Error: 891 - .saturating_add(Weight::from_parts(18_976, 0).saturating_mul(m.into())) + // Standard Error: 1_256 + .saturating_add(Weight::from_parts(19_368, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) @@ -155,11 +154,11 @@ impl pallet_collators::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `170 + m * (32 ±0)` // Estimated: `2510 + m * (32 ±0)` - // Minimum execution time: 3_643_000 picoseconds. - Weight::from_parts(4_129_209, 0) + // Minimum execution time: 6_609_000 picoseconds. + Weight::from_parts(7_066_479, 0) .saturating_add(Weight::from_parts(0, 2510)) - // Standard Error: 497 - .saturating_add(Weight::from_parts(4_023, 0).saturating_mul(m.into())) + // Standard Error: 857 + .saturating_add(Weight::from_parts(12_319, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) @@ -168,16 +167,13 @@ impl pallet_collators::WeightInfo for WeightInfo { /// Proof: `Collators::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0xdfe4dad7b89644d5962c7bb034ca6f7bb10896c85af113f86bae1ab193a37922` (r:0 w:1) /// Proof: UNKNOWN KEY `0xdfe4dad7b89644d5962c7bb034ca6f7bb10896c85af113f86bae1ab193a37922` (r:0 w:1) - /// The range of component `m` is `[1, 32]`. - fn clear_prime(m: u32, ) -> Weight { + fn clear_prime() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_096_000 picoseconds. - Weight::from_parts(1_229_794, 0) + // Minimum execution time: 2_246_000 picoseconds. + Weight::from_parts(2_417_000, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 94 - .saturating_add(Weight::from_parts(35, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().writes(2)) } } @@ -221,7 +217,7 @@ mod tests { ); } #[test] - fn test_reset_member() { + fn test_reset_members() { assert!( ::BlockWeights::get() .per_class diff --git a/runtimes/peregrine/src/weights/pallet_membership.rs b/runtimes/peregrine/src/weights/pallet_membership.rs index 618736a02e..c9eb731d13 100644 --- a/runtimes/peregrine/src/weights/pallet_membership.rs +++ b/runtimes/peregrine/src/weights/pallet_membership.rs @@ -97,7 +97,7 @@ impl pallet_membership::WeightInfo for WeightInfo { /// Storage: `TipsMembership::Prime` (r:1 w:0) /// Proof: `TipsMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `Ignored`) /// The range of component `m` is `[1, 21]`. - fn reset_member(_m: u32, ) -> Weight { + fn reset_members(_m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `187 + m * (32 ±0)` // Estimated: `990` @@ -140,7 +140,7 @@ impl pallet_membership::WeightInfo for WeightInfo { /// Storage: `TipsMembership::Prime` (r:0 w:1) /// Proof: `TipsMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `Ignored`) /// The range of component `m` is `[1, 21]`. - fn clear_prime(_m: u32, ) -> Weight { + fn clear_prime( ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` diff --git a/runtimes/peregrine/src/weights/pallet_scheduler.rs b/runtimes/peregrine/src/weights/pallet_scheduler.rs index 777facf670..c06d02f2d9 100644 --- a/runtimes/peregrine/src/weights/pallet_scheduler.rs +++ b/runtimes/peregrine/src/weights/pallet_scheduler.rs @@ -18,26 +18,24 @@ //! Autogenerated weights for `pallet_scheduler` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 -//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 47.0.0 +//! DATE: 2025-05-12, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024 // Executed Command: -// ./target/release/kilt-parachain +// frame-omni-bencher +// v1 // benchmark // pallet -// --template=.maintain/runtime-weight-template.hbs -// --header=HEADER-GPL -// --wasm-execution=compiled -// --heap-pages=4096 -// --steps=50 -// --repeat=20 -// --chain=dev // --pallet=pallet-scheduler // --extrinsic=* -// --output=./runtimes/peregrine/src/weights/pallet_scheduler.rs +// --genesis-builder=runtime +// --runtime=./target/release/wbuild/peregrine-runtime/peregrine_runtime.compact.compressed.wasm +// --header=HEADER-GPL +// --template=.maintain/runtime-weight-template.hbs +// --output=./runtimes/peregrine/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_imports)] @@ -55,8 +53,8 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `36` // Estimated: `1493` - // Minimum execution time: 2_691_000 picoseconds. - Weight::from_parts(2_800_000, 0) + // Minimum execution time: 4_647_000 picoseconds. + Weight::from_parts(4_883_000, 0) .saturating_add(Weight::from_parts(0, 1493)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -68,11 +66,11 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `83 + s * (181 ±0)` // Estimated: `42632` - // Minimum execution time: 3_303_000 picoseconds. - Weight::from_parts(7_206_829, 0) + // Minimum execution time: 5_373_000 picoseconds. + Weight::from_parts(7_568_073, 0) .saturating_add(Weight::from_parts(0, 42632)) - // Standard Error: 2_466 - .saturating_add(Weight::from_parts(460_152, 0).saturating_mul(s.into())) + // Standard Error: 2_446 + .saturating_add(Weight::from_parts(276_325, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -80,12 +78,12 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_464_000 picoseconds. - Weight::from_parts(3_715_000, 0) + // Minimum execution time: 2_935_000 picoseconds. + Weight::from_parts(3_097_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `Preimage::PreimageFor` (r:1 w:1) - /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`) + /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`) /// Storage: `Preimage::StatusFor` (r:1 w:0) /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) /// Storage: `Preimage::RequestStatusFor` (r:1 w:1) @@ -93,16 +91,15 @@ impl pallet_scheduler::WeightInfo for WeightInfo { /// The range of component `s` is `[128, 4194304]`. fn service_task_fetched(s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `246 + s * (1 ±0)` - // Estimated: `3711 + s * (1 ±0)` - // Minimum execution time: 18_427_000 picoseconds. - Weight::from_parts(18_762_000, 0) - .saturating_add(Weight::from_parts(0, 3711)) - // Standard Error: 17 - .saturating_add(Weight::from_parts(1_557, 0).saturating_mul(s.into())) + // Measured: `213 + s * (1 ±0)` + // Estimated: `4197809` + // Minimum execution time: 15_916_000 picoseconds. + Weight::from_parts(16_472_000, 0) + .saturating_add(Weight::from_parts(0, 4197809)) + // Standard Error: 142 + .saturating_add(Weight::from_parts(13_204, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) - .saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into())) } /// Storage: `Scheduler::Lookup` (r:0 w:1) /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) @@ -110,8 +107,8 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_194_000 picoseconds. - Weight::from_parts(5_374_000, 0) + // Minimum execution time: 4_171_000 picoseconds. + Weight::from_parts(4_333_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -119,24 +116,24 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_554_000 picoseconds. - Weight::from_parts(3_666_000, 0) + // Minimum execution time: 3_082_000 picoseconds. + Weight::from_parts(3_284_000, 0) .saturating_add(Weight::from_parts(0, 0)) } fn execute_dispatch_signed() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_477_000 picoseconds. - Weight::from_parts(2_617_000, 0) + // Minimum execution time: 1_943_000 picoseconds. + Weight::from_parts(2_110_000, 0) .saturating_add(Weight::from_parts(0, 0)) } fn execute_dispatch_unsigned() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_507_000 picoseconds. - Weight::from_parts(2_604_000, 0) + // Minimum execution time: 1_965_000 picoseconds. + Weight::from_parts(2_047_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `Scheduler::Agenda` (r:1 w:1) @@ -146,16 +143,18 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `83 + s * (181 ±0)` // Estimated: `42632` - // Minimum execution time: 10_931_000 picoseconds. - Weight::from_parts(15_038_764, 0) + // Minimum execution time: 8_540_000 picoseconds. + Weight::from_parts(12_005_932, 0) .saturating_add(Weight::from_parts(0, 42632)) - // Standard Error: 2_079 - .saturating_add(Weight::from_parts(482_973, 0).saturating_mul(s.into())) + // Standard Error: 1_768 + .saturating_add(Weight::from_parts(313_546, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Scheduler::Agenda` (r:1 w:1) /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(38), added: 2513, mode: `MaxEncodedLen`) /// Storage: `Scheduler::Lookup` (r:0 w:1) /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// The range of component `s` is `[1, 50]`. @@ -163,13 +162,13 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `83 + s * (181 ±0)` // Estimated: `42632` - // Minimum execution time: 16_383_000 picoseconds. - Weight::from_parts(16_256_564, 0) + // Minimum execution time: 13_766_000 picoseconds. + Weight::from_parts(14_503_459, 0) .saturating_add(Weight::from_parts(0, 42632)) - // Standard Error: 786 - .saturating_add(Weight::from_parts(718_645, 0).saturating_mul(s.into())) + // Standard Error: 1_808 + .saturating_add(Weight::from_parts(495_489, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `Scheduler::Lookup` (r:1 w:1) /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) @@ -180,11 +179,11 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `266 + s * (189 ±0)` // Estimated: `42632` - // Minimum execution time: 14_590_000 picoseconds. - Weight::from_parts(19_492_127, 0) + // Minimum execution time: 11_223_000 picoseconds. + Weight::from_parts(15_993_707, 0) .saturating_add(Weight::from_parts(0, 42632)) - // Standard Error: 2_745 - .saturating_add(Weight::from_parts(509_883, 0).saturating_mul(s.into())) + // Standard Error: 3_161 + .saturating_add(Weight::from_parts(349_634, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -192,19 +191,98 @@ impl pallet_scheduler::WeightInfo for WeightInfo { /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: `Scheduler::Agenda` (r:1 w:1) /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(38), added: 2513, mode: `MaxEncodedLen`) /// The range of component `s` is `[1, 50]`. fn cancel_named(s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `290 + s * (189 ±0)` // Estimated: `42632` - // Minimum execution time: 18_014_000 picoseconds. - Weight::from_parts(18_682_628, 0) + // Minimum execution time: 15_833_000 picoseconds. + Weight::from_parts(17_229_195, 0) .saturating_add(Weight::from_parts(0, 42632)) - // Standard Error: 1_730 - .saturating_add(Weight::from_parts(749_440, 0).saturating_mul(s.into())) + // Standard Error: 2_194 + .saturating_add(Weight::from_parts(518_980, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(38), added: 2513, mode: `MaxEncodedLen`) + /// The range of component `s` is `[1, 50]`. + fn schedule_retry(s: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `123` + // Estimated: `42632` + // Minimum execution time: 8_589_000 picoseconds. + Weight::from_parts(9_308_498, 0) + .saturating_add(Weight::from_parts(0, 42632)) + // Standard Error: 603 + .saturating_add(Weight::from_parts(25_962, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } + /// Storage: `Scheduler::Agenda` (r:1 w:0) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(38), added: 2513, mode: `MaxEncodedLen`) + fn set_retry() -> Weight { + // Proof Size summary in bytes: + // Measured: `9133` + // Estimated: `42632` + // Minimum execution time: 22_227_000 picoseconds. + Weight::from_parts(23_065_000, 0) + .saturating_add(Weight::from_parts(0, 42632)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Scheduler::Lookup` (r:1 w:0) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:0) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(38), added: 2513, mode: `MaxEncodedLen`) + fn set_retry_named() -> Weight { + // Proof Size summary in bytes: + // Measured: `9815` + // Estimated: `42632` + // Minimum execution time: 27_138_000 picoseconds. + Weight::from_parts(27_964_000, 0) + .saturating_add(Weight::from_parts(0, 42632)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Scheduler::Agenda` (r:1 w:0) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(38), added: 2513, mode: `MaxEncodedLen`) + fn cancel_retry() -> Weight { + // Proof Size summary in bytes: + // Measured: `9145` + // Estimated: `42632` + // Minimum execution time: 21_253_000 picoseconds. + Weight::from_parts(21_962_000, 0) + .saturating_add(Weight::from_parts(0, 42632)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Scheduler::Lookup` (r:1 w:0) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:0) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(38), added: 2513, mode: `MaxEncodedLen`) + fn cancel_retry_named() -> Weight { + // Proof Size summary in bytes: + // Measured: `9827` + // Estimated: `42632` + // Minimum execution time: 26_658_000 picoseconds. + Weight::from_parts(27_644_000, 0) + .saturating_add(Weight::from_parts(0, 42632)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } } #[cfg(test)] @@ -242,7 +320,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 3711 + > 3407870 ); } #[test] @@ -293,4 +371,64 @@ mod tests { > 42632 ); } + #[test] + fn test_schedule_retry() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 42632 + ); + } + #[test] + fn test_set_retry() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 42632 + ); + } + #[test] + fn test_set_retry_named() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 42632 + ); + } + #[test] + fn test_cancel_retry() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 42632 + ); + } + #[test] + fn test_cancel_retry_named() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 42632 + ); + } } diff --git a/runtimes/peregrine/src/weights/pallet_technical_membership.rs b/runtimes/peregrine/src/weights/pallet_technical_membership.rs index 4f782f9f8b..c2ec3694f6 100644 --- a/runtimes/peregrine/src/weights/pallet_technical_membership.rs +++ b/runtimes/peregrine/src/weights/pallet_technical_membership.rs @@ -124,7 +124,7 @@ impl pallet_technical_membership::WeightInfo for Weight /// Storage: `TechnicalCommittee::Prime` (r:0 w:1) /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Ignored`) /// The range of component `m` is `[1, 100]`. - fn reset_member(_m: u32, ) -> Weight { + fn reset_members(_m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `237 + m * (64 ±0)` // Estimated: `990` @@ -177,7 +177,7 @@ impl pallet_technical_membership::WeightInfo for Weight /// Storage: `TechnicalCommittee::Prime` (r:0 w:1) /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Ignored`) /// The range of component `m` is `[1, 100]`. - fn clear_prime(_m: u32, ) -> Weight { + fn clear_prime( ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` diff --git a/runtimes/peregrine/src/weights/pallet_token_gateway.rs b/runtimes/peregrine/src/weights/pallet_token_gateway.rs new file mode 100644 index 0000000000..6f27639b3d --- /dev/null +++ b/runtimes/peregrine/src/weights/pallet_token_gateway.rs @@ -0,0 +1,182 @@ +// KILT Blockchain – +// Copyright (C) 2025, KILT Foundation + +// The KILT Blockchain is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// The KILT Blockchain is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +// If you feel like getting in touch with us, you can do so at + +//! Autogenerated weights for `pallet_token_gateway` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 47.0.0 +//! DATE: 2025-05-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024 + +// Executed Command: +// frame-omni-bencher +// v1 +// benchmark +// pallet +// --pallet=pallet-token-gateway +// --extrinsic=* +// --genesis-builder=runtime +// --runtime=./target/release/wbuild/peregrine-runtime/peregrine_runtime.compact.compressed.wasm +// --header=HEADER-GPL +// --template=.maintain/runtime-weight-template.hbs +// --output=./runtimes/peregrine/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_imports)] +#![allow(clippy::as_conversions)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_token_gateway`. +pub struct WeightInfo(PhantomData); +impl pallet_token_gateway::WeightInfo for WeightInfo { + /// Storage: `Hyperbridge::HostParams` (r:1 w:0) + /// Proof: `Hyperbridge::HostParams` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Ismp::Nonce` (r:1 w:1) + /// Proof: `Ismp::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TokenGateway::Precisions` (r:0 w:100) + /// Proof: `TokenGateway::Precisions` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TokenGateway::NativeAssets` (r:0 w:1) + /// Proof: `TokenGateway::NativeAssets` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TokenGateway::LocalAssets` (r:0 w:1) + /// Proof: `TokenGateway::LocalAssets` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TokenGateway::SupportedAssets` (r:0 w:1) + /// Proof: `TokenGateway::SupportedAssets` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: UNKNOWN KEY `0x52657175657374436f6d6d69746d656e74736dbf7451ee5809df8f986d7fa449` (r:1 w:1) + /// Proof: UNKNOWN KEY `0x52657175657374436f6d6d69746d656e74736dbf7451ee5809df8f986d7fa449` (r:1 w:1) + /// The range of component `x` is `[1, 100]`. + fn create_erc6160_asset(x: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `290` + // Estimated: `3755` + // Minimum execution time: 31_268_000 picoseconds. + Weight::from_parts(30_872_263, 0) + .saturating_add(Weight::from_parts(0, 3755)) + // Standard Error: 3_317 + .saturating_add(Weight::from_parts(1_558_070, 0).saturating_mul(x.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(5)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into()))) + } + /// Storage: `TokenGateway::SupportedAssets` (r:1 w:0) + /// Proof: `TokenGateway::SupportedAssets` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TokenGateway::NativeAssets` (r:1 w:0) + /// Proof: `TokenGateway::NativeAssets` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `TokenGateway::Precisions` (r:1 w:0) + /// Proof: `TokenGateway::Precisions` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Ismp::Nonce` (r:1 w:1) + /// Proof: `Ismp::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: UNKNOWN KEY `0x52657175657374436f6d6d69746d656e747387c60cc3838067ec43c7c32db115` (r:1 w:1) + /// Proof: UNKNOWN KEY `0x52657175657374436f6d6d69746d656e747387c60cc3838067ec43c7c32db115` (r:1 w:1) + fn teleport() -> Weight { + // Proof Size summary in bytes: + // Measured: `732` + // Estimated: `4197` + // Minimum execution time: 64_709_000 picoseconds. + Weight::from_parts(66_906_000, 0) + .saturating_add(Weight::from_parts(0, 4197)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `TokenGateway::TokenGatewayAddresses` (r:0 w:1) + /// Proof: `TokenGateway::TokenGatewayAddresses` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `x` is `[1, 100]`. + fn set_token_gateway_addresses(_x: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_490_000 picoseconds. + Weight::from_parts(4_037_612, 0) + .saturating_add(Weight::from_parts(0, 0)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Hyperbridge::HostParams` (r:1 w:0) + /// Proof: `Hyperbridge::HostParams` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Ismp::Nonce` (r:1 w:1) + /// Proof: `Ismp::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: UNKNOWN KEY `0x52657175657374436f6d6d69746d656e7473063ffee434bbc145cf1b300aac5e` (r:1 w:1) + /// Proof: UNKNOWN KEY `0x52657175657374436f6d6d69746d656e7473063ffee434bbc145cf1b300aac5e` (r:1 w:1) + fn update_erc6160_asset() -> Weight { + // Proof Size summary in bytes: + // Measured: `455` + // Estimated: `3920` + // Minimum execution time: 24_180_000 picoseconds. + Weight::from_parts(25_391_000, 0) + .saturating_add(Weight::from_parts(0, 3920)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `TokenGateway::Precisions` (r:0 w:100) + /// Proof: `TokenGateway::Precisions` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `x` is `[1, 100]`. + fn update_asset_precision(x: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_861_000 picoseconds. + Weight::from_parts(2_719_181, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 3_076 + .saturating_add(Weight::from_parts(1_528_011, 0).saturating_mul(x.into())) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into()))) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_create_erc6160_asset() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3755 + ); + } + #[test] + fn test_teleport() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 4197 + ); + } + #[test] + fn test_update_erc6160_asset() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3920 + ); + } +} diff --git a/runtimes/peregrine/src/weights/pallet_treasury.rs b/runtimes/peregrine/src/weights/pallet_treasury.rs index 092f5d0e08..faa261f1e2 100644 --- a/runtimes/peregrine/src/weights/pallet_treasury.rs +++ b/runtimes/peregrine/src/weights/pallet_treasury.rs @@ -65,51 +65,6 @@ impl pallet_treasury::WeightInfo for WeightInfo { .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: `Treasury::ProposalCount` (r:1 w:1) - /// Proof: `Treasury::ProposalCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Treasury::Proposals` (r:0 w:1) - /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) - fn propose_spend() -> Weight { - // Proof Size summary in bytes: - // Measured: `111` - // Estimated: `1489` - // Minimum execution time: 25_458_000 picoseconds. - Weight::from_parts(25_878_000, 0) - .saturating_add(Weight::from_parts(0, 1489)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(2)) - } - /// Storage: `Treasury::Proposals` (r:1 w:1) - /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:2 w:2) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) - fn reject_proposal() -> Weight { - // Proof Size summary in bytes: - // Measured: `376` - // Estimated: `6204` - // Minimum execution time: 36_141_000 picoseconds. - Weight::from_parts(36_934_000, 0) - .saturating_add(Weight::from_parts(0, 6204)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: `Treasury::Proposals` (r:1 w:0) - /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) - /// Storage: `Treasury::Approvals` (r:1 w:1) - /// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) - /// The range of component `p` is `[0, 99]`. - fn approve_proposal(p: u32, ) -> Weight { - // Proof Size summary in bytes: - // Measured: `433 + p * (8 ±0)` - // Estimated: `3573` - // Minimum execution time: 9_838_000 picoseconds. - Weight::from_parts(12_745_248, 0) - .saturating_add(Weight::from_parts(0, 3573)) - // Standard Error: 944 - .saturating_add(Weight::from_parts(34_217, 0).saturating_mul(p.into())) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(1)) - } /// Storage: `Treasury::Approvals` (r:1 w:1) /// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) fn remove_approval() -> Weight { diff --git a/runtimes/peregrine/src/xcm.rs b/runtimes/peregrine/src/xcm.rs index 5b003c97cc..dfb476bc8e 100644 --- a/runtimes/peregrine/src/xcm.rs +++ b/runtimes/peregrine/src/xcm.rs @@ -48,6 +48,7 @@ use xcm_builder::{ use xcm_executor::{traits::WithOriginFilter, XcmExecutor}; use runtime_common::{ + constants, xcm_config::{ DenyReserveTransferToRelayChain, DenyThenTry, HeapSize, HereLocation, LocalAssetTransactor, LocationToAccountId, MaxAssetsIntoHolding, MaxInstructions, MaxStale, ParentLocation, ParentOrSiblings, @@ -128,7 +129,7 @@ pub type XcmBarrier = TrailingSetTopicAsId< /// 1. Have a fixed weight; /// 2. Cannot lead to another call being made; /// 3. Have a defined proof size weight, e.g. no unbounded vecs in call -/// parameters. +/// parameters. pub struct SafeCallFilter; impl Contains for SafeCallFilter { fn contains(c: &RuntimeCall) -> bool { @@ -254,6 +255,10 @@ impl xcm_executor::Config for XcmConfig { type SafeCallFilter = SafeCallFilter; type Aliasers = Nothing; type TransactionalProcessor = FrameTransactionalProcessor; + type HrmpChannelAcceptedHandler = (); + type HrmpChannelClosingHandler = (); + type HrmpNewChannelOpenRequestHandler = (); + type XcmRecorder = PolkadotXcm; } /// Allows only local `Signed` origins to be converted into `MultiLocation`s by @@ -312,6 +317,8 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime { type PriceForSiblingDelivery = NoPriceForMessageDelivery; type MaxInboundSuspended = ConstU32<1_000>; type XcmpQueue = TransformOrigin; + type MaxActiveOutboundChannels = ConstU32<{ constants::pallet_xcmp_queue::MAX_ACTIVE_OUTBOUND_CHANNELS }>; + type MaxPageSize = ConstU32<{ constants::pallet_xcmp_queue::MAX_PAGE_SIZE }>; } impl pallet_message_queue::Config for Runtime { @@ -328,4 +335,5 @@ impl pallet_message_queue::Config for Runtime { type HeapSize = HeapSize; type MaxStale = MaxStale; type ServiceWeight = ServiceWeight; + type IdleMaxServiceWeight = (); } diff --git a/runtimes/spiritnet/Cargo.toml b/runtimes/spiritnet/Cargo.toml index f05eaf145a..a0a8579102 100644 --- a/runtimes/spiritnet/Cargo.toml +++ b/runtimes/spiritnet/Cargo.toml @@ -19,10 +19,12 @@ sp-io = { workspace = true } [dependencies] # External dependencies +anyhow = { workspace = true } cfg-if = { workspace = true } log = { workspace = true } parity-scale-codec = { workspace = true, features = ["derive"] } scale-info = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } hex-literal = { workspace = true, optional = true } @@ -32,6 +34,7 @@ kilt-runtime-api-did = { workspace = true } kilt-runtime-api-public-credentials = { workspace = true } kilt-runtime-api-staking = { workspace = true } pallet-asset-switch-runtime-api = { workspace = true } +pallet-bonded-coins-runtime-api = { workspace = true } pallet-transaction-payment-rpc-runtime-api = { workspace = true } # KILT pallets & primitives @@ -42,6 +45,7 @@ did = { workspace = true } kilt-runtime-api-dip-provider = { workspace = true } kilt-support = { workspace = true } pallet-asset-switch = { workspace = true } +pallet-bonded-coins = { workspace = true } pallet-deposit-storage = { workspace = true } pallet-did-lookup = { workspace = true } pallet-dip-provider = { workspace = true } @@ -95,7 +99,7 @@ pallet-vesting = { workspace = true } # Cumulus dependencies cumulus-pallet-aura-ext = { workspace = true } -cumulus-pallet-parachain-system = { workspace = true, features = ["parameterized-consensus-hook"] } +cumulus-pallet-parachain-system = { workspace = true } cumulus-pallet-xcm = { workspace = true } cumulus-pallet-xcmp-queue = { workspace = true } cumulus-primitives-aura = { workspace = true } @@ -121,6 +125,15 @@ frame-system-benchmarking = { workspace = true, optional = true } # Runtime tests frame-try-runtime = { workspace = true, optional = true } +# ISMP +ismp = { workspace = true } +ismp-parachain = { workspace = true } +ismp-parachain-runtime-api = { workspace = true } +pallet-hyperbridge = { workspace = true } +pallet-ismp = { workspace = true, features = ["unsigned"] } +pallet-ismp-runtime-api = { workspace = true } +pallet-token-gateway = { workspace = true } + [features] default = ["std"] fast-gov = ["runtime-common/fast-gov"] @@ -131,7 +144,6 @@ runtime-benchmarks = [ "cumulus-pallet-parachain-system/runtime-benchmarks", "cumulus-pallet-session-benchmarking/runtime-benchmarks", "cumulus-pallet-xcmp-queue/runtime-benchmarks", - "cumulus-primitives-core/runtime-benchmarks", "cumulus-primitives-utility/runtime-benchmarks", "delegation/runtime-benchmarks", "did/runtime-benchmarks", @@ -140,10 +152,12 @@ runtime-benchmarks = [ "frame-system-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", "hex-literal", + "ismp-parachain/runtime-benchmarks", "kilt-support/runtime-benchmarks", "pallet-asset-switch/runtime-benchmarks", "pallet-assets/runtime-benchmarks", "pallet-balances/runtime-benchmarks", + "pallet-bonded-coins/runtime-benchmarks", "pallet-collective/runtime-benchmarks", "pallet-democracy/runtime-benchmarks", "pallet-deposit-storage/runtime-benchmarks", @@ -160,13 +174,13 @@ runtime-benchmarks = [ "pallet-scheduler/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", "pallet-tips/runtime-benchmarks", + "pallet-token-gateway/runtime-benchmarks", "pallet-treasury/runtime-benchmarks", "pallet-utility/runtime-benchmarks", "pallet-vesting/runtime-benchmarks", "pallet-web3-names/runtime-benchmarks", "pallet-xcm/runtime-benchmarks", "parachain-staking/runtime-benchmarks", - "polkadot-runtime-common/runtime-benchmarks", "public-credentials/runtime-benchmarks", "runtime-common/runtime-benchmarks", "sp-runtime/runtime-benchmarks", @@ -195,6 +209,9 @@ std = [ "frame-system-rpc-runtime-api/std", "frame-system/std", "frame-try-runtime?/std", + "ismp-parachain-runtime-api/std", + "ismp-parachain/std", + "ismp/std", "kilt-runtime-api-did/std", "kilt-runtime-api-dip-provider/std", "kilt-runtime-api-public-credentials/std", @@ -207,6 +224,8 @@ std = [ "pallet-aura/std", "pallet-authorship/std", "pallet-balances/std", + "pallet-bonded-coins-runtime-api/std", + "pallet-bonded-coins/std", "pallet-collective/std", "pallet-democracy/std", "pallet-deposit-storage/std", @@ -214,6 +233,8 @@ std = [ "pallet-dip-provider/std", "pallet-indices/std", "pallet-inflation/std", + "pallet-ismp-runtime-api/std", + "pallet-ismp/std", "pallet-membership/std", "pallet-message-queue/std", "pallet-migration/std", @@ -224,6 +245,7 @@ std = [ "pallet-session/std", "pallet-timestamp/std", "pallet-tips/std", + "pallet-token-gateway/std", "pallet-transaction-payment-rpc-runtime-api/std", "pallet-transaction-payment/std", "pallet-treasury/std", @@ -269,12 +291,14 @@ try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "frame-try-runtime", + "ismp-parachain/try-runtime", "kilt-support/try-runtime", "pallet-asset-switch/try-runtime", "pallet-assets/try-runtime", "pallet-aura/try-runtime", "pallet-authorship/try-runtime", "pallet-balances/try-runtime", + "pallet-bonded-coins/try-runtime", "pallet-collective/try-runtime", "pallet-democracy/try-runtime", "pallet-deposit-storage/try-runtime", @@ -282,6 +306,7 @@ try-runtime = [ "pallet-dip-provider/try-runtime", "pallet-indices/try-runtime", "pallet-inflation/try-runtime", + "pallet-ismp/try-runtime", "pallet-membership/try-runtime", "pallet-message-queue/try-runtime", "pallet-migration/try-runtime", @@ -292,6 +317,7 @@ try-runtime = [ "pallet-session/try-runtime", "pallet-timestamp/try-runtime", "pallet-tips/try-runtime", + "pallet-token-gateway/try-runtime", "pallet-transaction-payment/try-runtime", "pallet-treasury/try-runtime", "pallet-utility/try-runtime", diff --git a/runtimes/spiritnet/src/benchmarks/mod.rs b/runtimes/spiritnet/src/benchmarks/mod.rs index e26c2e22bf..90bf16c4c1 100644 --- a/runtimes/spiritnet/src/benchmarks/mod.rs +++ b/runtimes/spiritnet/src/benchmarks/mod.rs @@ -38,10 +38,10 @@ use xcm::v4::{Asset, Assets, Fungibility, Location}; use crate::{ xcm::XcmConfig, AllPalletsWithSystem, AssetSwitchPool1, Attestation, Balances, Collators, Council, Ctype, - Delegation, Democracy, DepositStorage, Did, DidLookup, DipProvider, Fungibles, Indices, MessageQueue, Migration, - Multisig, ParachainStaking, ParachainSystem, Preimage, Proxy, PublicCredentials, Runtime, RuntimeEvent, Scheduler, - System, TechnicalCommittee, TechnicalMembership, Timestamp, Tips, TipsMembership, Treasury, Utility, Vesting, - Web3Names, + Delegation, Democracy, DepositStorage, Did, DidLookup, DipProvider, Fungibles, Indices, IsmpParachain, + MessageQueue, Migration, Multisig, ParachainStaking, ParachainSystem, Preimage, Proxy, PublicCredentials, Runtime, + RuntimeEvent, Scheduler, System, TechnicalCommittee, TechnicalMembership, Timestamp, Tips, TipsMembership, + TokenGateway, Treasury, Utility, Vesting, Web3Names, }; pub(crate) mod asset_switch; @@ -100,6 +100,8 @@ define_benchmarks!( [pallet_did_lookup, DidLookup] // pallet_web3_names instances [pallet_web3_names, Web3Names] + [ismp_parachain, IsmpParachain] + [pallet_token_gateway, TokenGateway] ); impl pallet_xcm::benchmarking::Config for Runtime { diff --git a/runtimes/spiritnet/src/genesis_state.rs b/runtimes/spiritnet/src/genesis_state.rs new file mode 100644 index 0000000000..0ea700fac5 --- /dev/null +++ b/runtimes/spiritnet/src/genesis_state.rs @@ -0,0 +1,145 @@ +// KILT Blockchain – +// Copyright (C) 2025, KILT Foundation + +// The KILT Blockchain is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// The KILT Blockchain is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +// If you feel like getting in touch with us, you can do so at +#![allow(clippy::expect_used)] + +use crate::{ + BalancesConfig, CouncilConfig, ParachainInfoConfig, ParachainStakingConfig, PolkadotXcmConfig, + RuntimeGenesisConfig, SessionConfig, SessionKeys, TechnicalCommitteeConfig, +}; +use runtime_common::{ + constants::{kilt_inflation_config, staking::MinCollatorStake, KILT, MAX_COLLATOR_STAKE}, + get_account_id_from_secret, get_public_key_from_secret, AccountId, AuthorityId, Balance, +}; +use sp_core::sr25519; +use sp_genesis_builder::PresetId; +use sp_std::{vec, vec::Vec}; + +pub const KILT_PARA_ID: u32 = 2_086; +const SAFE_XCM_VERSION: u32 = xcm::prelude::XCM_VERSION; +const NEW_RUNTIME_PRESET: &str = "new"; + +pub mod development { + + use super::*; + + pub fn generate_genesis_state() -> serde_json::Value { + let alice = ( + get_account_id_from_secret::("Alice"), + get_public_key_from_secret::("Alice"), + ); + let bob = ( + get_account_id_from_secret::("Bob"), + get_public_key_from_secret::("Bob"), + ); + let endowed_accounts = [ + alice.0.clone(), + bob.0.clone(), + get_account_id_from_secret::("Charlie"), + get_account_id_from_secret::("Dave"), + get_account_id_from_secret::("Eve"), + get_account_id_from_secret::("Ferdie"), + ]; + + let config = RuntimeGenesisConfig { + balances: BalancesConfig { + balances: endowed_accounts.map(|acc| (acc, 10_000_000 * KILT)).to_vec(), + }, + session: SessionConfig { + keys: [alice.clone(), bob.clone()] + .map(|(acc, key)| (acc.clone(), acc, SessionKeys { aura: key })) + .to_vec(), + ..Default::default() + }, + parachain_info: ParachainInfoConfig { + parachain_id: KILT_PARA_ID.into(), + ..Default::default() + }, + parachain_staking: ParachainStakingConfig { + stakers: [alice.clone(), bob.clone()] + .map(|(acc, _)| -> (AccountId, Option, Balance) { + (acc, None, 2u128.saturating_mul(MinCollatorStake::get())) + }) + .to_vec(), + inflation_config: kilt_inflation_config(), + max_candidate_stake: MAX_COLLATOR_STAKE, + }, + council: CouncilConfig { + members: [alice.clone(), bob.clone()].map(|(acc, _)| acc).to_vec(), + phantom: Default::default(), + }, + technical_committee: TechnicalCommitteeConfig { + members: [alice, bob].map(|(acc, _)| acc).to_vec(), + phantom: Default::default(), + }, + polkadot_xcm: PolkadotXcmConfig { + safe_xcm_version: Some(SAFE_XCM_VERSION), + ..Default::default() + }, + ..Default::default() + }; + + serde_json::to_value(config).expect("Could not build genesis config.") + } +} + +pub mod production { + use super::*; + + pub fn generate_genesis_state() -> serde_json::Value { + let config = RuntimeGenesisConfig { + parachain_info: ParachainInfoConfig { + parachain_id: KILT_PARA_ID.into(), + ..Default::default() + }, + polkadot_xcm: PolkadotXcmConfig { + safe_xcm_version: Some(SAFE_XCM_VERSION), + ..Default::default() + }, + ..Default::default() + }; + + serde_json::to_value(config).expect("Could not build genesis config.") + } +} + +/// Provides the JSON representation of predefined genesis config for given +/// `id`. +pub fn get_preset(id: &PresetId) -> Option> { + let patch = match id.try_into() { + Ok(sp_genesis_builder::DEV_RUNTIME_PRESET) | Ok(sp_genesis_builder::LOCAL_TESTNET_RUNTIME_PRESET) => { + development::generate_genesis_state() + } + Ok(NEW_RUNTIME_PRESET) => production::generate_genesis_state(), + _ => return None, + }; + + Some( + serde_json::to_string(&patch) + .expect("serialization to json is expected to work. qed.") + .into_bytes(), + ) +} + +/// List of supported presets. +pub fn preset_names() -> Vec { + vec![ + PresetId::from(sp_genesis_builder::DEV_RUNTIME_PRESET), + PresetId::from(sp_genesis_builder::LOCAL_TESTNET_RUNTIME_PRESET), + PresetId::from(NEW_RUNTIME_PRESET), + ] +} diff --git a/runtimes/spiritnet/src/governance.rs b/runtimes/spiritnet/src/governance.rs index 5476e107de..bd8b8d730e 100644 --- a/runtimes/spiritnet/src/governance.rs +++ b/runtimes/spiritnet/src/governance.rs @@ -27,10 +27,10 @@ use frame_support::{ }; use frame_system::{EnsureRoot, EnsureSigned}; use runtime_common::{ - constants::{self, KILT}, + constants::{self}, pallet_id, AccountId, Balance, BlockWeights, Tippers, }; -use sp_core::{ConstBool, ConstU128, ConstU32, ConstU64}; +use sp_core::{ConstBool, ConstU32, ConstU64}; use sp_runtime::{traits::AccountIdLookup, Perbill, Permill}; use crate::{ @@ -96,19 +96,14 @@ parameter_types! { impl pallet_treasury::Config for Runtime { type PalletId = pallet_id::Treasury; type Currency = Balances; - type ApproveOrigin = RootOrCollectiveProportion; type RejectOrigin = RootOrCollectiveProportion; type RuntimeEvent = RuntimeEvent; - type OnSlash = Treasury; - type ProposalBond = ProposalBond; - type ProposalBondMinimum = ConstU128<{ 20 * KILT }>; - type ProposalBondMaximum = (); type SpendPeriod = ConstU64<{ constants::governance::SPEND_PERIOD }>; #[cfg(not(feature = "runtime-benchmarks"))] type SpendOrigin = frame_support::traits::NeverEnsureOrigin; #[cfg(feature = "runtime-benchmarks")] type SpendOrigin = - frame_system::EnsureWithSuccess, AccountId, ConstU128<{ Balance::max_value() }>>; + frame_system::EnsureWithSuccess, AccountId, sp_core::ConstU128<{ Balance::MAX }>>; type Burn = Burn; type BurnDestination = (); type SpendFunds = (); @@ -135,6 +130,7 @@ impl pallet_tips::Config for Runtime { type RuntimeEvent = RuntimeEvent; type WeightInfo = weights::pallet_tips::WeightInfo; type MaxTipAmount = constants::tips::MaxTipAmount; + type OnSlash = Treasury; } #[allow(clippy::arithmetic_side_effects)] @@ -161,7 +157,7 @@ impl pallet_collective::Config for Runtime { type SetMembersOrigin = EnsureRoot; } -type TechnicalCollective = pallet_collective::Instance2; +pub(crate) type TechnicalCollective = pallet_collective::Instance2; impl pallet_collective::Config for Runtime { type RuntimeOrigin = RuntimeOrigin; type MaxProposalWeight = MaxProposalWeight; diff --git a/runtimes/spiritnet/src/ismp.rs b/runtimes/spiritnet/src/ismp.rs new file mode 100644 index 0000000000..b4579db386 --- /dev/null +++ b/runtimes/spiritnet/src/ismp.rs @@ -0,0 +1,103 @@ +// KILT Blockchain – +// Copyright (C) 2025, KILT Foundation + +// The KILT Blockchain is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// The KILT Blockchain is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +// If you feel like getting in touch with us, you can do so at + +use frame_support::parameter_types; +use ismp::{host::StateMachine, module::IsmpModule, router::IsmpRouter}; +use runtime_common::{AccountId, Balance}; +use sp_core::{ConstU8, Get}; +use sp_std::{boxed::Box, vec::Vec}; +use xcm::v4::Location; + +use crate::{ + governance::{RootOrCollectiveProportion, TechnicalCollective}, + Balances, Fungibles, Hyperbridge, Ismp, IsmpParachain, Runtime, RuntimeEvent, Timestamp, TokenGateway, Treasury, +}; + +parameter_types! { + // The hyperbridge parachain on Polkadot + pub const Coprocessor: Option = Some(StateMachine::Polkadot(3367)); + pub const HostStateMachine: StateMachine = StateMachine::Polkadot(2086); +} + +#[derive(Default)] +pub struct Router; + +impl IsmpRouter for Router { + fn module_for_id(&self, input: Vec) -> Result, anyhow::Error> { + match input.as_slice() { + pallet_hyperbridge::PALLET_HYPERBRIDGE_ID => Ok(Box::new(pallet_hyperbridge::Pallet::::default())), + id if TokenGateway::is_token_gateway(id) => { + Ok(Box::new(pallet_token_gateway::Pallet::::default())) + } + _ => Err(ismp::Error::ModuleNotFound(input))?, + } + } +} + +impl pallet_ismp::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type AdminOrigin = RootOrCollectiveProportion; + type HostStateMachine = HostStateMachine; + type TimestampProvider = Timestamp; + type Balance = Balance; + type Currency = Balances; + type Coprocessor = Coprocessor; + type ConsensusClients = (ismp_parachain::ParachainConsensusClient,); + type Router = Router; + + type WeightProvider = (); + type OffchainDB = (); +} + +impl pallet_hyperbridge::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type IsmpHost = Ismp; +} + +impl ismp_parachain::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type IsmpHost = Ismp; + type WeightInfo = crate::weights::ismp_parachain::WeightInfo; +} + +pub struct AssetAdmin; +impl Get for AssetAdmin { + fn get() -> AccountId { + Treasury::account_id() + } +} + +parameter_types! { + pub const NativeAssetId: Location = Location::here(); +} + +impl pallet_token_gateway::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type Dispatcher = Hyperbridge; + type Assets = Fungibles; + #[cfg(not(feature = "runtime-benchmarks"))] + type CreateOrigin = RootOrCollectiveProportion; + #[cfg(feature = "runtime-benchmarks")] + type CreateOrigin = frame_system::EnsureSigned; + type AssetAdmin = AssetAdmin; + type Decimals = ConstU8<15>; + type NativeCurrency = Balances; + type NativeAssetId = NativeAssetId; + type EvmToSubstrate = (); + type WeightInfo = crate::weights::pallet_token_gateway::WeightInfo; +} diff --git a/runtimes/spiritnet/src/kilt/did.rs b/runtimes/spiritnet/src/kilt/did.rs index f645e0267d..04435b87fa 100644 --- a/runtimes/spiritnet/src/kilt/did.rs +++ b/runtimes/spiritnet/src/kilt/did.rs @@ -34,7 +34,7 @@ impl DeriveDidCallAuthorizationVerificationKeyRelationship for RuntimeCall { /// ensure that all calls have the same VerificationKeyRelationship fn single_key_relationship(calls: &[RuntimeCall]) -> DeriveDidCallKeyRelationshipResult { let init = calls - .get(0) + .first() .ok_or(RelationshipDeriveError::InvalidCallParameter)? .derive_verification_key_relationship()?; calls diff --git a/runtimes/spiritnet/src/lib.rs b/runtimes/spiritnet/src/lib.rs index 6a49ca8b19..351710036b 100644 --- a/runtimes/spiritnet/src/lib.rs +++ b/runtimes/spiritnet/src/lib.rs @@ -52,7 +52,6 @@ mod governance; mod kilt; pub use kilt::Web3Name; mod migrations; -pub use migrations::RuntimeMigrations; mod parachain; mod runtime_apis; use runtime_apis::_InternalImplRuntimeApis; @@ -60,6 +59,8 @@ pub use runtime_apis::{api, RuntimeApi}; mod system; use sp_version::RuntimeVersion; pub use system::{SessionKeys, SS_58_PREFIX}; +pub mod genesis_state; +mod ismp; use crate::runtime_apis::RUNTIME_API_VERSION; mod weights; @@ -176,6 +177,12 @@ construct_runtime! { // DmpQueue: cumulus_pallet_dmp_queue = 85, // Queue and pass DMP messages on to be executed. MessageQueue: pallet_message_queue = 86, + + // ISMP + Ismp: pallet_ismp = 90, + Hyperbridge: pallet_hyperbridge = 91, + IsmpParachain: ismp_parachain = 92, + TokenGateway: pallet_token_gateway = 93, } } @@ -192,7 +199,7 @@ pub type Executive = frame_executive::Executive< Runtime, // Executes pallet hooks in the order of definition in construct_runtime AllPalletsWithSystem, - RuntimeMigrations, + crate::migrations::RuntimeMigrations, >; /// Block header type as expected by this runtime. diff --git a/runtimes/spiritnet/src/migrations/mod.rs b/runtimes/spiritnet/src/migrations/mod.rs index a2458c7093..5856e33195 100644 --- a/runtimes/spiritnet/src/migrations/mod.rs +++ b/runtimes/spiritnet/src/migrations/mod.rs @@ -19,15 +19,21 @@ use frame_support::parameter_types; use runtime_common::constants; -use crate::{weights, Balances, Runtime, RuntimeEvent}; +use crate::{weights, Balances, ParachainSystem, Runtime, RuntimeEvent}; parameter_types! { pub const Inflation: &'static str = "Inflation"; + pub const DmpPalletName: &'static str = "DmpQueue"; +} +impl cumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime { + type ChannelList = ParachainSystem; } pub type RuntimeMigrations = ( pallet_xcm::migration::MigrateToLatestXcmVersion, + frame_support::migrations::RemovePallet::DbWeight>, + cumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5, frame_support::migrations::RemovePallet::DbWeight>, ); diff --git a/runtimes/spiritnet/src/runtime_apis.rs b/runtimes/spiritnet/src/runtime_apis.rs index 143f0fa784..c6ef1b0adb 100644 --- a/runtimes/spiritnet/src/runtime_apis.rs +++ b/runtimes/spiritnet/src/runtime_apis.rs @@ -4,14 +4,20 @@ use ::xcm::{ v4::{Asset, AssetId, Location}, VersionedAssetId, VersionedLocation, VersionedXcm, }; +use cumulus_pallet_parachain_system::RelayChainState; use cumulus_primitives_aura::Slot; use cumulus_primitives_core::CollationInfo; use frame_support::{ - genesis_builder_helper::{build_config, create_default_config}, + genesis_builder_helper::{build_state, get_preset}, pallet_prelude::{TransactionSource, TransactionValidity}, traits::PalletInfoAccess, weights::Weight, }; +use ismp::{ + consensus::{ConsensusClientId, StateMachineHeight, StateMachineId}, + host::StateMachine, + router::{Request, Response}, +}; use kilt_runtime_api_did::RawDidLinkedInfo; use kilt_support::traits::ItemFilter; use pallet_asset_switch::xcm::AccountId32ToAccountId32JunctionConverter; @@ -31,7 +37,7 @@ use runtime_common::{ AccountId, AuthorityId, Balance, BlockNumber, DidIdentifier, Hash, Nonce, }; use sp_api::impl_runtime_apis; -use sp_core::OpaqueMetadata; +use sp_core::{OpaqueMetadata, H256}; use sp_inherents::{CheckInherentsResult, InherentData}; use sp_metadata_ir::RuntimeApiMetadataIR; use sp_runtime::{ @@ -45,8 +51,8 @@ use crate::{ kilt::{DipProofError, DipProofRequest}, parachain::ConsensusHook, xcm::UniversalLocation, - AssetSwitchPool1, Aura, Block, Executive, InherentDataExt, ParachainStaking, ParachainSystem, Runtime, RuntimeCall, - RuntimeGenesisConfig, SessionKeys, TransactionPayment, Web3Name, VERSION, + AssetSwitchPool1, Block, Executive, InherentDataExt, IsmpParachain, ParachainStaking, ParachainSystem, Runtime, + RuntimeCall, RuntimeGenesisConfig, SessionKeys, TransactionPayment, Web3Name, VERSION, }; // This is necessary since by default `RUNTIME_API_VERSIONS` generated by @@ -79,7 +85,7 @@ impl_runtime_apis! { Executive::execute_block(block); } - fn initialize_block(header: &::Header) { + fn initialize_block(header: &::Header) -> sp_runtime::ExtrinsicInclusionMode { Executive::initialize_block(header) } } @@ -201,7 +207,7 @@ impl_runtime_apis! { } fn authorities() -> Vec { - Aura::authorities().into_inner() + pallet_aura::Authorities::::get().into_inner() } } @@ -221,15 +227,17 @@ impl_runtime_apis! { } impl sp_genesis_builder::GenesisBuilder for Runtime { - - fn create_default_config() -> Vec { - create_default_config::() + fn build_state(config: Vec) -> sp_genesis_builder::Result { + build_state::(config) } - fn build_config(config: Vec) -> sp_genesis_builder::Result { - build_config::(config) + fn get_preset(id: &Option) -> Option> { + get_preset::(id, crate::genesis_state::get_preset) } + fn preset_names() -> Vec { + crate::genesis_state::preset_names() + } } impl kilt_runtime_api_did::Did< @@ -452,6 +460,63 @@ impl_runtime_apis! { } } + + impl pallet_ismp_runtime_api::IsmpRuntimeApi::Hash> for Runtime { + fn host_state_machine() -> StateMachine { + ::HostStateMachine::get() + } + + fn challenge_period(state_machine_id: StateMachineId) -> Option { + pallet_ismp::Pallet::::challenge_period(state_machine_id) + } + + /// Fetch all ISMP events in the block, should only be called from runtime-api. + fn block_events() -> Vec<::ismp::events::Event> { + pallet_ismp::Pallet::::block_events() + } + + /// Fetch all ISMP events and their extrinsic metadata, should only be called from runtime-api. + fn block_events_with_metadata() -> Vec<(::ismp::events::Event, Option)> { + pallet_ismp::Pallet::::block_events_with_metadata() + } + + /// Return the scale encoded consensus state + fn consensus_state(id: ConsensusClientId) -> Option> { + pallet_ismp::Pallet::::consensus_states(id) + } + + /// Return the timestamp this client was last updated in seconds + fn state_machine_update_time(height: StateMachineHeight) -> Option { + pallet_ismp::Pallet::::state_machine_update_time(height) + } + + /// Return the latest height of the state machine + fn latest_state_machine_height(id: StateMachineId) -> Option { + pallet_ismp::Pallet::::latest_state_machine_height(id) + } + + /// Get actual requests + fn requests(commitments: Vec) -> Vec { + pallet_ismp::Pallet::::requests(commitments) + } + + /// Get actual requests + fn responses(commitments: Vec) -> Vec { + pallet_ismp::Pallet::::responses(commitments) + } + } + + impl ismp_parachain_runtime_api::IsmpParachainApi for Runtime { + fn para_ids() -> Vec { + IsmpParachain::para_ids() + } + + fn current_relay_chain_state() -> RelayChainState { + IsmpParachain::current_relay_chain_state() + } + } + + #[cfg(feature = "runtime-benchmarks")] impl frame_benchmarking::Benchmark for Runtime { fn benchmark_metadata(extra: bool) -> ( diff --git a/runtimes/spiritnet/src/system/mod.rs b/runtimes/spiritnet/src/system/mod.rs index 2305b0ae4a..011c867b29 100644 --- a/runtimes/spiritnet/src/system/mod.rs +++ b/runtimes/spiritnet/src/system/mod.rs @@ -18,7 +18,7 @@ use frame_support::{ parameter_types, - traits::{AsEnsureOriginWithArg, Everything, NeverEnsureOrigin, PrivilegeCmp}, + traits::{AsEnsureOriginWithArg, Everything, PrivilegeCmp}, weights::Weight, }; use frame_system::EnsureRoot; @@ -95,6 +95,11 @@ impl frame_system::Config for Runtime { /// The set code logic type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode; type MaxConsumers = frame_support::traits::ConstU32<100>; + type MultiBlockMigrator = (); + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); + type SingleBlockMigrations = (); } impl pallet_timestamp::Config for Runtime { @@ -160,6 +165,7 @@ impl pallet_aura::Config for Runtime { type DisabledValidators = (); type MaxAuthorities = ConstU32<{ constants::staking::MAX_CANDIDATES }>; type AllowMultipleBlocksPerSlot = ConstBool; + type SlotDuration = ConstU64<{ constants::SLOT_DURATION }>; } impl pallet_authorship::Config for Runtime { @@ -283,7 +289,10 @@ impl pallet_membership::Config for Runtime { type RemoveOrigin = RootOrMoreThanHalfCouncil; type SwapOrigin = RootOrMoreThanHalfCouncil; type ResetOrigin = RootOrMoreThanHalfCouncil; - type PrimeOrigin = NeverEnsureOrigin; + #[cfg(not(feature = "runtime-benchmarks"))] + type PrimeOrigin = frame_support::traits::NeverEnsureOrigin; + #[cfg(feature = "runtime-benchmarks")] + type PrimeOrigin = frame_system::EnsureSigned; type MembershipInitialized = (); #[cfg(feature = "runtime-benchmarks")] type MembershipChanged = crate::benchmarks::governance::MockMembershipChangedForBenchmarks; diff --git a/runtimes/spiritnet/src/tests.rs b/runtimes/spiritnet/src/tests.rs index ab6abc9023..fffce9ed3c 100644 --- a/runtimes/spiritnet/src/tests.rs +++ b/runtimes/spiritnet/src/tests.rs @@ -183,7 +183,7 @@ fn test_derive_did_key_lookup() { RuntimeCall::DidLookup(pallet_did_lookup::Call::associate_account { req: AssociateAccountRequest::Polkadot( AccountId::new([1u8; 32]), - sp_runtime::MultiSignature::from(sp_core::ed25519::Signature([0; 64])) + sp_runtime::MultiSignature::from(sp_core::ed25519::Signature::from_raw([0; 64])) ), expiration: BlockNumber::default(), }) diff --git a/runtimes/spiritnet/src/weights/ismp_parachain.rs b/runtimes/spiritnet/src/weights/ismp_parachain.rs new file mode 100644 index 0000000000..dafd48f957 --- /dev/null +++ b/runtimes/spiritnet/src/weights/ismp_parachain.rs @@ -0,0 +1,134 @@ +// KILT Blockchain – +// Copyright (C) 2025, KILT Foundation + +// The KILT Blockchain is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// The KILT Blockchain is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +// If you feel like getting in touch with us, you can do so at + +//! Autogenerated weights for `ismp_parachain` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 47.0.0 +//! DATE: 2025-05-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024 + +// Executed Command: +// frame-omni-bencher +// v1 +// benchmark +// pallet +// --pallet=ismp-parachain +// --extrinsic=* +// --genesis-builder=runtime +// --runtime=./target/release/wbuild/spiritnet-runtime/spiritnet_runtime.compact.compressed.wasm +// --header=HEADER-GPL +// --template=.maintain/runtime-weight-template.hbs +// --output=./runtimes/spiritnet/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_imports)] +#![allow(clippy::as_conversions)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `ismp_parachain`. +pub struct WeightInfo(PhantomData); +impl ismp_parachain::WeightInfo for WeightInfo { + /// Storage: `IsmpParachain::Parachains` (r:0 w:100) + /// Proof: `IsmpParachain::Parachains` (`max_values`: None, `max_size`: Some(12), added: 2487, mode: `MaxEncodedLen`) + /// Storage: `Ismp::ChallengePeriod` (r:0 w:100) + /// Proof: `Ismp::ChallengePeriod` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `n` is `[1, 100]`. + fn add_parachain(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_230_000 picoseconds. + Weight::from_parts(5_017_544, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 3_189 + .saturating_add(Weight::from_parts(1_970_967, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into()))) + } + /// Storage: `IsmpParachain::Parachains` (r:0 w:5) + /// Proof: `IsmpParachain::Parachains` (`max_values`: None, `max_size`: Some(12), added: 2487, mode: `MaxEncodedLen`) + /// The range of component `n` is `[1, 100]`. + fn remove_parachain(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_446_000 picoseconds. + Weight::from_parts(8_612_220, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 490 + .saturating_add(Weight::from_parts(12_386, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().writes(5)) + } + /// Storage: `IsmpParachain::ConsensusUpdated` (r:1 w:1) + /// Proof: `IsmpParachain::ConsensusUpdated` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// Storage: `Ismp::ConsensusStateClient` (r:1 w:0) + /// Proof: `Ismp::ConsensusStateClient` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Ismp::ConsensusStates` (r:1 w:1) + /// Proof: `Ismp::ConsensusStates` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Ismp::FrozenConsensusClients` (r:1 w:0) + /// Proof: `Ismp::FrozenConsensusClients` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Timestamp::Now` (r:1 w:0) + /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + /// Storage: `Ismp::UnbondingPeriod` (r:1 w:0) + /// Proof: `Ismp::UnbondingPeriod` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Ismp::ConsensusClientUpdateTime` (r:1 w:1) + /// Proof: `Ismp::ConsensusClientUpdateTime` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `IsmpParachain::RelayChainStateCommitments` (r:1 w:0) + /// Proof: `IsmpParachain::RelayChainStateCommitments` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) + /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `IsmpParachain::Parachains` (r:2 w:0) + /// Proof: `IsmpParachain::Parachains` (`max_values`: None, `max_size`: Some(12), added: 2487, mode: `MaxEncodedLen`) + /// Storage: `Ismp::LatestStateMachineHeight` (r:1 w:1) + /// Proof: `Ismp::LatestStateMachineHeight` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Ismp::StateCommitments` (r:1 w:1) + /// Proof: `Ismp::StateCommitments` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Ismp::StateMachineUpdateTime` (r:0 w:1) + /// Proof: `Ismp::StateMachineUpdateTime` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: UNKNOWN KEY `0x7374617465859b5c7d03c68da7d492f1cc906e886ce9b49cc592d063993bdd8c` (r:1 w:1) + /// Proof: UNKNOWN KEY `0x7374617465859b5c7d03c68da7d492f1cc906e886ce9b49cc592d063993bdd8c` (r:1 w:1) + fn update_parachain_consensus() -> Weight { + // Proof Size summary in bytes: + // Measured: `753` + // Estimated: `5964` + // Minimum execution time: 75_663_000 picoseconds. + Weight::from_parts(77_561_000, 0) + .saturating_add(Weight::from_parts(0, 5964)) + .saturating_add(T::DbWeight::get().reads(14)) + .saturating_add(T::DbWeight::get().writes(7)) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_update_parachain_consensus() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 5964 + ); + } +} diff --git a/runtimes/spiritnet/src/weights/mod.rs b/runtimes/spiritnet/src/weights/mod.rs index b4f54e2937..ae474c2037 100644 --- a/runtimes/spiritnet/src/weights/mod.rs +++ b/runtimes/spiritnet/src/weights/mod.rs @@ -23,6 +23,7 @@ pub mod cumulus_pallet_parachain_system; pub mod delegation; pub mod did; pub mod frame_system; +pub mod ismp_parachain; pub mod pallet_asset_switch; pub mod pallet_assets; pub mod pallet_balances; @@ -45,6 +46,7 @@ pub mod pallet_technical_committee_collective; pub mod pallet_technical_membership; pub mod pallet_timestamp; pub mod pallet_tips; +pub mod pallet_token_gateway; pub mod pallet_treasury; pub mod pallet_utility; pub mod pallet_vesting; diff --git a/runtimes/spiritnet/src/weights/pallet_assets.rs b/runtimes/spiritnet/src/weights/pallet_assets.rs index 5717f115b8..5d30cda3ac 100644 --- a/runtimes/spiritnet/src/weights/pallet_assets.rs +++ b/runtimes/spiritnet/src/weights/pallet_assets.rs @@ -1,26 +1,25 @@ + //! Autogenerated weights for `pallet_assets` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 -//! DATE: 2024-08-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 47.0.0 +//! DATE: 2025-05-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024 // Executed Command: -// ./target/debug/kilt-parachain +// frame-omni-bencher +// v1 // benchmark // pallet -// --chain=spiritnet-dev -// --steps=50 -// --repeat=20 // --pallet=pallet-assets // --extrinsic=* -// --execution=wasm -// --wasm-execution=compiled -// --heap-pages=4096 -// --output=./runtimes/spiritnet/src/weights/ +// --genesis-builder=runtime +// --runtime=./target/release/wbuild/spiritnet-runtime/spiritnet_runtime.compact.compressed.wasm +// --header=HEADER-GPL // --template=.maintain/runtime-weight-template.hbs +// --output=./runtimes/spiritnet/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_imports)] @@ -34,26 +33,30 @@ pub struct WeightInfo(PhantomData); impl pallet_assets::WeightInfo for WeightInfo { /// Storage: `Fungibles::Asset` (r:1 w:1) /// Proof: `Fungibles::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`) + /// Storage: `Fungibles::NextAssetId` (r:1 w:0) + /// Proof: `Fungibles::NextAssetId` (`max_values`: Some(1), `max_size`: Some(602), added: 1097, mode: `MaxEncodedLen`) fn create() -> Weight { // Proof Size summary in bytes: // Measured: `42` // Estimated: `4273` - // Minimum execution time: 670_284_000 picoseconds. - Weight::from_parts(830_855_000, 0) + // Minimum execution time: 10_247_000 picoseconds. + Weight::from_parts(10_566_000, 0) .saturating_add(Weight::from_parts(0, 4273)) - .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Fungibles::Asset` (r:1 w:1) /// Proof: `Fungibles::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`) + /// Storage: `Fungibles::NextAssetId` (r:1 w:0) + /// Proof: `Fungibles::NextAssetId` (`max_values`: Some(1), `max_size`: Some(602), added: 1097, mode: `MaxEncodedLen`) fn force_create() -> Weight { // Proof Size summary in bytes: // Measured: `42` // Estimated: `4273` - // Minimum execution time: 699_768_000 picoseconds. - Weight::from_parts(784_398_000, 0) + // Minimum execution time: 9_923_000 picoseconds. + Weight::from_parts(10_556_000, 0) .saturating_add(Weight::from_parts(0, 4273)) - .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Fungibles::Asset` (r:1 w:1) @@ -62,8 +65,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `312` // Estimated: `4273` - // Minimum execution time: 697_104_000 picoseconds. - Weight::from_parts(761_710_000, 0) + // Minimum execution time: 9_708_000 picoseconds. + Weight::from_parts(10_212_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -79,11 +82,11 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0 + c * (212 ±0)` // Estimated: `4273 + c * (3207 ±0)` - // Minimum execution time: 929_714_000 picoseconds. - Weight::from_parts(2_652_804_841, 0) + // Minimum execution time: 13_149_000 picoseconds. + Weight::from_parts(13_489_000, 0) .saturating_add(Weight::from_parts(0, 4273)) - // Standard Error: 6_621_016 - .saturating_add(Weight::from_parts(178_537_863, 0).saturating_mul(c.into())) + // Standard Error: 216_226 + .saturating_add(Weight::from_parts(13_743_181, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -99,11 +102,11 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `447 + a * (86 ±0)` // Estimated: `4273 + a * (3221 ±0)` - // Minimum execution time: 183_722_000 picoseconds. - Weight::from_parts(185_234_000, 0) + // Minimum execution time: 12_868_000 picoseconds. + Weight::from_parts(13_303_000, 0) .saturating_add(Weight::from_parts(0, 4273)) - // Standard Error: 309_726 - .saturating_add(Weight::from_parts(68_577_378, 0).saturating_mul(a.into())) + // Standard Error: 3_646 + .saturating_add(Weight::from_parts(4_123_299, 0).saturating_mul(a.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -118,8 +121,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `278` // Estimated: `4273` - // Minimum execution time: 158_427_000 picoseconds. - Weight::from_parts(160_668_000, 0) + // Minimum execution time: 10_934_000 picoseconds. + Weight::from_parts(11_412_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -132,8 +135,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `278` // Estimated: `4273` - // Minimum execution time: 282_826_000 picoseconds. - Weight::from_parts(287_541_000, 0) + // Minimum execution time: 19_188_000 picoseconds. + Weight::from_parts(19_669_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -146,8 +149,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `384` // Estimated: `4273` - // Minimum execution time: 390_440_000 picoseconds. - Weight::from_parts(398_994_000, 0) + // Minimum execution time: 24_344_000 picoseconds. + Weight::from_parts(25_549_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -162,8 +165,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `436` // Estimated: `7404` - // Minimum execution time: 554_247_000 picoseconds. - Weight::from_parts(561_657_000, 0) + // Minimum execution time: 35_100_000 picoseconds. + Weight::from_parts(36_455_000, 0) .saturating_add(Weight::from_parts(0, 7404)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -178,8 +181,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `436` // Estimated: `7404` - // Minimum execution time: 505_609_000 picoseconds. - Weight::from_parts(511_182_000, 0) + // Minimum execution time: 31_491_000 picoseconds. + Weight::from_parts(32_227_000, 0) .saturating_add(Weight::from_parts(0, 7404)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -194,8 +197,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `436` // Estimated: `7404` - // Minimum execution time: 553_195_000 picoseconds. - Weight::from_parts(557_682_000, 0) + // Minimum execution time: 35_721_000 picoseconds. + Weight::from_parts(36_829_000, 0) .saturating_add(Weight::from_parts(0, 7404)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -208,8 +211,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `384` // Estimated: `4273` - // Minimum execution time: 185_832_000 picoseconds. - Weight::from_parts(188_556_000, 0) + // Minimum execution time: 12_696_000 picoseconds. + Weight::from_parts(13_422_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -222,8 +225,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `384` // Estimated: `4273` - // Minimum execution time: 185_944_000 picoseconds. - Weight::from_parts(189_359_000, 0) + // Minimum execution time: 12_991_000 picoseconds. + Weight::from_parts(13_379_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -234,8 +237,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `312` // Estimated: `4273` - // Minimum execution time: 129_754_000 picoseconds. - Weight::from_parts(132_353_000, 0) + // Minimum execution time: 9_089_000 picoseconds. + Weight::from_parts(9_640_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -246,8 +249,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `312` // Estimated: `4273` - // Minimum execution time: 129_422_000 picoseconds. - Weight::from_parts(134_030_000, 0) + // Minimum execution time: 9_012_000 picoseconds. + Weight::from_parts(9_498_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -260,8 +263,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `278` // Estimated: `4273` - // Minimum execution time: 164_227_000 picoseconds. - Weight::from_parts(166_823_000, 0) + // Minimum execution time: 11_008_000 picoseconds. + Weight::from_parts(11_650_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -272,8 +275,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `278` // Estimated: `4273` - // Minimum execution time: 138_887_000 picoseconds. - Weight::from_parts(142_103_000, 0) + // Minimum execution time: 9_925_000 picoseconds. + Weight::from_parts(10_261_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -284,13 +287,17 @@ impl pallet_assets::WeightInfo for WeightInfo { /// Proof: `Fungibles::Metadata` (`max_values`: None, `max_size`: Some(646), added: 3121, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 4]`. /// The range of component `s` is `[0, 4]`. - fn set_metadata(_n: u32, _s: u32, ) -> Weight { + fn set_metadata(n: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `278` // Estimated: `4273` - // Minimum execution time: 153_483_000 picoseconds. - Weight::from_parts(166_947_854, 0) + // Minimum execution time: 10_924_000 picoseconds. + Weight::from_parts(11_413_712, 0) .saturating_add(Weight::from_parts(0, 4273)) + // Standard Error: 6_452 + .saturating_add(Weight::from_parts(146_312, 0).saturating_mul(n.into())) + // Standard Error: 6_452 + .saturating_add(Weight::from_parts(88_466, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -302,8 +309,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `346` // Estimated: `4273` - // Minimum execution time: 161_504_000 picoseconds. - Weight::from_parts(163_432_000, 0) + // Minimum execution time: 12_061_000 picoseconds. + Weight::from_parts(12_513_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -314,17 +321,15 @@ impl pallet_assets::WeightInfo for WeightInfo { /// Proof: `Fungibles::Metadata` (`max_values`: None, `max_size`: Some(646), added: 3121, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 4]`. /// The range of component `s` is `[0, 4]`. - fn force_set_metadata(n: u32, s: u32, ) -> Weight { + fn force_set_metadata(n: u32, _s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `117` // Estimated: `4273` - // Minimum execution time: 153_719_000 picoseconds. - Weight::from_parts(156_756_127, 0) + // Minimum execution time: 10_416_000 picoseconds. + Weight::from_parts(11_571_382, 0) .saturating_add(Weight::from_parts(0, 4273)) - // Standard Error: 42_141 - .saturating_add(Weight::from_parts(47_279, 0).saturating_mul(n.into())) - // Standard Error: 42_141 - .saturating_add(Weight::from_parts(606_325, 0).saturating_mul(s.into())) + // Standard Error: 6_210 + .saturating_add(Weight::from_parts(5_790, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -336,8 +341,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `346` // Estimated: `4273` - // Minimum execution time: 159_022_000 picoseconds. - Weight::from_parts(159_860_000, 0) + // Minimum execution time: 12_141_000 picoseconds. + Weight::from_parts(12_949_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -348,8 +353,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `278` // Estimated: `4273` - // Minimum execution time: 127_227_000 picoseconds. - Weight::from_parts(128_014_000, 0) + // Minimum execution time: 10_217_000 picoseconds. + Weight::from_parts(10_753_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -362,8 +367,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `312` // Estimated: `4273` - // Minimum execution time: 207_749_000 picoseconds. - Weight::from_parts(209_271_000, 0) + // Minimum execution time: 15_476_000 picoseconds. + Weight::from_parts(15_919_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -380,8 +385,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `604` // Estimated: `7404` - // Minimum execution time: 639_409_000 picoseconds. - Weight::from_parts(644_412_000, 0) + // Minimum execution time: 44_680_000 picoseconds. + Weight::from_parts(46_355_000, 0) .saturating_add(Weight::from_parts(0, 7404)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) @@ -394,8 +399,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `480` // Estimated: `4273` - // Minimum execution time: 230_433_000 picoseconds. - Weight::from_parts(238_922_000, 0) + // Minimum execution time: 17_421_000 picoseconds. + Weight::from_parts(17_898_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -408,8 +413,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `480` // Estimated: `4273` - // Minimum execution time: 230_209_000 picoseconds. - Weight::from_parts(232_202_000, 0) + // Minimum execution time: 17_424_000 picoseconds. + Weight::from_parts(17_926_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -420,8 +425,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `278` // Estimated: `4273` - // Minimum execution time: 149_517_000 picoseconds. - Weight::from_parts(150_361_000, 0) + // Minimum execution time: 10_425_000 picoseconds. + Weight::from_parts(11_234_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -434,8 +439,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `278` // Estimated: `4273` - // Minimum execution time: 220_867_000 picoseconds. - Weight::from_parts(223_534_000, 0) + // Minimum execution time: 15_195_000 picoseconds. + Weight::from_parts(15_769_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -448,8 +453,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `278` // Estimated: `4273` - // Minimum execution time: 212_910_000 picoseconds. - Weight::from_parts(215_017_000, 0) + // Minimum execution time: 14_574_000 picoseconds. + Weight::from_parts(15_227_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -462,8 +467,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `402` // Estimated: `4273` - // Minimum execution time: 200_001_000 picoseconds. - Weight::from_parts(202_074_000, 0) + // Minimum execution time: 13_726_000 picoseconds. + Weight::from_parts(14_546_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -476,8 +481,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `435` // Estimated: `4273` - // Minimum execution time: 194_374_000 picoseconds. - Weight::from_parts(195_424_000, 0) + // Minimum execution time: 13_573_000 picoseconds. + Weight::from_parts(13_845_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -490,12 +495,28 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `384` // Estimated: `4273` - // Minimum execution time: 176_392_000 picoseconds. - Weight::from_parts(178_538_000, 0) + // Minimum execution time: 13_279_000 picoseconds. + Weight::from_parts(13_739_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } + /// Storage: `Fungibles::Asset` (r:1 w:1) + /// Proof: `Fungibles::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`) + /// Storage: `Fungibles::Account` (r:2 w:2) + /// Proof: `Fungibles::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + fn transfer_all() -> Weight { + // Proof Size summary in bytes: + // Measured: `436` + // Estimated: `7404` + // Minimum execution time: 45_651_000 picoseconds. + Weight::from_parts(46_335_000, 0) + .saturating_add(Weight::from_parts(0, 7404)) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } } #[cfg(test)] @@ -884,4 +905,16 @@ mod tests { > 4273 ); } + #[test] + fn test_transfer_all() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 7404 + ); + } } diff --git a/runtimes/spiritnet/src/weights/pallet_balances.rs b/runtimes/spiritnet/src/weights/pallet_balances.rs index 2fa1d9dcaf..64cd244bd3 100644 --- a/runtimes/spiritnet/src/weights/pallet_balances.rs +++ b/runtimes/spiritnet/src/weights/pallet_balances.rs @@ -18,26 +18,24 @@ //! Autogenerated weights for `pallet_balances` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 -//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 47.0.0 +//! DATE: 2025-05-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024 // Executed Command: -// ./target/release/kilt-parachain +// frame-omni-bencher +// v1 // benchmark // pallet -// --template=.maintain/runtime-weight-template.hbs -// --header=HEADER-GPL -// --wasm-execution=compiled -// --heap-pages=4096 -// --steps=50 -// --repeat=20 -// --chain=spiritnet-dev // --pallet=pallet-balances // --extrinsic=* -// --output=./runtimes/spiritnet/src/weights/pallet_balances.rs +// --genesis-builder=runtime +// --runtime=./target/release/wbuild/spiritnet-runtime/spiritnet_runtime.compact.compressed.wasm +// --header=HEADER-GPL +// --template=.maintain/runtime-weight-template.hbs +// --output=./runtimes/spiritnet/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_imports)] @@ -55,8 +53,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `107` // Estimated: `6204` - // Minimum execution time: 57_631_000 picoseconds. - Weight::from_parts(58_505_000, 0) + // Minimum execution time: 49_770_000 picoseconds. + Weight::from_parts(51_980_000, 0) .saturating_add(Weight::from_parts(0, 6204)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -67,8 +65,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3597` - // Minimum execution time: 36_640_000 picoseconds. - Weight::from_parts(37_398_000, 0) + // Minimum execution time: 31_950_000 picoseconds. + Weight::from_parts(32_938_000, 0) .saturating_add(Weight::from_parts(0, 3597)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -79,8 +77,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `178` // Estimated: `3597` - // Minimum execution time: 15_909_000 picoseconds. - Weight::from_parts(16_256_000, 0) + // Minimum execution time: 12_830_000 picoseconds. + Weight::from_parts(13_341_000, 0) .saturating_add(Weight::from_parts(0, 3597)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -91,8 +89,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `178` // Estimated: `3597` - // Minimum execution time: 20_849_000 picoseconds. - Weight::from_parts(21_268_000, 0) + // Minimum execution time: 18_957_000 picoseconds. + Weight::from_parts(19_910_000, 0) .saturating_add(Weight::from_parts(0, 3597)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -103,8 +101,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `214` // Estimated: `8811` - // Minimum execution time: 60_228_000 picoseconds. - Weight::from_parts(60_901_000, 0) + // Minimum execution time: 53_836_000 picoseconds. + Weight::from_parts(54_689_000, 0) .saturating_add(Weight::from_parts(0, 8811)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -115,8 +113,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3597` - // Minimum execution time: 44_815_000 picoseconds. - Weight::from_parts(45_343_000, 0) + // Minimum execution time: 40_665_000 picoseconds. + Weight::from_parts(41_241_000, 0) .saturating_add(Weight::from_parts(0, 3597)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -127,8 +125,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `178` // Estimated: `3597` - // Minimum execution time: 18_525_000 picoseconds. - Weight::from_parts(18_948_000, 0) + // Minimum execution time: 15_387_000 picoseconds. + Weight::from_parts(15_877_000, 0) .saturating_add(Weight::from_parts(0, 3597)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -140,11 +138,11 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0 + u * (140 ±0)` // Estimated: `990 + u * (2607 ±0)` - // Minimum execution time: 17_564_000 picoseconds. - Weight::from_parts(17_764_000, 0) + // Minimum execution time: 14_361_000 picoseconds. + Weight::from_parts(15_040_000, 0) .saturating_add(Weight::from_parts(0, 990)) - // Standard Error: 9_627 - .saturating_add(Weight::from_parts(12_525_557, 0).saturating_mul(u.into())) + // Standard Error: 7_280 + .saturating_add(Weight::from_parts(10_836_342, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into()))) .saturating_add(Weight::from_parts(0, 2607).saturating_mul(u.into())) @@ -155,11 +153,31 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `1501` - // Minimum execution time: 6_375_000 picoseconds. - Weight::from_parts(6_719_000, 0) + // Minimum execution time: 5_350_000 picoseconds. + Weight::from_parts(5_593_000, 0) .saturating_add(Weight::from_parts(0, 1501)) .saturating_add(T::DbWeight::get().reads(1)) } + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + fn burn_allow_death() -> Weight { + // Proof Size summary in bytes: + // Measured: `107` + // Estimated: `3597` + // Minimum execution time: 35_603_000 picoseconds. + Weight::from_parts(36_339_000, 0) + .saturating_add(Weight::from_parts(0, 3597)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + fn burn_keep_alive() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 16_327_000 picoseconds. + Weight::from_parts(16_772_000, 0) + .saturating_add(Weight::from_parts(0, 0)) + } } #[cfg(test)] @@ -272,4 +290,16 @@ mod tests { > 1501 ); } + #[test] + fn test_burn_allow_death() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3597 + ); + } } diff --git a/runtimes/spiritnet/src/weights/pallet_collators.rs b/runtimes/spiritnet/src/weights/pallet_collators.rs index fa6333702f..8890bd0ade 100644 --- a/runtimes/spiritnet/src/weights/pallet_collators.rs +++ b/runtimes/spiritnet/src/weights/pallet_collators.rs @@ -18,23 +18,24 @@ //! Autogenerated weights for `pallet_collators` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 -//! DATE: 2025-04-23, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 47.0.0 +//! DATE: 2025-05-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024 // Executed Command: -// ./target/release/kilt-parachain +// frame-omni-bencher +// v1 // benchmark // pallet -// --heap-pages=4096 -// --chain=dev // --pallet=pallet-collators // --extrinsic=* +// --genesis-builder=runtime +// --runtime=./target/release/wbuild/spiritnet-runtime/spiritnet_runtime.compact.compressed.wasm // --header=HEADER-GPL // --template=.maintain/runtime-weight-template.hbs -// --output=./runtimes/peregrine/src/weights/ +// --output=./runtimes/spiritnet/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_imports)] @@ -56,11 +57,11 @@ impl pallet_collators::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `170 + m * (32 ±0)` // Estimated: `2510` - // Minimum execution time: 4_812_000 picoseconds. - Weight::from_parts(5_223_134, 0) + // Minimum execution time: 8_720_000 picoseconds. + Weight::from_parts(9_392_733, 0) .saturating_add(Weight::from_parts(0, 2510)) - // Standard Error: 771 - .saturating_add(Weight::from_parts(16_478, 0).saturating_mul(m.into())) + // Standard Error: 867 + .saturating_add(Weight::from_parts(15_705, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -75,11 +76,11 @@ impl pallet_collators::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `222 + m * (32 ±0)` // Estimated: `2510 + m * (32 ±0)` - // Minimum execution time: 6_159_000 picoseconds. - Weight::from_parts(6_682_650, 0) + // Minimum execution time: 10_650_000 picoseconds. + Weight::from_parts(11_552_390, 0) .saturating_add(Weight::from_parts(0, 2510)) - // Standard Error: 725 - .saturating_add(Weight::from_parts(15_110, 0).saturating_mul(m.into())) + // Standard Error: 1_358 + .saturating_add(Weight::from_parts(16_425, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) @@ -95,11 +96,11 @@ impl pallet_collators::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `222 + m * (32 ±0)` // Estimated: `2510 + m * (32 ±0)` - // Minimum execution time: 6_279_000 picoseconds. - Weight::from_parts(6_612_007, 0) + // Minimum execution time: 10_847_000 picoseconds. + Weight::from_parts(11_627_801, 0) .saturating_add(Weight::from_parts(0, 2510)) - // Standard Error: 980 - .saturating_add(Weight::from_parts(26_782, 0).saturating_mul(m.into())) + // Standard Error: 1_381 + .saturating_add(Weight::from_parts(20_179, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) @@ -111,15 +112,15 @@ impl pallet_collators::WeightInfo for WeightInfo { /// Storage: UNKNOWN KEY `0xdfe4dad7b89644d5962c7bb034ca6f7bb10896c85af113f86bae1ab193a37922` (r:0 w:1) /// Proof: UNKNOWN KEY `0xdfe4dad7b89644d5962c7bb034ca6f7bb10896c85af113f86bae1ab193a37922` (r:0 w:1) /// The range of component `m` is `[1, 32]`. - fn reset_member(m: u32, ) -> Weight { + fn reset_members(m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `222 + m * (32 ±0)` // Estimated: `2510 + m * (32 ±0)` - // Minimum execution time: 6_318_000 picoseconds. - Weight::from_parts(6_828_217, 0) + // Minimum execution time: 10_579_000 picoseconds. + Weight::from_parts(11_637_226, 0) .saturating_add(Weight::from_parts(0, 2510)) - // Standard Error: 932 - .saturating_add(Weight::from_parts(72_412, 0).saturating_mul(m.into())) + // Standard Error: 1_622 + .saturating_add(Weight::from_parts(93_061, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) @@ -135,11 +136,11 @@ impl pallet_collators::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `222 + m * (32 ±0)` // Estimated: `2510 + m * (32 ±0)` - // Minimum execution time: 6_538_000 picoseconds. - Weight::from_parts(7_074_832, 0) + // Minimum execution time: 11_199_000 picoseconds. + Weight::from_parts(12_267_525, 0) .saturating_add(Weight::from_parts(0, 2510)) - // Standard Error: 891 - .saturating_add(Weight::from_parts(18_976, 0).saturating_mul(m.into())) + // Standard Error: 1_565 + .saturating_add(Weight::from_parts(24_021, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) @@ -155,11 +156,11 @@ impl pallet_collators::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `170 + m * (32 ±0)` // Estimated: `2510 + m * (32 ±0)` - // Minimum execution time: 3_643_000 picoseconds. - Weight::from_parts(4_129_209, 0) + // Minimum execution time: 6_616_000 picoseconds. + Weight::from_parts(7_156_149, 0) .saturating_add(Weight::from_parts(0, 2510)) - // Standard Error: 497 - .saturating_add(Weight::from_parts(4_023, 0).saturating_mul(m.into())) + // Standard Error: 725 + .saturating_add(Weight::from_parts(11_271, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into())) @@ -168,16 +169,13 @@ impl pallet_collators::WeightInfo for WeightInfo { /// Proof: `Collators::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) /// Storage: UNKNOWN KEY `0xdfe4dad7b89644d5962c7bb034ca6f7bb10896c85af113f86bae1ab193a37922` (r:0 w:1) /// Proof: UNKNOWN KEY `0xdfe4dad7b89644d5962c7bb034ca6f7bb10896c85af113f86bae1ab193a37922` (r:0 w:1) - /// The range of component `m` is `[1, 32]`. - fn clear_prime(m: u32, ) -> Weight { + fn clear_prime() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_096_000 picoseconds. - Weight::from_parts(1_229_794, 0) + // Minimum execution time: 2_312_000 picoseconds. + Weight::from_parts(2_454_000, 0) .saturating_add(Weight::from_parts(0, 0)) - // Standard Error: 94 - .saturating_add(Weight::from_parts(35, 0).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().writes(2)) } } @@ -221,7 +219,7 @@ mod tests { ); } #[test] - fn test_reset_member() { + fn test_reset_members() { assert!( ::BlockWeights::get() .per_class diff --git a/runtimes/spiritnet/src/weights/pallet_membership.rs b/runtimes/spiritnet/src/weights/pallet_membership.rs index 618736a02e..f46d36ec1e 100644 --- a/runtimes/spiritnet/src/weights/pallet_membership.rs +++ b/runtimes/spiritnet/src/weights/pallet_membership.rs @@ -97,7 +97,7 @@ impl pallet_membership::WeightInfo for WeightInfo { /// Storage: `TipsMembership::Prime` (r:1 w:0) /// Proof: `TipsMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `Ignored`) /// The range of component `m` is `[1, 21]`. - fn reset_member(_m: u32, ) -> Weight { + fn reset_members(_m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `187 + m * (32 ±0)` // Estimated: `990` @@ -140,7 +140,7 @@ impl pallet_membership::WeightInfo for WeightInfo { /// Storage: `TipsMembership::Prime` (r:0 w:1) /// Proof: `TipsMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `Ignored`) /// The range of component `m` is `[1, 21]`. - fn clear_prime(_m: u32, ) -> Weight { + fn clear_prime() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` diff --git a/runtimes/spiritnet/src/weights/pallet_scheduler.rs b/runtimes/spiritnet/src/weights/pallet_scheduler.rs index 0b0828b9b4..e488250db5 100644 --- a/runtimes/spiritnet/src/weights/pallet_scheduler.rs +++ b/runtimes/spiritnet/src/weights/pallet_scheduler.rs @@ -18,26 +18,24 @@ //! Autogenerated weights for `pallet_scheduler` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 -//! DATE: 2024-06-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 47.0.0 +//! DATE: 2025-05-12, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("spiritnet-dev"), DB CACHE: 1024 +//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024 // Executed Command: -// ./target/release/kilt-parachain +// frame-omni-bencher +// v1 // benchmark // pallet -// --template=.maintain/runtime-weight-template.hbs -// --header=HEADER-GPL -// --wasm-execution=compiled -// --heap-pages=4096 -// --steps=50 -// --repeat=20 -// --chain=spiritnet-dev // --pallet=pallet-scheduler // --extrinsic=* -// --output=./runtimes/spiritnet/src/weights/pallet_scheduler.rs +// --genesis-builder=runtime +// --runtime=./target/release/wbuild/spiritnet-runtime/spiritnet_runtime.compact.compressed.wasm +// --header=HEADER-GPL +// --template=.maintain/runtime-weight-template.hbs +// --output=./runtimes/spiritnet/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_imports)] @@ -55,8 +53,8 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `36` // Estimated: `1493` - // Minimum execution time: 2_704_000 picoseconds. - Weight::from_parts(2_856_000, 0) + // Minimum execution time: 2_760_000 picoseconds. + Weight::from_parts(3_012_000, 0) .saturating_add(Weight::from_parts(0, 1493)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -68,11 +66,11 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `83 + s * (181 ±0)` // Estimated: `42632` - // Minimum execution time: 3_299_000 picoseconds. - Weight::from_parts(7_000_035, 0) + // Minimum execution time: 3_096_000 picoseconds. + Weight::from_parts(6_711_407, 0) .saturating_add(Weight::from_parts(0, 42632)) - // Standard Error: 1_779 - .saturating_add(Weight::from_parts(460_372, 0).saturating_mul(s.into())) + // Standard Error: 1_823 + .saturating_add(Weight::from_parts(307_448, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -80,12 +78,12 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_435_000 picoseconds. - Weight::from_parts(3_651_000, 0) + // Minimum execution time: 3_003_000 picoseconds. + Weight::from_parts(3_160_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `Preimage::PreimageFor` (r:1 w:1) - /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`) + /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`) /// Storage: `Preimage::StatusFor` (r:1 w:0) /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) /// Storage: `Preimage::RequestStatusFor` (r:1 w:1) @@ -93,16 +91,15 @@ impl pallet_scheduler::WeightInfo for WeightInfo { /// The range of component `s` is `[128, 4194304]`. fn service_task_fetched(s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `246 + s * (1 ±0)` - // Estimated: `3711 + s * (1 ±0)` - // Minimum execution time: 18_570_000 picoseconds. - Weight::from_parts(18_744_000, 0) - .saturating_add(Weight::from_parts(0, 3711)) - // Standard Error: 19 - .saturating_add(Weight::from_parts(1_753, 0).saturating_mul(s.into())) + // Measured: `213 + s * (1 ±0)` + // Estimated: `4197809` + // Minimum execution time: 16_067_000 picoseconds. + Weight::from_parts(16_263_000, 0) + .saturating_add(Weight::from_parts(0, 4197809)) + // Standard Error: 138 + .saturating_add(Weight::from_parts(12_403, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) - .saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into())) } /// Storage: `Scheduler::Lookup` (r:0 w:1) /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) @@ -110,8 +107,8 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_090_000 picoseconds. - Weight::from_parts(5_248_000, 0) + // Minimum execution time: 4_220_000 picoseconds. + Weight::from_parts(4_339_000, 0) .saturating_add(Weight::from_parts(0, 0)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -119,24 +116,24 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_434_000 picoseconds. - Weight::from_parts(3_559_000, 0) + // Minimum execution time: 2_935_000 picoseconds. + Weight::from_parts(3_119_000, 0) .saturating_add(Weight::from_parts(0, 0)) } fn execute_dispatch_signed() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_287_000 picoseconds. - Weight::from_parts(2_404_000, 0) + // Minimum execution time: 1_947_000 picoseconds. + Weight::from_parts(2_044_000, 0) .saturating_add(Weight::from_parts(0, 0)) } fn execute_dispatch_unsigned() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_250_000 picoseconds. - Weight::from_parts(2_443_000, 0) + // Minimum execution time: 1_928_000 picoseconds. + Weight::from_parts(2_046_000, 0) .saturating_add(Weight::from_parts(0, 0)) } /// Storage: `Scheduler::Agenda` (r:1 w:1) @@ -146,16 +143,18 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `83 + s * (181 ±0)` // Estimated: `42632` - // Minimum execution time: 10_638_000 picoseconds. - Weight::from_parts(14_687_147, 0) + // Minimum execution time: 8_529_000 picoseconds. + Weight::from_parts(12_074_512, 0) .saturating_add(Weight::from_parts(0, 42632)) - // Standard Error: 1_913 - .saturating_add(Weight::from_parts(482_171, 0).saturating_mul(s.into())) + // Standard Error: 1_932 + .saturating_add(Weight::from_parts(326_973, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `Scheduler::Agenda` (r:1 w:1) /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(38), added: 2513, mode: `MaxEncodedLen`) /// Storage: `Scheduler::Lookup` (r:0 w:1) /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// The range of component `s` is `[1, 50]`. @@ -163,13 +162,13 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `83 + s * (181 ±0)` // Estimated: `42632` - // Minimum execution time: 16_149_000 picoseconds. - Weight::from_parts(15_809_362, 0) + // Minimum execution time: 13_718_000 picoseconds. + Weight::from_parts(14_428_235, 0) .saturating_add(Weight::from_parts(0, 42632)) - // Standard Error: 743 - .saturating_add(Weight::from_parts(733_748, 0).saturating_mul(s.into())) + // Standard Error: 1_107 + .saturating_add(Weight::from_parts(513_210, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(T::DbWeight::get().writes(3)) } /// Storage: `Scheduler::Lookup` (r:1 w:1) /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) @@ -180,11 +179,11 @@ impl pallet_scheduler::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `266 + s * (189 ±0)` // Estimated: `42632` - // Minimum execution time: 14_144_000 picoseconds. - Weight::from_parts(19_188_976, 0) + // Minimum execution time: 11_058_000 picoseconds. + Weight::from_parts(15_802_187, 0) .saturating_add(Weight::from_parts(0, 42632)) - // Standard Error: 2_723 - .saturating_add(Weight::from_parts(514_586, 0).saturating_mul(s.into())) + // Standard Error: 2_880 + .saturating_add(Weight::from_parts(374_796, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -192,19 +191,98 @@ impl pallet_scheduler::WeightInfo for WeightInfo { /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: `Scheduler::Agenda` (r:1 w:1) /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(38), added: 2513, mode: `MaxEncodedLen`) /// The range of component `s` is `[1, 50]`. fn cancel_named(s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `290 + s * (189 ±0)` // Estimated: `42632` - // Minimum execution time: 18_108_000 picoseconds. - Weight::from_parts(18_326_622, 0) + // Minimum execution time: 15_653_000 picoseconds. + Weight::from_parts(17_038_595, 0) .saturating_add(Weight::from_parts(0, 42632)) - // Standard Error: 1_010 - .saturating_add(Weight::from_parts(757_085, 0).saturating_mul(s.into())) + // Standard Error: 1_938 + .saturating_add(Weight::from_parts(541_501, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `Scheduler::Agenda` (r:1 w:1) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(38), added: 2513, mode: `MaxEncodedLen`) + /// The range of component `s` is `[1, 50]`. + fn schedule_retry(s: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `123` + // Estimated: `42632` + // Minimum execution time: 8_716_000 picoseconds. + Weight::from_parts(9_465_301, 0) + .saturating_add(Weight::from_parts(0, 42632)) + // Standard Error: 776 + .saturating_add(Weight::from_parts(25_885, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } + /// Storage: `Scheduler::Agenda` (r:1 w:0) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(38), added: 2513, mode: `MaxEncodedLen`) + fn set_retry() -> Weight { + // Proof Size summary in bytes: + // Measured: `9133` + // Estimated: `42632` + // Minimum execution time: 23_528_000 picoseconds. + Weight::from_parts(24_163_000, 0) + .saturating_add(Weight::from_parts(0, 42632)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Scheduler::Lookup` (r:1 w:0) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:0) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(38), added: 2513, mode: `MaxEncodedLen`) + fn set_retry_named() -> Weight { + // Proof Size summary in bytes: + // Measured: `9815` + // Estimated: `42632` + // Minimum execution time: 29_289_000 picoseconds. + Weight::from_parts(30_006_000, 0) + .saturating_add(Weight::from_parts(0, 42632)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Scheduler::Agenda` (r:1 w:0) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(38), added: 2513, mode: `MaxEncodedLen`) + fn cancel_retry() -> Weight { + // Proof Size summary in bytes: + // Measured: `9145` + // Estimated: `42632` + // Minimum execution time: 23_050_000 picoseconds. + Weight::from_parts(23_468_000, 0) + .saturating_add(Weight::from_parts(0, 42632)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Scheduler::Lookup` (r:1 w:0) + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Agenda` (r:1 w:0) + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39167), added: 41642, mode: `MaxEncodedLen`) + /// Storage: `Scheduler::Retries` (r:0 w:1) + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(38), added: 2513, mode: `MaxEncodedLen`) + fn cancel_retry_named() -> Weight { + // Proof Size summary in bytes: + // Measured: `9827` + // Estimated: `42632` + // Minimum execution time: 28_494_000 picoseconds. + Weight::from_parts(29_535_000, 0) + .saturating_add(Weight::from_parts(0, 42632)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } } #[cfg(test)] @@ -242,7 +320,7 @@ mod tests { .max_extrinsic .unwrap_or_else(::max_value) .proof_size() - > 3711 + > 3407870 ); } #[test] @@ -293,4 +371,64 @@ mod tests { > 42632 ); } + #[test] + fn test_schedule_retry() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 42632 + ); + } + #[test] + fn test_set_retry() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 42632 + ); + } + #[test] + fn test_set_retry_named() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 42632 + ); + } + #[test] + fn test_cancel_retry() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 42632 + ); + } + #[test] + fn test_cancel_retry_named() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 42632 + ); + } } diff --git a/runtimes/spiritnet/src/weights/pallet_technical_membership.rs b/runtimes/spiritnet/src/weights/pallet_technical_membership.rs index 4f782f9f8b..e579f815f9 100644 --- a/runtimes/spiritnet/src/weights/pallet_technical_membership.rs +++ b/runtimes/spiritnet/src/weights/pallet_technical_membership.rs @@ -52,6 +52,8 @@ use pallet_membership as pallet_technical_membership; /// Weight functions for `pallet_technical_membership`. pub struct WeightInfo(PhantomData); impl pallet_technical_membership::WeightInfo for WeightInfo { + + /// Storage: `TechnicalMembership::Members` (r:1 w:1) /// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `Ignored`) /// Storage: `TechnicalCommittee::Proposals` (r:1 w:0) @@ -124,7 +126,7 @@ impl pallet_technical_membership::WeightInfo for Weight /// Storage: `TechnicalCommittee::Prime` (r:0 w:1) /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Ignored`) /// The range of component `m` is `[1, 100]`. - fn reset_member(_m: u32, ) -> Weight { + fn reset_members(_m: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `237 + m * (64 ±0)` // Estimated: `990` @@ -177,7 +179,7 @@ impl pallet_technical_membership::WeightInfo for Weight /// Storage: `TechnicalCommittee::Prime` (r:0 w:1) /// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Ignored`) /// The range of component `m` is `[1, 100]`. - fn clear_prime(_m: u32, ) -> Weight { + fn clear_prime() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` diff --git a/runtimes/spiritnet/src/weights/pallet_token_gateway.rs b/runtimes/spiritnet/src/weights/pallet_token_gateway.rs new file mode 100644 index 0000000000..6d3ffaf04d --- /dev/null +++ b/runtimes/spiritnet/src/weights/pallet_token_gateway.rs @@ -0,0 +1,184 @@ +// KILT Blockchain – +// Copyright (C) 2025, KILT Foundation + +// The KILT Blockchain is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// The KILT Blockchain is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +// If you feel like getting in touch with us, you can do so at + +//! Autogenerated weights for `pallet_token_gateway` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 47.0.0 +//! DATE: 2025-05-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K` +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024 + +// Executed Command: +// frame-omni-bencher +// v1 +// benchmark +// pallet +// --pallet=pallet-token-gateway +// --extrinsic=* +// --genesis-builder=runtime +// --runtime=./target/release/wbuild/spiritnet-runtime/spiritnet_runtime.compact.compressed.wasm +// --header=HEADER-GPL +// --template=.maintain/runtime-weight-template.hbs +// --output=./runtimes/spiritnet/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_imports)] +#![allow(clippy::as_conversions)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_token_gateway`. +pub struct WeightInfo(PhantomData); +impl pallet_token_gateway::WeightInfo for WeightInfo { + /// Storage: `Hyperbridge::HostParams` (r:1 w:0) + /// Proof: `Hyperbridge::HostParams` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Ismp::Nonce` (r:1 w:1) + /// Proof: `Ismp::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `TokenGateway::Precisions` (r:0 w:100) + /// Proof: `TokenGateway::Precisions` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TokenGateway::NativeAssets` (r:0 w:1) + /// Proof: `TokenGateway::NativeAssets` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TokenGateway::LocalAssets` (r:0 w:1) + /// Proof: `TokenGateway::LocalAssets` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TokenGateway::SupportedAssets` (r:0 w:1) + /// Proof: `TokenGateway::SupportedAssets` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: UNKNOWN KEY `0x52657175657374436f6d6d69746d656e74736dbf7451ee5809df8f986d7fa449` (r:1 w:1) + /// Proof: UNKNOWN KEY `0x52657175657374436f6d6d69746d656e74736dbf7451ee5809df8f986d7fa449` (r:1 w:1) + /// The range of component `x` is `[1, 100]`. + fn create_erc6160_asset(x: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `290` + // Estimated: `3755` + // Minimum execution time: 29_974_000 picoseconds. + Weight::from_parts(32_747_433, 0) + .saturating_add(Weight::from_parts(0, 3755)) + // Standard Error: 4_554 + .saturating_add(Weight::from_parts(1_675_177, 0).saturating_mul(x.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(5)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into()))) + } + /// Storage: `TokenGateway::SupportedAssets` (r:1 w:0) + /// Proof: `TokenGateway::SupportedAssets` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `TokenGateway::NativeAssets` (r:1 w:0) + /// Proof: `TokenGateway::NativeAssets` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) + /// Storage: `TokenGateway::Precisions` (r:1 w:0) + /// Proof: `TokenGateway::Precisions` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `Ismp::Nonce` (r:1 w:1) + /// Proof: `Ismp::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: UNKNOWN KEY `0x52657175657374436f6d6d69746d656e747387c60cc3838067ec43c7c32db115` (r:1 w:1) + /// Proof: UNKNOWN KEY `0x52657175657374436f6d6d69746d656e747387c60cc3838067ec43c7c32db115` (r:1 w:1) + fn teleport() -> Weight { + // Proof Size summary in bytes: + // Measured: `732` + // Estimated: `4197` + // Minimum execution time: 64_977_000 picoseconds. + Weight::from_parts(67_796_000, 0) + .saturating_add(Weight::from_parts(0, 4197)) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + /// Storage: `TokenGateway::TokenGatewayAddresses` (r:0 w:1) + /// Proof: `TokenGateway::TokenGatewayAddresses` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `x` is `[1, 100]`. + fn set_token_gateway_addresses(x: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_553_000 picoseconds. + Weight::from_parts(3_928_493, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 181 + .saturating_add(Weight::from_parts(1_795, 0).saturating_mul(x.into())) + .saturating_add(T::DbWeight::get().writes(1)) + } + /// Storage: `Hyperbridge::HostParams` (r:1 w:0) + /// Proof: `Hyperbridge::HostParams` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `Ismp::Nonce` (r:1 w:1) + /// Proof: `Ismp::Nonce` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: UNKNOWN KEY `0x52657175657374436f6d6d69746d656e7473063ffee434bbc145cf1b300aac5e` (r:1 w:1) + /// Proof: UNKNOWN KEY `0x52657175657374436f6d6d69746d656e7473063ffee434bbc145cf1b300aac5e` (r:1 w:1) + fn update_erc6160_asset() -> Weight { + // Proof Size summary in bytes: + // Measured: `455` + // Estimated: `3920` + // Minimum execution time: 24_059_000 picoseconds. + Weight::from_parts(25_861_000, 0) + .saturating_add(Weight::from_parts(0, 3920)) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: `TokenGateway::Precisions` (r:0 w:100) + /// Proof: `TokenGateway::Precisions` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `x` is `[1, 100]`. + fn update_asset_precision(x: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_781_000 picoseconds. + Weight::from_parts(3_283_265, 0) + .saturating_add(Weight::from_parts(0, 0)) + // Standard Error: 3_391 + .saturating_add(Weight::from_parts(1_610_356, 0).saturating_mul(x.into())) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into()))) + } +} + +#[cfg(test)] +mod tests { + #[test] + fn test_create_erc6160_asset() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3755 + ); + } + #[test] + fn test_teleport() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 4197 + ); + } + #[test] + fn test_update_erc6160_asset() { + assert!( + ::BlockWeights::get() + .per_class + .get(frame_support::dispatch::DispatchClass::Normal) + .max_extrinsic + .unwrap_or_else(::max_value) + .proof_size() + > 3920 + ); + } +} diff --git a/runtimes/spiritnet/src/weights/pallet_treasury.rs b/runtimes/spiritnet/src/weights/pallet_treasury.rs index f57dc7ef91..c956a0078d 100644 --- a/runtimes/spiritnet/src/weights/pallet_treasury.rs +++ b/runtimes/spiritnet/src/weights/pallet_treasury.rs @@ -65,51 +65,7 @@ impl pallet_treasury::WeightInfo for WeightInfo { .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(3)) } - /// Storage: `Treasury::ProposalCount` (r:1 w:1) - /// Proof: `Treasury::ProposalCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Treasury::Proposals` (r:0 w:1) - /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) - fn propose_spend() -> Weight { - // Proof Size summary in bytes: - // Measured: `111` - // Estimated: `1489` - // Minimum execution time: 25_896_000 picoseconds. - Weight::from_parts(26_447_000, 0) - .saturating_add(Weight::from_parts(0, 1489)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(2)) - } - /// Storage: `Treasury::Proposals` (r:1 w:1) - /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) - /// Storage: `System::Account` (r:2 w:2) - /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`) - fn reject_proposal() -> Weight { - // Proof Size summary in bytes: - // Measured: `376` - // Estimated: `6204` - // Minimum execution time: 36_905_000 picoseconds. - Weight::from_parts(37_206_000, 0) - .saturating_add(Weight::from_parts(0, 6204)) - .saturating_add(T::DbWeight::get().reads(3)) - .saturating_add(T::DbWeight::get().writes(3)) - } - /// Storage: `Treasury::Proposals` (r:1 w:0) - /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`) - /// Storage: `Treasury::Approvals` (r:1 w:1) - /// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) - /// The range of component `p` is `[0, 99]`. - fn approve_proposal(p: u32, ) -> Weight { - // Proof Size summary in bytes: - // Measured: `433 + p * (8 ±0)` - // Estimated: `3573` - // Minimum execution time: 9_645_000 picoseconds. - Weight::from_parts(12_567_224, 0) - .saturating_add(Weight::from_parts(0, 3573)) - // Standard Error: 953 - .saturating_add(Weight::from_parts(38_099, 0).saturating_mul(p.into())) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(1)) - } + /// Storage: `Treasury::Approvals` (r:1 w:1) /// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) fn remove_approval() -> Weight { diff --git a/runtimes/spiritnet/src/xcm.rs b/runtimes/spiritnet/src/xcm.rs index bf917612f6..3590df04c2 100644 --- a/runtimes/spiritnet/src/xcm.rs +++ b/runtimes/spiritnet/src/xcm.rs @@ -48,6 +48,7 @@ use xcm_builder::{ use xcm_executor::{traits::WithOriginFilter, XcmExecutor}; use runtime_common::{ + constants, xcm_config::{ DenyReserveTransferToRelayChain, DenyThenTry, HeapSize, HereLocation, LocalAssetTransactor, LocationToAccountId, MaxAssetsIntoHolding, MaxInstructions, MaxStale, ParentLocation, ParentOrSiblings, @@ -125,7 +126,7 @@ pub type XcmBarrier = TrailingSetTopicAsId< /// 1. Have a fixed weight; /// 2. Cannot lead to another call being made; /// 3. Have a defined proof size weight, e.g. no unbounded vecs in call -/// parameters. +/// parameters. pub struct SafeCallFilter; impl Contains for SafeCallFilter { fn contains(c: &RuntimeCall) -> bool { @@ -249,6 +250,10 @@ impl xcm_executor::Config for XcmConfig { type SafeCallFilter = SafeCallFilter; type Aliasers = Nothing; type TransactionalProcessor = FrameTransactionalProcessor; + type HrmpChannelAcceptedHandler = (); + type HrmpChannelClosingHandler = (); + type HrmpNewChannelOpenRequestHandler = (); + type XcmRecorder = PolkadotXcm; } /// Allows only local `Signed` origins to be converted into `MultiLocation`s by @@ -311,6 +316,8 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime { type PriceForSiblingDelivery = NoPriceForMessageDelivery; type MaxInboundSuspended = MaxInboundSuspended; type XcmpQueue = TransformOrigin; + type MaxActiveOutboundChannels = ConstU32<{ constants::pallet_xcmp_queue::MAX_ACTIVE_OUTBOUND_CHANNELS }>; + type MaxPageSize = ConstU32<{ constants::pallet_xcmp_queue::MAX_PAGE_SIZE }>; } impl pallet_message_queue::Config for Runtime { @@ -327,4 +334,5 @@ impl pallet_message_queue::Config for Runtime { type HeapSize = HeapSize; type MaxStale = MaxStale; type ServiceWeight = ServiceWeight; + type IdleMaxServiceWeight = (); } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index bd89201550..882e9d86c9 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "1.74.0" +channel = "1.81.0" components = ["clippy", "rust-src", "rustfmt"] targets = ["wasm32-unknown-unknown"] diff --git a/scripts/run_benches_for_runtime.sh b/scripts/run_benches_for_runtime.sh index 0e43280b42..b247747ca3 100755 --- a/scripts/run_benches_for_runtime.sh +++ b/scripts/run_benches_for_runtime.sh @@ -8,9 +8,8 @@ set -x runtime=${1-"peregrine"} profile=${2-"release"} -chain=$([ "$1" == "spiritnet" ] && echo "spiritnet-dev" || echo "dev") # Dev profile is the debug target -standard_args="--profile $profile --locked --features=runtime-benchmarks --bin=kilt-parachain" +standard_args="--profile $profile --locked --features=runtime-benchmarks --package $runtime-runtime" pallets=( pallet-migration @@ -53,6 +52,9 @@ pallets=( pallet-did-lookup # `pallet-web3-names` instances pallet-web3-names + # ISMP + ismp-parachain + pallet-token-gateway ) # Add Peregrine-only pallets here! @@ -64,27 +66,31 @@ if [ "$runtime" = "peregrine" ]; then ) fi -echo "[+] Running all runtime benchmarks for \"$runtime\", \"--chain=$chain\" and profile \"$profile\"" +echo "[+] Running all runtime benchmarks for \"$runtime\", and profile \"$profile\"" cargo build $standard_args -if [ $profile == "dev" ]; then +if [ "$profile" = "dev" ]; then target_folder="debug" + file_extension=".wasm" # We care about benchmark correctness, not accuracy. additional_args="--steps=2 --repeat=1 --default-pov-mode=ignored" else target_folder=$profile + file_extension=".compact.compressed.wasm" additional_args="--header=HEADER-GPL --template=.maintain/runtime-weight-template.hbs --output=./runtimes/${runtime}/src/weights/" fi +wasm_path="./target/$target_folder/wbuild/$runtime-runtime/${runtime}_runtime$file_extension" + for pallet in "${pallets[@]}"; do echo "Runtime: $runtime. Pallet: $pallet" # shellcheck disable=SC2086 - ./target/$target_folder/kilt-parachain benchmark pallet \ - --heap-pages=4096 \ - --chain="${chain}" \ + frame-omni-bencher v1 benchmark pallet \ --pallet="$pallet" \ --extrinsic="*" \ + --genesis-builder="runtime" \ + --runtime=$wasm_path \ $additional_args bench_status=$? diff --git a/support/src/mock.rs b/support/src/mock.rs index 99d7692dfd..875c6968ea 100644 --- a/support/src/mock.rs +++ b/support/src/mock.rs @@ -34,6 +34,7 @@ use sp_std::marker::PhantomData; /// WARNING: This is only used for testing! #[frame_support::pallet] #[allow(dead_code)] +#[allow(clippy::manual_inspect)] pub mod mock_origin { use sp_std::marker::PhantomData;