From 65138fe7f4a77f9dc3ab0a58ce0bae7937f8986d Mon Sep 17 00:00:00 2001 From: Miguel <64885598+MiguelDD1@users.noreply.github.com> Date: Mon, 13 Mar 2023 09:52:00 +0100 Subject: [PATCH] Add block production metrics to prometheus (#140) * Avail Metrics integration * RPC & node metrics are separated * Remove some clippy warnings --- Cargo.lock | 1512 +++++++-------- Cargo.toml | 15 +- avail-subxt/Cargo.toml | 21 +- avail-subxt/build_api.sh | 2 +- .../examples/accounts_from_mnemonics.rs | 8 +- avail-subxt/examples/da_bridge_actor.rs | 13 +- avail-subxt/examples/democracy_external.rs | 93 +- avail-subxt/examples/headers.rs | 2 +- avail-subxt/examples/submit_data.rs | 8 +- .../submit_data_and_dispatch_data_root.rs | 2 +- avail-subxt/src/api_dev.rs | 1635 ++++++++--------- avail-subxt/src/lib.rs | 17 +- .../src/primitives/app_unchecked_extrinsic.rs | 105 +- .../src/primitives/extrinsic_params.rs | 4 +- avail-subxt/src/primitives/header.rs | 83 +- base/Cargo.toml | 30 + base/src/lib.rs | 4 + base/src/metrics.rs | 69 + base/src/metrics/adapter.rs | 92 + base/src/metrics/avail.rs | 26 + base/src/metrics/general.rs | 38 + base/src/metrics/kate.rs | 64 + fuzzing/Cargo.toml | 2 +- node/Cargo.toml | 6 +- node/src/benchmarking.rs | 2 +- node/src/rpc.rs | 2 +- node/src/service.rs | 15 +- pallets/dactr/Cargo.toml | 2 +- pallets/dactr/src/lib.rs | 2 +- pallets/dactr/src/weights.rs | 32 +- pallets/mocked_runtime/Cargo.toml | 2 +- pallets/mocked_runtime/src/custom.rs | 4 +- pallets/mocked_runtime/src/lib.rs | 4 +- pallets/nomad/da-bridge/src/lib.rs | 10 +- pallets/nomad/da-bridge/src/message.rs | 2 +- pallets/nomad/da-bridge/src/weights.rs | 12 +- pallets/nomad/home/src/lib.rs | 8 +- pallets/nomad/home/src/weights.rs | 40 +- pallets/nomad/updater-manager/src/lib.rs | 2 +- pallets/system/Cargo.toml | 4 +- pallets/system/benchmarking/src/lib.rs | 8 +- .../system/src/extensions/check_genesis.rs | 1 + .../src/extensions/check_non_zero_sender.rs | 1 + .../src/extensions/check_spec_version.rs | 1 + .../system/src/extensions/check_tx_version.rs | 1 + pallets/system/src/header_builder.rs | 12 +- pallets/system/src/lib.rs | 10 +- pallets/system/src/offchain.rs | 2 +- pallets/system/src/submitted_data.rs | 2 +- pallets/system/src/weights.rs | 64 +- rpc/kate-rpc/Cargo.toml | 4 +- rpc/kate-rpc/src/lib.rs | 21 +- runtime/Cargo.toml | 3 +- runtime/src/constants.rs | 11 +- runtime/src/data_root_tests.rs | 2 +- runtime/src/lib.rs | 115 +- runtime/src/migration.rs | 1 - runtime/src/primitives.rs | 76 + 58 files changed, 2292 insertions(+), 2037 deletions(-) create mode 100644 base/Cargo.toml create mode 100644 base/src/lib.rs create mode 100644 base/src/metrics.rs create mode 100644 base/src/metrics/adapter.rs create mode 100644 base/src/metrics/avail.rs create mode 100644 base/src/metrics/general.rs create mode 100644 base/src/metrics/kate.rs create mode 100644 runtime/src/primitives.rs diff --git a/Cargo.lock b/Cargo.lock index 3bdf8b36e..4e2f32584 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -27,7 +27,7 @@ version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97" dependencies = [ - "gimli 0.27.1", + "gimli 0.27.2", ] [[package]] @@ -183,9 +183,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.66" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "216261ddc8289130e551ddcd5ce8a064710c0d064a4d2895c67151c92b5443f6" +checksum = "224afbd727c3d6e4b90103ece64b8d1b67fbb1973b1046c2281eed3f3803f800" [[package]] name = "approx" @@ -239,7 +239,7 @@ dependencies = [ "num-traits", "rusticata-macros", "thiserror", - "time 0.3.17", + "time 0.3.19", ] [[package]] @@ -255,7 +255,7 @@ dependencies = [ "num-traits", "rusticata-macros", "thiserror", - "time 0.3.17", + "time 0.3.19", ] [[package]] @@ -331,9 +331,9 @@ dependencies = [ [[package]] name = "async-trait" -version = "0.1.59" +version = "0.1.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31e6e93155431f3931513b243d371981bb2770112b370c82745a1d19d2f99364" +checksum = "1cd7fce9ba8c3c042128ce72d8b2ddbf3a05747efb67ea0313c635e10bda47a2" dependencies = [ "proc-macro2", "quote", @@ -355,9 +355,9 @@ dependencies = [ [[package]] name = "atomic-waker" -version = "1.0.0" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "065374052e7df7ee4047b1160cca5e1467a12351a40b3da123c870ba0b8eda2a" +checksum = "debc29dde2e69f9e47506b525f639ed42300fc014a3e007832592448fa8e4599" [[package]] name = "atty" @@ -388,6 +388,18 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" +[[package]] +name = "avail-base" +version = "0.1.0" +dependencies = [ + "da-primitives", + "kate", + "log", + "once_cell", + "sp-std 5.0.0", + "substrate-prometheus-endpoint 0.10.0", +] + [[package]] name = "backtrace" version = "0.3.67" @@ -449,6 +461,12 @@ version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" +[[package]] +name = "base64" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4a4ddaa51a5bc52a6948f74c06d20aaaddb71924eab79b8c97a8c556e942d6a" + [[package]] name = "base64ct" version = "1.5.3" @@ -473,7 +491,7 @@ dependencies = [ [[package]] name = "beefy-merkle-tree" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "sp-api", "sp-beefy", @@ -491,9 +509,9 @@ dependencies = [ [[package]] name = "bindgen" -version = "0.60.1" +version = "0.64.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "062dddbc1ba4aca46de6338e2bf87771414c335f7b2f2036e8f3e9befebf88e6" +checksum = "c4243e6031260db77ede97ad86c27e501d646a27ab57b59a574f725d98ab1fb4" dependencies = [ "bitflags", "cexpr", @@ -506,6 +524,7 @@ dependencies = [ "regex", "rustc-hash", "shlex", + "syn", ] [[package]] @@ -550,33 +569,33 @@ dependencies = [ [[package]] name = "blake2" -version = "0.10.5" +version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b12e5fd123190ce1c2e559308a94c9bacad77907d4c6005d9e58fe1a0689e55e" +checksum = "46502ad458c9a52b69d4d4d32775c788b7a1b85e8bc9d482d92250fc0e3f8efe" dependencies = [ "digest 0.10.6", ] [[package]] name = "blake2b_simd" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72936ee4afc7f8f736d1c38383b56480b5497b4617b4a77bdbf1d2ababc76127" +checksum = "3c2f0dc9a68c6317d884f97cc36cf5a3d20ba14ce404227df55e1af708ab04bc" dependencies = [ "arrayref", "arrayvec 0.7.2", - "constant_time_eq 0.1.5", + "constant_time_eq", ] [[package]] name = "blake2s_simd" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db539cc2b5f6003621f1cd9ef92d7ded8ea5232c7de0f9faa2de251cd98730d4" +checksum = "6637f448b9e61dfadbdcbae9a885fadee1f3eaffb1f8d3c1965d3ade8bdfd44f" dependencies = [ "arrayref", "arrayvec 0.7.2", - "constant_time_eq 0.1.5", + "constant_time_eq", ] [[package]] @@ -589,7 +608,7 @@ dependencies = [ "arrayvec 0.7.2", "cc", "cfg-if", - "constant_time_eq 0.2.4", + "constant_time_eq", ] [[package]] @@ -655,13 +674,11 @@ checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" [[package]] name = "bstr" -version = "0.2.17" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba3569f383e8f1598449f1a423e72e99569137b47740b1da11ef19af3d5c3223" +checksum = "5ffdb39cb703212f3c11973452c2861b972f757b021158f3516ba10f2fa8b2c1" dependencies = [ - "lazy_static", "memchr", - "regex-automata", "serde", ] @@ -676,9 +693,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.11.1" +version = "3.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "572f695136211188308f16ad2ca5c851a712c464060ae6974944458eb83880ba" +checksum = "0d261e256854913907f67ed06efbc3338dfe6179796deefc1ff763fc1aee5535" [[package]] name = "byte-slice-cast" @@ -700,9 +717,9 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" [[package]] name = "bytes" -version = "1.3.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c" +checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be" dependencies = [ "serde", ] @@ -720,9 +737,9 @@ dependencies = [ [[package]] name = "camino" -version = "1.1.1" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88ad0e1e3e88dd237a156ab9f571021b8a158caa0ae44b1968a241efb5144c1e" +checksum = "6031a462f977dd38968b6f23378356512feeace69cef817e1a4475108093cec3" dependencies = [ "serde", ] @@ -744,7 +761,7 @@ checksum = "4acbb09d9ee8e23699b9634375c72795d095bf268439da88562cf9b501f181fa" dependencies = [ "camino", "cargo-platform", - "semver 1.0.14", + "semver 1.0.16", "serde", "serde_json", ] @@ -757,9 +774,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" [[package]] name = "cc" -version = "1.0.77" +version = "1.0.79" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9f73505338f7d905b19d18738976aae232eb46b8efc15554ffc56deb5d9ebe4" +checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" dependencies = [ "jobserver", ] @@ -897,9 +914,9 @@ dependencies = [ [[package]] name = "clang-sys" -version = "1.4.0" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa2e27ae6ab525c3d369ded447057bca5438d86dc3a68f6faafb8269ba82ebf3" +checksum = "77ed9a53e5d4d9c573ae844bfac6872b159cb1d1585a83b29e7a64b7eef7332a" dependencies = [ "glob", "libc", @@ -919,9 +936,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.0.29" +version = "4.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d63b9e9c07271b9957ad22c173bae2a4d9a81127680962039296abcd2f8251d" +checksum = "ec0b0588d44d4d63a87dbd75c136c166bbfd9a86a31cb89e09906521c7d3f5e3" dependencies = [ "bitflags", "clap_derive", @@ -934,18 +951,18 @@ dependencies = [ [[package]] name = "clap_complete" -version = "4.0.6" +version = "4.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7b3c9eae0de7bf8e3f904a5e40612b21fb2e2e566456d177809a48b892d24da" +checksum = "0012995dc3a54314f4710f5631d74767e73c534b8757221708303e48eef7a19b" dependencies = [ - "clap 4.0.29", + "clap 4.1.6", ] [[package]] name = "clap_derive" -version = "4.0.21" +version = "4.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0177313f9f02afc995627906bbd8967e2be069f5261954222dac78290c2b9014" +checksum = "684a277d672e91966334af371f1a7b5833f9aa00b07c84e92fbce95e00208ce8" dependencies = [ "heck", "proc-macro-error", @@ -956,9 +973,9 @@ dependencies = [ [[package]] name = "clap_lex" -version = "0.3.0" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d4198f73e42b4936b35b5bb248d81d2b595ecb170da0bac7655c54eedfa8da8" +checksum = "350b9cf31731f9957399229e9b2adc51eeabdfbe9d71d9a0552275fd12710d09" dependencies = [ "os_str_bytes", ] @@ -1032,9 +1049,9 @@ dependencies = [ [[package]] name = "comfy-table" -version = "6.1.3" +version = "6.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e621e7e86c46fd8a14c32c6ae3cb95656621b4743a27d0cffedb831d46e7ad21" +checksum = "6e7b787b0dc42e8111badfdbe4c3059158ccb2db8780352fa1b01e8ccf45cc4d" dependencies = [ "strum", "strum_macros", @@ -1043,9 +1060,9 @@ dependencies = [ [[package]] name = "concurrent-queue" -version = "2.0.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd7bef69dc86e3c610e4e7aed41035e2a7ed12e72dd7530f61327a6579a4390b" +checksum = "c278839b831783b70278b14df4d45e1beb1aad306c07bb796637de9a0e323e8e" dependencies = [ "crossbeam-utils", ] @@ -1056,12 +1073,6 @@ version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cec318a675afcb6a1ea1d4340e2d377e56e47c266f28043ceccbf4412ddfdd3b" -[[package]] -name = "constant_time_eq" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" - [[package]] name = "constant_time_eq" version = "0.2.4" @@ -1393,13 +1404,12 @@ dependencies = [ [[package]] name = "csv" -version = "1.1.6" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22813a6dc45b335f9bade10bf7271dc477e81113e89eb251a0bc2a8a81c536e1" +checksum = "af91f40b7355f82b0a891f50e70399475945bb0b0da4f1700ce60761c9d3e359" dependencies = [ - "bstr", "csv-core", - "itoa 0.4.8", + "itoa", "ryu", "serde", ] @@ -1468,22 +1478,23 @@ dependencies = [ [[package]] name = "curve25519-dalek" -version = "4.0.0-pre.1" +version = "4.0.0-rc.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4033478fbf70d6acf2655ac70da91ee65852d69daf7a67bf7a2f518fb47aafcf" +checksum = "8da00a7a9a4eb92a0a0f8e75660926d48f0d0f3c537e455c457bcdaa1e16b1ac" dependencies = [ - "byteorder", - "digest 0.9.0", - "rand_core 0.6.4", + "cfg-if", + "fiat-crypto", + "packed_simd_2", + "platforms 3.0.2", "subtle", "zeroize", ] [[package]] name = "cxx" -version = "1.0.83" +version = "1.0.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bdf07d07d6531bfcdbe9b8b739b104610c6508dcc4d63b410585faf338241daf" +checksum = "86d3488e7665a7a483b57e25bdd90d0aeb2bc7608c8d0346acf2ad3f1caf1d62" dependencies = [ "cc", "cxxbridge-flags", @@ -1493,9 +1504,9 @@ dependencies = [ [[package]] name = "cxx-build" -version = "1.0.83" +version = "1.0.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2eb5b96ecdc99f72657332953d4d9c50135af1bac34277801cc3937906ebd39" +checksum = "48fcaf066a053a41a81dfb14d57d99738b767febb8b735c3016e469fac5da690" dependencies = [ "cc", "codespan-reporting", @@ -1508,15 +1519,15 @@ dependencies = [ [[package]] name = "cxxbridge-flags" -version = "1.0.83" +version = "1.0.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac040a39517fd1674e0f32177648334b0f4074625b5588a64519804ba0553b12" +checksum = "a2ef98b8b717a829ca5603af80e1f9e2e48013ab227b68ef37872ef84ee479bf" [[package]] name = "cxxbridge-macro" -version = "1.0.83" +version = "1.0.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1362b0ddcfc4eb0a1f57b68bd77dd99f0e826958a96abd0ae9bd092e114ffed6" +checksum = "086c685979a698443656e5cf7856c95c642295a38599f12fb1ff76fb28d19892" dependencies = [ "proc-macro2", "quote", @@ -1540,7 +1551,7 @@ dependencies = [ "nomad-merkle", "nomad-updater-manager", "pallet-transaction-payment", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "primitive-types", "rand 0.8.5", "scale-info", @@ -1563,7 +1574,7 @@ dependencies = [ "kate", "pallet-balances", "pallet-transaction-payment", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "serde", "sp-arithmetic 5.0.0", @@ -1576,15 +1587,15 @@ dependencies = [ [[package]] name = "da-primitives" -version = "0.4.3" -source = "git+https://github.com/maticnetwork/avail-core?tag=da-primitives/v0.4.3#7ba247c4faebc43de15a9ead86407f68879065da" +version = "0.4.4" +source = "git+https://github.com/maticnetwork/avail-core?tag=da-primitives/v0.4.4#3de909c9bbe5926b282f597959e806dbff684d48" dependencies = [ "beefy-merkle-tree", "derive_more", "frame-support", "hash256-std-hasher", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parity-util-mem", "scale-info", "serde", @@ -1605,7 +1616,7 @@ dependencies = [ "da-bridge", "da-control", "da-primitives", - "env_logger", + "env_logger 0.9.3", "frame-benchmarking", "frame-election-provider-support", "frame-executive", @@ -1654,7 +1665,7 @@ dependencies = [ "pallet-transaction-payment-rpc-runtime-api", "pallet-treasury", "pallet-utility", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parity-util-mem", "scale-info", "serde", @@ -1682,9 +1693,9 @@ dependencies = [ [[package]] name = "darling" -version = "0.14.2" +version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0dd3cd20dc6b5a876612a6e5accfe7f3dd883db6d07acfbf14c128f61550dfa" +checksum = "c0808e1bd8671fb44a113a14e13497557533369847788fa2ae912b6ebfce9fa8" dependencies = [ "darling_core", "darling_macro", @@ -1692,9 +1703,9 @@ dependencies = [ [[package]] name = "darling_core" -version = "0.14.2" +version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a784d2ccaf7c98501746bf0be29b2022ba41fd62a2e622af997a03e9f972859f" +checksum = "001d80444f28e193f30c2f293455da62dcf9a6b29918a4253152ae2b1de592cb" dependencies = [ "fnv", "ident_case", @@ -1706,9 +1717,9 @@ dependencies = [ [[package]] name = "darling_macro" -version = "0.14.2" +version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7618812407e9402654622dd402b0a89dff9ba93badd6540781526117b92aab7e" +checksum = "b36230598a2d5de7ec1c6f51f72d8a99a9208daff41de2084d06e3fd3ea56685" dependencies = [ "darling_core", "quote", @@ -1719,7 +1730,8 @@ dependencies = [ name = "data-avail" version = "1.5.0" dependencies = [ - "clap 4.0.29", + "avail-base", + "clap 4.1.6", "clap_complete", "da-bridge", "da-control", @@ -1744,7 +1756,7 @@ dependencies = [ "pallet-im-online", "pallet-transaction-payment", "pallet-transaction-payment-rpc", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "rand 0.8.5", "sc-authority-discovery", "sc-basic-authorship", @@ -1798,6 +1810,7 @@ dependencies = [ "sp-transaction-storage-proof", "substrate-build-script-utils", "substrate-frame-rpc-system", + "substrate-prometheus-endpoint 0.10.0", "substrate-state-trie-migration-rpc", "tempfile", "try-runtime-cli", @@ -2024,9 +2037,9 @@ checksum = "9ea835d29036a4087793836fa931b08837ad5e957da9e23886b29586fb9b6650" [[package]] name = "dtoa" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8a6eee2d5d0d113f015688310da018bd1d864d86bd567c8fca9c266889e1bfa" +checksum = "c00704156a7de8df8da0911424e30c2049957b0a714542a44e05fe693dd85313" [[package]] name = "dusk-bls12_381" @@ -2101,9 +2114,9 @@ dependencies = [ [[package]] name = "dyn-clone" -version = "1.0.9" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f94fa09c2aeea5b8839e414b7b841bf429fd25b9c522116ac97ee87856d88b2" +checksum = "c9b0705efd4599c15a38151f4721f7bc388306f61084d3bfd50bd07fbca5cb60" [[package]] name = "ecdsa" @@ -2119,9 +2132,9 @@ dependencies = [ [[package]] name = "ed25519" -version = "1.5.2" +version = "1.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e9c280362032ea4203659fc489832d0204ef09f247a0506f170dafcac08c369" +checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7" dependencies = [ "signature", ] @@ -2156,9 +2169,9 @@ dependencies = [ [[package]] name = "either" -version = "1.8.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797" +checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91" [[package]] name = "elliptic-curve" @@ -2207,6 +2220,19 @@ dependencies = [ "termcolor", ] +[[package]] +name = "env_logger" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85cdab6a89accf66733ad5a1693a4dcced6aeff64602b634530dd73c1f3ee9f0" +dependencies = [ + "humantime", + "is-terminal", + "log", + "regex", + "termcolor", +] + [[package]] name = "environmental" version = "1.1.4" @@ -2380,9 +2406,9 @@ checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" [[package]] name = "fastrand" -version = "1.8.0" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7a407cfaa3385c4ae6b23e84623d48c2798d06e3e6a1878f7f59f17b3f86499" +checksum = "e51093e27b0797c359783294ca4f0a911c270184cb10f85783b118614a1501be" dependencies = [ "instant", ] @@ -2406,26 +2432,32 @@ dependencies = [ "subtle", ] +[[package]] +name = "fiat-crypto" +version = "0.1.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a214f5bb88731d436478f3ae1f8a277b62124089ba9fb67f4f93fb100ef73c90" + [[package]] name = "file-per-thread-logger" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21e16290574b39ee41c71aeb90ae960c504ebaf1e2a1c87bd52aa56ed6e1a02f" +checksum = "84f2e425d9790201ba4af4630191feac6dcc98765b118d4d18e91d23c2353866" dependencies = [ - "env_logger", + "env_logger 0.10.0", "log", ] [[package]] name = "filetime" -version = "0.2.19" +version = "0.2.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e884668cd0c7480504233e951174ddc3b382f7c2666e3b7310b5c4e7b0c37f9" +checksum = "8a3de6e8d11b22ff9edc6d916f890800597d60f8b2da1caf2955c274638d6412" dependencies = [ "cfg-if", "libc", "redox_syscall", - "windows-sys 0.42.0", + "windows-sys 0.45.0", ] [[package]] @@ -2439,7 +2471,7 @@ dependencies = [ "futures-timer", "log", "num-traits", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parking_lot 0.12.1", "scale-info", ] @@ -2491,9 +2523,9 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", ] [[package]] @@ -2514,13 +2546,13 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-support", "frame-system", "linregress", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "paste", "scale-info", "serde", @@ -2537,12 +2569,12 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "Inflector", "array-bytes", "chrono", - "clap 4.0.29", + "clap 4.1.6", "comfy-table", "frame-benchmarking", "frame-support", @@ -2553,7 +2585,7 @@ dependencies = [ "lazy_static", "linked-hash-map", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "rand 0.8.5", "rand_pcg", "sc-block-builder", @@ -2584,7 +2616,7 @@ dependencies = [ [[package]] name = "frame-election-provider-solution-type" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -2595,12 +2627,12 @@ dependencies = [ [[package]] name = "frame-election-provider-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-election-provider-solution-type", "frame-support", "frame-system", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-arithmetic 6.0.0", "sp-core", @@ -2624,7 +2656,7 @@ dependencies = [ "pallet-babe", "pallet-balances", "pallet-transaction-payment", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-core", "sp-inherents", @@ -2642,7 +2674,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df6bb8542ef006ef0de09a5c4420787d79823c0ed7924225822362fd2bf2ff2d" dependencies = [ "cfg-if", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "serde", ] @@ -2650,11 +2682,11 @@ dependencies = [ [[package]] name = "frame-remote-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "futures", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "serde", "sp-core", "sp-io", @@ -2666,7 +2698,7 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "bitflags", "frame-metadata", @@ -2675,7 +2707,7 @@ dependencies = [ "k256", "log", "once_cell", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "paste", "scale-info", "serde", @@ -2698,7 +2730,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "Inflector", "cfg-expr", @@ -2712,7 +2744,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -2724,7 +2756,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "proc-macro2", "quote", @@ -2735,6 +2767,7 @@ dependencies = [ name = "frame-system" version = "4.0.0-dev" dependencies = [ + "avail-base", "beefy-merkle-tree", "criterion", "da-primitives", @@ -2744,7 +2777,7 @@ dependencies = [ "impl-trait-for-tuples", "kate", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "rs_merkle", "scale-info", "serde", @@ -2768,7 +2801,7 @@ dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-core", "sp-io", @@ -2780,17 +2813,17 @@ dependencies = [ name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" dependencies = [ - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sp-api", ] [[package]] name = "frame-try-runtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-support", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sp-api", "sp-runtime", "sp-std 5.0.0", @@ -2806,12 +2839,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "fs_extra" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2022715d62ab30faffd124d40b76f4134a550a87792276512b18d63272333394" - [[package]] name = "funty" version = "1.1.0" @@ -2826,9 +2853,9 @@ checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" [[package]] name = "futures" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38390104763dc37a5145a53c29c63c1290b5d316d6086ec32c293f6736051bb0" +checksum = "13e2792b0ff0340399d58445b88fd9770e3489eff258a4cbc1523418f12abf84" dependencies = [ "futures-channel", "futures-core", @@ -2841,9 +2868,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52ba265a92256105f45b719605a571ffe2d1f0fea3807304b522c1d778f79eed" +checksum = "2e5317663a9089767a1ec00a487df42e0ca174b61b4483213ac24448e4664df5" dependencies = [ "futures-core", "futures-sink", @@ -2851,15 +2878,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04909a7a7e4633ae6c4a9ab280aeb86da1236243a77b694a49eacd659a4bd3ac" +checksum = "ec90ff4d0fe1f57d600049061dc6bb68ed03c7d2fbd697274c41805dcb3f8608" [[package]] name = "futures-executor" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7acc85df6714c176ab5edf386123fafe217be88c0840ec11f199441134a074e2" +checksum = "e8de0a35a6ab97ec8869e32a2473f4b1324459e14c29275d14b10cb1fd19b50e" dependencies = [ "futures-core", "futures-task", @@ -2869,9 +2896,9 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00f5fb52a06bdcadeb54e8d3671f8888a39697dcb0b81b23b55174030427f4eb" +checksum = "bfb8371b6fb2aeb2d280374607aeabfc99d95c72edfe51692e42d3d7f0d08531" [[package]] name = "futures-lite" @@ -2890,9 +2917,9 @@ dependencies = [ [[package]] name = "futures-macro" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bdfb8ce053d86b91919aad980c220b1fb8401a9394410e1c289ed7e66b61835d" +checksum = "95a73af87da33b5acf53acfebdc339fe592ecf5357ac7c0a7734ab9d8c876a70" dependencies = [ "proc-macro2", "quote", @@ -2906,21 +2933,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2411eed028cdf8c8034eaf21f9915f956b6c3abec4d4c7949ee67f0721127bd" dependencies = [ "futures-io", - "rustls 0.20.7", + "rustls 0.20.8", "webpki 0.22.0", ] [[package]] name = "futures-sink" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39c15cf1a4aa79df40f1bb462fb39676d0ad9e366c2a33b590d7c66f4f81fcf9" +checksum = "f310820bb3e8cfd46c80db4d7fb8353e15dfff853a127158425f31e0be6c8364" [[package]] name = "futures-task" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ffb393ac5d9a6eaa9d3fdf37ae2776656b706e200c8e16b1bdb227f5198e6ea" +checksum = "dcf79a1bf610b10f42aea489289c5a2c478a786509693b80cd39c44ccd936366" [[package]] name = "futures-timer" @@ -2934,9 +2961,9 @@ dependencies = [ [[package]] name = "futures-util" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "197676987abd2f9cadff84926f410af1c183608d36641465df73ae8211dc65d6" +checksum = "9c1d6de3acfef38d2be4b1f543f553131788603495be83da675e180c8d6b7bd1" dependencies = [ "futures-channel", "futures-core", @@ -3045,21 +3072,21 @@ dependencies = [ [[package]] name = "gimli" -version = "0.27.1" +version = "0.27.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "221996f774192f0f718773def8201c4ae31f02616a54ccfc2d358bb0e5cefdec" +checksum = "ad0a93d233ebf96623465aad4046a8d3aa4da22d4f4beba5388838c8a434bbb4" [[package]] name = "glob" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" +checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "globset" -version = "0.4.9" +version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a1e17342619edbc21a964c2afbeb6c820c6a2560032872f397bb97ea127bd0a" +checksum = "029d74589adefde59de1a0c4f4732695c32805624aec7b68d91503d4dba79afc" dependencies = [ "aho-corasick", "bstr", @@ -3070,9 +3097,9 @@ dependencies = [ [[package]] name = "gloo-net" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9050ff8617e950288d7bf7f300707639fdeda5ca0d0ecf380cff448cfd52f4a6" +checksum = "9902a044653b26b99f7e3693a42f171312d9be8b26b5697bd1e43ad1f8a35e10" dependencies = [ "futures-channel", "futures-core", @@ -3090,9 +3117,9 @@ dependencies = [ [[package]] name = "gloo-timers" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98c4a8d6391675c6b2ee1a6c8d06e8e2d03605c44cec1270675985a4c2a5500b" +checksum = "9b995a66bb87bebce9a0f4a95aed01daca4872c050bfcb21653361c03bc35e5c" dependencies = [ "futures-channel", "futures-core", @@ -3151,9 +3178,9 @@ checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7" [[package]] name = "handlebars" -version = "4.3.5" +version = "4.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "433e4ab33f1213cdc25b5fa45c76881240cfe79284cf2b395e8b9e312a30a2fd" +checksum = "035ef95d03713f2c347a72547b7cd38cbc9af7cd51e6099fb62d586d4a6dee3a" dependencies = [ "log", "pest", @@ -3198,9 +3225,9 @@ dependencies = [ [[package]] name = "heck" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" [[package]] name = "hermit-abi" @@ -3220,6 +3247,12 @@ dependencies = [ "libc", ] +[[package]] +name = "hermit-abi" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" + [[package]] name = "hex" version = "0.4.3" @@ -3304,13 +3337,13 @@ dependencies = [ [[package]] name = "http" -version = "0.2.8" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75f43d41e26995c17e71ee126451dd3941010b0514a81a9d11f3b341debc2399" +checksum = "bd6effc99afb63425aff9b05836f029929e345a6148a14b7ecd5ab67af944482" dependencies = [ "bytes", "fnv", - "itoa 1.0.4", + "itoa", ] [[package]] @@ -3350,9 +3383,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "0.14.23" +version = "0.14.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "034711faac9d2166cb1baf1a2fb0b60b1f277f8492fd72176c17f3515e1abd3c" +checksum = "5e011372fa0b68db8350aa7a248930ecc7839bf46d8485577d69f117a75f164c" dependencies = [ "bytes", "futures-channel", @@ -3363,7 +3396,7 @@ dependencies = [ "http-body", "httparse", "httpdate", - "itoa 1.0.4", + "itoa", "pin-project-lite 0.2.9", "socket2", "tokio", @@ -3381,7 +3414,7 @@ dependencies = [ "http", "hyper", "log", - "rustls 0.20.7", + "rustls 0.20.8", "rustls-native-certs", "tokio", "tokio-rustls", @@ -3474,7 +3507,7 @@ version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba6a270039626615617f3f36d15fc827041df3b78c439da2cadfa47455a77f2f" dependencies = [ - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", ] [[package]] @@ -3571,12 +3604,12 @@ checksum = "59ce5ef949d49ee85593fc4d3f3f95ad61657076395cbbce23e2121fc5542074" [[package]] name = "io-lifetimes" -version = "1.0.3" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46112a93252b123d31a119a8d1a1ac19deac4fac6e0e8b0df58f0d4e5870e63c" +checksum = "1abeb7a0dd0f8181267ff8adc397075586500b81b28a73e8a0208b00fc170fb3" dependencies = [ "libc", - "windows-sys 0.42.0", + "windows-sys 0.45.0", ] [[package]] @@ -3599,20 +3632,20 @@ dependencies = [ [[package]] name = "ipnet" -version = "2.6.0" +version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec947b7a4ce12e3b87e353abae7ce124d025b6c7d6c5aea5cc0bcf92e9510ded" +checksum = "30e22bd8629359895450b59ea7a776c850561b96a3b1d31321c1949d9e6c9146" [[package]] name = "is-terminal" -version = "0.4.1" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "927609f78c2913a6f6ac3c27a4fe87f43e2a35367c0c4b0f8265e8f49a104330" +checksum = "21b6b32576413a8e69b90e952e4a026476040d81017b80445deda5f2d3921857" dependencies = [ - "hermit-abi 0.2.6", - "io-lifetimes 1.0.3", - "rustix 0.36.5", - "windows-sys 0.42.0", + "hermit-abi 0.3.1", + "io-lifetimes 1.0.5", + "rustix 0.36.8", + "windows-sys 0.45.0", ] [[package]] @@ -3635,15 +3668,9 @@ dependencies = [ [[package]] name = "itoa" -version = "0.4.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" - -[[package]] -name = "itoa" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4217ad341ebadf8d8e724e264f13e593e0648f5b3e94b3896a5df283be015ecc" +checksum = "fad582f4b9e86b6caa621cabeb0963332d92eea04729ab12892c2533951e6440" [[package]] name = "jobserver" @@ -3656,9 +3683,9 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.60" +version = "0.3.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49409df3e3bf0856b916e2ceaca09ee28e6871cf7d9ce97a692cacfdb2a25a47" +checksum = "445dde2150c55e483f3d8416706b97ec8e8237c307e5b7b4b8dd15e6af2a0730" dependencies = [ "wasm-bindgen", ] @@ -3840,8 +3867,8 @@ dependencies = [ [[package]] name = "kate" -version = "0.6.1" -source = "git+https://github.com/maticnetwork/avail-core?tag=da-primitives/v0.4.3#7ba247c4faebc43de15a9ead86407f68879065da" +version = "0.7.0" +source = "git+https://github.com/maticnetwork/avail-core?tag=da-primitives/v0.4.4#3de909c9bbe5926b282f597959e806dbff684d48" dependencies = [ "da-primitives", "derive_more", @@ -3854,7 +3881,7 @@ dependencies = [ "log", "num_cpus", "once_cell", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "rand 0.8.5", "rand_chacha 0.3.1", "rand_core 0.6.4", @@ -3868,14 +3895,14 @@ dependencies = [ [[package]] name = "kate-recovery" version = "0.8.0" -source = "git+https://github.com/maticnetwork/avail-core?tag=da-primitives/v0.4.3#7ba247c4faebc43de15a9ead86407f68879065da" +source = "git+https://github.com/maticnetwork/avail-core?tag=da-primitives/v0.4.4#3de909c9bbe5926b282f597959e806dbff684d48" dependencies = [ "dusk-bytes", "dusk-plonk", "getrandom 0.2.8", "num", "once_cell", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "rand 0.8.5", "rand_chacha 0.3.1", "serde", @@ -3886,6 +3913,7 @@ dependencies = [ name = "kate-rpc" version = "0.2.0" dependencies = [ + "avail-base", "da-primitives", "frame-support", "frame-system", @@ -3895,7 +3923,7 @@ dependencies = [ "kate-recovery", "kate-rpc-runtime-api", "lru 0.7.8", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "rs_merkle", "sc-client-api", "sc-client-db", @@ -3915,7 +3943,7 @@ dependencies = [ "beefy-merkle-tree", "da-primitives", "frame-system", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "serde", "sp-api", "sp-arithmetic 5.0.0", @@ -3979,9 +4007,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.138" +version = "0.2.139" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db6d7e329c562c5dfab7a46a2afabc8b987ab9a4834c9d1ca04dc54c1546cef8" +checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" [[package]] name = "libloading" @@ -3993,6 +4021,12 @@ dependencies = [ "winapi", ] +[[package]] +name = "libm" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7fc7aa29613bd6a620df431842069224d8bc9011086b1db4c0e0cd47fa03ec9a" + [[package]] name = "libm" version = "0.2.6" @@ -4237,7 +4271,7 @@ dependencies = [ "parking_lot 0.12.1", "quinn-proto", "rand 0.8.5", - "rustls 0.20.7", + "rustls 0.20.8", "thiserror", "tokio", ] @@ -4320,7 +4354,7 @@ dependencies = [ "libp2p-core", "rcgen 0.10.0", "ring", - "rustls 0.20.7", + "rustls 0.20.8", "thiserror", "webpki 0.22.0", "x509-parser 0.14.0", @@ -4407,9 +4441,9 @@ dependencies = [ [[package]] name = "librocksdb-sys" -version = "0.8.0+7.4.4" +version = "0.8.3+7.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "611804e4666a25136fcc5f8cf425ab4d26c7f74ea245ffe92ea23b85b6420b5d" +checksum = "557b255ff04123fcc176162f56ed0c9cd42d8f357cf55b3fabeb60f7413741b3" dependencies = [ "bindgen", "bzip2-sys", @@ -4481,9 +4515,9 @@ dependencies = [ [[package]] name = "link-cplusplus" -version = "1.0.7" +version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9272ab7b96c9046fbc5bc56c06c117cb639fe2d509df0c421cad82d2915cf369" +checksum = "ecd207c9c713c34f95a097a5b029ac2ce6010530c7b49d7fea24d977dede04f5" dependencies = [ "cc", ] @@ -4521,9 +4555,9 @@ checksum = "d4d2456c373231a208ad294c33dc5bff30051eafd954cd4caae83a712b12854d" [[package]] name = "linux-raw-sys" -version = "0.1.3" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f9f08d8963a6c613f4b1a78f4f4a4dbfadf8e6545b2d72861731e4858b8b47f" +checksum = "f051f77a7c8e6957c0696eac88f26b0117e54f52d3fc682ab19397a8812846a4" [[package]] name = "lock_api" @@ -4617,9 +4651,9 @@ dependencies = [ [[package]] name = "matches" -version = "0.1.9" +version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" +checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5" [[package]] name = "matrixmultiply" @@ -4651,14 +4685,14 @@ version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b20a59d985586e4a5aef64564ac77299f8586d8be6cf9106a5a40207e8908efb" dependencies = [ - "rustix 0.36.5", + "rustix 0.36.8", ] [[package]] name = "memmap2" -version = "0.5.8" +version = "0.5.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b182332558b18d807c4ce1ca8ca983b34c3ee32765e47b3f0f69b90355cc1dc" +checksum = "83faa42c0a078c393f6b29d5db232d8be22776a891f8f56e5284faee4a20b327" dependencies = [ "libc", ] @@ -4744,24 +4778,24 @@ dependencies = [ [[package]] name = "mio" -version = "0.8.5" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de" +checksum = "5b9d9a46eff5b4ff64b45a9e316a6d1e0bc719ef429cbec4dc630684212bfdf9" dependencies = [ "libc", "log", "wasi 0.11.0+wasi-snapshot-preview1", - "windows-sys 0.42.0", + "windows-sys 0.45.0", ] [[package]] name = "mmr-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "anyhow", "jsonrpsee", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "serde", "sp-api", "sp-blockchain", @@ -4812,7 +4846,7 @@ dependencies = [ "pallet-staking", "pallet-timestamp", "pallet-transaction-payment", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parity-util-mem", "scale-info", "serde", @@ -4873,9 +4907,9 @@ dependencies = [ [[package]] name = "multihash-derive" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc076939022111618a5026d3be019fd8b366e76314538ff9a1b59ffbcbf98bcd" +checksum = "1d6d4752e6230d8ef7adf7bd5d8c4b1f6561c1014c5ba9a37445ccefe18aa1db" dependencies = [ "proc-macro-crate", "proc-macro-error", @@ -4971,9 +5005,9 @@ dependencies = [ [[package]] name = "netlink-packet-utils" -version = "0.5.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25af9cf0dc55498b7bd94a1508af7a78706aa0ab715a73c5169273e03c84845e" +checksum = "0ede8a08c71ad5a95cdd0e4e52facd37190977039a4704eb82a283f713747d34" dependencies = [ "anyhow", "byteorder", @@ -4998,9 +5032,9 @@ dependencies = [ [[package]] name = "netlink-sys" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92b654097027250401127914afb37cb1f311df6610a9891ff07a757e94199027" +checksum = "260e21fbb6f3d253a14df90eb0000a6066780a15dd901a7519ce02d77a94985b" dependencies = [ "bytes", "futures", @@ -5029,9 +5063,9 @@ checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" [[package]] name = "nom" -version = "7.1.1" +version = "7.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8903e5a29a317527874d0402f867152a3d21c908bb0b933e416c65e301d4c36" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" dependencies = [ "memchr", "minimal-lexical", @@ -5040,14 +5074,14 @@ dependencies = [ [[package]] name = "nomad-base" version = "0.1.3" -source = "git+https://github.com/maticnetwork/avail-core?tag=da-primitives/v0.4.3#7ba247c4faebc43de15a9ead86407f68879065da" +source = "git+https://github.com/maticnetwork/avail-core?tag=da-primitives/v0.4.4#3de909c9bbe5926b282f597959e806dbff684d48" dependencies = [ "ethers-signers", "frame-support", "nomad-core", "nomad-signature", "once_cell", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "primitive-types", "scale-info", "serde", @@ -5059,13 +5093,13 @@ dependencies = [ [[package]] name = "nomad-core" version = "0.1.3" -source = "git+https://github.com/maticnetwork/avail-core?tag=da-primitives/v0.4.3#7ba247c4faebc43de15a9ead86407f68879065da" +source = "git+https://github.com/maticnetwork/avail-core?tag=da-primitives/v0.4.4#3de909c9bbe5926b282f597959e806dbff684d48" dependencies = [ "ethers-core", "ethers-signers", "frame-support", "nomad-signature", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "primitive-types", "scale-info", "serde", @@ -5090,7 +5124,7 @@ dependencies = [ "nomad-merkle", "nomad-signature", "nomad-updater-manager", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "primitive-types", "scale-info", "serde", @@ -5106,12 +5140,12 @@ dependencies = [ [[package]] name = "nomad-merkle" version = "0.1.1" -source = "git+https://github.com/maticnetwork/avail-core?tag=da-primitives/v0.4.3#7ba247c4faebc43de15a9ead86407f68879065da" +source = "git+https://github.com/maticnetwork/avail-core?tag=da-primitives/v0.4.4#3de909c9bbe5926b282f597959e806dbff684d48" dependencies = [ "frame-support", "hex-literal", "nomad-core", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "primitive-types", "scale-info", "serde", @@ -5127,7 +5161,7 @@ dependencies = [ [[package]] name = "nomad-signature" version = "0.1.1" -source = "git+https://github.com/maticnetwork/avail-core?tag=da-primitives/v0.4.3#7ba247c4faebc43de15a9ead86407f68879065da" +source = "git+https://github.com/maticnetwork/avail-core?tag=da-primitives/v0.4.4#3de909c9bbe5926b282f597959e806dbff684d48" dependencies = [ "elliptic-curve", "ethers-core", @@ -5135,7 +5169,7 @@ dependencies = [ "generic-array 0.14.6", "hex", "k256", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "primitive-types", "rlp", "rlp-derive", @@ -5156,7 +5190,7 @@ dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "primitive-types", "scale-info", "serde", @@ -5200,9 +5234,9 @@ dependencies = [ [[package]] name = "num-complex" -version = "0.4.2" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ae39348c8bc5fbd7f40c727a9925f03517afd2ab27d46702108b6a7e5414c19" +checksum = "02e0d21255c828d6f128a1e41534206671e8c3ea0c62f32291e808dc82cff17d" dependencies = [ "num-traits", ] @@ -5214,7 +5248,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a652d9771a63711fd3c3deb670acfbe5c30a4072e664d7a3bf5a9e1056ac72c3" dependencies = [ "arrayvec 0.7.2", - "itoa 1.0.4", + "itoa", ] [[package]] @@ -5257,16 +5291,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" dependencies = [ "autocfg", - "libm", + "libm 0.2.6", ] [[package]] name = "num_cpus" -version = "1.14.0" +version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6058e64324c71e02bc2b150e4f3bc8286db6c83092132ffa3f6b1eab0f9def5" +checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" dependencies = [ - "hermit-abi 0.1.19", + "hermit-abi 0.2.6", "libc", ] @@ -5311,9 +5345,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.16.0" +version = "1.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86f0b0d4bf799edbc74508c1e8bf170ff5f41238e5f8225603ca7caaae2b7860" +checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" [[package]] name = "oorandom" @@ -5392,16 +5426,26 @@ dependencies = [ "sha2 0.10.6", ] +[[package]] +name = "packed_simd_2" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1914cd452d8fccd6f9db48147b29fd4ae05bea9dc5d9ad578509f72415de282" +dependencies = [ + "cfg-if", + "libm 0.1.4", +] + [[package]] name = "pallet-asset-tx-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "pallet-transaction-payment", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "serde", "sp-core", @@ -5413,12 +5457,12 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-support", "frame-system", "pallet-session", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-application-crypto", "sp-authority-discovery", @@ -5429,12 +5473,12 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-support", "frame-system", "impl-trait-for-tuples", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-authorship", "sp-runtime", @@ -5444,7 +5488,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-support", @@ -5453,7 +5497,7 @@ dependencies = [ "pallet-authorship", "pallet-session", "pallet-timestamp", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-application-crypto", "sp-consensus-babe", @@ -5468,7 +5512,7 @@ dependencies = [ [[package]] name = "pallet-bags-list" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5476,7 +5520,7 @@ dependencies = [ "frame-system", "log", "pallet-balances", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-core", "sp-io", @@ -5488,13 +5532,13 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-runtime", "sp-std 5.0.0", @@ -5503,14 +5547,14 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "log", "pallet-treasury", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-core", "sp-io", @@ -5521,7 +5565,7 @@ dependencies = [ [[package]] name = "pallet-child-bounties" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-support", @@ -5529,7 +5573,7 @@ dependencies = [ "log", "pallet-bounties", "pallet-treasury", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-core", "sp-io", @@ -5540,13 +5584,13 @@ dependencies = [ [[package]] name = "pallet-collective" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-core", "sp-io", @@ -5557,13 +5601,13 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "serde", "sp-core", @@ -5575,7 +5619,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5583,7 +5627,7 @@ dependencies = [ "frame-system", "log", "pallet-election-provider-support-benchmarking", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "rand 0.8.5", "scale-info", "sp-arithmetic 6.0.0", @@ -5598,12 +5642,12 @@ dependencies = [ [[package]] name = "pallet-election-provider-support-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-election-provider-support", "frame-system", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sp-npos-elections", "sp-runtime", ] @@ -5611,13 +5655,13 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-core", "sp-io", @@ -5629,7 +5673,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-support", @@ -5637,7 +5681,7 @@ dependencies = [ "log", "pallet-authorship", "pallet-session", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-application-crypto", "sp-core", @@ -5652,14 +5696,14 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "log", "pallet-authorship", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-application-crypto", "sp-core", @@ -5672,12 +5716,12 @@ dependencies = [ [[package]] name = "pallet-indices" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-core", "sp-io", @@ -5689,13 +5733,13 @@ dependencies = [ [[package]] name = "pallet-membership" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-core", "sp-io", @@ -5706,12 +5750,12 @@ dependencies = [ [[package]] name = "pallet-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-core", "sp-io", @@ -5723,13 +5767,13 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-io", "sp-runtime", @@ -5739,12 +5783,12 @@ dependencies = [ [[package]] name = "pallet-nomination-pools" version = "1.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-support", "frame-system", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-core", "sp-io", @@ -5756,13 +5800,13 @@ dependencies = [ [[package]] name = "pallet-offences" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-support", "frame-system", "log", "pallet-balances", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "serde", "sp-runtime", @@ -5773,13 +5817,13 @@ dependencies = [ [[package]] name = "pallet-preimage" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-core", "sp-io", @@ -5790,11 +5834,11 @@ dependencies = [ [[package]] name = "pallet-randomness-collective-flip" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-support", "frame-system", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "safe-mix", "scale-info", "sp-runtime", @@ -5804,13 +5848,13 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-io", "sp-runtime", @@ -5821,14 +5865,14 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-support", "frame-system", "impl-trait-for-tuples", "log", "pallet-timestamp", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-core", "sp-io", @@ -5842,7 +5886,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5851,7 +5895,7 @@ dependencies = [ "log", "pallet-authorship", "pallet-session", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "serde", "sp-application-crypto", @@ -5864,7 +5908,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -5875,11 +5919,11 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-support", "frame-system", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-io", "sp-runtime", @@ -5889,13 +5933,13 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-inherents", "sp-io", @@ -5907,14 +5951,14 @@ dependencies = [ [[package]] name = "pallet-tips" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "log", "pallet-treasury", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "serde", "sp-core", @@ -5926,11 +5970,11 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-support", "frame-system", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "serde", "sp-core", @@ -5942,11 +5986,11 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sp-api", "sp-blockchain", "sp-core", @@ -5958,10 +6002,10 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "pallet-transaction-payment", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sp-api", "sp-runtime", "sp-weights", @@ -5970,14 +6014,14 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "impl-trait-for-tuples", "pallet-balances", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "serde", "sp-runtime", @@ -5987,12 +6031,12 @@ dependencies = [ [[package]] name = "pallet-utility" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-core", "sp-io", @@ -6002,9 +6046,9 @@ dependencies = [ [[package]] name = "parity-db" -version = "0.4.2" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a7511a0bec4a336b5929999d02b560d2439c993cccf98c26481484e811adc43" +checksum = "dd684a725651d9588ef21f140a328b6b4f64e646b2e931f3e6f14f75eedf9980" dependencies = [ "blake2", "crc32fast", @@ -6035,16 +6079,16 @@ dependencies = [ [[package]] name = "parity-scale-codec" -version = "3.2.1" +version = "3.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "366e44391a8af4cfd6002ef6ba072bae071a96aafca98d7d448a34c5dca38b6a" +checksum = "637935964ff85a605d114591d4d2c13c5d1ba2806dae97cea6bf180238a749ac" dependencies = [ "arrayvec 0.7.2", "bitvec 1.0.1", "byte-slice-cast", "bytes", "impl-trait-for-tuples", - "parity-scale-codec-derive 3.1.3", + "parity-scale-codec-derive 3.1.4", "serde", ] @@ -6062,9 +6106,9 @@ dependencies = [ [[package]] name = "parity-scale-codec-derive" -version = "3.1.3" +version = "3.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9299338969a3d2f491d65f140b00ddec470858402f888af98e8642fb5e8965cd" +checksum = "86b26a931f824dd4eca30b3e43bb4f31cd5f0d3a403c5f5ff27106b805bfde7b" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -6127,7 +6171,7 @@ checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99" dependencies = [ "instant", "lock_api", - "parking_lot_core 0.8.5", + "parking_lot_core 0.8.6", ] [[package]] @@ -6137,14 +6181,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" dependencies = [ "lock_api", - "parking_lot_core 0.9.5", + "parking_lot_core 0.9.7", ] [[package]] name = "parking_lot_core" -version = "0.8.5" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d76e8e1493bcac0d2766c42737f34458f1c8c50c0d23bcb24ea953affb273216" +checksum = "60a2cfe6f0ad2bfc16aefa463b497d5c7a5ecd44a23efa72aa342d90177356dc" dependencies = [ "cfg-if", "instant", @@ -6156,15 +6200,15 @@ dependencies = [ [[package]] name = "parking_lot_core" -version = "0.9.5" +version = "0.9.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ff9f3fef3968a3ec5945535ed654cb38ff72d7495a25619e2247fb15a2ed9ba" +checksum = "9069cbb9f99e3a5083476ccb29ceb1de18b9118cafa53e90c9551235de2b9521" dependencies = [ "cfg-if", "libc", "redox_syscall", "smallvec", - "windows-sys 0.42.0", + "windows-sys 0.45.0", ] [[package]] @@ -6180,9 +6224,9 @@ dependencies = [ [[package]] name = "paste" -version = "1.0.9" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1de2e551fb905ac83f73f7aedf2f0cb4a0da7e35efa24a202a936269f1f18e1" +checksum = "d01a5bd0424d00070b0098dd17ebca6f961a959dead1dbcbbbc1d1cd8d3deeba" [[package]] name = "pbkdf2" @@ -6237,9 +6281,9 @@ checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" [[package]] name = "pest" -version = "2.5.1" +version = "2.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc8bed3549e0f9b0a2a78bf7c0018237a2cdf085eecbbc048e52612438e4e9d0" +checksum = "028accff104c4e513bad663bbcd2ad7cfd5304144404c31ed0a77ac103d00660" dependencies = [ "thiserror", "ucd-trie", @@ -6247,9 +6291,9 @@ dependencies = [ [[package]] name = "pest_derive" -version = "2.5.1" +version = "2.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdc078600d06ff90d4ed238f0119d84ab5d43dbaad278b0e33a8820293b32344" +checksum = "2ac3922aac69a40733080f53c1ce7f91dcf57e1a5f6c52f421fadec7fbdc4b69" dependencies = [ "pest", "pest_generator", @@ -6257,9 +6301,9 @@ dependencies = [ [[package]] name = "pest_generator" -version = "2.5.1" +version = "2.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28a1af60b1c4148bb269006a750cff8e2ea36aff34d2d96cf7be0b14d1bed23c" +checksum = "d06646e185566b5961b4058dd107e0a7f56e77c3f484549fb119867773c0f202" dependencies = [ "pest", "pest_meta", @@ -6270,20 +6314,20 @@ dependencies = [ [[package]] name = "pest_meta" -version = "2.5.1" +version = "2.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fec8605d59fc2ae0c6c1aefc0c7c7a9769732017c0ce07f7a9cfffa7b4404f20" +checksum = "e6f60b2ba541577e2a0c307c8f39d1439108120eb7903adeb6497fa880c59616" dependencies = [ "once_cell", "pest", - "sha1", + "sha2 0.10.6", ] [[package]] name = "petgraph" -version = "0.6.2" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6d5014253a1331579ce62aa67443b4a658c5e7dd03d4bc6d302b94474888143" +checksum = "4dd7d28ee937e54fe3080c91faa1c3a46c06de6252988a7f4592ba2310ef22a4" dependencies = [ "fixedbitset", "indexmap", @@ -6349,6 +6393,12 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e8d0eef3571242013a0d5dc84861c3ae4a652e56e12adf8bdc26ff5f8cb34c94" +[[package]] +name = "platforms" +version = "3.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3d7ddaed09e0eb771a79ab0fd64609ba0afb0a8366421957936ad14cbd13630" + [[package]] name = "plotters" version = "0.3.4" @@ -6379,9 +6429,9 @@ dependencies = [ [[package]] name = "polling" -version = "2.5.1" +version = "2.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "166ca89eb77fd403230b9c156612965a81e094ec6ec3aa13663d4c8b113fa748" +checksum = "22122d5ec4f9fe1b3916419b76be1e80bcb93f618d071d2edf841b137b2a2bd6" dependencies = [ "autocfg", "cfg-if", @@ -6433,9 +6483,9 @@ checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" [[package]] name = "predicates" -version = "2.1.4" +version = "2.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f54fc5dc63ed3bbf19494623db4f3af16842c0d975818e469022d09e53f0aa05" +checksum = "59230a63c37f3e18569bdb90e4a89cbf5bf8b06fea0b84e65ea10cc4df47addd" dependencies = [ "difflib", "float-cmp", @@ -6463,9 +6513,9 @@ dependencies = [ [[package]] name = "prettyplease" -version = "0.1.21" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c142c0e46b57171fe0c528bee8c5b7569e80f0c17e377cd0e30ea57dbc11bb51" +checksum = "e97e3215779627f01ee256d2fad52f3d95e8e1c11e9fc6fd08f7cd455d5d5c78" dependencies = [ "proc-macro2", "syn", @@ -6487,11 +6537,10 @@ dependencies = [ [[package]] name = "proc-macro-crate" -version = "1.2.1" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eda0fc3b0fb7c975631757e14d9049da17374063edb6ebbcbc54d880d4fe94e9" +checksum = "e17d47ce914bf4de440332250b0edd23ce48c005f59fab39d3335866b114f11a" dependencies = [ - "once_cell", "thiserror", "toml", ] @@ -6522,9 +6571,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.47" +version = "1.0.51" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ea3d908b0e36316caf9e9e2c4625cdde190a7e6f440d794667ed17a1855e725" +checksum = "5d727cae5b39d21da60fa540906919ad737832fe0b1c165da3a34d6548c849d6" dependencies = [ "unicode-ident", ] @@ -6550,7 +6599,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "83cd1b99916654a69008fd66b4f9397fbe08e6e51dfe23d4417acf5d3b8cb87c" dependencies = [ "dtoa", - "itoa 1.0.4", + "itoa", "parking_lot 0.12.1", "prometheus-client-derive-text-encode", ] @@ -6568,9 +6617,9 @@ dependencies = [ [[package]] name = "prost" -version = "0.11.3" +version = "0.11.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0b18e655c21ff5ac2084a5ad0611e827b3f92badf79f4910b5a5c58f4d87ff0" +checksum = "3933d3ac2717077b3d5f42b40f59edfb1fb6a8c14e1c7de0f38075c4bac8e314" dependencies = [ "bytes", "prost-derive", @@ -6578,9 +6627,9 @@ dependencies = [ [[package]] name = "prost-build" -version = "0.11.3" +version = "0.11.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e330bf1316db56b12c2bcfa399e8edddd4821965ea25ddb2c134b610b1c1c604" +checksum = "a24be1d23b4552a012093e1b93697b73d644ae9590e3253d878d0e77d411b614" dependencies = [ "bytes", "heck", @@ -6613,9 +6662,9 @@ dependencies = [ [[package]] name = "prost-derive" -version = "0.11.2" +version = "0.11.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "164ae68b6587001ca506d3bf7f1000bfa248d0e1217b618108fba4ec1d0cc306" +checksum = "8e9935362e8369bc3acd874caeeae814295c504c2bdbcde5c024089cf8b4dc12" dependencies = [ "anyhow", "itertools 0.10.5", @@ -6626,11 +6675,10 @@ dependencies = [ [[package]] name = "prost-types" -version = "0.11.2" +version = "0.11.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "747761bc3dc48f9a34553bf65605cf6cb6288ba219f3450b4275dbd81539551a" +checksum = "7de56acd5cc9642cac2a9518d4c8c53818905398fe42d33235859e0d542a7695" dependencies = [ - "bytes", "prost", ] @@ -6670,7 +6718,7 @@ dependencies = [ "rand 0.8.5", "ring", "rustc-hash", - "rustls 0.20.7", + "rustls 0.20.8", "slab", "thiserror", "tinyvec", @@ -6680,9 +6728,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.21" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179" +checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b" dependencies = [ "proc-macro2", ] @@ -6803,20 +6851,19 @@ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3" [[package]] name = "rayon" -version = "1.6.0" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e060280438193c554f654141c9ea9417886713b7acd75974c85b18a69a88e0b" +checksum = "6db3a213adf02b3bcfd2d3846bb41cb22857d131789e01df434fb7e7bc0759b7" dependencies = [ - "crossbeam-deque", "either", "rayon-core", ] [[package]] name = "rayon-core" -version = "1.10.1" +version = "1.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cac410af5d00ab6884528b4ab69d1e8e146e8d471201800fa1b4524126de6ad3" +checksum = "356a0625f1954f730c0201cdab48611198dc6ce21f4acff55089b5a78e6e835b" dependencies = [ "crossbeam-channel", "crossbeam-deque", @@ -6832,7 +6879,7 @@ checksum = "6413f3de1edee53342e6138e75b56d32e7bc6e332b3bd62d497b1929d4cfbcdd" dependencies = [ "pem", "ring", - "time 0.3.17", + "time 0.3.19", "x509-parser 0.13.2", "yasna", ] @@ -6845,7 +6892,7 @@ checksum = "ffbe84efe2f38dea12e9bfc1f65377fdf03e53a18cb3b995faedf7934c7e785b" dependencies = [ "pem", "ring", - "time 0.3.17", + "time 0.3.19", "yasna", ] @@ -6871,18 +6918,18 @@ dependencies = [ [[package]] name = "ref-cast" -version = "1.0.13" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53b15debb4f9d60d767cd8ca9ef7abb2452922f3214671ff052defc7f3502c44" +checksum = "8c78fb8c9293bcd48ef6fce7b4ca950ceaf21210de6e105a883ee280c0f7b9ed" dependencies = [ "ref-cast-impl", ] [[package]] name = "ref-cast-impl" -version = "1.0.13" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abfa8511e9e94fd3de6585a3d3cd00e01ed556dc9814829280af0e8dc72a8f36" +checksum = "9f9c0c92af03644e4806106281fe2e068ac5bc0ae74a707266d06ea27bccee5f" dependencies = [ "proc-macro2", "quote", @@ -6903,9 +6950,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.7.0" +version = "1.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e076559ef8e241f2ae3479e36f97bd5741c0330689e217ad51ce2c76808b868a" +checksum = "48aaa5748ba571fb95cd2c85c09f629215d3a6ece942baa100950af03a34f733" dependencies = [ "aho-corasick", "memchr", @@ -7115,7 +7162,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ - "semver 1.0.14", + "semver 1.0.16", ] [[package]] @@ -7143,16 +7190,16 @@ dependencies = [ [[package]] name = "rustix" -version = "0.36.5" +version = "0.36.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3807b5d10909833d3e9acd1eb5fb988f79376ff10fce42937de71a449c4c588" +checksum = "f43abb88211988493c1abb44a70efa56ff0ce98f233b7b276146f1f3f7ba9644" dependencies = [ "bitflags", "errno", - "io-lifetimes 1.0.3", + "io-lifetimes 1.0.5", "libc", - "linux-raw-sys 0.1.3", - "windows-sys 0.42.0", + "linux-raw-sys 0.1.4", + "windows-sys 0.45.0", ] [[package]] @@ -7170,9 +7217,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.20.7" +version = "0.20.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "539a2bfe908f471bfa933876bd1eb6a19cf2176d375f82ef7f99530a40e48c2c" +checksum = "fff78fc74d175294f4e83b28343315ffcfb114b156f0185e9741cb5570f50e2f" dependencies = [ "log", "ring", @@ -7194,18 +7241,18 @@ dependencies = [ [[package]] name = "rustls-pemfile" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0864aeff53f8c05aa08d86e5ef839d3dfcf07aeba2db32f12db0ef716e87bd55" +checksum = "d194b56d58803a43635bdc398cd17e383d6f71f9182b9a192c127ca42494a59b" dependencies = [ - "base64 0.13.1", + "base64 0.21.0", ] [[package]] name = "rustversion" -version = "1.0.9" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97477e48b4cf8603ad5f7aaf897467cf42ab4218a38ef76fb14c2d6773a6d6a8" +checksum = "5583e89e108996506031660fe09baa5011b9dd0341b89029313006d1fb508d70" [[package]] name = "rw-stream-sink" @@ -7220,9 +7267,9 @@ dependencies = [ [[package]] name = "ryu" -version = "1.0.11" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4501abdff3ae82a1c1b477a17252eb69cee9e66eb915c1abaa4f44d873df9f09" +checksum = "7b4b9743ed687d4b4bcedf9ff5eaa7398495ae14e61cba0a295704edbc7decde" [[package]] name = "safe-mix" @@ -7254,7 +7301,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "4.1.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "log", "sp-core", @@ -7265,7 +7312,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "async-trait", "futures", @@ -7273,7 +7320,7 @@ dependencies = [ "ip_network", "libp2p", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "prost", "prost-build", "rand 0.8.5", @@ -7285,19 +7332,19 @@ dependencies = [ "sp-core", "sp-keystore", "sp-runtime", - "substrate-prometheus-endpoint", + "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", ] [[package]] name = "sc-basic-authorship" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "futures", "futures-timer", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sc-block-builder", "sc-client-api", "sc-proposer-metrics", @@ -7309,15 +7356,15 @@ dependencies = [ "sp-core", "sp-inherents", "sp-runtime", - "substrate-prometheus-endpoint", + "substrate-prometheus-endpoint 0.10.0-dev", ] [[package]] name = "sc-block-builder" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sc-client-api", "sp-api", "sp-block-builder", @@ -7331,7 +7378,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "memmap2", "sc-chain-spec-derive", @@ -7346,7 +7393,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -7357,17 +7404,17 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "array-bytes", "chrono", - "clap 4.0.29", + "clap 4.1.6", "fdlimit", "futures", "libp2p", "log", "names", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "rand 0.8.5", "regex", "rpassword", @@ -7397,12 +7444,12 @@ dependencies = [ [[package]] name = "sc-client-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "fnv", "futures", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parking_lot 0.12.1", "sc-executor", "sc-transaction-pool-api", @@ -7417,13 +7464,13 @@ dependencies = [ "sp-runtime", "sp-state-machine", "sp-storage", - "substrate-prometheus-endpoint", + "substrate-prometheus-endpoint 0.10.0-dev", ] [[package]] name = "sc-client-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "hash-db", "kvdb", @@ -7432,7 +7479,7 @@ dependencies = [ "linked-hash-map", "log", "parity-db", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parking_lot 0.12.1", "sc-client-api", "sc-state-db", @@ -7448,7 +7495,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "async-trait", "futures", @@ -7466,19 +7513,19 @@ dependencies = [ "sp-core", "sp-runtime", "sp-state-machine", - "substrate-prometheus-endpoint", + "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", ] [[package]] name = "sc-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "async-trait", "futures", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sc-block-builder", "sc-client-api", "sc-consensus", @@ -7495,14 +7542,14 @@ dependencies = [ "sp-inherents", "sp-keystore", "sp-runtime", - "substrate-prometheus-endpoint", + "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", ] [[package]] name = "sc-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "async-trait", "fork-tree", @@ -7512,7 +7559,7 @@ dependencies = [ "num-bigint", "num-rational", "num-traits", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parking_lot 0.12.1", "sc-client-api", "sc-consensus", @@ -7533,14 +7580,14 @@ dependencies = [ "sp-inherents", "sp-keystore", "sp-runtime", - "substrate-prometheus-endpoint", + "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", ] [[package]] name = "sc-consensus-babe-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "futures", "jsonrpsee", @@ -7562,10 +7609,10 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "fork-tree", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sc-client-api", "sc-consensus", "sp-blockchain", @@ -7575,13 +7622,13 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "async-trait", "futures", "futures-timer", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sc-client-api", "sc-consensus", "sc-telemetry", @@ -7598,7 +7645,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "sc-client-api", "sp-authorship", @@ -7609,10 +7656,10 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "lru 0.8.1", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parking_lot 0.12.1", "sc-executor-common", "sc-executor-wasmi", @@ -7633,7 +7680,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "sc-allocator", "sp-maybe-compressed-blob 4.1.0-dev", @@ -7646,7 +7693,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "log", "sc-allocator", @@ -7659,7 +7706,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "cfg-if", "libc", @@ -7676,7 +7723,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "ahash 0.7.6", "array-bytes", @@ -7687,7 +7734,7 @@ dependencies = [ "futures", "futures-timer", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parking_lot 0.12.1", "rand 0.8.5", "sc-block-builder", @@ -7709,20 +7756,20 @@ dependencies = [ "sp-finality-grandpa", "sp-keystore", "sp-runtime", - "substrate-prometheus-endpoint", + "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", ] [[package]] name = "sc-finality-grandpa-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "finality-grandpa", "futures", "jsonrpsee", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sc-client-api", "sc-finality-grandpa", "sc-rpc", @@ -7736,7 +7783,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "ansi_term", "futures", @@ -7751,7 +7798,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "array-bytes", "async-trait", @@ -7766,7 +7813,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "array-bytes", "async-trait", @@ -7781,7 +7828,7 @@ dependencies = [ "libp2p", "log", "lru 0.8.1", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parking_lot 0.12.1", "pin-project", "rand 0.8.5", @@ -7799,7 +7846,7 @@ dependencies = [ "sp-consensus", "sp-core", "sp-runtime", - "substrate-prometheus-endpoint", + "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", "unsigned-varint", "zeroize", @@ -7808,7 +7855,7 @@ dependencies = [ [[package]] name = "sc-network-bitswap" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "cid", "futures", @@ -7827,7 +7874,7 @@ dependencies = [ [[package]] name = "sc-network-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "async-trait", "bitflags", @@ -7836,7 +7883,7 @@ dependencies = [ "futures-timer", "libp2p", "linked_hash_set", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "prost-build", "sc-consensus", "sc-peerset", @@ -7846,14 +7893,14 @@ dependencies = [ "sp-consensus", "sp-finality-grandpa", "sp-runtime", - "substrate-prometheus-endpoint", + "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", ] [[package]] name = "sc-network-gossip" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "ahash 0.7.6", "futures", @@ -7864,20 +7911,20 @@ dependencies = [ "sc-network-common", "sc-peerset", "sp-runtime", - "substrate-prometheus-endpoint", + "substrate-prometheus-endpoint 0.10.0-dev", "tracing", ] [[package]] name = "sc-network-light" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "array-bytes", "futures", "libp2p", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "prost", "prost-build", "sc-client-api", @@ -7892,7 +7939,7 @@ dependencies = [ [[package]] name = "sc-network-sync" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "array-bytes", "async-trait", @@ -7902,7 +7949,7 @@ dependencies = [ "log", "lru 0.8.1", "mockall", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "prost", "prost-build", "sc-client-api", @@ -7917,33 +7964,33 @@ dependencies = [ "sp-core", "sp-finality-grandpa", "sp-runtime", - "substrate-prometheus-endpoint", + "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", ] [[package]] name = "sc-network-transactions" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "array-bytes", "futures", "libp2p", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "pin-project", "sc-network-common", "sc-peerset", "sc-utils", "sp-consensus", "sp-runtime", - "substrate-prometheus-endpoint", + "substrate-prometheus-endpoint 0.10.0-dev", ] [[package]] name = "sc-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "array-bytes", "bytes", @@ -7955,7 +8002,7 @@ dependencies = [ "libp2p", "num_cpus", "once_cell", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parking_lot 0.12.1", "rand 0.8.5", "sc-client-api", @@ -7973,7 +8020,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "futures", "libp2p", @@ -7986,21 +8033,21 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "log", - "substrate-prometheus-endpoint", + "substrate-prometheus-endpoint 0.10.0-dev", ] [[package]] name = "sc-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "futures", "jsonrpsee", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parking_lot 0.12.1", "sc-block-builder", "sc-chain-spec", @@ -8024,10 +8071,10 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "jsonrpsee", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sc-chain-spec", "sc-transaction-pool-api", "scale-info", @@ -8043,13 +8090,13 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "http", "jsonrpsee", "log", "serde_json", - "substrate-prometheus-endpoint", + "substrate-prometheus-endpoint 0.10.0-dev", "tokio", "tower", "tower-http", @@ -8058,7 +8105,7 @@ dependencies = [ [[package]] name = "sc-rpc-spec-v2" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "array-bytes", "futures", @@ -8066,7 +8113,7 @@ dependencies = [ "hex", "jsonrpsee", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parking_lot 0.12.1", "sc-chain-spec", "sc-client-api", @@ -8084,7 +8131,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "async-trait", "directories", @@ -8093,7 +8140,7 @@ dependencies = [ "futures-timer", "jsonrpsee", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parking_lot 0.12.1", "pin-project", "rand 0.8.5", @@ -8138,7 +8185,7 @@ dependencies = [ "sp-trie", "sp-version", "static_init", - "substrate-prometheus-endpoint", + "substrate-prometheus-endpoint 0.10.0-dev", "tempfile", "thiserror", "tokio", @@ -8149,10 +8196,10 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parking_lot 0.12.1", "sp-core", ] @@ -8160,10 +8207,10 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "jsonrpsee", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sc-chain-spec", "sc-client-api", "sc-consensus-babe", @@ -8179,7 +8226,7 @@ dependencies = [ [[package]] name = "sc-sysinfo" version = "6.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "futures", "libc", @@ -8198,7 +8245,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "chrono", "futures", @@ -8217,7 +8264,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "ansi_term", "atty", @@ -8248,7 +8295,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -8259,14 +8306,14 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "async-trait", "futures", "futures-timer", "linked-hash-map", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parking_lot 0.12.1", "sc-client-api", "sc-transaction-pool-api", @@ -8278,14 +8325,14 @@ dependencies = [ "sp-runtime", "sp-tracing 6.0.0", "sp-transaction-pool", - "substrate-prometheus-endpoint", + "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", ] [[package]] name = "sc-transaction-pool-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "async-trait", "futures", @@ -8299,7 +8346,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "backtrace", "futures", @@ -8319,7 +8366,7 @@ dependencies = [ "bitvec 1.0.1", "cfg-if", "derive_more", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info-derive", "serde", ] @@ -8338,12 +8385,11 @@ dependencies = [ [[package]] name = "schannel" -version = "0.1.20" +version = "0.1.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88d6731146462ea25d9244b2ed5fd1d716d25c52e4d54aa4fb0f3c4e9854dbe2" +checksum = "713cfb06c7059f3588fb8044c0fad1d09e3c01d225e25b9220dbfdcf16dbb1b3" dependencies = [ - "lazy_static", - "windows-sys 0.36.1", + "windows-sys 0.42.0", ] [[package]] @@ -8372,9 +8418,9 @@ checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" [[package]] name = "scratch" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c8132065adcfd6e02db789d9285a0deb2f3fcb04002865ab67d5fb103533898" +checksum = "ddccb15bcce173023b3fedd9436f882a0739b8dfb45e4f6b6002bee5929f61b2" [[package]] name = "scrypt" @@ -8436,9 +8482,9 @@ dependencies = [ [[package]] name = "secp256k1" -version = "0.24.2" +version = "0.24.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9512ffd81e3a3503ed401f79c33168b9148c75038956039166cd750eaa037c3" +checksum = "6b1629c9c557ef9b293568b338dddfc8208c98a18c59d722a9d53f859d9c9b62" dependencies = [ "secp256k1-sys", ] @@ -8463,9 +8509,9 @@ dependencies = [ [[package]] name = "security-framework" -version = "2.7.0" +version = "2.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bc1bb97804af6631813c55739f771071e0f2ed33ee20b68c86ec505d906356c" +checksum = "a332be01508d814fed64bf28f798a146d73792121129962fdf335bb3c49a4254" dependencies = [ "bitflags", "core-foundation", @@ -8476,9 +8522,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.6.1" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0160a13a177a45bfb43ce71c01580998474f556ad854dcbca936dd2841a5c556" +checksum = "31c9bb296072e961fcbd8853511dd39c2d8be2deb1e17c6860b1d30732b323b4" dependencies = [ "core-foundation-sys", "libc", @@ -8504,9 +8550,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.14" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e25dfac463d778e353db5be2449d1cce89bd6fd23c9f1ea21310ce6e5a1b29c4" +checksum = "58bc9567378fc7690d6b2addae4e60ac2eeea07becb2c64b9f218b53865cba2a" dependencies = [ "serde", ] @@ -8525,9 +8571,9 @@ checksum = "f638d531eccd6e23b980caf34876660d38e265409d8e99b397ab71eb3612fad0" [[package]] name = "serde" -version = "1.0.149" +version = "1.0.152" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "256b9932320c590e707b94576e3cc1f7c9024d0ee6612dfbcf1cb106cbe8e055" +checksum = "bb7d1f0d3021d347a83e556fc4683dea2ea09d87bccdf88ff5c12545d89d5efb" dependencies = [ "serde_derive", ] @@ -8544,9 +8590,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.149" +version = "1.0.152" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4eae9b04cbffdfd550eb462ed33bc6a1b68c935127d008b27444d08380f94e4" +checksum = "af487d118eecd09402d70a5d72551860e788df87b464af30e5ea6a38c75c541e" dependencies = [ "proc-macro2", "quote", @@ -8555,11 +8601,11 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.89" +version = "1.0.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "020ff22c755c2ed3f8cf162dbb41a7268d934702f3ed3631656ea597e08fc3db" +checksum = "cad406b69c91885b5107daf2c29572f6c8cdb3c66826821e286c533490c0bc76" dependencies = [ - "itoa 1.0.4", + "itoa", "ryu", "serde", ] @@ -8577,17 +8623,6 @@ dependencies = [ "opaque-debug 0.3.0", ] -[[package]] -name = "sha1" -version = "0.10.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f04293dc80c3993519f2d7f6f511707ee7094fe0c6d3406feb330cdb3540eba3" -dependencies = [ - "cfg-if", - "cpufeatures", - "digest 0.10.6", -] - [[package]] name = "sha2" version = "0.8.2" @@ -8651,9 +8686,9 @@ checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3" [[package]] name = "signal-hook-registry" -version = "1.4.0" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0" +checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1" dependencies = [ "libc", ] @@ -8682,9 +8717,9 @@ dependencies = [ [[package]] name = "slab" -version = "0.4.7" +version = "0.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4614a76b2a8be0058caa9dbbaf66d988527d86d003c11a94fbd335d7661edcef" +checksum = "6528351c9bc8ab22353f9d776db39a20288e8d6c37ef8cfe3317cf875eecfc2d" dependencies = [ "autocfg", ] @@ -8709,14 +8744,14 @@ checksum = "5e9f0ab6ef7eb7353d9119c170a436d1bf248eea575ac42d19d12f4e34130831" [[package]] name = "snow" -version = "0.9.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "774d05a3edae07ce6d68ea6984f3c05e9bba8927e3dd591e3b479e5b03213d0d" +checksum = "12ba5f4d4ff12bdb6a169ed51b7c48c0e0ac4b0b4b31012b2571e97d78d3201d" dependencies = [ "aes-gcm 0.9.4", "blake2", "chacha20poly1305", - "curve25519-dalek 4.0.0-pre.1", + "curve25519-dalek 4.0.0-rc.0", "rand_core 0.6.4", "ring", "rustc_version 0.4.0", @@ -8754,11 +8789,11 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "hash-db", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sp-api-proc-macro", "sp-core", "sp-runtime", @@ -8772,7 +8807,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "blake2", "proc-macro-crate", @@ -8784,9 +8819,9 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "serde", "sp-core", @@ -8802,7 +8837,7 @@ checksum = "31ef21f82cc10f75ed046b65e2f8048080ee76e59f1b8aed55c7150daebfd35b" dependencies = [ "integer-sqrt", "num-traits", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "serde", "sp-debug-derive 4.0.0", @@ -8813,11 +8848,11 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "integer-sqrt", "num-traits", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "serde", "sp-std 5.0.0", @@ -8827,9 +8862,9 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-api", "sp-application-crypto", @@ -8840,10 +8875,10 @@ dependencies = [ [[package]] name = "sp-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "async-trait", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sp-inherents", "sp-runtime", "sp-std 5.0.0", @@ -8852,9 +8887,9 @@ dependencies = [ [[package]] name = "sp-beefy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "serde", "sp-api", @@ -8869,9 +8904,9 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sp-api", "sp-inherents", "sp-runtime", @@ -8881,12 +8916,12 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "futures", "log", "lru 0.8.1", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parking_lot 0.12.1", "sp-api", "sp-consensus", @@ -8899,12 +8934,12 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "async-trait", "futures", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sp-core", "sp-inherents", "sp-runtime", @@ -8917,10 +8952,10 @@ dependencies = [ [[package]] name = "sp-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "async-trait", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-api", "sp-application-crypto", @@ -8935,11 +8970,11 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "async-trait", "merlin 2.0.1", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "serde", "sp-api", @@ -8958,9 +8993,9 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "serde", "sp-std 5.0.0", @@ -8970,9 +9005,9 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "schnorrkel", "sp-core", @@ -8983,7 +9018,7 @@ dependencies = [ [[package]] name = "sp-core" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "array-bytes", "base58 0.2.0", @@ -8999,7 +9034,7 @@ dependencies = [ "libsecp256k1", "log", "merlin 2.0.1", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parking_lot 0.12.1", "primitive-types", "rand 0.8.5", @@ -9025,7 +9060,7 @@ dependencies = [ [[package]] name = "sp-core-hashing" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "blake2", "byteorder", @@ -9039,7 +9074,7 @@ dependencies = [ [[package]] name = "sp-core-hashing-proc-macro" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "proc-macro2", "quote", @@ -9050,7 +9085,7 @@ dependencies = [ [[package]] name = "sp-database" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "kvdb", "parking_lot 0.12.1", @@ -9070,7 +9105,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "proc-macro2", "quote", @@ -9080,10 +9115,10 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.13.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "environmental", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sp-std 5.0.0", "sp-storage", ] @@ -9091,11 +9126,11 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "finality-grandpa", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "serde", "sp-api", @@ -9109,11 +9144,11 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "async-trait", "impl-trait-for-tuples", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sp-core", "sp-runtime", "sp-std 5.0.0", @@ -9123,7 +9158,7 @@ dependencies = [ [[package]] name = "sp-io" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "bytes", "ed25519", @@ -9131,7 +9166,7 @@ dependencies = [ "futures", "libsecp256k1", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "secp256k1", "sp-core", "sp-externalities", @@ -9148,7 +9183,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "lazy_static", "sp-core", @@ -9159,12 +9194,12 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.13.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "async-trait", "futures", "merlin 2.0.1", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parking_lot 0.12.1", "schnorrkel", "serde", @@ -9176,7 +9211,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.1.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "thiserror", "zstd", @@ -9195,11 +9230,11 @@ dependencies = [ [[package]] name = "sp-mmr-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "ckb-merkle-mountain-range", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "serde", "sp-api", @@ -9213,9 +9248,9 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "serde", "sp-arithmetic 6.0.0", @@ -9227,7 +9262,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "sp-api", "sp-core", @@ -9237,7 +9272,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "backtrace", "lazy_static", @@ -9247,7 +9282,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "rustc-hash", "serde", @@ -9257,13 +9292,13 @@ dependencies = [ [[package]] name = "sp-runtime" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "either", "hash256-std-hasher", "impl-trait-for-tuples", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "paste", "rand 0.8.5", "scale-info", @@ -9279,11 +9314,11 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "bytes", "impl-trait-for-tuples", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "primitive-types", "sp-externalities", "sp-runtime-interface-proc-macro", @@ -9297,7 +9332,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "Inflector", "proc-macro-crate", @@ -9309,9 +9344,9 @@ dependencies = [ [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-api", "sp-core", @@ -9323,9 +9358,9 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-core", "sp-runtime", @@ -9335,11 +9370,11 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.13.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "hash-db", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parking_lot 0.12.1", "rand 0.8.5", "smallvec", @@ -9361,15 +9396,15 @@ checksum = "14804d6069ee7a388240b665f17908d98386ffb0b5d39f89a4099fc7a2a4c03f" [[package]] name = "sp-std" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" [[package]] name = "sp-storage" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "impl-serde", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "ref-cast", "serde", "sp-debug-derive 5.0.0", @@ -9379,12 +9414,12 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "async-trait", "futures-timer", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sp-inherents", "sp-runtime", "sp-std 5.0.0", @@ -9410,7 +9445,7 @@ version = "5.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69a67e555d171c4238bd223393cda747dd20ec7d4f5fe5c042c056cb7fde9eda" dependencies = [ - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sp-std 4.0.0", "tracing", "tracing-core", @@ -9420,9 +9455,9 @@ dependencies = [ [[package]] name = "sp-tracing" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sp-std 5.0.0", "tracing", "tracing-core", @@ -9432,7 +9467,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "sp-api", "sp-runtime", @@ -9441,11 +9476,11 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "async-trait", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "sp-core", "sp-inherents", @@ -9457,7 +9492,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "ahash 0.7.6", "hash-db", @@ -9466,7 +9501,7 @@ dependencies = [ "lru 0.8.1", "memory-db", "nohash-hasher", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parking_lot 0.12.1", "scale-info", "sp-core", @@ -9480,10 +9515,10 @@ dependencies = [ [[package]] name = "sp-version" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "impl-serde", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "parity-wasm", "scale-info", "serde", @@ -9497,9 +9532,9 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "proc-macro2", "quote", "syn", @@ -9508,11 +9543,11 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "impl-trait-for-tuples", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sp-std 5.0.0", "wasmi", "wasmtime", @@ -9521,9 +9556,9 @@ dependencies = [ [[package]] name = "sp-weights" version = "4.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "scale-info", "serde", "smallvec", @@ -9551,9 +9586,9 @@ dependencies = [ [[package]] name = "ss58-registry" -version = "1.36.0" +version = "1.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23d92659e7d18d82b803824a9ba5a6022cff101c3491d027c1c1d8d30e749284" +checksum = "ecf0bd63593ef78eca595a7fc25e9a443ca46fe69fd472f8f09f5245cdcd769d" dependencies = [ "Inflector", "num-format", @@ -9586,7 +9621,7 @@ dependencies = [ "cfg_aliases", "libc", "parking_lot 0.11.2", - "parking_lot_core 0.8.5", + "parking_lot_core 0.8.6", "static_init_macro", "winapi", ] @@ -9680,21 +9715,21 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ - "platforms", + "platforms 2.0.0", ] [[package]] name = "substrate-frame-rpc-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "frame-system-rpc-runtime-api", "futures", "jsonrpsee", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sc-rpc-api", "sc-transaction-pool-api", "sp-api", @@ -9707,8 +9742,22 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +dependencies = [ + "hyper", + "log", + "prometheus", + "thiserror", + "tokio", +] + +[[package]] +name = "substrate-prometheus-endpoint" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b24d8260910a24db2aa827ca3348e7a5e913145ce89a580e065a7055ea599214" dependencies = [ + "futures-util", "hyper", "log", "prometheus", @@ -9719,7 +9768,7 @@ dependencies = [ [[package]] name = "substrate-rpc-client" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "async-trait", "jsonrpsee", @@ -9732,11 +9781,11 @@ dependencies = [ [[package]] name = "substrate-state-trie-migration-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ "jsonrpsee", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sc-client-api", "sc-rpc-api", "scale-info", @@ -9783,9 +9832,9 @@ checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "syn" -version = "1.0.105" +version = "1.0.109" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60b9b43d45702de4c839cb9b51d9f529c5dd26a4aff255b42b1ebc03e88ee908" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" dependencies = [ "proc-macro2", "quote", @@ -9833,9 +9882,9 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "target-lexicon" -version = "0.12.5" +version = "0.12.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9410d0f6853b1d94f0e519fb95df60f29d2c1eff2d921ffdf01a4c8a3b54f12d" +checksum = "8ae9980cab1db3fceee2f6c6f643d5d8de2997c58ee8d25fb0cc8a9e9e7348e5" [[package]] name = "tempfile" @@ -9853,9 +9902,9 @@ dependencies = [ [[package]] name = "termcolor" -version = "1.1.3" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755" +checksum = "be55cf8942feac5c765c2c993422806843c9a9a45d4d5c407ad6dd2ea95eb9b6" dependencies = [ "winapi-util", ] @@ -9890,18 +9939,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.37" +version = "1.0.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10deb33631e3c9018b9baf9dcbbc4f737320d2b576bac10f6aefa048fa407e3e" +checksum = "6a9cd18aa97d5c45c6603caea1da6628790b37f7a34b6ca89522331c5180fed0" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.37" +version = "1.0.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "982d17546b47146b28f7c22e3d08465f6b8903d0ea13c1660d9d84a6e7adcdbb" +checksum = "1fb327af4685e4d03fa8cbcf1716380da910eeb2bb8be417e7f9fd3fb164f36f" dependencies = [ "proc-macro2", "quote", @@ -9936,10 +9985,11 @@ checksum = "3bf63baf9f5039dadc247375c29eb13706706cfde997d0330d05aa63a77d8820" [[package]] name = "thread_local" -version = "1.1.4" +version = "1.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5516c27b78311c50bf42c071425c560ac799b11c30b31f87e3081965fe5e0180" +checksum = "3fdd6f064ccff2d6567adcb3873ca630700f00b5ad3f060c25b5dcfd9a4ce152" dependencies = [ + "cfg-if", "once_cell", ] @@ -9954,12 +10004,11 @@ dependencies = [ [[package]] name = "tikv-jemalloc-sys" -version = "0.5.2+5.3.0-patched" +version = "0.5.3+5.3.0-patched" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec45c14da997d0925c7835883e4d5c181f196fa142f8c19d7643d1e9af2592c3" +checksum = "a678df20055b43e57ef8cddde41cdfda9a3c1a060b67f4c5836dfb1d78543ba8" dependencies = [ "cc", - "fs_extra", "libc", ] @@ -9976,11 +10025,11 @@ dependencies = [ [[package]] name = "time" -version = "0.3.17" +version = "0.3.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a561bf4617eebd33bca6434b988f39ed798e527f51a1e797d0ee4f61c0a38376" +checksum = "53250a3b3fed8ff8fd988587d8925d26a83ac3845d9e03b220b37f34c2b8d6c2" dependencies = [ - "itoa 1.0.4", + "itoa", "serde", "time-core", "time-macros", @@ -9994,9 +10043,9 @@ checksum = "2e153e1f1acaef8acc537e68b44906d2db6436e2b35ac2c6b42640fff91f00fd" [[package]] name = "time-macros" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d967f99f534ca7e495c575c62638eebc2898a8c84c119b89e250477bc4ba16b2" +checksum = "a460aeb8de6dcb0f381e1ee05f1cd56fcf5a5f6eb8187ff3d8f0b11078d38b7c" dependencies = [ "time-core", ] @@ -10050,15 +10099,15 @@ dependencies = [ [[package]] name = "tinyvec_macros" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.23.0" +version = "1.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eab6d665857cc6ca78d6e80303a02cea7a7851e85dfbd77cbdc09bd129f1ef46" +checksum = "c8e00990ebabbe4c14c08aca901caed183ecd5c09562a12c824bb53d3c3fd3af" dependencies = [ "autocfg", "bytes", @@ -10091,16 +10140,16 @@ version = "0.23.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c43ee83903113e03984cb9e5cebe6c04a5116269e900e3ddba8f068a62adda59" dependencies = [ - "rustls 0.20.7", + "rustls 0.20.8", "tokio", "webpki 0.22.0", ] [[package]] name = "tokio-stream" -version = "0.1.11" +version = "0.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d660770404473ccd7bc9f8b28494a811bc18542b915c0855c51e8f419d5223ce" +checksum = "8fb52b74f05dbf495a8fba459fdc331812b96aa086d9eb78101fa0d4569c3313" dependencies = [ "futures-core", "pin-project-lite 0.2.9", @@ -10110,9 +10159,9 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.4" +version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bb2e075f03b3d66d8d8785356224ba688d2906a371015e225beeb65ca92c740" +checksum = "5427d89453009325de0d8f342c9490009f76e999cb7672d77e46267448f7e6b2" dependencies = [ "bytes", "futures-core", @@ -10125,9 +10174,9 @@ dependencies = [ [[package]] name = "toml" -version = "0.5.9" +version = "0.5.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d82e1a7758622a465f8cee077614c73484dac5b836c02ff6a40d5d1010324d7" +checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" dependencies = [ "serde", ] @@ -10331,21 +10380,21 @@ dependencies = [ [[package]] name = "try-lock" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" +checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" [[package]] name = "try-runtime-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#946507ba9ef13e263534176b7b74e26fc56efbd4" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" dependencies = [ - "clap 4.0.29", + "clap 4.1.6", "frame-remote-externalities", "frame-try-runtime", "hex", "log", - "parity-scale-codec 3.2.1", + "parity-scale-codec 3.4.0", "sc-cli", "sc-executor", "sc-service", @@ -10368,9 +10417,9 @@ dependencies = [ [[package]] name = "tt-call" -version = "1.0.8" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e66dcbec4290c69dd03c57e76c2469ea5c7ce109c6dd4351c13055cf71ea055" +checksum = "f4f195fd851901624eee5a58c4bb2b4f06399148fcd0ed336e6f1cb60a9881df" [[package]] name = "turn" @@ -10428,15 +10477,15 @@ dependencies = [ [[package]] name = "unicode-bidi" -version = "0.3.8" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992" +checksum = "d54675592c1dbefd78cbd98db9bacd89886e1ca50692a0692baefffdeb92dd58" [[package]] name = "unicode-ident" -version = "1.0.5" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ceab39d59e4c9499d4e5a8ee0e2735b891bb7308ac83dfb4e80cad195c9f6f3" +checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" [[package]] name = "unicode-normalization" @@ -10449,9 +10498,9 @@ dependencies = [ [[package]] name = "unicode-segmentation" -version = "1.10.0" +version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fdbf052a0783de01e944a6ce7a8cb939e295b1e7be835a1112c3b9a7f047a5a" +checksum = "1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36" [[package]] name = "unicode-width" @@ -10516,9 +10565,9 @@ dependencies = [ [[package]] name = "uuid" -version = "1.2.2" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "422ee0de9031b5b948b97a8fc04e3aa35230001a722ddd27943e0be31564ce4c" +checksum = "1674845326ee10d37ca60470760d4288a6f80f304007d92e5c53bab78c9cfd79" dependencies = [ "getrandom 0.2.8", ] @@ -10603,9 +10652,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.83" +version = "0.2.84" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eaf9f5aceeec8be17c128b2e93e031fb8a4d469bb9c4ae2d7dc1888b26887268" +checksum = "31f8dcbc21f30d9b8f2ea926ecb58f6b91192c17e9d33594b3df58b2007ca53b" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -10613,9 +10662,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.83" +version = "0.2.84" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c8ffb332579b0557b52d268b91feab8df3615f265d5270fec2a8c95b17c1142" +checksum = "95ce90fd5bcc06af55a641a86428ee4229e44e07033963a2290a8e241607ccb9" dependencies = [ "bumpalo", "log", @@ -10628,9 +10677,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.33" +version = "0.4.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23639446165ca5a5de86ae1d8896b737ae80319560fbaa4c2887b7da6e7ebd7d" +checksum = "f219e0d211ba40266969f6dbdd90636da12f75bee4fc9d6c23d1260dadb51454" dependencies = [ "cfg-if", "js-sys", @@ -10640,9 +10689,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.83" +version = "0.2.84" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "052be0f94026e6cbc75cdefc9bae13fd6052cdcaf532fa6c45e7ae33a1e6c810" +checksum = "4c21f77c0bedc37fd5dc21f897894a5ca01e7bb159884559461862ae90c0b4c5" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -10650,9 +10699,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.83" +version = "0.2.84" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07bc0c051dc5f23e307b13285f9d75df86bfdf816c5721e573dec1f9b8aa193c" +checksum = "2aff81306fcac3c7515ad4e177f521b5c9a15f2b08f4e32d823066102f35a5f6" dependencies = [ "proc-macro2", "quote", @@ -10663,9 +10712,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.83" +version = "0.2.84" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c38c045535d93ec4f0b4defec448e4291638ee608530863b1e2ba115d4fff7f" +checksum = "0046fef7e28c3804e5e38bfa31ea2a0f73905319b677e57ebe37e49358989b5d" [[package]] name = "wasm-instrument" @@ -10759,7 +10808,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57d20cb3c59b788653d99541c646c561c9dd26506f25c0cebfe810659c54c6d7" dependencies = [ "downcast-rs", - "libm", + "libm 0.2.6", "memory_units", "num-rational", "num-traits", @@ -10946,9 +10995,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.60" +version = "0.3.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcda906d8be16e728fd5adc5b729afad4e444e106ab28cd1c7256e54fa61510f" +checksum = "e33b99f4b23ba3eec1a53ac264e35a755f00e966e0065077d6027c0f575b0b97" dependencies = [ "js-sys", "wasm-bindgen", @@ -10976,9 +11025,9 @@ dependencies = [ [[package]] name = "webpki-roots" -version = "0.22.5" +version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "368bfe657969fb01238bb756d351dcade285e0f6fcbd36dcb23359a5169975be" +checksum = "b6c71e40d7d2c34a5106301fb632274ca37242cd0c9d3e64dbece371a40a2d87" dependencies = [ "webpki 0.22.0", ] @@ -11009,7 +11058,7 @@ dependencies = [ "sha2 0.10.6", "stun", "thiserror", - "time 0.3.17", + "time 0.3.19", "tokio", "turn", "url", @@ -11082,9 +11131,9 @@ dependencies = [ [[package]] name = "webrtc-ice" -version = "0.9.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "494483fbb2f5492620871fdc78b084aed8807377f6e3fe88b2e49f0a9c9c41d7" +checksum = "465a03cc11e9a7d7b4f9f99870558fe37a102b65b93f8045392fef7c67b39e80" dependencies = [ "arc-swap", "async-trait", @@ -11098,7 +11147,7 @@ dependencies = [ "tokio", "turn", "url", - "uuid 1.2.2", + "uuid 1.3.0", "waitgroup", "webrtc-mdns", "webrtc-util", @@ -11206,9 +11255,9 @@ dependencies = [ [[package]] name = "which" -version = "4.3.0" +version = "4.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c831fbbee9e129a8cf93e7747a82da9d95ba8e16621cae60ec2cdc849bacb7b" +checksum = "2441c784c52b289a054b7201fc93253e288f094e2f4be9058343127c4226a269" dependencies = [ "either", "libc", @@ -11285,19 +11334,43 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" dependencies = [ "windows_aarch64_gnullvm", - "windows_aarch64_msvc 0.42.0", - "windows_i686_gnu 0.42.0", - "windows_i686_msvc 0.42.0", - "windows_x86_64_gnu 0.42.0", + "windows_aarch64_msvc 0.42.1", + "windows_i686_gnu 0.42.1", + "windows_i686_msvc 0.42.1", + "windows_x86_64_gnu 0.42.1", "windows_x86_64_gnullvm", - "windows_x86_64_msvc 0.42.0", + "windows_x86_64_msvc 0.42.1", +] + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-targets" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e2522491fbfcd58cc84d47aeb2958948c4b8982e9a2d8a2a35bbaed431390e7" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc 0.42.1", + "windows_i686_gnu 0.42.1", + "windows_i686_msvc 0.42.1", + "windows_x86_64_gnu 0.42.1", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc 0.42.1", ] [[package]] name = "windows_aarch64_gnullvm" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e" +checksum = "8c9864e83243fdec7fc9c5444389dcbbfd258f745e7853198f365e3c4968a608" [[package]] name = "windows_aarch64_msvc" @@ -11313,9 +11386,9 @@ checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" [[package]] name = "windows_aarch64_msvc" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4" +checksum = "4c8b1b673ffc16c47a9ff48570a9d85e25d265735c503681332589af6253c6c7" [[package]] name = "windows_i686_gnu" @@ -11331,9 +11404,9 @@ checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" [[package]] name = "windows_i686_gnu" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7" +checksum = "de3887528ad530ba7bdbb1faa8275ec7a1155a45ffa57c37993960277145d640" [[package]] name = "windows_i686_msvc" @@ -11349,9 +11422,9 @@ checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" [[package]] name = "windows_i686_msvc" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246" +checksum = "bf4d1122317eddd6ff351aa852118a2418ad4214e6613a50e0191f7004372605" [[package]] name = "windows_x86_64_gnu" @@ -11367,15 +11440,15 @@ checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" [[package]] name = "windows_x86_64_gnu" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed" +checksum = "c1040f221285e17ebccbc2591ffdc2d44ee1f9186324dd3e84e99ac68d699c45" [[package]] name = "windows_x86_64_gnullvm" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028" +checksum = "628bfdf232daa22b0d64fdb62b09fcc36bb01f05a3939e20ab73aaf9470d0463" [[package]] name = "windows_x86_64_msvc" @@ -11391,9 +11464,9 @@ checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" [[package]] name = "windows_x86_64_msvc" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" +checksum = "447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd" [[package]] name = "winreg" @@ -11457,7 +11530,7 @@ dependencies = [ "ring", "rusticata-macros", "thiserror", - "time 0.3.17", + "time 0.3.19", ] [[package]] @@ -11475,7 +11548,7 @@ dependencies = [ "oid-registry 0.6.1", "rusticata-macros", "thiserror", - "time 0.3.17", + "time 0.3.19", ] [[package]] @@ -11498,7 +11571,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aed2e7a52e3744ab4d0c05c20aa065258e84c49fd4226f5191b2ed29712710b4" dependencies = [ - "time 0.3.17", + "time 0.3.19", ] [[package]] @@ -11543,10 +11616,11 @@ dependencies = [ [[package]] name = "zstd-sys" -version = "2.0.4+zstd.1.5.2" +version = "2.0.7+zstd.1.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fa202f2ef00074143e219d15b62ffc317d17cc33909feac471c044087cad7b0" +checksum = "94509c3ba2fe55294d752b79842c530ccfab760192521df74a081a78d2b3c7f5" dependencies = [ "cc", "libc", + "pkg-config", ] diff --git a/Cargo.toml b/Cargo.toml index 141c58279..d58c8dd3b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,16 +25,15 @@ frame-system-rpc-runtime-api = { path = "pallets/system/rpc/runtime-api" } frame-system-benchmarking = { path = "pallets/system/benchmarking" } # Polygon Primitives -da-primitives = { git="https://github.com/maticnetwork/avail-core", version = "0.4.2", tag = "da-primitives/v0.4.3" } -kate = { git="https://github.com/maticnetwork/avail-core", version = "0.6.0", tag = "da-primitives/v0.4.3" } -kate-recovery = { git="https://github.com/maticnetwork/avail-core", version = "0.8.0", tag = "da-primitives/v0.4.3" } - +da-primitives = { version = "0.4", git="https://github.com/maticnetwork/avail-core", tag = "da-primitives/v0.4.4" } +kate = { version = "0.7", git="https://github.com/maticnetwork/avail-core", tag = "da-primitives/v0.4.4" } +kate-recovery = { version = "0.8", git="https://github.com/maticnetwork/avail-core", tag = "da-primitives/v0.4.4" } # Nomad -nomad-signature = { git="https://github.com/maticnetwork/avail-core", version = "0.1.0", tag = "da-primitives/v0.4.3" } -nomad-merkle = { git="https://github.com/maticnetwork/avail-core", version = "0.1.0", tag = "da-primitives/v0.4.3" } -nomad-base = { git="https://github.com/maticnetwork/avail-core", version = "0.1.2", tag = "da-primitives/v0.4.3" } -nomad-core = { git="https://github.com/maticnetwork/avail-core", version = "0.1.2", tag = "da-primitives/v0.4.3" } +nomad-signature = { version = "0.1", git="https://github.com/maticnetwork/avail-core", tag = "da-primitives/v0.4.4" } +nomad-merkle = { version = "0.1", git="https://github.com/maticnetwork/avail-core", tag = "da-primitives/v0.4.4" } +nomad-base = { version = "0.1", git="https://github.com/maticnetwork/avail-core", tag = "da-primitives/v0.4.4" } +nomad-core = { version = "0.1", git="https://github.com/maticnetwork/avail-core", tag = "da-primitives/v0.4.4" } # Other stuff uint = { git = "https://github.com/paritytech/parity-common.git", tag="rlp-v0.5.2" } diff --git a/avail-subxt/Cargo.toml b/avail-subxt/Cargo.toml index 7ba42b504..281c2de78 100644 --- a/avail-subxt/Cargo.toml +++ b/avail-subxt/Cargo.toml @@ -13,11 +13,7 @@ name = "e2e" path = "src/e2e.rs" [dependencies] -subxt = "0.24.0" -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "full", "bit-vec"] } -serde = { version = "1.0", features = ["derive"] } -parity-util-mem = "0.11.0" -scale-info = { version = "2.0.0", features = ["bit-vec"] } +# Other derive_more = "0.99.17" structopt = "0.3.25" anyhow = "1.0.66" @@ -26,20 +22,31 @@ futures = "0.3.25" jsonrpsee = { version ="0.16.2", features = ["client", "async-client", "macros"]} num_enum = "0.5.9" +# Substrate +subxt = "0.27" +sp-core = { version = "16.0.0", default-features = false } +codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "full", "bit-vec"] } +serde = { version = "1.0", features = ["derive"] } +scale-info = { version = "2.0.0", features = ["bit-vec"] } + [dev-dependencies] async-std = { version = "1.12.0", features = ["attributes", "tokio1"] } -sp-keyring = "6.0.0" futures = "0.3.13" hex-literal = "0.3.4" test-case = "1.2.3" log = "0.4.14" pretty_env_logger = "0.4.0" derive_more = "0.99.17" +serde_json = "1.0" + +# Substrate +sp-keyring = "18.0.0" [features] -default = ["api-dev"] +default = ["api-dev", "std"] api-dev = [] api-main = [] +std = [ "sp-core/std"] [workspace] diff --git a/avail-subxt/build_api.sh b/avail-subxt/build_api.sh index f543114aa..09c4bdb72 100755 --- a/avail-subxt/build_api.sh +++ b/avail-subxt/build_api.sh @@ -1,5 +1,5 @@ #!/bin/sh -cargo install --git https://github.com/fmiguelgarcia/subxt --branch cli_derives_for_type_2 +cargo install --git https://github.com/paritytech/subxt --tag v0.27.1 subxt codegen \ --derive Clone \ --derive PartialEq \ diff --git a/avail-subxt/examples/accounts_from_mnemonics.rs b/avail-subxt/examples/accounts_from_mnemonics.rs index 5ea0ec4f3..da9db2d27 100644 --- a/avail-subxt/examples/accounts_from_mnemonics.rs +++ b/avail-subxt/examples/accounts_from_mnemonics.rs @@ -1,11 +1,9 @@ use anyhow::Result; use avail_subxt::{api, build_client, primitives::AvailExtrinsicParams, AvailConfig, Opts}; -use sp_keyring::sr25519::sr25519; +use sp_core::crypto::Pair as _; +use sp_keyring::sr25519::sr25519::{self, Pair}; use structopt::StructOpt; -use subxt::{ - ext::{sp_core::Pair, sp_runtime::MultiAddress}, - tx::PairSigner, -}; +use subxt::{tx::PairSigner, utils::MultiAddress}; /// This example demonstrates using mnemonic seed for generating signer pairs. It creates Alice and Bob /// from seeds, but could also be used for an arbitrary account. diff --git a/avail-subxt/examples/da_bridge_actor.rs b/avail-subxt/examples/da_bridge_actor.rs index a8474dcce..b794de684 100644 --- a/avail-subxt/examples/da_bridge_actor.rs +++ b/avail-subxt/examples/da_bridge_actor.rs @@ -6,11 +6,11 @@ use avail_subxt::{ }, build_client, Opts, }; -use sp_keyring::AccountKeyring; +use sp_keyring::AccountKeyring::Alice; use structopt::StructOpt; use subxt::{ - ext::sp_core::H160, tx::{PairSigner, StaticTxPayload}, + utils::H160, }; const DESTINATION_DOMAIN: u32 = 1000; @@ -27,11 +27,12 @@ async fn main() -> Result<()> { let args = Opts::from_args(); let client = build_client(args.ws).await?; - let signer = PairSigner::new(AccountKeyring::Alice.pair()); - let mut finalized_blocks = client.rpc().subscribe_finalized_blocks().await?; + let signer = PairSigner::new(Alice.pair()); + let mut finalized_headers_subscription = + client.rpc().subscribe_finalized_block_headers().await?; - if let Some(finalized_block) = finalized_blocks.next().await { - let header = finalized_block?; + if let Some(header) = finalized_headers_subscription.next().await { + let header = header?; if let Some(_block_hash) = client.rpc().block_hash(Some(header.number.into())).await? { // 1. Send some data. let block_hash = client diff --git a/avail-subxt/examples/democracy_external.rs b/avail-subxt/examples/democracy_external.rs index 4fd296f24..6d3f550f3 100644 --- a/avail-subxt/examples/democracy_external.rs +++ b/avail-subxt/examples/democracy_external.rs @@ -1,6 +1,6 @@ use std::time::Duration; -use anyhow::{ensure, Result}; +use anyhow::{bail, ensure, Result}; use avail_subxt::{ api::{ self, @@ -16,18 +16,19 @@ use avail_subxt::{ system::events as SystemEvent, technical_committee::events as TechComEvent, }, - avail::{Bounded, Client, TxProgress}, - build_client, tx_asend, tx_send, AvailConfig, Call, Opts, + avail::{Bounded, Client, PairSigner, TxProgress}, + build_client, tx_asend, tx_send, Call, Opts, }; use codec::Encode; use derive_more::Constructor; use futures::stream::{self, StreamExt as _, TryStreamExt as _}; -use sp_keyring::AccountKeyring::{Alice, Bob, Charlie, Dave, Eve, Ferdie}; -use structopt::StructOpt; -use subxt::{ - ext::sp_core::{sr25519::Pair, Pair as _, H256}, - tx::{PairSigner, Signer}, +use sp_core::crypto::Pair as _; +use sp_keyring::{ + sr25519::sr25519::Pair, + AccountKeyring::{Alice, Bob, Charlie, Dave, Eve, Ferdie}, }; +use structopt::StructOpt; +use subxt::utils::H256; #[rustfmt::skip] pub mod constants { @@ -45,11 +46,12 @@ pub struct IndexedProposalContext { #[derive(Debug, Default, Constructor)] pub struct ProposalContext { hash: H256, + #[allow(dead_code)] len: u32, } /// Builds a signer from `seed`. -fn signer_from_seed(seed: &str) -> PairSigner { +fn signer_from_seed(seed: &str) -> PairSigner { let pair = Pair::from_string(&format!("//{}", seed), None).expect("Valid seed .qed"); PairSigner::new(pair) } @@ -102,7 +104,7 @@ mod council { async fn vote_yes( client: &Client, - signer: &(dyn Signer + Send + Sync), + signer: &PairSigner, proposal: &IndexedProposalContext, ) -> Result { let vote = api::tx() @@ -208,7 +210,7 @@ mod techies { async fn vote_yes( client: &Client, - signer: &(dyn Signer + Send + Sync), + signer: &PairSigner, proposal: &IndexedProposalContext, ) -> Result { let vote = api::tx() @@ -278,7 +280,6 @@ mod techies { mod democracy { - use anyhow::anyhow; use async_std::future; use avail_subxt::{ avail::AVL, @@ -305,13 +306,6 @@ mod democracy { Ok(()) } - type EventFilter = ( - SystemEvent::RemarkedByRoot, - DemocracyEvent::Passed, - SchedulerEvent::Scheduled, - SchedulerEvent::Dispatched, - ); - pub async fn wait_passed_and_dispatch_or_timeout( client: &Client, referendum: u32, @@ -326,49 +320,32 @@ mod democracy { } pub async fn wait_passed_and_dispatch(client: &Client, referendum: u32) -> Result<()> { - let mut events = client - .events() - .subscribe() - .await? - .filter_events::(); - - loop { - let event = events - .next() - .await - .ok_or(anyhow!("Empty filtered event"))?? - .event; - match event { - (Some(SystemEvent::RemarkedByRoot { hash }), ..) => { - log::info!("Remarked by Root with hash {}", hash); + let mut block_sub = client.blocks().subscribe_finalized().await?; + + while let Some(block) = block_sub.next().await { + let events = block?.events().await?; + + for event in events.iter() { + let event = event?; + + if let Some(event) = event.as_event::()? { + log::info!("Remarked by Root with hash {}", event.hash); return Ok(()); - }, - (None, Some(DemocracyEvent::Passed { ref_index }), ..) => { - log::trace!("Democracy Referendum {} passed", ref_index) - }, - (None, None, Some(SchedulerEvent::Scheduled { when, index }), ..) => { - log::trace!("Referendum {} was scheduled on {}", index, when) - }, - ( - None, - None, - None, - Some(SchedulerEvent::Dispatched { - task, - id: _, - result, - }), - ) => { + } else if let Some(event) = event.as_event::()? { + log::trace!("Democracy Referendum {} passed", event.ref_index); + } else if let Some(event) = event.as_event::()? { + log::trace!("Referendum {} was scheduled on {}", event.index, event.when); + } else if let Some(event) = event.as_event::()? { log::trace!( - "Referendum {} was dispatched at {}: {:?}", - referendum, - task.0, - result - ) - }, - _ => {}, + "Referendum {referendum} was dispatched at {}: {:?}", + event.task.0, + event.result + ); + } } } + + bail!("Block subscription fails") } } diff --git a/avail-subxt/examples/headers.rs b/avail-subxt/examples/headers.rs index b4ef1af4f..ecd18500a 100644 --- a/avail-subxt/examples/headers.rs +++ b/avail-subxt/examples/headers.rs @@ -2,7 +2,7 @@ use anyhow::Result; use avail_subxt::{build_client, Opts}; use futures::future::{join_all, TryFutureExt}; use structopt::StructOpt; -use subxt::{ext::sp_runtime::traits::Header as XtHeader, rpc::BlockNumber}; +use subxt::{config::Header as XtHeader, rpc::types::BlockNumber}; /// This example gets all the headers from testnet. It requests them in concurrently in batches of BATCH_NUM. /// Fetching headers one by one is too slow for a large number of blocks. diff --git a/avail-subxt/examples/submit_data.rs b/avail-subxt/examples/submit_data.rs index 337f5884f..b58b6fb15 100644 --- a/avail-subxt/examples/submit_data.rs +++ b/avail-subxt/examples/submit_data.rs @@ -6,6 +6,7 @@ use avail_subxt::{ da_control::pallet::Call as DaCall, sp_core::bounded::bounded_vec::BoundedVec, }, }, + avail::AppUncheckedExtrinsic, build_client, primitives::AvailExtrinsicParams, Call, Opts, @@ -42,7 +43,12 @@ async fn main() -> Result<()> { .block .extrinsics .into_iter() - .find(|ext| match &ext.function { + .filter_map(|chain_block_ext| { + AppUncheckedExtrinsic::try_from(chain_block_ext) + .map(|ext| ext.function) + .ok() + }) + .find(|call| match call { Call::DataAvailability(da_call) => match da_call { DaCall::submit_data { data } => data.0 == example_data, _ => false, diff --git a/avail-subxt/examples/submit_data_and_dispatch_data_root.rs b/avail-subxt/examples/submit_data_and_dispatch_data_root.rs index a3a6e17f2..fe08a193c 100644 --- a/avail-subxt/examples/submit_data_and_dispatch_data_root.rs +++ b/avail-subxt/examples/submit_data_and_dispatch_data_root.rs @@ -7,7 +7,7 @@ use avail_subxt::{ }; use sp_keyring::AccountKeyring; use structopt::StructOpt; -use subxt::{ext::sp_core::H160, tx::PairSigner}; +use subxt::{tx::PairSigner, utils::H160}; const DESTINATION_DOMAIN: u32 = 1000; const DA_BRIDGE_ROUTER_ADDRESS: &str = "0x3f28a3e66326c3aa494d4f8e9477d1397ee94432"; diff --git a/avail-subxt/src/api_dev.rs b/avail-subxt/src/api_dev.rs index f8ab120b2..088af408b 100644 --- a/avail-subxt/src/api_dev.rs +++ b/avail-subxt/src/api_dev.rs @@ -1,5 +1,6 @@ #[allow(clippy::all)] #[allow(dead_code, unused_imports, non_camel_case_types)] +#[allow(clippy::all)] pub mod api { use super::api as root_mod; pub static PALLETS: [&str; 35usize] = [ @@ -429,7 +430,7 @@ pub mod api { )] #[doc = "A new account was created."] pub struct NewAccount { - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for NewAccount { const EVENT: &'static str = "NewAccount"; @@ -445,7 +446,7 @@ pub mod api { )] #[doc = "An account was reaped."] pub struct KilledAccount { - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for KilledAccount { const EVENT: &'static str = "KilledAccount"; @@ -461,8 +462,8 @@ pub mod api { )] #[doc = "On on-chain remark happened."] pub struct Remarked { - pub sender: ::subxt::ext::sp_core::crypto::AccountId32, - pub hash: ::subxt::ext::sp_core::H256, + pub sender: ::subxt::utils::AccountId32, + pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Remarked { const EVENT: &'static str = "Remarked"; @@ -478,7 +479,7 @@ pub mod api { )] #[doc = "On on-chain remark happend called by Root."] pub struct RemarkedByRoot { - pub hash: ::subxt::ext::sp_core::H256, + pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for RemarkedByRoot { const EVENT: &'static str = "RemarkedByRoot"; @@ -492,7 +493,7 @@ pub mod api { #[doc = " The full account information for a particular account ID."] pub fn account( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::frame_system::AccountInfo< @@ -619,7 +620,7 @@ pub mod api { &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::H256>, + ::subxt::metadata::DecodeStaticType<::subxt::utils::H256>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -643,7 +644,7 @@ pub mod api { pub fn block_hash_root( &self, ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::H256>, + ::subxt::metadata::DecodeStaticType<::subxt::utils::H256>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -738,7 +739,7 @@ pub mod api { pub fn parent_hash( &self, ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::H256>, + ::subxt::metadata::DecodeStaticType<::subxt::utils::H256>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -793,7 +794,7 @@ pub mod api { ::std::vec::Vec< runtime_types::frame_system::EventRecord< runtime_types::da_runtime::RuntimeEvent, - ::subxt::ext::sp_core::H256, + ::subxt::utils::H256, >, >, >, @@ -847,7 +848,7 @@ pub mod api { #[doc = " no notification will be triggered thus the event might be lost."] pub fn event_topics( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::H256>, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, @@ -2298,8 +2299,8 @@ pub mod api { runtime_types::sp_core::bounded::bounded_vec::BoundedVec< runtime_types::pallet_authorship::UncleEntryItem< ::core::primitive::u32, - ::subxt::ext::sp_core::H256, - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::H256, + ::subxt::utils::AccountId32, >, >, >, @@ -2324,7 +2325,7 @@ pub mod api { pub fn author( &self, ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + ::subxt::metadata::DecodeStaticType<::subxt::utils::AccountId32>, ::subxt::storage::address::Yes, (), (), @@ -2417,8 +2418,8 @@ pub mod api { PartialEq, )] pub struct Transfer { - pub new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, pub index: ::core::primitive::u32, @@ -2444,8 +2445,8 @@ pub mod api { PartialEq, )] pub struct ForceTransfer { - pub new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, pub index: ::core::primitive::u32, @@ -2516,8 +2517,8 @@ pub mod api { #[doc = "# "] pub fn transfer( &self, - new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, index: ::core::primitive::u32, @@ -2586,8 +2587,8 @@ pub mod api { #[doc = "# "] pub fn force_transfer( &self, - new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, index: ::core::primitive::u32, @@ -2650,7 +2651,7 @@ pub mod api { )] #[doc = "A account index was assigned."] pub struct IndexAssigned { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::AccountId32, pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for IndexAssigned { @@ -2685,7 +2686,7 @@ pub mod api { #[doc = "A account index has been frozen to its current account ID."] pub struct IndexFrozen { pub index: ::core::primitive::u32, - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for IndexFrozen { const EVENT: &'static str = "IndexFrozen"; @@ -2702,7 +2703,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType<( - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, ::core::primitive::bool, )>, @@ -2731,7 +2732,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType<( - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, ::core::primitive::bool, )>, @@ -2787,8 +2788,8 @@ pub mod api { PartialEq, )] pub struct Transfer { - pub dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] @@ -2803,8 +2804,8 @@ pub mod api { PartialEq, )] pub struct SetBalance { - pub who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] @@ -2821,12 +2822,12 @@ pub mod api { PartialEq, )] pub struct ForceTransfer { - pub source: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, - pub dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] @@ -2841,8 +2842,8 @@ pub mod api { PartialEq, )] pub struct TransferKeepAlive { - pub dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] @@ -2857,8 +2858,8 @@ pub mod api { PartialEq, )] pub struct TransferAll { - pub dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, pub keep_alive: ::core::primitive::bool, @@ -2872,8 +2873,8 @@ pub mod api { PartialEq, )] pub struct ForceUnreserve { - pub who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, pub amount: ::core::primitive::u128, @@ -2907,8 +2908,8 @@ pub mod api { #[doc = "# "] pub fn transfer( &self, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, value: ::core::primitive::u128, @@ -2936,8 +2937,8 @@ pub mod api { #[doc = "The dispatch origin for this call is `root`."] pub fn set_balance( &self, - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, new_free: ::core::primitive::u128, @@ -2968,12 +2969,12 @@ pub mod api { #[doc = "# "] pub fn force_transfer( &self, - source: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, value: ::core::primitive::u128, @@ -3002,8 +3003,8 @@ pub mod api { #[doc = "[`transfer`]: struct.Pallet.html#method.transfer"] pub fn transfer_keep_alive( &self, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, value: ::core::primitive::u128, @@ -3039,8 +3040,8 @@ pub mod api { #[doc = " #"] pub fn transfer_all( &self, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, keep_alive: ::core::primitive::bool, @@ -3063,8 +3064,8 @@ pub mod api { #[doc = "Can only be called by ROOT."] pub fn force_unreserve( &self, - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, amount: ::core::primitive::u128, @@ -3097,7 +3098,7 @@ pub mod api { )] #[doc = "An account was created with some free balance."] pub struct Endowed { - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::AccountId32, pub free_balance: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Endowed { @@ -3115,7 +3116,7 @@ pub mod api { #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] #[doc = "resulting in an outright loss."] pub struct DustLost { - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for DustLost { @@ -3132,8 +3133,8 @@ pub mod api { )] #[doc = "Transfer succeeded."] pub struct Transfer { - pub from: ::subxt::ext::sp_core::crypto::AccountId32, - pub to: ::subxt::ext::sp_core::crypto::AccountId32, + pub from: ::subxt::utils::AccountId32, + pub to: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Transfer { @@ -3150,7 +3151,7 @@ pub mod api { )] #[doc = "A balance was set by root."] pub struct BalanceSet { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::AccountId32, pub free: ::core::primitive::u128, pub reserved: ::core::primitive::u128, } @@ -3168,7 +3169,7 @@ pub mod api { )] #[doc = "Some balance was reserved (moved from free to reserved)."] pub struct Reserved { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Reserved { @@ -3185,7 +3186,7 @@ pub mod api { )] #[doc = "Some balance was unreserved (moved from reserved to free)."] pub struct Unreserved { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Unreserved { @@ -3203,8 +3204,8 @@ pub mod api { #[doc = "Some balance was moved from the reserve of the first account to the second account."] #[doc = "Final argument indicates the destination balance type."] pub struct ReserveRepatriated { - pub from: ::subxt::ext::sp_core::crypto::AccountId32, - pub to: ::subxt::ext::sp_core::crypto::AccountId32, + pub from: ::subxt::utils::AccountId32, + pub to: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, pub destination_status: runtime_types::frame_support::traits::tokens::misc::BalanceStatus, @@ -3223,7 +3224,7 @@ pub mod api { )] #[doc = "Some amount was deposited (e.g. for transaction fees)."] pub struct Deposit { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Deposit { @@ -3240,7 +3241,7 @@ pub mod api { )] #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] pub struct Withdraw { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Withdraw { @@ -3257,7 +3258,7 @@ pub mod api { )] #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] pub struct Slashed { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Slashed { @@ -3338,7 +3339,7 @@ pub mod api { #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] pub fn account( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_balances::AccountData<::core::primitive::u128>, @@ -3412,7 +3413,7 @@ pub mod api { #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::sp_core::bounded::weak_bounded_vec::WeakBoundedVec< @@ -3467,7 +3468,7 @@ pub mod api { #[doc = " Named reserves on some account balances."] pub fn reserves( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::sp_core::bounded::bounded_vec::BoundedVec< @@ -3592,7 +3593,7 @@ pub mod api { #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] #[doc = "has been paid by `who`."] pub struct TransactionFeePaid { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::AccountId32, pub actual_fee: ::core::primitive::u128, pub tip: ::core::primitive::u128, } @@ -3740,10 +3741,8 @@ pub mod api { )] pub struct SetEmergencyElectionResult { pub supports: ::std::vec::Vec<( - ::subxt::ext::sp_core::crypto::AccountId32, - runtime_types::sp_npos_elections::Support< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + ::subxt::utils::AccountId32, + runtime_types::sp_npos_elections::Support<::subxt::utils::AccountId32>, )>, } #[derive( @@ -3845,10 +3844,8 @@ pub mod api { pub fn set_emergency_election_result( &self, supports: ::std::vec::Vec<( - ::subxt::ext::sp_core::crypto::AccountId32, - runtime_types::sp_npos_elections::Support< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + ::subxt::utils::AccountId32, + runtime_types::sp_npos_elections::Support<::subxt::utils::AccountId32>, )>, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new( @@ -3939,7 +3936,7 @@ pub mod api { #[doc = "room for this one."] pub struct SolutionStored { pub compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute, - pub origin: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, + pub origin: ::core::option::Option<::subxt::utils::AccountId32>, pub prev_ejected: ::core::primitive::bool, } impl ::subxt::events::StaticEvent for SolutionStored { @@ -3989,7 +3986,7 @@ pub mod api { )] #[doc = "An account has been rewarded for their signed submission being finalized."] pub struct Rewarded { - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::AccountId32, pub value: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Rewarded { @@ -4006,7 +4003,7 @@ pub mod api { )] #[doc = "An account has been slashed for submitting an invalid signed submission."] pub struct Slashed { - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::AccountId32, pub value: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Slashed { @@ -4257,7 +4254,7 @@ pub mod api { #[doc = " allowing us to keep only a single one in memory at a time."] #[doc = ""] #[doc = " Twox note: the key of the map is an auto-incrementing index which users cannot inspect or"] - #[doc = " affect; we shouldn't need a cryptographically secure hasher."] pub fn signed_submissions_map (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: ext :: sp_core :: crypto :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: da_runtime :: NposSolution16 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ + #[doc = " affect; we shouldn't need a cryptographically secure hasher."] pub fn signed_submissions_map (& self , _0 : impl :: std :: borrow :: Borrow < :: core :: primitive :: u32 > ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: da_runtime :: NposSolution16 > > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ ::subxt::storage::address::StaticStorageAddress::new( "ElectionProviderMultiPhase", "SignedSubmissionsMap", @@ -4280,7 +4277,7 @@ pub mod api { #[doc = " allowing us to keep only a single one in memory at a time."] #[doc = ""] #[doc = " Twox note: the key of the map is an auto-incrementing index which users cannot inspect or"] - #[doc = " affect; we shouldn't need a cryptographically secure hasher."] pub fn signed_submissions_map_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: ext :: sp_core :: crypto :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: da_runtime :: NposSolution16 > > , () , () , :: subxt :: storage :: address :: Yes >{ + #[doc = " affect; we shouldn't need a cryptographically secure hasher."] pub fn signed_submissions_map_root (& self ,) -> :: subxt :: storage :: address :: StaticStorageAddress :: < :: subxt :: metadata :: DecodeStaticType < runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: da_runtime :: NposSolution16 > > , () , () , :: subxt :: storage :: address :: Yes >{ ::subxt::storage::address::StaticStorageAddress::new( "ElectionProviderMultiPhase", "SignedSubmissionsMap", @@ -4702,15 +4699,14 @@ pub mod api { PartialEq, )] pub struct Bond { - pub controller: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub controller: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] pub value: ::core::primitive::u128, - pub payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + pub payee: + runtime_types::pallet_staking::RewardDestination<::subxt::utils::AccountId32>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4769,8 +4765,8 @@ pub mod api { )] pub struct Nominate { pub targets: ::std::vec::Vec< - ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, >, @@ -4793,9 +4789,8 @@ pub mod api { PartialEq, )] pub struct SetPayee { - pub payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + pub payee: + runtime_types::pallet_staking::RewardDestination<::subxt::utils::AccountId32>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4806,8 +4801,8 @@ pub mod api { PartialEq, )] pub struct SetController { - pub controller: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub controller: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, } @@ -4873,7 +4868,7 @@ pub mod api { PartialEq, )] pub struct SetInvulnerables { - pub invulnerables: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4884,7 +4879,7 @@ pub mod api { PartialEq, )] pub struct ForceUnstake { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::AccountId32, pub num_slashing_spans: ::core::primitive::u32, } #[derive( @@ -4917,7 +4912,7 @@ pub mod api { PartialEq, )] pub struct PayoutStakers { - pub validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub validator_stash: ::subxt::utils::AccountId32, pub era: ::core::primitive::u32, } #[derive( @@ -4941,7 +4936,7 @@ pub mod api { PartialEq, )] pub struct ReapStash { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::AccountId32, pub num_slashing_spans: ::core::primitive::u32, } #[derive( @@ -4954,8 +4949,8 @@ pub mod api { )] pub struct Kick { pub who: ::std::vec::Vec< - ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, >, @@ -4995,7 +4990,7 @@ pub mod api { PartialEq, )] pub struct ChillOther { - pub controller: ::subxt::ext::sp_core::crypto::AccountId32, + pub controller: ::subxt::utils::AccountId32, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5006,7 +5001,7 @@ pub mod api { PartialEq, )] pub struct ForceApplyMinCommission { - pub validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub validator_stash: ::subxt::utils::AccountId32, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5040,13 +5035,13 @@ pub mod api { #[doc = "# "] pub fn bond( &self, - controller: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + controller: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, value: ::core::primitive::u128, payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new( @@ -5188,8 +5183,8 @@ pub mod api { pub fn nominate( &self, targets: ::std::vec::Vec< - ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, >, @@ -5244,7 +5239,7 @@ pub mod api { pub fn set_payee( &self, payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new("Staking", "set_payee", SetPayee { payee }, [ @@ -5272,8 +5267,8 @@ pub mod api { #[doc = "# "] pub fn set_controller( &self, - controller: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + controller: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, ) -> ::subxt::tx::StaticTxPayload { @@ -5414,7 +5409,7 @@ pub mod api { #[doc = "The dispatch origin must be Root."] pub fn set_invulnerables( &self, - invulnerables: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new( "Staking", @@ -5433,7 +5428,7 @@ pub mod api { #[doc = "The dispatch origin must be Root."] pub fn force_unstake( &self, - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: ::subxt::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new( @@ -5523,7 +5518,7 @@ pub mod api { #[doc = "# "] pub fn payout_stakers( &self, - validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + validator_stash: ::subxt::utils::AccountId32, era: ::core::primitive::u32, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new( @@ -5575,7 +5570,7 @@ pub mod api { #[doc = "Refunds the transaction fees upon successful execution."] pub fn reap_stash( &self, - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: ::subxt::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new( @@ -5608,8 +5603,8 @@ pub mod api { pub fn kick( &self, who: ::std::vec::Vec< - ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, >, @@ -5706,7 +5701,7 @@ pub mod api { #[doc = "who do not satisfy these requirements."] pub fn chill_other( &self, - controller: ::subxt::ext::sp_core::crypto::AccountId32, + controller: ::subxt::utils::AccountId32, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new( "Staking", @@ -5725,7 +5720,7 @@ pub mod api { #[doc = "can call this."] pub fn force_apply_min_commission( &self, - validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + validator_stash: ::subxt::utils::AccountId32, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new( "Staking", @@ -5795,7 +5790,7 @@ pub mod api { )] #[doc = "The nominator has been rewarded by this amount."] pub struct Rewarded { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Rewarded { @@ -5812,7 +5807,7 @@ pub mod api { )] #[doc = "A staker (validator or nominator) has been slashed by the given amount."] pub struct Slashed { - pub staker: ::subxt::ext::sp_core::crypto::AccountId32, + pub staker: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Slashed { @@ -5830,7 +5825,7 @@ pub mod api { #[doc = "A slash for the given validator, for the given percentage of their stake, at the given"] #[doc = "era as been reported."] pub struct SlashReported { - pub validator: ::subxt::ext::sp_core::crypto::AccountId32, + pub validator: ::subxt::utils::AccountId32, pub fraction: runtime_types::sp_arithmetic::per_things::Perbill, pub slash_era: ::core::primitive::u32, } @@ -5883,7 +5878,7 @@ pub mod api { #[doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] #[doc = "it will not be emitted for staking rewards when they are added to stake."] pub struct Bonded { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Bonded { @@ -5900,7 +5895,7 @@ pub mod api { )] #[doc = "An account has unbonded this amount."] pub struct Unbonded { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Unbonded { @@ -5918,7 +5913,7 @@ pub mod api { #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] #[doc = "from the unlocking queue."] pub struct Withdrawn { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Withdrawn { @@ -5935,8 +5930,8 @@ pub mod api { )] #[doc = "A nominator has been kicked from a validator."] pub struct Kicked { - pub nominator: ::subxt::ext::sp_core::crypto::AccountId32, - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub nominator: ::subxt::utils::AccountId32, + pub stash: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Kicked { const EVENT: &'static str = "Kicked"; @@ -5966,7 +5961,7 @@ pub mod api { )] #[doc = "An account has stopped participating as either a validator or nominator."] pub struct Chilled { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Chilled { const EVENT: &'static str = "Chilled"; @@ -5983,7 +5978,7 @@ pub mod api { #[doc = "The stakers' rewards are getting paid."] pub struct PayoutStarted { pub era_index: ::core::primitive::u32, - pub validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub validator_stash: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for PayoutStarted { const EVENT: &'static str = "PayoutStarted"; @@ -5999,7 +5994,7 @@ pub mod api { )] #[doc = "A validator has set their preferences."] pub struct ValidatorPrefsSet { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::AccountId32, pub prefs: runtime_types::pallet_staking::ValidatorPrefs, } impl ::subxt::events::StaticEvent for ValidatorPrefsSet { @@ -6076,7 +6071,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ::std::vec::Vec<::subxt::utils::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -6099,9 +6094,9 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn bonded( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + ::subxt::metadata::DecodeStaticType<::subxt::utils::AccountId32>, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, @@ -6127,7 +6122,7 @@ pub mod api { pub fn bonded_root( &self, ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + ::subxt::metadata::DecodeStaticType<::subxt::utils::AccountId32>, (), (), ::subxt::storage::address::Yes, @@ -6235,7 +6230,7 @@ pub mod api { #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] pub fn ledger( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_staking::StakingLedger, @@ -6289,11 +6284,11 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn payee( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, >, ::subxt::storage::address::Yes, @@ -6324,7 +6319,7 @@ pub mod api { ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, >, (), @@ -6349,7 +6344,7 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn validators( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_staking::ValidatorPrefs, @@ -6464,7 +6459,7 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn nominators( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType, ::subxt::storage::address::Yes, @@ -6684,11 +6679,11 @@ pub mod api { pub fn eras_stakers( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_staking::Exposure< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, >, >, @@ -6728,7 +6723,7 @@ pub mod api { ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_staking::Exposure< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, >, >, @@ -6762,11 +6757,11 @@ pub mod api { pub fn eras_stakers_clipped( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_staking::Exposure< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, >, >, @@ -6812,7 +6807,7 @@ pub mod api { ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_staking::Exposure< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, >, >, @@ -6841,7 +6836,7 @@ pub mod api { pub fn eras_validator_prefs( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_staking::ValidatorPrefs, @@ -6957,9 +6952,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::EraRewardPoints< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + runtime_types::pallet_staking::EraRewardPoints<::subxt::utils::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -6986,9 +6979,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::EraRewardPoints< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + runtime_types::pallet_staking::EraRewardPoints<::subxt::utils::AccountId32>, >, (), ::subxt::storage::address::Yes, @@ -7131,7 +7122,7 @@ pub mod api { ::subxt::metadata::DecodeStaticType< ::std::vec::Vec< runtime_types::pallet_staking::UnappliedSlash< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, >, >, @@ -7162,7 +7153,7 @@ pub mod api { ::subxt::metadata::DecodeStaticType< ::std::vec::Vec< runtime_types::pallet_staking::UnappliedSlash< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, >, >, @@ -7215,7 +7206,7 @@ pub mod api { pub fn validator_slash_in_era( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType<( runtime_types::sp_arithmetic::per_things::Perbill, @@ -7277,7 +7268,7 @@ pub mod api { pub fn nominator_slash_in_era( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, ::subxt::storage::address::Yes, @@ -7329,7 +7320,7 @@ pub mod api { #[doc = " Slashing spans for stash accounts."] pub fn slashing_spans( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_staking::slashing::SlashingSpans, @@ -7380,7 +7371,7 @@ pub mod api { #[doc = " as well as how much reward has been paid out."] pub fn span_slash( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< @@ -7778,7 +7769,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ::std::vec::Vec<::subxt::utils::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -7848,7 +7839,7 @@ pub mod api { ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< ::std::vec::Vec<( - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, runtime_types::da_runtime::SessionKeys, )>, >, @@ -7897,7 +7888,7 @@ pub mod api { #[doc = " The next session keys for a validator."] pub fn next_keys( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType, ::subxt::storage::address::Yes, @@ -7948,7 +7939,7 @@ pub mod api { _0: impl ::std::borrow::Borrow, _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + ::subxt::metadata::DecodeStaticType<::subxt::utils::AccountId32>, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, @@ -7972,7 +7963,7 @@ pub mod api { pub fn key_owner_root( &self, ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + ::subxt::metadata::DecodeStaticType<::subxt::utils::AccountId32>, (), (), ::subxt::storage::address::Yes, @@ -8098,7 +8089,7 @@ pub mod api { PartialEq, )] pub struct FastTrack { - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, pub voting_period: ::core::primitive::u32, pub delay: ::core::primitive::u32, } @@ -8111,7 +8102,7 @@ pub mod api { PartialEq, )] pub struct VetoExternal { - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -8134,8 +8125,8 @@ pub mod api { PartialEq, )] pub struct Delegate { - pub to: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub to: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, pub conviction: runtime_types::pallet_democracy::conviction::Conviction, @@ -8168,8 +8159,8 @@ pub mod api { PartialEq, )] pub struct Unlock { - pub target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, } @@ -8194,8 +8185,8 @@ pub mod api { PartialEq, )] pub struct RemoveOtherVote { - pub target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, pub index: ::core::primitive::u32, @@ -8209,7 +8200,7 @@ pub mod api { PartialEq, )] pub struct Blacklist { - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, pub maybe_ref_index: ::core::option::Option<::core::primitive::u32>, } #[derive( @@ -8423,7 +8414,7 @@ pub mod api { #[doc = "Weight: `O(1)`"] pub fn fast_track( &self, - proposal_hash: ::subxt::ext::sp_core::H256, + proposal_hash: ::subxt::utils::H256, voting_period: ::core::primitive::u32, delay: ::core::primitive::u32, ) -> ::subxt::tx::StaticTxPayload { @@ -8454,7 +8445,7 @@ pub mod api { #[doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] pub fn veto_external( &self, - proposal_hash: ::subxt::ext::sp_core::H256, + proposal_hash: ::subxt::utils::H256, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new( "Democracy", @@ -8515,8 +8506,8 @@ pub mod api { #[doc = " voted on. Weight is charged as if maximum votes."] pub fn delegate( &self, - to: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + to: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, conviction: runtime_types::pallet_democracy::conviction::Conviction, @@ -8588,8 +8579,8 @@ pub mod api { #[doc = "Weight: `O(R)` with R number of vote of target."] pub fn unlock( &self, - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, ) -> ::subxt::tx::StaticTxPayload { @@ -8661,8 +8652,8 @@ pub mod api { #[doc = " Weight is calculated for the maximum number of vote."] pub fn remove_other_vote( &self, - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, index: ::core::primitive::u32, @@ -8696,7 +8687,7 @@ pub mod api { #[doc = " reasonable value)."] pub fn blacklist( &self, - proposal_hash: ::subxt::ext::sp_core::H256, + proposal_hash: ::subxt::utils::H256, maybe_ref_index: ::core::option::Option<::core::primitive::u32>, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new( @@ -8870,8 +8861,8 @@ pub mod api { )] #[doc = "An account has delegated their vote to another account."] pub struct Delegated { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, - pub target: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::AccountId32, + pub target: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Delegated { const EVENT: &'static str = "Delegated"; @@ -8887,7 +8878,7 @@ pub mod api { )] #[doc = "An account has cancelled a previous delegation operation."] pub struct Undelegated { - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Undelegated { const EVENT: &'static str = "Undelegated"; @@ -8903,8 +8894,8 @@ pub mod api { )] #[doc = "An external proposal has been vetoed."] pub struct Vetoed { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub who: ::subxt::utils::AccountId32, + pub proposal_hash: ::subxt::utils::H256, pub until: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Vetoed { @@ -8921,7 +8912,7 @@ pub mod api { )] #[doc = "A proposal_hash has been blacklisted permanently."] pub struct Blacklisted { - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Blacklisted { const EVENT: &'static str = "Blacklisted"; @@ -8937,7 +8928,7 @@ pub mod api { )] #[doc = "An account has voted in a referendum"] pub struct Voted { - pub voter: ::subxt::ext::sp_core::crypto::AccountId32, + pub voter: ::subxt::utils::AccountId32, pub ref_index: ::core::primitive::u32, pub vote: runtime_types::pallet_democracy::vote::AccountVote<::core::primitive::u128>, @@ -8956,7 +8947,7 @@ pub mod api { )] #[doc = "An account has secconded a proposal"] pub struct Seconded { - pub seconder: ::subxt::ext::sp_core::crypto::AccountId32, + pub seconder: ::subxt::utils::AccountId32, pub prop_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Seconded { @@ -9017,7 +9008,7 @@ pub mod api { runtime_types::frame_support::traits::preimages::Bounded< runtime_types::da_runtime::RuntimeCall, >, - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, )>, >, ::subxt::storage::address::Yes, @@ -9046,7 +9037,7 @@ pub mod api { ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType<( runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, ::core::primitive::u128, )>, @@ -9077,7 +9068,7 @@ pub mod api { ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType<( runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, ::core::primitive::u128, )>, @@ -9215,12 +9206,12 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway."] pub fn voting_of( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_democracy::vote::Voting< ::core::primitive::u128, - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u32, >, >, @@ -9253,7 +9244,7 @@ pub mod api { ::subxt::metadata::DecodeStaticType< runtime_types::pallet_democracy::vote::Voting< ::core::primitive::u128, - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u32, >, >, @@ -9329,12 +9320,12 @@ pub mod api { #[doc = " (until when it may not be resubmitted) and who vetoed it."] pub fn blacklist( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::H256>, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType<( ::core::primitive::u32, runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, )>, ::subxt::storage::address::Yes, @@ -9365,7 +9356,7 @@ pub mod api { ::subxt::metadata::DecodeStaticType<( ::core::primitive::u32, runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, )>, (), @@ -9388,7 +9379,7 @@ pub mod api { #[doc = " Record of all proposals that have been subject to emergency cancellation."] pub fn cancellations( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::H256>, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType<::core::primitive::bool>, ::subxt::storage::address::Yes, @@ -9638,8 +9629,8 @@ pub mod api { PartialEq, )] pub struct SetMembers { - pub new_members: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, - pub prime: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, + pub new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub prime: ::core::option::Option<::subxt::utils::AccountId32>, pub old_count: ::core::primitive::u32, } #[derive( @@ -9679,7 +9670,7 @@ pub mod api { PartialEq, )] pub struct Vote { - pub proposal: ::subxt::ext::sp_core::H256, + pub proposal: ::subxt::utils::H256, #[codec(compact)] pub index: ::core::primitive::u32, pub approve: ::core::primitive::bool, @@ -9693,7 +9684,7 @@ pub mod api { PartialEq, )] pub struct CloseOldWeight { - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, #[codec(compact)] pub index: ::core::primitive::u32, #[codec(compact)] @@ -9710,7 +9701,7 @@ pub mod api { PartialEq, )] pub struct DisapproveProposal { - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9721,7 +9712,7 @@ pub mod api { PartialEq, )] pub struct Close { - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, #[codec(compact)] pub index: ::core::primitive::u32, pub proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, @@ -9764,8 +9755,8 @@ pub mod api { #[doc = "# "] pub fn set_members( &self, - new_members: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, - prime: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, + new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, + prime: ::core::option::Option<::subxt::utils::AccountId32>, old_count: ::core::primitive::u32, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new( @@ -9882,7 +9873,7 @@ pub mod api { #[doc = "# "] pub fn vote( &self, - proposal: ::subxt::ext::sp_core::H256, + proposal: ::subxt::utils::H256, index: ::core::primitive::u32, approve: ::core::primitive::bool, ) -> ::subxt::tx::StaticTxPayload { @@ -9936,7 +9927,7 @@ pub mod api { #[doc = "# "] pub fn close_old_weight( &self, - proposal_hash: ::subxt::ext::sp_core::H256, + proposal_hash: ::subxt::utils::H256, index: ::core::primitive::u32, proposal_weight_bound: runtime_types::sp_weights::OldWeight, length_bound: ::core::primitive::u32, @@ -9974,7 +9965,7 @@ pub mod api { #[doc = "# "] pub fn disapprove_proposal( &self, - proposal_hash: ::subxt::ext::sp_core::H256, + proposal_hash: ::subxt::utils::H256, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new( "Council", @@ -10022,7 +10013,7 @@ pub mod api { #[doc = "# "] pub fn close( &self, - proposal_hash: ::subxt::ext::sp_core::H256, + proposal_hash: ::subxt::utils::H256, index: ::core::primitive::u32, proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, length_bound: ::core::primitive::u32, @@ -10060,9 +10051,9 @@ pub mod api { #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] #[doc = "`MemberCount`)."] pub struct Proposed { - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::AccountId32, pub proposal_index: ::core::primitive::u32, - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, pub threshold: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Proposed { @@ -10080,8 +10071,8 @@ pub mod api { #[doc = "A motion (given hash) has been voted on by given account, leaving"] #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] pub struct Voted { - pub account: ::subxt::ext::sp_core::crypto::AccountId32, - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub account: ::subxt::utils::AccountId32, + pub proposal_hash: ::subxt::utils::H256, pub voted: ::core::primitive::bool, pub yes: ::core::primitive::u32, pub no: ::core::primitive::u32, @@ -10100,7 +10091,7 @@ pub mod api { )] #[doc = "A motion was approved by the required threshold."] pub struct Approved { - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Approved { const EVENT: &'static str = "Approved"; @@ -10116,7 +10107,7 @@ pub mod api { )] #[doc = "A motion was not approved by the required threshold."] pub struct Disapproved { - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Disapproved { const EVENT: &'static str = "Disapproved"; @@ -10132,7 +10123,7 @@ pub mod api { )] #[doc = "A motion was executed; result will be `Ok` if it returned without error."] pub struct Executed { - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for Executed { @@ -10149,7 +10140,7 @@ pub mod api { )] #[doc = "A single member did some action; result will be `Ok` if it returned without error."] pub struct MemberExecuted { - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for MemberExecuted { @@ -10166,7 +10157,7 @@ pub mod api { )] #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] pub struct Closed { - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, pub yes: ::core::primitive::u32, pub no: ::core::primitive::u32, } @@ -10185,7 +10176,7 @@ pub mod api { ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::subxt::ext::sp_core::H256, + ::subxt::utils::H256, >, >, ::subxt::storage::address::Yes, @@ -10208,7 +10199,7 @@ pub mod api { #[doc = " Actual proposal for a given hash, if it's current."] pub fn proposal_of( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::H256>, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType, ::subxt::storage::address::Yes, @@ -10256,11 +10247,11 @@ pub mod api { #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::H256>, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_collective::Votes< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u32, >, >, @@ -10290,7 +10281,7 @@ pub mod api { ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_collective::Votes< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u32, >, >, @@ -10338,7 +10329,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ::std::vec::Vec<::subxt::utils::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -10361,7 +10352,7 @@ pub mod api { pub fn prime( &self, ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + ::subxt::metadata::DecodeStaticType<::subxt::utils::AccountId32>, ::subxt::storage::address::Yes, (), (), @@ -10396,8 +10387,8 @@ pub mod api { PartialEq, )] pub struct SetMembers { - pub new_members: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, - pub prime: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, + pub new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub prime: ::core::option::Option<::subxt::utils::AccountId32>, pub old_count: ::core::primitive::u32, } #[derive( @@ -10437,7 +10428,7 @@ pub mod api { PartialEq, )] pub struct Vote { - pub proposal: ::subxt::ext::sp_core::H256, + pub proposal: ::subxt::utils::H256, #[codec(compact)] pub index: ::core::primitive::u32, pub approve: ::core::primitive::bool, @@ -10451,7 +10442,7 @@ pub mod api { PartialEq, )] pub struct CloseOldWeight { - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, #[codec(compact)] pub index: ::core::primitive::u32, #[codec(compact)] @@ -10468,7 +10459,7 @@ pub mod api { PartialEq, )] pub struct DisapproveProposal { - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10479,7 +10470,7 @@ pub mod api { PartialEq, )] pub struct Close { - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, #[codec(compact)] pub index: ::core::primitive::u32, pub proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, @@ -10522,8 +10513,8 @@ pub mod api { #[doc = "# "] pub fn set_members( &self, - new_members: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, - prime: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, + new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, + prime: ::core::option::Option<::subxt::utils::AccountId32>, old_count: ::core::primitive::u32, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new( @@ -10640,7 +10631,7 @@ pub mod api { #[doc = "# "] pub fn vote( &self, - proposal: ::subxt::ext::sp_core::H256, + proposal: ::subxt::utils::H256, index: ::core::primitive::u32, approve: ::core::primitive::bool, ) -> ::subxt::tx::StaticTxPayload { @@ -10694,7 +10685,7 @@ pub mod api { #[doc = "# "] pub fn close_old_weight( &self, - proposal_hash: ::subxt::ext::sp_core::H256, + proposal_hash: ::subxt::utils::H256, index: ::core::primitive::u32, proposal_weight_bound: runtime_types::sp_weights::OldWeight, length_bound: ::core::primitive::u32, @@ -10732,7 +10723,7 @@ pub mod api { #[doc = "# "] pub fn disapprove_proposal( &self, - proposal_hash: ::subxt::ext::sp_core::H256, + proposal_hash: ::subxt::utils::H256, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new( "TechnicalCommittee", @@ -10780,7 +10771,7 @@ pub mod api { #[doc = "# "] pub fn close( &self, - proposal_hash: ::subxt::ext::sp_core::H256, + proposal_hash: ::subxt::utils::H256, index: ::core::primitive::u32, proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, length_bound: ::core::primitive::u32, @@ -10818,9 +10809,9 @@ pub mod api { #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] #[doc = "`MemberCount`)."] pub struct Proposed { - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::AccountId32, pub proposal_index: ::core::primitive::u32, - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, pub threshold: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Proposed { @@ -10838,8 +10829,8 @@ pub mod api { #[doc = "A motion (given hash) has been voted on by given account, leaving"] #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] pub struct Voted { - pub account: ::subxt::ext::sp_core::crypto::AccountId32, - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub account: ::subxt::utils::AccountId32, + pub proposal_hash: ::subxt::utils::H256, pub voted: ::core::primitive::bool, pub yes: ::core::primitive::u32, pub no: ::core::primitive::u32, @@ -10858,7 +10849,7 @@ pub mod api { )] #[doc = "A motion was approved by the required threshold."] pub struct Approved { - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Approved { const EVENT: &'static str = "Approved"; @@ -10874,7 +10865,7 @@ pub mod api { )] #[doc = "A motion was not approved by the required threshold."] pub struct Disapproved { - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Disapproved { const EVENT: &'static str = "Disapproved"; @@ -10890,7 +10881,7 @@ pub mod api { )] #[doc = "A motion was executed; result will be `Ok` if it returned without error."] pub struct Executed { - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for Executed { @@ -10907,7 +10898,7 @@ pub mod api { )] #[doc = "A single member did some action; result will be `Ok` if it returned without error."] pub struct MemberExecuted { - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for MemberExecuted { @@ -10924,7 +10915,7 @@ pub mod api { )] #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] pub struct Closed { - pub proposal_hash: ::subxt::ext::sp_core::H256, + pub proposal_hash: ::subxt::utils::H256, pub yes: ::core::primitive::u32, pub no: ::core::primitive::u32, } @@ -10943,7 +10934,7 @@ pub mod api { ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::subxt::ext::sp_core::H256, + ::subxt::utils::H256, >, >, ::subxt::storage::address::Yes, @@ -10966,7 +10957,7 @@ pub mod api { #[doc = " Actual proposal for a given hash, if it's current."] pub fn proposal_of( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::H256>, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType, ::subxt::storage::address::Yes, @@ -11014,11 +11005,11 @@ pub mod api { #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::H256>, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_collective::Votes< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u32, >, >, @@ -11048,7 +11039,7 @@ pub mod api { ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_collective::Votes< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u32, >, >, @@ -11096,7 +11087,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ::std::vec::Vec<::subxt::utils::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -11119,7 +11110,7 @@ pub mod api { pub fn prime( &self, ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + ::subxt::metadata::DecodeStaticType<::subxt::utils::AccountId32>, ::subxt::storage::address::Yes, (), (), @@ -11154,7 +11145,7 @@ pub mod api { PartialEq, )] pub struct Vote { - pub votes: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub votes: ::std::vec::Vec<::subxt::utils::AccountId32>, #[codec(compact)] pub value: ::core::primitive::u128, } @@ -11199,8 +11190,8 @@ pub mod api { PartialEq, )] pub struct RemoveMember { - pub who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, pub slash_bond: ::core::primitive::bool, @@ -11245,7 +11236,7 @@ pub mod api { #[doc = "# "] pub fn vote( &self, - votes: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + votes: ::std::vec::Vec<::subxt::utils::AccountId32>, value: ::core::primitive::u128, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new("Elections", "vote", Vote { votes, value }, [ @@ -11358,8 +11349,8 @@ pub mod api { #[doc = "# "] pub fn remove_member( &self, - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, slash_bond: ::core::primitive::bool, @@ -11432,10 +11423,8 @@ pub mod api { #[doc = "slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to"] #[doc = "begin with."] pub struct NewTerm { - pub new_members: ::std::vec::Vec<( - ::subxt::ext::sp_core::crypto::AccountId32, - ::core::primitive::u128, - )>, + pub new_members: + ::std::vec::Vec<(::subxt::utils::AccountId32, ::core::primitive::u128)>, } impl ::subxt::events::StaticEvent for NewTerm { const EVENT: &'static str = "NewTerm"; @@ -11481,7 +11470,7 @@ pub mod api { #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] #[doc = "`EmptyTerm`."] pub struct MemberKicked { - pub member: ::subxt::ext::sp_core::crypto::AccountId32, + pub member: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for MemberKicked { const EVENT: &'static str = "MemberKicked"; @@ -11497,7 +11486,7 @@ pub mod api { )] #[doc = "Someone has renounced their candidacy."] pub struct Renounced { - pub candidate: ::subxt::ext::sp_core::crypto::AccountId32, + pub candidate: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Renounced { const EVENT: &'static str = "Renounced"; @@ -11516,7 +11505,7 @@ pub mod api { #[doc = ""] #[doc = "Note that old members and runners-up are also candidates."] pub struct CandidateSlashed { - pub candidate: ::subxt::ext::sp_core::crypto::AccountId32, + pub candidate: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for CandidateSlashed { @@ -11533,7 +11522,7 @@ pub mod api { )] #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] pub struct SeatHolderSlashed { - pub seat_holder: ::subxt::ext::sp_core::crypto::AccountId32, + pub seat_holder: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for SeatHolderSlashed { @@ -11554,7 +11543,7 @@ pub mod api { ::subxt::metadata::DecodeStaticType< ::std::vec::Vec< runtime_types::pallet_elections_phragmen::SeatHolder< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, >, >, @@ -11585,7 +11574,7 @@ pub mod api { ::subxt::metadata::DecodeStaticType< ::std::vec::Vec< runtime_types::pallet_elections_phragmen::SeatHolder< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, >, >, @@ -11616,10 +11605,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<( - ::subxt::ext::sp_core::crypto::AccountId32, - ::core::primitive::u128, - )>, + ::std::vec::Vec<(::subxt::utils::AccountId32, ::core::primitive::u128)>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -11665,11 +11651,11 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] pub fn voting( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_elections_phragmen::Voter< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, >, >, @@ -11701,7 +11687,7 @@ pub mod api { ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_elections_phragmen::Voter< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, >, >, @@ -11882,8 +11868,8 @@ pub mod api { PartialEq, )] pub struct AddMember { - pub who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, } @@ -11896,8 +11882,8 @@ pub mod api { PartialEq, )] pub struct RemoveMember { - pub who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, } @@ -11910,12 +11896,12 @@ pub mod api { PartialEq, )] pub struct SwapMember { - pub remove: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub remove: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, - pub add: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub add: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, } @@ -11928,7 +11914,7 @@ pub mod api { PartialEq, )] pub struct ResetMembers { - pub members: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub members: ::std::vec::Vec<::subxt::utils::AccountId32>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11939,8 +11925,8 @@ pub mod api { PartialEq, )] pub struct ChangeKey { - pub new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, } @@ -11953,8 +11939,8 @@ pub mod api { PartialEq, )] pub struct SetPrime { - pub who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, } @@ -11974,8 +11960,8 @@ pub mod api { #[doc = "May only be called from `T::AddOrigin`."] pub fn add_member( &self, - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, ) -> ::subxt::tx::StaticTxPayload { @@ -11996,8 +11982,8 @@ pub mod api { #[doc = "May only be called from `T::RemoveOrigin`."] pub fn remove_member( &self, - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, ) -> ::subxt::tx::StaticTxPayload { @@ -12021,12 +12007,12 @@ pub mod api { #[doc = "Prime membership is *not* passed from `remove` to `add`, if extant."] pub fn swap_member( &self, - remove: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + remove: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, - add: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + add: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, ) -> ::subxt::tx::StaticTxPayload { @@ -12048,7 +12034,7 @@ pub mod api { #[doc = "May only be called from `T::ResetOrigin`."] pub fn reset_members( &self, - members: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + members: ::std::vec::Vec<::subxt::utils::AccountId32>, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new( "TechnicalMembership", @@ -12069,8 +12055,8 @@ pub mod api { #[doc = "Prime membership is passed from the origin account to `new`, if extant."] pub fn change_key( &self, - new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, ) -> ::subxt::tx::StaticTxPayload { @@ -12091,8 +12077,8 @@ pub mod api { #[doc = "May only be called from `T::PrimeOrigin`."] pub fn set_prime( &self, - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, ) -> ::subxt::tx::StaticTxPayload { @@ -12225,7 +12211,7 @@ pub mod api { ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, >, ::subxt::storage::address::Yes, @@ -12248,7 +12234,7 @@ pub mod api { pub fn prime( &self, ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + ::subxt::metadata::DecodeStaticType<::subxt::utils::AccountId32>, ::subxt::storage::address::Yes, (), (), @@ -12285,7 +12271,7 @@ pub mod api { pub struct ReportEquivocation { pub equivocation_proof: ::std::boxed::Box< runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::ext::sp_core::H256, + ::subxt::utils::H256, ::core::primitive::u32, >, >, @@ -12302,7 +12288,7 @@ pub mod api { pub struct ReportEquivocationUnsigned { pub equivocation_proof: ::std::boxed::Box< runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::ext::sp_core::H256, + ::subxt::utils::H256, ::core::primitive::u32, >, >, @@ -12329,7 +12315,7 @@ pub mod api { pub fn report_equivocation( &self, equivocation_proof: runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::ext::sp_core::H256, + ::subxt::utils::H256, ::core::primitive::u32, >, key_owner_proof: runtime_types::sp_session::MembershipProof, @@ -12361,7 +12347,7 @@ pub mod api { pub fn report_equivocation_unsigned( &self, equivocation_proof: runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::ext::sp_core::H256, + ::subxt::utils::H256, ::core::primitive::u32, >, key_owner_proof: runtime_types::sp_session::MembershipProof, @@ -12679,8 +12665,8 @@ pub mod api { pub struct ProposeSpend { #[codec(compact)] pub value: ::core::primitive::u128, - pub beneficiary: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, } @@ -12719,8 +12705,8 @@ pub mod api { pub struct Spend { #[codec(compact)] pub amount: ::core::primitive::u128, - pub beneficiary: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, } @@ -12750,8 +12736,8 @@ pub mod api { pub fn propose_spend( &self, value: ::core::primitive::u128, - beneficiary: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, ) -> ::subxt::tx::StaticTxPayload { @@ -12830,8 +12816,8 @@ pub mod api { pub fn spend( &self, amount: ::core::primitive::u128, - beneficiary: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, ) -> ::subxt::tx::StaticTxPayload { @@ -12932,7 +12918,7 @@ pub mod api { pub struct Awarded { pub proposal_index: ::core::primitive::u32, pub award: ::core::primitive::u128, - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Awarded { const EVENT: &'static str = "Awarded"; @@ -13018,7 +13004,7 @@ pub mod api { pub struct SpendApproved { pub proposal_index: ::core::primitive::u32, pub amount: ::core::primitive::u128, - pub beneficiary: ::subxt::ext::sp_core::crypto::AccountId32, + pub beneficiary: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for SpendApproved { const EVENT: &'static str = "SpendApproved"; @@ -13075,7 +13061,7 @@ pub mod api { ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_treasury::Proposal< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, >, >, @@ -13104,7 +13090,7 @@ pub mod api { ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_treasury::Proposal< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, >, >, @@ -13325,8 +13311,8 @@ pub mod api { PartialEq, )] pub struct SetKey { - pub new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, } @@ -13339,8 +13325,8 @@ pub mod api { PartialEq, )] pub struct SudoAs { - pub who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, pub call: ::std::boxed::Box, @@ -13419,8 +13405,8 @@ pub mod api { #[doc = "# "] pub fn set_key( &self, - new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, ) -> ::subxt::tx::StaticTxPayload { @@ -13444,8 +13430,8 @@ pub mod api { #[doc = "# "] pub fn sudo_as( &self, - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, call: runtime_types::da_runtime::RuntimeCall, @@ -13498,7 +13484,7 @@ pub mod api { )] #[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."] pub struct KeyChanged { - pub old_sudoer: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, + pub old_sudoer: ::core::option::Option<::subxt::utils::AccountId32>, } impl ::subxt::events::StaticEvent for KeyChanged { const EVENT: &'static str = "KeyChanged"; @@ -13530,7 +13516,7 @@ pub mod api { pub fn key( &self, ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + ::subxt::metadata::DecodeStaticType<::subxt::utils::AccountId32>, ::subxt::storage::address::Yes, (), (), @@ -13640,9 +13626,9 @@ pub mod api { #[doc = "At the end of the session, at least one validator was found to be offline."] pub struct SomeOffline { pub offline: ::std::vec::Vec<( - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, runtime_types::pallet_staking::Exposure< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, >, )>, @@ -13784,7 +13770,7 @@ pub mod api { pub fn authored_blocks( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, ::subxt::storage::address::Yes, @@ -13957,15 +13943,15 @@ pub mod api { #[doc = " The primary structure that holds all offence records keyed by report identifiers."] pub fn reports( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::H256>, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::sp_staking::offence::OffenceDetails< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ( - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, runtime_types::pallet_staking::Exposure< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, >, ), @@ -13996,11 +13982,11 @@ pub mod api { ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::sp_staking::offence::OffenceDetails< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ( - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, runtime_types::pallet_staking::Exposure< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, >, ), @@ -14028,9 +14014,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 16usize]>, _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<::subxt::ext::sp_core::H256>, - >, + ::subxt::metadata::DecodeStaticType<::std::vec::Vec<::subxt::utils::H256>>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -14060,9 +14044,7 @@ pub mod api { pub fn concurrent_reports_index_root( &self, ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<::subxt::ext::sp_core::H256>, - >, + ::subxt::metadata::DecodeStaticType<::std::vec::Vec<::subxt::utils::H256>>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -14151,7 +14133,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType<( - ::subxt::ext::sp_core::H256, + ::subxt::utils::H256, ::core::primitive::u32, )>, ::subxt::storage::address::Yes, @@ -14178,7 +14160,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType<( - ::subxt::ext::sp_core::H256, + ::subxt::utils::H256, ::core::primitive::u32, )>, (), @@ -14624,7 +14606,7 @@ pub mod api { >, ::core::primitive::u32, runtime_types::da_runtime::OriginCaller, - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, >, >, @@ -14662,7 +14644,7 @@ pub mod api { >, ::core::primitive::u32, runtime_types::da_runtime::OriginCaller, - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, >, >, @@ -14825,8 +14807,8 @@ pub mod api { pub struct ProposeCurator { #[codec(compact)] pub bounty_id: ::core::primitive::u32, - pub curator: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub curator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] @@ -14867,8 +14849,8 @@ pub mod api { pub struct AwardBounty { #[codec(compact)] pub bounty_id: ::core::primitive::u32, - pub beneficiary: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, } @@ -14975,8 +14957,8 @@ pub mod api { pub fn propose_curator( &self, bounty_id: ::core::primitive::u32, - curator: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + curator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, fee: ::core::primitive::u128, @@ -15071,8 +15053,8 @@ pub mod api { pub fn award_bounty( &self, bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, ) -> ::subxt::tx::StaticTxPayload { @@ -15238,7 +15220,7 @@ pub mod api { #[doc = "A bounty is awarded to a beneficiary."] pub struct BountyAwarded { pub index: ::core::primitive::u32, - pub beneficiary: ::subxt::ext::sp_core::crypto::AccountId32, + pub beneficiary: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for BountyAwarded { const EVENT: &'static str = "BountyAwarded"; @@ -15256,7 +15238,7 @@ pub mod api { pub struct BountyClaimed { pub index: ::core::primitive::u32, pub payout: ::core::primitive::u128, - pub beneficiary: ::subxt::ext::sp_core::crypto::AccountId32, + pub beneficiary: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for BountyClaimed { const EVENT: &'static str = "BountyClaimed"; @@ -15329,7 +15311,7 @@ pub mod api { ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_bounties::Bounty< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, ::core::primitive::u32, >, @@ -15360,7 +15342,7 @@ pub mod api { ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_bounties::Bounty< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, ::core::primitive::u32, >, @@ -15653,8 +15635,8 @@ pub mod api { )] pub struct ReportAwesome { pub reason: ::std::vec::Vec<::core::primitive::u8>, - pub who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, } @@ -15667,7 +15649,7 @@ pub mod api { PartialEq, )] pub struct RetractTip { - pub hash: ::subxt::ext::sp_core::H256, + pub hash: ::subxt::utils::H256, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15679,8 +15661,8 @@ pub mod api { )] pub struct TipNew { pub reason: ::std::vec::Vec<::core::primitive::u8>, - pub who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] @@ -15695,7 +15677,7 @@ pub mod api { PartialEq, )] pub struct Tip { - pub hash: ::subxt::ext::sp_core::H256, + pub hash: ::subxt::utils::H256, #[codec(compact)] pub tip_value: ::core::primitive::u128, } @@ -15708,7 +15690,7 @@ pub mod api { PartialEq, )] pub struct CloseTip { - pub hash: ::subxt::ext::sp_core::H256, + pub hash: ::subxt::utils::H256, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15719,7 +15701,7 @@ pub mod api { PartialEq, )] pub struct SlashTip { - pub hash: ::subxt::ext::sp_core::H256, + pub hash: ::subxt::utils::H256, } pub struct TransactionApi; impl TransactionApi { @@ -15745,8 +15727,8 @@ pub mod api { pub fn report_awesome( &self, reason: ::std::vec::Vec<::core::primitive::u8>, - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, ) -> ::subxt::tx::StaticTxPayload { @@ -15783,7 +15765,7 @@ pub mod api { #[doc = "# "] pub fn retract_tip( &self, - hash: ::subxt::ext::sp_core::H256, + hash: ::subxt::utils::H256, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new("Tips", "retract_tip", RetractTip { hash }, [ 137u8, 42u8, 229u8, 188u8, 157u8, 195u8, 184u8, 176u8, 64u8, 142u8, 67u8, @@ -15817,8 +15799,8 @@ pub mod api { pub fn tip_new( &self, reason: ::std::vec::Vec<::core::primitive::u8>, - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, tip_value: ::core::primitive::u128, @@ -15865,7 +15847,7 @@ pub mod api { #[doc = "# "] pub fn tip( &self, - hash: ::subxt::ext::sp_core::H256, + hash: ::subxt::utils::H256, tip_value: ::core::primitive::u128, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new("Tips", "tip", Tip { hash, tip_value }, [ @@ -15893,7 +15875,7 @@ pub mod api { #[doc = "# "] pub fn close_tip( &self, - hash: ::subxt::ext::sp_core::H256, + hash: ::subxt::utils::H256, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new("Tips", "close_tip", CloseTip { hash }, [ 32u8, 53u8, 0u8, 222u8, 45u8, 157u8, 107u8, 174u8, 203u8, 50u8, 81u8, @@ -15916,7 +15898,7 @@ pub mod api { #[doc = "# "] pub fn slash_tip( &self, - hash: ::subxt::ext::sp_core::H256, + hash: ::subxt::utils::H256, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new("Tips", "slash_tip", SlashTip { hash }, [ 222u8, 209u8, 22u8, 47u8, 114u8, 230u8, 81u8, 200u8, 131u8, 0u8, 209u8, @@ -15940,7 +15922,7 @@ pub mod api { )] #[doc = "A new tip suggestion has been opened."] pub struct NewTip { - pub tip_hash: ::subxt::ext::sp_core::H256, + pub tip_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for NewTip { const EVENT: &'static str = "NewTip"; @@ -15956,7 +15938,7 @@ pub mod api { )] #[doc = "A tip suggestion has reached threshold and is closing."] pub struct TipClosing { - pub tip_hash: ::subxt::ext::sp_core::H256, + pub tip_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for TipClosing { const EVENT: &'static str = "TipClosing"; @@ -15972,8 +15954,8 @@ pub mod api { )] #[doc = "A tip suggestion has been closed."] pub struct TipClosed { - pub tip_hash: ::subxt::ext::sp_core::H256, - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub tip_hash: ::subxt::utils::H256, + pub who: ::subxt::utils::AccountId32, pub payout: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for TipClosed { @@ -15990,7 +15972,7 @@ pub mod api { )] #[doc = "A tip suggestion has been retracted."] pub struct TipRetracted { - pub tip_hash: ::subxt::ext::sp_core::H256, + pub tip_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for TipRetracted { const EVENT: &'static str = "TipRetracted"; @@ -16006,8 +15988,8 @@ pub mod api { )] #[doc = "A tip suggestion has been slashed."] pub struct TipSlashed { - pub tip_hash: ::subxt::ext::sp_core::H256, - pub finder: ::subxt::ext::sp_core::crypto::AccountId32, + pub tip_hash: ::subxt::utils::H256, + pub finder: ::subxt::utils::AccountId32, pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for TipSlashed { @@ -16024,14 +16006,14 @@ pub mod api { #[doc = " guaranteed to be a secure hash."] pub fn tips( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::H256>, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_tips::OpenTip< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, ::core::primitive::u32, - ::subxt::ext::sp_core::H256, + ::subxt::utils::H256, >, >, ::subxt::storage::address::Yes, @@ -16061,10 +16043,10 @@ pub mod api { ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_tips::OpenTip< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, ::core::primitive::u32, - ::subxt::ext::sp_core::H256, + ::subxt::utils::H256, >, >, (), @@ -16087,7 +16069,7 @@ pub mod api { #[doc = " insecure enumerable hash since the key is guaranteed to be the result of a secure hash."] pub fn reasons( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::H256>, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType<::std::vec::Vec<::core::primitive::u8>>, ::subxt::storage::address::Yes, @@ -16221,7 +16203,7 @@ pub mod api { pub fn root_hash( &self, ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::H256>, + ::subxt::metadata::DecodeStaticType<::subxt::utils::H256>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -16268,7 +16250,7 @@ pub mod api { &self, _0: impl ::std::borrow::Borrow<::core::primitive::u64>, ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::H256>, + ::subxt::metadata::DecodeStaticType<::subxt::utils::H256>, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, @@ -16295,7 +16277,7 @@ pub mod api { pub fn nodes_root( &self, ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::H256>, + ::subxt::metadata::DecodeStaticType<::subxt::utils::H256>, (), (), ::subxt::storage::address::Yes, @@ -16431,7 +16413,7 @@ pub mod api { pub struct ApplicationKeyCreated { pub key: runtime_types::sp_core::bounded::bounded_vec::BoundedVec<::core::primitive::u8>, - pub owner: ::subxt::ext::sp_core::crypto::AccountId32, + pub owner: ::subxt::utils::AccountId32, pub id: runtime_types::da_primitives::asdr::AppId, } impl ::subxt::events::StaticEvent for ApplicationKeyCreated { @@ -16447,7 +16429,7 @@ pub mod api { PartialEq, )] pub struct DataSubmitted { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::AccountId32, pub data: runtime_types::sp_core::bounded::bounded_vec::BoundedVec<::core::primitive::u8>, } @@ -16531,9 +16513,7 @@ pub mod api { >, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< - runtime_types::da_control::pallet::AppKeyInfo< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + runtime_types::da_control::pallet::AppKeyInfo<::subxt::utils::AccountId32>, >, ::subxt::storage::address::Yes, (), @@ -16559,9 +16539,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< - runtime_types::da_control::pallet::AppKeyInfo< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + runtime_types::da_control::pallet::AppKeyInfo<::subxt::utils::AccountId32>, >, (), (), @@ -16724,8 +16702,8 @@ pub mod api { PartialEq, )] pub struct NewUpdater { - pub old_updater: ::subxt::ext::sp_core::H160, - pub new_updater: ::subxt::ext::sp_core::H160, + pub old_updater: ::subxt::utils::H160, + pub new_updater: ::subxt::utils::H160, } impl ::subxt::events::StaticEvent for NewUpdater { const EVENT: &'static str = "NewUpdater"; @@ -16740,7 +16718,7 @@ pub mod api { PartialEq, )] pub struct FakeSlashed { - pub reporter: ::subxt::ext::sp_core::crypto::AccountId32, + pub reporter: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for FakeSlashed { const EVENT: &'static str = "FakeSlashed"; @@ -16754,7 +16732,7 @@ pub mod api { pub fn updater( &self, ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::H160>, + ::subxt::metadata::DecodeStaticType<::subxt::utils::H160>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -16791,7 +16769,7 @@ pub mod api { pub struct Dispatch { #[codec(compact)] pub destination_domain: ::core::primitive::u32, - pub recipient_address: ::subxt::ext::sp_core::H256, + pub recipient_address: ::subxt::utils::H256, pub message_body: runtime_types::sp_core::bounded::bounded_vec::BoundedVec<::core::primitive::u8>, } @@ -16825,7 +16803,7 @@ pub mod api { pub fn dispatch( &self, destination_domain: ::core::primitive::u32, - recipient_address: ::subxt::ext::sp_core::H256, + recipient_address: ::subxt::utils::H256, message_body: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< ::core::primitive::u8, >, @@ -16901,10 +16879,10 @@ pub mod api { PartialEq, )] pub struct Dispatch { - pub message_hash: ::subxt::ext::sp_core::H256, + pub message_hash: ::subxt::utils::H256, pub leaf_index: ::core::primitive::u32, pub destination_and_nonce: ::core::primitive::u64, - pub committed_root: ::subxt::ext::sp_core::H256, + pub committed_root: ::subxt::utils::H256, pub message: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::events::StaticEvent for Dispatch { @@ -16921,8 +16899,8 @@ pub mod api { )] pub struct Update { pub home_domain: ::core::primitive::u32, - pub previous_root: ::subxt::ext::sp_core::H256, - pub new_root: ::subxt::ext::sp_core::H256, + pub previous_root: ::subxt::utils::H256, + pub new_root: ::subxt::utils::H256, pub signature: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::events::StaticEvent for Update { @@ -16938,8 +16916,8 @@ pub mod api { PartialEq, )] pub struct ImproperUpdate { - pub previous_root: ::subxt::ext::sp_core::H256, - pub new_root: ::subxt::ext::sp_core::H256, + pub previous_root: ::subxt::utils::H256, + pub new_root: ::subxt::utils::H256, pub signature: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::events::StaticEvent for ImproperUpdate { @@ -16955,8 +16933,8 @@ pub mod api { PartialEq, )] pub struct UpdaterSlashed { - pub updater: ::subxt::ext::sp_core::H160, - pub reporter: ::subxt::ext::sp_core::crypto::AccountId32, + pub updater: ::subxt::utils::H160, + pub reporter: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for UpdaterSlashed { const EVENT: &'static str = "UpdaterSlashed"; @@ -17059,7 +17037,7 @@ pub mod api { &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::H256>, + ::subxt::metadata::DecodeStaticType<::subxt::utils::H256>, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, @@ -17082,7 +17060,7 @@ pub mod api { pub fn index_to_root_root( &self, ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::H256>, + ::subxt::metadata::DecodeStaticType<::subxt::utils::H256>, (), (), ::subxt::storage::address::Yes, @@ -17101,7 +17079,7 @@ pub mod api { pub fn root_to_index( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::H256>, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, ::subxt::storage::address::Yes, @@ -17187,7 +17165,7 @@ pub mod api { pub struct TryDispatchDataRoot { #[codec(compact)] pub destination_domain: ::core::primitive::u32, - pub recipient_address: ::subxt::ext::sp_core::H256, + pub recipient_address: ::subxt::utils::H256, pub header: ::std::boxed::Box< runtime_types::da_primitives::header::Header< ::core::primitive::u32, @@ -17201,7 +17179,7 @@ pub mod api { pub fn try_dispatch_data_root( &self, destination_domain: ::core::primitive::u32, - recipient_address: ::subxt::ext::sp_core::H256, + recipient_address: ::subxt::utils::H256, header: runtime_types::da_primitives::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, @@ -17238,9 +17216,9 @@ pub mod api { )] pub struct DataRootDispatched { pub destination_domain: ::core::primitive::u32, - pub recipient_address: ::subxt::ext::sp_core::H256, + pub recipient_address: ::subxt::utils::H256, pub block_number: ::core::primitive::u32, - pub data_root: ::subxt::ext::sp_core::H256, + pub data_root: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for DataRootDispatched { const EVENT: &'static str = "DataRootDispatched"; @@ -17254,7 +17232,7 @@ pub mod api { pub fn da_bridge_pallet_id( &self, ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::H256>, + ::subxt::metadata::DecodeStaticType<::subxt::utils::H256>, > { ::subxt::constants::StaticConstantAddress::new( "DABridge", @@ -17295,7 +17273,7 @@ pub mod api { PartialEq, )] pub struct UnnotePreimage { - pub hash: ::subxt::ext::sp_core::H256, + pub hash: ::subxt::utils::H256, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17306,7 +17284,7 @@ pub mod api { PartialEq, )] pub struct RequestPreimage { - pub hash: ::subxt::ext::sp_core::H256, + pub hash: ::subxt::utils::H256, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17317,7 +17295,7 @@ pub mod api { PartialEq, )] pub struct UnrequestPreimage { - pub hash: ::subxt::ext::sp_core::H256, + pub hash: ::subxt::utils::H256, } pub struct TransactionApi; impl TransactionApi { @@ -17349,7 +17327,7 @@ pub mod api { #[doc = "- `len`: The length of the preimage of `hash`."] pub fn unnote_preimage( &self, - hash: ::subxt::ext::sp_core::H256, + hash: ::subxt::utils::H256, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new( "Preimage", @@ -17369,7 +17347,7 @@ pub mod api { #[doc = "a user may have paid, and take the control of the preimage out of their hands."] pub fn request_preimage( &self, - hash: ::subxt::ext::sp_core::H256, + hash: ::subxt::utils::H256, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new( "Preimage", @@ -17388,7 +17366,7 @@ pub mod api { #[doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] pub fn unrequest_preimage( &self, - hash: ::subxt::ext::sp_core::H256, + hash: ::subxt::utils::H256, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new( "Preimage", @@ -17417,7 +17395,7 @@ pub mod api { )] #[doc = "A preimage has been noted."] pub struct Noted { - pub hash: ::subxt::ext::sp_core::H256, + pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Noted { const EVENT: &'static str = "Noted"; @@ -17433,7 +17411,7 @@ pub mod api { )] #[doc = "A preimage has been requested."] pub struct Requested { - pub hash: ::subxt::ext::sp_core::H256, + pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Requested { const EVENT: &'static str = "Requested"; @@ -17449,7 +17427,7 @@ pub mod api { )] #[doc = "A preimage has ben cleared."] pub struct Cleared { - pub hash: ::subxt::ext::sp_core::H256, + pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Cleared { const EVENT: &'static str = "Cleared"; @@ -17463,11 +17441,11 @@ pub mod api { #[doc = " The request status of a given hash."] pub fn status_for( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::H256>, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_preimage::RequestStatus< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, >, >, @@ -17496,7 +17474,7 @@ pub mod api { ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_preimage::RequestStatus< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, >, >, @@ -17518,7 +17496,7 @@ pub mod api { pub fn preimage_for( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::H256>, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< @@ -17586,7 +17564,7 @@ pub mod api { PartialEq, )] pub struct AsMultiThreshold1 { - pub other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, pub call: ::std::boxed::Box, } #[derive( @@ -17599,7 +17577,7 @@ pub mod api { )] pub struct AsMulti { pub threshold: ::core::primitive::u16, - pub other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, pub maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, @@ -17616,7 +17594,7 @@ pub mod api { )] pub struct ApproveAsMulti { pub threshold: ::core::primitive::u16, - pub other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, pub maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, @@ -17633,7 +17611,7 @@ pub mod api { )] pub struct CancelAsMulti { pub threshold: ::core::primitive::u16, - pub other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, pub call_hash: [::core::primitive::u8; 32usize], } @@ -17657,7 +17635,7 @@ pub mod api { #[doc = "# "] pub fn as_multi_threshold_1( &self, - other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, call: runtime_types::da_runtime::RuntimeCall, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new( @@ -17724,7 +17702,7 @@ pub mod api { pub fn as_multi( &self, threshold: ::core::primitive::u16, - other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, @@ -17787,7 +17765,7 @@ pub mod api { pub fn approve_as_multi( &self, threshold: ::core::primitive::u16, - other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, @@ -17842,7 +17820,7 @@ pub mod api { pub fn cancel_as_multi( &self, threshold: ::core::primitive::u16, - other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, call_hash: [::core::primitive::u8; 32usize], ) -> ::subxt::tx::StaticTxPayload { @@ -17878,8 +17856,8 @@ pub mod api { )] #[doc = "A new multisig operation has begun."] pub struct NewMultisig { - pub approving: ::subxt::ext::sp_core::crypto::AccountId32, - pub multisig: ::subxt::ext::sp_core::crypto::AccountId32, + pub approving: ::subxt::utils::AccountId32, + pub multisig: ::subxt::utils::AccountId32, pub call_hash: [::core::primitive::u8; 32usize], } impl ::subxt::events::StaticEvent for NewMultisig { @@ -17896,9 +17874,9 @@ pub mod api { )] #[doc = "A multisig operation has been approved by someone."] pub struct MultisigApproval { - pub approving: ::subxt::ext::sp_core::crypto::AccountId32, + pub approving: ::subxt::utils::AccountId32, pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - pub multisig: ::subxt::ext::sp_core::crypto::AccountId32, + pub multisig: ::subxt::utils::AccountId32, pub call_hash: [::core::primitive::u8; 32usize], } impl ::subxt::events::StaticEvent for MultisigApproval { @@ -17915,9 +17893,9 @@ pub mod api { )] #[doc = "A multisig operation has been executed."] pub struct MultisigExecuted { - pub approving: ::subxt::ext::sp_core::crypto::AccountId32, + pub approving: ::subxt::utils::AccountId32, pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - pub multisig: ::subxt::ext::sp_core::crypto::AccountId32, + pub multisig: ::subxt::utils::AccountId32, pub call_hash: [::core::primitive::u8; 32usize], pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } @@ -17935,9 +17913,9 @@ pub mod api { )] #[doc = "A multisig operation has been cancelled."] pub struct MultisigCancelled { - pub cancelling: ::subxt::ext::sp_core::crypto::AccountId32, + pub cancelling: ::subxt::utils::AccountId32, pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - pub multisig: ::subxt::ext::sp_core::crypto::AccountId32, + pub multisig: ::subxt::utils::AccountId32, pub call_hash: [::core::primitive::u8; 32usize], } impl ::subxt::events::StaticEvent for MultisigCancelled { @@ -17952,14 +17930,14 @@ pub mod api { #[doc = " The set of open multisig operations."] pub fn multisigs( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, _1: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_multisig::Multisig< ::core::primitive::u32, ::core::primitive::u128, - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, >, ::subxt::storage::address::Yes, @@ -17995,7 +17973,7 @@ pub mod api { runtime_types::pallet_multisig::Multisig< ::core::primitive::u32, ::core::primitive::u128, - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, >, (), @@ -18082,8 +18060,8 @@ pub mod api { PartialEq, )] pub struct Rebag { - pub dislocated: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub dislocated: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, } @@ -18096,8 +18074,8 @@ pub mod api { PartialEq, )] pub struct PutInFrontOf { - pub lighter: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub lighter: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, } @@ -18115,8 +18093,8 @@ pub mod api { #[doc = "If `dislocated` does not exists, it returns an error."] pub fn rebag( &self, - dislocated: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dislocated: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, ) -> ::subxt::tx::StaticTxPayload { @@ -18137,8 +18115,8 @@ pub mod api { #[doc = "- and `origin` has a greater `Score` than `lighter`."] pub fn put_in_front_of( &self, - lighter: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + lighter: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, ) -> ::subxt::tx::StaticTxPayload { @@ -18170,7 +18148,7 @@ pub mod api { )] #[doc = "Moved an account from one bag to another."] pub struct Rebagged { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::AccountId32, pub from: ::core::primitive::u64, pub to: ::core::primitive::u64, } @@ -18188,7 +18166,7 @@ pub mod api { )] #[doc = "Updated the score of some account to the given amount."] pub struct ScoreUpdated { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::AccountId32, pub new_score: ::core::primitive::u64, } impl ::subxt::events::StaticEvent for ScoreUpdated { @@ -18205,7 +18183,7 @@ pub mod api { #[doc = " Nodes store links forward and back within their respective bags."] pub fn list_nodes( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_bags_list::list::Node, @@ -18436,8 +18414,8 @@ pub mod api { PartialEq, )] pub struct Unbond { - pub member_account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] @@ -18464,8 +18442,8 @@ pub mod api { PartialEq, )] pub struct WithdrawUnbonded { - pub member_account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, pub num_slashing_spans: ::core::primitive::u32, @@ -18481,16 +18459,16 @@ pub mod api { pub struct Create { #[codec(compact)] pub amount: ::core::primitive::u128, - pub root: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, - pub nominator: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, - pub state_toggler: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub state_toggler: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, } @@ -18505,16 +18483,16 @@ pub mod api { pub struct CreateWithPoolId { #[codec(compact)] pub amount: ::core::primitive::u128, - pub root: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, - pub nominator: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, - pub state_toggler: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub state_toggler: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, pub pool_id: ::core::primitive::u32, @@ -18529,7 +18507,7 @@ pub mod api { )] pub struct Nominate { pub pool_id: ::core::primitive::u32, - pub validators: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub validators: ::std::vec::Vec<::subxt::utils::AccountId32>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18585,15 +18563,12 @@ pub mod api { )] pub struct UpdateRoles { pub pool_id: ::core::primitive::u32, - pub new_root: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, - >, - pub new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, - >, - pub new_state_toggler: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + pub new_root: + runtime_types::pallet_nomination_pools::ConfigOp<::subxt::utils::AccountId32>, + pub new_nominator: + runtime_types::pallet_nomination_pools::ConfigOp<::subxt::utils::AccountId32>, + pub new_state_toggler: + runtime_types::pallet_nomination_pools::ConfigOp<::subxt::utils::AccountId32>, } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -18714,8 +18689,8 @@ pub mod api { #[doc = "staking system."] pub fn unbond( &self, - member_account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, unbonding_points: ::core::primitive::u128, @@ -18783,8 +18758,8 @@ pub mod api { #[doc = "If the target is the depositor, the pool will be destroyed."] pub fn withdraw_unbonded( &self, - member_account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, num_slashing_spans: ::core::primitive::u32, @@ -18824,16 +18799,16 @@ pub mod api { pub fn create( &self, amount: ::core::primitive::u128, - root: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, - nominator: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, - state_toggler: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + state_toggler: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, ) -> ::subxt::tx::StaticTxPayload { @@ -18863,16 +18838,16 @@ pub mod api { pub fn create_with_pool_id( &self, amount: ::core::primitive::u128, - root: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, - nominator: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, - state_toggler: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + state_toggler: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, pool_id: ::core::primitive::u32, @@ -18906,7 +18881,7 @@ pub mod api { pub fn nominate( &self, pool_id: ::core::primitive::u32, - validators: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + validators: ::std::vec::Vec<::subxt::utils::AccountId32>, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new( "NominationPools", @@ -19029,13 +19004,13 @@ pub mod api { &self, pool_id: ::core::primitive::u32, new_root: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, new_state_toggler: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, ) -> ::subxt::tx::StaticTxPayload { ::subxt::tx::StaticTxPayload::new( @@ -19093,7 +19068,7 @@ pub mod api { )] #[doc = "A pool has been created."] pub struct Created { - pub depositor: ::subxt::ext::sp_core::crypto::AccountId32, + pub depositor: ::subxt::utils::AccountId32, pub pool_id: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Created { @@ -19110,7 +19085,7 @@ pub mod api { )] #[doc = "A member has became bonded in a pool."] pub struct Bonded { - pub member: ::subxt::ext::sp_core::crypto::AccountId32, + pub member: ::subxt::utils::AccountId32, pub pool_id: ::core::primitive::u32, pub bonded: ::core::primitive::u128, pub joined: ::core::primitive::bool, @@ -19129,7 +19104,7 @@ pub mod api { )] #[doc = "A payout has been made to a member."] pub struct PaidOut { - pub member: ::subxt::ext::sp_core::crypto::AccountId32, + pub member: ::subxt::utils::AccountId32, pub pool_id: ::core::primitive::u32, pub payout: ::core::primitive::u128, } @@ -19157,7 +19132,7 @@ pub mod api { #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] #[doc = "requested to be unbonded."] pub struct Unbonded { - pub member: ::subxt::ext::sp_core::crypto::AccountId32, + pub member: ::subxt::utils::AccountId32, pub pool_id: ::core::primitive::u32, pub balance: ::core::primitive::u128, pub points: ::core::primitive::u128, @@ -19182,7 +19157,7 @@ pub mod api { #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] #[doc = "will be 1."] pub struct Withdrawn { - pub member: ::subxt::ext::sp_core::crypto::AccountId32, + pub member: ::subxt::utils::AccountId32, pub pool_id: ::core::primitive::u32, pub balance: ::core::primitive::u128, pub points: ::core::primitive::u128, @@ -19238,7 +19213,7 @@ pub mod api { #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] pub struct MemberRemoved { pub pool_id: ::core::primitive::u32, - pub member: ::subxt::ext::sp_core::crypto::AccountId32, + pub member: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for MemberRemoved { const EVENT: &'static str = "MemberRemoved"; @@ -19255,10 +19230,9 @@ pub mod api { #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] #[doc = "can never change."] pub struct RolesUpdated { - pub root: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, - pub state_toggler: - ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, - pub nominator: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, + pub root: ::core::option::Option<::subxt::utils::AccountId32>, + pub state_toggler: ::core::option::Option<::subxt::utils::AccountId32>, + pub nominator: ::core::option::Option<::subxt::utils::AccountId32>, } impl ::subxt::events::StaticEvent for RolesUpdated { const EVENT: &'static str = "RolesUpdated"; @@ -19425,7 +19399,7 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn pool_members( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType< runtime_types::pallet_nomination_pools::PoolMember, @@ -19824,7 +19798,7 @@ pub mod api { #[doc = " accounts are deterministically derived from it."] pub fn reverse_pool_id_lookup( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::StaticStorageAddress< ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, ::subxt::storage::address::Yes, @@ -19962,7 +19936,7 @@ pub mod api { try_dispatch_data_root { #[codec(compact)] destination_domain: ::core::primitive::u32, - recipient_address: ::subxt::ext::sp_core::H256, + recipient_address: ::subxt::utils::H256, header: ::std::boxed::Box< runtime_types::da_primitives::header::Header< ::core::primitive::u32, @@ -20001,9 +19975,9 @@ pub mod api { #[codec(index = 0)] DataRootDispatched { destination_domain: ::core::primitive::u32, - recipient_address: ::subxt::ext::sp_core::H256, + recipient_address: ::subxt::utils::H256, block_number: ::core::primitive::u32, - data_root: ::subxt::ext::sp_core::H256, + data_root: ::subxt::utils::H256, }, } } @@ -20108,12 +20082,12 @@ pub mod api { key: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< ::core::primitive::u8, >, - owner: ::subxt::ext::sp_core::crypto::AccountId32, + owner: ::subxt::utils::AccountId32, id: runtime_types::da_primitives::asdr::AppId, }, #[codec(index = 1)] DataSubmitted { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::AccountId32, data: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< ::core::primitive::u8, >, @@ -20256,11 +20230,11 @@ pub mod api { PartialEq, )] pub struct Header<_0, _1> { - pub parent_hash: ::subxt::ext::sp_core::H256, + pub parent_hash: ::subxt::utils::H256, #[codec(compact)] pub number: _0, - pub state_root: ::subxt::ext::sp_core::H256, - pub extrinsics_root: ::subxt::ext::sp_core::H256, + pub state_root: ::subxt::utils::H256, + pub extrinsics_root: ::subxt::utils::H256, pub digest: runtime_types::sp_runtime::generic::digest::Digest, pub extension: runtime_types::da_primitives::header::extension::HeaderExtension, #[codec(skip)] @@ -20286,7 +20260,7 @@ pub mod api { pub rows: ::core::primitive::u16, #[codec(compact)] pub cols: ::core::primitive::u16, - pub data_root: ::subxt::ext::sp_core::H256, + pub data_root: ::subxt::utils::H256, pub commitment: ::std::vec::Vec<::core::primitive::u8>, } } @@ -20486,21 +20460,13 @@ pub mod api { pub enum OriginCaller { #[codec(index = 0)] system( - runtime_types::frame_support::dispatch::RawOrigin< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + runtime_types::frame_support::dispatch::RawOrigin<::subxt::utils::AccountId32>, ), #[codec(index = 13)] - Council( - runtime_types::pallet_collective::RawOrigin< - ::subxt::ext::sp_core::crypto::AccountId32, - >, - ), + Council(runtime_types::pallet_collective::RawOrigin<::subxt::utils::AccountId32>), #[codec(index = 14)] TechnicalCommittee( - runtime_types::pallet_collective::RawOrigin< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + runtime_types::pallet_collective::RawOrigin<::subxt::utils::AccountId32>, ), #[codec(index = 3)] Void(runtime_types::sp_core::Void), @@ -20819,7 +20785,7 @@ pub mod api { pub enum Bounded<_0> { #[codec(index = 0)] Legacy { - hash: ::subxt::ext::sp_core::H256, + hash: ::subxt::utils::H256, }, #[codec(index = 1)] Inline( @@ -20829,7 +20795,7 @@ pub mod api { ), #[codec(index = 2)] Lookup { - hash: ::subxt::ext::sp_core::H256, + hash: ::subxt::utils::H256, len: ::core::primitive::u32, }, __Ignore(::core::marker::PhantomData<_0>), @@ -21148,22 +21114,22 @@ pub mod api { #[codec(index = 3)] #[doc = "A new account was created."] NewAccount { - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::AccountId32, }, #[codec(index = 4)] #[doc = "An account was reaped."] KilledAccount { - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::AccountId32, }, #[codec(index = 5)] #[doc = "On on-chain remark happened."] Remarked { - sender: ::subxt::ext::sp_core::crypto::AccountId32, - hash: ::subxt::ext::sp_core::H256, + sender: ::subxt::utils::AccountId32, + hash: ::subxt::utils::H256, }, #[codec(index = 6)] #[doc = "On on-chain remark happend called by Root."] - RemarkedByRoot { hash: ::subxt::ext::sp_core::H256 }, + RemarkedByRoot { hash: ::subxt::utils::H256 }, } } #[derive( @@ -21249,8 +21215,8 @@ pub mod api { pub struct NomadBase { pub state: runtime_types::nomad_core::state::NomadState, pub local_domain: ::core::primitive::u32, - pub committed_root: ::subxt::ext::sp_core::H256, - pub updater: ::subxt::ext::sp_core::H160, + pub committed_root: ::subxt::utils::H256, + pub updater: ::subxt::utils::H160, } } pub mod nomad_core { @@ -21296,8 +21262,8 @@ pub mod api { )] pub struct Update { pub home_domain: ::core::primitive::u32, - pub previous_root: ::subxt::ext::sp_core::H256, - pub new_root: ::subxt::ext::sp_core::H256, + pub previous_root: ::subxt::utils::H256, + pub new_root: ::subxt::utils::H256, } } } @@ -21320,7 +21286,7 @@ pub mod api { dispatch { #[codec(compact)] destination_domain: ::core::primitive::u32, - recipient_address: ::subxt::ext::sp_core::H256, + recipient_address: ::subxt::utils::H256, message_body: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< ::core::primitive::u8, >, @@ -21381,29 +21347,29 @@ pub mod api { pub enum Event { #[codec(index = 0)] Dispatch { - message_hash: ::subxt::ext::sp_core::H256, + message_hash: ::subxt::utils::H256, leaf_index: ::core::primitive::u32, destination_and_nonce: ::core::primitive::u64, - committed_root: ::subxt::ext::sp_core::H256, + committed_root: ::subxt::utils::H256, message: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] Update { home_domain: ::core::primitive::u32, - previous_root: ::subxt::ext::sp_core::H256, - new_root: ::subxt::ext::sp_core::H256, + previous_root: ::subxt::utils::H256, + new_root: ::subxt::utils::H256, signature: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 2)] ImproperUpdate { - previous_root: ::subxt::ext::sp_core::H256, - new_root: ::subxt::ext::sp_core::H256, + previous_root: ::subxt::utils::H256, + new_root: ::subxt::utils::H256, signature: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 3)] UpdaterSlashed { - updater: ::subxt::ext::sp_core::H160, - reporter: ::subxt::ext::sp_core::crypto::AccountId32, + updater: ::subxt::utils::H160, + reporter: ::subxt::utils::AccountId32, }, } } @@ -21421,7 +21387,7 @@ pub mod api { PartialEq, )] pub struct LightMerkle { - pub branch: [::subxt::ext::sp_core::H256; 32usize], + pub branch: [::subxt::utils::H256; 32usize], pub count: ::core::primitive::u32, } } @@ -21484,12 +21450,12 @@ pub mod api { pub enum Event { #[codec(index = 0)] NewUpdater { - old_updater: ::subxt::ext::sp_core::H160, - new_updater: ::subxt::ext::sp_core::H160, + old_updater: ::subxt::utils::H160, + new_updater: ::subxt::utils::H160, }, #[codec(index = 1)] FakeSlashed { - reporter: ::subxt::ext::sp_core::crypto::AccountId32, + reporter: ::subxt::utils::AccountId32, }, } } @@ -21666,8 +21632,8 @@ pub mod api { PartialEq, )] pub struct Bag { - pub head: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, - pub tail: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, + pub head: ::core::option::Option<::subxt::utils::AccountId32>, + pub tail: ::core::option::Option<::subxt::utils::AccountId32>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21696,9 +21662,9 @@ pub mod api { PartialEq, )] pub struct Node { - pub id: ::subxt::ext::sp_core::crypto::AccountId32, - pub prev: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, - pub next: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, + pub id: ::subxt::utils::AccountId32, + pub prev: ::core::option::Option<::subxt::utils::AccountId32>, + pub next: ::core::option::Option<::subxt::utils::AccountId32>, pub bag_upper: ::core::primitive::u64, pub score: ::core::primitive::u64, } @@ -21727,8 +21693,8 @@ pub mod api { #[doc = ""] #[doc = "If `dislocated` does not exists, it returns an error."] rebag { - dislocated: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dislocated: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, }, @@ -21742,8 +21708,8 @@ pub mod api { #[doc = "- both nodes are within the same bag,"] #[doc = "- and `origin` has a greater `Score` than `lighter`."] put_in_front_of { - lighter: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + lighter: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, }, @@ -21775,14 +21741,14 @@ pub mod api { #[codec(index = 0)] #[doc = "Moved an account from one bag to another."] Rebagged { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::AccountId32, from: ::core::primitive::u64, to: ::core::primitive::u64, }, #[codec(index = 1)] #[doc = "Updated the score of some account to the given amount."] ScoreUpdated { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::AccountId32, new_score: ::core::primitive::u64, }, } @@ -21829,8 +21795,8 @@ pub mod api { #[doc = "- Origin account is already in memory, so no DB operations for them."] #[doc = "# "] transfer { - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] @@ -21846,8 +21812,8 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call is `root`."] set_balance { - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] @@ -21863,12 +21829,12 @@ pub mod api { #[doc = " assumed to be in the overlay."] #[doc = "# "] force_transfer { - source: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] @@ -21882,8 +21848,8 @@ pub mod api { #[doc = ""] #[doc = "[`transfer`]: struct.Pallet.html#method.transfer"] transfer_keep_alive { - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] @@ -21908,8 +21874,8 @@ pub mod api { #[doc = "- O(1). Just like transfer, but reading the user's transferable balance first."] #[doc = " #"] transfer_all { - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, keep_alive: ::core::primitive::bool, @@ -21919,8 +21885,8 @@ pub mod api { #[doc = ""] #[doc = "Can only be called by ROOT."] force_unreserve { - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, amount: ::core::primitive::u128, @@ -21974,48 +21940,48 @@ pub mod api { #[codec(index = 0)] #[doc = "An account was created with some free balance."] Endowed { - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::AccountId32, free_balance: ::core::primitive::u128, }, #[codec(index = 1)] #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] #[doc = "resulting in an outright loss."] DustLost { - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "Transfer succeeded."] Transfer { - from: ::subxt::ext::sp_core::crypto::AccountId32, - to: ::subxt::ext::sp_core::crypto::AccountId32, + from: ::subxt::utils::AccountId32, + to: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "A balance was set by root."] BalanceSet { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::AccountId32, free: ::core::primitive::u128, reserved: ::core::primitive::u128, }, #[codec(index = 4)] #[doc = "Some balance was reserved (moved from free to reserved)."] Reserved { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 5)] #[doc = "Some balance was unreserved (moved from reserved to free)."] Unreserved { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 6)] #[doc = "Some balance was moved from the reserve of the first account to the second account."] #[doc = "Final argument indicates the destination balance type."] ReserveRepatriated { - from: ::subxt::ext::sp_core::crypto::AccountId32, - to: ::subxt::ext::sp_core::crypto::AccountId32, + from: ::subxt::utils::AccountId32, + to: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, destination_status: runtime_types::frame_support::traits::tokens::misc::BalanceStatus, @@ -22023,19 +21989,19 @@ pub mod api { #[codec(index = 7)] #[doc = "Some amount was deposited (e.g. for transaction fees)."] Deposit { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 8)] #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] Withdraw { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 9)] #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] Slashed { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, } @@ -22152,8 +22118,8 @@ pub mod api { propose_curator { #[codec(compact)] bounty_id: ::core::primitive::u32, - curator: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + curator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] @@ -22210,8 +22176,8 @@ pub mod api { award_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, }, @@ -22332,14 +22298,14 @@ pub mod api { #[doc = "A bounty is awarded to a beneficiary."] BountyAwarded { index: ::core::primitive::u32, - beneficiary: ::subxt::ext::sp_core::crypto::AccountId32, + beneficiary: ::subxt::utils::AccountId32, }, #[codec(index = 4)] #[doc = "A bounty is claimed by beneficiary."] BountyClaimed { index: ::core::primitive::u32, payout: ::core::primitive::u128, - beneficiary: ::subxt::ext::sp_core::crypto::AccountId32, + beneficiary: ::subxt::utils::AccountId32, }, #[codec(index = 5)] #[doc = "A bounty is cancelled."] @@ -22440,8 +22406,8 @@ pub mod api { #[doc = " - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one"] #[doc = "# "] set_members { - new_members: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, - prime: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, + new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, + prime: ::core::option::Option<::subxt::utils::AccountId32>, old_count: ::core::primitive::u32, }, #[codec(index = 1)] @@ -22513,7 +22479,7 @@ pub mod api { #[doc = "- 1 event"] #[doc = "# "] vote { - proposal: ::subxt::ext::sp_core::H256, + proposal: ::subxt::utils::H256, #[codec(compact)] index: ::core::primitive::u32, approve: ::core::primitive::bool, @@ -22552,7 +22518,7 @@ pub mod api { #[doc = "- up to 3 events"] #[doc = "# "] close_old_weight { - proposal_hash: ::subxt::ext::sp_core::H256, + proposal_hash: ::subxt::utils::H256, #[codec(compact)] index: ::core::primitive::u32, #[codec(compact)] @@ -22575,9 +22541,7 @@ pub mod api { #[doc = "* Reads: Proposals"] #[doc = "* Writes: Voting, Proposals, ProposalOf"] #[doc = "# "] - disapprove_proposal { - proposal_hash: ::subxt::ext::sp_core::H256, - }, + disapprove_proposal { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 6)] #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] #[doc = ""] @@ -22612,7 +22576,7 @@ pub mod api { #[doc = "- up to 3 events"] #[doc = "# "] close { - proposal_hash: ::subxt::ext::sp_core::H256, + proposal_hash: ::subxt::utils::H256, #[codec(compact)] index: ::core::primitive::u32, proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, @@ -22675,49 +22639,45 @@ pub mod api { #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] #[doc = "`MemberCount`)."] Proposed { - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::AccountId32, proposal_index: ::core::primitive::u32, - proposal_hash: ::subxt::ext::sp_core::H256, + proposal_hash: ::subxt::utils::H256, threshold: ::core::primitive::u32, }, #[codec(index = 1)] #[doc = "A motion (given hash) has been voted on by given account, leaving"] #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] Voted { - account: ::subxt::ext::sp_core::crypto::AccountId32, - proposal_hash: ::subxt::ext::sp_core::H256, + account: ::subxt::utils::AccountId32, + proposal_hash: ::subxt::utils::H256, voted: ::core::primitive::bool, yes: ::core::primitive::u32, no: ::core::primitive::u32, }, #[codec(index = 2)] #[doc = "A motion was approved by the required threshold."] - Approved { - proposal_hash: ::subxt::ext::sp_core::H256, - }, + Approved { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 3)] #[doc = "A motion was not approved by the required threshold."] - Disapproved { - proposal_hash: ::subxt::ext::sp_core::H256, - }, + Disapproved { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 4)] #[doc = "A motion was executed; result will be `Ok` if it returned without error."] Executed { - proposal_hash: ::subxt::ext::sp_core::H256, + proposal_hash: ::subxt::utils::H256, result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, }, #[codec(index = 5)] #[doc = "A single member did some action; result will be `Ok` if it returned without error."] MemberExecuted { - proposal_hash: ::subxt::ext::sp_core::H256, + proposal_hash: ::subxt::utils::H256, result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, }, #[codec(index = 6)] #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] Closed { - proposal_hash: ::subxt::ext::sp_core::H256, + proposal_hash: ::subxt::utils::H256, yes: ::core::primitive::u32, no: ::core::primitive::u32, }, @@ -22913,7 +22873,7 @@ pub mod api { #[doc = ""] #[doc = "Weight: `O(1)`"] fast_track { - proposal_hash: ::subxt::ext::sp_core::H256, + proposal_hash: ::subxt::utils::H256, voting_period: ::core::primitive::u32, delay: ::core::primitive::u32, }, @@ -22927,9 +22887,7 @@ pub mod api { #[doc = "Emits `Vetoed`."] #[doc = ""] #[doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] - veto_external { - proposal_hash: ::subxt::ext::sp_core::H256, - }, + veto_external { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 9)] #[doc = "Remove a referendum."] #[doc = ""] @@ -22964,8 +22922,8 @@ pub mod api { #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] #[doc = " voted on. Weight is charged as if maximum votes."] delegate { - to: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + to: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, conviction: runtime_types::pallet_democracy::conviction::Conviction, @@ -23001,8 +22959,8 @@ pub mod api { #[doc = ""] #[doc = "Weight: `O(R)` with R number of vote of target."] unlock { - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, }, @@ -23052,8 +23010,8 @@ pub mod api { #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] #[doc = " Weight is calculated for the maximum number of vote."] remove_other_vote { - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, index: ::core::primitive::u32, @@ -23075,7 +23033,7 @@ pub mod api { #[doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] #[doc = " reasonable value)."] blacklist { - proposal_hash: ::subxt::ext::sp_core::H256, + proposal_hash: ::subxt::utils::H256, maybe_ref_index: ::core::option::Option<::core::primitive::u32>, }, #[codec(index = 17)] @@ -23215,30 +23173,28 @@ pub mod api { #[codec(index = 7)] #[doc = "An account has delegated their vote to another account."] Delegated { - who: ::subxt::ext::sp_core::crypto::AccountId32, - target: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::AccountId32, + target: ::subxt::utils::AccountId32, }, #[codec(index = 8)] #[doc = "An account has cancelled a previous delegation operation."] Undelegated { - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::AccountId32, }, #[codec(index = 9)] #[doc = "An external proposal has been vetoed."] Vetoed { - who: ::subxt::ext::sp_core::crypto::AccountId32, - proposal_hash: ::subxt::ext::sp_core::H256, + who: ::subxt::utils::AccountId32, + proposal_hash: ::subxt::utils::H256, until: ::core::primitive::u32, }, #[codec(index = 10)] #[doc = "A proposal_hash has been blacklisted permanently."] - Blacklisted { - proposal_hash: ::subxt::ext::sp_core::H256, - }, + Blacklisted { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 11)] #[doc = "An account has voted in a referendum"] Voted { - voter: ::subxt::ext::sp_core::crypto::AccountId32, + voter: ::subxt::utils::AccountId32, ref_index: ::core::primitive::u32, vote: runtime_types::pallet_democracy::vote::AccountVote< ::core::primitive::u128, @@ -23247,7 +23203,7 @@ pub mod api { #[codec(index = 12)] #[doc = "An account has secconded a proposal"] Seconded { - seconder: ::subxt::ext::sp_core::crypto::AccountId32, + seconder: ::subxt::utils::AccountId32, prop_index: ::core::primitive::u32, }, #[codec(index = 13)] @@ -23415,7 +23371,7 @@ pub mod api { )] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { - # [codec (index = 0)] # [doc = "Submit a solution for the unsigned phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __none__."] # [doc = ""] # [doc = "This submission is checked on the fly. Moreover, this unsigned solution is only"] # [doc = "validated when submitted to the pool from the **local** node. Effectively, this means"] # [doc = "that only active validators can submit this transaction when authoring a block (similar"] # [doc = "to an inherent)."] # [doc = ""] # [doc = "To prevent any incorrect solution (and thus wasted time/weight), this transaction will"] # [doc = "panic if the solution submitted by the validator is invalid in any way, effectively"] # [doc = "putting their authoring reward at risk."] # [doc = ""] # [doc = "No deposit or reward is associated with this submission."] submit_unsigned { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: da_runtime :: NposSolution16 > > , witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } , # [codec (index = 1)] # [doc = "Set a new value for `MinimumUntrustedScore`."] # [doc = ""] # [doc = "Dispatch origin must be aligned with `T::ForceOrigin`."] # [doc = ""] # [doc = "This check can be turned off by setting the value to `None`."] set_minimum_untrusted_score { maybe_next_score : :: core :: option :: Option < runtime_types :: sp_npos_elections :: ElectionScore > , } , # [codec (index = 2)] # [doc = "Set a solution in the queue, to be handed out to the client of this pallet in the next"] # [doc = "call to `ElectionProvider::elect`."] # [doc = ""] # [doc = "This can only be set by `T::ForceOrigin`, and only when the phase is `Emergency`."] # [doc = ""] # [doc = "The solution is not checked for any feasibility and is assumed to be trustworthy, as any"] # [doc = "feasibility check itself can in principle cause the election process to fail (due to"] # [doc = "memory/weight constrains)."] set_emergency_election_result { supports : :: std :: vec :: Vec < (:: subxt :: ext :: sp_core :: crypto :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: ext :: sp_core :: crypto :: AccountId32 > ,) > , } , # [codec (index = 3)] # [doc = "Submit a solution for the signed phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __signed__."] # [doc = ""] # [doc = "The solution is potentially queued, based on the claimed score and processed at the end"] # [doc = "of the signed phase."] # [doc = ""] # [doc = "A deposit is reserved and recorded for the solution. Based on the outcome, the solution"] # [doc = "might be rewarded, slashed, or get all or a part of the deposit back."] submit { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: da_runtime :: NposSolution16 > > , } , # [codec (index = 4)] # [doc = "Trigger the governance fallback."] # [doc = ""] # [doc = "This can only be called when [`Phase::Emergency`] is enabled, as an alternative to"] # [doc = "calling [`Call::set_emergency_election_result`]."] governance_fallback { maybe_max_voters : :: core :: option :: Option < :: core :: primitive :: u32 > , maybe_max_targets : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } + # [codec (index = 0)] # [doc = "Submit a solution for the unsigned phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __none__."] # [doc = ""] # [doc = "This submission is checked on the fly. Moreover, this unsigned solution is only"] # [doc = "validated when submitted to the pool from the **local** node. Effectively, this means"] # [doc = "that only active validators can submit this transaction when authoring a block (similar"] # [doc = "to an inherent)."] # [doc = ""] # [doc = "To prevent any incorrect solution (and thus wasted time/weight), this transaction will"] # [doc = "panic if the solution submitted by the validator is invalid in any way, effectively"] # [doc = "putting their authoring reward at risk."] # [doc = ""] # [doc = "No deposit or reward is associated with this submission."] submit_unsigned { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: da_runtime :: NposSolution16 > > , witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } , # [codec (index = 1)] # [doc = "Set a new value for `MinimumUntrustedScore`."] # [doc = ""] # [doc = "Dispatch origin must be aligned with `T::ForceOrigin`."] # [doc = ""] # [doc = "This check can be turned off by setting the value to `None`."] set_minimum_untrusted_score { maybe_next_score : :: core :: option :: Option < runtime_types :: sp_npos_elections :: ElectionScore > , } , # [codec (index = 2)] # [doc = "Set a solution in the queue, to be handed out to the client of this pallet in the next"] # [doc = "call to `ElectionProvider::elect`."] # [doc = ""] # [doc = "This can only be set by `T::ForceOrigin`, and only when the phase is `Emergency`."] # [doc = ""] # [doc = "The solution is not checked for any feasibility and is assumed to be trustworthy, as any"] # [doc = "feasibility check itself can in principle cause the election process to fail (due to"] # [doc = "memory/weight constrains)."] set_emergency_election_result { supports : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , } , # [codec (index = 3)] # [doc = "Submit a solution for the signed phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __signed__."] # [doc = ""] # [doc = "The solution is potentially queued, based on the claimed score and processed at the end"] # [doc = "of the signed phase."] # [doc = ""] # [doc = "A deposit is reserved and recorded for the solution. Based on the outcome, the solution"] # [doc = "might be rewarded, slashed, or get all or a part of the deposit back."] submit { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: da_runtime :: NposSolution16 > > , } , # [codec (index = 4)] # [doc = "Trigger the governance fallback."] # [doc = ""] # [doc = "This can only be called when [`Phase::Emergency`] is enabled, as an alternative to"] # [doc = "calling [`Call::set_emergency_election_result`]."] governance_fallback { maybe_max_voters : :: core :: option :: Option < :: core :: primitive :: u32 > , maybe_max_targets : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -23490,7 +23446,7 @@ pub mod api { SolutionStored { compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute, - origin: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, + origin: ::core::option::Option<::subxt::utils::AccountId32>, prev_ejected: ::core::primitive::bool, }, #[codec(index = 1)] @@ -23508,13 +23464,13 @@ pub mod api { #[codec(index = 3)] #[doc = "An account has been rewarded for their signed submission being finalized."] Rewarded { - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::AccountId32, value: ::core::primitive::u128, }, #[codec(index = 4)] #[doc = "An account has been slashed for submitting an invalid signed submission."] Slashed { - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::AccountId32, value: ::core::primitive::u128, }, #[codec(index = 5)] @@ -23609,10 +23565,8 @@ pub mod api { )] pub struct ReadySolution { pub supports: runtime_types::sp_core::bounded::bounded_vec::BoundedVec<( - ::subxt::ext::sp_core::crypto::AccountId32, - runtime_types::sp_npos_elections::Support< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + ::subxt::utils::AccountId32, + runtime_types::sp_npos_elections::Support<::subxt::utils::AccountId32>, )>, pub score: runtime_types::sp_npos_elections::ElectionScore, pub compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute, @@ -23627,13 +23581,13 @@ pub mod api { )] pub struct RoundSnapshot { pub voters: ::std::vec::Vec<( - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u64, runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, )>, - pub targets: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub targets: ::std::vec::Vec<::subxt::utils::AccountId32>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23689,7 +23643,7 @@ pub mod api { #[doc = "We assume the maximum weight among all 3 cases: vote_equal, vote_more and vote_less."] #[doc = "# "] vote { - votes: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + votes: ::std::vec::Vec<::subxt::utils::AccountId32>, #[codec(compact)] value: ::core::primitive::u128, }, @@ -23762,8 +23716,8 @@ pub mod api { #[doc = "will go into phragmen, we assume full block for now."] #[doc = "# "] remove_member { - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, slash_bond: ::core::primitive::bool, @@ -23864,10 +23818,8 @@ pub mod api { #[doc = "slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to"] #[doc = "begin with."] NewTerm { - new_members: ::std::vec::Vec<( - ::subxt::ext::sp_core::crypto::AccountId32, - ::core::primitive::u128, - )>, + new_members: + ::std::vec::Vec<(::subxt::utils::AccountId32, ::core::primitive::u128)>, }, #[codec(index = 1)] #[doc = "No (or not enough) candidates existed for this round. This is different from"] @@ -23879,13 +23831,11 @@ pub mod api { #[codec(index = 3)] #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] #[doc = "`EmptyTerm`."] - MemberKicked { - member: ::subxt::ext::sp_core::crypto::AccountId32, - }, + MemberKicked { member: ::subxt::utils::AccountId32 }, #[codec(index = 4)] #[doc = "Someone has renounced their candidacy."] Renounced { - candidate: ::subxt::ext::sp_core::crypto::AccountId32, + candidate: ::subxt::utils::AccountId32, }, #[codec(index = 5)] #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] @@ -23893,13 +23843,13 @@ pub mod api { #[doc = ""] #[doc = "Note that old members and runners-up are also candidates."] CandidateSlashed { - candidate: ::subxt::ext::sp_core::crypto::AccountId32, + candidate: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 6)] #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] SeatHolderSlashed { - seat_holder: ::subxt::ext::sp_core::crypto::AccountId32, + seat_holder: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, } @@ -23969,7 +23919,7 @@ pub mod api { report_equivocation { equivocation_proof: ::std::boxed::Box< runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::ext::sp_core::H256, + ::subxt::utils::H256, ::core::primitive::u32, >, >, @@ -23988,7 +23938,7 @@ pub mod api { report_equivocation_unsigned { equivocation_proof: ::std::boxed::Box< runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::ext::sp_core::H256, + ::subxt::utils::H256, ::core::primitive::u32, >, >, @@ -24178,9 +24128,9 @@ pub mod api { #[doc = "At the end of the session, at least one validator was found to be offline."] SomeOffline { offline: ::std::vec::Vec<( - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, runtime_types::pallet_staking::Exposure< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, ::core::primitive::u128, >, )>, @@ -24302,8 +24252,8 @@ pub mod api { #[doc = " - Writes: Indices Accounts, System Account (recipient)"] #[doc = "# "] transfer { - new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, index: ::core::primitive::u32, @@ -24351,8 +24301,8 @@ pub mod api { #[doc = " - Writes: Indices Accounts, System Account (original owner)"] #[doc = "# "] force_transfer { - new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, index: ::core::primitive::u32, @@ -24418,7 +24368,7 @@ pub mod api { #[codec(index = 0)] #[doc = "A account index was assigned."] IndexAssigned { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::AccountId32, index: ::core::primitive::u32, }, #[codec(index = 1)] @@ -24428,7 +24378,7 @@ pub mod api { #[doc = "A account index has been frozen to its current account ID."] IndexFrozen { index: ::core::primitive::u32, - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::AccountId32, }, } } @@ -24452,8 +24402,8 @@ pub mod api { #[doc = ""] #[doc = "May only be called from `T::AddOrigin`."] add_member { - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, }, @@ -24462,8 +24412,8 @@ pub mod api { #[doc = ""] #[doc = "May only be called from `T::RemoveOrigin`."] remove_member { - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, }, @@ -24474,12 +24424,12 @@ pub mod api { #[doc = ""] #[doc = "Prime membership is *not* passed from `remove` to `add`, if extant."] swap_member { - remove: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + remove: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, - add: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + add: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, }, @@ -24489,7 +24439,7 @@ pub mod api { #[doc = ""] #[doc = "May only be called from `T::ResetOrigin`."] reset_members { - members: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + members: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 4)] #[doc = "Swap out the sending member for some other key `new`."] @@ -24498,8 +24448,8 @@ pub mod api { #[doc = ""] #[doc = "Prime membership is passed from the origin account to `new`, if extant."] change_key { - new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, }, @@ -24508,8 +24458,8 @@ pub mod api { #[doc = ""] #[doc = "May only be called from `T::PrimeOrigin`."] set_prime { - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, }, @@ -24602,8 +24552,7 @@ pub mod api { #[doc = "- Plus Call Weight"] #[doc = "# "] as_multi_threshold_1 { - other_signatories: - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, call: ::std::boxed::Box, }, #[codec(index = 1)] @@ -24654,8 +24603,7 @@ pub mod api { #[doc = "# "] as_multi { threshold: ::core::primitive::u16, - other_signatories: - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, @@ -24700,8 +24648,7 @@ pub mod api { #[doc = "# "] approve_as_multi { threshold: ::core::primitive::u16, - other_signatories: - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, @@ -24737,8 +24684,7 @@ pub mod api { #[doc = "# "] cancel_as_multi { threshold: ::core::primitive::u16, - other_signatories: - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, call_hash: [::core::primitive::u8; 32usize], @@ -24810,26 +24756,26 @@ pub mod api { #[codec(index = 0)] #[doc = "A new multisig operation has begun."] NewMultisig { - approving: ::subxt::ext::sp_core::crypto::AccountId32, - multisig: ::subxt::ext::sp_core::crypto::AccountId32, + approving: ::subxt::utils::AccountId32, + multisig: ::subxt::utils::AccountId32, call_hash: [::core::primitive::u8; 32usize], }, #[codec(index = 1)] #[doc = "A multisig operation has been approved by someone."] MultisigApproval { - approving: ::subxt::ext::sp_core::crypto::AccountId32, + approving: ::subxt::utils::AccountId32, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - multisig: ::subxt::ext::sp_core::crypto::AccountId32, + multisig: ::subxt::utils::AccountId32, call_hash: [::core::primitive::u8; 32usize], }, #[codec(index = 2)] #[doc = "A multisig operation has been executed."] MultisigExecuted { - approving: ::subxt::ext::sp_core::crypto::AccountId32, + approving: ::subxt::utils::AccountId32, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - multisig: ::subxt::ext::sp_core::crypto::AccountId32, + multisig: ::subxt::utils::AccountId32, call_hash: [::core::primitive::u8; 32usize], result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, @@ -24837,10 +24783,10 @@ pub mod api { #[codec(index = 3)] #[doc = "A multisig operation has been cancelled."] MultisigCancelled { - cancelling: ::subxt::ext::sp_core::crypto::AccountId32, + cancelling: ::subxt::utils::AccountId32, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - multisig: ::subxt::ext::sp_core::crypto::AccountId32, + multisig: ::subxt::utils::AccountId32, call_hash: [::core::primitive::u8; 32usize], }, } @@ -24955,8 +24901,8 @@ pub mod api { #[doc = "in which case, the result of this call will likely be the `NoMoreChunks` error from the"] #[doc = "staking system."] unbond { - member_account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] @@ -24994,8 +24940,8 @@ pub mod api { #[doc = ""] #[doc = "If the target is the depositor, the pool will be destroyed."] withdraw_unbonded { - member_account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, num_slashing_spans: ::core::primitive::u32, @@ -25021,16 +24967,16 @@ pub mod api { create { #[codec(compact)] amount: ::core::primitive::u128, - root: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, - nominator: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, - state_toggler: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + state_toggler: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, }, @@ -25044,16 +24990,16 @@ pub mod api { create_with_pool_id { #[codec(compact)] amount: ::core::primitive::u128, - root: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, - nominator: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, - state_toggler: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + state_toggler: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, pool_id: ::core::primitive::u32, @@ -25068,7 +25014,7 @@ pub mod api { #[doc = "account."] nominate { pool_id: ::core::primitive::u32, - validators: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + validators: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 9)] #[doc = "Set a new state for the pool."] @@ -25133,13 +25079,13 @@ pub mod api { update_roles { pool_id: ::core::primitive::u32, new_root: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, new_state_toggler: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, }, #[codec(index = 13)] @@ -25273,13 +25219,13 @@ pub mod api { #[codec(index = 0)] #[doc = "A pool has been created."] Created { - depositor: ::subxt::ext::sp_core::crypto::AccountId32, + depositor: ::subxt::utils::AccountId32, pool_id: ::core::primitive::u32, }, #[codec(index = 1)] #[doc = "A member has became bonded in a pool."] Bonded { - member: ::subxt::ext::sp_core::crypto::AccountId32, + member: ::subxt::utils::AccountId32, pool_id: ::core::primitive::u32, bonded: ::core::primitive::u128, joined: ::core::primitive::bool, @@ -25287,7 +25233,7 @@ pub mod api { #[codec(index = 2)] #[doc = "A payout has been made to a member."] PaidOut { - member: ::subxt::ext::sp_core::crypto::AccountId32, + member: ::subxt::utils::AccountId32, pool_id: ::core::primitive::u32, payout: ::core::primitive::u128, }, @@ -25304,7 +25250,7 @@ pub mod api { #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] #[doc = "requested to be unbonded."] Unbonded { - member: ::subxt::ext::sp_core::crypto::AccountId32, + member: ::subxt::utils::AccountId32, pool_id: ::core::primitive::u32, balance: ::core::primitive::u128, points: ::core::primitive::u128, @@ -25318,7 +25264,7 @@ pub mod api { #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] #[doc = "will be 1."] Withdrawn { - member: ::subxt::ext::sp_core::crypto::AccountId32, + member: ::subxt::utils::AccountId32, pool_id: ::core::primitive::u32, balance: ::core::primitive::u128, points: ::core::primitive::u128, @@ -25338,17 +25284,15 @@ pub mod api { #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] MemberRemoved { pool_id: ::core::primitive::u32, - member: ::subxt::ext::sp_core::crypto::AccountId32, + member: ::subxt::utils::AccountId32, }, #[codec(index = 8)] #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] #[doc = "can never change."] RolesUpdated { - root: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, - state_toggler: - ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, - nominator: - ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, + root: ::core::option::Option<::subxt::utils::AccountId32>, + state_toggler: ::core::option::Option<::subxt::utils::AccountId32>, + nominator: ::core::option::Option<::subxt::utils::AccountId32>, }, #[codec(index = 9)] #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] @@ -25391,9 +25335,8 @@ pub mod api { pub points: ::core::primitive::u128, pub state: runtime_types::pallet_nomination_pools::PoolState, pub member_counter: ::core::primitive::u32, - pub roles: runtime_types::pallet_nomination_pools::PoolRoles< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + pub roles: + runtime_types::pallet_nomination_pools::PoolRoles<::subxt::utils::AccountId32>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -25556,18 +25499,18 @@ pub mod api { #[doc = ""] #[doc = "- `hash`: The hash of the preimage to be removed from the store."] #[doc = "- `len`: The length of the preimage of `hash`."] - unnote_preimage { hash: ::subxt::ext::sp_core::H256 }, + unnote_preimage { hash: ::subxt::utils::H256 }, #[codec(index = 2)] #[doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."] #[doc = ""] #[doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] #[doc = "a user may have paid, and take the control of the preimage out of their hands."] - request_preimage { hash: ::subxt::ext::sp_core::H256 }, + request_preimage { hash: ::subxt::utils::H256 }, #[codec(index = 3)] #[doc = "Clear a previously made request for a preimage."] #[doc = ""] #[doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] - unrequest_preimage { hash: ::subxt::ext::sp_core::H256 }, + unrequest_preimage { hash: ::subxt::utils::H256 }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -25610,13 +25553,13 @@ pub mod api { pub enum Event { #[codec(index = 0)] #[doc = "A preimage has been noted."] - Noted { hash: ::subxt::ext::sp_core::H256 }, + Noted { hash: ::subxt::utils::H256 }, #[codec(index = 1)] #[doc = "A preimage has been requested."] - Requested { hash: ::subxt::ext::sp_core::H256 }, + Requested { hash: ::subxt::utils::H256 }, #[codec(index = 2)] #[doc = "A preimage has ben cleared."] - Cleared { hash: ::subxt::ext::sp_core::H256 }, + Cleared { hash: ::subxt::utils::H256 }, } } #[derive( @@ -25947,14 +25890,14 @@ pub mod api { #[doc = "------------------"] #[doc = "# "] bond { - controller: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + controller: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] value: ::core::primitive::u128, payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, }, #[codec(index = 1)] @@ -26043,8 +25986,8 @@ pub mod api { #[doc = "# "] nominate { targets: ::std::vec::Vec< - ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, >, @@ -26081,7 +26024,7 @@ pub mod api { #[doc = "# "] set_payee { payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, }, #[codec(index = 8)] @@ -26102,8 +26045,8 @@ pub mod api { #[doc = "- Write: Bonded, Ledger New Controller, Ledger Old Controller"] #[doc = "# "] set_controller { - controller: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + controller: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, }, @@ -26185,15 +26128,14 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin must be Root."] set_invulnerables { - invulnerables: - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 15)] #[doc = "Force a current staker to become completely unstaked, immediately."] #[doc = ""] #[doc = "The dispatch origin must be Root."] force_unstake { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: ::subxt::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 16)] @@ -26240,7 +26182,7 @@ pub mod api { #[doc = " Paying even a dead controller is cheaper weight-wise. We don't do any refunds here."] #[doc = "# "] payout_stakers { - validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + validator_stash: ::subxt::utils::AccountId32, era: ::core::primitive::u32, }, #[codec(index = 19)] @@ -26271,7 +26213,7 @@ pub mod api { #[doc = ""] #[doc = "Refunds the transaction fees upon successful execution."] reap_stash { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: ::subxt::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 21)] @@ -26288,8 +26230,8 @@ pub mod api { #[doc = "block any further nominations."] kick { who: ::std::vec::Vec< - ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, >, @@ -26365,14 +26307,14 @@ pub mod api { #[doc = "This can be helpful if bond requirements are updated, and we need to remove old users"] #[doc = "who do not satisfy these requirements."] chill_other { - controller: ::subxt::ext::sp_core::crypto::AccountId32, + controller: ::subxt::utils::AccountId32, }, #[codec(index = 24)] #[doc = "Force a validator to have at least the minimum commission. This will not affect a"] #[doc = "validator who already has a commission greater than or equal to the minimum. Any account"] #[doc = "can call this."] force_apply_min_commission { - validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + validator_stash: ::subxt::utils::AccountId32, }, #[codec(index = 25)] #[doc = "Sets the minimum amount of commission that each validators must maintain."] @@ -26510,20 +26452,20 @@ pub mod api { #[codec(index = 1)] #[doc = "The nominator has been rewarded by this amount."] Rewarded { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "A staker (validator or nominator) has been slashed by the given amount."] Slashed { - staker: ::subxt::ext::sp_core::crypto::AccountId32, + staker: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "A slash for the given validator, for the given percentage of their stake, at the given"] #[doc = "era as been reported."] SlashReported { - validator: ::subxt::ext::sp_core::crypto::AccountId32, + validator: ::subxt::utils::AccountId32, fraction: runtime_types::sp_arithmetic::per_things::Perbill, slash_era: ::core::primitive::u32, }, @@ -26542,46 +26484,44 @@ pub mod api { #[doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] #[doc = "it will not be emitted for staking rewards when they are added to stake."] Bonded { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 7)] #[doc = "An account has unbonded this amount."] Unbonded { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 8)] #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] #[doc = "from the unlocking queue."] Withdrawn { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 9)] #[doc = "A nominator has been kicked from a validator."] Kicked { - nominator: ::subxt::ext::sp_core::crypto::AccountId32, - stash: ::subxt::ext::sp_core::crypto::AccountId32, + nominator: ::subxt::utils::AccountId32, + stash: ::subxt::utils::AccountId32, }, #[codec(index = 10)] #[doc = "The election failed. No new era is planned."] StakingElectionFailed, #[codec(index = 11)] #[doc = "An account has stopped participating as either a validator or nominator."] - Chilled { - stash: ::subxt::ext::sp_core::crypto::AccountId32, - }, + Chilled { stash: ::subxt::utils::AccountId32 }, #[codec(index = 12)] #[doc = "The stakers' rewards are getting paid."] PayoutStarted { era_index: ::core::primitive::u32, - validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + validator_stash: ::subxt::utils::AccountId32, }, #[codec(index = 13)] #[doc = "A validator has set their preferences."] ValidatorPrefsSet { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: ::subxt::utils::AccountId32, prefs: runtime_types::pallet_staking::ValidatorPrefs, }, #[codec(index = 14)] @@ -26702,7 +26642,7 @@ pub mod api { )] pub struct Nominations { pub targets: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::AccountId32, >, pub submitted_in: ::core::primitive::u32, pub suppressed: ::core::primitive::bool, @@ -26736,7 +26676,7 @@ pub mod api { PartialEq, )] pub struct StakingLedger { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::AccountId32, #[codec(compact)] pub total: ::core::primitive::u128, #[codec(compact)] @@ -26846,8 +26786,8 @@ pub mod api { #[doc = "- One DB change."] #[doc = "# "] set_key { - new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, }, @@ -26864,8 +26804,8 @@ pub mod api { #[doc = "- Weight of derivative `call` execution + 10,000."] #[doc = "# "] sudo_as { - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, call: ::std::boxed::Box, @@ -26904,8 +26844,7 @@ pub mod api { #[codec(index = 1)] #[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."] KeyChanged { - old_sudoer: - ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, + old_sudoer: ::core::option::Option<::subxt::utils::AccountId32>, }, #[codec(index = 2)] #[doc = "A sudo just took place. \\[result\\]"] @@ -26990,8 +26929,8 @@ pub mod api { #[doc = "# "] report_awesome { reason: ::std::vec::Vec<::core::primitive::u8>, - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, }, @@ -27015,7 +26954,7 @@ pub mod api { #[doc = "- DbReads: `Tips`, `origin account`"] #[doc = "- DbWrites: `Reasons`, `Tips`, `origin account`"] #[doc = "# "] - retract_tip { hash: ::subxt::ext::sp_core::H256 }, + retract_tip { hash: ::subxt::utils::H256 }, #[codec(index = 2)] #[doc = "Give a tip for something new; no finder's fee will be taken."] #[doc = ""] @@ -27041,8 +26980,8 @@ pub mod api { #[doc = "# "] tip_new { reason: ::std::vec::Vec<::core::primitive::u8>, - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] @@ -27074,7 +27013,7 @@ pub mod api { #[doc = "- DbWrites: `Tips`"] #[doc = "# "] tip { - hash: ::subxt::ext::sp_core::H256, + hash: ::subxt::utils::H256, #[codec(compact)] tip_value: ::core::primitive::u128, }, @@ -27095,7 +27034,7 @@ pub mod api { #[doc = "- DbReads: `Tips`, `Tippers`, `tip finder`"] #[doc = "- DbWrites: `Reasons`, `Tips`, `Tippers`, `tip finder`"] #[doc = "# "] - close_tip { hash: ::subxt::ext::sp_core::H256 }, + close_tip { hash: ::subxt::utils::H256 }, #[codec(index = 5)] #[doc = "Remove and slash an already-open tip."] #[doc = ""] @@ -27109,7 +27048,7 @@ pub mod api { #[doc = " `T` is charged as upper bound given by `ContainsLengthBound`."] #[doc = " The actual cost depends on the implementation of `T::Tippers`."] #[doc = "# "] - slash_tip { hash: ::subxt::ext::sp_core::H256 }, + slash_tip { hash: ::subxt::utils::H256 }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -27152,31 +27091,25 @@ pub mod api { pub enum Event { #[codec(index = 0)] #[doc = "A new tip suggestion has been opened."] - NewTip { - tip_hash: ::subxt::ext::sp_core::H256, - }, + NewTip { tip_hash: ::subxt::utils::H256 }, #[codec(index = 1)] #[doc = "A tip suggestion has reached threshold and is closing."] - TipClosing { - tip_hash: ::subxt::ext::sp_core::H256, - }, + TipClosing { tip_hash: ::subxt::utils::H256 }, #[codec(index = 2)] #[doc = "A tip suggestion has been closed."] TipClosed { - tip_hash: ::subxt::ext::sp_core::H256, - who: ::subxt::ext::sp_core::crypto::AccountId32, + tip_hash: ::subxt::utils::H256, + who: ::subxt::utils::AccountId32, payout: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "A tip suggestion has been retracted."] - TipRetracted { - tip_hash: ::subxt::ext::sp_core::H256, - }, + TipRetracted { tip_hash: ::subxt::utils::H256 }, #[codec(index = 4)] #[doc = "A tip suggestion has been slashed."] TipSlashed { - tip_hash: ::subxt::ext::sp_core::H256, - finder: ::subxt::ext::sp_core::crypto::AccountId32, + tip_hash: ::subxt::utils::H256, + finder: ::subxt::utils::AccountId32, deposit: ::core::primitive::u128, }, } @@ -27217,7 +27150,7 @@ pub mod api { #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] #[doc = "has been paid by `who`."] TransactionFeePaid { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::AccountId32, actual_fee: ::core::primitive::u128, tip: ::core::primitive::u128, }, @@ -27274,8 +27207,8 @@ pub mod api { propose_spend { #[codec(compact)] value: ::core::primitive::u128, - beneficiary: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, }, @@ -27320,8 +27253,8 @@ pub mod api { spend { #[codec(compact)] amount: ::core::primitive::u128, - beneficiary: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >, }, @@ -27398,7 +27331,7 @@ pub mod api { Awarded { proposal_index: ::core::primitive::u32, award: ::core::primitive::u128, - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::AccountId32, }, #[codec(index = 3)] #[doc = "A proposal was rejected; funds were slashed."] @@ -27424,7 +27357,7 @@ pub mod api { SpendApproved { proposal_index: ::core::primitive::u32, amount: ::core::primitive::u128, - beneficiary: ::subxt::ext::sp_core::crypto::AccountId32, + beneficiary: ::subxt::utils::AccountId32, }, #[codec(index = 8)] #[doc = "The inactive funds of the pallet have been updated."] @@ -27631,24 +27564,6 @@ pub mod api { Eq, PartialEq, )] - pub struct H160(pub [::core::primitive::u8; 20usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct H256(pub [::core::primitive::u8; 32usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] pub struct U256(pub [::core::primitive::u64; 4usize]); } pub mod sp_arithmetic { @@ -27938,15 +27853,6 @@ pub mod api { Eq, PartialEq, )] - pub struct AccountId32(pub [::core::primitive::u8; 32usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]); } pub mod ecdsa { @@ -28711,29 +28617,6 @@ pub mod api { } } } - pub mod multiaddress { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum MultiAddress<_0, _1> { - #[codec(index = 0)] - Id(_0), - #[codec(index = 1)] - Index(#[codec(compact)] _1), - #[codec(index = 2)] - Raw(::std::vec::Vec<::core::primitive::u8>), - #[codec(index = 3)] - Address32([::core::primitive::u8; 32usize]), - #[codec(index = 4)] - Address20([::core::primitive::u8; 20usize]), - } - } pub mod traits { use super::runtime_types; #[derive( diff --git a/avail-subxt/src/lib.rs b/avail-subxt/src/lib.rs index eb128b3da..c8b8dc5c7 100644 --- a/avail-subxt/src/lib.rs +++ b/avail-subxt/src/lib.rs @@ -1,15 +1,13 @@ use anyhow::Result; use structopt::StructOpt; use subxt::{ - ext::{ - sp_core::H256, - sp_runtime::{traits::BlakeTwo256, AccountId32, MultiAddress, MultiSignature}, - }, + config::substrate::BlakeTwo256, + utils::{AccountId32, MultiAddress, MultiSignature, H256}, Config, OnlineClient, }; pub mod primitives; -use primitives::{AppUncheckedExtrinsic, AvailExtrinsicParams, Header}; +use primitives::{AvailExtrinsicParams, Header}; #[derive(Clone, Debug, Default)] pub struct AvailConfig; @@ -25,13 +23,12 @@ pub type SignaturePayload = (Address, Signature, AvailExtrinsicParams); impl Config for AvailConfig { type AccountId = AccountId; type Address = Address; - type BlockNumber = u32; // type Extrinsic = AvailExtrinsic; // type Extrinsic = Vec; - type Extrinsic = AppUncheckedExtrinsic; + // type Extrinsic = AppUncheckedExtrinsic; type ExtrinsicParams = AvailExtrinsicParams; type Hash = H256; - type Hashing = BlakeTwo256; + type Hasher = BlakeTwo256; type Header = Header; type Index = u32; type Signature = Signature; @@ -42,7 +39,9 @@ pub mod avail { pub type Client = subxt::OnlineClient; pub type TxProgress = subxt::tx::TxProgress; - pub type TxEvents = subxt::tx::TxEvents; + pub type AppUncheckedExtrinsic = + crate::primitives::app_unchecked_extrinsic::AppUncheckedExtrinsic; + pub type PairSigner = subxt::tx::PairSigner; pub type RuntimeCall = api::runtime_types::da_runtime::RuntimeCall; pub type Bounded = api::runtime_types::frame_support::traits::preimages::Bounded; diff --git a/avail-subxt/src/primitives/app_unchecked_extrinsic.rs b/avail-subxt/src/primitives/app_unchecked_extrinsic.rs index bc53896e9..2ac433f0d 100644 --- a/avail-subxt/src/primitives/app_unchecked_extrinsic.rs +++ b/avail-subxt/src/primitives/app_unchecked_extrinsic.rs @@ -1,13 +1,17 @@ use std::mem::size_of; use codec::{Compact, Decode, Encode, EncodeLike, Error, Input}; -use parity_util_mem::MallocSizeOf; -use serde::{de::Error as _, Deserialize, Deserializer, Serialize, Serializer}; -use subxt::ext::{sp_core::bytes, sp_runtime::traits::Extrinsic}; +use serde::{Deserialize, Serialize}; +use subxt::rpc::types::ChainBlockExtrinsic; use crate::{Call, SignaturePayload}; -/// Current version of the [`AppUncheckedExtrinsic`] format. -const EXTRINSIC_VERSION: u8 = 4; + +/// Current version of the [`UncheckedExtrinsic`] encoded format. +/// +/// This version needs to be bumped if the encoded representation changes. +/// It ensures that if the representation is changed and the format is not known, +/// the decoding fails. +const EXTRINSIC_FORMAT_VERSION: u8 = 4; #[derive(Debug, Clone, PartialEq, Eq)] pub struct AppUncheckedExtrinsic { @@ -19,29 +23,50 @@ pub struct AppUncheckedExtrinsic { pub function: Call, } +impl AppUncheckedExtrinsic { + fn encode_vec_compatible(inner: &[u8]) -> Vec { + let compact_len = codec::Compact::(inner.len() as u32); + + // Allocate the output buffer with the correct length + let mut output = Vec::with_capacity(compact_len.size_hint() + inner.len()); + + compact_len.encode_to(&mut output); + output.extend(inner); + + output + } +} + impl Decode for AppUncheckedExtrinsic { fn decode(input: &mut I) -> Result { // This is a little more complicated than usual since the binary format must be compatible - // with substrate's generic `Vec` type. Basically this just means accepting that there - // will be a prefix of vector length (we don't need - // to use this). - let _length_do_not_remove_me_see_above: Compact = Decode::decode(input)?; + // with SCALE's generic `Vec` type. Basically this just means accepting that there + // will be a prefix of vector length. + let expected_length: Compact = Decode::decode(input)?; + let before_length = input.remaining_len()?; let version = input.read_byte()?; let is_signed = version & 0b1000_0000 != 0; let version = version & 0b0111_1111; - if version != EXTRINSIC_VERSION { + if version != EXTRINSIC_FORMAT_VERSION { return Err("Invalid transaction version".into()); } - let signature = if is_signed { - Some(SignaturePayload::decode(input)?) - } else { - None - }; + let signature = is_signed.then(|| Decode::decode(input)).transpose()?; let function = Decode::decode(input)?; + if let Some((before_length, after_length)) = input + .remaining_len()? + .and_then(|a| before_length.map(|b| (b, a))) + { + let length = before_length.saturating_sub(after_length); + + if length != expected_length.0 as usize { + return Err("Invalid length prefix".into()); + } + } + Ok(Self { signature, function, @@ -56,59 +81,47 @@ impl Encode for AppUncheckedExtrinsic { // 1 byte version id. match self.signature.as_ref() { Some(s) => { - tmp.push(EXTRINSIC_VERSION | 0b1000_0000); + tmp.push(EXTRINSIC_FORMAT_VERSION | 0b1000_0000); s.encode_to(&mut tmp); }, None => { - tmp.push(EXTRINSIC_VERSION & 0b0111_1111); + tmp.push(EXTRINSIC_FORMAT_VERSION & 0b0111_1111); }, } self.function.encode_to(&mut tmp); - let compact_len = codec::Compact::(tmp.len() as u32); - - // Allocate the output buffer with the correct length - let mut output = Vec::with_capacity(compact_len.size_hint() + tmp.len()); - - compact_len.encode_to(&mut output); - output.extend(tmp); - - output + Self::encode_vec_compatible(&tmp) } } impl EncodeLike for AppUncheckedExtrinsic {} -impl<'a> Deserialize<'a> for AppUncheckedExtrinsic { - fn deserialize(deserializer: D) -> Result +impl Serialize for AppUncheckedExtrinsic { + fn serialize(&self, s: S) -> Result where - D: Deserializer<'a>, + S: ::serde::Serializer, { - let encoded = bytes::deserialize(deserializer)?; - AppUncheckedExtrinsic::decode(&mut &encoded[..]) - .map_err(|codec_err| D::Error::custom(format!("Invalid decoding: {:?}", codec_err))) + let encoded = self.encode(); + sp_core::bytes::serialize(&encoded, s) } } -impl Serialize for AppUncheckedExtrinsic { - fn serialize(&self, serializer: S) -> Result +impl<'a> Deserialize<'a> for AppUncheckedExtrinsic { + fn deserialize(de: D) -> Result where - S: Serializer, + D: serde::Deserializer<'a>, { - let encoded = self.encode(); - bytes::serialize(&encoded, serializer) + let r = sp_core::bytes::deserialize(de)?; + Decode::decode(&mut &r[..]) + .map_err(|e| serde::de::Error::custom(format!("Decode error: {}", e))) } } -impl Extrinsic for AppUncheckedExtrinsic { - type Call = Call; - type SignaturePayload = SignaturePayload; - - fn is_signed(&self) -> Option { Some(self.signature.is_some()) } -} +impl TryFrom for AppUncheckedExtrinsic { + type Error = Error; -impl MallocSizeOf for AppUncheckedExtrinsic { - fn size_of(&self, _ops: &mut parity_util_mem::MallocSizeOfOps) -> usize { - size_of::() + size_of::() + fn try_from(extrinsic: ChainBlockExtrinsic) -> Result { + let fixed_encoded = Self::encode_vec_compatible(&extrinsic.0); + ::decode(&mut fixed_encoded.as_slice()) } } diff --git a/avail-subxt/src/primitives/extrinsic_params.rs b/avail-subxt/src/primitives/extrinsic_params.rs index 4aebe290c..bc493210f 100644 --- a/avail-subxt/src/primitives/extrinsic_params.rs +++ b/avail-subxt/src/primitives/extrinsic_params.rs @@ -1,8 +1,8 @@ use codec::{Compact, Decode, Encode, Error, Input, Output}; use serde::{Deserialize, Serialize}; use subxt::{ - ext::sp_core::H256, - tx::{Era, ExtrinsicParams}, + config::{extrinsic_params::Era, ExtrinsicParams}, + utils::H256, }; use crate::api::runtime_types::da_primitives::asdr::AppId; diff --git a/avail-subxt/src/primitives/header.rs b/avail-subxt/src/primitives/header.rs index 5eebf207b..722190535 100644 --- a/avail-subxt/src/primitives/header.rs +++ b/avail-subxt/src/primitives/header.rs @@ -1,14 +1,13 @@ use core::marker::PhantomData; use codec::{Decode, Encode}; -use parity_util_mem::MallocSizeOf; use serde::{Deserialize, Deserializer, Serialize}; -use subxt::ext::{ - sp_core::H256, - sp_runtime::{ - traits::{BlakeTwo256, Hash, Header as SPHeader}, - Digest as XtDigest, DigestItem as XtDigestItem, +use subxt::{ + config::{ + substrate::{BlakeTwo256, Digest, DigestItem}, + Hasher, Header as SPHeader, }, + utils::H256, }; use crate::api::runtime_types::{ @@ -25,7 +24,7 @@ pub struct Header { pub number: u32, pub state_root: H256, pub extrinsics_root: H256, - pub digest: XtDigest, + pub digest: Digest, pub extension: HeaderExtension, } @@ -37,59 +36,13 @@ impl Header { } } -impl MallocSizeOf for Header { - fn size_of(&self, ops: &mut parity_util_mem::MallocSizeOfOps) -> usize { - self.parent_hash.size_of(ops) - + self.number.size_of(ops) - + self.state_root.size_of(ops) - + self.extrinsics_root.size_of(ops) - + self.digest.size_of(ops) - } -} - impl SPHeader for Header { - type Hash = H256; - type Hashing = BlakeTwo256; + type Hasher = BlakeTwo256; type Number = u32; - fn new( - number: Self::Number, - extrinsics_root: Self::Hash, - state_root: Self::Hash, - parent_hash: Self::Hash, - digest: XtDigest, - ) -> Self { - Self { - parent_hash, - number, - state_root, - extrinsics_root, - digest, - extension: HeaderExtension::V1(Default::default()), - } - } - - fn number(&self) -> &Self::Number { &self.number } - - fn set_number(&mut self, number: Self::Number) { self.number = number; } - - fn extrinsics_root(&self) -> &Self::Hash { &self.extrinsics_root } - - fn set_extrinsics_root(&mut self, root: Self::Hash) { self.extrinsics_root = root; } - - fn state_root(&self) -> &Self::Hash { &self.state_root } - - fn set_state_root(&mut self, root: Self::Hash) { self.state_root = root; } - - fn parent_hash(&self) -> &Self::Hash { &self.parent_hash } - - fn set_parent_hash(&mut self, hash: Self::Hash) { self.parent_hash = hash; } - - fn digest(&self) -> &XtDigest { &self.digest } - - fn digest_mut(&mut self) -> &mut XtDigest { &mut self.digest } + fn number(&self) -> Self::Number { self.number } - fn hash(&self) -> Self::Hash { ::hash_of(self) } + fn hash(&self) -> ::Output { Self::Hasher::hash_of(self) } } fn number_from_hex<'de, D>(deserializer: D) -> Result @@ -118,8 +71,8 @@ where } } -impl From for ApiDigest { - fn from(d: XtDigest) -> Self { +impl From for ApiDigest { + fn from(d: Digest) -> Self { let logs = d .logs .into_iter() @@ -129,14 +82,14 @@ impl From for ApiDigest { } } -impl From for ApiDigestItem { - fn from(di: XtDigestItem) -> Self { +impl From for ApiDigestItem { + fn from(di: DigestItem) -> Self { match di { - XtDigestItem::PreRuntime(id, data) => ApiDigestItem::PreRuntime(id, data), - XtDigestItem::Consensus(id, data) => ApiDigestItem::Consensus(id, data), - XtDigestItem::Seal(id, data) => ApiDigestItem::Seal(id, data), - XtDigestItem::Other(data) => ApiDigestItem::Other(data), - XtDigestItem::RuntimeEnvironmentUpdated => ApiDigestItem::RuntimeEnvironmentUpdated, + DigestItem::PreRuntime(id, data) => ApiDigestItem::PreRuntime(id, data), + DigestItem::Consensus(id, data) => ApiDigestItem::Consensus(id, data), + DigestItem::Seal(id, data) => ApiDigestItem::Seal(id, data), + DigestItem::Other(data) => ApiDigestItem::Other(data), + DigestItem::RuntimeEnvironmentUpdated => ApiDigestItem::RuntimeEnvironmentUpdated, } } } diff --git a/base/Cargo.toml b/base/Cargo.toml new file mode 100644 index 000000000..456bda8f4 --- /dev/null +++ b/base/Cargo.toml @@ -0,0 +1,30 @@ +[package] +name = "avail-base" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +# Our crates +da-primitives = { version = "0.4", default-features = false } +kate = { version = "0.7", default-features = false } + +# Substrate related +substrate-prometheus-endpoint = { version = "0.10.0-dev", optional = true } +sp-std = { version = "5.0.0", default-features = false } + +# 3rd-party +log = "0.4.17" +once_cell = { version = "1.17.1", optional = true } + + +[features] +default = ["std"] +std = [ + "once_cell", + "substrate-prometheus-endpoint", + "sp-std/std", + "da-primitives/std", + "kate/std" +] diff --git a/base/src/lib.rs b/base/src/lib.rs new file mode 100644 index 000000000..ccd9579fa --- /dev/null +++ b/base/src/lib.rs @@ -0,0 +1,4 @@ +#![cfg_attr(not(feature = "std"), no_std)] + +#[cfg(feature = "std")] +pub mod metrics; diff --git a/base/src/metrics.rs b/base/src/metrics.rs new file mode 100644 index 000000000..04226f000 --- /dev/null +++ b/base/src/metrics.rs @@ -0,0 +1,69 @@ +use once_cell::sync::OnceCell; +use substrate_prometheus_endpoint::{ + exponential_buckets, register, Histogram, HistogramOpts, Opts, PrometheusError, Registry, +}; + +const LOG_TARGET: &str = "avail::base::metrics"; +pub static AVAIL_METRICS: OnceCell = OnceCell::new(); + +pub mod avail; +pub mod general; +pub mod kate; +pub use avail::AvailMetrics; +pub mod adapter; +pub use adapter::{MetricAdapter, RPCMetricAdapter}; +use sp_std::fmt::Display; + +/// Creates an histogram using exponential buckets +fn exp_histogram + Display + Clone>( + registry: &Registry, + name: S, + help: S, + start: f64, + width: f64, + count: usize, +) -> Result { + let histogram = Histogram::with_opts(HistogramOpts { + common_opts: Opts::new(name.clone(), help), + buckets: exponential_buckets(start, width, count)?, + })?; + register(histogram.clone(), registry)?; + log::trace!( + target: LOG_TARGET, + "Added exponential metric `{0}` to prometheus", + name + ); + + Ok(histogram) +} + +/// Creates an histogram using linear buckets +fn linear_histogram + Display + Clone>( + registry: &Registry, + name: S, + help: S, + start: f64, + width: f64, + count: usize, +) -> Result { + let histogram = Histogram::with_opts(HistogramOpts { + common_opts: Opts::new(name.clone(), help), + buckets: linear_buckets(start, width, count), + })?; + register(histogram.clone(), registry)?; + log::trace!( + target: LOG_TARGET, + "Added linear metric `{0}` to prometheus", + name + ); + + Ok(histogram) +} + +// NOTE: `linear_buckets` exists on `prometheus` library but it is not exported by +// `prometheus-endpoint` O_o! +fn linear_buckets(start: f64, width: f64, count: usize) -> Vec { + (0..count) + .map(|step| start + width * (step as f64)) + .collect() +} diff --git a/base/src/metrics/adapter.rs b/base/src/metrics/adapter.rs new file mode 100644 index 000000000..7d3076a9b --- /dev/null +++ b/base/src/metrics/adapter.rs @@ -0,0 +1,92 @@ +use kate::{metrics::Metrics, BlockDimensions}; +use sp_std::time::Duration; + +use crate::metrics::AVAIL_METRICS; + +/// Helper macro to implement methods from `MetricAdapter`. +macro_rules! may_observe { + ($($section: tt, $metric:tt, $observation:expr),+) => { + if let Some(avail) = AVAIL_METRICS.get() { + observe!(avail, $($section, $metric, $observation),+) + } + }; + } + +/// Variadic macro to support multiple pairs of `metric` and `observation` +macro_rules! observe { + ($avail: tt, $section:tt, $metric:tt, $observation: expr) => { + $avail.$section.$metric.observe($observation as f64) + }; + + ($avail: tt, $section:tt, $metric:tt, $observation: expr, $($s:tt, $m:tt, $o: expr),+) => {{ + $avail.$section.$metric.observe($observation as f64); + observe!($avail, $($s, $m, $o),+) + }}; + } + +/// Adapter which implements `Metrics` using `AVAIL_METRIC` signleton. +pub struct MetricAdapter {} + +impl Metrics for MetricAdapter { + fn extended_block_time(&self, elapsed: Duration) { + may_observe!(kate, extend_block_time, elapsed.as_micros()); + } + + fn preparation_block_time(&self, elapsed: Duration) { + may_observe!(kate, preparation_block_time, elapsed.as_micros()); + } + + fn commitment_build_time(&self, elapsed: Duration) { + may_observe!(kate, commitment_time, elapsed.as_micros()); + } + + fn proof_build_time(&self, elapsed: Duration, cells: u32) { + #[rustfmt::skip] + may_observe!( + kate, proof_build_time, elapsed.as_micros(), + kate, proof_cells, cells + ); + } + + fn block_dims_and_size(&self, block_dims: &BlockDimensions, block_len: u32) { + #[rustfmt::skip] + may_observe!( + general, block_dims_rows, block_dims.rows.0, + general, block_dims_cols, block_dims.cols.0, + general, block_len, block_len + ); + } +} + +pub struct RPCMetricAdapter {} + +impl Metrics for RPCMetricAdapter { + fn extended_block_time(&self, elapsed: Duration) { + may_observe!(rpc, extend_block_time, elapsed.as_micros()); + } + + fn preparation_block_time(&self, elapsed: Duration) { + may_observe!(rpc, preparation_block_time, elapsed.as_micros()); + } + + fn commitment_build_time(&self, elapsed: Duration) { + may_observe!(rpc, commitment_time, elapsed.as_micros()); + } + + fn proof_build_time(&self, elapsed: Duration, cells: u32) { + #[rustfmt::skip] + may_observe!( + rpc, proof_build_time, elapsed.as_micros(), + rpc, proof_cells, cells + ); + } + + fn block_dims_and_size(&self, block_dims: &BlockDimensions, block_len: u32) { + #[rustfmt::skip] + may_observe!( + general, block_dims_rows, block_dims.rows.0, + general, block_dims_cols, block_dims.cols.0, + general, block_len, block_len + ); + } +} diff --git a/base/src/metrics/avail.rs b/base/src/metrics/avail.rs new file mode 100644 index 000000000..160aa5099 --- /dev/null +++ b/base/src/metrics/avail.rs @@ -0,0 +1,26 @@ +use substrate_prometheus_endpoint::{PrometheusError, Registry}; + +use crate::metrics::{general::GeneralMetrics, kate::KateMetrics, LOG_TARGET}; + +/// Avail metrics. +pub struct AvailMetrics { + pub kate: KateMetrics, + pub general: GeneralMetrics, + pub rpc: KateMetrics, +} + +impl AvailMetrics { + /// Creates and registries Avail Metrics. + pub fn new(registry: &Registry) -> Result { + let kate = KateMetrics::new("kate", registry)?; + let general = GeneralMetrics::new(registry)?; + let rpc = KateMetrics::new("rpc", registry)?; + + log::info!( + target: LOG_TARGET, + "Prometheus metrics extended with avail metrics" + ); + + Ok(Self { kate, general, rpc }) + } +} diff --git a/base/src/metrics/general.rs b/base/src/metrics/general.rs new file mode 100644 index 000000000..12d2790c9 --- /dev/null +++ b/base/src/metrics/general.rs @@ -0,0 +1,38 @@ +use substrate_prometheus_endpoint::{Histogram, PrometheusError, Registry}; + +use crate::metrics::exp_histogram; + +pub struct GeneralMetrics { + pub block_dims_rows: Histogram, + pub block_dims_cols: Histogram, + pub block_len: Histogram, +} + +impl GeneralMetrics { + pub fn new(registry: &Registry) -> Result { + let block_dims_rows = exp_histogram( + registry, + "avail_block_dims_rows", + "Block dimension row", + 32.0, + 2.0, + 5, + )?; + let block_dims_cols = exp_histogram( + registry, + "avail_block_dims_cols", + "Block dimension col", + 32.0, + 2.0, + 5, + )?; + // @TODO Define buckets properly + let block_len = exp_histogram(registry, "avail_block_len", "Block length", 0.001, 4.0, 9)?; + + Ok(Self { + block_dims_cols, + block_dims_rows, + block_len, + }) + } +} diff --git a/base/src/metrics/kate.rs b/base/src/metrics/kate.rs new file mode 100644 index 000000000..a7410a578 --- /dev/null +++ b/base/src/metrics/kate.rs @@ -0,0 +1,64 @@ +use substrate_prometheus_endpoint::{Histogram, PrometheusError, Registry}; + +use crate::metrics::linear_histogram; + +pub struct KateMetrics { + pub extend_block_time: Histogram, + pub preparation_block_time: Histogram, + pub commitment_time: Histogram, + pub proof_build_time: Histogram, + pub proof_cells: Histogram, +} + +impl KateMetrics { + pub fn new(section: &str, registry: &Registry) -> Result { + let extend_block_time = linear_histogram( + registry, + format!("avail_{section}_extend_block_time"), + "Duration in microseconds of the block extension process".to_owned(), + 100.0, + 100.0, + 20, + )?; + let preparation_block_time = linear_histogram( + registry, + format!("avail_{section}_preparation_block_time"), + "Duration in microseconds of the whole block preparation process".to_owned(), + 100.0, + 100.0, + 20, + )?; + let commitment_time = linear_histogram( + registry, + format!("avail_{section}_commitment_time"), + "Duration in microseconds of the kate commitment".to_owned(), + 1000.0, + 250.0, + 16, + )?; + let proof_build_time = linear_histogram( + registry, + format!("avail_{section}_proof_build_time"), + "Duration in microseconds of the kate proof".to_owned(), + 1000.0, + 250.0, + 16, + )?; + let proof_cells = linear_histogram( + registry, + format!("avail_{section}_proof_cells"), + "Number of cells per kate proof".to_owned(), + 1000.0, + 250.0, + 16, + )?; + + Ok(Self { + extend_block_time, + preparation_block_time, + commitment_time, + proof_build_time, + proof_cells, + }) + } +} diff --git a/fuzzing/Cargo.toml b/fuzzing/Cargo.toml index a394f9f88..2df413a4d 100644 --- a/fuzzing/Cargo.toml +++ b/fuzzing/Cargo.toml @@ -8,7 +8,7 @@ edition = "2021" [dependencies] afl = "*" kate-recovery = "0.8" -kate = "0.6" +kate = "0.7" da-primitives = "0.4" hex-literal = "0.3.1" diff --git a/node/Cargo.toml b/node/Cargo.toml index f5f3af9f9..b50aee728 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -17,9 +17,10 @@ targets = ["x86_64-unknown-linux-gnu"] name = "data-avail" [dependencies] +avail-base = { path = "../base" } # Internals da-primitives = { version = "0.4", default-features = false } -kate = { version = "0.6", default-features = false } +kate = { version = "0.7", default-features = false } da-runtime = { path = "../runtime" } da-control = { path = "../pallets/dactr" } kate-rpc = { path = "../rpc/kate-rpc" } @@ -40,6 +41,7 @@ log = "0.4.17" rand = "0.8" hex-literal = "0.3.4" + # Substrate ## Primitives sc-cli = "0.10.0-dev" @@ -103,6 +105,7 @@ sc-rpc-spec-v2 = "0.10.0-dev" substrate-frame-rpc-system = "4.0.0-dev" pallet-transaction-payment-rpc = "4.0.0-dev" substrate-state-trie-migration-rpc = "4.0.0-dev" +substrate-prometheus-endpoint = "0.10.0-dev" # These dependencies are used for runtime benchmarking frame-benchmarking = "4.0.0-dev" @@ -123,6 +126,7 @@ tempfile = "3.1.0" [features] default = ["cli"] +fast-runtime = [ "da-runtime/fast-runtime" ] cli = [ "clap", "clap_complete", diff --git a/node/src/benchmarking.rs b/node/src/benchmarking.rs index 6adc42495..4b9a14601 100644 --- a/node/src/benchmarking.rs +++ b/node/src/benchmarking.rs @@ -98,7 +98,7 @@ impl frame_benchmarking_cli::ExtrinsicBuilder for TransferKeepAliveBuilder { acc, BalancesCall::transfer_keep_alive { dest: self.dest.clone().into(), - value: self.value.into(), + value: self.value, }, Some(nonce), AppId(0), diff --git a/node/src/rpc.rs b/node/src/rpc.rs index 45e46bcba..5a6266428 100644 --- a/node/src/rpc.rs +++ b/node/src/rpc.rs @@ -182,7 +182,7 @@ pub fn create_full( io.merge(StateMigration::new(client.clone(), backend, deny_unsafe).into_rpc())?; // io.merge(Dev::new(client, deny_unsafe).into_rpc())?; - io.merge(Kate::<_, _, Runtime>::new(client.clone()).into_rpc())?; + io.merge(Kate::<_, _, Runtime>::new(client).into_rpc())?; Ok(io) } diff --git a/node/src/service.rs b/node/src/service.rs index 737ed8d85..624ef1224 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -41,9 +41,12 @@ use sp_runtime::{ traits::Block as BlockT, SaturatedConversion, }; +use substrate_prometheus_endpoint::{PrometheusError, Registry}; use crate::rpc as node_rpc; +pub const LOG_TARGET: &str = "avail::node::service"; + // Declare an instance of the native executor named `ExecutorDispatch`. Include the wasm binary as // the equivalent wasm code. pub struct ExecutorDispatch; @@ -346,7 +349,7 @@ pub fn new_full_base( ) -> Result { let hwbench = if !disable_hardware_benchmarks { config.database.path().map(|database_path| { - let _ = std::fs::create_dir_all(&database_path); + let _ = std::fs::create_dir_all(database_path); sc_sysinfo::gather_hwbench(Some(database_path)) }) } else { @@ -414,6 +417,9 @@ pub fn new_full_base( let name = config.network.node_name.clone(); let enable_grandpa = !config.disable_grandpa; let prometheus_registry = config.prometheus_registry().cloned(); + if let Some(reg) = prometheus_registry.as_ref() { + extend_metrics(reg)?; + } let rpc_handlers = sc_service::spawn_tasks(sc_service::SpawnTasksParams { config, @@ -604,6 +610,13 @@ pub fn new_full( .map(|NewFullBase { task_manager, .. }| task_manager) } +fn extend_metrics(prometheus: &Registry) -> Result<(), PrometheusError> { + use avail_base::metrics::{AvailMetrics, AVAIL_METRICS}; + + AVAIL_METRICS.get_or_try_init(|| AvailMetrics::new(prometheus))?; + Ok(()) +} + /* #[cfg(test)] mod tests { diff --git a/pallets/dactr/Cargo.toml b/pallets/dactr/Cargo.toml index 1c5cc1144..99479712d 100644 --- a/pallets/dactr/Cargo.toml +++ b/pallets/dactr/Cargo.toml @@ -13,7 +13,7 @@ targets = ["x86_64-unknown-linux-gnu"] [dependencies] da-primitives = { version = "0.4", default-features = false } -kate = { version = "0.6", default-features = false } +kate = { version = "0.7", default-features = false } # Substrate serde = { version = "1.0.126", optional = true, features = ["derive"] } diff --git a/pallets/dactr/src/lib.rs b/pallets/dactr/src/lib.rs index def9658ec..f6dd416ec 100644 --- a/pallets/dactr/src/lib.rs +++ b/pallets/dactr/src/lib.rs @@ -165,7 +165,7 @@ pub mod pallet { .map_err(|_| Error::::BlockDimensionsOutOfBounds)?; let _id = Self::next_block_len_proposal_id()?; - DynamicBlockLength::::put(&block_length); + DynamicBlockLength::::put(block_length); Self::deposit_event(Event::BlockLengthProposalSubmitted { rows, cols }); diff --git a/pallets/dactr/src/weights.rs b/pallets/dactr/src/weights.rs index 26f2dc03f..01088f2ba 100644 --- a/pallets/dactr/src/weights.rs +++ b/pallets/dactr/src/weights.rs @@ -59,24 +59,24 @@ impl WeightInfo for SubstrateWeight { // Storage: DataAvailability NextAppId (r:1 w:1) fn create_application_key() -> Weight { // Minimum execution time: 26_529 nanoseconds. - Weight::from_ref_time(27_471_000 as u64) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + Weight::from_ref_time(27_471_000_u64) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// The range of component `i` is `[0, 16384]`. fn submit_data(i: u32, ) -> Weight { // Minimum execution time: 17_603 nanoseconds. - Weight::from_ref_time(18_671_910 as u64) + Weight::from_ref_time(18_671_910_u64) // Standard Error: 2 - .saturating_add(Weight::from_ref_time(789 as u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_ref_time(789_u64).saturating_mul(i as u64)) } // Storage: DataAvailability LastBlockLenId (r:1 w:1) // Storage: System DynamicBlockLength (r:0 w:1) fn submit_block_length_proposal() -> Weight { // Minimum execution time: 22_321 nanoseconds. - Weight::from_ref_time(22_772_000 as u64) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + Weight::from_ref_time(22_772_000_u64) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } } @@ -86,23 +86,23 @@ impl WeightInfo for () { // Storage: DataAvailability NextAppId (r:1 w:1) fn create_application_key() -> Weight { // Minimum execution time: 26_529 nanoseconds. - Weight::from_ref_time(27_471_000 as u64) - .saturating_add(RocksDbWeight::get().reads(2 as u64)) - .saturating_add(RocksDbWeight::get().writes(2 as u64)) + Weight::from_ref_time(27_471_000_u64) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// The range of component `i` is `[0, 16384]`. fn submit_data(i: u32, ) -> Weight { // Minimum execution time: 17_603 nanoseconds. - Weight::from_ref_time(18_671_910 as u64) + Weight::from_ref_time(18_671_910_u64) // Standard Error: 2 - .saturating_add(Weight::from_ref_time(789 as u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_ref_time(789_u64).saturating_mul(i as u64)) } // Storage: DataAvailability LastBlockLenId (r:1 w:1) // Storage: System DynamicBlockLength (r:0 w:1) fn submit_block_length_proposal() -> Weight { // Minimum execution time: 22_321 nanoseconds. - Weight::from_ref_time(22_772_000 as u64) - .saturating_add(RocksDbWeight::get().reads(1 as u64)) - .saturating_add(RocksDbWeight::get().writes(2 as u64)) + Weight::from_ref_time(22_772_000_u64) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } } diff --git a/pallets/mocked_runtime/Cargo.toml b/pallets/mocked_runtime/Cargo.toml index 27d76a3c0..fd87bf501 100644 --- a/pallets/mocked_runtime/Cargo.toml +++ b/pallets/mocked_runtime/Cargo.toml @@ -10,7 +10,7 @@ description = "Mokend Runtime for Testing" [dependencies] da-primitives = { version = "0.4", default-features = false } -kate = { version = "0.6", default-features = false } +kate = { version = "0.7", default-features = false } da-control = { path = "../dactr" } scale-info = { version = "2.1.1", features = ["derive"] } diff --git a/pallets/mocked_runtime/src/custom.rs b/pallets/mocked_runtime/src/custom.rs index ebfd872f7..fe4f5cfb0 100644 --- a/pallets/mocked_runtime/src/custom.rs +++ b/pallets/mocked_runtime/src/custom.rs @@ -1,4 +1,4 @@ -pub const TEST_KEY: &[u8] = &*b":test:key:"; +pub const TEST_KEY: &[u8] = b":test:key:"; #[frame_support::pallet] pub mod custom { @@ -81,7 +81,7 @@ pub mod custom { #[pallet::call_index(5)] #[pallet::weight(0)] pub fn inherent_call(origin: OriginFor) -> DispatchResult { - let _ = frame_system::ensure_none(origin)?; + frame_system::ensure_none(origin)?; Ok(()) } diff --git a/pallets/mocked_runtime/src/lib.rs b/pallets/mocked_runtime/src/lib.rs index a05ed6f56..027a9307c 100644 --- a/pallets/mocked_runtime/src/lib.rs +++ b/pallets/mocked_runtime/src/lib.rs @@ -57,7 +57,7 @@ where // Parameters // Will contain `true` when the custom runtime logic was called. -pub const CUSTOM_ON_RUNTIME_KEY: &[u8] = &*b":custom:on_runtime"; +pub const CUSTOM_ON_RUNTIME_KEY: &[u8] = b":custom:on_runtime"; /// This determines the average expected block time that we are targetting. /// Blocks will be produced at a minimum duration defined by `SLOT_DURATION`. @@ -119,7 +119,7 @@ parameter_types! { #[derive(Clone, Copy)] pub struct RuntimeVersion; impl frame_support::traits::Get for RuntimeVersion { - fn get() -> sp_version::RuntimeVersion { RuntimeVersionTestValues::get().clone() } + fn get() -> sp_version::RuntimeVersion { RuntimeVersionTestValues::get() } } parameter_types! { diff --git a/pallets/nomad/da-bridge/src/lib.rs b/pallets/nomad/da-bridge/src/lib.rs index c8e5b2dca..6acaa043f 100644 --- a/pallets/nomad/da-bridge/src/lib.rs +++ b/pallets/nomad/da-bridge/src/lib.rs @@ -47,13 +47,9 @@ pub mod pallet { // Genesis config #[pallet::genesis_config] + #[cfg_attr(feature = "std", derive(Default))] pub struct GenesisConfig {} - #[cfg(feature = "std")] - impl Default for GenesisConfig { - fn default() -> Self { Self {} } - } - #[pallet::genesis_build] impl GenesisBuild for GenesisConfig { fn build(&self) {} @@ -95,7 +91,7 @@ pub mod pallet { ) -> DispatchResult { ensure_signed(origin)?; Self::ensure_valid_header(&header)?; - Self::do_dispatch_data_root(destination_domain, recipient_address, header) + Self::do_dispatch_data_root(destination_domain, recipient_address, &header) } } @@ -109,7 +105,7 @@ pub mod pallet { fn do_dispatch_data_root( destination_domain: u32, recipient_address: H256, - header: Box, + header: &T::Header, ) -> DispatchResult { let block_number = *header.number(); let data_root = header.extension().data_root(); diff --git a/pallets/nomad/da-bridge/src/message.rs b/pallets/nomad/da-bridge/src/message.rs index da2cd5593..6405abf92 100644 --- a/pallets/nomad/da-bridge/src/message.rs +++ b/pallets/nomad/da-bridge/src/message.rs @@ -52,7 +52,7 @@ impl TypedMessageVariant for DataRootMessage { let mut buf: Vec = Vec::with_capacity(self.len()); - buf.push(Self::MESSAGE_TYPE as u8); + buf.push(Self::MESSAGE_TYPE); buf.extend_from_slice(block_number_bytes.as_ref()); buf.extend_from_slice(data_root_bytes); diff --git a/pallets/nomad/da-bridge/src/weights.rs b/pallets/nomad/da-bridge/src/weights.rs index b473f824d..4b6905f26 100644 --- a/pallets/nomad/da-bridge/src/weights.rs +++ b/pallets/nomad/da-bridge/src/weights.rs @@ -61,9 +61,9 @@ impl WeightInfo for SubstrateWeight { // Storage: NomadHome RootToIndex (r:0 w:1) fn try_dispatch_data_root() -> Weight { // Minimum execution time: 86_831 nanoseconds. - Weight::from_ref_time(87_904_000 as u64) - .saturating_add(T::DbWeight::get().reads(4 as u64)) - .saturating_add(T::DbWeight::get().writes(4 as u64)) + Weight::from_ref_time(87_904_000_u64) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) } } @@ -77,8 +77,8 @@ impl WeightInfo for () { // Storage: NomadHome RootToIndex (r:0 w:1) fn try_dispatch_data_root() -> Weight { // Minimum execution time: 86_831 nanoseconds. - Weight::from_ref_time(87_904_000 as u64) - .saturating_add(RocksDbWeight::get().reads(4 as u64)) - .saturating_add(RocksDbWeight::get().writes(4 as u64)) + Weight::from_ref_time(87_904_000_u64) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) } } diff --git a/pallets/nomad/home/src/lib.rs b/pallets/nomad/home/src/lib.rs index 982289bde..4db21a7e9 100644 --- a/pallets/nomad/home/src/lib.rs +++ b/pallets/nomad/home/src/lib.rs @@ -221,7 +221,9 @@ pub mod pallet { // Get nonce and set new nonce Nonces::::try_mutate(destination_domain, |nonce| -> Result<(), DispatchError> { - let new_nonce = nonce.checked_add(1).ok_or(DispatchError::from(Overflow))?; + let new_nonce = nonce + .checked_add(1) + .ok_or_else(|| DispatchError::from(Overflow))?; // Format message and get message hash let message = NomadMessage { @@ -296,7 +298,7 @@ pub mod pallet { root = (index != 0) .then(|| IndexToRoot::::get(index - 1)) .flatten() - .unwrap_or_else(|| previous_root.clone()); + .unwrap_or(previous_root); } Base::::mutate(|base| { @@ -331,7 +333,7 @@ pub mod pallet { // Ensure updater signature is valid ensure!( - base.is_updater_signature(&signed_update) + base.is_updater_signature(signed_update) .map_err(|_| Error::::SignatureRecoveryError)?, Error::::InvalidUpdaterSignature, ); diff --git a/pallets/nomad/home/src/weights.rs b/pallets/nomad/home/src/weights.rs index 0abeae810..9d558935c 100644 --- a/pallets/nomad/home/src/weights.rs +++ b/pallets/nomad/home/src/weights.rs @@ -59,9 +59,9 @@ impl WeightInfo for SubstrateWeight { // Storage: NomadHome RootToIndex (r:1 w:0) fn improper_update() -> Weight { // Minimum execution time: 338_660 nanoseconds. - Weight::from_ref_time(340_072_000 as u64) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + Weight::from_ref_time(340_072_000_u64) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } // Storage: NomadHome Base (r:1 w:0) // Storage: NomadHome Nonces (r:1 w:1) @@ -71,20 +71,20 @@ impl WeightInfo for SubstrateWeight { /// The range of component `b` is `[1, 2048]`. fn dispatch(b: u32, ) -> Weight { // Minimum execution time: 72_715 nanoseconds. - Weight::from_ref_time(74_149_080 as u64) + Weight::from_ref_time(74_149_080_u64) // Standard Error: 48 - .saturating_add(Weight::from_ref_time(4_473 as u64).saturating_mul(b as u64)) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(4 as u64)) + .saturating_add(Weight::from_ref_time(4_473_u64).saturating_mul(b as u64)) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) } // Storage: NomadHome Base (r:1 w:1) // Storage: NomadHome RootToIndex (r:32 w:32) // Storage: NomadHome IndexToRoot (r:31 w:32) fn update() -> Weight { // Minimum execution time: 616_947 nanoseconds. - Weight::from_ref_time(627_426_000 as u64) - .saturating_add(T::DbWeight::get().reads(64 as u64)) - .saturating_add(T::DbWeight::get().writes(65 as u64)) + Weight::from_ref_time(627_426_000_u64) + .saturating_add(T::DbWeight::get().reads(64_u64)) + .saturating_add(T::DbWeight::get().writes(65_u64)) } } @@ -94,9 +94,9 @@ impl WeightInfo for () { // Storage: NomadHome RootToIndex (r:1 w:0) fn improper_update() -> Weight { // Minimum execution time: 338_660 nanoseconds. - Weight::from_ref_time(340_072_000 as u64) - .saturating_add(RocksDbWeight::get().reads(2 as u64)) - .saturating_add(RocksDbWeight::get().writes(1 as u64)) + Weight::from_ref_time(340_072_000_u64) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) } // Storage: NomadHome Base (r:1 w:0) // Storage: NomadHome Nonces (r:1 w:1) @@ -106,19 +106,19 @@ impl WeightInfo for () { /// The range of component `b` is `[1, 2048]`. fn dispatch(b: u32, ) -> Weight { // Minimum execution time: 72_715 nanoseconds. - Weight::from_ref_time(74_149_080 as u64) + Weight::from_ref_time(74_149_080_u64) // Standard Error: 48 - .saturating_add(Weight::from_ref_time(4_473 as u64).saturating_mul(b as u64)) - .saturating_add(RocksDbWeight::get().reads(3 as u64)) - .saturating_add(RocksDbWeight::get().writes(4 as u64)) + .saturating_add(Weight::from_ref_time(4_473_u64).saturating_mul(b as u64)) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) } // Storage: NomadHome Base (r:1 w:1) // Storage: NomadHome RootToIndex (r:32 w:32) // Storage: NomadHome IndexToRoot (r:31 w:32) fn update() -> Weight { // Minimum execution time: 616_947 nanoseconds. - Weight::from_ref_time(627_426_000 as u64) - .saturating_add(RocksDbWeight::get().reads(64 as u64)) - .saturating_add(RocksDbWeight::get().writes(65 as u64)) + Weight::from_ref_time(627_426_000_u64) + .saturating_add(RocksDbWeight::get().reads(64_u64)) + .saturating_add(RocksDbWeight::get().writes(65_u64)) } } diff --git a/pallets/nomad/updater-manager/src/lib.rs b/pallets/nomad/updater-manager/src/lib.rs index 3dafc6445..3ff703db2 100644 --- a/pallets/nomad/updater-manager/src/lib.rs +++ b/pallets/nomad/updater-manager/src/lib.rs @@ -52,7 +52,7 @@ pub mod pallet { #[pallet::genesis_build] impl GenesisBuild for GenesisConfig { - fn build(&self) { >::put(&self.updater); } + fn build(&self) { >::put(self.updater); } } #[pallet::event] diff --git a/pallets/system/Cargo.toml b/pallets/system/Cargo.toml index b49810f4d..f06bcf840 100644 --- a/pallets/system/Cargo.toml +++ b/pallets/system/Cargo.toml @@ -13,8 +13,9 @@ readme = "README.md" targets = ["x86_64-unknown-linux-gnu"] [dependencies] +avail-base = { path = "../../base", default-features = false } da-primitives = { version = "0.4", default-features = false } -kate = { version = "0.6", default-features = false } +kate = { version = "0.7", default-features = false } # Other impl-trait-for-tuples = "0.2.1" @@ -46,6 +47,7 @@ sp-externalities = "0.13" [features] default = ["std"] std = [ + "avail-base/std", "kate/std", "da-primitives/std", "codec/std", diff --git a/pallets/system/benchmarking/src/lib.rs b/pallets/system/benchmarking/src/lib.rs index 28e7a53fc..85fd2c008 100644 --- a/pallets/system/benchmarking/src/lib.rs +++ b/pallets/system/benchmarking/src/lib.rs @@ -34,13 +34,13 @@ pub trait Config: frame_system::Config {} benchmarks! { remark { - let b in 0 .. *T::BlockLength::get().max.get(DispatchClass::Normal) as u32; + let b in 0 .. *T::BlockLength::get().max.get(DispatchClass::Normal); let remark_message = vec![1; b as usize]; let caller = whitelisted_caller(); }: _(RawOrigin::Signed(caller), remark_message) remark_with_event { - let b in 0 .. *T::BlockLength::get().max.get(DispatchClass::Normal) as u32; + let b in 0 .. *T::BlockLength::get().max.get(DispatchClass::Normal); let remark_message = vec![1; b as usize]; let caller = whitelisted_caller(); }: _(RawOrigin::Signed(caller), remark_message) @@ -55,11 +55,11 @@ benchmarks! { #[extra] set_code_without_checks { // Assume Wasm ~4MB - let code = vec![1; 4_000_000 as usize]; + let code = vec![1; 4_000_000_usize]; }: _(RawOrigin::Root, code) verify { let current_code = storage::unhashed::get_raw(well_known_keys::CODE).ok_or("Code not stored.")?; - assert_eq!(current_code.len(), 4_000_000 as usize); + assert_eq!(current_code.len(), 4_000_000_usize); } #[skip_meta] diff --git a/pallets/system/src/extensions/check_genesis.rs b/pallets/system/src/extensions/check_genesis.rs index aa0d2f2db..443c248de 100644 --- a/pallets/system/src/extensions/check_genesis.rs +++ b/pallets/system/src/extensions/check_genesis.rs @@ -46,6 +46,7 @@ impl sp_std::fmt::Debug for CheckGenesis { impl CheckGenesis { /// Creates new `SignedExtension` to check genesis hash. + #[allow(clippy::new_without_default)] pub fn new() -> Self { Self(sp_std::marker::PhantomData) } } diff --git a/pallets/system/src/extensions/check_non_zero_sender.rs b/pallets/system/src/extensions/check_non_zero_sender.rs index aa3d9b6e8..3308cbb98 100644 --- a/pallets/system/src/extensions/check_non_zero_sender.rs +++ b/pallets/system/src/extensions/check_non_zero_sender.rs @@ -45,6 +45,7 @@ impl sp_std::fmt::Debug for CheckNonZeroSender { impl CheckNonZeroSender { /// Create new `SignedExtension` to check runtime version. + #[allow(clippy::new_without_default)] pub fn new() -> Self { Self(sp_std::marker::PhantomData) } } diff --git a/pallets/system/src/extensions/check_spec_version.rs b/pallets/system/src/extensions/check_spec_version.rs index 1bb965452..7057051ad 100644 --- a/pallets/system/src/extensions/check_spec_version.rs +++ b/pallets/system/src/extensions/check_spec_version.rs @@ -46,6 +46,7 @@ impl sp_std::fmt::Debug for CheckSpecVersion { impl CheckSpecVersion { /// Create new `SignedExtension` to check runtime version. + #[allow(clippy::new_without_default)] pub fn new() -> Self { Self(sp_std::marker::PhantomData) } } diff --git a/pallets/system/src/extensions/check_tx_version.rs b/pallets/system/src/extensions/check_tx_version.rs index 6c08c1c27..f5566054a 100644 --- a/pallets/system/src/extensions/check_tx_version.rs +++ b/pallets/system/src/extensions/check_tx_version.rs @@ -46,6 +46,7 @@ impl sp_std::fmt::Debug for CheckTxVersion { impl CheckTxVersion { /// Create new `SignedExtension` to check transaction version. + #[allow(clippy::new_without_default)] pub fn new() -> Self { Self(sp_std::marker::PhantomData) } } diff --git a/pallets/system/src/header_builder.rs b/pallets/system/src/header_builder.rs index 4de03a5c0..022aaa519 100644 --- a/pallets/system/src/header_builder.rs +++ b/pallets/system/src/header_builder.rs @@ -2,7 +2,10 @@ use da_primitives::{asdr::AppExtrinsic, traits::ExtendedHeader, HeaderExtension} #[cfg(feature = "std")] use da_primitives::{asdr::DataLookup, KateCommitment}; use frame_support::traits::Randomness; -pub use kate::Seed; +pub use kate::{ + metrics::{IgnoreMetrics, Metrics}, + Seed, +}; use sp_core::H256; use sp_runtime::traits::Hash; #[cfg(feature = "std")] @@ -95,11 +98,12 @@ fn build_extension_v_test( } #[cfg(feature = "std")] -fn build_extension_v1( +fn build_extension( app_extrinsics: &[AppExtrinsic], data_root: H256, block_length: BlockLength, seed: Seed, + metrics: &M, ) -> HeaderExtension { use da_primitives::header::extension::v1; @@ -109,6 +113,7 @@ fn build_extension_v1( block_length.chunk_size(), app_extrinsics, seed, + metrics, ) .expect("Build commitments cannot fail .qed"); let app_lookup = @@ -140,7 +145,8 @@ pub trait HostedHeaderBuilder { _block_number: u32, seed: Seed, ) -> HeaderExtension { - build_extension_v1(&app_extrinsics, data_root, block_length, seed) + let metrics = avail_base::metrics::MetricAdapter {}; + build_extension(&app_extrinsics, data_root, block_length, seed, &metrics) } /* diff --git a/pallets/system/src/lib.rs b/pallets/system/src/lib.rs index d00f7e267..b19cc32a8 100644 --- a/pallets/system/src/lib.rs +++ b/pallets/system/src/lib.rs @@ -1113,7 +1113,7 @@ impl Pallet { /// Decrement the reference counter on an account. This *MUST* only be done once for every time /// you called `inc_consumers` on `who`. #[deprecated = "Use `dec_consumers` instead"] - pub fn dec_ref(who: &T::AccountId) { let _ = Self::dec_consumers(who); } + pub fn dec_ref(who: &T::AccountId) { Self::dec_consumers(who); } /// The number of outstanding references for the account `who`. #[deprecated = "Use `consumers` instead"] @@ -1350,7 +1350,7 @@ impl Pallet { Events::::append(event); for topic in topics { - >::append(topic, &(block_number, event_idx)); + >::append(topic, (block_number, event_idx)); } } @@ -1430,17 +1430,17 @@ impl Pallet { Self::block_weight().get(DispatchClass::Normal), sp_runtime::Percent::from_rational( Self::block_weight().get(DispatchClass::Normal).ref_time(), - T::BlockWeights::get().get(DispatchClass::Normal).max_total.unwrap_or(Bounded::max_value()).ref_time() + T::BlockWeights::get().get(DispatchClass::Normal).max_total.unwrap_or_else(Bounded::max_value).ref_time() ).deconstruct(), Self::block_weight().get(DispatchClass::Operational), sp_runtime::Percent::from_rational( Self::block_weight().get(DispatchClass::Operational).ref_time(), - T::BlockWeights::get().get(DispatchClass::Operational).max_total.unwrap_or(Bounded::max_value()).ref_time() + T::BlockWeights::get().get(DispatchClass::Operational).max_total.unwrap_or_else(Bounded::max_value).ref_time() ).deconstruct(), Self::block_weight().get(DispatchClass::Mandatory), sp_runtime::Percent::from_rational( Self::block_weight().get(DispatchClass::Mandatory).ref_time(), - T::BlockWeights::get().get(DispatchClass::Mandatory).max_total.unwrap_or(Bounded::max_value()).ref_time() + T::BlockWeights::get().get(DispatchClass::Mandatory).max_total.unwrap_or_else(Bounded::max_value).ref_time() ).deconstruct(), ); ExecutionPhase::::kill(); diff --git a/pallets/system/src/offchain.rs b/pallets/system/src/offchain.rs index 212925dc5..0beb74674 100644 --- a/pallets/system/src/offchain.rs +++ b/pallets/system/src/offchain.rs @@ -204,7 +204,7 @@ impl> Signer) -> Option, { let accounts = self.accounts_from_keys(); - for account in accounts.into_iter() { + for account in accounts { let res = f(&account); if let Some(res) = res { return Some((account, res)); diff --git a/pallets/system/src/submitted_data.rs b/pallets/system/src/submitted_data.rs index 0af19cd64..d7f4861b1 100644 --- a/pallets/system/src/submitted_data.rs +++ b/pallets/system/src/submitted_data.rs @@ -71,7 +71,7 @@ where /// In case an empty list of leaves is passed the function returns a 0-filled hash. fn root>>(submitted_data: I, metrics: RcMetrics) -> H256 { #[cfg(not(feature = "force-rs-merkle"))] - let root = merkle_root::(submitted_data).into(); + let root = merkle_root::(submitted_data); #[cfg(feature = "force-rs-merkle")] let root = rs_merkle_root(submitted_data).into(); log::debug!( diff --git a/pallets/system/src/weights.rs b/pallets/system/src/weights.rs index 696a6a09b..d217a1a80 100644 --- a/pallets/system/src/weights.rs +++ b/pallets/system/src/weights.rs @@ -61,51 +61,51 @@ impl WeightInfo for SubstrateWeight { /// The range of component `b` is `[0, 3932160]`. fn remark(b: u32, ) -> Weight { // Minimum execution time: 3_951 nanoseconds. - Weight::from_ref_time(1_307_232 as u64) + Weight::from_ref_time(1_307_232_u64) // Standard Error: 0 - .saturating_add(Weight::from_ref_time(363 as u64).saturating_mul(b as u64)) + .saturating_add(Weight::from_ref_time(363_u64).saturating_mul(b as u64)) } /// The range of component `b` is `[0, 3932160]`. fn remark_with_event(b: u32, ) -> Weight { // Minimum execution time: 14_880 nanoseconds. - Weight::from_ref_time(15_173_000 as u64) + Weight::from_ref_time(15_173_000_u64) // Standard Error: 0 - .saturating_add(Weight::from_ref_time(1_424 as u64).saturating_mul(b as u64)) + .saturating_add(Weight::from_ref_time(1_424_u64).saturating_mul(b as u64)) } // Storage: System Digest (r:1 w:1) // Storage: unknown [0x3a686561707061676573] (r:0 w:1) fn set_heap_pages() -> Weight { // Minimum execution time: 9_819 nanoseconds. - Weight::from_ref_time(10_513_000 as u64) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + Weight::from_ref_time(10_513_000_u64) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } // Storage: Skipped Metadata (r:0 w:0) /// The range of component `i` is `[0, 1000]`. fn set_storage(i: u32, ) -> Weight { // Minimum execution time: 4_038 nanoseconds. - Weight::from_ref_time(4_098_000 as u64) + Weight::from_ref_time(4_098_000_u64) // Standard Error: 710 - .saturating_add(Weight::from_ref_time(620_813 as u64).saturating_mul(i as u64)) - .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64))) + .saturating_add(Weight::from_ref_time(620_813_u64).saturating_mul(i as u64)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i as u64))) } // Storage: Skipped Metadata (r:0 w:0) /// The range of component `i` is `[0, 1000]`. fn kill_storage(i: u32, ) -> Weight { // Minimum execution time: 3_972 nanoseconds. - Weight::from_ref_time(4_082_000 as u64) + Weight::from_ref_time(4_082_000_u64) // Standard Error: 884 - .saturating_add(Weight::from_ref_time(536_923 as u64).saturating_mul(i as u64)) - .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64))) + .saturating_add(Weight::from_ref_time(536_923_u64).saturating_mul(i as u64)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i as u64))) } // Storage: Skipped Metadata (r:0 w:0) /// The range of component `p` is `[0, 1000]`. fn kill_prefix(p: u32, ) -> Weight { // Minimum execution time: 5_703 nanoseconds. - Weight::from_ref_time(5_763_000 as u64) + Weight::from_ref_time(5_763_000_u64) // Standard Error: 1_248 - .saturating_add(Weight::from_ref_time(1_126_062 as u64).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(p as u64))) + .saturating_add(Weight::from_ref_time(1_126_062_u64).saturating_mul(p as u64)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p as u64))) } } @@ -114,50 +114,50 @@ impl WeightInfo for () { /// The range of component `b` is `[0, 3932160]`. fn remark(b: u32, ) -> Weight { // Minimum execution time: 3_951 nanoseconds. - Weight::from_ref_time(1_307_232 as u64) + Weight::from_ref_time(1_307_232_u64) // Standard Error: 0 - .saturating_add(Weight::from_ref_time(363 as u64).saturating_mul(b as u64)) + .saturating_add(Weight::from_ref_time(363_u64).saturating_mul(b as u64)) } /// The range of component `b` is `[0, 3932160]`. fn remark_with_event(b: u32, ) -> Weight { // Minimum execution time: 14_880 nanoseconds. - Weight::from_ref_time(15_173_000 as u64) + Weight::from_ref_time(15_173_000_u64) // Standard Error: 0 - .saturating_add(Weight::from_ref_time(1_424 as u64).saturating_mul(b as u64)) + .saturating_add(Weight::from_ref_time(1_424_u64).saturating_mul(b as u64)) } // Storage: System Digest (r:1 w:1) // Storage: unknown [0x3a686561707061676573] (r:0 w:1) fn set_heap_pages() -> Weight { // Minimum execution time: 9_819 nanoseconds. - Weight::from_ref_time(10_513_000 as u64) - .saturating_add(RocksDbWeight::get().reads(1 as u64)) - .saturating_add(RocksDbWeight::get().writes(2 as u64)) + Weight::from_ref_time(10_513_000_u64) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } // Storage: Skipped Metadata (r:0 w:0) /// The range of component `i` is `[0, 1000]`. fn set_storage(i: u32, ) -> Weight { // Minimum execution time: 4_038 nanoseconds. - Weight::from_ref_time(4_098_000 as u64) + Weight::from_ref_time(4_098_000_u64) // Standard Error: 710 - .saturating_add(Weight::from_ref_time(620_813 as u64).saturating_mul(i as u64)) - .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(i as u64))) + .saturating_add(Weight::from_ref_time(620_813_u64).saturating_mul(i as u64)) + .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(i as u64))) } // Storage: Skipped Metadata (r:0 w:0) /// The range of component `i` is `[0, 1000]`. fn kill_storage(i: u32, ) -> Weight { // Minimum execution time: 3_972 nanoseconds. - Weight::from_ref_time(4_082_000 as u64) + Weight::from_ref_time(4_082_000_u64) // Standard Error: 884 - .saturating_add(Weight::from_ref_time(536_923 as u64).saturating_mul(i as u64)) - .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(i as u64))) + .saturating_add(Weight::from_ref_time(536_923_u64).saturating_mul(i as u64)) + .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(i as u64))) } // Storage: Skipped Metadata (r:0 w:0) /// The range of component `p` is `[0, 1000]`. fn kill_prefix(p: u32, ) -> Weight { // Minimum execution time: 5_703 nanoseconds. - Weight::from_ref_time(5_763_000 as u64) + Weight::from_ref_time(5_763_000_u64) // Standard Error: 1_248 - .saturating_add(Weight::from_ref_time(1_126_062 as u64).saturating_mul(p as u64)) - .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(p as u64))) + .saturating_add(Weight::from_ref_time(1_126_062_u64).saturating_mul(p as u64)) + .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(p as u64))) } } diff --git a/rpc/kate-rpc/Cargo.toml b/rpc/kate-rpc/Cargo.toml index c67f755e1..886be7d42 100644 --- a/rpc/kate-rpc/Cargo.toml +++ b/rpc/kate-rpc/Cargo.toml @@ -6,6 +6,8 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] +avail-base = { path = "../../base" } + sp-api = { version = "4.0.0-dev", default-features = false } sp-std = { version = "5.0.0", default-features = false } frame-system = { version = "4.0.0-dev", default-features = false } @@ -17,7 +19,7 @@ rs_merkle = { version = "1.2.0", default-features = false } codec = { package = "parity-scale-codec", version = "3" } da-primitives = { version = "0.4", default-features = false } -kate = { version = "0.6", default-features = false } +kate = { version = "0.7", default-features = false } kate-recovery = { version = "0.8", default-features = false } jsonrpsee = { version = "0.16.2", features = ["server", "client", "macros"] } diff --git a/rpc/kate-rpc/src/lib.rs b/rpc/kate-rpc/src/lib.rs index 6baffeafa..c42da33e0 100644 --- a/rpc/kate-rpc/src/lib.rs +++ b/rpc/kate-rpc/src/lib.rs @@ -4,6 +4,7 @@ use std::{ sync::{Arc, RwLock}, }; +use avail_base::metrics::RPCMetricAdapter; use codec::{Compact, Decode, Encode, Error as DecodeError, Input}; use da_primitives::{ asdr::{AppExtrinsic, AppId, DataLookup, GetAppId}, @@ -213,7 +214,8 @@ where ) .map_err(|e| internal_err!("Flatten and pad block failed: {:?}", e))?; - let data = kate::com::par_extend_data_matrix(block_dims, &block) + let metrics = RPCMetricAdapter {}; + let data = kate::com::par_extend_data_matrix(block_dims, &block, &metrics) .map_err(|e| internal_err!("Matrix cannot be extended: {:?}", e))?; block_ext_cache.put(block_hash, (data, block_dims)); @@ -223,8 +225,7 @@ where .get(&block_hash) .ok_or_else(|| internal_err!("Block hash {} cannot be fetched", block_hash))?; - let dimensions: Dimensions = block_dims - .clone() + let dimensions: Dimensions = (*block_dims) .try_into() .map_err(|e| internal_err!("Invalid dimensions: {:?}", e))?; @@ -292,7 +293,8 @@ where ) .map_err(|e| internal_err!("Flatten and pad block failed: {:?}", e))?; - let data = kate::com::par_extend_data_matrix(block_dims, &block) + let metrics = RPCMetricAdapter {}; + let data = kate::com::par_extend_data_matrix(block_dims, &block, &metrics) .map_err(|e| internal_err!("Matrix cannot be extended: {:?}", e))?; block_ext_cache.put(block_hash, (data, block_dims)); @@ -313,8 +315,7 @@ where size: *size, }; - let dimensions: Dimensions = block_dims - .clone() + let dimensions: Dimensions = (*block_dims) .try_into() .map_err(|e| internal_err!("Invalid dimensions: {:?}", e))?; @@ -349,6 +350,7 @@ where .block_ext_cache .write() .map_err(|_| internal_err!("Block cache lock is poisoned .qed"))?; + let metrics = RPCMetricAdapter {}; if !block_ext_cache.contains(&block_hash) { // build block data extension and cache it @@ -384,7 +386,7 @@ where ) .map_err(|e| internal_err!("Flatten and pad block failed: {:?}", e))?; - let data = kate::com::par_extend_data_matrix(block_dims, &block) + let data = kate::com::par_extend_data_matrix(block_dims, &block, &metrics) .map_err(|e| internal_err!("Matrix cannot be extended: {:?}", e))?; block_ext_cache.put(block_hash, (data, block_dims)); } @@ -406,8 +408,9 @@ where let kc_public_params = unsafe { PublicParameters::from_slice_unchecked(&kc_public_params_raw) }; - let proof = kate::com::build_proof(&kc_public_params, *block_dims, ext_data, &cells) - .map_err(|e| internal_err!("Proof cannot be generated: {:?}", e))?; + let proof = + kate::com::build_proof(&kc_public_params, *block_dims, ext_data, &cells, &metrics) + .map_err(|e| internal_err!("Proof cannot be generated: {:?}", e))?; Ok(proof) } diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index c42a3ea70..d1ce497ca 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -16,7 +16,7 @@ targets = ["x86_64-unknown-linux-gnu"] # Internal da-primitives = { version = "0.4", default-features = false } -kate = { version = "0.6" , default-features = false } +kate = { version = "0.7" , default-features = false } da-control = { path = "../pallets/dactr", default-features = false } kate-rpc-runtime-api = { path = "../rpc/kate-rpc-runtime-api", default-features = false } @@ -118,6 +118,7 @@ env_logger = "0.9.1" [features] default = ["std"] with-tracing = ["frame-executive/with-tracing"] +fast-runtime = [] std = [ "serde", #"parity-util-mem/std", diff --git a/runtime/src/constants.rs b/runtime/src/constants.rs index 471fbd296..a7c7761fc 100644 --- a/runtime/src/constants.rs +++ b/runtime/src/constants.rs @@ -53,7 +53,11 @@ pub mod time { /// `SLOT_DURATION` should have the same value. /// /// + #[cfg(not(feature = "fast-runtime"))] pub const MILLISECS_PER_BLOCK: Moment = 20_000; + #[cfg(feature = "fast-runtime")] + pub const MILLISECS_PER_BLOCK: Moment = 6_000; + pub const SECS_PER_BLOCK: Moment = MILLISECS_PER_BLOCK / 1000; // NOTE: Currently it is not possible to change the slot duration after the chain has started. @@ -65,8 +69,12 @@ pub mod time { // NOTE: Currently it is not possible to change the epoch duration after the chain has started. // Attempting to do so will brick block production. - pub const EPOCH_DURATION_IN_BLOCKS: BlockNumber = 10 * MINUTES; + // pub const EPOCH_DURATION_IN_BLOCKS: BlockNumber = 10 * MINUTES; + #[allow(clippy::identity_op)] + #[cfg(not(feature = "fast-runtime"))] pub const EPOCH_DURATION_IN_SLOTS: BlockNumber = 1 * HOURS; + #[cfg(feature = "fast-runtime")] + pub const EPOCH_DURATION_IN_SLOTS: BlockNumber = 15 * MINUTES; // These time units are defined in number of blocks. pub const MINUTES: BlockNumber = 60 / (SECS_PER_BLOCK as BlockNumber); @@ -80,6 +88,7 @@ pub mod nomination_pools { use super::Balance; pub const MIN_CREATE_BOND: Balance = 10 * AVL; + #[allow(clippy::identity_op)] pub const MIN_JOIN_BOND: Balance = 1 * AVL; pub const MAX_POOLS: u32 = 16; pub const MAX_MEMBERS_PER_POOL: u32 = 100; diff --git a/runtime/src/data_root_tests.rs b/runtime/src/data_root_tests.rs index 664928faa..e2b9c0b96 100644 --- a/runtime/src/data_root_tests.rs +++ b/runtime/src/data_root_tests.rs @@ -32,7 +32,7 @@ fn decode_submit_call() { let call = super::UncheckedExtrinsic::decode(&mut encoded_call.as_slice()).unwrap(); let account = hex!("d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d"); - let expected_signature = MultiSignature::Sr25519(Signature(hex!("be06880f2f6203365b508b4226fd697d3d79d3a50a5617aad714466d40ef47067225e823135b32121aa0f6f56e696f5f71107a6d44768c2fefe38cb209f7f282"))); + let expected_signature = sp_runtime::MultiSignature::Sr25519(Signature(hex!("be06880f2f6203365b508b4226fd697d3d79d3a50a5617aad714466d40ef47067225e823135b32121aa0f6f56e696f5f71107a6d44768c2fefe38cb209f7f282"))); let expected_call = AppUncheckedExtrinsic { function: RuntimeCall::DataAvailability(DaCall::submit_data { data: hex!("54657374207375626d69742064617461") diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index b241158e9..2f6320395 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -57,12 +57,10 @@ use sp_inherents::{CheckInherentsResult, InherentData}; use sp_runtime::{ create_runtime_str, curve::PiecewiseLinear, - generic, impl_opaque_keys, - traits::{ - self, BlakeTwo256, Block as BlockT, Bounded, IdentifyAccount, NumberFor, OpaqueKeys, Verify, - }, + impl_opaque_keys, + traits::{self, BlakeTwo256, Block as BlockT, Bounded, NumberFor, OpaqueKeys}, transaction_validity::{TransactionPriority, TransactionSource, TransactionValidity}, - ApplyExtrinsicResult, FixedPointNumber, FixedU128, MultiSignature, + ApplyExtrinsicResult, FixedPointNumber, FixedU128, }; pub use sp_runtime::{Perbill, Percent, Permill, Perquintill}; use sp_std::prelude::*; @@ -98,6 +96,9 @@ pub use sp_runtime::BuildStorage; use sp_version::RuntimeVersion; use static_assertions::const_assert; +mod primitives; +pub use primitives::*; + /// Implementations of some helper traits passed into runtime modules as associated types. pub mod impls; use impls::Author; @@ -109,31 +110,6 @@ use sp_runtime::generic::Era; mod migration; -/// An index to a block. -pub type BlockNumber = u32; - -/// Alias to 512-bit hash when used in the context of a transaction signature on the chain. -pub type Signature = MultiSignature; - -/// Some way of identifying an account on the chain. We intentionally make it equivalent -/// to the public key of our transaction signing scheme. -pub type AccountId = <::Signer as IdentifyAccount>::AccountId; - -/// The type for looking up accounts. We don't expect more than 4 billion of them, but you -/// never know... -pub type AccountIndex = u32; - -/// Index of a transaction in the chain. -pub type Index = u32; - -/// A hash of some data used by the chain. -pub type Hash = sp_core::H256; - -/// Digest item type. -pub type DigestItem = generic::DigestItem; - -pub type Moment = u64; - // Make the WASM binary available. #[cfg(feature = "std")] include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs")); @@ -148,23 +124,6 @@ pub fn wasm_binary_unwrap() -> &'static [u8] { ) } -/// Opaque types. These are used by the CLI to instantiate machinery that don't need to know -/// the specifics of the runtime. They can then be made to be agnostic over specific formats -/// of data like extrinsics, allowing for them to continue syncing the network through upgrades -/// to even the core data structures. -pub mod opaque { - pub use sp_runtime::OpaqueExtrinsic as UncheckedExtrinsic; - - use super::*; - - /// Opaque block header type. - pub type Header = DaHeader; - /// Opaque block type. - pub type Block = generic::Block; - /// Opaque block identifier type. - pub type BlockId = generic::BlockId; -} - /// Runtime version. pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("data-avail"), @@ -192,14 +151,6 @@ pub fn native_version() -> NativeVersion { } } -/*( -pub struct Author; -impl OnUnbalanced for Author { - fn on_nonzero_unbalanced(amount: NegativeImbalance) { - Balances::resolve_creating(&Authorship::author(), amount); - } -}*/ - type NegativeImbalance = >::NegativeImbalance; pub struct DealWithFees; @@ -255,11 +206,13 @@ parameter_types! { /// Filters and extracts `data` from `call` if it is a `DataAvailability::submit_data` type. /// /// # TODO -/// - Support utility pallet containing severals `DataAvailability::submit_data` calls. +/// - Support utility pallet containing severals `DataAvailability::submit_data` calls and +/// double-check if we can remove the `clippy::collapsible_match` then. impl submitted_data::Filter for Runtime { fn filter(call: RuntimeCall, metrics: submitted_data::RcMetrics) -> Option> { metrics.borrow_mut().total_extrinsics += 1; + #[allow(clippy::collapsible_match)] match call { RuntimeCall::DataAvailability(method) => match method { da_control::Call::submit_data { data } => { @@ -1231,7 +1184,7 @@ impl da_bridge::Config for Runtime { construct_runtime!( pub enum Runtime where Block = Block, - NodeBlock = Block, + NodeBlock = NodeBlock, UncheckedExtrinsic = UncheckedExtrinsic { System: frame_system = 0, @@ -1282,54 +1235,6 @@ construct_runtime!( } ); -/// The address format for describing accounts. -pub type Address = sp_runtime::MultiAddress; -/// Block header type as expected by this runtime. -pub type Header = DaHeader; -/// Block type as expected by this runtime. -pub type Block = generic::Block; -/// A Block signed with a Justification -pub type SignedBlock = generic::SignedBlock; -/// BlockId type as expected by this runtime. -pub type BlockId = generic::BlockId; -/// The SignedExtension to the basic transaction logic. -/// -/// When you change this, you **MUST** modify [`sign`] in `bin/node/testing/src/keyring.rs`! -/// -/// [`sign`]: <../../testing/src/keyring.rs.html> -pub type SignedExtra = ( - frame_system::CheckNonZeroSender, - frame_system::CheckSpecVersion, - frame_system::CheckTxVersion, - frame_system::CheckGenesis, - frame_system::CheckEra, - frame_system::CheckNonce, - frame_system::CheckWeight, - pallet_transaction_payment::ChargeTransactionPayment, - da_control::CheckAppId, -); - -/// Unchecked extrinsic type as expected by this runtime. -pub type UncheckedExtrinsic = AppUncheckedExtrinsic; - -/// The payload being signed in transactions. -pub type SignedPayload = generic::SignedPayload; -/// Extrinsic type that has already been checked. -pub type CheckedExtrinsic = generic::CheckedExtrinsic; -/// Executive: handles dispatch to the various modules. -pub type Executive = frame_executive::Executive< - Runtime, - Block, - frame_system::ChainContext, - Runtime, - AllPalletsWithSystem, - Migrations, ->; - -// All migrations executed on runtime upgrade as a nested tuple of types implementing -// `OnRuntimeUpgrade`. -type Migrations = (migration::Migration,); - /// MMR helper types. mod mmr { pub use pallet_mmr::primitives::*; diff --git a/runtime/src/migration.rs b/runtime/src/migration.rs index c062bdac0..1e79d91f5 100644 --- a/runtime/src/migration.rs +++ b/runtime/src/migration.rs @@ -16,7 +16,6 @@ // limitations under the License. use frame_support::{pallet_prelude::*, traits::OnRuntimeUpgrade}; -use log; use pallet_nomination_pools::{ MaxPoolMembers, MaxPoolMembersPerPool, MaxPools, MinCreateBond, MinJoinBond, Pallet, }; diff --git a/runtime/src/primitives.rs b/runtime/src/primitives.rs new file mode 100644 index 000000000..fc4683815 --- /dev/null +++ b/runtime/src/primitives.rs @@ -0,0 +1,76 @@ +use da_primitives::{asdr::AppUncheckedExtrinsic, Header as DaHeader}; +use sp_runtime::{ + generic, + traits::{BlakeTwo256, IdentifyAccount, Verify}, + MultiSignature, OpaqueExtrinsic, +}; + +use crate::{migration, AllPalletsWithSystem, Runtime, RuntimeCall}; + +/// An index to a block. +pub type BlockNumber = u32; +/// Alias to 512-bit hash when used in the context of a transaction signature on the chain. +pub type Signature = MultiSignature; +/// Some way of identifying an account on the chain. We intentionally make it equivalent +/// to the public key of our transaction signing scheme. +pub type AccountId = <::Signer as IdentifyAccount>::AccountId; +/// The type for looking up accounts. We don't expect more than 4 billion of them, but you +/// never know... +pub type AccountIndex = u32; +/// Index of a transaction in the chain. +pub type Index = u32; +/// A hash of some data used by the chain. +pub type Hash = sp_core::H256; +/// Digest item type. +pub type DigestItem = generic::DigestItem; +/// Time type +pub type Moment = u64; + +/// The address format for describing accounts. +pub type Address = sp_runtime::MultiAddress; +/// Block header type as expected by this runtime. +pub type Header = DaHeader; +/// Unchecked extrinsic type as expected by this runtime. +pub type UncheckedExtrinsic = AppUncheckedExtrinsic; +/// Block type as expected by this runtime. +pub type Block = generic::Block; +/// Block type for the node +pub type NodeBlock = generic::Block; +/// A Block signed with a Justification +pub type SignedBlock = generic::SignedBlock; +/// BlockId type as expected by this runtime. +pub type BlockId = generic::BlockId; +/// The SignedExtension to the basic transaction logic. +/// +/// When you change this, you **MUST** modify [`sign`] in `bin/node/testing/src/keyring.rs`! +/// +/// [`sign`]: <../../testing/src/keyring.rs.html> +pub type SignedExtra = ( + frame_system::CheckNonZeroSender, + frame_system::CheckSpecVersion, + frame_system::CheckTxVersion, + frame_system::CheckGenesis, + frame_system::CheckEra, + frame_system::CheckNonce, + frame_system::CheckWeight, + pallet_transaction_payment::ChargeTransactionPayment, + da_control::CheckAppId, +); + +/// The payload being signed in transactions. +pub type SignedPayload = generic::SignedPayload; +/// Extrinsic type that has already been checked. +pub type CheckedExtrinsic = generic::CheckedExtrinsic; +/// Executive: handles dispatch to the various modules. +pub type Executive = frame_executive::Executive< + Runtime, + Block, + frame_system::ChainContext, + Runtime, + AllPalletsWithSystem, + Migrations, +>; + +// All migrations executed on runtime upgrade as a nested tuple of types implementing +// `OnRuntimeUpgrade`. +type Migrations = (migration::Migration,);